vue-data-ui 3.1.15 → 3.1.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 (88) hide show
  1. package/dist/{Arrow-BwVAy_Jw.js → Arrow-DFX_NfRh.js} +1 -1
  2. package/dist/{BaseDraggableDialog-TS2ANP8W.js → BaseDraggableDialog-CrCjMg89.js} +2 -2
  3. package/dist/{BaseIcon-Dj9csjZa.js → BaseIcon-7s-tCFcQ.js} +1 -1
  4. package/dist/{ColorPicker-BKecww2B.js → ColorPicker-BoLH_m_Z.js} +2 -2
  5. package/dist/{DataTable-DAc2s9Wi.js → DataTable-Dw6dxJk3.js} +2 -2
  6. package/dist/{Legend-C3Kvktr3.js → Legend-CjdnJGHq.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-yA6HCA0i.js → NonSvgPenAndPaper-tX2IXHuz.js} +3 -3
  8. package/dist/{PackageVersion-DL0EOwRR.js → PackageVersion-D1HToLlZ.js} +1 -1
  9. package/dist/{PenAndPaper-CcoAkH79.js → PenAndPaper-BKnXOYre.js} +3 -3
  10. package/dist/{Shape-CziAQ1KL.js → Shape-6PexQroB.js} +1 -1
  11. package/dist/{Slicer-BMgEyKMg.js → Slicer-BJkhMBk4.js} +2 -2
  12. package/dist/{SparkTooltip-BGqC2VSH.js → SparkTooltip-BtO1j0i1.js} +1 -1
  13. package/dist/{Title-DRhv9bCG.js → Title-BVMfF0uu.js} +1 -1
  14. package/dist/{Tooltip-B46L8jx5.js → Tooltip-DBvmoYXU.js} +1 -1
  15. package/dist/{UserOptions-CmhyvH7T.js → UserOptions-CKzW9w0Q.js} +2 -2
  16. package/dist/{dom-to-png-B2G1VN03.js → dom-to-png-D0wlWRL9.js} +1 -1
  17. package/dist/{img-CRdZ0dzP.js → img-CeCjiMpr.js} +1 -1
  18. package/dist/{index-BS0jZusk.js → index-Lg17rmB1.js} +1 -1
  19. package/dist/{pdf-Gz1SfU0n.js → pdf-D5bgIg6W.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/{useAutoSizeLabelsInsideViewbox-BPbMPvCk.js → useAutoSizeLabelsInsideViewbox-BxqMb3sU.js} +1 -1
  22. package/dist/{useNestedProp-BMfS1Wmb.js → useNestedProp-DpwLJMsW.js} +1 -1
  23. package/dist/{usePrinter-CsKq2kgt.js → usePrinter-DGI4Mlad.js} +2 -2
  24. package/dist/{vue-data-ui-BfnOSsYj.js → vue-data-ui-lki09wwK.js} +64 -64
  25. package/dist/vue-data-ui.js +1 -1
  26. package/dist/{vue-ui-3d-bar-BR_dgJX1.js → vue-ui-3d-bar-8b3VZcUI.js} +6 -6
  27. package/dist/{vue-ui-accordion-CEzzDwYU.js → vue-ui-accordion-BJG-ogQj.js} +3 -3
  28. package/dist/{vue-ui-age-pyramid-CqzjgMzW.js → vue-ui-age-pyramid-Cr_dhyTO.js} +6 -6
  29. package/dist/{vue-ui-annotator-OWSjXDfI.js → vue-ui-annotator-ttaqcMTz.js} +2 -2
  30. package/dist/{vue-ui-bullet-BkiVGK4U.js → vue-ui-bullet-DXvTj07g.js} +7 -7
  31. package/dist/{vue-ui-candlestick-CE9w-lrK.js → vue-ui-candlestick-B5NqFTXr.js} +7 -7
  32. package/dist/{vue-ui-carousel-table-DzMkFu9a.js → vue-ui-carousel-table-B0bpCRFh.js} +4 -4
  33. package/dist/{vue-ui-chestnut-CwW3t_5M.js → vue-ui-chestnut-Cby7Wcbu.js} +5 -5
  34. package/dist/{vue-ui-chord-C273Dy7g.js → vue-ui-chord-Cxg8nwzZ.js} +8 -8
  35. package/dist/{vue-ui-circle-pack-DVsgg20A.js → vue-ui-circle-pack-Cc5e6dE3.js} +6 -6
  36. package/dist/{vue-ui-cursor-6wDMRfxj.js → vue-ui-cursor-D6MvR7jD.js} +2 -2
  37. package/dist/{vue-ui-dashboard-Dr3da_KZ.js → vue-ui-dashboard-CaUM9n5b.js} +67 -67
  38. package/dist/{vue-ui-digits-CJl9xG57.js → vue-ui-digits-DsoHRv9p.js} +2 -2
  39. package/dist/{vue-ui-donut-CKvoDpr0.js → vue-ui-donut-Dxsq1gpz.js} +8 -8
  40. package/dist/{vue-ui-donut-evolution-B8z5HW6k.js → vue-ui-donut-evolution-CFu9WNVV.js} +8 -8
  41. package/dist/{vue-ui-dumbbell-C-aWCVEj.js → vue-ui-dumbbell-Cgb7ijQS.js} +7 -7
  42. package/dist/{vue-ui-flow-Cg0W7WX3.js → vue-ui-flow-Ucb9PdWP.js} +7 -7
  43. package/dist/{vue-ui-funnel-CfzyjhfB.js → vue-ui-funnel-CV29tksj.js} +6 -6
  44. package/dist/{vue-ui-galaxy-CzswoWLZ.js → vue-ui-galaxy-CVJb9_hA.js} +7 -7
  45. package/dist/{vue-ui-gauge-BguKCg0e.js → vue-ui-gauge-ofpIH29X.js} +7 -7
  46. package/dist/{vue-ui-gizmo-mhU06gyJ.js → vue-ui-gizmo-Ci9kN9VQ.js} +3 -3
  47. package/dist/{vue-ui-heatmap-BtAAQWmE.js → vue-ui-heatmap-BK_jorrw.js} +7 -7
  48. package/dist/{vue-ui-history-plot-Clrvd4ZQ.js → vue-ui-history-plot-Ce8BB4Tn.js} +7 -7
  49. package/dist/{vue-ui-kpi-DGpQpP2W.js → vue-ui-kpi-DAHT9q6j.js} +3 -3
  50. package/dist/{vue-ui-mini-loader-2zvIBunp.js → vue-ui-mini-loader-CuilTrcI.js} +2 -2
  51. package/dist/{vue-ui-molecule-DKgiZcBp.js → vue-ui-molecule-C6suewK-.js} +5 -5
  52. package/dist/{vue-ui-mood-radar-ka0RoCHN.js → vue-ui-mood-radar-DPvGhgPI.js} +7 -7
  53. package/dist/{vue-ui-nested-donuts-CvROIWCn.js → vue-ui-nested-donuts-BvPWp9Du.js} +7 -7
  54. package/dist/{vue-ui-onion-x5qCIJUe.js → vue-ui-onion-BZ0tfRV_.js} +8 -8
  55. package/dist/{vue-ui-parallel-coordinate-plot-BaNQTR7G.js → vue-ui-parallel-coordinate-plot-DqFj8hbo.js} +8 -8
  56. package/dist/{vue-ui-quadrant-Bde3xKLu.js → vue-ui-quadrant-Cg5e73ny.js} +8 -8
  57. package/dist/{vue-ui-quick-chart-BpHyBn7x.js → vue-ui-quick-chart-sABlk5nb.js} +6 -6
  58. package/dist/{vue-ui-radar-DP3ErImt.js → vue-ui-radar-DYcoGzSu.js} +8 -8
  59. package/dist/{vue-ui-rating-DCL2xb9w.js → vue-ui-rating-1eguB-TH.js} +2 -2
  60. package/dist/{vue-ui-relation-circle-COt79-GJ.js → vue-ui-relation-circle-BeWuQDkk.js} +7 -7
  61. package/dist/{vue-ui-ridgeline-Dcrii6_n.js → vue-ui-ridgeline-CG7FefqU.js} +8 -8
  62. package/dist/{vue-ui-rings-CiDYRQIj.js → vue-ui-rings-2eedFGuC.js} +8 -8
  63. package/dist/{vue-ui-scatter-D8bk6KJw.js → vue-ui-scatter-CNtgNP5j.js} +8 -8
  64. package/dist/{vue-ui-skeleton-DZN6Q2RW.js → vue-ui-skeleton-fqG3bKSz.js} +3 -3
  65. package/dist/{vue-ui-smiley-a9aOACpQ.js → vue-ui-smiley-D4bvSF9S.js} +2 -2
  66. package/dist/{vue-ui-spark-trend-D2ySMA8w.js → vue-ui-spark-trend-GML5JJxY.js} +3 -3
  67. package/dist/{vue-ui-sparkbar-CPKbBS4x.js → vue-ui-sparkbar-D1FXZyQE.js} +3 -3
  68. package/dist/{vue-ui-sparkgauge-YgppX8cI.js → vue-ui-sparkgauge-CHbbxg13.js} +3 -3
  69. package/dist/{vue-ui-sparkhistogram-BT-Pb999.js → vue-ui-sparkhistogram-BxYes64D.js} +4 -4
  70. package/dist/{vue-ui-sparkline-DE_nT4bC.js → vue-ui-sparkline-CS3F5TFN.js} +3 -3
  71. package/dist/{vue-ui-sparkstackbar-3MV7U6sR.js → vue-ui-sparkstackbar-CUSBwkUS.js} +3 -3
  72. package/dist/{vue-ui-stackbar-wfRiGYFu.js → vue-ui-stackbar-CDihyp-i.js} +9 -9
  73. package/dist/{vue-ui-strip-plot-BYDBbI0O.js → vue-ui-strip-plot-D6MFuKnN.js} +7 -7
  74. package/dist/{vue-ui-table-xG0KcrLD.js → vue-ui-table-COT59wVb.js} +4 -4
  75. package/dist/{vue-ui-table-heatmap-hOIbFD6k.js → vue-ui-table-heatmap--e8yw5yS.js} +5 -5
  76. package/dist/{vue-ui-table-sparkline-DNnOTTBh.js → vue-ui-table-sparkline-DnSLwUNN.js} +4 -4
  77. package/dist/{vue-ui-thermometer-C8kZDjnk.js → vue-ui-thermometer-ByiRARW0.js} +7 -7
  78. package/dist/{vue-ui-timer-BZxcYfbP.js → vue-ui-timer-DOQVdVN2.js} +5 -5
  79. package/dist/{vue-ui-tiremarks-D5mpDWUN.js → vue-ui-tiremarks-BFXeJQNZ.js} +6 -6
  80. package/dist/{vue-ui-treemap-RPa_dvoO.js → vue-ui-treemap-s_O9rQUT.js} +8 -8
  81. package/dist/{vue-ui-vertical-bar-OwkTXcnm.js → vue-ui-vertical-bar-Bn-m5GKU.js} +9 -9
  82. package/dist/{vue-ui-waffle-DveHx6kc.js → vue-ui-waffle-DmxaWHSw.js} +8 -8
  83. package/dist/{vue-ui-wheel-Cyk4SL64.js → vue-ui-wheel-zJ5U-h_D.js} +6 -6
  84. package/dist/{vue-ui-word-cloud-BNmS-vjj.js → vue-ui-word-cloud-BEnkOZdv.js} +6 -6
  85. package/dist/{vue-ui-world-BhB1K_eL.js → vue-ui-world-CkqoTL4V.js} +6 -6
  86. package/dist/{vue-ui-xy-CfuSMzgb.js → vue-ui-xy-Uqdl2nk-.js} +1009 -967
  87. package/dist/{vue-ui-xy-canvas-BFgpcPZ3.js → vue-ui-xy-canvas-cIU8Y1sD.js} +10 -10
  88. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
- import { useCssVars as Yo, computed as x, ref as y, onMounted as Ll, onBeforeUnmount as gl, watch as ht, onUpdated as ro, nextTick as Cl, createElementBlock as u, openBlock as n, createElementVNode as k, createCommentVNode as g, renderSlot as te, normalizeStyle as L, createVNode as ml, withDirectives as Oa, unref as h, Fragment as b, renderList as M, normalizeProps as Xt, mergeProps as Yt, normalizeClass as Ze, withKeys as co, vModelText as vo, toDisplayString as re, defineAsyncComponent as Dt, useSlots as Go, getCurrentInstance as Uo, toRefs as qo, watchEffect as ho, createBlock as ct, createSlots as fo, withCtx as we, guardReactiveProps as dl, Teleport as Zo, resolveDynamicComponent as Ko, vModelCheckbox as Jo, createTextVNode as mo } from "vue";
2
- import { c as ga, y as xa, X as Qo, F as dt, $ as ba, V as ya, a0 as pa, U as ka, a1 as go, u as jo, f as Na, t as en, d as tn, D as Kl, af as hl, e as xo, p as bo, ag as ha, ac as j, a7 as Pa, ah as ln, h as q, ai as an, aj as yo, ak as po, k as ze, al as on, z as nn, _ as ko, R as wt, i as lt, x as fl, s as vt, aa as ie, L as un, am as fa, I as sn, an as Wt, C as qe, a as rn, b as cn, o as wo, v as vn, w as dn, E as Ml } from "./index-BS0jZusk.js";
1
+ import { useCssVars as Yo, computed as x, ref as y, onMounted as Ll, onBeforeUnmount as gl, watch as ht, onUpdated as ho, nextTick as Cl, createElementBlock as u, openBlock as n, createElementVNode as k, createCommentVNode as g, renderSlot as te, normalizeStyle as C, createVNode as ml, withDirectives as Oa, unref as h, Fragment as b, renderList as L, normalizeProps as Yt, mergeProps as Gt, normalizeClass as Ze, withKeys as fo, vModelText as mo, toDisplayString as re, defineAsyncComponent as Wt, useSlots as Go, getCurrentInstance as Uo, toRefs as qo, watchEffect as go, createBlock as ct, createSlots as xo, withCtx as we, guardReactiveProps as dl, Teleport as Zo, resolveDynamicComponent as Ko, vModelCheckbox as Jo, createTextVNode as bo } from "vue";
2
+ import { c as xa, y as ba, X as Qo, F as dt, $ as ya, V as pa, a0 as ka, U as wa, a1 as yo, u as jo, f as Na, t as en, d as tn, D as Kl, af as hl, e as po, p as ko, ag as fa, ac as j, a7 as Pa, ah as ln, h as q, ai as an, aj as wo, ak as So, k as ze, al as on, z as nn, _ as $o, R as wt, i as lt, x as fl, s as vt, aa as ie, L as un, am as ma, I as sn, an as Xt, C as qe, a as rn, b as cn, o as _o, v as vn, w as dn, E as Ml } from "./index-Lg17rmB1.js";
3
3
  import { t as Jl, d as hn, u as fn } from "./useResponsive-DfdjqQps.js";
4
- import { u as mn } from "./usePrinter-CsKq2kgt.js";
4
+ import { u as mn } from "./usePrinter-DGI4Mlad.js";
5
5
  import { u as gn, B as xn } from "./BaseScanner-BgWxam9d.js";
6
- import { u as So, a as bn, l as yn } from "./useTimeLabels-BGFjWgrv.js";
7
- import { u as Fa } from "./useNestedProp-BMfS1Wmb.js";
6
+ import { u as Mo, a as bn, l as yn } from "./useTimeLabels-BGFjWgrv.js";
7
+ import { u as Fa } from "./useNestedProp-DpwLJMsW.js";
8
8
  import { u as pn } from "./useTimeLabelCollider-CIsgDrl9.js";
9
- import kn from "./img-CRdZ0dzP.js";
10
- import wn from "./Title-DRhv9bCG.js";
11
- import { _ as ma } from "./Shape-CziAQ1KL.js";
12
- import Sn from "./BaseIcon-Dj9csjZa.js";
13
- import { _ as $o } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- import $n from "./vue-ui-accordion-CEzzDwYU.js";
9
+ import kn from "./img-CeCjiMpr.js";
10
+ import wn from "./Title-BVMfF0uu.js";
11
+ import { _ as ga } from "./Shape-6PexQroB.js";
12
+ import Sn from "./BaseIcon-7s-tCFcQ.js";
13
+ import { _ as Lo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ import $n from "./vue-ui-accordion-BJG-ogQj.js";
15
15
  const _n = {
16
16
  class: "vue-data-ui-slicer-labels",
17
17
  style: { position: "relative", "z-index": "1", "pointer-events": "none" }
@@ -188,30 +188,30 @@ const _n = {
188
188
  }
189
189
  },
190
190
  emits: ["futureStart", "futureEnd", "update:start", "update:end", "reset", "trapMouse"],
191
- setup(S, { expose: wa, emit: Sa }) {
191
+ setup($, { expose: Sa, emit: $a }) {
192
192
  Yo((v) => ({
193
- "7bb0ba06": Il.value,
194
- "5a1d2b71": ne.value,
195
- b078bfbc: mt.value,
196
- "3a526ca1": S.selectColor,
197
- "9964c2a2": Nl.value
193
+ "2a038cf8": Il.value,
194
+ "7c0dd528": ne.value,
195
+ "2dee3c46": mt.value,
196
+ bba352c8: $.selectColor,
197
+ d243d9ac: Nl.value
198
198
  }));
199
- const d = S, Me = y(null), he = y(d.min), ge = y(d.max), fe = x(() => !!d.minimap.length), Al = y(ga()), St = y(!1), It = x(() => fe.value && d.minimapCompact), zl = y(0), Gt = Jl((v) => Le("futureStart", v), 0), xl = Jl((v) => Le("futureEnd", v), 0), Ut = x({
200
- get: () => he.value,
199
+ const d = $, Le = y(null), ce = y(d.min), fe = y(d.max), me = x(() => !!d.minimap.length), Al = y(xa()), St = y(!1), Nt = x(() => me.value && d.minimapCompact), zl = y(0), Ut = Jl((v) => Ce("futureStart", v), 0), xl = Jl((v) => Ce("futureEnd", v), 0), qt = x({
200
+ get: () => ce.value,
201
201
  set(v) {
202
- const m = Math.min(v, ge.value - 1);
203
- m !== he.value && (he.value = m, el.value && (el.value.value = String(m)), d.immediate ? Le("update:start", Number(m)) : St.value && Gt(m));
202
+ const m = Math.min(v, fe.value - 1);
203
+ m !== ce.value && (ce.value = m, Mt.value && (Mt.value.value = String(m)), d.immediate ? Ce("update:start", Number(m)) : St.value && Ut(m));
204
204
  }
205
205
  }), $t = x({
206
- get: () => ge.value,
206
+ get: () => fe.value,
207
207
  set(v) {
208
- const m = Math.max(v, he.value + 1);
209
- m !== ge.value && (ge.value = m, t.value && (t.value.value = String(m)), d.immediate ? Le("update:end", Number(m)) : St.value && xl(m));
208
+ const m = Math.max(v, ce.value + 1);
209
+ m !== fe.value && (fe.value = m, t.value && (t.value.value = String(m)), d.immediate ? Ce("update:end", Number(m)) : St.value && xl(m));
210
210
  }
211
211
  });
212
212
  Ll(() => {
213
213
  const v = () => {
214
- Me.value && (zl.value = Me.value.getBoundingClientRect().width);
214
+ Le.value && (zl.value = Le.value.getBoundingClientRect().width);
215
215
  };
216
216
  v();
217
217
  const m = Jl(v, 50);
@@ -221,41 +221,41 @@ const _n = {
221
221
  });
222
222
  let Be = null;
223
223
  function Te() {
224
- clearTimeout(Be), d.immediate || (Le("update:start", Number(he.value)), Le("update:end", Number(ge.value))), St.value = !1;
224
+ clearTimeout(Be), d.immediate || (Ce("update:start", Number(ce.value)), Ce("update:end", Number(fe.value))), St.value = !1;
225
225
  }
226
- const Ke = x(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint), Le = Sa, ft = x(() => {
227
- if (It.value) {
226
+ const Ke = x(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint), Ce = $a, ft = x(() => {
227
+ if (Nt.value) {
228
228
  const m = Math.max(1, at.value - 1);
229
- return Nt.value / m * 100;
229
+ return Pt.value / m * 100;
230
230
  }
231
231
  const v = Math.max(1, d.max - d.min);
232
- return (he.value - d.min) / v * 100;
232
+ return (ce.value - d.min) / v * 100;
233
233
  }), _t = x(() => {
234
- if (It.value) {
234
+ if (Nt.value) {
235
235
  const m = Math.max(1, at.value - 1);
236
- return jt.value / m * 100;
236
+ return el.value / m * 100;
237
237
  }
238
238
  const v = Math.max(1, d.max - d.min);
239
- return (ge.value - d.min) / v * 100;
240
- }), Tl = x(() => (ft.value + _t.value) / 2), qt = x(() => {
241
- if (!Me.value) return !1;
239
+ return (fe.value - d.min) / v * 100;
240
+ }), Tl = x(() => (ft.value + _t.value) / 2), Zt = x(() => {
241
+ if (!Le.value) return !1;
242
242
  const v = Math.max(1, d.max - d.min);
243
- return Me.value.getBoundingClientRect().width * ((he.value - d.min) / v) - pl.value / 2 < 0;
244
- }), Zt = x(() => {
245
- if (!Me.value) return !1;
246
- const v = Math.max(1, d.max - d.min), m = Me.value.getBoundingClientRect().width;
247
- return m * ((ge.value - d.min) / v) + c.value / 2 > m;
243
+ return Le.value.getBoundingClientRect().width * ((ce.value - d.min) / v) - pl.value / 2 < 0;
244
+ }), Kt = x(() => {
245
+ if (!Le.value) return !1;
246
+ const v = Math.max(1, d.max - d.min), m = Le.value.getBoundingClientRect().width;
247
+ return m * ((fe.value - d.min) / v) + c.value / 2 > m;
248
248
  }), Se = x(() => {
249
- const v = Zt.value ? `calc(${Tl.value}% - ${Vt.value.width}px - 2px)` : qt.value ? `calc(${Tl.value}% - 8px)` : `calc(${Tl.value}% - ${Vt.value.width / 2}px - 4px)`;
249
+ const v = Kt.value ? `calc(${Tl.value}% - ${Bt.value.width}px - 2px)` : Zt.value ? `calc(${Tl.value}% - 8px)` : `calc(${Tl.value}% - ${Bt.value.width / 2}px - 4px)`;
250
250
  return {
251
251
  left: `${ft.value}%`,
252
252
  width: `${Math.max(0, _t.value - ft.value)}%`,
253
253
  background: d.selectColor,
254
- tooltipLeft: `calc(${ft.value}% - ${qt.value ? 9 : pl.value / 2 + 3.5}px)`,
255
- tooltipRight: `calc(${_t.value}% - ${Zt.value ? c.value - 9 : c.value / 2 - 3.5}px)`,
254
+ tooltipLeft: `calc(${ft.value}% - ${Zt.value ? 9 : pl.value / 2 + 3.5}px)`,
255
+ tooltipRight: `calc(${_t.value}% - ${Kt.value ? c.value - 9 : c.value / 2 - 3.5}px)`,
256
256
  tooltipCenter: v,
257
- arrowLeft: !qt.value,
258
- arrowRight: !Zt.value
257
+ arrowLeft: !Zt.value,
258
+ arrowRight: !Kt.value
259
259
  };
260
260
  }), Il = x(() => d.inputColor), Nl = x(() => d.background), mt = x(() => `${d.selectColor}33`), ne = x(() => d.borderColor), Ql = x(() => {
261
261
  let v = [];
@@ -263,32 +263,32 @@ const _n = {
263
263
  v.push(m);
264
264
  return v;
265
265
  });
266
- function V() {
267
- Le("reset");
266
+ function E() {
267
+ Ce("reset");
268
268
  }
269
269
  ht(
270
270
  () => d.min,
271
271
  (v) => {
272
- Number(he.value) < Number(v) && (he.value = Number(v)), Number(ge.value) < Number(v) && (ge.value = Number(v));
272
+ Number(ce.value) < Number(v) && (ce.value = Number(v)), Number(fe.value) < Number(v) && (fe.value = Number(v));
273
273
  }
274
274
  ), ht(
275
275
  () => d.max,
276
276
  (v) => {
277
- Number(he.value) > Number(v) && (he.value = Number(v)), Number(ge.value) > Number(v) && (ge.value = Number(v));
277
+ Number(ce.value) > Number(v) && (ce.value = Number(v)), Number(fe.value) > Number(v) && (fe.value = Number(v));
278
278
  }
279
279
  );
280
- const Kt = y(null), D = y({
280
+ const Jt = y(null), W = y({
281
281
  width: 1,
282
282
  height: 1
283
283
  }), le = y(null);
284
284
  Ll(() => {
285
- if (fe.value) {
285
+ if (me.value) {
286
286
  const v = Jl(() => {
287
- if (!Kt.value) return;
288
- const { width: m, height: f } = fn({ chart: Kt.value }), A = Math.max(0, Math.round(m)), z = Math.max(0, Math.round(f - 47));
289
- (A !== D.value.width || z !== D.value.height) && (D.value.width = A, D.value.height = z);
287
+ if (!Jt.value) return;
288
+ const { width: m, height: f } = fn({ chart: Jt.value }), _ = Math.max(0, Math.round(m)), z = Math.max(0, Math.round(f - 47));
289
+ (_ !== W.value.width || z !== W.value.height) && (W.value.width = _, W.value.height = z);
290
290
  }, 50);
291
- le.value = new ResizeObserver(v), le.value.observe(Kt.value);
291
+ le.value = new ResizeObserver(v), le.value.observe(Jt.value);
292
292
  }
293
293
  }), gl(() => {
294
294
  le.value && le.value.disconnect();
@@ -298,18 +298,18 @@ const _n = {
298
298
  const m = Math.floor(v - d.min);
299
299
  return Math.min(Math.max(0, m), at.value);
300
300
  }
301
- function Jt(v) {
301
+ function Qt(v) {
302
302
  const m = Math.ceil(v - d.min);
303
303
  return Math.min(Math.max(0, m), at.value);
304
304
  }
305
- const Ee = x(() => jl(he.value)), Pe = x(() => Jt(ge.value)), bl = x(() => Math.max(...d.allMinimaps.map((v) => v.series.length))), ae = x(() => {
305
+ const Ee = x(() => jl(ce.value)), Pe = x(() => Qt(fe.value)), bl = x(() => Math.max(...d.allMinimaps.map((v) => v.series.length))), ae = x(() => {
306
306
  if (!d.minimap.length) return 0;
307
307
  const v = Math.max(1, bl.value - (d.minimapCompact ? 1 : 0));
308
- return D.value.width / v;
309
- }), ce = x(() => d.allMinimaps.length ? d.allMinimaps.filter((v) => v.type === "bar").length : 0), Z = x(() => ae.value / (ce.value || 1) * 0.8);
308
+ return W.value.width / v;
309
+ }), ve = x(() => d.allMinimaps.length ? d.allMinimaps.filter((v) => v.type === "bar").length : 0), Z = x(() => ae.value / (ve.value || 1) * 0.8);
310
310
  function Pl(v, m, f) {
311
- const A = Z.value, z = Math.max(1, ce.value), E = bl.value - 1;
312
- return f === 0 ? v + A / 2 * m : f === E ? v - A / 2 * (z - m) : v - z * A / 2 + m * A;
311
+ const _ = Z.value, z = Math.max(1, ve.value), D = bl.value - 1;
312
+ return f === 0 ? v + _ / 2 * m : f === D ? v - _ / 2 * (z - m) : v - z * _ / 2 + m * _;
313
313
  }
314
314
  function Fl(v, m) {
315
315
  return [0, bl.value - 1].includes(m) ? Z.value / 2 : Z.value;
@@ -320,30 +320,30 @@ const _n = {
320
320
  for (const m of d.allMinimaps)
321
321
  m?.isVisible && Array.isArray(m?.series) && v.push(...m.series.filter(Number.isFinite));
322
322
  return v.length ? { min: Math.min(...v), max: Math.max(...v) } : { min: 0, max: 1 };
323
- }), He = x(() => Rl.value.min), gt = x(() => Rl.value.max), W = x(() => He.value < 0 && gt.value > 0 || gt.value <= 0 ? He.value : 0), ea = x(() => Math.max(1e-9, Math.max(Math.abs(He.value), Math.abs(gt.value)))), Ol = x(() => He.value < 0 && gt.value > 0), yl = (v) => {
324
- const m = Math.max(1, D.value.height);
323
+ }), He = x(() => Rl.value.min), gt = x(() => Rl.value.max), X = x(() => He.value < 0 && gt.value > 0 || gt.value <= 0 ? He.value : 0), ea = x(() => Math.max(1e-9, Math.max(Math.abs(He.value), Math.abs(gt.value)))), Ol = x(() => He.value < 0 && gt.value > 0), yl = (v) => {
324
+ const m = Math.max(1, W.value.height);
325
325
  if (Ol.value) {
326
326
  const f = ea.value;
327
327
  return (1 - (Math.max(-1, Math.min(1, v / f)) + 1) / 2) * m;
328
328
  } else {
329
- const f = Math.min(0, He.value), A = Math.max(0, gt.value);
330
- return m - (v - f) / Math.max(1e-9, A - f) * m;
329
+ const f = Math.min(0, He.value), _ = Math.max(0, gt.value);
330
+ return m - (v - f) / Math.max(1e-9, _ - f) * m;
331
331
  }
332
- }, Ce = x(() => yl(0));
332
+ }, $e = x(() => yl(0));
333
333
  function ot(v, m, f) {
334
- const A = (E, ke, $) => Math.max(ke, Math.min($, E));
334
+ const _ = (D, ke, S) => Math.max(ke, Math.min(S, D));
335
335
  if (m <= 0) {
336
- const E = Math.max(1e-9, 0 - v);
337
- return (ke) => f - (ke - v) / E * f;
336
+ const D = Math.max(1e-9, 0 - v);
337
+ return (ke) => f - (ke - v) / D * f;
338
338
  } else if (v >= 0) {
339
- const E = Math.max(1e-9, m - 0);
340
- return (ke) => f - (ke - 0) / E * f;
339
+ const D = Math.max(1e-9, m - 0);
340
+ return (ke) => f - (ke - 0) / D * f;
341
341
  } else {
342
- const E = Math.max(1e-9, Math.max(Math.abs(v), Math.abs(m)));
343
- return (ke) => (1 - (A(ke / E, -1, 1) + 1) / 2) * f;
342
+ const D = Math.max(1e-9, Math.max(Math.abs(v), Math.abs(m)));
343
+ return (ke) => (1 - (_(ke / D, -1, 1) + 1) / 2) * f;
344
344
  }
345
345
  }
346
- function Qt(v, m = !1) {
346
+ function jt(v, m = !1) {
347
347
  if (!v || !v.length)
348
348
  return {
349
349
  fullSet: "",
@@ -357,64 +357,78 @@ const _n = {
357
357
  fullMarkers: [],
358
358
  selectionMarkers: []
359
359
  };
360
- const f = Math.max(1, D.value.height), A = ot(He.value, gt.value, f), z = v.length, E = Math.min(Math.max(0, Ee.value), Math.max(0, z - 1)), ke = Math.min(z, Math.max(E + 1, Pe.value)), $ = v.map((_e, il) => {
361
- const At = d.cutNullValues ? _e : _e === null ? 0 : _e, na = Number.isFinite(At), Ma = ae.value * il + (d.minimapCompact ? 0 : ae.value / 2), La = A(0);
360
+ const f = Math.max(1, W.value.height), _ = ot(He.value, gt.value, f), z = v.length, D = Math.min(Math.max(0, Ee.value), Math.max(0, z - 1)), ke = Math.min(z, Math.max(D + 1, Pe.value)), S = v.map((Me, il) => {
361
+ const zt = d.cutNullValues ? Me : Me === null ? 0 : Me, na = Number.isFinite(zt), La = ae.value * il + (d.minimapCompact ? 0 : ae.value / 2), Ca = _(0);
362
362
  return {
363
- x: Ma,
364
- y: na ? A(At) : NaN,
365
- v: At,
366
- value: na ? At : null,
367
- y0: La,
363
+ x: La,
364
+ y: na ? _(zt) : NaN,
365
+ v: zt,
366
+ value: na ? zt : null,
367
+ y0: Ca,
368
368
  i: il
369
369
  };
370
- }), wl = (_e) => _e >= 0 && _e < $.length && Number.isFinite($[_e]?.value), st = $.filter((_e) => Number.isFinite(_e.value) && !wl(_e.i - 1) && !wl(_e.i + 1)), Bt = st.filter((_e) => _e.i >= E && _e.i < ke), Ct = $.slice(E, ke), oa = $.length >= 2 ? d.smoothMinimap || m ? d.cutNullValues ? ba($) : ya($) : d.cutNullValues ? pa($) : ka($) : "", ul = Ct.length >= 2 ? d.smoothMinimap || m ? d.cutNullValues ? ba(Ct) : ya(Ct) : d.cutNullValues ? pa(Ct) : ka(Ct) : "";
370
+ }), wl = (Me) => Me >= 0 && Me < S.length && Number.isFinite(S[Me]?.value), st = S.filter((Me) => Number.isFinite(Me.value) && !wl(Me.i - 1) && !wl(Me.i + 1)), Et = st.filter((Me) => Me.i >= D && Me.i < ke), At = S.slice(D, ke), oa = S.length >= 2 ? d.smoothMinimap || m ? d.cutNullValues ? ya(S) : pa(S) : d.cutNullValues ? ka(S) : wa(S) : "", ul = At.length >= 2 ? d.smoothMinimap || m ? d.cutNullValues ? ya(At) : pa(At) : d.cutNullValues ? ka(At) : wa(At) : "";
371
371
  return {
372
372
  fullSet: oa,
373
- points: $,
373
+ points: S,
374
374
  selectionSet: ul,
375
- sliced: Ct,
376
- firstPlot: $[E] || null,
377
- lastPlot: $[Math.max(0, ke - 1)] || null,
378
- hasFull: $.length >= 2,
379
- hasSelection: Ct.length >= 2,
375
+ sliced: At,
376
+ firstPlot: S[D] || null,
377
+ lastPlot: S[Math.max(0, ke - 1)] || null,
378
+ hasFull: S.length >= 2,
379
+ hasSelection: At.length >= 2,
380
380
  fullMarkers: st,
381
- selectionMarkers: Bt
381
+ selectionMarkers: Et
382
382
  };
383
383
  }
384
- const B = x(() => d.minimap.length ? Qt(d.minimap) : []), Je = x(() => d.allMinimaps.length ? d.allMinimaps.map((v, m) => {
385
- const f = Qt(v?.series || [], !!v.smooth), A = v?.id ?? v?.name ?? m;
384
+ const H = x(() => d.minimap.length ? jt(d.minimap) : []), Je = x(() => d.allMinimaps.length ? d.allMinimaps.map((v, m) => {
385
+ const f = jt(v?.series || [], !!v.smooth), _ = v?.id ?? v?.name ?? m;
386
386
  return {
387
- key: typeof A == "object" ? JSON.stringify(A) : String(A),
387
+ key: typeof _ == "object" ? JSON.stringify(_) : String(_),
388
388
  color: v?.color,
389
389
  ...f,
390
390
  isVisible: v.isVisible,
391
391
  type: v.type || "line"
392
392
  };
393
- }) : []), _ = x(() => {
393
+ }) : []), M = x(() => {
394
394
  const v = Ee.value, m = Math.max(v + 1, Pe.value);
395
395
  return {
396
396
  x: ae.value * v + (d.minimapCompact ? 0 : ae.value / 2),
397
397
  width: ae.value * (m - v) - ae.value
398
398
  };
399
- }), xt = y(d.minimapSelectedIndex), Vl = (v) => Math.round(d.min + v), Nt = x({
399
+ }), xt = y(d.minimapSelectedIndex), Vl = (v) => Math.round(d.min + v), Pt = x({
400
400
  get() {
401
- return It.value ? Ee.value : Ut.value;
401
+ return Nt.value ? Ee.value : Number(qt.value);
402
402
  },
403
403
  set(v) {
404
- It.value ? Mt(Vl(v)) : Mt(v);
404
+ if (Nt.value) {
405
+ const m = Math.round(+v || 0);
406
+ Lt(Vl(m));
407
+ } else {
408
+ let m = Math.round(+v || 0);
409
+ const f = Number(fe.value) - 1, _ = Math.min(Math.max(d.min, m), f);
410
+ Mt.value && (Mt.value.valueAsNumber = _), Lt(_);
411
+ }
405
412
  }
406
- }), jt = x({
413
+ }), el = x({
407
414
  get() {
408
- return It.value ? Math.max(Ee.value, Pe.value - 1) : $t.value;
415
+ return Nt.value ? Math.max(Ee.value, Pe.value - 1) : Number($t.value);
409
416
  },
410
417
  set(v) {
411
- It.value ? $e(Vl(v + 1)) : $e(v);
418
+ if (Nt.value) {
419
+ const m = Math.round(+v || 0);
420
+ _e(Vl(m + 1));
421
+ } else {
422
+ let m = Math.round(+v || 0);
423
+ const f = Number(ce.value) + 1, _ = Math.max(f, Math.min(m, d.max));
424
+ t.value && (t.value.valueAsNumber = _), _e(_);
425
+ }
412
426
  }
413
427
  });
414
- function C(v) {
428
+ function A(v) {
415
429
  xt.value = jl(d.valueStart) + v;
416
430
  }
417
- const De = hn(C, 60);
431
+ const De = hn(A, 60);
418
432
  ht(() => d.minimapSelectedIndex, (v, m) => {
419
433
  if ([null, void 0].includes(v)) {
420
434
  xt.value = null;
@@ -425,27 +439,27 @@ const _n = {
425
439
  function Bl(v) {
426
440
  xt.value = v;
427
441
  const m = Ee.value, f = Pe.value;
428
- v >= m && v < f && !tt.value && Le("trapMouse", v - m);
442
+ v >= m && v < f && !tt.value && Ce("trapMouse", v - m);
429
443
  }
430
- const el = y(null), t = y(null);
444
+ const Mt = y(null), t = y(null);
431
445
  function p(v) {
432
446
  if (typeof v == "object" && v && "target" in v) {
433
- const f = v.target, A = "valueAsNumber" in f ? f.valueAsNumber : +f.value;
434
- return Number.isFinite(A) ? A : NaN;
447
+ const f = v.target, _ = "valueAsNumber" in f ? f.valueAsNumber : +f.value;
448
+ return Number.isFinite(_) ? _ : NaN;
435
449
  }
436
450
  const m = +v;
437
451
  return Number.isFinite(m) ? m : NaN;
438
452
  }
439
453
  let tl = 0;
440
- function Mt(v) {
454
+ function Lt(v) {
441
455
  St.value = !0;
442
456
  const m = p(v);
443
457
  Number.isFinite(m) && (cancelAnimationFrame(tl), tl = requestAnimationFrame(() => {
444
- Ut.value = m;
458
+ qt.value = m;
445
459
  }));
446
460
  }
447
461
  let xe = 0;
448
- function $e(v) {
462
+ function _e(v) {
449
463
  St.value = !0;
450
464
  const m = p(v);
451
465
  Number.isFinite(m) && (cancelAnimationFrame(xe), xe = requestAnimationFrame(() => {
@@ -455,52 +469,52 @@ const _n = {
455
469
  gl(() => {
456
470
  cancelAnimationFrame(tl), cancelAnimationFrame(xe);
457
471
  });
458
- const bt = x(() => d.valueEnd - d.valueStart), $a = x(() => bt.value < d.max - d.min), Pt = y(!1);
472
+ const bt = x(() => d.valueEnd - d.valueStart), _a = x(() => bt.value < d.max - d.min), Ft = y(!1);
459
473
  let yt = y(null);
460
- const Qe = x(() => (zl.value - 48) / (d.max - d.min) * bt.value), w = x(() => Math.max(1, zl.value - Ra - Qe.value)), We = x(() => Math.max(1, d.max - d.min - bt.value)), ta = x(() => We.value / w.value), El = y(0), Lt = y(0), _a = y(0), Hl = y(0);
474
+ const Qe = x(() => (zl.value - 48) / (d.max - d.min) * bt.value), w = x(() => Math.max(1, zl.value - Ra - Qe.value)), We = x(() => Math.max(1, d.max - d.min - bt.value)), ta = x(() => We.value / w.value), El = y(0), Ct = y(0), Ma = y(0), Hl = y(0);
461
475
  let nt = null, ut = null, it = null, pt = null;
462
476
  const ll = y(d.min);
463
- function Ft(v) {
464
- if (!Me.value) return d.min;
465
- const m = Me.value.getBoundingClientRect(), f = m.left + Ra / 2, A = m.right - Ra / 2, z = Math.max(1, A - f), ke = (Math.max(f, Math.min(v, A)) - f) / z, $ = Math.max(1, d.max - d.min);
466
- return Math.round(d.min + ke * $);
477
+ function Rt(v) {
478
+ if (!Le.value) return d.min;
479
+ const m = Le.value.getBoundingClientRect(), f = m.left + Ra / 2, _ = m.right - Ra / 2, z = Math.max(1, _ - f), ke = (Math.max(f, Math.min(v, _)) - f) / z, S = Math.max(1, d.max - d.min);
480
+ return Math.round(d.min + ke * S);
467
481
  }
468
482
  const al = async (v) => {
469
- if (St.value = !0, Ot.value = !0, !d.enableSelectionDrag) return;
483
+ if (St.value = !0, Vt.value = !0, !d.enableSelectionDrag) return;
470
484
  const m = v.type === "touchstart";
471
485
  m || v.stopPropagation();
472
- const f = m && v.targetTouches && v.targetTouches[0] ? v.targetTouches[0] : null, A = m ? f ? f.target : null : v.target;
473
- if (!A || !(A instanceof Element) || A.classList && A.classList.contains("range-handle")) return;
474
- Pt.value = !0;
486
+ const f = m && v.targetTouches && v.targetTouches[0] ? v.targetTouches[0] : null, _ = m ? f ? f.target : null : v.target;
487
+ if (!_ || !(_ instanceof Element) || _.classList && _.classList.contains("range-handle")) return;
488
+ Ft.value = !0;
475
489
  const z = m ? f ? f.clientX : 0 : v.clientX;
476
- if (yt.value = z, El.value = z, d.focusOnDrag && !$a.value && Me.value) {
477
- ll.value = Ft(z);
478
- const E = Math.min(0.95, Math.max(0.05, d.focusRangeRatio)), ke = d.max - d.min, $ = Math.max(1, Math.round(ke * E)), wl = Math.floor($ / 2);
490
+ if (yt.value = z, El.value = z, d.focusOnDrag && !_a.value && Le.value) {
491
+ ll.value = Rt(z);
492
+ const D = Math.min(0.95, Math.max(0.05, d.focusRangeRatio)), ke = d.max - d.min, S = Math.max(1, Math.round(ke * D)), wl = Math.floor(S / 2);
479
493
  let st = ll.value - wl;
480
- st = Math.max(d.min, Math.min(st, d.max - $));
481
- const Bt = Math.min(d.max, st + $);
482
- Ut.value = st, $t.value = Bt, Gt(st), xl(Bt), go(Me.value, "mouseup"), await Cl(), go(Me.value, "mousedown", { clientX: z });
494
+ st = Math.max(d.min, Math.min(st, d.max - S));
495
+ const Et = Math.min(d.max, st + S);
496
+ qt.value = st, $t.value = Et, Ut(st), xl(Et), yo(Le.value, "mouseup"), await Cl(), yo(Le.value, "mousedown", { clientX: z });
483
497
  }
484
- Lt.value = he.value, _a.value = ge.value, Hl.value = ta.value, nt = m ? "touchmove" : "mousemove", ut = m ? "touchend" : "mouseup", it = m ? ol : Xe, pt = m ? Fe : et, window.addEventListener(nt, it, { passive: !1 }), window.addEventListener(ut, pt);
498
+ Ct.value = ce.value, Ma.value = fe.value, Hl.value = ta.value, nt = m ? "touchmove" : "mousemove", ut = m ? "touchend" : "mouseup", it = m ? ol : Xe, pt = m ? Fe : et, window.addEventListener(nt, it, { passive: !1 }), window.addEventListener(ut, pt);
485
499
  };
486
500
  function Xe(v) {
487
- Pt.value && je(v.clientX);
501
+ Ft.value && je(v.clientX);
488
502
  }
489
503
  function ol(v) {
490
- if (!Pt.value || !Me.value) return;
504
+ if (!Ft.value || !Le.value) return;
491
505
  const m = v.target;
492
- if (!(m instanceof Element) || !Me.value.contains(m) || m.classList && m.classList.contains("range-handle")) return;
506
+ if (!(m instanceof Element) || !Le.value.contains(m) || m.classList && m.classList.contains("range-handle")) return;
493
507
  v.preventDefault();
494
508
  const f = v.targetTouches && v.targetTouches[0] ? v.targetTouches[0] : null;
495
509
  f && je(f.clientX);
496
510
  }
497
511
  function je(v) {
498
- if (!Pt.value) return;
499
- const m = Ft(El.value), A = Ft(v) - m;
500
- let z = Math.round(Lt.value + A);
512
+ if (!Ft.value) return;
513
+ const m = Rt(El.value), _ = Rt(v) - m;
514
+ let z = Math.round(Ct.value + _);
501
515
  z = Math.max(d.min, Math.min(z, d.max - bt.value));
502
- const E = z + bt.value;
503
- Ut.value = z, $t.value = E, Gt(z), xl(E);
516
+ const D = z + bt.value;
517
+ qt.value = z, $t.value = D, Ut(z), xl(D);
504
518
  }
505
519
  function et() {
506
520
  la();
@@ -509,9 +523,9 @@ const _n = {
509
523
  la();
510
524
  }
511
525
  function la() {
512
- Pt.value = !1, nt && it && window.removeEventListener(nt, it), ut && pt && window.removeEventListener(ut, pt), nt = ut = null, it = pt = null, Te();
526
+ Ft.value = !1, nt && it && window.removeEventListener(nt, it), ut && pt && window.removeEventListener(ut, pt), nt = ut = null, it = pt = null, Te();
513
527
  }
514
- const tt = y(!1), nl = y(null), Rt = y(null), pl = y(1), c = y(1), Ot = y(!1);
528
+ const tt = y(!1), nl = y(null), Ot = y(null), pl = y(1), c = y(1), Vt = y(!1);
515
529
  function Dl() {
516
530
  if (nl.value) {
517
531
  const v = Math.round(nl.value.getBoundingClientRect().width);
@@ -519,61 +533,61 @@ const _n = {
519
533
  }
520
534
  }
521
535
  function kl() {
522
- if (Rt.value) {
523
- const v = Math.round(Rt.value.getBoundingClientRect().width);
536
+ if (Ot.value) {
537
+ const v = Math.round(Ot.value.getBoundingClientRect().width);
524
538
  v !== c.value && (c.value = v);
525
539
  }
526
540
  }
527
- ro(() => {
541
+ ho(() => {
528
542
  Dl(), kl();
529
543
  });
530
544
  const aa = y(0);
531
545
  function Wl(v) {
532
546
  aa.value = v === "start" ? 1 : 0;
533
547
  }
534
- const kt = y(!1), Vt = y({
548
+ const kt = y(!1), Bt = y({
535
549
  width: 0,
536
550
  left: 0
537
551
  });
538
- ht([he, ge], async () => {
539
- if (await Cl(), !nl.value || !Rt.value) {
540
- kt.value = !1, Vt.value = { width: 0, left: 0 };
552
+ ht([ce, fe], async () => {
553
+ if (await Cl(), !nl.value || !Ot.value) {
554
+ kt.value = !1, Bt.value = { width: 0, left: 0 };
541
555
  return;
542
556
  }
543
- const v = nl.value.getBoundingClientRect(), m = Rt.value.getBoundingClientRect();
557
+ const v = nl.value.getBoundingClientRect(), m = Ot.value.getBoundingClientRect();
544
558
  kt.value = v.x + v.width > m.x;
545
- const f = v.x + v.width / 2, A = m.x + m.width / 2, z = v.width + m.width, E = (f + A) / 2;
546
- Vt.value = {
559
+ const f = v.x + v.width / 2, _ = m.x + m.width / 2, z = v.width + m.width, D = (f + _) / 2;
560
+ Bt.value = {
547
561
  width: z,
548
- left: E - z / 2
562
+ left: D - z / 2
549
563
  };
550
- }), ro(() => {
564
+ }), ho(() => {
551
565
  Dl(), kl();
552
566
  }), ht(() => d.labelLeft, () => {
553
567
  Cl(Dl);
554
568
  }, { deep: !0 }), ht(() => d.labelRight, () => {
555
569
  Cl(kl);
556
570
  }, { deep: !0 });
557
- const me = x(() => {
571
+ const ge = x(() => {
558
572
  let v = "", m = "", f = !1;
559
- if (xa(d.customFormat))
573
+ if (ba(d.customFormat))
560
574
  try {
561
- const A = d.customFormat({
562
- absoluteIndex: he.value,
563
- seriesIndex: he.value,
575
+ const _ = d.customFormat({
576
+ absoluteIndex: ce.value,
577
+ seriesIndex: ce.value,
564
578
  datapoint: d.selectedSeries
565
579
  }), z = d.customFormat({
566
- absoluteIndex: ge.value - 1,
580
+ absoluteIndex: fe.value - 1,
567
581
  seriesIndex: -1,
568
582
  datapoint: d.selectedSeries
569
583
  });
570
- typeof A == "string" && typeof z == "string" && (v = A, m = z, f = !0);
584
+ typeof _ == "string" && typeof z == "string" && (v = _, m = z, f = !0);
571
585
  } catch {
572
586
  f = !1;
573
587
  }
574
588
  if (!f) {
575
- const A = d.usePreciseLabels ? d.preciseLabels.find((E) => E.absoluteIndex === he.value) : d.timeLabels.find((E) => E.absoluteIndex === he.value), z = d.usePreciseLabels ? d.preciseLabels.find((E) => E.absoluteIndex === ge.value - 1) : d.timeLabels.find((E) => E.absoluteIndex === ge.value - 1);
576
- v = A ? A.text : "", m = z ? z.text : "";
589
+ const _ = d.usePreciseLabels ? d.preciseLabels.find((D) => D.absoluteIndex === ce.value) : d.timeLabels.find((D) => D.absoluteIndex === ce.value), z = d.usePreciseLabels ? d.preciseLabels.find((D) => D.absoluteIndex === fe.value - 1) : d.timeLabels.find((D) => D.absoluteIndex === fe.value - 1);
590
+ v = _ ? _.text : "", m = z ? z.text : "";
577
591
  }
578
592
  return { left: v, right: m };
579
593
  });
@@ -588,7 +602,7 @@ const _n = {
588
602
  x1: ae.value * v + (d.minimapCompact ? 0 : ae.value / 2),
589
603
  x2: ae.value * v + (d.minimapCompact ? 0 : ae.value / 2),
590
604
  y1: 0,
591
- y2: Math.max(D.value.height, 0),
605
+ y2: Math.max(W.value.height, 0),
592
606
  stroke: d.minimapIndicatorColor,
593
607
  "stroke-linecap": "round",
594
608
  "stroke-dasharray": 2,
@@ -597,37 +611,37 @@ const _n = {
597
611
  } else
598
612
  return null;
599
613
  });
600
- return wa({
601
- setStartValue: Mt,
602
- setEndValue: $e
614
+ return Sa({
615
+ setStartValue: Lt,
616
+ setEndValue: _e
603
617
  }), (v, m) => (n(), u("div", {
604
618
  "data-dom-to-png-ignore": "",
605
619
  style: { padding: "0 24px" },
606
620
  class: "vue-data-ui-zoom",
607
621
  ref_key: "zoomWrapper",
608
- ref: Me,
622
+ ref: Le,
609
623
  onMousedown: al,
610
624
  onTouchstart: al
611
625
  }, [
612
626
  k("div", _n, [
613
- S.valueStart !== S.refreshStartPoint || S.valueEnd !== Ke.value ? (n(), u("div", Mn, [
614
- S.useResetSlot ? te(v.$slots, "reset-action", {
627
+ $.valueStart !== $.refreshStartPoint || $.valueEnd !== Ke.value ? (n(), u("div", Mn, [
628
+ $.useResetSlot ? te(v.$slots, "reset-action", {
615
629
  key: 1,
616
- reset: V
630
+ reset: E
617
631
  }, void 0, !0) : (n(), u("button", {
618
632
  key: 0,
619
633
  tabindex: "0",
620
634
  role: "button",
621
635
  class: "vue-data-ui-refresh-button",
622
- style: L({
623
- top: fe.value ? "36px" : "-16px",
636
+ style: C({
637
+ top: me.value ? "36px" : "-16px",
624
638
  pointerEvents: "all !important"
625
639
  }),
626
- onClick: V
640
+ onClick: E
627
641
  }, [
628
642
  ml(Sn, {
629
643
  name: "refresh",
630
- stroke: S.textColor
644
+ stroke: $.textColor
631
645
  }, null, 8, ["stroke"])
632
646
  ], 4))
633
647
  ])) : g("", !0)
@@ -635,16 +649,16 @@ const _n = {
635
649
  k("div", {
636
650
  class: "double-range-slider",
637
651
  ref_key: "minimapWrapper",
638
- ref: Kt,
652
+ ref: Jt,
639
653
  style: { "z-index": "0" },
640
- onMouseenter: m[11] || (m[11] = (f) => Ot.value = !0),
641
- onMouseleave: m[12] || (m[12] = (f) => Ot.value = !1)
654
+ onMouseenter: m[11] || (m[11] = (f) => Vt.value = !0),
655
+ onMouseleave: m[12] || (m[12] = (f) => Vt.value = !1)
642
656
  }, [
643
- fe.value ? (n(), u("div", Ln, [
657
+ me.value ? (n(), u("div", Ln, [
644
658
  (n(), u("svg", {
645
- key: `mm-${S.minimapMerged ? "merged" : "split"}-${S.minimapCompact ? "compact" : "normal"}`,
659
+ key: `mm-${$.minimapMerged ? "merged" : "split"}-${$.minimapCompact ? "compact" : "normal"}`,
646
660
  xmlns: h(Qo),
647
- viewBox: `0 0 ${Math.max(0, D.value.width)} ${Math.max(0, D.value.height)}`
661
+ viewBox: `0 0 ${Math.max(0, W.value.width)} ${Math.max(0, W.value.height)}`
648
662
  }, [
649
663
  k("defs", null, [
650
664
  k("linearGradient", {
@@ -656,7 +670,7 @@ const _n = {
656
670
  }, [
657
671
  k("stop", {
658
672
  offset: "0%",
659
- "stop-color": `${S.minimapLineColor}50`
673
+ "stop-color": `${$.minimapLineColor}50`
660
674
  }, null, 8, zn),
661
675
  m[13] || (m[13] = k("stop", {
662
676
  offset: "100%",
@@ -664,48 +678,48 @@ const _n = {
664
678
  }, null, -1))
665
679
  ], 8, An)
666
680
  ]),
667
- S.minimapCompact ? (n(), u("rect", {
681
+ $.minimapCompact ? (n(), u("rect", {
668
682
  key: 0,
669
683
  class: "vue-ui-zoom-minimap-frame",
670
684
  x: 0,
671
685
  y: 0,
672
- width: D.value.width,
673
- height: D.value.height,
686
+ width: W.value.width,
687
+ height: W.value.height,
674
688
  fill: "none",
675
- stroke: S.minimapFrameColor,
689
+ stroke: $.minimapFrameColor,
676
690
  rx: 3
677
691
  }, null, 8, Tn)) : g("", !0),
678
- S.minimapMerged ? (n(), u("path", {
692
+ $.minimapMerged ? (n(), u("path", {
679
693
  key: 1,
680
- d: `M${B.value.fullSet}`,
681
- stroke: `${S.minimapLineColor}`,
694
+ d: `M${H.value.fullSet}`,
695
+ stroke: `${$.minimapLineColor}`,
682
696
  fill: "none",
683
697
  "stroke-width": "1",
684
698
  "stroke-linecap": "round",
685
699
  "stroke-linejoin": "round",
686
700
  style: { opacity: "0.6" }
687
701
  }, null, 8, In)) : g("", !0),
688
- S.minimapMerged && !S.minimapCompact ? (n(), u("path", {
702
+ $.minimapMerged && !$.minimapCompact ? (n(), u("path", {
689
703
  key: 2,
690
- d: `M${ae.value / 2},${Math.max(D.value.height, 0)} ${B.value.fullSet} L${D.value.width - ae.value / 2},${Math.max(D.value.height, 0)}Z`,
704
+ d: `M${ae.value / 2},${Math.max(W.value.height, 0)} ${H.value.fullSet} L${W.value.width - ae.value / 2},${Math.max(W.value.height, 0)}Z`,
691
705
  fill: `url(#${Al.value})`,
692
706
  stroke: "none",
693
707
  style: { opacity: "0.6" }
694
- }, null, 8, Nn)) : S.minimapMerged ? g("", !0) : (n(), u(b, { key: 3 }, [
695
- (n(!0), u(b, null, M(Je.value.filter((f) => f.type === "bar"), (f, A) => (n(), u("g", null, [
696
- (n(!0), u(b, null, M(f.points, (z, E) => (n(), u(b, null, [
708
+ }, null, 8, Nn)) : $.minimapMerged ? g("", !0) : (n(), u(b, { key: 3 }, [
709
+ (n(!0), u(b, null, L(Je.value.filter((f) => f.type === "bar"), (f, _) => (n(), u("g", null, [
710
+ (n(!0), u(b, null, L(f.points, (z, D) => (n(), u(b, null, [
697
711
  f.isVisible && !isNaN(z.y) ? (n(), u("rect", {
698
712
  key: 0,
699
- x: Pl(z.x, A, E),
713
+ x: Pl(z.x, _, D),
700
714
  y: z.v >= 0 ? z.y : z.y0,
701
- width: Fl(A, E),
715
+ width: Fl(_, D),
702
716
  height: z.v >= 0 ? z.y0 - z.y : z.y - z.y0,
703
717
  fill: f.color,
704
718
  style: { opacity: 0.6 }
705
719
  }, null, 8, Pn)) : g("", !0)
706
720
  ], 64))), 256))
707
721
  ]))), 256)),
708
- (n(!0), u(b, null, M(Je.value.filter((f) => f.type === "line"), (f) => (n(), u("g", null, [
722
+ (n(!0), u(b, null, L(Je.value.filter((f) => f.type === "line"), (f) => (n(), u("g", null, [
709
723
  f.isVisible ? (n(), u("path", {
710
724
  key: 0,
711
725
  d: `M ${f.fullSet}`,
@@ -713,10 +727,10 @@ const _n = {
713
727
  stroke: f.color,
714
728
  style: { opacity: "0.6" }
715
729
  }, null, 8, Fn)) : g("", !0),
716
- f.isVisible ? (n(!0), u(b, { key: 1 }, M(f.fullMarkers, (A) => (n(), u("circle", {
717
- key: `sel-dot-under-${f.key}-${A.i}`,
718
- cx: A.x,
719
- cy: A.y,
730
+ f.isVisible ? (n(!0), u(b, { key: 1 }, L(f.fullMarkers, (_) => (n(), u("circle", {
731
+ key: `sel-dot-under-${f.key}-${_.i}`,
732
+ cx: _.x,
733
+ cy: _.y,
720
734
  r: "2",
721
735
  fill: f.color,
722
736
  stroke: ne.value,
@@ -726,94 +740,94 @@ const _n = {
726
740
  ]))), 256))
727
741
  ], 64)),
728
742
  k("rect", {
729
- x: _.value.x,
743
+ x: M.value.x,
730
744
  y: 0,
731
- width: Math.max(0, _.value.width),
732
- height: Math.max(D.value.height, 0),
745
+ width: Math.max(0, M.value.width),
746
+ height: Math.max(W.value.height, 0),
733
747
  fill: ne.value,
734
- rx: S.minimapSelectionRadius,
748
+ rx: $.minimapSelectionRadius,
735
749
  stroke: "none"
736
750
  }, null, 8, On),
737
751
  k("rect", {
738
- x: _.value.x,
752
+ x: M.value.x,
739
753
  y: 0,
740
- width: _.value.width < 0 ? 0 : _.value.width,
741
- height: Math.max(D.value.height, 0),
742
- rx: S.minimapSelectionRadius,
754
+ width: M.value.width < 0 ? 0 : M.value.width,
755
+ height: Math.max(W.value.height, 0),
756
+ rx: $.minimapSelectionRadius,
743
757
  fill: ne.value,
744
- style: L({ opacity: Pt.value || St.value ? 0 : 1 })
758
+ style: C({ opacity: Ft.value || St.value ? 0 : 1 })
745
759
  }, null, 12, Vn),
746
760
  k("rect", {
747
- x: _.value.x,
761
+ x: M.value.x,
748
762
  y: 0,
749
- width: _.value.width < 0 ? 0 : _.value.width,
750
- height: Math.max(D.value.height, 0),
751
- fill: S.minimapSelectedColor,
752
- rx: S.minimapSelectionRadius,
753
- style: L({ opacity: S.minimapSelectedColorOpacity })
763
+ width: M.value.width < 0 ? 0 : M.value.width,
764
+ height: Math.max(W.value.height, 0),
765
+ fill: $.minimapSelectedColor,
766
+ rx: $.minimapSelectionRadius,
767
+ style: C({ opacity: $.minimapSelectedColorOpacity })
754
768
  }, null, 12, Bn),
755
- !S.minimapMerged && W.value < 0 ? (n(), u("line", {
769
+ !$.minimapMerged && X.value < 0 ? (n(), u("line", {
756
770
  key: 4,
757
771
  class: "slicer-minimap-zero-line",
758
772
  x1: 0,
759
- x2: D.value.width,
760
- y1: Ce.value,
761
- y2: Ce.value,
762
- stroke: S.minimapFrameColor,
773
+ x2: W.value.width,
774
+ y1: $e.value,
775
+ y2: $e.value,
776
+ stroke: $.minimapFrameColor,
763
777
  "stroke-width": "0.5"
764
778
  }, null, 8, En)) : g("", !0),
765
- S.minimapMerged ? (n(), u("g", Hn, [
766
- B.value && B.value.sliced && B.value.sliced.length ? (n(), u(b, { key: 0 }, [
767
- B.value.selectionSet ? (n(), u("path", {
779
+ $.minimapMerged ? (n(), u("g", Hn, [
780
+ H.value && H.value.sliced && H.value.sliced.length ? (n(), u(b, { key: 0 }, [
781
+ H.value.selectionSet ? (n(), u("path", {
768
782
  key: 0,
769
- d: `M${B.value.sliced[0].x},${Math.max(D.value.height, 0)} ${B.value.selectionSet} L${B.value.sliced[B.value.sliced.length - 1].x},${Math.max(D.value.height, 0)}Z`,
783
+ d: `M${H.value.sliced[0].x},${Math.max(W.value.height, 0)} ${H.value.selectionSet} L${H.value.sliced[H.value.sliced.length - 1].x},${Math.max(W.value.height, 0)}Z`,
770
784
  fill: `url(#${Al.value})`,
771
785
  stroke: "none",
772
786
  style: { opacity: "1" }
773
787
  }, null, 8, Dn)) : g("", !0),
774
- B.value.selectionSet ? (n(), u("path", {
788
+ H.value.selectionSet ? (n(), u("path", {
775
789
  key: 1,
776
- d: `M ${B.value.selectionSet}`,
777
- stroke: `${S.minimapLineColor}`,
790
+ d: `M ${H.value.selectionSet}`,
791
+ stroke: `${$.minimapLineColor}`,
778
792
  fill: "transparent",
779
793
  "stroke-width": "2",
780
794
  "stroke-linecap": "round",
781
795
  "stroke-linejoin": "round"
782
796
  }, null, 8, Wn)) : g("", !0)
783
797
  ], 64)) : g("", !0),
784
- B.value && B.value.firstPlot ? (n(), u("circle", {
798
+ H.value && H.value.firstPlot ? (n(), u("circle", {
785
799
  key: 1,
786
- cx: B.value.firstPlot.x,
787
- cy: B.value.firstPlot.y,
800
+ cx: H.value.firstPlot.x,
801
+ cy: H.value.firstPlot.y,
788
802
  "stroke-width": "0.5",
789
803
  stroke: ne.value,
790
804
  r: "3",
791
- fill: S.minimapLineColor
805
+ fill: $.minimapLineColor
792
806
  }, null, 8, Xn)) : g("", !0),
793
- B.value && B.value.lastPlot ? (n(), u("circle", {
807
+ H.value && H.value.lastPlot ? (n(), u("circle", {
794
808
  key: 2,
795
- cx: B.value.lastPlot.x,
796
- cy: B.value.lastPlot.y,
809
+ cx: H.value.lastPlot.x,
810
+ cy: H.value.lastPlot.y,
797
811
  "stroke-width": "0.5",
798
812
  stroke: ne.value,
799
813
  r: "3",
800
- fill: S.minimapLineColor
814
+ fill: $.minimapLineColor
801
815
  }, null, 8, Yn)) : g("", !0)
802
816
  ])) : (n(), u("g", Gn, [
803
- (n(!0), u(b, null, M(Je.value.filter((f) => f.type === "bar"), (f, A) => (n(), u("g", null, [
804
- (n(!0), u(b, null, M(f.points, (z, E) => (n(), u(b, null, [
817
+ (n(!0), u(b, null, L(Je.value.filter((f) => f.type === "bar"), (f, _) => (n(), u("g", null, [
818
+ (n(!0), u(b, null, L(f.points, (z, D) => (n(), u(b, null, [
805
819
  f && f.isVisible && !isNaN(z.y) ? (n(), u("rect", {
806
820
  key: 0,
807
- x: Pl(z.x, A, E),
821
+ x: Pl(z.x, _, D),
808
822
  y: z.v >= 0 ? z.y : z.y0,
809
- width: Fl(A, E),
823
+ width: Fl(_, D),
810
824
  height: z.v >= 0 ? z.y0 - z.y : z.y - z.y0,
811
825
  fill: f.color,
812
- style: L({ opacity: E >= Ut.value && E < $t.value ? 1 : 0 })
826
+ style: C({ opacity: D >= qt.value && D < $t.value ? 1 : 0 })
813
827
  }, null, 12, Un)) : g("", !0)
814
828
  ], 64))), 256))
815
829
  ]))), 256)),
816
- (n(!0), u(b, null, M(Je.value.filter((f) => f.type === "line"), (f) => (n(), u("g", {
830
+ (n(!0), u(b, null, L(Je.value.filter((f) => f.type === "line"), (f) => (n(), u("g", {
817
831
  key: String(f.key)
818
832
  }, [
819
833
  f && f.hasSelection && f.selectionSet && f.isVisible ? (n(), u("path", {
@@ -827,64 +841,64 @@ const _n = {
827
841
  }, null, 8, qn)) : g("", !0)
828
842
  ]))), 128))
829
843
  ])),
830
- fe.value && S.minimapCompact ? (n(), u("rect", {
844
+ me.value && $.minimapCompact ? (n(), u("rect", {
831
845
  key: 7,
832
846
  class: "vue-ui-zoom-compact-minimap-handle",
833
- x: _.value.x - 8,
847
+ x: M.value.x - 8,
834
848
  y: 0,
835
849
  width: 8,
836
- height: D.value.height,
850
+ height: W.value.height,
837
851
  fill: ne.value,
838
- stroke: S.textColor,
852
+ stroke: $.textColor,
839
853
  rx: 3
840
854
  }, null, 8, Zn)) : g("", !0),
841
- fe.value && S.minimapCompact ? (n(), u("rect", {
855
+ me.value && $.minimapCompact ? (n(), u("rect", {
842
856
  key: 8,
843
857
  class: "vue-ui-zoom-compact-minimap-handle",
844
- x: _.value.x + _.value.width,
858
+ x: M.value.x + M.value.width,
845
859
  y: 0,
846
860
  width: 8,
847
- height: D.value.height,
861
+ height: W.value.height,
848
862
  fill: ne.value,
849
- stroke: S.textColor,
863
+ stroke: $.textColor,
850
864
  rx: 3
851
865
  }, null, 8, Kn)) : g("", !0),
852
- xt.value !== null && !tt.value ? (n(), u("line", Xt(Yt({ key: 9 }, Xl.value)), null, 16)) : g("", !0),
853
- S.minimapMerged ? (n(), u("g", Jn, [
854
- B.value && B.value.firstPlot && B.value.firstPlot.value !== null ? (n(), u("circle", {
866
+ xt.value !== null && !tt.value ? (n(), u("line", Yt(Gt({ key: 9 }, Xl.value)), null, 16)) : g("", !0),
867
+ $.minimapMerged ? (n(), u("g", Jn, [
868
+ H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (n(), u("circle", {
855
869
  key: 0,
856
- cx: B.value.firstPlot.x,
857
- cy: B.value.firstPlot.y,
870
+ cx: H.value.firstPlot.x,
871
+ cy: H.value.firstPlot.y,
858
872
  "stroke-width": "0.5",
859
873
  stroke: ne.value,
860
874
  r: "4",
861
- fill: S.minimapLineColor
875
+ fill: $.minimapLineColor
862
876
  }, null, 8, Qn)) : g("", !0),
863
- B.value && B.value.firstPlot && B.value.firstPlot.value !== null ? (n(), u("circle", {
877
+ H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (n(), u("circle", {
864
878
  key: 1,
865
- cx: B.value.firstPlot.x,
866
- cy: B.value.firstPlot.y,
879
+ cx: H.value.firstPlot.x,
880
+ cy: H.value.firstPlot.y,
867
881
  r: 2,
868
882
  fill: ne.value
869
883
  }, null, 8, jn)) : g("", !0),
870
- B.value && B.value.lastPlot && B.value.lastPlot.value !== null ? (n(), u("circle", {
884
+ H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (n(), u("circle", {
871
885
  key: 2,
872
- cx: B.value.lastPlot.x,
873
- cy: B.value.lastPlot.y,
886
+ cx: H.value.lastPlot.x,
887
+ cy: H.value.lastPlot.y,
874
888
  "stroke-width": "0.5",
875
889
  stroke: ne.value,
876
890
  r: "4",
877
- fill: S.minimapLineColor
891
+ fill: $.minimapLineColor
878
892
  }, null, 8, eu)) : g("", !0),
879
- B.value && B.value.lastPlot && B.value.lastPlot.value !== null ? (n(), u("circle", {
893
+ H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (n(), u("circle", {
880
894
  key: 3,
881
- cx: B.value.lastPlot.x,
882
- cy: B.value.lastPlot.y,
895
+ cx: H.value.lastPlot.x,
896
+ cy: H.value.lastPlot.y,
883
897
  r: "2",
884
898
  fill: ne.value
885
899
  }, null, 8, tu)) : g("", !0)
886
900
  ])) : (n(), u("g", lu, [
887
- (n(!0), u(b, null, M(Je.value.filter((f) => f.type === "line"), (f) => (n(), u("g", {
901
+ (n(!0), u(b, null, L(Je.value.filter((f) => f.type === "line"), (f) => (n(), u("g", {
888
902
  key: String(f.key)
889
903
  }, [
890
904
  f && f.hasSelection && f.selectionSet && f.isVisible ? (n(), u("path", {
@@ -896,10 +910,10 @@ const _n = {
896
910
  "stroke-linecap": "round",
897
911
  "stroke-linejoin": "round"
898
912
  }, null, 8, au)) : g("", !0),
899
- f.isVisible ? (n(!0), u(b, { key: 1 }, M(f.selectionMarkers, (A) => (n(), u("circle", {
900
- key: `sel-dot-${f.key}-${A.i}`,
901
- cx: A.x,
902
- cy: A.y,
913
+ f.isVisible ? (n(!0), u(b, { key: 1 }, L(f.selectionMarkers, (_) => (n(), u("circle", {
914
+ key: `sel-dot-${f.key}-${_.i}`,
915
+ cx: _.x,
916
+ cy: _.y,
903
917
  r: "2.5",
904
918
  fill: f.color,
905
919
  stroke: ne.value,
@@ -939,65 +953,65 @@ const _n = {
939
953
  }, null, 8, su)) : g("", !0)
940
954
  ]))), 128))
941
955
  ])),
942
- (n(!0), u(b, null, M(Ql.value, (f, A) => (n(), u("rect", {
943
- x: ae.value * A - (S.minimapCompact ? ae.value / 2 : 0),
956
+ (n(!0), u(b, null, L(Ql.value, (f, _) => (n(), u("rect", {
957
+ x: ae.value * _ - ($.minimapCompact ? ae.value / 2 : 0),
944
958
  y: 0,
945
- height: Math.max(D.value.height, 0),
959
+ height: Math.max(W.value.height, 0),
946
960
  width: ae.value < 0 ? 0 : ae.value,
947
961
  fill: "transparent",
948
- style: L([{ "pointer-events": "all !important" }, { cursor: f >= Ee.value && f < Pe.value && S.enableSelectionDrag ? tt.value ? "grabbing" : "grab" : "default" }]),
962
+ style: C([{ "pointer-events": "all !important" }, { cursor: f >= Ee.value && f < Pe.value && $.enableSelectionDrag ? tt.value ? "grabbing" : "grab" : "default" }]),
949
963
  onMousedown: m[0] || (m[0] = (z) => tt.value = !0),
950
964
  onMouseup: m[1] || (m[1] = (z) => tt.value = !1),
951
965
  onMouseenter: (z) => Bl(f),
952
966
  onMouseleave: m[2] || (m[2] = (z) => {
953
- xt.value = null, Le("trapMouse", null);
967
+ xt.value = null, Ce("trapMouse", null);
954
968
  })
955
969
  }, null, 44, ru))), 256))
956
970
  ], 8, Cn))
957
971
  ])) : g("", !0),
958
972
  k("div", {
959
973
  class: "slider-track",
960
- style: L({ visibility: fe.value && S.minimapCompact ? "hidden" : "visible" })
974
+ style: C({ visibility: me.value && $.minimapCompact ? "hidden" : "visible" })
961
975
  }, null, 4),
962
976
  k("div", {
963
- class: Ze({ "range-highlight": !0, move: S.enableSelectionDrag }),
977
+ class: Ze({ "range-highlight": !0, move: $.enableSelectionDrag }),
964
978
  onMousedown: m[3] || (m[3] = (f) => tt.value = !0),
965
979
  onMouseup: m[4] || (m[4] = (f) => tt.value = !1),
966
- style: L({
980
+ style: C({
967
981
  ...Se.value,
968
982
  cursor: tt.value ? "grabbing" : "grab",
969
- visibility: fe.value && S.minimapCompact ? "hidden" : "visible"
983
+ visibility: me.value && $.minimapCompact ? "hidden" : "visible"
970
984
  })
971
985
  }, null, 38),
972
- S.enableRangeHandles ? Oa((n(), u("input", {
986
+ $.enableRangeHandles ? Oa((n(), u("input", {
973
987
  key: 1,
974
988
  ref_key: "rangeStart",
975
- ref: el,
989
+ ref: Mt,
976
990
  type: "range",
977
991
  class: Ze({
978
992
  "range-left": !0,
979
993
  "range-handle": !0,
980
- "range-minimap": fe.value && S.verticalHandles,
981
- "range-invisible": fe.value && S.minimapCompact
994
+ "range-minimap": me.value && $.verticalHandles,
995
+ "range-invisible": me.value && $.minimapCompact
982
996
  }),
983
- min: S.min,
984
- max: S.minimapCompact && fe.value ? Math.max(0, at.value - 1) : S.max,
985
- "onUpdate:modelValue": m[5] || (m[5] = (f) => Nt.value = f),
986
- onInput: m[6] || (m[6] = (f) => Nt.value = f.target.valueAsNumber),
997
+ min: $.min,
998
+ max: $.minimapCompact && me.value ? Math.max(0, at.value - 1) : $.max,
999
+ "onUpdate:modelValue": m[5] || (m[5] = (f) => Pt.value = f),
1000
+ onInput: m[6] || (m[6] = (f) => Pt.value = f.target.valueAsNumber),
987
1001
  onChange: Te,
988
- onKeyup: co(Te, ["enter"]),
1002
+ onKeyup: fo(Te, ["enter"]),
989
1003
  onBlur: Te,
990
1004
  onMouseenter: m[7] || (m[7] = (f) => Wl("start")),
991
1005
  onPointerup: Te
992
1006
  }, null, 42, cu)), [
993
1007
  [
994
- vo,
995
- Nt.value,
1008
+ mo,
1009
+ Pt.value,
996
1010
  void 0,
997
1011
  { number: !0 }
998
1012
  ]
999
1013
  ]) : g("", !0),
1000
- S.enableRangeHandles ? Oa((n(), u("input", {
1014
+ $.enableRangeHandles ? Oa((n(), u("input", {
1001
1015
  key: 2,
1002
1016
  ref_key: "rangeEnd",
1003
1017
  ref: t,
@@ -1005,90 +1019,90 @@ const _n = {
1005
1019
  class: Ze({
1006
1020
  "range-right": !0,
1007
1021
  "range-handle": !0,
1008
- "range-minimap": fe.value && S.verticalHandles,
1009
- "range-invisible": fe.value && S.minimapCompact
1022
+ "range-minimap": me.value && $.verticalHandles,
1023
+ "range-invisible": me.value && $.minimapCompact
1010
1024
  }),
1011
- min: S.min,
1012
- max: S.minimapCompact && fe.value ? Math.max(0, at.value - 1) : S.max,
1013
- "onUpdate:modelValue": m[8] || (m[8] = (f) => jt.value = f),
1014
- onInput: m[9] || (m[9] = (f) => jt.value = f.target.valueAsNumber),
1025
+ min: $.min,
1026
+ max: $.minimapCompact && me.value ? Math.max(0, at.value - 1) : $.max,
1027
+ "onUpdate:modelValue": m[8] || (m[8] = (f) => el.value = f),
1028
+ onInput: m[9] || (m[9] = (f) => el.value = f.target.valueAsNumber),
1015
1029
  onChange: Te,
1016
- onKeyup: co(Te, ["enter"]),
1030
+ onKeyup: fo(Te, ["enter"]),
1017
1031
  onBlur: Te,
1018
1032
  onMouseenter: m[10] || (m[10] = (f) => Wl("end")),
1019
1033
  onPointerup: Te
1020
1034
  }, null, 42, vu)), [
1021
1035
  [
1022
- vo,
1023
- jt.value,
1036
+ mo,
1037
+ el.value,
1024
1038
  void 0,
1025
1039
  { number: !0 }
1026
1040
  ]
1027
1041
  ]) : g("", !0),
1028
- me.value.left ? (n(), u("div", {
1042
+ ge.value.left ? (n(), u("div", {
1029
1043
  key: 3,
1030
1044
  ref_key: "tooltipLeft",
1031
1045
  ref: nl,
1032
1046
  class: Ze({
1033
1047
  "range-tooltip": !0,
1034
- "range-tooltip-visible": Ot.value,
1035
- "range-tooltip-arrow": Se.value.arrowLeft && !S.verticalHandles,
1036
- "range-tooltip-arrow-left": !Se.value.arrowLeft && !S.verticalHandles
1048
+ "range-tooltip-visible": Vt.value,
1049
+ "range-tooltip-arrow": Se.value.arrowLeft && !$.verticalHandles,
1050
+ "range-tooltip-arrow-left": !Se.value.arrowLeft && !$.verticalHandles
1037
1051
  }),
1038
- style: L({
1052
+ style: C({
1039
1053
  left: Se.value.tooltipLeft,
1040
- color: h(dt)(S.selectColor),
1041
- backgroundColor: S.selectColor,
1054
+ color: h(dt)($.selectColor),
1055
+ backgroundColor: $.selectColor,
1042
1056
  border: `1px solid ${ne.value}`,
1043
1057
  zIndex: `${aa.value + 4}`,
1044
- visibility: kt.value || me.value.left === me.value.right ? "hidden" : "visible",
1045
- top: fe.value && S.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1058
+ visibility: kt.value || ge.value.left === ge.value.right ? "hidden" : "visible",
1059
+ top: me.value && $.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1046
1060
  })
1047
- }, re(me.value.left), 7)) : g("", !0),
1048
- (kt.value || me.value.left === me.value.right) && (me.value.left || me.value.right) ? (n(), u("div", {
1061
+ }, re(ge.value.left), 7)) : g("", !0),
1062
+ (kt.value || ge.value.left === ge.value.right) && (ge.value.left || ge.value.right) ? (n(), u("div", {
1049
1063
  key: 4,
1050
1064
  ref: "tooltipMerge",
1051
1065
  class: Ze({
1052
1066
  "range-tooltip": !0,
1053
- "range-tooltip-visible": Ot.value,
1067
+ "range-tooltip-visible": Vt.value,
1054
1068
  "range-tooltip-arrow": !0,
1055
- "range-tooltip-arrow-left": !Se.value.arrowLeft && !S.verticalHandles,
1056
- "range-tooltip-arrow-right": !Se.value.arrowRight && !S.verticalHandles
1069
+ "range-tooltip-arrow-left": !Se.value.arrowLeft && !$.verticalHandles,
1070
+ "range-tooltip-arrow-right": !Se.value.arrowRight && !$.verticalHandles
1057
1071
  }),
1058
- style: L({
1072
+ style: C({
1059
1073
  left: Se.value.tooltipCenter,
1060
- width: Vt.value.width + "px",
1061
- color: h(dt)(S.selectColor),
1062
- backgroundColor: S.selectColor,
1074
+ width: Bt.value.width + "px",
1075
+ color: h(dt)($.selectColor),
1076
+ backgroundColor: $.selectColor,
1063
1077
  border: `1px solid ${ne.value}`,
1064
1078
  zIndex: "4",
1065
- top: fe.value && S.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1079
+ top: me.value && $.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1066
1080
  })
1067
- }, re(me.value.left === me.value.right ? me.value.left : `${me.value.left} - ${me.value.right}`), 7)) : g("", !0),
1068
- me.value.right ? (n(), u("div", {
1081
+ }, re(ge.value.left === ge.value.right ? ge.value.left : `${ge.value.left} - ${ge.value.right}`), 7)) : g("", !0),
1082
+ ge.value.right ? (n(), u("div", {
1069
1083
  key: 5,
1070
1084
  ref_key: "tooltipRight",
1071
- ref: Rt,
1085
+ ref: Ot,
1072
1086
  class: Ze({
1073
1087
  "range-tooltip": !0,
1074
- "range-tooltip-visible": Ot.value,
1075
- "range-tooltip-arrow": Se.value.arrowRight && !S.verticalHandles,
1076
- "range-tooltip-arrow-right": !Se.value.arrowRight && !S.verticalHandles
1088
+ "range-tooltip-visible": Vt.value,
1089
+ "range-tooltip-arrow": Se.value.arrowRight && !$.verticalHandles,
1090
+ "range-tooltip-arrow-right": !Se.value.arrowRight && !$.verticalHandles
1077
1091
  }),
1078
- style: L({
1092
+ style: C({
1079
1093
  left: Se.value.tooltipRight,
1080
- color: h(dt)(S.selectColor),
1081
- backgroundColor: S.selectColor,
1094
+ color: h(dt)($.selectColor),
1095
+ backgroundColor: $.selectColor,
1082
1096
  border: `1px solid ${ne.value}`,
1083
1097
  zIndex: "4",
1084
- visibility: kt.value || me.value.left === me.value.right ? "hidden" : "visible",
1085
- top: fe.value && S.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1098
+ visibility: kt.value || ge.value.left === ge.value.right ? "hidden" : "visible",
1099
+ top: me.value && $.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1086
1100
  })
1087
- }, re(me.value.right), 7)) : g("", !0)
1101
+ }, re(ge.value.right), 7)) : g("", !0)
1088
1102
  ], 544)
1089
1103
  ], 544));
1090
1104
  }
1091
- }, hu = /* @__PURE__ */ $o(du, [["__scopeId", "data-v-266dcf50"]]), fu = ["id"], mu = ["id"], gu = ["viewBox", "aria-label"], xu = ["x", "y", "width", "height"], bu = { key: 1 }, yu = { class: "vue-ui-xy-grid" }, pu = ["stroke", "x1", "x2", "y1", "y2"], ku = ["stroke", "x1", "x2", "y1", "y2"], wu = { key: 1 }, Su = ["x1", "x2", "y1", "y2", "stroke"], $u = ["x1", "x2", "y1", "y2", "stroke"], _u = ["x1", "x2", "y1", "y2", "stroke"], Mu = { key: 3 }, Lu = ["d", "stroke"], Cu = { key: 4 }, Au = ["d", "stroke"], zu = ["id"], Tu = ["stop-color"], Iu = ["stop-color"], Nu = ["stop-color"], Pu = ["id"], Fu = ["stop-color"], Ru = ["stop-color"], Ou = ["stop-color"], Vu = ["id"], Bu = ["stop-color"], Eu = ["stop-color"], Hu = ["id"], Du = ["stop-color"], Wu = ["stop-color"], Xu = ["id"], Yu = ["stop-color"], Gu = ["stop-color"], Uu = ["x", "y", "height", "width", "fill"], qu = ["x", "y", "width"], Zu = { key: 0 }, Ku = ["x", "y", "height", "width", "fill"], Ju = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Qu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ju = ["width", "x", "y"], ei = { key: 0 }, ti = ["id"], li = ["fill"], ai = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], oi = ["x", "y", "font-size", "fill"], ni = ["stroke", "x1", "x2", "y1", "y2"], ui = { key: 3 }, ii = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], si = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], ri = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ci = ["fill", "font-size", "transform"], vi = ["x1", "x2", "y1", "y2", "stroke"], di = ["x", "y", "font-size", "fill"], hi = ["x1", "x2", "y1", "y2", "stroke"], fi = ["x", "y", "font-size", "fill"], mi = ["width", "x", "y"], gi = { style: { width: "100%" } }, xi = { key: 0 }, bi = ["id"], yi = ["fill"], pi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ki = ["x", "y", "font-size", "fill"], wi = ["d", "stroke", "stroke-width", "stroke-dasharray"], Si = ["d", "stroke", "stroke-width", "stroke-dasharray"], $i = { key: 6 }, _i = { key: 7 }, Mi = ["d", "fill", "fill-opacity"], Li = { key: 0 }, Ci = ["d", "fill"], Ai = ["d", "fill"], zi = ["d", "fill"], Ti = ["d", "fill"], Ii = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ni = ["d", "stroke", "stroke-width", "stroke-dasharray"], Pi = ["width", "x", "y"], Fi = { style: { width: "100%" } }, Ri = { key: 3 }, Oi = ["id"], Vi = ["fill"], Bi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ei = ["x", "y", "font-size", "fill"], Hi = { key: 8 }, Di = ["x", "y", "font-size", "fill"], Wi = ["x", "y", "font-size", "fill", "font-weight"], Xi = { key: 9 }, Yi = ["x", "y", "font-size", "fill"], Gi = { key: 10 }, Ui = ["x", "y"], qi = ["innerHTML"], Zi = ["x", "y"], Ki = ["innerHTML"], Ji = ["x1", "x2", "y1", "y2", "stroke"], Qi = { key: 11 }, ji = ["x", "y", "font-size", "fill"], es = { key: 12 }, ts = ["x", "y"], ls = ["innerHTML"], as = ["x", "y"], os = ["innerHTML"], ns = ["x1", "x2", "y1", "y2", "stroke"], us = ["x", "y", "font-size", "fill", "innerHTML"], is = ["x", "y", "font-size", "fill", "innerHTML"], ss = ["x", "y", "font-size", "fill", "innerHTML"], rs = ["x", "y", "font-size", "fill", "innerHTML"], cs = ["id"], vs = ["stop-color"], ds = ["stop-color"], hs = ["x", "y", "width", "height", "fill", "onMouseenter"], fs = ["font-size", "fill", "transform"], ms = ["x", "y", "font-size", "fill"], gs = ["text-anchor", "font-size", "fill", "transform", "onClick"], xs = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], bs = { key: 15 }, ys = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ps = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ks = ["y", "x", "width", "height", "fill"], ws = ["id", "x", "y", "font-size", "fill", "text-anchor"], Ss = {
1105
+ }, hu = /* @__PURE__ */ Lo(du, [["__scopeId", "data-v-df735051"]]), fu = ["id"], mu = ["id"], gu = ["viewBox", "aria-label"], xu = ["x", "y", "width", "height"], bu = { key: 1 }, yu = { class: "vue-ui-xy-grid" }, pu = ["stroke", "x1", "x2", "y1", "y2"], ku = ["stroke", "x1", "x2", "y1", "y2"], wu = { key: 1 }, Su = ["x1", "x2", "y1", "y2", "stroke"], $u = ["x1", "x2", "y1", "y2", "stroke"], _u = ["x1", "x2", "y1", "y2", "stroke"], Mu = { key: 3 }, Lu = ["d", "stroke"], Cu = { key: 4 }, Au = ["d", "stroke"], zu = ["id"], Tu = ["stop-color"], Iu = ["stop-color"], Nu = ["stop-color"], Pu = ["id"], Fu = ["stop-color"], Ru = ["stop-color"], Ou = ["stop-color"], Vu = ["id"], Bu = ["stop-color"], Eu = ["stop-color"], Hu = ["id"], Du = ["stop-color"], Wu = ["stop-color"], Xu = ["id"], Yu = ["stop-color"], Gu = ["stop-color"], Uu = ["x", "y", "height", "width", "fill"], qu = ["x", "y", "width"], Zu = { key: 0 }, Ku = ["x", "y", "height", "width", "fill"], Ju = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Qu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ju = ["width", "x", "y"], ei = { key: 0 }, ti = ["id"], li = ["fill"], ai = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], oi = ["x", "y", "font-size", "fill"], ni = ["stroke", "x1", "x2", "y1", "y2"], ui = { key: 3 }, ii = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], si = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], ri = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ci = ["fill", "font-size", "transform"], vi = ["x1", "x2", "y1", "y2", "stroke"], di = ["x", "y", "font-size", "fill"], hi = ["x1", "x2", "y1", "y2", "stroke"], fi = ["x", "y", "font-size", "fill"], mi = ["width", "x", "y"], gi = { style: { width: "100%" } }, xi = { key: 0 }, bi = ["id"], yi = ["fill"], pi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ki = ["x", "y", "font-size", "fill"], wi = ["d", "stroke", "stroke-width", "stroke-dasharray"], Si = ["d", "stroke", "stroke-width", "stroke-dasharray"], $i = { key: 6 }, _i = { key: 7 }, Mi = ["d", "fill", "fill-opacity"], Li = { key: 0 }, Ci = ["d", "fill"], Ai = ["d", "fill"], zi = ["d", "fill"], Ti = ["d", "fill"], Ii = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ni = ["d", "stroke", "stroke-width", "stroke-dasharray"], Pi = ["width", "x", "y"], Fi = { style: { width: "100%" } }, Ri = { key: 3 }, Oi = ["id"], Vi = ["fill"], Bi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ei = ["x", "y", "font-size", "fill"], Hi = { key: 8 }, Di = ["x", "y", "font-size", "fill"], Wi = ["x", "y", "font-size", "fill", "font-weight"], Xi = { key: 9 }, Yi = ["x", "y", "font-size", "fill"], Gi = { key: 10 }, Ui = ["x", "y"], qi = ["innerHTML"], Zi = ["x", "y"], Ki = ["innerHTML"], Ji = ["x1", "x2", "y1", "y2", "stroke"], Qi = { key: 11 }, ji = ["x", "y", "font-size", "fill"], es = { key: 12 }, ts = ["x", "y"], ls = ["innerHTML"], as = ["x", "y"], os = ["innerHTML"], ns = ["x1", "x2", "y1", "y2", "stroke"], us = ["x", "y", "font-size", "fill", "innerHTML"], is = ["x", "y", "font-size", "fill", "innerHTML"], ss = ["x", "y", "font-size", "fill", "innerHTML"], rs = ["x", "y", "font-size", "fill", "innerHTML"], cs = ["id"], vs = ["stop-color"], ds = ["stop-color"], hs = ["x", "y", "width", "height", "fill", "onMouseenter"], fs = ["font-size", "fill", "transform"], ms = ["x", "y", "font-size", "fill"], gs = ["text-anchor", "font-size", "fill", "transform", "onClick"], xs = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], bs = { key: 15 }, ys = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ps = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ks = ["y", "x", "width", "height", "fill"], ws = ["id", "x", "y", "font-size", "fill", "text-anchor"], Ss = {
1092
1106
  key: 16,
1093
1107
  style: { "pointer-events": "none" }
1094
1108
  }, $s = ["x", "y"], _s = ["innerHTML"], Ms = ["cx", "cy", "r", "fill"], Ls = ["data-start", "data-end"], Cs = {
@@ -1153,31 +1167,31 @@ const _n = {
1153
1167
  }
1154
1168
  },
1155
1169
  emits: ["selectTimeLabel", "selectX", "selectLegend"],
1156
- setup(S, { expose: wa, emit: Sa }) {
1157
- const d = S, Me = Dt(() => import("./DataTable-DAc2s9Wi.js")), he = Dt(() => import("./Tooltip-B46L8jx5.js")), ge = Dt(() => import("./UserOptions-CmhyvH7T.js")), fe = Dt(() => import("./BaseIcon-Dj9csjZa.js")), Al = Dt(() => import("./vue-ui-table-sparkline-DNnOTTBh.js")), St = Dt(() => import("./PackageVersion-DL0EOwRR.js")), It = Dt(() => import("./PenAndPaper-CcoAkH79.js")), zl = Dt(() => import("./BaseDraggableDialog-TS2ANP8W.js")), Gt = Sa, xl = Go(), Ut = Uo(), { vue_ui_xy: $t } = jo(), Be = y(null), Te = y(null), Ke = y(null), Le = y(null), ft = y(null), _t = y(null), Tl = y(null), qt = y(null), Zt = y(null), Se = y(null), Il = y(null), Nl = y(null), mt = y(null), ne = y(null), Ql = y(0), V = y(null), Kt = y(!0), D = y(600), le = y(1e3), at = y("0 0 1000 600"), jl = y({ x: 0, y: 0 }), Jt = y({ line: "line", bar: "bar", plot: "plot" }), Ee = y(!1), Pe = y(!1), bl = y(!1), ae = y(null), ce = y([]), Z = y(ga()), Pl = y(0), Fl = y(0), Rl = y(0), He = y(!0), gt = y(0), W = y(null), ea = y(!1), Ol = y(!0), yl = y(!0), Ce = y(null), ot = y({}), Qt = y(null), B = y(!1), Je = y(null), _ = y(null), xt = x(() => ({
1158
- height: D.value,
1170
+ setup($, { expose: Sa, emit: $a }) {
1171
+ const d = $, Le = Wt(() => import("./DataTable-Dw6dxJk3.js")), ce = Wt(() => import("./Tooltip-DBvmoYXU.js")), fe = Wt(() => import("./UserOptions-CKzW9w0Q.js")), me = Wt(() => import("./BaseIcon-7s-tCFcQ.js")), Al = Wt(() => import("./vue-ui-table-sparkline-DnSLwUNN.js")), St = Wt(() => import("./PackageVersion-D1HToLlZ.js")), Nt = Wt(() => import("./PenAndPaper-BKnXOYre.js")), zl = Wt(() => import("./BaseDraggableDialog-CrCjMg89.js")), Ut = $a, xl = Go(), qt = Uo(), { vue_ui_xy: $t } = jo(), Be = y(null), Te = y(null), Ke = y(null), Ce = y(null), ft = y(null), _t = y(null), Tl = y(null), Zt = y(null), Kt = y(null), Se = y(null), Il = y(null), Nl = y(null), mt = y(null), ne = y(null), Ql = y(0), E = y(null), Jt = y(!0), W = y(600), le = y(1e3), at = y("0 0 1000 600"), jl = y({ x: 0, y: 0 }), Qt = y({ line: "line", bar: "bar", plot: "plot" }), Ee = y(!1), Pe = y(!1), bl = y(!1), ae = y(null), ve = y([]), Z = y(xa()), Pl = y(0), Fl = y(0), Rl = y(0), He = y(!0), gt = y(0), X = y(null), ea = y(!1), Ol = y(!0), yl = y(!0), $e = y(null), ot = y({}), jt = y(null), H = y(!1), Je = y(null), M = y(null), xt = x(() => ({
1172
+ height: W.value,
1159
1173
  width: le.value
1160
1174
  }));
1161
1175
  function Vl(l) {
1162
1176
  return Number.isFinite(l) ? Math.max(0, Math.floor(l)) : 0;
1163
1177
  }
1164
- function Nt(l, s, e = 0) {
1178
+ function Pt(l, s, e = 0) {
1165
1179
  return Number.isFinite(l) && Number.isFinite(s) && Math.abs(s) > 1e-9 ? l / s : e;
1166
1180
  }
1167
- const jt = y(!1), C = y({
1181
+ const el = y(!1), A = y({
1168
1182
  xAxis: 18,
1169
1183
  yAxis: 12,
1170
1184
  dataLabels: 20,
1171
1185
  plotLabels: 10
1172
1186
  }), De = y({ plot: 3, line: 3 });
1173
1187
  Ll(() => {
1174
- B.value = !0, d.dataset.length && d.dataset.forEach((l, s) => {
1188
+ H.value = !0, d.dataset.length && d.dataset.forEach((l, s) => {
1175
1189
  [null, void 0].includes(l.series) && Na({
1176
1190
  componentName: "VueUiXy",
1177
1191
  type: "datasetSerieAttribute",
1178
1192
  property: "series (number[])",
1179
1193
  index: s,
1180
- debug: Mt.value
1194
+ debug: Lt.value
1181
1195
  });
1182
1196
  });
1183
1197
  });
@@ -1199,7 +1213,7 @@ const _n = {
1199
1213
  customPalette: rn[l.theme] || d.palette
1200
1214
  } : l;
1201
1215
  }
1202
- const el = x({
1216
+ const Mt = x({
1203
1217
  get() {
1204
1218
  return !!d.dataset && d.dataset.length;
1205
1219
  },
@@ -1214,15 +1228,15 @@ const _n = {
1214
1228
  useIndividualScale: !1
1215
1229
  });
1216
1230
  function tl() {
1217
- jt.value ? (p.value.isStacked = t.value.chart.grid.labels.yAxis.stacked, p.value.useIndividualScale == null && (p.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale)) : (p.value = {
1231
+ el.value ? (p.value.isStacked = t.value.chart.grid.labels.yAxis.stacked, p.value.useIndividualScale == null && (p.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale)) : (p.value = {
1218
1232
  dataLabels: { show: !0 },
1219
1233
  showTooltip: t.value.chart.tooltip.show === !0,
1220
1234
  showTable: t.value.showTable === !0,
1221
1235
  isStacked: t.value.chart.grid.labels.yAxis.stacked,
1222
1236
  useIndividualScale: t.value.chart.grid.labels.yAxis.useIndividualScale
1223
- }, jt.value = !0);
1237
+ }, el.value = !0);
1224
1238
  }
1225
- const Mt = x(() => !!t.value.debug), { loading: xe, FINAL_DATASET: $e, manualLoading: bt } = gn({
1239
+ const Lt = x(() => !!t.value.debug), { loading: xe, FINAL_DATASET: _e, manualLoading: bt } = gn({
1226
1240
  ...qo(d),
1227
1241
  FINAL_CONFIG: t,
1228
1242
  prepareConfig: Bl,
@@ -1304,7 +1318,7 @@ const _n = {
1304
1318
  }
1305
1319
  })
1306
1320
  });
1307
- function $a(l) {
1321
+ function _a(l) {
1308
1322
  const s = /* @__PURE__ */ new WeakMap();
1309
1323
  return (e, ...i) => {
1310
1324
  let a = s.get(e);
@@ -1314,27 +1328,27 @@ const _n = {
1314
1328
  return a || (a = /* @__PURE__ */ new Map(), s.set(e, a)), a.set(r, o), o;
1315
1329
  };
1316
1330
  }
1317
- const Pt = $a((l, s) => Pa({ data: l, threshold: s })), yt = (l) => Pt(l, t.value.downsample.threshold), Qe = x({
1318
- get: () => Math.max(...$e.value.map((l) => yt(l.series).length)),
1331
+ const Ft = _a((l, s) => Pa({ data: l, threshold: s })), yt = (l) => Ft(l, t.value.downsample.threshold), Qe = x({
1332
+ get: () => Math.max(..._e.value.map((l) => yt(l.series).length)),
1319
1333
  set: (l) => l
1320
1334
  }), w = y({ start: 0, end: Qe.value }), We = y({ start: 0, end: Qe.value }), ta = x(() => t.value.chart.zoom.preview.enable && (We.value.start !== w.value.start || We.value.end !== w.value.end));
1321
1335
  function El(l, s) {
1322
1336
  We.value[l] = s;
1323
1337
  }
1324
- function Lt() {
1338
+ function Ct() {
1325
1339
  const l = Math.max(
1326
1340
  1,
1327
- ...$e.value.map((i) => yt(i.series).length)
1341
+ ..._e.value.map((i) => yt(i.series).length)
1328
1342
  );
1329
1343
  let s = Math.max(0, Math.min(w.value.start ?? 0, l - 1)), e = Math.max(s + 1, Math.min(w.value.end ?? l, l));
1330
1344
  (!Number.isFinite(s) || !Number.isFinite(e) || e <= s) && (s = 0, e = l), w.value = { start: s, end: e }, We.value.start = s, We.value.end = e, Ke.value && (Ke.value.setStartValue(s), Ke.value.setEndValue(e));
1331
1345
  }
1332
- const _a = x(() => {
1333
- const { left: l, top: s, width: e, height: i } = c.value, a = w.value.start, o = w.value.end - a, P = e / o, H = We.value.start - a, G = We.value.end - a, T = Math.max(0, Math.min(o, H)), F = Math.max(0, Math.min(o, G));
1346
+ const Ma = x(() => {
1347
+ const { left: l, top: s, width: e, height: i } = c.value, a = w.value.start, o = w.value.end - a, F = e / o, R = We.value.start - a, O = We.value.end - a, T = Math.max(0, Math.min(o, R)), N = Math.max(0, Math.min(o, O));
1334
1348
  return {
1335
- x: l + T * P,
1349
+ x: l + T * F,
1336
1350
  y: s,
1337
- width: (F - T) * P,
1351
+ width: (N - T) * F,
1338
1352
  height: i,
1339
1353
  fill: t.value.chart.zoom.preview.fill,
1340
1354
  stroke: t.value.chart.zoom.preview.stroke,
@@ -1351,61 +1365,61 @@ const _n = {
1351
1365
  });
1352
1366
  ht(() => d.selectedXIndex, (l) => {
1353
1367
  if ([null, void 0].includes(d.selectedXIndex)) {
1354
- _.value = null;
1368
+ M.value = null;
1355
1369
  return;
1356
1370
  }
1357
1371
  const s = l - w.value.start;
1358
- s < 0 || l >= w.value.end ? _.value = null : _.value = s ?? null;
1372
+ s < 0 || l >= w.value.end ? M.value = null : M.value = s ?? null;
1359
1373
  }, { immediate: !0 });
1360
1374
  const { isPrinting: Hl, isImaging: nt, generatePdf: ut, generateImage: it } = mn({
1361
1375
  elementId: `vue-ui-xy_${Z.value}`,
1362
1376
  fileName: t.value.chart.title.text || "vue-ui-xy",
1363
1377
  options: t.value.chart.userOptions.print
1364
- }), pt = y(!1), ll = x(() => tn(t.value.customPalette)), Ft = x(() => {
1378
+ }), pt = y(!1), ll = x(() => tn(t.value.customPalette)), Rt = x(() => {
1365
1379
  if (t.value.chart.grid.labels.yAxis.scaleMin !== null)
1366
1380
  return t.value.chart.grid.labels.yAxis.scaleMin;
1367
- const l = Math.min(...je.value.filter((s) => !ce.value.includes(s.id)).map((s) => Math.min(...s.series)));
1381
+ const l = Math.min(...je.value.filter((s) => !ve.value.includes(s.id)).map((s) => Math.min(...s.series)));
1368
1382
  return l > 0 ? 0 : l;
1369
1383
  }), al = x(() => {
1370
1384
  if (t.value.chart.grid.labels.yAxis.scaleMax)
1371
1385
  return t.value.chart.grid.labels.yAxis.scaleMax;
1372
- const l = Math.max(...je.value.filter((s) => !ce.value.includes(s.id)).map((s) => Math.max(...s.series)));
1373
- return Ft.value === l ? l + 1 : l;
1374
- }), Xe = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(Ft.value, al.value < 0 ? 0 : al.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : hl(Ft.value, al.value < 0 ? 0 : al.value, t.value.chart.grid.labels.yAxis.commonScaleSteps)), ol = x(() => [null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) ? Xe.value.min >= 0 ? 0 : Math.abs(Xe.value.min) : -Xe.value.min), je = x(() => Kt.value ? $e.value.map((l, s) => {
1386
+ const l = Math.max(...je.value.filter((s) => !ve.value.includes(s.id)).map((s) => Math.max(...s.series)));
1387
+ return Rt.value === l ? l + 1 : l;
1388
+ }), Xe = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(Rt.value, al.value < 0 ? 0 : al.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : hl(Rt.value, al.value < 0 ? 0 : al.value, t.value.chart.grid.labels.yAxis.commonScaleSteps)), ol = x(() => [null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) ? Xe.value.min >= 0 ? 0 : Math.abs(Xe.value.min) : -Xe.value.min), je = x(() => Jt.value ? _e.value.map((l, s) => {
1375
1389
  const e = yt(l.series), i = `uniqueId_${s}`;
1376
1390
  return {
1377
1391
  ...l,
1378
1392
  slotAbsoluteIndex: s,
1379
- series: e.map((a) => ha(a) ? a : null).slice(w.value.start, w.value.end),
1380
- color: xo(l.color ? l.color : ll.value[s] ? ll.value[s] : bo[s]),
1393
+ series: e.map((a) => fa(a) ? a : null).slice(w.value.start, w.value.end),
1394
+ color: po(l.color ? l.color : ll.value[s] ? ll.value[s] : ko[s]),
1381
1395
  id: i,
1382
1396
  scaleLabel: l.scaleLabel || i
1383
1397
  };
1384
- }) : $e.value), et = x(() => je.value.map((l, s) => ({
1398
+ }) : _e.value), et = x(() => je.value.map((l, s) => ({
1385
1399
  absoluteIndex: s,
1386
1400
  ...l,
1387
1401
  series: l.series.map((e) => e + ol.value),
1388
1402
  absoluteValues: l.series,
1389
- segregate: () => Wa(l),
1390
- isSegregated: ce.value.includes(l.id)
1403
+ segregate: () => Ga(l),
1404
+ isSegregated: ve.value.includes(l.id)
1391
1405
  }))), Fe = x(() => je.value.map((l, s) => ({
1392
1406
  ...l,
1393
1407
  series: l.series.map((e) => e + ol.value),
1394
1408
  absoluteValues: l.series
1395
- })).filter((l) => !ce.value.includes(l.id)));
1409
+ })).filter((l) => !ve.value.includes(l.id)));
1396
1410
  function la() {
1397
1411
  let l = 0;
1398
1412
  Il.value && (l = Array.from(Il.value.querySelectorAll("text")).reduce((a, r) => {
1399
1413
  const o = r.getComputedTextLength();
1400
1414
  return (o > a ? o : a) + t.value.chart.grid.labels.yAxis.scaleValueOffsetX;
1401
1415
  }, 0));
1402
- const s = Zt.value ? Zt.value.getBoundingClientRect().width + t.value.chart.grid.labels.axis.yLabelOffsetX + C.value.yAxis : 0, e = t.value.chart.grid.labels.yAxis.crosshairSize;
1416
+ const s = Kt.value ? Kt.value.getBoundingClientRect().width + t.value.chart.grid.labels.axis.yLabelOffsetX + A.value.yAxis : 0, e = t.value.chart.grid.labels.yAxis.crosshairSize;
1403
1417
  return l + s + e;
1404
1418
  }
1405
1419
  const tt = y(0), nl = Jl((l) => {
1406
1420
  tt.value = l;
1407
1421
  }, 100);
1408
- ho((l) => {
1422
+ go((l) => {
1409
1423
  const s = Se.value;
1410
1424
  if (!s) return;
1411
1425
  const e = new ResizeObserver((i) => {
@@ -1415,55 +1429,55 @@ const _n = {
1415
1429
  }), gl(() => {
1416
1430
  tt.value = 0;
1417
1431
  });
1418
- const Rt = x(() => {
1432
+ const Ot = x(() => {
1419
1433
  let l = 0;
1420
- qt.value && (l = qt.value.getBBox().height);
1434
+ Zt.value && (l = Zt.value.getBBox().height);
1421
1435
  let s = 0;
1422
- return Se.value && (s = tt.value), l + s + C.value.xAxis;
1423
- }), pl = x(() => $e.value.some((l) => l.useProgression)), c = x(() => {
1436
+ return Se.value && (s = tt.value), l + s + A.value.xAxis;
1437
+ }), pl = x(() => _e.value.some((l) => l.useProgression)), c = x(() => {
1424
1438
  let l = 0;
1425
1439
  const s = 36;
1426
- t.value.chart.grid.labels.show && (p.value.useIndividualScale && !p.value.isStacked ? l = ($e.value.length - ce.value.length) * (t.value.chart.grid.labels.yAxis.labelWidth + s) : p.value.useIndividualScale && p.value.isStacked ? l = t.value.chart.grid.labels.yAxis.labelWidth + s : l = la());
1440
+ t.value.chart.grid.labels.show && (p.value.useIndividualScale && !p.value.isStacked ? l = (_e.value.length - ve.value.length) * (t.value.chart.grid.labels.yAxis.labelWidth + s) : p.value.useIndividualScale && p.value.isStacked ? l = t.value.chart.grid.labels.yAxis.labelWidth + s : l = la());
1427
1441
  const e = t.value.chart.labels.fontSize * 1.1, i = pl.value ? 24 : 6;
1428
1442
  if (Se.value) {
1429
1443
  const o = Se.value.getBBox().x;
1430
1444
  o < 0 && (l += Math.abs(o));
1431
1445
  }
1432
- const a = le.value - l - t.value.chart.grid.labels.yAxis.crosshairSize - i - t.value.chart.padding.left - t.value.chart.padding.right, r = t.value.chart.grid.position === "middle" ? 0 : a / $.value / 2;
1446
+ const a = le.value - l - t.value.chart.grid.labels.yAxis.crosshairSize - i - t.value.chart.padding.left - t.value.chart.padding.right, r = t.value.chart.grid.position === "middle" ? 0 : a / S.value / 2;
1433
1447
  return {
1434
1448
  top: t.value.chart.padding.top + e,
1435
1449
  right: le.value - i - t.value.chart.padding.right,
1436
- bottom: D.value - Rt.value - t.value.chart.padding.bottom - t.value.chart.grid.labels.axis.xLabelOffsetY,
1450
+ bottom: W.value - Ot.value - t.value.chart.padding.bottom - t.value.chart.grid.labels.axis.xLabelOffsetY,
1437
1451
  left: l + t.value.chart.grid.labels.yAxis.crosshairSize - r + t.value.chart.padding.left,
1438
- height: D.value - Rt.value - t.value.chart.padding.top - t.value.chart.padding.bottom - e - t.value.chart.grid.labels.axis.xLabelOffsetY,
1452
+ height: W.value - Ot.value - t.value.chart.padding.top - t.value.chart.padding.bottom - e - t.value.chart.grid.labels.axis.xLabelOffsetY,
1439
1453
  width: a,
1440
1454
  scaleLabelX: l,
1441
1455
  individualOffsetX: s
1442
1456
  };
1443
- }), Ot = x(() => {
1444
- const l = t.value.chart.grid.position === "middle" ? 1 : 0, s = $.value + l, e = j(c.value.top), i = j(c.value.bottom);
1457
+ }), Vt = x(() => {
1458
+ const l = t.value.chart.grid.position === "middle" ? 1 : 0, s = S.value + l, e = j(c.value.top), i = j(c.value.bottom);
1445
1459
  return Array.from({ length: s }).map((a, r) => {
1446
- const o = c.value.width / $.value * r + c.value.left + ue.value;
1460
+ const o = c.value.width / S.value * r + c.value.left + ue.value;
1447
1461
  return `M${o},${e} L${o},${i}`;
1448
1462
  }).join(" ");
1449
1463
  }), Dl = x(() => {
1450
1464
  if (!t.value.chart.grid.labels.xAxis.showCrosshairs) return "";
1451
- const l = c.value.width / $.value, s = t.value.chart.grid.labels.xAxis.crosshairSize, e = t.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
1452
- return E.value.map((i, a) => {
1465
+ const l = c.value.width / S.value, s = t.value.chart.grid.labels.xAxis.crosshairSize, e = t.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
1466
+ return D.value.map((i, a) => {
1453
1467
  if (!i || !i.text) return null;
1454
- const r = c.value.left + l * a + l / 2, o = e ? Ie.value - (Ie.value === c.value.bottom ? 0 : s / 2) : c.value.bottom, P = e ? Ie.value + s / (Ie.value === c.value.bottom ? 1 : 2) : c.value.bottom + s;
1455
- return `M${r},${o} L${r},${P}`;
1468
+ const r = c.value.left + l * a + l / 2, o = e ? Ie.value - (Ie.value === c.value.bottom ? 0 : s / 2) : c.value.bottom, F = e ? Ie.value + s / (Ie.value === c.value.bottom ? 1 : 2) : c.value.bottom + s;
1469
+ return `M${r},${o} L${r},${F}`;
1456
1470
  }).filter(Boolean).join(" ");
1457
1471
  });
1458
1472
  function kl() {
1459
- return !!Ut?.vnode.props?.onSelectTimeLabel;
1473
+ return !!qt?.vnode.props?.onSelectTimeLabel;
1460
1474
  }
1461
1475
  function aa(l, s, e) {
1462
- if (!Qt.value) {
1476
+ if (!jt.value) {
1463
1477
  const i = document.createElement("canvas");
1464
- Qt.value = i.getContext("2d");
1478
+ jt.value = i.getContext("2d");
1465
1479
  }
1466
- return Qt.value.font = `normal ${l}px sans-serif`, Qt.value;
1480
+ return jt.value.font = `normal ${l}px sans-serif`, jt.value;
1467
1481
  }
1468
1482
  function Wl() {
1469
1483
  const l = Be.value.querySelectorAll(".vue-ui-xy-tag");
@@ -1472,16 +1486,16 @@ const _n = {
1472
1486
  function kt(l, s, e, i, a) {
1473
1487
  e && (ot.value[`${l}_${s}_${i}_${a}`] = e);
1474
1488
  }
1475
- const Vt = y(!1);
1476
- async function me(l = !1) {
1477
- await Cl(), Vt.value = l, ea.value && (yl.value = l);
1489
+ const Bt = y(!1);
1490
+ async function ge(l = !1) {
1491
+ await Cl(), Bt.value = l, ea.value && (yl.value = l);
1478
1492
  }
1479
1493
  function Xl() {
1480
1494
  Ee.value = !Ee.value;
1481
1495
  }
1482
1496
  const v = x(() => {
1483
- const l = Math.max(...$e.value.map((s) => Pa({ data: s.series, threshold: t.value.downsample.threshold }).length));
1484
- return So({
1497
+ const l = Math.max(..._e.value.map((s) => Pa({ data: s.series, threshold: t.value.downsample.threshold }).length));
1498
+ return Mo({
1485
1499
  values: t.value.chart.grid.labels.xAxisLabels.values,
1486
1500
  maxDatapoints: l,
1487
1501
  formatter: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
@@ -1489,8 +1503,8 @@ const _n = {
1489
1503
  end: w.value.end
1490
1504
  });
1491
1505
  }), m = x(() => {
1492
- const l = Math.max(...$e.value.map((s) => Pa({ data: s.series, threshold: t.value.downsample.threshold }).length));
1493
- return So({
1506
+ const l = Math.max(..._e.value.map((s) => Pa({ data: s.series, threshold: t.value.downsample.threshold }).length));
1507
+ return Mo({
1494
1508
  values: t.value.chart.grid.labels.xAxisLabels.values,
1495
1509
  maxDatapoints: l,
1496
1510
  formatter: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
@@ -1501,56 +1515,56 @@ const _n = {
1501
1515
  const l = t.value.chart.grid.labels.xAxisLabels.modulo;
1502
1516
  return v.value.length ? Math.min(l, [...new Set(v.value.map((s) => s.text))].length) : l;
1503
1517
  });
1504
- function A(l) {
1518
+ function _(l) {
1505
1519
  let s = null, e = null;
1506
1520
  return (...i) => {
1507
1521
  const a = JSON.stringify(i);
1508
1522
  return a === s || (s = a, e = l(...i)), e;
1509
1523
  };
1510
1524
  }
1511
- const z = A((l, s, e, i, a, r, o, P) => {
1525
+ const z = _((l, s, e, i, a, r, o, F) => {
1512
1526
  if (l)
1513
- return i.length <= 2 ? i.map((O, se) => ({ text: O, absoluteIndex: se })) : i.map((O, se) => ({ text: se === 0 || se === i.length - 1 || o != null && se === o ? O : "", absoluteIndex: se }));
1527
+ return i.length <= 2 ? i.map((B, se) => ({ text: B, absoluteIndex: se })) : i.map((B, se) => ({ text: se === 0 || se === i.length - 1 || o != null && se === o ? B : "", absoluteIndex: se }));
1514
1528
  if (!s)
1515
- return i.map((X, O) => ({ text: X, absoluteIndex: O }));
1516
- const H = Math.max(1, e || 1);
1517
- if (P <= H)
1518
- return i.map((X, O) => ({ text: X, absoluteIndex: O }));
1519
- const G = [];
1520
- for (let X = 0; X < i.length; X += 1) {
1521
- const O = i[X] ?? "";
1522
- if (!O) continue;
1523
- const se = r + X - 1 >= 0 ? a[r + X - 1] ?? "" : null;
1524
- O !== se && G.push(X);
1529
+ return i.map((Y, B) => ({ text: Y, absoluteIndex: B }));
1530
+ const R = Math.max(1, e || 1);
1531
+ if (F <= R)
1532
+ return i.map((Y, B) => ({ text: Y, absoluteIndex: B }));
1533
+ const O = [];
1534
+ for (let Y = 0; Y < i.length; Y += 1) {
1535
+ const B = i[Y] ?? "";
1536
+ if (!B) continue;
1537
+ const se = r + Y - 1 >= 0 ? a[r + Y - 1] ?? "" : null;
1538
+ B !== se && O.push(Y);
1525
1539
  }
1526
- if (!G.length)
1527
- return i.map((X, O) => ({ text: "", absoluteIndex: O }));
1528
- const T = G.length, F = H, ee = Math.max(2, Math.min(F - 3, T)), I = Math.min(T, F + 3);
1529
- let U = Math.min(F, T), R = 1 / 0;
1530
- for (let X = ee; X <= I; X += 1) {
1531
- const O = (T - 1) % (X - 1), se = Math.abs(X - F), Oe = O * 10 + se;
1532
- Oe < R && (R = Oe, U = X);
1540
+ if (!O.length)
1541
+ return i.map((Y, B) => ({ text: "", absoluteIndex: B }));
1542
+ const T = O.length, N = R, ee = Math.max(2, Math.min(N - 3, T)), I = Math.min(T, N + 3);
1543
+ let U = Math.min(N, T), V = 1 / 0;
1544
+ for (let Y = ee; Y <= I; Y += 1) {
1545
+ const B = (T - 1) % (Y - 1), se = Math.abs(Y - N), Oe = B * 10 + se;
1546
+ Oe < V && (V = Oe, U = Y);
1533
1547
  }
1534
- const de = /* @__PURE__ */ new Set();
1548
+ const he = /* @__PURE__ */ new Set();
1535
1549
  if (U <= 1)
1536
- de.add(G[Math.round((T - 1) / 2)]);
1550
+ he.add(O[Math.round((T - 1) / 2)]);
1537
1551
  else {
1538
- const X = (T - 1) / (U - 1);
1539
- for (let O = 0; O < U; O += 1)
1540
- de.add(G[Math.round(O * X)]);
1552
+ const Y = (T - 1) / (U - 1);
1553
+ for (let B = 0; B < U; B += 1)
1554
+ he.add(O[Math.round(B * Y)]);
1541
1555
  }
1542
- return i.map((X, O) => ({
1543
- text: de.has(O) ? X : "",
1544
- absoluteIndex: O
1556
+ return i.map((Y, B) => ({
1557
+ text: he.has(B) ? Y : "",
1558
+ absoluteIndex: B
1545
1559
  }));
1546
- }), E = x(() => {
1547
- const l = t.value.chart.grid.labels.xAxisLabels, s = v.value || [], e = m.value || [], i = w.value.start ?? 0, a = _.value, r = $.value, o = s.map((H) => H?.text ?? ""), P = e.map((H) => H?.text ?? "");
1560
+ }), D = x(() => {
1561
+ const l = t.value.chart.grid.labels.xAxisLabels, s = v.value || [], e = m.value || [], i = w.value.start ?? 0, a = M.value, r = S.value, o = s.map((R) => R?.text ?? ""), F = e.map((R) => R?.text ?? "");
1548
1562
  return z(
1549
1563
  !!l.showOnlyFirstAndLast,
1550
1564
  !!l.showOnlyAtModulo,
1551
1565
  Math.max(1, f.value || 1),
1552
1566
  o,
1553
- P,
1567
+ F,
1554
1568
  i,
1555
1569
  a,
1556
1570
  r
@@ -1567,58 +1581,58 @@ const _n = {
1567
1581
  prefix: i.prefix || t.value.chart.labels.prefix,
1568
1582
  suffix: i.suffix || t.value.chart.labels.suffix
1569
1583
  }));
1570
- Gt("selectTimeLabel", {
1584
+ Ut("selectTimeLabel", {
1571
1585
  datapoint: e,
1572
1586
  absoluteIndex: l.absoluteIndex,
1573
1587
  label: l.text
1574
1588
  });
1575
1589
  }
1576
- const $ = x(() => {
1590
+ const S = x(() => {
1577
1591
  const l = Vl((w.value.end ?? 0) - (w.value.start ?? 0));
1578
1592
  return Math.max(1, l);
1579
1593
  });
1580
1594
  function wl(l) {
1581
- W.value = l;
1595
+ X.value = l;
1582
1596
  }
1583
1597
  function st() {
1584
1598
  p.value.isStacked = !p.value.isStacked, p.value.isStacked ? p.value.useIndividualScale = !0 : p.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale;
1585
1599
  }
1586
- function Bt(l) {
1587
- Mt.value && l.autoScaling && (t.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), t.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
1600
+ function Et(l) {
1601
+ Lt.value && l.autoScaling && (t.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), t.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
1588
1602
  }
1589
- function Ct(l, s) {
1603
+ function At(l, s) {
1590
1604
  const e = Vl(l), i = Array(e).fill(0);
1591
1605
  for (let a = 0; a < s.length && a < e; a += 1) i[a] = s[a] ?? 0;
1592
1606
  return i;
1593
1607
  }
1594
1608
  function oa(l) {
1595
- const s = Math.max(...$e.value.map((e) => yt(e.series).length));
1609
+ const s = Math.max(..._e.value.map((e) => yt(e.series).length));
1596
1610
  return l > s ? s : l < 0 || t.value.chart.zoom.startIndex !== null && l < t.value.chart.zoom.startIndex ? t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex + 1 : 1 : l;
1597
1611
  }
1598
- const ul = y(!1), _e = y(!1);
1612
+ const ul = y(!1), Me = y(!1);
1599
1613
  function il() {
1600
1614
  if (!ul.value) {
1601
1615
  ul.value = !0;
1602
1616
  try {
1603
- const { startIndex: l, endIndex: s } = t.value.chart.zoom, e = Math.max(...$e.value.map((r) => yt(r.series).length)), i = l ?? 0, a = s != null ? Math.min(oa(s + 1), e) : e;
1604
- At.value = !0, w.value.start = i, w.value.end = a, We.value.start = i, We.value.end = a, Lt(), _e.value = !0;
1617
+ const { startIndex: l, endIndex: s } = t.value.chart.zoom, e = Math.max(..._e.value.map((r) => yt(r.series).length)), i = l ?? 0, a = s != null ? Math.min(oa(s + 1), e) : e;
1618
+ zt.value = !0, w.value.start = i, w.value.end = a, We.value.start = i, We.value.end = a, Ct(), Me.value = !0;
1605
1619
  } finally {
1606
1620
  queueMicrotask(() => {
1607
- At.value = !1;
1621
+ zt.value = !1;
1608
1622
  }), ul.value = !1;
1609
1623
  }
1610
1624
  }
1611
1625
  }
1612
- const At = y(!1);
1626
+ const zt = y(!1);
1613
1627
  function na(l) {
1614
- ul.value || At.value || l !== w.value.start && (w.value.start = l, We.value.start = l, Lt());
1628
+ ul.value || zt.value || l !== w.value.start && (w.value.start = l, We.value.start = l, Ct());
1615
1629
  }
1616
- function Ma(l) {
1617
- if (ul.value || At.value) return;
1630
+ function La(l) {
1631
+ if (ul.value || zt.value) return;
1618
1632
  const s = oa(l);
1619
- s !== w.value.end && (w.value.end = s, We.value.end = s, Lt());
1633
+ s !== w.value.end && (w.value.end = s, We.value.end = s, Ct());
1620
1634
  }
1621
- async function La() {
1635
+ async function Ca() {
1622
1636
  await il();
1623
1637
  }
1624
1638
  function Ye(l) {
@@ -1630,25 +1644,25 @@ const _n = {
1630
1644
  }
1631
1645
  const Ie = x(() => isNaN(sl(ol.value)) ? c.value.bottom : c.value.bottom - c.value.height * sl(ol.value));
1632
1646
  function Ba(l) {
1633
- const s = ![null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) && t.value.chart.grid.labels.yAxis.scaleMin > 0 && Ft.value >= 0 ? c.value.bottom : Ie.value;
1647
+ const s = ![null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) && t.value.chart.grid.labels.yAxis.scaleMin > 0 && Rt.value >= 0 ? c.value.bottom : Ie.value;
1634
1648
  return l.value >= 0 ? q(s - l.y <= 0 ? 1e-5 : s - l.y) : q(l.y - Ie.value <= 0 ? 1e-5 : l.y - Ie.value);
1635
1649
  }
1636
1650
  function Ea(l) {
1637
1651
  return l.value >= 0 ? q(l.zeroPosition - l.y <= 0 ? 1e-5 : l.zeroPosition - l.y) : q(l.y - l.zeroPosition <= 0 ? 1e-5 : l.zeroPosition - l.y);
1638
1652
  }
1639
- const ve = x(() => {
1640
- const l = Math.max(1, $.value), s = Math.max(1, c.value.width), e = Math.max(1, je.value.filter((i) => i.type === "bar" && !ce.value.includes(i.id)).length);
1653
+ const de = x(() => {
1654
+ const l = Math.max(1, S.value), s = Math.max(1, c.value.width), e = Math.max(1, je.value.filter((i) => i.type === "bar" && !ve.value.includes(i.id)).length);
1641
1655
  return {
1642
- bar: Nt(s, l * e, 1),
1643
- plot: Nt(s, l, 1),
1644
- line: Nt(s, l, 1)
1656
+ bar: Pt(s, l * e, 1),
1657
+ plot: Pt(s, l, 1),
1658
+ line: Pt(s, l, 1)
1645
1659
  };
1646
1660
  });
1647
1661
  function Sl() {
1648
- return p.value.useIndividualScale && p.value.isStacked ? ve.value.line - c.value.width / $.value * 0.1 : ve.value.bar;
1662
+ return p.value.useIndividualScale && p.value.isStacked ? de.value.line - c.value.width / S.value * 0.1 : de.value.bar;
1649
1663
  }
1650
1664
  function ua(l) {
1651
- return p.value.useIndividualScale && p.value.isStacked ? l.x + c.value.width / $.value * 0.05 : l.x + ve.value.bar / 2;
1665
+ return p.value.useIndividualScale && p.value.isStacked ? l.x + c.value.width / S.value * 0.05 : l.x + de.value.bar / 2;
1652
1666
  }
1653
1667
  function Ha(l) {
1654
1668
  return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(Ie.value) ? c.bottom.value : Ie.value;
@@ -1657,37 +1671,64 @@ const _n = {
1657
1671
  return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(l.zeroPosition) ? 0 : l.zeroPosition;
1658
1672
  }
1659
1673
  const Yl = y(null);
1660
- let rl = 0;
1661
- function _o(l, s, e) {
1662
- return l >= e.left && l <= e.right && s >= e.top && s <= e.bottom;
1674
+ function Wa(l) {
1675
+ const s = $e.value;
1676
+ if (!s) return null;
1677
+ if (s.createSVGPoint && s.getScreenCTM) {
1678
+ const N = s.createSVGPoint();
1679
+ N.x = l.clientX, N.y = l.clientY;
1680
+ const ee = s.getScreenCTM();
1681
+ if (ee) {
1682
+ const I = N.matrixTransform(ee.inverse());
1683
+ return { x: I.x, y: I.y, ok: !0 };
1684
+ }
1685
+ }
1686
+ const e = s.getBoundingClientRect(), i = s.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height }, a = Math.min(e.width / i.width, e.height / i.height), r = i.width * a, o = i.height * a, F = (e.width - r) / 2, R = (e.height - o) / 2, O = (l.clientX - e.left - F) / a + i.x, T = (l.clientY - e.top - R) / a + i.y;
1687
+ return { x: O, y: T, ok: !0 };
1663
1688
  }
1664
- function Mo(l) {
1665
- if (Ee.value) return;
1666
- rl && cancelAnimationFrame(rl);
1667
- const s = Ce.value?.getBoundingClientRect();
1668
- rl = requestAnimationFrame(() => {
1669
- if (rl = 0, !s || !_o(l.clientX, l.clientY, s)) {
1670
- Ca();
1689
+ let rl = 0;
1690
+ function Co(l) {
1691
+ Ee.value || (rl && cancelAnimationFrame(rl), rl = requestAnimationFrame(() => {
1692
+ rl = 0;
1693
+ const s = Wa(l);
1694
+ if (!s || !$e.value) {
1695
+ ia();
1671
1696
  return;
1672
1697
  }
1673
- const i = Ce.value.viewBox.baseVal.width / s.width, r = (l.clientX - s.left) * i - c.value.left, o = c.value.width / $.value, P = Math.floor(r / o);
1674
- P >= 0 && P < $.value ? Yl.value !== P && (Yl.value = P, Qa(!0, P)) : Ca();
1675
- });
1698
+ const { left: e, right: i, top: a, bottom: r, width: o } = c.value;
1699
+ if (s.x < e || s.x > i || s.y < a || s.y > r) {
1700
+ ia();
1701
+ return;
1702
+ }
1703
+ const F = s.x - e, R = o / S.value, O = Math.floor(F / R);
1704
+ O >= 0 && O < S.value ? Yl.value !== O && (Yl.value = O, to(!0, O)) : ia();
1705
+ }));
1676
1706
  }
1677
- function Ca() {
1678
- rl && (cancelAnimationFrame(rl), rl = 0), Yl.value = null, Qa(!1, null);
1707
+ function ia() {
1708
+ rl && (cancelAnimationFrame(rl), rl = 0), Yl.value = null, to(!1, null);
1679
1709
  }
1680
- function Lo() {
1681
- Yl.value != null && Co(Yl.value);
1710
+ function Xa(l) {
1711
+ const s = Wa(l);
1712
+ if (s && $e.value) {
1713
+ const { left: e, right: i, top: a, bottom: r, width: o } = c.value;
1714
+ if (s.x >= e && s.x <= i && s.y >= a && s.y <= r) {
1715
+ const F = o / Math.max(1, S.value), R = Math.floor((s.x - e) / F);
1716
+ if (R >= 0 && R < S.value) {
1717
+ Ya(R);
1718
+ return;
1719
+ }
1720
+ }
1721
+ }
1722
+ Yl.value != null && Ya(Yl.value);
1682
1723
  }
1683
- function Co(l) {
1724
+ function Ya(l) {
1684
1725
  const s = Fe.value.map((e) => ({
1685
1726
  name: e.name,
1686
1727
  value: [null, void 0, NaN].includes(e.absoluteValues[l]) ? null : e.absoluteValues[l],
1687
1728
  color: e.color,
1688
1729
  type: e.type
1689
1730
  }));
1690
- Gt(
1731
+ Ut(
1691
1732
  "selectX",
1692
1733
  {
1693
1734
  dataset: s,
@@ -1716,14 +1757,14 @@ const _n = {
1716
1757
  aspectRatio: i
1717
1758
  };
1718
1759
  }
1719
- function Wa(l) {
1720
- if (ce.value.includes(l.id))
1721
- ce.value = ce.value.filter((s) => s !== l.id);
1760
+ function Ga(l) {
1761
+ if (ve.value.includes(l.id))
1762
+ ve.value = ve.value.filter((s) => s !== l.id);
1722
1763
  else {
1723
- if (ce.value.length + 1 === je.value.length) return;
1724
- ce.value.push(l.id);
1764
+ if (ve.value.length + 1 === je.value.length) return;
1765
+ ve.value.push(l.id);
1725
1766
  }
1726
- Gt("selectLegend", Fe.value.map((s) => ({
1767
+ Ut("selectLegend", Fe.value.map((s) => ({
1727
1768
  name: s.name,
1728
1769
  values: s.absoluteValues,
1729
1770
  color: s.color,
@@ -1733,8 +1774,8 @@ const _n = {
1733
1774
  const To = x(() => {
1734
1775
  const l = t.value.chart.title.text || "Chart visualization", s = t.value.chart.title.subtitle.text || "";
1735
1776
  return `${l}. ${s}`;
1736
- }), Xa = x(() => ({
1737
- linePlot: $.value > t.value.line.dot.hideAboveMaxSerieLength
1777
+ }), Ua = x(() => ({
1778
+ linePlot: S.value > t.value.line.dot.hideAboveMaxSerieLength
1738
1779
  })), Io = x(() => t.value.chart.userOptions.show && (!t.value.chart.title.show || !t.value.chart.title.text)), No = x(() => {
1739
1780
  if (Array.isArray(t.value.chart.highlightArea))
1740
1781
  return t.value.chart.highlightArea.map((s) => {
@@ -1749,18 +1790,18 @@ const _n = {
1749
1790
  to: Math.min(t.value.chart.highlightArea.to, Qe.value - 1)
1750
1791
  };
1751
1792
  return [{ ...l, span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1 }];
1752
- }), Ya = x(() => Kt.value ? $e.value.map((l, s) => ({
1793
+ }), qa = x(() => Jt.value ? _e.value.map((l, s) => ({
1753
1794
  ...l,
1754
1795
  series: yt(l.series),
1755
1796
  id: `uniqueId_${s}`,
1756
- color: xo(l.color ? l.color : ll.value[s] ? ll.value[s] : bo[s])
1757
- })) : $e.value), Po = x(() => Fe.value.map((l) => {
1797
+ color: po(l.color ? l.color : ll.value[s] ? ll.value[s] : ko[s])
1798
+ })) : _e.value), Po = x(() => Fe.value.map((l) => {
1758
1799
  const s = l.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
1759
1800
  return {
1760
1801
  id: l.id,
1761
1802
  name: l.name,
1762
1803
  color: l.color,
1763
- values: Ct($.value, s)
1804
+ values: At(S.value, s)
1764
1805
  };
1765
1806
  })), Fo = x(() => ({
1766
1807
  responsiveBreakpoint: t.value.table.responsiveBreakpoint,
@@ -1788,70 +1829,70 @@ const _n = {
1788
1829
  sparkline: {
1789
1830
  animation: { show: !1 }
1790
1831
  }
1791
- })), ue = x(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value / 2), cl = x(() => ln(et.value.filter((l) => !ce.value.includes(l.id)))), N = x(() => {
1832
+ })), ue = x(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / S.value / 2), cl = x(() => ln(et.value.filter((l) => !ve.value.includes(l.id)))), P = x(() => {
1792
1833
  const l = Object.groupBy(cl.value, (e) => e.scaleLabel), s = {};
1793
1834
  for (const [e, i] of Object.entries(l)) {
1794
1835
  const a = i.flatMap((r) => r.absoluteValues);
1795
1836
  s[e] = {
1796
1837
  min: Math.min(...a) || 0,
1797
1838
  max: Math.max(...a) || 1,
1798
- groupId: `scale_group_${ga()}`
1839
+ groupId: `scale_group_${xa()}`
1799
1840
  };
1800
1841
  }
1801
1842
  return s;
1802
1843
  }), Ro = x(() => {
1803
- const l = je.value.filter((s) => s.type === "bar").filter((s) => !ce.value.includes(s.id)).length;
1804
- return c.value.width / $.value / l - ia.value * l;
1805
- }), ia = x(() => ve.value.line * t.value.bar.periodGap), sa = x(() => Math.max(1e-5, Sl() - (p.value.useIndividualScale && p.value.isStacked ? 0 : ia.value))), ra = x(() => sa.value * Math.min(Math.abs(t.value.bar.innerGap), 0.95)), Oo = x(() => {
1844
+ const l = je.value.filter((s) => s.type === "bar").filter((s) => !ve.value.includes(s.id)).length;
1845
+ return c.value.width / S.value / l - sa.value * l;
1846
+ }), sa = x(() => de.value.line * t.value.bar.periodGap), ra = x(() => Math.max(1e-5, Sl() - (p.value.useIndividualScale && p.value.isStacked ? 0 : sa.value))), ca = x(() => ra.value * Math.min(Math.abs(t.value.bar.innerGap), 0.95)), Oo = x(() => {
1806
1847
  if (!t.value.chart.zoom.minimap.show) return [];
1807
- const l = Ya.value.filter((a) => !ce.value.includes(a.id)), s = Math.max(...l.map((a) => a.series.length)), e = [];
1848
+ const l = qa.value.filter((a) => !ve.value.includes(a.id)), s = Math.max(...l.map((a) => a.series.length)), e = [];
1808
1849
  for (let a = 0; a < s; a += 1)
1809
1850
  e.push(l.map((r) => r.series[a] || 0).reduce((r, o) => (r || 0) + (o || 0), 0));
1810
1851
  const i = Math.min(...e);
1811
1852
  return e.map((a) => a + (i < 0 ? Math.abs(i) : 0));
1812
- }), Vo = x(() => t.value.chart.zoom.minimap.show ? Ya.value.map((s) => ({
1853
+ }), Vo = x(() => t.value.chart.zoom.minimap.show ? qa.value.map((s) => ({
1813
1854
  ...s,
1814
- isVisible: !ce.value.includes(s.id)
1815
- })) : []), zt = x(() => Fe.value.map((l) => ({
1855
+ isVisible: !ve.value.includes(s.id)
1856
+ })) : []), Tt = x(() => Fe.value.map((l) => ({
1816
1857
  slotAbsoluteIndex: l.slotAbsoluteIndex,
1817
1858
  shape: l.shape || null,
1818
1859
  name: l.name,
1819
1860
  color: l.color,
1820
1861
  type: l.type,
1821
- value: l.absoluteValues.find((s, e) => e === _.value),
1862
+ value: l.absoluteValues.find((s, e) => e === M.value),
1822
1863
  comments: l.comments || [],
1823
1864
  prefix: l.prefix || t.value.chart.labels.prefix,
1824
1865
  suffix: l.suffix || t.value.chart.labels.suffix
1825
- }))), Ga = x(() => Xe.value.ticks.map((l) => ({
1866
+ }))), Za = x(() => Xe.value.ticks.map((l) => ({
1826
1867
  y: l >= 0 ? Ie.value - c.value.height * sl(l) : Ie.value + c.value.height * sl(Math.abs(l)),
1827
1868
  value: l,
1828
1869
  prefix: t.value.chart.labels.prefix,
1829
1870
  suffix: t.value.chart.labels.suffix
1830
- }))), Ua = x(() => {
1871
+ }))), Ka = x(() => {
1831
1872
  const l = t.value.chart.annotations;
1832
1873
  if (!l || !Array.isArray(l) || l.every((T) => !T.show)) return [];
1833
1874
  const s = l.filter(
1834
1875
  (T) => T.show && (T.yAxis.yTop != null || T.yAxis.yBottom != null)
1835
1876
  );
1836
1877
  if (!s.length) return [];
1837
- const { left: e, right: i } = c.value, a = Ie.value, r = c.value.height, o = Xe.value.min, H = Xe.value.max - o, G = (T) => {
1838
- const F = (T - 0) / H;
1839
- return a - F * r;
1878
+ const { left: e, right: i } = c.value, a = Ie.value, r = c.value.height, o = Xe.value.min, R = Xe.value.max - o, O = (T) => {
1879
+ const N = (T - 0) / R;
1880
+ return a - N * r;
1840
1881
  };
1841
1882
  return s.map((T) => {
1842
- const { yAxis: { yTop: F, yBottom: ee, label: I } } = T, U = F != null && ee != null && F !== ee, R = F == null ? null : G(F), de = ee == null ? null : G(ee), X = aa(I.fontSize);
1843
- X.font = `${I.fontSize}px sans-serif`;
1844
- const O = X.measureText(I.text).width, se = I.fontSize, Oe = (I.position === "start" ? e + I.padding.left : i - I.padding.right) + I.offsetX, Ge = (R != null && de != null ? Math.min(R, de) : R ?? de) - I.fontSize / 3 + I.offsetY - I.padding.top;
1883
+ const { yAxis: { yTop: N, yBottom: ee, label: I } } = T, U = N != null && ee != null && N !== ee, V = N == null ? null : O(N), he = ee == null ? null : O(ee), Y = aa(I.fontSize);
1884
+ Y.font = `${I.fontSize}px sans-serif`;
1885
+ const B = Y.measureText(I.text).width, se = I.fontSize, Oe = (I.position === "start" ? e + I.padding.left : i - I.padding.right) + I.offsetX, Ge = (V != null && he != null ? Math.min(V, he) : V ?? he) - I.fontSize / 3 + I.offsetY - I.padding.top;
1845
1886
  let J;
1846
- I.textAnchor === "middle" ? J = Oe - O / 2 - I.padding.left : I.textAnchor === "end" ? J = Oe - O - I.padding.right : J = Oe - I.padding.left;
1887
+ I.textAnchor === "middle" ? J = Oe - B / 2 - I.padding.left : I.textAnchor === "end" ? J = Oe - B - I.padding.right : J = Oe - I.padding.left;
1847
1888
  const Q = Ge - se * 0.75 - I.padding.top;
1848
1889
  return {
1849
- show: ![R, de, Q].includes(NaN),
1850
- id: `annotation_y_${ga()}`,
1890
+ show: ![V, he, Q].includes(NaN),
1891
+ id: `annotation_y_${xa()}`,
1851
1892
  hasArea: U,
1852
- areaHeight: U ? Math.abs(R - de) : 0,
1853
- yTop: R,
1854
- yBottom: de,
1893
+ areaHeight: U ? Math.abs(V - he) : 0,
1894
+ yTop: V,
1895
+ yBottom: he,
1855
1896
  config: T.yAxis,
1856
1897
  x1: e,
1857
1898
  x2: i,
@@ -1859,7 +1900,7 @@ const _n = {
1859
1900
  _box: {
1860
1901
  x: J,
1861
1902
  y: Q,
1862
- width: O + I.padding.left + I.padding.right,
1903
+ width: B + I.padding.left + I.padding.right,
1863
1904
  height: se + I.padding.top + I.padding.bottom,
1864
1905
  fill: I.backgroundColor,
1865
1906
  stroke: I.border.stroke,
@@ -1870,55 +1911,55 @@ const _n = {
1870
1911
  };
1871
1912
  });
1872
1913
  });
1873
- function qa(l, s) {
1914
+ function Ja(l, s) {
1874
1915
  const e = l[s - 1], i = l[s + 1];
1875
1916
  let a = !!e && !!i && e.value == null && i.value == null || !e && !!i && i.value == null || !!e && !i && e.value == null;
1876
1917
  return Ye(l[s].value) && a && t.value.line.cutNullValues;
1877
1918
  }
1878
- const Tt = x(() => {
1919
+ const It = x(() => {
1879
1920
  const l = cl.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, i = p.value.isStacked, a = i ? e * (s - 1) : 0, r = c.value.height - a;
1880
- return l.filter((o) => o.type === "bar").map((o, P) => {
1881
- Bt(o);
1882
- const H = N.value[o.scaleLabel].min, G = N.value[o.scaleLabel].max;
1883
- o.absoluteValues.filter((K) => ![null, void 0].includes(K)).map((K) => (K - H) / (G - H));
1921
+ return l.filter((o) => o.type === "bar").map((o, F) => {
1922
+ Et(o);
1923
+ const R = P.value[o.scaleLabel].min, O = P.value[o.scaleLabel].max;
1924
+ o.absoluteValues.filter((K) => ![null, void 0].includes(K)).map((K) => (K - R) / (O - R));
1884
1925
  const T = {
1885
- valueMin: H,
1886
- valueMax: G < 0 ? 0 : G
1887
- }, F = {
1926
+ valueMin: R,
1927
+ valueMax: O < 0 ? 0 : O
1928
+ }, N = {
1888
1929
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
1889
1930
  min: o.scaleMin || Math.min(...o.absoluteValues.filter((K) => ![void 0, null].includes(K))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((K) => ![null, void 0].includes(K)))
1890
- }, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, U = t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(F.min, F.max === F.min ? F.max * I : F.max, ee) : hl(F.min, F.max === F.min ? F.max * I : F.max, ee), R = t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(T.valueMin, T.valueMax === T.valueMin ? T.valueMax * I : T.valueMax, ee) : hl(T.valueMin, T.valueMax === T.valueMin ? T.valueMax * I : T.valueMax, ee), de = U.min >= 0 ? 0 : Math.abs(U.min), X = 0, O = U.max + de, se = R.max + Math.abs(X), Oe = o.stackIndex, _l = s - 1 - Oe, Ge = i ? 1 - o.cumulatedStackRatio : 0, J = i ? r * Ge + e * _l : 0, Q = i ? r * o.stackRatio : c.value.height, be = c.value.bottom - J - Q * de / O, Ue = c.value.bottom - J - Q * X / se, Ne = et.value.filter((K) => K.type === "bar").filter((K) => !ce.value.includes(K.id)).length, ql = o.series.map((K, pe) => {
1891
- const Ht = p.value.useIndividualScale ? (o.absoluteValues[pe] + de) / O : sl(K), vl = p.value.useIndividualScale && p.value.isStacked ? c.value.left + c.value.width / $.value * pe : c.value.left + ve.value.bar * P + ve.value.bar * pe * Ne - Ro.value / 2 - P * ia.value;
1931
+ }, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, U = t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(N.min, N.max === N.min ? N.max * I : N.max, ee) : hl(N.min, N.max === N.min ? N.max * I : N.max, ee), V = t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(T.valueMin, T.valueMax === T.valueMin ? T.valueMax * I : T.valueMax, ee) : hl(T.valueMin, T.valueMax === T.valueMin ? T.valueMax * I : T.valueMax, ee), he = U.min >= 0 ? 0 : Math.abs(U.min), Y = 0, B = U.max + he, se = V.max + Math.abs(Y), Oe = o.stackIndex, _l = s - 1 - Oe, Ge = i ? 1 - o.cumulatedStackRatio : 0, J = i ? r * Ge + e * _l : 0, Q = i ? r * o.stackRatio : c.value.height, be = c.value.bottom - J - Q * he / B, Ue = c.value.bottom - J - Q * Y / se, Ne = et.value.filter((K) => K.type === "bar").filter((K) => !ve.value.includes(K.id)).length, ql = o.series.map((K, pe) => {
1932
+ const Dt = p.value.useIndividualScale ? (o.absoluteValues[pe] + he) / B : sl(K), vl = p.value.useIndividualScale && p.value.isStacked ? c.value.left + c.value.width / S.value * pe : c.value.left + de.value.bar * F + de.value.bar * pe * Ne - Ro.value / 2 - F * sa.value;
1892
1933
  return {
1893
1934
  yOffset: q(J),
1894
1935
  individualHeight: q(Q),
1895
1936
  x: q(vl),
1896
- y: c.value.bottom - J - Q * Ht,
1937
+ y: c.value.bottom - J - Q * Dt,
1897
1938
  value: o.absoluteValues[pe],
1898
1939
  zeroPosition: q(be),
1899
- individualMax: q(O),
1940
+ individualMax: q(B),
1900
1941
  comment: o.comments && o.comments.slice(w.value.start, w.value.end)[pe] || ""
1901
1942
  };
1902
- }), Ve = o.absoluteValues.map((K) => R.min >= 0 ? (K - Math.abs(R.min)) / (R.max - Math.abs(R.min)) : (K + Math.abs(R.min)) / (R.max + Math.abs(R.min))), Et = o.series.map((K, pe) => {
1903
- const Ht = p.value.useIndividualScale && p.value.isStacked ? c.value.left + c.value.width / $.value * pe : c.value.left - ve.value.bar / 2 + ve.value.bar * P + ve.value.bar * pe * et.value.filter((vl) => vl.type === "bar").filter((vl) => !ce.value.includes(vl.id)).length;
1943
+ }), Ve = o.absoluteValues.map((K) => V.min >= 0 ? (K - Math.abs(V.min)) / (V.max - Math.abs(V.min)) : (K + Math.abs(V.min)) / (V.max + Math.abs(V.min))), Ht = o.series.map((K, pe) => {
1944
+ const Dt = p.value.useIndividualScale && p.value.isStacked ? c.value.left + c.value.width / S.value * pe : c.value.left - de.value.bar / 2 + de.value.bar * F + de.value.bar * pe * et.value.filter((vl) => vl.type === "bar").filter((vl) => !ve.value.includes(vl.id)).length;
1904
1945
  return {
1905
1946
  yOffset: q(J),
1906
1947
  individualHeight: q(Q),
1907
- x: q(Ht),
1948
+ x: q(Dt),
1908
1949
  y: q(c.value.bottom - q(J) - (q(Q) * Ve[pe] || 0)),
1909
1950
  value: o.absoluteValues[pe],
1910
1951
  zeroPosition: q(be),
1911
- individualMax: q(O),
1952
+ individualMax: q(B),
1912
1953
  comment: o.comments && o.comments.slice(w.value.start, w.value.end)[pe] || ""
1913
1954
  };
1914
1955
  }), oe = U.ticks.map((K) => ({
1915
- y: K >= 0 ? be - Q * (K / O) : be + Q * Math.abs(K) / O,
1956
+ y: K >= 0 ? be - Q * (K / B) : be + Q * Math.abs(K) / B,
1916
1957
  value: K,
1917
1958
  prefix: o.prefix || t.value.chart.labels.prefix,
1918
1959
  suffix: o.suffix || t.value.chart.labels.suffix,
1919
1960
  datapoint: o
1920
- })), ye = R.ticks.map((K) => {
1921
- const pe = (K - R.min) / (R.max - R.min);
1961
+ })), ye = V.ticks.map((K) => {
1962
+ const pe = (K - V.min) / (V.max - V.min);
1922
1963
  return {
1923
1964
  y: K >= 0 ? Ue - Q * pe : Ue + Q * pe,
1924
1965
  value: K,
@@ -1927,126 +1968,126 @@ const _n = {
1927
1968
  datapoint: o
1928
1969
  };
1929
1970
  });
1930
- return N.value[o.scaleLabel].name = o.name, N.value[o.scaleLabel].groupName = o.scaleLabel, N.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, N.value[o.scaleLabel].color = o.color, N.value[o.scaleLabel].scaleYLabels = o.autoScaling ? ye : oe, N.value[o.scaleLabel].zeroPosition = o.autoScaling ? Ue : be, N.value[o.scaleLabel].individualMax = o.autoScaling ? se : O, N.value[o.scaleLabel].scaleLabel = o.scaleLabel, N.value[o.scaleLabel].id = o.id, N.value[o.scaleLabel].yOffset = J, N.value[o.scaleLabel].individualHeight = Q, N.value[o.scaleLabel].autoScaleYLabels = ye, N.value[o.scaleLabel].unique = cl.value.filter((K) => K.scaleLabel === o.scaleLabel).length === 1, {
1971
+ return P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ? ye : oe, P.value[o.scaleLabel].zeroPosition = o.autoScaling ? Ue : be, P.value[o.scaleLabel].individualMax = o.autoScaling ? se : B, P.value[o.scaleLabel].scaleLabel = o.scaleLabel, P.value[o.scaleLabel].id = o.id, P.value[o.scaleLabel].yOffset = J, P.value[o.scaleLabel].individualHeight = Q, P.value[o.scaleLabel].autoScaleYLabels = ye, P.value[o.scaleLabel].unique = cl.value.filter((K) => K.scaleLabel === o.scaleLabel).length === 1, {
1931
1972
  ...o,
1932
1973
  yOffset: J,
1933
1974
  autoScaleYLabels: ye,
1934
1975
  individualHeight: Q,
1935
1976
  scaleYLabels: o.autoScaling ? ye : oe,
1936
- individualScale: o.autoScaling ? R : U,
1937
- individualMax: o.autoScaling ? se : O,
1977
+ individualScale: o.autoScaling ? V : U,
1978
+ individualMax: o.autoScaling ? se : B,
1938
1979
  zeroPosition: o.autoScaling ? Ue : be,
1939
- plots: o.autoScaling ? Et : ql,
1940
- groupId: N.value[o.scaleLabel].groupId
1980
+ plots: o.autoScaling ? Ht : ql,
1981
+ groupId: P.value[o.scaleLabel].groupId
1941
1982
  };
1942
1983
  });
1943
1984
  }), Re = x(() => {
1944
1985
  const l = cl.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, i = p.value.isStacked, a = i ? e * (s - 1) : 0, r = c.value.height - a;
1945
- return l.filter((o) => o.type === "line").map((o, P) => {
1946
- Bt(o);
1947
- const H = N.value[o.scaleLabel].min, G = N.value[o.scaleLabel].max;
1948
- o.absoluteValues.filter((Y) => ![null, void 0].includes(Y)).map((Y) => (Y - H) / (G - H));
1986
+ return l.filter((o) => o.type === "line").map((o, F) => {
1987
+ Et(o);
1988
+ const R = P.value[o.scaleLabel].min, O = P.value[o.scaleLabel].max;
1989
+ o.absoluteValues.filter((G) => ![null, void 0].includes(G)).map((G) => (G - R) / (O - R));
1949
1990
  const T = {
1950
- valueMin: H,
1951
- valueMax: G
1952
- }, F = {
1991
+ valueMin: R,
1992
+ valueMax: O
1993
+ }, N = {
1953
1994
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
1954
1995
  min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
1955
- }, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, U = t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(F.min, F.max === F.min ? F.max * I : F.max, ee) : hl(F.min, F.max === F.min ? F.max * I : F.max, ee), R = t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(T.valueMin, T.valueMax === T.valueMin ? T.valueMax * I : T.valueMax, ee) : hl(T.valueMin, T.valueMax === T.valueMin ? T.valueMax * I : T.valueMax, ee), de = U.min >= 0 ? 0 : Math.abs(U.min), X = 0, O = U.max + Math.abs(de), se = R.max + Math.abs(X), Oe = o.stackIndex, _l = s - 1 - Oe, Ge = i ? 1 - o.cumulatedStackRatio : 0, J = i ? r * Ge + e * _l : 0, Q = i ? r * o.stackRatio : c.value.height, be = c.value.bottom - J - Q * de / O, Ue = c.value.bottom - J - Q * X / se, Ne = o.series.map((Y, Ae) => {
1956
- const Xo = p.value.useIndividualScale ? (o.absoluteValues[Ae] + Math.abs(de)) / O : sl(Y);
1996
+ }, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, U = t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(N.min, N.max === N.min ? N.max * I : N.max, ee) : hl(N.min, N.max === N.min ? N.max * I : N.max, ee), V = t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(T.valueMin, T.valueMax === T.valueMin ? T.valueMax * I : T.valueMax, ee) : hl(T.valueMin, T.valueMax === T.valueMin ? T.valueMax * I : T.valueMax, ee), he = U.min >= 0 ? 0 : Math.abs(U.min), Y = 0, B = U.max + Math.abs(he), se = V.max + Math.abs(Y), Oe = o.stackIndex, _l = s - 1 - Oe, Ge = i ? 1 - o.cumulatedStackRatio : 0, J = i ? r * Ge + e * _l : 0, Q = i ? r * o.stackRatio : c.value.height, be = c.value.bottom - J - Q * he / B, Ue = c.value.bottom - J - Q * Y / se, Ne = o.series.map((G, Ae) => {
1997
+ const Xo = p.value.useIndividualScale ? (o.absoluteValues[Ae] + Math.abs(he)) / B : sl(G);
1957
1998
  return {
1958
- x: q(c.value.left + ve.value.line / 2 + ve.value.line * Ae),
1999
+ x: q(c.value.left + de.value.line / 2 + de.value.line * Ae),
1959
2000
  y: q(c.value.bottom - J - Q * Xo),
1960
2001
  value: o.absoluteValues[Ae],
1961
2002
  comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Ae] || ""
1962
2003
  };
1963
- }), ql = o.absoluteValues.map((Y) => R.min >= 0 ? (Y - Math.abs(R.min)) / (R.max - Math.abs(R.min)) : (Y + Math.abs(R.min)) / (R.max + Math.abs(R.min))), Ve = o.series.map((Y, Ae) => [void 0, null].includes(o.absoluteValues[Ae]) ? {
1964
- x: q(c.value.left + ve.value.line / 2 + ve.value.line * Ae),
2004
+ }), ql = o.absoluteValues.map((G) => V.min >= 0 ? (G - Math.abs(V.min)) / (V.max - Math.abs(V.min)) : (G + Math.abs(V.min)) / (V.max + Math.abs(V.min))), Ve = o.series.map((G, Ae) => [void 0, null].includes(o.absoluteValues[Ae]) ? {
2005
+ x: q(c.value.left + de.value.line / 2 + de.value.line * Ae),
1965
2006
  y: be,
1966
2007
  value: o.absoluteValues[Ae],
1967
2008
  comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Ae] || ""
1968
2009
  } : {
1969
- x: q(c.value.left + ve.value.line / 2 + ve.value.line * Ae),
2010
+ x: q(c.value.left + de.value.line / 2 + de.value.line * Ae),
1970
2011
  y: q(c.value.bottom - J - (Q * ql[Ae] || 0)),
1971
2012
  value: o.absoluteValues[Ae],
1972
2013
  comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Ae] || ""
1973
- }), Et = t.value.line.cutNullValues ? ba(Ne) : ya(Ne.filter((Y) => Y.value !== null)), oe = t.value.line.cutNullValues ? ba(Ve) : ya(Ve.filter((Y) => Y.value !== null)), ye = t.value.line.cutNullValues ? pa(Ne) : ka(Ne.filter((Y) => Y.value !== null)), K = t.value.line.cutNullValues ? pa(Ve) : ka(Ve.filter((Y) => Y.value !== null)), pe = U.ticks.map((Y) => ({
1974
- y: Y >= 0 ? be - Q * (Y / O) : be + Q * Math.abs(Y) / O,
1975
- value: Y,
2014
+ }), Ht = t.value.line.cutNullValues ? ya(Ne) : pa(Ne.filter((G) => G.value !== null)), oe = t.value.line.cutNullValues ? ya(Ve) : pa(Ve.filter((G) => G.value !== null)), ye = t.value.line.cutNullValues ? ka(Ne) : wa(Ne.filter((G) => G.value !== null)), K = t.value.line.cutNullValues ? ka(Ve) : wa(Ve.filter((G) => G.value !== null)), pe = U.ticks.map((G) => ({
2015
+ y: G >= 0 ? be - Q * (G / B) : be + Q * Math.abs(G) / B,
2016
+ value: G,
1976
2017
  prefix: o.prefix || t.value.chart.labels.prefix,
1977
2018
  suffix: o.suffix || t.value.chart.labels.suffix,
1978
2019
  datapoint: o
1979
- })), Ht = R.ticks.map((Y) => {
1980
- const Ae = (Y - R.min) / (R.max - R.min);
2020
+ })), Dt = V.ticks.map((G) => {
2021
+ const Ae = (G - V.min) / (V.max - V.min);
1981
2022
  return {
1982
- y: Y >= 0 ? Ue - Q * Ae : Ue + Q * Ae,
1983
- value: Y,
2023
+ y: G >= 0 ? Ue - Q * Ae : Ue + Q * Ae,
2024
+ value: G,
1984
2025
  prefix: o.prefix || t.value.chart.labels.prefix,
1985
2026
  suffix: o.suffix || t.value.chart.labels.suffix,
1986
2027
  datapoint: o
1987
2028
  };
1988
2029
  });
1989
- N.value[o.scaleLabel].name = o.name, N.value[o.scaleLabel].groupName = o.scaleLabel, N.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, N.value[o.scaleLabel].color = o.color, N.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ht : pe, N.value[o.scaleLabel].zeroPosition = o.autoScaling ? Ue : be, N.value[o.scaleLabel].individualMax = o.autoScaling ? se : O, N.value[o.scaleLabel].scaleLabel = o.scaleLabel, N.value[o.scaleLabel].id = o.id, N.value[o.scaleLabel].yOffset = J, N.value[o.scaleLabel].individualHeight = Q, N.value[o.scaleLabel].autoScaleYLabels = Ht, N.value[o.scaleLabel].unique = cl.value.filter((Y) => Y.scaleLabel === o.scaleLabel).length === 1;
2030
+ P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Dt : pe, P.value[o.scaleLabel].zeroPosition = o.autoScaling ? Ue : be, P.value[o.scaleLabel].individualMax = o.autoScaling ? se : B, P.value[o.scaleLabel].scaleLabel = o.scaleLabel, P.value[o.scaleLabel].id = o.id, P.value[o.scaleLabel].yOffset = J, P.value[o.scaleLabel].individualHeight = Q, P.value[o.scaleLabel].autoScaleYLabels = Dt, P.value[o.scaleLabel].unique = cl.value.filter((G) => G.scaleLabel === o.scaleLabel).length === 1;
1990
2031
  const vl = p.value.useIndividualScale ? o.autoScaling ? Ue : be : Ie.value, Zl = Math.max(Math.max(o.autoScaling ? Ue : pe.at(-1) ? pe.at(-1).y : 0, c.value.top), vl);
1991
2032
  return {
1992
2033
  ...o,
1993
2034
  yOffset: J,
1994
- autoScaleYLabels: Ht,
2035
+ autoScaleYLabels: Dt,
1995
2036
  individualHeight: Q,
1996
- scaleYLabels: o.autoScaling ? Ht : pe,
1997
- individualScale: o.autoScaling ? R : U,
1998
- individualMax: o.autoScaling ? se : O,
2037
+ scaleYLabels: o.autoScaling ? Dt : pe,
2038
+ individualScale: o.autoScaling ? V : U,
2039
+ individualMax: o.autoScaling ? se : B,
1999
2040
  zeroPosition: o.autoScaling ? Ue : be,
2000
- curve: o.autoScaling ? oe : Et,
2041
+ curve: o.autoScaling ? oe : Ht,
2001
2042
  plots: o.autoScaling ? Ve : Ne,
2002
- area: o.useArea ? p.value.useIndividualScale ? t.value.line.cutNullValues ? yo(
2043
+ area: o.useArea ? p.value.useIndividualScale ? t.value.line.cutNullValues ? wo(
2003
2044
  o.autoScaling ? Ve : Ne,
2004
2045
  Zl
2005
- ) : po(
2006
- o.autoScaling ? Ve.filter((Y) => Y.value !== null) : Ne.filter((Y) => Y.value !== null),
2046
+ ) : So(
2047
+ o.autoScaling ? Ve.filter((G) => G.value !== null) : Ne.filter((G) => G.value !== null),
2007
2048
  Zl
2008
- ) : t.value.line.cutNullValues ? yo(Ne, Zl) : po(Ne.filter((Y) => Y.value !== null), Zl) : "",
2049
+ ) : t.value.line.cutNullValues ? wo(Ne, Zl) : So(Ne.filter((G) => G.value !== null), Zl) : "",
2009
2050
  curveAreas: o.useArea ? an(
2010
- o.autoScaling ? t.value.line.cutNullValues ? Ve : Ve.filter((Y) => Y.value !== null) : t.value.line.cutNullValues ? Ne : Ne.filter((Y) => Y.value !== null),
2051
+ o.autoScaling ? t.value.line.cutNullValues ? Ve : Ve.filter((G) => G.value !== null) : t.value.line.cutNullValues ? Ne : Ne.filter((G) => G.value !== null),
2011
2052
  Zl,
2012
2053
  t.value.line.cutNullValues
2013
2054
  ) : [],
2014
2055
  straight: o.autoScaling ? K : ye,
2015
- groupId: N.value[o.scaleLabel].groupId
2056
+ groupId: P.value[o.scaleLabel].groupId
2016
2057
  };
2017
2058
  });
2018
2059
  }), rt = x(() => {
2019
2060
  const l = cl.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, i = p.value.isStacked, a = i ? e * (s - 1) : 0, r = c.value.height - a;
2020
2061
  return l.filter((o) => o.type === "plot").map((o) => {
2021
- Bt(o);
2022
- const P = N.value[o.scaleLabel].min, H = N.value[o.scaleLabel].max;
2023
- o.absoluteValues.filter((oe) => ![null, void 0].includes(oe)).map((oe) => (oe - P) / (H - P));
2024
- const G = {
2025
- valueMin: P,
2026
- valueMax: H
2062
+ Et(o);
2063
+ const F = P.value[o.scaleLabel].min, R = P.value[o.scaleLabel].max;
2064
+ o.absoluteValues.filter((oe) => ![null, void 0].includes(oe)).map((oe) => (oe - F) / (R - F));
2065
+ const O = {
2066
+ valueMin: F,
2067
+ valueMax: R
2027
2068
  }, T = {
2028
2069
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
2029
2070
  min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
2030
- }, F = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, ee = 1.0000001, I = hl(T.min, T.max === T.min ? T.max * ee : T.max, F), U = hl(G.valueMin, G.valueMax === G.valueMin ? G.valueMax * ee : G.valueMax, F), R = I.min >= 0 ? 0 : Math.abs(I.min), de = 0, X = I.max + R, O = U.max + Math.abs(de), se = o.stackIndex, Oe = s - 1 - se, _l = i ? 1 - o.cumulatedStackRatio : 0, Ge = i ? r * _l + e * Oe : 0, J = i ? r * o.stackRatio : c.value.height, Q = c.value.bottom - Ge - J * R / X, be = c.value.bottom - Ge - J * de / O, Ue = o.series.map((oe, ye) => {
2031
- const K = p.value.useIndividualScale ? (o.absoluteValues[ye] + Math.abs(R)) / X : sl(oe);
2071
+ }, N = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, ee = 1.0000001, I = hl(T.min, T.max === T.min ? T.max * ee : T.max, N), U = hl(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * ee : O.valueMax, N), V = I.min >= 0 ? 0 : Math.abs(I.min), he = 0, Y = I.max + V, B = U.max + Math.abs(he), se = o.stackIndex, Oe = s - 1 - se, _l = i ? 1 - o.cumulatedStackRatio : 0, Ge = i ? r * _l + e * Oe : 0, J = i ? r * o.stackRatio : c.value.height, Q = c.value.bottom - Ge - J * V / Y, be = c.value.bottom - Ge - J * he / B, Ue = o.series.map((oe, ye) => {
2072
+ const K = p.value.useIndividualScale ? (o.absoluteValues[ye] + Math.abs(V)) / Y : sl(oe);
2032
2073
  return {
2033
- x: q(c.value.left + ve.value.plot / 2 + ve.value.plot * ye),
2074
+ x: q(c.value.left + de.value.plot / 2 + de.value.plot * ye),
2034
2075
  y: q(c.value.bottom - Ge - J * K),
2035
2076
  value: o.absoluteValues[ye],
2036
2077
  comment: o.comments && o.comments.slice(w.value.start, w.value.end)[ye] || ""
2037
2078
  };
2038
2079
  }), Ne = o.absoluteValues.map((oe) => U.min >= 0 ? (oe - Math.abs(U.min)) / (U.max - Math.abs(U.min)) : (oe + Math.abs(U.min)) / (U.max + Math.abs(U.min))), ql = o.series.map((oe, ye) => ({
2039
- x: q(c.value.left + ve.value.plot / 2 + ve.value.plot * ye),
2080
+ x: q(c.value.left + de.value.plot / 2 + de.value.plot * ye),
2040
2081
  y: q(c.value.bottom - Ge - (J * Ne[ye] || 0)),
2041
2082
  value: o.absoluteValues[ye],
2042
2083
  comment: o.comments && o.comments.slice(w.value.start, w.value.end)[ye] || ""
2043
2084
  })), Ve = I.ticks.map((oe) => ({
2044
- y: oe >= 0 ? Q - J * (oe / X) : Q + J * Math.abs(oe) / X,
2085
+ y: oe >= 0 ? Q - J * (oe / Y) : Q + J * Math.abs(oe) / Y,
2045
2086
  value: oe,
2046
2087
  prefix: o.prefix || t.value.chart.labels.prefix,
2047
2088
  suffix: o.suffix || t.value.chart.labels.suffix,
2048
2089
  datapoint: o
2049
- })), Et = U.ticks.map((oe) => {
2090
+ })), Ht = U.ticks.map((oe) => {
2050
2091
  const ye = (oe - U.min) / (U.max - U.min);
2051
2092
  return {
2052
2093
  y: oe >= 0 ? be - J * ye : be + J * ye,
@@ -2056,17 +2097,17 @@ const _n = {
2056
2097
  datapoint: o
2057
2098
  };
2058
2099
  });
2059
- return N.value[o.scaleLabel].name = o.name, N.value[o.scaleLabel].groupName = o.scaleLabel, N.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, N.value[o.scaleLabel].color = o.color, N.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Et : Ve, N.value[o.scaleLabel].zeroPosition = o.autoScaling ? be : Q, N.value[o.scaleLabel].individualMax = o.autoScaling ? O : X, N.value[o.scaleLabel].scaleLabel = o.scaleLabel, N.value[o.scaleLabel].id = o.id, N.value[o.scaleLabel].yOffset = Ge, N.value[o.scaleLabel].individualHeight = J, N.value[o.scaleLabel].autoScaleYLabels = Et, N.value[o.scaleLabel].unique = cl.value.filter((oe) => oe.scaleLabel === o.scaleLabel).length === 1, {
2100
+ return P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ht : Ve, P.value[o.scaleLabel].zeroPosition = o.autoScaling ? be : Q, P.value[o.scaleLabel].individualMax = o.autoScaling ? B : Y, P.value[o.scaleLabel].scaleLabel = o.scaleLabel, P.value[o.scaleLabel].id = o.id, P.value[o.scaleLabel].yOffset = Ge, P.value[o.scaleLabel].individualHeight = J, P.value[o.scaleLabel].autoScaleYLabels = Ht, P.value[o.scaleLabel].unique = cl.value.filter((oe) => oe.scaleLabel === o.scaleLabel).length === 1, {
2060
2101
  ...o,
2061
2102
  yOffset: Ge,
2062
- autoScaleYLabels: Et,
2103
+ autoScaleYLabels: Ht,
2063
2104
  individualHeight: J,
2064
- scaleYLabels: o.autoScaling ? Et : Ve,
2105
+ scaleYLabels: o.autoScaling ? Ht : Ve,
2065
2106
  individualScale: o.autoScaling ? U : I,
2066
- individualMax: o.autoScaling ? O : X,
2107
+ individualMax: o.autoScaling ? B : Y,
2067
2108
  zeroPosition: o.autoScaling ? be : Q,
2068
2109
  plots: o.autoScaling ? ql : Ue,
2069
- groupId: N.value[o.scaleLabel].groupId
2110
+ groupId: P.value[o.scaleLabel].groupId
2070
2111
  };
2071
2112
  });
2072
2113
  }), Gl = x(() => {
@@ -2082,7 +2123,7 @@ const _n = {
2082
2123
  yOffset: r.yOffset || 0,
2083
2124
  individualHeight: r.individualHeight || c.value.height,
2084
2125
  autoScaleYLabels: r.autoScaleYLabels
2085
- })), s = Tt.value.map((r) => ({
2126
+ })), s = It.value.map((r) => ({
2086
2127
  name: r.name,
2087
2128
  color: r.color,
2088
2129
  scale: r.individualScale,
@@ -2105,11 +2146,11 @@ const _n = {
2105
2146
  id: r.id,
2106
2147
  yOffset: r.yOffset || 0,
2107
2148
  individualHeight: r.individualHeight || c.value.height
2108
- })), i = p.value.useIndividualScale && !p.value.isStacked ? Object.values(N.value) : [...l, ...s, ...e], a = i.flatMap((r) => r).length;
2149
+ })), i = p.value.useIndividualScale && !p.value.isStacked ? Object.values(P.value) : [...l, ...s, ...e], a = i.flatMap((r) => r).length;
2109
2150
  return i.flatMap((r, o) => {
2110
- let P = 0;
2111
- P = p.value.isStacked ? c.value.left : c.value.left / a * (o + 1);
2112
- const H = p.value.useIndividualScale && !p.value.isStacked ? r.unique ? r.name : r.groupName : r.name;
2151
+ let F = 0;
2152
+ F = p.value.isStacked ? c.value.left : c.value.left / a * (o + 1);
2153
+ const R = p.value.useIndividualScale && !p.value.isStacked ? r.unique ? r.name : r.groupName : r.name;
2113
2154
  return {
2114
2155
  unique: r.unique,
2115
2156
  id: r.id,
@@ -2117,49 +2158,49 @@ const _n = {
2117
2158
  scaleLabel: r.scaleLabel,
2118
2159
  name: ze(
2119
2160
  t.value.chart.grid.labels.yAxis.serieNameFormatter,
2120
- H,
2121
- H,
2161
+ R,
2162
+ R,
2122
2163
  r
2123
2164
  ),
2124
2165
  color: p.value.useIndividualScale && !p.value.isStacked ? r.unique ? r.color : r.groupColor : r.color,
2125
2166
  scale: r.scale,
2126
2167
  yOffset: r.yOffset,
2127
2168
  individualHeight: r.individualHeight,
2128
- x: P,
2129
- yLabels: r.scaleYLabels || r.scale.ticks.map((G) => ({
2130
- y: G >= 0 ? r.zero - r.individualHeight * (G / r.max) : r.zero + r.individualHeight * Math.abs(G) / r.max,
2131
- value: G
2169
+ x: F,
2170
+ yLabels: r.scaleYLabels || r.scale.ticks.map((O) => ({
2171
+ y: O >= 0 ? r.zero - r.individualHeight * (O / r.max) : r.zero + r.individualHeight * Math.abs(O) / r.max,
2172
+ value: O
2132
2173
  }))
2133
2174
  };
2134
2175
  });
2135
- }), Za = x(() => {
2176
+ }), Qa = x(() => {
2136
2177
  const l = t.value.line.interLine || {}, s = l.pairs || [], e = l.colors || [];
2137
2178
  if (!s.length) return [];
2138
2179
  const i = [];
2139
2180
  return s.forEach((a, r) => {
2140
- const [o, P] = Array.isArray(a) ? a : [a.a, a.b];
2141
- if (!o || !P) return;
2142
- const H = Re.value.find((I) => I.name === o), G = Re.value.find((I) => I.name === P);
2143
- if (!H || !G || H.type !== "line" || G.type !== "line") return;
2144
- const T = e?.[r]?.[0] ?? H.color, F = e?.[r]?.[1] ?? G.color;
2181
+ const [o, F] = Array.isArray(a) ? a : [a.a, a.b];
2182
+ if (!o || !F) return;
2183
+ const R = Re.value.find((I) => I.name === o), O = Re.value.find((I) => I.name === F);
2184
+ if (!R || !O || R.type !== "line" || O.type !== "line") return;
2185
+ const T = e?.[r]?.[0] ?? R.color, N = e?.[r]?.[1] ?? O.color;
2145
2186
  on({
2146
- lineA: H.plots,
2147
- lineB: G.plots,
2148
- smoothA: !!H.smooth,
2149
- smoothB: !!G.smooth,
2187
+ lineA: R.plots,
2188
+ lineB: O.plots,
2189
+ smoothA: !!R.smooth,
2190
+ smoothB: !!O.smooth,
2150
2191
  colorLineA: T,
2151
- colorLineB: F,
2192
+ colorLineB: N,
2152
2193
  sampleStepPx: 2,
2153
2194
  cutNullValues: t.value.line.cutNullValues
2154
2195
  }).forEach((I, U) => {
2155
- i.push({ ...I, key: `inter_${o}_${P}_${r}_${U}` });
2196
+ i.push({ ...I, key: `inter_${o}_${F}_${r}_${U}` });
2156
2197
  });
2157
2198
  }), i;
2158
- }), Ka = x(() => ({
2159
- datapoint: zt.value,
2160
- seriesIndex: _.value,
2199
+ }), ja = x(() => ({
2200
+ datapoint: Tt.value,
2201
+ seriesIndex: M.value,
2161
2202
  series: et.value,
2162
- bars: Tt.value,
2203
+ bars: It.value,
2163
2204
  lines: Re.value,
2164
2205
  plots: rt.value,
2165
2206
  config: t.value
@@ -2176,29 +2217,29 @@ const _n = {
2176
2217
  }), Aa = x(() => (t.value.chart.grid.labels.xAxisLabels.values || []).map((s, e) => ({
2177
2218
  text: $l.value(e, t.value.chart.zoom.timeFormat),
2178
2219
  absoluteIndex: e
2179
- }))), ca = y(!1);
2220
+ }))), va = y(!1);
2180
2221
  x(() => {
2181
2222
  let l = "", s = "";
2182
2223
  if (t.value.chart.zoom.preview.enable)
2183
2224
  return { left: l, right: s };
2184
- ca.value = !1;
2225
+ va.value = !1;
2185
2226
  const e = t.value.chart.zoom.customFormat;
2186
- if (xa(e))
2227
+ if (ba(e))
2187
2228
  try {
2188
2229
  const i = e({
2189
2230
  absoluteIndex: w.value.start,
2190
2231
  seriesIndex: w.value.start,
2191
- datapoint: zt.value
2232
+ datapoint: Tt.value
2192
2233
  }), a = e({
2193
2234
  absoluteIndex: w.value.end - 1,
2194
2235
  seriesIndex: w.value.end - 1,
2195
- datapoint: zt.value
2236
+ datapoint: Tt.value
2196
2237
  });
2197
- typeof i == "string" && typeof a == "string" && (l = i, s = a, ca.value = !0);
2238
+ typeof i == "string" && typeof a == "string" && (l = i, s = a, va.value = !0);
2198
2239
  } catch {
2199
- console.warn("Custom format cannot be applied on zoom labels."), ca.value = !1;
2240
+ console.warn("Custom format cannot be applied on zoom labels."), va.value = !1;
2200
2241
  }
2201
- if (!ca.value) {
2242
+ if (!va.value) {
2202
2243
  l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? Aa.value[w.value.start]?.text || "" : v.value[0]?.text || "";
2203
2244
  const i = Math.max(w.value.start, w.value.end - 1);
2204
2245
  s = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? Aa.value[i]?.text || "" : v.value.at(-1)?.text || "";
@@ -2206,41 +2247,41 @@ const _n = {
2206
2247
  return { left: l, right: s };
2207
2248
  });
2208
2249
  const Bo = x(() => {
2209
- let l = "", s = zt.value.map((a) => a.value).filter((a) => ha(a) && a !== null).reduce((a, r) => Math.abs(a) + Math.abs(r), 0);
2210
- const e = v.value[_.value], i = t.value.chart.tooltip.customFormat;
2211
- if (xa(i) && nn(() => i({
2212
- absoluteIndex: _.value + w.value.start,
2213
- seriesIndex: _.value,
2214
- datapoint: zt.value,
2250
+ let l = "", s = Tt.value.map((a) => a.value).filter((a) => fa(a) && a !== null).reduce((a, r) => Math.abs(a) + Math.abs(r), 0);
2251
+ const e = v.value[M.value], i = t.value.chart.tooltip.customFormat;
2252
+ if (ba(i) && nn(() => i({
2253
+ absoluteIndex: M.value + w.value.start,
2254
+ seriesIndex: M.value,
2255
+ datapoint: Tt.value,
2215
2256
  series: et.value,
2216
- bars: Tt.value,
2257
+ bars: It.value,
2217
2258
  lines: Re.value,
2218
2259
  plots: rt.value,
2219
2260
  config: t.value
2220
2261
  })))
2221
2262
  return i({
2222
- absoluteIndex: _.value + w.value.start,
2223
- seriesIndex: _.value,
2224
- datapoint: zt.value,
2263
+ absoluteIndex: M.value + w.value.start,
2264
+ seriesIndex: M.value,
2265
+ datapoint: Tt.value,
2225
2266
  series: et.value,
2226
- bars: Tt.value,
2267
+ bars: It.value,
2227
2268
  lines: Re.value,
2228
2269
  plots: rt.value,
2229
2270
  config: t.value
2230
2271
  });
2231
2272
  if (e && e.text && t.value.chart.tooltip.showTimeLabel) {
2232
- const a = $l.value(_.value + w.value.start, t.value.chart.tooltip.timeFormat);
2273
+ const a = $l.value(M.value + w.value.start, t.value.chart.tooltip.timeFormat);
2233
2274
  l += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.chart.tooltip.borderColor}; width:100%">${t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.tooltip.useDefaultTimeFormat ? a : e.text}</div>`;
2234
2275
  }
2235
- return zt.value.forEach((a) => {
2236
- if (ha(a.value)) {
2276
+ return Tt.value.forEach((a) => {
2277
+ if (fa(a.value)) {
2237
2278
  let r = "", o = "";
2238
- switch (Jt.value[a.type]) {
2279
+ switch (Qt.value[a.type]) {
2239
2280
  case "bar":
2240
2281
  r = `<svg viewBox="0 0 40 40" height="14" width="14">${xl.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${a.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${xl.pattern ? `url(#pattern_${Z.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
2241
2282
  break;
2242
2283
  case "line":
2243
- !a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${ko({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), r = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
2284
+ !a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${$o({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), r = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
2244
2285
  break;
2245
2286
  case "plot":
2246
2287
  if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
@@ -2248,7 +2289,7 @@ const _n = {
2248
2289
  break;
2249
2290
  }
2250
2291
  if (a.shape === "star") {
2251
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${ko({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
2292
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${$o({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
2252
2293
  break;
2253
2294
  }
2254
2295
  if (a.shape === "triangle") {
@@ -2286,10 +2327,10 @@ const _n = {
2286
2327
  v: q(Math.abs(a.value) / s * 100),
2287
2328
  s: "%",
2288
2329
  r: t.value.chart.tooltip.roundingPercentage
2289
- })})` : ""}</div>`, t.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(w.value.start, w.value.end)[_.value] && (l += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.comments.slice(w.value.start, w.value.end)[_.value]}</div>`);
2330
+ })})` : ""}</div>`, t.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(w.value.start, w.value.end)[M.value] && (l += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.comments.slice(w.value.start, w.value.end)[M.value]}</div>`);
2290
2331
  }
2291
2332
  }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${t.value.chart.tooltip.color}">${l}</div>`;
2292
- }), Ja = x(() => {
2333
+ }), eo = x(() => {
2293
2334
  if (je.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
2294
2335
  const l = Fe.value.map((e) => ({
2295
2336
  label: e.name,
@@ -2302,24 +2343,24 @@ const _n = {
2302
2343
  a.push(Ye(r.absoluteValues[i]) ? Number(r.absoluteValues[i].toFixed(t.value.table.rounding)) : "");
2303
2344
  }), s.push(a);
2304
2345
  }), { head: l, body: s };
2305
- }), va = x(() => {
2346
+ }), da = x(() => {
2306
2347
  const l = t.value.table.showSum;
2307
2348
  let s = [""].concat(Fe.value.map((r) => r.name));
2308
2349
  l && (s = s.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>'));
2309
2350
  let e = [];
2310
- for (let r = 0; r < $.value; r += 1) {
2311
- const o = Fe.value.map((P) => P.absoluteValues[r] ?? 0).reduce((P, H) => P + H, 0);
2351
+ for (let r = 0; r < S.value; r += 1) {
2352
+ const o = Fe.value.map((F) => F.absoluteValues[r] ?? 0).reduce((F, R) => F + R, 0);
2312
2353
  e.push(
2313
2354
  [
2314
2355
  t.value.table.useDefaultTimeFormat ? v.value[r].text ?? "-" : $l.value(r + w.value.start, t.value.table.timeFormat)
2315
2356
  ].concat(Fe.value.map(
2316
- (P) => ze(
2317
- P.type === "line" ? t.value.line.labels.formatter : P.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
2318
- P.absoluteValues[r] ?? 0,
2357
+ (F) => ze(
2358
+ F.type === "line" ? t.value.line.labels.formatter : F.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
2359
+ F.absoluteValues[r] ?? 0,
2319
2360
  lt({
2320
- p: P.prefix || t.value.chart.labels.prefix,
2321
- v: P.absoluteValues[r] ?? 0,
2322
- s: P.suffix || t.value.chart.labels.suffix,
2361
+ p: F.prefix || t.value.chart.labels.prefix,
2362
+ v: F.absoluteValues[r] ?? 0,
2363
+ s: F.suffix || t.value.chart.labels.suffix,
2323
2364
  r: t.value.table.rounding
2324
2365
  })
2325
2366
  )
@@ -2342,10 +2383,10 @@ const _n = {
2342
2383
  return { head: s, body: e, config: i, colNames: a };
2343
2384
  });
2344
2385
  function za(l = null) {
2345
- const s = [[t.value.chart.title.text], [t.value.chart.title.subtitle.text], [""]], e = ["", ...Ja.value.head.map((o) => o.label)], i = Ja.value.body, a = s.concat([e]).concat(i), r = vn(a);
2386
+ const s = [[t.value.chart.title.text], [t.value.chart.title.subtitle.text], [""]], e = ["", ...eo.value.head.map((o) => o.label)], i = eo.value.body, a = s.concat([e]).concat(i), r = vn(a);
2346
2387
  l ? l(r) : dn({ csvContent: r, title: t.value.chart.title.text || "vue-ui-xy" });
2347
2388
  }
2348
- function Qa(l, s = null) {
2389
+ function to(l, s = null) {
2349
2390
  bl.value = l;
2350
2391
  const e = Fe.value.map((i) => ({
2351
2392
  name: i.name,
@@ -2353,44 +2394,44 @@ const _n = {
2353
2394
  color: i.color,
2354
2395
  type: i.type
2355
2396
  }));
2356
- l ? (_.value = s, t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: s + w.value.start })) : (_.value = null, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: s + w.value.start }));
2397
+ l ? (M.value = s, t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: s + w.value.start })) : (M.value = null, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: s + w.value.start }));
2357
2398
  }
2358
- function ja() {
2399
+ function lo() {
2359
2400
  p.value.showTable = !p.value.showTable;
2360
2401
  }
2361
- function eo() {
2402
+ function ao() {
2362
2403
  p.value.dataLabels.show = !p.value.dataLabels.show;
2363
2404
  }
2364
- function to() {
2405
+ function oo() {
2365
2406
  p.value.showTooltip = !p.value.showTooltip;
2366
2407
  }
2367
- function lo(l) {
2408
+ function no(l) {
2368
2409
  Pe.value = l, Pl.value += 1;
2369
2410
  }
2370
- function ao() {
2411
+ function uo() {
2371
2412
  if (!t.value.responsiveProportionalSizing) {
2372
- C.value.dataLabels = t.value.chart.grid.labels.fontSize, C.value.yAxis = t.value.chart.grid.labels.axis.fontSize, C.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, C.value.plotLabels = t.value.chart.labels.fontSize, De.value.plot = t.value.plot.radius, De.value.line = t.value.line.radius;
2413
+ A.value.dataLabels = t.value.chart.grid.labels.fontSize, A.value.yAxis = t.value.chart.grid.labels.axis.fontSize, A.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, A.value.plotLabels = t.value.chart.labels.fontSize, De.value.plot = t.value.plot.radius, De.value.line = t.value.line.radius;
2373
2414
  return;
2374
2415
  }
2375
- C.value.dataLabels = Ml({
2376
- relator: D.value,
2416
+ A.value.dataLabels = Ml({
2417
+ relator: W.value,
2377
2418
  adjuster: 400,
2378
2419
  source: t.value.chart.grid.labels.fontSize,
2379
2420
  threshold: 10,
2380
2421
  fallback: 10
2381
- }), C.value.yAxis = Ml({
2422
+ }), A.value.yAxis = Ml({
2382
2423
  relator: le.value,
2383
2424
  adjuster: 1e3,
2384
2425
  source: t.value.chart.grid.labels.axis.fontSize,
2385
2426
  threshold: 10,
2386
2427
  fallback: 10
2387
- }), C.value.xAxis = Ml({
2428
+ }), A.value.xAxis = Ml({
2388
2429
  relator: le.value,
2389
2430
  adjuster: 1e3,
2390
2431
  source: t.value.chart.grid.labels.xAxisLabels.fontSize,
2391
2432
  threshold: 10,
2392
2433
  fallback: 10
2393
- }), C.value.plotLabels = Ml({
2434
+ }), A.value.plotLabels = Ml({
2394
2435
  relator: le.value,
2395
2436
  adjuster: 800,
2396
2437
  source: t.value.chart.labels.fontSize,
@@ -2411,25 +2452,25 @@ const _n = {
2411
2452
  });
2412
2453
  }
2413
2454
  function Ta() {
2414
- wo(d.dataset) ? (Na({
2455
+ _o(d.dataset) ? (Na({
2415
2456
  componentName: "VueUiXy",
2416
2457
  type: "dataset",
2417
- debug: Mt.value
2458
+ debug: Lt.value
2418
2459
  }), bt.value = !0) : d.dataset.forEach((s, e) => {
2419
2460
  [null, void 0].includes(s.name) && (Na({
2420
2461
  componentName: "VueUiXy",
2421
2462
  type: "datasetSerieAttribute",
2422
2463
  property: "name (string)",
2423
2464
  index: e,
2424
- debug: Mt.value
2465
+ debug: Lt.value
2425
2466
  }), bt.value = !0);
2426
- }), Mt.value && d.dataset.forEach((s) => {
2467
+ }), Lt.value && d.dataset.forEach((s) => {
2427
2468
  s.series.forEach((e, i) => {
2428
- ha(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
2469
+ fa(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
2429
2470
  -----> The serie '${s.name}' contains the value '${e}' at index ${i}.
2430
2471
  '${e}' was converted to null to allow the chart to display.`);
2431
2472
  });
2432
- }), wo(d.dataset) || (bt.value = t.value.loading), ea.value = t.value.chart.userOptions.showOnChartHover, Ol.value = t.value.chart.userOptions.keepStateOnChartLeave, yl.value = !t.value.chart.userOptions.showOnChartHover, tl();
2473
+ }), _o(d.dataset) || (bt.value = t.value.loading), ea.value = t.value.chart.userOptions.showOnChartHover, Ol.value = t.value.chart.userOptions.keepStateOnChartLeave, yl.value = !t.value.chart.userOptions.showOnChartHover, tl();
2433
2474
  const l = 12;
2434
2475
  if (t.value.responsive) {
2435
2476
  const e = Be.value.parentNode;
@@ -2437,34 +2478,34 @@ const _n = {
2437
2478
  const { height: i, width: a } = e.getBoundingClientRect();
2438
2479
  let r = null, o = 0;
2439
2480
  t.value.chart.title.show && Te.value && (r = Te.value, o = r.getBoundingClientRect().height);
2440
- let P = null, H = 0;
2441
- t.value.chart.zoom.show && Qe.value > 6 && el.value && Ke.value && Ke.value.$el && (P = Ke.value.$el, H = P.getBoundingClientRect().height);
2442
- let G = null, T = 0;
2443
- t.value.chart.legend.show && Le.value && (G = Le.value, T = G.getBoundingClientRect().height);
2444
- let F = 0;
2445
- ft.value && (F = ft.value.getBoundingClientRect().height);
2481
+ let F = null, R = 0;
2482
+ t.value.chart.zoom.show && Qe.value > 6 && Mt.value && Ke.value && Ke.value.$el && (F = Ke.value.$el, R = F.getBoundingClientRect().height);
2483
+ let O = null, T = 0;
2484
+ t.value.chart.legend.show && Ce.value && (O = Ce.value, T = O.getBoundingClientRect().height);
2485
+ let N = 0;
2486
+ ft.value && (N = ft.value.getBoundingClientRect().height);
2446
2487
  let ee = 0;
2447
- _t.value && (ee = _t.value.getBoundingClientRect().height), D.value = i - o - T - H - F - ee - l, le.value = a, at.value = `0 0 ${le.value < 0 ? 10 : le.value} ${D.value < 0 ? 10 : D.value}`, ao();
2488
+ _t.value && (ee = _t.value.getBoundingClientRect().height), W.value = i - o - T - R - N - ee - l, le.value = a, at.value = `0 0 ${le.value < 0 ? 10 : le.value} ${W.value < 0 ? 10 : W.value}`, uo();
2448
2489
  const I = new ResizeObserver((U) => {
2449
- for (const R of U)
2450
- t.value.chart.title.show && Te.value ? o = Te.value.getBoundingClientRect().height : o = 0, Ke.value && Ke.value.$el ? H = Ke.value.$el.getBoundingClientRect().height : H = 0, Le.value ? T = Le.value.getBoundingClientRect().height : T = 0, ft.value ? F = ft.value.getBoundingClientRect().height : F = 0, _t.value ? ee = _t.value.getBoundingClientRect().height : ee = 0, requestAnimationFrame(() => {
2451
- D.value = R.contentRect.height - o - T - H - F - ee - l, le.value = R.contentBoxSize[0].inlineSize, at.value = `0 0 ${le.value < 0 ? 10 : le.value} ${D.value < 0 ? 10 : D.value}`, ao();
2490
+ for (const V of U)
2491
+ t.value.chart.title.show && Te.value ? o = Te.value.getBoundingClientRect().height : o = 0, Ke.value && Ke.value.$el ? R = Ke.value.$el.getBoundingClientRect().height : R = 0, Ce.value ? T = Ce.value.getBoundingClientRect().height : T = 0, ft.value ? N = ft.value.getBoundingClientRect().height : N = 0, _t.value ? ee = _t.value.getBoundingClientRect().height : ee = 0, requestAnimationFrame(() => {
2492
+ W.value = V.contentRect.height - o - T - R - N - ee - l, le.value = V.contentBoxSize[0].inlineSize, at.value = `0 0 ${le.value < 0 ? 10 : le.value} ${W.value < 0 ? 10 : W.value}`, uo();
2452
2493
  });
2453
2494
  });
2454
2495
  mt.value = I, ne.value = e, I.observe(e);
2455
2496
  } else
2456
- D.value = t.value.chart.height, le.value = t.value.chart.width, C.value.dataLabels = t.value.chart.grid.labels.fontSize, C.value.yAxis = t.value.chart.grid.labels.axis.fontSize, C.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, C.value.plotLabels = t.value.chart.labels.fontSize, De.value.plot = t.value.plot.radius, De.value.line = t.value.line.radius, at.value = `0 0 ${le.value} ${D.value}`;
2497
+ W.value = t.value.chart.height, le.value = t.value.chart.width, A.value.dataLabels = t.value.chart.grid.labels.fontSize, A.value.yAxis = t.value.chart.grid.labels.axis.fontSize, A.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, A.value.plotLabels = t.value.chart.labels.fontSize, De.value.plot = t.value.plot.radius, De.value.line = t.value.line.radius, at.value = `0 0 ${le.value} ${W.value}`;
2457
2498
  }
2458
- function oo(l) {
2499
+ function io(l) {
2459
2500
  jl.value = {
2460
2501
  x: l.clientX,
2461
2502
  y: l.clientY
2462
2503
  };
2463
2504
  }
2464
2505
  Ll(() => {
2465
- Ta(), il(), document.addEventListener("mousemove", oo, { passive: !0 }), document.addEventListener("scroll", Wl, { passive: !0 });
2506
+ Ta(), il(), document.addEventListener("mousemove", io, { passive: !0 }), document.addEventListener("scroll", Wl, { passive: !0 });
2466
2507
  }), gl(() => {
2467
- document.removeEventListener("scroll", Wl, { passive: !0 }), document.removeEventListener("mousemove", oo, { passive: !0 }), mt.value && (mt.value.unobserve(ne.value), mt.value.disconnect(), mt.value = null);
2508
+ document.removeEventListener("scroll", Wl, { passive: !0 }), document.removeEventListener("mousemove", io, { passive: !0 }), mt.value && (mt.value.unobserve(ne.value), mt.value.disconnect(), mt.value = null);
2468
2509
  }), pn({
2469
2510
  timeLabelsEls: Se,
2470
2511
  timeLabels: v,
@@ -2473,32 +2514,32 @@ const _n = {
2473
2514
  rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
2474
2515
  autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate", "enable"],
2475
2516
  isAutoSize: pt,
2476
- height: D,
2517
+ height: W,
2477
2518
  width: le,
2478
2519
  rotation: t.value.chart.grid.labels.xAxisLabels.autoRotate.angle
2479
2520
  });
2480
- const da = y(!1), no = y(null), uo = y(200), Eo = x(
2481
- () => _.value ?? W.value ?? 0
2521
+ const ha = y(!1), so = y(null), ro = y(200), Eo = x(
2522
+ () => M.value ?? X.value ?? 0
2482
2523
  );
2483
2524
  function Ho() {
2484
- const l = Math.ceil(uo.value || 200);
2525
+ const l = Math.ceil(ro.value || 200);
2485
2526
  return Math.min(Math.max(l, 1), 200);
2486
2527
  }
2487
2528
  function Do() {
2488
- const l = Ho(), s = 200, e = Math.max(1, $.value), i = c.value.width / e, r = c.value.left + Eo.value * i + i / 2 - l / 2 - (s - l) / 2, o = c.value.left - (s - l) / 2, P = c.value.right - (s + l) / 2, H = Math.max(o, Math.min(r, P));
2489
- return q(H);
2529
+ const l = Ho(), s = 200, e = Math.max(1, S.value), i = c.value.width / e, r = c.value.left + Eo.value * i + i / 2 - l / 2 - (s - l) / 2, o = c.value.left - (s - l) / 2, F = c.value.right - (s + l) / 2, R = Math.max(o, Math.min(r, F));
2530
+ return q(R);
2490
2531
  }
2491
2532
  Ll(() => {
2492
2533
  let l = null, s = null;
2493
2534
  const e = (r) => {
2494
2535
  cancelAnimationFrame(s), s = requestAnimationFrame(() => {
2495
- uo.value = Math.min(Math.max(Math.ceil(r || 0), 1), 200);
2536
+ ro.value = Math.min(Math.max(Math.ceil(r || 0), 1), 200);
2496
2537
  });
2497
2538
  }, i = new ResizeObserver((r) => {
2498
- let o = r.find((P) => P.target === l) || r[0];
2539
+ let o = r.find((F) => F.target === l) || r[0];
2499
2540
  o && e(o.contentRect.width || 200);
2500
- }), a = ho((r) => {
2501
- const o = no.value;
2541
+ }), a = go((r) => {
2542
+ const o = so.value;
2502
2543
  l && l !== o && (i.unobserve(l), l = null), o && o !== l && (Cl(() => {
2503
2544
  o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
2504
2545
  }), i.observe(o), l = o), r(() => {
@@ -2513,37 +2554,37 @@ const _n = {
2513
2554
  });
2514
2555
  });
2515
2556
  const Wo = x(() => {
2516
- if ([null, void 0].includes(_.value) && [null, void 0].includes(W.value)) return "";
2517
- const l = (_.value != null ? _.value : 0) || (W.value != null ? W.value : 0), s = t.value.chart.timeTag.customFormat;
2518
- if (da.value = !1, xa(s))
2557
+ if ([null, void 0].includes(M.value) && [null, void 0].includes(X.value)) return "";
2558
+ const l = (M.value != null ? M.value : 0) || (X.value != null ? X.value : 0), s = t.value.chart.timeTag.customFormat;
2559
+ if (ha.value = !1, ba(s))
2519
2560
  try {
2520
2561
  const e = s({
2521
2562
  absoluteIndex: l + w.value.start,
2522
2563
  seriesIndex: l,
2523
- datapoint: zt.value,
2524
- bars: Tt.value,
2564
+ datapoint: Tt.value,
2565
+ bars: It.value,
2525
2566
  lines: Re.value,
2526
2567
  plots: rt.value,
2527
2568
  config: t.value
2528
2569
  });
2529
2570
  if (typeof e == "string")
2530
- return da.value = !0, e;
2571
+ return ha.value = !0, e;
2531
2572
  } catch {
2532
- console.warn("Custom format cannot be applied on timeTag."), da.value = !1;
2573
+ console.warn("Custom format cannot be applied on timeTag."), ha.value = !1;
2533
2574
  }
2534
- if (!da.value)
2575
+ if (!ha.value)
2535
2576
  return [null, void 0].includes(v.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? $l.value(l + w.value.start, t.value.chart.timeTag.timeFormat) : v.value[l].text;
2536
2577
  });
2537
2578
  ht(() => d.dataset, (l) => {
2538
- Array.isArray(l) && l.length > 0 && (bt.value = !1), Qe.value = Math.max(...$e.value.map((s) => yt(s.series).length)), w.value = {
2579
+ Array.isArray(l) && l.length > 0 && (bt.value = !1), Qe.value = Math.max(..._e.value.map((s) => yt(s.series).length)), w.value = {
2539
2580
  start: 0,
2540
2581
  end: Qe.value
2541
- }, Ql.value += 1, gt.value += 1, Lt();
2582
+ }, Ql.value += 1, gt.value += 1, Ct();
2542
2583
  }, { deep: !0 }), ht(() => d.config, (l) => {
2543
- xe.value || (t.value = Bl()), Ta(), Rl.value += 1, Fl.value += 1, tl(), Lt();
2584
+ xe.value || (t.value = Bl()), Ta(), Rl.value += 1, Fl.value += 1, tl(), Ct();
2544
2585
  }, { deep: !0 });
2545
2586
  const Ia = y(!1);
2546
- function io() {
2587
+ function co() {
2547
2588
  const l = Be.value?.parentNode;
2548
2589
  if (!l) {
2549
2590
  Ia.value = !1;
@@ -2553,9 +2594,9 @@ const _n = {
2553
2594
  Ia.value = s.width > 2 && s.height > 2;
2554
2595
  }
2555
2596
  Ll(() => {
2556
- io();
2597
+ co();
2557
2598
  const l = new ResizeObserver(() => {
2558
- io(), Ia.value && (Ta(), Lt(), il());
2599
+ co(), Ia.value && (Ta(), Ct(), il());
2559
2600
  });
2560
2601
  Be.value?.parentNode && l.observe(Be.value.parentNode);
2561
2602
  }), ht(t, () => {
@@ -2594,33 +2635,34 @@ const _n = {
2594
2635
  ht(() => p.value.showTable, (l) => {
2595
2636
  t.value.showTable || (l && t.value.table.useDialog && Je.value ? Je.value.open() : Je.value && Je.value.close && Je.value.close());
2596
2637
  });
2597
- function so() {
2638
+ function vo() {
2598
2639
  p.value.showTable = !1, Nl.value && Nl.value.setTableIconState(!1);
2599
2640
  }
2600
- return wa({
2641
+ return Sa({
2601
2642
  getData: Ao,
2602
2643
  getImage: zo,
2603
2644
  generatePdf: ut,
2604
2645
  generateImage: it,
2605
2646
  generateCsv: za,
2606
2647
  toggleStack: st,
2607
- toggleTable: ja,
2608
- toggleLabels: eo,
2609
- toggleTooltip: to,
2648
+ toggleTable: lo,
2649
+ toggleLabels: ao,
2650
+ toggleTooltip: oo,
2610
2651
  toggleAnnotator: Xl,
2611
- toggleFullscreen: lo
2652
+ toggleFullscreen: no
2612
2653
  }), (l, s) => (n(), u("div", {
2613
2654
  id: `vue-ui-xy_${Z.value}`,
2614
2655
  class: Ze(`vue-ui-xy ${Pe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
2615
2656
  ref_key: "chart",
2616
2657
  ref: Be,
2617
- style: L(`background:${t.value.chart.backgroundColor}; color:${t.value.chart.color};width:100%;font-family:${t.value.chart.fontFamily};${t.value.responsive ? "height: 100%" : ""}`),
2618
- onMouseenter: s[6] || (s[6] = () => me(!0)),
2619
- onMouseleave: s[7] || (s[7] = () => me(!1))
2658
+ style: C(`background:${t.value.chart.backgroundColor}; color:${t.value.chart.color};width:100%;font-family:${t.value.chart.fontFamily};${t.value.responsive ? "height: 100%" : ""}`),
2659
+ onMouseenter: s[6] || (s[6] = () => ge(!0)),
2660
+ onMouseleave: s[7] || (s[7] = () => ge(!1)),
2661
+ onClick: Xa
2620
2662
  }, [
2621
- t.value.chart.userOptions.buttons.annotator && Ce.value ? (n(), ct(h(It), {
2663
+ t.value.chart.userOptions.buttons.annotator && $e.value ? (n(), ct(h(Nt), {
2622
2664
  key: 0,
2623
- svgRef: Ce.value,
2665
+ svgRef: $e.value,
2624
2666
  backgroundColor: t.value.chart.backgroundColor,
2625
2667
  color: t.value.chart.color,
2626
2668
  active: Ee.value,
@@ -2638,7 +2680,7 @@ const _n = {
2638
2680
  ref_key: "chartTitle",
2639
2681
  ref: Te,
2640
2682
  class: "vue-ui-xy-title",
2641
- style: L(`font-family:${t.value.chart.fontFamily}`)
2683
+ style: C(`font-family:${t.value.chart.fontFamily}`)
2642
2684
  }, [
2643
2685
  (n(), ct(wn, {
2644
2686
  key: `title_${Rl.value}`,
@@ -2657,7 +2699,7 @@ const _n = {
2657
2699
  k("div", {
2658
2700
  id: `legend-top-${Z.value}`
2659
2701
  }, null, 8, mu),
2660
- t.value.chart.userOptions.show && (Ol.value || yl.value) ? (n(), ct(h(ge), {
2702
+ t.value.chart.userOptions.show && (Ol.value || yl.value) ? (n(), ct(h(fe), {
2661
2703
  ref_key: "userOptionsRef",
2662
2704
  ref: Nl,
2663
2705
  key: `user_options_${Pl.value}`,
@@ -2672,7 +2714,7 @@ const _n = {
2672
2714
  hasImg: t.value.chart.userOptions.buttons.img,
2673
2715
  hasLabel: t.value.chart.userOptions.buttons.labels,
2674
2716
  hasTable: t.value.chart.userOptions.buttons.table,
2675
- hasStack: S.dataset.length > 1 && t.value.chart.userOptions.buttons.stack,
2717
+ hasStack: $.dataset.length > 1 && t.value.chart.userOptions.buttons.stack,
2676
2718
  hasFullscreen: t.value.chart.userOptions.buttons.fullscreen,
2677
2719
  isStacked: p.value.isStacked,
2678
2720
  isFullscreen: Pe.value,
@@ -2685,23 +2727,23 @@ const _n = {
2685
2727
  callbacks: t.value.chart.userOptions.callbacks,
2686
2728
  tableDialog: t.value.table.useDialog,
2687
2729
  printScale: t.value.chart.userOptions.print.scale,
2688
- onToggleFullscreen: lo,
2730
+ onToggleFullscreen: no,
2689
2731
  onGeneratePdf: h(ut),
2690
2732
  onGenerateCsv: za,
2691
2733
  onGenerateImage: h(it),
2692
- onToggleTable: ja,
2693
- onToggleLabels: eo,
2734
+ onToggleTable: lo,
2735
+ onToggleLabels: ao,
2694
2736
  onToggleStack: st,
2695
- onToggleTooltip: to,
2737
+ onToggleTooltip: oo,
2696
2738
  onToggleAnnotator: Xl,
2697
- style: L({
2739
+ style: C({
2698
2740
  visibility: Ol.value ? yl.value ? "visible" : "hidden" : "visible"
2699
2741
  })
2700
- }, fo({ _: 2 }, [
2742
+ }, xo({ _: 2 }, [
2701
2743
  l.$slots.menuIcon ? {
2702
2744
  name: "menuIcon",
2703
2745
  fn: we(({ isOpen: e, color: i }) => [
2704
- te(l.$slots, "menuIcon", Xt(dl({ isOpen: e, color: i })), void 0, !0)
2746
+ te(l.$slots, "menuIcon", Yt(dl({ isOpen: e, color: i })), void 0, !0)
2705
2747
  ]),
2706
2748
  key: "0"
2707
2749
  } : void 0,
@@ -2757,26 +2799,26 @@ const _n = {
2757
2799
  l.$slots.optionFullscreen ? {
2758
2800
  name: "optionFullscreen",
2759
2801
  fn: we(({ toggleFullscreen: e, isFullscreen: i }) => [
2760
- te(l.$slots, "optionFullscreen", Xt(dl({ toggleFullscreen: e, isFullscreen: i })), void 0, !0)
2802
+ te(l.$slots, "optionFullscreen", Yt(dl({ toggleFullscreen: e, isFullscreen: i })), void 0, !0)
2761
2803
  ]),
2762
2804
  key: "8"
2763
2805
  } : void 0,
2764
2806
  l.$slots.optionAnnotator ? {
2765
2807
  name: "optionAnnotator",
2766
2808
  fn: we(({ toggleAnnotator: e, isAnnotator: i }) => [
2767
- te(l.$slots, "optionAnnotator", Xt(dl({ toggleAnnotator: e, isAnnotator: i })), void 0, !0)
2809
+ te(l.$slots, "optionAnnotator", Yt(dl({ toggleAnnotator: e, isAnnotator: i })), void 0, !0)
2768
2810
  ]),
2769
2811
  key: "9"
2770
2812
  } : void 0
2771
2813
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "tableDialog", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
2772
2814
  (n(), u("svg", {
2773
2815
  ref_key: "svgRef",
2774
- ref: Ce,
2816
+ ref: $e,
2775
2817
  xmlns: "http://www.w3.org/2000/svg",
2776
2818
  class: Ze([{ "vue-data-ui-fullscreen--on": Pe.value, "vue-data-ui-fulscreen--off": !Pe.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
2777
2819
  width: "100%",
2778
2820
  viewBox: at.value,
2779
- style: L({
2821
+ style: C({
2780
2822
  background: "transparent",
2781
2823
  color: t.value.chart.color,
2782
2824
  fontFamily: t.value.chart.fontFamily
@@ -2785,9 +2827,9 @@ const _n = {
2785
2827
  role: "img",
2786
2828
  "aria-live": "polite",
2787
2829
  preserveAspectRatio: "xMidYMid",
2788
- onMousemove: Mo,
2789
- onMouseleave: Ca,
2790
- onClick: Lo
2830
+ onMousemove: Co,
2831
+ onMouseleave: ia,
2832
+ onClick: Xa
2791
2833
  }, [
2792
2834
  k("g", {
2793
2835
  ref_key: "G",
@@ -2799,7 +2841,7 @@ const _n = {
2799
2841
  key: 0,
2800
2842
  x: c.value.left + ue.value < 0 ? 0 : c.value.left + ue.value,
2801
2843
  y: c.value.top,
2802
- width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value) < 0 ? 0 : c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value),
2844
+ width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / S.value) < 0 ? 0 : c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / S.value),
2803
2845
  height: c.value.height < 0 ? 0 : c.value.height,
2804
2846
  style: {
2805
2847
  pointerEvents: "none"
@@ -2807,7 +2849,7 @@ const _n = {
2807
2849
  }, [
2808
2850
  te(l.$slots, "chart-background", {}, void 0, !0)
2809
2851
  ], 8, xu)) : g("", !0),
2810
- $.value > 0 ? (n(), u("g", bu, [
2852
+ S.value > 0 ? (n(), u("g", bu, [
2811
2853
  k("g", yu, [
2812
2854
  t.value.chart.grid.labels.xAxis.showBaseline ? (n(), u("line", {
2813
2855
  key: 0,
@@ -2820,8 +2862,8 @@ const _n = {
2820
2862
  "stroke-linecap": "round",
2821
2863
  style: { animation: "none !important" }
2822
2864
  }, null, 8, pu)) : g("", !0),
2823
- p.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (n(!0), u(b, { key: 2 }, M(Gl.value, (e) => (n(), u("g", null, [
2824
- e.id === V.value && e.yLabels.length ? (n(!0), u(b, { key: 0 }, M(e.yLabels, (i) => (n(), u("line", {
2865
+ p.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (n(!0), u(b, { key: 2 }, L(Gl.value, (e) => (n(), u("g", null, [
2866
+ e.id === E.value && e.yLabels.length ? (n(!0), u(b, { key: 0 }, L(e.yLabels, (i) => (n(), u("line", {
2825
2867
  x1: c.value.left + ue.value,
2826
2868
  x2: c.value.right - ue.value,
2827
2869
  y1: h(j)(i.y),
@@ -2830,7 +2872,7 @@ const _n = {
2830
2872
  "stroke-width": 0.5,
2831
2873
  "stroke-linecap": "round",
2832
2874
  style: { animation: "none !important" }
2833
- }, null, 8, $u))), 256)) : e.yLabels.length ? (n(!0), u(b, { key: 1 }, M(e.yLabels, (i) => (n(), u("line", {
2875
+ }, null, 8, $u))), 256)) : e.yLabels.length ? (n(!0), u(b, { key: 1 }, L(e.yLabels, (i) => (n(), u("line", {
2834
2876
  x1: c.value.left + ue.value,
2835
2877
  x2: c.value.right - ue.value,
2836
2878
  y1: h(j)(i.y),
@@ -2853,7 +2895,7 @@ const _n = {
2853
2895
  style: { animation: "none !important" }
2854
2896
  }, null, 8, ku)) : g("", !0),
2855
2897
  t.value.chart.grid.showHorizontalLines ? (n(), u("g", wu, [
2856
- (n(!0), u(b, null, M(Ga.value, (e) => (n(), u("line", {
2898
+ (n(!0), u(b, null, L(Za.value, (e) => (n(), u("line", {
2857
2899
  x1: c.value.left + ue.value,
2858
2900
  x2: c.value.right,
2859
2901
  y1: h(j)(e.y),
@@ -2867,7 +2909,7 @@ const _n = {
2867
2909
  ], 64)),
2868
2910
  t.value.chart.grid.showVerticalLines ? (n(), u("g", Mu, [
2869
2911
  k("path", {
2870
- d: Ot.value,
2912
+ d: Vt.value,
2871
2913
  "stroke-width": 0.5,
2872
2914
  stroke: t.value.chart.grid.stroke,
2873
2915
  "stroke-linecap": "round",
@@ -2884,10 +2926,10 @@ const _n = {
2884
2926
  }, null, 8, Au)
2885
2927
  ])) : g("", !0)
2886
2928
  ]),
2887
- (n(!0), u(b, null, M(Tt.value, (e, i) => (n(), u("defs", {
2929
+ (n(!0), u(b, null, L(It.value, (e, i) => (n(), u("defs", {
2888
2930
  key: `def_rect_${i}`
2889
2931
  }, [
2890
- l.$slots["bar-gradient"] ? te(l.$slots, "bar-gradient", Yt({
2932
+ l.$slots["bar-gradient"] ? te(l.$slots, "bar-gradient", Gt({
2891
2933
  key: 0,
2892
2934
  ref_for: !0
2893
2935
  }, { series: e, positiveId: `rectGradient_pos_${i}_${Z.value}`, negativeId: `rectGradient_neg_${i}_${Z.value}` }), void 0, !0) : (n(), u(b, { key: 1 }, [
@@ -2929,7 +2971,7 @@ const _n = {
2929
2971
  ], 8, Pu)
2930
2972
  ], 64))
2931
2973
  ]))), 128)),
2932
- (n(!0), u(b, null, M(rt.value, (e, i) => (n(), u("defs", {
2974
+ (n(!0), u(b, null, L(rt.value, (e, i) => (n(), u("defs", {
2933
2975
  key: `def_plot_${i}`
2934
2976
  }, [
2935
2977
  k("radialGradient", {
@@ -2950,7 +2992,7 @@ const _n = {
2950
2992
  }, null, 8, Eu)
2951
2993
  ], 8, Vu)
2952
2994
  ]))), 128)),
2953
- (n(!0), u(b, null, M(Re.value, (e, i) => (n(), u("defs", {
2995
+ (n(!0), u(b, null, L(Re.value, (e, i) => (n(), u("defs", {
2954
2996
  key: `def_line_${e.id}`
2955
2997
  }, [
2956
2998
  k("radialGradient", {
@@ -2970,7 +3012,7 @@ const _n = {
2970
3012
  "stop-color": e.color
2971
3013
  }, null, 8, Wu)
2972
3014
  ], 8, Hu),
2973
- l.$slots["area-gradient"] ? te(l.$slots, "area-gradient", Yt({
3015
+ l.$slots["area-gradient"] ? te(l.$slots, "area-gradient", Gt({
2974
3016
  key: 0,
2975
3017
  ref_for: !0
2976
3018
  }, { series: e, id: `areaGradient_${i}_${Z.value}` }), void 0, !0) : (n(), u("linearGradient", {
@@ -2991,93 +3033,93 @@ const _n = {
2991
3033
  }, null, 8, Gu)
2992
3034
  ], 8, Xu))
2993
3035
  ]))), 128)),
2994
- (n(!0), u(b, null, M(No.value, (e) => (n(), u("g", null, [
3036
+ (n(!0), u(b, null, L(No.value, (e) => (n(), u("g", null, [
2995
3037
  e.show ? (n(), u(b, { key: 0 }, [
2996
- (n(!0), u(b, null, M(e.span, (i, a) => (n(), u("g", null, [
3038
+ (n(!0), u(b, null, L(e.span, (i, a) => (n(), u("g", null, [
2997
3039
  k("rect", {
2998
- style: L({
3040
+ style: C({
2999
3041
  transition: "none",
3000
3042
  opacity: e.from + a >= w.value.start && e.from + a <= w.value.end - 1 ? 1 : 0
3001
3043
  }),
3002
- x: c.value.left + c.value.width / $.value * (e.from + a - w.value.start),
3044
+ x: c.value.left + c.value.width / S.value * (e.from + a - w.value.start),
3003
3045
  y: c.value.top,
3004
3046
  height: c.value.height < 0 ? 10 : c.value.height,
3005
- width: c.value.width / $.value < 0 ? 1e-5 : c.value.width / $.value,
3047
+ width: c.value.width / S.value < 0 ? 1e-5 : c.value.width / S.value,
3006
3048
  fill: h(vt)(e.color, e.opacity)
3007
3049
  }, null, 12, Uu)
3008
3050
  ]))), 256)),
3009
- (n(!0), u(b, null, M(e.span, (i, a) => (n(), u("g", null, [
3051
+ (n(!0), u(b, null, L(e.span, (i, a) => (n(), u("g", null, [
3010
3052
  e.caption.text && a === 0 ? (n(), u("foreignObject", {
3011
3053
  key: 0,
3012
- x: c.value.left + c.value.width / $.value * (e.from + a - w.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / $.value * e.span / 2),
3054
+ x: c.value.left + c.value.width / S.value * (e.from + a - w.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / S.value * e.span / 2),
3013
3055
  y: c.value.top + e.caption.offsetY,
3014
- style: L({
3056
+ style: C({
3015
3057
  overflow: "visible",
3016
3058
  opacity: e.to >= w.value.start && e.from < w.value.end ? 1 : 0
3017
3059
  }),
3018
3060
  height: "1",
3019
- width: e.caption.width === "auto" ? c.value.width / $.value * e.span : e.caption.width
3061
+ width: e.caption.width === "auto" ? c.value.width / S.value * e.span : e.caption.width
3020
3062
  }, [
3021
3063
  k("div", {
3022
- style: L(`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"}`)
3064
+ 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"}`)
3023
3065
  }, re(e.caption.text), 5)
3024
3066
  ], 12, qu)) : g("", !0)
3025
3067
  ]))), 256))
3026
3068
  ], 64)) : g("", !0)
3027
3069
  ]))), 256)),
3028
- Vt.value ? (n(), u("g", Zu, [
3029
- (n(!0), u(b, null, M($.value, (e, i) => (n(), u("g", {
3070
+ Bt.value ? (n(), u("g", Zu, [
3071
+ (n(!0), u(b, null, L(S.value, (e, i) => (n(), u("g", {
3030
3072
  key: `tooltip_trap_highlighter_${i}`
3031
3073
  }, [
3032
3074
  k("rect", {
3033
- x: c.value.left + c.value.width / $.value * i,
3075
+ x: c.value.left + c.value.width / S.value * i,
3034
3076
  y: c.value.top,
3035
3077
  height: c.value.height < 0 ? 10 : c.value.height,
3036
- width: c.value.width / $.value < 0 ? 1e-5 : c.value.width / $.value,
3037
- fill: [W.value, _.value, ae.value].includes(i) ? h(vt)(t.value.chart.highlighter.color, t.value.chart.highlighter.opacity) : "transparent",
3078
+ width: c.value.width / S.value < 0 ? 1e-5 : c.value.width / S.value,
3079
+ fill: [X.value, M.value, ae.value].includes(i) ? h(vt)(t.value.chart.highlighter.color, t.value.chart.highlighter.opacity) : "transparent",
3038
3080
  style: { transition: "none !important", animation: "none !important" }
3039
3081
  }, null, 8, Ku)
3040
3082
  ]))), 128))
3041
3083
  ])) : g("", !0),
3042
- Tt.value.length ? (n(!0), u(b, { key: 1 }, M(Tt.value, (e, i) => (n(), u("g", {
3084
+ It.value.length ? (n(!0), u(b, { key: 1 }, L(It.value, (e, i) => (n(), u("g", {
3043
3085
  key: `serie_bar_${e.id}`,
3044
3086
  class: Ze(`serie_bar_${i}`),
3045
- style: L(`opacity:${V.value ? V.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3087
+ style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3046
3088
  }, [
3047
- (n(!0), u(b, null, M(e.plots, (a, r) => (n(), u("g", {
3089
+ (n(!0), u(b, null, L(e.plots, (a, r) => (n(), u("g", {
3048
3090
  key: `bar_plot_${i}_${r}`
3049
3091
  }, [
3050
3092
  Ye(a.value) ? (n(), u("rect", {
3051
3093
  key: 0,
3052
- x: ua(a) + ra.value / 2,
3094
+ x: ua(a) + ca.value / 2,
3053
3095
  y: p.value.useIndividualScale ? Da(a) : Ha(a),
3054
3096
  height: p.value.useIndividualScale ? Math.abs(Ea(a)) : Math.abs(Ba(a)),
3055
- width: sa.value - ra.value,
3097
+ width: ra.value - ca.value,
3056
3098
  rx: t.value.bar.borderRadius,
3057
3099
  fill: t.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${i}_${Z.value})` : `url(#rectGradient_neg_${i}_${Z.value})` : e.color,
3058
3100
  stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
3059
3101
  "stroke-width": t.value.bar.border.strokeWidth,
3060
- style: L({
3102
+ style: C({
3061
3103
  transition: h(xe) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out`
3062
3104
  })
3063
3105
  }, null, 12, Ju)) : g("", !0),
3064
3106
  Ye(a.value) && l.$slots.pattern ? (n(), u("rect", {
3065
3107
  key: 1,
3066
- x: ua(a) - ra.value / 2,
3108
+ x: ua(a) - ca.value / 2,
3067
3109
  y: p.value.useIndividualScale ? Da(a) : Ha(a),
3068
3110
  height: p.value.useIndividualScale ? Math.abs(Ea(a)) : Math.abs(Ba(a)),
3069
- width: sa.value - ra.value,
3111
+ width: ra.value - ca.value,
3070
3112
  rx: t.value.bar.borderRadius,
3071
3113
  fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
3072
3114
  stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
3073
3115
  "stroke-width": t.value.bar.border.strokeWidth,
3074
- style: L({ transition: h(xe) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out` })
3116
+ style: C({ transition: h(xe) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out` })
3075
3117
  }, null, 12, Qu)) : g("", !0),
3076
3118
  a.comment && t.value.chart.comments.show ? (n(), u("foreignObject", {
3077
3119
  key: 2,
3078
3120
  style: { overflow: "visible" },
3079
3121
  height: "12",
3080
- width: sa.value / 2 + t.value.chart.comments.width,
3122
+ width: ra.value / 2 + t.value.chart.comments.width,
3081
3123
  x: ua(a) - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
3082
3124
  y: h(q)(a.y) + t.value.chart.comments.offsetY + 6
3083
3125
  }, [
@@ -3118,7 +3160,7 @@ const _n = {
3118
3160
  "text-anchor": "middle",
3119
3161
  x: h(ie)(e.plots).x2 + Sl(),
3120
3162
  y: h(ie)(e.plots).y2 - 6,
3121
- "font-size": C.value.plotLabels,
3163
+ "font-size": A.value.plotLabels,
3122
3164
  fill: e.color
3123
3165
  }, re(h(lt)({
3124
3166
  v: h(ie)(e.plots).trend * 100,
@@ -3138,10 +3180,10 @@ const _n = {
3138
3180
  "stroke-linecap": "round",
3139
3181
  style: { animation: "none !important" }
3140
3182
  }, null, 8, ni)) : g("", !0),
3141
- t.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(W.value)) ? (n(), u("g", ui, [
3183
+ t.value.chart.highlighter.useLine && (![null, void 0].includes(M.value) || ![null, void 0].includes(X.value)) ? (n(), u("g", ui, [
3142
3184
  k("line", {
3143
- x1: c.value.left + c.value.width / $.value * ((_.value !== null ? _.value : 0) || (W.value !== null ? W.value : 0)) + c.value.width / $.value / 2,
3144
- x2: c.value.left + c.value.width / $.value * ((_.value !== null ? _.value : 0) || (W.value !== null ? W.value : 0)) + c.value.width / $.value / 2,
3185
+ x1: c.value.left + c.value.width / S.value * ((M.value !== null ? M.value : 0) || (X.value !== null ? X.value : 0)) + c.value.width / S.value / 2,
3186
+ x2: c.value.left + c.value.width / S.value * ((M.value !== null ? M.value : 0) || (X.value !== null ? X.value : 0)) + c.value.width / S.value / 2,
3145
3187
  y1: h(j)(c.value.top),
3146
3188
  y2: h(j)(c.value.bottom),
3147
3189
  stroke: t.value.chart.highlighter.color,
@@ -3156,7 +3198,7 @@ const _n = {
3156
3198
  style: { pointerEvents: "none", transition: "none", animation: "none !important" },
3157
3199
  x: c.value.left + ue.value < 0 ? 0 : c.value.left + ue.value,
3158
3200
  y: c.value.top,
3159
- width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value) < 0 ? 0 : c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value),
3201
+ width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / S.value) < 0 ? 0 : c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / S.value),
3160
3202
  height: c.value.height < 0 ? 0 : c.value.height,
3161
3203
  fill: "transparent",
3162
3204
  stroke: t.value.chart.grid.frame.stroke,
@@ -3171,7 +3213,7 @@ const _n = {
3171
3213
  ref: Il
3172
3214
  }, [
3173
3215
  p.value.useIndividualScale ? (n(), u(b, { key: 0 }, [
3174
- (n(!0), u(b, null, M(Gl.value, (e) => (n(), u("g", null, [
3216
+ (n(!0), u(b, null, L(Gl.value, (e) => (n(), u("g", null, [
3175
3217
  k("line", {
3176
3218
  x1: e.x + ue.value - c.value.individualOffsetX,
3177
3219
  x2: e.x + ue.value - c.value.individualOffsetX,
@@ -3180,20 +3222,20 @@ const _n = {
3180
3222
  stroke: e.color,
3181
3223
  "stroke-width": t.value.chart.grid.stroke,
3182
3224
  "stroke-linecap": "round",
3183
- style: L(`opacity:${V.value ? V.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
3225
+ style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
3184
3226
  }, null, 12, ri)
3185
3227
  ]))), 256)),
3186
- (n(!0), u(b, null, M(Gl.value, (e) => (n(), u("g", {
3187
- style: L(`opacity:${V.value ? V.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
3228
+ (n(!0), u(b, null, L(Gl.value, (e) => (n(), u("g", {
3229
+ style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
3188
3230
  }, [
3189
3231
  k("text", {
3190
3232
  fill: e.color,
3191
- "font-size": C.value.dataLabels * 0.8,
3233
+ "font-size": A.value.dataLabels * 0.8,
3192
3234
  "text-anchor": "middle",
3193
- transform: `translate(${e.x - C.value.dataLabels * 0.8 / 2 + ue.value}, ${p.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
3235
+ transform: `translate(${e.x - A.value.dataLabels * 0.8 / 2 + ue.value}, ${p.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
3194
3236
  }, re(e.name) + " " + re(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
3195
3237
  ${e.scaleLabel}` : ""), 9, ci),
3196
- (n(!0), u(b, null, M(e.yLabels, (i, a) => (n(), u(b, null, [
3238
+ (n(!0), u(b, null, L(e.yLabels, (i, a) => (n(), u(b, null, [
3197
3239
  t.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), u("line", {
3198
3240
  key: 0,
3199
3241
  x1: e.x + 3 + ue.value - t.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
@@ -3206,10 +3248,10 @@ const _n = {
3206
3248
  style: { animation: "none !important" }
3207
3249
  }, null, 8, vi)) : g("", !0)
3208
3250
  ], 64))), 256)),
3209
- (n(!0), u(b, null, M(e.yLabels, (i, a) => (n(), u("text", {
3251
+ (n(!0), u(b, null, L(e.yLabels, (i, a) => (n(), u("text", {
3210
3252
  x: e.x - 5 + ue.value - c.value.individualOffsetX,
3211
- y: h(j)(i.y) + C.value.dataLabels / 3,
3212
- "font-size": C.value.dataLabels,
3253
+ y: h(j)(i.y) + A.value.dataLabels / 3,
3254
+ "font-size": A.value.dataLabels,
3213
3255
  "text-anchor": "end",
3214
3256
  fill: e.color
3215
3257
  }, re(h(ze)(
@@ -3224,7 +3266,7 @@ const _n = {
3224
3266
  { datapoint: i.datapoint, seriesIndex: a }
3225
3267
  )), 9, di))), 256))
3226
3268
  ], 4))), 256))
3227
- ], 64)) : (n(!0), u(b, { key: 1 }, M(Ga.value, (e, i) => (n(), u("g", {
3269
+ ], 64)) : (n(!0), u(b, { key: 1 }, L(Za.value, (e, i) => (n(), u("g", {
3228
3270
  key: `yLabel_${i}`
3229
3271
  }, [
3230
3272
  Ye(e) && e.value >= Xe.value.min && e.value <= Xe.value.max && t.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), u("line", {
@@ -3241,8 +3283,8 @@ const _n = {
3241
3283
  e.value >= Xe.value.min && e.value <= Xe.value.max ? (n(), u("text", {
3242
3284
  key: 1,
3243
3285
  x: c.value.scaleLabelX - t.value.chart.grid.labels.yAxis.crosshairSize,
3244
- y: h(q)(e.y + C.value.dataLabels / 3),
3245
- "font-size": C.value.dataLabels,
3286
+ y: h(q)(e.y + A.value.dataLabels / 3),
3287
+ "font-size": A.value.dataLabels,
3246
3288
  "text-anchor": "end",
3247
3289
  fill: t.value.chart.grid.labels.color
3248
3290
  }, re(Ye(e.value) ? h(ze)(
@@ -3257,23 +3299,23 @@ const _n = {
3257
3299
  ) : ""), 9, fi)) : g("", !0)
3258
3300
  ]))), 128))
3259
3301
  ], 512)) : g("", !0),
3260
- (n(!0), u(b, null, M(rt.value, (e, i) => (n(), u("g", {
3302
+ (n(!0), u(b, null, L(rt.value, (e, i) => (n(), u("g", {
3261
3303
  key: `serie_plot_${e.id}`,
3262
3304
  class: Ze(`serie_plot_${i}`),
3263
- style: L(`opacity:${V.value ? V.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3305
+ style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3264
3306
  }, [
3265
- (n(!0), u(b, null, M(e.plots, (a, r) => (n(), u("g", {
3307
+ (n(!0), u(b, null, L(e.plots, (a, r) => (n(), u("g", {
3266
3308
  key: `circle_plot_${i}_${r}`
3267
3309
  }, [
3268
- a && Ye(a.value) ? (n(), ct(ma, {
3310
+ a && Ye(a.value) ? (n(), ct(ga, {
3269
3311
  key: 0,
3270
3312
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
3271
3313
  color: t.value.plot.useGradient ? `url(#plotGradient_${i}_${Z.value})` : t.value.plot.dot.useSerieColor ? e.color : t.value.plot.dot.fill,
3272
3314
  plot: { x: h(q)(a.x), y: h(q)(a.y) },
3273
- radius: _.value !== null && _.value === r || W.value !== null && W.value === r ? (De.value.plot || 6) * 1.5 : De.value.plot || 6,
3315
+ radius: M.value !== null && M.value === r || X.value !== null && X.value === r ? (De.value.plot || 6) * 1.5 : De.value.plot || 6,
3274
3316
  stroke: t.value.plot.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
3275
3317
  strokeWidth: t.value.plot.dot.strokeWidth,
3276
- transition: h(xe) || !t.value.plot.showTransition || _.value !== null && _.value === r || W.value !== null && W.value === r ? void 0 : `all ${t.value.plot.transitionDurationMs}ms ease-in-out`
3318
+ transition: h(xe) || !t.value.plot.showTransition || M.value !== null && M.value === r || X.value !== null && X.value === r ? void 0 : `all ${t.value.plot.transitionDurationMs}ms ease-in-out`
3277
3319
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : g("", !0),
3278
3320
  a.comment && t.value.chart.comments.show ? (n(), u("foreignObject", {
3279
3321
  key: 1,
@@ -3322,7 +3364,7 @@ const _n = {
3322
3364
  "text-anchor": "middle",
3323
3365
  x: h(ie)(e.plots).x2,
3324
3366
  y: h(ie)(e.plots).y2 - 6,
3325
- "font-size": C.value.plotLabels,
3367
+ "font-size": A.value.plotLabels,
3326
3368
  fill: e.color
3327
3369
  }, re(h(lt)({
3328
3370
  v: h(ie)(e.plots).trend * 100,
@@ -3331,10 +3373,10 @@ const _n = {
3331
3373
  })), 9, ki)) : g("", !0)
3332
3374
  ])) : g("", !0)
3333
3375
  ], 6))), 128)),
3334
- (n(!0), u(b, null, M(Re.value, (e, i) => (n(), u("g", {
3376
+ (n(!0), u(b, null, L(Re.value, (e, i) => (n(), u("g", {
3335
3377
  key: `serie_line_${e.id}`,
3336
3378
  class: Ze(`serie_line_${i}`),
3337
- style: L(`opacity:${V.value ? V.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3379
+ style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3338
3380
  }, [
3339
3381
  e.smooth && e.plots.length > 1 && e.curve ? (n(), u("path", {
3340
3382
  key: 0,
@@ -3343,7 +3385,7 @@ const _n = {
3343
3385
  "stroke-width": t.value.line.strokeWidth + 1,
3344
3386
  "stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
3345
3387
  fill: "none",
3346
- style: L({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3388
+ style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3347
3389
  }, null, 12, wi)) : e.plots.length > 1 && e.straight ? (n(), u("path", {
3348
3390
  key: 1,
3349
3391
  d: `M${e.straight}`,
@@ -3353,56 +3395,56 @@ const _n = {
3353
3395
  fill: "none",
3354
3396
  "stroke-linecap": "round",
3355
3397
  "stroke-linejoin": "round",
3356
- style: L({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3398
+ style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3357
3399
  }, null, 12, Si)) : g("", !0)
3358
3400
  ], 6))), 128)),
3359
3401
  l.$slots.pattern ? (n(), u("defs", $i, [
3360
- (n(!0), u(b, null, M(je.value, (e, i) => te(l.$slots, "pattern", Yt({
3402
+ (n(!0), u(b, null, L(je.value, (e, i) => te(l.$slots, "pattern", Gt({
3361
3403
  key: `serie_pattern_slot_${e.id}`
3362
3404
  }, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${Z.value}_${i}` }), void 0, !0)), 128))
3363
3405
  ])) : g("", !0),
3364
- Za.value.length && !p.value.isStacked ? (n(), u("g", _i, [
3365
- (n(!0), u(b, null, M(Za.value, (e) => (n(), u("path", {
3406
+ Qa.value.length && !p.value.isStacked ? (n(), u("g", _i, [
3407
+ (n(!0), u(b, null, L(Qa.value, (e) => (n(), u("path", {
3366
3408
  key: e.key,
3367
3409
  d: e.d,
3368
3410
  fill: e.color,
3369
3411
  "fill-opacity": t.value.line.interLine.fillOpacity,
3370
3412
  stroke: "none",
3371
3413
  "pointer-events": "none",
3372
- style: L({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3414
+ style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3373
3415
  }, null, 12, Mi))), 128))
3374
3416
  ])) : g("", !0),
3375
- (n(!0), u(b, null, M(Re.value, (e, i) => (n(), u("g", {
3417
+ (n(!0), u(b, null, L(Re.value, (e, i) => (n(), u("g", {
3376
3418
  key: `serie_line_above_${e.id}`,
3377
3419
  class: Ze(`serie_line_${i}`),
3378
- style: L(`opacity:${V.value ? V.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3420
+ style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3379
3421
  }, [
3380
3422
  e.useArea && e.plots.length > 1 ? (n(), u("g", Li, [
3381
- e.smooth ? (n(!0), u(b, { key: 0 }, M(e.curveAreas, (a, r) => (n(), u(b, { key: r }, [
3423
+ e.smooth ? (n(!0), u(b, { key: 0 }, L(e.curveAreas, (a, r) => (n(), u(b, { key: r }, [
3382
3424
  a ? (n(), u("path", {
3383
3425
  key: 0,
3384
3426
  d: a,
3385
3427
  fill: t.value.line.area.useGradient ? `url(#areaGradient_${i}_${Z.value})` : h(vt)(e.color, t.value.line.area.opacity),
3386
- style: L({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3428
+ style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3387
3429
  }, null, 12, Ci)) : g("", !0),
3388
3430
  l.$slots.pattern && a ? (n(), u("path", {
3389
3431
  key: 1,
3390
3432
  d: a,
3391
3433
  fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
3392
- style: L({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3434
+ style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3393
3435
  }, null, 12, Ai)) : g("", !0)
3394
- ], 64))), 128)) : (n(!0), u(b, { key: 1 }, M(e.area.split(";"), (a, r) => (n(), u(b, { key: r }, [
3436
+ ], 64))), 128)) : (n(!0), u(b, { key: 1 }, L(e.area.split(";"), (a, r) => (n(), u(b, { key: r }, [
3395
3437
  a ? (n(), u("path", {
3396
3438
  key: 0,
3397
3439
  d: `M${a}Z`,
3398
3440
  fill: t.value.line.area.useGradient ? `url(#areaGradient_${i}_${Z.value})` : h(vt)(e.color, t.value.line.area.opacity),
3399
- style: L({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3441
+ style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3400
3442
  }, null, 12, zi)) : g("", !0),
3401
3443
  l.$slots.pattern && a ? (n(), u("path", {
3402
3444
  key: 1,
3403
3445
  d: `M${a}Z`,
3404
3446
  fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
3405
- style: L({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3447
+ style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3406
3448
  }, null, 12, Ti)) : g("", !0)
3407
3449
  ], 64))), 128))
3408
3450
  ])) : g("", !0),
@@ -3414,7 +3456,7 @@ const _n = {
3414
3456
  "stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
3415
3457
  fill: "none",
3416
3458
  "stroke-linecap": "round",
3417
- style: L({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3459
+ style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3418
3460
  }, null, 12, Ii)) : e.plots.length > 1 && e.straight ? (n(), u("path", {
3419
3461
  key: 2,
3420
3462
  d: `M${e.straight}`,
@@ -3424,20 +3466,20 @@ const _n = {
3424
3466
  fill: "none",
3425
3467
  "stroke-linecap": "round",
3426
3468
  "stroke-linejoin": "round",
3427
- style: L({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3469
+ style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3428
3470
  }, null, 12, Ni)) : g("", !0),
3429
- (n(!0), u(b, null, M(e.plots, (a, r) => (n(), u(b, {
3471
+ (n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
3430
3472
  key: `circle_line_${i}_${r}`
3431
3473
  }, [
3432
- !Xa.value.linePlot && a && Ye(a.value) || Xa.value.linePlot && a && Ye(a.value) && (_.value !== null && _.value === r || W.value !== null && W.value === r) || qa(e.plots, r) ? (n(), ct(ma, {
3474
+ !Ua.value.linePlot && a && Ye(a.value) || Ua.value.linePlot && a && Ye(a.value) && (M.value !== null && M.value === r || X.value !== null && X.value === r) || Ja(e.plots, r) ? (n(), ct(ga, {
3433
3475
  key: 0,
3434
3476
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
3435
3477
  color: t.value.line.useGradient ? `url(#lineGradient_${i}_${Z.value})` : t.value.line.dot.useSerieColor ? e.color : t.value.line.dot.fill,
3436
3478
  plot: { x: h(q)(a.x), y: h(q)(a.y) },
3437
- radius: _.value !== null && _.value === r || W.value !== null && W.value === r ? (De.value.line || 6) * 1.5 : (qa(e.plots, r), De.value.line || 6),
3479
+ radius: M.value !== null && M.value === r || X.value !== null && X.value === r ? (De.value.line || 6) * 1.5 : (Ja(e.plots, r), De.value.line || 6),
3438
3480
  stroke: t.value.line.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
3439
3481
  strokeWidth: t.value.line.dot.strokeWidth,
3440
- transition: h(xe) || !t.value.line.showTransition || _.value !== null && _.value === r || W.value !== null && W.value === r ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
3482
+ transition: h(xe) || !t.value.line.showTransition || M.value !== null && M.value === r || X.value !== null && X.value === r ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
3441
3483
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : g("", !0),
3442
3484
  a.comment && t.value.chart.comments.show ? (n(), u("foreignObject", {
3443
3485
  key: 1,
@@ -3486,7 +3528,7 @@ const _n = {
3486
3528
  "text-anchor": "middle",
3487
3529
  x: h(ie)(e.plots).x2,
3488
3530
  y: h(ie)(e.plots).y2 - 6,
3489
- "font-size": C.value.plotLabels,
3531
+ "font-size": A.value.plotLabels,
3490
3532
  fill: e.color
3491
3533
  }, re(h(lt)({
3492
3534
  v: h(ie)(e.plots).trend * 100,
@@ -3496,20 +3538,20 @@ const _n = {
3496
3538
  ])) : g("", !0)
3497
3539
  ], 6))), 128)),
3498
3540
  (t.value.bar.labels.show || t.value.bar.serieName.show) && p.value.dataLabels.show ? (n(), u("g", Hi, [
3499
- (n(!0), u(b, null, M(Tt.value, (e, i) => (n(), u(b, {
3541
+ (n(!0), u(b, null, L(It.value, (e, i) => (n(), u(b, {
3500
3542
  key: `xLabel_bar_${e.id}`
3501
3543
  }, [
3502
- (n(!0), u(b, null, M(e.plots, (a, r) => (n(), u(b, {
3544
+ (n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
3503
3545
  key: `xLabel_bar_${i}_${r}`
3504
3546
  }, [
3505
- a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === r || W.value !== null && W.value === r) && t.value.bar.labels.show ? (n(), u("text", {
3547
+ a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || M.value !== null && M.value === r || X.value !== null && X.value === r) && t.value.bar.labels.show ? (n(), u("text", {
3506
3548
  key: 0,
3507
- x: p.value.useIndividualScale && p.value.isStacked ? a.x + ve.value.line / 2 : ua(a) + Sl() / 2 - ia.value / 2,
3549
+ x: p.value.useIndividualScale && p.value.isStacked ? a.x + de.value.line / 2 : ua(a) + Sl() / 2 - sa.value / 2,
3508
3550
  y: h(q)(a.y) + (a.value >= 0 ? t.value.bar.labels.offsetY : -t.value.bar.labels.offsetY * 3),
3509
3551
  "text-anchor": "middle",
3510
- "font-size": C.value.plotLabels,
3552
+ "font-size": A.value.plotLabels,
3511
3553
  fill: t.value.bar.labels.color,
3512
- style: L(`opacity:${V.value ? V.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3554
+ style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3513
3555
  }, re(Ye(a.value) ? h(ze)(
3514
3556
  t.value.bar.labels.formatter,
3515
3557
  a.value,
@@ -3526,13 +3568,13 @@ const _n = {
3526
3568
  ) : ""), 13, Di)) : g("", !0),
3527
3569
  a && t.value.bar.serieName.show ? (n(), u("text", {
3528
3570
  key: 1,
3529
- x: p.value.useIndividualScale && p.value.isStacked ? a.x + ve.value.line / 2 : a.x + Sl() * 1.1,
3571
+ x: p.value.useIndividualScale && p.value.isStacked ? a.x + de.value.line / 2 : a.x + Sl() * 1.1,
3530
3572
  y: a.y + (a.value > 0 ? t.value.bar.serieName.offsetY : -t.value.bar.serieName.offsetY * 3),
3531
3573
  "text-anchor": "middle",
3532
- "font-size": C.value.plotLabels,
3574
+ "font-size": A.value.plotLabels,
3533
3575
  fill: t.value.bar.serieName.useSerieColor ? e.color : t.value.bar.serieName.color,
3534
3576
  "font-weight": t.value.bar.serieName.bold ? "bold" : "normal",
3535
- style: L(`opacity:${V.value ? V.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3577
+ style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3536
3578
  }, re(t.value.bar.serieName.useAbbreviation ? h(un)({
3537
3579
  source: e.name,
3538
3580
  length: t.value.bar.serieName.abbreviationSize
@@ -3541,20 +3583,20 @@ const _n = {
3541
3583
  ], 64))), 128))
3542
3584
  ])) : g("", !0),
3543
3585
  t.value.plot.labels.show && p.value.dataLabels.show ? (n(), u("g", Xi, [
3544
- (n(!0), u(b, null, M(rt.value, (e, i) => (n(), u(b, {
3586
+ (n(!0), u(b, null, L(rt.value, (e, i) => (n(), u(b, {
3545
3587
  key: `xLabel_plot_${e.id}`
3546
3588
  }, [
3547
- (n(!0), u(b, null, M(e.plots, (a, r) => (n(), u(b, {
3589
+ (n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
3548
3590
  key: `xLabel_plot_${i}_${r}`
3549
3591
  }, [
3550
- a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === r || W.value !== null && W.value === r ? (n(), u("text", {
3592
+ a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || M.value !== null && M.value === r || X.value !== null && X.value === r ? (n(), u("text", {
3551
3593
  key: 0,
3552
3594
  x: a.x,
3553
3595
  y: a.y + t.value.plot.labels.offsetY,
3554
3596
  "text-anchor": "middle",
3555
- "font-size": C.value.plotLabels,
3597
+ "font-size": A.value.plotLabels,
3556
3598
  fill: t.value.plot.labels.color,
3557
- style: L(`opacity:${V.value ? V.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3599
+ style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3558
3600
  }, re(Ye(a.value) ? h(ze)(
3559
3601
  t.value.plot.labels.formatter,
3560
3602
  a.value,
@@ -3572,14 +3614,14 @@ const _n = {
3572
3614
  ], 64))), 128))
3573
3615
  ], 64))), 128))
3574
3616
  ])) : (n(), u("g", Gi, [
3575
- (n(!0), u(b, null, M(rt.value, (e, i) => (n(), u(b, {
3617
+ (n(!0), u(b, null, L(rt.value, (e, i) => (n(), u(b, {
3576
3618
  key: `xLabel_plot_${e.id}`
3577
3619
  }, [
3578
- (n(!0), u(b, null, M(e.plots, (a, r) => (n(), u(b, {
3620
+ (n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
3579
3621
  key: `xLabel_plot_${i}_${r}`
3580
3622
  }, [
3581
3623
  t.value.plot.tag.followValue ? (n(), u(b, { key: 1 }, [
3582
- [W.value, _.value, ae.value].includes(r) && e.useTag ? (n(), u("line", {
3624
+ [X.value, M.value, ae.value].includes(r) && e.useTag ? (n(), u("line", {
3583
3625
  key: 0,
3584
3626
  class: "vue-ui-xy-tag-plot",
3585
3627
  x1: c.value.left,
@@ -3598,10 +3640,10 @@ const _n = {
3598
3640
  y: a.y - 20,
3599
3641
  height: 24,
3600
3642
  width: "150",
3601
- style: L(`overflow: visible; opacity:${V.value ? V.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3643
+ style: C(`overflow: visible; opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3602
3644
  }, [
3603
3645
  k("div", {
3604
- style: L(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${C.value.plotLabels}px;border-radius: 2px;`),
3646
+ style: C(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${A.value.plotLabels}px;border-radius: 2px;`),
3605
3647
  innerHTML: h(ze)(
3606
3648
  t.value.plot.tag.formatter,
3607
3649
  a.value,
@@ -3616,14 +3658,14 @@ const _n = {
3616
3658
  ], 12, Ui)) : g("", !0),
3617
3659
  a && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), u("foreignObject", {
3618
3660
  key: 1,
3619
- x: a.x - e.name.length * (C.value.plotLabels / 2),
3661
+ x: a.x - e.name.length * (A.value.plotLabels / 2),
3620
3662
  y: a.y - 20,
3621
3663
  height: 24,
3622
3664
  width: "150",
3623
- style: L(`overflow: visible; opacity:${V.value ? V.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3665
+ style: C(`overflow: visible; opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3624
3666
  }, [
3625
3667
  k("div", {
3626
- style: L(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${C.value.plotLabels}px;border-radius: 2px;`),
3668
+ style: C(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${A.value.plotLabels}px;border-radius: 2px;`),
3627
3669
  innerHTML: h(ze)(
3628
3670
  t.value.plot.tag.formatter,
3629
3671
  a.value,
@@ -3641,20 +3683,20 @@ const _n = {
3641
3683
  ], 64))), 128))
3642
3684
  ])),
3643
3685
  t.value.line.labels.show && p.value.dataLabels.show ? (n(), u("g", Qi, [
3644
- (n(!0), u(b, null, M(Re.value, (e, i) => (n(), u(b, {
3686
+ (n(!0), u(b, null, L(Re.value, (e, i) => (n(), u(b, {
3645
3687
  key: `xLabel_line_${e.id}`
3646
3688
  }, [
3647
- (n(!0), u(b, null, M(e.plots, (a, r) => (n(), u(b, {
3689
+ (n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
3648
3690
  key: `xLabel_line_${i}_${r}`
3649
3691
  }, [
3650
- a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === r || W.value !== null && W.value === r ? (n(), u("text", {
3692
+ a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || M.value !== null && M.value === r || X.value !== null && X.value === r ? (n(), u("text", {
3651
3693
  key: 0,
3652
3694
  x: a.x,
3653
3695
  y: a.y + (a.value >= 0 ? t.value.line.labels.offsetY : -t.value.line.labels.offsetY * 3),
3654
3696
  "text-anchor": "middle",
3655
- "font-size": C.value.plotLabels,
3697
+ "font-size": A.value.plotLabels,
3656
3698
  fill: t.value.line.labels.color,
3657
- style: L(`opacity:${V.value ? V.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3699
+ style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3658
3700
  }, re(Ye(a.value) ? h(ze)(
3659
3701
  t.value.line.labels.formatter,
3660
3702
  a.value,
@@ -3672,14 +3714,14 @@ const _n = {
3672
3714
  ], 64))), 128))
3673
3715
  ], 64))), 128))
3674
3716
  ])) : (n(), u("g", es, [
3675
- (n(!0), u(b, null, M(Re.value, (e, i) => (n(), u(b, {
3717
+ (n(!0), u(b, null, L(Re.value, (e, i) => (n(), u(b, {
3676
3718
  key: `xLabel_line_${e.id}`
3677
3719
  }, [
3678
- (n(!0), u(b, null, M(e.plots, (a, r) => (n(), u(b, {
3720
+ (n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
3679
3721
  key: `xLabel_line_${i}_${r}`
3680
3722
  }, [
3681
3723
  t.value.line.tag.followValue ? (n(), u(b, { key: 1 }, [
3682
- [W.value, _.value, ae.value].includes(r) && e.useTag ? (n(), u("line", {
3724
+ [X.value, M.value, ae.value].includes(r) && e.useTag ? (n(), u("line", {
3683
3725
  key: 0,
3684
3726
  class: "vue-ui-xy-tag-line",
3685
3727
  x1: c.value.left,
@@ -3698,10 +3740,10 @@ const _n = {
3698
3740
  y: a.y - 20,
3699
3741
  height: 24,
3700
3742
  width: "150",
3701
- style: L(`overflow: visible; opacity:${V.value ? V.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3743
+ style: C(`overflow: visible; opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3702
3744
  }, [
3703
3745
  k("div", {
3704
- style: L(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${C.value.plotLabels}px;border-radius: 2px;`),
3746
+ style: C(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${A.value.plotLabels}px;border-radius: 2px;`),
3705
3747
  innerHTML: h(ze)(
3706
3748
  t.value.line.tag.formatter,
3707
3749
  a.value,
@@ -3720,10 +3762,10 @@ const _n = {
3720
3762
  y: a.y - 20,
3721
3763
  height: 24,
3722
3764
  width: "150",
3723
- style: L(`overflow: visible; opacity:${V.value ? V.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3765
+ style: C(`overflow: visible; opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3724
3766
  }, [
3725
3767
  k("div", {
3726
- style: L(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${C.value.plotLabels}px;border-radius: 2px;`),
3768
+ style: C(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${A.value.plotLabels}px;border-radius: 2px;`),
3727
3769
  innerHTML: h(ze)(
3728
3770
  t.value.line.tag.formatter,
3729
3771
  a.value,
@@ -3740,93 +3782,93 @@ const _n = {
3740
3782
  ], 64))), 128))
3741
3783
  ], 64))), 128))
3742
3784
  ])),
3743
- (n(!0), u(b, null, M(Re.value, (e, i) => (n(), u(b, {
3785
+ (n(!0), u(b, null, L(Re.value, (e, i) => (n(), u(b, {
3744
3786
  key: `xLabel_line_${e.id}`
3745
3787
  }, [
3746
- (n(!0), u(b, null, M(e.plots, (a, r) => (n(), u(b, {
3788
+ (n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
3747
3789
  key: `xLabel_line_${i}_${r}`
3748
3790
  }, [
3749
3791
  a && r === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), u("text", {
3750
3792
  key: 0,
3751
- x: a.x - C.value.plotLabels,
3793
+ x: a.x - A.value.plotLabels,
3752
3794
  y: a.y,
3753
- "font-size": C.value.plotLabels,
3795
+ "font-size": A.value.plotLabels,
3754
3796
  "text-anchor": "end",
3755
3797
  fill: e.color,
3756
- innerHTML: h(fa)({
3798
+ innerHTML: h(ma)({
3757
3799
  content: e.name,
3758
- fontSize: C.value.plotLabels,
3800
+ fontSize: A.value.plotLabels,
3759
3801
  fill: e.color,
3760
- x: a.x - C.value.plotLabels,
3802
+ x: a.x - A.value.plotLabels,
3761
3803
  y: a.y,
3762
3804
  maxWords: 2
3763
3805
  }),
3764
- style: L(`opacity:${V.value ? V.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3806
+ style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3765
3807
  }, null, 12, us)) : g("", !0),
3766
3808
  a && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), u("text", {
3767
3809
  key: 1,
3768
- x: a.x + C.value.plotLabels,
3810
+ x: a.x + A.value.plotLabels,
3769
3811
  y: a.y,
3770
- "font-size": C.value.plotLabels,
3812
+ "font-size": A.value.plotLabels,
3771
3813
  "text-anchor": "start",
3772
3814
  fill: e.color,
3773
- innerHTML: h(fa)({
3815
+ innerHTML: h(ma)({
3774
3816
  content: e.name,
3775
- fontSize: C.value.plotLabels,
3817
+ fontSize: A.value.plotLabels,
3776
3818
  fill: e.color,
3777
- x: a.x + C.value.plotLabels,
3819
+ x: a.x + A.value.plotLabels,
3778
3820
  y: a.y,
3779
3821
  maxWords: 2
3780
3822
  }),
3781
- style: L(`opacity:${V.value ? V.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3823
+ style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3782
3824
  }, null, 12, is)) : g("", !0)
3783
3825
  ], 64))), 128))
3784
3826
  ], 64))), 128)),
3785
- (n(!0), u(b, null, M(rt.value, (e, i) => (n(), u(b, {
3827
+ (n(!0), u(b, null, L(rt.value, (e, i) => (n(), u(b, {
3786
3828
  key: `xLabel_plot_${e.id}`
3787
3829
  }, [
3788
- (n(!0), u(b, null, M(e.plots, (a, r) => (n(), u(b, {
3830
+ (n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
3789
3831
  key: `xLabel_plot_${i}_${r}`
3790
3832
  }, [
3791
3833
  a && r === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), u("text", {
3792
3834
  key: 0,
3793
- x: a.x - C.value.plotLabels,
3835
+ x: a.x - A.value.plotLabels,
3794
3836
  y: a.y,
3795
- "font-size": C.value.plotLabels,
3837
+ "font-size": A.value.plotLabels,
3796
3838
  "text-anchor": "end",
3797
3839
  fill: e.color,
3798
- innerHTML: h(fa)({
3840
+ innerHTML: h(ma)({
3799
3841
  content: e.name,
3800
- fontSize: C.value.plotLabels,
3842
+ fontSize: A.value.plotLabels,
3801
3843
  fill: e.color,
3802
- x: a.x - C.value.plotLabels,
3844
+ x: a.x - A.value.plotLabels,
3803
3845
  y: a.y,
3804
3846
  maxWords: 2
3805
3847
  }),
3806
- style: L(`opacity:${V.value ? V.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3848
+ style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3807
3849
  }, null, 12, ss)) : g("", !0),
3808
3850
  a && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), u("text", {
3809
3851
  key: 1,
3810
- x: a.x + C.value.plotLabels,
3852
+ x: a.x + A.value.plotLabels,
3811
3853
  y: a.y,
3812
- "font-size": C.value.plotLabels,
3854
+ "font-size": A.value.plotLabels,
3813
3855
  "text-anchor": "start",
3814
3856
  fill: e.color,
3815
- innerHTML: h(fa)({
3857
+ innerHTML: h(ma)({
3816
3858
  content: e.name,
3817
- fontSize: C.value.plotLabels,
3859
+ fontSize: A.value.plotLabels,
3818
3860
  fill: e.color,
3819
- x: a.x + C.value.plotLabels,
3861
+ x: a.x + A.value.plotLabels,
3820
3862
  y: a.y,
3821
3863
  maxWords: 2
3822
3864
  }),
3823
- style: L(`opacity:${V.value ? V.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3865
+ style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3824
3866
  }, null, 12, rs)) : g("", !0)
3825
3867
  ], 64))), 128))
3826
3868
  ], 64))), 128)),
3827
3869
  p.value.useIndividualScale && !p.value.isStacked ? (n(), u(b, { key: 13 }, [
3828
3870
  k("defs", null, [
3829
- (n(!0), u(b, null, M(Gl.value, (e, i) => (n(), u("linearGradient", {
3871
+ (n(!0), u(b, null, L(Gl.value, (e, i) => (n(), u("linearGradient", {
3830
3872
  id: `individual_scale_gradient_${Z.value}_${i}`,
3831
3873
  x1: "0%",
3832
3874
  x2: "100%",
@@ -3845,22 +3887,22 @@ const _n = {
3845
3887
  }, null, 8, ds)
3846
3888
  ], 8, cs))), 256))
3847
3889
  ]),
3848
- (n(!0), u(b, null, M(Gl.value, (e, i) => (n(), u("rect", {
3890
+ (n(!0), u(b, null, L(Gl.value, (e, i) => (n(), u("rect", {
3849
3891
  x: e.x - t.value.chart.grid.labels.yAxis.labelWidth + ue.value - c.value.individualOffsetX,
3850
3892
  y: c.value.top,
3851
3893
  width: t.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
3852
3894
  height: c.value.height < 0 ? 10 : c.value.height,
3853
- fill: V.value === e.groupId ? `url(#individual_scale_gradient_${Z.value}_${i})` : "transparent",
3854
- onMouseenter: (a) => V.value = e.groupId,
3855
- onMouseleave: s[0] || (s[0] = (a) => V.value = null)
3895
+ fill: E.value === e.groupId ? `url(#individual_scale_gradient_${Z.value}_${i})` : "transparent",
3896
+ onMouseenter: (a) => E.value = e.groupId,
3897
+ onMouseleave: s[0] || (s[0] = (a) => E.value = null)
3856
3898
  }, null, 40, hs))), 256))
3857
3899
  ], 64)) : g("", !0),
3858
3900
  k("g", null, [
3859
3901
  t.value.chart.grid.labels.axis.yLabel && !p.value.useIndividualScale ? (n(), u("text", {
3860
3902
  key: 0,
3861
3903
  ref_key: "yAxisLabel",
3862
- ref: Zt,
3863
- "font-size": C.value.yAxis,
3904
+ ref: Kt,
3905
+ "font-size": A.value.yAxis,
3864
3906
  fill: t.value.chart.grid.labels.color,
3865
3907
  transform: `translate(${t.value.chart.grid.labels.axis.fontSize}, ${c.value.top + c.value.height / 2}) rotate(-90)`,
3866
3908
  "text-anchor": "middle",
@@ -3869,11 +3911,11 @@ const _n = {
3869
3911
  t.value.chart.grid.labels.axis.xLabel ? (n(), u("text", {
3870
3912
  key: 1,
3871
3913
  ref_key: "xAxisLabel",
3872
- ref: qt,
3914
+ ref: Zt,
3873
3915
  "text-anchor": "middle",
3874
3916
  x: le.value / 2,
3875
- y: D.value - 3,
3876
- "font-size": C.value.yAxis,
3917
+ y: W.value - 3,
3918
+ "font-size": A.value.yAxis,
3877
3919
  fill: t.value.chart.grid.labels.color
3878
3920
  }, re(t.value.chart.grid.labels.axis.xLabel), 9, ms)) : g("", !0)
3879
3921
  ]),
@@ -3882,20 +3924,20 @@ const _n = {
3882
3924
  ref_key: "timeLabelsEls",
3883
3925
  ref: Se
3884
3926
  }, [
3885
- l.$slots["time-label"] ? (n(!0), u(b, { key: 0 }, M(E.value, (e, i) => te(l.$slots, "time-label", Yt({
3927
+ l.$slots["time-label"] ? (n(!0), u(b, { key: 0 }, L(D.value, (e, i) => te(l.$slots, "time-label", Gt({
3886
3928
  key: `time_label_${e.id}`,
3887
3929
  ref_for: !0
3888
3930
  }, {
3889
- x: c.value.left + c.value.width / $.value * i + c.value.width / $.value / 2,
3931
+ x: c.value.left + c.value.width / S.value * i + c.value.width / S.value / 2,
3890
3932
  y: c.value.bottom,
3891
- fontSize: C.value.xAxis,
3933
+ fontSize: A.value.xAxis,
3892
3934
  fill: t.value.chart.grid.labels.xAxisLabels.color,
3893
- transform: `translate(${c.value.left + c.value.width / $.value * i + c.value.width / $.value / 2}, ${c.value.bottom + C.value.xAxis * 1.3 + t.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
3935
+ transform: `translate(${c.value.left + c.value.width / S.value * i + c.value.width / S.value / 2}, ${c.value.bottom + A.value.xAxis * 1.3 + t.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
3894
3936
  absoluteIndex: e.absoluteIndex,
3895
3937
  content: e.text,
3896
3938
  textAnchor: t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3897
3939
  show: e && e.text
3898
- }), void 0, !0)), 128)) : (n(!0), u(b, { key: 1 }, M(E.value, (e, i) => (n(), u("g", {
3940
+ }), void 0, !0)), 128)) : (n(!0), u(b, { key: 1 }, L(D.value, (e, i) => (n(), u("g", {
3899
3941
  key: `time_label_${i}`
3900
3942
  }, [
3901
3943
  e && e.text ? (n(), u(b, { key: 0 }, [
@@ -3904,15 +3946,15 @@ const _n = {
3904
3946
  key: 1,
3905
3947
  class: "vue-data-ui-time-label",
3906
3948
  "text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3907
- "font-size": C.value.xAxis,
3949
+ "font-size": A.value.xAxis,
3908
3950
  fill: t.value.chart.grid.labels.xAxisLabels.color,
3909
- transform: `translate(${c.value.left + c.value.width / $.value * i + c.value.width / $.value / 2}, ${c.value.bottom + C.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
3910
- style: L({
3951
+ transform: `translate(${c.value.left + c.value.width / S.value * i + c.value.width / S.value / 2}, ${c.value.bottom + A.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
3952
+ style: C({
3911
3953
  cursor: kl() ? "pointer" : "default"
3912
3954
  }),
3913
3955
  innerHTML: h(sn)({
3914
3956
  content: String(e.text),
3915
- fontSize: C.value.xAxis,
3957
+ fontSize: A.value.xAxis,
3916
3958
  fill: t.value.chart.grid.labels.xAxisLabels.color,
3917
3959
  x: 0,
3918
3960
  y: 0
@@ -3922,10 +3964,10 @@ const _n = {
3922
3964
  key: 0,
3923
3965
  class: "vue-data-ui-time-label",
3924
3966
  "text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3925
- "font-size": C.value.xAxis,
3967
+ "font-size": A.value.xAxis,
3926
3968
  fill: t.value.chart.grid.labels.xAxisLabels.color,
3927
- transform: `translate(${c.value.left + c.value.width / $.value * i + c.value.width / $.value / 2}, ${c.value.bottom + C.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
3928
- style: L({
3969
+ transform: `translate(${c.value.left + c.value.width / S.value * i + c.value.width / S.value / 2}, ${c.value.bottom + A.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
3970
+ style: C({
3929
3971
  cursor: kl() ? "pointer" : "default"
3930
3972
  }),
3931
3973
  onClick: () => ke(e, i)
@@ -3933,8 +3975,8 @@ const _n = {
3933
3975
  ], 64)) : g("", !0)
3934
3976
  ]))), 128))
3935
3977
  ], 512)) : g("", !0),
3936
- Ua.value.length && !p.value.isStacked ? (n(), u("g", bs, [
3937
- (n(!0), u(b, null, M(Ua.value, (e) => (n(), u("g", {
3978
+ Ka.value.length && !p.value.isStacked ? (n(), u("g", bs, [
3979
+ (n(!0), u(b, null, L(Ka.value, (e) => (n(), u("g", {
3938
3980
  key: e.uid
3939
3981
  }, [
3940
3982
  e.yTop && e.show && isFinite(e.yTop) ? (n(), u("line", {
@@ -3970,7 +4012,7 @@ const _n = {
3970
4012
  fill: h(vt)(e.config.area.fill, e.config.area.opacity),
3971
4013
  style: { animation: "none !important" }
3972
4014
  }, null, 8, ks)) : g("", !0),
3973
- e.config.label.text && e.show && isFinite(e._box.y) ? (n(), u("rect", Yt({
4015
+ e.config.label.text && e.show && isFinite(e._box.y) ? (n(), u("rect", Gt({
3974
4016
  key: 3,
3975
4017
  class: "vue-ui-xy-annotation-label-box"
3976
4018
  }, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : g("", !0),
@@ -3986,7 +4028,7 @@ const _n = {
3986
4028
  }, re(e.config.label.text), 9, ws)) : g("", !0)
3987
4029
  ]))), 128))
3988
4030
  ])) : g("", !0),
3989
- t.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(W.value)) ? (n(), u("g", Ss, [
4031
+ t.value.chart.timeTag.show && (![null, void 0].includes(M.value) || ![null, void 0].includes(X.value)) ? (n(), u("g", Ss, [
3990
4032
  (n(), u("foreignObject", {
3991
4033
  x: Do(),
3992
4034
  y: c.value.bottom,
@@ -3996,21 +4038,21 @@ const _n = {
3996
4038
  }, [
3997
4039
  k("div", {
3998
4040
  ref_key: "timeTagEl",
3999
- ref: no,
4041
+ ref: so,
4000
4042
  class: "vue-ui-xy-time-tag",
4001
- style: L(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${t.value.chart.timeTag.backgroundColor};color:${t.value.chart.timeTag.color};font-size:${t.value.chart.timeTag.fontSize}px`),
4043
+ style: C(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${t.value.chart.timeTag.backgroundColor};color:${t.value.chart.timeTag.color};font-size:${t.value.chart.timeTag.fontSize}px`),
4002
4044
  innerHTML: Wo.value
4003
4045
  }, null, 12, _s)
4004
4046
  ], 8, $s)),
4005
4047
  k("circle", {
4006
- cx: c.value.left + c.value.width / $.value * ((_.value !== null ? _.value : 0) || (W.value !== null ? W.value : 0)) + c.value.width / $.value / 2,
4048
+ cx: c.value.left + c.value.width / S.value * ((M.value !== null ? M.value : 0) || (X.value !== null ? X.value : 0)) + c.value.width / S.value / 2,
4007
4049
  cy: c.value.bottom,
4008
4050
  r: t.value.chart.timeTag.circleMarker.radius,
4009
4051
  fill: t.value.chart.timeTag.circleMarker.color
4010
4052
  }, null, 8, Ms)
4011
4053
  ])) : g("", !0)
4012
4054
  ])) : g("", !0),
4013
- ta.value ? (n(), u("rect", Yt({ key: 2 }, _a.value, {
4055
+ ta.value ? (n(), u("rect", Gt({ key: 2 }, Ma.value, {
4014
4056
  "data-start": w.value.start,
4015
4057
  "data-end": w.value.end
4016
4058
  }), null, 16, Ls)) : g("", !0),
@@ -4018,31 +4060,31 @@ const _n = {
4018
4060
  ], 512)
4019
4061
  ], 46, gu)),
4020
4062
  l.$slots.watermark ? (n(), u("div", Cs, [
4021
- te(l.$slots, "watermark", Xt(dl({ isPrinting: h(Hl) || h(nt) })), void 0, !0)
4063
+ te(l.$slots, "watermark", Yt(dl({ isPrinting: h(Hl) || h(nt) })), void 0, !0)
4022
4064
  ])) : g("", !0),
4023
- (n(!0), u(b, null, M(Re.value, (e, i) => (n(), u(b, {
4065
+ (n(!0), u(b, null, L(Re.value, (e, i) => (n(), u(b, {
4024
4066
  key: `tag_line_${e.id}`
4025
4067
  }, [
4026
- (n(!0), u(b, null, M(e.plots, (a, r) => (n(), u(b, {
4068
+ (n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
4027
4069
  key: `tag_line_${i}_${r}`
4028
4070
  }, [
4029
- [W.value, _.value, ae.value].includes(r) && e.useTag && e.useTag === "end" && t.value.line.tag.followValue ? (n(), u("div", {
4071
+ [X.value, M.value, ae.value].includes(r) && e.useTag && e.useTag === "end" && t.value.line.tag.followValue ? (n(), u("div", {
4030
4072
  key: 0,
4031
4073
  ref_for: !0,
4032
4074
  ref: (o) => kt(i, r, o, "right", "line"),
4033
4075
  class: "vue-ui-xy-tag",
4034
4076
  "data-tag": "right",
4035
- style: L({
4077
+ style: C({
4036
4078
  position: "fixed",
4037
- top: h(Wt)({
4038
- svgElement: Ce.value,
4079
+ top: h(Xt)({
4080
+ svgElement: $e.value,
4039
4081
  x: c.value.right + t.value.line.tag.fontSize / 1.5,
4040
4082
  y: a.y,
4041
4083
  element: ot.value[`${i}_${r}_right_line`],
4042
4084
  position: "right"
4043
4085
  }).top + "px",
4044
- left: h(Wt)({
4045
- svgElement: Ce.value,
4086
+ left: h(Xt)({
4087
+ svgElement: $e.value,
4046
4088
  x: c.value.right + t.value.line.tag.fontSize / 1.5,
4047
4089
  y: a.y,
4048
4090
  element: ot.value[`${i}_${r}_right_line`],
@@ -4078,23 +4120,23 @@ const _n = {
4078
4120
  )
4079
4121
  }, null, 8, Ts)
4080
4122
  ], 4)) : g("", !0),
4081
- [W.value, _.value, ae.value].includes(r) && e.useTag && e.useTag === "start" && t.value.line.tag.followValue ? (n(), u("div", {
4123
+ [X.value, M.value, ae.value].includes(r) && e.useTag && e.useTag === "start" && t.value.line.tag.followValue ? (n(), u("div", {
4082
4124
  key: 1,
4083
4125
  ref_for: !0,
4084
4126
  ref: (o) => kt(i, r, o, "left", "line"),
4085
4127
  class: "vue-ui-xy-tag",
4086
4128
  "data-tag": "left",
4087
- style: L({
4129
+ style: C({
4088
4130
  position: "fixed",
4089
- top: h(Wt)({
4090
- svgElement: Ce.value,
4131
+ top: h(Xt)({
4132
+ svgElement: $e.value,
4091
4133
  x: c.value.left - t.value.line.tag.fontSize / 1.5,
4092
4134
  y: a.y,
4093
4135
  element: ot.value[`${i}_${r}_left_line`],
4094
4136
  position: "left"
4095
4137
  }).top + "px",
4096
- left: h(Wt)({
4097
- svgElement: Ce.value,
4138
+ left: h(Xt)({
4139
+ svgElement: $e.value,
4098
4140
  x: c.value.left - t.value.line.tag.fontSize / 1.5,
4099
4141
  y: a.y,
4100
4142
  element: ot.value[`${i}_${r}_left_line`],
@@ -4132,29 +4174,29 @@ const _n = {
4132
4174
  ], 4)) : g("", !0)
4133
4175
  ], 64))), 128))
4134
4176
  ], 64))), 128)),
4135
- (n(!0), u(b, null, M(rt.value, (e, i) => (n(), u(b, {
4177
+ (n(!0), u(b, null, L(rt.value, (e, i) => (n(), u(b, {
4136
4178
  key: `tag_plot_${e.id}`
4137
4179
  }, [
4138
- (n(!0), u(b, null, M(e.plots, (a, r) => (n(), u(b, {
4180
+ (n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
4139
4181
  key: `tag_plot_${i}_${r}`
4140
4182
  }, [
4141
- [W.value, _.value, ae.value].includes(r) && e.useTag && e.useTag === "end" && t.value.plot.tag.followValue ? (n(), u("div", {
4183
+ [X.value, M.value, ae.value].includes(r) && e.useTag && e.useTag === "end" && t.value.plot.tag.followValue ? (n(), u("div", {
4142
4184
  key: 0,
4143
4185
  ref_for: !0,
4144
4186
  ref: (o) => kt(i, r, o, "right", "plot"),
4145
4187
  class: "vue-ui-xy-tag",
4146
4188
  "data-tag": "right",
4147
- style: L({
4189
+ style: C({
4148
4190
  position: "fixed",
4149
- top: h(Wt)({
4150
- svgElement: Ce.value,
4191
+ top: h(Xt)({
4192
+ svgElement: $e.value,
4151
4193
  x: c.value.right + t.value.plot.tag.fontSize / 1.5,
4152
4194
  y: a.y,
4153
4195
  element: ot.value[`${i}_${r}_right_plot`],
4154
4196
  position: "right"
4155
4197
  }).top + "px",
4156
- left: h(Wt)({
4157
- svgElement: Ce.value,
4198
+ left: h(Xt)({
4199
+ svgElement: $e.value,
4158
4200
  x: c.value.right + t.value.plot.tag.fontSize / 1.5,
4159
4201
  y: a.y,
4160
4202
  element: ot.value[`${i}_${r}_right_plot`],
@@ -4190,23 +4232,23 @@ const _n = {
4190
4232
  )
4191
4233
  }, null, 8, Os)
4192
4234
  ], 4)) : g("", !0),
4193
- [W.value, _.value, ae.value].includes(r) && e.useTag && e.useTag === "start" && t.value.plot.tag.followValue ? (n(), u("div", {
4235
+ [X.value, M.value, ae.value].includes(r) && e.useTag && e.useTag === "start" && t.value.plot.tag.followValue ? (n(), u("div", {
4194
4236
  key: 1,
4195
4237
  ref_for: !0,
4196
4238
  ref: (o) => kt(i, r, o, "left", "plot"),
4197
4239
  class: "vue-ui-xy-tag",
4198
4240
  "data-tag": "left",
4199
- style: L({
4241
+ style: C({
4200
4242
  position: "fixed",
4201
- top: h(Wt)({
4202
- svgElement: Ce.value,
4243
+ top: h(Xt)({
4244
+ svgElement: $e.value,
4203
4245
  x: c.value.left - t.value.plot.tag.fontSize / 1.5,
4204
4246
  y: a.y,
4205
4247
  element: ot.value[`${i}_${r}_left_plot`],
4206
4248
  position: "left"
4207
4249
  }).top + "px",
4208
- left: h(Wt)({
4209
- svgElement: Ce.value,
4250
+ left: h(Xt)({
4251
+ svgElement: $e.value,
4210
4252
  x: c.value.left - t.value.plot.tag.fontSize / 1.5,
4211
4253
  y: a.y,
4212
4254
  element: ot.value[`${i}_${r}_left_plot`],
@@ -4244,7 +4286,7 @@ const _n = {
4244
4286
  ], 4)) : g("", !0)
4245
4287
  ], 64))), 128))
4246
4288
  ], 64))), 128)),
4247
- t.value.chart.zoom.show && Qe.value > 6 && el.value && _e.value ? (n(), ct(hu, {
4289
+ t.value.chart.zoom.show && Qe.value > 6 && Mt.value && Me.value ? (n(), ct(hu, {
4248
4290
  key: 5,
4249
4291
  ref_key: "chartSlicer",
4250
4292
  ref: Ke,
@@ -4256,8 +4298,8 @@ const _n = {
4256
4298
  start: w.value.start,
4257
4299
  end: w.value.end,
4258
4300
  "onUpdate:start": na,
4259
- "onUpdate:end": Ma,
4260
- selectedSeries: zt.value,
4301
+ "onUpdate:end": La,
4302
+ selectedSeries: Tt.value,
4261
4303
  customFormat: t.value.chart.zoom.customFormat,
4262
4304
  background: t.value.chart.zoom.color,
4263
4305
  fontSize: t.value.chart.zoom.fontSize,
@@ -4276,11 +4318,11 @@ const _n = {
4276
4318
  minimapSelectionRadius: t.value.chart.zoom.minimap.selectionRadius,
4277
4319
  minimapLineColor: t.value.chart.zoom.minimap.lineColor,
4278
4320
  minimapSelectedColorOpacity: t.value.chart.zoom.minimap.selectedColorOpacity,
4279
- minimapSelectedIndex: _.value,
4321
+ minimapSelectedIndex: M.value,
4280
4322
  minimapIndicatorColor: t.value.chart.zoom.minimap.indicatorColor,
4281
4323
  verticalHandles: t.value.chart.zoom.minimap.verticalHandles,
4282
4324
  refreshStartPoint: t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex : 0,
4283
- refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(...S.dataset.map((e) => yt(e.series).length)),
4325
+ refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(...$.dataset.map((e) => yt(e.series).length)),
4284
4326
  enableRangeHandles: t.value.chart.zoom.enableRangeHandles,
4285
4327
  enableSelectionDrag: t.value.chart.zoom.enableSelectionDrag,
4286
4328
  minimapCompact: t.value.chart.zoom.minimap.compact,
@@ -4290,7 +4332,7 @@ const _n = {
4290
4332
  cutNullValues: t.value.line.cutNullValues,
4291
4333
  focusOnDrag: t.value.chart.zoom.focusOnDrag,
4292
4334
  focusRangeRatio: t.value.chart.zoom.focusRangeRatio,
4293
- onReset: La,
4335
+ onReset: Ca,
4294
4336
  onTrapMouse: wl,
4295
4337
  onFutureStart: s[1] || (s[1] = (e) => El("start", e)),
4296
4338
  onFutureEnd: s[2] || (s[2] = (e) => El("end", e)),
@@ -4298,32 +4340,32 @@ const _n = {
4298
4340
  isPreview: ta.value
4299
4341
  }, {
4300
4342
  "reset-action": we(({ reset: e }) => [
4301
- te(l.$slots, "reset-action", Xt(dl({ reset: e })), void 0, !0)
4343
+ te(l.$slots, "reset-action", Yt(dl({ reset: e })), void 0, !0)
4302
4344
  ]),
4303
4345
  _: 3
4304
4346
  }, 8, ["immediate", "max", "valueStart", "valueEnd", "start", "end", "selectedSeries", "customFormat", "background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "usePreciseLabels", "preciseLabels", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "minimapCompact", "allMinimaps", "minimapMerged", "minimapFrameColor", "cutNullValues", "focusOnDrag", "focusRangeRatio", "timeLabels", "isPreview"])) : g("", !0),
4305
4347
  k("div", {
4306
4348
  id: `legend-bottom-${Z.value}`
4307
4349
  }, null, 8, Hs),
4308
- B.value ? (n(), ct(Zo, {
4350
+ H.value ? (n(), ct(Zo, {
4309
4351
  key: 6,
4310
4352
  to: t.value.chart.legend.position === "top" ? `#legend-top-${Z.value}` : `#legend-bottom-${Z.value}`
4311
4353
  }, [
4312
4354
  t.value.chart.legend.show ? (n(), u("div", {
4313
4355
  key: 0,
4314
4356
  ref_key: "chartLegend",
4315
- ref: Le,
4357
+ ref: Ce,
4316
4358
  class: "vue-ui-xy-legend",
4317
- style: L({
4359
+ style: C({
4318
4360
  fontSize: `var(--legend-font-size, ${t.value.chart.legend.fontSize ?? 14}px)`
4319
4361
  })
4320
4362
  }, [
4321
- (n(!0), u(b, null, M(et.value, (e, i) => (n(), u("div", {
4363
+ (n(!0), u(b, null, L(et.value, (e, i) => (n(), u("div", {
4322
4364
  key: `div_legend_item_${i}`,
4323
- onClick: (a) => Wa(e),
4324
- class: Ze({ "vue-ui-xy-legend-item-alone": et.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ce.value.includes(e.id) })
4365
+ onClick: (a) => Ga(e),
4366
+ class: Ze({ "vue-ui-xy-legend-item-alone": et.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ve.value.includes(e.id) })
4325
4367
  }, [
4326
- Jt.value[e.type] === "line" ? (n(), u("svg", Ws, [
4368
+ Qt.value[e.type] === "line" ? (n(), u("svg", Ws, [
4327
4369
  k("rect", {
4328
4370
  x: "0",
4329
4371
  y: "7.5",
@@ -4334,7 +4376,7 @@ const _n = {
4334
4376
  width: "20",
4335
4377
  fill: e.color
4336
4378
  }, null, 8, Xs),
4337
- ml(ma, {
4379
+ ml(ga, {
4338
4380
  plot: { x: 10, y: 9 },
4339
4381
  radius: 4,
4340
4382
  color: e.color,
@@ -4342,8 +4384,8 @@ const _n = {
4342
4384
  stroke: t.value.chart.backgroundColor,
4343
4385
  strokeWidth: 0.5
4344
4386
  }, null, 8, ["color", "shape", "stroke"])
4345
- ])) : Jt.value[e.type] === "bar" ? (n(), u("svg", Ys, [
4346
- Jt.value[e.type] === "bar" && l.$slots.pattern ? (n(), u("rect", {
4387
+ ])) : Qt.value[e.type] === "bar" ? (n(), u("svg", Ys, [
4388
+ Qt.value[e.type] === "bar" && l.$slots.pattern ? (n(), u("rect", {
4347
4389
  key: 0,
4348
4390
  x: "4",
4349
4391
  y: "4",
@@ -4353,7 +4395,7 @@ const _n = {
4353
4395
  stroke: "none",
4354
4396
  fill: e.color
4355
4397
  }, null, 8, Gs)) : g("", !0),
4356
- Jt.value[e.type] === "bar" ? (n(), u("rect", {
4398
+ Qt.value[e.type] === "bar" ? (n(), u("rect", {
4357
4399
  key: 1,
4358
4400
  x: "4",
4359
4401
  y: "4",
@@ -4364,7 +4406,7 @@ const _n = {
4364
4406
  fill: l.$slots.pattern ? `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})` : e.color
4365
4407
  }, null, 8, Us)) : g("", !0)
4366
4408
  ])) : (n(), u("svg", qs, [
4367
- ml(ma, {
4409
+ ml(ga, {
4368
4410
  plot: { x: 6, y: 6 },
4369
4411
  radius: 5,
4370
4412
  color: e.color,
@@ -4372,13 +4414,13 @@ const _n = {
4372
4414
  }, null, 8, ["color", "shape"])
4373
4415
  ])),
4374
4416
  k("span", {
4375
- style: L(`color:${t.value.chart.legend.color}`)
4417
+ style: C(`color:${t.value.chart.legend.color}`)
4376
4418
  }, re(e.name), 5)
4377
4419
  ], 10, Ds))), 128))
4378
4420
  ], 4)) : (n(), u("div", {
4379
4421
  key: 1,
4380
4422
  ref_key: "chartLegend",
4381
- ref: Le
4423
+ ref: Ce
4382
4424
  }, [
4383
4425
  te(l.$slots, "legend", { legend: et.value }, void 0, !0)
4384
4426
  ], 512))
@@ -4391,7 +4433,7 @@ const _n = {
4391
4433
  }, [
4392
4434
  te(l.$slots, "source", {}, void 0, !0)
4393
4435
  ], 512)) : g("", !0),
4394
- ml(h(he), {
4436
+ ml(h(ce), {
4395
4437
  show: p.value.showTooltip && bl.value,
4396
4438
  backgroundColor: t.value.chart.tooltip.backgroundColor,
4397
4439
  color: t.value.chart.tooltip.color,
@@ -4412,21 +4454,21 @@ const _n = {
4412
4454
  smoothSnapThreshold: t.value.chart.tooltip.smoothSnapThreshold
4413
4455
  }, {
4414
4456
  "tooltip-before": we(() => [
4415
- te(l.$slots, "tooltip-before", Xt(dl({ ...Ka.value })), void 0, !0)
4457
+ te(l.$slots, "tooltip-before", Yt(dl({ ...ja.value })), void 0, !0)
4416
4458
  ]),
4417
4459
  "tooltip-after": we(() => [
4418
- te(l.$slots, "tooltip-after", Xt(dl({ ...Ka.value })), void 0, !0)
4460
+ te(l.$slots, "tooltip-after", Yt(dl({ ...ja.value })), void 0, !0)
4419
4461
  ]),
4420
4462
  _: 3
4421
4463
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
4422
- el.value && t.value.chart.userOptions.buttons.table ? (n(), ct(Ko(Ul.value.component), Yt({ key: 8 }, Ul.value.props, {
4464
+ Mt.value && t.value.chart.userOptions.buttons.table ? (n(), ct(Ko(Ul.value.component), Gt({ key: 8 }, Ul.value.props, {
4423
4465
  ref_key: "tableUnit",
4424
4466
  ref: Je,
4425
- onClose: so
4426
- }), fo({
4467
+ onClose: vo
4468
+ }), xo({
4427
4469
  content: we(() => [
4428
4470
  k("div", {
4429
- style: L(`${h(Hl) || t.value.table.useDialog ? "" : "max-height:400px"};${t.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${t.value.table.useDialog ? "" : "margin-top:48px"}`)
4471
+ style: C(`${h(Hl) || t.value.table.useDialog ? "" : "max-height:400px"};${t.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${t.value.table.useDialog ? "" : "margin-top:48px"}`)
4430
4472
  }, [
4431
4473
  k("div", Zs, [
4432
4474
  Oa(k("input", {
@@ -4439,7 +4481,7 @@ const _n = {
4439
4481
  onClick: s[5] || (s[5] = (e) => He.value = !He.value),
4440
4482
  style: { cursor: "pointer" }
4441
4483
  }, [
4442
- ml(h(fe), {
4484
+ ml(h(me), {
4443
4485
  name: "chartLine",
4444
4486
  size: 20,
4445
4487
  stroke: t.value.chart.color
@@ -4450,21 +4492,21 @@ const _n = {
4450
4492
  key: `sparkline_${gt.value}`,
4451
4493
  dataset: Po.value,
4452
4494
  config: Fo.value
4453
- }, null, 8, ["dataset", "config"])) : (n(), ct(h(Me), {
4495
+ }, null, 8, ["dataset", "config"])) : (n(), ct(h(Le), {
4454
4496
  key: `table_${Fl.value}`,
4455
- colNames: va.value.colNames,
4456
- head: va.value.head,
4457
- body: va.value.body,
4458
- config: va.value.config,
4497
+ colNames: da.value.colNames,
4498
+ head: da.value.head,
4499
+ body: da.value.body,
4500
+ config: da.value.config,
4459
4501
  title: t.value.table.useDialog ? "" : Ul.value.title,
4460
4502
  withCloseButton: !t.value.table.useDialog,
4461
- onClose: so
4503
+ onClose: vo
4462
4504
  }, {
4463
4505
  th: we(({ th: e }) => [
4464
4506
  k("div", { innerHTML: e }, null, 8, Ks)
4465
4507
  ]),
4466
4508
  td: we(({ td: e }) => [
4467
- mo(re(isNaN(Number(e)) ? e : h(lt)({
4509
+ bo(re(isNaN(Number(e)) ? e : h(lt)({
4468
4510
  p: t.value.chart.labels.prefix,
4469
4511
  v: e,
4470
4512
  s: t.value.chart.labels.suffix,
@@ -4480,7 +4522,7 @@ const _n = {
4480
4522
  t.value.table.useDialog ? {
4481
4523
  name: "title",
4482
4524
  fn: we(() => [
4483
- mo(re(Ul.value.title), 1)
4525
+ bo(re(Ul.value.title), 1)
4484
4526
  ]),
4485
4527
  key: "0"
4486
4528
  } : void 0,
@@ -4492,7 +4534,7 @@ const _n = {
4492
4534
  class: "vue-ui-user-options-button",
4493
4535
  onClick: s[3] || (s[3] = (e) => za(t.value.chart.userOptions.callbacks.csv))
4494
4536
  }, [
4495
- ml(h(fe), {
4537
+ ml(h(me), {
4496
4538
  name: "excel",
4497
4539
  stroke: Ul.value.props.color
4498
4540
  }, null, 8, ["stroke"])
@@ -4504,7 +4546,7 @@ const _n = {
4504
4546
  h(xe) ? (n(), ct(xn, { key: 9 })) : g("", !0)
4505
4547
  ], 46, fu));
4506
4548
  }
4507
- }, dr = /* @__PURE__ */ $o(Js, [["__scopeId", "data-v-22d65776"]]);
4549
+ }, dr = /* @__PURE__ */ Lo(Js, [["__scopeId", "data-v-d218b34b"]]);
4508
4550
  export {
4509
4551
  dr as default
4510
4552
  };