vue-data-ui 3.23.8 → 3.23.10

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 (179) hide show
  1. package/dist/{Arrow-CF0VFcBH.js → Arrow-bwmME0jw.js} +1 -1
  2. package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-DBVHlhQZ.js} +2 -2
  3. package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-B4n7br_R.js} +1 -1
  4. package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-wRhcG_-q.js} +1 -1
  5. package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-BZjzzyQo.js} +2 -2
  6. package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-B9kUMLSz.js} +2 -2
  7. package/dist/{DataTable-BbKgJ5UI.js → DataTable-DMsScfkx.js} +2 -2
  8. package/dist/{HillActions-BD9j_sOU.js → HillActions-IWPfuceW.js} +1 -1
  9. package/dist/{Legend-CQxUgOd-.js → Legend-DWEFXq9E.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-Crs4-xWz.js} +3 -3
  11. package/dist/{PackageVersion-C9lXG-wa.js → PackageVersion-DNTJUKh1.js} +1 -1
  12. package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-DJ607Hx6.js} +3 -3
  13. package/dist/{Shape-C21CMlWS.js → Shape-BAhF1ToV.js} +1 -1
  14. package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-sXtk2ZZ2.js} +2 -2
  15. package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-BE50SZQH.js} +1 -1
  16. package/dist/{Title-BE3qg9xl.js → Title-BGLPsoA9.js} +1 -1
  17. package/dist/{Tooltip-DhjyfHwz.js → Tooltip-DO4-MVhc.js} +1 -1
  18. package/dist/{UserOptions-Dt98of5H.js → UserOptions-HQyukyl2.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/{dom-to-png-BYIvdTe8.js → dom-to-png-Cg_3vpOo.js} +1 -1
  90. package/dist/{exposedLib-C0DPCgFj.js → exposedLib-vfRiIvq_.js} +1 -1
  91. package/dist/{img-Bnokohej.js → img-tU9mMt9W.js} +1 -1
  92. package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-C_lMnQRs.js} +1 -1
  93. package/dist/{lib-Bttd6u5E.js → lib-AT2PUyyh.js} +1 -1
  94. package/dist/{package-BieOvFq9.js → package-enC-Nivt.js} +1 -1
  95. package/dist/{pdf-CVIDfCrS.js → pdf-ColHHJFH.js} +1 -1
  96. package/dist/{render-common-C5vqxC-e.js → render-common-CqcoYfCA.js} +2 -2
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/vue-data-ui.d.ts +2 -7
  102. package/dist/{useNestedProp-vPNvh7rV.js → useNestedProp-CW0vJS1B.js} +1 -1
  103. package/dist/{usePrinter-DN5bYhTG.js → usePrinter-BFS7d6eb.js} +2 -2
  104. package/dist/utils.js +2 -2
  105. package/dist/{vue-data-ui--BufRcn0.js → vue-data-ui-DD7J3yor.js} +69 -69
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-DgrcdAgz.js +1829 -0
  108. package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-DJNjilyy.js} +3 -3
  109. package/dist/{vue-ui-age-pyramid-j6nm1rbi.js → vue-ui-age-pyramid-DI8b5E2H.js} +6 -6
  110. package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-7ZVfFskI.js} +6 -6
  111. package/dist/{vue-ui-bullet-CKQ35-dP.js → vue-ui-bullet-Dyd5F1Wa.js} +7 -7
  112. package/dist/{vue-ui-bump-BXp-EozA.js → vue-ui-bump-DzB3WQnq.js} +166 -166
  113. package/dist/{vue-ui-candlestick-DvvyheWp.js → vue-ui-candlestick--YWEtek_.js} +7 -7
  114. package/dist/{vue-ui-carousel-table-D_dEXiNd.js → vue-ui-carousel-table-Dn3RZU0p.js} +4 -4
  115. package/dist/{vue-ui-chestnut-eCwEo5D9.js → vue-ui-chestnut-BIsXeXiU.js} +5 -5
  116. package/dist/{vue-ui-chord-C6O2lzrg.js → vue-ui-chord-BimXqVsF.js} +8 -8
  117. package/dist/{vue-ui-circle-pack-D_nwf-RO.js → vue-ui-circle-pack-DKQEhL-L.js} +13 -16
  118. package/dist/{vue-ui-cursor-Bu9PM_P_.js → vue-ui-cursor-C-P2D5i6.js} +3 -3
  119. package/dist/{vue-ui-dag-DSx4o3Rk.js → vue-ui-dag-CThnMMWA.js} +7 -7
  120. package/dist/{vue-ui-dashboard-BM747fZF.js → vue-ui-dashboard-D0NNTRO3.js} +69 -69
  121. package/dist/{vue-ui-digits-BtvY8wIB.js → vue-ui-digits-9tGjGzZh.js} +3 -3
  122. package/dist/{vue-ui-donut-DQHLJR8y.js → vue-ui-donut-DLN9uPOi.js} +2 -2
  123. package/dist/vue-ui-donut-EZu8p7HF.js +2413 -0
  124. package/dist/{vue-ui-donut-evolution-PSmZvtzE.js → vue-ui-donut-evolution-mu-iGTIn.js} +9 -9
  125. package/dist/{vue-ui-dumbbell-CGquzMdY.js → vue-ui-dumbbell-Dvldi3Oo.js} +13 -16
  126. package/dist/{vue-ui-flow-9el51M_Y.js → vue-ui-flow-DYZBT5Cb.js} +13 -16
  127. package/dist/{vue-ui-funnel-D7Gy--C2.js → vue-ui-funnel--NaxO0cZ.js} +13 -16
  128. package/dist/{vue-ui-galaxy-Dxj9UwDo.js → vue-ui-galaxy-D6eYN8Ut.js} +291 -293
  129. package/dist/{vue-ui-gauge-Cn9YVMXf.js → vue-ui-gauge-DTIEl2Xb.js} +6 -6
  130. package/dist/{vue-ui-geo-BPOiMgSG.js → vue-ui-geo-CQqNemR6.js} +7 -7
  131. package/dist/{vue-ui-gizmo-DWHHzGBD.js → vue-ui-gizmo-ClunTUxX.js} +3 -3
  132. package/dist/{vue-ui-heatmap-BE1K40ib.js → vue-ui-heatmap-B_pSQNzO.js} +7 -7
  133. package/dist/{vue-ui-hill-Dr4UkjNJ.js → vue-ui-hill-Byp0Tnny.js} +6 -6
  134. package/dist/{vue-ui-history-plot-CxCKkOf0.js → vue-ui-history-plot-CMu8ST1E.js} +14 -17
  135. package/dist/{vue-ui-horizontal-bar-BkmnLr-i.js → vue-ui-horizontal-bar-BQn7WxQ-.js} +10 -10
  136. package/dist/{vue-ui-kpi-BBWW791i.js → vue-ui-kpi-BKw5t-rX.js} +3 -3
  137. package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BNm0MQDw.js} +2 -2
  138. package/dist/{vue-ui-molecule-CxkcMjno.js → vue-ui-molecule-DRwQV5hN.js} +232 -238
  139. package/dist/{vue-ui-mood-radar-C4CzuVdT.js → vue-ui-mood-radar-Bj3KTWYj.js} +298 -300
  140. package/dist/{vue-ui-nested-donuts-DSDJQExL.js → vue-ui-nested-donuts-83Wh2w6z.js} +15 -18
  141. package/dist/{vue-ui-onion-Cu0dBdFS.js → vue-ui-onion-C27GpneA.js} +9 -9
  142. package/dist/{vue-ui-parallel-coordinate-plot-D_EwS2Xg.js → vue-ui-parallel-coordinate-plot-BklOszr1.js} +212 -212
  143. package/dist/{vue-ui-quadrant-jyEV4UXd.js → vue-ui-quadrant-_J-Qr7-K.js} +9 -9
  144. package/dist/{vue-ui-quick-chart-DiWQ1MyR.js → vue-ui-quick-chart-DcOUq4ym.js} +7 -7
  145. package/dist/{vue-ui-radar-BmgJ961A.js → vue-ui-radar-FlRlsoAd.js} +8 -8
  146. package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-eCxEZD8C.js} +2 -2
  147. package/dist/{vue-ui-relation-circle-DV54YMDh.js → vue-ui-relation-circle-DnsxHv7t.js} +6 -6
  148. package/dist/{vue-ui-ridgeline-izSLMS2A.js → vue-ui-ridgeline-TopTLyaE.js} +485 -485
  149. package/dist/vue-ui-rings-obVfb09j.js +1250 -0
  150. package/dist/{vue-ui-scatter-D_qfVTjs.js → vue-ui-scatter-BHSuA506.js} +9 -9
  151. package/dist/{vue-ui-skeleton-ORnWxVcQ.js → vue-ui-skeleton-CNOam3kC.js} +3 -3
  152. package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-YdyidjBH.js} +2 -2
  153. package/dist/{vue-ui-spark-trend-CnWD2enH.js → vue-ui-spark-trend-CS5GLtYL.js} +3 -3
  154. package/dist/{vue-ui-sparkbar-Cgbnebde.js → vue-ui-sparkbar-DDHwgP4k.js} +3 -3
  155. package/dist/{vue-ui-sparkgauge-Cvlb65Sh.js → vue-ui-sparkgauge-BcQu9V3h.js} +3 -3
  156. package/dist/{vue-ui-sparkhistogram-BiTJ8hLF.js → vue-ui-sparkhistogram-CPsA5P6c.js} +4 -4
  157. package/dist/{vue-ui-sparkline-D_lUtZ0M.js → vue-ui-sparkline-CnbO-GkM.js} +3 -3
  158. package/dist/{vue-ui-sparkstackbar-44IKCY9x.js → vue-ui-sparkstackbar-4tsTxMe2.js} +4 -4
  159. package/dist/{vue-ui-stackbar-DF3p95Bo.js → vue-ui-stackbar-2_SrMFNT.js} +575 -571
  160. package/dist/{vue-ui-stackline-DhKuZEnZ.js → vue-ui-stackline-BNCWO_jG.js} +612 -608
  161. package/dist/{vue-ui-strip-plot-C-ulifjS.js → vue-ui-strip-plot-2Y1c02Ek.js} +13 -16
  162. package/dist/{vue-ui-table-CpnarLaC.js → vue-ui-table-DJZxHo5N.js} +5 -5
  163. package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-BacaEjQy.js} +5 -5
  164. package/dist/{vue-ui-table-sparkline-Du4MfWFg.js → vue-ui-table-sparkline-B8oAU5yr.js} +4 -4
  165. package/dist/{vue-ui-thermometer-CrbJmWkG.js → vue-ui-thermometer-BGtxNU9T.js} +6 -6
  166. package/dist/{vue-ui-timer-CG_cHMLa.js → vue-ui-timer-CWZgSpP8.js} +5 -5
  167. package/dist/{vue-ui-tiremarks-C9op3rMU.js → vue-ui-tiremarks-LLVCPyg9.js} +6 -6
  168. package/dist/{vue-ui-treemap-X6xvCAx5.js → vue-ui-treemap-ehBl9JMC.js} +16 -19
  169. package/dist/{vue-ui-waffle-CC8t5ghD.js → vue-ui-waffle-DpBAXbhh.js} +288 -290
  170. package/dist/{vue-ui-wheel-qsjBqrXG.js → vue-ui-wheel-C4OHPrtC.js} +6 -6
  171. package/dist/{vue-ui-word-cloud-PpZeiZUt.js → vue-ui-word-cloud-CDHn3Kwa.js} +13 -16
  172. package/dist/{vue-ui-world-CvLyEEZQ.js → vue-ui-world-ao1xf04I.js} +13 -16
  173. package/dist/{vue-ui-xy-eKIptvTV.js → vue-ui-xy-DmJDCl3c.js} +2 -2
  174. package/dist/{vue-ui-xy-BJ96qlGZ.js → vue-ui-xy-_U3wmtCf.js} +1502 -1496
  175. package/dist/{vue-ui-xy-canvas-B-KxaFGF.js → vue-ui-xy-canvas-Bx-9y53V.js} +334 -330
  176. package/package.json +1 -1
  177. package/dist/vue-ui-3d-bar-Dspy8rjO.js +0 -1831
  178. package/dist/vue-ui-donut-DtmxMF94.js +0 -2415
  179. package/dist/vue-ui-rings-B-vqjj5N.js +0 -1252
@@ -1,27 +1,27 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, Bt as n, D as r, Et as i, Jt as a, Kt as o, Ot as s, Pt as c, Rt as l, S as u, X as d, _ as ee, ct as te, dt as ne, i as re, jt as ie, o as ae, q as oe, tt as se, vt as ce, w as le, xt as ue } from "./lib-Bttd6u5E.js";
2
+ import { $ as t, Bt as n, D as r, Et as i, Jt as a, Kt as o, Ot as s, Pt as c, Rt as l, S as u, X as d, _ as ee, ct as te, dt as ne, i as re, jt as ie, o as ae, q as oe, tt as se, vt as ce, w as le, xt as ue } from "./lib-AT2PUyyh.js";
3
3
  import { n as de, t as fe } from "./useHints-Dq_w2E8B.js";
4
4
  import { n as pe, r as me, t as he } from "./useTimeLabels-d2f-W1L4.js";
5
5
  import { t as ge } from "./useConfig-DwdGsXTx.js";
6
- import { t as _e } from "./usePrinter-DN5bYhTG.js";
6
+ import { t as _e } from "./usePrinter-BFS7d6eb.js";
7
7
  import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
8
- import { t as be } from "./useNestedProp-vPNvh7rV.js";
8
+ import { t as be } from "./useNestedProp-CW0vJS1B.js";
9
9
  import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as Se } from "./img-Bnokohej.js";
11
- import { n as Ce } from "./Title-BE3qg9xl.js";
10
+ import { t as Se } from "./img-tU9mMt9W.js";
11
+ import { n as Ce } from "./Title-BGLPsoA9.js";
12
12
  import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
13
  import { a as f, c as p, i as Te, l as Ee, n as De, o as Oe, r as ke, s as Ae, t as je } from "./useResponsive-ZtArZtUf.js";
14
- import { t as Me } from "./BaseIcon-BfndwIWE.js";
15
- import { t as Ne } from "./SlicerPreview-wUw1hFwe.js";
16
- import { t as Pe } from "./vue-ui-accordion-CLU_su1P.js";
17
- import { t as Fe } from "./BaseLegendToggle-DZVucLnv.js";
14
+ import { t as Me } from "./BaseIcon-B4n7br_R.js";
15
+ import { t as Ne } from "./SlicerPreview-sXtk2ZZ2.js";
16
+ import { t as Pe } from "./vue-ui-accordion-DJNjilyy.js";
17
+ import { t as Fe } from "./BaseLegendToggle-wRhcG_-q.js";
18
18
  import { t as Ie } from "./useUserOptionState-DK-_1ddE.js";
19
19
  import { t as Le } from "./useChartAccessibility-DYqac8yF.js";
20
- import { t as Re } from "./Legend-CQxUgOd-.js";
20
+ import { t as Re } from "./Legend-DWEFXq9E.js";
21
21
  import { t as ze } from "./vue_ui_xy_canvas-Cb6dg3eK.js";
22
22
  import { Teleport as Be, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as Ve, createElementVNode as _, createSlots as He, createTextVNode as Ue, createVNode as We, defineAsyncComponent as Ge, guardReactiveProps as v, mergeProps as Ke, nextTick as qe, normalizeClass as Je, normalizeProps as y, normalizeStyle as Ye, onBeforeUnmount as Xe, onMounted as Ze, openBlock as b, ref as x, renderSlot as S, resolveDynamicComponent as Qe, shallowRef as $e, toDisplayString as et, toRefs as tt, unref as C, useSlots as nt, watch as w, watchEffect as rt, withCtx as T } from "vue";
23
23
  //#region src/components/vue-ui-xy-canvas.vue
24
- var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st = {
24
+ var it = /* @__PURE__ */ e({ default: () => gt }), at = ["id"], ot = ["id"], st = {
25
25
  class: "sr-only",
26
26
  "aria-live": "polite",
27
27
  "aria-atomic": "true"
@@ -38,7 +38,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
38
38
  }, dt = ["id"], ft = ["onClick"], pt = {
39
39
  key: 4,
40
40
  class: "vue-data-ui-watermark"
41
- }, mt = ["innerHTML"], ht = /*#__PURE__*/ we({
41
+ }, mt = { key: 0 }, ht = { key: 1 }, gt = /*#__PURE__*/ we({
42
42
  __name: "vue-ui-xy-canvas",
43
43
  props: {
44
44
  dataset: {
@@ -64,10 +64,10 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
64
64
  "copyAlt"
65
65
  ],
66
66
  setup(e, { expose: we, emit: it }) {
67
- let ht = Ge(() => import("./Tooltip-DhjyfHwz.js")), gt = Ge(() => import("./DataTable-BbKgJ5UI.js")), _t = Ge(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), vt = Ge(() => import("./NonSvgPenAndPaper-4ypecDg1.js")), yt = Ge(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_xy_canvas: bt } = ge(), { isThemeValid: xt, warnInvalidTheme: St } = xe(), E = e, D = x(oe()), O = x(null), Ct = x(null), k = x(null), A = x(1), j = x(1), wt = x(!1), M = x(null), Tt = x(""), Et = x(null), N = x([]), Dt = x(1), P = x(!0), F = x(!0), Ot = x(null), kt = x(0), At = x(!1), jt = x(null), Mt = x(null), I = x(null), Nt = x(null), Pt = x(0), Ft = x(0), It = x(0), L = x(null), Lt = x(!1), Rt = x(null), zt = x(null), Bt = x(!1), Vt = x(!1), Ht = x(!1), R = x(null), Ut = x(!1), Wt = x(!1), Gt = x(!1), z = x(null), Kt = x({
67
+ let gt = Ge(() => import("./Tooltip-DO4-MVhc.js")), _t = Ge(() => import("./DataTable-DMsScfkx.js")), vt = Ge(() => import("./UserOptions-HQyukyl2.js").then((e) => e.n)), yt = Ge(() => import("./NonSvgPenAndPaper-Crs4-xWz.js")), bt = Ge(() => import("./BaseDraggableDialog-DBVHlhQZ.js").then((e) => e.n)), { vue_ui_xy_canvas: xt } = ge(), { isThemeValid: St, warnInvalidTheme: Ct } = xe(), E = e, D = x(oe()), O = x(null), wt = x(null), k = x(null), A = x(1), j = x(1), Tt = x(!1), M = x(null), Et = x(""), Dt = x(null), N = x([]), Ot = x(1), P = x(!0), F = x(!0), kt = x(null), At = x(0), jt = x(!1), Mt = x(null), Nt = x(null), I = x(null), Pt = x(null), Ft = x(0), It = x(0), Lt = x(0), L = x(null), Rt = x(!1), zt = x(null), Bt = x(null), Vt = x(!1), Ht = x(!1), Ut = x(!1), R = x(null), Wt = x(!1), Gt = x(!1), Kt = x(!1), z = x(null), qt = x({
68
68
  x: 0,
69
69
  y: 0
70
- }), B = m(() => Array.isArray(tn.value) && tn.value.length > 0), qt = it, Jt = nt(), V = x(cn());
70
+ }), B = m(() => Array.isArray(nn.value) && nn.value.length > 0), Jt = it, Yt = nt(), V = x(ln());
71
71
  de({
72
72
  config: () => V.value,
73
73
  dataset: () => E.dataset,
@@ -92,21 +92,21 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
92
92
  }
93
93
  ]
94
94
  });
95
- let Yt = m(() => {
95
+ let Xt = m(() => {
96
96
  let e = V.value.style.chart.title.text || "XY chart", t = Y.value.end - Y.value.start;
97
97
  return `${e}. ${J.value.filter((e) => !N.value.includes(e.absoluteIndex)).length} series. ${t} visible data points.`;
98
- }), Xt = m(() => {
98
+ }), Zt = m(() => {
99
99
  if (z.value === null) return "";
100
100
  let e = z.value + Y.value.start;
101
- return `${V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[z.value] ? V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[z.value]?.text : Zn.value[z.value]?.text : Q.value[e]?.text ?? `Point ${e + 1}`}. ${J.value.filter((e) => !N.value.includes(e.absoluteIndex)).map((e) => {
101
+ return `${V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[z.value] ? V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[z.value]?.text : Qn.value[z.value]?.text : Q.value[e]?.text ?? `Point ${e + 1}`}. ${J.value.filter((e) => !N.value.includes(e.absoluteIndex)).map((e) => {
102
102
  let t = e.series[z.value], n = t?.value ?? t ?? null;
103
103
  return `${e.name}: ${n}`;
104
104
  }).join(". ")}.`;
105
- }), Zt = m(() => V.value.userOptions.useCursorPointer), Qt = m(() => V.value.debug);
105
+ }), Qt = m(() => V.value.userOptions.useCursorPointer), $t = m(() => V.value.debug);
106
106
  Ze(() => {
107
- Jt["chart-background"] && Qt.value && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
107
+ Yt["chart-background"] && $t.value && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
108
108
  });
109
- let $t = m(() => a({
109
+ let en = m(() => a({
110
110
  defaultConfig: {
111
111
  userOptions: { show: !1 },
112
112
  table: { show: !1 },
@@ -140,10 +140,10 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
140
140
  } }
141
141
  },
142
142
  userConfig: V.value.skeletonConfig ?? {}
143
- })), { loading: en, FINAL_DATASET: tn } = ve({
143
+ })), { loading: tn, FINAL_DATASET: nn } = ve({
144
144
  ...tt(E),
145
145
  FINAL_CONFIG: V,
146
- prepareConfig: cn,
146
+ prepareConfig: ln,
147
147
  skeletonDataset: E.config?.skeletonDataset ?? [{
148
148
  name: "",
149
149
  series: [
@@ -184,25 +184,25 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
184
184
  }],
185
185
  skeletonConfig: a({
186
186
  defaultConfig: V.value,
187
- userConfig: $t.value
187
+ userConfig: en.value
188
188
  })
189
- }), { userOptionsVisible: nn, setUserOptionsVisibility: rn, keepUserOptionState: an } = Ie({ config: V.value }), { svgRef: H } = Le({ config: V.value.style.chart.title });
190
- function on() {
191
- rn(!0);
192
- }
189
+ }), { userOptionsVisible: rn, setUserOptionsVisibility: an, keepUserOptionState: on } = Ie({ config: V.value }), { svgRef: H } = Le({ config: V.value.style.chart.title });
193
190
  function sn() {
194
- rn(!1), qt("selectX", {
191
+ an(!0);
192
+ }
193
+ function cn() {
194
+ an(!1), Jt("selectX", {
195
195
  dataset: null,
196
196
  index: null,
197
197
  indexLabel: null
198
198
  }), M.value = null;
199
199
  }
200
- function cn() {
200
+ function ln() {
201
201
  let e = be({
202
202
  userConfig: E.config,
203
- defaultConfig: bt
203
+ defaultConfig: xt
204
204
  }), t = {}, n = e.theme;
205
- if (n) if (!xt.value(e)) St(e), t = e;
205
+ if (n) if (!St.value(e)) Ct(e), t = e;
206
206
  else {
207
207
  let r = be({
208
208
  userConfig: ze[n] || E.config,
@@ -223,11 +223,11 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
223
223
  })), t;
224
224
  }
225
225
  w(() => E.config, (e) => {
226
- en.value || (V.value = cn()), nn.value = !V.value.userOptions.showOnChartHover, wr(), Pt.value += 1, Ft.value += 1, It.value += 1, U.value.showTable = V.value.table.show, U.value.showDataLabels = V.value.style.chart.dataLabels.show, U.value.stacked = V.value.style.chart.stacked, U.value.showTooltip = V.value.style.chart.tooltip.show;
226
+ tn.value || (V.value = ln()), rn.value = !V.value.userOptions.showOnChartHover, Tr(), Ft.value += 1, It.value += 1, Lt.value += 1, U.value.showTable = V.value.table.show, U.value.showDataLabels = V.value.style.chart.dataLabels.show, U.value.stacked = V.value.style.chart.stacked, U.value.showTooltip = V.value.style.chart.tooltip.show;
227
227
  }, { deep: !0 }), w(() => E.dataset, async (e) => {
228
- !Array.isArray(e) || e.length === 0 || (await qe(), H.value && !k.value && (k.value = H.value.getContext("2d", { willReadFrequently: !0 })), P.value = !0, F.value = !0, await jn(), Bn(), Pt.value += 1, Ft.value += 1, It.value += 1);
228
+ !Array.isArray(e) || e.length === 0 || (await qe(), H.value && !k.value && (k.value = H.value.getContext("2d", { willReadFrequently: !0 })), P.value = !0, F.value = !0, await Mn(), Vn(), Ft.value += 1, It.value += 1, Lt.value += 1);
229
229
  }, { deep: !0 });
230
- let ln = x(V.value.style.chart.aspectRatio), { isPrinting: un, isImaging: dn, generatePdf: fn, generateImage: pn } = _e({
230
+ let un = x(V.value.style.chart.aspectRatio), { isPrinting: dn, isImaging: fn, generatePdf: pn, generateImage: mn } = _e({
231
231
  elementId: `xy_canvas_${D.value}`,
232
232
  fileName: V.value.style.chart.title.text || "vue-ui-xy-canvas",
233
233
  options: V.value.userOptions.print
@@ -237,15 +237,15 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
237
237
  stacked: V.value.style.chart.stacked,
238
238
  showTooltip: V.value.style.chart.tooltip.show
239
239
  });
240
- function mn(e) {
241
- At.value = e, kt.value += 1;
240
+ function hn(e) {
241
+ jt.value = e, At.value += 1;
242
242
  }
243
- let hn = m(() => le(V.value.customPalette)), gn = m(() => N.value.length === q.value.length), W = m(() => q.value ? Math.max(...q.value.filter((e, t) => gn.value ? !0 : !N.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0);
244
- function _n(e) {
243
+ let gn = m(() => le(V.value.customPalette)), _n = m(() => N.value.length === q.value.length), W = m(() => q.value ? Math.max(...q.value.filter((e, t) => _n.value ? !0 : !N.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0);
244
+ function vn(e) {
245
245
  R.value = e, $();
246
246
  }
247
- let vn = x(0), yn = x(0);
248
- function bn() {
247
+ let yn = x(0), bn = x(0);
248
+ function xn() {
249
249
  if (!k.value || !V.value.style.chart.grid.x.timeLabels.show) return 0;
250
250
  let e = Q.value || [], t = Y.value.start ?? 0, n = Y.value.end ?? 0;
251
251
  if (!Math.max(0, n - t)) return 0;
@@ -260,21 +260,21 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
260
260
  let o = (V.value.style.chart.grid.x.timeLabels.rotation || 0) * Math.PI / 180, s = r, c = Math.abs(Math.sin(o)) * a + Math.abs(Math.cos(o)) * s, l = V.value.style.chart.grid.x.timeLabels.offsetY || 1, u = A.value / l;
261
261
  return Math.max(0, u + c + 4);
262
262
  }
263
- function xn() {
264
- vn.value = bn();
265
- }
266
263
  function Sn() {
267
- yn.value && cancelAnimationFrame(yn.value), yn.value = requestAnimationFrame(() => {
264
+ yn.value = xn();
265
+ }
266
+ function Cn() {
267
+ bn.value && cancelAnimationFrame(bn.value), bn.value = requestAnimationFrame(() => {
268
268
  requestAnimationFrame(() => {
269
- xn();
269
+ Sn();
270
270
  });
271
271
  });
272
272
  }
273
273
  Xe(() => {
274
- yn.value && cancelAnimationFrame(yn.value);
274
+ bn.value && cancelAnimationFrame(bn.value);
275
275
  });
276
276
  let G = m(() => {
277
- let e = A.value - A.value * (V.value.style.chart.paddingProportions.left + V.value.style.chart.paddingProportions.right), t = j.value * V.value.style.chart.paddingProportions.top, n = j.value * V.value.style.chart.paddingProportions.bottom, r = vn.value, i = j.value - n - r, a = j.value - (t + n) - r;
277
+ let e = A.value - A.value * (V.value.style.chart.paddingProportions.left + V.value.style.chart.paddingProportions.right), t = j.value * V.value.style.chart.paddingProportions.top, n = j.value * V.value.style.chart.paddingProportions.bottom, r = yn.value, i = j.value - n - r, a = j.value - (t + n) - r;
278
278
  return {
279
279
  canvasWidth: A.value,
280
280
  canvasHeight: j.value,
@@ -287,13 +287,13 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
287
287
  slot: e / (Y.value.end - Y.value.start)
288
288
  };
289
289
  });
290
- function Cn(e, t) {
290
+ function wn(e, t) {
291
291
  return e / t;
292
292
  }
293
- function wn({ hasAutoScale: e, series: t, min: n, max: r, scale: i, yOffset: a, individualHeight: o, stackIndex: s = null }) {
293
+ function Tn({ hasAutoScale: e, series: t, min: n, max: r, scale: i, yOffset: a, individualHeight: o, stackIndex: s = null }) {
294
294
  return t.map((t, n) => {
295
- let r = i.min < 0 ? Math.abs(i.min) : 0, c = Cn(t + r, r + i.max), l, u;
296
- e && (l = i.min, u = Cn(t - l, i.max - l));
295
+ let r = i.min < 0 ? Math.abs(i.min) : 0, c = wn(t + r, r + i.max), l, u;
296
+ e && (l = i.min, u = wn(t - l, i.max - l));
297
297
  let d = 0;
298
298
  return d = s === null ? G.value.bottom - G.value.height * (e ? u : c) : G.value.bottom - a - o * (e ? u : c), {
299
299
  x: G.value.left + G.value.slot * n + G.value.slot / 2,
@@ -316,7 +316,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
316
316
  })),
317
317
  zero: i
318
318
  };
319
- }), Tn = m(() => J.value.map((e) => `
319
+ }), En = m(() => J.value.map((e) => `
320
320
  <div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
321
321
  <svg viewBox="0 0 10 10" height="12" width="12">
322
322
  <circle cx="5" cy="5" r="5" fill="${e.color}"/>
@@ -332,26 +332,26 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
332
332
  seriesIndex: M.value
333
333
  })}</span>
334
334
  </div>
335
- `)), En = m(() => V.value.style.chart.line.cutNullValues), q = m(() => tn.value.map((e, t) => ({
335
+ `)), Dn = m(() => V.value.style.chart.line.cutNullValues), q = m(() => nn.value.map((e, t) => ({
336
336
  ...e,
337
337
  series: i({
338
- data: l(e.series, [], En.value),
338
+ data: l(e.series, [], Dn.value),
339
339
  threshold: V.value.downsample.threshold
340
340
  }),
341
341
  absoluteIndex: t,
342
- color: u(e.color || hn.value[t] || c[t] || c[t % c.length])
343
- }))), Dn = m(() => {
342
+ color: u(e.color || gn.value[t] || c[t] || c[t % c.length])
343
+ }))), On = m(() => {
344
344
  if (!V.value.style.chart.zoom.minimap.show) return [];
345
345
  let e = q.value.filter((e) => !N.value.includes(e.absoluteIndex)), t = Math.max(...e.map((e) => e.series.length)), n = [];
346
346
  for (let r = 0; r < t; r += 1) n.push(e.map((e) => e.series[r] || 0).reduce((e, t) => (e || 0) + (t || 0), 0));
347
347
  let r = Math.min(...n);
348
348
  return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
349
- }), On = m(() => V.value.style.chart.zoom.minimap.show ? q.value.map((e) => ({
349
+ }), kn = m(() => V.value.style.chart.zoom.minimap.show ? q.value.map((e) => ({
350
350
  ...e,
351
351
  isVisible: !N.value.includes(e.absoluteIndex)
352
352
  })) : []);
353
353
  w(W, (e) => {
354
- e && jn();
354
+ e && Mn();
355
355
  });
356
356
  let J = m(() => ae(q.value.filter((e, t) => !N.value.includes(e.absoluteIndex))).map((e, t) => ({
357
357
  ...e,
@@ -371,7 +371,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
371
371
  y: G.value.bottom - s - l * (t / (o.ticks.length - 1)),
372
372
  x: G.value.left - 8,
373
373
  value: e
374
- })), ne = wn({
374
+ })), ne = Tn({
375
375
  hasAutoScale: U.value.stacked && e.autoScaling,
376
376
  series: e.series,
377
377
  min: U.value.stacked ? n : K.value.min,
@@ -399,72 +399,72 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
399
399
  }), X = x({
400
400
  start: 0,
401
401
  end: W.value
402
- }), kn = x(null);
403
- function An() {
402
+ }), An = x(null);
403
+ function jn() {
404
404
  return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
405
405
  }
406
406
  Xe(() => {
407
- kn.value && cancelAnimationFrame(kn.value);
407
+ An.value && cancelAnimationFrame(An.value);
408
408
  });
409
- async function jn() {
410
- Pn(), await qe(), kn.value && cancelAnimationFrame(kn.value), kn.value = requestAnimationFrame(async () => {
411
- await An(), Pn();
409
+ async function Mn() {
410
+ Fn(), await qe(), An.value && cancelAnimationFrame(An.value), An.value = requestAnimationFrame(async () => {
411
+ await jn(), Fn();
412
412
  });
413
413
  }
414
- let Mn = m(() => V.value.style.chart.zoom.preview.enable && (X.value.start !== Y.value.start || X.value.end !== Y.value.end));
415
- function Nn(e, t) {
414
+ let Nn = m(() => V.value.style.chart.zoom.preview.enable && (X.value.start !== Y.value.start || X.value.end !== Y.value.end));
415
+ function Pn(e, t) {
416
416
  X.value[e] = t;
417
417
  }
418
- async function Pn() {
419
- if (!Bt.value) {
420
- Bt.value = !0;
418
+ async function Fn() {
419
+ if (!Vt.value) {
420
+ Vt.value = !0;
421
421
  try {
422
- let { startIndex: e, endIndex: t } = V.value.style.chart.zoom, n = Math.max(...q.value.map((e) => e.series.length)), r = e ?? 0, i = t == null ? n : Math.min(Ln(t + 1), n);
423
- Ht.value = !0, Y.value.start = r, Y.value.end = i, X.value.start = r, X.value.end = i, Rn(), Vt.value = !0, await qe(), I.value && (I.value.setStartValue(Y.value.start), I.value.setEndValue(Y.value.end));
422
+ let { startIndex: e, endIndex: t } = V.value.style.chart.zoom, n = Math.max(...q.value.map((e) => e.series.length)), r = e ?? 0, i = t == null ? n : Math.min(Rn(t + 1), n);
423
+ Ut.value = !0, Y.value.start = r, Y.value.end = i, X.value.start = r, X.value.end = i, zn(), Ht.value = !0, await qe(), I.value && (I.value.setStartValue(Y.value.start), I.value.setEndValue(Y.value.end));
424
424
  } finally {
425
425
  queueMicrotask(() => {
426
- Ht.value = !1;
427
- }), Bt.value = !1;
426
+ Ut.value = !1;
427
+ }), Vt.value = !1;
428
428
  }
429
429
  }
430
430
  }
431
- function Fn(e) {
432
- Bt.value || Ht.value || e !== Y.value.start && (Y.value.start = e, X.value.start = e, Rn());
433
- }
434
431
  function In(e) {
435
- if (Bt.value || Ht.value) return;
436
- let t = Ln(e);
437
- t !== Y.value.end && (Y.value.end = t, X.value.end = t, Rn());
432
+ Vt.value || Ut.value || e !== Y.value.start && (Y.value.start = e, X.value.start = e, zn());
438
433
  }
439
434
  function Ln(e) {
435
+ if (Vt.value || Ut.value) return;
436
+ let t = Rn(e);
437
+ t !== Y.value.end && (Y.value.end = t, X.value.end = t, zn());
438
+ }
439
+ function Rn(e) {
440
440
  let t = W.value;
441
441
  return e > t ? t : e < 0 || e < Y.value.start ? V.value.style.chart.zoom.startIndex === null ? 1 : V.value.style.chart.zoom.startIndex + 1 : e;
442
442
  }
443
- function Rn() {
443
+ function zn() {
444
444
  let e = Math.max(1, Math.max(...q.value.map((e) => e.series.length))), t = Math.max(0, Math.min(Y.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(Y.value.end ?? e, e));
445
445
  (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), Y.value = {
446
446
  start: t,
447
447
  end: n
448
448
  }, X.value.start = t, X.value.end = n, I.value && (I.value.setStartValue(t), I.value.setEndValue(n));
449
449
  }
450
- let zn = m(() => J.value.filter((e) => [
450
+ let Bn = m(() => J.value.filter((e) => [
451
451
  "line",
452
452
  "plot",
453
453
  void 0
454
454
  ].includes(e.type))), Z = m(() => J.value.filter((e) => e.type === "bar"));
455
- function Bn() {
456
- if (!H.value || !Ct.value) return;
457
- let e = Ct.value.offsetWidth, t = Ct.value.offsetHeight;
458
- H.value.width = e * Dt.value * 2, H.value.height = t * Dt.value * 2, A.value = e * Dt.value * 2, j.value = t * Dt.value * 2, k.value?.scale(Dt.value, Dt.value), $();
455
+ function Vn() {
456
+ if (!H.value || !wt.value) return;
457
+ let e = wt.value.offsetWidth, t = wt.value.offsetHeight;
458
+ H.value.width = e * Ot.value * 2, H.value.height = t * Ot.value * 2, A.value = e * Ot.value * 2, j.value = t * Ot.value * 2, k.value?.scale(Ot.value, Ot.value), $();
459
459
  }
460
460
  w(B, async (e) => {
461
461
  if (!e) {
462
- Ot.value = null, wt.value = !1, M.value = null, L.value = null;
462
+ kt.value = null, Tt.value = !1, M.value = null, L.value = null;
463
463
  return;
464
464
  }
465
- await qe(), H.value && !k.value && (k.value = H.value.getContext("2d", { willReadFrequently: !0 })), P.value = !0, F.value = !0, await jn(), Bn(), $();
465
+ await qe(), H.value && !k.value && (k.value = H.value.getContext("2d", { willReadFrequently: !0 })), P.value = !0, F.value = !0, await Mn(), Vn(), $();
466
466
  });
467
- function Vn() {
467
+ function Hn() {
468
468
  if (k.value && (k.value.clearRect(0, 0, 1e4, 1e4), k.value.fillStyle = V.value.style.chart.backgroundColor, k.value.fillRect(0, 0, G.value.canvasWidth, G.value.canvasHeight), B.value)) {
469
469
  if (U.value.stacked) V.value.style.chart.grid.y.verticalLines.show && Y.value.end - Y.value.start < V.value.style.chart.grid.y.verticalLines.hideUnderXLength ? J.value.forEach((e) => {
470
470
  for (let t = 0; t < Y.value.end - Y.value.start + 1; t += 1) f(k.value, [{
@@ -635,7 +635,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
635
635
  });
636
636
  }
637
637
  }
638
- function Hn(e) {
638
+ function Un(e) {
639
639
  for (let t = 0; t < e.coordinatesLine.length; t += 1) {
640
640
  let n = (M.value === t || R.value === t ? A.value / 150 : V.value.style.chart.line.plots.show || e.type === "plot" ? A.value / 200 : 0) * V.value.style.chart.line.plots.radiusRatio;
641
641
  De(k.value, {
@@ -648,24 +648,24 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
648
648
  });
649
649
  }
650
650
  }
651
- function Un() {
651
+ function Wn() {
652
652
  J.value.forEach((e) => {
653
- e.showYMarker && lr(e) && p(k.value, re(V.value.style.chart.dataLabels.formatter, lr(e).value, d({
653
+ e.showYMarker && ur(e) && p(k.value, re(V.value.style.chart.dataLabels.formatter, ur(e).value, d({
654
654
  p: e.prefix || V.value.style.chart.grid.y.axisLabels.prefix || "",
655
- v: lr(e).value,
655
+ v: ur(e).value,
656
656
  s: e.suffix || V.value.style.chart.grid.y.axisLabels.suffix || "",
657
657
  r: e.rounding || V.value.style.chart.grid.y.axisLabels.rounding || 0
658
658
  }), {
659
- datapoint: lr(e),
659
+ datapoint: ur(e),
660
660
  seriesIndex: null
661
- }), G.value.left - 8 + V.value.style.chart.grid.y.axisLabels.offsetX, lr(e).y, {
661
+ }), G.value.left - 8 + V.value.style.chart.grid.y.axisLabels.offsetX, ur(e).y, {
662
662
  align: "right",
663
663
  font: `${V.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(A.value / 40 * V.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${V.value.style.fontFamily}`,
664
664
  color: e.color
665
665
  });
666
666
  });
667
667
  }
668
- function Wn() {
668
+ function Gn() {
669
669
  V.value.style.chart.grid.y.axisLabels.show && (U.value.stacked ? J.value.forEach((e) => {
670
670
  e.localYLabels.forEach((t, n) => {
671
671
  p(k.value, re(V.value.style.chart.dataLabels.formatter, t.value, d({
@@ -700,7 +700,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
700
700
  });
701
701
  }));
702
702
  }
703
- function Gn(e) {
703
+ function Kn(e) {
704
704
  for (let t = 0; t < e.coordinatesLine.length; t += 1) p(k.value, re(V.value.style.chart.dataLabels.formatter, e.coordinatesLine[t].value, d({
705
705
  p: e.prefix || "",
706
706
  v: e.coordinatesLine[t].value,
@@ -717,9 +717,9 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
717
717
  lineWidth: .5
718
718
  });
719
719
  }
720
- let Q = x([]), Kn = 0;
720
+ let Q = x([]), qn = 0;
721
721
  rt(() => {
722
- let e = ++Kn;
722
+ let e = ++qn;
723
723
  (async () => {
724
724
  let t = await he({
725
725
  values: V.value.style.chart.grid.x.timeLabels.values,
@@ -728,42 +728,42 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
728
728
  start: 0,
729
729
  end: W.value
730
730
  });
731
- e === Kn && (Q.value = t);
731
+ e === qn && (Q.value = t);
732
732
  })();
733
733
  }), rt(() => {
734
- V.value.style.chart.grid.x.timeLabels.show, V.value.style.chart.grid.x.timeLabels.rotation, V.value.style.chart.grid.x.timeLabels.offsetY, V.value.style.chart.grid.x.timeLabels.fontSizeRatio, V.value.style.chart.grid.x.timeLabels.bold, Y.value.start, Y.value.end, A.value, j.value, (Q.value || []).map((e) => e?.text ?? "").join("|"), Sn();
734
+ V.value.style.chart.grid.x.timeLabels.show, V.value.style.chart.grid.x.timeLabels.rotation, V.value.style.chart.grid.x.timeLabels.offsetY, V.value.style.chart.grid.x.timeLabels.fontSizeRatio, V.value.style.chart.grid.x.timeLabels.bold, Y.value.start, Y.value.end, A.value, j.value, (Q.value || []).map((e) => e?.text ?? "").join("|"), Cn();
735
735
  }, { flush: "post" });
736
- let qn = x({
736
+ let Jn = x({
737
737
  months: [],
738
738
  shortMonths: [],
739
739
  days: [],
740
740
  shortDays: []
741
- }), Jn = 0;
741
+ }), Yn = 0;
742
742
  rt(() => {
743
- let e = ++Jn, t = V.value.style.chart.grid.x.timeLabels.datetimeFormatter;
743
+ let e = ++Yn, t = V.value.style.chart.grid.x.timeLabels.datetimeFormatter;
744
744
  (async () => {
745
745
  let n = await me(t.locale).catch(() => me("en"));
746
- e === Jn && (qn.value = n.data);
746
+ e === Yn && (Jn.value = n.data);
747
747
  })();
748
748
  });
749
- let Yn = m(() => {
749
+ let Xn = m(() => {
750
750
  let e = V.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = pe({
751
751
  useUTC: e.useUTC,
752
- locale: qn.value,
752
+ locale: Jn.value,
753
753
  januaryAsYear: e.januaryAsYear
754
754
  });
755
755
  return (e, n) => {
756
756
  let r = V.value.style.chart.grid.x.timeLabels.values?.[e];
757
757
  return r == null ? "" : t.formatDate(new Date(r), n);
758
758
  };
759
- }), Xn = m(() => (V.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
760
- text: Yn.value(t, V.value.style.chart.zoom.timeFormat),
759
+ }), Zn = m(() => (V.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
760
+ text: Xn.value(t, V.value.style.chart.zoom.timeFormat),
761
761
  absoluteIndex: t
762
- }))), Zn = m(() => (V.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
763
- text: Yn.value(t, V.value.style.chart.tooltip.timeFormat),
762
+ }))), Qn = m(() => (V.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
763
+ text: Xn.value(t, V.value.style.chart.tooltip.timeFormat),
764
764
  absoluteIndex: t
765
765
  })));
766
- function Qn() {
766
+ function $n() {
767
767
  for (let e = Y.value.start; e < Y.value.end; e += 1) (Y.value.end - Y.value.start < V.value.style.chart.grid.x.timeLabels.modulo || Y.value.end - Y.value.start >= V.value.style.chart.grid.x.timeLabels.modulo && (e % Math.floor((Y.value.end - Y.value.start) / V.value.style.chart.grid.x.timeLabels.modulo) === 0 || (e === M.value + Y.value.start || e === R.value) && V.value.style.chart.grid.x.timeLabels.showMarker)) && p(k.value, Q.value[e] ? Q.value[e].text : e + 1, G.value.left + G.value.slot * (e - Y.value.start) + G.value.slot / 2, G.value.bottom + A.value / V.value.style.chart.grid.x.timeLabels.offsetY, {
768
768
  align: V.value.style.chart.grid.x.timeLabels.rotation === 0 ? "center" : V.value.style.chart.grid.x.timeLabels.rotation > 0 ? "left" : "right",
769
769
  font: `${V.value.style.chart.grid.x.timeLabels.bold ? "bold " : ""}${Math.round(A.value / 40 * V.value.style.chart.grid.x.timeLabels.fontSizeRatio)}px ${V.value.style.fontFamily}`,
@@ -771,7 +771,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
771
771
  rotation: V.value.style.chart.grid.x.timeLabels.rotation
772
772
  });
773
773
  }
774
- function $n() {
774
+ function er() {
775
775
  f(k.value, [{
776
776
  x: G.value.left + G.value.slot * (M.value ?? R.value) + G.value.slot / 2,
777
777
  y: G.value.top
@@ -785,7 +785,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
785
785
  linceCap: "round"
786
786
  });
787
787
  }
788
- function er() {
788
+ function tr() {
789
789
  L.value && f(k.value, [{
790
790
  x: G.value.left,
791
791
  y: L.value
@@ -799,7 +799,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
799
799
  linceCap: "round"
800
800
  });
801
801
  }
802
- function tr() {
802
+ function nr() {
803
803
  Z.value.forEach((e, t) => {
804
804
  for (let n = 0; n < e.coordinatesLine.length; n += 1) Ae(k.value, [
805
805
  {
@@ -855,7 +855,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
855
855
  });
856
856
  });
857
857
  }
858
- function nr(e, t) {
858
+ function rr(e, t) {
859
859
  let n = e.coordinatesLine.map((t, n) => e.series[n] != null && Number.isFinite(t?.y) ? t : null), r = [], i = [], a = [];
860
860
  for (let e = 0; e < n.length; e += 1) {
861
861
  let o = n[e];
@@ -897,7 +897,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
897
897
  singles: i
898
898
  };
899
899
  }
900
- function rr(e) {
900
+ function ir(e) {
901
901
  let t = e.coordinatesLine.map((t, n) => e.series[n] != null && Number.isFinite(t?.y) ? t : null), n = [], r = [];
902
902
  for (let e = 0; e < t.length; e += 1) {
903
903
  let i = t[e];
@@ -905,9 +905,9 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
905
905
  }
906
906
  return r.length >= 2 && n.push(r), n;
907
907
  }
908
- function ir(e) {
909
- if (En.value) {
910
- let t = rr(e);
908
+ function ar(e) {
909
+ if (Dn.value) {
910
+ let t = ir(e);
911
911
  for (let n of t) f(k.value, n, {
912
912
  color: e.color,
913
913
  lineWidth: 3
@@ -917,12 +917,12 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
917
917
  lineWidth: 3
918
918
  });
919
919
  }
920
- function ar(e) {
921
- let t = !!En.value;
920
+ function or(e) {
921
+ let t = !!Dn.value;
922
922
  if (e.useArea) {
923
923
  let r = U.value.stacked ? e.localZero : K.value.zero;
924
924
  if (t) {
925
- let { polygons: t, singles: i } = nr(e, r);
925
+ let { polygons: t, singles: i } = rr(e, r);
926
926
  for (let r of t) Oe(k.value, r, {
927
927
  fillColor: n(e.color, V.value.style.chart.area.opacity),
928
928
  strokeColor: "transparent"
@@ -953,12 +953,12 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
953
953
  strokeColor: "transparent"
954
954
  });
955
955
  }
956
- ir(e);
956
+ ar(e);
957
957
  return;
958
958
  }
959
- ir(e);
959
+ ar(e);
960
960
  }
961
- function or() {
961
+ function sr() {
962
962
  J.value.forEach((e, t) => {
963
963
  f(k.value, [{
964
964
  x: G.value.left,
@@ -972,7 +972,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
972
972
  });
973
973
  });
974
974
  }
975
- function sr() {
975
+ function cr() {
976
976
  let { left: e, top: t, width: n, height: r } = G.value, i = Y.value.start, a = Y.value.end - i, o = n / a, s = X.value.start - i, c = X.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
977
977
  Ae(k.value, [
978
978
  {
@@ -1004,9 +1004,9 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1004
1004
  });
1005
1005
  }
1006
1006
  function $() {
1007
- !B.value || !H.value || !k.value || (Vn(), P.value ? ((M.value !== null || R.value !== null) && V.value.style.chart.selector.show && $n(), tr(), U.value.stacked && V.value.style.chart.grid.x.showAxis && or(), zn.value.forEach((e) => {
1008
- (e.type === "line" || !e.type) && ar(e), F.value && (Hn(e), U.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Gn(e));
1009
- }), H.value && (Ot.value = ke(H.value))) : (Ot.value && (k.value.clearRect(0, 0, 1e4, 1e4), k.value.drawImage(Ot.value, 0, 0)), (M.value !== null || R.value !== null) && V.value.style.chart.selector.show && $n(), (M.value !== null || R.value !== null) && J.value.forEach((e) => {
1007
+ !B.value || !H.value || !k.value || (Hn(), P.value ? ((M.value !== null || R.value !== null) && V.value.style.chart.selector.show && er(), nr(), U.value.stacked && V.value.style.chart.grid.x.showAxis && sr(), Bn.value.forEach((e) => {
1008
+ (e.type === "line" || !e.type) && or(e), F.value && (Un(e), U.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Kn(e));
1009
+ }), H.value && (kt.value = ke(H.value))) : (kt.value && (k.value.clearRect(0, 0, 1e4, 1e4), k.value.drawImage(kt.value, 0, 0)), (M.value !== null || R.value !== null) && V.value.style.chart.selector.show && er(), (M.value !== null || R.value !== null) && J.value.forEach((e) => {
1010
1010
  let t = M.value ?? R.value, n = e.coordinatesLine[t];
1011
1011
  (e.type === "line" || !e.type || e.type === "plot") && n && Number.isFinite(n.x) && Number.isFinite(n.y) && De(k.value, {
1012
1012
  x: n.x,
@@ -1016,12 +1016,12 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1016
1016
  fillStyle: e.color,
1017
1017
  strokeColor: "transparent"
1018
1018
  });
1019
- })), V.value.style.chart.grid.x.timeLabels.show && Qn(), V.value.style.chart.selector.show && V.value.style.chart.selector.showHorizontalSelector && er(), Wn(), Un(), V.value.style.chart.zoom.preview.enable && (Y.value.start !== X.value.start || Y.value.end !== X.value.end) && sr(), P.value = !1);
1019
+ })), V.value.style.chart.grid.x.timeLabels.show && $n(), V.value.style.chart.selector.show && V.value.style.chart.selector.showHorizontalSelector && tr(), Gn(), Wn(), V.value.style.chart.zoom.preview.enable && (Y.value.start !== X.value.start || Y.value.end !== X.value.end) && cr(), P.value = !1);
1020
1020
  }
1021
- let cr = Te(() => {
1022
- F.value = !0, Bn();
1021
+ let lr = Te(() => {
1022
+ F.value = !0, Vn();
1023
1023
  }, W.value > 200 ? 10 : 1, !F.value);
1024
- function lr(e) {
1024
+ function ur(e) {
1025
1025
  if ([null, void 0].includes(M.value ?? R.value) || !e.coordinatesLine[M.value ?? R.value]) return !1;
1026
1026
  let { y: t, value: n } = e.coordinatesLine[M.value ?? R.value];
1027
1027
  return {
@@ -1029,15 +1029,15 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1029
1029
  value: n
1030
1030
  };
1031
1031
  }
1032
- function ur(e) {
1033
- if (!B.value || !H.value || gn.value) return;
1032
+ function dr(e) {
1033
+ if (!B.value || !H.value || _n.value) return;
1034
1034
  let { left: t, top: n } = H.value.getBoundingClientRect(), r = e.clientX - t;
1035
1035
  if (L.value = (e.clientY - n) * 2, (L.value < G.value.top || L.value > G.value.bottom) && (L.value = null), r * 2 < G.value.left || r * 2 > G.value.right) {
1036
- hr();
1036
+ gr();
1037
1037
  return;
1038
1038
  }
1039
1039
  let i = r * 2 - G.value.left, a = Math.floor(i / G.value.slot);
1040
- if (M.value = a, z.value = a, wt.value = !0, Wt.value = !1, !F.value) return;
1040
+ if (M.value = a, z.value = a, Tt.value = !0, Gt.value = !1, !F.value) return;
1041
1041
  let o = "", s = V.value.style.chart.tooltip.customFormat, c = J.value.map((e) => ({
1042
1042
  shape: e.shape || null,
1043
1043
  name: e.name,
@@ -1045,13 +1045,13 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1045
1045
  type: e.type || "line",
1046
1046
  value: e.series.find((e, t) => t === M.value)
1047
1047
  }));
1048
- Et.value = {
1049
- timeLabel: V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[M.value] ? V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[M.value]?.text : Zn.value[M.value]?.text : "",
1048
+ Dt.value = {
1049
+ timeLabel: V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[M.value] ? V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[M.value]?.text : Qn.value[M.value]?.text : "",
1050
1050
  datapoint: c,
1051
1051
  seriesIndex: M.value,
1052
1052
  series: J.value,
1053
1053
  config: V.value
1054
- }, yr({
1054
+ }, br({
1055
1055
  seriesIndex: M.value,
1056
1056
  datapoint: c
1057
1057
  }), ue(s) && te(() => s({
@@ -1059,14 +1059,14 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1059
1059
  datapoint: c,
1060
1060
  series: J.value,
1061
1061
  config: V.value
1062
- })) ? Tt.value = s({
1062
+ })) ? Et.value = s({
1063
1063
  seriesIndex: M.value,
1064
1064
  datapoint: c,
1065
1065
  series: J.value,
1066
1066
  config: V.value
1067
- }) : (V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[M.value] ? o += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[M.value]?.text : Zn.value[M.value]?.text}</div>` : o += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${Q.value[M.value + Y.value.start]?.text ?? ""}</div>`, o += Tn.value.join(""), Tt.value = o), F.value = !1;
1067
+ }) : (V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[M.value] ? o += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[M.value]?.text : Qn.value[M.value]?.text}</div>` : o += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${Q.value[M.value + Y.value.start]?.text ?? ""}</div>`, o += En.value.join(""), Et.value = o), F.value = !1;
1068
1068
  }
1069
- function dr(e) {
1069
+ function fr(e) {
1070
1070
  return J.value.map((t) => ({
1071
1071
  shape: t.shape || null,
1072
1072
  name: t.name,
@@ -1075,9 +1075,9 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1075
1075
  value: t.series.find((t, n) => n === e)
1076
1076
  }));
1077
1077
  }
1078
- function fr(e) {
1079
- let t = "", n = V.value.style.chart.tooltip.customFormat, r = dr(e);
1080
- return yr({
1078
+ function pr(e) {
1079
+ let t = "", n = V.value.style.chart.tooltip.customFormat, r = fr(e);
1080
+ return br({
1081
1081
  seriesIndex: e,
1082
1082
  datapoint: r
1083
1083
  }), ue(n) && te(() => n({
@@ -1090,41 +1090,41 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1090
1090
  datapoint: r,
1091
1091
  series: J.value,
1092
1092
  config: V.value
1093
- }) : (V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[e] ? t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[e]?.text : Zn.value[e]?.text}</div>` : t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${Q.value[e + Y.value.start]?.text ?? ""}</div>`, t += Tn.value.join(""), t);
1093
+ }) : (V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[e] ? t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[e]?.text : Qn.value[e]?.text}</div>` : t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${Q.value[e + Y.value.start]?.text ?? ""}</div>`, t += En.value.join(""), t);
1094
1094
  }
1095
- function pr(e) {
1095
+ function mr(e) {
1096
1096
  if (!H.value || !G.value?.slot) return;
1097
1097
  let t = H.value.getBoundingClientRect(), n = t.width / G.value.canvasWidth, r = t.height / G.value.canvasHeight, i = G.value.left + G.value.slot * e + G.value.slot / 2, a = G.value.top + G.value.height / 2;
1098
- Kt.value = {
1098
+ qt.value = {
1099
1099
  x: t.left + i * n,
1100
1100
  y: t.top + a * r
1101
1101
  };
1102
1102
  }
1103
- function mr(e, { fromKeyboard: t = !1 } = {}) {
1104
- !B.value || gn.value || e != null && (e < 0 || e >= Y.value.end - Y.value.start || (M.value = e, z.value = e, wt.value = !0, Wt.value = t, Tt.value = fr(e), t && pr(e), F.value = !1, $()));
1105
- }
1106
- function hr() {
1107
- wt.value = !1, M.value = null, z.value = null, Tt.value = "", L.value = null, Wt.value = !1, $();
1103
+ function hr(e, { fromKeyboard: t = !1 } = {}) {
1104
+ !B.value || _n.value || e != null && (e < 0 || e >= Y.value.end - Y.value.start || (M.value = e, z.value = e, Tt.value = !0, Gt.value = t, Et.value = pr(e), t && mr(e), F.value = !1, $()));
1108
1105
  }
1109
1106
  function gr() {
1110
- Gt.value = !0;
1107
+ Tt.value = !1, M.value = null, z.value = null, Et.value = "", L.value = null, Gt.value = !1, $();
1111
1108
  }
1112
1109
  function _r() {
1113
- Gt.value = !1, hr();
1110
+ Kt.value = !0;
1114
1111
  }
1115
- function vr(e) {
1116
- if (!H.value || Br.value || document.activeElement !== H.value) return;
1112
+ function vr() {
1113
+ Kt.value = !1, gr();
1114
+ }
1115
+ function yr(e) {
1116
+ if (!H.value || Vr.value || document.activeElement !== H.value) return;
1117
1117
  let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
1118
1118
  if (!t && !n) return;
1119
1119
  let r = Y.value.end - Y.value.start;
1120
1120
  if (r <= 0) return;
1121
1121
  e.preventDefault(), e.stopPropagation();
1122
1122
  let i = z.value;
1123
- i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : (--i, i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, mr(i, { fromKeyboard: !0 });
1123
+ i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : (--i, i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, hr(i, { fromKeyboard: !0 });
1124
1124
  }
1125
- function yr({ seriesIndex: e, datapoint: t }) {
1125
+ function br({ seriesIndex: e, datapoint: t }) {
1126
1126
  let n = Y.value.start + e;
1127
- qt("selectX", {
1127
+ Jt("selectX", {
1128
1128
  dataset: t,
1129
1129
  index: n,
1130
1130
  indexLabel: ""
@@ -1132,13 +1132,13 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1132
1132
  }
1133
1133
  w(() => E.selectedXIndex, (e) => {
1134
1134
  if ([null, void 0].includes(E.selectedXIndex)) {
1135
- hr();
1135
+ gr();
1136
1136
  return;
1137
1137
  }
1138
1138
  let t = e - Y.value.start;
1139
- t < 0 || e >= Y.value.end ? hr() : mr(t, { fromKeyboard: !1 });
1139
+ t < 0 || e >= Y.value.end ? gr() : hr(t, { fromKeyboard: !1 });
1140
1140
  }, { immediate: !0 }), w(() => M.value, (e) => {
1141
- cr();
1141
+ lr();
1142
1142
  }), w(() => Y.value, (e) => {
1143
1143
  P.value = !0, $();
1144
1144
  }, { deep: !0 }), w(() => X.value, (e) => {
@@ -1148,67 +1148,67 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1148
1148
  }), w(() => L.value, (e) => {
1149
1149
  e && $();
1150
1150
  }), w(() => U.value.stacked, (e) => {
1151
- P.value = !0, F.value = !0, cr();
1151
+ P.value = !0, F.value = !0, lr();
1152
1152
  });
1153
- function br() {
1154
- hr();
1153
+ function xr() {
1154
+ gr();
1155
1155
  }
1156
- let xr = $e(null), Sr = $e(null), Cr = $e(null);
1156
+ let Sr = $e(null), Cr = $e(null), wr = $e(null);
1157
1157
  Ze(() => {
1158
- Lt.value = !0, wr();
1158
+ Rt.value = !0, Tr();
1159
1159
  });
1160
- function wr() {
1160
+ function Tr() {
1161
1161
  if (ie(E.dataset) && se({
1162
1162
  componentName: "VueUiXyCanvas",
1163
1163
  type: "dataset",
1164
- debug: Qt.value
1164
+ debug: $t.value
1165
1165
  }), qe(() => {
1166
- H.value && !k.value && (k.value = H.value.getContext("2d", { willReadFrequently: !0 })), k.value && B.value && (P.value = !0, F.value = !0, Bn());
1166
+ H.value && !k.value && (k.value = H.value.getContext("2d", { willReadFrequently: !0 })), k.value && B.value && (P.value = !0, F.value = !0, Vn());
1167
1167
  }), V.value.responsive) {
1168
1168
  let e = Ee(() => {
1169
1169
  let { width: e, height: t } = je({
1170
1170
  chart: O.value,
1171
- title: V.value.style.chart.title.text ? jt.value : null,
1172
- legend: V.value.style.chart.legend.show ? Mt.value : null,
1171
+ title: V.value.style.chart.title.text ? Mt.value : null,
1172
+ legend: V.value.style.chart.legend.show ? Nt.value : null,
1173
1173
  slicer: V.value.style.chart.zoom.show && W.value > 6 ? I.value?.$el : null,
1174
- source: Nt.value
1174
+ source: Pt.value
1175
1175
  });
1176
1176
  requestAnimationFrame(() => {
1177
- ln.value = `${e} / ${t}`;
1177
+ un.value = `${e} / ${t}`;
1178
1178
  });
1179
1179
  });
1180
- xr.value && (Sr.value && xr.value.unobserve(Sr.value), xr.value.disconnect()), xr.value = new ResizeObserver(e), Sr.value = O.value.parentNode, xr.value.observe(Sr.value);
1180
+ Sr.value && (Cr.value && Sr.value.unobserve(Cr.value), Sr.value.disconnect()), Sr.value = new ResizeObserver(e), Cr.value = O.value.parentNode, Sr.value.observe(Cr.value);
1181
1181
  }
1182
- Cr.value && Cr.value.disconnect(), Cr.value = new ResizeObserver(async (e) => {
1183
- for (let t of e) t.contentBoxSize && Ct.value && (P.value = !0, cr());
1184
- }), Cr.value.observe(Ct.value), jn();
1182
+ wr.value && wr.value.disconnect(), wr.value = new ResizeObserver(async (e) => {
1183
+ for (let t of e) t.contentBoxSize && wt.value && (P.value = !0, lr());
1184
+ }), wr.value.observe(wt.value), Mn();
1185
1185
  }
1186
1186
  Xe(() => {
1187
- Cr.value && Cr.value.disconnect(), xr.value && (Sr.value && xr.value.unobserve(Sr.value), xr.value.disconnect());
1187
+ wr.value && wr.value.disconnect(), Sr.value && (Cr.value && Sr.value.unobserve(Cr.value), Sr.value.disconnect());
1188
1188
  });
1189
- function Tr() {
1190
- N.value.length ? N.value = [] : Ar.value.forEach((e, t) => {
1189
+ function Er() {
1190
+ N.value.length ? N.value = [] : jr.value.forEach((e, t) => {
1191
1191
  N.value.push(t);
1192
- }), P.value = !0, cr(), qt("selectLegend", J.value);
1193
- }
1194
- function Er(e) {
1195
- N.value.includes(e) ? N.value = N.value.filter((t) => t !== e) : N.value.push(e), P.value = !0, cr(), qt("selectLegend", J.value);
1192
+ }), P.value = !0, lr(), Jt("selectLegend", J.value);
1196
1193
  }
1197
1194
  function Dr(e) {
1198
- return q.value.length ? q.value.find((t) => t.name === e) || (Qt.value && console.warn(`VueUiXyCanvas - Series name not found "${e}"`), null) : (Qt.value && console.warn("VueUiXyCanvas - There are no series to show."), null);
1195
+ N.value.includes(e) ? N.value = N.value.filter((t) => t !== e) : N.value.push(e), P.value = !0, lr(), Jt("selectLegend", J.value);
1199
1196
  }
1200
1197
  function Or(e) {
1201
- let t = Dr(e);
1202
- t !== null && N.value.includes(t.absoluteIndex) && Er(t.absoluteIndex);
1198
+ return q.value.length ? q.value.find((t) => t.name === e) || ($t.value && console.warn(`VueUiXyCanvas - Series name not found "${e}"`), null) : ($t.value && console.warn("VueUiXyCanvas - There are no series to show."), null);
1203
1199
  }
1204
1200
  function kr(e) {
1205
- let t = Dr(e);
1206
- t !== null && (N.value.includes(t.absoluteIndex) || Er(t.absoluteIndex));
1201
+ let t = Or(e);
1202
+ t !== null && N.value.includes(t.absoluteIndex) && Dr(t.absoluteIndex);
1203
+ }
1204
+ function Ar(e) {
1205
+ let t = Or(e);
1206
+ t !== null && (N.value.includes(t.absoluteIndex) || Dr(t.absoluteIndex));
1207
1207
  }
1208
- let Ar = m(() => q.value.map((e, t) => ({
1208
+ let jr = m(() => q.value.map((e, t) => ({
1209
1209
  ...e,
1210
1210
  name: e.name,
1211
- color: u(e.color) || hn.value[t] || c[t] || c[t % c.length],
1211
+ color: u(e.color) || gn.value[t] || c[t] || c[t % c.length],
1212
1212
  shape: e.shape || "circle",
1213
1213
  prefix: e.prefix || "",
1214
1214
  suffix: e.suffix || "",
@@ -1216,17 +1216,17 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1216
1216
  })).map((e) => ({
1217
1217
  ...e,
1218
1218
  opacity: N.value.includes(e.absoluteIndex) ? .5 : 1,
1219
- segregate: () => Er(e.absoluteIndex),
1219
+ segregate: () => Dr(e.absoluteIndex),
1220
1220
  isSegregated: N.value.includes(e.absoluteIndex)
1221
- }))), jr = m(() => ({
1221
+ }))), Mr = m(() => ({
1222
1222
  cy: "donut-div-legend",
1223
1223
  backgroundColor: V.value.style.chart.legend.backgroundColor,
1224
1224
  color: V.value.style.chart.legend.color,
1225
1225
  fontSize: V.value.style.chart.legend.fontSize,
1226
1226
  paddingBottom: 12,
1227
1227
  fontWeight: V.value.style.chart.legend.bold ? "bold" : ""
1228
- })), Mr = m(() => {
1229
- let e = [""].concat(J.value.map((e) => e.name), " <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>"), t = [];
1228
+ })), Nr = m(() => {
1229
+ let e = [""].concat(J.value.map((e) => e.name), "__SUM__"), t = [];
1230
1230
  for (let e = 0; e < W.value; e += 1) {
1231
1231
  let n = J.value.map((t) => t.series[e] ?? 0).reduce((e, t) => e + t, 0);
1232
1232
  t.push([V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[e] ? Q?.value?.slice(Y.value.start, Y.value.end)?.[e]?.text ?? e + 1 : e + 1].concat(J.value.map((t) => (t.series[e] ?? 0).toFixed(V.value.table.rounding)), (n ?? 0).toFixed(V.value.table.rounding)));
@@ -1250,7 +1250,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1250
1250
  config: n,
1251
1251
  colNames: r
1252
1252
  };
1253
- }), Nr = m(() => {
1253
+ }), Pr = m(() => {
1254
1254
  if (J.value.length === 0) return {
1255
1255
  head: [],
1256
1256
  body: [],
@@ -1273,37 +1273,37 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1273
1273
  body: t
1274
1274
  };
1275
1275
  });
1276
- function Pr(e = null) {
1276
+ function Fr(e = null) {
1277
1277
  let n = [
1278
1278
  [V.value.style.chart.title.text],
1279
1279
  [V.value.style.chart.title.subtitle.text],
1280
1280
  [""]
1281
- ], i = ["", ...Nr.value.head.map((e) => e.label)], a = Nr.value.body, o = n.concat([i]).concat(a), s = r(o);
1281
+ ], i = ["", ...Pr.value.head.map((e) => e.label)], a = Pr.value.body, o = n.concat([i]).concat(a), s = r(o);
1282
1282
  e ? e(s) : t({
1283
1283
  csvContent: s,
1284
1284
  title: V.value.style.chart.title.text || "vue-ui-xy-canvas"
1285
1285
  });
1286
1286
  }
1287
- function Fr() {
1287
+ function Ir() {
1288
1288
  return J.value;
1289
1289
  }
1290
- function Ir() {
1290
+ function Lr() {
1291
1291
  U.value.showTable = !U.value.showTable;
1292
1292
  }
1293
- function Lr() {
1293
+ function Rr() {
1294
1294
  U.value.showDataLabels = !U.value.showDataLabels;
1295
1295
  }
1296
- function Rr() {
1296
+ function zr() {
1297
1297
  U.value.stacked = !U.value.stacked;
1298
1298
  }
1299
- function zr() {
1299
+ function Br() {
1300
1300
  U.value.showTooltip = !U.value.showTooltip;
1301
1301
  }
1302
- let Br = x(!1);
1303
- function Vr() {
1304
- Br.value = !Br.value;
1302
+ let Vr = x(!1);
1303
+ function Hr() {
1304
+ Vr.value = !Vr.value;
1305
1305
  }
1306
- async function Hr({ scale: e = 2 } = {}) {
1306
+ async function Ur({ scale: e = 2 } = {}) {
1307
1307
  if (!O.value) return;
1308
1308
  let { imageUri: t, base64: n } = await Se({
1309
1309
  domElement: O.value,
@@ -1322,20 +1322,20 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1322
1322
  ...a
1323
1323
  };
1324
1324
  }
1325
- let Ur = m(() => {
1325
+ let Wr = m(() => {
1326
1326
  let e = V.value.table.useDialog && !V.value.table.show, t = U.value.showTable;
1327
1327
  return {
1328
- component: e ? yt : Pe,
1328
+ component: e ? bt : Pe,
1329
1329
  title: `${V.value.style.chart.title.text}${V.value.style.chart.title.subtitle.text ? `: ${V.value.style.chart.title.subtitle.text}` : ""}`,
1330
1330
  props: e ? {
1331
1331
  backgroundColor: V.value.table.th.backgroundColor,
1332
1332
  color: V.value.table.th.color,
1333
1333
  headerColor: V.value.table.th.color,
1334
1334
  headerBg: V.value.table.th.backgroundColor,
1335
- isFullscreen: At.value,
1335
+ isFullscreen: jt.value,
1336
1336
  fullscreenParent: O.value,
1337
1337
  forcedWidth: Math.min(800, window.innerWidth * .8),
1338
- isCursorPointer: Zt.value
1338
+ isCursorPointer: Qt.value
1339
1339
  } : {
1340
1340
  hideDetails: !0,
1341
1341
  config: {
@@ -1354,24 +1354,24 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1354
1354
  };
1355
1355
  });
1356
1356
  w(() => U.value.showTable, (e) => {
1357
- V.value.table.show || (e && V.value.table.useDialog && Rt.value ? Rt.value.open() : "close" in Rt.value && Rt.value.close());
1357
+ V.value.table.show || (e && V.value.table.useDialog && zt.value ? zt.value.open() : "close" in zt.value && zt.value.close());
1358
1358
  });
1359
- function Wr() {
1360
- U.value.showTable = !1, zt.value && zt.value.setTableIconState(!1);
1359
+ function Gr() {
1360
+ U.value.showTable = !1, Bt.value && Bt.value.setTableIconState(!1);
1361
1361
  }
1362
- function Gr(e) {
1362
+ function Kr(e) {
1363
1363
  if (e?.stage === "start") {
1364
- Ut.value = !0;
1364
+ Wt.value = !0;
1365
1365
  return;
1366
1366
  }
1367
1367
  if (e?.stage === "end") {
1368
- Ut.value = !1;
1368
+ Wt.value = !1;
1369
1369
  return;
1370
1370
  }
1371
- pn();
1371
+ mn();
1372
1372
  }
1373
- async function Kr() {
1374
- if (qt("copyAlt", {
1373
+ async function qr() {
1374
+ if (Jt("copyAlt", {
1375
1375
  config: V.value,
1376
1376
  dataset: J.value
1377
1377
  }), !V.value.userOptions.callbacks.altCopy) {
@@ -1384,41 +1384,41 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1384
1384
  }));
1385
1385
  }
1386
1386
  return we({
1387
- getData: Fr,
1388
- getImage: Hr,
1389
- generateCsv: Pr,
1390
- generatePdf: fn,
1391
- generateImage: pn,
1392
- hideSeries: kr,
1393
- showSeries: Or,
1394
- toggleTable: Ir,
1395
- toggleLabels: Lr,
1396
- toggleStack: Rr,
1397
- toggleTooltip: zr,
1398
- toggleAnnotator: Vr,
1399
- toggleFullscreen: mn,
1400
- copyAlt: Kr
1387
+ getData: Ir,
1388
+ getImage: Ur,
1389
+ generateCsv: Fr,
1390
+ generatePdf: pn,
1391
+ generateImage: mn,
1392
+ hideSeries: Ar,
1393
+ showSeries: kr,
1394
+ toggleTable: Lr,
1395
+ toggleLabels: Rr,
1396
+ toggleStack: zr,
1397
+ toggleTooltip: Br,
1398
+ toggleAnnotator: Hr,
1399
+ toggleFullscreen: hn,
1400
+ copyAlt: qr
1401
1401
  }), (t, n) => (b(), Ve("div", {
1402
1402
  style: Ye(`width:100%; position:relative; ${V.value.responsive ? "height: 100%" : ""}; background:${V.value.style.chart.backgroundColor};`),
1403
1403
  ref_key: "xy",
1404
1404
  ref: O,
1405
1405
  id: `xy_canvas_${D.value}`,
1406
- class: Je(`vue-data-ui-component vue-ui-xy-canvas ${At.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1407
- onMouseenter: on,
1408
- onMouseleave: sn
1406
+ class: Je(`vue-data-ui-component vue-ui-xy-canvas ${jt.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1407
+ onMouseenter: sn,
1408
+ onMouseleave: cn
1409
1409
  }, [
1410
1410
  _("div", {
1411
1411
  id: `chart-instructions-${D.value}`,
1412
1412
  class: "sr-only"
1413
1413
  }, [_("p", null, et(V.value.a11y.translations.keyboardNavigation), 1)], 8, ot),
1414
- _("div", st, et(Xt.value), 1),
1414
+ _("div", st, et(Zt.value), 1),
1415
1415
  V.value.style.chart.title.text ? (b(), Ve("div", {
1416
1416
  key: 0,
1417
1417
  ref_key: "chartTitle",
1418
- ref: jt,
1418
+ ref: Mt,
1419
1419
  style: Ye(`width:100%;background:${V.value.style.chart.backgroundColor};`)
1420
1420
  }, [(b(), h(Ce, {
1421
- key: `title_${Pt.value}`,
1421
+ key: `title_${Ft.value}`,
1422
1422
  config: {
1423
1423
  title: {
1424
1424
  cy: "xy-canvas-title",
@@ -1431,14 +1431,14 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1431
1431
  }
1432
1432
  }, null, 8, ["config"]))], 4)) : g("", !0),
1433
1433
  _("div", { id: `legend-top-${D.value}` }, null, 8, ct),
1434
- V.value.userOptions.show && B.value && (C(an) || C(nn)) ? (b(), h(C(_t), {
1434
+ V.value.userOptions.show && B.value && (C(on) || C(rn)) ? (b(), h(C(vt), {
1435
1435
  ref_key: "userOptionsRef",
1436
- ref: zt,
1437
- key: `user_option_${kt.value}`,
1436
+ ref: Bt,
1437
+ key: `user_option_${At.value}`,
1438
1438
  backgroundColor: V.value.style.chart.backgroundColor,
1439
1439
  color: V.value.style.chart.color,
1440
- isPrinting: C(un),
1441
- isImaging: C(dn),
1440
+ isPrinting: C(dn),
1441
+ isImaging: C(fn),
1442
1442
  uid: D.value,
1443
1443
  hasTooltip: V.value.userOptions.buttons.tooltip && V.value.style.chart.tooltip.show,
1444
1444
  hasPdf: V.value.userOptions.buttons.pdf,
@@ -1449,29 +1449,29 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1449
1449
  hasFullscreen: V.value.userOptions.buttons.fullscreen,
1450
1450
  hasAltCopy: V.value.userOptions.buttons.altCopy,
1451
1451
  hasTable: Y.value.end - Y.value.start <= 730 && V.value.userOptions.buttons.table,
1452
- isFullscreen: At.value,
1452
+ isFullscreen: jt.value,
1453
1453
  isTooltip: U.value.showTooltip,
1454
1454
  isStacked: U.value.stacked,
1455
1455
  titles: { ...V.value.userOptions.buttonTitles },
1456
1456
  chartElement: O.value,
1457
1457
  position: V.value.userOptions.position,
1458
1458
  hasAnnotator: V.value.userOptions.buttons.annotator,
1459
- isAnnotation: Br.value,
1459
+ isAnnotation: Vr.value,
1460
1460
  callbacks: V.value.userOptions.callbacks,
1461
1461
  printScale: V.value.userOptions.print.scale,
1462
1462
  tableDialog: V.value.table.useDialog,
1463
- isCursorPointer: Zt.value,
1464
- onToggleFullscreen: mn,
1465
- onGeneratePdf: C(fn),
1466
- onGenerateCsv: Pr,
1467
- onGenerateImage: Gr,
1468
- onToggleTable: Ir,
1469
- onToggleLabels: Lr,
1470
- onToggleStack: Rr,
1471
- onToggleTooltip: zr,
1472
- onToggleAnnotator: Vr,
1473
- onCopyAlt: Kr,
1474
- style: Ye({ visibility: C(an) ? C(nn) ? "visible" : "hidden" : "visible" })
1463
+ isCursorPointer: Qt.value,
1464
+ onToggleFullscreen: hn,
1465
+ onGeneratePdf: C(pn),
1466
+ onGenerateCsv: Fr,
1467
+ onGenerateImage: Kr,
1468
+ onToggleTable: Lr,
1469
+ onToggleLabels: Rr,
1470
+ onToggleStack: zr,
1471
+ onToggleTooltip: Br,
1472
+ onToggleAnnotator: Hr,
1473
+ onCopyAlt: qr,
1474
+ style: Ye({ visibility: C(on) ? C(rn) ? "visible" : "hidden" : "visible" })
1475
1475
  }, He({ _: 2 }, [
1476
1476
  t.$slots.menuIcon ? {
1477
1477
  name: "menuIcon",
@@ -1550,14 +1550,14 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1550
1550
  ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasXls.hasLabel.hasStack.hasFullscreen.hasAltCopy.hasTable.isFullscreen.isTooltip.isStacked.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : g("", !0),
1551
1551
  _("div", {
1552
1552
  class: "vue-ui-xy-canvas",
1553
- style: Ye(`position: relative; aspect-ratio: ${ln.value}`),
1553
+ style: Ye(`position: relative; aspect-ratio: ${un.value}`),
1554
1554
  ref_key: "container",
1555
- ref: Ct
1555
+ ref: wt
1556
1556
  }, [
1557
1557
  _("canvas", {
1558
1558
  ref_key: "canvas",
1559
1559
  ref: H,
1560
- "aria-label": Yt.value,
1560
+ "aria-label": Xt.value,
1561
1561
  "aria-describedby": `chart-instructions-${D.value}`,
1562
1562
  role: "img",
1563
1563
  "aria-live": "polite",
@@ -1566,20 +1566,20 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1566
1566
  width: "100%",
1567
1567
  height: "100%"
1568
1568
  },
1569
- onMousemove: n[0] ||= (e) => ur(e),
1570
- onMouseleave: br,
1571
- onFocus: gr,
1572
- onBlur: _r,
1573
- onKeydown: vr
1569
+ onMousemove: n[0] ||= (e) => dr(e),
1570
+ onMouseleave: xr,
1571
+ onFocus: _r,
1572
+ onBlur: vr,
1573
+ onKeydown: yr
1574
1574
  }, null, 40, lt),
1575
1575
  t.$slots.hint ? (b(), Ve("div", ut, [S(t.$slots, "hint", y(v({
1576
1576
  hint: V.value.a11y.translations.keyboardNavigation,
1577
- isVisible: Gt.value
1577
+ isVisible: Kt.value
1578
1578
  })), void 0, !0)])) : g("", !0),
1579
- S(t.$slots, "skeleton", {}, () => [C(en) ? (b(), h(ye, { key: 0 })) : g("", !0)], !0),
1580
- We(C(ht), {
1579
+ S(t.$slots, "skeleton", {}, () => [C(tn) ? (b(), h(ye, { key: 0 })) : g("", !0)], !0),
1580
+ We(C(gt), {
1581
1581
  teleportTo: V.value.style.chart.tooltip.teleportTo,
1582
- show: U.value.showTooltip && wt.value,
1582
+ show: U.value.showTooltip && Tt.value,
1583
1583
  backgroundColor: V.value.style.chart.tooltip.backgroundColor,
1584
1584
  color: V.value.style.chart.tooltip.color,
1585
1585
  fontSize: V.value.style.chart.tooltip.fontSize,
@@ -1590,20 +1590,20 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1590
1590
  offsetX: V.value.style.chart.tooltip.offsetX,
1591
1591
  offsetY: V.value.style.chart.tooltip.offsetY,
1592
1592
  parent: t.$refs.xy,
1593
- content: Tt.value,
1594
- isFullscreen: At.value,
1593
+ content: Et.value,
1594
+ isFullscreen: jt.value,
1595
1595
  backgroundOpacity: V.value.style.chart.tooltip.backgroundOpacity,
1596
1596
  isCustom: C(ue)(V.value.style.chart.tooltip.customFormat),
1597
1597
  smooth: V.value.style.chart.tooltip.smooth,
1598
1598
  backdropFilter: V.value.style.chart.tooltip.backdropFilter,
1599
1599
  smoothForce: V.value.style.chart.tooltip.smoothForce,
1600
1600
  smoothSnapThreshold: V.value.style.chart.tooltip.smoothSnapThreshold,
1601
- isA11yMode: Wt.value,
1602
- a11yPosition: Kt.value
1601
+ isA11yMode: Gt.value,
1602
+ a11yPosition: qt.value
1603
1603
  }, {
1604
- "tooltip-before": T(() => [S(t.$slots, "tooltip-before", y(v({ ...Et.value })), void 0, !0)]),
1605
- tooltip: T(() => [S(t.$slots, "tooltip", y(v({ ...Et.value })), void 0, !0)]),
1606
- "tooltip-after": T(() => [S(t.$slots, "tooltip-after", y(v({ ...Et.value })), void 0, !0)]),
1604
+ "tooltip-before": T(() => [S(t.$slots, "tooltip-before", y(v({ ...Dt.value })), void 0, !0)]),
1605
+ tooltip: T(() => [S(t.$slots, "tooltip", y(v({ ...Dt.value })), void 0, !0)]),
1606
+ "tooltip-after": T(() => [S(t.$slots, "tooltip-after", y(v({ ...Dt.value })), void 0, !0)]),
1607
1607
  _: 3
1608
1608
  }, 8, [
1609
1609
  "teleportTo",
@@ -1630,16 +1630,16 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1630
1630
  "a11yPosition"
1631
1631
  ])
1632
1632
  ], 4),
1633
- V.value.style.chart.zoom.show && W.value > 6 && B.value && Vt.value && !C(en) ? (b(), h(Ne, {
1633
+ V.value.style.chart.zoom.show && W.value > 6 && B.value && Ht.value && !C(tn) ? (b(), h(Ne, {
1634
1634
  key: 2,
1635
1635
  ref_key: "chartSlicer",
1636
1636
  ref: I,
1637
1637
  "data-dom-to-png-ignore-layout": "",
1638
- allMinimaps: On.value,
1638
+ allMinimaps: kn.value,
1639
1639
  background: V.value.style.chart.zoom.color,
1640
1640
  borderColor: V.value.style.chart.backgroundColor,
1641
1641
  customFormat: V.value.style.chart.zoom.customFormat,
1642
- cutNullValues: En.value,
1642
+ cutNullValues: Dn.value,
1643
1643
  enableRangeHandles: V.value.style.chart.zoom.enableRangeHandles,
1644
1644
  enableSelectionDrag: V.value.style.chart.zoom.enableSelectionDrag,
1645
1645
  end: Y.value.end,
@@ -1648,12 +1648,12 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1648
1648
  fontSize: V.value.style.chart.zoom.fontSize,
1649
1649
  immediate: !V.value.style.chart.zoom.preview.enable,
1650
1650
  inputColor: V.value.style.chart.zoom.color,
1651
- isPreview: Mn.value,
1651
+ isPreview: Nn.value,
1652
1652
  labelLeft: V.value.style.chart.grid.x.timeLabels.values[Y.value.start] ? Q.value[Y.value.start]?.text : "",
1653
1653
  labelRight: V.value.style.chart.grid.x.timeLabels.values[Y.value.end - 1] ? Q.value[Y.value.end - 1]?.text : "",
1654
1654
  max: W.value,
1655
1655
  min: 0,
1656
- minimap: Dn.value,
1656
+ minimap: On.value,
1657
1657
  minimapCompact: V.value.style.chart.zoom.minimap.compact,
1658
1658
  minimapFrameColor: V.value.style.chart.zoom.minimap.frameColor,
1659
1659
  minimapIndicatorColor: V.value.style.chart.zoom.minimap.indicatorColor,
@@ -1663,7 +1663,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1663
1663
  minimapSelectedColorOpacity: V.value.style.chart.zoom.minimap.selectedColorOpacity,
1664
1664
  minimapSelectedIndex: M.value,
1665
1665
  minimapSelectionRadius: V.value.style.chart.zoom.minimap.selectionRadius,
1666
- preciseLabels: Xn.value?.length ? Xn.value : Q.value,
1666
+ preciseLabels: Zn.value?.length ? Zn.value : Q.value,
1667
1667
  refreshEndPoint: V.value.style.chart.zoom.endIndex === null ? W.value : V.value.style.chart.zoom.endIndex + 1,
1668
1668
  refreshStartPoint: V.value.style.chart.zoom.startIndex === null ? 0 : V.value.style.chart.zoom.startIndex,
1669
1669
  selectColor: V.value.style.chart.zoom.highlightColor,
@@ -1687,42 +1687,42 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1687
1687
  handleBorderColor: V.value.style.chart.zoom.minimap.handleBorderColor,
1688
1688
  handleFill: V.value.style.chart.zoom.minimap.handleFill,
1689
1689
  handleWidth: V.value.style.chart.zoom.minimap.handleWidth,
1690
- onFutureEnd: n[1] ||= (e) => Nn("end", e),
1691
- onFutureStart: n[2] ||= (e) => Nn("start", e),
1692
- onReset: jn,
1693
- onTrapMouse: _n,
1694
- "onUpdate:end": In,
1695
- "onUpdate:start": Fn
1690
+ onFutureEnd: n[1] ||= (e) => Pn("end", e),
1691
+ onFutureStart: n[2] ||= (e) => Pn("start", e),
1692
+ onReset: Mn,
1693
+ onTrapMouse: vn,
1694
+ "onUpdate:end": Ln,
1695
+ "onUpdate:start": In
1696
1696
  }, {
1697
1697
  "reset-action": T(({ reset: e }) => [S(t.$slots, "reset-action", y(v({ reset: e })), void 0, !0)]),
1698
1698
  _: 3
1699
1699
  }, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.smoothMinimap.start.timeLabels.usePreciseLabels.textColor.useResetSlot.valueEnd.valueStart.verticalHandles.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : g("", !0),
1700
1700
  _("div", { id: `legend-bottom-${D.value}` }, null, 8, dt),
1701
- Lt.value && (V.value.style.chart.legend.show || t.$slots.legend) ? (b(), h(Be, {
1701
+ Rt.value && (V.value.style.chart.legend.show || t.$slots.legend) ? (b(), h(Be, {
1702
1702
  key: 3,
1703
1703
  to: V.value.style.chart.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
1704
1704
  }, [_("div", {
1705
1705
  ref_key: "chartLegend",
1706
- ref: Mt
1707
- }, [S(t.$slots, "legend", { legend: Ar.value }, () => [V.value.style.chart.legend.show && B.value ? (b(), h(Re, {
1708
- legendSet: Ar.value,
1709
- config: jr.value,
1710
- key: `legend_${It.value}`,
1711
- isCursorPointer: Zt.value,
1712
- onClickMarker: n[3] ||= ({ i: e }) => Er(e)
1706
+ ref: Nt
1707
+ }, [S(t.$slots, "legend", { legend: jr.value }, () => [V.value.style.chart.legend.show && B.value ? (b(), h(Re, {
1708
+ legendSet: jr.value,
1709
+ config: Mr.value,
1710
+ key: `legend_${Lt.value}`,
1711
+ isCursorPointer: Qt.value,
1712
+ onClickMarker: n[3] ||= ({ i: e }) => Dr(e)
1713
1713
  }, {
1714
1714
  item: T(({ legend: e, index: t }) => [_("div", {
1715
1715
  onClick: (t) => e.segregate(),
1716
1716
  style: Ye(`opacity:${N.value.includes(t) ? .5 : 1}`)
1717
1717
  }, et(e.name), 13, ft)]),
1718
- legendToggle: T(() => [Ar.value.length > 2 && V.value.style.chart.legend.selectAllToggle.show && !C(en) ? (b(), h(Fe, {
1718
+ legendToggle: T(() => [jr.value.length > 2 && V.value.style.chart.legend.selectAllToggle.show && !C(tn) ? (b(), h(Fe, {
1719
1719
  key: 0,
1720
1720
  backgroundColor: V.value.style.chart.legend.selectAllToggle.backgroundColor,
1721
1721
  color: V.value.style.chart.legend.selectAllToggle.color,
1722
1722
  fontSize: V.value.style.chart.legend.fontSize,
1723
1723
  checked: N.value.length > 0,
1724
- isCursorPointer: Zt.value,
1725
- onToggle: Tr
1724
+ isCursorPointer: Qt.value,
1725
+ onToggle: Er
1726
1726
  }, null, 8, [
1727
1727
  "backgroundColor",
1728
1728
  "color",
@@ -1736,30 +1736,34 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1736
1736
  "config",
1737
1737
  "isCursorPointer"
1738
1738
  ])) : g("", !0)], !0)], 512)], 8, ["to"])) : g("", !0),
1739
- t.$slots.watermark ? (b(), Ve("div", pt, [S(t.$slots, "watermark", y(v({ isPrinting: C(un) || C(dn) || Ut.value })), void 0, !0)])) : g("", !0),
1739
+ t.$slots.watermark ? (b(), Ve("div", pt, [S(t.$slots, "watermark", y(v({ isPrinting: C(dn) || C(fn) || Wt.value })), void 0, !0)])) : g("", !0),
1740
1740
  t.$slots.source ? (b(), Ve("div", {
1741
1741
  key: 5,
1742
1742
  ref_key: "source",
1743
- ref: Nt,
1743
+ ref: Pt,
1744
1744
  dir: "auto"
1745
1745
  }, [S(t.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
1746
- B.value && V.value.userOptions.buttons.table ? (b(), h(Qe(Ur.value.component), Ke({ key: 6 }, Ur.value.props, {
1746
+ B.value && V.value.userOptions.buttons.table ? (b(), h(Qe(Wr.value.component), Ke({ key: 6 }, Wr.value.props, {
1747
1747
  ref_key: "tableUnit",
1748
- ref: Rt,
1749
- onClose: Wr
1748
+ ref: zt,
1749
+ onClose: Gr
1750
1750
  }), He({
1751
- content: T(() => [(b(), h(C(gt), {
1752
- key: `table_${Ft.value}`,
1753
- colNames: Mr.value.colNames,
1754
- head: Mr.value.head,
1755
- body: Mr.value.body,
1756
- config: Mr.value.config,
1757
- title: V.value.table.useDialog ? "" : Ur.value.title,
1751
+ content: T(() => [(b(), h(C(_t), {
1752
+ key: `table_${It.value}`,
1753
+ colNames: Nr.value.colNames,
1754
+ head: Nr.value.head,
1755
+ body: Nr.value.body,
1756
+ config: Nr.value.config,
1757
+ title: V.value.table.useDialog ? "" : Wr.value.title,
1758
1758
  withCloseButton: !V.value.table.useDialog,
1759
- isCursorPointer: Zt.value,
1760
- onClose: Wr
1759
+ isCursorPointer: Qt.value,
1760
+ onClose: Gr
1761
1761
  }, {
1762
- th: T(({ th: e }) => [_("div", { innerHTML: e }, null, 8, mt)]),
1762
+ th: T(({ th: e }) => [e === "__SUM__" ? (b(), Ve("div", mt, [We(Me, {
1763
+ name: "sigma",
1764
+ stroke: Nr.value.config.th.color,
1765
+ size: 16
1766
+ }, null, 8, ["stroke"])])) : (b(), Ve("div", ht, et(e), 1))]),
1763
1767
  td: T(({ td: e }) => [Ue(et(e), 1)]),
1764
1768
  _: 1
1765
1769
  }, 8, [
@@ -1774,29 +1778,29 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1774
1778
  _: 2
1775
1779
  }, [V.value.table.useDialog ? {
1776
1780
  name: "title",
1777
- fn: T(() => [Ue(et(Ur.value.title), 1)]),
1781
+ fn: T(() => [Ue(et(Wr.value.title), 1)]),
1778
1782
  key: "0"
1779
1783
  } : void 0, V.value.table.useDialog ? {
1780
1784
  name: "actions",
1781
1785
  fn: T(() => [_("button", {
1782
1786
  tabindex: "0",
1783
1787
  class: "vue-ui-user-options-button",
1784
- onClick: n[4] ||= (e) => Pr(V.value.userOptions.callbacks.csv),
1785
- style: Ye({ cursor: Zt.value ? "pointer" : "default" })
1788
+ onClick: n[4] ||= (e) => Fr(V.value.userOptions.callbacks.csv),
1789
+ style: Ye({ cursor: Qt.value ? "pointer" : "default" })
1786
1790
  }, [We(Me, {
1787
1791
  name: "fileCsv",
1788
- stroke: Ur.value.props.color
1792
+ stroke: Wr.value.props.color
1789
1793
  }, null, 8, ["stroke"])], 4)]),
1790
1794
  key: "1"
1791
1795
  } : void 0]), 1040)) : g("", !0),
1792
- V.value.userOptions.buttons.annotator && J.value.length ? (b(), h(C(vt), {
1796
+ V.value.userOptions.buttons.annotator && J.value.length ? (b(), h(C(yt), {
1793
1797
  key: 7,
1794
1798
  parent: O.value,
1795
1799
  backgroundColor: V.value.style.chart.backgroundColor,
1796
1800
  color: V.value.style.chart.color,
1797
- active: Br.value,
1798
- isCursorPointer: Zt.value,
1799
- onClose: Vr
1801
+ active: Vr.value,
1802
+ isCursorPointer: Qt.value,
1803
+ onClose: Hr
1800
1804
  }, {
1801
1805
  "annotator-action-close": T(() => [S(t.$slots, "annotator-action-close", {}, void 0, !0)]),
1802
1806
  "annotator-action-color": T(({ color: e }) => [S(t.$slots, "annotator-action-color", y(v({ color: e })), void 0, !0)]),
@@ -1814,6 +1818,6 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
1814
1818
  ])) : g("", !0)
1815
1819
  ], 46, at));
1816
1820
  }
1817
- }, [["__scopeId", "data-v-366a5f0a"]]);
1821
+ }, [["__scopeId", "data-v-c47c665d"]]);
1818
1822
  //#endregion
1819
- export { it as n, ht as t };
1823
+ export { it as n, gt as t };