vue-data-ui 3.25.7 → 3.25.9

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 (163) hide show
  1. package/dist/{BaseScanner-DZvpgOjM.js → BaseScanner-Dzc8VT3j.js} +6 -3
  2. package/dist/{PackageVersion-UfoQuPMf.js → PackageVersion-KBMdaOXg.js} +1 -1
  3. package/dist/components/vue-ui-3d-bar.js +1 -1
  4. package/dist/components/vue-ui-accordion.js +1 -1
  5. package/dist/components/vue-ui-age-pyramid.js +1 -1
  6. package/dist/components/vue-ui-annotator.js +1 -1
  7. package/dist/components/vue-ui-bullet.js +1 -1
  8. package/dist/components/vue-ui-bump.js +1 -1
  9. package/dist/components/vue-ui-candlestick.js +1 -1
  10. package/dist/components/vue-ui-carousel-table.js +1 -1
  11. package/dist/components/vue-ui-chestnut.js +1 -1
  12. package/dist/components/vue-ui-chord.js +1 -1
  13. package/dist/components/vue-ui-circle-pack.js +1 -1
  14. package/dist/components/vue-ui-cursor.js +1 -1
  15. package/dist/components/vue-ui-dag.js +1 -1
  16. package/dist/components/vue-ui-dashboard.js +1 -1
  17. package/dist/components/vue-ui-digits.js +1 -1
  18. package/dist/components/vue-ui-donut-evolution.js +1 -1
  19. package/dist/components/vue-ui-donut.js +1 -1
  20. package/dist/components/vue-ui-dumbbell.js +1 -1
  21. package/dist/components/vue-ui-flow.js +1 -1
  22. package/dist/components/vue-ui-funnel.js +1 -1
  23. package/dist/components/vue-ui-galaxy.js +1 -1
  24. package/dist/components/vue-ui-gauge.js +1 -1
  25. package/dist/components/vue-ui-geo.js +1 -1
  26. package/dist/components/vue-ui-gizmo.js +1 -1
  27. package/dist/components/vue-ui-heatmap.js +1 -1
  28. package/dist/components/vue-ui-hill.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-label.js +1 -1
  33. package/dist/components/vue-ui-mini-loader.js +1 -1
  34. package/dist/components/vue-ui-molecule.js +1 -1
  35. package/dist/components/vue-ui-mood-radar.js +1 -1
  36. package/dist/components/vue-ui-nested-donuts.js +1 -1
  37. package/dist/components/vue-ui-onion.js +1 -1
  38. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  39. package/dist/components/vue-ui-quadrant.js +1 -1
  40. package/dist/components/vue-ui-quick-chart.js +1 -1
  41. package/dist/components/vue-ui-radar.js +1 -1
  42. package/dist/components/vue-ui-rating.js +1 -1
  43. package/dist/components/vue-ui-relation-circle.js +1 -1
  44. package/dist/components/vue-ui-ridgeline.js +1 -1
  45. package/dist/components/vue-ui-rings.js +1 -1
  46. package/dist/components/vue-ui-scatter.js +1 -1
  47. package/dist/components/vue-ui-skeleton.js +1 -1
  48. package/dist/components/vue-ui-smiley.js +1 -1
  49. package/dist/components/vue-ui-spark-trend.js +1 -1
  50. package/dist/components/vue-ui-sparkbar.js +1 -1
  51. package/dist/components/vue-ui-sparkgauge.js +1 -1
  52. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  53. package/dist/components/vue-ui-sparkline.js +1 -1
  54. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  55. package/dist/components/vue-ui-stackbar.js +1 -1
  56. package/dist/components/vue-ui-stackline.js +1 -1
  57. package/dist/components/vue-ui-strip-plot.js +1 -1
  58. package/dist/components/vue-ui-table-heatmap.js +1 -1
  59. package/dist/components/vue-ui-table-sparkline.js +1 -1
  60. package/dist/components/vue-ui-table.js +1 -1
  61. package/dist/components/vue-ui-thermometer.js +1 -1
  62. package/dist/components/vue-ui-timer.js +1 -1
  63. package/dist/components/vue-ui-tiremarks.js +1 -1
  64. package/dist/components/vue-ui-treemap.js +1 -1
  65. package/dist/components/vue-ui-vertical-bar.js +1 -1
  66. package/dist/components/vue-ui-waffle.js +1 -1
  67. package/dist/components/vue-ui-wheel.js +1 -1
  68. package/dist/components/vue-ui-word-cloud.js +1 -1
  69. package/dist/components/vue-ui-world.js +1 -1
  70. package/dist/components/vue-ui-xy-canvas.js +1 -1
  71. package/dist/components/vue-ui-xy.js +1 -1
  72. package/dist/{package-B-3S5q00.js → package-BL27Ev_h.js} +1 -1
  73. package/dist/{render-common-CAXK7ycr.js → render-common-By8J0AE-.js} +1 -1
  74. package/dist/ssr/vue-ui-donut.js +1 -1
  75. package/dist/ssr/vue-ui-xy.js +1 -1
  76. package/dist/ssr.js +2 -2
  77. package/dist/style.css +1 -1
  78. package/dist/types/vue-data-ui.d.ts +2 -0
  79. package/dist/{useConfig-CIQZ6_r7.js → useConfig-D32D002m.js} +2 -0
  80. package/dist/{useObjectBindings---mHNfbS.js → useObjectBindings-Cd_WuYIn.js} +1 -1
  81. package/dist/utils.js +1 -1
  82. package/dist/{vue-data-ui-DlWT702n.js → vue-data-ui-CBWuUAXT.js} +69 -69
  83. package/dist/vue-data-ui.js +70 -70
  84. package/dist/{vue-ui-3d-bar-DbOk2kpM.js → vue-ui-3d-bar-BSbq90H3.js} +3 -3
  85. package/dist/{vue-ui-accordion-BSmBUjwZ.js → vue-ui-accordion-DmkL8A59.js} +1 -1
  86. package/dist/{vue-ui-age-pyramid-C7_mGIRk.js → vue-ui-age-pyramid-CrXl71iC.js} +263 -251
  87. package/dist/{vue-ui-annotator-CTQHAPho.js → vue-ui-annotator-BO5ihHOB.js} +2 -2
  88. package/dist/{vue-ui-bullet-CDy_dkYz.js → vue-ui-bullet-B2Y3Wqh9.js} +3 -3
  89. package/dist/{vue-ui-bump-DP24leiD.js → vue-ui-bump-DXvvjG4I.js} +3 -3
  90. package/dist/{vue-ui-candlestick-kJLmYaR7.js → vue-ui-candlestick-CFqR6W56.js} +453 -441
  91. package/dist/{vue-ui-carousel-table-BQzAQDw6.js → vue-ui-carousel-table-D-ZkPRta.js} +2 -2
  92. package/dist/{vue-ui-chestnut-DnnRp3Kl.js → vue-ui-chestnut-CyW3IoYC.js} +3 -3
  93. package/dist/{vue-ui-chord-DO15ZDCS.js → vue-ui-chord-DS0jni9A.js} +3 -3
  94. package/dist/{vue-ui-circle-pack-DYTllMPV.js → vue-ui-circle-pack-j2ChgLWr.js} +494 -482
  95. package/dist/{vue-ui-cursor-CtViSjNp.js → vue-ui-cursor-qOONOtcv.js} +2 -2
  96. package/dist/{vue-ui-dag-NXtGYzqg.js → vue-ui-dag-CmeFsKhR.js} +3 -3
  97. package/dist/{vue-ui-dashboard-D3_4QohV.js → vue-ui-dashboard-C7Z5BTN4.js} +65 -65
  98. package/dist/{vue-ui-digits-CB09pLQx.js → vue-ui-digits-Bf68x6fb.js} +2 -2
  99. package/dist/{vue-ui-donut-yTE6D8yV.js → vue-ui-donut-CkBPJW_T.js} +837 -825
  100. package/dist/{vue-ui-donut-eysaEyTy.js → vue-ui-donut-DzDSYgVp.js} +2 -2
  101. package/dist/{vue-ui-donut-evolution-DhrtxvAd.js → vue-ui-donut-evolution-CDJumo0t.js} +3 -3
  102. package/dist/{vue-ui-dumbbell-CmGIeULQ.js → vue-ui-dumbbell-Cr__26dN.js} +3 -3
  103. package/dist/vue-ui-flow-Cz6WRi2c.js +1229 -0
  104. package/dist/{vue-ui-funnel-CLAii4wi.js → vue-ui-funnel-BlC7KxS6.js} +2 -2
  105. package/dist/vue-ui-galaxy-Bg2smlcI.js +1097 -0
  106. package/dist/{vue-ui-gauge-D76-4Z_0.js → vue-ui-gauge-BHsaent1.js} +3 -3
  107. package/dist/{vue-ui-geo-BQ7-UnuG.js → vue-ui-geo-CE3Cr0or.js} +407 -395
  108. package/dist/{vue-ui-gizmo-C47zjcs-.js → vue-ui-gizmo-DqFUBEai.js} +3 -3
  109. package/dist/{vue-ui-heatmap-XJef60IZ.js → vue-ui-heatmap-DXqj9ial.js} +478 -446
  110. package/dist/{vue-ui-hill-D5BYGPXB.js → vue-ui-hill-B3fPAfhL.js} +2 -2
  111. package/dist/vue-ui-history-plot-CrnTnpaM.js +1710 -0
  112. package/dist/{vue-ui-horizontal-bar-BgFHi6_7.js → vue-ui-horizontal-bar-DqvN3imH.js} +432 -420
  113. package/dist/{vue-ui-kpi-Cb8QJeaj.js → vue-ui-kpi-Mf318HvK.js} +2 -2
  114. package/dist/{vue-ui-label-ClMQ5Gez.js → vue-ui-label-C1UAzvAu.js} +1 -1
  115. package/dist/{vue-ui-mini-loader-DtPOVIkK.js → vue-ui-mini-loader-wGeACd-Y.js} +1 -1
  116. package/dist/{vue-ui-molecule-BzwMl-in.js → vue-ui-molecule-CaLReo4h.js} +346 -334
  117. package/dist/{vue-ui-mood-radar-BUR_YCcr.js → vue-ui-mood-radar-jkE2ENX5.js} +3 -3
  118. package/dist/{vue-ui-nested-donuts-BEB4nfsD.js → vue-ui-nested-donuts-BgMOKjil.js} +360 -348
  119. package/dist/vue-ui-onion-DBN3Ev4j.js +1247 -0
  120. package/dist/{vue-ui-parallel-coordinate-plot-CSO4johj.js → vue-ui-parallel-coordinate-plot-BcJzEGJ-.js} +387 -375
  121. package/dist/{vue-ui-quadrant-CKav0I6g.js → vue-ui-quadrant-BvoVlxTI.js} +418 -406
  122. package/dist/{vue-ui-quick-chart-BAQNS9_2.js → vue-ui-quick-chart-2hn8-F_C.js} +550 -538
  123. package/dist/{vue-ui-radar-ClPAgf5I.js → vue-ui-radar-O3AjGrc-.js} +330 -318
  124. package/dist/{vue-ui-rating-CWFMoYpE.js → vue-ui-rating-Criq0ofQ.js} +1 -1
  125. package/dist/{vue-ui-relation-circle-Da2MhrVe.js → vue-ui-relation-circle-CRnH2ikm.js} +3 -3
  126. package/dist/{vue-ui-ridgeline-D7gFs8yR.js → vue-ui-ridgeline-Blejn8LY.js} +3 -3
  127. package/dist/{vue-ui-rings-DkDJ0k5b.js → vue-ui-rings-C1U38Bp0.js} +321 -309
  128. package/dist/{vue-ui-scatter-yv4JzJID.js → vue-ui-scatter-DTsCc9hg.js} +584 -572
  129. package/dist/{vue-ui-skeleton-oFnh5zWs.js → vue-ui-skeleton-BPr3u7IL.js} +2 -2
  130. package/dist/{vue-ui-smiley-DJVusLnp.js → vue-ui-smiley-BIjAIpJ9.js} +1 -1
  131. package/dist/{vue-ui-spark-trend-IqZWPvSB.js → vue-ui-spark-trend-B7w4Mg8O.js} +3 -3
  132. package/dist/{vue-ui-sparkbar-_FW47iYj.js → vue-ui-sparkbar-lVDnYEYA.js} +3 -3
  133. package/dist/{vue-ui-sparkgauge--2vk2Y23.js → vue-ui-sparkgauge-BryoGCoc.js} +3 -3
  134. package/dist/{vue-ui-sparkhistogram-CFEIPa5n.js → vue-ui-sparkhistogram-BdNoLb9L.js} +3 -3
  135. package/dist/{vue-ui-sparkline-Cs9CJR6W.js → vue-ui-sparkline-CNFD5K6z.js} +3 -3
  136. package/dist/vue-ui-sparkstackbar-CZ4tGL-_.js +750 -0
  137. package/dist/vue-ui-stackbar-DfsgaZy7.js +2369 -0
  138. package/dist/vue-ui-stackline-Cx7q2sGF.js +2483 -0
  139. package/dist/vue-ui-strip-plot-BcYhLPHM.js +1752 -0
  140. package/dist/{vue-ui-table-CiccGbRB.js → vue-ui-table-BzF75YjN.js} +3 -3
  141. package/dist/{vue-ui-table-heatmap-DnP3pzh2.js → vue-ui-table-heatmap-BSUab4fG.js} +1 -1
  142. package/dist/{vue-ui-table-sparkline-Bp7RiZh4.js → vue-ui-table-sparkline-B9ICTtoE.js} +2 -2
  143. package/dist/{vue-ui-thermometer-CawumQKP.js → vue-ui-thermometer-Am7llqdI.js} +3 -3
  144. package/dist/{vue-ui-timer-CXinMW7q.js → vue-ui-timer-D6EvkM31.js} +2 -2
  145. package/dist/{vue-ui-tiremarks-BnI2uhki.js → vue-ui-tiremarks-DiQJu8Em.js} +3 -3
  146. package/dist/{vue-ui-treemap-DTlFbfD6.js → vue-ui-treemap-wUZpijpr.js} +310 -298
  147. package/dist/vue-ui-waffle-6hO0flDT.js +1633 -0
  148. package/dist/{vue-ui-wheel-B02tiG0p.js → vue-ui-wheel-DnyCE0CK.js} +3 -3
  149. package/dist/{vue-ui-word-cloud-BZnCOMHx.js → vue-ui-word-cloud-D_MZ3gCS.js} +385 -372
  150. package/dist/{vue-ui-world-DO2VZ-T-.js → vue-ui-world-QNGY2WPz.js} +474 -462
  151. package/dist/{vue-ui-xy-CD6BiP_g.js → vue-ui-xy-BD-ighya.js} +2 -2
  152. package/dist/{vue-ui-xy-BC9GVdWE.js → vue-ui-xy-Ctcwn7Rk.js} +1447 -1432
  153. package/dist/{vue-ui-xy-canvas-DANPuyf4.js → vue-ui-xy-canvas-DUeglcdP.js} +523 -511
  154. package/package.json +1 -1
  155. package/dist/vue-ui-flow-qYAq3Rmn.js +0 -1217
  156. package/dist/vue-ui-galaxy-BVX-o2f-.js +0 -1085
  157. package/dist/vue-ui-history-plot-D-d-1ZiM.js +0 -1698
  158. package/dist/vue-ui-onion-CG6myK7a.js +0 -1235
  159. package/dist/vue-ui-sparkstackbar-Cvbue77A.js +0 -738
  160. package/dist/vue-ui-stackbar-C5ANS2hd.js +0 -2355
  161. package/dist/vue-ui-stackline-7yajJFW4.js +0 -2469
  162. package/dist/vue-ui-strip-plot-BT6Eqhup.js +0 -1740
  163. package/dist/vue-ui-waffle-CjgRkQAp.js +0 -1621
@@ -1,25 +1,25 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, Ct as n, D as r, Lt as i, Ot as a, Pt as o, S as s, Ut as c, Vt as l, X as u, Yt as ee, Zt as te, _ as ne, bt as re, i as ie, jt as ae, lt as oe, nt as se, o as ce, pt as le, q as ue, w as de } from "./lib-Dql7cqyA.js";
3
- import { n as fe, t as pe } from "./useHints-Dq_w2E8B.js";
4
- import { n as me, r as he, t as ge } from "./useTimeLabels-d2f-W1L4.js";
5
- import { t as _e } from "./useConfig-CIQZ6_r7.js";
6
- import { t as ve } from "./usePrinter-DISD7q5m.js";
7
- import { n as ye, t as be } from "./BaseScanner-DZvpgOjM.js";
8
- import { t as xe } from "./useNestedProp-Chvyfpl-.js";
9
- import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as Ce } from "./img-DhGApYG0.js";
11
- import { n as we } from "./Title-CPHi-evi.js";
12
- import { t as Te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { a as d, c as Ee, i as De, l as Oe, n as ke, o as Ae, r as je, s as Me, t as Ne } from "./useResponsive-ZtArZtUf.js";
14
- import { t as Pe } from "./BaseIcon-D8R6_sKH.js";
15
- import { t as Fe } from "./SlicerPreview-B6iHOC9L.js";
16
- import { t as Ie } from "./vue-ui-accordion-BSmBUjwZ.js";
17
- import { t as Le } from "./BaseLegendToggle-CXQrLjd-.js";
18
- import { t as Re } from "./useUserOptionState-DK-_1ddE.js";
19
- import { t as ze } from "./useChartAccessibility-DYqac8yF.js";
20
- import { t as Be } from "./Legend-X4kF4PvW.js";
21
- import { t as Ve } from "./vue_ui_xy_canvas-Cb6dg3eK.js";
22
- import { Teleport as He, computed as f, createBlock as Ue, createCommentVNode as p, createElementBlock as We, createElementVNode as m, createSlots as Ge, createTextVNode as Ke, createVNode as qe, defineAsyncComponent as Je, guardReactiveProps as h, mergeProps as Ye, nextTick as Xe, normalizeClass as Ze, normalizeProps as g, normalizeStyle as Qe, onBeforeUnmount as $e, onMounted as et, openBlock as _, ref as v, renderSlot as y, resolveDynamicComponent as tt, shallowRef as nt, toDisplayString as rt, toRefs as it, unref as b, useSlots as at, watch as x, watchEffect as ot, withCtx as S } from "vue";
2
+ import { $ as t, Ct as n, D as r, Lt as i, Ot as a, Pt as o, S as s, Ut as c, Vt as l, X as u, Yt as ee, Z as te, Zt as ne, _ as re, bt as ie, i as ae, jt as oe, lt as se, nt as ce, o as le, pt as ue, q as de, w as fe } from "./lib-Dql7cqyA.js";
3
+ import { n as pe, t as me } from "./useHints-Dq_w2E8B.js";
4
+ import { n as he, r as ge, t as _e } from "./useTimeLabels-d2f-W1L4.js";
5
+ import { t as ve } from "./useConfig-D32D002m.js";
6
+ import { t as ye } from "./usePrinter-DISD7q5m.js";
7
+ import { n as be, t as xe } from "./BaseScanner-Dzc8VT3j.js";
8
+ import { t as Se } from "./useNestedProp-Chvyfpl-.js";
9
+ import { t as Ce } from "./useThemeCheck-C43Tcqmk.js";
10
+ import { t as we } from "./img-DhGApYG0.js";
11
+ import { n as Te } from "./Title-CPHi-evi.js";
12
+ import { t as Ee } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { a as d, c as De, i as Oe, l as ke, n as Ae, o as je, r as Me, s as Ne, t as Pe } from "./useResponsive-ZtArZtUf.js";
14
+ import { t as Fe } from "./BaseIcon-D8R6_sKH.js";
15
+ import { t as Ie } from "./SlicerPreview-B6iHOC9L.js";
16
+ import { t as Le } from "./vue-ui-accordion-DmkL8A59.js";
17
+ import { t as Re } from "./BaseLegendToggle-CXQrLjd-.js";
18
+ import { t as ze } from "./useUserOptionState-DK-_1ddE.js";
19
+ import { t as Be } from "./useChartAccessibility-DYqac8yF.js";
20
+ import { t as Ve } from "./Legend-X4kF4PvW.js";
21
+ import { t as He } from "./vue_ui_xy_canvas-Cb6dg3eK.js";
22
+ import { Teleport as Ue, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as We, createElementVNode as h, createSlots as Ge, createTextVNode as Ke, createVNode as qe, defineAsyncComponent as Je, guardReactiveProps as g, mergeProps as Ye, nextTick as Xe, normalizeClass as Ze, normalizeProps as _, normalizeStyle as Qe, onBeforeUnmount as $e, onMounted as et, openBlock as v, ref as y, renderSlot as b, resolveDynamicComponent as tt, shallowRef as nt, toDisplayString as rt, toRefs as it, unref as x, useSlots as at, watch as S, watchEffect as ot, withCtx as C } from "vue";
23
23
  //#region src/components/vue-ui-xy-canvas.vue
24
24
  var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut = {
25
25
  class: "sr-only",
@@ -38,7 +38,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
38
38
  }, mt = ["id"], ht = ["onClick"], gt = {
39
39
  key: 4,
40
40
  class: "vue-data-ui-watermark"
41
- }, _t = { key: 0 }, vt = { key: 1 }, yt = /*#__PURE__*/ Te({
41
+ }, _t = { key: 0 }, vt = { key: 1 }, yt = /*#__PURE__*/ Ee({
42
42
  __name: "vue-ui-xy-canvas",
43
43
  props: {
44
44
  dataset: {
@@ -63,17 +63,17 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
63
63
  "selectX",
64
64
  "copyAlt"
65
65
  ],
66
- setup(e, { expose: Te, emit: st }) {
67
- let yt = Je(() => import("./Tooltip-hhrkQ3Lk.js")), bt = Je(() => import("./DataTable-oiM9uWrQ.js")), xt = Je(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), St = Je(() => import("./NonSvgPenAndPaper-DFXjpRyl.js")), Ct = Je(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_xy_canvas: wt } = _e(), { isThemeValid: Tt, warnInvalidTheme: Et } = Se(), C = e, Dt = v(ue()), Ot = v(null), kt = v(null), w = v(null), T = v(1), At = v(1), jt = v(!1), E = v(null), Mt = v(""), Nt = v(null), D = v([]), Pt = v(1), O = v(!0), k = v(!0), Ft = v(null), It = v(0), Lt = v(!1), Rt = v(null), zt = v(null), Bt = v(null), Vt = v(null), Ht = v(0), Ut = v(0), Wt = v(0), A = v(null), Gt = v(!1), Kt = v(null), qt = v(null), Jt = v(!1), Yt = v(!1), Xt = v(!1), j = v(null), Zt = v(!1), Qt = v(!1), $t = v(!1), M = v(null), en = v({
66
+ setup(e, { expose: Ee, emit: st }) {
67
+ let yt = Je(() => import("./Tooltip-hhrkQ3Lk.js")), bt = Je(() => import("./DataTable-oiM9uWrQ.js")), xt = Je(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), St = Je(() => import("./NonSvgPenAndPaper-DFXjpRyl.js")), Ct = Je(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_xy_canvas: wt } = ve(), { isThemeValid: Tt, warnInvalidTheme: Et } = Ce(), w = e, Dt = y(de()), Ot = y(null), kt = y(null), T = y(null), E = y(1), At = y(1), jt = y(!1), D = y(null), Mt = y(""), Nt = y(null), O = y([]), Pt = y(1), k = y(!0), A = y(!0), Ft = y(null), It = y(0), Lt = y(!1), Rt = y(null), zt = y(null), Bt = y(null), Vt = y(null), Ht = y(0), Ut = y(0), Wt = y(0), Gt = y(null), Kt = y(!1), qt = y(null), Jt = y(null), Yt = y(!1), Xt = y(!1), Zt = y(!1), j = y(null), Qt = y(!1), $t = y(!1), en = y(!1), M = y(null), tn = y({
68
68
  x: 0,
69
69
  y: 0
70
- }), N = f(() => Array.isArray(dn.value) && dn.value.length > 0), tn = st, nn = at(), P = v(_n()), F = f(() => P.value.userOptions), I = f(() => P.value.style.chart.tooltip), L = f(() => P.value.style.chart.grid.y.verticalLines), rn = f(() => P.value.style.chart.grid.x.horizontalLines), R = f(() => P.value.style.chart.grid.y.axisLabels), z = f(() => P.value.style.chart.grid.x.timeLabels), B = f(() => P.value.style.chart.grid), V = f(() => P.value.style.chart.dataLabels), H = f(() => P.value.style.chart);
71
- fe({
70
+ }), N = f(() => Array.isArray(fn.value) && fn.value.length > 0), nn = st, rn = at(), P = y(vn()), F = f(() => P.value.userOptions), I = f(() => P.value.style.chart.tooltip), L = f(() => P.value.style.chart.grid.y.verticalLines), an = f(() => P.value.style.chart.grid.x.horizontalLines), R = f(() => P.value.style.chart.grid.y.axisLabels), z = f(() => P.value.style.chart.grid.x.timeLabels), B = f(() => P.value.style.chart.grid), V = f(() => P.value.style.chart.dataLabels), H = f(() => P.value.style.chart);
71
+ pe({
72
72
  config: () => P.value,
73
- dataset: () => C.dataset,
73
+ dataset: () => w.dataset,
74
74
  component: "VueUiXyCanvas",
75
75
  rules: [
76
- pe.emptyArray,
76
+ me.emptyArray,
77
77
  {
78
78
  test: (e) => e.every((e) => e.series.length < 300),
79
79
  message: [
@@ -92,21 +92,21 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
92
92
  }
93
93
  ]
94
94
  });
95
- let an = f(() => {
95
+ let on = f(() => {
96
96
  let e = H.value.title.text || "XY chart", t = X.value.end - X.value.start;
97
- return `${e}. ${Y.value.filter((e) => !D.value.includes(e.absoluteIndex)).length} series. ${t} visible data points.`;
98
- }), on = f(() => {
97
+ return `${e}. ${Y.value.filter((e) => !O.value.includes(e.absoluteIndex)).length} series. ${t} visible data points.`;
98
+ }), sn = f(() => {
99
99
  if (M.value === null) return "";
100
100
  let e = M.value + X.value.start;
101
- return `${z.value.values.slice(X.value.start, X.value.end)[M.value] ? I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[M.value]?.text : or.value[M.value]?.text : $.value[e]?.text ?? `Point ${e + 1}`}. ${Y.value.filter((e) => !D.value.includes(e.absoluteIndex)).map((e) => {
101
+ return `${z.value.values.slice(X.value.start, X.value.end)[M.value] ? I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[M.value]?.text : lr.value[M.value]?.text : $.value[e]?.text ?? `Point ${e + 1}`}. ${Y.value.filter((e) => !O.value.includes(e.absoluteIndex)).map((e) => {
102
102
  let t = e.series[M.value], n = t?.value ?? t ?? null;
103
103
  return `${e.name}: ${n}`;
104
104
  }).join(". ")}.`;
105
- }), sn = f(() => F.value.useCursorPointer), cn = f(() => P.value.debug);
105
+ }), cn = f(() => F.value.useCursorPointer), ln = f(() => P.value.debug);
106
106
  et(() => {
107
- nn["chart-background"] && cn.value && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
107
+ rn["chart-background"] && ln.value && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
108
108
  });
109
- let ln = f(() => te({
109
+ let un = f(() => ne({
110
110
  defaultConfig: {
111
111
  userOptions: { show: !1 },
112
112
  table: { show: !1 },
@@ -140,11 +140,11 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
140
140
  } }
141
141
  },
142
142
  userConfig: P.value.skeletonConfig ?? {}
143
- })), { loading: un, FINAL_DATASET: dn } = ye({
144
- ...it(C),
143
+ })), { loading: dn, FINAL_DATASET: fn } = be({
144
+ ...it(w),
145
145
  FINAL_CONFIG: P,
146
- prepareConfig: _n,
147
- skeletonDataset: C.config?.skeletonDataset ?? [{
146
+ prepareConfig: vn,
147
+ skeletonDataset: w.config?.skeletonDataset ?? [{
148
148
  name: "",
149
149
  series: [
150
150
  0,
@@ -182,119 +182,131 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
182
182
  type: "bar",
183
183
  color: "#AAAAAA"
184
184
  }],
185
- skeletonConfig: te({
185
+ skeletonConfig: ne({
186
186
  defaultConfig: P.value,
187
- userConfig: ln.value
187
+ userConfig: un.value
188
188
  })
189
- }), { userOptionsVisible: fn, setUserOptionsVisibility: pn, keepUserOptionState: mn } = Re({ config: P.value }), { svgRef: U } = ze({ config: H.value.title });
190
- function hn() {
191
- pn(!0);
192
- }
189
+ }), { userOptionsVisible: pn, setUserOptionsVisibility: mn, keepUserOptionState: hn } = ze({ config: P.value }), { svgRef: U } = Be({ config: H.value.title });
193
190
  function gn() {
194
- pn(!1), tn("selectX", {
191
+ mn(!0);
192
+ }
193
+ function _n() {
194
+ mn(!1), nn("selectX", {
195
195
  dataset: null,
196
196
  index: null,
197
197
  indexLabel: null
198
- }), E.value = null;
198
+ }), D.value = null;
199
199
  }
200
- function _n() {
201
- let e = xe({
202
- userConfig: C.config,
200
+ function vn() {
201
+ let e = Se({
202
+ userConfig: w.config,
203
203
  defaultConfig: wt
204
204
  }), t = {}, n = e.theme;
205
205
  if (n) {
206
206
  if (!Tt.value(e)) Et(e), t = e;
207
207
  else {
208
- let r = xe({
209
- userConfig: Ve[n] || C.config,
208
+ let r = Se({
209
+ userConfig: He[n] || w.config,
210
210
  defaultConfig: e
211
211
  });
212
212
  t = {
213
- ...xe({
214
- userConfig: C.config,
213
+ ...Se({
214
+ userConfig: w.config,
215
215
  defaultConfig: r
216
216
  }),
217
217
  customPalette: e.customPalette.length ? e.customPalette : ee[n] || i
218
218
  };
219
219
  }
220
220
  } else t = e;
221
- return C.config && re(C.config, "style.chart.grid.y.timeLabels") && (console.warn("VueUiXyCanvas: you are using the deprecated config.style.chart.grid.y.timeLabels. It is recommended to move this configuration to config.style.chart.grid.x.timeLabels."), t.style.chart.grid.x.timeLabels = xe({
221
+ return w.config && ie(w.config, "style.chart.grid.y.timeLabels") && (console.warn("VueUiXyCanvas: you are using the deprecated config.style.chart.grid.y.timeLabels. It is recommended to move this configuration to config.style.chart.grid.x.timeLabels."), t.style.chart.grid.x.timeLabels = Se({
222
222
  defaultConfig: t.style.chart.grid.x.timeLabels,
223
- userConfig: C.config.style.chart.grid.y.timeLabels
223
+ userConfig: w.config.style.chart.grid.y.timeLabels
224
224
  })), t;
225
225
  }
226
- x(() => C.config, (e) => {
227
- un.value || (P.value = _n()), fn.value = !F.value.showOnChartHover, Pr(), Ht.value += 1, Ut.value += 1, Wt.value += 1, W.value.showTable = P.value.table.show, W.value.showDataLabels = V.value.show, W.value.stacked = H.value.stacked, W.value.showTooltip = I.value.show;
228
- }, { deep: !0 }), x(() => C.dataset, async (e) => {
229
- !Array.isArray(e) || e.length === 0 || (await Xe(), U.value && !w.value && (w.value = U.value.getContext("2d", { willReadFrequently: !0 })), O.value = !0, k.value = !0, await Bn(), Yn(), Ht.value += 1, Ut.value += 1, Wt.value += 1);
226
+ function yn(e) {
227
+ let t = te(e);
228
+ return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
229
+ }
230
+ let bn = yn(w.config);
231
+ S(() => w.config, (e, t) => {
232
+ let n = yn(e), r = n !== bn;
233
+ bn = n;
234
+ let i = vn();
235
+ if (!r) {
236
+ P.value.style.chart.tooltip = i.style.chart.tooltip, W.value.showTooltip = P.value.style.chart.tooltip.show;
237
+ return;
238
+ }
239
+ dn.value || (P.value = i), pn.value = !F.value.showOnChartHover, Lr(), Ht.value += 1, Ut.value += 1, Wt.value += 1, W.value.showTable = P.value.table.show, W.value.showDataLabels = V.value.show, W.value.stacked = H.value.stacked, W.value.showTooltip = I.value.show;
240
+ }, { deep: !0 }), S(() => w.dataset, async (e) => {
241
+ !Array.isArray(e) || e.length === 0 || (await Xe(), U.value && !T.value && (T.value = U.value.getContext("2d", { willReadFrequently: !0 })), k.value = !0, A.value = !0, await Un(), Qn(), Ht.value += 1, Ut.value += 1, Wt.value += 1);
230
242
  }, { deep: !0 });
231
- let vn = v(H.value.aspectRatio), { isPrinting: yn, isImaging: bn, generatePdf: xn, generateImage: Sn } = ve({
243
+ let xn = y(H.value.aspectRatio), { isPrinting: Sn, isImaging: Cn, generatePdf: wn, generateImage: Tn } = ye({
232
244
  elementId: `xy_canvas_${Dt.value}`,
233
245
  fileName: H.value.title.text || "vue-ui-xy-canvas",
234
246
  options: F.value.print
235
- }), W = v({
247
+ }), W = y({
236
248
  showTable: P.value.table.show,
237
249
  showDataLabels: V.value.show,
238
250
  stacked: H.value.stacked,
239
251
  showTooltip: I.value.show
240
252
  });
241
- function Cn(e) {
253
+ function En(e) {
242
254
  Lt.value = e, It.value += 1;
243
255
  }
244
- let wn = f(() => de(P.value.customPalette)), Tn = f(() => D.value.length === J.value.length), G = f(() => J.value ? Math.max(...J.value.filter((e, t) => Tn.value ? !0 : !D.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0);
245
- function En(e) {
246
- j.value = e, _r();
256
+ let Dn = f(() => fe(P.value.customPalette)), On = f(() => O.value.length === J.value.length), G = f(() => J.value ? Math.max(...J.value.filter((e, t) => On.value ? !0 : !O.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0);
257
+ function kn(e) {
258
+ j.value = e, br();
247
259
  }
248
- let Dn = v(0), On = v(0);
249
- function kn() {
250
- if (!w.value || !z.value.show) return 0;
260
+ let An = y(0), jn = y(0);
261
+ function Mn() {
262
+ if (!T.value || !z.value.show) return 0;
251
263
  let e = $.value || [], t = X.value.start ?? 0, n = X.value.end ?? 0;
252
264
  if (!Math.max(0, n - t)) return 0;
253
- let r = Math.round(T.value / 40 * z.value.fontSizeRatio), i = `${z.value.bold ? "bold " : ""}${r}px ${P.value.style.fontFamily}`;
254
- w.value.save(), w.value.font = i;
265
+ let r = Math.round(E.value / 40 * z.value.fontSizeRatio), i = `${z.value.bold ? "bold " : ""}${r}px ${P.value.style.fontFamily}`;
266
+ T.value.save(), T.value.font = i;
255
267
  let a = 0;
256
268
  for (let r = t; r < n; r += 1) {
257
- let t = e[r]?.text ?? `${r + 1}`, n = w.value.measureText(String(t));
269
+ let t = e[r]?.text ?? `${r + 1}`, n = T.value.measureText(String(t));
258
270
  n.width > a && (a = n.width);
259
271
  }
260
- w.value.restore();
261
- let o = (z.value.rotation || 0) * Math.PI / 180, s = r, c = Math.abs(Math.sin(o)) * a + Math.abs(Math.cos(o)) * s, l = z.value.offsetY || 1, u = T.value / l;
272
+ T.value.restore();
273
+ let o = (z.value.rotation || 0) * Math.PI / 180, s = r, c = Math.abs(Math.sin(o)) * a + Math.abs(Math.cos(o)) * s, l = z.value.offsetY || 1, u = E.value / l;
262
274
  return Math.max(0, u + c + 4);
263
275
  }
264
- function An() {
265
- Dn.value = kn();
276
+ function Nn() {
277
+ An.value = Mn();
266
278
  }
267
- function jn() {
268
- On.value && cancelAnimationFrame(On.value), On.value = requestAnimationFrame(() => {
279
+ function Pn() {
280
+ jn.value && cancelAnimationFrame(jn.value), jn.value = requestAnimationFrame(() => {
269
281
  requestAnimationFrame(() => {
270
- An();
282
+ Nn();
271
283
  });
272
284
  });
273
285
  }
274
286
  $e(() => {
275
- On.value && cancelAnimationFrame(On.value);
287
+ jn.value && cancelAnimationFrame(jn.value);
276
288
  });
277
289
  let K = f(() => {
278
- let e = T.value - T.value * (H.value.paddingProportions.left + H.value.paddingProportions.right), t = At.value * H.value.paddingProportions.top, n = At.value * H.value.paddingProportions.bottom, r = Dn.value, i = At.value - n - r, a = At.value - (t + n) - r;
290
+ let e = E.value - E.value * (H.value.paddingProportions.left + H.value.paddingProportions.right), t = At.value * H.value.paddingProportions.top, n = At.value * H.value.paddingProportions.bottom, r = An.value, i = At.value - n - r, a = At.value - (t + n) - r;
279
291
  return {
280
- canvasWidth: T.value,
292
+ canvasWidth: E.value,
281
293
  canvasHeight: At.value,
282
- left: T.value * H.value.paddingProportions.left,
294
+ left: E.value * H.value.paddingProportions.left,
283
295
  top: t,
284
- right: T.value - T.value * H.value.paddingProportions.right,
296
+ right: E.value - E.value * H.value.paddingProportions.right,
285
297
  bottom: i,
286
298
  width: e,
287
299
  height: a,
288
300
  slot: e / (X.value.end - X.value.start)
289
301
  };
290
302
  });
291
- function Mn(e, t) {
303
+ function Fn(e, t) {
292
304
  return e / t;
293
305
  }
294
- function Nn({ hasAutoScale: e, series: t, min: n, max: r, scale: i, yOffset: a, individualHeight: o, stackIndex: s = null }) {
306
+ function In({ hasAutoScale: e, series: t, min: n, max: r, scale: i, yOffset: a, individualHeight: o, stackIndex: s = null }) {
295
307
  return t.map((t, n) => {
296
- let r = i.min < 0 ? Math.abs(i.min) : 0, c = Mn(t + r, r + i.max), l, u;
297
- e && (l = i.min, u = Mn(t - l, i.max - l));
308
+ let r = i.min < 0 ? Math.abs(i.min) : 0, c = Fn(t + r, r + i.max), l, u;
309
+ e && (l = i.min, u = Fn(t - l, i.max - l));
298
310
  let ee = 0;
299
311
  return ee = s === null ? K.value.bottom - K.value.height * (e ? u : c) : K.value.bottom - a - o * (e ? u : c), {
300
312
  x: K.value.left + K.value.slot * n + K.value.slot / 2,
@@ -304,7 +316,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
304
316
  });
305
317
  }
306
318
  let q = f(() => {
307
- let e = H.value.scale.min === null ? Math.min(...J.value.filter((e, t) => !D.value.includes(e.absoluteIndex)).flatMap((e) => e.series.slice(X.value.start, X.value.end))) : H.value.scale.min, t = H.value.scale.max === null ? Math.max(...J.value.filter((e, t) => !D.value.includes(e.absoluteIndex)).flatMap((e) => e.series.slice(X.value.start, X.value.end))) : H.value.scale.max, n = ne(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, H.value.scale.ticks), r = n.min < 0 ? Math.abs(n.min) : 0, i = K.value.bottom - K.value.height * (r / (n.max + r));
319
+ let e = H.value.scale.min === null ? Math.min(...J.value.filter((e, t) => !O.value.includes(e.absoluteIndex)).flatMap((e) => e.series.slice(X.value.start, X.value.end))) : H.value.scale.min, t = H.value.scale.max === null ? Math.max(...J.value.filter((e, t) => !O.value.includes(e.absoluteIndex)).flatMap((e) => e.series.slice(X.value.start, X.value.end))) : H.value.scale.max, n = re(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, H.value.scale.ticks), r = n.min < 0 ? Math.abs(n.min) : 0, i = K.value.bottom - K.value.height * (r / (n.max + r));
308
320
  return {
309
321
  absoluteMin: r,
310
322
  max: t,
@@ -317,44 +329,44 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
317
329
  })),
318
330
  zero: i
319
331
  };
320
- }), Pn = f(() => Y.value.map((e) => `
332
+ }), Ln = f(() => Y.value.map((e) => `
321
333
  <div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
322
334
  <svg viewBox="0 0 10 10" height="12" width="12">
323
335
  <circle cx="5" cy="5" r="5" fill="${e.color}"/>
324
336
  </svg>
325
337
  <span>${e.name ? e.name + ": " : ""}</span>
326
- <span>${ie(V.value.formatter, e.series[E.value] ?? "-", u({
338
+ <span>${ae(V.value.formatter, e.series[D.value] ?? "-", u({
327
339
  p: e.prefix || "",
328
- v: e.series[E.value] ?? "-",
340
+ v: e.series[D.value] ?? "-",
329
341
  s: e.suffix || "",
330
342
  r: e.rounding || 0
331
343
  }), {
332
344
  datapoint: e,
333
- seriesIndex: E.value
345
+ seriesIndex: D.value
334
346
  })}</span>
335
347
  </div>
336
- `)), Fn = f(() => H.value.line.cutNullValues), J = f(() => dn.value.map((e, t) => ({
348
+ `)), Rn = f(() => H.value.line.cutNullValues), J = f(() => fn.value.map((e, t) => ({
337
349
  ...e,
338
350
  series: a({
339
- data: l(e.series, [], Fn.value),
351
+ data: l(e.series, [], Rn.value),
340
352
  threshold: P.value.downsample.threshold
341
353
  }),
342
354
  absoluteIndex: t,
343
- color: s(e.color || wn.value[t] || i[t] || i[t % i.length])
344
- }))), In = f(() => {
355
+ color: s(e.color || Dn.value[t] || i[t] || i[t % i.length])
356
+ }))), zn = f(() => {
345
357
  if (!H.value.zoom.minimap.show) return [];
346
- let e = J.value.filter((e) => !D.value.includes(e.absoluteIndex)), t = Math.max(...e.map((e) => e.series.length)), n = [];
358
+ let e = J.value.filter((e) => !O.value.includes(e.absoluteIndex)), t = Math.max(...e.map((e) => e.series.length)), n = [];
347
359
  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));
348
360
  let r = Math.min(...n);
349
361
  return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
350
- }), Ln = f(() => H.value.zoom.minimap.show ? J.value.map((e) => ({
362
+ }), Bn = f(() => H.value.zoom.minimap.show ? J.value.map((e) => ({
351
363
  ...e,
352
- isVisible: !D.value.includes(e.absoluteIndex)
364
+ isVisible: !O.value.includes(e.absoluteIndex)
353
365
  })) : []);
354
- x(G, (e) => {
355
- e && Bn();
366
+ S(G, (e) => {
367
+ e && Un();
356
368
  });
357
- let Y = f(() => ce(J.value.filter((e, t) => !D.value.includes(e.absoluteIndex))).map((e, t) => ({
369
+ let Y = f(() => le(J.value.filter((e, t) => !O.value.includes(e.absoluteIndex))).map((e, t) => ({
358
370
  ...e,
359
371
  series: e.series.slice(X.value.start, X.value.end)
360
372
  })).map((e, t) => {
@@ -365,14 +377,14 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
365
377
  valueMin: n,
366
378
  valueMax: r
367
379
  }, a = e.scaleSteps || H.value.scale.ticks, o;
368
- o = e.autoScaling ? ne(i.valueMin, i.valueMax, a) : ne(i.valueMin < 0 ? i.valueMin : 0, i.valueMax <= 0 ? 0 : i.valueMax, a);
380
+ o = e.autoScaling ? re(i.valueMin, i.valueMax, a) : re(i.valueMin < 0 ? i.valueMin : 0, i.valueMax <= 0 ? 0 : i.valueMax, a);
369
381
  let s = W.value.stacked ? K.value.height * (1 - e.cumulatedStackRatio) : 0, c = W.value.stacked ? K.value.height / H.value.stackGap : 0, l = W.value.stacked ? K.value.height * e.stackRatio - c : K.value.height, u = o.min < 0 ? Math.abs(o.min) : 0, ee;
370
382
  ee = e.autoScaling && W.value.stacked && r <= 0 ? K.value.bottom - s - l : K.value.bottom - s - l * (u / (o.max + u));
371
383
  let te = o.ticks.map((e, t) => ({
372
384
  y: K.value.bottom - s - l * (t / (o.ticks.length - 1)),
373
385
  x: K.value.left - 8,
374
386
  value: e
375
- })), re = Nn({
387
+ })), ne = In({
376
388
  hasAutoScale: W.value.stacked && e.autoScaling,
377
389
  series: e.series,
378
390
  min: W.value.stacked ? n : q.value.min,
@@ -384,7 +396,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
384
396
  });
385
397
  return {
386
398
  ...e,
387
- coordinatesLine: re,
399
+ coordinatesLine: ne,
388
400
  min: n,
389
401
  max: r,
390
402
  localScale: o,
@@ -394,81 +406,81 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
394
406
  yOffset: s,
395
407
  individualHeight: l
396
408
  };
397
- })), X = v({
409
+ })), X = y({
398
410
  start: 0,
399
411
  end: G.value
400
- }), Z = v({
412
+ }), Z = y({
401
413
  start: 0,
402
414
  end: G.value
403
- }), Rn = v(null);
404
- function zn() {
415
+ }), Vn = y(null);
416
+ function Hn() {
405
417
  return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
406
418
  }
407
419
  $e(() => {
408
- Rn.value && cancelAnimationFrame(Rn.value);
420
+ Vn.value && cancelAnimationFrame(Vn.value);
409
421
  });
410
- async function Bn() {
411
- Un(), await Xe(), Rn.value && cancelAnimationFrame(Rn.value), Rn.value = requestAnimationFrame(async () => {
412
- await zn(), Un();
422
+ async function Un() {
423
+ Kn(), await Xe(), Vn.value && cancelAnimationFrame(Vn.value), Vn.value = requestAnimationFrame(async () => {
424
+ await Hn(), Kn();
413
425
  });
414
426
  }
415
- let Vn = f(() => H.value.zoom.preview.enable && (Z.value.start !== X.value.start || Z.value.end !== X.value.end));
416
- function Hn(e, t) {
427
+ let Wn = f(() => H.value.zoom.preview.enable && (Z.value.start !== X.value.start || Z.value.end !== X.value.end));
428
+ function Gn(e, t) {
417
429
  Z.value[e] = t;
418
430
  }
419
- async function Un() {
420
- if (!Jt.value) {
421
- Jt.value = !0;
431
+ async function Kn() {
432
+ if (!Yt.value) {
433
+ Yt.value = !0;
422
434
  try {
423
- let { startIndex: e, endIndex: t } = H.value.zoom, n = Math.max(...J.value.map((e) => e.series.length)), r = e ?? 0, i = t == null ? n : Math.min(Kn(t + 1), n);
424
- Xt.value = !0, X.value.start = r, X.value.end = i, Z.value.start = r, Z.value.end = i, qn(), Yt.value = !0, await Xe(), Bt.value && (Bt.value.setStartValue(X.value.start), Bt.value.setEndValue(X.value.end));
435
+ let { startIndex: e, endIndex: t } = H.value.zoom, n = Math.max(...J.value.map((e) => e.series.length)), r = e ?? 0, i = t == null ? n : Math.min(Yn(t + 1), n);
436
+ Zt.value = !0, X.value.start = r, X.value.end = i, Z.value.start = r, Z.value.end = i, Xn(), Xt.value = !0, await Xe(), Bt.value && (Bt.value.setStartValue(X.value.start), Bt.value.setEndValue(X.value.end));
425
437
  } finally {
426
438
  queueMicrotask(() => {
427
- Xt.value = !1;
428
- }), Jt.value = !1;
439
+ Zt.value = !1;
440
+ }), Yt.value = !1;
429
441
  }
430
442
  }
431
443
  }
432
- function Wn(e) {
433
- Jt.value || Xt.value || e !== X.value.start && (X.value.start = e, Z.value.start = e, qn());
444
+ function qn(e) {
445
+ Yt.value || Zt.value || e !== X.value.start && (X.value.start = e, Z.value.start = e, Xn());
434
446
  }
435
- function Gn(e) {
436
- if (Jt.value || Xt.value) return;
437
- let t = Kn(e);
438
- t !== X.value.end && (X.value.end = t, Z.value.end = t, qn());
447
+ function Jn(e) {
448
+ if (Yt.value || Zt.value) return;
449
+ let t = Yn(e);
450
+ t !== X.value.end && (X.value.end = t, Z.value.end = t, Xn());
439
451
  }
440
- function Kn(e) {
452
+ function Yn(e) {
441
453
  let t = G.value;
442
454
  return e > t ? t : e < 0 || e < X.value.start ? H.value.zoom.startIndex === null ? 1 : H.value.zoom.startIndex + 1 : e;
443
455
  }
444
- function qn() {
456
+ function Xn() {
445
457
  let e = Math.max(1, Math.max(...J.value.map((e) => e.series.length))), t = Math.max(0, Math.min(X.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(X.value.end ?? e, e));
446
458
  (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), X.value = {
447
459
  start: t,
448
460
  end: n
449
461
  }, Z.value.start = t, Z.value.end = n, Bt.value && (Bt.value.setStartValue(t), Bt.value.setEndValue(n));
450
462
  }
451
- let Jn = f(() => Y.value.filter((e) => [
463
+ let Zn = f(() => Y.value.filter((e) => [
452
464
  "line",
453
465
  "plot",
454
466
  void 0
455
467
  ].includes(e.type))), Q = f(() => Y.value.filter((e) => e.type === "bar"));
456
- function Yn() {
468
+ function Qn() {
457
469
  if (!U.value || !kt.value) return;
458
470
  let e = kt.value.offsetWidth, t = kt.value.offsetHeight;
459
- U.value.width = e * Pt.value * 2, U.value.height = t * Pt.value * 2, T.value = e * Pt.value * 2, At.value = t * Pt.value * 2, w.value?.scale(Pt.value, Pt.value), _r();
471
+ U.value.width = e * Pt.value * 2, U.value.height = t * Pt.value * 2, E.value = e * Pt.value * 2, At.value = t * Pt.value * 2, T.value?.scale(Pt.value, Pt.value), br();
460
472
  }
461
- x(N, async (e) => {
473
+ S(N, async (e) => {
462
474
  if (!e) {
463
- Ft.value = null, jt.value = !1, E.value = null, A.value = null;
475
+ Ft.value = null, jt.value = !1, D.value = null, Gt.value = null;
464
476
  return;
465
477
  }
466
- await Xe(), U.value && !w.value && (w.value = U.value.getContext("2d", { willReadFrequently: !0 })), O.value = !0, k.value = !0, await Bn(), Yn(), _r();
478
+ await Xe(), U.value && !T.value && (T.value = U.value.getContext("2d", { willReadFrequently: !0 })), k.value = !0, A.value = !0, await Un(), Qn(), br();
467
479
  });
468
- function Xn() {
469
- if (w.value && (w.value.clearRect(0, 0, 1e4, 1e4), w.value.fillStyle = H.value.backgroundColor, w.value.fillRect(0, 0, K.value.canvasWidth, K.value.canvasHeight), N.value)) {
480
+ function $n() {
481
+ if (T.value && (T.value.clearRect(0, 0, 1e4, 1e4), T.value.fillStyle = H.value.backgroundColor, T.value.fillRect(0, 0, K.value.canvasWidth, K.value.canvasHeight), N.value)) {
470
482
  if (W.value.stacked) L.value.show && X.value.end - X.value.start < L.value.hideUnderXLength ? Y.value.forEach((e) => {
471
- for (let t = 0; t < X.value.end - X.value.start + 1; t += 1) d(w.value, [{
483
+ for (let t = 0; t < X.value.end - X.value.start + 1; t += 1) d(T.value, [{
472
484
  x: K.value.left + K.value.slot * t,
473
485
  y: K.value.bottom - e.yOffset - e.individualHeight
474
486
  }, {
@@ -476,16 +488,16 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
476
488
  y: K.value.bottom - e.yOffset
477
489
  }], { color: L.value.color });
478
490
  }) : L.value.show && X.value.end - X.value.start >= L.value.hideUnderXLength && Y.value.forEach((e) => {
479
- for (let t = X.value.start; t < X.value.end; t += 1) t % Math.floor((X.value.end - X.value.start) / rn.value.modulo) === 0 && d(w.value, [{
491
+ for (let t = X.value.start; t < X.value.end; t += 1) t % Math.floor((X.value.end - X.value.start) / an.value.modulo) === 0 && d(T.value, [{
480
492
  x: K.value.left + K.value.slot * (t - X.value.start) + K.value.slot / 2,
481
493
  y: K.value.bottom - e.yOffset - e.individualHeight
482
494
  }, {
483
495
  x: K.value.left + K.value.slot * (t - X.value.start) + K.value.slot / 2,
484
496
  y: K.value.bottom - e.yOffset
485
497
  }], { color: L.value.color });
486
- }), rn.value.show && (rn.value.alternate ? Y.value.forEach((e) => {
498
+ }), an.value.show && (an.value.alternate ? Y.value.forEach((e) => {
487
499
  e.localYLabels.forEach((t, n) => {
488
- n < e.localYLabels.length - 1 && Me(w.value, [
500
+ n < e.localYLabels.length - 1 && Ne(T.value, [
489
501
  {
490
502
  x: K.value.left,
491
503
  y: t.y
@@ -509,16 +521,16 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
509
521
  });
510
522
  }) : Y.value.forEach((e) => {
511
523
  e.localYLabels.slice(X.value.start, X.value.end).forEach((e) => {
512
- d(w.value, [{
524
+ d(T.value, [{
513
525
  x: K.value.left,
514
526
  y: e.y
515
527
  }, {
516
528
  x: K.value.right,
517
529
  y: e.y
518
- }], { color: rn.value.color });
530
+ }], { color: an.value.color });
519
531
  });
520
532
  })), B.value.zeroLine.show && Y.value.forEach((e) => {
521
- d(w.value, [{
533
+ d(T.value, [{
522
534
  x: K.value.left,
523
535
  y: e.localZero
524
536
  }, {
@@ -529,13 +541,13 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
529
541
  lineDash: B.value.zeroLine.dashed ? [10, 10] : [0, 0]
530
542
  });
531
543
  }), R.value.show && Y.value.forEach((e) => {
532
- d(w.value, [{
544
+ d(T.value, [{
533
545
  x: K.value.left,
534
546
  y: K.value.bottom - e.yOffset
535
547
  }, {
536
548
  x: K.value.left,
537
549
  y: K.value.bottom - e.yOffset - e.individualHeight
538
- }], { color: e.color }), d(w.value, [{
550
+ }], { color: e.color }), d(T.value, [{
539
551
  x: K.value.right,
540
552
  y: K.value.bottom - e.yOffset
541
553
  }, {
@@ -543,30 +555,30 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
543
555
  y: K.value.bottom - e.yOffset - e.individualHeight
544
556
  }], { color: e.color });
545
557
  }), Y.value.forEach((e) => {
546
- Ee(w.value, e.name, T.value / 35, K.value.bottom - e.yOffset - e.individualHeight / 2, {
558
+ De(T.value, e.name, E.value / 35, K.value.bottom - e.yOffset - e.individualHeight / 2, {
547
559
  align: "center",
548
560
  rotation: -90,
549
561
  color: e.color,
550
- font: `${Math.round(T.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`
562
+ font: `${Math.round(E.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`
551
563
  });
552
564
  });
553
565
  else {
554
- if (L.value.show && X.value.end - X.value.start < L.value.hideUnderXLength) for (let e = 0; e < X.value.end - X.value.start + 1; e += 1) d(w.value, [{
566
+ if (L.value.show && X.value.end - X.value.start < L.value.hideUnderXLength) for (let e = 0; e < X.value.end - X.value.start + 1; e += 1) d(T.value, [{
555
567
  x: K.value.left + K.value.slot * e,
556
568
  y: K.value.top
557
569
  }, {
558
570
  x: K.value.left + K.value.slot * e,
559
571
  y: K.value.bottom
560
572
  }], { color: L.value.color });
561
- else if (L.value.show && X.value.end - X.value.start >= L.value.hideUnderXLength) for (let e = X.value.start; e < X.value.end; e += 1) e % Math.floor((X.value.end - X.value.start) / z.value.modulo) === 0 && d(w.value, [{
573
+ else if (L.value.show && X.value.end - X.value.start >= L.value.hideUnderXLength) for (let e = X.value.start; e < X.value.end; e += 1) e % Math.floor((X.value.end - X.value.start) / z.value.modulo) === 0 && d(T.value, [{
562
574
  x: K.value.left + K.value.slot * (e - X.value.start) + K.value.slot / 2,
563
575
  y: K.value.top
564
576
  }, {
565
577
  x: K.value.left + K.value.slot * (e - X.value.start) + K.value.slot / 2,
566
578
  y: K.value.bottom
567
579
  }], { color: L.value.color });
568
- rn.value.show && (rn.value.alternate ? q.value.yLabels.forEach((e, t) => {
569
- t < q.value.yLabels.length - 1 && Me(w.value, [
580
+ an.value.show && (an.value.alternate ? q.value.yLabels.forEach((e, t) => {
581
+ t < q.value.yLabels.length - 1 && Ne(T.value, [
570
582
  {
571
583
  x: K.value.left,
572
584
  y: e.y
@@ -588,14 +600,14 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
588
600
  strokeColor: "transparent"
589
601
  });
590
602
  }) : q.value.yLabels.forEach((e) => {
591
- d(w.value, [{
603
+ d(T.value, [{
592
604
  x: K.value.left,
593
605
  y: e.y
594
606
  }, {
595
607
  x: K.value.right,
596
608
  y: e.y
597
- }], { color: rn.value.color });
598
- })), B.value.y.showAxis && d(w.value, [{
609
+ }], { color: an.value.color });
610
+ })), B.value.y.showAxis && d(T.value, [{
599
611
  x: K.value.left,
600
612
  y: K.value.top
601
613
  }, {
@@ -604,7 +616,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
604
616
  }], {
605
617
  color: B.value.y.axisColor,
606
618
  lineWidth: B.value.y.axisThickness
607
- }), B.value.x.showAxis && d(w.value, [{
619
+ }), B.value.x.showAxis && d(T.value, [{
608
620
  x: K.value.left,
609
621
  y: K.value.bottom
610
622
  }, {
@@ -613,7 +625,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
613
625
  }], {
614
626
  color: B.value.x.axisColor,
615
627
  lineWidth: B.value.x.axisThickness
616
- }), B.value.zeroLine.show && d(w.value, [{
628
+ }), B.value.zeroLine.show && d(T.value, [{
617
629
  x: K.value.left,
618
630
  y: q.value.zero
619
631
  }, {
@@ -624,22 +636,22 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
624
636
  lineDash: B.value.zeroLine.dashed ? [10, 10] : [0, 0]
625
637
  });
626
638
  }
627
- B.value.y.axisName && Ee(w.value, B.value.y.axisName, T.value - T.value / 40 * R.value.fontSizeRatio * 1.2, K.value.bottom - K.value.height / 2, {
628
- font: `${R.value.bold ? "bold " : ""}${Math.round(T.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
639
+ B.value.y.axisName && De(T.value, B.value.y.axisName, E.value - E.value / 40 * R.value.fontSizeRatio * 1.2, K.value.bottom - K.value.height / 2, {
640
+ font: `${R.value.bold ? "bold " : ""}${Math.round(E.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
629
641
  color: H.value.color,
630
642
  align: "center",
631
643
  rotation: 90
632
- }), B.value.x.axisName && Ee(w.value, B.value.x.axisName, T.value / 2, At.value, {
633
- font: `${R.value.bold ? "bold " : ""}${Math.round(T.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
644
+ }), B.value.x.axisName && De(T.value, B.value.x.axisName, E.value / 2, At.value, {
645
+ font: `${R.value.bold ? "bold " : ""}${Math.round(E.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
634
646
  color: H.value.color,
635
647
  align: "center"
636
648
  });
637
649
  }
638
650
  }
639
- function Zn(e) {
651
+ function er(e) {
640
652
  for (let t = 0; t < e.coordinatesLine.length; t += 1) {
641
- let n = (E.value === t || j.value === t ? T.value / 150 : H.value.line.plots.show || e.type === "plot" ? T.value / 200 : 0) * H.value.line.plots.radiusRatio;
642
- ke(w.value, {
653
+ let n = (D.value === t || j.value === t ? E.value / 150 : H.value.line.plots.show || e.type === "plot" ? E.value / 200 : 0) * H.value.line.plots.radiusRatio;
654
+ Ae(T.value, {
643
655
  x: e.coordinatesLine[t].x,
644
656
  y: e.coordinatesLine[t].y
645
657
  }, n, {
@@ -649,27 +661,27 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
649
661
  });
650
662
  }
651
663
  }
652
- function Qn() {
664
+ function tr() {
653
665
  Y.value.forEach((e) => {
654
- e.showYMarker && yr(e) && Ee(w.value, ie(V.value.formatter, yr(e).value, u({
666
+ e.showYMarker && Sr(e) && De(T.value, ae(V.value.formatter, Sr(e).value, u({
655
667
  p: e.prefix || R.value.prefix || "",
656
- v: yr(e).value,
668
+ v: Sr(e).value,
657
669
  s: e.suffix || R.value.suffix || "",
658
670
  r: e.rounding || R.value.rounding || 0
659
671
  }), {
660
- datapoint: yr(e),
672
+ datapoint: Sr(e),
661
673
  seriesIndex: null
662
- }), K.value.left - 8 + R.value.offsetX, yr(e).y, {
674
+ }), K.value.left - 8 + R.value.offsetX, Sr(e).y, {
663
675
  align: "right",
664
- font: `${R.value.bold ? "bold " : ""}${Math.round(T.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
676
+ font: `${R.value.bold ? "bold " : ""}${Math.round(E.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
665
677
  color: e.color
666
678
  });
667
679
  });
668
680
  }
669
- function $n() {
681
+ function nr() {
670
682
  R.value.show && (W.value.stacked ? Y.value.forEach((e) => {
671
683
  e.localYLabels.forEach((t, n) => {
672
- Ee(w.value, ie(V.value.formatter, t.value, u({
684
+ De(T.value, ae(V.value.formatter, t.value, u({
673
685
  p: e.prefix || B.value.y.axisLabels.prefix || "",
674
686
  v: t.value,
675
687
  s: e.suffix || B.value.y.axisLabels.suffix || "",
@@ -679,13 +691,13 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
679
691
  seriesIndex: n
680
692
  }), t.x + R.value.offsetX, t.y, {
681
693
  align: "right",
682
- font: `${R.value.bold ? "bold " : ""}${Math.round(T.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
694
+ font: `${R.value.bold ? "bold " : ""}${Math.round(E.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
683
695
  color: e.color,
684
- globalAlpha: e.showYMarker && ![null, void 0].includes(E.value ?? j.value) ? .2 : 1
696
+ globalAlpha: e.showYMarker && ![null, void 0].includes(D.value ?? j.value) ? .2 : 1
685
697
  });
686
698
  });
687
699
  }) : q.value.yLabels.forEach((e, t) => {
688
- Ee(w.value, ie(V.value.formatter, e.value, u({
700
+ De(T.value, ae(V.value.formatter, e.value, u({
689
701
  p: R.value.prefix || "",
690
702
  v: e.value,
691
703
  s: R.value.suffix || "",
@@ -695,14 +707,14 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
695
707
  seriesIndex: t
696
708
  }), e.x + R.value.offsetX, e.y, {
697
709
  align: "right",
698
- font: `${R.value.bold ? "bold " : ""}${Math.round(T.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
710
+ font: `${R.value.bold ? "bold " : ""}${Math.round(E.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
699
711
  color: R.value.color,
700
- globalAlpha: Y.value.some((e) => e.showYMarker) && ![null, void 0].includes(E.value ?? j.value) ? .2 : 1
712
+ globalAlpha: Y.value.some((e) => e.showYMarker) && ![null, void 0].includes(D.value ?? j.value) ? .2 : 1
701
713
  });
702
714
  }));
703
715
  }
704
- function er(e) {
705
- for (let t = 0; t < e.coordinatesLine.length; t += 1) Ee(w.value, ie(V.value.formatter, e.coordinatesLine[t].value, u({
716
+ function rr(e) {
717
+ for (let t = 0; t < e.coordinatesLine.length; t += 1) De(T.value, ae(V.value.formatter, e.coordinatesLine[t].value, u({
706
718
  p: e.prefix || "",
707
719
  v: e.coordinatesLine[t].value,
708
720
  s: e.suffix || "",
@@ -712,72 +724,72 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
712
724
  seriesIndex: t
713
725
  }), e.coordinatesLine[t].x, e.coordinatesLine[t].y + V.value.offsetY, {
714
726
  align: "center",
715
- font: `${V.value.bold ? "bold " : ""}${Math.round(T.value / 40 * V.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
727
+ font: `${V.value.bold ? "bold " : ""}${Math.round(E.value / 40 * V.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
716
728
  color: V.value.useSerieColor ? e.color : V.value.color,
717
729
  strokeColor: H.value.backgroundColor,
718
730
  lineWidth: .5
719
731
  });
720
732
  }
721
- let $ = v([]), tr = 0;
733
+ let $ = y([]), ir = 0;
722
734
  ot(() => {
723
- let e = ++tr;
735
+ let e = ++ir;
724
736
  (async () => {
725
- let t = await ge({
737
+ let t = await _e({
726
738
  values: z.value.values,
727
739
  maxDatapoints: G.value,
728
740
  formatter: z.value.datetimeFormatter,
729
741
  start: 0,
730
742
  end: G.value
731
743
  });
732
- e === tr && ($.value = t);
744
+ e === ir && ($.value = t);
733
745
  })();
734
746
  }), ot(() => {
735
- z.value.show, z.value.rotation, z.value.offsetY, z.value.fontSizeRatio, z.value.bold, X.value.start, X.value.end, T.value, At.value, ($.value || []).map((e) => e?.text ?? "").join("|"), jn();
747
+ z.value.show, z.value.rotation, z.value.offsetY, z.value.fontSizeRatio, z.value.bold, X.value.start, X.value.end, E.value, At.value, ($.value || []).map((e) => e?.text ?? "").join("|"), Pn();
736
748
  }, { flush: "post" });
737
- let nr = v({
749
+ let ar = y({
738
750
  months: [],
739
751
  shortMonths: [],
740
752
  days: [],
741
753
  shortDays: []
742
- }), rr = 0;
754
+ }), or = 0;
743
755
  ot(() => {
744
- let e = ++rr, t = z.value.datetimeFormatter;
756
+ let e = ++or, t = z.value.datetimeFormatter;
745
757
  (async () => {
746
- let n = await he(t.locale).catch(() => he("en"));
747
- e === rr && (nr.value = n.data);
758
+ let n = await ge(t.locale).catch(() => ge("en"));
759
+ e === or && (ar.value = n.data);
748
760
  })();
749
761
  });
750
- let ir = f(() => {
751
- let e = z.value.datetimeFormatter, t = me({
762
+ let sr = f(() => {
763
+ let e = z.value.datetimeFormatter, t = he({
752
764
  useUTC: e.useUTC,
753
- locale: nr.value,
765
+ locale: ar.value,
754
766
  januaryAsYear: e.januaryAsYear
755
767
  });
756
768
  return (e, n) => {
757
769
  let r = z.value.values?.[e];
758
770
  return r == null ? "" : t.formatDate(new Date(r), n);
759
771
  };
760
- }), ar = f(() => (z.value.values || []).map((e, t) => ({
761
- text: ir.value(t, H.value.zoom.timeFormat),
772
+ }), cr = f(() => (z.value.values || []).map((e, t) => ({
773
+ text: sr.value(t, H.value.zoom.timeFormat),
762
774
  absoluteIndex: t
763
- }))), or = f(() => (z.value.values || []).map((e, t) => ({
764
- text: ir.value(t, I.value.timeFormat),
775
+ }))), lr = f(() => (z.value.values || []).map((e, t) => ({
776
+ text: sr.value(t, I.value.timeFormat),
765
777
  absoluteIndex: t
766
778
  })));
767
- function sr() {
768
- for (let e = X.value.start; e < X.value.end; e += 1) (X.value.end - X.value.start < z.value.modulo || X.value.end - X.value.start >= z.value.modulo && (e % Math.floor((X.value.end - X.value.start) / z.value.modulo) === 0 || (e === E.value + X.value.start || e === j.value) && z.value.showMarker)) && Ee(w.value, $.value[e] ? $.value[e].text : e + 1, K.value.left + K.value.slot * (e - X.value.start) + K.value.slot / 2, K.value.bottom + T.value / z.value.offsetY, {
779
+ function ur() {
780
+ for (let e = X.value.start; e < X.value.end; e += 1) (X.value.end - X.value.start < z.value.modulo || X.value.end - X.value.start >= z.value.modulo && (e % Math.floor((X.value.end - X.value.start) / z.value.modulo) === 0 || (e === D.value + X.value.start || e === j.value) && z.value.showMarker)) && De(T.value, $.value[e] ? $.value[e].text : e + 1, K.value.left + K.value.slot * (e - X.value.start) + K.value.slot / 2, K.value.bottom + E.value / z.value.offsetY, {
769
781
  align: z.value.rotation === 0 ? "center" : z.value.rotation > 0 ? "left" : "right",
770
- font: `${z.value.bold ? "bold " : ""}${Math.round(T.value / 40 * z.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
771
- color: z.value.showMarker ? c(z.value.color, E.value !== null || j.value !== null ? E.value + X.value.start === e || j.value === e ? 100 : 20 : 100) : z.value.color,
782
+ font: `${z.value.bold ? "bold " : ""}${Math.round(E.value / 40 * z.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
783
+ color: z.value.showMarker ? c(z.value.color, D.value !== null || j.value !== null ? D.value + X.value.start === e || j.value === e ? 100 : 20 : 100) : z.value.color,
772
784
  rotation: z.value.rotation
773
785
  });
774
786
  }
775
- function cr() {
776
- d(w.value, [{
777
- x: K.value.left + K.value.slot * (E.value ?? j.value) + K.value.slot / 2,
787
+ function dr() {
788
+ d(T.value, [{
789
+ x: K.value.left + K.value.slot * (D.value ?? j.value) + K.value.slot / 2,
778
790
  y: K.value.top
779
791
  }, {
780
- x: K.value.left + K.value.slot * (E.value ?? j.value) + K.value.slot / 2,
792
+ x: K.value.left + K.value.slot * (D.value ?? j.value) + K.value.slot / 2,
781
793
  y: K.value.bottom
782
794
  }], {
783
795
  color: H.value.selector.color,
@@ -786,13 +798,13 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
786
798
  linceCap: "round"
787
799
  });
788
800
  }
789
- function lr() {
790
- A.value && d(w.value, [{
801
+ function fr() {
802
+ Gt.value && d(T.value, [{
791
803
  x: K.value.left,
792
- y: A.value
804
+ y: Gt.value
793
805
  }, {
794
806
  x: K.value.right,
795
- y: A.value
807
+ y: Gt.value
796
808
  }], {
797
809
  color: H.value.selector.color,
798
810
  lineDash: H.value.selector.dashed ? [8, 8] : [0, 0],
@@ -800,9 +812,9 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
800
812
  linceCap: "round"
801
813
  });
802
814
  }
803
- function ur() {
815
+ function pr() {
804
816
  Q.value.forEach((e, t) => {
805
- for (let n = 0; n < e.coordinatesLine.length; n += 1) Me(w.value, [
817
+ for (let n = 0; n < e.coordinatesLine.length; n += 1) Ne(T.value, [
806
818
  {
807
819
  x: K.value.left + K.value.slot * n + K.value.slot / 10 + (W.value.stacked ? 0 : K.value.slot / Q.value.length * t - (t === 0 ? 0 : K.value.slot / (5 * Q.value.length) * t)),
808
820
  y: W.value.stacked ? e.localZero : q.value.zero
@@ -836,10 +848,10 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
836
848
  color: e.color
837
849
  }, {
838
850
  offset: 1,
839
- color: H.value.bar.gradient.show ? ae(e.color, .5) : e.color
851
+ color: H.value.bar.gradient.show ? oe(e.color, .5) : e.color
840
852
  }]
841
853
  }
842
- }), W.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Ee(w.value, ie(V.value.formatter, e.coordinatesLine[n].value, u({
854
+ }), W.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && De(T.value, ae(V.value.formatter, e.coordinatesLine[n].value, u({
843
855
  p: e.prefix || "",
844
856
  v: e.coordinatesLine[n].value,
845
857
  s: e.suffix || "",
@@ -849,14 +861,14 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
849
861
  seriesIndex: n
850
862
  }), K.value.left + K.value.slot * n + K.value.slot / 10 + (W.value.stacked ? 0 : K.value.slot / Q.value.length * t - (t === 0 ? 0 : K.value.slot / (5 * Q.value.length) * t)) + K.value.slot * .4 / (W.value.stacked ? 1 : Q.value.length), (e.coordinatesLine[n].value < 0 ? W.value.stacked ? e.localZero : q.value.zero : e.coordinatesLine[n].y) + V.value.offsetY, {
851
863
  align: "center",
852
- font: `${Math.round(T.value / 40 * V.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
864
+ font: `${Math.round(E.value / 40 * V.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
853
865
  color: V.value.useSerieColor ? e.color : V.value.color,
854
866
  strokeColor: H.value.backgroundColor,
855
867
  lineWidth: .8
856
868
  });
857
869
  });
858
870
  }
859
- function dr(e, t) {
871
+ function mr(e, t) {
860
872
  let n = e.coordinatesLine.map((t, n) => e.series[n] != null && Number.isFinite(t?.y) ? t : null), r = [], i = [], a = [];
861
873
  for (let e = 0; e < n.length; e += 1) {
862
874
  let o = n[e];
@@ -898,7 +910,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
898
910
  singles: i
899
911
  };
900
912
  }
901
- function fr(e) {
913
+ function hr(e) {
902
914
  let t = e.coordinatesLine.map((t, n) => e.series[n] != null && Number.isFinite(t?.y) ? t : null), n = [], r = [];
903
915
  for (let e = 0; e < t.length; e += 1) {
904
916
  let i = t[e];
@@ -906,30 +918,30 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
906
918
  }
907
919
  return r.length >= 2 && n.push(r), n;
908
920
  }
909
- function pr(e) {
910
- if (Fn.value) {
911
- let t = fr(e);
912
- for (let n of t) d(w.value, n, {
921
+ function gr(e) {
922
+ if (Rn.value) {
923
+ let t = hr(e);
924
+ for (let n of t) d(T.value, n, {
913
925
  color: e.color,
914
926
  lineWidth: 3
915
927
  });
916
- } else d(w.value, e.coordinatesLine, {
928
+ } else d(T.value, e.coordinatesLine, {
917
929
  color: e.color,
918
930
  lineWidth: 3
919
931
  });
920
932
  }
921
- function mr(e) {
922
- let t = !!Fn.value;
933
+ function _r(e) {
934
+ let t = !!Rn.value;
923
935
  if (e.useArea) {
924
936
  let n = W.value.stacked ? e.localZero : q.value.zero;
925
937
  if (t) {
926
- let { polygons: t, singles: r } = dr(e, n);
927
- for (let n of t) Ae(w.value, n, {
938
+ let { polygons: t, singles: r } = mr(e, n);
939
+ for (let n of t) je(T.value, n, {
928
940
  fillColor: c(e.color, H.value.area.opacity),
929
941
  strokeColor: "transparent"
930
942
  });
931
- let i = T.value / 200 * H.value.line.plots.radiusRatio;
932
- for (let t of r) ke(w.value, {
943
+ let i = E.value / 200 * H.value.line.plots.radiusRatio;
944
+ for (let t of r) Ae(T.value, {
933
945
  x: t.x,
934
946
  y: t.y
935
947
  }, i, {
@@ -945,7 +957,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
945
957
  x: e.coordinatesLine.at(-1).x,
946
958
  y: n
947
959
  };
948
- Ae(w.value, [
960
+ je(T.value, [
949
961
  t,
950
962
  ...e.coordinatesLine,
951
963
  r
@@ -954,28 +966,28 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
954
966
  strokeColor: "transparent"
955
967
  });
956
968
  }
957
- pr(e);
969
+ gr(e);
958
970
  return;
959
971
  }
960
- pr(e);
972
+ gr(e);
961
973
  }
962
- function hr() {
974
+ function vr() {
963
975
  Y.value.forEach((e, t) => {
964
- d(w.value, [{
976
+ d(T.value, [{
965
977
  x: K.value.left,
966
978
  y: K.value.bottom - e.yOffset
967
979
  }, {
968
980
  x: K.value.right,
969
981
  y: K.value.bottom - e.yOffset
970
982
  }], {
971
- color: rn.value.color,
983
+ color: an.value.color,
972
984
  lineWidth: 1
973
985
  });
974
986
  });
975
987
  }
976
- function gr() {
988
+ function yr() {
977
989
  let { left: e, top: t, width: n, height: r } = K.value, i = X.value.start, a = X.value.end - i, o = n / a, s = Z.value.start - i, c = Z.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
978
- Me(w.value, [
990
+ Ne(T.value, [
979
991
  {
980
992
  x: e + l * o,
981
993
  y: t
@@ -1004,70 +1016,70 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1004
1016
  lineWidth: H.value.zoom.preview.strokeWidth
1005
1017
  });
1006
1018
  }
1007
- function _r() {
1008
- !N.value || !U.value || !w.value || (Xn(), O.value ? ((E.value !== null || j.value !== null) && H.value.selector.show && cr(), ur(), W.value.stacked && B.value.x.showAxis && hr(), Jn.value.forEach((e) => {
1009
- (e.type === "line" || !e.type) && mr(e), k.value && (Zn(e), W.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && er(e));
1010
- }), U.value && (Ft.value = je(U.value))) : (Ft.value && (w.value.clearRect(0, 0, 1e4, 1e4), w.value.drawImage(Ft.value, 0, 0)), (E.value !== null || j.value !== null) && H.value.selector.show && cr(), (E.value !== null || j.value !== null) && Y.value.forEach((e) => {
1011
- let t = E.value ?? j.value, n = e.coordinatesLine[t];
1012
- (e.type === "line" || !e.type || e.type === "plot") && n && Number.isFinite(n.x) && Number.isFinite(n.y) && ke(w.value, {
1019
+ function br() {
1020
+ !N.value || !U.value || !T.value || ($n(), k.value ? ((D.value !== null || j.value !== null) && H.value.selector.show && dr(), pr(), W.value.stacked && B.value.x.showAxis && vr(), Zn.value.forEach((e) => {
1021
+ (e.type === "line" || !e.type) && _r(e), A.value && (er(e), W.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && rr(e));
1022
+ }), U.value && (Ft.value = Me(U.value))) : (Ft.value && (T.value.clearRect(0, 0, 1e4, 1e4), T.value.drawImage(Ft.value, 0, 0)), (D.value !== null || j.value !== null) && H.value.selector.show && dr(), (D.value !== null || j.value !== null) && Y.value.forEach((e) => {
1023
+ let t = D.value ?? j.value, n = e.coordinatesLine[t];
1024
+ (e.type === "line" || !e.type || e.type === "plot") && n && Number.isFinite(n.x) && Number.isFinite(n.y) && Ae(T.value, {
1013
1025
  x: n.x,
1014
1026
  y: n.y
1015
- }, T.value / 150 * H.value.line.plots.radiusRatio, {
1027
+ }, E.value / 150 * H.value.line.plots.radiusRatio, {
1016
1028
  color: H.value.backgroundColor,
1017
1029
  fillStyle: e.color,
1018
1030
  strokeColor: "transparent"
1019
1031
  });
1020
- })), z.value.show && sr(), H.value.selector.show && H.value.selector.showHorizontalSelector && lr(), $n(), Qn(), H.value.zoom.preview.enable && (X.value.start !== Z.value.start || X.value.end !== Z.value.end) && gr(), O.value = !1);
1021
- }
1022
- let vr = De(() => {
1023
- k.value = !0, Yn();
1024
- }, G.value > 200 ? 10 : 1, !k.value);
1025
- function yr(e) {
1026
- if ([null, void 0].includes(E.value ?? j.value) || !e.coordinatesLine[E.value ?? j.value]) return !1;
1027
- let { y: t, value: n } = e.coordinatesLine[E.value ?? j.value];
1032
+ })), z.value.show && ur(), H.value.selector.show && H.value.selector.showHorizontalSelector && fr(), nr(), tr(), H.value.zoom.preview.enable && (X.value.start !== Z.value.start || X.value.end !== Z.value.end) && yr(), k.value = !1);
1033
+ }
1034
+ let xr = Oe(() => {
1035
+ A.value = !0, Qn();
1036
+ }, G.value > 200 ? 10 : 1, !A.value);
1037
+ function Sr(e) {
1038
+ if ([null, void 0].includes(D.value ?? j.value) || !e.coordinatesLine[D.value ?? j.value]) return !1;
1039
+ let { y: t, value: n } = e.coordinatesLine[D.value ?? j.value];
1028
1040
  return {
1029
1041
  y: t,
1030
1042
  value: n
1031
1043
  };
1032
1044
  }
1033
- function br(e) {
1034
- if (!N.value || !U.value || Tn.value) return;
1045
+ function Cr(e) {
1046
+ if (!N.value || !U.value || On.value) return;
1035
1047
  let { left: t, top: r } = U.value.getBoundingClientRect(), i = e.clientX - t;
1036
- if (A.value = (e.clientY - r) * 2, (A.value < K.value.top || A.value > K.value.bottom) && (A.value = null), i * 2 < K.value.left || i * 2 > K.value.right) {
1037
- Tr();
1048
+ if (Gt.value = (e.clientY - r) * 2, (Gt.value < K.value.top || Gt.value > K.value.bottom) && (Gt.value = null), i * 2 < K.value.left || i * 2 > K.value.right) {
1049
+ Or();
1038
1050
  return;
1039
1051
  }
1040
1052
  let a = i * 2 - K.value.left, o = Math.floor(a / K.value.slot);
1041
- if (E.value = o, M.value = o, jt.value = !0, Qt.value = !1, !k.value) return;
1053
+ if (D.value = o, M.value = o, jt.value = !0, $t.value = !1, !A.value) return;
1042
1054
  let s = "", c = I.value.customFormat, l = Y.value.map((e) => ({
1043
1055
  shape: e.shape || null,
1044
1056
  name: e.name,
1045
1057
  color: e.color,
1046
1058
  type: e.type || "line",
1047
- value: e.series.find((e, t) => t === E.value)
1059
+ value: e.series.find((e, t) => t === D.value)
1048
1060
  }));
1049
1061
  Nt.value = {
1050
- timeLabel: z.value.values.slice(X.value.start, X.value.end)[E.value] ? I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[E.value]?.text : or.value[E.value]?.text : "",
1062
+ timeLabel: z.value.values.slice(X.value.start, X.value.end)[D.value] ? I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[D.value]?.text : lr.value[D.value]?.text : "",
1051
1063
  datapoint: l,
1052
- seriesIndex: E.value,
1064
+ seriesIndex: D.value,
1053
1065
  series: Y.value,
1054
1066
  config: P.value
1055
- }, kr({
1056
- seriesIndex: E.value,
1067
+ }, Mr({
1068
+ seriesIndex: D.value,
1057
1069
  datapoint: l
1058
- }), n(c) && oe(() => c({
1059
- seriesIndex: E.value,
1070
+ }), n(c) && se(() => c({
1071
+ seriesIndex: D.value,
1060
1072
  datapoint: l,
1061
1073
  series: Y.value,
1062
1074
  config: P.value
1063
1075
  })) ? Mt.value = c({
1064
- seriesIndex: E.value,
1076
+ seriesIndex: D.value,
1065
1077
  datapoint: l,
1066
1078
  series: Y.value,
1067
1079
  config: P.value
1068
- }) : (z.value.values.slice(X.value.start, X.value.end)[E.value] ? s += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[E.value]?.text : or.value[E.value]?.text}</div>` : s += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${$.value[E.value + X.value.start]?.text ?? ""}</div>`, s += Pn.value.join(""), Mt.value = s), k.value = !1;
1080
+ }) : (z.value.values.slice(X.value.start, X.value.end)[D.value] ? s += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[D.value]?.text : lr.value[D.value]?.text}</div>` : s += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${$.value[D.value + X.value.start]?.text ?? ""}</div>`, s += Ln.value.join(""), Mt.value = s), A.value = !1;
1069
1081
  }
1070
- function xr(e) {
1082
+ function wr(e) {
1071
1083
  return Y.value.map((t) => ({
1072
1084
  shape: t.shape || null,
1073
1085
  name: t.name,
@@ -1076,12 +1088,12 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1076
1088
  value: t.series.find((t, n) => n === e)
1077
1089
  }));
1078
1090
  }
1079
- function Sr(e) {
1080
- let t = "", r = I.value.customFormat, i = xr(e);
1081
- return kr({
1091
+ function Tr(e) {
1092
+ let t = "", r = I.value.customFormat, i = wr(e);
1093
+ return Mr({
1082
1094
  seriesIndex: e,
1083
1095
  datapoint: i
1084
- }), n(r) && oe(() => r({
1096
+ }), n(r) && se(() => r({
1085
1097
  seriesIndex: e,
1086
1098
  datapoint: i,
1087
1099
  series: Y.value,
@@ -1091,83 +1103,83 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1091
1103
  datapoint: i,
1092
1104
  series: Y.value,
1093
1105
  config: P.value
1094
- }) : (z.value.values.slice(X.value.start, X.value.end)[e] ? t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[e]?.text : or.value[e]?.text}</div>` : t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${$.value[e + X.value.start]?.text ?? ""}</div>`, t += Pn.value.join(""), t);
1106
+ }) : (z.value.values.slice(X.value.start, X.value.end)[e] ? t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[e]?.text : lr.value[e]?.text}</div>` : t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${$.value[e + X.value.start]?.text ?? ""}</div>`, t += Ln.value.join(""), t);
1095
1107
  }
1096
- function Cr(e) {
1108
+ function Er(e) {
1097
1109
  if (!U.value || !K.value?.slot) return;
1098
1110
  let t = U.value.getBoundingClientRect(), n = t.width / K.value.canvasWidth, r = t.height / K.value.canvasHeight, i = K.value.left + K.value.slot * e + K.value.slot / 2, a = K.value.top + K.value.height / 2;
1099
- en.value = {
1111
+ tn.value = {
1100
1112
  x: t.left + i * n,
1101
1113
  y: t.top + a * r
1102
1114
  };
1103
1115
  }
1104
- function wr(e, { fromKeyboard: t = !1 } = {}) {
1105
- !N.value || Tn.value || e != null && (e < 0 || e >= X.value.end - X.value.start || (E.value = e, M.value = e, jt.value = !0, Qt.value = t, Mt.value = Sr(e), t && Cr(e), k.value = !1, _r()));
1116
+ function Dr(e, { fromKeyboard: t = !1 } = {}) {
1117
+ !N.value || On.value || e != null && (e < 0 || e >= X.value.end - X.value.start || (D.value = e, M.value = e, jt.value = !0, $t.value = t, Mt.value = Tr(e), t && Er(e), A.value = !1, br()));
1106
1118
  }
1107
- function Tr() {
1108
- jt.value = !1, E.value = null, M.value = null, Mt.value = "", A.value = null, Qt.value = !1, _r();
1119
+ function Or() {
1120
+ jt.value = !1, D.value = null, M.value = null, Mt.value = "", Gt.value = null, $t.value = !1, br();
1109
1121
  }
1110
- function Er() {
1111
- $t.value = !0;
1122
+ function kr() {
1123
+ en.value = !0;
1112
1124
  }
1113
- function Dr() {
1114
- $t.value = !1, Tr();
1125
+ function Ar() {
1126
+ en.value = !1, Or();
1115
1127
  }
1116
- function Or(e) {
1117
- if (!U.value || Xr.value || document.activeElement !== U.value) return;
1128
+ function jr(e) {
1129
+ if (!U.value || $r.value || document.activeElement !== U.value) return;
1118
1130
  let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
1119
1131
  if (!t && !n) return;
1120
1132
  let r = X.value.end - X.value.start;
1121
1133
  if (r <= 0) return;
1122
1134
  e.preventDefault(), e.stopPropagation();
1123
1135
  let i = M.value;
1124
- i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : (--i, i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, wr(i, { fromKeyboard: !0 });
1136
+ i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : (--i, i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, Dr(i, { fromKeyboard: !0 });
1125
1137
  }
1126
- function kr({ seriesIndex: e, datapoint: t }) {
1138
+ function Mr({ seriesIndex: e, datapoint: t }) {
1127
1139
  let n = X.value.start + e;
1128
- tn("selectX", {
1140
+ nn("selectX", {
1129
1141
  dataset: t,
1130
1142
  index: n,
1131
1143
  indexLabel: ""
1132
1144
  });
1133
1145
  }
1134
- x(() => C.selectedXIndex, (e) => {
1135
- if ([null, void 0].includes(C.selectedXIndex)) {
1136
- Tr();
1146
+ S(() => w.selectedXIndex, (e) => {
1147
+ if ([null, void 0].includes(w.selectedXIndex)) {
1148
+ Or();
1137
1149
  return;
1138
1150
  }
1139
1151
  let t = e - X.value.start;
1140
- t < 0 || e >= X.value.end ? Tr() : wr(t, { fromKeyboard: !1 });
1141
- }, { immediate: !0 }), x(() => E.value, (e) => {
1142
- vr();
1143
- }), x(() => X.value, (e) => {
1144
- O.value = !0, _r();
1145
- }, { deep: !0 }), x(() => Z.value, (e) => {
1146
- _r();
1147
- }, { deep: !0 }), x(() => W.value.showDataLabels, (e) => {
1148
- O.value = !0, _r();
1149
- }), x(() => A.value, (e) => {
1150
- e && _r();
1151
- }), x(() => W.value.stacked, (e) => {
1152
- O.value = !0, k.value = !0, vr();
1152
+ t < 0 || e >= X.value.end ? Or() : Dr(t, { fromKeyboard: !1 });
1153
+ }, { immediate: !0 }), S(() => D.value, (e) => {
1154
+ xr();
1155
+ }), S(() => X.value, (e) => {
1156
+ k.value = !0, br();
1157
+ }, { deep: !0 }), S(() => Z.value, (e) => {
1158
+ br();
1159
+ }, { deep: !0 }), S(() => W.value.showDataLabels, (e) => {
1160
+ k.value = !0, br();
1161
+ }), S(() => Gt.value, (e) => {
1162
+ e && br();
1163
+ }), S(() => W.value.stacked, (e) => {
1164
+ k.value = !0, A.value = !0, xr();
1153
1165
  });
1154
- function Ar() {
1155
- Tr();
1166
+ function Nr() {
1167
+ Or();
1156
1168
  }
1157
- let jr = nt(null), Mr = nt(null), Nr = nt(null);
1169
+ let Pr = nt(null), Fr = nt(null), Ir = nt(null);
1158
1170
  et(() => {
1159
- Gt.value = !0, Pr();
1171
+ Kt.value = !0, Lr();
1160
1172
  });
1161
- function Pr() {
1162
- if (o(C.dataset) && se({
1173
+ function Lr() {
1174
+ if (o(w.dataset) && ce({
1163
1175
  componentName: "VueUiXyCanvas",
1164
1176
  type: "dataset",
1165
- debug: cn.value
1177
+ debug: ln.value
1166
1178
  }), Xe(() => {
1167
- U.value && !w.value && (w.value = U.value.getContext("2d", { willReadFrequently: !0 })), w.value && N.value && (O.value = !0, k.value = !0, Yn());
1179
+ U.value && !T.value && (T.value = U.value.getContext("2d", { willReadFrequently: !0 })), T.value && N.value && (k.value = !0, A.value = !0, Qn());
1168
1180
  }), P.value.responsive) {
1169
- let e = Oe(() => {
1170
- let { width: e, height: t } = Ne({
1181
+ let e = ke(() => {
1182
+ let { width: e, height: t } = Pe({
1171
1183
  chart: Ot.value,
1172
1184
  title: H.value.title.text ? Rt.value : null,
1173
1185
  legend: H.value.legend.show ? zt.value : null,
@@ -1175,58 +1187,58 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1175
1187
  source: Vt.value
1176
1188
  });
1177
1189
  requestAnimationFrame(() => {
1178
- vn.value = `${e} / ${t}`;
1190
+ xn.value = `${e} / ${t}`;
1179
1191
  });
1180
1192
  });
1181
- jr.value && (Mr.value && jr.value.unobserve(Mr.value), jr.value.disconnect()), jr.value = new ResizeObserver(e), Mr.value = Ot.value.parentNode, jr.value.observe(Mr.value);
1193
+ Pr.value && (Fr.value && Pr.value.unobserve(Fr.value), Pr.value.disconnect()), Pr.value = new ResizeObserver(e), Fr.value = Ot.value.parentNode, Pr.value.observe(Fr.value);
1182
1194
  }
1183
- Nr.value && Nr.value.disconnect(), Nr.value = new ResizeObserver(async (e) => {
1184
- for (let t of e) t.contentBoxSize && kt.value && (O.value = !0, vr());
1185
- }), Nr.value.observe(kt.value), Bn();
1195
+ Ir.value && Ir.value.disconnect(), Ir.value = new ResizeObserver(async (e) => {
1196
+ for (let t of e) t.contentBoxSize && kt.value && (k.value = !0, xr());
1197
+ }), Ir.value.observe(kt.value), Un();
1186
1198
  }
1187
1199
  $e(() => {
1188
- Nr.value && Nr.value.disconnect(), jr.value && (Mr.value && jr.value.unobserve(Mr.value), jr.value.disconnect());
1200
+ Ir.value && Ir.value.disconnect(), Pr.value && (Fr.value && Pr.value.unobserve(Fr.value), Pr.value.disconnect());
1189
1201
  });
1190
- function Fr() {
1191
- D.value.length ? D.value = [] : Br.value.forEach((e, t) => {
1192
- D.value.push(t);
1193
- }), O.value = !0, vr(), tn("selectLegend", Y.value);
1202
+ function Rr() {
1203
+ O.value.length ? O.value = [] : Ur.value.forEach((e, t) => {
1204
+ O.value.push(t);
1205
+ }), k.value = !0, xr(), nn("selectLegend", Y.value);
1194
1206
  }
1195
- function Ir(e) {
1196
- D.value.includes(e) ? D.value = D.value.filter((t) => t !== e) : D.value.push(e), O.value = !0, vr(), tn("selectLegend", Y.value);
1207
+ function zr(e) {
1208
+ O.value.includes(e) ? O.value = O.value.filter((t) => t !== e) : O.value.push(e), k.value = !0, xr(), nn("selectLegend", Y.value);
1197
1209
  }
1198
- function Lr(e) {
1199
- return J.value.length ? J.value.find((t) => t.name === e) || (cn.value && console.warn(`VueUiXyCanvas - Series name not found "${e}"`), null) : (cn.value && console.warn("VueUiXyCanvas - There are no series to show."), null);
1210
+ function Br(e) {
1211
+ return J.value.length ? J.value.find((t) => t.name === e) || (ln.value && console.warn(`VueUiXyCanvas - Series name not found "${e}"`), null) : (ln.value && console.warn("VueUiXyCanvas - There are no series to show."), null);
1200
1212
  }
1201
- function Rr(e) {
1202
- let t = Lr(e);
1203
- t !== null && D.value.includes(t.absoluteIndex) && Ir(t.absoluteIndex);
1213
+ function Vr(e) {
1214
+ let t = Br(e);
1215
+ t !== null && O.value.includes(t.absoluteIndex) && zr(t.absoluteIndex);
1204
1216
  }
1205
- function zr(e) {
1206
- let t = Lr(e);
1207
- t !== null && (D.value.includes(t.absoluteIndex) || Ir(t.absoluteIndex));
1217
+ function Hr(e) {
1218
+ let t = Br(e);
1219
+ t !== null && (O.value.includes(t.absoluteIndex) || zr(t.absoluteIndex));
1208
1220
  }
1209
- let Br = f(() => J.value.map((e, t) => ({
1221
+ let Ur = f(() => J.value.map((e, t) => ({
1210
1222
  ...e,
1211
1223
  name: e.name,
1212
- color: s(e.color) || wn.value[t] || i[t] || i[t % i.length],
1224
+ color: s(e.color) || Dn.value[t] || i[t] || i[t % i.length],
1213
1225
  shape: e.shape || "circle",
1214
1226
  prefix: e.prefix || "",
1215
1227
  suffix: e.suffix || "",
1216
1228
  rounding: e.rounding || 0
1217
1229
  })).map((e) => ({
1218
1230
  ...e,
1219
- opacity: D.value.includes(e.absoluteIndex) ? .5 : 1,
1220
- segregate: () => Ir(e.absoluteIndex),
1221
- isSegregated: D.value.includes(e.absoluteIndex)
1222
- }))), Vr = f(() => ({
1231
+ opacity: O.value.includes(e.absoluteIndex) ? .5 : 1,
1232
+ segregate: () => zr(e.absoluteIndex),
1233
+ isSegregated: O.value.includes(e.absoluteIndex)
1234
+ }))), Wr = f(() => ({
1223
1235
  cy: "donut-div-legend",
1224
1236
  backgroundColor: H.value.legend.backgroundColor,
1225
1237
  color: H.value.legend.color,
1226
1238
  fontSize: H.value.legend.fontSize,
1227
1239
  paddingBottom: 12,
1228
1240
  fontWeight: H.value.legend.bold ? "bold" : ""
1229
- })), Hr = f(() => {
1241
+ })), Gr = f(() => {
1230
1242
  let e = [""].concat(Y.value.map((e) => e.name), "__SUM__"), t = [];
1231
1243
  for (let e = 0; e < G.value; e += 1) {
1232
1244
  let n = Y.value.map((t) => t.series[e] ?? 0).reduce((e, t) => e + t, 0);
@@ -1251,7 +1263,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1251
1263
  config: n,
1252
1264
  colNames: r
1253
1265
  };
1254
- }), Ur = f(() => {
1266
+ }), Kr = f(() => {
1255
1267
  if (Y.value.length === 0) return {
1256
1268
  head: [],
1257
1269
  body: [],
@@ -1274,39 +1286,39 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1274
1286
  body: t
1275
1287
  };
1276
1288
  });
1277
- function Wr(e = null) {
1289
+ function qr(e = null) {
1278
1290
  let n = [
1279
1291
  [H.value.title.text],
1280
1292
  [H.value.title.subtitle.text],
1281
1293
  [""]
1282
- ], i = ["", ...Ur.value.head.map((e) => e.label)], a = Ur.value.body, o = n.concat([i]).concat(a), s = r(o);
1294
+ ], i = ["", ...Kr.value.head.map((e) => e.label)], a = Kr.value.body, o = n.concat([i]).concat(a), s = r(o);
1283
1295
  e ? e(s) : t({
1284
1296
  csvContent: s,
1285
1297
  title: H.value.title.text || "vue-ui-xy-canvas"
1286
1298
  });
1287
1299
  }
1288
- function Gr() {
1300
+ function Jr() {
1289
1301
  return Y.value;
1290
1302
  }
1291
- function Kr() {
1303
+ function Yr() {
1292
1304
  W.value.showTable = !W.value.showTable;
1293
1305
  }
1294
- function qr() {
1306
+ function Xr() {
1295
1307
  W.value.showDataLabels = !W.value.showDataLabels;
1296
1308
  }
1297
- function Jr() {
1309
+ function Zr() {
1298
1310
  W.value.stacked = !W.value.stacked;
1299
1311
  }
1300
- function Yr() {
1312
+ function Qr() {
1301
1313
  W.value.showTooltip = !W.value.showTooltip;
1302
1314
  }
1303
- let Xr = v(!1);
1304
- function Zr() {
1305
- Xr.value = !Xr.value;
1315
+ let $r = y(!1);
1316
+ function ei() {
1317
+ $r.value = !$r.value;
1306
1318
  }
1307
- async function Qr({ scale: e = 2 } = {}) {
1319
+ async function ti({ scale: e = 2 } = {}) {
1308
1320
  if (!Ot.value) return;
1309
- let { imageUri: t, base64: n } = await Ce({
1321
+ let { imageUri: t, base64: n } = await we({
1310
1322
  domElement: Ot.value,
1311
1323
  base64: !0,
1312
1324
  img: !0,
@@ -1315,7 +1327,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1315
1327
  width: r.width,
1316
1328
  height: r.height,
1317
1329
  aspectRatio: r.height ? r.width / r.height : 0
1318
- }, a = await le(t, e) ?? i;
1330
+ }, a = await ue(t, e) ?? i;
1319
1331
  return {
1320
1332
  imageUri: t,
1321
1333
  base64: n,
@@ -1323,10 +1335,10 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1323
1335
  ...a
1324
1336
  };
1325
1337
  }
1326
- let $r = f(() => {
1338
+ let ni = f(() => {
1327
1339
  let e = P.value.table.useDialog && !P.value.table.show, t = W.value.showTable;
1328
1340
  return {
1329
- component: e ? Ct : Ie,
1341
+ component: e ? Ct : Le,
1330
1342
  title: `${H.value.title.text}${H.value.title.subtitle.text ? `: ${H.value.title.subtitle.text}` : ""}`,
1331
1343
  props: e ? {
1332
1344
  backgroundColor: P.value.table.th.backgroundColor,
@@ -1336,7 +1348,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1336
1348
  isFullscreen: Lt.value,
1337
1349
  fullscreenParent: Ot.value,
1338
1350
  forcedWidth: Math.min(800, window.innerWidth * .8),
1339
- isCursorPointer: sn.value
1351
+ isCursorPointer: cn.value
1340
1352
  } : {
1341
1353
  hideDetails: !0,
1342
1354
  config: {
@@ -1354,25 +1366,25 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1354
1366
  }
1355
1367
  };
1356
1368
  });
1357
- x(() => W.value.showTable, (e) => {
1358
- P.value.table.show || (e && P.value.table.useDialog && Kt.value ? Kt.value.open() : "close" in Kt.value && Kt.value.close());
1369
+ S(() => W.value.showTable, (e) => {
1370
+ P.value.table.show || (e && P.value.table.useDialog && qt.value ? qt.value.open() : "close" in qt.value && qt.value.close());
1359
1371
  });
1360
- function ei() {
1361
- W.value.showTable = !1, qt.value && qt.value.setTableIconState(!1);
1372
+ function ri() {
1373
+ W.value.showTable = !1, Jt.value && Jt.value.setTableIconState(!1);
1362
1374
  }
1363
- function ti(e) {
1375
+ function ii(e) {
1364
1376
  if (e?.stage === "start") {
1365
- Zt.value = !0;
1377
+ Qt.value = !0;
1366
1378
  return;
1367
1379
  }
1368
1380
  if (e?.stage === "end") {
1369
- Zt.value = !1;
1381
+ Qt.value = !1;
1370
1382
  return;
1371
1383
  }
1372
- Sn();
1384
+ Tn();
1373
1385
  }
1374
- async function ni() {
1375
- if (tn("copyAlt", {
1386
+ async function ai() {
1387
+ if (nn("copyAlt", {
1376
1388
  config: P.value,
1377
1389
  dataset: Y.value
1378
1390
  }), !F.value.callbacks.altCopy) {
@@ -1384,41 +1396,41 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1384
1396
  dataset: Y.value
1385
1397
  }));
1386
1398
  }
1387
- return Te({
1388
- getData: Gr,
1389
- getImage: Qr,
1390
- generateCsv: Wr,
1391
- generatePdf: xn,
1392
- generateImage: Sn,
1393
- hideSeries: zr,
1394
- showSeries: Rr,
1395
- toggleTable: Kr,
1396
- toggleLabels: qr,
1397
- toggleStack: Jr,
1398
- toggleTooltip: Yr,
1399
- toggleAnnotator: Zr,
1400
- toggleFullscreen: Cn,
1401
- copyAlt: ni
1402
- }), (t, r) => (_(), We("div", {
1399
+ return Ee({
1400
+ getData: Jr,
1401
+ getImage: ti,
1402
+ generateCsv: qr,
1403
+ generatePdf: wn,
1404
+ generateImage: Tn,
1405
+ hideSeries: Hr,
1406
+ showSeries: Vr,
1407
+ toggleTable: Yr,
1408
+ toggleLabels: Xr,
1409
+ toggleStack: Zr,
1410
+ toggleTooltip: Qr,
1411
+ toggleAnnotator: ei,
1412
+ toggleFullscreen: En,
1413
+ copyAlt: ai
1414
+ }), (t, r) => (v(), We("div", {
1403
1415
  style: Qe(`width:100%; position:relative; ${P.value.responsive ? "height: 100%" : ""}; background:${P.value.style.chart.backgroundColor};`),
1404
1416
  ref_key: "xy",
1405
1417
  ref: Ot,
1406
1418
  id: `xy_canvas_${Dt.value}`,
1407
1419
  class: Ze(`vue-data-ui-component vue-ui-xy-canvas ${Lt.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1408
- onMouseenter: hn,
1409
- onMouseleave: gn
1420
+ onMouseenter: gn,
1421
+ onMouseleave: _n
1410
1422
  }, [
1411
- m("div", {
1423
+ h("div", {
1412
1424
  id: `chart-instructions-${Dt.value}`,
1413
1425
  class: "sr-only"
1414
- }, [m("p", null, rt(P.value.a11y.translations.keyboardNavigation), 1)], 8, lt),
1415
- m("div", ut, rt(on.value), 1),
1416
- P.value.style.chart.title.text ? (_(), We("div", {
1426
+ }, [h("p", null, rt(P.value.a11y.translations.keyboardNavigation), 1)], 8, lt),
1427
+ h("div", ut, rt(sn.value), 1),
1428
+ P.value.style.chart.title.text ? (v(), We("div", {
1417
1429
  key: 0,
1418
1430
  ref_key: "chartTitle",
1419
1431
  ref: Rt,
1420
1432
  style: Qe(`width:100%;background:${P.value.style.chart.backgroundColor};`)
1421
- }, [(_(), Ue(we, {
1433
+ }, [(v(), p(Te, {
1422
1434
  key: `title_${Ht.value}`,
1423
1435
  config: {
1424
1436
  title: {
@@ -1430,16 +1442,16 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1430
1442
  ...P.value.style.chart.title.subtitle
1431
1443
  }
1432
1444
  }
1433
- }, null, 8, ["config"]))], 4)) : p("", !0),
1434
- m("div", { id: `legend-top-${Dt.value}` }, null, 8, dt),
1435
- F.value.show && N.value && (b(mn) || b(fn)) ? (_(), Ue(b(xt), {
1445
+ }, null, 8, ["config"]))], 4)) : m("", !0),
1446
+ h("div", { id: `legend-top-${Dt.value}` }, null, 8, dt),
1447
+ F.value.show && N.value && (x(hn) || x(pn)) ? (v(), p(x(xt), {
1436
1448
  ref_key: "userOptionsRef",
1437
- ref: qt,
1449
+ ref: Jt,
1438
1450
  key: `user_option_${It.value}`,
1439
1451
  backgroundColor: P.value.style.chart.backgroundColor,
1440
1452
  color: P.value.style.chart.color,
1441
- isPrinting: b(yn),
1442
- isImaging: b(bn),
1453
+ isPrinting: x(Sn),
1454
+ isImaging: x(Cn),
1443
1455
  uid: Dt.value,
1444
1456
  hasTooltip: F.value.buttons.tooltip && I.value.show,
1445
1457
  hasPdf: F.value.buttons.pdf,
@@ -1457,26 +1469,26 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1457
1469
  chartElement: Ot.value,
1458
1470
  position: F.value.position,
1459
1471
  hasAnnotator: F.value.buttons.annotator,
1460
- isAnnotation: Xr.value,
1472
+ isAnnotation: $r.value,
1461
1473
  callbacks: F.value.callbacks,
1462
1474
  printScale: F.value.print.scale,
1463
1475
  tableDialog: P.value.table.useDialog,
1464
- isCursorPointer: sn.value,
1465
- onToggleFullscreen: Cn,
1466
- onGeneratePdf: b(xn),
1467
- onGenerateCsv: Wr,
1468
- onGenerateImage: ti,
1469
- onToggleTable: Kr,
1470
- onToggleLabels: qr,
1471
- onToggleStack: Jr,
1472
- onToggleTooltip: Yr,
1473
- onToggleAnnotator: Zr,
1474
- onCopyAlt: ni,
1475
- style: Qe({ visibility: b(mn) ? b(fn) ? "visible" : "hidden" : "visible" })
1476
+ isCursorPointer: cn.value,
1477
+ onToggleFullscreen: En,
1478
+ onGeneratePdf: x(wn),
1479
+ onGenerateCsv: qr,
1480
+ onGenerateImage: ii,
1481
+ onToggleTable: Yr,
1482
+ onToggleLabels: Xr,
1483
+ onToggleStack: Zr,
1484
+ onToggleTooltip: Qr,
1485
+ onToggleAnnotator: ei,
1486
+ onCopyAlt: ai,
1487
+ style: Qe({ visibility: x(hn) ? x(pn) ? "visible" : "hidden" : "visible" })
1476
1488
  }, Ge({ _: 2 }, [
1477
1489
  t.$slots.menuIcon ? {
1478
1490
  name: "menuIcon",
1479
- fn: S(({ isOpen: e, color: n }) => [y(t.$slots, "menuIcon", g(h({
1491
+ fn: C(({ isOpen: e, color: n }) => [b(t.$slots, "menuIcon", _(g({
1480
1492
  isOpen: e,
1481
1493
  color: n
1482
1494
  })), void 0, !0)]),
@@ -1484,42 +1496,42 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1484
1496
  } : void 0,
1485
1497
  t.$slots.optionTooltip ? {
1486
1498
  name: "optionTooltip",
1487
- fn: S(() => [y(t.$slots, "optionTooltip", {}, void 0, !0)]),
1499
+ fn: C(() => [b(t.$slots, "optionTooltip", {}, void 0, !0)]),
1488
1500
  key: "1"
1489
1501
  } : void 0,
1490
1502
  t.$slots.optionPdf ? {
1491
1503
  name: "optionPdf",
1492
- fn: S(() => [y(t.$slots, "optionPdf", {}, void 0, !0)]),
1504
+ fn: C(() => [b(t.$slots, "optionPdf", {}, void 0, !0)]),
1493
1505
  key: "2"
1494
1506
  } : void 0,
1495
1507
  t.$slots.optionCsv ? {
1496
1508
  name: "optionCsv",
1497
- fn: S(() => [y(t.$slots, "optionCsv", {}, void 0, !0)]),
1509
+ fn: C(() => [b(t.$slots, "optionCsv", {}, void 0, !0)]),
1498
1510
  key: "3"
1499
1511
  } : void 0,
1500
1512
  t.$slots.optionImg ? {
1501
1513
  name: "optionImg",
1502
- fn: S(() => [y(t.$slots, "optionImg", {}, void 0, !0)]),
1514
+ fn: C(() => [b(t.$slots, "optionImg", {}, void 0, !0)]),
1503
1515
  key: "4"
1504
1516
  } : void 0,
1505
1517
  t.$slots.optionTable ? {
1506
1518
  name: "optionTable",
1507
- fn: S(() => [y(t.$slots, "optionTable", {}, void 0, !0)]),
1519
+ fn: C(() => [b(t.$slots, "optionTable", {}, void 0, !0)]),
1508
1520
  key: "5"
1509
1521
  } : void 0,
1510
1522
  t.$slots.optionLabels ? {
1511
1523
  name: "optionLabels",
1512
- fn: S(() => [y(t.$slots, "optionLabels", {}, void 0, !0)]),
1524
+ fn: C(() => [b(t.$slots, "optionLabels", {}, void 0, !0)]),
1513
1525
  key: "6"
1514
1526
  } : void 0,
1515
1527
  t.$slots.optionStack ? {
1516
1528
  name: "optionStack",
1517
- fn: S(() => [y(t.$slots, "optionStack", {}, void 0, !0)]),
1529
+ fn: C(() => [b(t.$slots, "optionStack", {}, void 0, !0)]),
1518
1530
  key: "7"
1519
1531
  } : void 0,
1520
1532
  t.$slots.optionFullscreen ? {
1521
1533
  name: "optionFullscreen",
1522
- fn: S(({ toggleFullscreen: e, isFullscreen: n }) => [y(t.$slots, "optionFullscreen", g(h({
1534
+ fn: C(({ toggleFullscreen: e, isFullscreen: n }) => [b(t.$slots, "optionFullscreen", _(g({
1523
1535
  toggleFullscreen: e,
1524
1536
  isFullscreen: n
1525
1537
  })), void 0, !0)]),
@@ -1527,7 +1539,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1527
1539
  } : void 0,
1528
1540
  t.$slots.optionAnnotator ? {
1529
1541
  name: "optionAnnotator",
1530
- fn: S(({ toggleAnnotator: e, isAnnotator: n }) => [y(t.$slots, "optionAnnotator", g(h({
1542
+ fn: C(({ toggleAnnotator: e, isAnnotator: n }) => [b(t.$slots, "optionAnnotator", _(g({
1531
1543
  toggleAnnotator: e,
1532
1544
  isAnnotator: n
1533
1545
  })), void 0, !0)]),
@@ -1535,30 +1547,30 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1535
1547
  } : void 0,
1536
1548
  t.$slots.optionAltCopy ? {
1537
1549
  name: "optionAltCopy",
1538
- fn: S(({ altCopy: e }) => [y(t.$slots, "optionAltCopy", g(h({ altCopy: e })), void 0, !0)]),
1550
+ fn: C(({ altCopy: e }) => [b(t.$slots, "optionAltCopy", _(g({ altCopy: e })), void 0, !0)]),
1539
1551
  key: "10"
1540
1552
  } : void 0,
1541
1553
  t.$slots["custom-menu-before"] ? {
1542
1554
  name: "custom-menu-before",
1543
- fn: S(() => [y(t.$slots, "custom-menu-before", {}, void 0, !0)]),
1555
+ fn: C(() => [b(t.$slots, "custom-menu-before", {}, void 0, !0)]),
1544
1556
  key: "11"
1545
1557
  } : void 0,
1546
1558
  t.$slots["custom-menu-after"] ? {
1547
1559
  name: "custom-menu-after",
1548
- fn: S(() => [y(t.$slots, "custom-menu-after", {}, void 0, !0)]),
1560
+ fn: C(() => [b(t.$slots, "custom-menu-after", {}, void 0, !0)]),
1549
1561
  key: "12"
1550
1562
  } : void 0
1551
- ]), 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("."))) : p("", !0),
1552
- m("div", {
1563
+ ]), 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("."))) : m("", !0),
1564
+ h("div", {
1553
1565
  class: "vue-ui-xy-canvas",
1554
- style: Qe(`position: relative; aspect-ratio: ${vn.value}`),
1566
+ style: Qe(`position: relative; aspect-ratio: ${xn.value}`),
1555
1567
  ref_key: "container",
1556
1568
  ref: kt
1557
1569
  }, [
1558
- m("canvas", {
1570
+ h("canvas", {
1559
1571
  ref_key: "canvas",
1560
1572
  ref: U,
1561
- "aria-label": an.value,
1573
+ "aria-label": on.value,
1562
1574
  "aria-describedby": `chart-instructions-${Dt.value}`,
1563
1575
  role: "img",
1564
1576
  "aria-live": "polite",
@@ -1567,18 +1579,18 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1567
1579
  width: "100%",
1568
1580
  height: "100%"
1569
1581
  },
1570
- onMousemove: r[0] ||= (e) => br(e),
1571
- onMouseleave: Ar,
1572
- onFocus: Er,
1573
- onBlur: Dr,
1574
- onKeydown: Or
1582
+ onMousemove: r[0] ||= (e) => Cr(e),
1583
+ onMouseleave: Nr,
1584
+ onFocus: kr,
1585
+ onBlur: Ar,
1586
+ onKeydown: jr
1575
1587
  }, null, 40, ft),
1576
- t.$slots.hint ? (_(), We("div", pt, [y(t.$slots, "hint", g(h({
1588
+ t.$slots.hint ? (v(), We("div", pt, [b(t.$slots, "hint", _(g({
1577
1589
  hint: P.value.a11y.translations.keyboardNavigation,
1578
- isVisible: $t.value
1579
- })), void 0, !0)])) : p("", !0),
1580
- y(t.$slots, "skeleton", {}, () => [b(un) ? (_(), Ue(be, { key: 0 })) : p("", !0)], !0),
1581
- qe(b(yt), {
1590
+ isVisible: en.value
1591
+ })), void 0, !0)])) : m("", !0),
1592
+ b(t.$slots, "skeleton", {}, () => [x(dn) ? (v(), p(xe, { key: 0 })) : m("", !0)], !0),
1593
+ qe(x(yt), {
1582
1594
  teleportTo: I.value.teleportTo,
1583
1595
  show: W.value.showTooltip && jt.value,
1584
1596
  backgroundColor: I.value.backgroundColor,
@@ -1594,17 +1606,17 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1594
1606
  content: Mt.value,
1595
1607
  isFullscreen: Lt.value,
1596
1608
  backgroundOpacity: I.value.backgroundOpacity,
1597
- isCustom: b(n)(I.value.customFormat),
1609
+ isCustom: x(n)(I.value.customFormat),
1598
1610
  smooth: I.value.smooth,
1599
1611
  backdropFilter: I.value.backdropFilter,
1600
1612
  smoothForce: I.value.smoothForce,
1601
1613
  smoothSnapThreshold: I.value.smoothSnapThreshold,
1602
- isA11yMode: Qt.value,
1603
- a11yPosition: en.value
1614
+ isA11yMode: $t.value,
1615
+ a11yPosition: tn.value
1604
1616
  }, {
1605
- "tooltip-before": S(() => [y(t.$slots, "tooltip-before", g(h({ ...Nt.value })), void 0, !0)]),
1606
- tooltip: S(() => [y(t.$slots, "tooltip", g(h({ ...Nt.value })), void 0, !0)]),
1607
- "tooltip-after": S(() => [y(t.$slots, "tooltip-after", g(h({ ...Nt.value })), void 0, !0)]),
1617
+ "tooltip-before": C(() => [b(t.$slots, "tooltip-before", _(g({ ...Nt.value })), void 0, !0)]),
1618
+ tooltip: C(() => [b(t.$slots, "tooltip", _(g({ ...Nt.value })), void 0, !0)]),
1619
+ "tooltip-after": C(() => [b(t.$slots, "tooltip-after", _(g({ ...Nt.value })), void 0, !0)]),
1608
1620
  _: 3
1609
1621
  }, 8, [
1610
1622
  "teleportTo",
@@ -1631,16 +1643,16 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1631
1643
  "a11yPosition"
1632
1644
  ])
1633
1645
  ], 4),
1634
- P.value.style.chart.zoom.show && G.value > 6 && N.value && Yt.value && !b(un) ? (_(), Ue(Fe, {
1646
+ P.value.style.chart.zoom.show && G.value > 6 && N.value && Xt.value && !x(dn) ? (v(), p(Ie, {
1635
1647
  key: 2,
1636
1648
  ref_key: "chartSlicer",
1637
1649
  ref: Bt,
1638
1650
  "data-dom-to-png-ignore-layout": "",
1639
- allMinimaps: Ln.value,
1651
+ allMinimaps: Bn.value,
1640
1652
  background: P.value.style.chart.zoom.color,
1641
1653
  borderColor: P.value.style.chart.backgroundColor,
1642
1654
  customFormat: P.value.style.chart.zoom.customFormat,
1643
- cutNullValues: Fn.value,
1655
+ cutNullValues: Rn.value,
1644
1656
  enableRangeHandles: P.value.style.chart.zoom.enableRangeHandles,
1645
1657
  enableSelectionDrag: P.value.style.chart.zoom.enableSelectionDrag,
1646
1658
  end: X.value.end,
@@ -1649,12 +1661,12 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1649
1661
  fontSize: P.value.style.chart.zoom.fontSize,
1650
1662
  immediate: !P.value.style.chart.zoom.preview.enable,
1651
1663
  inputColor: P.value.style.chart.zoom.color,
1652
- isPreview: Vn.value,
1664
+ isPreview: Wn.value,
1653
1665
  labelLeft: P.value.style.chart.grid.x.timeLabels.values[X.value.start] ? $.value[X.value.start]?.text : "",
1654
1666
  labelRight: P.value.style.chart.grid.x.timeLabels.values[X.value.end - 1] ? $.value[X.value.end - 1]?.text : "",
1655
1667
  max: G.value,
1656
1668
  min: 0,
1657
- minimap: In.value,
1669
+ minimap: zn.value,
1658
1670
  minimapCompact: P.value.style.chart.zoom.minimap.compact,
1659
1671
  minimapFrameColor: P.value.style.chart.zoom.minimap.frameColor,
1660
1672
  minimapIndicatorColor: P.value.style.chart.zoom.minimap.indicatorColor,
@@ -1662,9 +1674,9 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1662
1674
  minimapMerged: P.value.style.chart.zoom.minimap.merged,
1663
1675
  minimapSelectedColor: P.value.style.chart.zoom.minimap.selectedColor,
1664
1676
  minimapSelectedColorOpacity: P.value.style.chart.zoom.minimap.selectedColorOpacity,
1665
- minimapSelectedIndex: E.value,
1677
+ minimapSelectedIndex: D.value,
1666
1678
  minimapSelectionRadius: P.value.style.chart.zoom.minimap.selectionRadius,
1667
- preciseLabels: ar.value?.length ? ar.value : $.value,
1679
+ preciseLabels: cr.value?.length ? cr.value : $.value,
1668
1680
  refreshEndPoint: P.value.style.chart.zoom.endIndex === null ? G.value : P.value.style.chart.zoom.endIndex + 1,
1669
1681
  refreshStartPoint: P.value.style.chart.zoom.startIndex === null ? 0 : P.value.style.chart.zoom.startIndex,
1670
1682
  selectColor: P.value.style.chart.zoom.highlightColor,
@@ -1688,84 +1700,84 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1688
1700
  handleBorderColor: P.value.style.chart.zoom.minimap.handleBorderColor,
1689
1701
  handleFill: P.value.style.chart.zoom.minimap.handleFill,
1690
1702
  handleWidth: P.value.style.chart.zoom.minimap.handleWidth,
1691
- onFutureEnd: r[1] ||= (e) => Hn("end", e),
1692
- onFutureStart: r[2] ||= (e) => Hn("start", e),
1693
- onReset: Bn,
1694
- onTrapMouse: En,
1695
- "onUpdate:end": Gn,
1696
- "onUpdate:start": Wn
1703
+ onFutureEnd: r[1] ||= (e) => Gn("end", e),
1704
+ onFutureStart: r[2] ||= (e) => Gn("start", e),
1705
+ onReset: Un,
1706
+ onTrapMouse: kn,
1707
+ "onUpdate:end": Jn,
1708
+ "onUpdate:start": qn
1697
1709
  }, {
1698
- "reset-action": S(({ reset: e }) => [y(t.$slots, "reset-action", g(h({ reset: e })), void 0, !0)]),
1710
+ "reset-action": C(({ reset: e }) => [b(t.$slots, "reset-action", _(g({ reset: e })), void 0, !0)]),
1699
1711
  _: 3
1700
- }, 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("."))) : p("", !0),
1701
- m("div", { id: `legend-bottom-${Dt.value}` }, null, 8, mt),
1702
- Gt.value && (P.value.style.chart.legend.show || t.$slots.legend) ? (_(), Ue(He, {
1712
+ }, 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("."))) : m("", !0),
1713
+ h("div", { id: `legend-bottom-${Dt.value}` }, null, 8, mt),
1714
+ Kt.value && (P.value.style.chart.legend.show || t.$slots.legend) ? (v(), p(Ue, {
1703
1715
  key: 3,
1704
1716
  to: P.value.style.chart.legend.position === "top" ? `#legend-top-${Dt.value}` : `#legend-bottom-${Dt.value}`
1705
- }, [m("div", {
1717
+ }, [h("div", {
1706
1718
  ref_key: "chartLegend",
1707
1719
  ref: zt
1708
- }, [y(t.$slots, "legend", { legend: Br.value }, () => [P.value.style.chart.legend.show && N.value ? (_(), Ue(Be, {
1709
- legendSet: Br.value,
1710
- config: Vr.value,
1720
+ }, [b(t.$slots, "legend", { legend: Ur.value }, () => [P.value.style.chart.legend.show && N.value ? (v(), p(Ve, {
1721
+ legendSet: Ur.value,
1722
+ config: Wr.value,
1711
1723
  key: `legend_${Wt.value}`,
1712
- isCursorPointer: sn.value,
1713
- onClickMarker: r[3] ||= ({ i: e }) => Ir(e)
1724
+ isCursorPointer: cn.value,
1725
+ onClickMarker: r[3] ||= ({ i: e }) => zr(e)
1714
1726
  }, {
1715
- item: S(({ legend: e, index: t }) => [m("div", {
1727
+ item: C(({ legend: e, index: t }) => [h("div", {
1716
1728
  onClick: (t) => e.segregate(),
1717
- style: Qe(`opacity:${D.value.includes(t) ? .5 : 1}`)
1729
+ style: Qe(`opacity:${O.value.includes(t) ? .5 : 1}`)
1718
1730
  }, rt(e.name), 13, ht)]),
1719
- legendToggle: S(() => [Br.value.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !b(un) ? (_(), Ue(Le, {
1731
+ legendToggle: C(() => [Ur.value.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !x(dn) ? (v(), p(Re, {
1720
1732
  key: 0,
1721
1733
  backgroundColor: P.value.style.chart.legend.selectAllToggle.backgroundColor,
1722
1734
  color: P.value.style.chart.legend.selectAllToggle.color,
1723
1735
  fontSize: P.value.style.chart.legend.fontSize,
1724
- checked: D.value.length > 0,
1725
- isCursorPointer: sn.value,
1726
- onToggle: Fr
1736
+ checked: O.value.length > 0,
1737
+ isCursorPointer: cn.value,
1738
+ onToggle: Rr
1727
1739
  }, null, 8, [
1728
1740
  "backgroundColor",
1729
1741
  "color",
1730
1742
  "fontSize",
1731
1743
  "checked",
1732
1744
  "isCursorPointer"
1733
- ])) : p("", !0)]),
1745
+ ])) : m("", !0)]),
1734
1746
  _: 1
1735
1747
  }, 8, [
1736
1748
  "legendSet",
1737
1749
  "config",
1738
1750
  "isCursorPointer"
1739
- ])) : p("", !0)], !0)], 512)], 8, ["to"])) : p("", !0),
1740
- t.$slots.watermark ? (_(), We("div", gt, [y(t.$slots, "watermark", g(h({ isPrinting: b(yn) || b(bn) || Zt.value })), void 0, !0)])) : p("", !0),
1741
- t.$slots.source ? (_(), We("div", {
1751
+ ])) : m("", !0)], !0)], 512)], 8, ["to"])) : m("", !0),
1752
+ t.$slots.watermark ? (v(), We("div", gt, [b(t.$slots, "watermark", _(g({ isPrinting: x(Sn) || x(Cn) || Qt.value })), void 0, !0)])) : m("", !0),
1753
+ t.$slots.source ? (v(), We("div", {
1742
1754
  key: 5,
1743
1755
  ref_key: "source",
1744
1756
  ref: Vt,
1745
1757
  dir: "auto"
1746
- }, [y(t.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1747
- N.value && F.value.buttons.table ? (_(), Ue(tt($r.value.component), Ye({ key: 6 }, $r.value.props, {
1758
+ }, [b(t.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
1759
+ N.value && F.value.buttons.table ? (v(), p(tt(ni.value.component), Ye({ key: 6 }, ni.value.props, {
1748
1760
  ref_key: "tableUnit",
1749
- ref: Kt,
1750
- onClose: ei
1761
+ ref: qt,
1762
+ onClose: ri
1751
1763
  }), Ge({
1752
- content: S(() => [(_(), Ue(b(bt), {
1764
+ content: C(() => [(v(), p(x(bt), {
1753
1765
  key: `table_${Ut.value}`,
1754
- colNames: Hr.value.colNames,
1755
- head: Hr.value.head,
1756
- body: Hr.value.body,
1757
- config: Hr.value.config,
1758
- title: P.value.table.useDialog ? "" : $r.value.title,
1766
+ colNames: Gr.value.colNames,
1767
+ head: Gr.value.head,
1768
+ body: Gr.value.body,
1769
+ config: Gr.value.config,
1770
+ title: P.value.table.useDialog ? "" : ni.value.title,
1759
1771
  withCloseButton: !P.value.table.useDialog,
1760
- isCursorPointer: sn.value,
1761
- onClose: ei
1772
+ isCursorPointer: cn.value,
1773
+ onClose: ri
1762
1774
  }, {
1763
- th: S(({ th: e }) => [e === "__SUM__" ? (_(), We("div", _t, [qe(Pe, {
1775
+ th: C(({ th: e }) => [e === "__SUM__" ? (v(), We("div", _t, [qe(Fe, {
1764
1776
  name: "sigma",
1765
- stroke: Hr.value.config.th.color,
1777
+ stroke: Gr.value.config.th.color,
1766
1778
  size: 16
1767
- }, null, 8, ["stroke"])])) : (_(), We("div", vt, rt(e), 1))]),
1768
- td: S(({ td: e }) => [Ke(rt(e), 1)]),
1779
+ }, null, 8, ["stroke"])])) : (v(), We("div", vt, rt(e), 1))]),
1780
+ td: C(({ td: e }) => [Ke(rt(e), 1)]),
1769
1781
  _: 1
1770
1782
  }, 8, [
1771
1783
  "colNames",
@@ -1779,36 +1791,36 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1779
1791
  _: 2
1780
1792
  }, [P.value.table.useDialog ? {
1781
1793
  name: "title",
1782
- fn: S(() => [Ke(rt($r.value.title), 1)]),
1794
+ fn: C(() => [Ke(rt(ni.value.title), 1)]),
1783
1795
  key: "0"
1784
1796
  } : void 0, P.value.table.useDialog ? {
1785
1797
  name: "actions",
1786
- fn: S(() => [m("button", {
1798
+ fn: C(() => [h("button", {
1787
1799
  tabindex: "0",
1788
1800
  class: "vue-ui-user-options-button",
1789
- onClick: r[4] ||= (e) => Wr(F.value.callbacks.csv),
1790
- style: Qe({ cursor: sn.value ? "pointer" : "default" })
1791
- }, [qe(Pe, {
1801
+ onClick: r[4] ||= (e) => qr(F.value.callbacks.csv),
1802
+ style: Qe({ cursor: cn.value ? "pointer" : "default" })
1803
+ }, [qe(Fe, {
1792
1804
  name: "fileCsv",
1793
- stroke: $r.value.props.color
1805
+ stroke: ni.value.props.color
1794
1806
  }, null, 8, ["stroke"])], 4)]),
1795
1807
  key: "1"
1796
- } : void 0]), 1040)) : p("", !0),
1797
- F.value.buttons.annotator && Y.value.length ? (_(), Ue(b(St), {
1808
+ } : void 0]), 1040)) : m("", !0),
1809
+ F.value.buttons.annotator && Y.value.length ? (v(), p(x(St), {
1798
1810
  key: 7,
1799
1811
  parent: Ot.value,
1800
1812
  backgroundColor: P.value.style.chart.backgroundColor,
1801
1813
  color: P.value.style.chart.color,
1802
- active: Xr.value,
1803
- isCursorPointer: sn.value,
1804
- onClose: Zr
1814
+ active: $r.value,
1815
+ isCursorPointer: cn.value,
1816
+ onClose: ei
1805
1817
  }, {
1806
- "annotator-action-close": S(() => [y(t.$slots, "annotator-action-close", {}, void 0, !0)]),
1807
- "annotator-action-color": S(({ color: e }) => [y(t.$slots, "annotator-action-color", g(h({ color: e })), void 0, !0)]),
1808
- "annotator-action-draw": S(({ mode: e }) => [y(t.$slots, "annotator-action-draw", g(h({ mode: e })), void 0, !0)]),
1809
- "annotator-action-undo": S(({ disabled: e }) => [y(t.$slots, "annotator-action-undo", g(h({ disabled: e })), void 0, !0)]),
1810
- "annotator-action-redo": S(({ disabled: e }) => [y(t.$slots, "annotator-action-redo", g(h({ disabled: e })), void 0, !0)]),
1811
- "annotator-action-delete": S(({ disabled: e }) => [y(t.$slots, "annotator-action-delete", g(h({ disabled: e })), void 0, !0)]),
1818
+ "annotator-action-close": C(() => [b(t.$slots, "annotator-action-close", {}, void 0, !0)]),
1819
+ "annotator-action-color": C(({ color: e }) => [b(t.$slots, "annotator-action-color", _(g({ color: e })), void 0, !0)]),
1820
+ "annotator-action-draw": C(({ mode: e }) => [b(t.$slots, "annotator-action-draw", _(g({ mode: e })), void 0, !0)]),
1821
+ "annotator-action-undo": C(({ disabled: e }) => [b(t.$slots, "annotator-action-undo", _(g({ disabled: e })), void 0, !0)]),
1822
+ "annotator-action-redo": C(({ disabled: e }) => [b(t.$slots, "annotator-action-redo", _(g({ disabled: e })), void 0, !0)]),
1823
+ "annotator-action-delete": C(({ disabled: e }) => [b(t.$slots, "annotator-action-delete", _(g({ disabled: e })), void 0, !0)]),
1812
1824
  _: 3
1813
1825
  }, 8, [
1814
1826
  "parent",
@@ -1816,9 +1828,9 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
1816
1828
  "color",
1817
1829
  "active",
1818
1830
  "isCursorPointer"
1819
- ])) : p("", !0)
1831
+ ])) : m("", !0)
1820
1832
  ], 46, ct));
1821
1833
  }
1822
- }, [["__scopeId", "data-v-5be194fb"]]);
1834
+ }, [["__scopeId", "data-v-c27832e0"]]);
1823
1835
  //#endregion
1824
1836
  export { st as n, yt as t };