vue-data-ui 3.4.9 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/README.md +114 -37
  2. package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
  3. package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
  4. package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-DQvyATVa.js} +1 -1
  5. package/dist/PenAndPaper-SZQIAgkg.js +388 -0
  6. package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
  7. package/dist/components/vue-ui-3d-bar.js +1 -1
  8. package/dist/components/vue-ui-accordion.js +1 -1
  9. package/dist/components/vue-ui-age-pyramid.js +1 -1
  10. package/dist/components/vue-ui-annotator.js +1 -1
  11. package/dist/components/vue-ui-bullet.js +1 -1
  12. package/dist/components/vue-ui-candlestick.js +1 -1
  13. package/dist/components/vue-ui-carousel-table.js +1 -1
  14. package/dist/components/vue-ui-chestnut.js +1 -1
  15. package/dist/components/vue-ui-chord.js +1 -1
  16. package/dist/components/vue-ui-circle-pack.js +1 -1
  17. package/dist/components/vue-ui-cursor.js +1 -1
  18. package/dist/components/vue-ui-dashboard.js +1 -1
  19. package/dist/components/vue-ui-digits.js +1 -1
  20. package/dist/components/vue-ui-donut-evolution.js +1 -1
  21. package/dist/components/vue-ui-donut.js +1 -1
  22. package/dist/components/vue-ui-dumbbell.js +1 -1
  23. package/dist/components/vue-ui-flow.js +1 -1
  24. package/dist/components/vue-ui-funnel.js +1 -1
  25. package/dist/components/vue-ui-galaxy.js +1 -1
  26. package/dist/components/vue-ui-gauge.js +1 -1
  27. package/dist/components/vue-ui-gizmo.js +1 -1
  28. package/dist/components/vue-ui-heatmap.js +1 -1
  29. package/dist/components/vue-ui-history-plot.js +1 -1
  30. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  31. package/dist/components/vue-ui-kpi.js +1 -1
  32. package/dist/components/vue-ui-mini-loader.js +1 -1
  33. package/dist/components/vue-ui-molecule.js +1 -1
  34. package/dist/components/vue-ui-mood-radar.js +1 -1
  35. package/dist/components/vue-ui-nested-donuts.js +1 -1
  36. package/dist/components/vue-ui-onion.js +1 -1
  37. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  38. package/dist/components/vue-ui-quadrant.js +1 -1
  39. package/dist/components/vue-ui-quick-chart.js +1 -1
  40. package/dist/components/vue-ui-radar.js +1 -1
  41. package/dist/components/vue-ui-rating.js +1 -1
  42. package/dist/components/vue-ui-relation-circle.js +1 -1
  43. package/dist/components/vue-ui-ridgeline.js +1 -1
  44. package/dist/components/vue-ui-rings.js +1 -1
  45. package/dist/components/vue-ui-scatter.js +1 -1
  46. package/dist/components/vue-ui-skeleton.js +1 -1
  47. package/dist/components/vue-ui-smiley.js +1 -1
  48. package/dist/components/vue-ui-spark-trend.js +1 -1
  49. package/dist/components/vue-ui-sparkbar.js +1 -1
  50. package/dist/components/vue-ui-sparkgauge.js +1 -1
  51. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  52. package/dist/components/vue-ui-sparkline.js +1 -1
  53. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  54. package/dist/components/vue-ui-stackbar.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/types/vue-data-ui.d.ts +17 -8
  72. package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
  73. package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-B_RxfmEm.js} +113 -107
  74. package/dist/vue-data-ui.js +64 -64
  75. package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
  76. package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
  77. package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
  78. package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
  79. package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
  80. package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
  81. package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
  82. package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
  83. package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
  84. package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
  85. package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
  86. package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
  87. package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
  88. package/dist/vue-ui-donut-CxZcJFTo.js +1681 -0
  89. package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-BVYL-BUJ.js} +480 -444
  90. package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
  91. package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-DEI5LRch.js} +339 -319
  92. package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-B_A5orFg.js} +218 -198
  93. package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-CUoDRr-O.js} +313 -277
  94. package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-46tSRZN5.js} +311 -291
  95. package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
  96. package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
  97. package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-C6p_aThr.js} +478 -442
  98. package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
  99. package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
  100. package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-L90GnHee.js} +156 -136
  101. package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
  102. package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-D0MCLs5n.js} +597 -557
  103. package/dist/vue-ui-onion-B7yPJ3gL.js +915 -0
  104. package/dist/vue-ui-parallel-coordinate-plot-DY21ivNe.js +1051 -0
  105. package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-b0vMRaq-.js} +532 -495
  106. package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
  107. package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-B5Vkoz9M.js} +412 -373
  108. package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
  109. package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
  110. package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CAMNq-p_.js} +517 -481
  111. package/dist/vue-ui-rings-ImGOqm_J.js +855 -0
  112. package/dist/vue-ui-scatter-CterNJYe.js +1590 -0
  113. package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
  114. package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
  115. package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
  116. package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
  117. package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
  118. package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
  119. package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
  120. package/dist/vue-ui-sparkstackbar-BXNy6nuw.js +441 -0
  121. package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
  122. package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
  123. package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-DSsIrT4L.js} +3 -3
  124. package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
  125. package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
  126. package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
  127. package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-BpdCY_wg.js} +3 -3
  128. package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
  129. package/dist/vue-ui-treemap-DPE8SY0_.js +1330 -0
  130. package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-ZU1GCbX0.js} +484 -448
  131. package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-z7nuSuSV.js} +398 -362
  132. package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
  133. package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
  134. package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-goXYnTyM.js} +287 -267
  135. package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-NDDbNbds.js} +1263 -1227
  136. package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-2a6NlQe3.js} +338 -322
  137. package/package.json +4 -4
  138. package/dist/PenAndPaper-DSvu9dwa.js +0 -373
  139. package/dist/vue-ui-chord-CDgzolI-.js +0 -1133
  140. package/dist/vue-ui-dashboard-CeJwbiON.js +0 -412
  141. package/dist/vue-ui-donut-DjQXHBJE.js +0 -1645
  142. package/dist/vue-ui-onion-DTY2p87s.js +0 -873
  143. package/dist/vue-ui-parallel-coordinate-plot-C8aWTcNn.js +0 -1014
  144. package/dist/vue-ui-rings-CnTMFK6R.js +0 -813
  145. package/dist/vue-ui-scatter-fzR2c0St.js +0 -1554
  146. package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
  147. package/dist/vue-ui-stackbar-DubS6Pg8.js +0 -1708
  148. package/dist/vue-ui-thermometer-DTnfnf9z.js +0 -564
  149. package/dist/vue-ui-tiremarks-CrC_tlIx.js +0 -430
  150. package/dist/vue-ui-treemap-kyuyi2ES.js +0 -1294
  151. package/dist/vue-ui-wheel-BasM7FWt.js +0 -643
@@ -1,64 +1,64 @@
1
- import { defineAsyncComponent as Ye, useSlots as Eo, getCurrentInstance as Yo, ref as x, computed as b, onMounted as Ul, toRefs as Wo, watch as Al, watchEffect as Lt, onBeforeUnmount as ya, nextTick as Mt, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as ll, createBlock as Ae, createCommentVNode as h, createElementVNode as p, createVNode as vl, unref as v, createSlots as At, withCtx as Q, renderSlot as W, normalizeProps as We, guardReactiveProps as Xe, Fragment as d, renderList as w, mergeProps as al, toDisplayString as ae, Teleport as Xo, resolveDynamicComponent as Go, withDirectives as Uo, vModelCheckbox as qo, createTextVNode as Ct } from "vue";
2
- import { c as ka, f as _a, t as Zo, e as Jo, m as Cl, n as tl, h as Tt, p as zt, q as ql, r as E, u as wa, v as Ko, w as Qo, x as P, y as It, z as Ot, A as Nt, B as Vt, C as jo, D as Pt, E as Ft, a as se, F as es, G as Rt, H as ls, j as Bt, k as Ne, d as Ve, i as ol, s as Ce, I as as, J as Ge, K as Zl, L as _e, M as ts, N as Ue, O as fe, b as os, o as Ht, P as ss, Q as us, R as dl } from "./lib-C_mNZmhD.js";
3
- import { t as is } from "./useResponsive-DfdjqQps.js";
4
- import { u as ns, a as Jl } from "./useNestedProp-BjZe1Y85.js";
5
- import { u as rs } from "./usePrinter-DTzqpYKF.js";
6
- import { u as cs, B as vs } from "./BaseScanner-BgWxam9d.js";
7
- import { u as Dt, a as ds, l as hs } from "./useTimeLabels-BGFjWgrv.js";
8
- import { u as fs } from "./useSvgExport-DrjCWun4.js";
9
- import { u as gs } from "./useTimeLabelCollider-CIsgDrl9.js";
10
- import ms from "./img-BecE5qXd.js";
11
- import bs from "./Title-l36lOBMx.js";
12
- import { t as xs } from "./themes-AUNCOb2G.js";
13
- import { _ as Kl } from "./Shape-CNXKB8O0.js";
14
- import { S as ps } from "./SlicerPreview-ij72TAs6.js";
15
- import ys from "./vue-ui-accordion-CZ0thhxa.js";
16
- import { _ as ks } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y", "width", "height"], Ls = { key: 1 }, Ms = { class: "vue-ui-xy-grid" }, As = ["stroke", "x1", "x2", "y1", "y2"], Cs = ["stroke", "x1", "x2", "y1", "y2"], Ts = { key: 1 }, zs = ["x1", "x2", "y1", "y2", "stroke"], Is = ["x1", "x2", "y1", "y2", "stroke"], Os = ["x1", "x2", "y1", "y2", "stroke"], Ns = { key: 3 }, Vs = ["d", "stroke"], Ps = { key: 4 }, Fs = ["d", "stroke"], Rs = ["id"], Bs = ["stop-color"], Hs = ["stop-color"], Ds = ["stop-color"], Es = ["id"], Ys = ["stop-color"], Ws = ["stop-color"], Xs = ["stop-color"], Gs = ["id"], Us = ["stop-color"], qs = ["stop-color"], Zs = ["id"], Js = ["stop-color"], Ks = ["stop-color"], Qs = ["id"], js = ["stop-color"], eu = ["stop-color"], lu = ["x", "y", "height", "width", "fill"], au = ["x", "y", "width"], tu = { key: 0 }, ou = ["x", "y", "height", "width", "fill"], su = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], uu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], iu = ["width", "x", "y"], nu = ["stroke", "x1", "x2", "y1", "y2"], ru = { key: 3 }, cu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], vu = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], du = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], hu = ["fill", "font-size", "transform"], fu = ["x1", "x2", "y1", "y2", "stroke"], gu = ["x", "y", "font-size", "fill"], mu = ["x1", "x2", "y1", "y2", "stroke"], bu = ["x", "y", "font-size", "fill"], xu = ["width", "x", "y"], pu = { style: { width: "100%" } }, yu = ["d", "stroke", "stroke-width", "stroke-dasharray"], ku = ["d", "stroke", "stroke-width", "stroke-dasharray"], _u = { key: 6 }, wu = { key: 7 }, Su = ["d", "fill", "fill-opacity"], $u = { key: 0 }, Lu = ["d", "fill"], Mu = ["d", "fill"], Au = ["d", "fill"], Cu = ["d", "fill"], Tu = ["d", "stroke", "stroke-width", "stroke-dasharray"], zu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Iu = ["width", "x", "y"], Ou = { style: { width: "100%" } }, Nu = { key: 8 }, Vu = ["x", "y", "font-size", "fill"], Pu = ["x", "y", "font-size", "fill", "font-weight"], Fu = { key: 9 }, Ru = ["x", "y", "font-size", "fill"], Bu = { key: 10 }, Hu = ["x", "y"], Du = ["innerHTML"], Eu = ["x", "y"], Yu = ["innerHTML"], Wu = ["x1", "x2", "y1", "y2", "stroke"], Xu = { key: 11 }, Gu = ["x", "y", "font-size", "fill"], Uu = { key: 12 }, qu = ["x", "y"], Zu = ["innerHTML"], Ju = ["x", "y"], Ku = ["innerHTML"], Qu = ["x1", "x2", "y1", "y2", "stroke"], ju = ["x", "y", "font-size", "fill", "innerHTML"], ei = ["x", "y", "font-size", "fill", "innerHTML"], li = ["x", "y", "font-size", "fill", "innerHTML"], ai = ["x", "y", "font-size", "fill", "innerHTML"], ti = { key: 0 }, oi = ["id"], si = ["fill", "stroke"], ui = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ii = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ni = ["x", "y", "font-size", "fill", "stroke"], ri = ["id"], ci = ["stop-color"], vi = ["stop-color"], di = ["x", "y", "width", "height", "fill", "onMouseenter"], hi = ["font-size", "fill", "transform"], fi = ["x", "y", "font-size", "fill"], gi = ["text-anchor", "font-size", "fill", "transform", "onClick"], mi = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], bi = { key: 15 }, xi = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], pi = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], yi = ["y", "x", "width", "height", "fill"], ki = ["id", "x", "y", "font-size", "fill", "text-anchor"], _i = {
1
+ import { defineAsyncComponent as Xe, useSlots as Xo, getCurrentInstance as Go, ref as x, computed as b, onMounted as ql, toRefs as Uo, watch as Al, watchEffect as Ma, onBeforeUnmount as kt, nextTick as Aa, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as ll, createBlock as Te, createCommentVNode as h, createElementVNode as p, createVNode as vl, unref as v, withCtx as G, renderSlot as B, normalizeProps as ke, guardReactiveProps as _e, createSlots as Ca, Fragment as d, renderList as w, mergeProps as tl, toDisplayString as te, Teleport as qo, resolveDynamicComponent as Zo, withDirectives as Jo, vModelCheckbox as Ko, createTextVNode as Ta } from "vue";
2
+ import { c as _t, f as wt, t as Qo, e as jo, m as Cl, n as al, h as za, p as Ia, q as Zl, r as Y, u as St, v as es, w as ls, x as P, y as Oa, z as Na, A as Va, B as Pa, C as ts, D as Fa, E as Ra, a as se, F as as, G as Ba, H as os, j as Ha, k as Pe, d as Fe, i as ol, s as ze, I as ss, J as Ge, K as Jl, L as $e, M as us, N as Ue, O as fe, b as is, o as Da, P as ns, Q as rs, R as dl } from "./lib-C_mNZmhD.js";
3
+ import { t as cs } from "./useResponsive-DfdjqQps.js";
4
+ import { u as vs, a as Kl } from "./useNestedProp-DjGXw6S9.js";
5
+ import { u as ds } from "./usePrinter-DTzqpYKF.js";
6
+ import { u as hs, B as fs } from "./BaseScanner-BgWxam9d.js";
7
+ import { u as Ea, a as gs, l as ms } from "./useTimeLabels-BGFjWgrv.js";
8
+ import { u as bs } from "./useSvgExport-DrjCWun4.js";
9
+ import { u as xs } from "./useTimeLabelCollider-CIsgDrl9.js";
10
+ import ps from "./img-BecE5qXd.js";
11
+ import ys from "./Title-isbiM8i8.js";
12
+ import { t as ks } from "./themes-AUNCOb2G.js";
13
+ import { _ as Ql } from "./Shape-CNXKB8O0.js";
14
+ import { S as _s } from "./SlicerPreview-ij72TAs6.js";
15
+ import ws from "./vue-ui-accordion-CqhVCfc2.js";
16
+ import { _ as Ss } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y", "width", "height"], Cs = { key: 1 }, Ts = { class: "vue-ui-xy-grid" }, zs = ["stroke", "x1", "x2", "y1", "y2"], Is = ["stroke", "x1", "x2", "y1", "y2"], Os = { key: 1 }, Ns = ["x1", "x2", "y1", "y2", "stroke"], Vs = ["x1", "x2", "y1", "y2", "stroke"], Ps = ["x1", "x2", "y1", "y2", "stroke"], Fs = { key: 3 }, Rs = ["d", "stroke"], Bs = { key: 4 }, Hs = ["d", "stroke"], Ds = ["id"], Es = ["stop-color"], Ys = ["stop-color"], Ws = ["stop-color"], Xs = ["id"], Gs = ["stop-color"], Us = ["stop-color"], qs = ["stop-color"], Zs = ["id"], Js = ["stop-color"], Ks = ["stop-color"], Qs = ["id"], js = ["stop-color"], eu = ["stop-color"], lu = ["id"], tu = ["stop-color"], au = ["stop-color"], ou = ["x", "y", "height", "width", "fill"], su = ["x", "y", "width"], uu = { key: 0 }, iu = ["x", "y", "height", "width", "fill"], nu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ru = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], cu = ["width", "x", "y"], vu = ["stroke", "x1", "x2", "y1", "y2"], du = { key: 3 }, hu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], fu = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], gu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], mu = ["fill", "font-size", "transform"], bu = ["x1", "x2", "y1", "y2", "stroke"], xu = ["x", "y", "font-size", "fill"], pu = ["x1", "x2", "y1", "y2", "stroke"], yu = ["x", "y", "font-size", "fill"], ku = ["width", "x", "y"], _u = { style: { width: "100%" } }, wu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Su = ["d", "stroke", "stroke-width", "stroke-dasharray"], $u = { key: 6 }, Lu = { key: 7 }, Mu = ["d", "fill", "fill-opacity"], Au = { key: 0 }, Cu = ["d", "fill"], Tu = ["d", "fill"], zu = ["d", "fill"], Iu = ["d", "fill"], Ou = ["d", "stroke", "stroke-width", "stroke-dasharray"], Nu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Vu = ["width", "x", "y"], Pu = { style: { width: "100%" } }, Fu = { key: 8 }, Ru = ["x", "y", "font-size", "fill"], Bu = ["x", "y", "font-size", "fill", "font-weight"], Hu = { key: 9 }, Du = ["x", "y", "font-size", "fill"], Eu = { key: 10 }, Yu = ["x", "y"], Wu = ["innerHTML"], Xu = ["x", "y"], Gu = ["innerHTML"], Uu = ["x1", "x2", "y1", "y2", "stroke"], qu = { key: 11 }, Zu = ["x", "y", "font-size", "fill"], Ju = { key: 12 }, Ku = ["x", "y"], Qu = ["innerHTML"], ju = ["x", "y"], ei = ["innerHTML"], li = ["x1", "x2", "y1", "y2", "stroke"], ti = ["x", "y", "font-size", "fill", "innerHTML"], ai = ["x", "y", "font-size", "fill", "innerHTML"], oi = ["x", "y", "font-size", "fill", "innerHTML"], si = ["x", "y", "font-size", "fill", "innerHTML"], ui = { key: 0 }, ii = ["id"], ni = ["fill", "stroke"], ri = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ci = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], vi = ["x", "y", "font-size", "fill", "stroke"], di = ["id"], hi = ["stop-color"], fi = ["stop-color"], gi = ["x", "y", "width", "height", "fill", "onMouseenter"], mi = ["font-size", "fill", "transform"], bi = ["x", "y", "font-size", "fill"], xi = ["text-anchor", "font-size", "fill", "transform", "onClick"], pi = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], yi = { key: 15 }, ki = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], _i = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], wi = ["y", "x", "width", "height", "fill"], Si = ["id", "x", "y", "font-size", "fill", "text-anchor"], $i = {
18
18
  key: 16,
19
19
  style: { "pointer-events": "none" }
20
- }, wi = ["x", "y"], Si = ["innerHTML"], $i = ["cx", "cy", "r", "fill"], Li = ["data-start", "data-end"], Mi = {
20
+ }, Li = ["x", "y"], Mi = ["innerHTML"], Ai = ["cx", "cy", "r", "fill"], Ci = ["data-start", "data-end"], Ti = {
21
21
  key: 4,
22
22
  class: "vue-data-ui-watermark"
23
- }, Ai = {
23
+ }, zi = {
24
24
  class: "vue-ui-xy-tag-arrow",
25
25
  height: "20",
26
26
  viewBox: "0 0 10 20",
27
27
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
28
- }, Ci = ["fill"], Ti = ["innerHTML"], zi = {
28
+ }, Ii = ["fill"], Oi = ["innerHTML"], Ni = {
29
29
  class: "vue-ui-xy-tag-arrow",
30
30
  height: "100%",
31
31
  viewBox: "0 0 10 20",
32
32
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
33
- }, Ii = ["fill"], Oi = ["innerHTML"], Ni = {
33
+ }, Vi = ["fill"], Pi = ["innerHTML"], Fi = {
34
34
  class: "vue-ui-xy-tag-arrow",
35
35
  height: "20",
36
36
  viewBox: "0 0 10 20",
37
37
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
38
- }, Vi = ["fill"], Pi = ["innerHTML"], Fi = {
38
+ }, Ri = ["fill"], Bi = ["innerHTML"], Hi = {
39
39
  class: "vue-ui-xy-tag-arrow",
40
40
  height: "100%",
41
41
  viewBox: "0 0 10 20",
42
42
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
43
- }, Ri = ["fill"], Bi = ["innerHTML"], Hi = ["id"], Di = ["onClick"], Ei = {
43
+ }, Di = ["fill"], Ei = ["innerHTML"], Yi = ["id"], Wi = ["onClick"], Xi = {
44
44
  key: 0,
45
45
  viewBox: "0 0 20 12",
46
46
  height: "1em",
47
47
  width: "1.43em"
48
- }, Yi = ["stroke", "fill"], Wi = {
48
+ }, Gi = ["stroke", "fill"], Ui = {
49
49
  key: 1,
50
50
  viewBox: "0 0 40 40",
51
51
  height: "1em",
52
52
  width: "1em"
53
- }, Xi = ["fill"], Gi = ["fill"], Ui = {
53
+ }, qi = ["fill"], Zi = ["fill"], Ji = {
54
54
  key: 2,
55
55
  viewBox: "0 0 12 12",
56
56
  height: "1em",
57
57
  width: "1em"
58
- }, qi = {
58
+ }, Ki = {
59
59
  style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
60
60
  "data-dom-to-png-ignore": ""
61
- }, Zi = ["innerHTML"], Ji = {
61
+ }, Qi = ["innerHTML"], ji = {
62
62
  __name: "vue-ui-xy",
63
63
  props: {
64
64
  config: {
@@ -79,26 +79,26 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
79
79
  }
80
80
  },
81
81
  emits: ["selectTimeLabel", "selectX", "selectLegend"],
82
- setup(Ql, { expose: Et, emit: Yt }) {
83
- const g = Ql, Wt = Ye(() => import("./DataTable-BT7VF2ua.js")), Xt = Ye(() => import("./Tooltip-oWCO1HKy.js")), Gt = Ye(() => import("./UserOptions-CGnQt6Fd.js")), Sa = Ye(() => import("./BaseIcon-BmMbm4d0.js")), Ut = Ye(() => import("./vue-ui-table-sparkline-EpCo2Be5.js")), qt = Ye(() => import("./PackageVersion-CTUqGqWV.js")), Zt = Ye(() => import("./PenAndPaper-DSvu9dwa.js")), Jt = Ye(() => import("./BaseDraggableDialog-ymf2sfB8.js")), jl = Yt, $a = Eo(), Kt = Yo(), { vue_ui_xy: hl } = ns(), Te = x(null), fl = x(null), ze = x(null), sl = x(null), gl = x(null), ml = x(null), Qt = x(null), ea = x(null), la = x(null), ul = x(null), aa = x(null), ta = x(null), Re = x(null), oa = x(null), jt = x(0), I = x(null), La = x(!0), ve = x(600), j = x(1e3), Tl = x("0 0 1000 600"), eo = x({ x: 0, y: 0 }), bl = x({ line: "line", bar: "bar", plot: "plot" }), xl = x(!1), qe = x(!1), Ma = x(!1), Ze = x(null), ee = x([]), D = x(ka()), Aa = x(0), Ca = x(0), Ta = x(0), pl = x(!0), sa = x(0), V = x(null), za = x(!1), ua = x(!0), zl = x(!0), ue = x(null), Pe = x({}), Il = x(null), Ia = x(!1), il = x(null), _ = x(null), lo = b(() => ({
82
+ setup(jl, { expose: Ya, emit: Wa }) {
83
+ const g = jl, Xa = Xe(() => import("./DataTable-BT7VF2ua.js")), Ga = Xe(() => import("./Tooltip-oWCO1HKy.js")), Ua = Xe(() => import("./UserOptions-CGnQt6Fd.js")), $t = Xe(() => import("./BaseIcon-BmMbm4d0.js")), qa = Xe(() => import("./vue-ui-table-sparkline-DpqY_4ay.js")), Za = Xe(() => import("./PackageVersion-DQvyATVa.js")), Ja = Xe(() => import("./PenAndPaper-SZQIAgkg.js")), Ka = Xe(() => import("./BaseDraggableDialog-ymf2sfB8.js")), et = Wa, Lt = Xo(), Qa = Go(), { vue_ui_xy: hl } = vs(), Ie = x(null), fl = x(null), Oe = x(null), sl = x(null), gl = x(null), ml = x(null), ja = x(null), lt = x(null), tt = x(null), ul = x(null), at = x(null), ot = x(null), He = x(null), st = x(null), eo = x(0), I = x(null), Mt = x(!0), ve = x(600), ee = x(1e3), Tl = x("0 0 1000 600"), lo = x({ x: 0, y: 0 }), bl = x({ line: "line", bar: "bar", plot: "plot" }), xl = x(!1), qe = x(!1), At = x(!1), Ze = x(null), J = x([]), E = x(_t()), Ct = x(0), Tt = x(0), zt = x(0), pl = x(!0), ut = x(0), V = x(null), It = x(!1), it = x(!0), zl = x(!0), ue = x(null), Re = x({}), Il = x(null), Ot = x(!1), il = x(null), _ = x(null), to = b(() => ({
84
84
  height: ve.value,
85
- width: j.value
85
+ width: ee.value
86
86
  }));
87
- function Oa(a) {
88
- return Number.isFinite(a) ? Math.max(0, Math.floor(a)) : 0;
87
+ function Nt(t) {
88
+ return Number.isFinite(t) ? Math.max(0, Math.floor(t)) : 0;
89
89
  }
90
- function ia(a, s, e = 0) {
91
- return Number.isFinite(a) && Number.isFinite(s) && Math.abs(s) > 1e-9 ? a / s : e;
90
+ function nt(t, s, e = 0) {
91
+ return Number.isFinite(t) && Number.isFinite(s) && Math.abs(s) > 1e-9 ? t / s : e;
92
92
  }
93
- const Na = x(!1), y = x({
93
+ const Vt = x(!1), y = x({
94
94
  xAxis: 18,
95
95
  yAxis: 12,
96
96
  dataLabels: 20,
97
97
  plotLabels: 10
98
- }), we = x({ plot: 3, line: 3 });
99
- Ul(() => {
100
- Ia.value = !0, g.dataset.length && g.dataset.forEach((a, s) => {
101
- [null, void 0].includes(a.series) && _a({
98
+ }), Le = x({ plot: 3, line: 3 });
99
+ ql(() => {
100
+ Ot.value = !0, g.dataset.length && g.dataset.forEach((t, s) => {
101
+ [null, void 0].includes(t.series) && wt({
102
102
  componentName: "VueUiXy",
103
103
  type: "datasetSerieAttribute",
104
104
  property: "series (number[])",
@@ -107,63 +107,63 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
107
107
  });
108
108
  });
109
109
  });
110
- function na() {
110
+ function rt() {
111
111
  if (!Object.keys(g.config || {}).length)
112
112
  return hl;
113
- const a = Jl({
113
+ const t = Kl({
114
114
  userConfig: g.config,
115
115
  defaultConfig: hl
116
116
  });
117
- return g.config && fe(g.config, "chart.highlightArea") && (Array.isArray(g.config.chart.highlightArea) ? a.chart.highlightArea = g.config.chart.highlightArea : a.chart.highlightArea = [g.config.chart.highlightArea]), g.config && fe(g.config, "chart.grid.labels.yAxis.scaleMin") ? a.chart.grid.labels.yAxis.scaleMin = g.config.chart.grid.labels.yAxis.scaleMin : a.chart.grid.labels.yAxis.scaleMin = null, g.config && fe(g.config, "chart.grid.labels.yAxis.scaleMax") ? a.chart.grid.labels.yAxis.scaleMax = g.config.chart.grid.labels.yAxis.scaleMax : a.chart.grid.labels.yAxis.scaleMax = null, g.config && fe(g.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = g.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, g.config && fe(g.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = g.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, g.config && fe(g.config, "chart.grid.labels.yAxis.groupColor") ? a.chart.grid.labels.yAxis.groupColor = g.config.chart.grid.labels.yAxis.groupColor : a.chart.grid.labels.yAxis.groupColor = null, g.config && fe(g.config, "chart.annotations") && Array.isArray(g.config.chart.annotations) && g.config.chart.annotations.length ? a.chart.annotations = g.config.chart.annotations.map((s) => Jl({
117
+ return g.config && fe(g.config, "chart.highlightArea") && (Array.isArray(g.config.chart.highlightArea) ? t.chart.highlightArea = g.config.chart.highlightArea : t.chart.highlightArea = [g.config.chart.highlightArea]), g.config && fe(g.config, "chart.grid.labels.yAxis.scaleMin") ? t.chart.grid.labels.yAxis.scaleMin = g.config.chart.grid.labels.yAxis.scaleMin : t.chart.grid.labels.yAxis.scaleMin = null, g.config && fe(g.config, "chart.grid.labels.yAxis.scaleMax") ? t.chart.grid.labels.yAxis.scaleMax = g.config.chart.grid.labels.yAxis.scaleMax : t.chart.grid.labels.yAxis.scaleMax = null, g.config && fe(g.config, "chart.zoom.startIndex") ? t.chart.zoom.startIndex = g.config.chart.zoom.startIndex : t.chart.zoom.startIndex = null, g.config && fe(g.config, "chart.zoom.endIndex") ? t.chart.zoom.endIndex = g.config.chart.zoom.endIndex : t.chart.zoom.endIndex = null, g.config && fe(g.config, "chart.grid.labels.yAxis.groupColor") ? t.chart.grid.labels.yAxis.groupColor = g.config.chart.grid.labels.yAxis.groupColor : t.chart.grid.labels.yAxis.groupColor = null, g.config && fe(g.config, "chart.annotations") && Array.isArray(g.config.chart.annotations) && g.config.chart.annotations.length ? t.chart.annotations = g.config.chart.annotations.map((s) => Kl({
118
118
  defaultConfig: hl.chart.annotations[0],
119
119
  userConfig: s
120
- })) : a.chart.annotations = [], g.config && fe(g.config, "chart.grid.position") && g.config.chart.grid.position === "start" && g.dataset.length && g.dataset.some((s) => s.type === "bar") && (a.chart.grid.position = "middle", fe(g.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), g.config && fe(g.config, "chart.grid.labels.yAxis.serieNameFormatter") ? a.chart.grid.labels.yAxis.serieNameFormatter = g.config.chart.grid.labels.yAxis.serieNameFormatter : a.chart.grid.labels.yAxis.serieNameFormatter = null, g.config && fe(g.config, "events.datapointEnter") ? a.events.datapointEnter = g.config.events.datapointEnter : a.events.datapointEnter = null, g.config && fe(g.config, "events.datapointLeave") ? a.events.datapointLeave = g.config.events.datapointLeave : a.events.datapointLeave = null, g.config && fe(g.config, "events.datapointClick") ? a.events.datapointClick = g.config.events.datapointClick : a.events.datapointClick = null, g.config && fe(g.config, "chart.highlightArea") && (Array.isArray(g.config.chart.highlightArea) ? a.chart.highlightArea = g.config.chart.highlightArea.map((s) => Va({
120
+ })) : t.chart.annotations = [], g.config && fe(g.config, "chart.grid.position") && g.config.chart.grid.position === "start" && g.dataset.length && g.dataset.some((s) => s.type === "bar") && (t.chart.grid.position = "middle", fe(g.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), g.config && fe(g.config, "chart.grid.labels.yAxis.serieNameFormatter") ? t.chart.grid.labels.yAxis.serieNameFormatter = g.config.chart.grid.labels.yAxis.serieNameFormatter : t.chart.grid.labels.yAxis.serieNameFormatter = null, g.config && fe(g.config, "events.datapointEnter") ? t.events.datapointEnter = g.config.events.datapointEnter : t.events.datapointEnter = null, g.config && fe(g.config, "events.datapointLeave") ? t.events.datapointLeave = g.config.events.datapointLeave : t.events.datapointLeave = null, g.config && fe(g.config, "events.datapointClick") ? t.events.datapointClick = g.config.events.datapointClick : t.events.datapointClick = null, g.config && fe(g.config, "chart.highlightArea") && (Array.isArray(g.config.chart.highlightArea) ? t.chart.highlightArea = g.config.chart.highlightArea.map((s) => Pt({
121
121
  defaultConfig: hl.chart.highlightArea,
122
122
  userConfig: s
123
- })) : a.chart.highlightArea = Va({
123
+ })) : t.chart.highlightArea = Pt({
124
124
  defaultConfig: hl.chart.highlightArea,
125
125
  userConfig: g.config.chart.highlightArea
126
- })), a.theme ? {
127
- ...Jl({
128
- userConfig: xs.vue_ui_xy[a.theme] || g.config,
129
- defaultConfig: a
126
+ })), t.theme ? {
127
+ ...Kl({
128
+ userConfig: ks.vue_ui_xy[t.theme] || g.config,
129
+ defaultConfig: t
130
130
  }),
131
- customPalette: os[a.theme] || g.palette
132
- } : a;
131
+ customPalette: is[t.theme] || g.palette
132
+ } : t;
133
133
  }
134
- function Va({ defaultConfig: a, userConfig: s }) {
135
- return Jl({
136
- defaultConfig: a,
134
+ function Pt({ defaultConfig: t, userConfig: s }) {
135
+ return Kl({
136
+ defaultConfig: t,
137
137
  userConfig: s
138
138
  });
139
139
  }
140
- const ra = b({
140
+ const ct = b({
141
141
  get() {
142
142
  return !!g.dataset && g.dataset.length;
143
143
  },
144
- set(a) {
145
- return a;
144
+ set(t) {
145
+ return t;
146
146
  }
147
- }), l = x(na()), f = x({
147
+ }), l = x(rt()), f = x({
148
148
  dataLabels: { show: !0 },
149
149
  showTooltip: !0,
150
150
  showTable: !1,
151
151
  isStacked: !1,
152
152
  useIndividualScale: !1
153
153
  });
154
- function ca() {
155
- Na.value ? (f.value.isStacked = l.value.chart.grid.labels.yAxis.stacked, f.value.useIndividualScale == null && (f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale)) : (f.value = {
154
+ function vt() {
155
+ Vt.value ? (f.value.isStacked = l.value.chart.grid.labels.yAxis.stacked, f.value.useIndividualScale == null && (f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale)) : (f.value = {
156
156
  dataLabels: { show: !0 },
157
157
  showTooltip: l.value.chart.tooltip.show === !0,
158
158
  showTable: l.value.showTable === !0,
159
159
  isStacked: l.value.chart.grid.labels.yAxis.stacked,
160
160
  useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
161
- }, Na.value = !0);
161
+ }, Vt.value = !0);
162
162
  }
163
- const yl = b(() => !!l.value.debug), { loading: ie, FINAL_DATASET: ge, manualLoading: Ol } = cs({
164
- ...Wo(g),
163
+ const yl = b(() => !!l.value.debug), { loading: ie, FINAL_DATASET: ge, manualLoading: Ol } = hs({
164
+ ...Uo(g),
165
165
  FINAL_CONFIG: l,
166
- prepareConfig: na,
166
+ prepareConfig: rt,
167
167
  callback: () => {
168
168
  Promise.resolve().then(async () => {
169
169
  await Rl(), f.value.showTable = l.value.showTable;
@@ -184,7 +184,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
184
184
  color: "#CACACA"
185
185
  }
186
186
  ],
187
- skeletonConfig: Zo({
187
+ skeletonConfig: Qo({
188
188
  defaultConfig: l.value,
189
189
  userConfig: {
190
190
  useCssAnimation: !1,
@@ -242,35 +242,35 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
242
242
  }
243
243
  })
244
244
  });
245
- function ao(a) {
245
+ function ao(t) {
246
246
  const s = /* @__PURE__ */ new WeakMap();
247
247
  return (e, ...u) => {
248
- let t = s.get(e);
248
+ let a = s.get(e);
249
249
  const i = JSON.stringify(u);
250
- if (t && t.has(i)) return t.get(i);
251
- const o = a(e, ...u);
252
- return t || (t = /* @__PURE__ */ new Map(), s.set(e, t)), t.set(i, o), o;
250
+ if (a && a.has(i)) return a.get(i);
251
+ const o = t(e, ...u);
252
+ return a || (a = /* @__PURE__ */ new Map(), s.set(e, a)), a.set(i, o), o;
253
253
  };
254
254
  }
255
- const to = ao((a, s) => wa({ data: a, threshold: s })), Be = (a) => to(a, l.value.downsample.threshold), Ie = b({
256
- get: () => Math.max(...ge.value.map((a) => Be(a.series).length)),
257
- set: (a) => a
258
- }), m = x({ start: 0, end: Ie.value }), Se = x({ start: 0, end: Ie.value }), Pa = b(() => l.value.chart.zoom.preview.enable && (Se.value.start !== m.value.start || Se.value.end !== m.value.end));
259
- function Fa(a, s) {
260
- Se.value[a] = s;
255
+ const oo = ao((t, s) => St({ data: t, threshold: s })), De = (t) => oo(t, l.value.downsample.threshold), Ne = b({
256
+ get: () => Math.max(...ge.value.map((t) => De(t.series).length)),
257
+ set: (t) => t
258
+ }), m = x({ start: 0, end: Ne.value }), Me = x({ start: 0, end: Ne.value }), Ft = b(() => l.value.chart.zoom.preview.enable && (Me.value.start !== m.value.start || Me.value.end !== m.value.end));
259
+ function Rt(t, s) {
260
+ Me.value[t] = s;
261
261
  }
262
262
  function nl() {
263
- const a = Math.max(
263
+ const t = Math.max(
264
264
  1,
265
- ...ge.value.map((u) => Be(u.series).length)
265
+ ...ge.value.map((u) => De(u.series).length)
266
266
  );
267
- let s = Math.max(0, Math.min(m.value.start ?? 0, a - 1)), e = Math.max(s + 1, Math.min(m.value.end ?? a, a));
268
- (!Number.isFinite(s) || !Number.isFinite(e) || e <= s) && (s = 0, e = a), m.value = { start: s, end: e }, Se.value.start = s, Se.value.end = e, ze.value && (ze.value.setStartValue(s), ze.value.setEndValue(e));
267
+ let s = Math.max(0, Math.min(m.value.start ?? 0, t - 1)), e = Math.max(s + 1, Math.min(m.value.end ?? t, t));
268
+ (!Number.isFinite(s) || !Number.isFinite(e) || e <= s) && (s = 0, e = t), m.value = { start: s, end: e }, Me.value.start = s, Me.value.end = e, Oe.value && (Oe.value.setStartValue(s), Oe.value.setEndValue(e));
269
269
  }
270
- const oo = b(() => {
271
- const { left: a, top: s, width: e, height: u } = c.value, t = m.value.start, o = m.value.end - t, A = e / o, C = Se.value.start - t, O = Se.value.end - t, S = Math.max(0, Math.min(o, C)), T = Math.max(0, Math.min(o, O));
270
+ const so = b(() => {
271
+ const { left: t, top: s, width: e, height: u } = c.value, a = m.value.start, o = m.value.end - a, A = e / o, C = Me.value.start - a, O = Me.value.end - a, S = Math.max(0, Math.min(o, C)), T = Math.max(0, Math.min(o, O));
272
272
  return {
273
- x: a + S * A,
273
+ x: t + S * A,
274
274
  y: s,
275
275
  width: (T - S) * A,
276
276
  height: u,
@@ -287,216 +287,216 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
287
287
  }
288
288
  };
289
289
  });
290
- Al(() => g.selectedXIndex, (a) => {
290
+ Al(() => g.selectedXIndex, (t) => {
291
291
  if ([null, void 0].includes(g.selectedXIndex)) {
292
292
  _.value = null;
293
293
  return;
294
294
  }
295
- const s = a - m.value.start;
296
- s < 0 || a >= m.value.end ? _.value = null : _.value = s ?? null;
295
+ const s = t - m.value.start;
296
+ s < 0 || t >= m.value.end ? _.value = null : _.value = s ?? null;
297
297
  }, { immediate: !0 });
298
- const { isPrinting: va, isImaging: Ra, generatePdf: Ba, generateImage: Ha } = rs({
299
- elementId: `vue-ui-xy_${D.value}`,
298
+ const { isPrinting: dt, isImaging: Bt, generatePdf: Ht, generateImage: Dt } = ds({
299
+ elementId: `vue-ui-xy_${E.value}`,
300
300
  fileName: l.value.chart.title.text || "vue-ui-xy",
301
301
  options: l.value.chart.userOptions.print
302
- }), so = x(!1), Nl = b(() => Jo(l.value.customPalette)), Vl = b(() => {
302
+ }), uo = x(!1), Nl = b(() => jo(l.value.customPalette)), Vl = b(() => {
303
303
  if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
304
304
  return l.value.chart.grid.labels.yAxis.scaleMin;
305
- const a = Math.min(...Fe.value.filter((s) => !ee.value.includes(s.id)).map((s) => Math.min(...s.series)));
306
- return a > 0 ? 0 : a;
305
+ const t = Math.min(...Be.value.filter((s) => !J.value.includes(s.id)).map((s) => Math.min(...s.series)));
306
+ return t > 0 ? 0 : t;
307
307
  }), Pl = b(() => {
308
308
  if (l.value.chart.grid.labels.yAxis.scaleMax)
309
309
  return l.value.chart.grid.labels.yAxis.scaleMax;
310
- const a = Math.max(...Fe.value.filter((s) => !ee.value.includes(s.id)).map((s) => Math.max(...s.series)));
311
- return Vl.value === a ? a + 1 : a;
312
- }), $e = b(() => l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(Vl.value, Pl.value < 0 ? 0 : Pl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : tl(Vl.value, Pl.value < 0 ? 0 : Pl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), kl = b(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? $e.value.min >= 0 ? 0 : Math.abs($e.value.min) : -$e.value.min), Fe = b(() => La.value ? ge.value.map((a, s) => {
313
- const e = Be(a.series), u = `uniqueId_${s}`;
310
+ const t = Math.max(...Be.value.filter((s) => !J.value.includes(s.id)).map((s) => Math.max(...s.series)));
311
+ return Vl.value === t ? t + 1 : t;
312
+ }), Ae = b(() => l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(Vl.value, Pl.value < 0 ? 0 : Pl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : al(Vl.value, Pl.value < 0 ? 0 : Pl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), kl = b(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? Ae.value.min >= 0 ? 0 : Math.abs(Ae.value.min) : -Ae.value.min), Be = b(() => Mt.value ? ge.value.map((t, s) => {
313
+ const e = De(t.series), u = `uniqueId_${s}`;
314
314
  return {
315
- ...a,
315
+ ...t,
316
316
  slotAbsoluteIndex: s,
317
- series: e.map((t) => ql(t) ? t : null).slice(m.value.start, m.value.end),
318
- color: Tt(a.color ? a.color : Nl.value[s] ? Nl.value[s] : zt[s]),
317
+ series: e.map((a) => Zl(a) ? a : null).slice(m.value.start, m.value.end),
318
+ color: za(t.color ? t.color : Nl.value[s] ? Nl.value[s] : Ia[s]),
319
319
  id: u,
320
- scaleLabel: a.scaleLabel || u
320
+ scaleLabel: t.scaleLabel || u
321
321
  };
322
- }) : ge.value), Le = b(() => Fe.value.map((a, s) => ({
322
+ }) : ge.value), me = b(() => Be.value.map((t, s) => ({
323
323
  absoluteIndex: s,
324
- ...a,
325
- series: a.series.map((e) => e + kl.value),
326
- absoluteValues: a.series,
327
- segregate: () => ot(a),
328
- isSegregated: ee.value.includes(a.id)
329
- }))), ye = b(() => Fe.value.map((a, s) => ({
330
- ...a,
331
- series: a.series.map((e) => e + kl.value),
332
- absoluteValues: a.series
333
- })).filter((a) => !ee.value.includes(a.id)));
334
- function uo() {
335
- let a = 0;
336
- aa.value && (a = Array.from(aa.value.querySelectorAll("text")).reduce((t, i) => {
324
+ ...t,
325
+ series: t.series.map((e) => e + kl.value),
326
+ absoluteValues: t.series,
327
+ segregate: () => El(t),
328
+ isSegregated: J.value.includes(t.id)
329
+ }))), we = b(() => Be.value.map((t, s) => ({
330
+ ...t,
331
+ series: t.series.map((e) => e + kl.value),
332
+ absoluteValues: t.series
333
+ })).filter((t) => !J.value.includes(t.id)));
334
+ function io() {
335
+ let t = 0;
336
+ at.value && (t = Array.from(at.value.querySelectorAll("text")).reduce((a, i) => {
337
337
  const o = i.getComputedTextLength();
338
- return (o > t ? o : t) + l.value.chart.grid.labels.yAxis.scaleValueOffsetX;
338
+ return (o > a ? o : a) + l.value.chart.grid.labels.yAxis.scaleValueOffsetX;
339
339
  }, 0));
340
- const s = la.value ? la.value.getBoundingClientRect().width + l.value.chart.grid.labels.axis.yLabelOffsetX + y.value.yAxis : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
341
- return a + s + e;
340
+ const s = tt.value ? tt.value.getBoundingClientRect().width + l.value.chart.grid.labels.axis.yLabelOffsetX + y.value.yAxis : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
341
+ return t + s + e;
342
342
  }
343
- const da = x(0), io = is((a) => {
344
- da.value = a;
343
+ const ht = x(0), no = cs((t) => {
344
+ ht.value = t;
345
345
  }, 100);
346
- Lt((a) => {
346
+ Ma((t) => {
347
347
  const s = ul.value;
348
348
  if (!s) return;
349
349
  const e = new ResizeObserver((u) => {
350
- io(u[0].contentRect.height);
350
+ no(u[0].contentRect.height);
351
351
  });
352
- e.observe(s), a(() => e.disconnect());
353
- }), ya(() => {
354
- da.value = 0;
352
+ e.observe(s), t(() => e.disconnect());
353
+ }), kt(() => {
354
+ ht.value = 0;
355
355
  });
356
- const Da = b(() => {
357
- let a = 0;
358
- ea.value && (a = ea.value.getBBox().height);
356
+ const Et = b(() => {
357
+ let t = 0;
358
+ lt.value && (t = lt.value.getBBox().height);
359
359
  let s = 0;
360
- return ul.value && (s = da.value), a + s + y.value.xAxis;
361
- }), no = b(() => ge.value.some((a) => a.useProgression)), c = b(() => {
362
- let a = 0;
360
+ return ul.value && (s = ht.value), t + s + y.value.xAxis;
361
+ }), ro = b(() => ge.value.some((t) => t.useProgression)), c = b(() => {
362
+ let t = 0;
363
363
  const s = 36;
364
- l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (ge.value.length - ee.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + s) : f.value.useIndividualScale && f.value.isStacked ? a = l.value.chart.grid.labels.yAxis.labelWidth + s : a = uo());
365
- const e = l.value.chart.labels.fontSize * 1.1, u = no.value ? 24 : 6;
364
+ l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? t = (ge.value.length - J.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + s) : f.value.useIndividualScale && f.value.isStacked ? t = l.value.chart.grid.labels.yAxis.labelWidth + s : t = io());
365
+ const e = l.value.chart.labels.fontSize * 1.1, u = ro.value ? 24 : 6;
366
366
  if (ul.value) {
367
367
  const o = ul.value.getBBox().x;
368
- o < 0 && (a += Math.abs(o));
368
+ o < 0 && (t += Math.abs(o));
369
369
  }
370
- const t = j.value - a - l.value.chart.grid.labels.yAxis.crosshairSize - u - l.value.chart.padding.left - l.value.chart.padding.right, i = l.value.chart.grid.position === "middle" ? 0 : t / L.value / 2;
370
+ const a = ee.value - t - l.value.chart.grid.labels.yAxis.crosshairSize - u - l.value.chart.padding.left - l.value.chart.padding.right, i = l.value.chart.grid.position === "middle" ? 0 : a / L.value / 2;
371
371
  return {
372
372
  top: l.value.chart.padding.top + e,
373
- right: j.value - u - l.value.chart.padding.right,
374
- bottom: ve.value - Da.value - l.value.chart.padding.bottom - l.value.chart.grid.labels.axis.xLabelOffsetY,
375
- left: a + l.value.chart.grid.labels.yAxis.crosshairSize - i + l.value.chart.padding.left,
376
- height: ve.value - Da.value - l.value.chart.padding.top - l.value.chart.padding.bottom - e - l.value.chart.grid.labels.axis.xLabelOffsetY,
377
- width: t,
378
- scaleLabelX: a,
373
+ right: ee.value - u - l.value.chart.padding.right,
374
+ bottom: ve.value - Et.value - l.value.chart.padding.bottom - l.value.chart.grid.labels.axis.xLabelOffsetY,
375
+ left: t + l.value.chart.grid.labels.yAxis.crosshairSize - i + l.value.chart.padding.left,
376
+ height: ve.value - Et.value - l.value.chart.padding.top - l.value.chart.padding.bottom - e - l.value.chart.grid.labels.axis.xLabelOffsetY,
377
+ width: a,
378
+ scaleLabelX: t,
379
379
  individualOffsetX: s
380
380
  };
381
- }), ro = b(() => {
382
- const a = l.value.chart.grid.position === "middle" ? 1 : 0, s = L.value + a, e = E(c.value.top), u = E(c.value.bottom);
383
- return Array.from({ length: s }).map((t, i) => {
384
- const o = c.value.width / L.value * i + c.value.left + G.value;
381
+ }), co = b(() => {
382
+ const t = l.value.chart.grid.position === "middle" ? 1 : 0, s = L.value + t, e = Y(c.value.top), u = Y(c.value.bottom);
383
+ return Array.from({ length: s }).map((a, i) => {
384
+ const o = c.value.width / L.value * i + c.value.left + U.value;
385
385
  return `M${o},${e} L${o},${u}`;
386
386
  }).join(" ");
387
- }), co = b(() => {
387
+ }), vo = b(() => {
388
388
  if (!l.value.chart.grid.labels.xAxis.showCrosshairs) return "";
389
- const a = c.value.width / L.value, s = l.value.chart.grid.labels.xAxis.crosshairSize, e = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
390
- return ga.value.map((u, t) => {
389
+ const t = c.value.width / L.value, s = l.value.chart.grid.labels.xAxis.crosshairSize, e = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
390
+ return mt.value.map((u, a) => {
391
391
  if (!u || !u.text) return null;
392
- const i = c.value.left + a * t + a / 2, o = e ? ne.value - (ne.value === c.value.bottom ? 0 : s / 2) : c.value.bottom, A = e ? ne.value + s / (ne.value === c.value.bottom ? 1 : 2) : c.value.bottom + s;
392
+ const i = c.value.left + t * a + t / 2, o = e ? ne.value - (ne.value === c.value.bottom ? 0 : s / 2) : c.value.bottom, A = e ? ne.value + s / (ne.value === c.value.bottom ? 1 : 2) : c.value.bottom + s;
393
393
  return `M${i},${o} L${i},${A}`;
394
394
  }).filter(Boolean).join(" ");
395
395
  });
396
- function Ea() {
397
- return !!Kt?.vnode.props?.onSelectTimeLabel;
396
+ function Yt() {
397
+ return !!Qa?.vnode.props?.onSelectTimeLabel;
398
398
  }
399
- function vo(a, s, e) {
399
+ function ho(t, s, e) {
400
400
  if (!Il.value) {
401
401
  const u = document.createElement("canvas");
402
402
  Il.value = u.getContext("2d");
403
403
  }
404
- return Il.value.font = `normal ${a}px sans-serif`, Il.value;
404
+ return Il.value.font = `normal ${t}px sans-serif`, Il.value;
405
405
  }
406
- function Ya() {
407
- const a = Te.value.querySelectorAll(".vue-ui-xy-tag");
408
- a.length && Array.from(a).forEach((s) => s.style.opacity = "0");
406
+ function Wt() {
407
+ const t = Ie.value.querySelectorAll(".vue-ui-xy-tag");
408
+ t.length && Array.from(t).forEach((s) => s.style.opacity = "0");
409
409
  }
410
- function Fl(a, s, e, u, t) {
411
- e && (Pe.value[`${a}_${s}_${u}_${t}`] = e);
410
+ function Fl(t, s, e, u, a) {
411
+ e && (Re.value[`${t}_${s}_${u}_${a}`] = e);
412
412
  }
413
- const Wa = x(!1);
414
- async function Xa(a = !1) {
415
- await Mt(), Wa.value = a, za.value && (zl.value = a);
413
+ const Xt = x(!1);
414
+ async function Gt(t = !1) {
415
+ await Aa(), Xt.value = t, It.value && (zl.value = t);
416
416
  }
417
- function ha() {
417
+ function ft() {
418
418
  xl.value = !xl.value;
419
419
  }
420
420
  const de = b(() => {
421
- const a = Math.max(...ge.value.map((s) => wa({ data: s.series, threshold: l.value.downsample.threshold }).length));
422
- return Dt({
421
+ const t = Math.max(...ge.value.map((s) => St({ data: s.series, threshold: l.value.downsample.threshold }).length));
422
+ return Ea({
423
423
  values: l.value.chart.grid.labels.xAxisLabels.values,
424
- maxDatapoints: a,
424
+ maxDatapoints: t,
425
425
  formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
426
426
  start: m.value.start,
427
427
  end: m.value.end
428
428
  });
429
- }), fa = b(() => {
430
- const a = Math.max(...ge.value.map((s) => wa({ data: s.series, threshold: l.value.downsample.threshold }).length));
431
- return Dt({
429
+ }), gt = b(() => {
430
+ const t = Math.max(...ge.value.map((s) => St({ data: s.series, threshold: l.value.downsample.threshold }).length));
431
+ return Ea({
432
432
  values: l.value.chart.grid.labels.xAxisLabels.values,
433
- maxDatapoints: a,
433
+ maxDatapoints: t,
434
434
  formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
435
435
  start: 0,
436
- end: Ie.value
436
+ end: Ne.value
437
437
  });
438
- }), ho = b(() => {
439
- const a = l.value.chart.grid.labels.xAxisLabels.modulo;
440
- return de.value.length ? Math.min(a, [...new Set(de.value.map((s) => s.text))].length) : a;
441
- }), ga = b(() => {
442
- const a = l.value.chart.grid.labels.xAxisLabels, s = de.value || [], e = fa.value || [], u = m.value.start ?? 0, t = _.value, i = L.value, o = s.map((C) => C?.text ?? ""), A = e.map((C) => C?.text ?? "");
443
- return Ko(
444
- !!a.showOnlyFirstAndLast,
445
- !!a.showOnlyAtModulo,
446
- Math.max(1, ho.value || 1),
438
+ }), fo = b(() => {
439
+ const t = l.value.chart.grid.labels.xAxisLabels.modulo;
440
+ return de.value.length ? Math.min(t, [...new Set(de.value.map((s) => s.text))].length) : t;
441
+ }), mt = b(() => {
442
+ const t = l.value.chart.grid.labels.xAxisLabels, s = de.value || [], e = gt.value || [], u = m.value.start ?? 0, a = _.value, i = L.value, o = s.map((C) => C?.text ?? ""), A = e.map((C) => C?.text ?? "");
443
+ return es(
444
+ !!t.showOnlyFirstAndLast,
445
+ !!t.showOnlyAtModulo,
446
+ Math.max(1, fo.value || 1),
447
447
  o,
448
448
  A,
449
449
  u,
450
- t,
450
+ a,
451
451
  i
452
452
  );
453
453
  });
454
- function Ga(a, s) {
455
- const e = ye.value.map((u) => ({
454
+ function Ut(t, s) {
455
+ const e = we.value.map((u) => ({
456
456
  shape: u.shape || null,
457
457
  name: u.name,
458
458
  color: u.color,
459
459
  type: u.type,
460
- value: u.absoluteValues.find((t, i) => i === s),
460
+ value: u.absoluteValues.find((a, i) => i === s),
461
461
  comments: u.comments || [],
462
462
  prefix: u.prefix || l.value.chart.labels.prefix,
463
463
  suffix: u.suffix || l.value.chart.labels.suffix
464
464
  }));
465
- jl("selectTimeLabel", {
465
+ et("selectTimeLabel", {
466
466
  datapoint: e,
467
- absoluteIndex: a.absoluteIndex,
468
- label: a.text
467
+ absoluteIndex: t.absoluteIndex,
468
+ label: t.text
469
469
  });
470
470
  }
471
471
  const L = b(() => {
472
- const a = Oa((m.value.end ?? 0) - (m.value.start ?? 0));
473
- return Math.max(1, a);
472
+ const t = Nt((m.value.end ?? 0) - (m.value.start ?? 0));
473
+ return Math.max(1, t);
474
474
  });
475
- function fo(a) {
476
- V.value = a;
475
+ function go(t) {
476
+ V.value = t;
477
477
  }
478
- function Ua() {
478
+ function qt() {
479
479
  f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale;
480
480
  }
481
- function ma(a) {
482
- yl.value && a.autoScaling && (l.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), l.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
481
+ function bt(t) {
482
+ yl.value && t.autoScaling && (l.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${t.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), l.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${t.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
483
483
  }
484
- function go(a, s) {
485
- const e = Oa(a), u = Array(e).fill(0);
486
- for (let t = 0; t < s.length && t < e; t += 1) u[t] = s[t] ?? 0;
484
+ function mo(t, s) {
485
+ const e = Nt(t), u = Array(e).fill(0);
486
+ for (let a = 0; a < s.length && a < e; a += 1) u[a] = s[a] ?? 0;
487
487
  return u;
488
488
  }
489
- function qa(a) {
490
- const s = Math.max(...ge.value.map((e) => Be(e.series).length));
491
- return a > s ? s : a < 0 || l.value.chart.zoom.startIndex !== null && a < l.value.chart.zoom.startIndex ? l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex + 1 : 1 : a;
489
+ function Zt(t) {
490
+ const s = Math.max(...ge.value.map((e) => De(e.series).length));
491
+ return t > s ? s : t < 0 || l.value.chart.zoom.startIndex !== null && t < l.value.chart.zoom.startIndex ? l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex + 1 : 1 : t;
492
492
  }
493
- const _l = x(!1), Za = x(!1);
493
+ const _l = x(!1), Jt = x(!1);
494
494
  function Rl() {
495
495
  if (!_l.value) {
496
496
  _l.value = !0;
497
497
  try {
498
- const { startIndex: a, endIndex: s } = l.value.chart.zoom, e = Math.max(...ge.value.map((i) => Be(i.series).length)), u = a ?? 0, t = s != null ? Math.min(qa(s + 1), e) : e;
499
- Bl.value = !0, m.value.start = u, m.value.end = t, Se.value.start = u, Se.value.end = t, nl(), Za.value = !0;
498
+ const { startIndex: t, endIndex: s } = l.value.chart.zoom, e = Math.max(...ge.value.map((i) => De(i.series).length)), u = t ?? 0, a = s != null ? Math.min(Zt(s + 1), e) : e;
499
+ Bl.value = !0, m.value.start = u, m.value.end = a, Me.value.start = u, Me.value.end = a, nl(), Jt.value = !0;
500
500
  } finally {
501
501
  queueMicrotask(() => {
502
502
  Bl.value = !1;
@@ -505,132 +505,132 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
505
505
  }
506
506
  }
507
507
  const Bl = x(!1);
508
- function mo(a) {
509
- _l.value || Bl.value || a !== m.value.start && (m.value.start = a, Se.value.start = a, nl());
508
+ function bo(t) {
509
+ _l.value || Bl.value || t !== m.value.start && (m.value.start = t, Me.value.start = t, nl());
510
510
  }
511
- function bo(a) {
511
+ function xo(t) {
512
512
  if (_l.value || Bl.value) return;
513
- const s = qa(a);
514
- s !== m.value.end && (m.value.end = s, Se.value.end = s, nl());
513
+ const s = Zt(t);
514
+ s !== m.value.end && (m.value.end = s, Me.value.end = s, nl());
515
515
  }
516
- async function xo() {
516
+ async function po() {
517
517
  await Rl();
518
518
  }
519
- function me(a) {
520
- return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
519
+ function be(t) {
520
+ return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(t);
521
521
  }
522
- const Ja = b(() => $e.value.max + kl.value);
523
- function Je(a) {
524
- return a / (me(Ja.value) ? Ja.value : 1);
522
+ const Kt = b(() => Ae.value.max + kl.value);
523
+ function Je(t) {
524
+ return t / (be(Kt.value) ? Kt.value : 1);
525
525
  }
526
526
  const ne = b(() => isNaN(Je(kl.value)) ? c.value.bottom : c.value.bottom - c.value.height * Je(kl.value));
527
- function Ka(a) {
527
+ function Qt(t) {
528
528
  const s = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Vl.value >= 0 ? c.value.bottom : ne.value;
529
- return a.value >= 0 ? P(s - a.y <= 0 ? 1e-5 : s - a.y) : P(a.y - ne.value <= 0 ? 1e-5 : a.y - ne.value);
529
+ return t.value >= 0 ? P(s - t.y <= 0 ? 1e-5 : s - t.y) : P(t.y - ne.value <= 0 ? 1e-5 : t.y - ne.value);
530
530
  }
531
- function Qa(a) {
532
- return a.value >= 0 ? P(a.zeroPosition - a.y <= 0 ? 1e-5 : a.zeroPosition - a.y) : P(a.y - a.zeroPosition <= 0 ? 1e-5 : a.zeroPosition - a.y);
531
+ function jt(t) {
532
+ return t.value >= 0 ? P(t.zeroPosition - t.y <= 0 ? 1e-5 : t.zeroPosition - t.y) : P(t.y - t.zeroPosition <= 0 ? 1e-5 : t.zeroPosition - t.y);
533
533
  }
534
- const q = b(() => {
535
- const a = Math.max(1, L.value), s = Math.max(1, c.value.width), e = Math.max(1, Fe.value.filter((u) => u.type === "bar" && !ee.value.includes(u.id)).length);
534
+ const Z = b(() => {
535
+ const t = Math.max(1, L.value), s = Math.max(1, c.value.width), e = Math.max(1, Be.value.filter((u) => u.type === "bar" && !J.value.includes(u.id)).length);
536
536
  return {
537
- bar: ia(s, a * e, 1),
538
- plot: ia(s, a, 1),
539
- line: ia(s, a, 1)
537
+ bar: nt(s, t * e, 1),
538
+ plot: nt(s, t, 1),
539
+ line: nt(s, t, 1)
540
540
  };
541
541
  });
542
- function He() {
543
- return f.value.useIndividualScale && f.value.isStacked ? q.value.line - c.value.width / L.value * 0.1 : q.value.bar;
542
+ function Ee() {
543
+ return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - c.value.width / L.value * 0.1 : Z.value.bar;
544
544
  }
545
- function Hl(a) {
546
- return f.value.useIndividualScale && f.value.isStacked ? a.x + c.value.width / L.value * 0.05 : a.x + q.value.bar / 2;
545
+ function Hl(t) {
546
+ return f.value.useIndividualScale && f.value.isStacked ? t.x + c.value.width / L.value * 0.05 : t.x + Z.value.bar / 2;
547
547
  }
548
- function ja(a) {
549
- return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ne.value) ? c.bottom.value : ne.value;
548
+ function ea(t) {
549
+ return t.value >= 0 ? t.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ne.value) ? c.bottom.value : ne.value;
550
550
  }
551
- function et(a) {
552
- return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
551
+ function la(t) {
552
+ return t.value >= 0 ? t.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(t.zeroPosition) ? 0 : t.zeroPosition;
553
553
  }
554
554
  const wl = x(null);
555
- function lt(a) {
555
+ function ta(t) {
556
556
  const s = ue.value;
557
557
  if (!s) return null;
558
558
  if (s.createSVGPoint && s.getScreenCTM) {
559
559
  const T = s.createSVGPoint();
560
- T.x = a.clientX, T.y = a.clientY;
561
- const Y = s.getScreenCTM();
562
- if (Y) {
563
- const k = T.matrixTransform(Y.inverse());
560
+ T.x = t.clientX, T.y = t.clientY;
561
+ const W = s.getScreenCTM();
562
+ if (W) {
563
+ const k = T.matrixTransform(W.inverse());
564
564
  return { x: k.x, y: k.y, ok: !0 };
565
565
  }
566
566
  }
567
- const e = s.getBoundingClientRect(), u = s.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height }, t = Math.min(e.width / u.width, e.height / u.height), i = u.width * t, o = u.height * t, A = (e.width - i) / 2, C = (e.height - o) / 2, O = (a.clientX - e.left - A) / t + u.x, S = (a.clientY - e.top - C) / t + u.y;
567
+ const e = s.getBoundingClientRect(), u = s.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height }, a = Math.min(e.width / u.width, e.height / u.height), i = u.width * a, o = u.height * a, A = (e.width - i) / 2, C = (e.height - o) / 2, O = (t.clientX - e.left - A) / a + u.x, S = (t.clientY - e.top - C) / a + u.y;
568
568
  return { x: O, y: S, ok: !0 };
569
569
  }
570
570
  let Ke = 0;
571
- function po(a) {
571
+ function yo(t) {
572
572
  xl.value || (Ke && cancelAnimationFrame(Ke), Ke = requestAnimationFrame(() => {
573
573
  Ke = 0;
574
- const s = lt(a);
574
+ const s = ta(t);
575
575
  if (!s || !ue.value) {
576
576
  Dl();
577
577
  return;
578
578
  }
579
- const { left: e, right: u, top: t, bottom: i, width: o } = c.value;
580
- if (s.x < e || s.x > u || s.y < t || s.y > i) {
579
+ const { left: e, right: u, top: a, bottom: i, width: o } = c.value;
580
+ if (s.x < e || s.x > u || s.y < a || s.y > i) {
581
581
  Dl();
582
582
  return;
583
583
  }
584
584
  const A = s.x - e, C = o / L.value, O = Math.floor(A / C);
585
- O >= 0 && O < L.value ? wl.value !== O && (wl.value = O, ft(!0, O)) : Dl();
585
+ O >= 0 && O < L.value ? wl.value !== O && (wl.value = O, ga(!0, O)) : Dl();
586
586
  }));
587
587
  }
588
588
  function Dl() {
589
- Ke && (cancelAnimationFrame(Ke), Ke = 0), wl.value = null, ft(!1, null);
589
+ Ke && (cancelAnimationFrame(Ke), Ke = 0), wl.value = null, ga(!1, null);
590
590
  }
591
- function at(a) {
592
- const s = lt(a);
591
+ function aa(t) {
592
+ const s = ta(t);
593
593
  if (s && ue.value) {
594
- const { left: e, right: u, top: t, bottom: i, width: o } = c.value;
595
- if (s.x >= e && s.x <= u && s.y >= t && s.y <= i) {
594
+ const { left: e, right: u, top: a, bottom: i, width: o } = c.value;
595
+ if (s.x >= e && s.x <= u && s.y >= a && s.y <= i) {
596
596
  const A = o / Math.max(1, L.value), C = Math.floor((s.x - e) / A);
597
597
  if (C >= 0 && C < L.value) {
598
- tt(C);
598
+ oa(C);
599
599
  return;
600
600
  }
601
601
  }
602
602
  }
603
- wl.value != null && tt(wl.value);
603
+ wl.value != null && oa(wl.value);
604
604
  }
605
- function tt(a) {
606
- const s = ye.value.map((e) => ({
605
+ function oa(t) {
606
+ const s = we.value.map((e) => ({
607
607
  name: e.name,
608
- value: [null, void 0, NaN].includes(e.absoluteValues[a]) ? null : e.absoluteValues[a],
608
+ value: [null, void 0, NaN].includes(e.absoluteValues[t]) ? null : e.absoluteValues[t],
609
609
  color: e.color,
610
610
  type: e.type
611
611
  }));
612
- jl(
612
+ et(
613
613
  "selectX",
614
614
  {
615
615
  dataset: s,
616
- index: a,
617
- indexLabel: l.value.chart.grid.labels.xAxisLabels.values[a]
616
+ index: t,
617
+ indexLabel: l.value.chart.grid.labels.xAxisLabels.values[t]
618
618
  }
619
- ), l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: s, seriesIndex: a + m.value.start });
619
+ ), l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: s, seriesIndex: t + m.value.start });
620
620
  }
621
- function yo() {
622
- return Le.value.map((a) => ({
623
- values: a.absoluteValues,
624
- color: a.color,
625
- name: a.name,
626
- type: a.type
621
+ function ko() {
622
+ return me.value.map((t) => ({
623
+ values: t.absoluteValues,
624
+ color: t.color,
625
+ name: t.name,
626
+ type: t.type
627
627
  }));
628
628
  }
629
- async function ko({ scale: a = 2 } = {}) {
630
- if (!Te.value) return;
631
- const { width: s, height: e } = Te.value.getBoundingClientRect(), u = s / e, { imageUri: t, base64: i } = await ms({ domElement: Te.value, base64: !0, img: !0, scale: a });
629
+ async function _o({ scale: t = 2 } = {}) {
630
+ if (!Ie.value) return;
631
+ const { width: s, height: e } = Ie.value.getBoundingClientRect(), u = s / e, { imageUri: a, base64: i } = await ps({ domElement: Ie.value, base64: !0, img: !0, scale: t });
632
632
  return {
633
- imageUri: t,
633
+ imageUri: a,
634
634
  base64: i,
635
635
  title: l.value.chart.title.text,
636
636
  width: s,
@@ -638,53 +638,67 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
638
638
  aspectRatio: u
639
639
  };
640
640
  }
641
- function ot(a) {
642
- if (ee.value.includes(a.id))
643
- ee.value = ee.value.filter((s) => s !== a.id);
641
+ function El(t) {
642
+ if (J.value.includes(t.id))
643
+ J.value = J.value.filter((s) => s !== t.id);
644
644
  else {
645
- if (ee.value.length + 1 === Fe.value.length) return;
646
- ee.value.push(a.id);
645
+ if (J.value.length + 1 === Be.value.length) return;
646
+ J.value.push(t.id);
647
647
  }
648
- jl("selectLegend", ye.value.map((s) => ({
648
+ et("selectLegend", we.value.map((s) => ({
649
649
  name: s.name,
650
650
  values: s.absoluteValues,
651
651
  color: s.color,
652
652
  type: s.type
653
- }))), sa.value += 1;
653
+ }))), ut.value += 1;
654
+ }
655
+ function sa(t) {
656
+ if (!me.value.length)
657
+ return l.value.debug && console.warn("VueUiXy - There are no series to show."), null;
658
+ const s = me.value.find((e) => e.name === t);
659
+ return s || (l.value.debug && console.warn(`VueUiXy - Series name not found "${t}"`), null);
654
660
  }
655
- const _o = b(() => {
656
- const a = l.value.chart.title.text || "Chart visualization", s = l.value.chart.title.subtitle.text || "";
657
- return `${a}. ${s}`;
658
- }), st = b(() => ({
661
+ function wo(t) {
662
+ const s = sa(t);
663
+ s !== null && J.value.includes(s.id) && El({ id: s.id });
664
+ }
665
+ function So(t) {
666
+ const s = sa(t);
667
+ s !== null && (J.value.includes(s.id) || El({ id: s.id }));
668
+ }
669
+ const $o = b(() => {
670
+ const t = l.value.chart.title.text || "Chart visualization", s = l.value.chart.title.subtitle.text || "";
671
+ return `${t}. ${s}`;
672
+ }), ua = b(() => ({
659
673
  linePlot: L.value > l.value.line.dot.hideAboveMaxSerieLength
660
- })), wo = b(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), So = b(() => {
674
+ })), Lo = b(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), Mo = b(() => {
661
675
  if (Array.isArray(l.value.chart.highlightArea))
662
676
  return l.value.chart.highlightArea.map((s) => {
663
- const e = Math.min(s.to, Ie.value - 1);
677
+ const e = Math.min(s.to, Ne.value - 1);
664
678
  return {
665
679
  ...s,
666
680
  span: s.from === e ? 1 : e < s.from ? 0 : e - s.from + 1
667
681
  };
668
682
  });
669
- const a = {
683
+ const t = {
670
684
  ...l.value.chart.highlightArea,
671
- to: Math.min(l.value.chart.highlightArea.to, Ie.value - 1)
685
+ to: Math.min(l.value.chart.highlightArea.to, Ne.value - 1)
672
686
  };
673
- return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
674
- }), ut = b(() => La.value ? ge.value.map((a, s) => ({
675
- ...a,
676
- series: Be(a.series),
687
+ return [{ ...t, span: t.from === t.to ? 1 : t.to < t.from ? 0 : t.to - t.from + 1 }];
688
+ }), ia = b(() => Mt.value ? ge.value.map((t, s) => ({
689
+ ...t,
690
+ series: De(t.series),
677
691
  id: `uniqueId_${s}`,
678
- color: Tt(a.color ? a.color : Nl.value[s] ? Nl.value[s] : zt[s])
679
- })) : ge.value), $o = b(() => ye.value.map((a) => {
680
- const s = a.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
692
+ color: za(t.color ? t.color : Nl.value[s] ? Nl.value[s] : Ia[s])
693
+ })) : ge.value), Ao = b(() => we.value.map((t) => {
694
+ const s = t.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
681
695
  return {
682
- id: a.id,
683
- name: a.name,
684
- color: a.color,
685
- values: go(L.value, s)
696
+ id: t.id,
697
+ name: t.name,
698
+ color: t.color,
699
+ values: mo(L.value, s)
686
700
  };
687
- })), Lo = b(() => ({
701
+ })), Co = b(() => ({
688
702
  responsiveBreakpoint: l.value.table.responsiveBreakpoint,
689
703
  roundingValues: l.value.table.rounding,
690
704
  showAverage: !1,
@@ -693,7 +707,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
693
707
  fontFamily: l.value.chart.fontFamily,
694
708
  prefix: l.value.chart.labels.prefix,
695
709
  suffix: l.value.chart.labels.suffix,
696
- colNames: de.value.map((a, s) => l.value.table.useDefaultTimeFormat ? a.text : rl.value(s + m.value.start, l.value.table.timeFormat)),
710
+ colNames: de.value.map((t, s) => l.value.table.useDefaultTimeFormat ? t.text : rl.value(s + m.value.start, l.value.table.timeFormat)),
697
711
  thead: {
698
712
  backgroundColor: l.value.table.th.backgroundColor,
699
713
  color: l.value.table.th.color,
@@ -710,66 +724,66 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
710
724
  sparkline: {
711
725
  animation: { show: !1 }
712
726
  }
713
- })), G = b(() => l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value / 2), Qe = b(() => Qo(Le.value.filter((a) => !ee.value.includes(a.id)))), M = b(() => {
714
- const a = Object.groupBy(Qe.value, (e) => e.scaleLabel), s = {};
715
- for (const [e, u] of Object.entries(a)) {
716
- const t = u.flatMap((i) => i.absoluteValues);
727
+ })), U = b(() => l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value / 2), Qe = b(() => ls(me.value.filter((t) => !J.value.includes(t.id)))), M = b(() => {
728
+ const t = Object.groupBy(Qe.value, (e) => e.scaleLabel), s = {};
729
+ for (const [e, u] of Object.entries(t)) {
730
+ const a = u.flatMap((i) => i.absoluteValues);
717
731
  s[e] = {
718
- min: Math.min(...t) || 0,
719
- max: Math.max(...t) || 1,
720
- groupId: `scale_group_${ka()}`
732
+ min: Math.min(...a) || 0,
733
+ max: Math.max(...a) || 1,
734
+ groupId: `scale_group_${_t()}`
721
735
  };
722
736
  }
723
737
  return s;
724
- }), Mo = b(() => {
725
- const a = Fe.value.filter((s) => s.type === "bar").filter((s) => !ee.value.includes(s.id)).length;
726
- return c.value.width / L.value / a - El.value * a;
727
- }), El = b(() => q.value.line * l.value.bar.periodGap), Yl = b(() => Math.max(1e-5, He() - (f.value.useIndividualScale && f.value.isStacked ? 0 : El.value))), Wl = b(() => Yl.value * Math.min(Math.abs(l.value.bar.innerGap), 0.95)), Ao = b(() => {
738
+ }), To = b(() => {
739
+ const t = Be.value.filter((s) => s.type === "bar").filter((s) => !J.value.includes(s.id)).length;
740
+ return c.value.width / L.value / t - Yl.value * t;
741
+ }), Yl = b(() => Z.value.line * l.value.bar.periodGap), Wl = b(() => Math.max(1e-5, Ee() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Yl.value))), Xl = b(() => Wl.value * Math.min(Math.abs(l.value.bar.innerGap), 0.95)), zo = b(() => {
728
742
  if (!l.value.chart.zoom.minimap.show) return [];
729
- const a = ut.value.filter((t) => !ee.value.includes(t.id)), s = Math.max(...a.map((t) => t.series.length)), e = [];
730
- for (let t = 0; t < s; t += 1)
731
- e.push(a.map((i) => i.series[t] || 0).reduce((i, o) => (i || 0) + (o || 0), 0));
743
+ const t = ia.value.filter((a) => !J.value.includes(a.id)), s = Math.max(...t.map((a) => a.series.length)), e = [];
744
+ for (let a = 0; a < s; a += 1)
745
+ e.push(t.map((i) => i.series[a] || 0).reduce((i, o) => (i || 0) + (o || 0), 0));
732
746
  const u = Math.min(...e);
733
- return e.map((t) => t + (u < 0 ? Math.abs(u) : 0));
734
- }), Co = b(() => l.value.chart.zoom.minimap.show ? ut.value.map((s) => ({
747
+ return e.map((a) => a + (u < 0 ? Math.abs(u) : 0));
748
+ }), Io = b(() => l.value.chart.zoom.minimap.show ? ia.value.map((s) => ({
735
749
  ...s,
736
- isVisible: !ee.value.includes(s.id)
737
- })) : []), je = b(() => ye.value.map((a) => ({
738
- slotAbsoluteIndex: a.slotAbsoluteIndex,
739
- shape: a.shape || null,
740
- name: a.name,
741
- color: a.color,
742
- type: a.type,
743
- value: a.absoluteValues.find((s, e) => e === _.value),
744
- comments: a.comments || [],
745
- prefix: a.prefix || l.value.chart.labels.prefix,
746
- suffix: a.suffix || l.value.chart.labels.suffix
747
- }))), it = b(() => $e.value.ticks.map((a) => ({
748
- y: a >= 0 ? ne.value - c.value.height * Je(a) : ne.value + c.value.height * Je(Math.abs(a)),
749
- value: a,
750
+ isVisible: !J.value.includes(s.id)
751
+ })) : []), je = b(() => we.value.map((t) => ({
752
+ slotAbsoluteIndex: t.slotAbsoluteIndex,
753
+ shape: t.shape || null,
754
+ name: t.name,
755
+ color: t.color,
756
+ type: t.type,
757
+ value: t.absoluteValues.find((s, e) => e === _.value),
758
+ comments: t.comments || [],
759
+ prefix: t.prefix || l.value.chart.labels.prefix,
760
+ suffix: t.suffix || l.value.chart.labels.suffix
761
+ }))), na = b(() => Ae.value.ticks.map((t) => ({
762
+ y: t >= 0 ? ne.value - c.value.height * Je(t) : ne.value + c.value.height * Je(Math.abs(t)),
763
+ value: t,
750
764
  prefix: l.value.chart.labels.prefix,
751
765
  suffix: l.value.chart.labels.suffix
752
- }))), nt = b(() => {
753
- const a = l.value.chart.annotations;
754
- if (!a || !Array.isArray(a) || a.every((S) => !S.show)) return [];
755
- const s = a.filter(
766
+ }))), ra = b(() => {
767
+ const t = l.value.chart.annotations;
768
+ if (!t || !Array.isArray(t) || t.every((S) => !S.show)) return [];
769
+ const s = t.filter(
756
770
  (S) => S.show && (S.yAxis.yTop != null || S.yAxis.yBottom != null)
757
771
  );
758
772
  if (!s.length) return [];
759
- const { left: e, right: u } = c.value, t = ne.value, i = c.value.height, o = $e.value.min, C = $e.value.max - o, O = (S) => {
773
+ const { left: e, right: u } = c.value, a = ne.value, i = c.value.height, o = Ae.value.min, C = Ae.value.max - o, O = (S) => {
760
774
  const T = (S - 0) / C;
761
- return t - T * i;
775
+ return a - T * i;
762
776
  };
763
777
  return s.map((S) => {
764
- const { yAxis: { yTop: T, yBottom: Y, label: k } } = S, F = T != null && Y != null && T !== Y, z = T == null ? null : O(T), le = Y == null ? null : O(Y), re = vo(k.fontSize);
778
+ const { yAxis: { yTop: T, yBottom: W, label: k } } = S, F = T != null && W != null && T !== W, z = T == null ? null : O(T), le = W == null ? null : O(W), re = ho(k.fontSize);
765
779
  re.font = `${k.fontSize}px sans-serif`;
766
- const U = re.measureText(k.text).width, ke = k.fontSize, Oe = (k.position === "start" ? e + k.padding.left : u - k.padding.right) + k.offsetX, xe = (z != null && le != null ? Math.min(z, le) : z ?? le) - k.fontSize / 3 + k.offsetY - k.padding.top;
767
- let B;
768
- k.textAnchor === "middle" ? B = Oe - U / 2 - k.padding.left : k.textAnchor === "end" ? B = Oe - U - k.padding.right : B = Oe - k.padding.left;
769
- const H = xe - ke * 0.75 - k.padding.top;
780
+ const q = re.measureText(k.text).width, Se = k.fontSize, Ve = (k.position === "start" ? e + k.padding.left : u - k.padding.right) + k.offsetX, pe = (z != null && le != null ? Math.min(z, le) : z ?? le) - k.fontSize / 3 + k.offsetY - k.padding.top;
781
+ let H;
782
+ k.textAnchor === "middle" ? H = Ve - q / 2 - k.padding.left : k.textAnchor === "end" ? H = Ve - q - k.padding.right : H = Ve - k.padding.left;
783
+ const D = pe - Se * 0.75 - k.padding.top;
770
784
  return {
771
- show: ![z, le, H].includes(NaN),
772
- id: `annotation_y_${ka()}`,
785
+ show: ![z, le, D].includes(NaN),
786
+ id: `annotation_y_${_t()}`,
773
787
  hasArea: F,
774
788
  areaHeight: F ? Math.abs(z - le) : 0,
775
789
  yTop: z,
@@ -777,12 +791,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
777
791
  config: S.yAxis,
778
792
  x1: e,
779
793
  x2: u,
780
- _text: { x: Oe, y: xe },
794
+ _text: { x: Ve, y: pe },
781
795
  _box: {
782
- x: B,
783
- y: H,
784
- width: U + k.padding.left + k.padding.right,
785
- height: ke + k.padding.top + k.padding.bottom,
796
+ x: H,
797
+ y: D,
798
+ width: q + k.padding.left + k.padding.right,
799
+ height: Se + k.padding.top + k.padding.bottom,
786
800
  fill: k.backgroundColor,
787
801
  stroke: k.border.stroke,
788
802
  rx: k.border.rx,
@@ -792,15 +806,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
792
806
  };
793
807
  });
794
808
  });
795
- function rt(a, s) {
796
- const e = a[s - 1], u = a[s + 1];
797
- let t = !!e && !!u && e.value == null && u.value == null || !e && !!u && u.value == null || !!e && !u && e.value == null;
798
- return me(a[s].value) && t && l.value.line.cutNullValues;
809
+ function ca(t, s) {
810
+ const e = t[s - 1], u = t[s + 1];
811
+ let a = !!e && !!u && e.value == null && u.value == null || !e && !!u && u.value == null || !!e && !u && e.value == null;
812
+ return be(t[s].value) && a && l.value.line.cutNullValues;
799
813
  }
800
- const Me = b(() => {
801
- const a = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = a.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, t = u ? e * (s - 1) : 0, i = c.value.height - t;
802
- return a.filter((o) => o.type === "bar").map((o, A) => {
803
- ma(o);
814
+ const Ce = b(() => {
815
+ const t = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = t.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, a = u ? e * (s - 1) : 0, i = c.value.height - a;
816
+ return t.filter((o) => o.type === "bar").map((o, A) => {
817
+ bt(o);
804
818
  const C = M.value[o.scaleLabel].min, O = M.value[o.scaleLabel].max;
805
819
  o.absoluteValues.filter((R) => ![null, void 0].includes(R)).map((R) => (R - C) / (O - C));
806
820
  const S = {
@@ -809,63 +823,63 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
809
823
  }, T = {
810
824
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
811
825
  min: o.scaleMin || Math.min(...o.absoluteValues.filter((R) => ![void 0, null].includes(R))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((R) => ![null, void 0].includes(R)))
812
- }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, Y) : tl(T.min, T.max === T.min ? T.max * k : T.max, Y), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y) : tl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, U = F.max + le, ke = z.max + Math.abs(re), Oe = o.stackIndex, cl = s - 1 - Oe, xe = u ? 1 - o.cumulatedStackRatio : 0, B = u ? i * xe + e * cl : 0, H = u ? i * o.stackRatio : c.value.height, Z = c.value.bottom - B - H * le / U, pe = c.value.bottom - B - H * re / ke, ce = Le.value.filter((R) => R.type === "bar").filter((R) => !ee.value.includes(R.id)).length, Ll = o.series.map((R, K) => {
813
- const Ee = f.value.useIndividualScale ? (o.absoluteValues[K] + le) / U : Je(R), el = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value * K : c.value.left + q.value.bar * A + q.value.bar * K * ce - Mo.value / 2 - A * El.value;
826
+ }, W = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, W) : al(T.min, T.max === T.min ? T.max * k : T.max, W), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, W) : al(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, W), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, q = F.max + le, Se = z.max + Math.abs(re), Ve = o.stackIndex, cl = s - 1 - Ve, pe = u ? 1 - o.cumulatedStackRatio : 0, H = u ? i * pe + e * cl : 0, D = u ? i * o.stackRatio : c.value.height, K = c.value.bottom - H - D * le / q, ye = c.value.bottom - H - D * re / Se, ce = me.value.filter((R) => R.type === "bar").filter((R) => !J.value.includes(R.id)).length, Ll = o.series.map((R, j) => {
827
+ const We = f.value.useIndividualScale ? (o.absoluteValues[j] + le) / q : Je(R), el = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value * j : c.value.left + Z.value.bar * A + Z.value.bar * j * ce - To.value / 2 - A * Yl.value;
814
828
  return {
815
- yOffset: P(B),
816
- individualHeight: P(H),
829
+ yOffset: P(H),
830
+ individualHeight: P(D),
817
831
  x: P(el),
818
- y: c.value.bottom - B - H * Ee,
819
- value: o.absoluteValues[K],
820
- zeroPosition: P(Z),
821
- individualMax: P(U),
822
- comment: o.comments && o.comments.slice(m.value.start, m.value.end)[K] || ""
832
+ y: c.value.bottom - H - D * We,
833
+ value: o.absoluteValues[j],
834
+ zeroPosition: P(K),
835
+ individualMax: P(q),
836
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[j] || ""
823
837
  };
824
- }), he = o.absoluteValues.map((R) => z.min >= 0 ? (R - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (R + Math.abs(z.min)) / (z.max + Math.abs(z.min))), De = o.series.map((R, K) => {
825
- const Ee = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value * K : c.value.left - q.value.bar / 2 + q.value.bar * A + q.value.bar * K * Le.value.filter((el) => el.type === "bar").filter((el) => !ee.value.includes(el.id)).length;
838
+ }), he = o.absoluteValues.map((R) => z.min >= 0 ? (R - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (R + Math.abs(z.min)) / (z.max + Math.abs(z.min))), Ye = o.series.map((R, j) => {
839
+ const We = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value * j : c.value.left - Z.value.bar / 2 + Z.value.bar * A + Z.value.bar * j * me.value.filter((el) => el.type === "bar").filter((el) => !J.value.includes(el.id)).length;
826
840
  return {
827
- yOffset: P(B),
828
- individualHeight: P(H),
829
- x: P(Ee),
830
- y: P(c.value.bottom - P(B) - (P(H) * he[K] || 0)),
831
- value: o.absoluteValues[K],
832
- zeroPosition: P(Z),
833
- individualMax: P(U),
834
- comment: o.comments && o.comments.slice(m.value.start, m.value.end)[K] || ""
841
+ yOffset: P(H),
842
+ individualHeight: P(D),
843
+ x: P(We),
844
+ y: P(c.value.bottom - P(H) - (P(D) * he[j] || 0)),
845
+ value: o.absoluteValues[j],
846
+ zeroPosition: P(K),
847
+ individualMax: P(q),
848
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[j] || ""
835
849
  };
836
850
  }), X = F.ticks.map((R) => ({
837
- y: R >= 0 ? Z - H * (R / U) : Z + H * Math.abs(R) / U,
851
+ y: R >= 0 ? K - D * (R / q) : K + D * Math.abs(R) / q,
838
852
  value: R,
839
853
  prefix: o.prefix || l.value.chart.labels.prefix,
840
854
  suffix: o.suffix || l.value.chart.labels.suffix,
841
855
  datapoint: o
842
- })), J = z.ticks.map((R) => {
843
- const K = (R - z.min) / (z.max - z.min);
856
+ })), Q = z.ticks.map((R) => {
857
+ const j = (R - z.min) / (z.max - z.min);
844
858
  return {
845
- y: R >= 0 ? pe - H * K : pe + H * K,
859
+ y: R >= 0 ? ye - D * j : ye + D * j,
846
860
  value: R,
847
861
  prefix: o.prefix || l.value.chart.labels.prefix,
848
862
  suffix: o.suffix || l.value.chart.labels.suffix,
849
863
  datapoint: o
850
864
  };
851
865
  });
852
- return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? J : X, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? pe : Z, M.value[o.scaleLabel].individualMax = o.autoScaling ? ke : U, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = B, M.value[o.scaleLabel].individualHeight = H, M.value[o.scaleLabel].autoScaleYLabels = J, M.value[o.scaleLabel].unique = Qe.value.filter((R) => R.scaleLabel === o.scaleLabel).length === 1, {
866
+ return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Q : X, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? ye : K, M.value[o.scaleLabel].individualMax = o.autoScaling ? Se : q, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = H, M.value[o.scaleLabel].individualHeight = D, M.value[o.scaleLabel].autoScaleYLabels = Q, M.value[o.scaleLabel].unique = Qe.value.filter((R) => R.scaleLabel === o.scaleLabel).length === 1, {
853
867
  ...o,
854
- yOffset: B,
855
- autoScaleYLabels: J,
856
- individualHeight: H,
857
- scaleYLabels: o.autoScaling ? J : X,
868
+ yOffset: H,
869
+ autoScaleYLabels: Q,
870
+ individualHeight: D,
871
+ scaleYLabels: o.autoScaling ? Q : X,
858
872
  individualScale: o.autoScaling ? z : F,
859
- individualMax: o.autoScaling ? ke : U,
860
- zeroPosition: o.autoScaling ? pe : Z,
861
- plots: o.autoScaling ? De : Ll,
873
+ individualMax: o.autoScaling ? Se : q,
874
+ zeroPosition: o.autoScaling ? ye : K,
875
+ plots: o.autoScaling ? Ye : Ll,
862
876
  groupId: M.value[o.scaleLabel].groupId
863
877
  };
864
878
  });
865
- }), te = b(() => {
866
- const a = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = a.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, t = u ? e * (s - 1) : 0, i = c.value.height - t;
867
- return a.filter((o) => o.type === "line").map((o, A) => {
868
- ma(o);
879
+ }), ae = b(() => {
880
+ const t = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = t.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, a = u ? e * (s - 1) : 0, i = c.value.height - a;
881
+ return t.filter((o) => o.type === "line").map((o, A) => {
882
+ bt(o);
869
883
  const C = M.value[o.scaleLabel].min, O = M.value[o.scaleLabel].max;
870
884
  o.absoluteValues.filter((N) => ![null, void 0].includes(N)).map((N) => (N - C) / (O - C));
871
885
  const S = {
@@ -874,73 +888,73 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
874
888
  }, T = {
875
889
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
876
890
  min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
877
- }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, Y) : tl(T.min, T.max === T.min ? T.max * k : T.max, Y), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y) : tl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, U = F.max + Math.abs(le), ke = z.max + Math.abs(re), Oe = o.stackIndex, cl = s - 1 - Oe, xe = u ? 1 - o.cumulatedStackRatio : 0, B = u ? i * xe + e * cl : 0, H = u ? i * o.stackRatio : c.value.height, Z = c.value.bottom - B - H * le / U, pe = c.value.bottom - B - H * re / ke, ce = o.series.map((N, oe) => {
878
- const Do = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(le)) / U : Je(N);
891
+ }, W = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, W) : al(T.min, T.max === T.min ? T.max * k : T.max, W), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, W) : al(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, W), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, q = F.max + Math.abs(le), Se = z.max + Math.abs(re), Ve = o.stackIndex, cl = s - 1 - Ve, pe = u ? 1 - o.cumulatedStackRatio : 0, H = u ? i * pe + e * cl : 0, D = u ? i * o.stackRatio : c.value.height, K = c.value.bottom - H - D * le / q, ye = c.value.bottom - H - D * re / Se, ce = o.series.map((N, oe) => {
892
+ const Wo = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(le)) / q : Je(N);
879
893
  return {
880
- x: P(c.value.left + q.value.line / 2 + q.value.line * oe),
881
- y: P(c.value.bottom - B - H * Do),
894
+ x: P(c.value.left + Z.value.line / 2 + Z.value.line * oe),
895
+ y: P(c.value.bottom - H - D * Wo),
882
896
  value: o.absoluteValues[oe],
883
897
  comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
884
898
  };
885
899
  }), Ll = o.absoluteValues.map((N) => z.min >= 0 ? (N - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (N + Math.abs(z.min)) / (z.max + Math.abs(z.min))), he = o.series.map((N, oe) => [void 0, null].includes(o.absoluteValues[oe]) ? {
886
- x: P(c.value.left + q.value.line / 2 + q.value.line * oe),
887
- y: Z,
900
+ x: P(c.value.left + Z.value.line / 2 + Z.value.line * oe),
901
+ y: K,
888
902
  value: o.absoluteValues[oe],
889
903
  comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
890
904
  } : {
891
- x: P(c.value.left + q.value.line / 2 + q.value.line * oe),
892
- y: P(c.value.bottom - B - (H * Ll[oe] || 0)),
905
+ x: P(c.value.left + Z.value.line / 2 + Z.value.line * oe),
906
+ y: P(c.value.bottom - H - (D * Ll[oe] || 0)),
893
907
  value: o.absoluteValues[oe],
894
908
  comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
895
- }), De = l.value.line.cutNullValues ? It(ce) : Ot(ce.filter((N) => N.value !== null)), X = l.value.line.cutNullValues ? It(he) : Ot(he.filter((N) => N.value !== null)), J = l.value.line.cutNullValues ? Nt(ce) : Vt(ce.filter((N) => N.value !== null)), R = l.value.line.cutNullValues ? Nt(he) : Vt(he.filter((N) => N.value !== null)), K = F.ticks.map((N) => ({
896
- y: N >= 0 ? Z - H * (N / U) : Z + H * Math.abs(N) / U,
909
+ }), Ye = l.value.line.cutNullValues ? Oa(ce) : Na(ce.filter((N) => N.value !== null)), X = l.value.line.cutNullValues ? Oa(he) : Na(he.filter((N) => N.value !== null)), Q = l.value.line.cutNullValues ? Va(ce) : Pa(ce.filter((N) => N.value !== null)), R = l.value.line.cutNullValues ? Va(he) : Pa(he.filter((N) => N.value !== null)), j = F.ticks.map((N) => ({
910
+ y: N >= 0 ? K - D * (N / q) : K + D * Math.abs(N) / q,
897
911
  value: N,
898
912
  prefix: o.prefix || l.value.chart.labels.prefix,
899
913
  suffix: o.suffix || l.value.chart.labels.suffix,
900
914
  datapoint: o
901
- })), Ee = z.ticks.map((N) => {
915
+ })), We = z.ticks.map((N) => {
902
916
  const oe = (N - z.min) / (z.max - z.min);
903
917
  return {
904
- y: N >= 0 ? pe - H * oe : pe + H * oe,
918
+ y: N >= 0 ? ye - D * oe : ye + D * oe,
905
919
  value: N,
906
920
  prefix: o.prefix || l.value.chart.labels.prefix,
907
921
  suffix: o.suffix || l.value.chart.labels.suffix,
908
922
  datapoint: o
909
923
  };
910
924
  });
911
- M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ee : K, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? pe : Z, M.value[o.scaleLabel].individualMax = o.autoScaling ? ke : U, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = B, M.value[o.scaleLabel].individualHeight = H, M.value[o.scaleLabel].autoScaleYLabels = Ee, M.value[o.scaleLabel].unique = Qe.value.filter((N) => N.scaleLabel === o.scaleLabel).length === 1;
912
- const el = f.value.useIndividualScale ? o.autoScaling ? pe : Z : ne.value, Ml = Math.max(Math.max(o.autoScaling ? pe : K.at(-1) ? K.at(-1).y : 0, c.value.top), el);
925
+ M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? We : j, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? ye : K, M.value[o.scaleLabel].individualMax = o.autoScaling ? Se : q, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = H, M.value[o.scaleLabel].individualHeight = D, M.value[o.scaleLabel].autoScaleYLabels = We, M.value[o.scaleLabel].unique = Qe.value.filter((N) => N.scaleLabel === o.scaleLabel).length === 1;
926
+ const el = f.value.useIndividualScale ? o.autoScaling ? ye : K : ne.value, Ml = Math.max(Math.max(o.autoScaling ? ye : j.at(-1) ? j.at(-1).y : 0, c.value.top), el);
913
927
  return {
914
928
  ...o,
915
- yOffset: B,
916
- autoScaleYLabels: Ee,
917
- individualHeight: H,
918
- scaleYLabels: o.autoScaling ? Ee : K,
929
+ yOffset: H,
930
+ autoScaleYLabels: We,
931
+ individualHeight: D,
932
+ scaleYLabels: o.autoScaling ? We : j,
919
933
  individualScale: o.autoScaling ? z : F,
920
- individualMax: o.autoScaling ? ke : U,
921
- zeroPosition: o.autoScaling ? pe : Z,
922
- curve: o.autoScaling ? X : De,
934
+ individualMax: o.autoScaling ? Se : q,
935
+ zeroPosition: o.autoScaling ? ye : K,
936
+ curve: o.autoScaling ? X : Ye,
923
937
  plots: o.autoScaling ? he : ce,
924
- area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? Pt(
938
+ area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? Fa(
925
939
  o.autoScaling ? he : ce,
926
940
  Ml
927
- ) : Ft(
941
+ ) : Ra(
928
942
  o.autoScaling ? he.filter((N) => N.value !== null) : ce.filter((N) => N.value !== null),
929
943
  Ml
930
- ) : l.value.line.cutNullValues ? Pt(ce, Ml) : Ft(ce.filter((N) => N.value !== null), Ml) : "",
931
- curveAreas: o.useArea ? jo(
944
+ ) : l.value.line.cutNullValues ? Fa(ce, Ml) : Ra(ce.filter((N) => N.value !== null), Ml) : "",
945
+ curveAreas: o.useArea ? ts(
932
946
  o.autoScaling ? l.value.line.cutNullValues ? he : he.filter((N) => N.value !== null) : l.value.line.cutNullValues ? ce : ce.filter((N) => N.value !== null),
933
947
  Ml,
934
948
  l.value.line.cutNullValues
935
949
  ) : [],
936
- straight: o.autoScaling ? R : J,
950
+ straight: o.autoScaling ? R : Q,
937
951
  groupId: M.value[o.scaleLabel].groupId
938
952
  };
939
953
  });
940
- }), be = b(() => {
941
- const a = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = a.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, t = u ? e * (s - 1) : 0, i = c.value.height - t;
942
- return a.filter((o) => o.type === "plot").map((o) => {
943
- ma(o);
954
+ }), xe = b(() => {
955
+ const t = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = t.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, a = u ? e * (s - 1) : 0, i = c.value.height - a;
956
+ return t.filter((o) => o.type === "plot").map((o) => {
957
+ bt(o);
944
958
  const A = M.value[o.scaleLabel].min, C = M.value[o.scaleLabel].max;
945
959
  o.absoluteValues.filter((X) => ![null, void 0].includes(X)).map((X) => (X - A) / (C - A));
946
960
  const O = {
@@ -949,50 +963,50 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
949
963
  }, S = {
950
964
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
951
965
  min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
952
- }, T = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, k = tl(S.min, S.max === S.min ? S.max * Y : S.max, T), F = tl(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * Y : O.valueMax, T), z = k.min >= 0 ? 0 : Math.abs(k.min), le = 0, re = k.max + z, U = F.max + Math.abs(le), ke = o.stackIndex, Oe = s - 1 - ke, cl = u ? 1 - o.cumulatedStackRatio : 0, xe = u ? i * cl + e * Oe : 0, B = u ? i * o.stackRatio : c.value.height, H = c.value.bottom - xe - B * z / re, Z = c.value.bottom - xe - B * le / U, pe = o.series.map((X, J) => {
953
- const R = f.value.useIndividualScale ? (o.absoluteValues[J] + Math.abs(z)) / re : Je(X);
966
+ }, T = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, W = 1.0000001, k = al(S.min, S.max === S.min ? S.max * W : S.max, T), F = al(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * W : O.valueMax, T), z = k.min >= 0 ? 0 : Math.abs(k.min), le = 0, re = k.max + z, q = F.max + Math.abs(le), Se = o.stackIndex, Ve = s - 1 - Se, cl = u ? 1 - o.cumulatedStackRatio : 0, pe = u ? i * cl + e * Ve : 0, H = u ? i * o.stackRatio : c.value.height, D = c.value.bottom - pe - H * z / re, K = c.value.bottom - pe - H * le / q, ye = o.series.map((X, Q) => {
967
+ const R = f.value.useIndividualScale ? (o.absoluteValues[Q] + Math.abs(z)) / re : Je(X);
954
968
  return {
955
- x: P(c.value.left + q.value.plot / 2 + q.value.plot * J),
956
- y: P(c.value.bottom - xe - B * R),
957
- value: o.absoluteValues[J],
958
- comment: o.comments && o.comments.slice(m.value.start, m.value.end)[J] || ""
969
+ x: P(c.value.left + Z.value.plot / 2 + Z.value.plot * Q),
970
+ y: P(c.value.bottom - pe - H * R),
971
+ value: o.absoluteValues[Q],
972
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[Q] || ""
959
973
  };
960
- }), ce = o.absoluteValues.map((X) => F.min >= 0 ? (X - Math.abs(F.min)) / (F.max - Math.abs(F.min)) : (X + Math.abs(F.min)) / (F.max + Math.abs(F.min))), Ll = o.series.map((X, J) => ({
961
- x: P(c.value.left + q.value.plot / 2 + q.value.plot * J),
962
- y: P(c.value.bottom - xe - (B * ce[J] || 0)),
963
- value: o.absoluteValues[J],
964
- comment: o.comments && o.comments.slice(m.value.start, m.value.end)[J] || ""
974
+ }), ce = o.absoluteValues.map((X) => F.min >= 0 ? (X - Math.abs(F.min)) / (F.max - Math.abs(F.min)) : (X + Math.abs(F.min)) / (F.max + Math.abs(F.min))), Ll = o.series.map((X, Q) => ({
975
+ x: P(c.value.left + Z.value.plot / 2 + Z.value.plot * Q),
976
+ y: P(c.value.bottom - pe - (H * ce[Q] || 0)),
977
+ value: o.absoluteValues[Q],
978
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[Q] || ""
965
979
  })), he = k.ticks.map((X) => ({
966
- y: X >= 0 ? H - B * (X / re) : H + B * Math.abs(X) / re,
980
+ y: X >= 0 ? D - H * (X / re) : D + H * Math.abs(X) / re,
967
981
  value: X,
968
982
  prefix: o.prefix || l.value.chart.labels.prefix,
969
983
  suffix: o.suffix || l.value.chart.labels.suffix,
970
984
  datapoint: o
971
- })), De = F.ticks.map((X) => {
972
- const J = (X - F.min) / (F.max - F.min);
985
+ })), Ye = F.ticks.map((X) => {
986
+ const Q = (X - F.min) / (F.max - F.min);
973
987
  return {
974
- y: X >= 0 ? Z - B * J : Z + B * J,
988
+ y: X >= 0 ? K - H * Q : K + H * Q,
975
989
  value: X,
976
990
  prefix: o.prefix || l.value.chart.labels.prefix,
977
991
  suffix: o.suffix || l.value.chart.labels.suffix,
978
992
  datapoint: o
979
993
  };
980
994
  });
981
- return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? De : he, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? Z : H, M.value[o.scaleLabel].individualMax = o.autoScaling ? U : re, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = xe, M.value[o.scaleLabel].individualHeight = B, M.value[o.scaleLabel].autoScaleYLabels = De, M.value[o.scaleLabel].unique = Qe.value.filter((X) => X.scaleLabel === o.scaleLabel).length === 1, {
995
+ return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ye : he, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? K : D, M.value[o.scaleLabel].individualMax = o.autoScaling ? q : re, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = pe, M.value[o.scaleLabel].individualHeight = H, M.value[o.scaleLabel].autoScaleYLabels = Ye, M.value[o.scaleLabel].unique = Qe.value.filter((X) => X.scaleLabel === o.scaleLabel).length === 1, {
982
996
  ...o,
983
- yOffset: xe,
984
- autoScaleYLabels: De,
985
- individualHeight: B,
986
- scaleYLabels: o.autoScaling ? De : he,
997
+ yOffset: pe,
998
+ autoScaleYLabels: Ye,
999
+ individualHeight: H,
1000
+ scaleYLabels: o.autoScaling ? Ye : he,
987
1001
  individualScale: o.autoScaling ? F : k,
988
- individualMax: o.autoScaling ? U : re,
989
- zeroPosition: o.autoScaling ? Z : H,
990
- plots: o.autoScaling ? Ll : pe,
1002
+ individualMax: o.autoScaling ? q : re,
1003
+ zeroPosition: o.autoScaling ? K : D,
1004
+ plots: o.autoScaling ? Ll : ye,
991
1005
  groupId: M.value[o.scaleLabel].groupId
992
1006
  };
993
1007
  });
994
1008
  }), Sl = b(() => {
995
- const a = te.value.map((i) => ({
1009
+ const t = ae.value.map((i) => ({
996
1010
  name: i.name,
997
1011
  color: i.color,
998
1012
  scale: i.individualScale,
@@ -1004,7 +1018,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1004
1018
  yOffset: i.yOffset || 0,
1005
1019
  individualHeight: i.individualHeight || c.value.height,
1006
1020
  autoScaleYLabels: i.autoScaleYLabels
1007
- })), s = Me.value.map((i) => ({
1021
+ })), s = Ce.value.map((i) => ({
1008
1022
  name: i.name,
1009
1023
  color: i.color,
1010
1024
  scale: i.individualScale,
@@ -1015,7 +1029,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1015
1029
  id: i.id,
1016
1030
  yOffset: i.yOffset || 0,
1017
1031
  individualHeight: i.individualHeight || c.value.height
1018
- })), e = be.value.map((i) => ({
1032
+ })), e = xe.value.map((i) => ({
1019
1033
  name: i.name,
1020
1034
  color: i.color,
1021
1035
  scale: i.individualScale,
@@ -1027,10 +1041,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1027
1041
  id: i.id,
1028
1042
  yOffset: i.yOffset || 0,
1029
1043
  individualHeight: i.individualHeight || c.value.height
1030
- })), u = f.value.useIndividualScale && !f.value.isStacked ? Object.values(M.value) : [...a, ...s, ...e], t = u.flatMap((i) => i).length;
1044
+ })), u = f.value.useIndividualScale && !f.value.isStacked ? Object.values(M.value) : [...t, ...s, ...e], a = u.flatMap((i) => i).length;
1031
1045
  return u.flatMap((i, o) => {
1032
1046
  let A = 0;
1033
- A = f.value.isStacked ? c.value.left : c.value.left / t * (o + 1);
1047
+ A = f.value.isStacked ? c.value.left : c.value.left / a * (o + 1);
1034
1048
  const C = f.value.useIndividualScale && !f.value.isStacked ? i.unique ? i.name : i.groupName : i.name;
1035
1049
  return {
1036
1050
  unique: i.unique,
@@ -1054,17 +1068,17 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1054
1068
  }))
1055
1069
  };
1056
1070
  });
1057
- }), ct = b(() => {
1058
- const a = l.value.line.interLine || {}, s = a.pairs || [], e = a.colors || [];
1071
+ }), va = b(() => {
1072
+ const t = l.value.line.interLine || {}, s = t.pairs || [], e = t.colors || [];
1059
1073
  if (!s.length) return [];
1060
1074
  const u = [];
1061
- return s.forEach((t, i) => {
1062
- const [o, A] = Array.isArray(t) ? t : [t.a, t.b];
1075
+ return s.forEach((a, i) => {
1076
+ const [o, A] = Array.isArray(a) ? a : [a.a, a.b];
1063
1077
  if (!o || !A) return;
1064
- const C = te.value.find((k) => k.name === o), O = te.value.find((k) => k.name === A);
1078
+ const C = ae.value.find((k) => k.name === o), O = ae.value.find((k) => k.name === A);
1065
1079
  if (!C || !O || C.type !== "line" || O.type !== "line") return;
1066
1080
  const S = e?.[i]?.[0] ?? C.color, T = e?.[i]?.[1] ?? O.color;
1067
- es({
1081
+ as({
1068
1082
  lineA: C.plots,
1069
1083
  lineB: O.plots,
1070
1084
  smoothA: !!C.smooth,
@@ -1077,146 +1091,146 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1077
1091
  u.push({ ...k, key: `inter_${o}_${A}_${i}_${F}` });
1078
1092
  });
1079
1093
  }), u;
1080
- }), vt = b(() => ({
1094
+ }), da = b(() => ({
1081
1095
  datapoint: je.value,
1082
1096
  seriesIndex: _.value,
1083
- series: Le.value,
1084
- bars: Me.value,
1085
- lines: te.value,
1086
- plots: be.value,
1097
+ series: me.value,
1098
+ bars: Ce.value,
1099
+ lines: ae.value,
1100
+ plots: xe.value,
1087
1101
  config: l.value
1088
1102
  })), rl = b(() => {
1089
- const a = l.value.chart.grid.labels.xAxisLabels.datetimeFormatter, s = ds({
1090
- useUTC: a.useUTC,
1091
- locale: hs[a.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
1092
- januaryAsYear: a.januaryAsYear
1103
+ const t = l.value.chart.grid.labels.xAxisLabels.datetimeFormatter, s = gs({
1104
+ useUTC: t.useUTC,
1105
+ locale: ms[t.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
1106
+ januaryAsYear: t.januaryAsYear
1093
1107
  });
1094
1108
  return (e, u) => {
1095
1109
  const i = l.value.chart.grid.labels.xAxisLabels.values?.[e];
1096
1110
  return i == null ? "" : s.formatDate(new Date(i), u);
1097
1111
  };
1098
- }), dt = b(() => (l.value.chart.grid.labels.xAxisLabels.values || []).map((s, e) => ({
1112
+ }), ha = b(() => (l.value.chart.grid.labels.xAxisLabels.values || []).map((s, e) => ({
1099
1113
  text: rl.value(e, l.value.chart.zoom.timeFormat),
1100
1114
  absoluteIndex: e
1101
- }))), To = b(() => {
1102
- let a = "", s = je.value.map((t) => t.value).filter((t) => ql(t) && t !== null).reduce((t, i) => Math.abs(t) + Math.abs(i), 0);
1115
+ }))), Oo = b(() => {
1116
+ let t = "", s = je.value.map((a) => a.value).filter((a) => Zl(a) && a !== null).reduce((a, i) => Math.abs(a) + Math.abs(i), 0);
1103
1117
  const e = de.value[_.value], u = l.value.chart.tooltip.customFormat;
1104
- if (Rt(u) && ls(() => u({
1118
+ if (Ba(u) && os(() => u({
1105
1119
  absoluteIndex: _.value + m.value.start,
1106
1120
  seriesIndex: _.value,
1107
1121
  datapoint: je.value,
1108
- series: Le.value,
1109
- bars: Me.value,
1110
- lines: te.value,
1111
- plots: be.value,
1122
+ series: me.value,
1123
+ bars: Ce.value,
1124
+ lines: ae.value,
1125
+ plots: xe.value,
1112
1126
  config: l.value
1113
1127
  })))
1114
1128
  return u({
1115
1129
  absoluteIndex: _.value + m.value.start,
1116
1130
  seriesIndex: _.value,
1117
1131
  datapoint: je.value,
1118
- series: Le.value,
1119
- bars: Me.value,
1120
- lines: te.value,
1121
- plots: be.value,
1132
+ series: me.value,
1133
+ bars: Ce.value,
1134
+ lines: ae.value,
1135
+ plots: xe.value,
1122
1136
  config: l.value
1123
1137
  });
1124
1138
  if (e && e.text && l.value.chart.tooltip.showTimeLabel) {
1125
- const t = rl.value(_.value + m.value.start, l.value.chart.tooltip.timeFormat);
1126
- a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.tooltip.useDefaultTimeFormat ? t : e.text}</div>`;
1139
+ const a = rl.value(_.value + m.value.start, l.value.chart.tooltip.timeFormat);
1140
+ t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.tooltip.useDefaultTimeFormat ? a : e.text}</div>`;
1127
1141
  }
1128
- return je.value.forEach((t) => {
1129
- if (ql(t.value)) {
1142
+ return je.value.forEach((a) => {
1143
+ if (Zl(a.value)) {
1130
1144
  let i = "", o = "";
1131
- switch (bl.value[t.type]) {
1145
+ switch (bl.value[a.type]) {
1132
1146
  case "bar":
1133
- i = `<svg viewBox="0 0 40 40" height="14" width="14">${$a.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${t.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${$a.pattern ? `url(#pattern_${D.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
1147
+ i = `<svg viewBox="0 0 40 40" height="14" width="14">${Lt.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="${Lt.pattern ? `url(#pattern_${E.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
1134
1148
  break;
1135
1149
  case "line":
1136
- !t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${Bt({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), i = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${o}</svg>`;
1150
+ !a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${Ha({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), i = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
1137
1151
  break;
1138
1152
  case "plot":
1139
- if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
1140
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" /></svg>`;
1153
+ if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
1154
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" /></svg>`;
1141
1155
  break;
1142
1156
  }
1143
- if (t.shape === "star") {
1144
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${Bt({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
1157
+ if (a.shape === "star") {
1158
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${Ha({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
1145
1159
  break;
1146
1160
  }
1147
- if (t.shape === "triangle") {
1148
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1161
+ if (a.shape === "triangle") {
1162
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1149
1163
  break;
1150
1164
  }
1151
- if (t.shape === "square") {
1152
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1165
+ if (a.shape === "square") {
1166
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1153
1167
  break;
1154
1168
  }
1155
- if (t.shape === "diamond") {
1156
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1169
+ if (a.shape === "diamond") {
1170
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1157
1171
  break;
1158
1172
  }
1159
- if (t.shape === "pentagon") {
1160
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1173
+ if (a.shape === "pentagon") {
1174
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1161
1175
  break;
1162
1176
  }
1163
- if (t.shape === "hexagon") {
1164
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1177
+ if (a.shape === "hexagon") {
1178
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1165
1179
  break;
1166
1180
  }
1167
1181
  }
1168
- a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${t.name}: <b>${l.value.chart.tooltip.showValue ? se(
1169
- t.type === "line" ? l.value.line.labels.formatter : t.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1170
- t.value,
1171
- Ve({
1172
- p: t.prefix,
1173
- v: t.value,
1174
- s: t.suffix,
1182
+ t += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${a.name}: <b>${l.value.chart.tooltip.showValue ? se(
1183
+ a.type === "line" ? l.value.line.labels.formatter : a.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1184
+ a.value,
1185
+ Fe({
1186
+ p: a.prefix,
1187
+ v: a.value,
1188
+ s: a.suffix,
1175
1189
  r: l.value.chart.tooltip.roundingValue
1176
1190
  }),
1177
- { datapoint: t }
1178
- ) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${Ve({
1179
- v: P(Math.abs(t.value) / s * 100),
1191
+ { datapoint: a }
1192
+ ) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${Fe({
1193
+ v: P(Math.abs(a.value) / s * 100),
1180
1194
  s: "%",
1181
1195
  r: l.value.chart.tooltip.roundingPercentage
1182
- })})` : ""}</div>`, l.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(m.value.start, m.value.end)[_.value] && (a += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${t.color}">${t.comments.slice(m.value.start, m.value.end)[_.value]}</div>`);
1196
+ })})` : ""}</div>`, l.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(m.value.start, m.value.end)[_.value] && (t += `<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(m.value.start, m.value.end)[_.value]}</div>`);
1183
1197
  }
1184
- }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${a}</div>`;
1185
- }), ht = b(() => {
1186
- if (Fe.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
1187
- const a = ye.value.map((e) => ({
1198
+ }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${t}</div>`;
1199
+ }), fa = b(() => {
1200
+ if (Be.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
1201
+ const t = we.value.map((e) => ({
1188
1202
  label: e.name,
1189
1203
  color: e.color,
1190
1204
  type: e.type
1191
1205
  })), s = [];
1192
1206
  return de.value.forEach((e, u) => {
1193
- const t = l.value.table.useDefaultTimeFormat ? [e.text] : [rl.value(u + m.value.start, l.value.table.timeFormat)];
1194
- ye.value.forEach((i) => {
1195
- t.push(me(i.absoluteValues[u]) ? Number(i.absoluteValues[u].toFixed(l.value.table.rounding)) : "");
1196
- }), s.push(t);
1197
- }), { head: a, body: s };
1198
- }), Xl = b(() => {
1199
- const a = l.value.table.showSum;
1200
- let s = [""].concat(ye.value.map((i) => i.name));
1201
- a && (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>'));
1207
+ const a = l.value.table.useDefaultTimeFormat ? [e.text] : [rl.value(u + m.value.start, l.value.table.timeFormat)];
1208
+ we.value.forEach((i) => {
1209
+ a.push(be(i.absoluteValues[u]) ? Number(i.absoluteValues[u].toFixed(l.value.table.rounding)) : "");
1210
+ }), s.push(a);
1211
+ }), { head: t, body: s };
1212
+ }), Gl = b(() => {
1213
+ const t = l.value.table.showSum;
1214
+ let s = [""].concat(we.value.map((i) => i.name));
1215
+ t && (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>'));
1202
1216
  let e = [];
1203
1217
  for (let i = 0; i < L.value; i += 1) {
1204
- const o = ye.value.map((A) => A.absoluteValues[i] ?? 0).reduce((A, C) => A + C, 0);
1218
+ const o = we.value.map((A) => A.absoluteValues[i] ?? 0).reduce((A, C) => A + C, 0);
1205
1219
  e.push(
1206
1220
  [
1207
1221
  l.value.table.useDefaultTimeFormat ? de.value[i].text ?? "-" : rl.value(i + m.value.start, l.value.table.timeFormat)
1208
- ].concat(ye.value.map(
1222
+ ].concat(we.value.map(
1209
1223
  (A) => se(
1210
1224
  A.type === "line" ? l.value.line.labels.formatter : A.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1211
1225
  A.absoluteValues[i] ?? 0,
1212
- Ve({
1226
+ Fe({
1213
1227
  p: A.prefix || l.value.chart.labels.prefix,
1214
1228
  v: A.absoluteValues[i] ?? 0,
1215
1229
  s: A.suffix || l.value.chart.labels.suffix,
1216
1230
  r: l.value.table.rounding
1217
1231
  })
1218
1232
  )
1219
- )).concat(a ? (o ?? 0).toFixed(l.value.table.rounding) : [])
1233
+ )).concat(t ? (o ?? 0).toFixed(l.value.table.rounding) : [])
1220
1234
  );
1221
1235
  }
1222
1236
  const u = {
@@ -1231,38 +1245,38 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1231
1245
  outline: l.value.table.td.outline
1232
1246
  },
1233
1247
  breakpoint: l.value.table.responsiveBreakpoint
1234
- }, t = [l.value.table.columnNames.period].concat(ye.value.map((i) => i.name)).concat(l.value.table.columnNames.total);
1235
- return { head: s, body: e, config: u, colNames: t };
1248
+ }, a = [l.value.table.columnNames.period].concat(we.value.map((i) => i.name)).concat(l.value.table.columnNames.total);
1249
+ return { head: s, body: e, config: u, colNames: a };
1236
1250
  });
1237
- function ba(a = null) {
1238
- const s = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...ht.value.head.map((o) => o.label)], u = ht.value.body, t = s.concat([e]).concat(u), i = ss(t);
1239
- a ? a(i) : us({ csvContent: i, title: l.value.chart.title.text || "vue-ui-xy" });
1251
+ function xt(t = null) {
1252
+ const s = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...fa.value.head.map((o) => o.label)], u = fa.value.body, a = s.concat([e]).concat(u), i = ns(a);
1253
+ t ? t(i) : rs({ csvContent: i, title: l.value.chart.title.text || "vue-ui-xy" });
1240
1254
  }
1241
- function ft(a, s = null) {
1242
- Ma.value = a;
1243
- const e = ye.value.map((u) => ({
1255
+ function ga(t, s = null) {
1256
+ At.value = t;
1257
+ const e = we.value.map((u) => ({
1244
1258
  name: u.name,
1245
1259
  value: [null, void 0, NaN].includes(u.absoluteValues[s]) ? null : u.absoluteValues[s],
1246
1260
  color: u.color,
1247
1261
  type: u.type
1248
1262
  }));
1249
- a ? (_.value = s, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: s + m.value.start })) : (_.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: s + m.value.start }));
1263
+ t ? (_.value = s, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: s + m.value.start })) : (_.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: s + m.value.start }));
1250
1264
  }
1251
- function gt() {
1265
+ function ma() {
1252
1266
  f.value.showTable = !f.value.showTable;
1253
1267
  }
1254
- function mt() {
1268
+ function ba() {
1255
1269
  f.value.dataLabels.show = !f.value.dataLabels.show;
1256
1270
  }
1257
- function bt() {
1271
+ function xa() {
1258
1272
  f.value.showTooltip = !f.value.showTooltip;
1259
1273
  }
1260
- function xt(a) {
1261
- qe.value = a, Aa.value += 1;
1274
+ function pa(t) {
1275
+ qe.value = t, Ct.value += 1;
1262
1276
  }
1263
- function pt() {
1277
+ function ya() {
1264
1278
  if (!l.value.responsiveProportionalSizing) {
1265
- y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize, we.value.plot = l.value.plot.radius, we.value.line = l.value.line.radius;
1279
+ y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize, Le.value.plot = l.value.plot.radius, Le.value.line = l.value.line.radius;
1266
1280
  return;
1267
1281
  }
1268
1282
  y.value.dataLabels = dl({
@@ -1272,44 +1286,44 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1272
1286
  threshold: 10,
1273
1287
  fallback: 10
1274
1288
  }), y.value.yAxis = dl({
1275
- relator: j.value,
1289
+ relator: ee.value,
1276
1290
  adjuster: 1e3,
1277
1291
  source: l.value.chart.grid.labels.axis.fontSize,
1278
1292
  threshold: 10,
1279
1293
  fallback: 10
1280
1294
  }), y.value.xAxis = dl({
1281
- relator: j.value,
1295
+ relator: ee.value,
1282
1296
  adjuster: 1e3,
1283
1297
  source: l.value.chart.grid.labels.xAxisLabels.fontSize,
1284
1298
  threshold: 10,
1285
1299
  fallback: 10
1286
1300
  }), y.value.plotLabels = dl({
1287
- relator: j.value,
1301
+ relator: ee.value,
1288
1302
  adjuster: 800,
1289
1303
  source: l.value.chart.labels.fontSize,
1290
1304
  threshold: 10,
1291
1305
  fallback: 10
1292
- }), we.value.plot = dl({
1293
- relator: j.value,
1306
+ }), Le.value.plot = dl({
1307
+ relator: ee.value,
1294
1308
  adjuster: 800,
1295
1309
  source: l.value.plot.radius,
1296
1310
  threshold: 1,
1297
1311
  fallback: 1
1298
- }), we.value.line = dl({
1299
- relator: j.value,
1312
+ }), Le.value.line = dl({
1313
+ relator: ee.value,
1300
1314
  adjuster: 800,
1301
1315
  source: l.value.line.radius,
1302
1316
  threshold: 1,
1303
1317
  fallback: 1
1304
1318
  });
1305
1319
  }
1306
- function xa() {
1307
- Ht(g.dataset) ? (_a({
1320
+ function pt() {
1321
+ Da(g.dataset) ? (wt({
1308
1322
  componentName: "VueUiXy",
1309
1323
  type: "dataset",
1310
1324
  debug: yl.value
1311
1325
  }), Ol.value = !0) : g.dataset.forEach((s, e) => {
1312
- [null, void 0].includes(s.name) && (_a({
1326
+ [null, void 0].includes(s.name) && (wt({
1313
1327
  componentName: "VueUiXy",
1314
1328
  type: "datasetSerieAttribute",
1315
1329
  property: "name (string)",
@@ -1318,154 +1332,154 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1318
1332
  }), Ol.value = !0);
1319
1333
  }), yl.value && g.dataset.forEach((s) => {
1320
1334
  s.series.forEach((e, u) => {
1321
- ql(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1335
+ Zl(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1322
1336
  -----> The serie '${s.name}' contains the value '${e}' at index ${u}.
1323
1337
  '${e}' was converted to null to allow the chart to display.`);
1324
1338
  });
1325
- }), Ht(g.dataset) || (Ol.value = l.value.loading), za.value = l.value.chart.userOptions.showOnChartHover, ua.value = l.value.chart.userOptions.keepStateOnChartLeave, zl.value = !l.value.chart.userOptions.showOnChartHover, ca();
1326
- const a = 12;
1339
+ }), Da(g.dataset) || (Ol.value = l.value.loading), It.value = l.value.chart.userOptions.showOnChartHover, it.value = l.value.chart.userOptions.keepStateOnChartLeave, zl.value = !l.value.chart.userOptions.showOnChartHover, vt();
1340
+ const t = 12;
1327
1341
  if (l.value.responsive) {
1328
- const e = Te.value.parentNode;
1329
- Re.value && (Re.value.unobserve(oa.value), Re.value.disconnect());
1330
- const { height: u, width: t } = e.getBoundingClientRect();
1342
+ const e = Ie.value.parentNode;
1343
+ He.value && (He.value.unobserve(st.value), He.value.disconnect());
1344
+ const { height: u, width: a } = e.getBoundingClientRect();
1331
1345
  let i = null, o = 0;
1332
1346
  l.value.chart.title.show && fl.value && (i = fl.value, o = i.getBoundingClientRect().height);
1333
1347
  let A = null, C = 0;
1334
- l.value.chart.zoom.show && Ie.value > 6 && ra.value && ze.value && ze.value.$el && (A = ze.value.$el, C = A.getBoundingClientRect().height);
1348
+ l.value.chart.zoom.show && Ne.value > 6 && ct.value && Oe.value && Oe.value.$el && (A = Oe.value.$el, C = A.getBoundingClientRect().height);
1335
1349
  let O = null, S = 0;
1336
1350
  l.value.chart.legend.show && sl.value && (O = sl.value, S = O.getBoundingClientRect().height);
1337
1351
  let T = 0;
1338
1352
  gl.value && (T = gl.value.getBoundingClientRect().height);
1339
- let Y = 0;
1340
- ml.value && (Y = ml.value.getBoundingClientRect().height), ve.value = u - o - S - C - T - Y - a, j.value = t, Tl.value = `0 0 ${j.value < 0 ? 10 : j.value} ${ve.value < 0 ? 10 : ve.value}`, pt();
1353
+ let W = 0;
1354
+ ml.value && (W = ml.value.getBoundingClientRect().height), ve.value = u - o - S - C - T - W - t, ee.value = a, Tl.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${ve.value < 0 ? 10 : ve.value}`, ya();
1341
1355
  const k = new ResizeObserver((F) => {
1342
1356
  for (const z of F)
1343
- l.value.chart.title.show && fl.value ? o = fl.value.getBoundingClientRect().height : o = 0, ze.value && ze.value.$el ? C = ze.value.$el.getBoundingClientRect().height : C = 0, sl.value ? S = sl.value.getBoundingClientRect().height : S = 0, gl.value ? T = gl.value.getBoundingClientRect().height : T = 0, ml.value ? Y = ml.value.getBoundingClientRect().height : Y = 0, requestAnimationFrame(() => {
1344
- ve.value = z.contentRect.height - o - S - C - T - Y - a, j.value = z.contentBoxSize[0].inlineSize, Tl.value = `0 0 ${j.value < 0 ? 10 : j.value} ${ve.value < 0 ? 10 : ve.value}`, pt();
1357
+ l.value.chart.title.show && fl.value ? o = fl.value.getBoundingClientRect().height : o = 0, Oe.value && Oe.value.$el ? C = Oe.value.$el.getBoundingClientRect().height : C = 0, sl.value ? S = sl.value.getBoundingClientRect().height : S = 0, gl.value ? T = gl.value.getBoundingClientRect().height : T = 0, ml.value ? W = ml.value.getBoundingClientRect().height : W = 0, requestAnimationFrame(() => {
1358
+ ve.value = z.contentRect.height - o - S - C - T - W - t, ee.value = z.contentBoxSize[0].inlineSize, Tl.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${ve.value < 0 ? 10 : ve.value}`, ya();
1345
1359
  });
1346
1360
  });
1347
- Re.value = k, oa.value = e, k.observe(e);
1361
+ He.value = k, st.value = e, k.observe(e);
1348
1362
  } else
1349
- ve.value = l.value.chart.height, j.value = l.value.chart.width, y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize, we.value.plot = l.value.plot.radius, we.value.line = l.value.line.radius, Tl.value = `0 0 ${j.value} ${ve.value}`;
1363
+ ve.value = l.value.chart.height, ee.value = l.value.chart.width, y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize, Le.value.plot = l.value.plot.radius, Le.value.line = l.value.line.radius, Tl.value = `0 0 ${ee.value} ${ve.value}`;
1350
1364
  }
1351
- function yt(a) {
1352
- eo.value = {
1353
- x: a.clientX,
1354
- y: a.clientY
1365
+ function ka(t) {
1366
+ lo.value = {
1367
+ x: t.clientX,
1368
+ y: t.clientY
1355
1369
  };
1356
1370
  }
1357
- Ul(() => {
1358
- xa(), Rl(), document.addEventListener("mousemove", yt, { passive: !0 }), document.addEventListener("scroll", Ya, { passive: !0 });
1359
- }), ya(() => {
1360
- document.removeEventListener("scroll", Ya, { passive: !0 }), document.removeEventListener("mousemove", yt, { passive: !0 }), Re.value && (Re.value.unobserve(oa.value), Re.value.disconnect(), Re.value = null);
1361
- }), gs({
1371
+ ql(() => {
1372
+ pt(), Rl(), document.addEventListener("mousemove", ka, { passive: !0 }), document.addEventListener("scroll", Wt, { passive: !0 });
1373
+ }), kt(() => {
1374
+ document.removeEventListener("scroll", Wt, { passive: !0 }), document.removeEventListener("mousemove", ka, { passive: !0 }), He.value && (He.value.unobserve(st.value), He.value.disconnect(), He.value = null);
1375
+ }), xs({
1362
1376
  timeLabelsEls: ul,
1363
1377
  timeLabels: de,
1364
1378
  slicer: m,
1365
1379
  configRef: l,
1366
1380
  rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
1367
1381
  autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate", "enable"],
1368
- isAutoSize: so,
1382
+ isAutoSize: uo,
1369
1383
  height: ve,
1370
- width: j,
1384
+ width: ee,
1371
1385
  rotation: l.value.chart.grid.labels.xAxisLabels.autoRotate.angle
1372
1386
  });
1373
- const Gl = x(!1), kt = x(null), _t = x(200), zo = b(
1387
+ const Ul = x(!1), _a = x(null), wa = x(200), No = b(
1374
1388
  () => _.value ?? V.value ?? 0
1375
1389
  );
1376
- function Io() {
1377
- const a = Math.ceil(_t.value || 200);
1378
- return Math.min(Math.max(a, 1), 200);
1390
+ function Vo() {
1391
+ const t = Math.ceil(wa.value || 200);
1392
+ return Math.min(Math.max(t, 1), 200);
1379
1393
  }
1380
- function Oo() {
1381
- const a = Io(), s = 200, e = Math.max(1, L.value), u = c.value.width / e, i = c.value.left + zo.value * u + u / 2 - a / 2 - (s - a) / 2, o = c.value.left - (s - a) / 2, A = c.value.right - (s + a) / 2, C = Math.max(o, Math.min(i, A));
1394
+ function Po() {
1395
+ const t = Vo(), s = 200, e = Math.max(1, L.value), u = c.value.width / e, i = c.value.left + No.value * u + u / 2 - t / 2 - (s - t) / 2, o = c.value.left - (s - t) / 2, A = c.value.right - (s + t) / 2, C = Math.max(o, Math.min(i, A));
1382
1396
  return P(C);
1383
1397
  }
1384
- Ul(() => {
1385
- let a = null, s = null;
1398
+ ql(() => {
1399
+ let t = null, s = null;
1386
1400
  const e = (i) => {
1387
1401
  cancelAnimationFrame(s), s = requestAnimationFrame(() => {
1388
- _t.value = Math.min(Math.max(Math.ceil(i || 0), 1), 200);
1402
+ wa.value = Math.min(Math.max(Math.ceil(i || 0), 1), 200);
1389
1403
  });
1390
1404
  }, u = new ResizeObserver((i) => {
1391
- let o = i.find((A) => A.target === a) || i[0];
1405
+ let o = i.find((A) => A.target === t) || i[0];
1392
1406
  o && e(o.contentRect.width || 200);
1393
- }), t = Lt((i) => {
1394
- const o = kt.value;
1395
- a && a !== o && (u.unobserve(a), a = null), o && o !== a && (Mt(() => {
1407
+ }), a = Ma((i) => {
1408
+ const o = _a.value;
1409
+ t && t !== o && (u.unobserve(t), t = null), o && o !== t && (Aa(() => {
1396
1410
  o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
1397
- }), u.observe(o), a = o), i(() => {
1398
- a && (u.unobserve(a), a = null);
1411
+ }), u.observe(o), t = o), i(() => {
1412
+ t && (u.unobserve(t), t = null);
1399
1413
  });
1400
1414
  });
1401
- ya(() => {
1415
+ kt(() => {
1402
1416
  try {
1403
- a && u.unobserve(a), u.disconnect(), t();
1417
+ t && u.unobserve(t), u.disconnect(), a();
1404
1418
  } catch {
1405
1419
  }
1406
1420
  });
1407
1421
  });
1408
- const No = b(() => {
1422
+ const Fo = b(() => {
1409
1423
  if ([null, void 0].includes(_.value) && [null, void 0].includes(V.value)) return "";
1410
- const a = (_.value != null ? _.value : 0) || (V.value != null ? V.value : 0), s = l.value.chart.timeTag.customFormat;
1411
- if (Gl.value = !1, Rt(s))
1424
+ const t = (_.value != null ? _.value : 0) || (V.value != null ? V.value : 0), s = l.value.chart.timeTag.customFormat;
1425
+ if (Ul.value = !1, Ba(s))
1412
1426
  try {
1413
1427
  const e = s({
1414
- absoluteIndex: a + m.value.start,
1415
- seriesIndex: a,
1428
+ absoluteIndex: t + m.value.start,
1429
+ seriesIndex: t,
1416
1430
  datapoint: je.value,
1417
- bars: Me.value,
1418
- lines: te.value,
1419
- plots: be.value,
1431
+ bars: Ce.value,
1432
+ lines: ae.value,
1433
+ plots: xe.value,
1420
1434
  config: l.value
1421
1435
  });
1422
1436
  if (typeof e == "string")
1423
- return Gl.value = !0, e;
1437
+ return Ul.value = !0, e;
1424
1438
  } catch {
1425
- console.warn("Custom format cannot be applied on timeTag."), Gl.value = !1;
1439
+ console.warn("Custom format cannot be applied on timeTag."), Ul.value = !1;
1426
1440
  }
1427
- if (!Gl.value)
1428
- return [null, void 0].includes(de.value[a]) ? "" : l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.timeTag.useDefaultFormat ? rl.value(a + m.value.start, l.value.chart.timeTag.timeFormat) : de.value[a].text;
1441
+ if (!Ul.value)
1442
+ return [null, void 0].includes(de.value[t]) ? "" : l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.timeTag.useDefaultFormat ? rl.value(t + m.value.start, l.value.chart.timeTag.timeFormat) : de.value[t].text;
1429
1443
  });
1430
- Al(() => g.dataset, (a) => {
1431
- Array.isArray(a) && a.length > 0 && (Ol.value = !1), Ie.value = Math.max(...ge.value.map((s) => Be(s.series).length)), m.value = {
1444
+ Al(() => g.dataset, (t) => {
1445
+ Array.isArray(t) && t.length > 0 && (Ol.value = !1), Ne.value = Math.max(...ge.value.map((s) => De(s.series).length)), m.value = {
1432
1446
  start: 0,
1433
- end: Ie.value
1434
- }, jt.value += 1, sa.value += 1, nl();
1435
- }, { deep: !0 }), Al(() => g.config, (a) => {
1436
- ie.value || (l.value = na()), xa(), Ta.value += 1, Ca.value += 1, ca(), nl();
1447
+ end: Ne.value
1448
+ }, eo.value += 1, ut.value += 1, nl();
1449
+ }, { deep: !0 }), Al(() => g.config, (t) => {
1450
+ ie.value || (l.value = rt()), pt(), zt.value += 1, Tt.value += 1, vt(), nl();
1437
1451
  }, { deep: !0 });
1438
- const pa = x(!1);
1439
- function wt() {
1440
- const a = Te.value?.parentNode;
1441
- if (!a) {
1442
- pa.value = !1;
1452
+ const yt = x(!1);
1453
+ function Sa() {
1454
+ const t = Ie.value?.parentNode;
1455
+ if (!t) {
1456
+ yt.value = !1;
1443
1457
  return;
1444
1458
  }
1445
- const s = a.getBoundingClientRect();
1446
- pa.value = s.width > 2 && s.height > 2;
1459
+ const s = t.getBoundingClientRect();
1460
+ yt.value = s.width > 2 && s.height > 2;
1447
1461
  }
1448
- Ul(() => {
1449
- wt();
1450
- const a = new ResizeObserver(() => {
1451
- wt(), pa.value && (xa(), nl(), Rl());
1462
+ ql(() => {
1463
+ Sa();
1464
+ const t = new ResizeObserver(() => {
1465
+ Sa(), yt.value && (pt(), nl(), Rl());
1452
1466
  });
1453
- Te.value?.parentNode && a.observe(Te.value.parentNode);
1467
+ Ie.value?.parentNode && t.observe(Ie.value.parentNode);
1454
1468
  }), Al(l, () => {
1455
- ca();
1469
+ vt();
1456
1470
  }, { immediate: !0 });
1457
1471
  const $l = b(() => {
1458
- const a = l.value.table.useDialog && !l.value.showTable, s = f.value.showTable;
1472
+ const t = l.value.table.useDialog && !l.value.showTable, s = f.value.showTable;
1459
1473
  return {
1460
- component: a ? Jt : ys,
1474
+ component: t ? Ka : ws,
1461
1475
  title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? `: ${l.value.chart.title.subtitle.text}` : ""}`,
1462
- props: a ? {
1476
+ props: t ? {
1463
1477
  backgroundColor: l.value.table.th.backgroundColor,
1464
1478
  color: l.value.table.th.color,
1465
1479
  headerColor: l.value.table.th.color,
1466
1480
  headerBg: l.value.table.th.backgroundColor,
1467
1481
  isFullscreen: qe.value,
1468
- fullscreenParent: Te.value,
1482
+ fullscreenParent: Ie.value,
1469
1483
  forcedWidth: Math.min(800, window.innerWidth * 0.8)
1470
1484
  } : {
1471
1485
  hideDetails: !0,
@@ -1484,62 +1498,84 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1484
1498
  }
1485
1499
  };
1486
1500
  });
1487
- Al(() => f.value.showTable, (a) => {
1488
- l.value.showTable || (a && l.value.table.useDialog && il.value ? il.value.open() : il.value && il.value.close && il.value.close());
1501
+ Al(() => f.value.showTable, (t) => {
1502
+ l.value.showTable || (t && l.value.table.useDialog && il.value ? il.value.open() : il.value && il.value.close && il.value.close());
1489
1503
  });
1490
- function St() {
1491
- f.value.showTable = !1, ta.value && ta.value.setTableIconState(!1);
1504
+ function $a() {
1505
+ f.value.showTable = !1, ot.value && ot.value.setTableIconState(!1);
1492
1506
  }
1493
- const Vo = b(() => Le.value.map((a) => ({
1494
- shape: a.type === "bar" ? "square" : a.shape ?? "circle",
1495
- color: a.color,
1496
- name: a.name
1497
- }))), Po = b(() => l.value.chart.backgroundColor), Fo = b(() => l.value.chart.legend), Ro = b(() => l.value.chart.title), { exportSvg: Bo, getSvg: Ho } = fs({
1507
+ const Ro = b(() => me.value.map((t) => ({
1508
+ shape: t.type === "bar" ? "square" : t.shape ?? "circle",
1509
+ color: t.color,
1510
+ name: t.name
1511
+ }))), Bo = b(() => l.value.chart.backgroundColor), Ho = b(() => l.value.chart.legend), Do = b(() => l.value.chart.title), { exportSvg: Eo, getSvg: Yo } = bs({
1498
1512
  svg: ue,
1499
- title: Ro,
1500
- legend: Fo,
1501
- legendItems: Vo,
1502
- backgroundColor: Po
1513
+ title: Do,
1514
+ legend: Ho,
1515
+ legendItems: Ro,
1516
+ backgroundColor: Bo
1503
1517
  });
1504
- async function $t({ isCb: a }) {
1505
- if (a) {
1506
- const { blob: s, url: e, text: u, dataUrl: t } = await Ho();
1507
- l.value.chart.userOptions.callbacks.svg({ blob: s, url: e, text: u, dataUrl: t });
1518
+ async function La({ isCb: t }) {
1519
+ if (t) {
1520
+ const { blob: s, url: e, text: u, dataUrl: a } = await Yo();
1521
+ l.value.chart.userOptions.callbacks.svg({ blob: s, url: e, text: u, dataUrl: a });
1508
1522
  } else
1509
- Bo();
1523
+ Eo();
1510
1524
  }
1511
- return Et({
1512
- getData: yo,
1513
- getImage: ko,
1514
- generatePdf: Ba,
1515
- generateImage: Ha,
1516
- generateSvg: $t,
1517
- generateCsv: ba,
1518
- toggleStack: Ua,
1519
- toggleTable: gt,
1520
- toggleLabels: mt,
1521
- toggleTooltip: bt,
1522
- toggleAnnotator: ha,
1523
- toggleFullscreen: xt
1524
- }), (a, s) => (n(), r("div", {
1525
- id: `vue-ui-xy_${D.value}`,
1525
+ return Ya({
1526
+ getData: ko,
1527
+ getImage: _o,
1528
+ generatePdf: Ht,
1529
+ generateImage: Dt,
1530
+ generateSvg: La,
1531
+ generateCsv: xt,
1532
+ hideSeries: So,
1533
+ showSeries: wo,
1534
+ toggleStack: qt,
1535
+ toggleTable: ma,
1536
+ toggleLabels: ba,
1537
+ toggleTooltip: xa,
1538
+ toggleAnnotator: ft,
1539
+ toggleFullscreen: pa
1540
+ }), (t, s) => (n(), r("div", {
1541
+ id: `vue-ui-xy_${E.value}`,
1526
1542
  class: ll(`vue-data-ui-component vue-ui-xy ${qe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1527
1543
  ref_key: "chart",
1528
- ref: Te,
1544
+ ref: Ie,
1529
1545
  style: $(`background:${l.value.chart.backgroundColor}; color:${l.value.chart.color};width:100%;font-family:${l.value.chart.fontFamily};${l.value.responsive ? "height: 100%" : ""}`),
1530
- onMouseenter: s[6] || (s[6] = () => Xa(!0)),
1531
- onMouseleave: s[7] || (s[7] = () => Xa(!1)),
1532
- onClick: at
1546
+ onMouseenter: s[6] || (s[6] = () => Gt(!0)),
1547
+ onMouseleave: s[7] || (s[7] = () => Gt(!1)),
1548
+ onClick: aa
1533
1549
  }, [
1534
- l.value.chart.userOptions.buttons.annotator && ue.value ? (n(), Ae(v(Zt), {
1550
+ l.value.chart.userOptions.buttons.annotator && ue.value ? (n(), Te(v(Ja), {
1535
1551
  key: 0,
1536
1552
  svgRef: ue.value,
1537
1553
  backgroundColor: l.value.chart.backgroundColor,
1538
1554
  color: l.value.chart.color,
1539
1555
  active: xl.value,
1540
- onClose: ha
1541
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
1542
- wo.value ? (n(), r("div", {
1556
+ onClose: ft
1557
+ }, {
1558
+ "annotator-action-close": G(() => [
1559
+ B(t.$slots, "annotator-action-close", {}, void 0, !0)
1560
+ ]),
1561
+ "annotator-action-color": G(({ color: e }) => [
1562
+ B(t.$slots, "annotator-action-color", ke(_e({ color: e })), void 0, !0)
1563
+ ]),
1564
+ "annotator-action-draw": G(({ mode: e }) => [
1565
+ B(t.$slots, "annotator-action-draw", ke(_e({ mode: e })), void 0, !0)
1566
+ ]),
1567
+ "annotator-action-undo": G(({ disabled: e }) => [
1568
+ B(t.$slots, "annotator-action-undo", ke(_e({ disabled: e })), void 0, !0)
1569
+ ]),
1570
+ "annotator-action-redo": G(({ disabled: e }) => [
1571
+ B(t.$slots, "annotator-action-redo", ke(_e({ disabled: e })), void 0, !0)
1572
+ ]),
1573
+ "annotator-action-delete": G(({ disabled: e }) => [
1574
+ B(t.$slots, "annotator-action-delete", ke(_e({ disabled: e })), void 0, !0)
1575
+ ]),
1576
+ _: 3
1577
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
1578
+ Lo.value ? (n(), r("div", {
1543
1579
  key: 1,
1544
1580
  ref_key: "noTitle",
1545
1581
  ref: ml,
@@ -1553,8 +1589,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1553
1589
  class: "vue-ui-xy-title",
1554
1590
  style: $(`font-family:${l.value.chart.fontFamily}`)
1555
1591
  }, [
1556
- (n(), Ae(bs, {
1557
- key: `title_${Ta.value}`,
1592
+ (n(), Te(ys, {
1593
+ key: `title_${zt.value}`,
1558
1594
  config: {
1559
1595
  title: {
1560
1596
  cy: "xy-div-title",
@@ -1568,17 +1604,17 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1568
1604
  }, null, 8, ["config"]))
1569
1605
  ], 4)) : h("", !0),
1570
1606
  p("div", {
1571
- id: `legend-top-${D.value}`
1572
- }, null, 8, ws),
1573
- l.value.chart.userOptions.show && (ua.value || zl.value) ? (n(), Ae(v(Gt), {
1607
+ id: `legend-top-${E.value}`
1608
+ }, null, 8, Ls),
1609
+ l.value.chart.userOptions.show && (it.value || zl.value) ? (n(), Te(v(Ua), {
1574
1610
  ref_key: "userOptionsRef",
1575
- ref: ta,
1576
- key: `user_options_${Aa.value}`,
1611
+ ref: ot,
1612
+ key: `user_options_${Ct.value}`,
1577
1613
  backgroundColor: l.value.chart.backgroundColor,
1578
1614
  color: l.value.chart.color,
1579
- isPrinting: v(va),
1580
- isImaging: v(Ra),
1581
- uid: D.value,
1615
+ isPrinting: v(dt),
1616
+ isImaging: v(Bt),
1617
+ uid: E.value,
1582
1618
  hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
1583
1619
  hasPdf: l.value.chart.userOptions.buttons.pdf,
1584
1620
  hasXls: l.value.chart.userOptions.buttons.csv,
@@ -1586,11 +1622,11 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1586
1622
  hasSvg: l.value.chart.userOptions.buttons.svg,
1587
1623
  hasLabel: l.value.chart.userOptions.buttons.labels,
1588
1624
  hasTable: l.value.chart.userOptions.buttons.table,
1589
- hasStack: Ql.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
1625
+ hasStack: jl.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
1590
1626
  hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
1591
1627
  isStacked: f.value.isStacked,
1592
1628
  isFullscreen: qe.value,
1593
- chartElement: a.$refs.chart,
1629
+ chartElement: t.$refs.chart,
1594
1630
  position: l.value.chart.userOptions.position,
1595
1631
  isTooltip: f.value.showTooltip,
1596
1632
  titles: { ...l.value.chart.userOptions.buttonTitles },
@@ -1599,94 +1635,94 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1599
1635
  callbacks: l.value.chart.userOptions.callbacks,
1600
1636
  tableDialog: l.value.table.useDialog,
1601
1637
  printScale: l.value.chart.userOptions.print.scale,
1602
- onToggleFullscreen: xt,
1603
- onGeneratePdf: v(Ba),
1604
- onGenerateCsv: ba,
1605
- onGenerateImage: v(Ha),
1606
- onGenerateSvg: $t,
1607
- onToggleTable: gt,
1608
- onToggleLabels: mt,
1609
- onToggleStack: Ua,
1610
- onToggleTooltip: bt,
1611
- onToggleAnnotator: ha,
1638
+ onToggleFullscreen: pa,
1639
+ onGeneratePdf: v(Ht),
1640
+ onGenerateCsv: xt,
1641
+ onGenerateImage: v(Dt),
1642
+ onGenerateSvg: La,
1643
+ onToggleTable: ma,
1644
+ onToggleLabels: ba,
1645
+ onToggleStack: qt,
1646
+ onToggleTooltip: xa,
1647
+ onToggleAnnotator: ft,
1612
1648
  style: $({
1613
- visibility: ua.value ? zl.value ? "visible" : "hidden" : "visible"
1649
+ visibility: it.value ? zl.value ? "visible" : "hidden" : "visible"
1614
1650
  })
1615
- }, At({ _: 2 }, [
1616
- a.$slots.menuIcon ? {
1651
+ }, Ca({ _: 2 }, [
1652
+ t.$slots.menuIcon ? {
1617
1653
  name: "menuIcon",
1618
- fn: Q(({ isOpen: e, color: u }) => [
1619
- W(a.$slots, "menuIcon", We(Xe({ isOpen: e, color: u })), void 0, !0)
1654
+ fn: G(({ isOpen: e, color: u }) => [
1655
+ B(t.$slots, "menuIcon", ke(_e({ isOpen: e, color: u })), void 0, !0)
1620
1656
  ]),
1621
1657
  key: "0"
1622
1658
  } : void 0,
1623
- a.$slots.optionTooltip ? {
1659
+ t.$slots.optionTooltip ? {
1624
1660
  name: "optionTooltip",
1625
- fn: Q(() => [
1626
- W(a.$slots, "optionTooltip", {}, void 0, !0)
1661
+ fn: G(() => [
1662
+ B(t.$slots, "optionTooltip", {}, void 0, !0)
1627
1663
  ]),
1628
1664
  key: "1"
1629
1665
  } : void 0,
1630
- a.$slots.optionPdf ? {
1666
+ t.$slots.optionPdf ? {
1631
1667
  name: "optionPdf",
1632
- fn: Q(() => [
1633
- W(a.$slots, "optionPdf", {}, void 0, !0)
1668
+ fn: G(() => [
1669
+ B(t.$slots, "optionPdf", {}, void 0, !0)
1634
1670
  ]),
1635
1671
  key: "2"
1636
1672
  } : void 0,
1637
- a.$slots.optionCsv ? {
1673
+ t.$slots.optionCsv ? {
1638
1674
  name: "optionCsv",
1639
- fn: Q(() => [
1640
- W(a.$slots, "optionCsv", {}, void 0, !0)
1675
+ fn: G(() => [
1676
+ B(t.$slots, "optionCsv", {}, void 0, !0)
1641
1677
  ]),
1642
1678
  key: "3"
1643
1679
  } : void 0,
1644
- a.$slots.optionImg ? {
1680
+ t.$slots.optionImg ? {
1645
1681
  name: "optionImg",
1646
- fn: Q(() => [
1647
- W(a.$slots, "optionImg", {}, void 0, !0)
1682
+ fn: G(() => [
1683
+ B(t.$slots, "optionImg", {}, void 0, !0)
1648
1684
  ]),
1649
1685
  key: "4"
1650
1686
  } : void 0,
1651
- a.$slots.optionSvg ? {
1687
+ t.$slots.optionSvg ? {
1652
1688
  name: "optionSvg",
1653
- fn: Q(() => [
1654
- W(a.$slots, "optionSvg", {}, void 0, !0)
1689
+ fn: G(() => [
1690
+ B(t.$slots, "optionSvg", {}, void 0, !0)
1655
1691
  ]),
1656
1692
  key: "5"
1657
1693
  } : void 0,
1658
- a.$slots.optionTable ? {
1694
+ t.$slots.optionTable ? {
1659
1695
  name: "optionTable",
1660
- fn: Q(() => [
1661
- W(a.$slots, "optionTable", {}, void 0, !0)
1696
+ fn: G(() => [
1697
+ B(t.$slots, "optionTable", {}, void 0, !0)
1662
1698
  ]),
1663
1699
  key: "6"
1664
1700
  } : void 0,
1665
- a.$slots.optionLabels ? {
1701
+ t.$slots.optionLabels ? {
1666
1702
  name: "optionLabels",
1667
- fn: Q(() => [
1668
- W(a.$slots, "optionLabels", {}, void 0, !0)
1703
+ fn: G(() => [
1704
+ B(t.$slots, "optionLabels", {}, void 0, !0)
1669
1705
  ]),
1670
1706
  key: "7"
1671
1707
  } : void 0,
1672
- a.$slots.optionStack ? {
1708
+ t.$slots.optionStack ? {
1673
1709
  name: "optionStack",
1674
- fn: Q(({ isStack: e }) => [
1675
- W(a.$slots, "optionStack", We(Xe({ isStack: e })), void 0, !0)
1710
+ fn: G(({ isStack: e }) => [
1711
+ B(t.$slots, "optionStack", ke(_e({ isStack: e })), void 0, !0)
1676
1712
  ]),
1677
1713
  key: "8"
1678
1714
  } : void 0,
1679
- a.$slots.optionFullscreen ? {
1715
+ t.$slots.optionFullscreen ? {
1680
1716
  name: "optionFullscreen",
1681
- fn: Q(({ toggleFullscreen: e, isFullscreen: u }) => [
1682
- W(a.$slots, "optionFullscreen", We(Xe({ toggleFullscreen: e, isFullscreen: u })), void 0, !0)
1717
+ fn: G(({ toggleFullscreen: e, isFullscreen: u }) => [
1718
+ B(t.$slots, "optionFullscreen", ke(_e({ toggleFullscreen: e, isFullscreen: u })), void 0, !0)
1683
1719
  ]),
1684
1720
  key: "9"
1685
1721
  } : void 0,
1686
- a.$slots.optionAnnotator ? {
1722
+ t.$slots.optionAnnotator ? {
1687
1723
  name: "optionAnnotator",
1688
- fn: Q(({ toggleAnnotator: e, isAnnotator: u }) => [
1689
- W(a.$slots, "optionAnnotator", We(Xe({ toggleAnnotator: e, isAnnotator: u })), void 0, !0)
1724
+ fn: G(({ toggleAnnotator: e, isAnnotator: u }) => [
1725
+ B(t.$slots, "optionAnnotator", ke(_e({ toggleAnnotator: e, isAnnotator: u })), void 0, !0)
1690
1726
  ]),
1691
1727
  key: "10"
1692
1728
  } : void 0
@@ -1703,23 +1739,23 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1703
1739
  color: l.value.chart.color,
1704
1740
  fontFamily: l.value.chart.fontFamily
1705
1741
  }),
1706
- "aria-label": _o.value,
1742
+ "aria-label": $o.value,
1707
1743
  role: "img",
1708
1744
  "aria-live": "polite",
1709
1745
  preserveAspectRatio: "xMidYMid",
1710
- onMousemove: po,
1746
+ onMousemove: yo,
1711
1747
  onMouseleave: Dl,
1712
- onClick: at
1748
+ onClick: aa
1713
1749
  }, [
1714
1750
  p("g", {
1715
1751
  ref_key: "G",
1716
- ref: Qt,
1752
+ ref: ja,
1717
1753
  class: "vue-data-ui-g"
1718
1754
  }, [
1719
- vl(v(qt)),
1720
- a.$slots["chart-background"] ? (n(), r("foreignObject", {
1755
+ vl(v(Za)),
1756
+ t.$slots["chart-background"] ? (n(), r("foreignObject", {
1721
1757
  key: 0,
1722
- x: c.value.left + G.value < 0 ? 0 : c.value.left + G.value,
1758
+ x: c.value.left + U.value < 0 ? 0 : c.value.left + U.value,
1723
1759
  y: c.value.top,
1724
1760
  width: c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value) < 0 ? 0 : c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value),
1725
1761
  height: c.value.height < 0 ? 0 : c.value.height,
@@ -1727,135 +1763,135 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1727
1763
  pointerEvents: "none"
1728
1764
  }
1729
1765
  }, [
1730
- W(a.$slots, "chart-background", {}, void 0, !0)
1731
- ], 8, $s)) : h("", !0),
1732
- L.value > 0 ? (n(), r("g", Ls, [
1733
- p("g", Ms, [
1766
+ B(t.$slots, "chart-background", {}, void 0, !0)
1767
+ ], 8, As)) : h("", !0),
1768
+ L.value > 0 ? (n(), r("g", Cs, [
1769
+ p("g", Ts, [
1734
1770
  l.value.chart.grid.labels.xAxis.showBaseline ? (n(), r("line", {
1735
1771
  key: 0,
1736
1772
  stroke: l.value.chart.grid.stroke,
1737
1773
  "stroke-width": "1",
1738
- x1: c.value.left + G.value,
1739
- x2: c.value.right - G.value,
1740
- y1: v(E)(c.value.bottom),
1741
- y2: v(E)(c.value.bottom),
1774
+ x1: c.value.left + U.value,
1775
+ x2: c.value.right - U.value,
1776
+ y1: v(Y)(c.value.bottom),
1777
+ y2: v(Y)(c.value.bottom),
1742
1778
  "stroke-linecap": "round",
1743
1779
  style: { animation: "none !important" }
1744
- }, null, 8, As)) : h("", !0),
1780
+ }, null, 8, zs)) : h("", !0),
1745
1781
  f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (n(!0), r(d, { key: 2 }, w(Sl.value, (e) => (n(), r("g", null, [
1746
1782
  e.id === I.value && e.yLabels.length ? (n(!0), r(d, { key: 0 }, w(e.yLabels, (u) => (n(), r("line", {
1747
- x1: c.value.left + G.value,
1748
- x2: c.value.right - G.value,
1749
- y1: v(E)(u.y),
1750
- y2: v(E)(u.y),
1783
+ x1: c.value.left + U.value,
1784
+ x2: c.value.right - U.value,
1785
+ y1: v(Y)(u.y),
1786
+ y2: v(Y)(u.y),
1751
1787
  stroke: e.color,
1752
1788
  "stroke-width": 0.5,
1753
1789
  "stroke-linecap": "round",
1754
1790
  style: { animation: "none !important" }
1755
- }, null, 8, Is))), 256)) : e.yLabels.length ? (n(!0), r(d, { key: 1 }, w(e.yLabels, (u) => (n(), r("line", {
1756
- x1: c.value.left + G.value,
1757
- x2: c.value.right - G.value,
1758
- y1: v(E)(u.y),
1759
- y2: v(E)(u.y),
1791
+ }, null, 8, Vs))), 256)) : e.yLabels.length ? (n(!0), r(d, { key: 1 }, w(e.yLabels, (u) => (n(), r("line", {
1792
+ x1: c.value.left + U.value,
1793
+ x2: c.value.right - U.value,
1794
+ y1: v(Y)(u.y),
1795
+ y2: v(Y)(u.y),
1760
1796
  stroke: l.value.chart.grid.stroke,
1761
1797
  "stroke-width": 0.5,
1762
1798
  "stroke-linecap": "round",
1763
1799
  style: { animation: "none !important" }
1764
- }, null, 8, Os))), 256)) : h("", !0)
1800
+ }, null, 8, Ps))), 256)) : h("", !0)
1765
1801
  ]))), 256)) : h("", !0) : (n(), r(d, { key: 1 }, [
1766
1802
  l.value.chart.grid.labels.yAxis.showBaseline ? (n(), r("line", {
1767
1803
  key: 0,
1768
1804
  stroke: l.value.chart.grid.stroke,
1769
1805
  "stroke-width": "1",
1770
- x1: c.value.left + G.value,
1771
- x2: c.value.left + G.value,
1772
- y1: v(E)(c.value.top),
1773
- y2: v(E)(c.value.bottom),
1806
+ x1: c.value.left + U.value,
1807
+ x2: c.value.left + U.value,
1808
+ y1: v(Y)(c.value.top),
1809
+ y2: v(Y)(c.value.bottom),
1774
1810
  "stroke-linecap": "round",
1775
1811
  style: { animation: "none !important" }
1776
- }, null, 8, Cs)) : h("", !0),
1777
- l.value.chart.grid.showHorizontalLines ? (n(), r("g", Ts, [
1778
- (n(!0), r(d, null, w(it.value, (e) => (n(), r("line", {
1779
- x1: c.value.left + G.value,
1812
+ }, null, 8, Is)) : h("", !0),
1813
+ l.value.chart.grid.showHorizontalLines ? (n(), r("g", Os, [
1814
+ (n(!0), r(d, null, w(na.value, (e) => (n(), r("line", {
1815
+ x1: c.value.left + U.value,
1780
1816
  x2: c.value.right,
1781
- y1: v(E)(e.y),
1782
- y2: v(E)(e.y),
1817
+ y1: v(Y)(e.y),
1818
+ y2: v(Y)(e.y),
1783
1819
  stroke: l.value.chart.grid.stroke,
1784
1820
  "stroke-width": 0.5,
1785
1821
  "stroke-linecap": "round",
1786
1822
  style: { animation: "none !important" }
1787
- }, null, 8, zs))), 256))
1823
+ }, null, 8, Ns))), 256))
1788
1824
  ])) : h("", !0)
1789
1825
  ], 64)),
1790
- l.value.chart.grid.showVerticalLines ? (n(), r("g", Ns, [
1826
+ l.value.chart.grid.showVerticalLines ? (n(), r("g", Fs, [
1791
1827
  p("path", {
1792
- d: ro.value,
1828
+ d: co.value,
1793
1829
  "stroke-width": 0.5,
1794
1830
  stroke: l.value.chart.grid.stroke,
1795
1831
  "stroke-linecap": "round",
1796
1832
  style: { animation: "none !important" }
1797
- }, null, 8, Vs)
1833
+ }, null, 8, Rs)
1798
1834
  ])) : h("", !0),
1799
- l.value.chart.grid.labels.xAxisLabels.show ? (n(), r("g", Ps, [
1835
+ l.value.chart.grid.labels.xAxisLabels.show ? (n(), r("g", Bs, [
1800
1836
  p("path", {
1801
- d: co.value,
1837
+ d: vo.value,
1802
1838
  stroke: l.value.chart.grid.stroke,
1803
1839
  "stroke-width": 1,
1804
1840
  "stroke-linecap": "round",
1805
1841
  style: { animation: "none !important" }
1806
- }, null, 8, Fs)
1842
+ }, null, 8, Hs)
1807
1843
  ])) : h("", !0)
1808
1844
  ]),
1809
- (n(!0), r(d, null, w(Me.value, (e, u) => (n(), r("defs", {
1845
+ (n(!0), r(d, null, w(Ce.value, (e, u) => (n(), r("defs", {
1810
1846
  key: `def_rect_${u}`
1811
1847
  }, [
1812
- a.$slots["bar-gradient"] ? W(a.$slots, "bar-gradient", al({
1848
+ t.$slots["bar-gradient"] ? B(t.$slots, "bar-gradient", tl({
1813
1849
  key: 0,
1814
1850
  ref_for: !0
1815
- }, { series: e, positiveId: `rectGradient_pos_${u}_${D.value}`, negativeId: `rectGradient_neg_${u}_${D.value}` }), void 0, !0) : (n(), r(d, { key: 1 }, [
1851
+ }, { series: e, positiveId: `rectGradient_pos_${u}_${E.value}`, negativeId: `rectGradient_neg_${u}_${E.value}` }), void 0, !0) : (n(), r(d, { key: 1 }, [
1816
1852
  p("linearGradient", {
1817
- id: `rectGradient_pos_${u}_${D.value}`,
1853
+ id: `rectGradient_pos_${u}_${E.value}`,
1818
1854
  x2: "0%",
1819
1855
  y2: "100%"
1820
1856
  }, [
1821
1857
  p("stop", {
1822
1858
  offset: "0%",
1823
1859
  "stop-color": e.color
1824
- }, null, 8, Bs),
1860
+ }, null, 8, Es),
1825
1861
  p("stop", {
1826
1862
  offset: "62%",
1827
1863
  "stop-color": `${v(ol)(e.color, 0.02)}`
1828
- }, null, 8, Hs),
1864
+ }, null, 8, Ys),
1829
1865
  p("stop", {
1830
1866
  offset: "100%",
1831
1867
  "stop-color": `${v(ol)(e.color, 0.05)}`
1832
- }, null, 8, Ds)
1833
- ], 8, Rs),
1868
+ }, null, 8, Ws)
1869
+ ], 8, Ds),
1834
1870
  p("linearGradient", {
1835
- id: `rectGradient_neg_${u}_${D.value}`,
1871
+ id: `rectGradient_neg_${u}_${E.value}`,
1836
1872
  x2: "0%",
1837
1873
  y2: "100%"
1838
1874
  }, [
1839
1875
  p("stop", {
1840
1876
  offset: "0%",
1841
1877
  "stop-color": `${v(ol)(e.color, 0.05)}`
1842
- }, null, 8, Ys),
1878
+ }, null, 8, Gs),
1843
1879
  p("stop", {
1844
1880
  offset: "38%",
1845
1881
  "stop-color": `${v(ol)(e.color, 0.02)}`
1846
- }, null, 8, Ws),
1882
+ }, null, 8, Us),
1847
1883
  p("stop", {
1848
1884
  offset: "100%",
1849
1885
  "stop-color": e.color
1850
- }, null, 8, Xs)
1851
- ], 8, Es)
1886
+ }, null, 8, qs)
1887
+ ], 8, Xs)
1852
1888
  ], 64))
1853
1889
  ]))), 128)),
1854
- (n(!0), r(d, null, w(be.value, (e, u) => (n(), r("defs", {
1890
+ (n(!0), r(d, null, w(xe.value, (e, u) => (n(), r("defs", {
1855
1891
  key: `def_plot_${u}`
1856
1892
  }, [
1857
1893
  p("radialGradient", {
1858
- id: `plotGradient_${u}_${D.value}`,
1894
+ id: `plotGradient_${u}_${E.value}`,
1859
1895
  cx: "50%",
1860
1896
  cy: "50%",
1861
1897
  r: "50%",
@@ -1865,18 +1901,18 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1865
1901
  p("stop", {
1866
1902
  offset: "0%",
1867
1903
  "stop-color": `${v(ol)(e.color, 0.05)}`
1868
- }, null, 8, Us),
1904
+ }, null, 8, Js),
1869
1905
  p("stop", {
1870
1906
  offset: "100%",
1871
1907
  "stop-color": e.color
1872
- }, null, 8, qs)
1873
- ], 8, Gs)
1908
+ }, null, 8, Ks)
1909
+ ], 8, Zs)
1874
1910
  ]))), 128)),
1875
- (n(!0), r(d, null, w(te.value, (e, u) => (n(), r("defs", {
1911
+ (n(!0), r(d, null, w(ae.value, (e, u) => (n(), r("defs", {
1876
1912
  key: `def_line_${e.id}`
1877
1913
  }, [
1878
1914
  p("radialGradient", {
1879
- id: `lineGradient_${u}_${D.value}`,
1915
+ id: `lineGradient_${u}_${E.value}`,
1880
1916
  cx: "50%",
1881
1917
  cy: "50%",
1882
1918
  r: "50%",
@@ -1886,18 +1922,18 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1886
1922
  p("stop", {
1887
1923
  offset: "0%",
1888
1924
  "stop-color": `${v(ol)(e.color, 0.05)}`
1889
- }, null, 8, Js),
1925
+ }, null, 8, js),
1890
1926
  p("stop", {
1891
1927
  offset: "100%",
1892
1928
  "stop-color": e.color
1893
- }, null, 8, Ks)
1894
- ], 8, Zs),
1895
- a.$slots["area-gradient"] ? W(a.$slots, "area-gradient", al({
1929
+ }, null, 8, eu)
1930
+ ], 8, Qs),
1931
+ t.$slots["area-gradient"] ? B(t.$slots, "area-gradient", tl({
1896
1932
  key: 0,
1897
1933
  ref_for: !0
1898
- }, { series: e, id: `areaGradient_${u}_${D.value}` }), void 0, !0) : (n(), r("linearGradient", {
1934
+ }, { series: e, id: `areaGradient_${u}_${E.value}` }), void 0, !0) : (n(), r("linearGradient", {
1899
1935
  key: 1,
1900
- id: `areaGradient_${u}_${D.value}`,
1936
+ id: `areaGradient_${u}_${E.value}`,
1901
1937
  x1: "0%",
1902
1938
  x2: "100%",
1903
1939
  y1: "0%",
@@ -1905,33 +1941,33 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1905
1941
  }, [
1906
1942
  p("stop", {
1907
1943
  offset: "0%",
1908
- "stop-color": `${v(Ce)(v(ol)(e.color, 0.03), l.value.line.area.opacity)}`
1909
- }, null, 8, js),
1944
+ "stop-color": `${v(ze)(v(ol)(e.color, 0.03), l.value.line.area.opacity)}`
1945
+ }, null, 8, tu),
1910
1946
  p("stop", {
1911
1947
  offset: "100%",
1912
- "stop-color": `${v(Ce)(e.color, l.value.line.area.opacity)}`
1913
- }, null, 8, eu)
1914
- ], 8, Qs))
1948
+ "stop-color": `${v(ze)(e.color, l.value.line.area.opacity)}`
1949
+ }, null, 8, au)
1950
+ ], 8, lu))
1915
1951
  ]))), 128)),
1916
- (n(!0), r(d, null, w(So.value, (e) => (n(), r("g", null, [
1952
+ (n(!0), r(d, null, w(Mo.value, (e) => (n(), r("g", null, [
1917
1953
  e.show ? (n(), r(d, { key: 0 }, [
1918
- (n(!0), r(d, null, w(e.span, (u, t) => (n(), r("g", null, [
1954
+ (n(!0), r(d, null, w(e.span, (u, a) => (n(), r("g", null, [
1919
1955
  p("rect", {
1920
1956
  style: $({
1921
1957
  transition: "none",
1922
- opacity: e.from + t >= m.value.start && e.from + t <= m.value.end - 1 ? 1 : 0
1958
+ opacity: e.from + a >= m.value.start && e.from + a <= m.value.end - 1 ? 1 : 0
1923
1959
  }),
1924
- x: c.value.left + c.value.width / L.value * (e.from + t - m.value.start),
1960
+ x: c.value.left + c.value.width / L.value * (e.from + a - m.value.start),
1925
1961
  y: c.value.top,
1926
1962
  height: c.value.height < 0 ? 10 : c.value.height,
1927
1963
  width: c.value.width / L.value < 0 ? 1e-5 : c.value.width / L.value,
1928
- fill: v(Ce)(e.color, e.opacity)
1929
- }, null, 12, lu)
1964
+ fill: v(ze)(e.color, e.opacity)
1965
+ }, null, 12, ou)
1930
1966
  ]))), 256)),
1931
- (n(!0), r(d, null, w(e.span, (u, t) => (n(), r("g", null, [
1932
- e.caption.text && t === 0 ? (n(), r("foreignObject", {
1967
+ (n(!0), r(d, null, w(e.span, (u, a) => (n(), r("g", null, [
1968
+ e.caption.text && a === 0 ? (n(), r("foreignObject", {
1933
1969
  key: 0,
1934
- x: c.value.left + c.value.width / L.value * (e.from + t - m.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / L.value * e.span / 2),
1970
+ x: c.value.left + c.value.width / L.value * (e.from + a - m.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / L.value * e.span / 2),
1935
1971
  y: c.value.top + e.caption.offsetY,
1936
1972
  style: $({
1937
1973
  overflow: "visible",
@@ -1942,12 +1978,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1942
1978
  }, [
1943
1979
  p("div", {
1944
1980
  style: $(`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"}`)
1945
- }, ae(e.caption.text), 5)
1946
- ], 12, au)) : h("", !0)
1981
+ }, te(e.caption.text), 5)
1982
+ ], 12, su)) : h("", !0)
1947
1983
  ]))), 256))
1948
1984
  ], 64)) : h("", !0)
1949
1985
  ]))), 256)),
1950
- Wa.value ? (n(), r("g", tu, [
1986
+ Xt.value ? (n(), r("g", uu, [
1951
1987
  (n(!0), r(d, null, w(L.value, (e, u) => (n(), r("g", {
1952
1988
  key: `tooltip_trap_highlighter_${u}`
1953
1989
  }, [
@@ -1956,87 +1992,87 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1956
1992
  y: c.value.top,
1957
1993
  height: c.value.height < 0 ? 10 : c.value.height,
1958
1994
  width: c.value.width / L.value < 0 ? 1e-5 : c.value.width / L.value,
1959
- fill: [V.value, _.value, Ze.value].includes(u) ? v(Ce)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent",
1995
+ fill: [V.value, _.value, Ze.value].includes(u) ? v(ze)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent",
1960
1996
  style: { transition: "none !important", animation: "none !important" }
1961
- }, null, 8, ou)
1997
+ }, null, 8, iu)
1962
1998
  ]))), 128))
1963
1999
  ])) : h("", !0),
1964
- Me.value.length ? (n(!0), r(d, { key: 1 }, w(Me.value, (e, u) => (n(), r("g", {
2000
+ Ce.value.length ? (n(!0), r(d, { key: 1 }, w(Ce.value, (e, u) => (n(), r("g", {
1965
2001
  key: `serie_bar_${e.id}`,
1966
2002
  class: ll(`serie_bar_${u}`),
1967
2003
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1968
2004
  }, [
1969
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r("g", {
2005
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r("g", {
1970
2006
  key: `bar_plot_${u}_${i}`
1971
2007
  }, [
1972
- me(t.value) ? (n(), r("rect", {
2008
+ be(a.value) ? (n(), r("rect", {
1973
2009
  key: 0,
1974
- x: Hl(t) + Wl.value / 2,
1975
- y: f.value.useIndividualScale ? et(t) : ja(t),
1976
- height: f.value.useIndividualScale ? Math.abs(Qa(t)) : Math.abs(Ka(t)),
1977
- width: Yl.value - Wl.value,
2010
+ x: Hl(a) + Xl.value / 2,
2011
+ y: f.value.useIndividualScale ? la(a) : ea(a),
2012
+ height: f.value.useIndividualScale ? Math.abs(jt(a)) : Math.abs(Qt(a)),
2013
+ width: Wl.value - Xl.value,
1978
2014
  rx: l.value.bar.borderRadius,
1979
- fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${u}_${D.value})` : `url(#rectGradient_neg_${u}_${D.value})` : e.color,
2015
+ fill: l.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${u}_${E.value})` : `url(#rectGradient_neg_${u}_${E.value})` : e.color,
1980
2016
  stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
1981
2017
  "stroke-width": l.value.bar.border.strokeWidth,
1982
2018
  style: $({
1983
2019
  transition: v(ie) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out`
1984
2020
  })
1985
- }, null, 12, su)) : h("", !0),
1986
- me(t.value) && a.$slots.pattern ? (n(), r("rect", {
2021
+ }, null, 12, nu)) : h("", !0),
2022
+ be(a.value) && t.$slots.pattern ? (n(), r("rect", {
1987
2023
  key: 1,
1988
- x: Hl(t) - Wl.value / 2,
1989
- y: f.value.useIndividualScale ? et(t) : ja(t),
1990
- height: f.value.useIndividualScale ? Math.abs(Qa(t)) : Math.abs(Ka(t)),
1991
- width: Yl.value - Wl.value,
2024
+ x: Hl(a) - Xl.value / 2,
2025
+ y: f.value.useIndividualScale ? la(a) : ea(a),
2026
+ height: f.value.useIndividualScale ? Math.abs(jt(a)) : Math.abs(Qt(a)),
2027
+ width: Wl.value - Xl.value,
1992
2028
  rx: l.value.bar.borderRadius,
1993
- fill: `url(#pattern_${D.value}_${e.slotAbsoluteIndex})`,
2029
+ fill: `url(#pattern_${E.value}_${e.slotAbsoluteIndex})`,
1994
2030
  stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
1995
2031
  "stroke-width": l.value.bar.border.strokeWidth,
1996
2032
  style: $({ transition: v(ie) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out` })
1997
- }, null, 12, uu)) : h("", !0),
1998
- t.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
2033
+ }, null, 12, ru)) : h("", !0),
2034
+ a.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
1999
2035
  key: 2,
2000
2036
  style: { overflow: "visible" },
2001
2037
  height: "12",
2002
- width: Yl.value / 2 + l.value.chart.comments.width,
2003
- x: Hl(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2004
- y: v(P)(t.y) + l.value.chart.comments.offsetY + 6
2038
+ width: Wl.value / 2 + l.value.chart.comments.width,
2039
+ x: Hl(a) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2040
+ y: v(P)(a.y) + l.value.chart.comments.offsetY + 6
2005
2041
  }, [
2006
- W(a.$slots, "plot-comment", {
2007
- plot: { ...t, color: e.color, seriesIndex: u, datapointIndex: i }
2042
+ B(t.$slots, "plot-comment", {
2043
+ plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: i }
2008
2044
  }, void 0, !0)
2009
- ], 8, iu)) : h("", !0)
2045
+ ], 8, cu)) : h("", !0)
2010
2046
  ]))), 128))
2011
2047
  ], 6))), 128)) : h("", !0),
2012
2048
  !f.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (n(), r("line", {
2013
2049
  key: 2,
2014
2050
  stroke: l.value.chart.grid.stroke,
2015
2051
  "stroke-width": "1",
2016
- x1: c.value.left + G.value,
2052
+ x1: c.value.left + U.value,
2017
2053
  x2: c.value.right,
2018
- y1: v(E)(ne.value),
2019
- y2: v(E)(ne.value),
2054
+ y1: v(Y)(ne.value),
2055
+ y2: v(Y)(ne.value),
2020
2056
  "stroke-linecap": "round",
2021
2057
  style: { animation: "none !important" }
2022
- }, null, 8, nu)) : h("", !0),
2023
- l.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(V.value)) ? (n(), r("g", ru, [
2058
+ }, null, 8, vu)) : h("", !0),
2059
+ l.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(V.value)) ? (n(), r("g", du, [
2024
2060
  p("line", {
2025
2061
  x1: c.value.left + c.value.width / L.value * ((_.value !== null ? _.value : 0) || (V.value !== null ? V.value : 0)) + c.value.width / L.value / 2,
2026
2062
  x2: c.value.left + c.value.width / L.value * ((_.value !== null ? _.value : 0) || (V.value !== null ? V.value : 0)) + c.value.width / L.value / 2,
2027
- y1: v(E)(c.value.top),
2028
- y2: v(E)(c.value.bottom),
2063
+ y1: v(Y)(c.value.top),
2064
+ y2: v(Y)(c.value.bottom),
2029
2065
  stroke: l.value.chart.highlighter.color,
2030
2066
  "stroke-width": l.value.chart.highlighter.lineWidth,
2031
2067
  "stroke-dasharray": l.value.chart.highlighter.lineDasharray,
2032
2068
  "stroke-linecap": "round",
2033
2069
  style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
2034
- }, null, 8, cu)
2070
+ }, null, 8, hu)
2035
2071
  ])) : h("", !0),
2036
2072
  l.value.chart.grid.frame.show ? (n(), r("rect", {
2037
2073
  key: 4,
2038
2074
  style: { pointerEvents: "none", transition: "none", animation: "none !important" },
2039
- x: c.value.left + G.value < 0 ? 0 : c.value.left + G.value,
2075
+ x: c.value.left + U.value < 0 ? 0 : c.value.left + U.value,
2040
2076
  y: c.value.top,
2041
2077
  width: c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value) < 0 ? 0 : c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value),
2042
2078
  height: c.value.height < 0 ? 0 : c.value.height,
@@ -2046,24 +2082,24 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2046
2082
  "stroke-linecap": l.value.chart.grid.frame.strokeLinecap,
2047
2083
  "stroke-linejoin": l.value.chart.grid.frame.strokeLinejoin,
2048
2084
  "stroke-dasharray": l.value.chart.grid.frame.strokeDasharray
2049
- }, null, 8, vu)) : h("", !0),
2085
+ }, null, 8, fu)) : h("", !0),
2050
2086
  l.value.chart.grid.labels.show ? (n(), r("g", {
2051
2087
  key: 5,
2052
2088
  ref_key: "scaleLabels",
2053
- ref: aa
2089
+ ref: at
2054
2090
  }, [
2055
2091
  f.value.useIndividualScale ? (n(), r(d, { key: 0 }, [
2056
2092
  (n(!0), r(d, null, w(Sl.value, (e) => (n(), r("g", null, [
2057
2093
  p("line", {
2058
- x1: e.x + G.value - c.value.individualOffsetX,
2059
- x2: e.x + G.value - c.value.individualOffsetX,
2060
- y1: f.value.isStacked ? v(E)(c.value.bottom - e.yOffset - e.individualHeight) : v(E)(c.value.top),
2061
- y2: f.value.isStacked ? v(E)(c.value.bottom - e.yOffset) : v(E)(c.value.bottom),
2094
+ x1: e.x + U.value - c.value.individualOffsetX,
2095
+ x2: e.x + U.value - c.value.individualOffsetX,
2096
+ y1: f.value.isStacked ? v(Y)(c.value.bottom - e.yOffset - e.individualHeight) : v(Y)(c.value.top),
2097
+ y2: f.value.isStacked ? v(Y)(c.value.bottom - e.yOffset) : v(Y)(c.value.bottom),
2062
2098
  stroke: e.color,
2063
2099
  "stroke-width": l.value.chart.grid.stroke,
2064
2100
  "stroke-linecap": "round",
2065
2101
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
2066
- }, null, 12, du)
2102
+ }, null, 12, gu)
2067
2103
  ]))), 256)),
2068
2104
  (n(!0), r(d, null, w(Sl.value, (e) => (n(), r("g", {
2069
2105
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
@@ -2072,108 +2108,108 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2072
2108
  fill: e.color,
2073
2109
  "font-size": y.value.dataLabels * 0.8,
2074
2110
  "text-anchor": "middle",
2075
- transform: `translate(${e.x - y.value.dataLabels * 0.8 / 2 + G.value}, ${f.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
2076
- }, ae(e.name) + " " + ae(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
2077
- ${e.scaleLabel}` : ""), 9, hu),
2078
- (n(!0), r(d, null, w(e.yLabels, (u, t) => (n(), r(d, null, [
2111
+ transform: `translate(${e.x - y.value.dataLabels * 0.8 / 2 + U.value}, ${f.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
2112
+ }, te(e.name) + " " + te(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
2113
+ ${e.scaleLabel}` : ""), 9, mu),
2114
+ (n(!0), r(d, null, w(e.yLabels, (u, a) => (n(), r(d, null, [
2079
2115
  l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), r("line", {
2080
2116
  key: 0,
2081
- x1: e.x + 3 + G.value - l.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
2082
- x2: e.x + G.value - c.value.individualOffsetX,
2083
- y1: v(E)(u.y),
2084
- y2: v(E)(u.y),
2117
+ x1: e.x + 3 + U.value - l.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
2118
+ x2: e.x + U.value - c.value.individualOffsetX,
2119
+ y1: v(Y)(u.y),
2120
+ y2: v(Y)(u.y),
2085
2121
  stroke: e.color,
2086
2122
  "stroke-width": 1,
2087
2123
  "stroke-linecap": "round",
2088
2124
  style: { animation: "none !important" }
2089
- }, null, 8, fu)) : h("", !0)
2125
+ }, null, 8, bu)) : h("", !0)
2090
2126
  ], 64))), 256)),
2091
- (n(!0), r(d, null, w(e.yLabels, (u, t) => (n(), r("text", {
2092
- x: e.x - 5 + G.value - c.value.individualOffsetX,
2093
- y: v(E)(u.y) + y.value.dataLabels / 3,
2127
+ (n(!0), r(d, null, w(e.yLabels, (u, a) => (n(), r("text", {
2128
+ x: e.x - 5 + U.value - c.value.individualOffsetX,
2129
+ y: v(Y)(u.y) + y.value.dataLabels / 3,
2094
2130
  "font-size": y.value.dataLabels,
2095
2131
  "text-anchor": "end",
2096
2132
  fill: e.color
2097
- }, ae(v(se)(
2133
+ }, te(v(se)(
2098
2134
  l.value.chart.grid.labels.yAxis.formatter,
2099
2135
  u.value,
2100
- v(Ve)({
2136
+ v(Fe)({
2101
2137
  p: u.prefix,
2102
2138
  v: u.value,
2103
2139
  s: u.suffix,
2104
2140
  r: l.value.chart.grid.labels.yAxis.rounding
2105
2141
  }),
2106
- { datapoint: u.datapoint, seriesIndex: t }
2107
- )), 9, gu))), 256))
2142
+ { datapoint: u.datapoint, seriesIndex: a }
2143
+ )), 9, xu))), 256))
2108
2144
  ], 4))), 256))
2109
- ], 64)) : (n(!0), r(d, { key: 1 }, w(it.value, (e, u) => (n(), r("g", {
2145
+ ], 64)) : (n(!0), r(d, { key: 1 }, w(na.value, (e, u) => (n(), r("g", {
2110
2146
  key: `yLabel_${u}`
2111
2147
  }, [
2112
- me(e) && e.value >= $e.value.min && e.value <= $e.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), r("line", {
2148
+ be(e) && e.value >= Ae.value.min && e.value <= Ae.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), r("line", {
2113
2149
  key: 0,
2114
- x1: c.value.left + G.value,
2115
- x2: c.value.left + G.value - l.value.chart.grid.labels.yAxis.crosshairSize,
2116
- y1: v(E)(e.y),
2117
- y2: v(E)(e.y),
2150
+ x1: c.value.left + U.value,
2151
+ x2: c.value.left + U.value - l.value.chart.grid.labels.yAxis.crosshairSize,
2152
+ y1: v(Y)(e.y),
2153
+ y2: v(Y)(e.y),
2118
2154
  stroke: l.value.chart.grid.stroke,
2119
2155
  "stroke-width": "1",
2120
2156
  "stroke-linecap": "round",
2121
2157
  style: { animation: "none !important" }
2122
- }, null, 8, mu)) : h("", !0),
2123
- e.value >= $e.value.min && e.value <= $e.value.max ? (n(), r("text", {
2158
+ }, null, 8, pu)) : h("", !0),
2159
+ e.value >= Ae.value.min && e.value <= Ae.value.max ? (n(), r("text", {
2124
2160
  key: 1,
2125
2161
  x: c.value.scaleLabelX - l.value.chart.grid.labels.yAxis.crosshairSize,
2126
2162
  y: v(P)(e.y + y.value.dataLabels / 3),
2127
2163
  "font-size": y.value.dataLabels,
2128
2164
  "text-anchor": "end",
2129
2165
  fill: l.value.chart.grid.labels.color
2130
- }, ae(me(e.value) ? v(se)(
2166
+ }, te(be(e.value) ? v(se)(
2131
2167
  l.value.chart.grid.labels.yAxis.formatter,
2132
2168
  e.value,
2133
- v(Ve)({
2169
+ v(Fe)({
2134
2170
  p: e.prefix,
2135
2171
  v: e.value,
2136
2172
  s: e.suffix,
2137
2173
  r: l.value.chart.grid.labels.yAxis.rounding
2138
2174
  })
2139
- ) : ""), 9, bu)) : h("", !0)
2175
+ ) : ""), 9, yu)) : h("", !0)
2140
2176
  ]))), 128))
2141
2177
  ], 512)) : h("", !0),
2142
- (n(!0), r(d, null, w(be.value, (e, u) => (n(), r("g", {
2178
+ (n(!0), r(d, null, w(xe.value, (e, u) => (n(), r("g", {
2143
2179
  key: `serie_plot_${e.id}`,
2144
2180
  class: ll(`serie_plot_${u}`),
2145
2181
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2146
2182
  }, [
2147
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r("g", {
2183
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r("g", {
2148
2184
  key: `circle_plot_${u}_${i}`
2149
2185
  }, [
2150
- t && me(t.value) ? (n(), Ae(Kl, {
2186
+ a && be(a.value) ? (n(), Te(Ql, {
2151
2187
  key: 0,
2152
2188
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
2153
- color: l.value.plot.useGradient ? `url(#plotGradient_${u}_${D.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
2154
- plot: { x: v(P)(t.x), y: v(P)(t.y) },
2155
- radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (we.value.plot || 6) * 1.5 : we.value.plot || 6,
2189
+ color: l.value.plot.useGradient ? `url(#plotGradient_${u}_${E.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
2190
+ plot: { x: v(P)(a.x), y: v(P)(a.y) },
2191
+ radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (Le.value.plot || 6) * 1.5 : Le.value.plot || 6,
2156
2192
  stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
2157
2193
  strokeWidth: l.value.plot.dot.strokeWidth,
2158
2194
  transition: v(ie) || !l.value.plot.showTransition || _.value !== null && _.value === i || V.value !== null && V.value === i ? void 0 : `all ${l.value.plot.transitionDurationMs}ms ease-in-out`
2159
2195
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
2160
- t.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
2196
+ a.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
2161
2197
  key: 1,
2162
2198
  style: { overflow: "visible" },
2163
2199
  height: "12",
2164
2200
  width: l.value.chart.comments.width,
2165
- x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2166
- y: t.y + l.value.chart.comments.offsetY + 6
2201
+ x: a.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2202
+ y: a.y + l.value.chart.comments.offsetY + 6
2167
2203
  }, [
2168
- p("div", pu, [
2169
- W(a.$slots, "plot-comment", {
2170
- plot: { ...t, color: e.color, seriesIndex: u, datapointIndex: i }
2204
+ p("div", _u, [
2205
+ B(t.$slots, "plot-comment", {
2206
+ plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: i }
2171
2207
  }, void 0, !0)
2172
2208
  ])
2173
- ], 8, xu)) : h("", !0)
2209
+ ], 8, ku)) : h("", !0)
2174
2210
  ]))), 128))
2175
2211
  ], 6))), 128)),
2176
- (n(!0), r(d, null, w(te.value, (e, u) => (n(), r("g", {
2212
+ (n(!0), r(d, null, w(ae.value, (e, u) => (n(), r("g", {
2177
2213
  key: `serie_line_${e.id}`,
2178
2214
  class: ll(`serie_line_${u}`),
2179
2215
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
@@ -2186,7 +2222,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2186
2222
  "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
2187
2223
  fill: "none",
2188
2224
  style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2189
- }, null, 12, yu)) : e.plots.length > 1 && e.straight ? (n(), r("path", {
2225
+ }, null, 12, wu)) : e.plots.length > 1 && e.straight ? (n(), r("path", {
2190
2226
  key: 1,
2191
2227
  d: `M${e.straight}`,
2192
2228
  stroke: l.value.chart.backgroundColor,
@@ -2196,15 +2232,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2196
2232
  "stroke-linecap": "round",
2197
2233
  "stroke-linejoin": "round",
2198
2234
  style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2199
- }, null, 12, ku)) : h("", !0)
2235
+ }, null, 12, Su)) : h("", !0)
2200
2236
  ], 6))), 128)),
2201
- a.$slots.pattern ? (n(), r("defs", _u, [
2202
- (n(!0), r(d, null, w(Fe.value, (e, u) => W(a.$slots, "pattern", al({
2237
+ t.$slots.pattern ? (n(), r("defs", $u, [
2238
+ (n(!0), r(d, null, w(Be.value, (e, u) => B(t.$slots, "pattern", tl({
2203
2239
  key: `serie_pattern_slot_${e.id}`
2204
- }, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${D.value}_${u}` }), void 0, !0)), 128))
2240
+ }, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${E.value}_${u}` }), void 0, !0)), 128))
2205
2241
  ])) : h("", !0),
2206
- ct.value.length && !f.value.isStacked ? (n(), r("g", wu, [
2207
- (n(!0), r(d, null, w(ct.value, (e) => (n(), r("path", {
2242
+ va.value.length && !f.value.isStacked ? (n(), r("g", Lu, [
2243
+ (n(!0), r(d, null, w(va.value, (e) => (n(), r("path", {
2208
2244
  key: e.key,
2209
2245
  d: e.d,
2210
2246
  fill: e.color,
@@ -2212,40 +2248,40 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2212
2248
  stroke: "none",
2213
2249
  "pointer-events": "none",
2214
2250
  style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2215
- }, null, 12, Su))), 128))
2251
+ }, null, 12, Mu))), 128))
2216
2252
  ])) : h("", !0),
2217
- (n(!0), r(d, null, w(te.value, (e, u) => (n(), r("g", {
2253
+ (n(!0), r(d, null, w(ae.value, (e, u) => (n(), r("g", {
2218
2254
  key: `serie_line_above_${e.id}`,
2219
2255
  class: ll(`serie_line_${u}`),
2220
2256
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2221
2257
  }, [
2222
- e.useArea && e.plots.length > 1 ? (n(), r("g", $u, [
2223
- e.smooth ? (n(!0), r(d, { key: 0 }, w(e.curveAreas, (t, i) => (n(), r(d, { key: i }, [
2224
- t ? (n(), r("path", {
2258
+ e.useArea && e.plots.length > 1 ? (n(), r("g", Au, [
2259
+ e.smooth ? (n(!0), r(d, { key: 0 }, w(e.curveAreas, (a, i) => (n(), r(d, { key: i }, [
2260
+ a ? (n(), r("path", {
2225
2261
  key: 0,
2226
- d: t,
2227
- fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${D.value})` : v(Ce)(e.color, l.value.line.area.opacity),
2262
+ d: a,
2263
+ fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${E.value})` : v(ze)(e.color, l.value.line.area.opacity),
2228
2264
  style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2229
- }, null, 12, Lu)) : h("", !0),
2230
- a.$slots.pattern && t ? (n(), r("path", {
2265
+ }, null, 12, Cu)) : h("", !0),
2266
+ t.$slots.pattern && a ? (n(), r("path", {
2231
2267
  key: 1,
2232
- d: t,
2233
- fill: `url(#pattern_${D.value}_${e.slotAbsoluteIndex})`,
2268
+ d: a,
2269
+ fill: `url(#pattern_${E.value}_${e.slotAbsoluteIndex})`,
2234
2270
  style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2235
- }, null, 12, Mu)) : h("", !0)
2236
- ], 64))), 128)) : (n(!0), r(d, { key: 1 }, w(e.area.split(";"), (t, i) => (n(), r(d, { key: i }, [
2237
- t ? (n(), r("path", {
2271
+ }, null, 12, Tu)) : h("", !0)
2272
+ ], 64))), 128)) : (n(!0), r(d, { key: 1 }, w(e.area.split(";"), (a, i) => (n(), r(d, { key: i }, [
2273
+ a ? (n(), r("path", {
2238
2274
  key: 0,
2239
- d: `M${t}Z`,
2240
- fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${D.value})` : v(Ce)(e.color, l.value.line.area.opacity),
2275
+ d: `M${a}Z`,
2276
+ fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${E.value})` : v(ze)(e.color, l.value.line.area.opacity),
2241
2277
  style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2242
- }, null, 12, Au)) : h("", !0),
2243
- a.$slots.pattern && t ? (n(), r("path", {
2278
+ }, null, 12, zu)) : h("", !0),
2279
+ t.$slots.pattern && a ? (n(), r("path", {
2244
2280
  key: 1,
2245
- d: `M${t}Z`,
2246
- fill: `url(#pattern_${D.value}_${e.slotAbsoluteIndex})`,
2281
+ d: `M${a}Z`,
2282
+ fill: `url(#pattern_${E.value}_${e.slotAbsoluteIndex})`,
2247
2283
  style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2248
- }, null, 12, Cu)) : h("", !0)
2284
+ }, null, 12, Iu)) : h("", !0)
2249
2285
  ], 64))), 128))
2250
2286
  ])) : h("", !0),
2251
2287
  e.smooth && e.plots.length > 1 && e.curve ? (n(), r("path", {
@@ -2257,7 +2293,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2257
2293
  fill: "none",
2258
2294
  "stroke-linecap": "round",
2259
2295
  style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2260
- }, null, 12, Tu)) : e.plots.length > 1 && e.straight ? (n(), r("path", {
2296
+ }, null, 12, Ou)) : e.plots.length > 1 && e.straight ? (n(), r("path", {
2261
2297
  key: 2,
2262
2298
  d: `M${e.straight}`,
2263
2299
  stroke: e.color,
@@ -2267,117 +2303,117 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2267
2303
  "stroke-linecap": "round",
2268
2304
  "stroke-linejoin": "round",
2269
2305
  style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2270
- }, null, 12, zu)) : h("", !0),
2271
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
2306
+ }, null, 12, Nu)) : h("", !0),
2307
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
2272
2308
  key: `circle_line_${u}_${i}`
2273
2309
  }, [
2274
- !st.value.linePlot && t && me(t.value) || st.value.linePlot && t && me(t.value) && (_.value !== null && _.value === i || V.value !== null && V.value === i) || rt(e.plots, i) ? (n(), Ae(Kl, {
2310
+ !ua.value.linePlot && a && be(a.value) || ua.value.linePlot && a && be(a.value) && (_.value !== null && _.value === i || V.value !== null && V.value === i) || ca(e.plots, i) ? (n(), Te(Ql, {
2275
2311
  key: 0,
2276
2312
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
2277
- color: l.value.line.useGradient ? `url(#lineGradient_${u}_${D.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
2278
- plot: { x: v(P)(t.x), y: v(P)(t.y) },
2279
- radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (we.value.line || 6) * 1.5 : (rt(e.plots, i), we.value.line || 6),
2313
+ color: l.value.line.useGradient ? `url(#lineGradient_${u}_${E.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
2314
+ plot: { x: v(P)(a.x), y: v(P)(a.y) },
2315
+ radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (Le.value.line || 6) * 1.5 : (ca(e.plots, i), Le.value.line || 6),
2280
2316
  stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
2281
2317
  strokeWidth: l.value.line.dot.strokeWidth,
2282
2318
  transition: v(ie) || !l.value.line.showTransition || _.value !== null && _.value === i || V.value !== null && V.value === i ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out`
2283
2319
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
2284
- t.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
2320
+ a.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
2285
2321
  key: 1,
2286
2322
  style: { overflow: "visible" },
2287
2323
  height: "12",
2288
2324
  width: l.value.chart.comments.width,
2289
- x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2290
- y: t.y + l.value.chart.comments.offsetY + 6
2325
+ x: a.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2326
+ y: a.y + l.value.chart.comments.offsetY + 6
2291
2327
  }, [
2292
- p("div", Ou, [
2293
- W(a.$slots, "plot-comment", {
2294
- plot: { ...t, color: e.color, seriesIndex: u, datapointIndex: i }
2328
+ p("div", Pu, [
2329
+ B(t.$slots, "plot-comment", {
2330
+ plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: i }
2295
2331
  }, void 0, !0)
2296
2332
  ])
2297
- ], 8, Iu)) : h("", !0)
2333
+ ], 8, Vu)) : h("", !0)
2298
2334
  ], 64))), 128))
2299
2335
  ], 6))), 128)),
2300
- (l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (n(), r("g", Nu, [
2301
- (n(!0), r(d, null, w(Me.value, (e, u) => (n(), r(d, {
2336
+ (l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (n(), r("g", Fu, [
2337
+ (n(!0), r(d, null, w(Ce.value, (e, u) => (n(), r(d, {
2302
2338
  key: `xLabel_bar_${e.id}`
2303
2339
  }, [
2304
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
2340
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
2305
2341
  key: `xLabel_bar_${u}_${i}`
2306
2342
  }, [
2307
- t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i) && l.value.bar.labels.show ? (n(), r("text", {
2343
+ a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i) && l.value.bar.labels.show ? (n(), r("text", {
2308
2344
  key: 0,
2309
- x: f.value.useIndividualScale && f.value.isStacked ? t.x + q.value.line / 2 : Hl(t) + He() / 2 - El.value / 2,
2310
- y: v(P)(t.y) + (t.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
2345
+ x: f.value.useIndividualScale && f.value.isStacked ? a.x + Z.value.line / 2 : Hl(a) + Ee() / 2 - Yl.value / 2,
2346
+ y: v(P)(a.y) + (a.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
2311
2347
  "text-anchor": "middle",
2312
2348
  "font-size": y.value.plotLabels,
2313
2349
  fill: l.value.bar.labels.color,
2314
2350
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2315
- }, ae(me(t.value) ? v(se)(
2351
+ }, te(be(a.value) ? v(se)(
2316
2352
  l.value.bar.labels.formatter,
2317
- t.value,
2318
- v(Ve)({
2353
+ a.value,
2354
+ v(Fe)({
2319
2355
  p: e.prefix || l.value.chart.labels.prefix,
2320
- v: t.value,
2356
+ v: a.value,
2321
2357
  s: e.suffix || l.value.chart.labels.suffix,
2322
2358
  r: l.value.bar.labels.rounding
2323
2359
  }),
2324
2360
  {
2325
- datapoint: t,
2361
+ datapoint: a,
2326
2362
  serie: e
2327
2363
  }
2328
- ) : ""), 13, Vu)) : h("", !0),
2329
- t && l.value.bar.serieName.show ? (n(), r("text", {
2364
+ ) : ""), 13, Ru)) : h("", !0),
2365
+ a && l.value.bar.serieName.show ? (n(), r("text", {
2330
2366
  key: 1,
2331
- x: f.value.useIndividualScale && f.value.isStacked ? t.x + q.value.line / 2 : t.x + He() * 1.1,
2332
- y: t.y + (t.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
2367
+ x: f.value.useIndividualScale && f.value.isStacked ? a.x + Z.value.line / 2 : a.x + Ee() * 1.1,
2368
+ y: a.y + (a.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
2333
2369
  "text-anchor": "middle",
2334
2370
  "font-size": y.value.plotLabels,
2335
2371
  fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
2336
2372
  "font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
2337
2373
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2338
- }, ae(l.value.bar.serieName.useAbbreviation ? v(as)({
2374
+ }, te(l.value.bar.serieName.useAbbreviation ? v(ss)({
2339
2375
  source: e.name,
2340
2376
  length: l.value.bar.serieName.abbreviationSize
2341
- }) : e.name), 13, Pu)) : h("", !0)
2377
+ }) : e.name), 13, Bu)) : h("", !0)
2342
2378
  ], 64))), 128))
2343
2379
  ], 64))), 128))
2344
2380
  ])) : h("", !0),
2345
- l.value.plot.labels.show && f.value.dataLabels.show ? (n(), r("g", Fu, [
2346
- (n(!0), r(d, null, w(be.value, (e, u) => (n(), r(d, {
2381
+ l.value.plot.labels.show && f.value.dataLabels.show ? (n(), r("g", Hu, [
2382
+ (n(!0), r(d, null, w(xe.value, (e, u) => (n(), r(d, {
2347
2383
  key: `xLabel_plot_${e.id}`
2348
2384
  }, [
2349
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
2385
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
2350
2386
  key: `xLabel_plot_${u}_${i}`
2351
2387
  }, [
2352
- t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i ? (n(), r("text", {
2388
+ a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i ? (n(), r("text", {
2353
2389
  key: 0,
2354
- x: t.x,
2355
- y: t.y + l.value.plot.labels.offsetY,
2390
+ x: a.x,
2391
+ y: a.y + l.value.plot.labels.offsetY,
2356
2392
  "text-anchor": "middle",
2357
2393
  "font-size": y.value.plotLabels,
2358
2394
  fill: l.value.plot.labels.color,
2359
2395
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2360
- }, ae(me(t.value) ? v(se)(
2396
+ }, te(be(a.value) ? v(se)(
2361
2397
  l.value.plot.labels.formatter,
2362
- t.value,
2363
- v(Ve)({
2398
+ a.value,
2399
+ v(Fe)({
2364
2400
  p: e.prefix || l.value.chart.labels.prefix,
2365
- v: t.value,
2401
+ v: a.value,
2366
2402
  s: e.suffix || l.value.chart.labels.suffix,
2367
2403
  r: l.value.plot.labels.rounding
2368
2404
  }),
2369
2405
  {
2370
- datapoint: t,
2406
+ datapoint: a,
2371
2407
  serie: e
2372
2408
  }
2373
- ) : ""), 13, Ru)) : h("", !0)
2409
+ ) : ""), 13, Du)) : h("", !0)
2374
2410
  ], 64))), 128))
2375
2411
  ], 64))), 128))
2376
- ])) : (n(), r("g", Bu, [
2377
- (n(!0), r(d, null, w(be.value, (e, u) => (n(), r(d, {
2412
+ ])) : (n(), r("g", Eu, [
2413
+ (n(!0), r(d, null, w(xe.value, (e, u) => (n(), r(d, {
2378
2414
  key: `xLabel_plot_${e.id}`
2379
2415
  }, [
2380
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
2416
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
2381
2417
  key: `xLabel_plot_${u}_${i}`
2382
2418
  }, [
2383
2419
  l.value.plot.tag.followValue ? (n(), r(d, { key: 1 }, [
@@ -2386,98 +2422,98 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2386
2422
  class: "vue-ui-xy-tag-plot",
2387
2423
  x1: c.value.left,
2388
2424
  x2: c.value.right,
2389
- y1: t.y,
2390
- y2: t.y,
2425
+ y1: a.y,
2426
+ y2: a.y,
2391
2427
  "stroke-width": 1,
2392
2428
  "stroke-linecap": "round",
2393
2429
  "stroke-dasharray": "2",
2394
2430
  stroke: e.color
2395
- }, null, 8, Wu)) : h("", !0)
2431
+ }, null, 8, Uu)) : h("", !0)
2396
2432
  ], 64)) : (n(), r(d, { key: 0 }, [
2397
- t && i === 0 && e.useTag && e.useTag === "start" ? (n(), r("foreignObject", {
2433
+ a && i === 0 && e.useTag && e.useTag === "start" ? (n(), r("foreignObject", {
2398
2434
  key: 0,
2399
- x: t.x,
2400
- y: t.y - 20,
2435
+ x: a.x,
2436
+ y: a.y - 20,
2401
2437
  height: 24,
2402
2438
  width: "150",
2403
2439
  style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2404
2440
  }, [
2405
2441
  p("div", {
2406
- style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
2442
+ style: $(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
2407
2443
  innerHTML: v(se)(
2408
2444
  l.value.plot.tag.formatter,
2409
- t.value,
2445
+ a.value,
2410
2446
  e.name,
2411
2447
  {
2412
- datapoint: t,
2448
+ datapoint: a,
2413
2449
  seriesIndex: i,
2414
2450
  serieName: e.name
2415
2451
  }
2416
2452
  )
2417
- }, null, 12, Du)
2418
- ], 12, Hu)) : h("", !0),
2419
- t && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), r("foreignObject", {
2453
+ }, null, 12, Wu)
2454
+ ], 12, Yu)) : h("", !0),
2455
+ a && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), r("foreignObject", {
2420
2456
  key: 1,
2421
- x: t.x - e.name.length * (y.value.plotLabels / 2),
2422
- y: t.y - 20,
2457
+ x: a.x - e.name.length * (y.value.plotLabels / 2),
2458
+ y: a.y - 20,
2423
2459
  height: 24,
2424
2460
  width: "150",
2425
2461
  style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2426
2462
  }, [
2427
2463
  p("div", {
2428
- style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
2464
+ style: $(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
2429
2465
  innerHTML: v(se)(
2430
2466
  l.value.plot.tag.formatter,
2431
- t.value,
2467
+ a.value,
2432
2468
  e.name,
2433
2469
  {
2434
- datapoint: t,
2470
+ datapoint: a,
2435
2471
  seriesIndex: i,
2436
2472
  serieName: e.name
2437
2473
  }
2438
2474
  )
2439
- }, null, 12, Yu)
2440
- ], 12, Eu)) : h("", !0)
2475
+ }, null, 12, Gu)
2476
+ ], 12, Xu)) : h("", !0)
2441
2477
  ], 64))
2442
2478
  ], 64))), 128))
2443
2479
  ], 64))), 128))
2444
2480
  ])),
2445
- l.value.line.labels.show && f.value.dataLabels.show ? (n(), r("g", Xu, [
2446
- (n(!0), r(d, null, w(te.value, (e, u) => (n(), r(d, {
2481
+ l.value.line.labels.show && f.value.dataLabels.show ? (n(), r("g", qu, [
2482
+ (n(!0), r(d, null, w(ae.value, (e, u) => (n(), r(d, {
2447
2483
  key: `xLabel_line_${e.id}`
2448
2484
  }, [
2449
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
2485
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
2450
2486
  key: `xLabel_line_${u}_${i}`
2451
2487
  }, [
2452
- t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i ? (n(), r("text", {
2488
+ a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i ? (n(), r("text", {
2453
2489
  key: 0,
2454
- x: t.x,
2455
- y: t.y + (t.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
2490
+ x: a.x,
2491
+ y: a.y + (a.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
2456
2492
  "text-anchor": "middle",
2457
2493
  "font-size": y.value.plotLabels,
2458
2494
  fill: l.value.line.labels.color,
2459
2495
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2460
- }, ae(me(t.value) ? v(se)(
2496
+ }, te(be(a.value) ? v(se)(
2461
2497
  l.value.line.labels.formatter,
2462
- t.value,
2463
- v(Ve)({
2498
+ a.value,
2499
+ v(Fe)({
2464
2500
  p: e.prefix || l.value.chart.labels.prefix,
2465
- v: t.value,
2501
+ v: a.value,
2466
2502
  s: e.suffix || l.value.chart.labels.suffix,
2467
2503
  r: l.value.line.labels.rounding
2468
2504
  }),
2469
2505
  {
2470
- datapoint: t,
2506
+ datapoint: a,
2471
2507
  serie: e
2472
2508
  }
2473
- ) : ""), 13, Gu)) : h("", !0)
2509
+ ) : ""), 13, Zu)) : h("", !0)
2474
2510
  ], 64))), 128))
2475
2511
  ], 64))), 128))
2476
- ])) : (n(), r("g", Uu, [
2477
- (n(!0), r(d, null, w(te.value, (e, u) => (n(), r(d, {
2512
+ ])) : (n(), r("g", Ju, [
2513
+ (n(!0), r(d, null, w(ae.value, (e, u) => (n(), r(d, {
2478
2514
  key: `xLabel_line_${e.id}`
2479
2515
  }, [
2480
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
2516
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
2481
2517
  key: `xLabel_line_${u}_${i}`
2482
2518
  }, [
2483
2519
  l.value.line.tag.followValue ? (n(), r(d, { key: 1 }, [
@@ -2486,150 +2522,150 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2486
2522
  class: "vue-ui-xy-tag-line",
2487
2523
  x1: c.value.left,
2488
2524
  x2: c.value.right,
2489
- y1: t.y,
2490
- y2: t.y,
2525
+ y1: a.y,
2526
+ y2: a.y,
2491
2527
  "stroke-width": 1,
2492
2528
  "stroke-linecap": "round",
2493
2529
  "stroke-dasharray": "2",
2494
2530
  stroke: e.color
2495
- }, null, 8, Qu)) : h("", !0)
2531
+ }, null, 8, li)) : h("", !0)
2496
2532
  ], 64)) : (n(), r(d, { key: 0 }, [
2497
- t && i === 0 && e.useTag && e.useTag === "start" ? (n(), r("foreignObject", {
2533
+ a && i === 0 && e.useTag && e.useTag === "start" ? (n(), r("foreignObject", {
2498
2534
  key: 0,
2499
- x: t.x,
2500
- y: t.y - 20,
2535
+ x: a.x,
2536
+ y: a.y - 20,
2501
2537
  height: 24,
2502
2538
  width: "150",
2503
2539
  style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2504
2540
  }, [
2505
2541
  p("div", {
2506
- style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
2542
+ style: $(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
2507
2543
  innerHTML: v(se)(
2508
2544
  l.value.line.tag.formatter,
2509
- t.value,
2545
+ a.value,
2510
2546
  e.name,
2511
2547
  {
2512
- datapoint: t,
2548
+ datapoint: a,
2513
2549
  seriesIndex: i,
2514
2550
  serieName: e.name
2515
2551
  }
2516
2552
  )
2517
- }, null, 12, Zu)
2518
- ], 12, qu)) : h("", !0),
2519
- t && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), r("foreignObject", {
2553
+ }, null, 12, Qu)
2554
+ ], 12, Ku)) : h("", !0),
2555
+ a && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), r("foreignObject", {
2520
2556
  key: 1,
2521
- x: t.x,
2522
- y: t.y - 20,
2557
+ x: a.x,
2558
+ y: a.y - 20,
2523
2559
  height: 24,
2524
2560
  width: "150",
2525
2561
  style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2526
2562
  }, [
2527
2563
  p("div", {
2528
- style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
2564
+ style: $(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
2529
2565
  innerHTML: v(se)(
2530
2566
  l.value.line.tag.formatter,
2531
- t.value,
2567
+ a.value,
2532
2568
  e.name,
2533
2569
  {
2534
- datapoint: t,
2570
+ datapoint: a,
2535
2571
  seriesIndex: i,
2536
2572
  serieName: e.name
2537
2573
  }
2538
2574
  )
2539
- }, null, 12, Ku)
2540
- ], 12, Ju)) : h("", !0)
2575
+ }, null, 12, ei)
2576
+ ], 12, ju)) : h("", !0)
2541
2577
  ], 64))
2542
2578
  ], 64))), 128))
2543
2579
  ], 64))), 128))
2544
2580
  ])),
2545
- (n(!0), r(d, null, w(te.value, (e, u) => (n(), r(d, {
2581
+ (n(!0), r(d, null, w(ae.value, (e, u) => (n(), r(d, {
2546
2582
  key: `xLabel_line_${e.id}`
2547
2583
  }, [
2548
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
2584
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
2549
2585
  key: `xLabel_line_${u}_${i}`
2550
2586
  }, [
2551
- t && i === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), r("text", {
2587
+ a && i === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), r("text", {
2552
2588
  key: 0,
2553
- x: t.x - y.value.plotLabels,
2554
- y: t.y,
2589
+ x: a.x - y.value.plotLabels,
2590
+ y: a.y,
2555
2591
  "font-size": y.value.plotLabels,
2556
2592
  "text-anchor": "end",
2557
2593
  fill: e.color,
2558
- innerHTML: v(Zl)({
2594
+ innerHTML: v(Jl)({
2559
2595
  content: e.name,
2560
2596
  fontSize: y.value.plotLabels,
2561
2597
  fill: e.color,
2562
- x: t.x - y.value.plotLabels,
2563
- y: t.y,
2598
+ x: a.x - y.value.plotLabels,
2599
+ y: a.y,
2564
2600
  maxWords: 2
2565
2601
  }),
2566
2602
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2567
- }, null, 12, ju)) : h("", !0),
2568
- t && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), r("text", {
2603
+ }, null, 12, ti)) : h("", !0),
2604
+ a && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), r("text", {
2569
2605
  key: 1,
2570
- x: t.x + y.value.plotLabels,
2571
- y: t.y,
2606
+ x: a.x + y.value.plotLabels,
2607
+ y: a.y,
2572
2608
  "font-size": y.value.plotLabels,
2573
2609
  "text-anchor": "start",
2574
2610
  fill: e.color,
2575
- innerHTML: v(Zl)({
2611
+ innerHTML: v(Jl)({
2576
2612
  content: e.name,
2577
2613
  fontSize: y.value.plotLabels,
2578
2614
  fill: e.color,
2579
- x: t.x + y.value.plotLabels,
2580
- y: t.y,
2615
+ x: a.x + y.value.plotLabels,
2616
+ y: a.y,
2581
2617
  maxWords: 2
2582
2618
  }),
2583
2619
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2584
- }, null, 12, ei)) : h("", !0)
2620
+ }, null, 12, ai)) : h("", !0)
2585
2621
  ], 64))), 128))
2586
2622
  ], 64))), 128)),
2587
- (n(!0), r(d, null, w(be.value, (e, u) => (n(), r(d, {
2623
+ (n(!0), r(d, null, w(xe.value, (e, u) => (n(), r(d, {
2588
2624
  key: `xLabel_plot_${e.id}`
2589
2625
  }, [
2590
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
2626
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
2591
2627
  key: `xLabel_plot_${u}_${i}`
2592
2628
  }, [
2593
- t && i === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), r("text", {
2629
+ a && i === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), r("text", {
2594
2630
  key: 0,
2595
- x: t.x - y.value.plotLabels,
2596
- y: t.y,
2631
+ x: a.x - y.value.plotLabels,
2632
+ y: a.y,
2597
2633
  "font-size": y.value.plotLabels,
2598
2634
  "text-anchor": "end",
2599
2635
  fill: e.color,
2600
- innerHTML: v(Zl)({
2636
+ innerHTML: v(Jl)({
2601
2637
  content: e.name,
2602
2638
  fontSize: y.value.plotLabels,
2603
2639
  fill: e.color,
2604
- x: t.x - y.value.plotLabels,
2605
- y: t.y,
2640
+ x: a.x - y.value.plotLabels,
2641
+ y: a.y,
2606
2642
  maxWords: 2
2607
2643
  }),
2608
2644
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2609
- }, null, 12, li)) : h("", !0),
2610
- t && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), r("text", {
2645
+ }, null, 12, oi)) : h("", !0),
2646
+ a && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), r("text", {
2611
2647
  key: 1,
2612
- x: t.x + y.value.plotLabels,
2613
- y: t.y,
2648
+ x: a.x + y.value.plotLabels,
2649
+ y: a.y,
2614
2650
  "font-size": y.value.plotLabels,
2615
2651
  "text-anchor": "start",
2616
2652
  fill: e.color,
2617
- innerHTML: v(Zl)({
2653
+ innerHTML: v(Jl)({
2618
2654
  content: e.name,
2619
2655
  fontSize: y.value.plotLabels,
2620
2656
  fill: e.color,
2621
- x: t.x + y.value.plotLabels,
2622
- y: t.y,
2657
+ x: a.x + y.value.plotLabels,
2658
+ y: a.y,
2623
2659
  maxWords: 2
2624
2660
  }),
2625
2661
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2626
- }, null, 12, ai)) : h("", !0)
2662
+ }, null, 12, si)) : h("", !0)
2627
2663
  ], 64))), 128))
2628
2664
  ], 64))), 128)),
2629
- (n(!0), r(d, null, w([...be.value, ...te.value, ...Me.value], (e, u) => (n(), r(d, {
2665
+ (n(!0), r(d, null, w([...xe.value, ...ae.value, ...Ce.value], (e, u) => (n(), r(d, {
2630
2666
  key: `progression-${u}`
2631
2667
  }, [
2632
- Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(_e)(e.plots).trend) ? (n(), r("g", ti, [
2668
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v($e)(e.plots).trend) ? (n(), r("g", ui, [
2633
2669
  p("defs", null, [
2634
2670
  p("marker", {
2635
2671
  id: `progression_arrow_${u}`,
@@ -2648,40 +2684,40 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2648
2684
  stroke: l.value.chart.backgroundColor,
2649
2685
  "stroke-width": "1",
2650
2686
  "stroke-linejoin": "round"
2651
- }, null, 8, si)
2652
- ], 8, oi)
2687
+ }, null, 8, ni)
2688
+ ], 8, ii)
2653
2689
  ]),
2654
2690
  e.plots.length > 1 ? (n(), r("line", {
2655
2691
  key: 0,
2656
- x1: v(_e)(e.plots).x1 + (e.type === "bar" ? He() : 0),
2657
- x2: v(_e)(e.plots).x2 + (e.type === "bar" ? He() : 0),
2658
- y1: v(E)(v(_e)(e.plots).y1),
2659
- y2: v(E)(v(_e)(e.plots).y2),
2692
+ x1: v($e)(e.plots).x1 + (e.type === "bar" ? Ee() : 0),
2693
+ x2: v($e)(e.plots).x2 + (e.type === "bar" ? Ee() : 0),
2694
+ y1: v(Y)(v($e)(e.plots).y1),
2695
+ y2: v(Y)(v($e)(e.plots).y2),
2660
2696
  "stroke-width": 1,
2661
2697
  stroke: l.value.chart.backgroundColor,
2662
2698
  "stroke-dasharray": 2,
2663
2699
  "stroke-linecap": "round",
2664
2700
  "stroke-linejoin": "round",
2665
2701
  "marker-end": `url(#progression_arrow_${u})`
2666
- }, null, 8, ui)) : h("", !0),
2702
+ }, null, 8, ri)) : h("", !0),
2667
2703
  e.plots.length > 1 ? (n(), r("line", {
2668
2704
  key: 1,
2669
- x1: v(_e)(e.plots).x1 + (e.type === "bar" ? He() : 0),
2670
- x2: v(_e)(e.plots).x2 + (e.type === "bar" ? He() : 0),
2671
- y1: v(E)(v(_e)(e.plots).y1),
2672
- y2: v(E)(v(_e)(e.plots).y2),
2705
+ x1: v($e)(e.plots).x1 + (e.type === "bar" ? Ee() : 0),
2706
+ x2: v($e)(e.plots).x2 + (e.type === "bar" ? Ee() : 0),
2707
+ y1: v(Y)(v($e)(e.plots).y1),
2708
+ y2: v(Y)(v($e)(e.plots).y2),
2673
2709
  "stroke-width": 1,
2674
2710
  stroke: e.color,
2675
2711
  "stroke-dasharray": 2,
2676
2712
  "stroke-linecap": "round",
2677
2713
  "stroke-linejoin": "round",
2678
2714
  "marker-end": `url(#progression_arrow_${u})`
2679
- }, null, 8, ii)) : h("", !0),
2715
+ }, null, 8, ci)) : h("", !0),
2680
2716
  e.plots.length > 1 ? (n(), r("text", {
2681
2717
  key: 2,
2682
2718
  "text-anchor": "middle",
2683
- x: v(_e)(e.plots).x2 + (e.type === "bar" ? He() : 0),
2684
- y: v(_e)(e.plots).y2 - 12,
2719
+ x: v($e)(e.plots).x2 + (e.type === "bar" ? Ee() : 0),
2720
+ y: v($e)(e.plots).y2 - 12,
2685
2721
  "font-size": y.value.plotLabels,
2686
2722
  fill: e.color,
2687
2723
  stroke: l.value.chart.backgroundColor,
@@ -2689,17 +2725,17 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2689
2725
  "stroke-linecap": "round",
2690
2726
  "stroke-linejoin": "round",
2691
2727
  "paint-order": "stroke fill"
2692
- }, ae(v(Ve)({
2693
- v: v(_e)(e.plots).trend * 100,
2728
+ }, te(v(Fe)({
2729
+ v: v($e)(e.plots).trend * 100,
2694
2730
  s: "%",
2695
2731
  r: 2
2696
- })), 9, ni)) : h("", !0)
2732
+ })), 9, vi)) : h("", !0)
2697
2733
  ])) : h("", !0)
2698
2734
  ], 64))), 128)),
2699
2735
  f.value.useIndividualScale && !f.value.isStacked ? (n(), r(d, { key: 13 }, [
2700
2736
  p("defs", null, [
2701
2737
  (n(!0), r(d, null, w(Sl.value, (e, u) => (n(), r("linearGradient", {
2702
- id: `individual_scale_gradient_${D.value}_${u}`,
2738
+ id: `individual_scale_gradient_${E.value}_${u}`,
2703
2739
  x1: "0%",
2704
2740
  x2: "100%",
2705
2741
  y1: "0%",
@@ -2709,52 +2745,52 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2709
2745
  offset: "0%",
2710
2746
  "stop-color": l.value.chart.backgroundColor,
2711
2747
  "stop-opacity": "0"
2712
- }, null, 8, ci),
2748
+ }, null, 8, hi),
2713
2749
  p("stop", {
2714
2750
  offset: "100%",
2715
2751
  "stop-color": e.color,
2716
2752
  "stop-opacity": "0.2"
2717
- }, null, 8, vi)
2718
- ], 8, ri))), 256))
2753
+ }, null, 8, fi)
2754
+ ], 8, di))), 256))
2719
2755
  ]),
2720
2756
  (n(!0), r(d, null, w(Sl.value, (e, u) => (n(), r("rect", {
2721
- x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + G.value - c.value.individualOffsetX,
2757
+ x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + U.value - c.value.individualOffsetX,
2722
2758
  y: c.value.top,
2723
2759
  width: l.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
2724
2760
  height: c.value.height < 0 ? 10 : c.value.height,
2725
- fill: I.value === e.groupId ? `url(#individual_scale_gradient_${D.value}_${u})` : "transparent",
2726
- onMouseenter: (t) => I.value = e.groupId,
2727
- onMouseleave: s[0] || (s[0] = (t) => I.value = null)
2728
- }, null, 40, di))), 256))
2761
+ fill: I.value === e.groupId ? `url(#individual_scale_gradient_${E.value}_${u})` : "transparent",
2762
+ onMouseenter: (a) => I.value = e.groupId,
2763
+ onMouseleave: s[0] || (s[0] = (a) => I.value = null)
2764
+ }, null, 40, gi))), 256))
2729
2765
  ], 64)) : h("", !0),
2730
2766
  p("g", null, [
2731
2767
  l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (n(), r("text", {
2732
2768
  key: 0,
2733
2769
  ref_key: "yAxisLabel",
2734
- ref: la,
2770
+ ref: tt,
2735
2771
  "font-size": y.value.yAxis,
2736
2772
  fill: l.value.chart.grid.labels.color,
2737
2773
  transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${c.value.top + c.value.height / 2}) rotate(-90)`,
2738
2774
  "text-anchor": "middle",
2739
2775
  style: { transition: "none" }
2740
- }, ae(l.value.chart.grid.labels.axis.yLabel), 9, hi)) : h("", !0),
2776
+ }, te(l.value.chart.grid.labels.axis.yLabel), 9, mi)) : h("", !0),
2741
2777
  l.value.chart.grid.labels.axis.xLabel ? (n(), r("text", {
2742
2778
  key: 1,
2743
2779
  ref_key: "xAxisLabel",
2744
- ref: ea,
2780
+ ref: lt,
2745
2781
  "text-anchor": "middle",
2746
- x: j.value / 2,
2782
+ x: ee.value / 2,
2747
2783
  y: ve.value - 3,
2748
2784
  "font-size": y.value.yAxis,
2749
2785
  fill: l.value.chart.grid.labels.color
2750
- }, ae(l.value.chart.grid.labels.axis.xLabel), 9, fi)) : h("", !0)
2786
+ }, te(l.value.chart.grid.labels.axis.xLabel), 9, bi)) : h("", !0)
2751
2787
  ]),
2752
2788
  l.value.chart.grid.labels.xAxisLabels.show ? (n(), r("g", {
2753
2789
  key: 14,
2754
2790
  ref_key: "timeLabelsEls",
2755
2791
  ref: ul
2756
2792
  }, [
2757
- a.$slots["time-label"] ? (n(!0), r(d, { key: 0 }, w(ga.value, (e, u) => W(a.$slots, "time-label", al({
2793
+ t.$slots["time-label"] ? (n(!0), r(d, { key: 0 }, w(mt.value, (e, u) => B(t.$slots, "time-label", tl({
2758
2794
  key: `time_label_${e.id}`,
2759
2795
  ref_for: !0
2760
2796
  }, {
@@ -2767,7 +2803,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2767
2803
  content: e.text,
2768
2804
  textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2769
2805
  show: e && e.text
2770
- }), void 0, !0)), 128)) : (n(!0), r(d, { key: 1 }, w(ga.value, (e, u) => (n(), r("g", {
2806
+ }), void 0, !0)), 128)) : (n(!0), r(d, { key: 1 }, w(mt.value, (e, u) => (n(), r("g", {
2771
2807
  key: `time_label_${u}`
2772
2808
  }, [
2773
2809
  e && e.text ? (n(), r(d, { key: 0 }, [
@@ -2780,17 +2816,17 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2780
2816
  fill: l.value.chart.grid.labels.xAxisLabels.color,
2781
2817
  transform: `translate(${c.value.left + c.value.width / L.value * u + c.value.width / L.value / 2}, ${c.value.bottom + y.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2782
2818
  style: $({
2783
- cursor: Ea() ? "pointer" : "default"
2819
+ cursor: Yt() ? "pointer" : "default"
2784
2820
  }),
2785
- innerHTML: v(ts)({
2821
+ innerHTML: v(us)({
2786
2822
  content: String(e.text),
2787
2823
  fontSize: y.value.xAxis,
2788
2824
  fill: l.value.chart.grid.labels.xAxisLabels.color,
2789
2825
  x: 0,
2790
2826
  y: 0
2791
2827
  }),
2792
- onClick: () => Ga(e, u)
2793
- }, null, 12, mi)) : (n(), r("text", {
2828
+ onClick: () => Ut(e, u)
2829
+ }, null, 12, pi)) : (n(), r("text", {
2794
2830
  key: 0,
2795
2831
  class: "vue-data-ui-time-label",
2796
2832
  "text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
@@ -2798,15 +2834,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2798
2834
  fill: l.value.chart.grid.labels.xAxisLabels.color,
2799
2835
  transform: `translate(${c.value.left + c.value.width / L.value * u + c.value.width / L.value / 2}, ${c.value.bottom + y.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2800
2836
  style: $({
2801
- cursor: Ea() ? "pointer" : "default"
2837
+ cursor: Yt() ? "pointer" : "default"
2802
2838
  }),
2803
- onClick: () => Ga(e, u)
2804
- }, ae(e.text || ""), 13, gi))
2839
+ onClick: () => Ut(e, u)
2840
+ }, te(e.text || ""), 13, xi))
2805
2841
  ], 64)) : h("", !0)
2806
2842
  ]))), 128))
2807
2843
  ], 512)) : h("", !0),
2808
- nt.value.length && !f.value.isStacked ? (n(), r("g", bi, [
2809
- (n(!0), r(d, null, w(nt.value, (e) => (n(), r("g", {
2844
+ ra.value.length && !f.value.isStacked ? (n(), r("g", yi, [
2845
+ (n(!0), r(d, null, w(ra.value, (e) => (n(), r("g", {
2810
2846
  key: e.uid
2811
2847
  }, [
2812
2848
  e.yTop && e.show && isFinite(e.yTop) ? (n(), r("line", {
@@ -2820,7 +2856,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2820
2856
  "stroke-dasharray": e.config.line.strokeDasharray,
2821
2857
  "stroke-linecap": "round",
2822
2858
  style: { animation: "none !important" }
2823
- }, null, 8, xi)) : h("", !0),
2859
+ }, null, 8, ki)) : h("", !0),
2824
2860
  e.yBottom && e.show && isFinite(e.yBottom) ? (n(), r("line", {
2825
2861
  key: 1,
2826
2862
  x1: e.x1,
@@ -2832,17 +2868,17 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2832
2868
  "stroke-dasharray": e.config.line.strokeDasharray,
2833
2869
  "stroke-linecap": "round",
2834
2870
  style: { animation: "none !important" }
2835
- }, null, 8, pi)) : h("", !0),
2871
+ }, null, 8, _i)) : h("", !0),
2836
2872
  e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (n(), r("rect", {
2837
2873
  key: 2,
2838
2874
  y: Math.min(e.yTop, e.yBottom),
2839
2875
  x: e.x1,
2840
2876
  width: c.value.width,
2841
2877
  height: v(P)(e.areaHeight, 0),
2842
- fill: v(Ce)(e.config.area.fill, e.config.area.opacity),
2878
+ fill: v(ze)(e.config.area.fill, e.config.area.opacity),
2843
2879
  style: { animation: "none !important" }
2844
- }, null, 8, yi)) : h("", !0),
2845
- e.config.label.text && e.show && isFinite(e._box.y) ? (n(), r("rect", al({
2880
+ }, null, 8, wi)) : h("", !0),
2881
+ e.config.label.text && e.show && isFinite(e._box.y) ? (n(), r("rect", tl({
2846
2882
  key: 3,
2847
2883
  class: "vue-ui-xy-annotation-label-box"
2848
2884
  }, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : h("", !0),
@@ -2855,12 +2891,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2855
2891
  "font-size": e.config.label.fontSize,
2856
2892
  fill: e.config.label.color,
2857
2893
  "text-anchor": e.config.label.textAnchor
2858
- }, ae(e.config.label.text), 9, ki)) : h("", !0)
2894
+ }, te(e.config.label.text), 9, Si)) : h("", !0)
2859
2895
  ]))), 128))
2860
2896
  ])) : h("", !0),
2861
- l.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(V.value)) ? (n(), r("g", _i, [
2897
+ l.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(V.value)) ? (n(), r("g", $i, [
2862
2898
  (n(), r("foreignObject", {
2863
- x: Oo(),
2899
+ x: Po(),
2864
2900
  y: c.value.bottom,
2865
2901
  width: "200",
2866
2902
  height: "40",
@@ -2868,40 +2904,40 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2868
2904
  }, [
2869
2905
  p("div", {
2870
2906
  ref_key: "timeTagEl",
2871
- ref: kt,
2907
+ ref: _a,
2872
2908
  class: "vue-ui-xy-time-tag",
2873
2909
  style: $(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${l.value.chart.timeTag.backgroundColor};color:${l.value.chart.timeTag.color};font-size:${l.value.chart.timeTag.fontSize}px`),
2874
- innerHTML: No.value
2875
- }, null, 12, Si)
2876
- ], 8, wi)),
2910
+ innerHTML: Fo.value
2911
+ }, null, 12, Mi)
2912
+ ], 8, Li)),
2877
2913
  p("circle", {
2878
2914
  cx: c.value.left + c.value.width / L.value * ((_.value !== null ? _.value : 0) || (V.value !== null ? V.value : 0)) + c.value.width / L.value / 2,
2879
2915
  cy: c.value.bottom,
2880
2916
  r: l.value.chart.timeTag.circleMarker.radius,
2881
2917
  fill: l.value.chart.timeTag.circleMarker.color
2882
- }, null, 8, $i)
2918
+ }, null, 8, Ai)
2883
2919
  ])) : h("", !0)
2884
2920
  ])) : h("", !0),
2885
- Pa.value ? (n(), r("rect", al({ key: 2 }, oo.value, {
2921
+ Ft.value ? (n(), r("rect", tl({ key: 2 }, so.value, {
2886
2922
  "data-start": m.value.start,
2887
2923
  "data-end": m.value.end
2888
- }), null, 16, Li)) : h("", !0),
2889
- W(a.$slots, "svg", {
2924
+ }), null, 16, Ci)) : h("", !0),
2925
+ B(t.$slots, "svg", {
2890
2926
  svg: {
2891
- ...lo.value,
2892
- data: [...te.value, ...Me.value, ...be.value],
2927
+ ...to.value,
2928
+ data: [...ae.value, ...Ce.value, ...xe.value],
2893
2929
  drawingArea: c.value
2894
2930
  }
2895
2931
  }, void 0, !0)
2896
2932
  ], 512)
2897
- ], 46, Ss)),
2898
- a.$slots.watermark ? (n(), r("div", Mi, [
2899
- W(a.$slots, "watermark", We(Xe({ isPrinting: v(va) || v(Ra) })), void 0, !0)
2933
+ ], 46, Ms)),
2934
+ t.$slots.watermark ? (n(), r("div", Ti, [
2935
+ B(t.$slots, "watermark", ke(_e({ isPrinting: v(dt) || v(Bt) })), void 0, !0)
2900
2936
  ])) : h("", !0),
2901
- (n(!0), r(d, null, w(te.value, (e, u) => (n(), r(d, {
2937
+ (n(!0), r(d, null, w(ae.value, (e, u) => (n(), r(d, {
2902
2938
  key: `tag_line_${e.id}`
2903
2939
  }, [
2904
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
2940
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
2905
2941
  key: `tag_line_${u}_${i}`
2906
2942
  }, [
2907
2943
  [V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (n(), r("div", {
@@ -2915,15 +2951,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2915
2951
  top: v(Ue)({
2916
2952
  svgElement: ue.value,
2917
2953
  x: c.value.right + l.value.line.tag.fontSize / 1.5,
2918
- y: t.y,
2919
- element: Pe.value[`${u}_${i}_right_line`],
2954
+ y: a.y,
2955
+ element: Re.value[`${u}_${i}_right_line`],
2920
2956
  position: "right"
2921
2957
  }).top + "px",
2922
2958
  left: v(Ue)({
2923
2959
  svgElement: ue.value,
2924
2960
  x: c.value.right + l.value.line.tag.fontSize / 1.5,
2925
- y: t.y,
2926
- element: Pe.value[`${u}_${i}_right_line`],
2961
+ y: a.y,
2962
+ element: Re.value[`${u}_${i}_right_line`],
2927
2963
  position: "right"
2928
2964
  }).left + "px",
2929
2965
  height: "fit-content",
@@ -2935,26 +2971,26 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2935
2971
  opacity: 1
2936
2972
  })
2937
2973
  }, [
2938
- (n(), r("svg", Ai, [
2974
+ (n(), r("svg", zi, [
2939
2975
  p("path", {
2940
2976
  d: "M 0,10 10,0 10,20 Z",
2941
2977
  fill: e.color,
2942
2978
  stroke: "none"
2943
- }, null, 8, Ci)
2979
+ }, null, 8, Ii)
2944
2980
  ])),
2945
2981
  p("div", {
2946
2982
  class: "vue-ui-xy-tag-content",
2947
2983
  innerHTML: v(se)(
2948
2984
  l.value.line.tag.formatter,
2949
- t.value,
2985
+ a.value,
2950
2986
  e.name,
2951
2987
  {
2952
- datapoint: t,
2988
+ datapoint: a,
2953
2989
  seriesIndex: i,
2954
2990
  serieName: e.name
2955
2991
  }
2956
2992
  )
2957
- }, null, 8, Ti)
2993
+ }, null, 8, Oi)
2958
2994
  ], 4)) : h("", !0),
2959
2995
  [V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (n(), r("div", {
2960
2996
  key: 1,
@@ -2967,15 +3003,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2967
3003
  top: v(Ue)({
2968
3004
  svgElement: ue.value,
2969
3005
  x: c.value.left - l.value.line.tag.fontSize / 1.5,
2970
- y: t.y,
2971
- element: Pe.value[`${u}_${i}_left_line`],
3006
+ y: a.y,
3007
+ element: Re.value[`${u}_${i}_left_line`],
2972
3008
  position: "left"
2973
3009
  }).top + "px",
2974
3010
  left: v(Ue)({
2975
3011
  svgElement: ue.value,
2976
3012
  x: c.value.left - l.value.line.tag.fontSize / 1.5,
2977
- y: t.y,
2978
- element: Pe.value[`${u}_${i}_left_line`],
3013
+ y: a.y,
3014
+ element: Re.value[`${u}_${i}_left_line`],
2979
3015
  position: "left"
2980
3016
  }).left + "px",
2981
3017
  height: "fit-content",
@@ -2987,33 +3023,33 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2987
3023
  opacity: 1
2988
3024
  })
2989
3025
  }, [
2990
- (n(), r("svg", zi, [
3026
+ (n(), r("svg", Ni, [
2991
3027
  p("path", {
2992
3028
  d: "M 0,0 10,10 0,20 Z",
2993
3029
  fill: e.color,
2994
3030
  stroke: "none"
2995
- }, null, 8, Ii)
3031
+ }, null, 8, Vi)
2996
3032
  ])),
2997
3033
  p("div", {
2998
3034
  class: "vue-ui-xy-tag-content",
2999
3035
  innerHTML: v(se)(
3000
3036
  l.value.line.tag.formatter,
3001
- t.value,
3037
+ a.value,
3002
3038
  e.name,
3003
3039
  {
3004
- datapoint: t,
3040
+ datapoint: a,
3005
3041
  seriesIndex: i,
3006
3042
  serieName: e.name
3007
3043
  }
3008
3044
  )
3009
- }, null, 8, Oi)
3045
+ }, null, 8, Pi)
3010
3046
  ], 4)) : h("", !0)
3011
3047
  ], 64))), 128))
3012
3048
  ], 64))), 128)),
3013
- (n(!0), r(d, null, w(be.value, (e, u) => (n(), r(d, {
3049
+ (n(!0), r(d, null, w(xe.value, (e, u) => (n(), r(d, {
3014
3050
  key: `tag_plot_${e.id}`
3015
3051
  }, [
3016
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
3052
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
3017
3053
  key: `tag_plot_${u}_${i}`
3018
3054
  }, [
3019
3055
  [V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (n(), r("div", {
@@ -3027,15 +3063,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3027
3063
  top: v(Ue)({
3028
3064
  svgElement: ue.value,
3029
3065
  x: c.value.right + l.value.plot.tag.fontSize / 1.5,
3030
- y: t.y,
3031
- element: Pe.value[`${u}_${i}_right_plot`],
3066
+ y: a.y,
3067
+ element: Re.value[`${u}_${i}_right_plot`],
3032
3068
  position: "right"
3033
3069
  }).top + "px",
3034
3070
  left: v(Ue)({
3035
3071
  svgElement: ue.value,
3036
3072
  x: c.value.right + l.value.plot.tag.fontSize / 1.5,
3037
- y: t.y,
3038
- element: Pe.value[`${u}_${i}_right_plot`],
3073
+ y: a.y,
3074
+ element: Re.value[`${u}_${i}_right_plot`],
3039
3075
  position: "right"
3040
3076
  }).left + "px",
3041
3077
  height: "fit-content",
@@ -3047,26 +3083,26 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3047
3083
  opacity: 1
3048
3084
  })
3049
3085
  }, [
3050
- (n(), r("svg", Ni, [
3086
+ (n(), r("svg", Fi, [
3051
3087
  p("path", {
3052
3088
  d: "M 0,10 10,0 10,20 Z",
3053
3089
  fill: e.color,
3054
3090
  stroke: "none"
3055
- }, null, 8, Vi)
3091
+ }, null, 8, Ri)
3056
3092
  ])),
3057
3093
  p("div", {
3058
3094
  class: "vue-ui-xy-tag-content",
3059
3095
  innerHTML: v(se)(
3060
3096
  l.value.plot.tag.formatter,
3061
- t.value,
3097
+ a.value,
3062
3098
  e.name,
3063
3099
  {
3064
- datapoint: t,
3100
+ datapoint: a,
3065
3101
  seriesIndex: i,
3066
3102
  serieName: e.name
3067
3103
  }
3068
3104
  )
3069
- }, null, 8, Pi)
3105
+ }, null, 8, Bi)
3070
3106
  ], 4)) : h("", !0),
3071
3107
  [V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (n(), r("div", {
3072
3108
  key: 1,
@@ -3079,15 +3115,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3079
3115
  top: v(Ue)({
3080
3116
  svgElement: ue.value,
3081
3117
  x: c.value.left - l.value.plot.tag.fontSize / 1.5,
3082
- y: t.y,
3083
- element: Pe.value[`${u}_${i}_left_plot`],
3118
+ y: a.y,
3119
+ element: Re.value[`${u}_${i}_left_plot`],
3084
3120
  position: "left"
3085
3121
  }).top + "px",
3086
3122
  left: v(Ue)({
3087
3123
  svgElement: ue.value,
3088
3124
  x: c.value.left - l.value.plot.tag.fontSize / 1.5,
3089
- y: t.y,
3090
- element: Pe.value[`${u}_${i}_left_plot`],
3125
+ y: a.y,
3126
+ element: Re.value[`${u}_${i}_left_plot`],
3091
3127
  position: "left"
3092
3128
  }).left + "px",
3093
3129
  height: "fit-content",
@@ -3099,34 +3135,34 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3099
3135
  opacity: 1
3100
3136
  })
3101
3137
  }, [
3102
- (n(), r("svg", Fi, [
3138
+ (n(), r("svg", Hi, [
3103
3139
  p("path", {
3104
3140
  d: "M 0,0 10,10 0,20 Z",
3105
3141
  fill: e.color,
3106
3142
  stroke: "none"
3107
- }, null, 8, Ri)
3143
+ }, null, 8, Di)
3108
3144
  ])),
3109
3145
  p("div", {
3110
3146
  class: "vue-ui-xy-tag-content",
3111
3147
  innerHTML: v(se)(
3112
3148
  l.value.plot.tag.formatter,
3113
- t.value,
3149
+ a.value,
3114
3150
  e.name,
3115
3151
  {
3116
- datapoint: t,
3152
+ datapoint: a,
3117
3153
  seriesIndex: i,
3118
3154
  serieName: e.name
3119
3155
  }
3120
3156
  )
3121
- }, null, 8, Bi)
3157
+ }, null, 8, Ei)
3122
3158
  ], 4)) : h("", !0)
3123
3159
  ], 64))), 128))
3124
3160
  ], 64))), 128)),
3125
- l.value.chart.zoom.show && Ie.value > 6 && ra.value && Za.value ? (n(), Ae(ps, {
3161
+ l.value.chart.zoom.show && Ne.value > 6 && ct.value && Jt.value ? (n(), Te(_s, {
3126
3162
  key: 5,
3127
3163
  ref_key: "chartSlicer",
3128
- ref: ze,
3129
- allMinimaps: Co.value,
3164
+ ref: Oe,
3165
+ allMinimaps: Io.value,
3130
3166
  background: l.value.chart.zoom.color,
3131
3167
  borderColor: l.value.chart.backgroundColor,
3132
3168
  customFormat: l.value.chart.zoom.customFormat,
@@ -3140,12 +3176,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3140
3176
  useResetSlot: l.value.chart.zoom.useResetSlot,
3141
3177
  immediate: !l.value.chart.zoom.preview.enable,
3142
3178
  inputColor: l.value.chart.zoom.color,
3143
- isPreview: Pa.value,
3179
+ isPreview: Ft.value,
3144
3180
  labelLeft: de.value[0] ? de.value[0].text : "",
3145
3181
  labelRight: de.value.at(-1) ? de.value.at(-1).text : "",
3146
- max: Ie.value,
3182
+ max: Ne.value,
3147
3183
  min: 0,
3148
- minimap: Ao.value,
3184
+ minimap: zo.value,
3149
3185
  minimapCompact: l.value.chart.zoom.minimap.compact,
3150
3186
  minimapFrameColor: l.value.chart.zoom.minimap.frameColor,
3151
3187
  minimapIndicatorColor: l.value.chart.zoom.minimap.indicatorColor,
@@ -3155,37 +3191,37 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3155
3191
  minimapSelectedColorOpacity: l.value.chart.zoom.minimap.selectedColorOpacity,
3156
3192
  minimapSelectedIndex: _.value,
3157
3193
  minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
3158
- preciseLabels: dt.value.length ? dt.value : fa.value,
3159
- refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...Ql.dataset.map((e) => Be(e.series).length)),
3194
+ preciseLabels: ha.value.length ? ha.value : gt.value,
3195
+ refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...jl.dataset.map((e) => De(e.series).length)),
3160
3196
  refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
3161
3197
  selectColor: l.value.chart.zoom.highlightColor,
3162
3198
  selectedSeries: je.value,
3163
3199
  smoothMinimap: l.value.chart.zoom.minimap.smooth,
3164
3200
  start: m.value.start,
3165
3201
  textColor: l.value.chart.color,
3166
- timeLabels: fa.value,
3202
+ timeLabels: gt.value,
3167
3203
  usePreciseLabels: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.zoom.useDefaultFormat,
3168
3204
  valueEnd: m.value.end,
3169
3205
  valueStart: m.value.start,
3170
3206
  verticalHandles: l.value.chart.zoom.minimap.verticalHandles,
3171
- onFutureEnd: s[1] || (s[1] = (e) => Fa("end", e)),
3172
- onFutureStart: s[2] || (s[2] = (e) => Fa("start", e)),
3173
- onReset: xo,
3174
- onTrapMouse: fo,
3175
- "onUpdate:end": bo,
3176
- "onUpdate:start": mo
3207
+ onFutureEnd: s[1] || (s[1] = (e) => Rt("end", e)),
3208
+ onFutureStart: s[2] || (s[2] = (e) => Rt("start", e)),
3209
+ onReset: po,
3210
+ onTrapMouse: go,
3211
+ "onUpdate:end": xo,
3212
+ "onUpdate:start": bo
3177
3213
  }, {
3178
- "reset-action": Q(({ reset: e }) => [
3179
- W(a.$slots, "reset-action", We(Xe({ reset: e })), void 0, !0)
3214
+ "reset-action": G(({ reset: e }) => [
3215
+ B(t.$slots, "reset-action", ke(_e({ reset: e })), void 0, !0)
3180
3216
  ]),
3181
3217
  _: 3
3182
3218
  }, 8, ["allMinimaps", "background", "borderColor", "customFormat", "cutNullValues", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "useResetSlot", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapLineColor", "minimapMerged", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapSelectionRadius", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "smoothMinimap", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles"])) : h("", !0),
3183
3219
  p("div", {
3184
- id: `legend-bottom-${D.value}`
3185
- }, null, 8, Hi),
3186
- Ia.value ? (n(), Ae(Xo, {
3220
+ id: `legend-bottom-${E.value}`
3221
+ }, null, 8, Yi),
3222
+ Ot.value ? (n(), Te(qo, {
3187
3223
  key: 6,
3188
- to: l.value.chart.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
3224
+ to: l.value.chart.legend.position === "top" ? `#legend-top-${E.value}` : `#legend-bottom-${E.value}`
3189
3225
  }, [
3190
3226
  l.value.chart.legend.show ? (n(), r("div", {
3191
3227
  key: 0,
@@ -3196,12 +3232,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3196
3232
  fontSize: `var(--legend-font-size, ${l.value.chart.legend.fontSize ?? 14}px)`
3197
3233
  })
3198
3234
  }, [
3199
- (n(!0), r(d, null, w(Le.value, (e, u) => (n(), r("div", {
3235
+ (n(!0), r(d, null, w(me.value, (e, u) => (n(), r("div", {
3200
3236
  key: `div_legend_item_${u}`,
3201
- onClick: (t) => ot(e),
3202
- class: ll({ "vue-ui-xy-legend-item-alone": Le.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ee.value.includes(e.id) })
3237
+ onClick: (a) => El(e),
3238
+ class: ll({ "vue-ui-xy-legend-item-alone": me.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": J.value.includes(e.id) })
3203
3239
  }, [
3204
- bl.value[e.type] === "line" ? (n(), r("svg", Ei, [
3240
+ bl.value[e.type] === "line" ? (n(), r("svg", Xi, [
3205
3241
  p("rect", {
3206
3242
  x: "0",
3207
3243
  y: "7.5",
@@ -3211,8 +3247,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3211
3247
  height: "3",
3212
3248
  width: "20",
3213
3249
  fill: e.color
3214
- }, null, 8, Yi),
3215
- vl(Kl, {
3250
+ }, null, 8, Gi),
3251
+ vl(Ql, {
3216
3252
  plot: { x: 10, y: 9 },
3217
3253
  radius: 4,
3218
3254
  color: e.color,
@@ -3220,8 +3256,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3220
3256
  stroke: l.value.chart.backgroundColor,
3221
3257
  strokeWidth: 0.5
3222
3258
  }, null, 8, ["color", "shape", "stroke"])
3223
- ])) : bl.value[e.type] === "bar" ? (n(), r("svg", Wi, [
3224
- bl.value[e.type] === "bar" && a.$slots.pattern ? (n(), r("rect", {
3259
+ ])) : bl.value[e.type] === "bar" ? (n(), r("svg", Ui, [
3260
+ bl.value[e.type] === "bar" && t.$slots.pattern ? (n(), r("rect", {
3225
3261
  key: 0,
3226
3262
  x: "4",
3227
3263
  y: "4",
@@ -3230,7 +3266,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3230
3266
  width: "32",
3231
3267
  stroke: "none",
3232
3268
  fill: e.color
3233
- }, null, 8, Xi)) : h("", !0),
3269
+ }, null, 8, qi)) : h("", !0),
3234
3270
  bl.value[e.type] === "bar" ? (n(), r("rect", {
3235
3271
  key: 1,
3236
3272
  x: "4",
@@ -3239,10 +3275,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3239
3275
  height: "32",
3240
3276
  width: "32",
3241
3277
  stroke: "none",
3242
- fill: a.$slots.pattern ? `url(#pattern_${D.value}_${e.slotAbsoluteIndex})` : e.color
3243
- }, null, 8, Gi)) : h("", !0)
3244
- ])) : (n(), r("svg", Ui, [
3245
- vl(Kl, {
3278
+ fill: t.$slots.pattern ? `url(#pattern_${E.value}_${e.slotAbsoluteIndex})` : e.color
3279
+ }, null, 8, Zi)) : h("", !0)
3280
+ ])) : (n(), r("svg", Ji, [
3281
+ vl(Ql, {
3246
3282
  plot: { x: 6, y: 6 },
3247
3283
  radius: 5,
3248
3284
  color: e.color,
@@ -3251,26 +3287,26 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3251
3287
  ])),
3252
3288
  p("span", {
3253
3289
  style: $(`color:${l.value.chart.legend.color}`)
3254
- }, ae(e.name), 5)
3255
- ], 10, Di))), 128))
3290
+ }, te(e.name), 5)
3291
+ ], 10, Wi))), 128))
3256
3292
  ], 4)) : (n(), r("div", {
3257
3293
  key: 1,
3258
3294
  ref_key: "chartLegend",
3259
3295
  ref: sl
3260
3296
  }, [
3261
- W(a.$slots, "legend", { legend: Le.value }, void 0, !0)
3297
+ B(t.$slots, "legend", { legend: me.value }, void 0, !0)
3262
3298
  ], 512))
3263
3299
  ], 8, ["to"])) : h("", !0),
3264
- a.$slots.source ? (n(), r("div", {
3300
+ t.$slots.source ? (n(), r("div", {
3265
3301
  key: 7,
3266
3302
  ref_key: "source",
3267
3303
  ref: gl,
3268
3304
  dir: "auto"
3269
3305
  }, [
3270
- W(a.$slots, "source", {}, void 0, !0)
3306
+ B(t.$slots, "source", {}, void 0, !0)
3271
3307
  ], 512)) : h("", !0),
3272
- vl(v(Xt), {
3273
- show: f.value.showTooltip && Ma.value,
3308
+ vl(v(Ga), {
3309
+ show: f.value.showTooltip && At.value,
3274
3310
  backgroundColor: l.value.chart.tooltip.backgroundColor,
3275
3311
  color: l.value.chart.tooltip.color,
3276
3312
  fontSize: l.value.chart.tooltip.fontSize,
@@ -3280,8 +3316,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3280
3316
  backgroundOpacity: l.value.chart.tooltip.backgroundOpacity,
3281
3317
  position: l.value.chart.tooltip.position,
3282
3318
  offsetY: l.value.chart.tooltip.offsetY,
3283
- parent: a.$refs.chart,
3284
- content: To.value,
3319
+ parent: t.$refs.chart,
3320
+ content: Oo.value,
3285
3321
  isFullscreen: qe.value,
3286
3322
  isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function",
3287
3323
  smooth: l.value.chart.tooltip.smooth,
@@ -3289,60 +3325,60 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3289
3325
  smoothForce: l.value.chart.tooltip.smoothForce,
3290
3326
  smoothSnapThreshold: l.value.chart.tooltip.smoothSnapThreshold
3291
3327
  }, {
3292
- "tooltip-before": Q(() => [
3293
- W(a.$slots, "tooltip-before", We(Xe({ ...vt.value })), void 0, !0)
3328
+ "tooltip-before": G(() => [
3329
+ B(t.$slots, "tooltip-before", ke(_e({ ...da.value })), void 0, !0)
3294
3330
  ]),
3295
- "tooltip-after": Q(() => [
3296
- W(a.$slots, "tooltip-after", We(Xe({ ...vt.value })), void 0, !0)
3331
+ "tooltip-after": G(() => [
3332
+ B(t.$slots, "tooltip-after", ke(_e({ ...da.value })), void 0, !0)
3297
3333
  ]),
3298
3334
  _: 3
3299
3335
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
3300
- ra.value && l.value.chart.userOptions.buttons.table ? (n(), Ae(Go($l.value.component), al({ key: 8 }, $l.value.props, {
3336
+ ct.value && l.value.chart.userOptions.buttons.table ? (n(), Te(Zo($l.value.component), tl({ key: 8 }, $l.value.props, {
3301
3337
  ref_key: "tableUnit",
3302
3338
  ref: il,
3303
- onClose: St
3304
- }), At({
3305
- content: Q(() => [
3339
+ onClose: $a
3340
+ }), Ca({
3341
+ content: G(() => [
3306
3342
  p("div", {
3307
- style: $(`${v(va) || l.value.table.useDialog ? "" : "max-height:400px"};${l.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${l.value.table.useDialog ? "" : "margin-top:48px"}`)
3343
+ style: $(`${v(dt) || l.value.table.useDialog ? "" : "max-height:400px"};${l.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${l.value.table.useDialog ? "" : "margin-top:48px"}`)
3308
3344
  }, [
3309
- p("div", qi, [
3310
- Uo(p("input", {
3345
+ p("div", Ki, [
3346
+ Jo(p("input", {
3311
3347
  type: "checkbox",
3312
3348
  "onUpdate:modelValue": s[4] || (s[4] = (e) => pl.value = e)
3313
3349
  }, null, 512), [
3314
- [qo, pl.value]
3350
+ [Ko, pl.value]
3315
3351
  ]),
3316
3352
  p("div", {
3317
3353
  onClick: s[5] || (s[5] = (e) => pl.value = !pl.value),
3318
3354
  style: { cursor: "pointer" }
3319
3355
  }, [
3320
- vl(v(Sa), {
3356
+ vl(v($t), {
3321
3357
  name: "chartLine",
3322
3358
  size: 20,
3323
3359
  stroke: l.value.chart.color
3324
3360
  }, null, 8, ["stroke"])
3325
3361
  ])
3326
3362
  ]),
3327
- pl.value ? (n(), Ae(v(Ut), {
3328
- key: `sparkline_${sa.value}`,
3329
- dataset: $o.value,
3330
- config: Lo.value
3331
- }, null, 8, ["dataset", "config"])) : (n(), Ae(v(Wt), {
3332
- key: `table_${Ca.value}`,
3333
- colNames: Xl.value.colNames,
3334
- head: Xl.value.head,
3335
- body: Xl.value.body,
3336
- config: Xl.value.config,
3363
+ pl.value ? (n(), Te(v(qa), {
3364
+ key: `sparkline_${ut.value}`,
3365
+ dataset: Ao.value,
3366
+ config: Co.value
3367
+ }, null, 8, ["dataset", "config"])) : (n(), Te(v(Xa), {
3368
+ key: `table_${Tt.value}`,
3369
+ colNames: Gl.value.colNames,
3370
+ head: Gl.value.head,
3371
+ body: Gl.value.body,
3372
+ config: Gl.value.config,
3337
3373
  title: l.value.table.useDialog ? "" : $l.value.title,
3338
3374
  withCloseButton: !l.value.table.useDialog,
3339
- onClose: St
3375
+ onClose: $a
3340
3376
  }, {
3341
- th: Q(({ th: e }) => [
3342
- p("div", { innerHTML: e }, null, 8, Zi)
3377
+ th: G(({ th: e }) => [
3378
+ p("div", { innerHTML: e }, null, 8, Qi)
3343
3379
  ]),
3344
- td: Q(({ td: e }) => [
3345
- Ct(ae(isNaN(Number(e)) ? e : v(Ve)({
3380
+ td: G(({ td: e }) => [
3381
+ Ta(te(isNaN(Number(e)) ? e : v(Fe)({
3346
3382
  p: l.value.chart.labels.prefix,
3347
3383
  v: e,
3348
3384
  s: l.value.chart.labels.suffix,
@@ -3357,20 +3393,20 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3357
3393
  }, [
3358
3394
  l.value.table.useDialog ? {
3359
3395
  name: "title",
3360
- fn: Q(() => [
3361
- Ct(ae($l.value.title), 1)
3396
+ fn: G(() => [
3397
+ Ta(te($l.value.title), 1)
3362
3398
  ]),
3363
3399
  key: "0"
3364
3400
  } : void 0,
3365
3401
  l.value.table.useDialog ? {
3366
3402
  name: "actions",
3367
- fn: Q(() => [
3403
+ fn: G(() => [
3368
3404
  p("button", {
3369
3405
  tabindex: "0",
3370
3406
  class: "vue-ui-user-options-button",
3371
- onClick: s[3] || (s[3] = (e) => ba(l.value.chart.userOptions.callbacks.csv))
3407
+ onClick: s[3] || (s[3] = (e) => xt(l.value.chart.userOptions.callbacks.csv))
3372
3408
  }, [
3373
- vl(v(Sa), {
3409
+ vl(v($t), {
3374
3410
  name: "excel",
3375
3411
  stroke: $l.value.props.color
3376
3412
  }, null, 8, ["stroke"])
@@ -3379,10 +3415,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3379
3415
  key: "1"
3380
3416
  } : void 0
3381
3417
  ]), 1040)) : h("", !0),
3382
- v(ie) ? (n(), Ae(vs, { key: 9 })) : h("", !0)
3383
- ], 46, _s));
3418
+ v(ie) ? (n(), Te(fs, { key: 9 })) : h("", !0)
3419
+ ], 46, $s));
3384
3420
  }
3385
- }, fn = /* @__PURE__ */ ks(Ji, [["__scopeId", "data-v-53304c9f"]]);
3421
+ }, bn = /* @__PURE__ */ Ss(ji, [["__scopeId", "data-v-71b071f4"]]);
3386
3422
  export {
3387
- fn as default
3423
+ bn as default
3388
3424
  };