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

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