vue-data-ui 3.0.0-next.17 → 3.0.0-next.18

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 (89) hide show
  1. package/dist/{Arrow-Da9dMqZC.js → Arrow-DD7UcVVG.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DnwlkEmJ.js → BaseDraggableDialog-DB16ahPx.js} +2 -2
  3. package/dist/{BaseIcon-BesWLqxG.js → BaseIcon-QW_RwBxU.js} +1 -1
  4. package/dist/{ColorPicker-BTkmuF06.js → ColorPicker-D2Ln2SMc.js} +2 -2
  5. package/dist/{DataTable-CjRGdd0l.js → DataTable-DFE1SX7o.js} +2 -2
  6. package/dist/{Legend-Bg9bJZpZ.js → Legend-CZzbGSJ5.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DLU-kGNZ.js → NonSvgPenAndPaper-CX9GQttP.js} +3 -3
  8. package/dist/{PackageVersion-DBzqTu79.js → PackageVersion-OcsR31Tn.js} +1 -1
  9. package/dist/{PenAndPaper-Dtl-piX1.js → PenAndPaper-BvJs1gwT.js} +3 -3
  10. package/dist/{Shape-SUrUeF3X.js → Shape-DDlEMmEH.js} +1 -1
  11. package/dist/{Slicer-CmNenqVf.js → Slicer-9fKW4jdg.js} +2 -2
  12. package/dist/{SparkTooltip-ei9JAdhp.js → SparkTooltip-ihDtFBfE.js} +1 -1
  13. package/dist/{Title-Cs1ERPK1.js → Title-BSMIXsO-.js} +1 -1
  14. package/dist/{Tooltip-BPHP7zKx.js → Tooltip-5k_LVW7M.js} +1 -1
  15. package/dist/{UserOptions-Bva21NaP.js → UserOptions-cQVcNvL4.js} +2 -2
  16. package/dist/{dom-to-png-DEY2hPQ8.js → dom-to-png-i9Xk-UM3.js} +1 -1
  17. package/dist/{img-CFInIivF.js → img-BIkc_Mwq.js} +1 -1
  18. package/dist/{index-D-yumpNq.js → index-CtbOohBL.js} +7 -6
  19. package/dist/{pdf-CJ3vGO73.js → pdf-CpR3xSEi.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +1 -1
  22. package/dist/types/vue-data-ui.d.ts +1 -1
  23. package/dist/{useNestedProp-4fuWVKn-.js → useNestedProp-CX2Zg_2q.js} +1 -1
  24. package/dist/{usePrinter-gFioE1Y4.js → usePrinter-CffQcXmv.js} +2 -2
  25. package/dist/{vue-data-ui-DD71tPOA.js → vue-data-ui-CVqoNcKq.js} +64 -64
  26. package/dist/vue-data-ui.js +1 -1
  27. package/dist/{vue-ui-3d-bar-CKhooG-R.js → vue-ui-3d-bar-C0XYdF44.js} +6 -6
  28. package/dist/{vue-ui-accordion-D5i7qEAE.js → vue-ui-accordion-Be4mB7Ie.js} +3 -3
  29. package/dist/{vue-ui-age-pyramid-BjNREIhx.js → vue-ui-age-pyramid-Buitqn-K.js} +6 -6
  30. package/dist/{vue-ui-annotator-DcQ2Oyv9.js → vue-ui-annotator-yIgGpx-u.js} +2 -2
  31. package/dist/{vue-ui-bullet-C1auR5KW.js → vue-ui-bullet-L-8-mMWt.js} +7 -7
  32. package/dist/{vue-ui-candlestick-Bip708tH.js → vue-ui-candlestick-DrhSO36T.js} +7 -7
  33. package/dist/{vue-ui-carousel-table-DouosbyY.js → vue-ui-carousel-table-ER0V96Qc.js} +4 -4
  34. package/dist/{vue-ui-chestnut-tWezWnDx.js → vue-ui-chestnut-PegyR48K.js} +5 -5
  35. package/dist/{vue-ui-chord-BsFTWGIi.js → vue-ui-chord-CjL4qo4h.js} +8 -8
  36. package/dist/{vue-ui-circle-pack-CNiTn-aC.js → vue-ui-circle-pack-C2leU1Bj.js} +6 -6
  37. package/dist/{vue-ui-cursor-BPb_8oeI.js → vue-ui-cursor-DkGs5Y-h.js} +2 -2
  38. package/dist/{vue-ui-dashboard-eWD-W7s-.js → vue-ui-dashboard-BKqRkr9F.js} +62 -62
  39. package/dist/{vue-ui-digits-Cb_0thM9.js → vue-ui-digits-DN3wuHku.js} +2 -2
  40. package/dist/{vue-ui-donut-evolution-Ck5fYxz8.js → vue-ui-donut-evolution-CYAdg1b9.js} +8 -8
  41. package/dist/{vue-ui-donut-Q7oJm4te.js → vue-ui-donut-prM0EVV3.js} +8 -8
  42. package/dist/{vue-ui-dumbbell-BC7jtKBa.js → vue-ui-dumbbell-BEsApAKs.js} +7 -7
  43. package/dist/{vue-ui-flow-Dn1KSWzM.js → vue-ui-flow-CGrlxMx4.js} +7 -7
  44. package/dist/{vue-ui-funnel-Cv9r-c4E.js → vue-ui-funnel-DsHK6ivN.js} +6 -6
  45. package/dist/{vue-ui-galaxy-B9N1l83Q.js → vue-ui-galaxy-DmxKgB8s.js} +5 -5
  46. package/dist/{vue-ui-gauge-BSYnB_lN.js → vue-ui-gauge-CIwErB4d.js} +6 -6
  47. package/dist/{vue-ui-gizmo-LUFrKPYa.js → vue-ui-gizmo-sEqCNBeP.js} +3 -3
  48. package/dist/{vue-ui-heatmap-YBENeONZ.js → vue-ui-heatmap-BUb2YutF.js} +7 -7
  49. package/dist/{vue-ui-history-plot-Csqxg4kn.js → vue-ui-history-plot-CdTPGm7T.js} +7 -7
  50. package/dist/{vue-ui-kpi-rDztj6b8.js → vue-ui-kpi-Qas3m2fP.js} +3 -3
  51. package/dist/{vue-ui-mini-loader-BkOBMAYL.js → vue-ui-mini-loader-VBkgnpvb.js} +2 -2
  52. package/dist/{vue-ui-molecule-DhayLUqN.js → vue-ui-molecule-n_h5S1AJ.js} +5 -5
  53. package/dist/{vue-ui-mood-radar-BCQ2EsnM.js → vue-ui-mood-radar-CMYNgfEX.js} +7 -7
  54. package/dist/{vue-ui-nested-donuts-DcbzMYwa.js → vue-ui-nested-donuts-CgtSSnX4.js} +9 -9
  55. package/dist/{vue-ui-onion-DIhMbKlH.js → vue-ui-onion-LJL_vZsd.js} +7 -7
  56. package/dist/{vue-ui-parallel-coordinate-plot-CEAuXFQd.js → vue-ui-parallel-coordinate-plot-CNoQCkn3.js} +8 -8
  57. package/dist/{vue-ui-quadrant-BJoPqcUR.js → vue-ui-quadrant-CHVaCpVU.js} +8 -8
  58. package/dist/{vue-ui-quick-chart-BDopIXci.js → vue-ui-quick-chart-BVqz0KjK.js} +6 -6
  59. package/dist/{vue-ui-radar-CezXw-5X.js → vue-ui-radar-DBnbM5-j.js} +7 -7
  60. package/dist/{vue-ui-rating-D_1gVG1C.js → vue-ui-rating-UOHVbd2m.js} +2 -2
  61. package/dist/{vue-ui-relation-circle-CPAiZm-t.js → vue-ui-relation-circle-C-IvOpnn.js} +6 -6
  62. package/dist/{vue-ui-ridgeline-0U0U_SWH.js → vue-ui-ridgeline-D45IIlwI.js} +8 -8
  63. package/dist/{vue-ui-rings-VGOR5lIL.js → vue-ui-rings-BlkuuqFG.js} +8 -8
  64. package/dist/{vue-ui-scatter-BhT1unMb.js → vue-ui-scatter-Dyj3ToRI.js} +8 -8
  65. package/dist/{vue-ui-skeleton-BIqRDU3s.js → vue-ui-skeleton-QVEczJH-.js} +3 -3
  66. package/dist/{vue-ui-smiley-C-H9C0lW.js → vue-ui-smiley-DRHcobNq.js} +2 -2
  67. package/dist/{vue-ui-spark-trend-7DmaZbP4.js → vue-ui-spark-trend-DXG6rNid.js} +3 -3
  68. package/dist/{vue-ui-sparkbar-Be-rwhWK.js → vue-ui-sparkbar-BKUiiF6a.js} +3 -3
  69. package/dist/{vue-ui-sparkgauge-DlZETxT0.js → vue-ui-sparkgauge-CVNtaTmQ.js} +3 -3
  70. package/dist/{vue-ui-sparkhistogram-CO-lESLe.js → vue-ui-sparkhistogram-CL-GGXnE.js} +4 -4
  71. package/dist/{vue-ui-sparkline-DHnVSbfz.js → vue-ui-sparkline-Bo3_0zXP.js} +3 -3
  72. package/dist/{vue-ui-sparkstackbar-DMhoW0wL.js → vue-ui-sparkstackbar-D-4HcEC5.js} +3 -3
  73. package/dist/{vue-ui-stackbar-D29F-CC8.js → vue-ui-stackbar-f-WRJlR7.js} +9 -9
  74. package/dist/{vue-ui-strip-plot-D-kL2TuU.js → vue-ui-strip-plot-BReJ8Fu2.js} +7 -7
  75. package/dist/{vue-ui-table-Ba-6lvHK.js → vue-ui-table-BtV6gdr0.js} +3 -3
  76. package/dist/{vue-ui-table-heatmap-Bgmpcqjc.js → vue-ui-table-heatmap-DYt4JuFn.js} +5 -5
  77. package/dist/{vue-ui-table-sparkline-C2OXwvKi.js → vue-ui-table-sparkline-orvI51XX.js} +4 -4
  78. package/dist/{vue-ui-thermometer-DHm2lPt6.js → vue-ui-thermometer-DHYfNI72.js} +6 -6
  79. package/dist/{vue-ui-timer-DepG-xUP.js → vue-ui-timer-Db8x7YNB.js} +5 -5
  80. package/dist/{vue-ui-tiremarks-DvN15IaA.js → vue-ui-tiremarks-YooZQ9m2.js} +6 -6
  81. package/dist/{vue-ui-treemap-CQqmQoiv.js → vue-ui-treemap-DoWDzO-L.js} +8 -8
  82. package/dist/{vue-ui-vertical-bar-DkG5oPHr.js → vue-ui-vertical-bar-CW5JXp4c.js} +9 -9
  83. package/dist/{vue-ui-waffle-DhZqKzQO.js → vue-ui-waffle-D-KCbDMp.js} +8 -8
  84. package/dist/{vue-ui-wheel-DIxPMuHE.js → vue-ui-wheel-BKb5Eue9.js} +6 -6
  85. package/dist/{vue-ui-word-cloud-BF3bc8Sz.js → vue-ui-word-cloud-DZx1tacb.js} +6 -6
  86. package/dist/{vue-ui-world-DDfw2agO.js → vue-ui-world-BONqyLSN.js} +6 -6
  87. package/dist/{vue-ui-xy-CNe2PVqk.js → vue-ui-xy-DvQtTYuV.js} +1236 -1258
  88. package/dist/{vue-ui-xy-canvas-DOocQWkW.js → vue-ui-xy-canvas-C1WcRAzL.js} +8 -8
  89. package/package.json +1 -1
@@ -1,125 +1,127 @@
1
- import { watch as zl, nextTick as be, defineAsyncComponent as De, useSlots as Pt, getCurrentInstance as Ht, ref as w, computed as A, onMounted as ga, toRefs as Bt, onBeforeUnmount as lt, createElementBlock as r, openBlock as u, normalizeStyle as C, normalizeClass as ul, createBlock as Ve, createCommentVNode as d, createVNode as Al, unref as v, createSlots as Rt, withCtx as ne, renderSlot as Z, normalizeProps as rl, guardReactiveProps as il, createElementVNode as g, Fragment as h, renderList as y, toDisplayString as se, mergeProps as xa, withDirectives as Yt, vModelCheckbox as Ft, createTextVNode as Et } from "vue";
2
- import { u as Wt, c as ba, e as ma, A as Gt, a5 as Ue, b as Xt, D as Ml, ab as nl, d as Dt, p as Ut, ac as Gl, aa as B, ad as qt, v as T, ae as at, V as tt, af as ot, U as st, ag as Zt, ah as ut, ai as rt, x as Jt, y as Kt, _ as it, R as Pe, i as fe, f as Se, w as cl, s as Ce, a8 as D, L as Qt, F as qe, aj as Xl, I as jt, ak as Ze, C as gl, t as eo, a as lo, o as nt, q as ao, r as to, E as xl } from "./index-D-yumpNq.js";
3
- import { u as ya } from "./useNestedProp-4fuWVKn-.js";
4
- import { u as oo } from "./useTimeLabels-DFkUfjfs.js";
5
- import { S as so } from "./Slicer-CmNenqVf.js";
6
- import uo from "./Title-Cs1ERPK1.js";
7
- import { _ as Dl } from "./Shape-SUrUeF3X.js";
8
- import ro from "./img-CFInIivF.js";
9
- import { u as io } from "./usePrinter-gFioE1Y4.js";
10
- import { u as no, B as co } from "./useLoading-Bt5Doa8m.js";
11
- import { _ as vo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- function ho({
13
- timeLabelsEls: bl,
14
- timeLabels: Ul,
15
- slicer: Cl,
16
- configRef: m,
17
- rotationPath: vl,
1
+ import { watch as Gl, nextTick as fl, defineAsyncComponent as De, useSlots as Tt, getCurrentInstance as Ot, ref as w, computed as L, onMounted as Za, toRefs as Nt, watchEffect as Vt, onBeforeUnmount as Ja, createElementBlock as i, openBlock as u, normalizeStyle as C, normalizeClass as tl, createBlock as Oe, createCommentVNode as d, createVNode as Al, unref as v, createSlots as Pt, withCtx as ie, renderSlot as U, normalizeProps as ol, guardReactiveProps as sl, createElementVNode as g, Fragment as h, renderList as y, toDisplayString as oe, mergeProps as va, withDirectives as Ht, vModelCheckbox as Rt, createTextVNode as Bt } from "vue";
2
+ import { u as Yt, c as da, e as ha, A as Ft, a5 as qe, b as Et, D as Ml, ab as ul, d as Wt, p as Xt, ac as El, aa as R, ad as Gt, v as T, ae as Ka, V as Qa, af as ja, U as et, ag as Dt, ah as lt, ai as at, i as ne, x as qt, y as Ut, _ as tt, R as Ne, f as pe, w as rl, s as Me, a8 as G, L as Zt, F as Ue, aj as Wl, I as Jt, ak as Ze, C as Fe, t as Kt, a as Qt, o as ot, q as jt, r as eo, E as hl } from "./index-CtbOohBL.js";
3
+ import { u as fa } from "./useNestedProp-CX2Zg_2q.js";
4
+ import { u as lo } from "./useTimeLabels-DFkUfjfs.js";
5
+ import { S as ao } from "./Slicer-9fKW4jdg.js";
6
+ import to from "./Title-BSMIXsO-.js";
7
+ import { _ as Xl } from "./Shape-DDlEMmEH.js";
8
+ import oo from "./img-BIkc_Mwq.js";
9
+ import { u as so } from "./usePrinter-CffQcXmv.js";
10
+ import { u as uo, B as ro } from "./useLoading-Bt5Doa8m.js";
11
+ import { t as io } from "./useResponsive-DfdjqQps.js";
12
+ import { _ as no } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ function co({
14
+ timeLabelsEls: gl,
15
+ timeLabels: Dl,
16
+ slicer: zl,
17
+ configRef: x,
18
+ rotationPath: il,
18
19
  autoRotatePath: ql,
19
- isAutoSize: Zl,
20
- setViewBox: Jl,
21
- forceResizeObserver: Kl
20
+ isAutoSize: Ul,
21
+ setViewBox: Cl,
22
+ forceResizeObserver: Il,
23
+ callback: nl
22
24
  }) {
23
- function ml(re, E) {
24
- return E.reduce((j, U) => j && j[U], re);
25
+ function xl(Q, j) {
26
+ return j.reduce((F, J) => F && F[J], Q);
25
27
  }
26
- function Il(re, E, j) {
27
- E.slice(0, -1).reduce((U, ke) => U[ke], re)[E.slice(-1)] = j;
28
+ function Tl(Q, j, F) {
29
+ j.slice(0, -1).reduce((J, ke) => J[ke], Q)[j.slice(-1)] = F;
28
30
  }
29
- function Ql(re) {
30
- const E = /translate\(\s*([^\s,]+)\s*,\s*([^\s,]+)\s*\)/.exec(re);
31
- return E ? {
32
- x: parseFloat(E[1]),
33
- y: parseFloat(E[2])
31
+ function bl(Q) {
32
+ const j = /translate\(\s*([^\s,]+)\s*,\s*([^\s,]+)\s*\)/.exec(Q);
33
+ return j ? {
34
+ x: parseFloat(j[1]),
35
+ y: parseFloat(j[2])
34
36
  } : { x: 0, y: 0 };
35
37
  }
36
- async function Je() {
37
- await be();
38
- const re = bl.value;
39
- if (!re) return;
40
- const j = Array.from(re.querySelectorAll(".vue-data-ui-time-label")).map((me) => ({
41
- ...Ql(me.getAttribute("transform")),
42
- width: me.getBBox().width
38
+ async function cl() {
39
+ await fl();
40
+ const Q = gl.value;
41
+ if (!Q) return;
42
+ const F = Array.from(Q.querySelectorAll(".vue-data-ui-time-label")).map((Pe) => ({
43
+ ...bl(Pe.getAttribute("transform")),
44
+ width: Pe.getBBox().width
43
45
  }));
44
- let U = !1;
46
+ let J = !1;
45
47
  const ke = 4;
46
- for (let me = 0; me < j.length && !U; me += 1)
47
- for (let dl = me + 1; dl < j.length; dl += 1) {
48
- const Ke = j[me], Qe = j[dl];
49
- if (!(Ke.x + Ke.width + ke < Qe.x || Qe.x + Qe.width + ke < Ke.x)) {
50
- U = !0;
48
+ for (let Pe = 0; Pe < F.length && !J; Pe += 1)
49
+ for (let Je = Pe + 1; Je < F.length; Je += 1) {
50
+ const Ke = F[Pe], ze = F[Je];
51
+ if (!(Ke.x + Ke.width + ke < ze.x || ze.x + ze.width + ke < Ke.x)) {
52
+ J = !0;
51
53
  break;
52
54
  }
53
55
  }
54
- const He = ml(m.value, vl);
55
- U && !He ? (Il(m.value, vl, -30.0001), Zl.value && (Jl(), Kl())) : !U && He === -30.0001 && Il(m.value, vl, 0);
56
+ const Ve = xl(x.value, il);
57
+ J && !Ve ? (Tl(x.value, il, -30.0001), nl && nl({ collision: J }), Ul.value && Cl && Il && (Cl(), Il())) : !J && Ve === -30.0001 && (Tl(x.value, il, 0), nl && nl({ collision: J }));
56
58
  }
57
- function Tl(re, E) {
58
- let j;
59
- return (...U) => {
60
- clearTimeout(j), j = setTimeout(() => re(...U), E);
59
+ function Zl(Q, j) {
60
+ let F;
61
+ return (...J) => {
62
+ clearTimeout(F), F = setTimeout(() => Q(...J), j);
61
63
  };
62
64
  }
63
- const jl = Tl(Je, 200);
64
- return zl(
65
+ const ml = Zl(cl, 200);
66
+ return Gl(
65
67
  [
66
- () => Ul.value,
67
- () => ml(m.value, vl),
68
- () => Cl.value.start,
69
- () => Cl.value.end
68
+ () => Dl.value,
69
+ () => xl(x.value, il),
70
+ () => zl.value.start,
71
+ () => zl.value.end
70
72
  ],
71
- async ([, , re, E], [, , j, U]) => {
72
- if (!ml(m.value, ql)) return;
73
- re !== j || E !== U ? jl() : await Je();
73
+ async ([, , Q, j], [, , F, J]) => {
74
+ if (!xl(x.value, ql)) return;
75
+ Q !== F || j !== J ? ml() : await cl();
74
76
  },
75
77
  { immediate: !0 }
76
- ), { detectTimeLabelCollision: Je };
78
+ ), { detectTimeLabelCollision: cl };
77
79
  }
78
- const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "width", "height"], bo = { key: 1 }, mo = { class: "vue-ui-xy-grid" }, yo = ["stroke", "x1", "x2", "y1", "y2"], po = ["stroke", "x1", "x2", "y1", "y2"], ko = { key: 1 }, _o = ["x1", "x2", "y1", "y2", "stroke"], wo = ["x1", "x2", "y1", "y2", "stroke"], So = ["x1", "x2", "y1", "y2", "stroke"], $o = { key: 3 }, Lo = ["d", "stroke"], Ao = { key: 4 }, Mo = ["d", "stroke"], zo = ["id"], Co = ["stop-color"], Io = ["stop-color"], To = ["stop-color"], Oo = ["id"], No = ["stop-color"], Vo = ["stop-color"], Po = ["stop-color"], Ho = ["id"], Bo = ["stop-color"], Ro = ["stop-color"], Yo = ["id"], Fo = ["stop-color"], Eo = ["stop-color"], Wo = ["id"], Go = ["stop-color"], Xo = ["stop-color"], Do = ["x", "y", "height", "width", "fill"], Uo = ["x", "y", "width"], qo = { key: 0 }, Zo = ["x", "y", "height", "width", "fill"], Jo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ko = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Qo = ["width", "x", "y"], jo = { key: 0 }, es = ["id"], ls = ["fill"], as = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ts = ["x", "y", "font-size", "fill"], os = ["stroke", "x1", "x2", "y1", "y2"], ss = { key: 3 }, us = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rs = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], is = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ns = ["fill", "font-size", "transform"], cs = ["x1", "x2", "y1", "y2", "stroke"], vs = ["x", "y", "font-size", "fill"], ds = ["x1", "x2", "y1", "y2", "stroke"], hs = ["x", "y", "font-size", "fill"], fs = ["width", "x", "y"], gs = { style: { width: "100%" } }, xs = { key: 0 }, bs = ["id"], ms = ["fill"], ys = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ps = ["x", "y", "font-size", "fill"], ks = ["d", "stroke", "stroke-width", "stroke-dasharray"], _s = ["d", "stroke", "stroke-width", "stroke-dasharray"], ws = { key: 6 }, Ss = { key: 0 }, $s = ["d", "fill"], Ls = ["d", "fill"], As = ["d", "fill"], Ms = ["d", "fill"], zs = ["d", "stroke", "stroke-width", "stroke-dasharray"], Cs = ["d", "stroke", "stroke-width", "stroke-dasharray"], Is = ["width", "x", "y"], Ts = { style: { width: "100%" } }, Os = { key: 3 }, Ns = ["id"], Vs = ["fill"], Ps = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Hs = ["x", "y", "font-size", "fill"], Bs = { key: 7 }, Rs = ["x", "y", "font-size", "fill"], Ys = ["x", "y", "font-size", "fill", "font-weight"], Fs = { key: 8 }, Es = ["x", "y", "font-size", "fill"], Ws = { key: 9 }, Gs = ["x", "y"], Xs = ["innerHTML"], Ds = ["x", "y"], Us = ["innerHTML"], qs = ["x1", "x2", "y1", "y2", "stroke"], Zs = { key: 10 }, Js = ["x", "y", "font-size", "fill"], Ks = { key: 11 }, Qs = ["x", "y"], js = ["innerHTML"], eu = ["x", "y"], lu = ["innerHTML"], au = ["x1", "x2", "y1", "y2", "stroke"], tu = ["x", "y", "font-size", "fill", "innerHTML"], ou = ["x", "y", "font-size", "fill", "innerHTML"], su = ["x", "y", "font-size", "fill", "innerHTML"], uu = ["x", "y", "font-size", "fill", "innerHTML"], ru = ["id"], iu = ["stop-color"], nu = ["stop-color"], cu = ["x", "y", "width", "height", "fill", "onMouseenter"], vu = ["font-size", "fill", "transform"], du = ["x", "y", "font-size", "fill"], hu = ["text-anchor", "font-size", "fill", "transform", "onClick"], fu = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], gu = { key: 14 }, xu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], bu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], mu = ["y", "x", "width", "height", "fill"], yu = ["id", "x", "y", "font-size", "fill", "text-anchor"], pu = { key: 15 }, ku = ["x", "y", "height", "width", "onMouseenter", "onClick"], _u = {
80
+ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "height"], go = { key: 1 }, xo = { class: "vue-ui-xy-grid" }, bo = ["stroke", "x1", "x2", "y1", "y2"], mo = ["stroke", "x1", "x2", "y1", "y2"], yo = { key: 1 }, po = ["x1", "x2", "y1", "y2", "stroke"], ko = ["x1", "x2", "y1", "y2", "stroke"], _o = ["x1", "x2", "y1", "y2", "stroke"], wo = { key: 3 }, So = ["d", "stroke"], $o = { key: 4 }, Lo = ["d", "stroke"], Ao = ["id"], Mo = ["stop-color"], zo = ["stop-color"], Co = ["stop-color"], Io = ["id"], To = ["stop-color"], Oo = ["stop-color"], No = ["stop-color"], Vo = ["id"], Po = ["stop-color"], Ho = ["stop-color"], Ro = ["id"], Bo = ["stop-color"], Yo = ["stop-color"], Fo = ["id"], Eo = ["stop-color"], Wo = ["stop-color"], Xo = ["x", "y", "height", "width", "fill"], Go = ["x", "y", "width"], Do = { key: 0 }, qo = ["x", "y", "height", "width", "fill"], Uo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Zo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Jo = ["width", "x", "y"], Ko = { key: 0 }, Qo = ["id"], jo = ["fill"], es = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ls = ["x", "y", "font-size", "fill"], as = ["stroke", "x1", "x2", "y1", "y2"], ts = { key: 3 }, os = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ss = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], us = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], rs = ["fill", "font-size", "transform"], is = ["x1", "x2", "y1", "y2", "stroke"], ns = ["x", "y", "font-size", "fill"], cs = ["x1", "x2", "y1", "y2", "stroke"], vs = ["x", "y", "font-size", "fill"], ds = ["width", "x", "y"], hs = { style: { width: "100%" } }, fs = { key: 0 }, gs = ["id"], xs = ["fill"], bs = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ms = ["x", "y", "font-size", "fill"], ys = ["d", "stroke", "stroke-width", "stroke-dasharray"], ps = ["d", "stroke", "stroke-width", "stroke-dasharray"], ks = { key: 6 }, _s = { key: 0 }, ws = ["d", "fill"], Ss = ["d", "fill"], $s = ["d", "fill"], Ls = ["d", "fill"], As = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ms = ["d", "stroke", "stroke-width", "stroke-dasharray"], zs = ["width", "x", "y"], Cs = { style: { width: "100%" } }, Is = { key: 3 }, Ts = ["id"], Os = ["fill"], Ns = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Vs = ["x", "y", "font-size", "fill"], Ps = { key: 7 }, Hs = ["x", "y", "font-size", "fill"], Rs = ["x", "y", "font-size", "fill", "font-weight"], Bs = { key: 8 }, Ys = ["x", "y", "font-size", "fill"], Fs = { key: 9 }, Es = ["x", "y"], Ws = ["innerHTML"], Xs = ["x", "y"], Gs = ["innerHTML"], Ds = ["x1", "x2", "y1", "y2", "stroke"], qs = { key: 10 }, Us = ["x", "y", "font-size", "fill"], Zs = { key: 11 }, Js = ["x", "y"], Ks = ["innerHTML"], Qs = ["x", "y"], js = ["innerHTML"], eu = ["x1", "x2", "y1", "y2", "stroke"], lu = ["x", "y", "font-size", "fill", "innerHTML"], au = ["x", "y", "font-size", "fill", "innerHTML"], tu = ["x", "y", "font-size", "fill", "innerHTML"], ou = ["x", "y", "font-size", "fill", "innerHTML"], su = ["id"], uu = ["stop-color"], ru = ["stop-color"], iu = ["x", "y", "width", "height", "fill", "onMouseenter"], nu = ["font-size", "fill", "transform"], cu = ["x", "y", "font-size", "fill"], vu = ["text-anchor", "font-size", "fill", "transform", "onClick"], du = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], hu = { key: 14 }, fu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], gu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], xu = ["y", "x", "width", "height", "fill"], bu = ["id", "x", "y", "font-size", "fill", "text-anchor"], mu = { key: 15 }, yu = ["x", "y", "height", "width", "onMouseenter", "onClick"], pu = {
79
81
  key: 16,
80
82
  style: { "pointer-events": "none" }
81
- }, wu = ["x", "y"], Su = ["cx", "cy", "r", "fill"], $u = {
83
+ }, ku = ["x", "y"], _u = ["cx", "cy", "r", "fill"], wu = {
82
84
  key: 4,
83
85
  class: "vue-data-ui-watermark"
84
- }, Lu = {
86
+ }, Su = {
85
87
  class: "vue-ui-xy-tag-arrow",
86
88
  height: "20",
87
89
  viewBox: "0 0 10 20",
88
90
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
89
- }, Au = ["fill"], Mu = ["innerHTML"], zu = {
91
+ }, $u = ["fill"], Lu = ["innerHTML"], Au = {
90
92
  class: "vue-ui-xy-tag-arrow",
91
93
  height: "100%",
92
94
  viewBox: "0 0 10 20",
93
95
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
94
- }, Cu = ["fill"], Iu = ["innerHTML"], Tu = {
96
+ }, Mu = ["fill"], zu = ["innerHTML"], Cu = {
95
97
  class: "vue-ui-xy-tag-arrow",
96
98
  height: "20",
97
99
  viewBox: "0 0 10 20",
98
100
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
99
- }, Ou = ["fill"], Nu = ["innerHTML"], Vu = {
101
+ }, Iu = ["fill"], Tu = ["innerHTML"], Ou = {
100
102
  class: "vue-ui-xy-tag-arrow",
101
103
  height: "100%",
102
104
  viewBox: "0 0 10 20",
103
105
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
104
- }, Pu = ["fill"], Hu = ["innerHTML"], Bu = ["onClick"], Ru = {
106
+ }, Nu = ["fill"], Vu = ["innerHTML"], Pu = ["onClick"], Hu = {
105
107
  key: 0,
106
108
  viewBox: "0 0 20 12",
107
109
  height: "14",
108
110
  width: "20"
109
- }, Yu = ["stroke", "fill"], Fu = {
111
+ }, Ru = ["stroke", "fill"], Bu = {
110
112
  key: 1,
111
113
  viewBox: "0 0 40 40",
112
114
  height: "14",
113
115
  width: "14"
114
- }, Eu = ["fill"], Wu = ["fill"], Gu = {
116
+ }, Yu = ["fill"], Fu = ["fill"], Eu = {
115
117
  key: 2,
116
118
  viewBox: "0 0 12 12",
117
119
  height: "14",
118
120
  width: "14"
119
- }, Xu = {
121
+ }, Wu = {
120
122
  style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
121
123
  "data-dom-to-png-ignore": ""
122
- }, Du = ["innerHTML"], Uu = {
124
+ }, Xu = ["innerHTML"], Gu = {
123
125
  __name: "vue-ui-xy",
124
126
  props: {
125
127
  config: {
@@ -136,25 +138,25 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
136
138
  }
137
139
  },
138
140
  emits: ["selectTimeLabel", "selectX", "selectLegend"],
139
- setup(bl, { expose: Ul, emit: Cl }) {
140
- const m = bl, vl = De(() => import("./DataTable-CjRGdd0l.js")), ql = De(() => import("./Tooltip-BPHP7zKx.js")), Zl = De(() => import("./UserOptions-Bva21NaP.js")), Jl = De(() => import("./BaseIcon-BesWLqxG.js")), Kl = De(() => import("./vue-ui-table-sparkline-C2OXwvKi.js")), ml = De(() => import("./vue-ui-accordion-D5i7qEAE.js")), Il = De(() => import("./PackageVersion-DBzqTu79.js")), Ql = De(() => import("./PenAndPaper-Dtl-piX1.js")), Je = Cl, Tl = Pt(), jl = Ht(), { vue_ui_xy: re } = Wt(), E = w(null), j = w(null), U = w(null), ke = w(null), He = w(null), me = w(null), dl = w(null), Ke = w(null), Qe = w(null), Ol = w(null), ea = w(null), je = w(null), la = w(null), aa = w(0), M = w(null), pa = w(!0), ce = w(600), K = w(1e3), el = w("0 0 1000 600"), ct = w({ x: 0, y: 0 }), yl = w({ line: "line", bar: "bar", plot: "plot" }), Nl = w(!1), hl = w(!1), ka = w(!1), _ = w(null), ll = w(null), ue = w([]), J = w(ba()), _a = w(0), wa = w(0), Sa = w(0), pl = w(!0), ta = w(0), O = w(null), $a = w(!1), oa = w(!0), Vl = w(!0), $e = w(null), Be = w({}), Pl = w(null), La = w(0), vt = w(1), dt = A(() => ({
141
- height: ce.value,
142
- width: K.value
143
- })), ht = m.config.downsample && m.config.downsample.threshold ? m.config.downsample.threshold : 500, f = w({
141
+ setup(gl, { expose: Dl, emit: zl }) {
142
+ const x = gl, il = De(() => import("./DataTable-DFE1SX7o.js")), ql = De(() => import("./Tooltip-5k_LVW7M.js")), Ul = De(() => import("./UserOptions-cQVcNvL4.js")), Cl = De(() => import("./BaseIcon-QW_RwBxU.js")), Il = De(() => import("./vue-ui-table-sparkline-orvI51XX.js")), nl = De(() => import("./vue-ui-accordion-Be4mB7Ie.js")), xl = De(() => import("./PackageVersion-OcsR31Tn.js")), Tl = De(() => import("./PenAndPaper-BvJs1gwT.js")), bl = zl, cl = Tt(), Zl = Ot(), { vue_ui_xy: ml } = Yt(), Q = w(null), j = w(null), F = w(null), J = w(null), ke = w(null), Ve = w(null), Pe = w(null), Je = w(null), Ke = w(null), ze = w(null), Jl = w(null), Qe = w(null), Kl = w(null), Ql = w(0), M = w(null), ga = w(!0), ge = w(600), se = w(1e3), Ol = w("0 0 1000 600"), st = w({ x: 0, y: 0 }), yl = w({ line: "line", bar: "bar", plot: "plot" }), Nl = w(!1), vl = w(!1), xa = w(!1), _ = w(null), je = w(null), ue = w([]), Z = w(da()), ba = w(0), ma = w(0), ya = w(0), pl = w(!0), jl = w(0), O = w(null), pa = w(!1), ea = w(!0), Vl = w(!0), _e = w(null), He = w({}), Pl = w(null), ut = L(() => ({
143
+ height: ge.value,
144
+ width: se.value
145
+ })), rt = x.config.downsample && x.config.downsample.threshold ? x.config.downsample.threshold : 500, f = w({
144
146
  dataLabels: { show: !0 },
145
147
  showTooltip: !0,
146
148
  showTable: !1,
147
149
  isStacked: !1,
148
150
  useIndividualScale: !1
149
- }), x = w({
151
+ }), b = w({
150
152
  xAxis: 18,
151
153
  yAxis: 12,
152
154
  dataLabels: 20,
153
155
  plotLabels: 10
154
- }), Ie = w({ plot: 3, line: 3 });
155
- ga(() => {
156
- m.dataset.length && m.dataset.forEach((a, c) => {
157
- [null, void 0].includes(a.series) && ma({
156
+ }), Ce = w({ plot: 3, line: 3 });
157
+ Za(() => {
158
+ x.dataset.length && x.dataset.forEach((a, c) => {
159
+ [null, void 0].includes(a.series) && ha({
158
160
  componentName: "VueUiXy",
159
161
  type: "datasetSerieAttribute",
160
162
  property: "series (number[])",
@@ -163,43 +165,38 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
163
165
  });
164
166
  });
165
167
  });
166
- function sa() {
167
- if (!Object.keys(m.config || {}).length)
168
- return re;
169
- const a = ya({
170
- userConfig: m.config,
171
- defaultConfig: re
168
+ function la() {
169
+ if (!Object.keys(x.config || {}).length)
170
+ return ml;
171
+ const a = fa({
172
+ userConfig: x.config,
173
+ defaultConfig: ml
172
174
  });
173
- return m.config && gl(m.config, "chart.highlightArea") && (Array.isArray(m.config.chart.highlightArea) ? a.chart.highlightArea = m.config.chart.highlightArea : a.chart.highlightArea = [m.config.chart.highlightArea]), m.config && gl(m.config, "chart.grid.labels.yAxis.scaleMin") ? a.chart.grid.labels.yAxis.scaleMin = m.config.chart.grid.labels.yAxis.scaleMin : a.chart.grid.labels.yAxis.scaleMin = null, m.config && gl(m.config, "chart.grid.labels.yAxis.scaleMax") ? a.chart.grid.labels.yAxis.scaleMax = m.config.chart.grid.labels.yAxis.scaleMax : a.chart.grid.labels.yAxis.scaleMax = null, m.config && gl(m.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = m.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, m.config && gl(m.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = m.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, m.config && gl(m.config, "chart.grid.labels.yAxis.groupColor") ? a.chart.grid.labels.yAxis.groupColor = m.config.chart.grid.labels.yAxis.groupColor : a.chart.grid.labels.yAxis.groupColor = null, m.config && m.config.chart.annotations && Array.isArray(m.config.chart.annotations) && m.config.chart.annotations.length ? a.chart.annotations = m.config.chart.annotations.map((c) => ya({
174
- defaultConfig: re.chart.annotations[0],
175
+ return x.config && Fe(x.config, "chart.highlightArea") && (Array.isArray(x.config.chart.highlightArea) ? a.chart.highlightArea = x.config.chart.highlightArea : a.chart.highlightArea = [x.config.chart.highlightArea]), x.config && Fe(x.config, "chart.grid.labels.yAxis.scaleMin") ? a.chart.grid.labels.yAxis.scaleMin = x.config.chart.grid.labels.yAxis.scaleMin : a.chart.grid.labels.yAxis.scaleMin = null, x.config && Fe(x.config, "chart.grid.labels.yAxis.scaleMax") ? a.chart.grid.labels.yAxis.scaleMax = x.config.chart.grid.labels.yAxis.scaleMax : a.chart.grid.labels.yAxis.scaleMax = null, x.config && Fe(x.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = x.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, x.config && Fe(x.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = x.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, x.config && Fe(x.config, "chart.grid.labels.yAxis.groupColor") ? a.chart.grid.labels.yAxis.groupColor = x.config.chart.grid.labels.yAxis.groupColor : a.chart.grid.labels.yAxis.groupColor = null, x.config && x.config.chart.annotations && Array.isArray(x.config.chart.annotations) && x.config.chart.annotations.length ? a.chart.annotations = x.config.chart.annotations.map((c) => fa({
176
+ defaultConfig: ml.chart.annotations[0],
175
177
  userConfig: c
176
- })) : a.chart.annotations = [], m.config && m.config.autoSize && (m.config && m.config.debug && (m.config.chart.padding.top && console.warn("Vue Data UI - VueUiXy - autoSize mode ignores chart.padding.top, set a 0 value to remove this warning"), m.config.chart.padding.right && console.warn("Vue Data UI - VueUiXy - autoSize mode ignores chart.padding.right, set a 0 value to remove this warning"), m.config.chart.padding.bottom && console.warn("Vue Data UI - VueUiXy - autoSize mode ignores chart.padding.bottom, set a 0 value to remove this warning"), m.config.chart.padding.left && console.warn("Vue Data UI - VueUiXy - autoSize mode ignores chart.padding.left, set a 0 value to remove this warning")), a.chart.padding = {
177
- top: 0,
178
- right: 0,
179
- bottom: 0,
180
- left: 0
181
- }), a.theme ? {
182
- ...ya({
183
- userConfig: lo.vue_ui_xy[a.theme] || m.config,
178
+ })) : a.chart.annotations = [], x.config && Fe(x.config, "chart.grid.position") && x.config.chart.grid.position === "start" && x.dataset.length && x.dataset.some((c) => c.type === "bar") && (a.chart.grid.position = "middle", Fe(x.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), x.config && Fe(x.config, "chart.grid.labels.yAxis.serieNameFormatter") ? a.chart.grid.labels.yAxis.serieNameFormatter = x.config.chart.grid.labels.yAxis.serieNameFormatter : a.chart.grid.labels.yAxis.serieNameFormatter = null, a.theme ? {
179
+ ...fa({
180
+ userConfig: Qt.vue_ui_xy[a.theme] || x.config,
184
181
  defaultConfig: a
185
182
  }),
186
- customPalette: eo[a.theme] || m.palette
183
+ customPalette: Kt[a.theme] || x.palette
187
184
  } : a;
188
185
  }
189
- const ua = A({
186
+ const aa = L({
190
187
  get() {
191
- return !!m.dataset && m.dataset.length;
188
+ return !!x.dataset && x.dataset.length;
192
189
  },
193
190
  set(a) {
194
191
  return a;
195
192
  }
196
- }), l = w(sa()), { loading: ra, FINAL_DATASET: Re, manualLoading: Hl } = no({
197
- ...Bt(m),
193
+ }), l = w(la()), { loading: ta, FINAL_DATASET: we, manualLoading: Hl } = uo({
194
+ ...Nt(x),
198
195
  FINAL_CONFIG: l,
199
- prepareConfig: sa,
196
+ prepareConfig: la,
200
197
  callback: () => {
201
198
  Promise.resolve().then(async () => {
202
- await fa(), l.value.autoSize && (al(), Yl());
199
+ await ca();
203
200
  });
204
201
  },
205
202
  skeletonDataset: [
@@ -217,10 +214,9 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
217
214
  color: "#CACACA"
218
215
  }
219
216
  ],
220
- skeletonConfig: Gt({
217
+ skeletonConfig: Ft({
221
218
  defaultConfig: l.value,
222
219
  userConfig: {
223
- autoSize: !1,
224
220
  useCssAnimation: !1,
225
221
  showTable: !1,
226
222
  chart: {
@@ -239,7 +235,6 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
239
235
  yAxis: {
240
236
  commonScaleSteps: 10,
241
237
  useNiceScale: !0,
242
- stacked: !1,
243
238
  scaleMin: 0,
244
239
  scaleMax: 134
245
240
  },
@@ -273,69 +268,97 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
273
268
  }
274
269
  }
275
270
  })
276
- }), Ee = A({
277
- get: () => Math.max(...Re.value.map((a) => Ue({ data: a.series, threshold: ht }).length)),
271
+ }), Ee = L({
272
+ get: () => Math.max(...we.value.map((a) => qe({ data: a.series, threshold: rt }).length)),
278
273
  set: (a) => a
279
- }), S = w({ start: 0, end: Ee.value }), { isPrinting: ia, isImaging: Aa, generatePdf: Ma, generateImage: za } = io({
280
- elementId: `vue-ui-xy_${J.value}`,
274
+ }), S = w({ start: 0, end: Ee.value }), { isPrinting: oa, isImaging: ka, generatePdf: _a, generateImage: wa } = so({
275
+ elementId: `vue-ui-xy_${Z.value}`,
281
276
  fileName: l.value.chart.title.text || "vue-ui-xy",
282
277
  options: l.value.chart.userOptions.print
283
- }), X = A(() => l.value.autoSize), na = A(() => {
284
- const [a, c, e, s] = el.value.split(" ").map(Number);
285
- return { x: a, y: c, width: e, height: s };
286
- }), Ca = A(() => Xt(l.value.customPalette)), Bl = A(() => l.value.chart.grid.labels.yAxis.scaleMax ? l.value.chart.grid.labels.yAxis.scaleMax : Math.max(...Ye.value.filter((a) => !ue.value.includes(a.id)).map((a) => Math.max(...a.series)))), ca = A(() => {
278
+ }), it = w(!1), Sa = L(() => Et(l.value.customPalette)), Rl = L(() => l.value.chart.grid.labels.yAxis.scaleMax ? l.value.chart.grid.labels.yAxis.scaleMax : Math.max(...Re.value.filter((a) => !ue.value.includes(a.id)).map((a) => Math.max(...a.series)))), sa = L(() => {
287
279
  if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
288
280
  return l.value.chart.grid.labels.yAxis.scaleMin;
289
- const a = Math.min(...Ye.value.filter((c) => !ue.value.includes(c.id)).map((c) => Math.min(...c.series)));
281
+ const a = Math.min(...Re.value.filter((c) => !ue.value.includes(c.id)).map((c) => Math.min(...c.series)));
290
282
  return a > 0 ? 0 : a;
291
- }), Le = A(() => l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(ca.value, Bl.value < 0 ? 0 : Bl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : nl(ca.value, Bl.value < 0 ? 0 : Bl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), kl = A(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? Le.value.min >= 0 ? 0 : Math.abs(Le.value.min) : -Le.value.min), Ye = A(() => pa.value ? Re.value.map((a, c) => {
292
- const e = Ue({
283
+ }), Se = L(() => l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(sa.value, Rl.value < 0 ? 0 : Rl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : ul(sa.value, Rl.value < 0 ? 0 : Rl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), kl = L(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? Se.value.min >= 0 ? 0 : Math.abs(Se.value.min) : -Se.value.min), Re = L(() => ga.value ? we.value.map((a, c) => {
284
+ const e = qe({
293
285
  data: a.series,
294
286
  threshold: l.value.downsample.threshold
295
287
  }), s = `uniqueId_${c}`;
296
288
  return {
297
289
  ...a,
298
290
  slotAbsoluteIndex: c,
299
- series: e.map((t) => Gl(t) ? t : null).slice(S.value.start, S.value.end),
300
- color: Dt(a.color ? a.color : Ca.value[c] ? Ca.value[c] : Ut[c]),
291
+ series: e.map((t) => El(t) ? t : null).slice(S.value.start, S.value.end),
292
+ color: Wt(a.color ? a.color : Sa.value[c] ? Sa.value[c] : Xt[c]),
301
293
  id: s,
302
294
  scaleLabel: a.scaleLabel || s
303
295
  };
304
- }) : Re.value), Te = A(() => Ye.value.map((a, c) => ({
296
+ }) : we.value), Be = L(() => Re.value.map((a, c) => ({
305
297
  absoluteIndex: c,
306
298
  ...a,
307
299
  series: a.series.map((e) => e + kl.value),
308
300
  absoluteValues: a.series,
309
- segregate: () => Fa(a),
301
+ segregate: () => Pa(a),
310
302
  isSegregated: ue.value.includes(a.id)
311
- }))), Ae = A(() => Ye.value.map((a, c) => ({
303
+ }))), $e = L(() => Re.value.map((a, c) => ({
312
304
  ...a,
313
305
  series: a.series.map((e) => e + kl.value),
314
306
  absoluteValues: a.series
315
- })).filter((a) => !ue.value.includes(a.id))), i = A(() => {
316
- function a(s) {
317
- const t = /* @__PURE__ */ new Set();
318
- return s.forEach((n) => {
319
- const o = n.scaleLabel || "__noScaleLabel__";
320
- t.add(o);
321
- }), t.size;
307
+ })).filter((a) => !ue.value.includes(a.id)));
308
+ function nt() {
309
+ let a = l.value.chart.grid.labels.axis.yLabelOffsetX;
310
+ Jl.value && (a = Array.from(Jl.value.querySelectorAll("text")).reduce((t, r) => {
311
+ const o = r.getComputedTextLength();
312
+ return o > t ? o : t;
313
+ }, 0));
314
+ const c = Ke.value ? Ke.value.getBoundingClientRect().width : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
315
+ return a + c + e;
316
+ }
317
+ const ua = w(0), ct = io((a) => {
318
+ ua.value = a;
319
+ }, 100);
320
+ Vt((a) => {
321
+ const c = ze.value;
322
+ if (!c) return;
323
+ const e = new ResizeObserver((s) => {
324
+ ct(s[0].contentRect.height);
325
+ });
326
+ e.observe(c), a(() => e.disconnect());
327
+ }), Ja(() => {
328
+ ua.value = 0;
329
+ });
330
+ const $a = L(() => {
331
+ let a = 0;
332
+ Je.value && (a = Je.value.getBBox().height);
333
+ let c = 0;
334
+ return ze.value && (c = ua.value, console.log(c)), a + c + b.value.xAxis;
335
+ }), vt = L(() => we.value.some((a) => a.useProgression)), n = L(() => {
336
+ let a = 0;
337
+ const c = 36;
338
+ l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (we.value.length - ue.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + c) : f.value.useIndividualScale && f.value.isStacked ? a = l.value.chart.grid.labels.yAxis.labelWidth + c : a = nt());
339
+ const e = l.value.chart.labels.fontSize * 1.1, s = vt.value ? 24 : 6;
340
+ if (ze.value) {
341
+ const o = ze.value.getBBox().x;
342
+ o < 0 && (a += Math.abs(o));
322
343
  }
323
- const c = a(Te.value.filter((s) => !ue.value.includes(s.id))), e = f.value.useIndividualScale && l.value.chart.grid.labels.show ? c * (f.value.isStacked ? 0 : l.value.chart.grid.labels.yAxis.labelWidth) : 0;
344
+ const t = se.value - a - l.value.chart.grid.labels.yAxis.crosshairSize - s - l.value.chart.padding.left - l.value.chart.padding.right, r = l.value.chart.grid.position === "middle" ? 0 : t / m.value / 2;
324
345
  return {
325
- top: X.value ? 0 : l.value.chart.padding.top,
326
- right: X.value ? K.value : K.value - l.value.chart.padding.right,
327
- bottom: X.value ? ce.value : ce.value - l.value.chart.padding.bottom,
328
- left: X.value ? e : l.value.chart.padding.left + e,
329
- height: X.value ? ce.value : ce.value - (l.value.chart.padding.top + l.value.chart.padding.bottom),
330
- width: X.value ? K.value - e : K.value - (l.value.chart.padding.right + l.value.chart.padding.left + e)
346
+ top: l.value.chart.padding.top + e,
347
+ right: se.value - s - l.value.chart.padding.right,
348
+ bottom: ge.value - $a.value - l.value.chart.padding.bottom - l.value.chart.grid.labels.axis.xLabelOffsetY,
349
+ left: a + l.value.chart.grid.labels.yAxis.crosshairSize - r + l.value.chart.padding.left,
350
+ height: ge.value - $a.value - l.value.chart.padding.top - l.value.chart.padding.bottom - e - l.value.chart.grid.labels.axis.xLabelOffsetY,
351
+ width: t,
352
+ scaleLabelX: a,
353
+ individualOffsetX: c
331
354
  };
332
- }), ft = A(() => {
333
- const a = l.value.chart.grid.position === "middle" ? 1 : 0, c = b.value + a, e = B(i.value.top), s = B(i.value.bottom);
334
- return Array.from({ length: c }).map((t, n) => {
335
- const o = i.value.width / b.value * n + i.value.left + Y.value;
355
+ }), dt = L(() => {
356
+ const a = l.value.chart.grid.position === "middle" ? 1 : 0, c = m.value + a, e = R(n.value.top), s = R(n.value.bottom);
357
+ return Array.from({ length: c }).map((t, r) => {
358
+ const o = n.value.width / m.value * r + n.value.left + D.value;
336
359
  return `M${o},${e} L${o},${s}`;
337
360
  }).join(" ");
338
- }), gt = A(() => {
361
+ }), ht = L(() => {
339
362
  if (!l.value.chart.grid.labels.xAxis.showCrosshairs)
340
363
  return "";
341
364
  const {
@@ -343,42 +366,42 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
343
366
  showOnlyFirstAndLast: c,
344
367
  modulo: e
345
368
  } = l.value.chart.grid.labels.xAxisLabels, s = Math.floor((S.value.end - S.value.start) / e);
346
- return ge.value.map((t, n) => {
369
+ return he.value.map((t, r) => {
347
370
  if (!t) return null;
348
- const o = a && b.value <= e, R = !c && !a, F = c && !a && (n === 0 || n === ge.value.length - 1), ee = c && !a && _.value === n, $ = !c && a && n % s === 0;
349
- if (!(o || R || F || ee || $))
371
+ const o = a && m.value <= e, B = !c && !a, E = c && !a && (r === 0 || r === he.value.length - 1), W = c && !a && _.value === r, $ = !c && a && r % s === 0;
372
+ if (!(o || B || E || W || $))
350
373
  return null;
351
- const z = i.value.width / b.value, W = i.value.left + z * n + z / 2, k = l.value.chart.grid.labels.xAxis.crosshairSize, N = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero, L = N ? ve.value - (ve.value === i.value.bottom ? 0 : k / 2) : i.value.bottom, le = N ? ve.value + k / (ve.value === i.value.bottom ? 1 : 2) : i.value.bottom + k;
352
- return `M${W},${L} L${W},${le}`;
374
+ const z = n.value.width / m.value, Y = n.value.left + z * r + z / 2, k = l.value.chart.grid.labels.xAxis.crosshairSize, N = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero, A = N ? ce.value - (ce.value === n.value.bottom ? 0 : k / 2) : n.value.bottom, ee = N ? ce.value + k / (ce.value === n.value.bottom ? 1 : 2) : n.value.bottom + k;
375
+ return `M${Y},${A} L${Y},${ee}`;
353
376
  }).filter((t) => t !== null).join(" ");
354
377
  });
355
- function Ia() {
356
- return !!jl?.vnode.props?.onSelectTimeLabel;
378
+ function La() {
379
+ return !!Zl?.vnode.props?.onSelectTimeLabel;
357
380
  }
358
- function xt(a, c, e) {
381
+ function ft(a, c, e) {
359
382
  if (!Pl.value) {
360
383
  const s = document.createElement("canvas");
361
384
  Pl.value = s.getContext("2d");
362
385
  }
363
386
  return Pl.value.font = `normal ${a}px sans-serif`, Pl.value;
364
387
  }
365
- function Ta() {
366
- const a = E.value.querySelectorAll(".vue-ui-xy-tag");
388
+ function Aa() {
389
+ const a = Q.value.querySelectorAll(".vue-ui-xy-tag");
367
390
  a.length && Array.from(a).forEach((c) => c.style.opacity = "0");
368
391
  }
369
- function Rl(a, c, e, s, t) {
370
- e && (Be.value[`${a}_${c}_${s}_${t}`] = e);
392
+ function Bl(a, c, e, s, t) {
393
+ e && (He.value[`${a}_${c}_${s}_${t}`] = e);
371
394
  }
372
- const va = w(!1);
373
- async function Oa(a = !1) {
374
- await be(), va.value = a, $a.value && (Vl.value = a);
395
+ const ra = w(!1);
396
+ async function Ma(a = !1) {
397
+ await fl(), ra.value = a, pa.value && (Vl.value = a);
375
398
  }
376
- function da() {
399
+ function ia() {
377
400
  Nl.value = !Nl.value;
378
401
  }
379
- const ge = A(() => {
380
- const a = Math.max(...Re.value.map((c) => Ue({ data: c.series, threshold: l.value.downsample.threshold }).length));
381
- return oo({
402
+ const he = L(() => {
403
+ const a = Math.max(...we.value.map((c) => qe({ data: c.series, threshold: l.value.downsample.threshold }).length));
404
+ return lo({
382
405
  values: l.value.chart.grid.labels.xAxisLabels.values,
383
406
  maxDatapoints: a,
384
407
  formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
@@ -386,120 +409,89 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
386
409
  end: S.value.end
387
410
  });
388
411
  });
389
- function Na(a, c) {
390
- const e = Ae.value.map((s) => ({
412
+ function za(a, c) {
413
+ const e = $e.value.map((s) => ({
391
414
  shape: s.shape || null,
392
415
  name: s.name,
393
416
  color: s.color,
394
417
  type: s.type,
395
- value: s.absoluteValues.find((t, n) => n === c),
418
+ value: s.absoluteValues.find((t, r) => r === c),
396
419
  comments: s.comments || [],
397
420
  prefix: s.prefix || l.value.chart.labels.prefix,
398
421
  suffix: s.suffix || l.value.chart.labels.suffix
399
422
  }));
400
- Je("selectTimeLabel", {
423
+ bl("selectTimeLabel", {
401
424
  datapoint: e,
402
425
  absoluteIndex: a.absoluteIndex,
403
426
  label: a.text
404
427
  });
405
428
  }
406
- const b = A(() => S.value.end - S.value.start);
407
- async function bt() {
408
- if (!Ke.value) return;
409
- await be();
410
- let a = i.value.bottom;
411
- Ol.value && (a += Ol.value.getBBox().height), Ke.value.setAttribute("y", a + x.value.xAxis * 1.3 + l.value.chart.grid.labels.axis.xLabelOffsetY);
412
- }
413
- async function mt() {
414
- if (!Qe.value) return;
415
- await be();
416
- let a = 0;
417
- ea.value ? a = ea.value.getBBox().x : a = na.value.x, Qe.value.setAttribute("transform", `translate(${a + l.value.chart.grid.labels.axis.yLabelOffsetX - x.value.yAxis}, ${i.value.top + i.value.height / 2}) rotate(-90)`);
418
- }
419
- async function al() {
420
- await be();
421
- const a = dl.value;
422
- if (!a) return;
423
- el.value = `0 0 ${l.value.chart.width} ${l.value.chart.height}`, bt(), await be(), mt(), await be();
424
- const c = a.getBBox();
425
- el.value = `${c.x} ${c.y - x.value.plotLabels} ${c.width + l.value.chart.padding.left} ${c.height + x.value.plotLabels + l.value.chart.padding.top}`, await be(), E.value.classList.remove("no-transition");
426
- }
427
- function Yl() {
428
- if (l.value.responsive && E.value) {
429
- const a = E.value.parentNode;
430
- if (a) {
431
- const c = a.getBoundingClientRect().width;
432
- a.style.width = c - 0.1 + "px", setTimeout(() => {
433
- a.style.width = c + "px";
434
- }, 0);
435
- }
436
- }
437
- }
438
- function yt(a) {
429
+ const m = L(() => S.value.end - S.value.start);
430
+ function gt(a) {
439
431
  O.value = a;
440
432
  }
441
- function Va() {
433
+ function Ca() {
442
434
  f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale;
443
435
  }
444
- function ha(a) {
436
+ function na(a) {
445
437
  Sl.value && a.autoScaling && (l.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), l.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
446
438
  }
447
- function pt(a, c) {
439
+ function xt(a, c) {
448
440
  let e = Array(a).fill(0);
449
441
  for (let s = 0; s < c.length && s < a; s += 1)
450
442
  e[s] = c[s];
451
443
  return e;
452
444
  }
453
- function kt(a) {
454
- const c = Math.max(...Re.value.map((e) => Ue({ data: e.series, threshold: l.value.downsample.threshold }).length));
445
+ function bt(a) {
446
+ const c = Math.max(...we.value.map((e) => qe({ data: e.series, threshold: l.value.downsample.threshold }).length));
455
447
  return a > c ? c : a < 0 || l.value.chart.zoom.startIndex !== null && a < l.value.chart.zoom.startIndex ? l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex + 1 : 1 : a;
456
448
  }
457
- async function fa() {
458
- (l.value.chart.zoom.startIndex !== null || l.value.chart.zoom.endIndex !== null) && U.value ? (l.value.chart.zoom.startIndex !== null && (await be(), await be(), U.value.setStartValue(l.value.chart.zoom.startIndex)), l.value.chart.zoom.endIndex !== null && (await be(), await be(), U.value.setEndValue(kt(l.value.chart.zoom.endIndex + 1)))) : (S.value = {
449
+ async function ca() {
450
+ (l.value.chart.zoom.startIndex !== null || l.value.chart.zoom.endIndex !== null) && F.value ? (l.value.chart.zoom.startIndex !== null && (await fl(), await fl(), F.value.setStartValue(l.value.chart.zoom.startIndex)), l.value.chart.zoom.endIndex !== null && (await fl(), await fl(), F.value.setEndValue(bt(l.value.chart.zoom.endIndex + 1)))) : (S.value = {
459
451
  start: 0,
460
- end: Math.max(...Re.value.map((a) => Ue({ data: a.series, threshold: l.value.downsample.threshold }).length))
461
- }, aa.value += 1);
452
+ end: Math.max(...we.value.map((a) => qe({ data: a.series, threshold: l.value.downsample.threshold }).length))
453
+ }, Ql.value += 1);
462
454
  }
463
- function _t() {
464
- fa();
455
+ function mt() {
456
+ ca();
465
457
  }
466
- function _e(a) {
458
+ function me(a) {
467
459
  return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
468
460
  }
469
- const Pa = A(() => Le.value.max + kl.value);
470
- function tl(a) {
471
- return a / (_e(Pa.value) ? Pa.value : 1);
461
+ const Ia = L(() => Se.value.max + kl.value);
462
+ function el(a) {
463
+ return a / (me(Ia.value) ? Ia.value : 1);
472
464
  }
473
- const ve = A(() => isNaN(tl(kl.value)) ? i.value.bottom : i.value.bottom - i.value.height * tl(kl.value));
474
- function Ha(a) {
475
- const c = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && ca.value >= 0 ? i.value.bottom : ve.value;
476
- return a.value >= 0 ? T(c - a.y <= 0 ? 1e-5 : c - a.y) : T(a.y - ve.value <= 0 ? 1e-5 : a.y - ve.value);
465
+ const ce = L(() => isNaN(el(kl.value)) ? n.value.bottom : n.value.bottom - n.value.height * el(kl.value));
466
+ function Ta(a) {
467
+ const c = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && sa.value >= 0 ? n.value.bottom : ce.value;
468
+ return a.value >= 0 ? T(c - a.y <= 0 ? 1e-5 : c - a.y) : T(a.y - ce.value <= 0 ? 1e-5 : a.y - ce.value);
477
469
  }
478
- function Ba(a) {
470
+ function Oa(a) {
479
471
  return a.value >= 0 ? T(a.zeroPosition - a.y <= 0 ? 1e-5 : a.zeroPosition - a.y) : T(a.y - a.zeroPosition <= 0 ? 1e-5 : a.zeroPosition - a.y);
480
472
  }
481
- const Q = A(() => ({
482
- bar: i.value.width / b.value / Ye.value.filter((a) => a.type === "bar").filter((a) => !ue.value.includes(a.id)).length,
483
- plot: i.value.width / b.value,
484
- line: i.value.width / b.value
473
+ const K = L(() => ({
474
+ bar: n.value.width / m.value / Re.value.filter((a) => a.type === "bar").filter((a) => !ue.value.includes(a.id)).length,
475
+ plot: n.value.width / m.value,
476
+ line: n.value.width / m.value
485
477
  }));
486
- function Me() {
487
- return f.value.useIndividualScale && f.value.isStacked ? Q.value.line - i.value.width / b.value * 0.1 : Q.value.bar;
478
+ function Le() {
479
+ return f.value.useIndividualScale && f.value.isStacked ? K.value.line - n.value.width / m.value * 0.1 : K.value.bar;
488
480
  }
489
- function Fl(a) {
490
- return f.value.useIndividualScale && f.value.isStacked ? a.x + i.value.width / b.value * 0.05 : a.x + Q.value.bar / 2;
481
+ function Yl(a) {
482
+ return f.value.useIndividualScale && f.value.isStacked ? a.x + n.value.width / m.value * 0.05 : a.x + K.value.bar / 2;
491
483
  }
492
- function Ra(a) {
493
- return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ve.value) ? i.bottom.value : ve.value;
484
+ function Na(a) {
485
+ return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ce.value) ? n.bottom.value : ce.value;
494
486
  }
495
- function Ya(a) {
487
+ function Va(a) {
496
488
  return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
497
489
  }
498
- function wt(a) {
499
- Je(
490
+ function yt(a) {
491
+ bl(
500
492
  "selectX",
501
493
  {
502
- dataset: Ae.value.map((c) => ({
494
+ dataset: $e.value.map((c) => ({
503
495
  name: c.name,
504
496
  value: [null, void 0, NaN].includes(c.absoluteValues[a]) ? null : c.absoluteValues[a],
505
497
  color: c.color,
@@ -510,46 +502,46 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
510
502
  }
511
503
  );
512
504
  }
513
- function St() {
514
- return Te.value.map((a) => ({
505
+ function pt() {
506
+ return Be.value.map((a) => ({
515
507
  values: a.absoluteValues,
516
508
  color: a.color,
517
509
  name: a.name,
518
510
  type: a.type
519
511
  }));
520
512
  }
521
- async function $t({ scale: a = 2 } = {}) {
522
- if (!E.value) return;
523
- const { width: c, height: e } = E.value.getBoundingClientRect(), s = c / e, { imageUri: t, base64: n } = await ro({ domElement: E.value, base64: !0, img: !0, scale: a });
513
+ async function kt({ scale: a = 2 } = {}) {
514
+ if (!Q.value) return;
515
+ const { width: c, height: e } = Q.value.getBoundingClientRect(), s = c / e, { imageUri: t, base64: r } = await oo({ domElement: Q.value, base64: !0, img: !0, scale: a });
524
516
  return {
525
517
  imageUri: t,
526
- base64: n,
518
+ base64: r,
527
519
  title: l.value.chart.title.text,
528
520
  width: c,
529
521
  height: e,
530
522
  aspectRatio: s
531
523
  };
532
524
  }
533
- function Fa(a) {
525
+ function Pa(a) {
534
526
  if (ue.value.includes(a.id))
535
527
  ue.value = ue.value.filter((c) => c !== a.id);
536
528
  else {
537
- if (ue.value.length + 1 === Ye.value.length) return;
529
+ if (ue.value.length + 1 === Re.value.length) return;
538
530
  ue.value.push(a.id);
539
531
  }
540
- Je("selectLegend", Ae.value.map((c) => ({
532
+ bl("selectLegend", $e.value.map((c) => ({
541
533
  name: c.name,
542
534
  values: c.absoluteValues,
543
535
  color: c.color,
544
536
  type: c.type
545
- }))), ta.value += 1;
537
+ }))), jl.value += 1;
546
538
  }
547
- const Lt = A(() => {
539
+ const _t = L(() => {
548
540
  const a = l.value.chart.title.text || "Chart visualization", c = l.value.chart.title.subtitle.text || "";
549
541
  return `${a}. ${c}`;
550
- }), Ea = A(() => ({
551
- linePlot: b.value > l.value.line.dot.hideAboveMaxSerieLength
552
- })), At = A(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), Mt = A(() => {
542
+ }), Ha = L(() => ({
543
+ linePlot: m.value > l.value.line.dot.hideAboveMaxSerieLength
544
+ })), wt = L(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), St = L(() => {
553
545
  if (Array.isArray(l.value.chart.highlightArea))
554
546
  return l.value.chart.highlightArea.map((c) => {
555
547
  const e = Math.min(c.to, Ee.value - 1);
@@ -563,22 +555,22 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
563
555
  to: Math.min(l.value.chart.highlightArea.to, Ee.value - 1)
564
556
  };
565
557
  return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
566
- }), zt = A(() => pa.value ? Re.value.map((a, c) => ({
558
+ }), $t = L(() => ga.value ? we.value.map((a, c) => ({
567
559
  ...a,
568
- series: Ue({
560
+ series: qe({
569
561
  data: a.series,
570
562
  threshold: l.value.downsample.threshold
571
563
  }),
572
564
  id: `uniqueId_${c}`
573
- })) : Re.value), Ct = A(() => Ae.value.map((a) => {
565
+ })) : we.value), Lt = L(() => $e.value.map((a) => {
574
566
  const c = a.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
575
567
  return {
576
568
  id: a.id,
577
569
  name: a.name,
578
570
  color: a.color,
579
- values: pt(b.value, c)
571
+ values: xt(m.value, c)
580
572
  };
581
- })), It = A(() => ({
573
+ })), At = L(() => ({
582
574
  responsiveBreakpoint: l.value.table.responsiveBreakpoint,
583
575
  roundingValues: l.value.table.rounding,
584
576
  showAverage: !1,
@@ -587,7 +579,7 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
587
579
  fontFamily: l.value.chart.fontFamily,
588
580
  prefix: l.value.chart.labels.prefix,
589
581
  suffix: l.value.chart.labels.suffix,
590
- colNames: ge.value.map((a) => a.text),
582
+ colNames: he.value.map((a) => a.text),
591
583
  thead: {
592
584
  backgroundColor: l.value.table.th.backgroundColor,
593
585
  color: l.value.table.th.color,
@@ -601,28 +593,28 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
601
593
  userOptions: {
602
594
  show: !1
603
595
  }
604
- })), Y = A(() => l.value.chart.grid.position === "middle" ? 0 : i.value.width / b.value / 2), ol = A(() => qt(Te.value.filter((a) => !ue.value.includes(a.id)))), p = A(() => {
605
- const a = Object.groupBy(ol.value, (e) => e.scaleLabel), c = {};
596
+ })), D = L(() => l.value.chart.grid.position === "middle" ? 0 : n.value.width / m.value / 2), ll = L(() => Gt(Be.value.filter((a) => !ue.value.includes(a.id)))), p = L(() => {
597
+ const a = Object.groupBy(ll.value, (e) => e.scaleLabel), c = {};
606
598
  for (const [e, s] of Object.entries(a)) {
607
- const t = s.flatMap((n) => n.absoluteValues);
599
+ const t = s.flatMap((r) => r.absoluteValues);
608
600
  c[e] = {
609
601
  min: Math.min(...t) || 0,
610
602
  max: Math.max(...t) || 1,
611
- groupId: `scale_group_${ba()}`
603
+ groupId: `scale_group_${da()}`
612
604
  };
613
605
  }
614
606
  return c;
615
- }), Tt = A(() => {
616
- const a = Ye.value.filter((c) => c.type === "bar").filter((c) => !ue.value.includes(c.id)).length;
617
- return i.value.width / b.value / a - Fe.value * a;
618
- }), Fe = A(() => Q.value.line * l.value.bar.periodGap), Ot = A(() => {
607
+ }), Mt = L(() => {
608
+ const a = Re.value.filter((c) => c.type === "bar").filter((c) => !ue.value.includes(c.id)).length;
609
+ return n.value.width / m.value / a - Ye.value * a;
610
+ }), Ye = L(() => K.value.line * l.value.bar.periodGap), zt = L(() => {
619
611
  if (!l.value.chart.zoom.minimap.show) return [];
620
- const a = zt.value.filter((t) => !ue.value.includes(t.id)), c = Math.max(...a.map((t) => t.series.length)), e = [];
612
+ const a = $t.value.filter((t) => !ue.value.includes(t.id)), c = Math.max(...a.map((t) => t.series.length)), e = [];
621
613
  for (let t = 0; t < c; t += 1)
622
- e.push(a.map((n) => n.series[t] || 0).reduce((n, o) => (n || 0) + (o || 0), 0));
614
+ e.push(a.map((r) => r.series[t] || 0).reduce((r, o) => (r || 0) + (o || 0), 0));
623
615
  const s = Math.min(...e);
624
616
  return e.map((t) => t + (s < 0 ? Math.abs(s) : 0));
625
- }), _l = A(() => Ae.value.map((a) => ({
617
+ }), _l = L(() => $e.value.map((a) => ({
626
618
  slotAbsoluteIndex: a.slotAbsoluteIndex,
627
619
  shape: a.shape || null,
628
620
  name: a.name,
@@ -632,45 +624,45 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
632
624
  comments: a.comments || [],
633
625
  prefix: a.prefix || l.value.chart.labels.prefix,
634
626
  suffix: a.suffix || l.value.chart.labels.suffix
635
- }))), Wa = A(() => Le.value.ticks.map((a) => ({
636
- y: a >= 0 ? ve.value - i.value.height * tl(a) : ve.value + i.value.height * tl(Math.abs(a)),
627
+ }))), Ra = L(() => Se.value.ticks.map((a) => ({
628
+ y: a >= 0 ? ce.value - n.value.height * el(a) : ce.value + n.value.height * el(Math.abs(a)),
637
629
  value: a,
638
630
  prefix: l.value.chart.labels.prefix,
639
631
  suffix: l.value.chart.labels.suffix
640
- }))), Ga = A(() => {
632
+ }))), Ba = L(() => {
641
633
  const a = l.value.chart.annotations;
642
634
  if (!a || !Array.isArray(a) || a.every(($) => !$.show)) return [];
643
635
  const c = a.filter(
644
636
  ($) => $.show && ($.yAxis.yTop != null || $.yAxis.yBottom != null)
645
637
  );
646
638
  if (!c.length) return [];
647
- const { left: e, right: s } = i.value, t = ve.value, n = i.value.height, o = Le.value.min, F = Le.value.max - o, ee = ($) => {
648
- const z = ($ - 0) / F;
649
- return t - z * n;
639
+ const { left: e, right: s } = n.value, t = ce.value, r = n.value.height, o = Se.value.min, E = Se.value.max - o, W = ($) => {
640
+ const z = ($ - 0) / E;
641
+ return t - z * r;
650
642
  };
651
643
  return c.map(($) => {
652
- const { yAxis: { yTop: z, yBottom: W, label: k } } = $, N = z != null && W != null && z !== W, L = z == null ? null : ee(z), le = W == null ? null : ee(W), de = xt(k.fontSize);
653
- de.font = `${k.fontSize}px sans-serif`;
654
- const q = de.measureText(k.text).width, we = k.fontSize, Ne = (k.position === "start" ? e + k.padding.left : s - k.padding.right) + k.offsetX, ye = (L != null && le != null ? Math.min(L, le) : L ?? le) - k.fontSize / 3 + k.offsetY - k.padding.top;
644
+ const { yAxis: { yTop: z, yBottom: Y, label: k } } = $, N = z != null && Y != null && z !== Y, A = z == null ? null : W(z), ee = Y == null ? null : W(Y), ve = ft(k.fontSize);
645
+ ve.font = `${k.fontSize}px sans-serif`;
646
+ const q = ve.measureText(k.text).width, ye = k.fontSize, Te = (k.position === "start" ? e + k.padding.left : s - k.padding.right) + k.offsetX, xe = (A != null && ee != null ? Math.min(A, ee) : A ?? ee) - k.fontSize / 3 + k.offsetY - k.padding.top;
655
647
  let P;
656
- k.textAnchor === "middle" ? P = Ne - q / 2 - k.padding.left : k.textAnchor === "end" ? P = Ne - q - k.padding.right : P = Ne - k.padding.left;
657
- const H = ye - we * 0.75 - k.padding.top;
648
+ k.textAnchor === "middle" ? P = Te - q / 2 - k.padding.left : k.textAnchor === "end" ? P = Te - q - k.padding.right : P = Te - k.padding.left;
649
+ const H = xe - ye * 0.75 - k.padding.top;
658
650
  return {
659
- show: ![L, le, H].includes(NaN),
660
- id: `annotation_y_${ba()}`,
651
+ show: ![A, ee, H].includes(NaN),
652
+ id: `annotation_y_${da()}`,
661
653
  hasArea: N,
662
- areaHeight: N ? Math.abs(L - le) : 0,
663
- yTop: L,
664
- yBottom: le,
654
+ areaHeight: N ? Math.abs(A - ee) : 0,
655
+ yTop: A,
656
+ yBottom: ee,
665
657
  config: $.yAxis,
666
658
  x1: e,
667
659
  x2: s,
668
- _text: { x: Ne, y: ye },
660
+ _text: { x: Te, y: xe },
669
661
  _box: {
670
662
  x: P,
671
663
  y: H,
672
664
  width: q + k.padding.left + k.padding.right,
673
- height: we + k.padding.top + k.padding.bottom,
665
+ height: ye + k.padding.top + k.padding.bottom,
674
666
  fill: k.backgroundColor,
675
667
  stroke: k.border.stroke,
676
668
  rx: k.border.rx,
@@ -679,336 +671,343 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
679
671
  }
680
672
  };
681
673
  });
682
- }), We = A(() => {
683
- const a = ol.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, n = i.value.height - t;
684
- return a.filter((o) => o.type === "bar").map((o, R) => {
685
- ha(o);
686
- const F = p.value[o.scaleLabel].min, ee = p.value[o.scaleLabel].max;
687
- o.absoluteValues.filter((V) => ![null, void 0].includes(V)).map((V) => (V - F) / (ee - F));
674
+ }), We = L(() => {
675
+ const a = ll.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
676
+ return a.filter((o) => o.type === "bar").map((o, B) => {
677
+ na(o);
678
+ const E = p.value[o.scaleLabel].min, W = p.value[o.scaleLabel].max;
679
+ o.absoluteValues.filter((V) => ![null, void 0].includes(V)).map((V) => (V - E) / (W - E));
688
680
  const $ = {
689
- valueMin: F,
690
- valueMax: ee < 0 ? 0 : ee
681
+ valueMin: E,
682
+ valueMax: W < 0 ? 0 : W
691
683
  }, z = {
692
684
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
693
685
  min: o.scaleMin || Math.min(...o.absoluteValues.filter((V) => ![void 0, null].includes(V))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((V) => ![null, void 0].includes(V)))
694
- }, W = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(z.min, z.max === z.min ? z.max * k : z.max, W) : nl(z.min, z.max === z.min ? z.max * k : z.max, W), L = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, W) : nl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, W), le = N.min >= 0 ? 0 : Math.abs(N.min), de = 0, q = N.max + le, we = L.max + Math.abs(de), Ne = o.stackIndex, fl = c - 1 - Ne, ye = s ? 1 - o.cumulatedStackRatio : 0, P = s ? n * ye + e * fl : 0, H = s ? n * o.stackRatio : i.value.height, ae = i.value.bottom - P - H * le / q, pe = i.value.bottom - P - H * de / we, he = Te.value.filter((V) => V.type === "bar").filter((V) => !ue.value.includes(V.id)).length, $l = o.series.map((V, oe) => {
695
- const Xe = f.value.useIndividualScale ? (o.absoluteValues[oe] + le) / q : tl(V), sl = f.value.useIndividualScale && f.value.isStacked ? i.value.left + i.value.width / b.value * oe : i.value.left + Q.value.bar * R + Q.value.bar * oe * he - Tt.value / 2 - R * Fe.value;
686
+ }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(z.min, z.max === z.min ? z.max * k : z.max, Y) : ul(z.min, z.max === z.min ? z.max * k : z.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, Y) : ul($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, Y), ee = N.min >= 0 ? 0 : Math.abs(N.min), ve = 0, q = N.max + ee, ye = A.max + Math.abs(ve), Te = o.stackIndex, dl = c - 1 - Te, xe = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * xe + e * dl : 0, H = s ? r * o.stackRatio : n.value.height, le = n.value.bottom - P - H * ee / q, be = n.value.bottom - P - H * ve / ye, de = Be.value.filter((V) => V.type === "bar").filter((V) => !ue.value.includes(V.id)).length, $l = o.series.map((V, te) => {
687
+ const Ge = f.value.useIndividualScale ? (o.absoluteValues[te] + ee) / q : el(V), al = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / m.value * te : n.value.left + K.value.bar * B + K.value.bar * te * de - Mt.value / 2 - B * Ye.value;
696
688
  return {
697
689
  yOffset: T(P),
698
690
  individualHeight: T(H),
699
- x: T(sl),
700
- y: i.value.bottom - P - H * Xe,
701
- value: o.absoluteValues[oe],
702
- zeroPosition: T(ae),
691
+ x: T(al),
692
+ y: n.value.bottom - P - H * Ge,
693
+ value: o.absoluteValues[te],
694
+ zeroPosition: T(le),
703
695
  individualMax: T(q),
704
- comment: o.comments && o.comments.slice(S.value.start, S.value.end)[oe] || ""
696
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[te] || ""
705
697
  };
706
- }), xe = o.absoluteValues.map((V) => L.min >= 0 ? (V - Math.abs(L.min)) / (L.max - Math.abs(L.min)) : (V + Math.abs(L.min)) / (L.max + Math.abs(L.min))), Ge = o.series.map((V, oe) => {
707
- const Xe = f.value.useIndividualScale && f.value.isStacked ? i.value.left + i.value.width / b.value * oe : i.value.left - Q.value.bar / 2 + Q.value.bar * R + Q.value.bar * oe * Te.value.filter((sl) => sl.type === "bar").filter((sl) => !ue.value.includes(sl.id)).length;
698
+ }), fe = o.absoluteValues.map((V) => A.min >= 0 ? (V - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (V + Math.abs(A.min)) / (A.max + Math.abs(A.min))), Xe = o.series.map((V, te) => {
699
+ const Ge = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / m.value * te : n.value.left - K.value.bar / 2 + K.value.bar * B + K.value.bar * te * Be.value.filter((al) => al.type === "bar").filter((al) => !ue.value.includes(al.id)).length;
708
700
  return {
709
701
  yOffset: T(P),
710
702
  individualHeight: T(H),
711
- x: T(Xe),
712
- y: T(i.value.bottom - T(P) - (T(H) * xe[oe] || 0)),
713
- value: o.absoluteValues[oe],
714
- zeroPosition: T(ae),
703
+ x: T(Ge),
704
+ y: T(n.value.bottom - T(P) - (T(H) * fe[te] || 0)),
705
+ value: o.absoluteValues[te],
706
+ zeroPosition: T(le),
715
707
  individualMax: T(q),
716
- comment: o.comments && o.comments.slice(S.value.start, S.value.end)[oe] || ""
708
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[te] || ""
717
709
  };
718
- }), G = N.ticks.map((V) => ({
719
- y: V >= 0 ? ae - H * (V / q) : ae + H * Math.abs(V) / q,
710
+ }), X = N.ticks.map((V) => ({
711
+ y: V >= 0 ? le - H * (V / q) : le + H * Math.abs(V) / q,
720
712
  value: V,
721
713
  prefix: o.prefix || l.value.chart.labels.prefix,
722
714
  suffix: o.suffix || l.value.chart.labels.suffix,
723
715
  datapoint: o
724
- })), te = L.ticks.map((V) => {
725
- const oe = (V - L.min) / (L.max - L.min);
716
+ })), ae = A.ticks.map((V) => {
717
+ const te = (V - A.min) / (A.max - A.min);
726
718
  return {
727
- y: V >= 0 ? pe - H * oe : pe + H * oe,
719
+ y: V >= 0 ? be - H * te : be + H * te,
728
720
  value: V,
729
721
  prefix: o.prefix || l.value.chart.labels.prefix,
730
722
  suffix: o.suffix || l.value.chart.labels.suffix,
731
723
  datapoint: o
732
724
  };
733
725
  });
734
- return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? te : G, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? pe : ae, p.value[o.scaleLabel].individualMax = o.autoScaling ? we : q, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = P, p.value[o.scaleLabel].individualHeight = H, p.value[o.scaleLabel].autoScaleYLabels = te, p.value[o.scaleLabel].unique = ol.value.filter((V) => V.scaleLabel === o.scaleLabel).length === 1, {
726
+ return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? ae : X, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? be : le, p.value[o.scaleLabel].individualMax = o.autoScaling ? ye : q, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = P, p.value[o.scaleLabel].individualHeight = H, p.value[o.scaleLabel].autoScaleYLabels = ae, p.value[o.scaleLabel].unique = ll.value.filter((V) => V.scaleLabel === o.scaleLabel).length === 1, {
735
727
  ...o,
736
728
  yOffset: P,
737
- autoScaleYLabels: te,
729
+ autoScaleYLabels: ae,
738
730
  individualHeight: H,
739
- scaleYLabels: o.autoScaling ? te : G,
740
- individualScale: o.autoScaling ? L : N,
741
- individualMax: o.autoScaling ? we : q,
742
- zeroPosition: o.autoScaling ? pe : ae,
743
- plots: o.autoScaling ? Ge : $l,
731
+ scaleYLabels: o.autoScaling ? ae : X,
732
+ individualScale: o.autoScaling ? A : N,
733
+ individualMax: o.autoScaling ? ye : q,
734
+ zeroPosition: o.autoScaling ? be : le,
735
+ plots: o.autoScaling ? Xe : $l,
744
736
  groupId: p.value[o.scaleLabel].groupId
745
737
  };
746
738
  });
747
- }), ze = A(() => {
748
- const a = ol.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, n = i.value.height - t;
749
- return a.filter((o) => o.type === "line").map((o, R) => {
750
- ha(o);
751
- const F = p.value[o.scaleLabel].min, ee = p.value[o.scaleLabel].max;
752
- o.absoluteValues.filter((I) => ![null, void 0].includes(I)).map((I) => (I - F) / (ee - F));
739
+ }), Ae = L(() => {
740
+ const a = ll.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
741
+ return a.filter((o) => o.type === "line").map((o, B) => {
742
+ na(o);
743
+ const E = p.value[o.scaleLabel].min, W = p.value[o.scaleLabel].max;
744
+ o.absoluteValues.filter((I) => ![null, void 0].includes(I)).map((I) => (I - E) / (W - E));
753
745
  const $ = {
754
- valueMin: F,
755
- valueMax: ee
746
+ valueMin: E,
747
+ valueMax: W
756
748
  }, z = {
757
749
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
758
750
  min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
759
- }, W = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(z.min, z.max === z.min ? z.max * k : z.max, W) : nl(z.min, z.max === z.min ? z.max * k : z.max, W), L = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, W) : nl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, W), le = N.min >= 0 ? 0 : Math.abs(N.min), de = 0, q = N.max + Math.abs(le), we = L.max + Math.abs(de), Ne = o.stackIndex, fl = c - 1 - Ne, ye = s ? 1 - o.cumulatedStackRatio : 0, P = s ? n * ye + e * fl : 0, H = s ? n * o.stackRatio : i.value.height, ae = i.value.bottom - P - H * le / q, pe = i.value.bottom - P - H * de / we, he = o.series.map((I, ie) => {
760
- const Vt = f.value.useIndividualScale ? (o.absoluteValues[ie] + Math.abs(le)) / q : tl(I);
751
+ }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(z.min, z.max === z.min ? z.max * k : z.max, Y) : ul(z.min, z.max === z.min ? z.max * k : z.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, Y) : ul($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, Y), ee = N.min >= 0 ? 0 : Math.abs(N.min), ve = 0, q = N.max + Math.abs(ee), ye = A.max + Math.abs(ve), Te = o.stackIndex, dl = c - 1 - Te, xe = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * xe + e * dl : 0, H = s ? r * o.stackRatio : n.value.height, le = n.value.bottom - P - H * ee / q, be = n.value.bottom - P - H * ve / ye, de = o.series.map((I, re) => {
752
+ const It = f.value.useIndividualScale ? (o.absoluteValues[re] + Math.abs(ee)) / q : el(I);
761
753
  return {
762
- x: T(i.value.left + Q.value.line / 2 + Q.value.line * ie),
763
- y: T(i.value.bottom - P - H * Vt),
764
- value: o.absoluteValues[ie],
765
- comment: o.comments && o.comments.slice(S.value.start, S.value.end)[ie] || ""
754
+ x: T(n.value.left + K.value.line / 2 + K.value.line * re),
755
+ y: T(n.value.bottom - P - H * It),
756
+ value: o.absoluteValues[re],
757
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[re] || ""
766
758
  };
767
- }), $l = o.absoluteValues.map((I) => L.min >= 0 ? (I - Math.abs(L.min)) / (L.max - Math.abs(L.min)) : (I + Math.abs(L.min)) / (L.max + Math.abs(L.min))), xe = o.series.map((I, ie) => [void 0, null].includes(o.absoluteValues[ie]) ? {
768
- x: T(i.value.left + Q.value.line / 2 + Q.value.line * ie),
769
- y: ae,
770
- value: o.absoluteValues[ie],
771
- comment: o.comments && o.comments.slice(S.value.start, S.value.end)[ie] || ""
759
+ }), $l = o.absoluteValues.map((I) => A.min >= 0 ? (I - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (I + Math.abs(A.min)) / (A.max + Math.abs(A.min))), fe = o.series.map((I, re) => [void 0, null].includes(o.absoluteValues[re]) ? {
760
+ x: T(n.value.left + K.value.line / 2 + K.value.line * re),
761
+ y: le,
762
+ value: o.absoluteValues[re],
763
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[re] || ""
772
764
  } : {
773
- x: T(i.value.left + Q.value.line / 2 + Q.value.line * ie),
774
- y: T(i.value.bottom - P - (H * $l[ie] || 0)),
775
- value: o.absoluteValues[ie],
776
- comment: o.comments && o.comments.slice(S.value.start, S.value.end)[ie] || ""
777
- }), Ge = l.value.line.cutNullValues ? at(he) : tt(he.filter((I) => I.value !== null)), G = l.value.line.cutNullValues ? at(xe) : tt(xe.filter((I) => I.value !== null)), te = l.value.line.cutNullValues ? ot(he) : st(he.filter((I) => I.value !== null)), V = l.value.line.cutNullValues ? ot(xe) : st(xe.filter((I) => I.value !== null)), oe = N.ticks.map((I) => ({
778
- y: I >= 0 ? ae - H * (I / q) : ae + H * Math.abs(I) / q,
765
+ x: T(n.value.left + K.value.line / 2 + K.value.line * re),
766
+ y: T(n.value.bottom - P - (H * $l[re] || 0)),
767
+ value: o.absoluteValues[re],
768
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[re] || ""
769
+ }), Xe = l.value.line.cutNullValues ? Ka(de) : Qa(de.filter((I) => I.value !== null)), X = l.value.line.cutNullValues ? Ka(fe) : Qa(fe.filter((I) => I.value !== null)), ae = l.value.line.cutNullValues ? ja(de) : et(de.filter((I) => I.value !== null)), V = l.value.line.cutNullValues ? ja(fe) : et(fe.filter((I) => I.value !== null)), te = N.ticks.map((I) => ({
770
+ y: I >= 0 ? le - H * (I / q) : le + H * Math.abs(I) / q,
779
771
  value: I,
780
772
  prefix: o.prefix || l.value.chart.labels.prefix,
781
773
  suffix: o.suffix || l.value.chart.labels.suffix,
782
774
  datapoint: o
783
- })), Xe = L.ticks.map((I) => {
784
- const ie = (I - L.min) / (L.max - L.min);
775
+ })), Ge = A.ticks.map((I) => {
776
+ const re = (I - A.min) / (A.max - A.min);
785
777
  return {
786
- y: I >= 0 ? pe - H * ie : pe + H * ie,
778
+ y: I >= 0 ? be - H * re : be + H * re,
787
779
  value: I,
788
780
  prefix: o.prefix || l.value.chart.labels.prefix,
789
781
  suffix: o.suffix || l.value.chart.labels.suffix,
790
782
  datapoint: o
791
783
  };
792
784
  });
793
- p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Xe : oe, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? pe : ae, p.value[o.scaleLabel].individualMax = o.autoScaling ? we : q, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = P, p.value[o.scaleLabel].individualHeight = H, p.value[o.scaleLabel].autoScaleYLabels = Xe, p.value[o.scaleLabel].unique = ol.value.filter((I) => I.scaleLabel === o.scaleLabel).length === 1;
794
- const sl = f.value.useIndividualScale ? o.autoScaling ? pe : ae : ve.value, Ll = Math.max(Math.max(o.autoScaling ? pe : oe.at(-1) ? oe.at(-1).y : 0, i.value.top), sl);
785
+ p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ge : te, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? be : le, p.value[o.scaleLabel].individualMax = o.autoScaling ? ye : q, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = P, p.value[o.scaleLabel].individualHeight = H, p.value[o.scaleLabel].autoScaleYLabels = Ge, p.value[o.scaleLabel].unique = ll.value.filter((I) => I.scaleLabel === o.scaleLabel).length === 1;
786
+ const al = f.value.useIndividualScale ? o.autoScaling ? be : le : ce.value, Ll = Math.max(Math.max(o.autoScaling ? be : te.at(-1) ? te.at(-1).y : 0, n.value.top), al);
795
787
  return {
796
788
  ...o,
797
789
  yOffset: P,
798
- autoScaleYLabels: Xe,
790
+ autoScaleYLabels: Ge,
799
791
  individualHeight: H,
800
- scaleYLabels: o.autoScaling ? Xe : oe,
801
- individualScale: o.autoScaling ? L : N,
802
- individualMax: o.autoScaling ? we : q,
803
- zeroPosition: o.autoScaling ? pe : ae,
804
- curve: o.autoScaling ? G : Ge,
805
- plots: o.autoScaling ? xe : he,
806
- area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? ut(
807
- o.autoScaling ? xe : he,
792
+ scaleYLabels: o.autoScaling ? Ge : te,
793
+ individualScale: o.autoScaling ? A : N,
794
+ individualMax: o.autoScaling ? ye : q,
795
+ zeroPosition: o.autoScaling ? be : le,
796
+ curve: o.autoScaling ? X : Xe,
797
+ plots: o.autoScaling ? fe : de,
798
+ area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? lt(
799
+ o.autoScaling ? fe : de,
808
800
  Ll
809
- ) : rt(
810
- o.autoScaling ? xe.filter((I) => I.value !== null) : he.filter((I) => I.value !== null),
801
+ ) : at(
802
+ o.autoScaling ? fe.filter((I) => I.value !== null) : de.filter((I) => I.value !== null),
811
803
  Ll
812
- ) : l.value.line.cutNullValues ? ut(he, Ll) : rt(he.filter((I) => I.value !== null), Ll) : "",
813
- curveAreas: o.useArea ? Zt(
814
- o.autoScaling ? l.value.line.cutNullValues ? xe : xe.filter((I) => I.value !== null) : l.value.line.cutNullValues ? he : he.filter((I) => I.value !== null),
804
+ ) : l.value.line.cutNullValues ? lt(de, Ll) : at(de.filter((I) => I.value !== null), Ll) : "",
805
+ curveAreas: o.useArea ? Dt(
806
+ o.autoScaling ? l.value.line.cutNullValues ? fe : fe.filter((I) => I.value !== null) : l.value.line.cutNullValues ? de : de.filter((I) => I.value !== null),
815
807
  Ll,
816
808
  l.value.line.cutNullValues
817
809
  ) : [],
818
- straight: o.autoScaling ? V : te,
810
+ straight: o.autoScaling ? V : ae,
819
811
  groupId: p.value[o.scaleLabel].groupId
820
812
  };
821
813
  });
822
- }), Oe = A(() => {
823
- const a = ol.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, n = i.value.height - t;
814
+ }), Ie = L(() => {
815
+ const a = ll.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
824
816
  return a.filter((o) => o.type === "plot").map((o) => {
825
- ha(o);
826
- const R = p.value[o.scaleLabel].min, F = p.value[o.scaleLabel].max;
827
- o.absoluteValues.filter((G) => ![null, void 0].includes(G)).map((G) => (G - R) / (F - R));
828
- const ee = {
829
- valueMin: R,
830
- valueMax: F
817
+ na(o);
818
+ const B = p.value[o.scaleLabel].min, E = p.value[o.scaleLabel].max;
819
+ o.absoluteValues.filter((X) => ![null, void 0].includes(X)).map((X) => (X - B) / (E - B));
820
+ const W = {
821
+ valueMin: B,
822
+ valueMax: E
831
823
  }, $ = {
832
824
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
833
825
  min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
834
- }, z = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, W = 1.0000001, k = nl($.min, $.max === $.min ? $.max * W : $.max, z), N = nl(ee.valueMin, ee.valueMax === ee.valueMin ? ee.valueMax * W : ee.valueMax, z), L = k.min >= 0 ? 0 : Math.abs(k.min), le = 0, de = k.max + L, q = N.max + Math.abs(le), we = o.stackIndex, Ne = c - 1 - we, fl = s ? 1 - o.cumulatedStackRatio : 0, ye = s ? n * fl + e * Ne : 0, P = s ? n * o.stackRatio : i.value.height, H = i.value.bottom - ye - P * L / de, ae = i.value.bottom - ye - P * le / q, pe = o.series.map((G, te) => {
835
- const V = f.value.useIndividualScale ? (o.absoluteValues[te] + Math.abs(L)) / de : tl(G);
826
+ }, z = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, k = ul($.min, $.max === $.min ? $.max * Y : $.max, z), N = ul(W.valueMin, W.valueMax === W.valueMin ? W.valueMax * Y : W.valueMax, z), A = k.min >= 0 ? 0 : Math.abs(k.min), ee = 0, ve = k.max + A, q = N.max + Math.abs(ee), ye = o.stackIndex, Te = c - 1 - ye, dl = s ? 1 - o.cumulatedStackRatio : 0, xe = s ? r * dl + e * Te : 0, P = s ? r * o.stackRatio : n.value.height, H = n.value.bottom - xe - P * A / ve, le = n.value.bottom - xe - P * ee / q, be = o.series.map((X, ae) => {
827
+ const V = f.value.useIndividualScale ? (o.absoluteValues[ae] + Math.abs(A)) / ve : el(X);
836
828
  return {
837
- x: T(i.value.left + Q.value.plot / 2 + Q.value.plot * te),
838
- y: T(i.value.bottom - ye - P * V),
839
- value: o.absoluteValues[te],
840
- comment: o.comments && o.comments.slice(S.value.start, S.value.end)[te] || ""
829
+ x: T(n.value.left + K.value.plot / 2 + K.value.plot * ae),
830
+ y: T(n.value.bottom - xe - P * V),
831
+ value: o.absoluteValues[ae],
832
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[ae] || ""
841
833
  };
842
- }), he = o.absoluteValues.map((G) => N.min >= 0 ? (G - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (G + Math.abs(N.min)) / (N.max + Math.abs(N.min))), $l = o.series.map((G, te) => ({
843
- x: T(i.value.left + Q.value.plot / 2 + Q.value.plot * te),
844
- y: T(i.value.bottom - ye - (P * he[te] || 0)),
845
- value: o.absoluteValues[te],
846
- comment: o.comments && o.comments.slice(S.value.start, S.value.end)[te] || ""
847
- })), xe = k.ticks.map((G) => ({
848
- y: G >= 0 ? H - P * (G / de) : H + P * Math.abs(G) / de,
849
- value: G,
834
+ }), de = o.absoluteValues.map((X) => N.min >= 0 ? (X - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (X + Math.abs(N.min)) / (N.max + Math.abs(N.min))), $l = o.series.map((X, ae) => ({
835
+ x: T(n.value.left + K.value.plot / 2 + K.value.plot * ae),
836
+ y: T(n.value.bottom - xe - (P * de[ae] || 0)),
837
+ value: o.absoluteValues[ae],
838
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[ae] || ""
839
+ })), fe = k.ticks.map((X) => ({
840
+ y: X >= 0 ? H - P * (X / ve) : H + P * Math.abs(X) / ve,
841
+ value: X,
850
842
  prefix: o.prefix || l.value.chart.labels.prefix,
851
843
  suffix: o.suffix || l.value.chart.labels.suffix,
852
844
  datapoint: o
853
- })), Ge = N.ticks.map((G) => {
854
- const te = (G - N.min) / (N.max - N.min);
845
+ })), Xe = N.ticks.map((X) => {
846
+ const ae = (X - N.min) / (N.max - N.min);
855
847
  return {
856
- y: G >= 0 ? ae - P * te : ae + P * te,
857
- value: G,
848
+ y: X >= 0 ? le - P * ae : le + P * ae,
849
+ value: X,
858
850
  prefix: o.prefix || l.value.chart.labels.prefix,
859
851
  suffix: o.suffix || l.value.chart.labels.suffix,
860
852
  datapoint: o
861
853
  };
862
854
  });
863
- return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ge : xe, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? ae : H, p.value[o.scaleLabel].individualMax = o.autoScaling ? q : de, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = ye, p.value[o.scaleLabel].individualHeight = P, p.value[o.scaleLabel].autoScaleYLabels = Ge, p.value[o.scaleLabel].unique = ol.value.filter((G) => G.scaleLabel === o.scaleLabel).length === 1, {
855
+ return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Xe : fe, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? le : H, p.value[o.scaleLabel].individualMax = o.autoScaling ? q : ve, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = xe, p.value[o.scaleLabel].individualHeight = P, p.value[o.scaleLabel].autoScaleYLabels = Xe, p.value[o.scaleLabel].unique = ll.value.filter((X) => X.scaleLabel === o.scaleLabel).length === 1, {
864
856
  ...o,
865
- yOffset: ye,
866
- autoScaleYLabels: Ge,
857
+ yOffset: xe,
858
+ autoScaleYLabels: Xe,
867
859
  individualHeight: P,
868
- scaleYLabels: o.autoScaling ? Ge : xe,
860
+ scaleYLabels: o.autoScaling ? Xe : fe,
869
861
  individualScale: o.autoScaling ? N : k,
870
- individualMax: o.autoScaling ? q : de,
871
- zeroPosition: o.autoScaling ? ae : H,
872
- plots: o.autoScaling ? $l : pe,
862
+ individualMax: o.autoScaling ? q : ve,
863
+ zeroPosition: o.autoScaling ? le : H,
864
+ plots: o.autoScaling ? $l : be,
873
865
  groupId: p.value[o.scaleLabel].groupId
874
866
  };
875
867
  });
876
- }), wl = A(() => {
877
- const a = ze.value.map((n) => ({
878
- name: n.name,
879
- color: n.color,
880
- scale: n.individualScale,
881
- scaleYLabels: n.scaleYLabels,
882
- zero: n.zeroPosition,
883
- max: n.individualMax,
884
- scaleLabel: n.scaleLabel || "",
885
- id: n.id,
886
- yOffset: n.yOffset || 0,
887
- individualHeight: n.individualHeight || i.value.height,
888
- autoScaleYLabels: n.autoScaleYLabels
889
- })), c = We.value.map((n) => ({
890
- name: n.name,
891
- color: n.color,
892
- scale: n.individualScale,
893
- scaleYLabels: n.scaleYLabels,
894
- zero: n.zeroPosition,
895
- max: n.individualMax,
896
- scaleLabel: n.scaleLabel || "",
897
- id: n.id,
898
- yOffset: n.yOffset || 0,
899
- individualHeight: n.individualHeight || i.value.height
900
- })), e = Oe.value.map((n) => ({
901
- name: n.name,
902
- color: n.color,
903
- scale: n.individualScale,
904
- scaleYLabels: n.scaleYLabels,
868
+ }), wl = L(() => {
869
+ const a = Ae.value.map((r) => ({
870
+ name: r.name,
871
+ color: r.color,
872
+ scale: r.individualScale,
873
+ scaleYLabels: r.scaleYLabels,
874
+ zero: r.zeroPosition,
875
+ max: r.individualMax,
876
+ scaleLabel: r.scaleLabel || "",
877
+ id: r.id,
878
+ yOffset: r.yOffset || 0,
879
+ individualHeight: r.individualHeight || n.value.height,
880
+ autoScaleYLabels: r.autoScaleYLabels
881
+ })), c = We.value.map((r) => ({
882
+ name: r.name,
883
+ color: r.color,
884
+ scale: r.individualScale,
885
+ scaleYLabels: r.scaleYLabels,
886
+ zero: r.zeroPosition,
887
+ max: r.individualMax,
888
+ scaleLabel: r.scaleLabel || "",
889
+ id: r.id,
890
+ yOffset: r.yOffset || 0,
891
+ individualHeight: r.individualHeight || n.value.height
892
+ })), e = Ie.value.map((r) => ({
893
+ name: r.name,
894
+ color: r.color,
895
+ scale: r.individualScale,
896
+ scaleYLabels: r.scaleYLabels,
905
897
  // FIX
906
- zero: n.zeroPosition,
907
- max: n.individualMax,
908
- scaleLabel: n.scaleLabel || "",
909
- id: n.id,
910
- yOffset: n.yOffset || 0,
911
- individualHeight: n.individualHeight || i.value.height
912
- })), s = f.value.useIndividualScale && !f.value.isStacked ? Object.values(p.value) : [...a, ...c, ...e], t = s.flatMap((n) => n).length;
913
- return s.flatMap((n, o) => {
914
- let R = 0;
915
- return X.value ? R = f.value.isStacked ? i.value.left : i.value.left - o * (l.value.chart.grid.labels.yAxis.labelWidth + x.value.dataLabels * 2) : R = f.value.isStacked ? i.value.left : i.value.left / t * (o + 1), {
916
- unique: n.unique,
917
- id: n.id,
918
- groupId: n.groupId,
919
- scaleLabel: n.scaleLabel,
920
- name: f.value.useIndividualScale && !f.value.isStacked ? n.unique ? n.name : n.groupName : n.name,
921
- color: f.value.useIndividualScale && !f.value.isStacked ? n.unique ? n.color : n.groupColor : n.color,
922
- scale: n.scale,
923
- yOffset: n.yOffset,
924
- individualHeight: n.individualHeight,
925
- x: R,
926
- yLabels: n.scaleYLabels || n.scale.ticks.map((F) => ({
927
- y: F >= 0 ? n.zero - n.individualHeight * (F / n.max) : n.zero + n.individualHeight * Math.abs(F) / n.max,
928
- value: F
898
+ zero: r.zeroPosition,
899
+ max: r.individualMax,
900
+ scaleLabel: r.scaleLabel || "",
901
+ id: r.id,
902
+ yOffset: r.yOffset || 0,
903
+ individualHeight: r.individualHeight || n.value.height
904
+ })), s = f.value.useIndividualScale && !f.value.isStacked ? Object.values(p.value) : [...a, ...c, ...e], t = s.flatMap((r) => r).length;
905
+ return s.flatMap((r, o) => {
906
+ let B = 0;
907
+ B = f.value.isStacked ? n.value.left : n.value.left / t * (o + 1);
908
+ const E = f.value.useIndividualScale && !f.value.isStacked ? r.unique ? r.name : r.groupName : r.name;
909
+ return {
910
+ unique: r.unique,
911
+ id: r.id,
912
+ groupId: r.groupId,
913
+ scaleLabel: r.scaleLabel,
914
+ name: ne(
915
+ l.value.chart.grid.labels.yAxis.serieNameFormatter,
916
+ E,
917
+ E,
918
+ r
919
+ ),
920
+ color: f.value.useIndividualScale && !f.value.isStacked ? r.unique ? r.color : r.groupColor : r.color,
921
+ scale: r.scale,
922
+ yOffset: r.yOffset,
923
+ individualHeight: r.individualHeight,
924
+ x: B,
925
+ yLabels: r.scaleYLabels || r.scale.ticks.map((W) => ({
926
+ y: W >= 0 ? r.zero - r.individualHeight * (W / r.max) : r.zero + r.individualHeight * Math.abs(W) / r.max,
927
+ value: W
929
928
  }))
930
929
  };
931
930
  });
932
- }), Xa = A(() => ({
931
+ }), Ya = L(() => ({
933
932
  datapoint: _l.value,
934
933
  seriesIndex: _.value,
935
- series: Te.value,
934
+ series: Be.value,
936
935
  bars: We.value,
937
- lines: ze.value,
938
- plots: Oe.value,
936
+ lines: Ae.value,
937
+ plots: Ie.value,
939
938
  config: l.value
940
- })), Nt = A(() => {
941
- let a = "", c = _l.value.map((t) => t.value).filter((t) => Gl(t) && t !== null).reduce((t, n) => Math.abs(t) + Math.abs(n), 0);
942
- const e = ge.value[_.value], s = l.value.chart.tooltip.customFormat;
943
- return Jt(s) && Kt(() => s({
939
+ })), Ct = L(() => {
940
+ let a = "", c = _l.value.map((t) => t.value).filter((t) => El(t) && t !== null).reduce((t, r) => Math.abs(t) + Math.abs(r), 0);
941
+ const e = he.value[_.value], s = l.value.chart.tooltip.customFormat;
942
+ return qt(s) && Ut(() => s({
944
943
  absoluteIndex: _.value + S.value.start,
945
944
  seriesIndex: _.value,
946
945
  datapoint: _l.value,
947
- series: Te.value,
946
+ series: Be.value,
948
947
  bars: We.value,
949
- lines: ze.value,
950
- plots: Oe.value,
948
+ lines: Ae.value,
949
+ plots: Ie.value,
951
950
  config: l.value
952
951
  })) ? s({
953
952
  absoluteIndex: _.value + S.value.start,
954
953
  seriesIndex: _.value,
955
954
  datapoint: _l.value,
956
- series: Te.value,
955
+ series: Be.value,
957
956
  bars: We.value,
958
- lines: ze.value,
959
- plots: Oe.value,
957
+ lines: Ae.value,
958
+ plots: Ie.value,
960
959
  config: l.value
961
960
  }) : (e && e.text && l.value.chart.tooltip.showTimeLabel && (a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${e.text}</div>`), _l.value.forEach((t) => {
962
- if (Gl(t.value)) {
963
- let n = "", o = "";
961
+ if (El(t.value)) {
962
+ let r = "", o = "";
964
963
  switch (yl.value[t.type]) {
965
964
  case "bar":
966
- n = `<svg viewBox="0 0 40 40" height="14" width="14">${Tl.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${t.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${Tl.pattern ? `url(#pattern_${J.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
965
+ r = `<svg viewBox="0 0 40 40" height="14" width="14">${cl.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${t.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${cl.pattern ? `url(#pattern_${Z.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
967
966
  break;
968
967
  case "line":
969
- !t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${it({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), n = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${o}</svg>`;
968
+ !t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${tt({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), r = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${o}</svg>`;
970
969
  break;
971
970
  case "plot":
972
971
  if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
973
- n = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" /></svg>`;
972
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" /></svg>`;
974
973
  break;
975
974
  }
976
975
  if (t.shape === "star") {
977
- n = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${it({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
976
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${tt({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
978
977
  break;
979
978
  }
980
979
  if (t.shape === "triangle") {
981
- n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
980
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
982
981
  break;
983
982
  }
984
983
  if (t.shape === "square") {
985
- n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
984
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
986
985
  break;
987
986
  }
988
987
  if (t.shape === "diamond") {
989
- n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
988
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
990
989
  break;
991
990
  }
992
991
  if (t.shape === "pentagon") {
993
- n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
992
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
994
993
  break;
995
994
  }
996
995
  if (t.shape === "hexagon") {
997
- n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
996
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
998
997
  break;
999
998
  }
1000
999
  }
1001
- a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${n}</div> ${t.name}: <b>${l.value.chart.tooltip.showValue ? fe(
1000
+ a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${r}</div> ${t.name}: <b>${l.value.chart.tooltip.showValue ? ne(
1002
1001
  t.type === "line" ? l.value.line.labels.formatter : t.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1003
1002
  t.value,
1004
- Se({
1003
+ pe({
1005
1004
  p: t.prefix,
1006
1005
  v: t.value,
1007
1006
  s: t.suffix,
1008
1007
  r: l.value.chart.tooltip.roundingValue
1009
1008
  }),
1010
1009
  { datapoint: t }
1011
- ) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${Se({
1010
+ ) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${pe({
1012
1011
  v: T(Math.abs(t.value) / c * 100),
1013
1012
  s: "%",
1014
1013
  r: l.value.chart.tooltip.roundingPercentage
@@ -1016,38 +1015,38 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
1016
1015
  }
1017
1016
  }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${a}</div>`);
1018
1017
  });
1019
- A(() => {
1020
- if (Ye.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
1021
- const a = Ae.value.map((e) => ({
1018
+ L(() => {
1019
+ if (Re.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
1020
+ const a = $e.value.map((e) => ({
1022
1021
  label: e.name,
1023
1022
  color: e.color,
1024
1023
  type: e.type
1025
1024
  })), c = [];
1026
- return ge.value.forEach((e, s) => {
1025
+ return he.value.forEach((e, s) => {
1027
1026
  const t = [e.text];
1028
- Ae.value.forEach((n) => {
1029
- t.push(_e(n.absoluteValues[s]) ? Number(n.absoluteValues[s].toFixed(l.value.table.rounding)) : "");
1027
+ $e.value.forEach((r) => {
1028
+ t.push(me(r.absoluteValues[s]) ? Number(r.absoluteValues[s].toFixed(l.value.table.rounding)) : "");
1030
1029
  }), c.push(t);
1031
1030
  }), { head: a, body: c };
1032
1031
  });
1033
- const El = A(() => {
1032
+ const Fl = L(() => {
1034
1033
  const a = l.value.table.showSum;
1035
- let c = [""].concat(Ae.value.map((n) => n.name));
1034
+ let c = [""].concat($e.value.map((r) => r.name));
1036
1035
  a && (c = c.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
1037
1036
  let e = [];
1038
- for (let n = 0; n < b.value; n += 1) {
1039
- const o = Ae.value.map((R) => R.absoluteValues[n] ?? 0).reduce((R, F) => R + F, 0);
1037
+ for (let r = 0; r < m.value; r += 1) {
1038
+ const o = $e.value.map((B) => B.absoluteValues[r] ?? 0).reduce((B, E) => B + E, 0);
1040
1039
  e.push(
1041
1040
  [
1042
- ge.value[n].text ?? "-"
1043
- ].concat(Ae.value.map(
1044
- (R) => fe(
1045
- R.type === "line" ? l.value.line.labels.formatter : R.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1046
- R.absoluteValues[n] ?? 0,
1047
- Se({
1048
- p: R.prefix || l.value.chart.labels.prefix,
1049
- v: R.absoluteValues[n] ?? 0,
1050
- s: R.suffix || l.value.chart.labels.suffix,
1041
+ he.value[r].text ?? "-"
1042
+ ].concat($e.value.map(
1043
+ (B) => ne(
1044
+ B.type === "line" ? l.value.line.labels.formatter : B.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1045
+ B.absoluteValues[r] ?? 0,
1046
+ pe({
1047
+ p: B.prefix || l.value.chart.labels.prefix,
1048
+ v: B.absoluteValues[r] ?? 0,
1049
+ s: B.suffix || l.value.chart.labels.suffix,
1051
1050
  r: l.value.table.rounding
1052
1051
  })
1053
1052
  )
@@ -1066,92 +1065,92 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
1066
1065
  outline: l.value.table.td.outline
1067
1066
  },
1068
1067
  breakpoint: l.value.table.responsiveBreakpoint
1069
- }, t = [l.value.table.columnNames.period].concat(Ae.value.map((n) => n.name)).concat(l.value.table.columnNames.total);
1068
+ }, t = [l.value.table.columnNames.period].concat($e.value.map((r) => r.name)).concat(l.value.table.columnNames.total);
1070
1069
  return { head: c, body: e, config: s, colNames: t };
1071
1070
  });
1072
- function Da(a = null) {
1073
- const c = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...t.value.head.map((o) => o.label)], s = t.value.body, t = c.concat([e]).concat(s), n = ao(t);
1074
- a ? a(n) : to({ csvContent: n, title: l.value.chart.title.text || "vue-ui-xy" });
1071
+ function Fa(a = null) {
1072
+ const c = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...t.value.head.map((o) => o.label)], s = t.value.body, t = c.concat([e]).concat(s), r = jt(t);
1073
+ a ? a(r) : eo({ csvContent: r, title: l.value.chart.title.text || "vue-ui-xy" });
1075
1074
  }
1076
- function Ua(a, c = null) {
1077
- ka.value = a, a ? _.value = c : _.value = null;
1075
+ function Ea(a, c = null) {
1076
+ xa.value = a, a ? _.value = c : _.value = null;
1078
1077
  }
1079
- function qa() {
1078
+ function Wa() {
1080
1079
  f.value.showTable = !f.value.showTable;
1081
1080
  }
1082
- function Za() {
1081
+ function Xa() {
1083
1082
  f.value.dataLabels.show = !f.value.dataLabels.show;
1084
1083
  }
1085
- function Ja() {
1084
+ function Ga() {
1086
1085
  f.value.showTooltip = !f.value.showTooltip;
1087
1086
  }
1088
- function Ka(a) {
1089
- hl.value = a, _a.value += 1;
1087
+ function Da(a) {
1088
+ vl.value = a, ba.value += 1;
1090
1089
  }
1091
- function Qa() {
1090
+ function qa() {
1092
1091
  if (!l.value.responsiveProportionalSizing) {
1093
- x.value.dataLabels = l.value.chart.grid.labels.fontSize, x.value.yAxis = l.value.chart.grid.labels.axis.fontSize, x.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = l.value.chart.labels.fontSize, Ie.value.plot = l.value.plot.radius, Ie.value.line = l.value.line.radius;
1092
+ b.value.dataLabels = l.value.chart.grid.labels.fontSize, b.value.yAxis = l.value.chart.grid.labels.axis.fontSize, b.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, b.value.plotLabels = l.value.chart.labels.fontSize, Ce.value.plot = l.value.plot.radius, Ce.value.line = l.value.line.radius;
1094
1093
  return;
1095
1094
  }
1096
- x.value.dataLabels = xl({
1097
- relator: ce.value,
1095
+ b.value.dataLabels = hl({
1096
+ relator: ge.value,
1098
1097
  adjuster: 400,
1099
1098
  source: l.value.chart.grid.labels.fontSize,
1100
1099
  threshold: 10,
1101
1100
  fallback: 10
1102
- }), x.value.yAxis = xl({
1103
- relator: K.value,
1101
+ }), b.value.yAxis = hl({
1102
+ relator: se.value,
1104
1103
  adjuster: 1e3,
1105
1104
  source: l.value.chart.grid.labels.axis.fontSize,
1106
1105
  threshold: 10,
1107
1106
  fallback: 10
1108
- }), x.value.xAxis = xl({
1109
- relator: K.value,
1107
+ }), b.value.xAxis = hl({
1108
+ relator: se.value,
1110
1109
  adjuster: 1e3,
1111
1110
  source: l.value.chart.grid.labels.xAxisLabels.fontSize,
1112
1111
  threshold: 10,
1113
1112
  fallback: 10
1114
- }), x.value.plotLabels = xl({
1115
- relator: K.value,
1113
+ }), b.value.plotLabels = hl({
1114
+ relator: se.value,
1116
1115
  adjuster: 800,
1117
1116
  source: l.value.chart.labels.fontSize,
1118
1117
  threshold: 10,
1119
1118
  fallback: 10
1120
- }), Ie.value.plot = xl({
1121
- relator: K.value,
1119
+ }), Ce.value.plot = hl({
1120
+ relator: se.value,
1122
1121
  adjuster: 800,
1123
1122
  source: l.value.plot.radius,
1124
1123
  threshold: 1,
1125
1124
  fallback: 1
1126
- }), Ie.value.line = xl({
1127
- relator: K.value,
1125
+ }), Ce.value.line = hl({
1126
+ relator: se.value,
1128
1127
  adjuster: 800,
1129
1128
  source: l.value.line.radius,
1130
1129
  threshold: 1,
1131
1130
  fallback: 1
1132
1131
  });
1133
1132
  }
1134
- const Sl = A(() => !!l.value.debug);
1135
- function ja() {
1136
- nt(m.dataset) ? (ma({
1133
+ const Sl = L(() => !!l.value.debug);
1134
+ function Ua() {
1135
+ ot(x.dataset) ? (ha({
1137
1136
  componentName: "VueUiXy",
1138
1137
  type: "dataset",
1139
1138
  debug: Sl.value
1140
- }), Hl.value = !0) : m.dataset.forEach((c, e) => {
1141
- [null, void 0].includes(c.name) && (ma({
1139
+ }), Hl.value = !0) : x.dataset.forEach((c, e) => {
1140
+ [null, void 0].includes(c.name) && (ha({
1142
1141
  componentName: "VueUiXy",
1143
1142
  type: "datasetSerieAttribute",
1144
1143
  property: "name (string)",
1145
1144
  index: e,
1146
1145
  debug: Sl.value
1147
1146
  }), Hl.value = !0);
1148
- }), Sl.value && m.dataset.forEach((c) => {
1147
+ }), Sl.value && x.dataset.forEach((c) => {
1149
1148
  c.series.forEach((e, s) => {
1150
- Gl(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1149
+ El(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1151
1150
  -----> The serie '${c.name}' contains the value '${e}' at index ${s}.
1152
1151
  '${e}' was converted to null to allow the chart to display.`);
1153
1152
  });
1154
- }), nt(m.dataset) || (Hl.value = l.value.loading), $a.value = l.value.chart.userOptions.showOnChartHover, oa.value = l.value.chart.userOptions.keepStateOnChartLeave, Vl.value = !l.value.chart.userOptions.showOnChartHover, f.value = {
1153
+ }), ot(x.dataset) || (Hl.value = l.value.loading), pa.value = l.value.chart.userOptions.showOnChartHover, ea.value = l.value.chart.userOptions.keepStateOnChartLeave, Vl.value = !l.value.chart.userOptions.showOnChartHover, f.value = {
1155
1154
  dataLabels: {
1156
1155
  show: !0
1157
1156
  },
@@ -1160,79 +1159,58 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
1160
1159
  isStacked: l.value.chart.grid.labels.yAxis.stacked,
1161
1160
  useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
1162
1161
  };
1163
- const a = X.value ? 0 : 12;
1162
+ const a = 12;
1164
1163
  if (l.value.responsive) {
1165
- const e = E.value.parentNode;
1166
- je.value && (je.value.unobserve(la.value), je.value.disconnect());
1164
+ const e = Q.value.parentNode;
1165
+ Qe.value && (Qe.value.unobserve(Kl.value), Qe.value.disconnect());
1167
1166
  const { height: s, width: t } = e.getBoundingClientRect();
1168
- let n = null, o = 0;
1169
- l.value.chart.title.show && j.value && (n = j.value, o = n.getBoundingClientRect().height);
1170
- let R = null, F = 0;
1171
- l.value.chart.zoom.show && Ee.value > 6 && ua.value && U.value && U.value.$el && (R = U.value.$el, F = R.getBoundingClientRect().height);
1172
- let ee = null, $ = 0;
1173
- l.value.chart.legend.show && ke.value && (ee = ke.value, $ = ee.getBoundingClientRect().height);
1167
+ let r = null, o = 0;
1168
+ l.value.chart.title.show && j.value && (r = j.value, o = r.getBoundingClientRect().height);
1169
+ let B = null, E = 0;
1170
+ l.value.chart.zoom.show && Ee.value > 6 && aa.value && F.value && F.value.$el && (B = F.value.$el, E = B.getBoundingClientRect().height);
1171
+ let W = null, $ = 0;
1172
+ l.value.chart.legend.show && J.value && (W = J.value, $ = W.getBoundingClientRect().height);
1174
1173
  let z = 0;
1175
- He.value && (z = He.value.getBoundingClientRect().height);
1176
- let W = 0;
1177
- me.value && (W = me.value.getBoundingClientRect().height), ce.value = s - o - $ - F - z - W - a, K.value = t, X.value ? al() : el.value = `0 0 ${K.value < 0 ? 10 : K.value} ${ce.value < 0 ? 10 : ce.value}`, Qa();
1174
+ ke.value && (z = ke.value.getBoundingClientRect().height);
1175
+ let Y = 0;
1176
+ Ve.value && (Y = Ve.value.getBoundingClientRect().height), ge.value = s - o - $ - E - z - Y - a, se.value = t, Ol.value = `0 0 ${se.value < 0 ? 10 : se.value} ${ge.value < 0 ? 10 : ge.value}`, qa();
1178
1177
  const k = new ResizeObserver((N) => {
1179
- for (const L of N)
1180
- l.value.chart.title.show && j.value ? o = j.value.getBoundingClientRect().height : o = 0, U.value && U.value.$el ? F = U.value.$el.getBoundingClientRect().height : F = 0, ke.value ? $ = ke.value.getBoundingClientRect().height : $ = 0, He.value ? z = He.value.getBoundingClientRect().height : z = 0, me.value ? W = me.value.getBoundingClientRect().height : W = 0, X.value && E.value.classList.add("no-transition"), requestAnimationFrame(() => {
1181
- ce.value = L.contentRect.height - o - $ - F - z - W - (X.value ? 48 : a), X.value ? (La.value = L.contentRect.height - ce.value, K.value = L.contentBoxSize[0].inlineSize, vt.value = K.value / La.value, al()) : (K.value = L.contentBoxSize[0].inlineSize, el.value = `0 0 ${K.value < 0 ? 10 : K.value} ${ce.value < 0 ? 10 : ce.value}`), Qa();
1178
+ for (const A of N)
1179
+ l.value.chart.title.show && j.value ? o = j.value.getBoundingClientRect().height : o = 0, F.value && F.value.$el ? E = F.value.$el.getBoundingClientRect().height : E = 0, J.value ? $ = J.value.getBoundingClientRect().height : $ = 0, ke.value ? z = ke.value.getBoundingClientRect().height : z = 0, Ve.value ? Y = Ve.value.getBoundingClientRect().height : Y = 0, requestAnimationFrame(() => {
1180
+ ge.value = A.contentRect.height - o - $ - E - z - Y - a, se.value = A.contentBoxSize[0].inlineSize, Ol.value = `0 0 ${se.value < 0 ? 10 : se.value} ${ge.value < 0 ? 10 : ge.value}`, qa();
1182
1181
  });
1183
1182
  });
1184
- je.value = k, la.value = e, k.observe(e);
1183
+ Qe.value = k, Kl.value = e, k.observe(e);
1185
1184
  } else
1186
- ce.value = l.value.chart.height, K.value = l.value.chart.width, x.value.dataLabels = l.value.chart.grid.labels.fontSize, x.value.yAxis = l.value.chart.grid.labels.axis.fontSize, x.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = l.value.chart.labels.fontSize, Ie.value.plot = l.value.plot.radius, Ie.value.line = l.value.line.radius, X.value ? al() : el.value = `0 0 ${K.value} ${ce.value}`;
1185
+ ge.value = l.value.chart.height, se.value = l.value.chart.width, b.value.dataLabels = l.value.chart.grid.labels.fontSize, b.value.yAxis = l.value.chart.grid.labels.axis.fontSize, b.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, b.value.plotLabels = l.value.chart.labels.fontSize, Ce.value.plot = l.value.plot.radius, Ce.value.line = l.value.line.radius, Ol.value = `0 0 ${se.value} ${ge.value}`;
1187
1186
  }
1188
- ga(() => {
1189
- ja(), fa(), document.addEventListener("mousemove", (a) => {
1190
- ct.value = {
1187
+ return Za(() => {
1188
+ Ua(), ca(), document.addEventListener("mousemove", (a) => {
1189
+ st.value = {
1191
1190
  x: a.clientX,
1192
1191
  y: a.clientY
1193
1192
  };
1194
- }), document.addEventListener("scroll", Ta);
1195
- }), lt(() => {
1196
- document.removeEventListener("scroll", Ta), je.value && (je.value.unobserve(la.value), je.value.disconnect());
1197
- }), zl(() => f.value.isStacked, async () => {
1198
- X.value && (await be(), al(), Yl());
1199
- }), ho({
1200
- timeLabelsEls: Ol,
1201
- timeLabels: ge,
1193
+ }), document.addEventListener("scroll", Aa);
1194
+ }), Ja(() => {
1195
+ document.removeEventListener("scroll", Aa), Qe.value && (Qe.value.unobserve(Kl.value), Qe.value.disconnect());
1196
+ }), co({
1197
+ timeLabelsEls: ze,
1198
+ timeLabels: he,
1202
1199
  slicer: S,
1203
1200
  configRef: l,
1204
1201
  rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
1205
1202
  autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate"],
1206
- isAutoSize: X,
1207
- setViewBox: al,
1208
- forceResizeObserver: Yl
1209
- });
1210
- let Wl;
1211
- async function et() {
1212
- await be(), al(), Yl(), Wl.disconnect();
1213
- }
1214
- return ga(() => {
1215
- E.value && (Wl = new ResizeObserver((a) => {
1216
- for (const c of a) {
1217
- const { width: e, height: s } = c.contentRect;
1218
- if (e > 0 && s > 0) {
1219
- et();
1220
- break;
1221
- }
1222
- }
1223
- }), Wl.observe(E.value.parentElement));
1224
- }), lt(() => {
1225
- Wl?.disconnect();
1226
- }), zl(() => m.dataset, (a) => {
1227
- Array.isArray(a) && a.length > 0 && (Hl.value = !1), Ee.value = Math.max(...Re.value.map((c) => Ue({
1203
+ isAutoSize: it
1204
+ }), Gl(() => x.dataset, (a) => {
1205
+ Array.isArray(a) && a.length > 0 && (Hl.value = !1), Ee.value = Math.max(...we.value.map((c) => qe({
1228
1206
  data: c.series,
1229
1207
  threshold: l.value.downsample.threshold
1230
1208
  }).length)), S.value = {
1231
1209
  start: 0,
1232
1210
  end: Ee.value
1233
- }, aa.value += 1, ta.value += 1, et();
1234
- }, { deep: !0 }), zl(() => m.config, (a) => {
1235
- ra.value || (l.value = sa()), ja(), Sa.value += 1, wa.value += 1, f.value = {
1211
+ }, Ql.value += 1, jl.value += 1;
1212
+ }, { deep: !0 }), Gl(() => x.config, (a) => {
1213
+ ta.value || (l.value = la()), Ua(), ya.value += 1, ma.value += 1, f.value = {
1236
1214
  dataLabels: {
1237
1215
  show: !0
1238
1216
  },
@@ -1241,7 +1219,7 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
1241
1219
  isStacked: l.value.chart.grid.labels.yAxis.stacked,
1242
1220
  useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
1243
1221
  };
1244
- }, { deep: !0 }), zl(l, () => {
1222
+ }, { deep: !0 }), Gl(l, () => {
1245
1223
  f.value = {
1246
1224
  dataLabels: {
1247
1225
  show: !0
@@ -1251,51 +1229,51 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
1251
1229
  isStacked: l.value.chart.grid.labels.yAxis.stacked,
1252
1230
  useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
1253
1231
  };
1254
- }, { immediate: !0 }), Ul({
1255
- getData: St,
1256
- getImage: $t,
1257
- generatePdf: Ma,
1258
- generateImage: za,
1259
- generateCsv: Da,
1260
- toggleStack: Va,
1261
- toggleTable: qa,
1262
- toggleLabels: Za,
1263
- toggleTooltip: Ja,
1264
- toggleAnnotator: da,
1265
- toggleFullscreen: Ka
1266
- }), (a, c) => (u(), r("div", {
1267
- id: `vue-ui-xy_${J.value}`,
1268
- class: ul(`vue-ui-xy ${hl.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1232
+ }, { immediate: !0 }), Dl({
1233
+ getData: pt,
1234
+ getImage: kt,
1235
+ generatePdf: _a,
1236
+ generateImage: wa,
1237
+ generateCsv: Fa,
1238
+ toggleStack: Ca,
1239
+ toggleTable: Wa,
1240
+ toggleLabels: Xa,
1241
+ toggleTooltip: Ga,
1242
+ toggleAnnotator: ia,
1243
+ toggleFullscreen: Da
1244
+ }), (a, c) => (u(), i("div", {
1245
+ id: `vue-ui-xy_${Z.value}`,
1246
+ class: tl(`vue-ui-xy ${vl.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1269
1247
  ref_key: "chart",
1270
- ref: E,
1248
+ ref: Q,
1271
1249
  style: C(`background:${l.value.chart.backgroundColor}; color:${l.value.chart.color};width:100%;font-family:${l.value.chart.fontFamily};${l.value.responsive ? "height: 100%" : ""}`),
1272
- onMouseenter: c[7] || (c[7] = () => Oa(!0)),
1273
- onMouseleave: c[8] || (c[8] = () => Oa(!1))
1250
+ onMouseenter: c[7] || (c[7] = () => Ma(!0)),
1251
+ onMouseleave: c[8] || (c[8] = () => Ma(!1))
1274
1252
  }, [
1275
- l.value.chart.userOptions.buttons.annotator && $e.value ? (u(), Ve(v(Ql), {
1253
+ l.value.chart.userOptions.buttons.annotator && _e.value ? (u(), Oe(v(Tl), {
1276
1254
  key: 0,
1277
- svgRef: $e.value,
1255
+ svgRef: _e.value,
1278
1256
  backgroundColor: l.value.chart.backgroundColor,
1279
1257
  color: l.value.chart.color,
1280
1258
  active: Nl.value,
1281
- onClose: da
1259
+ onClose: ia
1282
1260
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
1283
- At.value ? (u(), r("div", {
1261
+ wt.value ? (u(), i("div", {
1284
1262
  key: 1,
1285
1263
  ref_key: "noTitle",
1286
- ref: me,
1264
+ ref: Ve,
1287
1265
  class: "vue-data-ui-no-title-space",
1288
1266
  style: "height:36px; width: 100%; background:transparent"
1289
1267
  }, null, 512)) : d("", !0),
1290
- l.value.chart.title.show ? (u(), r("div", {
1268
+ l.value.chart.title.show ? (u(), i("div", {
1291
1269
  key: 2,
1292
1270
  ref_key: "chartTitle",
1293
1271
  ref: j,
1294
1272
  class: "vue-ui-xy-title",
1295
1273
  style: C(`font-family:${l.value.chart.fontFamily}`)
1296
1274
  }, [
1297
- (u(), Ve(uo, {
1298
- key: `title_${Sa.value}`,
1275
+ (u(), Oe(to, {
1276
+ key: `title_${ya.value}`,
1299
1277
  config: {
1300
1278
  title: {
1301
1279
  cy: "xy-div-title",
@@ -1308,24 +1286,24 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
1308
1286
  }
1309
1287
  }, null, 8, ["config"]))
1310
1288
  ], 4)) : d("", !0),
1311
- l.value.chart.userOptions.show && (oa.value || Vl.value) ? (u(), Ve(v(Zl), {
1289
+ l.value.chart.userOptions.show && (ea.value || Vl.value) ? (u(), Oe(v(Ul), {
1312
1290
  ref: "defails",
1313
- key: `user_options_${_a.value}`,
1291
+ key: `user_options_${ba.value}`,
1314
1292
  backgroundColor: l.value.chart.backgroundColor,
1315
1293
  color: l.value.chart.color,
1316
- isPrinting: v(ia),
1317
- isImaging: v(Aa),
1318
- uid: J.value,
1294
+ isPrinting: v(oa),
1295
+ isImaging: v(ka),
1296
+ uid: Z.value,
1319
1297
  hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
1320
1298
  hasPdf: l.value.chart.userOptions.buttons.pdf,
1321
1299
  hasXls: l.value.chart.userOptions.buttons.csv,
1322
1300
  hasImg: l.value.chart.userOptions.buttons.img,
1323
1301
  hasLabel: l.value.chart.userOptions.buttons.labels,
1324
1302
  hasTable: l.value.chart.userOptions.buttons.table,
1325
- hasStack: bl.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
1303
+ hasStack: gl.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
1326
1304
  hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
1327
1305
  isStacked: f.value.isStacked,
1328
- isFullscreen: hl.value,
1306
+ isFullscreen: vl.value,
1329
1307
  chartElement: a.$refs.chart,
1330
1308
  position: l.value.chart.userOptions.position,
1331
1309
  isTooltip: f.value.showTooltip,
@@ -1334,247 +1312,247 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
1334
1312
  isAnnotation: Nl.value,
1335
1313
  callbacks: l.value.chart.userOptions.callbacks,
1336
1314
  printScale: l.value.chart.userOptions.print.scale,
1337
- onToggleFullscreen: Ka,
1338
- onGeneratePdf: v(Ma),
1339
- onGenerateCsv: Da,
1340
- onGenerateImage: v(za),
1341
- onToggleTable: qa,
1342
- onToggleLabels: Za,
1343
- onToggleStack: Va,
1344
- onToggleTooltip: Ja,
1345
- onToggleAnnotator: da,
1315
+ onToggleFullscreen: Da,
1316
+ onGeneratePdf: v(_a),
1317
+ onGenerateCsv: Fa,
1318
+ onGenerateImage: v(wa),
1319
+ onToggleTable: Wa,
1320
+ onToggleLabels: Xa,
1321
+ onToggleStack: Ca,
1322
+ onToggleTooltip: Ga,
1323
+ onToggleAnnotator: ia,
1346
1324
  style: C({
1347
- visibility: oa.value ? Vl.value ? "visible" : "hidden" : "visible"
1325
+ visibility: ea.value ? Vl.value ? "visible" : "hidden" : "visible"
1348
1326
  })
1349
- }, Rt({ _: 2 }, [
1327
+ }, Pt({ _: 2 }, [
1350
1328
  a.$slots.menuIcon ? {
1351
1329
  name: "menuIcon",
1352
- fn: ne(({ isOpen: e, color: s }) => [
1353
- Z(a.$slots, "menuIcon", rl(il({ isOpen: e, color: s })), void 0, !0)
1330
+ fn: ie(({ isOpen: e, color: s }) => [
1331
+ U(a.$slots, "menuIcon", ol(sl({ isOpen: e, color: s })), void 0, !0)
1354
1332
  ]),
1355
1333
  key: "0"
1356
1334
  } : void 0,
1357
1335
  a.$slots.optionTooltip ? {
1358
1336
  name: "optionTooltip",
1359
- fn: ne(() => [
1360
- Z(a.$slots, "optionTooltip", {}, void 0, !0)
1337
+ fn: ie(() => [
1338
+ U(a.$slots, "optionTooltip", {}, void 0, !0)
1361
1339
  ]),
1362
1340
  key: "1"
1363
1341
  } : void 0,
1364
1342
  a.$slots.optionPdf ? {
1365
1343
  name: "optionPdf",
1366
- fn: ne(() => [
1367
- Z(a.$slots, "optionPdf", {}, void 0, !0)
1344
+ fn: ie(() => [
1345
+ U(a.$slots, "optionPdf", {}, void 0, !0)
1368
1346
  ]),
1369
1347
  key: "2"
1370
1348
  } : void 0,
1371
1349
  a.$slots.optionCsv ? {
1372
1350
  name: "optionCsv",
1373
- fn: ne(() => [
1374
- Z(a.$slots, "optionCsv", {}, void 0, !0)
1351
+ fn: ie(() => [
1352
+ U(a.$slots, "optionCsv", {}, void 0, !0)
1375
1353
  ]),
1376
1354
  key: "3"
1377
1355
  } : void 0,
1378
1356
  a.$slots.optionImg ? {
1379
1357
  name: "optionImg",
1380
- fn: ne(() => [
1381
- Z(a.$slots, "optionImg", {}, void 0, !0)
1358
+ fn: ie(() => [
1359
+ U(a.$slots, "optionImg", {}, void 0, !0)
1382
1360
  ]),
1383
1361
  key: "4"
1384
1362
  } : void 0,
1385
1363
  a.$slots.optionTable ? {
1386
1364
  name: "optionTable",
1387
- fn: ne(() => [
1388
- Z(a.$slots, "optionTable", {}, void 0, !0)
1365
+ fn: ie(() => [
1366
+ U(a.$slots, "optionTable", {}, void 0, !0)
1389
1367
  ]),
1390
1368
  key: "5"
1391
1369
  } : void 0,
1392
1370
  a.$slots.optionLabels ? {
1393
1371
  name: "optionLabels",
1394
- fn: ne(() => [
1395
- Z(a.$slots, "optionLabels", {}, void 0, !0)
1372
+ fn: ie(() => [
1373
+ U(a.$slots, "optionLabels", {}, void 0, !0)
1396
1374
  ]),
1397
1375
  key: "6"
1398
1376
  } : void 0,
1399
1377
  a.$slots.optionStack ? {
1400
1378
  name: "optionStack",
1401
- fn: ne(() => [
1402
- Z(a.$slots, "optionStack", {}, void 0, !0)
1379
+ fn: ie(() => [
1380
+ U(a.$slots, "optionStack", {}, void 0, !0)
1403
1381
  ]),
1404
1382
  key: "7"
1405
1383
  } : void 0,
1406
1384
  a.$slots.optionFullscreen ? {
1407
1385
  name: "optionFullscreen",
1408
- fn: ne(({ toggleFullscreen: e, isFullscreen: s }) => [
1409
- Z(a.$slots, "optionFullscreen", rl(il({ toggleFullscreen: e, isFullscreen: s })), void 0, !0)
1386
+ fn: ie(({ toggleFullscreen: e, isFullscreen: s }) => [
1387
+ U(a.$slots, "optionFullscreen", ol(sl({ toggleFullscreen: e, isFullscreen: s })), void 0, !0)
1410
1388
  ]),
1411
1389
  key: "8"
1412
1390
  } : void 0,
1413
1391
  a.$slots.optionAnnotator ? {
1414
1392
  name: "optionAnnotator",
1415
- fn: ne(({ toggleAnnotator: e, isAnnotator: s }) => [
1416
- Z(a.$slots, "optionAnnotator", rl(il({ toggleAnnotator: e, isAnnotator: s })), void 0, !0)
1393
+ fn: ie(({ toggleAnnotator: e, isAnnotator: s }) => [
1394
+ U(a.$slots, "optionAnnotator", ol(sl({ toggleAnnotator: e, isAnnotator: s })), void 0, !0)
1417
1395
  ]),
1418
1396
  key: "9"
1419
1397
  } : void 0
1420
1398
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
1421
- (u(), r("svg", {
1399
+ (u(), i("svg", {
1422
1400
  ref_key: "svgRef",
1423
- ref: $e,
1401
+ ref: _e,
1424
1402
  xmlns: "http://www.w3.org/2000/svg",
1425
- class: ul([{ "vue-data-ui-fullscreen--on": hl.value, "vue-data-ui-fulscreen--off": !hl.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
1426
- width: X.value ? void 0 : "100%",
1427
- viewBox: el.value,
1403
+ class: tl([{ "vue-data-ui-fullscreen--on": vl.value, "vue-data-ui-fulscreen--off": !vl.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
1404
+ width: "100%",
1405
+ viewBox: Ol.value,
1428
1406
  style: C({
1429
1407
  background: "transparent",
1430
1408
  color: l.value.chart.color,
1431
1409
  fontFamily: l.value.chart.fontFamily
1432
1410
  }),
1433
- "aria-label": Lt.value,
1411
+ "aria-label": _t.value,
1434
1412
  role: "img",
1435
1413
  "aria-live": "polite",
1436
1414
  preserveAspectRatio: "xMidYMid"
1437
1415
  }, [
1438
1416
  g("g", {
1439
1417
  ref_key: "G",
1440
- ref: dl,
1418
+ ref: Pe,
1441
1419
  class: "vue-data-ui-g"
1442
1420
  }, [
1443
- Al(v(Il)),
1444
- a.$slots["chart-background"] ? (u(), r("foreignObject", {
1421
+ Al(v(xl)),
1422
+ a.$slots["chart-background"] ? (u(), i("foreignObject", {
1445
1423
  key: 0,
1446
- x: i.value.left + Y.value < 0 ? 0 : i.value.left + Y.value,
1447
- y: i.value.top,
1448
- width: i.value.width - (l.value.chart.grid.position === "middle" ? 0 : i.value.width / b.value) < 0 ? 0 : i.value.width - (l.value.chart.grid.position === "middle" ? 0 : i.value.width / b.value),
1449
- height: i.value.height < 0 ? 0 : i.value.height,
1424
+ x: n.value.left + D.value < 0 ? 0 : n.value.left + D.value,
1425
+ y: n.value.top,
1426
+ width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / m.value) < 0 ? 0 : n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / m.value),
1427
+ height: n.value.height < 0 ? 0 : n.value.height,
1450
1428
  style: {
1451
1429
  pointerEvents: "none"
1452
1430
  }
1453
1431
  }, [
1454
- Z(a.$slots, "chart-background", {}, void 0, !0)
1455
- ], 8, xo)) : d("", !0),
1456
- b.value > 0 ? (u(), r("g", bo, [
1457
- g("g", mo, [
1458
- l.value.chart.grid.labels.xAxis.showBaseline ? (u(), r("line", {
1432
+ U(a.$slots, "chart-background", {}, void 0, !0)
1433
+ ], 8, fo)) : d("", !0),
1434
+ m.value > 0 ? (u(), i("g", go, [
1435
+ g("g", xo, [
1436
+ l.value.chart.grid.labels.xAxis.showBaseline ? (u(), i("line", {
1459
1437
  key: 0,
1460
1438
  stroke: l.value.chart.grid.stroke,
1461
1439
  "stroke-width": "1",
1462
- x1: i.value.left + Y.value,
1463
- x2: i.value.right - Y.value,
1464
- y1: v(B)(i.value.bottom),
1465
- y2: v(B)(i.value.bottom),
1440
+ x1: n.value.left + D.value,
1441
+ x2: n.value.right - D.value,
1442
+ y1: v(R)(n.value.bottom),
1443
+ y2: v(R)(n.value.bottom),
1466
1444
  "stroke-linecap": "round",
1467
1445
  style: { animation: "none !important" }
1468
- }, null, 8, yo)) : d("", !0),
1469
- f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (u(!0), r(h, { key: 2 }, y(wl.value, (e) => (u(), r("g", null, [
1470
- e.id === M.value && e.yLabels.length ? (u(!0), r(h, { key: 0 }, y(e.yLabels, (s) => (u(), r("line", {
1471
- x1: i.value.left + Y.value,
1472
- x2: i.value.right - Y.value,
1473
- y1: v(B)(s.y),
1474
- y2: v(B)(s.y),
1446
+ }, null, 8, bo)) : d("", !0),
1447
+ f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (u(!0), i(h, { key: 2 }, y(wl.value, (e) => (u(), i("g", null, [
1448
+ e.id === M.value && e.yLabels.length ? (u(!0), i(h, { key: 0 }, y(e.yLabels, (s) => (u(), i("line", {
1449
+ x1: n.value.left + D.value,
1450
+ x2: n.value.right - D.value,
1451
+ y1: v(R)(s.y),
1452
+ y2: v(R)(s.y),
1475
1453
  stroke: e.color,
1476
1454
  "stroke-width": 0.5,
1477
1455
  "stroke-linecap": "round",
1478
1456
  style: { animation: "none !important" }
1479
- }, null, 8, wo))), 256)) : e.yLabels.length ? (u(!0), r(h, { key: 1 }, y(e.yLabels, (s) => (u(), r("line", {
1480
- x1: i.value.left + Y.value,
1481
- x2: i.value.right - Y.value,
1482
- y1: v(B)(s.y),
1483
- y2: v(B)(s.y),
1457
+ }, null, 8, ko))), 256)) : e.yLabels.length ? (u(!0), i(h, { key: 1 }, y(e.yLabels, (s) => (u(), i("line", {
1458
+ x1: n.value.left + D.value,
1459
+ x2: n.value.right - D.value,
1460
+ y1: v(R)(s.y),
1461
+ y2: v(R)(s.y),
1484
1462
  stroke: l.value.chart.grid.stroke,
1485
1463
  "stroke-width": 0.5,
1486
1464
  "stroke-linecap": "round",
1487
1465
  style: { animation: "none !important" }
1488
- }, null, 8, So))), 256)) : d("", !0)
1489
- ]))), 256)) : d("", !0) : (u(), r(h, { key: 1 }, [
1490
- l.value.chart.grid.labels.yAxis.showBaseline ? (u(), r("line", {
1466
+ }, null, 8, _o))), 256)) : d("", !0)
1467
+ ]))), 256)) : d("", !0) : (u(), i(h, { key: 1 }, [
1468
+ l.value.chart.grid.labels.yAxis.showBaseline ? (u(), i("line", {
1491
1469
  key: 0,
1492
1470
  stroke: l.value.chart.grid.stroke,
1493
1471
  "stroke-width": "1",
1494
- x1: i.value.left + Y.value,
1495
- x2: i.value.left + Y.value,
1496
- y1: v(B)(i.value.top),
1497
- y2: v(B)(i.value.bottom),
1472
+ x1: n.value.left + D.value,
1473
+ x2: n.value.left + D.value,
1474
+ y1: v(R)(n.value.top),
1475
+ y2: v(R)(n.value.bottom),
1498
1476
  "stroke-linecap": "round",
1499
1477
  style: { animation: "none !important" }
1500
- }, null, 8, po)) : d("", !0),
1501
- l.value.chart.grid.showHorizontalLines ? (u(), r("g", ko, [
1502
- (u(!0), r(h, null, y(Wa.value, (e) => (u(), r("line", {
1503
- x1: i.value.left + Y.value,
1504
- x2: i.value.right - Y.value,
1505
- y1: v(B)(e.y),
1506
- y2: v(B)(e.y),
1478
+ }, null, 8, mo)) : d("", !0),
1479
+ l.value.chart.grid.showHorizontalLines ? (u(), i("g", yo, [
1480
+ (u(!0), i(h, null, y(Ra.value, (e) => (u(), i("line", {
1481
+ x1: n.value.left + D.value,
1482
+ x2: n.value.right,
1483
+ y1: v(R)(e.y),
1484
+ y2: v(R)(e.y),
1507
1485
  stroke: l.value.chart.grid.stroke,
1508
1486
  "stroke-width": 0.5,
1509
1487
  "stroke-linecap": "round",
1510
1488
  style: { animation: "none !important" }
1511
- }, null, 8, _o))), 256))
1489
+ }, null, 8, po))), 256))
1512
1490
  ])) : d("", !0)
1513
1491
  ], 64)),
1514
- l.value.chart.grid.showVerticalLines ? (u(), r("g", $o, [
1492
+ l.value.chart.grid.showVerticalLines ? (u(), i("g", wo, [
1515
1493
  g("path", {
1516
- d: ft.value,
1494
+ d: dt.value,
1517
1495
  "stroke-width": 0.5,
1518
1496
  stroke: l.value.chart.grid.stroke,
1519
1497
  "stroke-linecap": "round",
1520
1498
  style: { animation: "none !important" }
1521
- }, null, 8, Lo)
1499
+ }, null, 8, So)
1522
1500
  ])) : d("", !0),
1523
- l.value.chart.grid.labels.xAxisLabels.show ? (u(), r("g", Ao, [
1501
+ l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", $o, [
1524
1502
  g("path", {
1525
- d: gt.value,
1503
+ d: ht.value,
1526
1504
  stroke: l.value.chart.grid.stroke,
1527
1505
  "stroke-width": 1,
1528
1506
  "stroke-linecap": "round",
1529
1507
  style: { animation: "none !important" }
1530
- }, null, 8, Mo)
1508
+ }, null, 8, Lo)
1531
1509
  ])) : d("", !0)
1532
1510
  ]),
1533
- (u(!0), r(h, null, y(We.value, (e, s) => (u(), r("defs", {
1511
+ (u(!0), i(h, null, y(We.value, (e, s) => (u(), i("defs", {
1534
1512
  key: `def_rect_${s}`
1535
1513
  }, [
1536
1514
  g("linearGradient", {
1537
- id: `rectGradient_pos_${s}_${J.value}`,
1515
+ id: `rectGradient_pos_${s}_${Z.value}`,
1538
1516
  x2: "0%",
1539
1517
  y2: "100%"
1540
1518
  }, [
1541
1519
  g("stop", {
1542
1520
  offset: "0%",
1543
1521
  "stop-color": e.color
1544
- }, null, 8, Co),
1522
+ }, null, 8, Mo),
1545
1523
  g("stop", {
1546
1524
  offset: "62%",
1547
- "stop-color": `${v(cl)(e.color, 0.02)}`
1548
- }, null, 8, Io),
1525
+ "stop-color": `${v(rl)(e.color, 0.02)}`
1526
+ }, null, 8, zo),
1549
1527
  g("stop", {
1550
1528
  offset: "100%",
1551
- "stop-color": `${v(cl)(e.color, 0.05)}`
1552
- }, null, 8, To)
1553
- ], 8, zo),
1529
+ "stop-color": `${v(rl)(e.color, 0.05)}`
1530
+ }, null, 8, Co)
1531
+ ], 8, Ao),
1554
1532
  g("linearGradient", {
1555
- id: `rectGradient_neg_${s}_${J.value}`,
1533
+ id: `rectGradient_neg_${s}_${Z.value}`,
1556
1534
  x2: "0%",
1557
1535
  y2: "100%"
1558
1536
  }, [
1559
1537
  g("stop", {
1560
1538
  offset: "0%",
1561
- "stop-color": `${v(cl)(e.color, 0.05)}`
1562
- }, null, 8, No),
1539
+ "stop-color": `${v(rl)(e.color, 0.05)}`
1540
+ }, null, 8, To),
1563
1541
  g("stop", {
1564
1542
  offset: "38%",
1565
- "stop-color": `${v(cl)(e.color, 0.02)}`
1566
- }, null, 8, Vo),
1543
+ "stop-color": `${v(rl)(e.color, 0.02)}`
1544
+ }, null, 8, Oo),
1567
1545
  g("stop", {
1568
1546
  offset: "100%",
1569
1547
  "stop-color": e.color
1570
- }, null, 8, Po)
1571
- ], 8, Oo)
1548
+ }, null, 8, No)
1549
+ ], 8, Io)
1572
1550
  ]))), 128)),
1573
- (u(!0), r(h, null, y(Oe.value, (e, s) => (u(), r("defs", {
1551
+ (u(!0), i(h, null, y(Ie.value, (e, s) => (u(), i("defs", {
1574
1552
  key: `def_plot_${s}`
1575
1553
  }, [
1576
1554
  g("radialGradient", {
1577
- id: `plotGradient_${s}_${J.value}`,
1555
+ id: `plotGradient_${s}_${Z.value}`,
1578
1556
  cx: "50%",
1579
1557
  cy: "50%",
1580
1558
  r: "50%",
@@ -1583,19 +1561,19 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
1583
1561
  }, [
1584
1562
  g("stop", {
1585
1563
  offset: "0%",
1586
- "stop-color": `${v(cl)(e.color, 0.05)}`
1587
- }, null, 8, Bo),
1564
+ "stop-color": `${v(rl)(e.color, 0.05)}`
1565
+ }, null, 8, Po),
1588
1566
  g("stop", {
1589
1567
  offset: "100%",
1590
1568
  "stop-color": e.color
1591
- }, null, 8, Ro)
1592
- ], 8, Ho)
1569
+ }, null, 8, Ho)
1570
+ ], 8, Vo)
1593
1571
  ]))), 128)),
1594
- (u(!0), r(h, null, y(ze.value, (e, s) => (u(), r("defs", {
1572
+ (u(!0), i(h, null, y(Ae.value, (e, s) => (u(), i("defs", {
1595
1573
  key: `def_line_${s}`
1596
1574
  }, [
1597
1575
  g("radialGradient", {
1598
- id: `lineGradient_${s}_${J.value}`,
1576
+ id: `lineGradient_${s}_${Z.value}`,
1599
1577
  cx: "50%",
1600
1578
  cy: "50%",
1601
1579
  r: "50%",
@@ -1604,15 +1582,15 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
1604
1582
  }, [
1605
1583
  g("stop", {
1606
1584
  offset: "0%",
1607
- "stop-color": `${v(cl)(e.color, 0.05)}`
1608
- }, null, 8, Fo),
1585
+ "stop-color": `${v(rl)(e.color, 0.05)}`
1586
+ }, null, 8, Bo),
1609
1587
  g("stop", {
1610
1588
  offset: "100%",
1611
1589
  "stop-color": e.color
1612
- }, null, 8, Eo)
1613
- ], 8, Yo),
1590
+ }, null, 8, Yo)
1591
+ ], 8, Ro),
1614
1592
  g("linearGradient", {
1615
- id: `areaGradient_${s}_${J.value}`,
1593
+ id: `areaGradient_${s}_${Z.value}`,
1616
1594
  x1: "0%",
1617
1595
  x2: "100%",
1618
1596
  y1: "0%",
@@ -1620,106 +1598,106 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
1620
1598
  }, [
1621
1599
  g("stop", {
1622
1600
  offset: "0%",
1623
- "stop-color": `${v(Ce)(v(cl)(e.color, 0.03), l.value.line.area.opacity)}`
1624
- }, null, 8, Go),
1601
+ "stop-color": `${v(Me)(v(rl)(e.color, 0.03), l.value.line.area.opacity)}`
1602
+ }, null, 8, Eo),
1625
1603
  g("stop", {
1626
1604
  offset: "100%",
1627
- "stop-color": `${v(Ce)(e.color, l.value.line.area.opacity)}`
1628
- }, null, 8, Xo)
1629
- ], 8, Wo)
1605
+ "stop-color": `${v(Me)(e.color, l.value.line.area.opacity)}`
1606
+ }, null, 8, Wo)
1607
+ ], 8, Fo)
1630
1608
  ]))), 128)),
1631
- (u(!0), r(h, null, y(Mt.value, (e) => (u(), r("g", null, [
1632
- e.show ? (u(), r(h, { key: 0 }, [
1633
- (u(!0), r(h, null, y(e.span, (s, t) => (u(), r("g", null, [
1609
+ (u(!0), i(h, null, y(St.value, (e) => (u(), i("g", null, [
1610
+ e.show ? (u(), i(h, { key: 0 }, [
1611
+ (u(!0), i(h, null, y(e.span, (s, t) => (u(), i("g", null, [
1634
1612
  g("rect", {
1635
1613
  style: C({
1636
1614
  transition: "none",
1637
1615
  opacity: e.from + t >= S.value.start && e.from + t <= S.value.end - 1 ? 1 : 0
1638
1616
  }),
1639
- x: i.value.left + i.value.width / b.value * (e.from + t - S.value.start),
1640
- y: i.value.top,
1641
- height: i.value.height < 0 ? 10 : i.value.height,
1642
- width: i.value.width / b.value < 0 ? 1e-5 : i.value.width / b.value,
1643
- fill: v(Ce)(e.color, e.opacity)
1644
- }, null, 12, Do)
1617
+ x: n.value.left + n.value.width / m.value * (e.from + t - S.value.start),
1618
+ y: n.value.top,
1619
+ height: n.value.height < 0 ? 10 : n.value.height,
1620
+ width: n.value.width / m.value < 0 ? 1e-5 : n.value.width / m.value,
1621
+ fill: v(Me)(e.color, e.opacity)
1622
+ }, null, 12, Xo)
1645
1623
  ]))), 256)),
1646
- (u(!0), r(h, null, y(e.span, (s, t) => (u(), r("g", null, [
1647
- e.caption.text && t === 0 ? (u(), r("foreignObject", {
1624
+ (u(!0), i(h, null, y(e.span, (s, t) => (u(), i("g", null, [
1625
+ e.caption.text && t === 0 ? (u(), i("foreignObject", {
1648
1626
  key: 0,
1649
- x: i.value.left + i.value.width / b.value * (e.from + t - S.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - i.value.width / b.value * e.span / 2),
1650
- y: i.value.top + e.caption.offsetY,
1627
+ x: n.value.left + n.value.width / m.value * (e.from + t - S.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - n.value.width / m.value * e.span / 2),
1628
+ y: n.value.top + e.caption.offsetY,
1651
1629
  style: C({
1652
1630
  overflow: "visible",
1653
1631
  opacity: e.to >= S.value.start && e.from < S.value.end ? 1 : 0
1654
1632
  }),
1655
1633
  height: "1",
1656
- width: e.caption.width === "auto" ? i.value.width / b.value * e.span : e.caption.width
1634
+ width: e.caption.width === "auto" ? n.value.width / m.value * e.span : e.caption.width
1657
1635
  }, [
1658
1636
  g("div", {
1659
1637
  style: C(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`)
1660
- }, se(e.caption.text), 5)
1661
- ], 12, Uo)) : d("", !0)
1638
+ }, oe(e.caption.text), 5)
1639
+ ], 12, Go)) : d("", !0)
1662
1640
  ]))), 256))
1663
1641
  ], 64)) : d("", !0)
1664
1642
  ]))), 256)),
1665
- va.value ? (u(), r("g", qo, [
1666
- (u(!0), r(h, null, y(b.value, (e, s) => (u(), r("g", {
1643
+ ra.value ? (u(), i("g", Do, [
1644
+ (u(!0), i(h, null, y(m.value, (e, s) => (u(), i("g", {
1667
1645
  key: `tooltip_trap_highlighter_${s}`
1668
1646
  }, [
1669
1647
  g("rect", {
1670
- x: i.value.left + i.value.width / b.value * s,
1671
- y: i.value.top,
1672
- height: i.value.height < 0 ? 10 : i.value.height,
1673
- width: i.value.width / b.value < 0 ? 1e-5 : i.value.width / b.value,
1674
- fill: [O.value, _.value, ll.value].includes(s) ? v(Ce)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent"
1675
- }, null, 8, Zo)
1648
+ x: n.value.left + n.value.width / m.value * s,
1649
+ y: n.value.top,
1650
+ height: n.value.height < 0 ? 10 : n.value.height,
1651
+ width: n.value.width / m.value < 0 ? 1e-5 : n.value.width / m.value,
1652
+ fill: [O.value, _.value, je.value].includes(s) ? v(Me)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent"
1653
+ }, null, 8, qo)
1676
1654
  ]))), 128))
1677
1655
  ])) : d("", !0),
1678
- We.value.length ? (u(!0), r(h, { key: 1 }, y(We.value, (e, s) => (u(), r("g", {
1656
+ We.value.length ? (u(!0), i(h, { key: 1 }, y(We.value, (e, s) => (u(), i("g", {
1679
1657
  key: `serie_bar_${s}`,
1680
- class: ul(`serie_bar_${s}`),
1658
+ class: tl(`serie_bar_${s}`),
1681
1659
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1682
1660
  }, [
1683
- (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r("g", {
1684
- key: `bar_plot_${s}_${n}`
1661
+ (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i("g", {
1662
+ key: `bar_plot_${s}_${r}`
1685
1663
  }, [
1686
- _e(t.value) ? (u(), r("rect", {
1664
+ me(t.value) ? (u(), i("rect", {
1687
1665
  key: 0,
1688
- x: Fl(t),
1689
- y: f.value.useIndividualScale ? Ya(t) : Ra(t),
1690
- height: f.value.useIndividualScale ? Math.abs(Ba(t)) : Math.abs(Ha(t)),
1691
- width: Me() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Fe.value) < 0 ? 1e-5 : Me() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Fe.value),
1666
+ x: Yl(t),
1667
+ y: f.value.useIndividualScale ? Va(t) : Na(t),
1668
+ height: f.value.useIndividualScale ? Math.abs(Oa(t)) : Math.abs(Ta(t)),
1669
+ width: Le() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Ye.value) < 0 ? 1e-5 : Le() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Ye.value),
1692
1670
  rx: l.value.bar.borderRadius,
1693
- fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${s}_${J.value})` : `url(#rectGradient_neg_${s}_${J.value})` : e.color,
1671
+ fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${s}_${Z.value})` : `url(#rectGradient_neg_${s}_${Z.value})` : e.color,
1694
1672
  stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
1695
1673
  "stroke-width": l.value.bar.border.strokeWidth,
1696
- style: C(`${v(ra) ? "transition:none !important" : ""}`)
1697
- }, null, 12, Jo)) : d("", !0),
1698
- _e(t.value) && a.$slots.pattern ? (u(), r("rect", {
1674
+ style: C(`${v(ta) ? "transition:none !important" : ""}`)
1675
+ }, null, 12, Uo)) : d("", !0),
1676
+ me(t.value) && a.$slots.pattern ? (u(), i("rect", {
1699
1677
  key: 1,
1700
- x: Fl(t),
1701
- y: f.value.useIndividualScale ? Ya(t) : Ra(t),
1702
- height: f.value.useIndividualScale ? Math.abs(Ba(t)) : Math.abs(Ha(t)),
1703
- width: Me() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Fe.value) < 0 ? 1e-5 : Me() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Fe.value),
1678
+ x: Yl(t),
1679
+ y: f.value.useIndividualScale ? Va(t) : Na(t),
1680
+ height: f.value.useIndividualScale ? Math.abs(Oa(t)) : Math.abs(Ta(t)),
1681
+ width: Le() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Ye.value) < 0 ? 1e-5 : Le() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Ye.value),
1704
1682
  rx: l.value.bar.borderRadius,
1705
- fill: `url(#pattern_${J.value}_${e.slotAbsoluteIndex})`,
1683
+ fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
1706
1684
  stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
1707
1685
  "stroke-width": l.value.bar.border.strokeWidth
1708
- }, null, 8, Ko)) : d("", !0),
1709
- t.comment && l.value.chart.comments.show ? (u(), r("foreignObject", {
1686
+ }, null, 8, Zo)) : d("", !0),
1687
+ t.comment && l.value.chart.comments.show ? (u(), i("foreignObject", {
1710
1688
  key: 2,
1711
1689
  style: { overflow: "visible" },
1712
1690
  height: "12",
1713
- width: (Me() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Fe.value) < 0 ? 1e-5 : Me() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Fe.value) / 2) + l.value.chart.comments.width,
1714
- x: Fl(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
1691
+ width: (Le() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Ye.value) < 0 ? 1e-5 : Le() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Ye.value) / 2) + l.value.chart.comments.width,
1692
+ x: Yl(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
1715
1693
  y: v(T)(t.y) + l.value.chart.comments.offsetY + 6
1716
1694
  }, [
1717
- Z(a.$slots, "plot-comment", {
1718
- plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: n }
1695
+ U(a.$slots, "plot-comment", {
1696
+ plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
1719
1697
  }, void 0, !0)
1720
- ], 8, Qo)) : d("", !0)
1698
+ ], 8, Jo)) : d("", !0)
1721
1699
  ]))), 128)),
1722
- Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(D)(e.plots).trend) ? (u(), r("g", jo, [
1700
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(G)(e.plots).trend) ? (u(), i("g", Ko, [
1723
1701
  g("defs", null, [
1724
1702
  g("marker", {
1725
1703
  id: `bar_arrow_${s}`,
@@ -1732,182 +1710,182 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
1732
1710
  g("polygon", {
1733
1711
  points: `0 0, 7 ${7 / 2}, 0 7`,
1734
1712
  fill: e.color
1735
- }, null, 8, ls)
1736
- ], 8, es)
1713
+ }, null, 8, jo)
1714
+ ], 8, Qo)
1737
1715
  ]),
1738
- e.plots.length > 1 ? (u(), r("line", {
1716
+ e.plots.length > 1 ? (u(), i("line", {
1739
1717
  key: 0,
1740
- x1: v(D)(e.plots).x1 + Me(),
1741
- x2: v(D)(e.plots).x2 + Me(),
1742
- y1: v(B)(v(D)(e.plots).y1),
1743
- y2: v(B)(v(D)(e.plots).y2),
1718
+ x1: v(G)(e.plots).x1 + Le(),
1719
+ x2: v(G)(e.plots).x2 + Le(),
1720
+ y1: v(R)(v(G)(e.plots).y1),
1721
+ y2: v(R)(v(G)(e.plots).y2),
1744
1722
  "stroke-width": 1,
1745
1723
  stroke: e.color,
1746
1724
  "stroke-dasharray": 2,
1747
1725
  "marker-end": `url(#bar_arrow_${s})`
1748
- }, null, 8, as)) : d("", !0),
1749
- e.plots.length > 1 ? (u(), r("text", {
1726
+ }, null, 8, es)) : d("", !0),
1727
+ e.plots.length > 1 ? (u(), i("text", {
1750
1728
  key: 1,
1751
1729
  "text-anchor": "middle",
1752
- x: v(D)(e.plots).x2 + Me(),
1753
- y: v(D)(e.plots).y2 - 6,
1754
- "font-size": x.value.plotLabels,
1730
+ x: v(G)(e.plots).x2 + Le(),
1731
+ y: v(G)(e.plots).y2 - 6,
1732
+ "font-size": b.value.plotLabels,
1755
1733
  fill: e.color
1756
- }, se(v(Se)({
1757
- v: v(D)(e.plots).trend * 100,
1734
+ }, oe(v(pe)({
1735
+ v: v(G)(e.plots).trend * 100,
1758
1736
  s: "%",
1759
1737
  r: 2
1760
- })), 9, ts)) : d("", !0)
1738
+ })), 9, ls)) : d("", !0)
1761
1739
  ])) : d("", !0)
1762
1740
  ], 6))), 128)) : d("", !0),
1763
- !f.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (u(), r("line", {
1741
+ !f.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (u(), i("line", {
1764
1742
  key: 2,
1765
1743
  stroke: l.value.chart.grid.stroke,
1766
1744
  "stroke-width": "1",
1767
- x1: i.value.left + Y.value,
1768
- x2: i.value.right - Y.value,
1769
- y1: v(B)(ve.value),
1770
- y2: v(B)(ve.value),
1745
+ x1: n.value.left + D.value,
1746
+ x2: n.value.right - D.value,
1747
+ y1: v(R)(ce.value),
1748
+ y2: v(R)(ce.value),
1771
1749
  "stroke-linecap": "round",
1772
1750
  style: { animation: "none !important" }
1773
- }, null, 8, os)) : d("", !0),
1774
- l.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(O.value)) ? (u(), r("g", ss, [
1751
+ }, null, 8, as)) : d("", !0),
1752
+ l.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", ts, [
1775
1753
  g("line", {
1776
- x1: i.value.left + i.value.width / b.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) + i.value.width / b.value / 2,
1777
- x2: i.value.left + i.value.width / b.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) + i.value.width / b.value / 2,
1778
- y1: v(B)(i.value.top),
1779
- y2: v(B)(i.value.bottom),
1754
+ x1: n.value.left + n.value.width / m.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / m.value / 2,
1755
+ x2: n.value.left + n.value.width / m.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / m.value / 2,
1756
+ y1: v(R)(n.value.top),
1757
+ y2: v(R)(n.value.bottom),
1780
1758
  stroke: l.value.chart.highlighter.color,
1781
1759
  "stroke-width": l.value.chart.highlighter.lineWidth,
1782
1760
  "stroke-dasharray": l.value.chart.highlighter.lineDasharray,
1783
1761
  "stroke-linecap": "round",
1784
1762
  style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
1785
- }, null, 8, us)
1763
+ }, null, 8, os)
1786
1764
  ])) : d("", !0),
1787
- l.value.chart.grid.frame.show ? (u(), r("rect", {
1765
+ l.value.chart.grid.frame.show ? (u(), i("rect", {
1788
1766
  key: 4,
1789
1767
  style: { pointerEvents: "none", transition: "none", animation: "none !important" },
1790
- x: i.value.left + Y.value < 0 ? 0 : i.value.left + Y.value,
1791
- y: i.value.top,
1792
- width: i.value.width - (l.value.chart.grid.position === "middle" ? 0 : i.value.width / b.value) < 0 ? 0 : i.value.width - (l.value.chart.grid.position === "middle" ? 0 : i.value.width / b.value),
1793
- height: i.value.height < 0 ? 0 : i.value.height,
1768
+ x: n.value.left + D.value < 0 ? 0 : n.value.left + D.value,
1769
+ y: n.value.top,
1770
+ width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / m.value) < 0 ? 0 : n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / m.value),
1771
+ height: n.value.height < 0 ? 0 : n.value.height,
1794
1772
  fill: "transparent",
1795
1773
  stroke: l.value.chart.grid.frame.stroke,
1796
1774
  "stroke-width": l.value.chart.grid.frame.strokeWidth,
1797
1775
  "stroke-linecap": l.value.chart.grid.frame.strokeLinecap,
1798
1776
  "stroke-linejoin": l.value.chart.grid.frame.strokeLinejoin,
1799
1777
  "stroke-dasharray": l.value.chart.grid.frame.strokeDasharray
1800
- }, null, 8, rs)) : d("", !0),
1801
- l.value.chart.grid.labels.show ? (u(), r("g", {
1778
+ }, null, 8, ss)) : d("", !0),
1779
+ l.value.chart.grid.labels.show ? (u(), i("g", {
1802
1780
  key: 5,
1803
1781
  ref_key: "scaleLabels",
1804
- ref: ea
1782
+ ref: Jl
1805
1783
  }, [
1806
- f.value.useIndividualScale ? (u(), r(h, { key: 0 }, [
1807
- (u(!0), r(h, null, y(wl.value, (e) => (u(), r("g", null, [
1784
+ f.value.useIndividualScale ? (u(), i(h, { key: 0 }, [
1785
+ (u(!0), i(h, null, y(wl.value, (e) => (u(), i("g", null, [
1808
1786
  g("line", {
1809
- x1: e.x + Y.value,
1810
- x2: e.x + Y.value,
1811
- y1: f.value.isStacked ? v(B)(i.value.bottom - e.yOffset - e.individualHeight) : v(B)(i.value.top),
1812
- y2: f.value.isStacked ? v(B)(i.value.bottom - e.yOffset) : v(B)(i.value.bottom),
1787
+ x1: e.x + D.value - n.value.individualOffsetX,
1788
+ x2: e.x + D.value - n.value.individualOffsetX,
1789
+ y1: f.value.isStacked ? v(R)(n.value.bottom - e.yOffset - e.individualHeight) : v(R)(n.value.top),
1790
+ y2: f.value.isStacked ? v(R)(n.value.bottom - e.yOffset) : v(R)(n.value.bottom),
1813
1791
  stroke: e.color,
1814
1792
  "stroke-width": l.value.chart.grid.stroke,
1815
1793
  "stroke-linecap": "round",
1816
1794
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
1817
- }, null, 12, is)
1795
+ }, null, 12, us)
1818
1796
  ]))), 256)),
1819
- (u(!0), r(h, null, y(wl.value, (e) => (u(), r("g", {
1797
+ (u(!0), i(h, null, y(wl.value, (e) => (u(), i("g", {
1820
1798
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1821
1799
  }, [
1822
1800
  g("text", {
1823
1801
  fill: e.color,
1824
- "font-size": x.value.dataLabels,
1802
+ "font-size": b.value.dataLabels * 0.8,
1825
1803
  "text-anchor": "middle",
1826
- transform: `translate(${e.x - l.value.chart.grid.labels.yAxis.labelWidth + 5 + Y.value + l.value.chart.grid.labels.yAxis.scaleLabelOffsetX}, ${f.value.isStacked ? i.value.bottom - e.yOffset - e.individualHeight / 2 : i.value.top + i.value.height / 2}) rotate(-90)`
1827
- }, se(e.name) + " " + se(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
1828
- ${e.scaleLabel}` : ""), 9, ns),
1829
- (u(!0), r(h, null, y(e.yLabels, (s, t) => (u(), r(h, null, [
1830
- l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), r("line", {
1804
+ transform: `translate(${e.x - b.value.dataLabels * 0.8 / 2 + D.value}, ${f.value.isStacked ? n.value.bottom - e.yOffset - e.individualHeight / 2 : n.value.top + n.value.height / 2}) rotate(-90)`
1805
+ }, oe(e.name) + " " + oe(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
1806
+ ${e.scaleLabel}` : ""), 9, rs),
1807
+ (u(!0), i(h, null, y(e.yLabels, (s, t) => (u(), i(h, null, [
1808
+ l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
1831
1809
  key: 0,
1832
- x1: e.x + 3 + Y.value - l.value.chart.grid.labels.yAxis.crosshairSize,
1833
- x2: e.x + Y.value,
1834
- y1: v(B)(s.y),
1835
- y2: v(B)(s.y),
1810
+ x1: e.x + 3 + D.value - l.value.chart.grid.labels.yAxis.crosshairSize - n.value.individualOffsetX,
1811
+ x2: e.x + D.value - n.value.individualOffsetX,
1812
+ y1: v(R)(s.y),
1813
+ y2: v(R)(s.y),
1836
1814
  stroke: e.color,
1837
1815
  "stroke-width": 1,
1838
1816
  "stroke-linecap": "round",
1839
1817
  style: { animation: "none !important" }
1840
- }, null, 8, cs)) : d("", !0)
1818
+ }, null, 8, is)) : d("", !0)
1841
1819
  ], 64))), 256)),
1842
- (u(!0), r(h, null, y(e.yLabels, (s, t) => (u(), r("text", {
1843
- x: X.value ? e.x - x.value.dataLabels / 2 + Y.value + l.value.chart.grid.labels.yAxis.scaleValueOffsetX : e.x - 5 + Y.value + l.value.chart.grid.labels.yAxis.scaleValueOffsetX,
1844
- y: v(B)(s.y) + x.value.dataLabels / 3,
1845
- "font-size": x.value.dataLabels,
1820
+ (u(!0), i(h, null, y(e.yLabels, (s, t) => (u(), i("text", {
1821
+ x: e.x - 5 + D.value - n.value.individualOffsetX,
1822
+ y: v(R)(s.y) + b.value.dataLabels / 3,
1823
+ "font-size": b.value.dataLabels,
1846
1824
  "text-anchor": "end",
1847
1825
  fill: e.color
1848
- }, se(v(fe)(
1826
+ }, oe(v(ne)(
1849
1827
  l.value.chart.grid.labels.yAxis.formatter,
1850
1828
  s.value,
1851
- v(Se)({
1829
+ v(pe)({
1852
1830
  p: s.prefix,
1853
1831
  v: s.value,
1854
1832
  s: s.suffix,
1855
1833
  r: l.value.chart.grid.labels.yAxis.rounding
1856
1834
  }),
1857
1835
  { datapoint: s.datapoint, seriesIndex: t }
1858
- )), 9, vs))), 256))
1836
+ )), 9, ns))), 256))
1859
1837
  ], 4))), 256))
1860
- ], 64)) : (u(!0), r(h, { key: 1 }, y(Wa.value, (e, s) => (u(), r("g", {
1838
+ ], 64)) : (u(!0), i(h, { key: 1 }, y(Ra.value, (e, s) => (u(), i("g", {
1861
1839
  key: `yLabel_${s}`
1862
1840
  }, [
1863
- _e(e) && e.value >= Le.value.min && e.value <= Le.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), r("line", {
1841
+ me(e) && e.value >= Se.value.min && e.value <= Se.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
1864
1842
  key: 0,
1865
- x1: i.value.left + Y.value,
1866
- x2: i.value.left - l.value.chart.grid.labels.yAxis.crosshairSize + Y.value,
1867
- y1: v(B)(e.y),
1868
- y2: v(B)(e.y),
1843
+ x1: n.value.left,
1844
+ x2: n.value.left - l.value.chart.grid.labels.yAxis.crosshairSize,
1845
+ y1: v(R)(e.y),
1846
+ y2: v(R)(e.y),
1869
1847
  stroke: l.value.chart.grid.stroke,
1870
1848
  "stroke-width": "1",
1871
1849
  "stroke-linecap": "round",
1872
1850
  style: { animation: "none !important" }
1873
- }, null, 8, ds)) : d("", !0),
1874
- e.value >= Le.value.min && e.value <= Le.value.max ? (u(), r("text", {
1851
+ }, null, 8, cs)) : d("", !0),
1852
+ e.value >= Se.value.min && e.value <= Se.value.max ? (u(), i("text", {
1875
1853
  key: 1,
1876
- x: i.value.left - 7 + Y.value,
1877
- y: v(T)(e.y + x.value.dataLabels / 3),
1878
- "font-size": x.value.dataLabels,
1854
+ x: n.value.scaleLabelX + l.value.chart.grid.labels.yAxis.crosshairSize,
1855
+ y: v(T)(e.y + b.value.dataLabels / 3),
1856
+ "font-size": b.value.dataLabels,
1879
1857
  "text-anchor": "end",
1880
1858
  fill: l.value.chart.grid.labels.color
1881
- }, se(_e(e.value) ? v(fe)(
1859
+ }, oe(me(e.value) ? v(ne)(
1882
1860
  l.value.chart.grid.labels.yAxis.formatter,
1883
1861
  e.value,
1884
- v(Se)({
1862
+ v(pe)({
1885
1863
  p: e.prefix,
1886
1864
  v: e.value,
1887
1865
  s: e.suffix,
1888
1866
  r: l.value.chart.grid.labels.yAxis.rounding
1889
1867
  })
1890
- ) : ""), 9, hs)) : d("", !0)
1868
+ ) : ""), 9, vs)) : d("", !0)
1891
1869
  ]))), 128))
1892
1870
  ], 512)) : d("", !0),
1893
- (u(!0), r(h, null, y(Oe.value, (e, s) => (u(), r("g", {
1871
+ (u(!0), i(h, null, y(Ie.value, (e, s) => (u(), i("g", {
1894
1872
  key: `serie_plot_${s}`,
1895
- class: ul(`serie_plot_${s}`),
1873
+ class: tl(`serie_plot_${s}`),
1896
1874
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1897
1875
  }, [
1898
- (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r("g", {
1899
- key: `circle_plot_${s}_${n}`
1876
+ (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i("g", {
1877
+ key: `circle_plot_${s}_${r}`
1900
1878
  }, [
1901
- t && _e(t.value) ? (u(), Ve(Dl, {
1879
+ t && me(t.value) ? (u(), Oe(Xl, {
1902
1880
  key: 0,
1903
1881
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
1904
- color: l.value.plot.useGradient ? `url(#plotGradient_${s}_${J.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
1882
+ color: l.value.plot.useGradient ? `url(#plotGradient_${s}_${Z.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
1905
1883
  plot: { x: v(T)(t.x), y: v(T)(t.y) },
1906
- radius: _.value !== null && _.value === n || O.value !== null && O.value === n ? (Ie.value.plot || 6) * 1.5 : Ie.value.plot || 6,
1884
+ radius: _.value !== null && _.value === r || O.value !== null && O.value === r ? (Ce.value.plot || 6) * 1.5 : Ce.value.plot || 6,
1907
1885
  stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
1908
1886
  strokeWidth: l.value.plot.dot.strokeWidth
1909
1887
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
1910
- t.comment && l.value.chart.comments.show ? (u(), r("foreignObject", {
1888
+ t.comment && l.value.chart.comments.show ? (u(), i("foreignObject", {
1911
1889
  key: 1,
1912
1890
  style: { overflow: "visible" },
1913
1891
  height: "12",
@@ -1915,14 +1893,14 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
1915
1893
  x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
1916
1894
  y: t.y + l.value.chart.comments.offsetY + 6
1917
1895
  }, [
1918
- g("div", gs, [
1919
- Z(a.$slots, "plot-comment", {
1920
- plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: n }
1896
+ g("div", hs, [
1897
+ U(a.$slots, "plot-comment", {
1898
+ plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
1921
1899
  }, void 0, !0)
1922
1900
  ])
1923
- ], 8, fs)) : d("", !0)
1901
+ ], 8, ds)) : d("", !0)
1924
1902
  ]))), 128)),
1925
- Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(D)(e.plots).trend) ? (u(), r("g", xs, [
1903
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(G)(e.plots).trend) ? (u(), i("g", fs, [
1926
1904
  g("defs", null, [
1927
1905
  g("marker", {
1928
1906
  id: `plot_arrow_${s}`,
@@ -1935,47 +1913,47 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
1935
1913
  g("polygon", {
1936
1914
  points: `0 0, 7 ${7 / 2}, 0 7`,
1937
1915
  fill: e.color
1938
- }, null, 8, ms)
1939
- ], 8, bs)
1916
+ }, null, 8, xs)
1917
+ ], 8, gs)
1940
1918
  ]),
1941
- e.plots.length > 1 ? (u(), r("line", {
1919
+ e.plots.length > 1 ? (u(), i("line", {
1942
1920
  key: 0,
1943
- x1: v(D)(e.plots).x1,
1944
- x2: v(D)(e.plots).x2,
1945
- y1: v(B)(v(D)(e.plots).y1),
1946
- y2: v(B)(v(D)(e.plots).y2),
1921
+ x1: v(G)(e.plots).x1,
1922
+ x2: v(G)(e.plots).x2,
1923
+ y1: v(R)(v(G)(e.plots).y1),
1924
+ y2: v(R)(v(G)(e.plots).y2),
1947
1925
  "stroke-width": 1,
1948
1926
  stroke: e.color,
1949
1927
  "stroke-dasharray": 2,
1950
1928
  "marker-end": `url(#plot_arrow_${s})`
1951
- }, null, 8, ys)) : d("", !0),
1952
- e.plots.length > 1 ? (u(), r("text", {
1929
+ }, null, 8, bs)) : d("", !0),
1930
+ e.plots.length > 1 ? (u(), i("text", {
1953
1931
  key: 1,
1954
1932
  "text-anchor": "middle",
1955
- x: v(D)(e.plots).x2,
1956
- y: v(D)(e.plots).y2 - 6,
1957
- "font-size": x.value.plotLabels,
1933
+ x: v(G)(e.plots).x2,
1934
+ y: v(G)(e.plots).y2 - 6,
1935
+ "font-size": b.value.plotLabels,
1958
1936
  fill: e.color
1959
- }, se(v(Se)({
1960
- v: v(D)(e.plots).trend * 100,
1937
+ }, oe(v(pe)({
1938
+ v: v(G)(e.plots).trend * 100,
1961
1939
  s: "%",
1962
1940
  r: 2
1963
- })), 9, ps)) : d("", !0)
1941
+ })), 9, ms)) : d("", !0)
1964
1942
  ])) : d("", !0)
1965
1943
  ], 6))), 128)),
1966
- (u(!0), r(h, null, y(ze.value, (e, s) => (u(), r("g", {
1944
+ (u(!0), i(h, null, y(Ae.value, (e, s) => (u(), i("g", {
1967
1945
  key: `serie_line_${s}`,
1968
- class: ul(`serie_line_${s}`),
1946
+ class: tl(`serie_line_${s}`),
1969
1947
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1970
1948
  }, [
1971
- e.smooth && e.plots.length > 1 && e.curve ? (u(), r("path", {
1949
+ e.smooth && e.plots.length > 1 && e.curve ? (u(), i("path", {
1972
1950
  key: 0,
1973
1951
  d: `M${e.curve}`,
1974
1952
  stroke: l.value.chart.backgroundColor,
1975
1953
  "stroke-width": l.value.line.strokeWidth + 1,
1976
1954
  "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
1977
1955
  fill: "none"
1978
- }, null, 8, ks)) : e.plots.length > 1 && e.straight ? (u(), r("path", {
1956
+ }, null, 8, ys)) : e.plots.length > 1 && e.straight ? (u(), i("path", {
1979
1957
  key: 1,
1980
1958
  d: `M${e.straight}`,
1981
1959
  stroke: l.value.chart.backgroundColor,
@@ -1984,42 +1962,42 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
1984
1962
  fill: "none",
1985
1963
  "stroke-linecap": "round",
1986
1964
  "stroke-linejoin": "round"
1987
- }, null, 8, _s)) : d("", !0)
1965
+ }, null, 8, ps)) : d("", !0)
1988
1966
  ], 6))), 128)),
1989
- a.$slots.pattern ? (u(), r("defs", ws, [
1990
- (u(!0), r(h, null, y(Ye.value, (e, s) => Z(a.$slots, "pattern", xa({
1967
+ a.$slots.pattern ? (u(), i("defs", ks, [
1968
+ (u(!0), i(h, null, y(Re.value, (e, s) => U(a.$slots, "pattern", va({
1991
1969
  key: `serie_pattern_slot_${s}`
1992
- }, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${J.value}_${s}` }), void 0, !0)), 128))
1970
+ }, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${Z.value}_${s}` }), void 0, !0)), 128))
1993
1971
  ])) : d("", !0),
1994
- (u(!0), r(h, null, y(ze.value, (e, s) => (u(), r("g", {
1972
+ (u(!0), i(h, null, y(Ae.value, (e, s) => (u(), i("g", {
1995
1973
  key: `serie_line_${s}`,
1996
- class: ul(`serie_line_${s}`),
1974
+ class: tl(`serie_line_${s}`),
1997
1975
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1998
1976
  }, [
1999
- e.useArea && e.plots.length > 1 ? (u(), r("g", Ss, [
2000
- e.smooth ? (u(!0), r(h, { key: 0 }, y(e.curveAreas, (t, n) => (u(), r(h, { key: n }, [
1977
+ e.useArea && e.plots.length > 1 ? (u(), i("g", _s, [
1978
+ e.smooth ? (u(!0), i(h, { key: 0 }, y(e.curveAreas, (t, r) => (u(), i(h, { key: r }, [
2001
1979
  g("path", {
2002
1980
  d: t,
2003
- fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${J.value})` : v(Ce)(e.color, l.value.line.area.opacity)
2004
- }, null, 8, $s),
2005
- a.$slots.pattern ? (u(), r("path", {
1981
+ fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${Z.value})` : v(Me)(e.color, l.value.line.area.opacity)
1982
+ }, null, 8, ws),
1983
+ a.$slots.pattern ? (u(), i("path", {
2006
1984
  key: 0,
2007
1985
  d: t,
2008
- fill: `url(#pattern_${J.value}_${e.slotAbsoluteIndex})`
2009
- }, null, 8, Ls)) : d("", !0)
2010
- ], 64))), 128)) : (u(!0), r(h, { key: 1 }, y(e.area.split(";"), (t, n) => (u(), r(h, { key: n }, [
1986
+ fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`
1987
+ }, null, 8, Ss)) : d("", !0)
1988
+ ], 64))), 128)) : (u(!0), i(h, { key: 1 }, y(e.area.split(";"), (t, r) => (u(), i(h, { key: r }, [
2011
1989
  g("path", {
2012
1990
  d: `M${t}Z`,
2013
- fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${J.value})` : v(Ce)(e.color, l.value.line.area.opacity)
2014
- }, null, 8, As),
2015
- a.$slots.pattern ? (u(), r("path", {
1991
+ fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${Z.value})` : v(Me)(e.color, l.value.line.area.opacity)
1992
+ }, null, 8, $s),
1993
+ a.$slots.pattern ? (u(), i("path", {
2016
1994
  key: 0,
2017
1995
  d: `M${t}Z`,
2018
- fill: `url(#pattern_${J.value}_${e.slotAbsoluteIndex})`
2019
- }, null, 8, Ms)) : d("", !0)
1996
+ fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`
1997
+ }, null, 8, Ls)) : d("", !0)
2020
1998
  ], 64))), 128))
2021
1999
  ])) : d("", !0),
2022
- e.smooth && e.plots.length > 1 && e.curve ? (u(), r("path", {
2000
+ e.smooth && e.plots.length > 1 && e.curve ? (u(), i("path", {
2023
2001
  key: 1,
2024
2002
  d: `M${e.curve}`,
2025
2003
  stroke: e.color,
@@ -2027,7 +2005,7 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2027
2005
  "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
2028
2006
  fill: "none",
2029
2007
  "stroke-linecap": "round"
2030
- }, null, 8, zs)) : e.plots.length > 1 && e.straight ? (u(), r("path", {
2008
+ }, null, 8, As)) : e.plots.length > 1 && e.straight ? (u(), i("path", {
2031
2009
  key: 2,
2032
2010
  d: `M${e.straight}`,
2033
2011
  stroke: e.color,
@@ -2036,20 +2014,20 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2036
2014
  fill: "none",
2037
2015
  "stroke-linecap": "round",
2038
2016
  "stroke-linejoin": "round"
2039
- }, null, 8, Cs)) : d("", !0),
2040
- (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2041
- key: `circle_line_${s}_${n}`
2017
+ }, null, 8, Ms)) : d("", !0),
2018
+ (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
2019
+ key: `circle_line_${s}_${r}`
2042
2020
  }, [
2043
- !Ea.value.linePlot && t && _e(t.value) || Ea.value.linePlot && t && _e(t.value) && (_.value !== null && _.value === n || O.value !== null && O.value === n) ? (u(), Ve(Dl, {
2021
+ !Ha.value.linePlot && t && me(t.value) || Ha.value.linePlot && t && me(t.value) && (_.value !== null && _.value === r || O.value !== null && O.value === r) ? (u(), Oe(Xl, {
2044
2022
  key: 0,
2045
2023
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
2046
- color: l.value.line.useGradient ? `url(#lineGradient_${s}_${J.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
2024
+ color: l.value.line.useGradient ? `url(#lineGradient_${s}_${Z.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
2047
2025
  plot: { x: v(T)(t.x), y: v(T)(t.y) },
2048
- radius: _.value !== null && _.value === n || O.value !== null && O.value === n ? (Ie.value.line || 6) * 1.5 : Ie.value.line || 6,
2026
+ radius: _.value !== null && _.value === r || O.value !== null && O.value === r ? (Ce.value.line || 6) * 1.5 : Ce.value.line || 6,
2049
2027
  stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
2050
2028
  strokeWidth: l.value.line.dot.strokeWidth
2051
2029
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
2052
- t.comment && l.value.chart.comments.show ? (u(), r("foreignObject", {
2030
+ t.comment && l.value.chart.comments.show ? (u(), i("foreignObject", {
2053
2031
  key: 1,
2054
2032
  style: { overflow: "visible" },
2055
2033
  height: "12",
@@ -2057,14 +2035,14 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2057
2035
  x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2058
2036
  y: t.y + l.value.chart.comments.offsetY + 6
2059
2037
  }, [
2060
- g("div", Ts, [
2061
- Z(a.$slots, "plot-comment", {
2062
- plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: n }
2038
+ g("div", Cs, [
2039
+ U(a.$slots, "plot-comment", {
2040
+ plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
2063
2041
  }, void 0, !0)
2064
2042
  ])
2065
- ], 8, Is)) : d("", !0)
2043
+ ], 8, zs)) : d("", !0)
2066
2044
  ], 64))), 128)),
2067
- Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(D)(e.plots).trend) ? (u(), r("g", Os, [
2045
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(G)(e.plots).trend) ? (u(), i("g", Is, [
2068
2046
  g("defs", null, [
2069
2047
  g("marker", {
2070
2048
  id: `line_arrow_${s}`,
@@ -2077,53 +2055,53 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2077
2055
  g("polygon", {
2078
2056
  points: `0 0, 7 ${7 / 2}, 0 7`,
2079
2057
  fill: e.color
2080
- }, null, 8, Vs)
2081
- ], 8, Ns)
2058
+ }, null, 8, Os)
2059
+ ], 8, Ts)
2082
2060
  ]),
2083
- e.plots.length > 1 ? (u(), r("line", {
2061
+ e.plots.length > 1 ? (u(), i("line", {
2084
2062
  key: 0,
2085
- x1: v(D)(e.plots).x1,
2086
- x2: v(D)(e.plots).x2,
2087
- y1: v(B)(v(D)(e.plots).y1),
2088
- y2: v(B)(v(D)(e.plots).y2),
2063
+ x1: v(G)(e.plots).x1,
2064
+ x2: v(G)(e.plots).x2,
2065
+ y1: v(R)(v(G)(e.plots).y1),
2066
+ y2: v(R)(v(G)(e.plots).y2),
2089
2067
  "stroke-width": 1,
2090
2068
  stroke: e.color,
2091
2069
  "stroke-dasharray": 2,
2092
2070
  "marker-end": `url(#line_arrow_${s})`
2093
- }, null, 8, Ps)) : d("", !0),
2094
- e.plots.length > 1 ? (u(), r("text", {
2071
+ }, null, 8, Ns)) : d("", !0),
2072
+ e.plots.length > 1 ? (u(), i("text", {
2095
2073
  key: 1,
2096
2074
  "text-anchor": "middle",
2097
- x: v(D)(e.plots).x2,
2098
- y: v(D)(e.plots).y2 - 6,
2099
- "font-size": x.value.plotLabels,
2075
+ x: v(G)(e.plots).x2,
2076
+ y: v(G)(e.plots).y2 - 6,
2077
+ "font-size": b.value.plotLabels,
2100
2078
  fill: e.color
2101
- }, se(v(Se)({
2102
- v: v(D)(e.plots).trend * 100,
2079
+ }, oe(v(pe)({
2080
+ v: v(G)(e.plots).trend * 100,
2103
2081
  s: "%",
2104
2082
  r: 2
2105
- })), 9, Hs)) : d("", !0)
2083
+ })), 9, Vs)) : d("", !0)
2106
2084
  ])) : d("", !0)
2107
2085
  ], 6))), 128)),
2108
- (l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (u(), r("g", Bs, [
2109
- (u(!0), r(h, null, y(We.value, (e, s) => (u(), r(h, {
2086
+ (l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (u(), i("g", Ps, [
2087
+ (u(!0), i(h, null, y(We.value, (e, s) => (u(), i(h, {
2110
2088
  key: `xLabel_bar_${s}`
2111
2089
  }, [
2112
- (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2113
- key: `xLabel_bar_${s}_${n}`
2090
+ (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
2091
+ key: `xLabel_bar_${s}_${r}`
2114
2092
  }, [
2115
- t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === n || O.value !== null && O.value === n) && l.value.bar.labels.show ? (u(), r("text", {
2093
+ t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === r || O.value !== null && O.value === r) && l.value.bar.labels.show ? (u(), i("text", {
2116
2094
  key: 0,
2117
- x: f.value.useIndividualScale && f.value.isStacked ? t.x + Q.value.line / 2 : Fl(t) + Me() / 2 - Fe.value / 2,
2095
+ x: f.value.useIndividualScale && f.value.isStacked ? t.x + K.value.line / 2 : Yl(t) + Le() / 2 - Ye.value / 2,
2118
2096
  y: v(T)(t.y) + (t.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
2119
2097
  "text-anchor": "middle",
2120
- "font-size": x.value.plotLabels,
2098
+ "font-size": b.value.plotLabels,
2121
2099
  fill: l.value.bar.labels.color,
2122
2100
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2123
- }, se(_e(t.value) ? v(fe)(
2101
+ }, oe(me(t.value) ? v(ne)(
2124
2102
  l.value.bar.labels.formatter,
2125
2103
  t.value,
2126
- v(Se)({
2104
+ v(pe)({
2127
2105
  p: e.prefix || l.value.chart.labels.prefix,
2128
2106
  v: t.value,
2129
2107
  s: e.suffix || l.value.chart.labels.suffix,
@@ -2133,42 +2111,42 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2133
2111
  datapoint: t,
2134
2112
  serie: e
2135
2113
  }
2136
- ) : ""), 13, Rs)) : d("", !0),
2137
- t && l.value.bar.serieName.show ? (u(), r("text", {
2114
+ ) : ""), 13, Hs)) : d("", !0),
2115
+ t && l.value.bar.serieName.show ? (u(), i("text", {
2138
2116
  key: 1,
2139
- x: f.value.useIndividualScale && f.value.isStacked ? t.x + Q.value.line / 2 : t.x + Me() * 1.1,
2117
+ x: f.value.useIndividualScale && f.value.isStacked ? t.x + K.value.line / 2 : t.x + Le() * 1.1,
2140
2118
  y: t.y + (t.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
2141
2119
  "text-anchor": "middle",
2142
- "font-size": x.value.plotLabels,
2120
+ "font-size": b.value.plotLabels,
2143
2121
  fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
2144
2122
  "font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
2145
2123
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2146
- }, se(l.value.bar.serieName.useAbbreviation ? v(Qt)({
2124
+ }, oe(l.value.bar.serieName.useAbbreviation ? v(Zt)({
2147
2125
  source: e.name,
2148
2126
  length: l.value.bar.serieName.abbreviationSize
2149
- }) : e.name), 13, Ys)) : d("", !0)
2127
+ }) : e.name), 13, Rs)) : d("", !0)
2150
2128
  ], 64))), 128))
2151
2129
  ], 64))), 128))
2152
2130
  ])) : d("", !0),
2153
- l.value.plot.labels.show && f.value.dataLabels.show ? (u(), r("g", Fs, [
2154
- (u(!0), r(h, null, y(Oe.value, (e, s) => (u(), r(h, {
2131
+ l.value.plot.labels.show && f.value.dataLabels.show ? (u(), i("g", Bs, [
2132
+ (u(!0), i(h, null, y(Ie.value, (e, s) => (u(), i(h, {
2155
2133
  key: `xLabel_plot_${s}`
2156
2134
  }, [
2157
- (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2158
- key: `xLabel_plot_${s}_${n}`
2135
+ (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
2136
+ key: `xLabel_plot_${s}_${r}`
2159
2137
  }, [
2160
- t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === n || O.value !== null && O.value === n ? (u(), r("text", {
2138
+ t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === r || O.value !== null && O.value === r ? (u(), i("text", {
2161
2139
  key: 0,
2162
2140
  x: t.x,
2163
2141
  y: t.y + l.value.plot.labels.offsetY,
2164
2142
  "text-anchor": "middle",
2165
- "font-size": x.value.plotLabels,
2143
+ "font-size": b.value.plotLabels,
2166
2144
  fill: l.value.plot.labels.color,
2167
2145
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2168
- }, se(_e(t.value) ? v(fe)(
2146
+ }, oe(me(t.value) ? v(ne)(
2169
2147
  l.value.plot.labels.formatter,
2170
2148
  t.value,
2171
- v(Se)({
2149
+ v(pe)({
2172
2150
  p: e.prefix || l.value.chart.labels.prefix,
2173
2151
  v: t.value,
2174
2152
  s: e.suffix || l.value.chart.labels.suffix,
@@ -2178,31 +2156,31 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2178
2156
  datapoint: t,
2179
2157
  serie: e
2180
2158
  }
2181
- ) : ""), 13, Es)) : d("", !0)
2159
+ ) : ""), 13, Ys)) : d("", !0)
2182
2160
  ], 64))), 128))
2183
2161
  ], 64))), 128))
2184
- ])) : (u(), r("g", Ws, [
2185
- (u(!0), r(h, null, y(Oe.value, (e, s) => (u(), r(h, {
2162
+ ])) : (u(), i("g", Fs, [
2163
+ (u(!0), i(h, null, y(Ie.value, (e, s) => (u(), i(h, {
2186
2164
  key: `xLabel_plot_${s}`
2187
2165
  }, [
2188
- (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2189
- key: `xLabel_plot_${s}_${n}`
2166
+ (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
2167
+ key: `xLabel_plot_${s}_${r}`
2190
2168
  }, [
2191
- l.value.plot.tag.followValue ? (u(), r(h, { key: 1 }, [
2192
- [O.value, _.value, ll.value].includes(n) && e.useTag ? (u(), r("line", {
2169
+ l.value.plot.tag.followValue ? (u(), i(h, { key: 1 }, [
2170
+ [O.value, _.value, je.value].includes(r) && e.useTag ? (u(), i("line", {
2193
2171
  key: 0,
2194
2172
  class: "vue-ui-xy-tag-plot",
2195
- x1: i.value.left,
2196
- x2: i.value.right,
2173
+ x1: n.value.left,
2174
+ x2: n.value.right,
2197
2175
  y1: t.y,
2198
2176
  y2: t.y,
2199
2177
  "stroke-width": 1,
2200
2178
  "stroke-linecap": "round",
2201
2179
  "stroke-dasharray": "2",
2202
2180
  stroke: e.color
2203
- }, null, 8, qs)) : d("", !0)
2204
- ], 64)) : (u(), r(h, { key: 0 }, [
2205
- t && n === 0 && e.useTag && e.useTag === "start" ? (u(), r("foreignObject", {
2181
+ }, null, 8, Ds)) : d("", !0)
2182
+ ], 64)) : (u(), i(h, { key: 0 }, [
2183
+ t && r === 0 && e.useTag && e.useTag === "start" ? (u(), i("foreignObject", {
2206
2184
  key: 0,
2207
2185
  x: t.x,
2208
2186
  y: t.y - 20,
@@ -2211,64 +2189,64 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2211
2189
  style: C(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2212
2190
  }, [
2213
2191
  g("div", {
2214
- style: C(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(qe)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
2215
- innerHTML: v(fe)(
2192
+ style: C(`padding: 3px; background:${v(Me)(e.color, 80)};color:${v(Ue)(e.color)};width:fit-content;font-size:${b.value.plotLabels}px;border-radius: 2px;`),
2193
+ innerHTML: v(ne)(
2216
2194
  l.value.plot.tag.formatter,
2217
2195
  t.value,
2218
2196
  e.name,
2219
2197
  {
2220
2198
  datapoint: t,
2221
- seriesIndex: n,
2199
+ seriesIndex: r,
2222
2200
  serieName: e.name
2223
2201
  }
2224
2202
  )
2225
- }, null, 12, Xs)
2226
- ], 12, Gs)) : d("", !0),
2227
- t && n === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), r("foreignObject", {
2203
+ }, null, 12, Ws)
2204
+ ], 12, Es)) : d("", !0),
2205
+ t && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), i("foreignObject", {
2228
2206
  key: 1,
2229
- x: t.x - e.name.length * (x.value.plotLabels / 2),
2207
+ x: t.x - e.name.length * (b.value.plotLabels / 2),
2230
2208
  y: t.y - 20,
2231
2209
  height: 24,
2232
2210
  width: "150",
2233
2211
  style: C(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2234
2212
  }, [
2235
2213
  g("div", {
2236
- style: C(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(qe)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
2237
- innerHTML: v(fe)(
2214
+ style: C(`padding: 3px; background:${v(Me)(e.color, 80)};color:${v(Ue)(e.color)};width:fit-content;font-size:${b.value.plotLabels}px;border-radius: 2px;`),
2215
+ innerHTML: v(ne)(
2238
2216
  l.value.plot.tag.formatter,
2239
2217
  t.value,
2240
2218
  e.name,
2241
2219
  {
2242
2220
  datapoint: t,
2243
- seriesIndex: n,
2221
+ seriesIndex: r,
2244
2222
  serieName: e.name
2245
2223
  }
2246
2224
  )
2247
- }, null, 12, Us)
2248
- ], 12, Ds)) : d("", !0)
2225
+ }, null, 12, Gs)
2226
+ ], 12, Xs)) : d("", !0)
2249
2227
  ], 64))
2250
2228
  ], 64))), 128))
2251
2229
  ], 64))), 128))
2252
2230
  ])),
2253
- l.value.line.labels.show && f.value.dataLabels.show ? (u(), r("g", Zs, [
2254
- (u(!0), r(h, null, y(ze.value, (e, s) => (u(), r(h, {
2231
+ l.value.line.labels.show && f.value.dataLabels.show ? (u(), i("g", qs, [
2232
+ (u(!0), i(h, null, y(Ae.value, (e, s) => (u(), i(h, {
2255
2233
  key: `xLabel_line_${s}`
2256
2234
  }, [
2257
- (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2258
- key: `xLabel_line_${s}_${n}`
2235
+ (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
2236
+ key: `xLabel_line_${s}_${r}`
2259
2237
  }, [
2260
- t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === n || O.value !== null && O.value === n ? (u(), r("text", {
2238
+ t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === r || O.value !== null && O.value === r ? (u(), i("text", {
2261
2239
  key: 0,
2262
2240
  x: t.x,
2263
2241
  y: t.y + (t.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
2264
2242
  "text-anchor": "middle",
2265
- "font-size": x.value.plotLabels,
2243
+ "font-size": b.value.plotLabels,
2266
2244
  fill: l.value.line.labels.color,
2267
2245
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2268
- }, se(_e(t.value) ? v(fe)(
2246
+ }, oe(me(t.value) ? v(ne)(
2269
2247
  l.value.line.labels.formatter,
2270
2248
  t.value,
2271
- v(Se)({
2249
+ v(pe)({
2272
2250
  p: e.prefix || l.value.chart.labels.prefix,
2273
2251
  v: t.value,
2274
2252
  s: e.suffix || l.value.chart.labels.suffix,
@@ -2278,31 +2256,31 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2278
2256
  datapoint: t,
2279
2257
  serie: e
2280
2258
  }
2281
- ) : ""), 13, Js)) : d("", !0)
2259
+ ) : ""), 13, Us)) : d("", !0)
2282
2260
  ], 64))), 128))
2283
2261
  ], 64))), 128))
2284
- ])) : (u(), r("g", Ks, [
2285
- (u(!0), r(h, null, y(ze.value, (e, s) => (u(), r(h, {
2262
+ ])) : (u(), i("g", Zs, [
2263
+ (u(!0), i(h, null, y(Ae.value, (e, s) => (u(), i(h, {
2286
2264
  key: `xLabel_line_${s}`
2287
2265
  }, [
2288
- (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2289
- key: `xLabel_line_${s}_${n}`
2266
+ (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
2267
+ key: `xLabel_line_${s}_${r}`
2290
2268
  }, [
2291
- l.value.line.tag.followValue ? (u(), r(h, { key: 1 }, [
2292
- [O.value, _.value, ll.value].includes(n) && e.useTag ? (u(), r("line", {
2269
+ l.value.line.tag.followValue ? (u(), i(h, { key: 1 }, [
2270
+ [O.value, _.value, je.value].includes(r) && e.useTag ? (u(), i("line", {
2293
2271
  key: 0,
2294
2272
  class: "vue-ui-xy-tag-line",
2295
- x1: i.value.left,
2296
- x2: i.value.right,
2273
+ x1: n.value.left,
2274
+ x2: n.value.right,
2297
2275
  y1: t.y,
2298
2276
  y2: t.y,
2299
2277
  "stroke-width": 1,
2300
2278
  "stroke-linecap": "round",
2301
2279
  "stroke-dasharray": "2",
2302
2280
  stroke: e.color
2303
- }, null, 8, au)) : d("", !0)
2304
- ], 64)) : (u(), r(h, { key: 0 }, [
2305
- t && n === 0 && e.useTag && e.useTag === "start" ? (u(), r("foreignObject", {
2281
+ }, null, 8, eu)) : d("", !0)
2282
+ ], 64)) : (u(), i(h, { key: 0 }, [
2283
+ t && r === 0 && e.useTag && e.useTag === "start" ? (u(), i("foreignObject", {
2306
2284
  key: 0,
2307
2285
  x: t.x,
2308
2286
  y: t.y - 20,
@@ -2311,20 +2289,20 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2311
2289
  style: C(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2312
2290
  }, [
2313
2291
  g("div", {
2314
- style: C(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(qe)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
2315
- innerHTML: v(fe)(
2292
+ style: C(`padding: 3px; background:${v(Me)(e.color, 80)};color:${v(Ue)(e.color)};width:fit-content;font-size:${b.value.plotLabels}px;border-radius: 2px;`),
2293
+ innerHTML: v(ne)(
2316
2294
  l.value.line.tag.formatter,
2317
2295
  t.value,
2318
2296
  e.name,
2319
2297
  {
2320
2298
  datapoint: t,
2321
- seriesIndex: n,
2299
+ seriesIndex: r,
2322
2300
  serieName: e.name
2323
2301
  }
2324
2302
  )
2325
- }, null, 12, js)
2326
- ], 12, Qs)) : d("", !0),
2327
- t && n === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), r("foreignObject", {
2303
+ }, null, 12, Ks)
2304
+ ], 12, Js)) : d("", !0),
2305
+ t && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), i("foreignObject", {
2328
2306
  key: 1,
2329
2307
  x: t.x,
2330
2308
  y: t.y - 20,
@@ -2333,111 +2311,111 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2333
2311
  style: C(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2334
2312
  }, [
2335
2313
  g("div", {
2336
- style: C(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(qe)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
2337
- innerHTML: v(fe)(
2314
+ style: C(`padding: 3px; background:${v(Me)(e.color, 80)};color:${v(Ue)(e.color)};width:fit-content;font-size:${b.value.plotLabels}px;border-radius: 2px;`),
2315
+ innerHTML: v(ne)(
2338
2316
  l.value.line.tag.formatter,
2339
2317
  t.value,
2340
2318
  e.name,
2341
2319
  {
2342
2320
  datapoint: t,
2343
- seriesIndex: n,
2321
+ seriesIndex: r,
2344
2322
  serieName: e.name
2345
2323
  }
2346
2324
  )
2347
- }, null, 12, lu)
2348
- ], 12, eu)) : d("", !0)
2325
+ }, null, 12, js)
2326
+ ], 12, Qs)) : d("", !0)
2349
2327
  ], 64))
2350
2328
  ], 64))), 128))
2351
2329
  ], 64))), 128))
2352
2330
  ])),
2353
- (u(!0), r(h, null, y(ze.value, (e, s) => (u(), r(h, {
2331
+ (u(!0), i(h, null, y(Ae.value, (e, s) => (u(), i(h, {
2354
2332
  key: `xLabel_line_${s}`
2355
2333
  }, [
2356
- (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2357
- key: `xLabel_line_${s}_${n}`
2334
+ (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
2335
+ key: `xLabel_line_${s}_${r}`
2358
2336
  }, [
2359
- t && n === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), r("text", {
2337
+ t && r === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), i("text", {
2360
2338
  key: 0,
2361
- x: t.x - x.value.plotLabels,
2339
+ x: t.x - b.value.plotLabels,
2362
2340
  y: t.y,
2363
- "font-size": x.value.plotLabels,
2341
+ "font-size": b.value.plotLabels,
2364
2342
  "text-anchor": "end",
2365
2343
  fill: e.color,
2366
- innerHTML: v(Xl)({
2344
+ innerHTML: v(Wl)({
2367
2345
  content: e.name,
2368
- fontSize: x.value.plotLabels,
2346
+ fontSize: b.value.plotLabels,
2369
2347
  fill: e.color,
2370
- x: t.x - x.value.plotLabels,
2348
+ x: t.x - b.value.plotLabels,
2371
2349
  y: t.y,
2372
2350
  maxWords: 2
2373
2351
  }),
2374
2352
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2375
- }, null, 12, tu)) : d("", !0),
2376
- t && n === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), r("text", {
2353
+ }, null, 12, lu)) : d("", !0),
2354
+ t && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), i("text", {
2377
2355
  key: 1,
2378
- x: t.x + x.value.plotLabels,
2356
+ x: t.x + b.value.plotLabels,
2379
2357
  y: t.y,
2380
- "font-size": x.value.plotLabels,
2358
+ "font-size": b.value.plotLabels,
2381
2359
  "text-anchor": "start",
2382
2360
  fill: e.color,
2383
- innerHTML: v(Xl)({
2361
+ innerHTML: v(Wl)({
2384
2362
  content: e.name,
2385
- fontSize: x.value.plotLabels,
2363
+ fontSize: b.value.plotLabels,
2386
2364
  fill: e.color,
2387
- x: t.x + x.value.plotLabels,
2365
+ x: t.x + b.value.plotLabels,
2388
2366
  y: t.y,
2389
2367
  maxWords: 2
2390
2368
  }),
2391
2369
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2392
- }, null, 12, ou)) : d("", !0)
2370
+ }, null, 12, au)) : d("", !0)
2393
2371
  ], 64))), 128))
2394
2372
  ], 64))), 128)),
2395
- (u(!0), r(h, null, y(Oe.value, (e, s) => (u(), r(h, {
2373
+ (u(!0), i(h, null, y(Ie.value, (e, s) => (u(), i(h, {
2396
2374
  key: `xLabel_plot_${s}`
2397
2375
  }, [
2398
- (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2399
- key: `xLabel_plot_${s}_${n}`
2376
+ (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
2377
+ key: `xLabel_plot_${s}_${r}`
2400
2378
  }, [
2401
- t && n === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), r("text", {
2379
+ t && r === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), i("text", {
2402
2380
  key: 0,
2403
- x: t.x - x.value.plotLabels,
2381
+ x: t.x - b.value.plotLabels,
2404
2382
  y: t.y,
2405
- "font-size": x.value.plotLabels,
2383
+ "font-size": b.value.plotLabels,
2406
2384
  "text-anchor": "end",
2407
2385
  fill: e.color,
2408
- innerHTML: v(Xl)({
2386
+ innerHTML: v(Wl)({
2409
2387
  content: e.name,
2410
- fontSize: x.value.plotLabels,
2388
+ fontSize: b.value.plotLabels,
2411
2389
  fill: e.color,
2412
- x: t.x - x.value.plotLabels,
2390
+ x: t.x - b.value.plotLabels,
2413
2391
  y: t.y,
2414
2392
  maxWords: 2
2415
2393
  }),
2416
2394
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2417
- }, null, 12, su)) : d("", !0),
2418
- t && n === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), r("text", {
2395
+ }, null, 12, tu)) : d("", !0),
2396
+ t && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), i("text", {
2419
2397
  key: 1,
2420
- x: t.x + x.value.plotLabels,
2398
+ x: t.x + b.value.plotLabels,
2421
2399
  y: t.y,
2422
- "font-size": x.value.plotLabels,
2400
+ "font-size": b.value.plotLabels,
2423
2401
  "text-anchor": "start",
2424
2402
  fill: e.color,
2425
- innerHTML: v(Xl)({
2403
+ innerHTML: v(Wl)({
2426
2404
  content: e.name,
2427
- fontSize: x.value.plotLabels,
2405
+ fontSize: b.value.plotLabels,
2428
2406
  fill: e.color,
2429
- x: t.x + x.value.plotLabels,
2407
+ x: t.x + b.value.plotLabels,
2430
2408
  y: t.y,
2431
2409
  maxWords: 2
2432
2410
  }),
2433
2411
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2434
- }, null, 12, uu)) : d("", !0)
2412
+ }, null, 12, ou)) : d("", !0)
2435
2413
  ], 64))), 128))
2436
2414
  ], 64))), 128)),
2437
- f.value.useIndividualScale && !f.value.isStacked ? (u(), r(h, { key: 12 }, [
2415
+ f.value.useIndividualScale && !f.value.isStacked ? (u(), i(h, { key: 12 }, [
2438
2416
  g("defs", null, [
2439
- (u(!0), r(h, null, y(wl.value, (e, s) => (u(), r("linearGradient", {
2440
- id: `individual_scale_gradient_${J.value}_${s}`,
2417
+ (u(!0), i(h, null, y(wl.value, (e, s) => (u(), i("linearGradient", {
2418
+ id: `individual_scale_gradient_${Z.value}_${s}`,
2441
2419
  x1: "0%",
2442
2420
  x2: "100%",
2443
2421
  y1: "0%",
@@ -2447,106 +2425,106 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2447
2425
  offset: "0%",
2448
2426
  "stop-color": l.value.chart.backgroundColor,
2449
2427
  "stop-opacity": "0"
2450
- }, null, 8, iu),
2428
+ }, null, 8, uu),
2451
2429
  g("stop", {
2452
2430
  offset: "100%",
2453
2431
  "stop-color": e.color,
2454
2432
  "stop-opacity": "0.2"
2455
- }, null, 8, nu)
2456
- ], 8, ru))), 256))
2433
+ }, null, 8, ru)
2434
+ ], 8, su))), 256))
2457
2435
  ]),
2458
- (u(!0), r(h, null, y(wl.value, (e, s) => (u(), r("rect", {
2459
- x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + Y.value,
2460
- y: i.value.top,
2461
- width: l.value.chart.grid.labels.yAxis.labelWidth,
2462
- height: i.value.height < 0 ? 10 : i.value.height,
2463
- fill: M.value === e.groupId ? `url(#individual_scale_gradient_${J.value}_${s})` : "transparent",
2436
+ (u(!0), i(h, null, y(wl.value, (e, s) => (u(), i("rect", {
2437
+ x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + D.value - n.value.individualOffsetX,
2438
+ y: n.value.top,
2439
+ width: l.value.chart.grid.labels.yAxis.labelWidth + n.value.individualOffsetX,
2440
+ height: n.value.height < 0 ? 10 : n.value.height,
2441
+ fill: M.value === e.groupId ? `url(#individual_scale_gradient_${Z.value}_${s})` : "transparent",
2464
2442
  onMouseenter: (t) => M.value = e.groupId,
2465
2443
  onMouseleave: c[0] || (c[0] = (t) => M.value = null)
2466
- }, null, 40, cu))), 256))
2444
+ }, null, 40, iu))), 256))
2467
2445
  ], 64)) : d("", !0),
2468
2446
  g("g", null, [
2469
- l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (u(), r("text", {
2447
+ l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (u(), i("text", {
2470
2448
  key: 0,
2471
2449
  ref_key: "yAxisLabel",
2472
- ref: Qe,
2473
- "font-size": x.value.yAxis,
2450
+ ref: Ke,
2451
+ "font-size": b.value.yAxis,
2474
2452
  fill: l.value.chart.grid.labels.color,
2475
- transform: X.value ? void 0 : `translate(${x.value.yAxis + l.value.chart.grid.labels.axis.yLabelOffsetX}, ${i.value.top + i.value.height / 2}) rotate(-90)`,
2453
+ transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
2476
2454
  "text-anchor": "middle",
2477
2455
  style: { transition: "none" }
2478
- }, se(l.value.chart.grid.labels.axis.yLabel), 9, vu)) : d("", !0),
2479
- l.value.chart.grid.labels.axis.xLabel ? (u(), r("text", {
2456
+ }, oe(l.value.chart.grid.labels.axis.yLabel), 9, nu)) : d("", !0),
2457
+ l.value.chart.grid.labels.axis.xLabel ? (u(), i("text", {
2480
2458
  key: 1,
2481
2459
  ref_key: "xAxisLabel",
2482
- ref: Ke,
2460
+ ref: Je,
2483
2461
  "text-anchor": "middle",
2484
- x: X.value ? na.value.width / 2 - Math.abs(na.value.x) : K.value / 2,
2485
- y: X.value ? void 0 : i.value.bottom + x.value.yAxis + x.value.xAxis * 1.3 + l.value.chart.grid.labels.axis.xLabelOffsetY,
2486
- "font-size": x.value.yAxis,
2462
+ x: se.value / 2,
2463
+ y: ge.value - 3,
2464
+ "font-size": b.value.yAxis,
2487
2465
  fill: l.value.chart.grid.labels.color
2488
- }, se(l.value.chart.grid.labels.axis.xLabel), 9, du)) : d("", !0)
2466
+ }, oe(l.value.chart.grid.labels.axis.xLabel), 9, cu)) : d("", !0)
2489
2467
  ]),
2490
- l.value.chart.grid.labels.xAxisLabels.show ? (u(), r("g", {
2468
+ l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", {
2491
2469
  key: 13,
2492
2470
  ref_key: "timeLabelsEls",
2493
- ref: Ol
2471
+ ref: ze
2494
2472
  }, [
2495
- a.$slots["time-label"] ? (u(!0), r(h, { key: 0 }, y(ge.value, (e, s) => Z(a.$slots, "time-label", xa({
2473
+ a.$slots["time-label"] ? (u(!0), i(h, { key: 0 }, y(he.value, (e, s) => U(a.$slots, "time-label", va({
2496
2474
  key: `time_label_${s}`,
2497
2475
  ref_for: !0
2498
2476
  }, {
2499
- x: i.value.left + i.value.width / b.value * s + i.value.width / b.value / 2,
2500
- y: X.value ? i.value.bottom + l.value.chart.grid.labels.xAxisLabels.yOffset : i.value.bottom + x.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset,
2501
- fontSize: x.value.xAxis,
2477
+ x: n.value.left + n.value.width / m.value * s + n.value.width / m.value / 2,
2478
+ y: n.value.bottom,
2479
+ fontSize: b.value.xAxis,
2502
2480
  fill: l.value.chart.grid.labels.xAxisLabels.color,
2503
- transform: X.value ? `translate(${i.value.left + i.value.width / b.value * s + i.value.width / b.value / 2}, ${i.value.bottom + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})` : `translate(${i.value.left + i.value.width / b.value * s + i.value.width / b.value / 2}, ${i.value.bottom + x.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2481
+ transform: `translate(${n.value.left + n.value.width / m.value * s + n.value.width / m.value / 2}, ${n.value.bottom + b.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2504
2482
  absoluteIndex: e.absoluteIndex,
2505
2483
  content: e.text,
2506
2484
  textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2507
- show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= l.value.chart.grid.labels.xAxisLabels.modulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === ge.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && _.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((S.value.end - S.value.start) / l.value.chart.grid.labels.xAxisLabels.modulo) === 0
2508
- }), void 0, !0)), 128)) : (u(!0), r(h, { key: 1 }, y(ge.value, (e, s) => (u(), r("g", {
2485
+ show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && m.value <= l.value.chart.grid.labels.xAxisLabels.modulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === he.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && _.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((S.value.end - S.value.start) / l.value.chart.grid.labels.xAxisLabels.modulo) === 0
2486
+ }), void 0, !0)), 128)) : (u(!0), i(h, { key: 1 }, y(he.value, (e, s) => (u(), i("g", {
2509
2487
  key: `time_label_${s}`
2510
2488
  }, [
2511
- e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= l.value.chart.grid.labels.xAxisLabels.modulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === ge.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && _.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((S.value.end - S.value.start) / l.value.chart.grid.labels.xAxisLabels.modulo) === 0 ? (u(), r(h, { key: 0 }, [
2489
+ e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && m.value <= l.value.chart.grid.labels.xAxisLabels.modulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === he.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && _.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((S.value.end - S.value.start) / l.value.chart.grid.labels.xAxisLabels.modulo) === 0 ? (u(), i(h, { key: 0 }, [
2512
2490
  String(e.text).includes(`
2513
- `) ? (u(), r("text", {
2491
+ `) ? (u(), i("text", {
2514
2492
  key: 1,
2515
2493
  "text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2516
- "font-size": x.value.xAxis,
2494
+ "font-size": b.value.xAxis,
2517
2495
  fill: l.value.chart.grid.labels.xAxisLabels.color,
2518
- transform: X.value ? `translate(${i.value.left + i.value.width / b.value * s + i.value.width / b.value / 2}, ${i.value.bottom + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})` : `translate(${i.value.left + i.value.width / b.value * s + i.value.width / b.value / 2}, ${i.value.bottom + x.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2496
+ transform: `translate(${n.value.left + n.value.width / m.value * s + n.value.width / m.value / 2}, ${n.value.bottom + b.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2519
2497
  style: C({
2520
- cursor: Ia() ? "pointer" : "default"
2498
+ cursor: La() ? "pointer" : "default"
2521
2499
  }),
2522
- innerHTML: v(jt)({
2500
+ innerHTML: v(Jt)({
2523
2501
  content: String(e.text),
2524
- fontSize: x.value.xAxis,
2502
+ fontSize: b.value.xAxis,
2525
2503
  fill: l.value.chart.grid.labels.xAxisLabels.color,
2526
2504
  x: 0,
2527
2505
  y: 0
2528
2506
  }),
2529
- onClick: () => Na(e, s)
2530
- }, null, 12, fu)) : (u(), r("text", {
2507
+ onClick: () => za(e, s)
2508
+ }, null, 12, du)) : (u(), i("text", {
2531
2509
  key: 0,
2532
2510
  class: "vue-data-ui-time-label",
2533
2511
  "text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2534
- "font-size": x.value.xAxis,
2512
+ "font-size": b.value.xAxis,
2535
2513
  fill: l.value.chart.grid.labels.xAxisLabels.color,
2536
- transform: X.value ? `translate(${i.value.left + i.value.width / b.value * s + i.value.width / b.value / 2}, ${i.value.bottom + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})` : `translate(${i.value.left + i.value.width / b.value * s + i.value.width / b.value / 2}, ${i.value.bottom + x.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2514
+ transform: `translate(${n.value.left + n.value.width / m.value * s + n.value.width / m.value / 2}, ${n.value.bottom + b.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2537
2515
  style: C({
2538
- cursor: Ia() ? "pointer" : "default"
2516
+ cursor: La() ? "pointer" : "default"
2539
2517
  }),
2540
- onClick: () => Na(e, s)
2541
- }, se(e.text || ""), 13, hu))
2518
+ onClick: () => za(e, s)
2519
+ }, oe(e.text || ""), 13, vu))
2542
2520
  ], 64)) : d("", !0)
2543
2521
  ]))), 128))
2544
2522
  ], 512)) : d("", !0),
2545
- Ga.value.length && !f.value.isStacked ? (u(), r("g", gu, [
2546
- (u(!0), r(h, null, y(Ga.value, (e) => (u(), r("g", {
2523
+ Ba.value.length && !f.value.isStacked ? (u(), i("g", hu, [
2524
+ (u(!0), i(h, null, y(Ba.value, (e) => (u(), i("g", {
2547
2525
  key: e.uid
2548
2526
  }, [
2549
- e.yTop && e.show && isFinite(e.yTop) ? (u(), r("line", {
2527
+ e.yTop && e.show && isFinite(e.yTop) ? (u(), i("line", {
2550
2528
  key: 0,
2551
2529
  x1: e.x1,
2552
2530
  y1: e.yTop,
@@ -2557,8 +2535,8 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2557
2535
  "stroke-dasharray": e.config.line.strokeDasharray,
2558
2536
  "stroke-linecap": "round",
2559
2537
  style: { animation: "none !important" }
2560
- }, null, 8, xu)) : d("", !0),
2561
- e.yBottom && e.show && isFinite(e.yBottom) ? (u(), r("line", {
2538
+ }, null, 8, fu)) : d("", !0),
2539
+ e.yBottom && e.show && isFinite(e.yBottom) ? (u(), i("line", {
2562
2540
  key: 1,
2563
2541
  x1: e.x1,
2564
2542
  y1: e.yBottom,
@@ -2569,21 +2547,21 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2569
2547
  "stroke-dasharray": e.config.line.strokeDasharray,
2570
2548
  "stroke-linecap": "round",
2571
2549
  style: { animation: "none !important" }
2572
- }, null, 8, bu)) : d("", !0),
2573
- e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (u(), r("rect", {
2550
+ }, null, 8, gu)) : d("", !0),
2551
+ e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (u(), i("rect", {
2574
2552
  key: 2,
2575
2553
  y: Math.min(e.yTop, e.yBottom),
2576
2554
  x: e.x1,
2577
- width: i.value.width,
2555
+ width: n.value.width,
2578
2556
  height: v(T)(e.areaHeight, 0),
2579
- fill: v(Ce)(e.config.area.fill, e.config.area.opacity),
2557
+ fill: v(Me)(e.config.area.fill, e.config.area.opacity),
2580
2558
  style: { animation: "none !important" }
2581
- }, null, 8, mu)) : d("", !0),
2582
- e.config.label.text && e.show && isFinite(e._box.y) ? (u(), r("rect", xa({
2559
+ }, null, 8, xu)) : d("", !0),
2560
+ e.config.label.text && e.show && isFinite(e._box.y) ? (u(), i("rect", va({
2583
2561
  key: 3,
2584
2562
  class: "vue-ui-xy-annotation-label-box"
2585
2563
  }, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : d("", !0),
2586
- e.config.label.text && e.show && isFinite(e._text.y) ? (u(), r("text", {
2564
+ e.config.label.text && e.show && isFinite(e._text.y) ? (u(), i("text", {
2587
2565
  key: 4,
2588
2566
  id: e.id,
2589
2567
  class: "vue-ui-xy-annotation-label",
@@ -2592,26 +2570,26 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2592
2570
  "font-size": e.config.label.fontSize,
2593
2571
  fill: e.config.label.color,
2594
2572
  "text-anchor": e.config.label.textAnchor
2595
- }, se(e.config.label.text), 9, yu)) : d("", !0)
2573
+ }, oe(e.config.label.text), 9, bu)) : d("", !0)
2596
2574
  ]))), 128))
2597
2575
  ])) : d("", !0),
2598
- va.value ? (u(), r("g", pu, [
2599
- (u(!0), r(h, null, y(b.value, (e, s) => (u(), r("rect", {
2576
+ ra.value ? (u(), i("g", mu, [
2577
+ (u(!0), i(h, null, y(m.value, (e, s) => (u(), i("rect", {
2600
2578
  key: `tooltip_trap_${s}`,
2601
- x: i.value.left + i.value.width / b.value * s,
2602
- y: i.value.top,
2603
- height: i.value.height < 0 ? 10 : i.value.height,
2604
- width: i.value.width / b.value < 0 ? 1e-5 : i.value.width / b.value,
2579
+ x: n.value.left + n.value.width / m.value * s,
2580
+ y: n.value.top,
2581
+ height: n.value.height < 0 ? 10 : n.value.height,
2582
+ width: n.value.width / m.value < 0 ? 1e-5 : n.value.width / m.value,
2605
2583
  fill: "transparent",
2606
- onMouseenter: (t) => Ua(!0, s),
2607
- onMouseleave: c[1] || (c[1] = (t) => Ua(!1)),
2608
- onClick: (t) => wt(s)
2609
- }, null, 40, ku))), 128))
2584
+ onMouseenter: (t) => Ea(!0, s),
2585
+ onMouseleave: c[1] || (c[1] = (t) => Ea(!1)),
2586
+ onClick: (t) => yt(s)
2587
+ }, null, 40, yu))), 128))
2610
2588
  ])) : d("", !0),
2611
- l.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(O.value)) ? (u(), r("g", _u, [
2612
- (u(), r("foreignObject", {
2613
- x: i.value.left + i.value.width / b.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) - 100 + i.value.width / b.value / 2,
2614
- y: i.value.bottom,
2589
+ l.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", pu, [
2590
+ (u(), i("foreignObject", {
2591
+ x: n.value.left + n.value.width / m.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) - 100 + n.value.width / m.value / 2,
2592
+ y: n.value.bottom,
2615
2593
  width: "200",
2616
2594
  height: "40",
2617
2595
  style: { overflow: "visible !important" }
@@ -2619,260 +2597,260 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2619
2597
  g("div", {
2620
2598
  class: "vue-ui-xy-time-tag",
2621
2599
  style: C(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${l.value.chart.timeTag.backgroundColor};color:${l.value.chart.timeTag.color};font-size:${l.value.chart.timeTag.fontSize}px`)
2622
- }, se(ge.value[(_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)].text || (_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)), 5)
2623
- ], 8, wu)),
2600
+ }, oe(he.value[(_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)].text || (_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)), 5)
2601
+ ], 8, ku)),
2624
2602
  g("circle", {
2625
- cx: i.value.left + i.value.width / b.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) + i.value.width / b.value / 2,
2626
- cy: i.value.bottom,
2603
+ cx: n.value.left + n.value.width / m.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / m.value / 2,
2604
+ cy: n.value.bottom,
2627
2605
  r: l.value.chart.timeTag.circleMarker.radius,
2628
2606
  fill: l.value.chart.timeTag.circleMarker.color
2629
- }, null, 8, Su)
2607
+ }, null, 8, _u)
2630
2608
  ])) : d("", !0)
2631
2609
  ])) : d("", !0),
2632
- Z(a.$slots, "svg", { svg: dt.value }, void 0, !0)
2610
+ U(a.$slots, "svg", { svg: ut.value }, void 0, !0)
2633
2611
  ], 512)
2634
- ], 14, go)),
2635
- a.$slots.watermark ? (u(), r("div", $u, [
2636
- Z(a.$slots, "watermark", rl(il({ isPrinting: v(ia) || v(Aa) })), void 0, !0)
2612
+ ], 14, ho)),
2613
+ a.$slots.watermark ? (u(), i("div", wu, [
2614
+ U(a.$slots, "watermark", ol(sl({ isPrinting: v(oa) || v(ka) })), void 0, !0)
2637
2615
  ])) : d("", !0),
2638
- (u(!0), r(h, null, y(ze.value, (e, s) => (u(), r(h, {
2616
+ (u(!0), i(h, null, y(Ae.value, (e, s) => (u(), i(h, {
2639
2617
  key: `tag_line_${s}`
2640
2618
  }, [
2641
- (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2642
- key: `tag_line_${s}_${n}`
2619
+ (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
2620
+ key: `tag_line_${s}_${r}`
2643
2621
  }, [
2644
- [O.value, _.value, ll.value].includes(n) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (u(), r("div", {
2622
+ [O.value, _.value, je.value].includes(r) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (u(), i("div", {
2645
2623
  key: 0,
2646
2624
  ref_for: !0,
2647
- ref: (o) => Rl(s, n, o, "right", "line"),
2625
+ ref: (o) => Bl(s, r, o, "right", "line"),
2648
2626
  class: "vue-ui-xy-tag",
2649
2627
  "data-tag": "right",
2650
2628
  style: C({
2651
2629
  position: "fixed",
2652
2630
  top: v(Ze)({
2653
- svgElement: $e.value,
2654
- x: i.value.right + l.value.line.tag.fontSize / 1.5,
2631
+ svgElement: _e.value,
2632
+ x: n.value.right + l.value.line.tag.fontSize / 1.5,
2655
2633
  y: t.y,
2656
- element: Be.value[`${s}_${n}_right_line`],
2634
+ element: He.value[`${s}_${r}_right_line`],
2657
2635
  position: "right"
2658
2636
  }).top + "px",
2659
2637
  left: v(Ze)({
2660
- svgElement: $e.value,
2661
- x: i.value.right + l.value.line.tag.fontSize / 1.5,
2638
+ svgElement: _e.value,
2639
+ x: n.value.right + l.value.line.tag.fontSize / 1.5,
2662
2640
  y: t.y,
2663
- element: Be.value[`${s}_${n}_right_line`],
2641
+ element: He.value[`${s}_${r}_right_line`],
2664
2642
  position: "right"
2665
2643
  }).left + "px",
2666
2644
  height: "fit-content",
2667
2645
  width: "fit-content",
2668
2646
  background: e.color,
2669
- color: v(qe)(e.color),
2647
+ color: v(Ue)(e.color),
2670
2648
  padding: "0 6px",
2671
2649
  fontSize: l.value.line.tag.fontSize + "px",
2672
2650
  opacity: 1
2673
2651
  })
2674
2652
  }, [
2675
- (u(), r("svg", Lu, [
2653
+ (u(), i("svg", Su, [
2676
2654
  g("path", {
2677
2655
  d: "M 0,10 10,0 10,20 Z",
2678
2656
  fill: e.color,
2679
2657
  stroke: "none"
2680
- }, null, 8, Au)
2658
+ }, null, 8, $u)
2681
2659
  ])),
2682
2660
  g("div", {
2683
2661
  class: "vue-ui-xy-tag-content",
2684
- innerHTML: v(fe)(
2662
+ innerHTML: v(ne)(
2685
2663
  l.value.line.tag.formatter,
2686
2664
  t.value,
2687
2665
  e.name,
2688
2666
  {
2689
2667
  datapoint: t,
2690
- seriesIndex: n,
2668
+ seriesIndex: r,
2691
2669
  serieName: e.name
2692
2670
  }
2693
2671
  )
2694
- }, null, 8, Mu)
2672
+ }, null, 8, Lu)
2695
2673
  ], 4)) : d("", !0),
2696
- [O.value, _.value, ll.value].includes(n) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (u(), r("div", {
2674
+ [O.value, _.value, je.value].includes(r) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (u(), i("div", {
2697
2675
  key: 1,
2698
2676
  ref_for: !0,
2699
- ref: (o) => Rl(s, n, o, "left", "line"),
2677
+ ref: (o) => Bl(s, r, o, "left", "line"),
2700
2678
  class: "vue-ui-xy-tag",
2701
2679
  "data-tag": "left",
2702
2680
  style: C({
2703
2681
  position: "fixed",
2704
2682
  top: v(Ze)({
2705
- svgElement: $e.value,
2706
- x: i.value.left - l.value.line.tag.fontSize / 1.5,
2683
+ svgElement: _e.value,
2684
+ x: n.value.left - l.value.line.tag.fontSize / 1.5,
2707
2685
  y: t.y,
2708
- element: Be.value[`${s}_${n}_left_line`],
2686
+ element: He.value[`${s}_${r}_left_line`],
2709
2687
  position: "left"
2710
2688
  }).top + "px",
2711
2689
  left: v(Ze)({
2712
- svgElement: $e.value,
2713
- x: i.value.left - l.value.line.tag.fontSize / 1.5,
2690
+ svgElement: _e.value,
2691
+ x: n.value.left - l.value.line.tag.fontSize / 1.5,
2714
2692
  y: t.y,
2715
- element: Be.value[`${s}_${n}_left_line`],
2693
+ element: He.value[`${s}_${r}_left_line`],
2716
2694
  position: "left"
2717
2695
  }).left + "px",
2718
2696
  height: "fit-content",
2719
2697
  width: "fit-content",
2720
2698
  background: e.color,
2721
- color: v(qe)(e.color),
2699
+ color: v(Ue)(e.color),
2722
2700
  padding: "0 6px",
2723
2701
  fontSize: l.value.line.tag.fontSize + "px",
2724
2702
  opacity: 1
2725
2703
  })
2726
2704
  }, [
2727
- (u(), r("svg", zu, [
2705
+ (u(), i("svg", Au, [
2728
2706
  g("path", {
2729
2707
  d: "M 0,0 10,10 0,20 Z",
2730
2708
  fill: e.color,
2731
2709
  stroke: "none"
2732
- }, null, 8, Cu)
2710
+ }, null, 8, Mu)
2733
2711
  ])),
2734
2712
  g("div", {
2735
2713
  class: "vue-ui-xy-tag-content",
2736
- innerHTML: v(fe)(
2714
+ innerHTML: v(ne)(
2737
2715
  l.value.line.tag.formatter,
2738
2716
  t.value,
2739
2717
  e.name,
2740
2718
  {
2741
2719
  datapoint: t,
2742
- seriesIndex: n,
2720
+ seriesIndex: r,
2743
2721
  serieName: e.name
2744
2722
  }
2745
2723
  )
2746
- }, null, 8, Iu)
2724
+ }, null, 8, zu)
2747
2725
  ], 4)) : d("", !0)
2748
2726
  ], 64))), 128))
2749
2727
  ], 64))), 128)),
2750
- (u(!0), r(h, null, y(Oe.value, (e, s) => (u(), r(h, {
2728
+ (u(!0), i(h, null, y(Ie.value, (e, s) => (u(), i(h, {
2751
2729
  key: `tag_plot_${s}`
2752
2730
  }, [
2753
- (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2754
- key: `tag_plot_${s}_${n}`
2731
+ (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
2732
+ key: `tag_plot_${s}_${r}`
2755
2733
  }, [
2756
- [O.value, _.value, ll.value].includes(n) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (u(), r("div", {
2734
+ [O.value, _.value, je.value].includes(r) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (u(), i("div", {
2757
2735
  key: 0,
2758
2736
  ref_for: !0,
2759
- ref: (o) => Rl(s, n, o, "right", "plot"),
2737
+ ref: (o) => Bl(s, r, o, "right", "plot"),
2760
2738
  class: "vue-ui-xy-tag",
2761
2739
  "data-tag": "right",
2762
2740
  style: C({
2763
2741
  position: "fixed",
2764
2742
  top: v(Ze)({
2765
- svgElement: $e.value,
2766
- x: i.value.right + l.value.plot.tag.fontSize / 1.5,
2743
+ svgElement: _e.value,
2744
+ x: n.value.right + l.value.plot.tag.fontSize / 1.5,
2767
2745
  y: t.y,
2768
- element: Be.value[`${s}_${n}_right_plot`],
2746
+ element: He.value[`${s}_${r}_right_plot`],
2769
2747
  position: "right"
2770
2748
  }).top + "px",
2771
2749
  left: v(Ze)({
2772
- svgElement: $e.value,
2773
- x: i.value.right + l.value.plot.tag.fontSize / 1.5,
2750
+ svgElement: _e.value,
2751
+ x: n.value.right + l.value.plot.tag.fontSize / 1.5,
2774
2752
  y: t.y,
2775
- element: Be.value[`${s}_${n}_right_plot`],
2753
+ element: He.value[`${s}_${r}_right_plot`],
2776
2754
  position: "right"
2777
2755
  }).left + "px",
2778
2756
  height: "fit-content",
2779
2757
  width: "fit-content",
2780
2758
  background: e.color,
2781
- color: v(qe)(e.color),
2759
+ color: v(Ue)(e.color),
2782
2760
  padding: "0 6px",
2783
2761
  fontSize: l.value.plot.tag.fontSize + "px",
2784
2762
  opacity: 1
2785
2763
  })
2786
2764
  }, [
2787
- (u(), r("svg", Tu, [
2765
+ (u(), i("svg", Cu, [
2788
2766
  g("path", {
2789
2767
  d: "M 0,10 10,0 10,20 Z",
2790
2768
  fill: e.color,
2791
2769
  stroke: "none"
2792
- }, null, 8, Ou)
2770
+ }, null, 8, Iu)
2793
2771
  ])),
2794
2772
  g("div", {
2795
2773
  class: "vue-ui-xy-tag-content",
2796
- innerHTML: v(fe)(
2774
+ innerHTML: v(ne)(
2797
2775
  l.value.plot.tag.formatter,
2798
2776
  t.value,
2799
2777
  e.name,
2800
2778
  {
2801
2779
  datapoint: t,
2802
- seriesIndex: n,
2780
+ seriesIndex: r,
2803
2781
  serieName: e.name
2804
2782
  }
2805
2783
  )
2806
- }, null, 8, Nu)
2784
+ }, null, 8, Tu)
2807
2785
  ], 4)) : d("", !0),
2808
- [O.value, _.value, ll.value].includes(n) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (u(), r("div", {
2786
+ [O.value, _.value, je.value].includes(r) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (u(), i("div", {
2809
2787
  key: 1,
2810
2788
  ref_for: !0,
2811
- ref: (o) => Rl(s, n, o, "left", "plot"),
2789
+ ref: (o) => Bl(s, r, o, "left", "plot"),
2812
2790
  class: "vue-ui-xy-tag",
2813
2791
  "data-tag": "left",
2814
2792
  style: C({
2815
2793
  position: "fixed",
2816
2794
  top: v(Ze)({
2817
- svgElement: $e.value,
2818
- x: i.value.left - l.value.plot.tag.fontSize / 1.5,
2795
+ svgElement: _e.value,
2796
+ x: n.value.left - l.value.plot.tag.fontSize / 1.5,
2819
2797
  y: t.y,
2820
- element: Be.value[`${s}_${n}_left_plot`],
2798
+ element: He.value[`${s}_${r}_left_plot`],
2821
2799
  position: "left"
2822
2800
  }).top + "px",
2823
2801
  left: v(Ze)({
2824
- svgElement: $e.value,
2825
- x: i.value.left - l.value.plot.tag.fontSize / 1.5,
2802
+ svgElement: _e.value,
2803
+ x: n.value.left - l.value.plot.tag.fontSize / 1.5,
2826
2804
  y: t.y,
2827
- element: Be.value[`${s}_${n}_left_plot`],
2805
+ element: He.value[`${s}_${r}_left_plot`],
2828
2806
  position: "left"
2829
2807
  }).left + "px",
2830
2808
  height: "fit-content",
2831
2809
  width: "fit-content",
2832
2810
  background: e.color,
2833
- color: v(qe)(e.color),
2811
+ color: v(Ue)(e.color),
2834
2812
  padding: "0 6px",
2835
2813
  fontSize: l.value.plot.tag.fontSize + "px",
2836
2814
  opacity: 1
2837
2815
  })
2838
2816
  }, [
2839
- (u(), r("svg", Vu, [
2817
+ (u(), i("svg", Ou, [
2840
2818
  g("path", {
2841
2819
  d: "M 0,0 10,10 0,20 Z",
2842
2820
  fill: e.color,
2843
2821
  stroke: "none"
2844
- }, null, 8, Pu)
2822
+ }, null, 8, Nu)
2845
2823
  ])),
2846
2824
  g("div", {
2847
2825
  class: "vue-ui-xy-tag-content",
2848
- innerHTML: v(fe)(
2826
+ innerHTML: v(ne)(
2849
2827
  l.value.plot.tag.formatter,
2850
2828
  t.value,
2851
2829
  e.name,
2852
2830
  {
2853
2831
  datapoint: t,
2854
- seriesIndex: n,
2832
+ seriesIndex: r,
2855
2833
  serieName: e.name
2856
2834
  }
2857
2835
  )
2858
- }, null, 8, Hu)
2836
+ }, null, 8, Vu)
2859
2837
  ], 4)) : d("", !0)
2860
2838
  ], 64))), 128))
2861
2839
  ], 64))), 128)),
2862
- l.value.chart.zoom.show && Ee.value > 6 && ua.value ? (u(), Ve(so, {
2840
+ l.value.chart.zoom.show && Ee.value > 6 && aa.value ? (u(), Oe(ao, {
2863
2841
  ref_key: "chartSlicer",
2864
- ref: U,
2865
- key: `slicer_${aa.value}`,
2842
+ ref: F,
2843
+ key: `slicer_${Ql.value}`,
2866
2844
  background: l.value.chart.zoom.color,
2867
2845
  fontSize: l.value.chart.zoom.fontSize,
2868
2846
  useResetSlot: l.value.chart.zoom.useResetSlot,
2869
- labelLeft: ge.value[0].text,
2870
- labelRight: ge.value.at(-1).text,
2847
+ labelLeft: he.value[0].text,
2848
+ labelRight: he.value.at(-1).text,
2871
2849
  textColor: l.value.chart.color,
2872
2850
  inputColor: l.value.chart.zoom.color,
2873
2851
  selectColor: l.value.chart.zoom.highlightColor,
2874
2852
  borderColor: l.value.chart.backgroundColor,
2875
- minimap: Ot.value,
2853
+ minimap: zt.value,
2876
2854
  smoothMinimap: l.value.chart.zoom.minimap.smooth,
2877
2855
  minimapSelectedColor: l.value.chart.zoom.minimap.selectedColor,
2878
2856
  minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
@@ -2890,30 +2868,30 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2890
2868
  end: S.value.end,
2891
2869
  "onUpdate:end": c[3] || (c[3] = (e) => S.value.end = e),
2892
2870
  refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
2893
- refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...bl.dataset.map((e) => v(Ue)({ data: e.series, threshold: l.value.downsample.threshold }).length)),
2871
+ refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...gl.dataset.map((e) => v(qe)({ data: e.series, threshold: l.value.downsample.threshold }).length)),
2894
2872
  enableRangeHandles: l.value.chart.zoom.enableRangeHandles,
2895
2873
  enableSelectionDrag: l.value.chart.zoom.enableSelectionDrag,
2896
- onReset: _t,
2897
- onTrapMouse: yt
2874
+ onReset: mt,
2875
+ onTrapMouse: gt
2898
2876
  }, {
2899
- "reset-action": ne(({ reset: e }) => [
2900
- Z(a.$slots, "reset-action", rl(il({ reset: e })), void 0, !0)
2877
+ "reset-action": ie(({ reset: e }) => [
2878
+ U(a.$slots, "reset-action", ol(sl({ reset: e })), void 0, !0)
2901
2879
  ]),
2902
2880
  _: 3
2903
2881
  }, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : d("", !0),
2904
- l.value.chart.legend.show ? (u(), r("div", {
2882
+ l.value.chart.legend.show ? (u(), i("div", {
2905
2883
  key: 6,
2906
2884
  ref_key: "chartLegend",
2907
- ref: ke,
2885
+ ref: J,
2908
2886
  class: "vue-ui-xy-legend",
2909
2887
  style: C(`font-size:${l.value.chart.legend.fontSize}px`)
2910
2888
  }, [
2911
- (u(!0), r(h, null, y(Te.value, (e, s) => (u(), r("div", {
2889
+ (u(!0), i(h, null, y(Be.value, (e, s) => (u(), i("div", {
2912
2890
  key: `div_legend_item_${s}`,
2913
- onClick: (t) => Fa(e),
2914
- class: ul({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ue.value.includes(e.id) })
2891
+ onClick: (t) => Pa(e),
2892
+ class: tl({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ue.value.includes(e.id) })
2915
2893
  }, [
2916
- yl.value[e.type] === "line" ? (u(), r("svg", Ru, [
2894
+ yl.value[e.type] === "line" ? (u(), i("svg", Hu, [
2917
2895
  g("rect", {
2918
2896
  x: "0",
2919
2897
  y: "7.5",
@@ -2923,8 +2901,8 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2923
2901
  height: "3",
2924
2902
  width: "20",
2925
2903
  fill: e.color
2926
- }, null, 8, Yu),
2927
- Al(Dl, {
2904
+ }, null, 8, Ru),
2905
+ Al(Xl, {
2928
2906
  plot: { x: 10, y: 9 },
2929
2907
  radius: 4,
2930
2908
  color: e.color,
@@ -2932,8 +2910,8 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2932
2910
  stroke: l.value.chart.backgroundColor,
2933
2911
  strokeWidth: 0.5
2934
2912
  }, null, 8, ["color", "shape", "stroke"])
2935
- ])) : yl.value[e.type] === "bar" ? (u(), r("svg", Fu, [
2936
- yl.value[e.type] === "bar" && a.$slots.pattern ? (u(), r("rect", {
2913
+ ])) : yl.value[e.type] === "bar" ? (u(), i("svg", Bu, [
2914
+ yl.value[e.type] === "bar" && a.$slots.pattern ? (u(), i("rect", {
2937
2915
  key: 0,
2938
2916
  x: "0",
2939
2917
  y: "0",
@@ -2942,8 +2920,8 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2942
2920
  width: "40",
2943
2921
  stroke: "none",
2944
2922
  fill: e.color
2945
- }, null, 8, Eu)) : d("", !0),
2946
- yl.value[e.type] === "bar" ? (u(), r("rect", {
2923
+ }, null, 8, Yu)) : d("", !0),
2924
+ yl.value[e.type] === "bar" ? (u(), i("rect", {
2947
2925
  key: 1,
2948
2926
  x: "0",
2949
2927
  y: "0",
@@ -2951,10 +2929,10 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2951
2929
  height: "40",
2952
2930
  width: "40",
2953
2931
  stroke: "none",
2954
- fill: a.$slots.pattern ? `url(#pattern_${J.value}_${e.slotAbsoluteIndex})` : e.color
2955
- }, null, 8, Wu)) : d("", !0)
2956
- ])) : (u(), r("svg", Gu, [
2957
- Al(Dl, {
2932
+ fill: a.$slots.pattern ? `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})` : e.color
2933
+ }, null, 8, Fu)) : d("", !0)
2934
+ ])) : (u(), i("svg", Eu, [
2935
+ Al(Xl, {
2958
2936
  plot: { x: 6, y: 6 },
2959
2937
  radius: 5,
2960
2938
  color: e.color,
@@ -2963,25 +2941,25 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2963
2941
  ])),
2964
2942
  g("span", {
2965
2943
  style: C(`color:${l.value.chart.legend.color}`)
2966
- }, se(e.name), 5)
2967
- ], 10, Bu))), 128))
2968
- ], 4)) : (u(), r("div", {
2944
+ }, oe(e.name), 5)
2945
+ ], 10, Pu))), 128))
2946
+ ], 4)) : (u(), i("div", {
2969
2947
  key: 7,
2970
2948
  ref_key: "chartLegend",
2971
- ref: ke
2949
+ ref: J
2972
2950
  }, [
2973
- Z(a.$slots, "legend", { legend: Te.value }, void 0, !0)
2951
+ U(a.$slots, "legend", { legend: Be.value }, void 0, !0)
2974
2952
  ], 512)),
2975
- a.$slots.source ? (u(), r("div", {
2953
+ a.$slots.source ? (u(), i("div", {
2976
2954
  key: 8,
2977
2955
  ref_key: "source",
2978
- ref: He,
2956
+ ref: ke,
2979
2957
  dir: "auto"
2980
2958
  }, [
2981
- Z(a.$slots, "source", {}, void 0, !0)
2959
+ U(a.$slots, "source", {}, void 0, !0)
2982
2960
  ], 512)) : d("", !0),
2983
2961
  Al(v(ql), {
2984
- show: f.value.showTooltip && ka.value,
2962
+ show: f.value.showTooltip && xa.value,
2985
2963
  backgroundColor: l.value.chart.tooltip.backgroundColor,
2986
2964
  color: l.value.chart.tooltip.color,
2987
2965
  fontSize: l.value.chart.tooltip.fontSize,
@@ -2992,19 +2970,19 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
2992
2970
  position: l.value.chart.tooltip.position,
2993
2971
  offsetY: l.value.chart.tooltip.offsetY,
2994
2972
  parent: a.$refs.chart,
2995
- content: Nt.value,
2996
- isFullscreen: hl.value,
2973
+ content: Ct.value,
2974
+ isFullscreen: vl.value,
2997
2975
  isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function"
2998
2976
  }, {
2999
- "tooltip-before": ne(() => [
3000
- Z(a.$slots, "tooltip-before", rl(il({ ...Xa.value })), void 0, !0)
2977
+ "tooltip-before": ie(() => [
2978
+ U(a.$slots, "tooltip-before", ol(sl({ ...Ya.value })), void 0, !0)
3001
2979
  ]),
3002
- "tooltip-after": ne(() => [
3003
- Z(a.$slots, "tooltip-after", rl(il({ ...Xa.value })), void 0, !0)
2980
+ "tooltip-after": ie(() => [
2981
+ U(a.$slots, "tooltip-after", ol(sl({ ...Ya.value })), void 0, !0)
3004
2982
  ]),
3005
2983
  _: 3
3006
2984
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
3007
- ua.value ? (u(), Ve(v(ml), {
2985
+ aa.value ? (u(), Oe(v(nl), {
3008
2986
  key: 9,
3009
2987
  hideDetails: "",
3010
2988
  config: {
@@ -3020,46 +2998,46 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
3020
2998
  }
3021
2999
  }
3022
3000
  }, {
3023
- content: ne(() => [
3001
+ content: ie(() => [
3024
3002
  g("div", {
3025
- style: C(`${v(ia) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
3003
+ style: C(`${v(oa) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
3026
3004
  }, [
3027
- g("div", Xu, [
3028
- Yt(g("input", {
3005
+ g("div", Wu, [
3006
+ Ht(g("input", {
3029
3007
  type: "checkbox",
3030
3008
  "onUpdate:modelValue": c[4] || (c[4] = (e) => pl.value = e)
3031
3009
  }, null, 512), [
3032
- [Ft, pl.value]
3010
+ [Rt, pl.value]
3033
3011
  ]),
3034
3012
  g("div", {
3035
3013
  onClick: c[5] || (c[5] = (e) => pl.value = !pl.value),
3036
3014
  style: { cursor: "pointer" }
3037
3015
  }, [
3038
- Al(v(Jl), {
3016
+ Al(v(Cl), {
3039
3017
  name: "chartLine",
3040
3018
  size: 20,
3041
3019
  stroke: l.value.chart.color
3042
3020
  }, null, 8, ["stroke"])
3043
3021
  ])
3044
3022
  ]),
3045
- pl.value ? (u(), Ve(v(Kl), {
3046
- key: `sparkline_${ta.value}`,
3047
- dataset: Ct.value,
3048
- config: It.value
3049
- }, null, 8, ["dataset", "config"])) : (u(), Ve(v(vl), {
3050
- key: `table_${wa.value}`,
3051
- colNames: El.value.colNames,
3052
- head: El.value.head,
3053
- body: El.value.body,
3054
- config: El.value.config,
3023
+ pl.value ? (u(), Oe(v(Il), {
3024
+ key: `sparkline_${jl.value}`,
3025
+ dataset: Lt.value,
3026
+ config: At.value
3027
+ }, null, 8, ["dataset", "config"])) : (u(), Oe(v(il), {
3028
+ key: `table_${ma.value}`,
3029
+ colNames: Fl.value.colNames,
3030
+ head: Fl.value.head,
3031
+ body: Fl.value.body,
3032
+ config: Fl.value.config,
3055
3033
  title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? ` : ${l.value.chart.title.subtitle.text}` : ""}`,
3056
3034
  onClose: c[6] || (c[6] = (e) => f.value.showTable = !1)
3057
3035
  }, {
3058
- th: ne(({ th: e }) => [
3059
- g("div", { innerHTML: e }, null, 8, Du)
3036
+ th: ie(({ th: e }) => [
3037
+ g("div", { innerHTML: e }, null, 8, Xu)
3060
3038
  ]),
3061
- td: ne(({ td: e }) => [
3062
- Et(se(isNaN(Number(e)) ? e : v(Se)({
3039
+ td: ie(({ td: e }) => [
3040
+ Bt(oe(isNaN(Number(e)) ? e : v(pe)({
3063
3041
  p: l.value.chart.labels.prefix,
3064
3042
  v: e,
3065
3043
  s: l.value.chart.labels.suffix,
@@ -3072,10 +3050,10 @@ const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "wid
3072
3050
  ]),
3073
3051
  _: 1
3074
3052
  }, 8, ["config"])) : d("", !0),
3075
- v(ra) ? (u(), Ve(co, { key: 10 })) : d("", !0)
3076
- ], 46, fo));
3053
+ v(ta) ? (u(), Oe(ro, { key: 10 })) : d("", !0)
3054
+ ], 46, vo));
3077
3055
  }
3078
- }, sr = /* @__PURE__ */ vo(Uu, [["__scopeId", "data-v-7fe9df32"]]);
3056
+ }, or = /* @__PURE__ */ no(Gu, [["__scopeId", "data-v-15ae1d7f"]]);
3079
3057
  export {
3080
- sr as default
3058
+ or as default
3081
3059
  };