vue-data-ui 3.20.7 → 3.20.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 (143) hide show
  1. package/dist/{PackageVersion-DGSNXTDb.js → PackageVersion-CmKUFcwh.js} +1 -1
  2. package/dist/components/vue-ui-3d-bar.js +1 -1
  3. package/dist/components/vue-ui-accordion.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-annotator.js +1 -1
  6. package/dist/components/vue-ui-bullet.js +1 -1
  7. package/dist/components/vue-ui-bump.js +1 -1
  8. package/dist/components/vue-ui-candlestick.js +1 -1
  9. package/dist/components/vue-ui-carousel-table.js +1 -1
  10. package/dist/components/vue-ui-chestnut.js +1 -1
  11. package/dist/components/vue-ui-chord.js +1 -1
  12. package/dist/components/vue-ui-circle-pack.js +1 -1
  13. package/dist/components/vue-ui-cursor.js +1 -1
  14. package/dist/components/vue-ui-dag.js +1 -1
  15. package/dist/components/vue-ui-dashboard.js +1 -1
  16. package/dist/components/vue-ui-digits.js +1 -1
  17. package/dist/components/vue-ui-donut-evolution.js +1 -1
  18. package/dist/components/vue-ui-donut.js +1 -1
  19. package/dist/components/vue-ui-dumbbell.js +1 -1
  20. package/dist/components/vue-ui-flow.js +1 -1
  21. package/dist/components/vue-ui-funnel.js +1 -1
  22. package/dist/components/vue-ui-galaxy.js +1 -1
  23. package/dist/components/vue-ui-gauge.js +1 -1
  24. package/dist/components/vue-ui-geo.js +1 -1
  25. package/dist/components/vue-ui-gizmo.js +1 -1
  26. package/dist/components/vue-ui-heatmap.js +1 -1
  27. package/dist/components/vue-ui-history-plot.js +1 -1
  28. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  29. package/dist/components/vue-ui-kpi.js +1 -1
  30. package/dist/components/vue-ui-mini-loader.js +1 -1
  31. package/dist/components/vue-ui-molecule.js +1 -1
  32. package/dist/components/vue-ui-mood-radar.js +1 -1
  33. package/dist/components/vue-ui-nested-donuts.js +1 -1
  34. package/dist/components/vue-ui-onion.js +1 -1
  35. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  36. package/dist/components/vue-ui-quadrant.js +1 -1
  37. package/dist/components/vue-ui-quick-chart.js +1 -1
  38. package/dist/components/vue-ui-radar.js +1 -1
  39. package/dist/components/vue-ui-rating.js +1 -1
  40. package/dist/components/vue-ui-relation-circle.js +1 -1
  41. package/dist/components/vue-ui-ridgeline.js +1 -1
  42. package/dist/components/vue-ui-rings.js +1 -1
  43. package/dist/components/vue-ui-scatter.js +1 -1
  44. package/dist/components/vue-ui-skeleton.js +1 -1
  45. package/dist/components/vue-ui-smiley.js +1 -1
  46. package/dist/components/vue-ui-spark-trend.js +1 -1
  47. package/dist/components/vue-ui-sparkbar.js +1 -1
  48. package/dist/components/vue-ui-sparkgauge.js +1 -1
  49. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  50. package/dist/components/vue-ui-sparkline.js +1 -1
  51. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  52. package/dist/components/vue-ui-stackbar.js +1 -1
  53. package/dist/components/vue-ui-stackline.js +1 -1
  54. package/dist/components/vue-ui-strip-plot.js +1 -1
  55. package/dist/components/vue-ui-table-heatmap.js +1 -1
  56. package/dist/components/vue-ui-table-sparkline.js +1 -1
  57. package/dist/components/vue-ui-table.js +1 -1
  58. package/dist/components/vue-ui-thermometer.js +1 -1
  59. package/dist/components/vue-ui-timer.js +1 -1
  60. package/dist/components/vue-ui-tiremarks.js +1 -1
  61. package/dist/components/vue-ui-treemap.js +1 -1
  62. package/dist/components/vue-ui-vertical-bar.js +1 -1
  63. package/dist/components/vue-ui-waffle.js +1 -1
  64. package/dist/components/vue-ui-wheel.js +1 -1
  65. package/dist/components/vue-ui-word-cloud.js +1 -1
  66. package/dist/components/vue-ui-world.js +1 -1
  67. package/dist/components/vue-ui-xy-canvas.js +1 -1
  68. package/dist/components/vue-ui-xy.js +1 -1
  69. package/dist/style.css +1 -1
  70. package/dist/types/vue-data-ui.d.ts +13 -0
  71. package/dist/{useConfig-DAyQk86L.js → useConfig-DnH7Pf_2.js} +14 -1
  72. package/dist/{useObjectBindings-BI7hP-BC.js → useObjectBindings-2aHyifU7.js} +2 -2
  73. package/dist/utils.js +1 -1
  74. package/dist/{vue-data-ui-DX8DqD3_.js → vue-data-ui-BSpoS20D.js} +67 -67
  75. package/dist/vue-data-ui.js +68 -68
  76. package/dist/{vue-ui-3d-bar-DzFZ9nA3.js → vue-ui-3d-bar-D024eh9a.js} +2 -2
  77. package/dist/{vue-ui-accordion-Dw4MHKVB.js → vue-ui-accordion-Bpbv-VHE.js} +1 -1
  78. package/dist/{vue-ui-age-pyramid-DSoejZwT.js → vue-ui-age-pyramid-BqyQ2Cok.js} +2 -2
  79. package/dist/{vue-ui-annotator-DLPUAKlm.js → vue-ui-annotator-Q57JevNc.js} +2 -2
  80. package/dist/{vue-ui-bullet-Be3cISIl.js → vue-ui-bullet-Cvqw7WYu.js} +2 -2
  81. package/dist/{vue-ui-bump-DYbo_EOh.js → vue-ui-bump-J-UuSmQh.js} +2 -2
  82. package/dist/{vue-ui-candlestick-eZlgHjlk.js → vue-ui-candlestick-BnAVc5_h.js} +2 -2
  83. package/dist/{vue-ui-carousel-table-C2UxoiXb.js → vue-ui-carousel-table-JlfYfTAg.js} +2 -2
  84. package/dist/{vue-ui-chestnut-BrCs74_7.js → vue-ui-chestnut-vobCcg4_.js} +2 -2
  85. package/dist/{vue-ui-chord-D1M-EXP5.js → vue-ui-chord-CEddjOc-.js} +2 -2
  86. package/dist/{vue-ui-circle-pack-BO1TCENG.js → vue-ui-circle-pack-CiXhHgVT.js} +2 -2
  87. package/dist/{vue-ui-cursor-BU1pELp2.js → vue-ui-cursor-Dqmc1hs-.js} +2 -2
  88. package/dist/{vue-ui-dag-WoLczDUW.js → vue-ui-dag-CpS4yLsg.js} +2 -2
  89. package/dist/{vue-ui-dashboard-CrECnMsD.js → vue-ui-dashboard-BXQpAD1s.js} +65 -65
  90. package/dist/{vue-ui-digits-BjnBN3Nt.js → vue-ui-digits-hNYMWdKd.js} +2 -2
  91. package/dist/{vue-ui-donut-Cql13Tww.js → vue-ui-donut-HJ0NKH1V.js} +2 -2
  92. package/dist/{vue-ui-donut-evolution-CcntpEjb.js → vue-ui-donut-evolution-BWiPV0Tm.js} +2 -2
  93. package/dist/{vue-ui-dumbbell-DgujaQ8O.js → vue-ui-dumbbell-spLJ9JNd.js} +2 -2
  94. package/dist/{vue-ui-flow-Tt1MizRo.js → vue-ui-flow-8cqVvhP2.js} +2 -2
  95. package/dist/{vue-ui-funnel-Cfb7dJpy.js → vue-ui-funnel-CfHtjEj_.js} +2 -2
  96. package/dist/{vue-ui-galaxy-Bhkjom2_.js → vue-ui-galaxy-DrtwzQ3c.js} +2 -2
  97. package/dist/{vue-ui-gauge-CjQBHjde.js → vue-ui-gauge-BDBOAwIq.js} +2 -2
  98. package/dist/{vue-ui-geo-DuMNJVsh.js → vue-ui-geo-Ct09zefu.js} +2 -2
  99. package/dist/{vue-ui-gizmo-DMWWkMX8.js → vue-ui-gizmo-CF1VPTPK.js} +2 -2
  100. package/dist/{vue-ui-heatmap-DB1SfHaL.js → vue-ui-heatmap-B4B21GPM.js} +3 -3
  101. package/dist/{vue-ui-history-plot-Dk5WjFEX.js → vue-ui-history-plot-DdghdOHn.js} +2 -2
  102. package/dist/{vue-ui-horizontal-bar-Bv9jIfWd.js → vue-ui-horizontal-bar-tmd6KVIi.js} +3 -3
  103. package/dist/{vue-ui-kpi-CyREH19B.js → vue-ui-kpi-CN6_muTB.js} +2 -2
  104. package/dist/{vue-ui-mini-loader-CyqBt2g4.js → vue-ui-mini-loader-Bi0nsbao.js} +1 -1
  105. package/dist/{vue-ui-molecule-CMGA4XPh.js → vue-ui-molecule-DXuMRA0C.js} +2 -2
  106. package/dist/{vue-ui-mood-radar-CTHDI7Fo.js → vue-ui-mood-radar-Bx2S6yeC.js} +2 -2
  107. package/dist/{vue-ui-nested-donuts-Dx28N0CE.js → vue-ui-nested-donuts-BLv-N1Ha.js} +2 -2
  108. package/dist/{vue-ui-onion-BwL6cLl9.js → vue-ui-onion-Xk2olRa-.js} +2 -2
  109. package/dist/{vue-ui-parallel-coordinate-plot-CGGlNmwI.js → vue-ui-parallel-coordinate-plot-DBltp4ii.js} +2 -2
  110. package/dist/{vue-ui-quadrant-DWP3RBww.js → vue-ui-quadrant-C95_irsF.js} +2 -2
  111. package/dist/{vue-ui-quick-chart-lnyfYlrO.js → vue-ui-quick-chart-BhfLpyQB.js} +2 -2
  112. package/dist/{vue-ui-radar-ni82Z3h3.js → vue-ui-radar-Byul1CzU.js} +2 -2
  113. package/dist/{vue-ui-rating-BG4lf1z8.js → vue-ui-rating-D8QQctnQ.js} +1 -1
  114. package/dist/{vue-ui-relation-circle-Bi5RUtiI.js → vue-ui-relation-circle-RVYY4x_w.js} +2 -2
  115. package/dist/{vue-ui-ridgeline-C7lPkiA6.js → vue-ui-ridgeline-CIDhyB98.js} +2 -2
  116. package/dist/{vue-ui-rings-D4WtvwdK.js → vue-ui-rings-D-CB0M9S.js} +2 -2
  117. package/dist/{vue-ui-scatter-DtitHNq8.js → vue-ui-scatter-fVKKzjsm.js} +2 -2
  118. package/dist/{vue-ui-skeleton-VJ1ZOGJE.js → vue-ui-skeleton-reB7WIVX.js} +2 -2
  119. package/dist/{vue-ui-smiley-G89TxRU-.js → vue-ui-smiley-CqwB6Uhu.js} +1 -1
  120. package/dist/{vue-ui-spark-trend-BxfUKLw1.js → vue-ui-spark-trend-BY_3zqih.js} +2 -2
  121. package/dist/{vue-ui-sparkbar-CGNdz75n.js → vue-ui-sparkbar-BamIkGuh.js} +2 -2
  122. package/dist/{vue-ui-sparkgauge-DOuTVvsf.js → vue-ui-sparkgauge-DrfGEdZr.js} +2 -2
  123. package/dist/{vue-ui-sparkhistogram-BhL-MqOO.js → vue-ui-sparkhistogram-CyuHfUIV.js} +2 -2
  124. package/dist/{vue-ui-sparkline-CZIzpMsn.js → vue-ui-sparkline-Dp90_uPz.js} +2 -2
  125. package/dist/{vue-ui-sparkstackbar-D05WVAlF.js → vue-ui-sparkstackbar-BaqjgMU7.js} +2 -2
  126. package/dist/{vue-ui-stackbar-6Yz-7xGI.js → vue-ui-stackbar-BP_jVdDa.js} +2 -2
  127. package/dist/{vue-ui-stackline-D6IGcMvr.js → vue-ui-stackline-BFgV-b6g.js} +2 -2
  128. package/dist/{vue-ui-strip-plot-DdNq6thi.js → vue-ui-strip-plot-CtCxmnTE.js} +2 -2
  129. package/dist/{vue-ui-table-D3y_r7DS.js → vue-ui-table-CTsFoA0W.js} +3 -3
  130. package/dist/{vue-ui-table-heatmap-CCGjbSzQ.js → vue-ui-table-heatmap-xwfStZrD.js} +1 -1
  131. package/dist/{vue-ui-table-sparkline-DdjSmHkv.js → vue-ui-table-sparkline-BFeNK6gz.js} +2 -2
  132. package/dist/{vue-ui-thermometer-B7yzKG-4.js → vue-ui-thermometer-B2bVAg-x.js} +2 -2
  133. package/dist/{vue-ui-timer-DmBAcbza.js → vue-ui-timer-Cki5QYSJ.js} +2 -2
  134. package/dist/{vue-ui-tiremarks-D79xPzXq.js → vue-ui-tiremarks-BRHPSHXv.js} +2 -2
  135. package/dist/{vue-ui-treemap-DWYtstBw.js → vue-ui-treemap-BKZkR810.js} +2 -2
  136. package/dist/{vue-ui-waffle-ZV22gU5q.js → vue-ui-waffle-zLeNZlJY.js} +2 -2
  137. package/dist/{vue-ui-wheel-BxTZW4lp.js → vue-ui-wheel-Dbp2p838.js} +2 -2
  138. package/dist/{vue-ui-word-cloud-BnAnLWZK.js → vue-ui-word-cloud-Dgl2Gfyr.js} +2 -2
  139. package/dist/{vue-ui-world-B2Qg5-XQ.js → vue-ui-world-BjwSut9R.js} +2 -2
  140. package/dist/{vue-ui-xy-znFFK-JG.js → vue-ui-xy-CXjPw-9e.js} +1297 -1128
  141. package/dist/{vue-ui-xy-canvas-BUPnRZ3C.js → vue-ui-xy-canvas-DFNKh8Tu.js} +2 -2
  142. package/dist/{vue_ui_xy-BLUkWEAm.js → vue_ui_xy-BA3-_LCx.js} +70 -7
  143. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
2
  import { B as t, Bt as n, Ct as r, D as i, Et as a, F as o, G as s, H as c, I as l, J as u, L as ee, Lt as d, M as te, Mt as f, Nt as p, O as ne, P as re, R as ie, Rt as ae, S as oe, T as se, X as ce, a as le, c as ue, dt as m, et as h, g as de, h as fe, ht as g, i as _, j as pe, jt as me, k as he, kt as ge, l as _e, mt as ve, n as ye, nt as be, pt as xe, r as Se, s as Ce, v, vt as we, w as Te, x as Ee, y as De, z as Oe, zt as ke } from "./lib-DUeYQsS0.js";
3
3
  import { n as Ae, r as je, t as Me } from "./useTimeLabels-BmBRv27Y.js";
4
- import { t as Ne } from "./useConfig-DAyQk86L.js";
4
+ import { t as Ne } from "./useConfig-DnH7Pf_2.js";
5
5
  import { t as Pe } from "./usePrinter-C1Gqt_Sp.js";
6
6
  import { n as Fe, t as Ie } from "./BaseScanner-Dr2a1Msy.js";
7
7
  import { t as Le } from "./useSvgExport-SVIsDot8.js";
@@ -11,11 +11,11 @@ import { t as Be } from "./useStableElementSize-C7KADDKj.js";
11
11
  import { t as Ve } from "./useTimeLabelCollider-AEcY4Ioe.js";
12
12
  import { t as He } from "./img-1cKsci8e.js";
13
13
  import { n as Ue } from "./Title-NWp4qB4K.js";
14
- import { t as We } from "./vue_ui_xy-BLUkWEAm.js";
14
+ import { t as We } from "./vue_ui_xy-BA3-_LCx.js";
15
15
  import { t as Ge } from "./Shape-BPCJfphn.js";
16
16
  import { t as Ke } from "./_plugin-vue_export-helper-B3ysoDQm.js";
17
17
  import { t as qe } from "./SlicerPreview-DdihbUSJ.js";
18
- import { t as Je } from "./vue-ui-accordion-Dw4MHKVB.js";
18
+ import { t as Je } from "./vue-ui-accordion-Bpbv-VHE.js";
19
19
  import { t as Ye } from "./BaseLegendToggle-C_Db-y7s.js";
20
20
  import { t as Xe } from "./A11yDataTable-BCbtxMU6.js";
21
21
  import { Fragment as y, Teleport as Ze, computed as b, createBlock as Qe, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as $e, createTextVNode as et, createVNode as tt, defineAsyncComponent as nt, getCurrentInstance as rt, guardReactiveProps as it, mergeProps as at, nextTick as ot, normalizeClass as st, normalizeProps as ct, normalizeStyle as w, onBeforeUnmount as lt, onMounted as ut, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as dt, shallowRef as ft, toDisplayString as pt, toRefs as mt, unref as k, useSlots as ht, vModelCheckbox as gt, watch as _t, watchEffect as vt, withCtx as A, withDirectives as yt } from "vue";
@@ -111,7 +111,33 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
111
111
  "stroke",
112
112
  "stroke-width",
113
113
  "stroke-dasharray"
114
- ], gn = [
114
+ ], gn = {
115
+ key: 4,
116
+ class: "vue-ui-xy-crosshair-selection"
117
+ }, _n = [
118
+ "x1",
119
+ "x2",
120
+ "y1",
121
+ "y2",
122
+ "stroke",
123
+ "stroke-width",
124
+ "stroke-dasharray"
125
+ ], vn = [
126
+ "x1",
127
+ "x2",
128
+ "y1",
129
+ "y2",
130
+ "stroke",
131
+ "stroke-width",
132
+ "stroke-dasharray"
133
+ ], yn = [
134
+ "cx",
135
+ "cy",
136
+ "r",
137
+ "fill",
138
+ "stroke",
139
+ "stroke-width"
140
+ ], bn = [
115
141
  "x",
116
142
  "y",
117
143
  "width",
@@ -121,198 +147,222 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
121
147
  "stroke-linecap",
122
148
  "stroke-linejoin",
123
149
  "stroke-dasharray"
124
- ], _n = [
150
+ ], xn = ["opacity"], Sn = [
125
151
  "x1",
126
152
  "x2",
127
153
  "y1",
128
154
  "y2",
129
155
  "stroke",
130
156
  "stroke-width"
131
- ], vn = [
157
+ ], Cn = [
132
158
  "fill",
133
159
  "font-size",
134
160
  "transform"
135
- ], yn = [
161
+ ], wn = [
136
162
  "x1",
137
163
  "x2",
138
164
  "y1",
139
165
  "y2",
140
166
  "stroke"
141
- ], bn = [
167
+ ], Tn = [
142
168
  "transform",
143
169
  "text-anchor",
144
170
  "font-size",
145
171
  "fill"
146
- ], xn = [
172
+ ], En = [
147
173
  "x1",
148
174
  "x2",
149
175
  "y1",
150
176
  "y2",
151
177
  "stroke"
152
- ], Sn = [
178
+ ], Dn = [
153
179
  "transform",
154
180
  "font-size",
155
181
  "text-anchor",
156
182
  "fill"
157
- ], Cn = [
183
+ ], On = {
184
+ key: 7,
185
+ class: "vue-ui-xy-crosshair-selection"
186
+ }, kn = [
187
+ "transform",
188
+ "font-size",
189
+ "text-anchor",
190
+ "fill"
191
+ ], An = {
192
+ key: 8,
193
+ class: "vue-ui-xy-crosshair-selection"
194
+ }, jn = [
195
+ "cx",
196
+ "cy",
197
+ "r",
198
+ "fill",
199
+ "stroke",
200
+ "stroke-width"
201
+ ], Mn = [
158
202
  "width",
159
203
  "x",
160
204
  "y"
161
- ], wn = { style: { width: "100%" } }, Tn = [
205
+ ], Nn = { style: { width: "100%" } }, Pn = [
162
206
  "d",
163
207
  "stroke",
164
208
  "stroke-width",
165
209
  "stroke-dasharray"
166
- ], En = [
210
+ ], Fn = [
167
211
  "d",
168
212
  "stroke",
169
213
  "stroke-width",
170
214
  "stroke-dasharray"
171
- ], Dn = { key: 6 }, On = { key: 7 }, kn = [
215
+ ], In = { key: 9 }, Ln = { key: 10 }, Rn = [
172
216
  "d",
173
217
  "fill",
174
218
  "fill-opacity"
175
- ], An = { key: 0 }, jn = ["d", "fill"], Mn = ["d", "fill"], Nn = ["d", "fill"], Pn = ["d", "fill"], Fn = [
219
+ ], zn = { key: 0 }, Bn = ["d", "fill"], Vn = ["d", "fill"], Hn = ["d", "fill"], Un = ["d", "fill"], Wn = [
176
220
  "d",
177
221
  "stroke",
178
222
  "stroke-width",
179
223
  "stroke-dasharray"
180
- ], In = [
224
+ ], Gn = [
181
225
  "d",
182
226
  "stroke",
183
227
  "stroke-width",
184
228
  "stroke-dasharray"
185
- ], Ln = [
229
+ ], Kn = [
186
230
  "d",
187
231
  "stroke",
188
232
  "stroke-width",
189
233
  "stroke-dasharray"
190
- ], Rn = [
234
+ ], qn = [
191
235
  "d",
192
236
  "stroke",
193
237
  "stroke-width",
194
238
  "stroke-dasharray"
195
- ], zn = [
239
+ ], Jn = [
196
240
  "width",
197
241
  "x",
198
242
  "y"
199
- ], Bn = { style: { width: "100%" } }, Vn = { key: 8 }, Hn = [
243
+ ], Yn = { style: { width: "100%" } }, Xn = { key: 11 }, Zn = [
200
244
  "text-anchor",
201
245
  "font-size",
202
246
  "transform",
203
247
  "fill",
204
248
  "stroke",
205
249
  "innerHTML"
206
- ], Un = [
250
+ ], Qn = [
207
251
  "x",
208
252
  "y",
209
253
  "font-size",
210
254
  "fill",
211
255
  "font-weight"
212
- ], Wn = { key: 9 }, Gn = [
256
+ ], $n = { key: 12 }, er = [
213
257
  "transform",
214
258
  "text-anchor",
215
259
  "font-size",
216
260
  "fill",
217
261
  "stroke",
218
262
  "innerHTML"
219
- ], Kn = { key: 10 }, qn = ["x", "y"], Jn = ["innerHTML"], Yn = ["x", "y"], Xn = ["innerHTML"], Zn = [
263
+ ], tr = { key: 13 }, nr = ["x", "y"], rr = ["innerHTML"], ir = ["x", "y"], ar = ["innerHTML"], or = [
220
264
  "x1",
221
265
  "x2",
222
266
  "y1",
223
267
  "y2",
224
268
  "stroke"
225
- ], Qn = { key: 11 }, $n = [
269
+ ], sr = { key: 14 }, cr = [
226
270
  "transform",
227
271
  "text-anchor",
228
272
  "font-size",
229
273
  "fill",
230
274
  "stroke",
231
275
  "innerHTML"
232
- ], er = { key: 12 }, tr = ["x", "y"], nr = ["innerHTML"], rr = ["x", "y"], ir = ["innerHTML"], ar = [
276
+ ], lr = { key: 15 }, ur = ["x", "y"], dr = ["innerHTML"], fr = ["x", "y"], pr = ["innerHTML"], mr = [
233
277
  "x1",
234
278
  "x2",
235
279
  "y1",
236
280
  "y2",
237
281
  "stroke"
238
- ], or = [
282
+ ], hr = [
239
283
  "x",
240
284
  "y",
241
285
  "font-size",
242
286
  "fill",
243
287
  "innerHTML"
244
- ], sr = [
288
+ ], gr = [
245
289
  "x",
246
290
  "y",
247
291
  "font-size",
248
292
  "fill",
249
293
  "innerHTML"
250
- ], cr = [
294
+ ], _r = [
251
295
  "x",
252
296
  "y",
253
297
  "font-size",
254
298
  "fill",
255
299
  "innerHTML"
256
- ], lr = [
300
+ ], vr = [
257
301
  "x",
258
302
  "y",
259
303
  "font-size",
260
304
  "fill",
261
305
  "innerHTML"
262
- ], ur = { key: 0 }, dr = ["id"], fr = ["fill", "stroke"], pr = [
306
+ ], yr = { key: 0 }, br = ["id"], xr = ["fill", "stroke"], Sr = [
263
307
  "x1",
264
308
  "x2",
265
309
  "y1",
266
310
  "y2",
267
311
  "stroke",
268
312
  "marker-end"
269
- ], mr = [
313
+ ], Cr = [
270
314
  "x1",
271
315
  "x2",
272
316
  "y1",
273
317
  "y2",
274
318
  "stroke",
275
319
  "marker-end"
276
- ], hr = [
320
+ ], wr = [
277
321
  "x",
278
322
  "y",
279
323
  "font-size",
280
324
  "fill",
281
325
  "stroke"
282
- ], gr = [
326
+ ], Tr = [
283
327
  "id",
284
328
  "x1",
285
329
  "x2"
286
- ], _r = ["stop-color"], vr = ["stop-color"], yr = [
330
+ ], Er = ["stop-color"], Dr = ["stop-color"], Or = [
287
331
  "x",
288
332
  "y",
289
333
  "width",
290
334
  "height",
291
335
  "fill",
292
336
  "onMouseenter"
293
- ], br = [
337
+ ], kr = [
294
338
  "font-size",
295
339
  "fill",
296
340
  "transform"
297
- ], xr = [
341
+ ], Ar = [
298
342
  "x",
299
343
  "y",
300
344
  "font-size",
301
345
  "fill"
302
- ], Sr = [
346
+ ], jr = ["opacity"], Mr = [
303
347
  "text-anchor",
304
348
  "font-size",
305
349
  "fill",
306
350
  "transform",
307
351
  "onClick"
308
- ], Cr = [
352
+ ], Nr = [
309
353
  "text-anchor",
310
354
  "font-size",
311
355
  "fill",
312
356
  "transform",
313
357
  "innerHTML",
314
358
  "onClick"
315
- ], wr = { key: 15 }, Tr = [
359
+ ], Pr = { key: 18 }, Fr = [
360
+ "text-anchor",
361
+ "font-size",
362
+ "fill",
363
+ "transform",
364
+ "innerHTML"
365
+ ], Ir = { key: 19 }, Lr = [
316
366
  "x1",
317
367
  "y1",
318
368
  "x2",
@@ -320,7 +370,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
320
370
  "stroke",
321
371
  "stroke-width",
322
372
  "stroke-dasharray"
323
- ], Er = [
373
+ ], Rr = [
324
374
  "x1",
325
375
  "y1",
326
376
  "x2",
@@ -328,28 +378,28 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
328
378
  "stroke",
329
379
  "stroke-width",
330
380
  "stroke-dasharray"
331
- ], Dr = [
381
+ ], zr = [
332
382
  "y",
333
383
  "x",
334
384
  "width",
335
385
  "height",
336
386
  "fill"
337
- ], Or = [
387
+ ], Br = [
338
388
  "id",
339
389
  "x",
340
390
  "y",
341
391
  "font-size",
342
392
  "fill",
343
393
  "text-anchor"
344
- ], kr = {
345
- key: 16,
394
+ ], Vr = {
395
+ key: 20,
346
396
  style: { "pointer-events": "none" }
347
- }, Ar = ["x", "y"], jr = ["innerHTML"], Mr = [
397
+ }, Hr = ["x", "y"], Ur = ["innerHTML"], Wr = [
348
398
  "cx",
349
399
  "cy",
350
400
  "r",
351
401
  "fill"
352
- ], Nr = ["data-start", "data-end"], Pr = {
402
+ ], Gr = ["data-start", "data-end"], Kr = {
353
403
  key: 0,
354
404
  style: {
355
405
  position: "absolute",
@@ -359,10 +409,10 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
359
409
  },
360
410
  "data-dom-to-png-ignore": "",
361
411
  "aria-hidden": "true"
362
- }, Fr = {
412
+ }, qr = {
363
413
  key: 5,
364
414
  class: "vue-data-ui-watermark"
365
- }, Ir = {
415
+ }, Jr = {
366
416
  class: "vue-ui-xy-tag-arrow",
367
417
  height: "20",
368
418
  viewBox: "0 0 10 20",
@@ -372,7 +422,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
372
422
  top: "50%",
373
423
  transform: "translateY(-50%)"
374
424
  }
375
- }, Lr = ["fill"], Rr = ["innerHTML"], zr = {
425
+ }, Yr = ["fill"], Xr = ["innerHTML"], Zr = {
376
426
  class: "vue-ui-xy-tag-arrow",
377
427
  height: "100%",
378
428
  viewBox: "0 0 10 20",
@@ -382,7 +432,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
382
432
  top: "50%",
383
433
  transform: "translateY(-50%)"
384
434
  }
385
- }, Br = ["fill"], Vr = ["innerHTML"], Hr = {
435
+ }, Qr = ["fill"], $r = ["innerHTML"], ei = {
386
436
  class: "vue-ui-xy-tag-arrow",
387
437
  height: "20",
388
438
  viewBox: "0 0 10 20",
@@ -392,7 +442,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
392
442
  top: "50%",
393
443
  transform: "translateY(-50%)"
394
444
  }
395
- }, Ur = ["fill"], Wr = ["innerHTML"], Gr = {
445
+ }, ti = ["fill"], ni = ["innerHTML"], ri = {
396
446
  class: "vue-ui-xy-tag-arrow",
397
447
  height: "100%",
398
448
  viewBox: "0 0 10 20",
@@ -402,25 +452,25 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
402
452
  top: "50%",
403
453
  transform: "translateY(-50%)"
404
454
  }
405
- }, Kr = ["fill"], qr = ["innerHTML"], Jr = ["id"], Yr = ["onClick", "onKeydown"], Xr = {
455
+ }, ii = ["fill"], ai = ["innerHTML"], oi = ["id"], si = ["onClick", "onKeydown"], ci = {
406
456
  key: 0,
407
457
  viewBox: "0 0 20 12",
408
458
  height: "1em",
409
459
  width: "1.43em",
410
460
  "aria-hidden": "true"
411
- }, Zr = ["stroke", "fill"], Qr = {
461
+ }, li = ["stroke", "fill"], ui = {
412
462
  key: 1,
413
463
  viewBox: "0 0 40 40",
414
464
  height: "1em",
415
465
  width: "1em",
416
466
  "aria-hidden": "true"
417
- }, $r = ["fill"], ei = ["fill"], ti = {
467
+ }, di = ["fill"], fi = ["fill"], pi = {
418
468
  key: 2,
419
469
  viewBox: "0 0 12 12",
420
470
  height: "1em",
421
471
  width: "1em",
422
472
  "aria-hidden": "true"
423
- }, ni = {
473
+ }, mi = {
424
474
  style: {
425
475
  display: "flex",
426
476
  "flex-direction": "row",
@@ -429,7 +479,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
429
479
  "padding-left": "6px"
430
480
  },
431
481
  "data-dom-to-png-ignore": ""
432
- }, ri = ["innerHTML"], j = /* @__PURE__ */ Ke({
482
+ }, hi = ["innerHTML"], j = /* @__PURE__ */ Ke({
433
483
  __name: "vue-ui-xy",
434
484
  props: {
435
485
  config: {
@@ -459,89 +509,89 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
459
509
  "copyAlt"
460
510
  ],
461
511
  setup(e, { expose: Ke, emit: bt }) {
462
- let j = e, ii = nt(() => import("./DataTable-B--IN22e.js")), ai = nt(() => import("./Tooltip-BENq327o.js")), oi = nt(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), si = nt(() => import("./BaseIcon-DfLoHNUj.js").then((e) => e.n)), ci = nt(() => import("./vue-ui-table-sparkline-DdjSmHkv.js").then((e) => e.n)), li = nt(() => import("./PackageVersion-DGSNXTDb.js").then((e) => e.t)), ui = nt(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), di = nt(() => import("./BaseDraggableDialog-4hDW-Rj2.js").then((e) => e.n)), fi = bt, pi = ht(), mi = rt(), { vue_ui_xy: hi } = Ne(), { isThemeValid: gi, warnInvalidTheme: _i } = ze(), vi = E(null), yi = E(null), bi = E(null), xi = E(null), Si = E(null), Ci = E(null), wi = E(null), Ti = E(null), Ei = E(null), Di = E(null), Oi = E(null), ki = E(null), Ai = E(null), ji = E(null), Mi = E(0), M = E(null), Ni = E(!0), Pi = E(600), N = E(1e3), Fi = E("0 0 1000 600"), Ii = E({
512
+ let j = e, gi = nt(() => import("./DataTable-B--IN22e.js")), _i = nt(() => import("./Tooltip-BENq327o.js")), vi = nt(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), yi = nt(() => import("./BaseIcon-DfLoHNUj.js").then((e) => e.n)), bi = nt(() => import("./vue-ui-table-sparkline-BFeNK6gz.js").then((e) => e.n)), xi = nt(() => import("./PackageVersion-CmKUFcwh.js").then((e) => e.t)), Si = nt(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), Ci = nt(() => import("./BaseDraggableDialog-4hDW-Rj2.js").then((e) => e.n)), wi = bt, Ti = ht(), Ei = rt(), { vue_ui_xy: Di } = Ne(), { isThemeValid: Oi, warnInvalidTheme: ki } = ze(), Ai = E(null), ji = E(null), Mi = E(null), Ni = E(null), Pi = E(null), Fi = E(null), Ii = E(null), Li = E(null), Ri = E(null), zi = E(null), Bi = E(null), Vi = E(null), Hi = E(null), Ui = E(null), Wi = E(0), M = E(null), Gi = E(!0), Ki = E(600), N = E(1e3), qi = E("0 0 1000 600"), Ji = E({
463
513
  x: 0,
464
514
  y: 0
465
- }), Li = E({
515
+ }), Yi = E({
466
516
  line: "line",
467
517
  bar: "bar",
468
518
  plot: "plot"
469
- }), Ri = E(!1), zi = E(!1), Bi = E(!1), Vi = E(null), P = E([]), F = E(c()), Hi = E(0), Ui = E(0), Wi = E(0), Gi = E(!0), Ki = E(0), I = E(null), qi = E(!1), Ji = E(!0), Yi = E(!0), L = E(null), Xi = E({}), Zi = E(null), Qi = E(!1), $i = E(null), ea = E(!1), ta = E(!1), na = E(null), R = E(null), ra = E(null), ia = E({
519
+ }), Xi = E(!1), Zi = E(!1), Qi = E(!1), $i = E(null), P = E([]), F = E(c()), ea = E(0), ta = E(0), na = E(0), ra = E(!0), ia = E(0), I = E(null), aa = E(!1), oa = E(!0), sa = E(!0), L = E(null), ca = E({}), la = E(null), ua = E(!1), da = E(null), fa = E(!1), pa = E(!1), ma = E(null), R = E(null), ha = E(null), ga = E({
470
520
  x: 0,
471
521
  y: 0
472
- }), aa = ft(null), oa = E(!1), sa = E(0), ca = E(0), la = Be({
473
- elementRef: aa,
522
+ }), _a = ft(null), va = E(!1), ya = E(0), ba = E(0), xa = Be({
523
+ elementRef: _a,
474
524
  minimumWidth: 2,
475
525
  minimumHeight: 2,
476
526
  stableFramesRequired: 2,
477
527
  once: !1,
478
528
  onSizeAccepted: () => {
479
- fa();
529
+ wa();
480
530
  }
481
531
  });
482
- function ua() {
483
- aa.value = vi.value?.parentNode ?? null;
532
+ function Sa() {
533
+ _a.value = Ai.value?.parentNode ?? null;
484
534
  }
485
- function da() {
535
+ function Ca() {
486
536
  return new Promise((e) => {
487
537
  requestAnimationFrame(() => {
488
538
  requestAnimationFrame(e);
489
539
  });
490
540
  });
491
541
  }
492
- async function fa() {
493
- let e = ++ca.value;
494
- oa.value = !1, await ot(), await da(), await da(), e === ca.value && (sa.value += 1, oa.value = !0);
542
+ async function wa() {
543
+ let e = ++ba.value;
544
+ va.value = !1, await ot(), await Ca(), await Ca(), e === ba.value && (ya.value += 1, va.value = !0);
495
545
  }
496
- let pa = b(() => ({
497
- height: Pi.value,
546
+ let Ta = b(() => ({
547
+ height: Ki.value,
498
548
  width: N.value
499
549
  }));
500
- function ma(e) {
550
+ function Ea(e) {
501
551
  return Number.isFinite(e) ? Math.max(0, Math.floor(e)) : 0;
502
552
  }
503
- function ha(e, t, n = 0) {
553
+ function Da(e, t, n = 0) {
504
554
  return Number.isFinite(e) && Number.isFinite(t) && Math.abs(t) > 1e-9 ? e / t : n;
505
555
  }
506
- let ga = E(!1), _a = E(null), va = E(null), z = E({
556
+ let Oa = E(!1), ka = E(null), Aa = E(null), z = E({
507
557
  xAxis: 18,
508
558
  yAxis: 12,
509
559
  dataLabels: 20,
510
560
  plotLabels: 10
511
- }), ya = E({
561
+ }), ja = E({
512
562
  plot: 3,
513
563
  line: 3
514
564
  });
515
565
  ut(() => {
516
- Qi.value = !0, j.dataset.length && j.dataset.forEach((e, t) => {
566
+ ua.value = !0, j.dataset.length && j.dataset.forEach((e, t) => {
517
567
  [null, void 0].includes(e.series) && ce({
518
568
  componentName: "VueUiXy",
519
569
  type: "datasetSerieAttribute",
520
570
  property: "series (number[])",
521
571
  index: t,
522
- debug: Ta.value
572
+ debug: La.value
523
573
  });
524
- }), ua(), la.start(), fa();
574
+ }), Sa(), xa.start(), wa();
525
575
  });
526
- function ba() {
527
- if (!Object.keys(j.config || {}).length) return hi;
576
+ function Ma() {
577
+ if (!Object.keys(j.config || {}).length) return Di;
528
578
  let e = Re({
529
579
  userConfig: j.config,
530
- defaultConfig: hi
580
+ defaultConfig: Di
531
581
  });
532
582
  j.config && m(j.config, "chart.highlightArea") && (Array.isArray(j.config.chart.highlightArea) ? e.chart.highlightArea = j.config.chart.highlightArea : e.chart.highlightArea = [j.config.chart.highlightArea]), j.config && m(j.config, "chart.annotations") && Array.isArray(j.config.chart.annotations) && j.config.chart.annotations.length ? e.chart.annotations = j.config.chart.annotations.map((e) => Re({
533
- defaultConfig: hi.chart.annotations[0],
583
+ defaultConfig: Di.chart.annotations[0],
534
584
  userConfig: e
535
- })) : e.chart.annotations = [], j.config && m(j.config, "chart.grid.position") && j.config.chart.grid.position === "start" && j.dataset.length && j.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", m(j.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), j.config && m(j.config, "chart.highlightArea") && (Array.isArray(j.config.chart.highlightArea) ? e.chart.highlightArea = j.config.chart.highlightArea.map((e) => xa({
536
- defaultConfig: hi.chart.highlightArea,
585
+ })) : e.chart.annotations = [], j.config && m(j.config, "chart.grid.position") && j.config.chart.grid.position === "start" && j.dataset.length && j.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", m(j.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), j.config && m(j.config, "chart.highlightArea") && (Array.isArray(j.config.chart.highlightArea) ? e.chart.highlightArea = j.config.chart.highlightArea.map((e) => Na({
586
+ defaultConfig: Di.chart.highlightArea,
537
587
  userConfig: e
538
- })) : e.chart.highlightArea = xa({
539
- defaultConfig: hi.chart.highlightArea,
588
+ })) : e.chart.highlightArea = Na({
589
+ defaultConfig: Di.chart.highlightArea,
540
590
  userConfig: j.config.chart.highlightArea
541
591
  }));
542
592
  let t = e.theme;
543
593
  if (!t) return e;
544
- if (!gi.value(e)) return _i(e), e;
594
+ if (!Oi.value(e)) return ki(e), e;
545
595
  let n = Re({
546
596
  userConfig: We[t] || j.config,
547
597
  defaultConfig: e
@@ -554,41 +604,41 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
554
604
  customPalette: r.customPalette.length ? r.customPalette : ae[t] || a
555
605
  };
556
606
  }
557
- function xa({ defaultConfig: e, userConfig: t }) {
607
+ function Na({ defaultConfig: e, userConfig: t }) {
558
608
  return Re({
559
609
  defaultConfig: e,
560
610
  userConfig: t
561
611
  });
562
612
  }
563
- let Sa = b({
613
+ let Pa = b({
564
614
  get() {
565
615
  return !!j.dataset && j.dataset.length;
566
616
  },
567
617
  set(e) {
568
618
  return e;
569
619
  }
570
- }), B = E(ba()), Ca = b(() => B.value.chart.userOptions.useCursorPointer), V = E({
620
+ }), B = E(Ma()), Fa = b(() => B.value.chart.userOptions.useCursorPointer), V = E({
571
621
  dataLabels: { show: !0 },
572
622
  showTooltip: !0,
573
623
  showTable: !1,
574
624
  isStacked: !1,
575
625
  useIndividualScale: !1
576
626
  });
577
- function wa() {
627
+ function Ia() {
578
628
  let e = B.value.chart.grid.labels.yAxis.stacked, t = B.value.chart.grid.labels.yAxis.useIndividualScale;
579
- if (!ga.value) {
629
+ if (!Oa.value) {
580
630
  V.value = {
581
631
  dataLabels: { show: !0 },
582
632
  showTooltip: B.value.chart.tooltip.show === !0,
583
633
  showTable: B.value.showTable === !0,
584
634
  isStacked: e,
585
635
  useIndividualScale: t
586
- }, _a.value = e, va.value = t, ga.value = !0;
636
+ }, ka.value = e, Aa.value = t, Oa.value = !0;
587
637
  return;
588
638
  }
589
- V.value.showTooltip = B.value.chart.tooltip.show === !0, e !== _a.value && (V.value.isStacked = e, _a.value = e), t !== va.value && (V.value.useIndividualScale = t, va.value = t), V.value.isStacked && (V.value.useIndividualScale = !0);
639
+ V.value.showTooltip = B.value.chart.tooltip.show === !0, e !== ka.value && (V.value.isStacked = e, ka.value = e), t !== Aa.value && (V.value.useIndividualScale = t, Aa.value = t), V.value.isStacked && (V.value.useIndividualScale = !0);
590
640
  }
591
- let Ta = b(() => !!B.value.debug), Ea = b(() => n({
641
+ let La = b(() => !!B.value.debug), Ra = b(() => n({
592
642
  defaultConfig: {
593
643
  useCssAnimation: !1,
594
644
  showTable: !1,
@@ -644,7 +694,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
644
694
  }
645
695
  },
646
696
  userConfig: B.value.skeletonConfig ?? {}
647
- })), Da = b(() => j.config?.skeletonDataset ?? [{
697
+ })), za = b(() => j.config?.skeletonDataset ?? [{
648
698
  name: "",
649
699
  series: [
650
700
  0,
@@ -681,22 +731,22 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
681
731
  ],
682
732
  type: "bar",
683
733
  color: "#CACACA"
684
- }]), { loading: Oa, FINAL_DATASET: H, manualLoading: ka } = Fe({
734
+ }]), { loading: Ba, FINAL_DATASET: H, manualLoading: Va } = Fe({
685
735
  ...mt(j),
686
736
  FINAL_CONFIG: B,
687
- prepareConfig: ba,
737
+ prepareConfig: Ma,
688
738
  callback: () => {
689
739
  Promise.resolve().then(async () => {
690
- (!B.value.chart.zoom.keepState || !zo.value || W.value.start === 0 && W.value.end === 0) && await Uo(), V.value.showTable = B.value.showTable;
740
+ (!B.value.chart.zoom.keepState || !Qo.value || W.value.start === 0 && W.value.end === 0) && await ns(), V.value.showTable = B.value.showTable;
691
741
  });
692
742
  },
693
- skeletonDataset: Da.value,
743
+ skeletonDataset: za.value,
694
744
  skeletonConfig: n({
695
745
  defaultConfig: B.value,
696
- userConfig: Ea.value
746
+ userConfig: Ra.value
697
747
  })
698
748
  });
699
- function Aa(e) {
749
+ function Ha(e) {
700
750
  let t = /* @__PURE__ */ new WeakMap();
701
751
  return (n, ...r) => {
702
752
  let i = t.get(n), a = JSON.stringify(r);
@@ -705,39 +755,39 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
705
755
  return i || (i = /* @__PURE__ */ new Map(), t.set(n, i)), i.set(a, o), o;
706
756
  };
707
757
  }
708
- let ja = Aa((e, t) => we({
758
+ let Ua = Ha((e, t) => we({
709
759
  data: e,
710
760
  threshold: t
711
- })), Ma = (e) => ja(e, B.value.downsample.threshold), U = b({
712
- get: () => Math.max(...H.value.map((e) => Ma(e.series).length)),
761
+ })), Wa = (e) => Ua(e, B.value.downsample.threshold), U = b({
762
+ get: () => Math.max(...H.value.map((e) => Wa(e.series).length)),
713
763
  set: (e) => e
714
764
  }), W = E({
715
765
  start: 0,
716
766
  end: U.value
717
- }), G = E({
767
+ }), Ga = E({
718
768
  start: 0,
719
769
  end: U.value
720
- }), Na = b(() => B.value.chart.zoom.preview.enable && (G.value.start !== W.value.start || G.value.end !== W.value.end));
721
- function Pa(e, t) {
722
- G.value[e] = t;
770
+ }), Ka = b(() => B.value.chart.zoom.preview.enable && (Ga.value.start !== W.value.start || Ga.value.end !== W.value.end));
771
+ function qa(e, t) {
772
+ Ga.value[e] = t;
723
773
  }
724
- function Fa() {
725
- if (q.value) {
726
- let e = fc.value.min, t = fc.value.max, n = Number(W.value.start), r = Number(W.value.end);
774
+ function Ja() {
775
+ if (K.value) {
776
+ let e = Tc.value.min, t = Tc.value.max, n = Number(W.value.start), r = Number(W.value.end);
727
777
  Number.isFinite(n) || (n = e), Number.isFinite(r) || (r = t), n = Math.max(e, Math.min(n, t)), r = Math.max(n, Math.min(r, t)), r <= n && (n = e, r = t), W.value = {
728
778
  start: n,
729
779
  end: r
730
- }, G.value.start = n, G.value.end = r, bi.value && (bi.value.setStartValue(n), bi.value.setEndValue(r));
780
+ }, Ga.value.start = n, Ga.value.end = r, Mi.value && (Mi.value.setStartValue(n), Mi.value.setEndValue(r));
731
781
  return;
732
782
  }
733
- let e = Math.max(1, ...H.value.map((e) => Ma(e.series).length)), t = Math.max(0, Math.min(W.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(W.value.end ?? e, e));
783
+ let e = Math.max(1, ...H.value.map((e) => Wa(e.series).length)), t = Math.max(0, Math.min(W.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(W.value.end ?? e, e));
734
784
  (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), W.value = {
735
785
  start: t,
736
786
  end: n
737
- }, G.value.start = t, G.value.end = n, bi.value && (bi.value.setStartValue(t), bi.value.setEndValue(n));
787
+ }, Ga.value.start = t, Ga.value.end = n, Mi.value && (Mi.value.setStartValue(t), Mi.value.setEndValue(n));
738
788
  }
739
- let Ia = b(() => {
740
- let { left: e, top: t, width: n, height: r } = Y.value, i = W.value.start, a = W.value.end - i, o = n / a, s = G.value.start - i, c = G.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
789
+ let Ya = b(() => {
790
+ let { left: e, top: t, width: n, height: r } = J.value, i = W.value.start, a = W.value.end - i, o = n / a, s = Ga.value.start - i, c = Ga.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
741
791
  return {
742
792
  x: e + l * o,
743
793
  y: t,
@@ -764,22 +814,22 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
764
814
  let t = e - W.value.start;
765
815
  t < 0 || e >= W.value.end ? R.value = null : R.value = t ?? null;
766
816
  }, { immediate: !0 });
767
- let { isPrinting: La, isImaging: Ra, generatePdf: za, generateImage: Ba } = Pe({
817
+ let { isPrinting: Xa, isImaging: Za, generatePdf: Qa, generateImage: $a } = Pe({
768
818
  elementId: `vue-ui-xy_${F.value}`,
769
819
  fileName: B.value.chart.title.text || "vue-ui-xy",
770
820
  options: B.value.chart.userOptions.print
771
- }), Va = E(!1), Ha = b(() => Ee(B.value.customPalette)), Ua = b(() => {
821
+ }), eo = E(!1), to = b(() => Ee(B.value.customPalette)), no = b(() => {
772
822
  let e = B.value.chart.grid.labels.yAxis.scaleMin;
773
823
  if (e == null) return null;
774
824
  let t = Number(e);
775
825
  return Number.isFinite(t) ? t : null;
776
- }), Wa = b(() => Ua.value === null ? rs.value : Y.value.bottom), Ga = b(() => {
826
+ }), ro = b(() => no.value === null ? gs.value : J.value.bottom), io = b(() => {
777
827
  let e = B.value.chart.grid.labels.yAxis.scaleMax;
778
828
  if (e == null) return null;
779
829
  let t = Number(e);
780
830
  return Number.isFinite(t) ? t : null;
781
- }), Ka = b(() => Ua.value !== null || Ga.value !== null), qa = b(() => {
782
- let e = to.value.filter((e) => !P.value.includes(e.id)).flatMap((e) => Array.isArray(e.series) ? e.series : []).map(eo).filter(Number.isFinite);
831
+ }), ao = b(() => no.value !== null || io.value !== null), oo = b(() => {
832
+ let e = ho.value.filter((e) => !P.value.includes(e.id)).flatMap((e) => Array.isArray(e.series) ? e.series : []).map(mo).filter(Number.isFinite);
783
833
  return e.length ? {
784
834
  min: Math.min(...e),
785
835
  max: Math.max(...e)
@@ -788,38 +838,38 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
788
838
  max: 1
789
839
  };
790
840
  });
791
- function Ja(e, t) {
841
+ function so(e, t) {
792
842
  let n = Number.isFinite(e) ? e : 0, r = Number.isFinite(t) ? t : 1;
793
843
  return n === r ? r = n + 1 : n > r && ([n, r] = [r, n]), {
794
844
  min: n,
795
845
  max: r
796
846
  };
797
847
  }
798
- let Ya = b(() => {
799
- let { min: e, max: t } = qa.value;
800
- if (!Ka.value) {
848
+ let co = b(() => {
849
+ let { min: e, max: t } = oo.value;
850
+ if (!ao.value) {
801
851
  let t = e;
802
852
  return t > 0 ? 0 : t;
803
853
  }
804
- let n = Ua.value === null ? e > 0 ? 0 : e : Ua.value, r = Ga.value === null ? t : Ga.value;
805
- return Ja(e < n ? e : n, t > r ? t : r).min;
806
- }), Xa = b(() => {
807
- let { min: e, max: t } = qa.value;
808
- if (!Ka.value) {
854
+ let n = no.value === null ? e > 0 ? 0 : e : no.value, r = io.value === null ? t : io.value;
855
+ return so(e < n ? e : n, t > r ? t : r).min;
856
+ }), lo = b(() => {
857
+ let { min: e, max: t } = oo.value;
858
+ if (!ao.value) {
809
859
  let e = t;
810
- return Ya.value === e ? e + 1 : e;
860
+ return co.value === e ? e + 1 : e;
811
861
  }
812
- let n = Ua.value === null ? e > 0 ? 0 : e : Ua.value, r = Ga.value === null ? t : Ga.value;
813
- return Ja(e < n ? e : n, t > r ? t : r).max;
814
- }), K = b(() => B.value.chart.grid.labels.yAxis.useNiceScale ? fe(Ya.value, Xa.value < 0 ? 0 : Xa.value, B.value.chart.grid.labels.yAxis.commonScaleSteps) : de(Ya.value, Xa.value < 0 ? 0 : Xa.value, B.value.chart.grid.labels.yAxis.commonScaleSteps)), Za = b(() => [null, void 0].includes(B.value.chart.grid.labels.yAxis.scaleMin) ? K.value.min >= 0 ? 0 : Math.abs(K.value.min) : -K.value.min);
815
- function Qa(e) {
862
+ let n = no.value === null ? e > 0 ? 0 : e : no.value, r = io.value === null ? t : io.value;
863
+ return so(e < n ? e : n, t > r ? t : r).max;
864
+ }), G = b(() => B.value.chart.grid.labels.yAxis.useNiceScale ? fe(co.value, lo.value < 0 ? 0 : lo.value, B.value.chart.grid.labels.yAxis.commonScaleSteps) : de(co.value, lo.value < 0 ? 0 : lo.value, B.value.chart.grid.labels.yAxis.commonScaleSteps)), uo = b(() => [null, void 0].includes(B.value.chart.grid.labels.yAxis.scaleMin) ? G.value.min >= 0 ? 0 : Math.abs(G.value.min) : -G.value.min);
865
+ function fo(e) {
816
866
  return e && typeof e == "object" && Number.isFinite(Number(e.x)) && Number.isFinite(Number(e.y));
817
867
  }
818
- let q = b(() => H.value.some((e) => Array.isArray(e.series) && e.series.some(Qa)));
868
+ let K = b(() => H.value.some((e) => Array.isArray(e.series) && e.series.some(fo)));
819
869
  ut(() => {
820
- q.value && j.dataset.some((e) => e.type === "bar") && console.warn("Vue Data UI - VueUiXy: series of type 'bar' are not supported in continuous mode.\n\nContinuous mode requires 'line' and 'plot' series to use coordinate-based datasets:\n[{ x: number, y: number }]\n\nIf you need to mix 'bar', 'line', and 'plot' series in the same chart, all series must use the standard\n[number, number, number...]");
870
+ K.value && j.dataset.some((e) => e.type === "bar") && console.warn("Vue Data UI - VueUiXy: series of type 'bar' are not supported in continuous mode.\n\nContinuous mode requires 'line' and 'plot' series to use coordinate-based datasets:\n[{ x: number, y: number }]\n\nIf you need to mix 'bar', 'line', and 'plot' series in the same chart, all series must use the standard\n[number, number, number...]");
821
871
  });
822
- function $a(e, t) {
872
+ function po(e, t) {
823
873
  return e && typeof e == "object" && e.x === null && e.y === null ? {
824
874
  x: null,
825
875
  y: null,
@@ -834,54 +884,54 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
834
884
  isNull: !1
835
885
  };
836
886
  }
837
- function eo(e) {
838
- return q.value ? e.y : e;
887
+ function mo(e) {
888
+ return K.value ? e.y : e;
839
889
  }
840
- let to = b(() => !Ni.value && !q.value ? H.value : H.value.map((e, t) => {
841
- let n = q.value ? e.series : Ma(e.series), r = `uniqueId_${t}`;
890
+ let ho = b(() => !Gi.value && !K.value ? H.value : H.value.map((e, t) => {
891
+ let n = K.value ? e.series : Wa(e.series), r = `uniqueId_${t}`;
842
892
  return {
843
893
  ...e,
844
894
  slotAbsoluteIndex: t,
845
- series: q.value ? n.map((e, t) => $a(e, t)).filter((e) => e.x >= W.value.start && e.x <= W.value.end) : n.map((e) => ve(e) ? e : null).slice(W.value.start, W.value.end),
846
- color: De(e.color ? e.color : Ha.value[t] ? Ha.value[t] : a[t]),
895
+ series: K.value ? n.map((e, t) => po(e, t)).filter((e) => e.x >= W.value.start && e.x <= W.value.end) : n.map((e) => ve(e) ? e : null).slice(W.value.start, W.value.end),
896
+ color: De(e.color ? e.color : to.value[t] ? to.value[t] : a[t]),
847
897
  id: r,
848
898
  scaleLabel: e.scaleLabel || r
849
899
  };
850
- })), no = b(() => to.value.map((e, t) => ({
900
+ })), go = b(() => ho.value.map((e, t) => ({
851
901
  absoluteIndex: t,
852
902
  ...e,
853
- series: q.value ? e.series.map((e) => ({
903
+ series: K.value ? e.series.map((e) => ({
854
904
  ...e,
855
- y: e.y === null ? null : e.y + Za.value
856
- })) : e.series.map((e) => e + Za.value),
857
- absoluteValues: q.value ? e.series.map((e) => e.y) : e.series,
858
- segregate: () => ks(e),
905
+ y: e.y === null ? null : e.y + uo.value
906
+ })) : e.series.map((e) => e + uo.value),
907
+ absoluteValues: K.value ? e.series.map((e) => e.y) : e.series,
908
+ segregate: () => Hs(e),
859
909
  isSegregated: P.value.includes(e.id)
860
- }))), ro = b(() => to.value.map((e) => ({
910
+ }))), _o = b(() => ho.value.map((e) => ({
861
911
  ...e,
862
- series: q.value ? e.series.map((e) => ({
912
+ series: K.value ? e.series.map((e) => ({
863
913
  ...e,
864
- y: e.y === null ? null : e.y + Za.value
865
- })) : e.series.map((e) => e + Za.value),
866
- absoluteValues: q.value ? e.series.map((e) => e.y) : e.series
867
- })).filter((e) => !P.value.includes(e.id))), io = b(() => P.value.length === no.value.length), J = b(() => B.value.chart.grid.labels.yAxis.position === "right");
868
- function ao() {
914
+ y: e.y === null ? null : e.y + uo.value
915
+ })) : e.series.map((e) => e + uo.value),
916
+ absoluteValues: K.value ? e.series.map((e) => e.y) : e.series
917
+ })).filter((e) => !P.value.includes(e.id))), vo = b(() => P.value.length === go.value.length), q = b(() => B.value.chart.grid.labels.yAxis.position === "right");
918
+ function yo() {
869
919
  let e = 0;
870
- Oi.value && (e = Array.from(Oi.value.querySelectorAll("text")).reduce((e, t) => {
920
+ Bi.value && (e = Array.from(Bi.value.querySelectorAll("text")).reduce((e, t) => {
871
921
  let n = t.getComputedTextLength();
872
922
  return n > e ? n : e;
873
923
  }, 0));
874
- let t = Ei.value ? Ei.value.getBoundingClientRect().width + B.value.chart.grid.labels.axis.yLabelOffsetX + z.value.yAxis : 0, n = e + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + B.value.chart.grid.labels.yAxis.crosshairSize;
924
+ let t = Ri.value ? Ri.value.getBoundingClientRect().width + B.value.chart.grid.labels.axis.yLabelOffsetX + z.value.yAxis : 0, n = e + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + B.value.chart.grid.labels.yAxis.crosshairSize;
875
925
  return {
876
- left: J.value ? 0 : n + t,
877
- right: J.value ? n + t : 0,
926
+ left: q.value ? 0 : n + t,
927
+ right: q.value ? n + t : 0,
878
928
  scaleLabelsOffset: n,
879
929
  yAxisLabelWidth: t
880
930
  };
881
931
  }
882
- function oo(e) {
883
- let t = ro.value.filter((e) => ["line", "plot"].includes(e.type)).flatMap((t) => t.series.map((n, r) => {
884
- let i = dc(n);
932
+ function bo(e) {
933
+ let t = _o.value.filter((e) => ["line", "plot"].includes(e.type)).flatMap((t) => t.series.map((n, r) => {
934
+ let i = wc(n);
885
935
  return {
886
936
  datapoint: t,
887
937
  point: n,
@@ -892,11 +942,11 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
892
942
  };
893
943
  })).filter((e) => g(e.point?.x) && g(e.point?.y)).reduce((e, t) => !e || t.distance < e.distance ? t : e, null);
894
944
  if (!t) {
895
- ms.value = [], hs.value = null, na.value = null;
945
+ Ds.value = [], Os.value = null, ma.value = null;
896
946
  return;
897
947
  }
898
948
  let n = Number(t.point.x);
899
- ms.value = ro.value.filter((e) => ["line", "plot"].includes(e.type)).map((e) => {
949
+ Ds.value = _o.value.filter((e) => ["line", "plot"].includes(e.type)).map((e) => {
900
950
  let t = e.series.findIndex((e) => Number(e.x) === n && g(e.y));
901
951
  if (t === -1) return null;
902
952
  let r = e.series[t];
@@ -904,66 +954,66 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
904
954
  datapoint: e,
905
955
  point: r,
906
956
  index: t,
907
- x: dc(r),
957
+ x: wc(r),
908
958
  y: r.y,
909
959
  distance: 0
910
960
  };
911
- }).filter(Boolean), hs.value = dc({ x: n }), na.value = n;
961
+ }).filter(Boolean), Os.value = wc({ x: n }), ma.value = n;
912
962
  }
913
- function so(e) {
963
+ function xo(e) {
914
964
  if (!Number.isFinite(Number(e))) {
915
- ms.value = [], hs.value = null;
965
+ Ds.value = [], Os.value = null;
916
966
  return;
917
967
  }
918
- let t = dc({ x: Number(e) });
919
- oo(t), hs.value = t;
968
+ let t = wc({ x: Number(e) });
969
+ bo(t), Os.value = t;
920
970
  }
921
- let co = E(0), lo = E(0);
922
- function uo() {
923
- let e = Di.value;
971
+ let So = E(0), Co = E(0);
972
+ function wo() {
973
+ let e = zi.value;
924
974
  if (!e) {
925
- co.value = 0, lo.value = 0;
975
+ So.value = 0, Co.value = 0;
926
976
  return;
927
977
  }
928
978
  try {
929
979
  let t = e.getBBox();
930
- co.value = t?.height ?? 0, lo.value = t?.x ?? 0;
980
+ So.value = t?.height ?? 0, Co.value = t?.x ?? 0;
931
981
  } catch {
932
- co.value = 0, lo.value = 0;
982
+ So.value = 0, Co.value = 0;
933
983
  }
934
984
  }
935
- let fo = b(() => {
985
+ let To = b(() => {
936
986
  let e = 0;
937
- if (Ti.value) try {
938
- e = Ti.value.getBBox().height || 0;
987
+ if (Li.value) try {
988
+ e = Li.value.getBBox().height || 0;
939
989
  } catch {
940
990
  e = 0;
941
991
  }
942
- return e + co.value + z.value.xAxis;
943
- }), po = b(() => H.value.some((e) => e.useProgression));
944
- function mo() {
992
+ return e + So.value + z.value.xAxis;
993
+ }), Eo = b(() => H.value.some((e) => e.useProgression));
994
+ function Do() {
945
995
  return B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + B.value.chart.grid.labels.yAxis.labelWidth + B.value.chart.grid.labels.axis.yLabelOffsetX + z.value.dataLabels * .8;
946
996
  }
947
- let Y = b(() => {
948
- sa.value;
997
+ let J = b(() => {
998
+ ya.value;
949
999
  let e = 0, t = 0, n = 0, r = 0;
950
- if (B.value.chart.grid.labels.show) if (V.value.useIndividualScale && !V.value.isStacked) J.value ? t = (H.value.length - P.value.length) * mo() : e = (H.value.length - P.value.length) * (B.value.chart.grid.labels.yAxis.labelWidth + 36);
1000
+ if (B.value.chart.grid.labels.show) if (V.value.useIndividualScale && !V.value.isStacked) q.value ? t = (H.value.length - P.value.length) * Do() : e = (H.value.length - P.value.length) * (B.value.chart.grid.labels.yAxis.labelWidth + 36);
951
1001
  else if (V.value.useIndividualScale && V.value.isStacked) {
952
1002
  let n = B.value.chart.grid.labels.yAxis.labelWidth + 36;
953
- J.value ? t = n : e = n;
1003
+ q.value ? t = n : e = n;
954
1004
  } else {
955
- let i = ao();
1005
+ let i = yo();
956
1006
  e = i.left, t = i.right, n = i.scaleLabelsOffset, r = i.yAxisLabelWidth;
957
1007
  }
958
- let i = B.value.chart.labels.fontSize * 1.1, a = po.value ? 24 : 6;
959
- Di.value && lo.value < 0 && (e += Math.abs(lo.value));
1008
+ let i = B.value.chart.labels.fontSize * 1.1, a = Eo.value ? 24 : 6;
1009
+ zi.value && Co.value < 0 && (e += Math.abs(Co.value));
960
1010
  let o = N.value - e - t - a - B.value.chart.padding?.left - B.value.chart.padding?.right;
961
1011
  return {
962
1012
  top: B.value.chart.padding?.top + i,
963
- right: e + (J.value ? 0 : B.value.chart.grid.labels.yAxis.crosshairSize) + B.value.chart.padding?.left + o,
964
- bottom: Pi.value - fo.value - B.value.chart.padding?.bottom - B.value.chart.grid.labels.axis.xLabelOffsetY,
965
- left: e + (J.value ? 0 : B.value.chart.grid.labels.yAxis.crosshairSize) + B.value.chart.padding?.left,
966
- height: Pi.value - fo.value - B.value.chart.padding?.top - B.value.chart.padding?.bottom - i - B.value.chart.grid.labels.axis.xLabelOffsetY,
1013
+ right: e + (q.value ? 0 : B.value.chart.grid.labels.yAxis.crosshairSize) + B.value.chart.padding?.left + o,
1014
+ bottom: Ki.value - To.value - B.value.chart.padding?.bottom - B.value.chart.grid.labels.axis.xLabelOffsetY,
1015
+ left: e + (q.value ? 0 : B.value.chart.grid.labels.yAxis.crosshairSize) + B.value.chart.padding?.left,
1016
+ height: Ki.value - To.value - B.value.chart.padding?.top - B.value.chart.padding?.bottom - i - B.value.chart.grid.labels.axis.xLabelOffsetY,
967
1017
  width: o,
968
1018
  scaleLabelX: e,
969
1019
  rightScaleLabelX: t,
@@ -971,48 +1021,48 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
971
1021
  yAxisLabelWidth: r,
972
1022
  individualOffsetX: 36
973
1023
  };
974
- }), ho = b(() => {
975
- let e = +(B.value.chart.grid.position === "middle"), t = Z.value + e, n = h(Y.value?.top), r = h(Y.value?.bottom);
976
- return q.value ? B.value.chart.grid.position === "middle" ? lc.value.map((e, t, i) => {
1024
+ }), Oo = b(() => {
1025
+ let e = +(B.value.chart.grid.position === "middle"), t = X.value + e, n = h(J.value?.top), r = h(J.value?.bottom);
1026
+ return K.value ? B.value.chart.grid.position === "middle" ? Sc.value.map((e, t, i) => {
977
1027
  if (t === 0) return null;
978
1028
  let a = i[t - 1], o = a.x + (e.x - a.x) / 2;
979
1029
  return `M${o},${n} L${o},${r}`;
980
- }).filter(Boolean).join(" ") : lc.value.map((e) => `M${e.x},${n} L${e.x},${r}`).join(" ") : Array.from({ length: t }).map((e, t) => {
981
- let i = B.value.chart.grid.position === "middle" ? Us(t) : Hs(t);
1030
+ }).filter(Boolean).join(" ") : Sc.value.map((e) => `M${e.x},${n} L${e.x},${r}`).join(" ") : Array.from({ length: t }).map((e, t) => {
1031
+ let i = B.value.chart.grid.position === "middle" ? nc(t) : tc(t);
982
1032
  return `M${i},${n} L${i},${r}`;
983
1033
  }).join(" ");
984
- }), go = b(() => {
1034
+ }), ko = b(() => {
985
1035
  if (!B.value.chart.grid.labels.xAxis.showCrosshairs) return "";
986
1036
  let e = B.value.chart.grid.labels.xAxis.crosshairSize, t = B.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
987
- return (q.value ? lc.value : Oo.value).map((n, r) => {
1037
+ return (K.value ? Sc.value : Vo.value).map((n, r) => {
988
1038
  if (!n || !n.text) return null;
989
- let i = q.value ? n.x : Hs(r);
990
- return `M${i},${t ? rs.value - (rs.value === Y.value?.bottom ? 0 : e / 2) : Y.value?.bottom} L${i},${t ? rs.value + e / (rs.value === Y.value?.bottom ? 1 : 2) : Y.value?.bottom + e}`;
1039
+ let i = K.value ? n.x : tc(r);
1040
+ return `M${i},${t ? gs.value - (gs.value === J.value?.bottom ? 0 : e / 2) : J.value?.bottom} L${i},${t ? gs.value + e / (gs.value === J.value?.bottom ? 1 : 2) : J.value?.bottom + e}`;
991
1041
  }).filter(Boolean).join(" ");
992
1042
  });
993
- function _o() {
994
- return !!mi?.vnode.props?.onSelectTimeLabel;
1043
+ function Ao() {
1044
+ return !!Ei?.vnode.props?.onSelectTimeLabel;
995
1045
  }
996
- function vo(e, t, n) {
997
- return Zi.value ||= document.createElement("canvas").getContext("2d"), Zi.value.font = `${n || "normal"} ${e}px ${t || "sans-serif"}`, Zi.value;
1046
+ function jo(e, t, n) {
1047
+ return la.value ||= document.createElement("canvas").getContext("2d"), la.value.font = `${n || "normal"} ${e}px ${t || "sans-serif"}`, la.value;
998
1048
  }
999
- function yo() {
1000
- let e = vi.value.querySelectorAll(".vue-ui-xy-tag");
1049
+ function Mo() {
1050
+ let e = Ai.value.querySelectorAll(".vue-ui-xy-tag");
1001
1051
  e.length && Array.from(e).forEach((e) => e.style.opacity = "0");
1002
1052
  }
1003
- function bo(e, t, n, r, i) {
1004
- n && (Xi.value[`${e}_${t}_${r}_${i}`] = n);
1053
+ function No(e, t, n, r, i) {
1054
+ n && (ca.value[`${e}_${t}_${r}_${i}`] = n);
1005
1055
  }
1006
- let xo = E(!1);
1007
- async function So(e = !1) {
1008
- await ot(), xo.value = e, qi.value && (Yi.value = e);
1056
+ let Po = E(!1);
1057
+ async function Fo(e = !1) {
1058
+ await ot(), Po.value = e, aa.value && (sa.value = e);
1009
1059
  }
1010
- function Co() {
1011
- Ri.value = !Ri.value;
1060
+ function Io() {
1061
+ Xi.value = !Xi.value;
1012
1062
  }
1013
- let X = E([]), wo = E([]), To = 0;
1063
+ let Y = E([]), Lo = E([]), Ro = 0;
1014
1064
  vt(() => {
1015
- let e = ++To;
1065
+ let e = ++Ro;
1016
1066
  (async () => {
1017
1067
  let t = Math.max(...H.value.map((e) => we({
1018
1068
  data: e.series,
@@ -1024,12 +1074,12 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1024
1074
  start: W.value.start,
1025
1075
  end: W.value.end
1026
1076
  });
1027
- e === To && (X.value = n);
1077
+ e === Ro && (Y.value = n);
1028
1078
  })();
1029
1079
  });
1030
- let Eo = 0;
1080
+ let zo = 0;
1031
1081
  vt(() => {
1032
- let e = ++Eo;
1082
+ let e = ++zo;
1033
1083
  (async () => {
1034
1084
  let t = Math.max(...H.value.map((e) => we({
1035
1085
  data: e.series,
@@ -1041,36 +1091,36 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1041
1091
  start: 0,
1042
1092
  end: U.value
1043
1093
  });
1044
- e === Eo && (wo.value = n);
1094
+ e === zo && (Lo.value = n);
1045
1095
  })();
1046
1096
  });
1047
- let Do = b(() => {
1097
+ let Bo = b(() => {
1048
1098
  let e = B.value.chart.grid.labels.xAxisLabels.modulo;
1049
- return X.value.length ? Math.min(e, [...new Set(X.value.map((e) => e.text))].length) : e;
1050
- }), Oo = b(() => {
1051
- let e = B.value.chart.grid.labels.xAxisLabels, t = X.value || [], n = wo.value || [], r = W.value.start ?? 0, i = R.value, a = Z.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
1052
- return Ce(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Do.value || 1), o, s, r, i, a);
1053
- }), ko = b(() => (Oo.value || []).map((e) => e?.text ?? "").join("|"));
1099
+ return Y.value.length ? Math.min(e, [...new Set(Y.value.map((e) => e.text))].length) : e;
1100
+ }), Vo = b(() => {
1101
+ let e = B.value.chart.grid.labels.xAxisLabels, t = Y.value || [], n = Lo.value || [], r = W.value.start ?? 0, i = R.value, a = X.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
1102
+ return Ce(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Bo.value || 1), o, s, r, i, a);
1103
+ }), Ho = b(() => (Vo.value || []).map((e) => e?.text ?? "").join("|"));
1054
1104
  ut(() => {
1055
1105
  requestAnimationFrame(() => {
1056
- uo();
1106
+ wo();
1057
1107
  }), _t([
1058
- () => ko.value,
1108
+ () => Ho.value,
1059
1109
  () => B.value.chart.grid.labels.xAxisLabels.rotation,
1060
1110
  () => z.value.xAxis,
1061
1111
  () => N.value,
1062
- () => Pi.value
1112
+ () => Ki.value
1063
1113
  ], async () => {
1064
1114
  await ot(), requestAnimationFrame(() => {
1065
- uo();
1115
+ wo();
1066
1116
  });
1067
1117
  }, { flush: "post" });
1068
1118
  }), lt(() => {
1069
- co.value = 0, lo.value = 0, la.stop();
1119
+ So.value = 0, Co.value = 0, xa.stop();
1070
1120
  });
1071
- function Ao(e, t) {
1072
- fi("selectTimeLabel", {
1073
- datapoint: ro.value.map((e) => ({
1121
+ function Uo(e, t) {
1122
+ wi("selectTimeLabel", {
1123
+ datapoint: _o.value.map((e) => ({
1074
1124
  shape: e.shape ?? e.type === "bar" ? "square" : "circle",
1075
1125
  name: e.name,
1076
1126
  color: e.color,
@@ -1084,94 +1134,94 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1084
1134
  label: e.text
1085
1135
  });
1086
1136
  }
1087
- let Z = b(() => {
1088
- let e = ma((W.value.end ?? 0) - (W.value.start ?? 0));
1137
+ let X = b(() => {
1138
+ let e = Ea((W.value.end ?? 0) - (W.value.start ?? 0));
1089
1139
  return Math.max(1, e);
1090
1140
  });
1091
- function jo(e) {
1092
- q.value || (I.value = e);
1141
+ function Wo(e) {
1142
+ K.value || (I.value = e);
1093
1143
  }
1094
- function Mo(e) {
1095
- if (!q.value || !g(e)) {
1096
- na.value = null, ms.value = [], hs.value = null;
1144
+ function Go(e) {
1145
+ if (!K.value || !g(e)) {
1146
+ ma.value = null, Ds.value = [], Os.value = null;
1097
1147
  return;
1098
1148
  }
1099
- na.value = Number(e), so(Number(e));
1149
+ ma.value = Number(e), xo(Number(e));
1100
1150
  }
1101
- let No = b(() => q.value ? g(na.value) || g(hs.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value));
1102
- function Po() {
1151
+ let Ko = b(() => K.value ? g(ma.value) || g(Os.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value));
1152
+ function qo() {
1103
1153
  V.value.isStacked = !V.value.isStacked, V.value.isStacked ? V.value.useIndividualScale = !0 : V.value.useIndividualScale = B.value.chart.grid.labels.yAxis.useIndividualScale;
1104
1154
  }
1105
- function Fo(e) {
1106
- Ta.value && e.autoScaling && (B.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), B.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
1155
+ function Jo(e) {
1156
+ La.value && e.autoScaling && (B.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), B.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
1107
1157
  }
1108
- function Io(e, t) {
1109
- let n = ma(e), r = Array(n).fill(0);
1158
+ function Yo(e, t) {
1159
+ let n = Ea(e), r = Array(n).fill(0);
1110
1160
  for (let e = 0; e < t.length && e < n; e += 1) r[e] = t[e] ?? 0;
1111
1161
  return r;
1112
1162
  }
1113
- function Lo(e) {
1114
- let t = Math.max(...H.value.map((e) => Ma(e.series).length));
1163
+ function Xo(e) {
1164
+ let t = Math.max(...H.value.map((e) => Wa(e.series).length));
1115
1165
  return e > t ? t : e < 0 || B.value.chart.zoom.startIndex !== null && e < B.value.chart.zoom.startIndex ? B.value.chart.zoom.startIndex === null ? 1 : B.value.chart.zoom.startIndex + 1 : e;
1116
1166
  }
1117
- let Ro = E(!1), zo = E(!1), Bo = E(0), Vo = E(0);
1118
- function Ho(e, t) {
1167
+ let Zo = E(!1), Qo = E(!1), $o = E(0), es = E(0);
1168
+ function ts(e, t) {
1119
1169
  let n = Number(e), r = Number(t);
1120
1170
  return !Number.isFinite(n) || !Number.isFinite(r) ? !1 : !Object.is(n, r);
1121
1171
  }
1122
- function Uo() {
1123
- if (!Ro.value) {
1124
- Ro.value = !0;
1172
+ function ns() {
1173
+ if (!Zo.value) {
1174
+ Zo.value = !0;
1125
1175
  try {
1126
- if (q.value) {
1127
- let e = fc.value.min, t = fc.value.max;
1128
- Bo.value = e, Vo.value = t, W.value.start = e, W.value.end = t, G.value.start = e, G.value.end = t, zo.value = !0, bi.value && (bi.value.setStartValue(e), bi.value.setEndValue(t));
1176
+ if (K.value) {
1177
+ let e = Tc.value.min, t = Tc.value.max;
1178
+ $o.value = e, es.value = t, W.value.start = e, W.value.end = t, Ga.value.start = e, Ga.value.end = t, Qo.value = !0, Mi.value && (Mi.value.setStartValue(e), Mi.value.setEndValue(t));
1129
1179
  return;
1130
1180
  }
1131
- let { startIndex: e, endIndex: t } = B.value.chart.zoom, n = B.value.chart.zoom.keepState ? Math.max(0, ...H.value.map((e) => Ma(e.series).length)) : Math.max(...H.value.map((e) => Ma(e.series).length));
1181
+ let { startIndex: e, endIndex: t } = B.value.chart.zoom, n = B.value.chart.zoom.keepState ? Math.max(0, ...H.value.map((e) => Wa(e.series).length)) : Math.max(...H.value.map((e) => Wa(e.series).length));
1132
1182
  if (B.value.chart.zoom.keepState && n <= 0) return;
1133
- Bo.value = 0, Vo.value = n;
1134
- let r = e ?? 0, i = t == null ? n : Math.min(Lo(t + 1), n);
1135
- Wo.value = !0, W.value.start = r, W.value.end = i, G.value.start = r, G.value.end = i, Fa(), zo.value = !0;
1183
+ $o.value = 0, es.value = n;
1184
+ let r = e ?? 0, i = t == null ? n : Math.min(Xo(t + 1), n);
1185
+ rs.value = !0, W.value.start = r, W.value.end = i, Ga.value.start = r, Ga.value.end = i, Ja(), Qo.value = !0;
1136
1186
  } finally {
1137
1187
  queueMicrotask(() => {
1138
- Wo.value = !1;
1139
- }), Ro.value = !1;
1188
+ rs.value = !1;
1189
+ }), Zo.value = !1;
1140
1190
  }
1141
1191
  }
1142
1192
  }
1143
- let Wo = E(!1);
1144
- function Go(e) {
1145
- if (Ro.value || Wo.value) return;
1193
+ let rs = E(!1);
1194
+ function is(e) {
1195
+ if (Zo.value || rs.value) return;
1146
1196
  let t = Number(e);
1147
- fi("zoomStart", {
1197
+ wi("zoomStart", {
1148
1198
  index: t,
1149
- isZoom: Ho(t, Bo.value)
1150
- }), Number.isFinite(t) && t !== W.value.start && (W.value.start = t, G.value.start = t, Fa());
1199
+ isZoom: ts(t, $o.value)
1200
+ }), Number.isFinite(t) && t !== W.value.start && (W.value.start = t, Ga.value.start = t, Ja());
1151
1201
  }
1152
- function Ko(e) {
1153
- if (Ro.value || Wo.value) return;
1154
- if (q.value) {
1202
+ function as(e) {
1203
+ if (Zo.value || rs.value) return;
1204
+ if (K.value) {
1155
1205
  let t = Number(e);
1156
1206
  if (!Number.isFinite(t)) return;
1157
- let n = Math.max(Number(W.value.start) + 1 / 10 ** B.value.chart.grid.labels.xAxis.rounding, Math.min(t, fc.value.max));
1158
- if (fi("zoomEnd", {
1207
+ let n = Math.max(Number(W.value.start) + 1 / 10 ** B.value.chart.grid.labels.xAxis.rounding, Math.min(t, Tc.value.max));
1208
+ if (wi("zoomEnd", {
1159
1209
  index: n,
1160
- isZoom: Ho(n, Vo.value)
1210
+ isZoom: ts(n, es.value)
1161
1211
  }), n === W.value.end) return;
1162
- W.value.end = n, G.value.end = n, Fa();
1212
+ W.value.end = n, Ga.value.end = n, Ja();
1163
1213
  return;
1164
1214
  }
1165
- let t = Lo(e);
1166
- fi("zoomEnd", {
1215
+ let t = Xo(e);
1216
+ wi("zoomEnd", {
1167
1217
  index: t,
1168
- isZoom: Ho(t, Vo.value)
1169
- }), t !== W.value.end && (W.value.end = t, G.value.end = t, Fa());
1218
+ isZoom: ts(t, es.value)
1219
+ }), t !== W.value.end && (W.value.end = t, Ga.value.end = t, Ja());
1170
1220
  }
1171
- async function qo() {
1172
- await Uo(), fi("zoomReset");
1221
+ async function os() {
1222
+ await ns(), wi("zoomReset");
1173
1223
  }
1174
- function Jo(e) {
1224
+ function ss(e) {
1175
1225
  return ![
1176
1226
  null,
1177
1227
  void 0,
@@ -1180,66 +1230,66 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1180
1230
  -Infinity
1181
1231
  ].includes(e);
1182
1232
  }
1183
- let Yo = b(() => K.value.max + Za.value);
1184
- function Xo(e) {
1185
- return e / (Jo(Yo.value) ? Yo.value : 1);
1233
+ let cs = b(() => G.value.max + uo.value);
1234
+ function ls(e) {
1235
+ return e / (ss(cs.value) ? cs.value : 1);
1186
1236
  }
1187
- let Zo = b(() => B.value.chart.grid.labels.yAxis.reverse);
1188
- function Qo(e) {
1189
- return Zo.value ? 1 - e : e;
1237
+ let us = b(() => B.value.chart.grid.labels.yAxis.reverse);
1238
+ function ds(e) {
1239
+ return us.value ? 1 - e : e;
1190
1240
  }
1191
- function $o({ ratio: e, yOffset: t = 0, individualHeight: n }) {
1192
- let r = Qo(e);
1193
- return Y.value?.bottom - t - n * r;
1241
+ function fs({ ratio: e, yOffset: t = 0, individualHeight: n }) {
1242
+ let r = ds(e);
1243
+ return J.value?.bottom - t - n * r;
1194
1244
  }
1195
- function es({ value: e, scaleMin: t, scaleMax: n, yOffset: r = 0, individualHeight: i }) {
1196
- return $o({
1245
+ function ps({ value: e, scaleMin: t, scaleMax: n, yOffset: r = 0, individualHeight: i }) {
1246
+ return fs({
1197
1247
  ratio: (e - t) / (n - t || 1),
1198
1248
  yOffset: r,
1199
1249
  individualHeight: i
1200
1250
  });
1201
1251
  }
1202
- let ts = b(() => B.value.chart.grid.labels.xAxis.reverse);
1203
- function ns(e) {
1204
- return ts.value ? 1 - e : e;
1252
+ let ms = b(() => B.value.chart.grid.labels.xAxis.reverse);
1253
+ function hs(e) {
1254
+ return ms.value ? 1 - e : e;
1205
1255
  }
1206
- let rs = b(() => isNaN(Xo(Za.value)) ? Y.value?.bottom : Y.value?.bottom - Y.value.height * Xo(Za.value));
1207
- function is(e) {
1208
- let t = K.value.min, n = K.value.max - t;
1209
- return !Number.isFinite(e) || !Number.isFinite(n) || n === 0 ? Y.value?.bottom : Y.value?.bottom - Y.value.height * ((e - t) / n);
1256
+ let gs = b(() => isNaN(ls(uo.value)) ? J.value?.bottom : J.value?.bottom - J.value.height * ls(uo.value));
1257
+ function _s(e) {
1258
+ let t = G.value.min, n = G.value.max - t;
1259
+ return !Number.isFinite(e) || !Number.isFinite(n) || n === 0 ? J.value?.bottom : J.value?.bottom - J.value.height * ((e - t) / n);
1210
1260
  }
1211
- let as = b(() => K.value.min <= 0 && K.value.max >= 0 ? is(0) : K.value.min > 0 ? is(K.value.min) : is(K.value.max));
1212
- function os(e) {
1213
- let t = ![null, void 0].includes(B.value.chart.grid.labels.yAxis.scaleMin) && B.value.chart.grid.labels.yAxis.scaleMin > 0 && Ya.value >= 0 ? Y.value?.bottom : rs.value;
1214
- return e.value >= 0 ? v(t - e.y <= 0 ? 1e-5 : t - e.y) : v(e.y - rs.value <= 0 ? 1e-5 : e.y - rs.value);
1261
+ let vs = b(() => G.value.min <= 0 && G.value.max >= 0 ? _s(0) : G.value.min > 0 ? _s(G.value.min) : _s(G.value.max));
1262
+ function ys(e) {
1263
+ let t = ![null, void 0].includes(B.value.chart.grid.labels.yAxis.scaleMin) && B.value.chart.grid.labels.yAxis.scaleMin > 0 && co.value >= 0 ? J.value?.bottom : gs.value;
1264
+ return e.value >= 0 ? v(t - e.y <= 0 ? 1e-5 : t - e.y) : v(e.y - gs.value <= 0 ? 1e-5 : e.y - gs.value);
1215
1265
  }
1216
- function ss(e) {
1266
+ function bs(e) {
1217
1267
  return e.value >= 0 ? v(e.zeroPosition - e.y <= 0 ? 1e-5 : e.zeroPosition - e.y) : v(e.y - e.zeroPosition <= 0 ? 1e-5 : e.zeroPosition - e.y);
1218
1268
  }
1219
- let cs = b(() => {
1220
- let e = Math.max(1, Z.value);
1269
+ let xs = b(() => {
1270
+ let e = Math.max(1, X.value);
1221
1271
  return {
1222
- bar: ha(Math.max(1, Y.value.width), e * Math.max(1, to.value.filter((e) => e.type === "bar" && !P.value.includes(e.id)).length), 1),
1223
- plot: Bs.value,
1224
- line: Bs.value
1272
+ bar: Da(Math.max(1, J.value.width), e * Math.max(1, ho.value.filter((e) => e.type === "bar" && !P.value.includes(e.id)).length), 1),
1273
+ plot: $s.value,
1274
+ line: $s.value
1225
1275
  };
1226
1276
  });
1227
- function ls() {
1228
- return V.value.useIndividualScale && V.value.isStacked ? cs.value.line - Y.value.width / Z.value * .1 : cs.value.bar;
1277
+ function Ss() {
1278
+ return V.value.useIndividualScale && V.value.isStacked ? xs.value.line - J.value.width / X.value * .1 : xs.value.bar;
1229
1279
  }
1230
- function us(e) {
1231
- return V.value.useIndividualScale && V.value.isStacked ? e.x + Y.value.width / Z.value * .05 : e.x + cs.value.bar / 2;
1280
+ function Cs(e) {
1281
+ return V.value.useIndividualScale && V.value.isStacked ? e.x + J.value.width / X.value * .05 : e.x + xs.value.bar / 2;
1232
1282
  }
1233
- function ds(e) {
1283
+ function ws(e) {
1234
1284
  return e.value >= 0 ? e.y : [
1235
1285
  null,
1236
1286
  void 0,
1237
1287
  NaN,
1238
1288
  Infinity,
1239
1289
  -Infinity
1240
- ].includes(rs.value) ? Y?.bottom.value : rs.value;
1290
+ ].includes(gs.value) ? J?.bottom.value : gs.value;
1241
1291
  }
1242
- function fs(e) {
1292
+ function Ts(e) {
1243
1293
  return e.value >= 0 ? e.y : [
1244
1294
  null,
1245
1295
  void 0,
@@ -1248,18 +1298,18 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1248
1298
  -Infinity
1249
1299
  ].includes(e.zeroPosition) ? 0 : e.zeroPosition;
1250
1300
  }
1251
- let ps = E(null), ms = E([]), hs = E(null), gs = b(() => q.value ? [...new Set(ro.value.flatMap((e) => e.series || []).filter((e) => g(e?.x) && g(e?.y)).map((e) => Number(e.x)))].sort((e, t) => dc({ x: e }) - dc({ x: t })) : []);
1252
- function _s(e) {
1253
- let t = gs.value[e];
1301
+ let Es = E(null), Ds = E([]), Os = E(null), ks = b(() => K.value ? [...new Set(_o.value.flatMap((e) => e.series || []).filter((e) => g(e?.x) && g(e?.y)).map((e) => Number(e.x)))].sort((e, t) => wc({ x: e }) - wc({ x: t })) : []);
1302
+ function As(e) {
1303
+ let t = ks.value[e];
1254
1304
  if (!g(t)) {
1255
- ms.value = [], hs.value = null, na.value = null, Bi.value = !1;
1305
+ Ds.value = [], Os.value = null, ma.value = null, Qi.value = !1;
1256
1306
  return;
1257
1307
  }
1258
- so(Number(t));
1259
- let n = d(dc({ x: Number(t) }), Y.value.top + Y.value.height / 2, L.value);
1260
- n && (ia.value = n), R.value = e, ra.value = e, Bi.value = !0;
1308
+ xo(Number(t));
1309
+ let n = d(wc({ x: Number(t) }), J.value.top + J.value.height / 2, L.value);
1310
+ n && (ga.value = n), R.value = e, ha.value = e, Qi.value = !0;
1261
1311
  }
1262
- function vs(e) {
1312
+ function js(e) {
1263
1313
  let t = L.value;
1264
1314
  if (!t) return null;
1265
1315
  if (t.createSVGPoint && t.getScreenCTM) {
@@ -1287,47 +1337,47 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1287
1337
  ok: !0
1288
1338
  };
1289
1339
  }
1290
- let ys = 0;
1291
- function bs(e) {
1292
- ra.value = null, !Ri.value && (ys && cancelAnimationFrame(ys), ys = requestAnimationFrame(() => {
1293
- ys = 0;
1294
- let t = vs(e);
1340
+ let Ms = 0;
1341
+ function Ns(e) {
1342
+ ha.value = null, !Xi.value && (Ms && cancelAnimationFrame(Ms), Ms = requestAnimationFrame(() => {
1343
+ Ms = 0;
1344
+ let t = js(e);
1295
1345
  if (!t || !L.value) {
1296
- xs();
1346
+ Ps();
1297
1347
  return;
1298
1348
  }
1299
- let { left: n, right: r, top: i, bottom: a, width: o } = Y.value;
1349
+ let { left: n, right: r, top: i, bottom: a, width: o } = J.value;
1300
1350
  if (t.x < n || t.x > r || t.y < i || t.y > a) {
1301
- xs();
1351
+ Ps();
1302
1352
  return;
1303
1353
  }
1304
- if (q.value) {
1305
- oo(t.x), Ac(!0, R.value ?? 0);
1354
+ if (K.value) {
1355
+ bo(t.x), Hc(!0, R.value ?? 0);
1306
1356
  return;
1307
1357
  }
1308
- let s = Ks(t.x);
1309
- s == null ? xs() : ps.value !== s && (ps.value = s, Ac(!0, s));
1358
+ let s = ac(t.x);
1359
+ s == null ? Ps() : Es.value !== s && (Es.value = s, Hc(!0, s));
1310
1360
  }));
1311
1361
  }
1312
- function xs() {
1313
- ys &&= (cancelAnimationFrame(ys), 0), ps.value = null, Ac(!1, null), ms.value = [], hs.value = null, na.value = null;
1362
+ function Ps() {
1363
+ Ms &&= (cancelAnimationFrame(Ms), 0), Es.value = null, Hc(!1, null), Ds.value = [], Os.value = null, ma.value = null;
1314
1364
  }
1315
- function Ss(e) {
1316
- let t = vs(e);
1365
+ function Fs(e) {
1366
+ let t = js(e);
1317
1367
  if (t && L.value) {
1318
- let { left: e, right: n, top: r, bottom: i, width: a } = Y.value;
1368
+ let { left: e, right: n, top: r, bottom: i, width: a } = J.value;
1319
1369
  if (t.x >= e && t.x <= n && t.y >= r && t.y <= i) {
1320
- let e = Ks(t.x);
1370
+ let e = ac(t.x);
1321
1371
  if (e != null) {
1322
- Cs(e);
1372
+ Is(e);
1323
1373
  return;
1324
1374
  }
1325
1375
  }
1326
1376
  }
1327
- ps.value != null && Cs(ps.value);
1377
+ Es.value != null && Is(Es.value);
1328
1378
  }
1329
- function Cs(e) {
1330
- let t = ro.value.map((t) => ({
1379
+ function Is(e) {
1380
+ let t = _o.value.map((t) => ({
1331
1381
  name: t.name,
1332
1382
  value: [
1333
1383
  null,
@@ -1337,7 +1387,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1337
1387
  color: t.color,
1338
1388
  type: t.type
1339
1389
  }));
1340
- fi("selectX", {
1390
+ wi("selectX", {
1341
1391
  dataset: t,
1342
1392
  index: e,
1343
1393
  indexLabel: B.value.chart.grid.labels.xAxisLabels.values[e]
@@ -1346,18 +1396,18 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1346
1396
  seriesIndex: e + W.value.start
1347
1397
  });
1348
1398
  }
1349
- function ws() {
1350
- return no.value.map((e) => ({
1399
+ function Ls() {
1400
+ return go.value.map((e) => ({
1351
1401
  values: e.absoluteValues,
1352
1402
  color: e.color,
1353
1403
  name: e.name,
1354
1404
  type: e.type
1355
1405
  }));
1356
1406
  }
1357
- async function Ts({ scale: e = 2 } = {}) {
1358
- if (!vi.value) return;
1359
- let { width: t, height: n } = vi.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await He({
1360
- domElement: vi.value,
1407
+ async function Rs({ scale: e = 2 } = {}) {
1408
+ if (!Ai.value) return;
1409
+ let { width: t, height: n } = Ai.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await He({
1410
+ domElement: Ai.value,
1361
1411
  base64: !0,
1362
1412
  img: !0,
1363
1413
  scale: e
@@ -1371,42 +1421,42 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1371
1421
  aspectRatio: r
1372
1422
  };
1373
1423
  }
1374
- function Es() {
1375
- P.value.length ? P.value = [] : no.value.forEach((e) => {
1424
+ function zs() {
1425
+ P.value.length ? P.value = [] : go.value.forEach((e) => {
1376
1426
  P.value.push(e.id);
1377
- }), Os();
1427
+ }), Vs();
1378
1428
  }
1379
- function Ds(e, t) {
1380
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), ks(t));
1429
+ function Bs(e, t) {
1430
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), Hs(t));
1381
1431
  }
1382
- function Os() {
1383
- fi("selectLegend", ro.value.map((e) => ({
1432
+ function Vs() {
1433
+ wi("selectLegend", _o.value.map((e) => ({
1384
1434
  name: e.name,
1385
1435
  values: e.absoluteValues,
1386
1436
  color: e.color,
1387
1437
  type: e.type
1388
1438
  })));
1389
1439
  }
1390
- function ks(e) {
1440
+ function Hs(e) {
1391
1441
  if (P.value.includes(e.id)) P.value = P.value.filter((t) => t !== e.id);
1392
1442
  else {
1393
- if (P.value.length + 1 === to.value.length) return;
1443
+ if (P.value.length + 1 === ho.value.length) return;
1394
1444
  P.value.push(e.id);
1395
1445
  }
1396
- Os(), Ki.value += 1;
1446
+ Vs(), ia.value += 1;
1397
1447
  }
1398
- function As(e) {
1399
- return no.value.length ? no.value.find((t) => t.name === e) || (B.value.debug && console.warn(`VueUiXy - Series name not found "${e}"`), null) : (B.value.debug && console.warn("VueUiXy - There are no series to show."), null);
1448
+ function Us(e) {
1449
+ return go.value.length ? go.value.find((t) => t.name === e) || (B.value.debug && console.warn(`VueUiXy - Series name not found "${e}"`), null) : (B.value.debug && console.warn("VueUiXy - There are no series to show."), null);
1400
1450
  }
1401
- function js(e) {
1402
- let t = As(e);
1403
- t !== null && P.value.includes(t.id) && ks({ id: t.id });
1451
+ function Ws(e) {
1452
+ let t = Us(e);
1453
+ t !== null && P.value.includes(t.id) && Hs({ id: t.id });
1404
1454
  }
1405
- function Ms(e) {
1406
- let t = As(e);
1407
- t !== null && (P.value.includes(t.id) || ks({ id: t.id }));
1455
+ function Gs(e) {
1456
+ let t = Us(e);
1457
+ t !== null && (P.value.includes(t.id) || Hs({ id: t.id }));
1408
1458
  }
1409
- let Ns = b(() => `${B.value.chart.title.text || "Chart visualization"}. ${B.value.chart.title.subtitle.text || ""}`), Ps = b(() => ({ linePlot: Z.value > B.value.line.dot.hideAboveMaxSerieLength })), Fs = b(() => B.value.chart.userOptions.show && (!B.value.chart.title.show || !B.value.chart.title.text)), Is = b(() => {
1459
+ let Ks = b(() => `${B.value.chart.title.text || "Chart visualization"}. ${B.value.chart.title.subtitle.text || ""}`), qs = b(() => ({ linePlot: X.value > B.value.line.dot.hideAboveMaxSerieLength })), Js = b(() => B.value.chart.userOptions.show && (!B.value.chart.title.show || !B.value.chart.title.text)), Ys = b(() => {
1410
1460
  if (Array.isArray(B.value.chart.highlightArea)) return B.value.chart.highlightArea.map((e) => {
1411
1461
  let t = Math.min(e.to, U.value - 1);
1412
1462
  return {
@@ -1422,20 +1472,20 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1422
1472
  ...e,
1423
1473
  span: e.from === e.to ? 1 : e.to < e.from ? 0 : e.to - e.from + 1
1424
1474
  }];
1425
- }), Ls = b(() => Ni.value ? H.value.map((e, t) => ({
1475
+ }), Xs = b(() => Gi.value ? H.value.map((e, t) => ({
1426
1476
  ...e,
1427
- series: Ma(e.series),
1477
+ series: Wa(e.series),
1428
1478
  id: `uniqueId_${t}`,
1429
- color: De(e.color ? e.color : Ha.value[t] ? Ha.value[t] : a[t])
1430
- })) : H.value), Rs = b(() => ro.value.map((e) => {
1479
+ color: De(e.color ? e.color : to.value[t] ? to.value[t] : a[t])
1480
+ })) : H.value), Zs = b(() => _o.value.map((e) => {
1431
1481
  let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
1432
1482
  return {
1433
1483
  id: e.id,
1434
1484
  name: e.name,
1435
1485
  color: e.color,
1436
- values: Io(Z.value, t)
1486
+ values: Yo(X.value, t)
1437
1487
  };
1438
- })), zs = b(() => ({
1488
+ })), Qs = b(() => ({
1439
1489
  responsiveBreakpoint: B.value.table.responsiveBreakpoint,
1440
1490
  roundingValues: B.value.table.rounding,
1441
1491
  showAverage: !1,
@@ -1444,7 +1494,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1444
1494
  fontFamily: B.value.chart.fontFamily,
1445
1495
  prefix: B.value.chart.labels.prefix,
1446
1496
  suffix: B.value.chart.labels.suffix,
1447
- colNames: X.value.map((e, t) => B.value.table.useDefaultTimeFormat ? e.text : wc.value(t + W.value.start, B.value.table.timeFormat)),
1497
+ colNames: Y.value.map((e, t) => B.value.table.useDefaultTimeFormat ? e.text : Ic.value(t + W.value.start, B.value.table.timeFormat)),
1448
1498
  thead: {
1449
1499
  backgroundColor: B.value.table.th.backgroundColor,
1450
1500
  color: B.value.table.th.color,
@@ -1457,42 +1507,42 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1457
1507
  },
1458
1508
  userOptions: { show: !1 },
1459
1509
  sparkline: { animation: { show: !1 } }
1460
- })), Bs = b(() => {
1461
- let e = Math.max(0, Y.value?.width || 0);
1462
- return B.value.chart.grid.position === "middle" ? ha(e, Math.max(1, Z.value), 1) : ha(e, Math.max(1, Z.value - 1), 0);
1463
- }), Vs = b(() => B.value.chart.grid.position === "middle" ? Bs.value : Z.value <= 1 ? Math.max(0, Y.value?.width || 0) : Bs.value);
1464
- function Hs(e) {
1465
- let t = Y.value?.left || 0;
1466
- return B.value.chart.grid.position === "middle" ? t + Bs.value / 2 + Bs.value * e : t + Bs.value * e;
1510
+ })), $s = b(() => {
1511
+ let e = Math.max(0, J.value?.width || 0);
1512
+ return B.value.chart.grid.position === "middle" ? Da(e, Math.max(1, X.value), 1) : Da(e, Math.max(1, X.value - 1), 0);
1513
+ }), ec = b(() => B.value.chart.grid.position === "middle" ? $s.value : X.value <= 1 ? Math.max(0, J.value?.width || 0) : $s.value);
1514
+ function tc(e) {
1515
+ let t = J.value?.left || 0;
1516
+ return B.value.chart.grid.position === "middle" ? t + $s.value / 2 + $s.value * e : t + $s.value * e;
1467
1517
  }
1468
- function Us(e) {
1469
- let t = Y.value?.left || 0;
1470
- return B.value.chart.grid.position === "middle" ? t + Bs.value * e : Z.value <= 1 ? t : t + Bs.value * e - Bs.value / 2;
1518
+ function nc(e) {
1519
+ let t = J.value?.left || 0;
1520
+ return B.value.chart.grid.position === "middle" ? t + $s.value * e : X.value <= 1 ? t : t + $s.value * e - $s.value / 2;
1471
1521
  }
1472
- function Ws(e) {
1473
- return Math.max(Y.value?.left || 0, Us(e));
1522
+ function rc(e) {
1523
+ return Math.max(J.value?.left || 0, nc(e));
1474
1524
  }
1475
- function Gs(e) {
1476
- let t = Y.value?.left || 0, n = Y.value?.right || 0, r = Us(e), i = r + Vs.value;
1525
+ function ic(e) {
1526
+ let t = J.value?.left || 0, n = J.value?.right || 0, r = nc(e), i = r + ec.value;
1477
1527
  return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
1478
1528
  }
1479
- function Ks(e) {
1480
- let t = Y.value?.left || 0, n = Y.value?.right || 0;
1481
- for (let r = 0; r < Z.value; r += 1) {
1482
- let i = Math.max(t, Us(r)), a = Math.min(n, Us(r) + Vs.value);
1529
+ function ac(e) {
1530
+ let t = J.value?.left || 0, n = J.value?.right || 0;
1531
+ for (let r = 0; r < X.value; r += 1) {
1532
+ let i = Math.max(t, nc(r)), a = Math.min(n, nc(r) + ec.value);
1483
1533
  if (e >= i && e <= a) return r;
1484
1534
  }
1485
1535
  return null;
1486
1536
  }
1487
- function qs(e) {
1488
- let t = Y.value?.left || 0, n = Y.value?.right || 0, r = Us(e), i = r + Vs.value;
1537
+ function oc(e) {
1538
+ let t = J.value?.left || 0, n = J.value?.right || 0, r = nc(e), i = r + ec.value;
1489
1539
  return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
1490
1540
  }
1491
- function Js(e) {
1492
- return Math.max(1e-5, Vs.value * e);
1541
+ function sc(e) {
1542
+ return Math.max(1e-5, ec.value * e);
1493
1543
  }
1494
- let Ys = b(() => le(no.value.filter((e) => !P.value.includes(e.id))));
1495
- function Xs(e, t) {
1544
+ let cc = b(() => le(go.value.filter((e) => !P.value.includes(e.id))));
1545
+ function lc(e, t) {
1496
1546
  let n = Object.create(null);
1497
1547
  for (let r = 0; r < e.length; r += 1) {
1498
1548
  let i = e[r], a = String(t(i));
@@ -1500,8 +1550,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1500
1550
  }
1501
1551
  return n;
1502
1552
  }
1503
- let Q = b(() => {
1504
- let e = Xs(Ys.value, (e) => e.scaleLabel), t = {};
1553
+ let Z = b(() => {
1554
+ let e = lc(cc.value, (e) => e.scaleLabel), t = {};
1505
1555
  for (let [n, r] of Object.entries(e)) {
1506
1556
  let e = r.flatMap((e) => e.absoluteValues);
1507
1557
  t[n] = {
@@ -1511,19 +1561,19 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1511
1561
  };
1512
1562
  }
1513
1563
  return t;
1514
- }), Zs = b(() => {
1515
- let e = to.value.filter((e) => e.type === "bar").filter((e) => !P.value.includes(e.id)).length;
1516
- return Y.value.width / Z.value / e - Qs.value * e;
1517
- }), Qs = b(() => cs.value.line * B.value.bar.periodGap), $s = b(() => Math.max(1e-5, ls() - (V.value.useIndividualScale && V.value.isStacked ? 0 : Qs.value))), ec = b(() => $s.value * Math.min(Math.abs(B.value.bar.innerGap), .95)), tc = b(() => {
1564
+ }), uc = b(() => {
1565
+ let e = ho.value.filter((e) => e.type === "bar").filter((e) => !P.value.includes(e.id)).length;
1566
+ return J.value.width / X.value / e - dc.value * e;
1567
+ }), dc = b(() => xs.value.line * B.value.bar.periodGap), fc = b(() => Math.max(1e-5, Ss() - (V.value.useIndividualScale && V.value.isStacked ? 0 : dc.value))), pc = b(() => fc.value * Math.min(Math.abs(B.value.bar.innerGap), .95)), mc = b(() => {
1518
1568
  if (!B.value.chart.zoom.minimap.show) return [];
1519
- let e = Ls.value.filter((e) => !P.value.includes(e.id)), t = Math.max(...e.map((e) => e.series.length)), n = [];
1569
+ let e = Xs.value.filter((e) => !P.value.includes(e.id)), t = Math.max(...e.map((e) => e.series.length)), n = [];
1520
1570
  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));
1521
1571
  let r = Math.min(...n);
1522
1572
  return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
1523
- }), nc = b(() => B.value.chart.zoom.minimap.show ? Ls.value.map((e) => ({
1573
+ }), hc = b(() => B.value.chart.zoom.minimap.show ? Xs.value.map((e) => ({
1524
1574
  ...e,
1525
1575
  isVisible: !P.value.includes(e.id)
1526
- })) : []), rc = b(() => q.value ? ms.value.map((e) => ({
1576
+ })) : []), gc = b(() => K.value ? Ds.value.map((e) => ({
1527
1577
  slotAbsoluteIndex: e.datapoint.slotAbsoluteIndex,
1528
1578
  shape: e.datapoint.shape || e.datapoint.type === "bar" ? "square" : "circle",
1529
1579
  name: e.datapoint.name,
@@ -1534,7 +1584,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1534
1584
  comments: e.datapoint.comments || [],
1535
1585
  prefix: e.datapoint.prefix || B.value.chart.labels.prefix,
1536
1586
  suffix: e.datapoint.suffix || B.value.chart.labels.suffix
1537
- })) : ro.value.map((e) => ({
1587
+ })) : _o.value.map((e) => ({
1538
1588
  slotAbsoluteIndex: e.slotAbsoluteIndex,
1539
1589
  shape: e.shape || e.type === "bar" ? "square" : "circle",
1540
1590
  name: e.name,
@@ -1544,22 +1594,22 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1544
1594
  comments: e.comments || [],
1545
1595
  prefix: e.prefix || B.value.chart.labels.prefix,
1546
1596
  suffix: e.suffix || B.value.chart.labels.suffix
1547
- }))), ic = b(() => K.value.ticks.map((e) => {
1548
- let t = e >= 0 ? rs.value - Y.value.height * Xo(e) : rs.value + Y.value.height * Xo(Math.abs(e));
1597
+ }))), _c = b(() => G.value.ticks.map((e) => {
1598
+ let t = e >= 0 ? gs.value - J.value.height * ls(e) : gs.value + J.value.height * ls(Math.abs(e));
1549
1599
  return {
1550
- y: Zo.value ? Y.value.top + Y.value.bottom - t : t,
1600
+ y: us.value ? J.value.top + J.value.bottom - t : t,
1551
1601
  value: e,
1552
1602
  prefix: B.value.chart.labels.prefix,
1553
1603
  suffix: B.value.chart.labels.suffix
1554
1604
  };
1555
- })), ac = b(() => {
1605
+ })), vc = b(() => {
1556
1606
  let e = B.value.chart.annotations;
1557
1607
  if (!e || !Array.isArray(e) || e.every((e) => !e.show)) return [];
1558
1608
  let t = e.filter((e) => e.show && (e.yAxis.yTop != null || e.yAxis.yBottom != null));
1559
1609
  if (!t.length) return [];
1560
- let { left: n, right: r } = Y.value, i = rs.value, a = Y.value.height, o = K.value.min, s = K.value.max - o, l = (e) => i - (e - 0) / s * a;
1610
+ let { left: n, right: r } = J.value, i = gs.value, a = J.value.height, o = G.value.min, s = G.value.max - o, l = (e) => i - (e - 0) / s * a;
1561
1611
  return t.map((e) => {
1562
- let { yAxis: { yTop: t, yBottom: i, label: a } } = e, o = t != null && i != null && t !== i, s = t == null ? null : l(t), u = i == null ? null : l(i), ee = vo(a.fontSize);
1612
+ let { yAxis: { yTop: t, yBottom: i, label: a } } = e, o = t != null && i != null && t !== i, s = t == null ? null : l(t), u = i == null ? null : l(i), ee = jo(a.fontSize);
1563
1613
  ee.font = `${a.fontSize}px sans-serif`;
1564
1614
  let d = ee.measureText(a.text).width, te = a.fontSize, f = (a.position === "start" ? n + a.padding?.left : r - a.padding?.right) + a.offsetX, p = (s != null && u != null ? Math.min(s, u) : s ?? u) - a.fontSize / 3 + a.offsetY - a.padding?.top, ne;
1565
1615
  ne = a.textAnchor === "middle" ? f - d / 2 - a.padding?.left : a.textAnchor === "end" ? f - d - a.padding?.right : f - a.padding?.left;
@@ -1596,12 +1646,12 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1596
1646
  };
1597
1647
  });
1598
1648
  });
1599
- function oc(e, t) {
1649
+ function yc(e, t) {
1600
1650
  let n = e[t - 1], r = e[t + 1], i = !!n && !!r && n.value == null && r.value == null || !n && !!r && r.value == null || !!n && !r && n.value == null;
1601
- return Jo(e[t].value) && i && B.value.line.cutNullValues;
1651
+ return ss(e[t].value) && i && B.value.line.cutNullValues;
1602
1652
  }
1603
- let sc = b(() => {
1604
- let e = to.value.flatMap((e) => e.series.map((e) => e.x)).filter(Number.isFinite);
1653
+ let bc = b(() => {
1654
+ let e = ho.value.flatMap((e) => e.series.map((e) => e.x)).filter(Number.isFinite);
1605
1655
  if (!e.length) return {
1606
1656
  min: 0,
1607
1657
  max: 1
@@ -1611,15 +1661,15 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1611
1661
  min: t,
1612
1662
  max: t === n ? n + 1 : n
1613
1663
  };
1614
- }), cc = b(() => {
1615
- let e = B.value.chart.grid.labels.xAxis.commonScaleSteps, t = B.value.chart.grid.labels.xAxis.scaleMin, n = B.value.chart.grid.labels.xAxis.scaleMax, r = t !== null && Number.isFinite(Number(t)) ? Number(t) : sc.value.min, i = n !== null && Number.isFinite(Number(n)) ? Number(n) : sc.value.max, a = B.value.chart.grid.labels.xAxis.useNiceScale ? fe(r, i, e) : de(r, i, e);
1664
+ }), xc = b(() => {
1665
+ let e = B.value.chart.grid.labels.xAxis.commonScaleSteps, t = B.value.chart.grid.labels.xAxis.scaleMin, n = B.value.chart.grid.labels.xAxis.scaleMax, r = t !== null && Number.isFinite(Number(t)) ? Number(t) : bc.value.min, i = n !== null && Number.isFinite(Number(n)) ? Number(n) : bc.value.max, a = B.value.chart.grid.labels.xAxis.useNiceScale ? fe(r, i, e) : de(r, i, e);
1616
1666
  if (B.value.chart.grid.position !== "start") return a;
1617
1667
  let o = a.ticks.length > 1 ? a.ticks[1] - a.ticks[0] : 1;
1618
1668
  return {
1619
1669
  ...a,
1620
1670
  max: a.max + o
1621
1671
  };
1622
- }), lc = b(() => q.value ? (ts.value ? [...cc.value.ticks].reverse() : [...cc.value.ticks]).map((e, t) => ({
1672
+ }), Sc = b(() => K.value ? (ms.value ? [...xc.value.ticks].reverse() : [...xc.value.ticks]).map((e, t) => ({
1623
1673
  id: `continuous_x_label_${t}`,
1624
1674
  text: _(B.value.chart.grid.labels.xAxis.formatter, e, s({
1625
1675
  v: e,
@@ -1631,18 +1681,18 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1631
1681
  seriesIndex: t
1632
1682
  }),
1633
1683
  value: e,
1634
- x: dc({ x: e }),
1684
+ x: wc({ x: e }),
1635
1685
  index: t
1636
- })) : Oo.value);
1637
- function uc(e, t) {
1638
- return q.value ? e.x : Hs(t);
1686
+ })) : Vo.value);
1687
+ function Cc(e, t) {
1688
+ return K.value ? e.x : tc(t);
1639
1689
  }
1640
- function dc({ x: e }) {
1641
- let t = cc.value.max - cc.value.min || 1, n = ns((e - cc.value.min) / t);
1642
- return Y.value.left + Y.value.width * n;
1690
+ function wc({ x: e }) {
1691
+ let t = xc.value.max - xc.value.min || 1, n = hs((e - xc.value.min) / t);
1692
+ return J.value.left + J.value.width * n;
1643
1693
  }
1644
- let fc = b(() => {
1645
- let e = H.value.flatMap((e) => e.series || []).filter(Qa).map((e) => Number(e.x)).filter(Number.isFinite);
1694
+ let Tc = b(() => {
1695
+ let e = H.value.flatMap((e) => e.series || []).filter(fo).map((e) => Number(e.x)).filter(Number.isFinite);
1646
1696
  if (!e.length) return {
1647
1697
  min: 0,
1648
1698
  max: 1
@@ -1652,12 +1702,12 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1652
1702
  min: t,
1653
1703
  max: t === n ? n + 1 : n
1654
1704
  };
1655
- }), pc = b(() => q.value ? fc.value.min : 0), mc = b(() => q.value ? fc.value.max : U.value);
1656
- function hc(e, t) {
1657
- return q.value ? e.x == null || e.y == null ? null : dc(e) : Hs(t);
1705
+ }), Ec = b(() => K.value ? Tc.value.min : 0), Dc = b(() => K.value ? Tc.value.max : U.value);
1706
+ function Oc(e, t) {
1707
+ return K.value ? e.x == null || e.y == null ? null : wc(e) : tc(t);
1658
1708
  }
1659
- function gc({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
1660
- let c = e.scaleSteps || B.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !B.value.chart.grid.labels.yAxis.useNiceScale ? de : fe, ee = o.max === o.min ? o.max * l : o.max, d = a === i ? a * l : a, te = u(o.min, ee, c), f = u(i, d, c), p = te.min >= 0 ? 0 : Math.abs(te.min), ne = te.max + Math.abs(p), re = f.max + 0, ie = e.stackIndex, ae = t - 1 - ie, oe = V.value.isStacked ? 1 - e.cumulatedStackRatio : 0, se = V.value.isStacked ? r * oe + n * ae : 0, ce = V.value.isStacked ? r * e.stackRatio : Y.value.height;
1709
+ function kc({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
1710
+ let c = e.scaleSteps || B.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !B.value.chart.grid.labels.yAxis.useNiceScale ? de : fe, ee = o.max === o.min ? o.max * l : o.max, d = a === i ? a * l : a, te = u(o.min, ee, c), f = u(i, d, c), p = te.min >= 0 ? 0 : Math.abs(te.min), ne = te.max + Math.abs(p), re = f.max + 0, ie = e.stackIndex, ae = t - 1 - ie, oe = V.value.isStacked ? 1 - e.cumulatedStackRatio : 0, se = V.value.isStacked ? r * oe + n * ae : 0, ce = V.value.isStacked ? r * e.stackRatio : J.value.height;
1661
1711
  return {
1662
1712
  scaleSteps: c,
1663
1713
  individualScale: te,
@@ -1668,26 +1718,26 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1668
1718
  autoScaleMax: re,
1669
1719
  yOffset: se,
1670
1720
  individualHeight: ce,
1671
- zeroPosition: Y.value?.bottom - se - ce * p / ne,
1672
- autoScaleZeroPosition: Y.value?.bottom - se - ce * 0 / re
1721
+ zeroPosition: J.value?.bottom - se - ce * p / ne,
1722
+ autoScaleZeroPosition: J.value?.bottom - se - ce * 0 / re
1673
1723
  };
1674
1724
  }
1675
- let _c = b(() => {
1676
- let e = Ys.value.filter((e) => [
1725
+ let Ac = b(() => {
1726
+ let e = cc.value.filter((e) => [
1677
1727
  "bar",
1678
1728
  "line",
1679
1729
  "plot"
1680
- ].includes(e.type)), t = e.length, n = B.value.chart.grid.labels.yAxis.gap, r = V.value.isStacked ? n * (t - 1) : 0, i = Y.value.height - r;
1730
+ ].includes(e.type)), t = e.length, n = B.value.chart.grid.labels.yAxis.gap, r = V.value.isStacked ? n * (t - 1) : 0, i = J.value.height - r;
1681
1731
  return e.filter((e) => e.type === "bar").map((e, r) => {
1682
- Fo(e);
1683
- let a = Q.value[e.scaleLabel].min, o = Q.value[e.scaleLabel].max, s = {
1732
+ Jo(e);
1733
+ let a = Z.value[e.scaleLabel].min, o = Z.value[e.scaleLabel].max, s = {
1684
1734
  ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - a) / (o - a)),
1685
1735
  valueMin: a,
1686
1736
  valueMax: o < 0 ? 0 : o
1687
1737
  }, c = {
1688
1738
  max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1689
1739
  min: e.scaleMin || Math.min(...e.absoluteValues.filter((e) => ![void 0, null].includes(e))) > 0 ? 0 : Math.min(...e.absoluteValues.filter((e) => ![null, void 0].includes(e)))
1690
- }, { individualScale: l, autoScaleSteps: u, individualZero: ee, individualMax: d, autoScaleMax: te, yOffset: f, individualHeight: p, zeroPosition: ne, autoScaleZeroPosition: re } = gc({
1740
+ }, { individualScale: l, autoScaleSteps: u, individualZero: ee, individualMax: d, autoScaleMax: te, yOffset: f, individualHeight: p, zeroPosition: ne, autoScaleZeroPosition: re } = kc({
1691
1741
  datapoint: e,
1692
1742
  totalSeries: t,
1693
1743
  gap: n,
@@ -1695,13 +1745,13 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1695
1745
  autoScaleValueMin: s.valueMin,
1696
1746
  autoScaleValueMax: s.valueMax,
1697
1747
  individualExtremes: c
1698
- }), ie = no.value.filter((e) => e.type === "bar").filter((e) => !P.value.includes(e.id)).length, ae = e.series.map((t, n) => {
1699
- let i = V.value.useIndividualScale ? (e.absoluteValues[n] + ee) / d : Xo(t), a = V.value.useIndividualScale && V.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left + cs.value.bar * r + cs.value.bar * n * ie - Zs.value / 2 - r * Qs.value;
1748
+ }), ie = go.value.filter((e) => e.type === "bar").filter((e) => !P.value.includes(e.id)).length, ae = e.series.map((t, n) => {
1749
+ let i = V.value.useIndividualScale ? (e.absoluteValues[n] + ee) / d : ls(t), a = V.value.useIndividualScale && V.value.isStacked ? J.value?.left + J.value.width / X.value * n : J.value?.left + xs.value.bar * r + xs.value.bar * n * ie - uc.value / 2 - r * dc.value;
1700
1750
  return {
1701
1751
  yOffset: v(f),
1702
1752
  individualHeight: v(p),
1703
1753
  x: v(a),
1704
- y: $o({
1754
+ y: fs({
1705
1755
  ratio: i,
1706
1756
  yOffset: f,
1707
1757
  individualHeight: p
@@ -1712,12 +1762,12 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1712
1762
  comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
1713
1763
  };
1714
1764
  }), oe = e.absoluteValues.map((e) => u.min >= 0 ? (e - Math.abs(u.min)) / (u.max - Math.abs(u.min)) : (e + Math.abs(u.min)) / (u.max + Math.abs(u.min))), se = e.series.map((t, n) => {
1715
- let i = V.value.useIndividualScale && V.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left - cs.value.bar / 2 + cs.value.bar * r + cs.value.bar * n * no.value.filter((e) => e.type === "bar").filter((e) => !P.value.includes(e.id)).length;
1765
+ let i = V.value.useIndividualScale && V.value.isStacked ? J.value?.left + J.value.width / X.value * n : J.value?.left - xs.value.bar / 2 + xs.value.bar * r + xs.value.bar * n * go.value.filter((e) => e.type === "bar").filter((e) => !P.value.includes(e.id)).length;
1716
1766
  return {
1717
1767
  yOffset: v(f),
1718
1768
  individualHeight: v(p),
1719
1769
  x: v(i),
1720
- y: v($o({
1770
+ y: v(fs({
1721
1771
  ratio: oe[n] || 0,
1722
1772
  yOffset: v(f),
1723
1773
  individualHeight: v(p)
@@ -1728,7 +1778,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1728
1778
  comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
1729
1779
  };
1730
1780
  }), ce = l.ticks.map((t) => ({
1731
- y: es({
1781
+ y: ps({
1732
1782
  value: t,
1733
1783
  scaleMin: l.min,
1734
1784
  scaleMax: l.max,
@@ -1740,7 +1790,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1740
1790
  suffix: e.suffix || B.value.chart.labels.suffix,
1741
1791
  datapoint: e
1742
1792
  })), le = u.ticks.map((t) => ({
1743
- y: $o({
1793
+ y: fs({
1744
1794
  ratio: (t - u.min) / (u.max - u.min || 1),
1745
1795
  yOffset: f,
1746
1796
  individualHeight: p
@@ -1750,7 +1800,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1750
1800
  suffix: e.suffix || B.value.chart.labels.suffix,
1751
1801
  datapoint: e
1752
1802
  }));
1753
- return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = B.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? le : ce, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? re : ne, Q.value[e.scaleLabel].individualMax = e.autoScaling ? te : d, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = f, Q.value[e.scaleLabel].individualHeight = p, Q.value[e.scaleLabel].autoScaleYLabels = le, Q.value[e.scaleLabel].unique = Ys.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
1803
+ return Z.value[e.scaleLabel].name = e.name, Z.value[e.scaleLabel].groupName = e.scaleLabel, Z.value[e.scaleLabel].groupColor = B.value.chart.grid.labels.yAxis.groupColor || e.color, Z.value[e.scaleLabel].color = e.color, Z.value[e.scaleLabel].scaleYLabels = e.autoScaling ? le : ce, Z.value[e.scaleLabel].zeroPosition = e.autoScaling ? re : ne, Z.value[e.scaleLabel].individualMax = e.autoScaling ? te : d, Z.value[e.scaleLabel].scaleLabel = e.scaleLabel, Z.value[e.scaleLabel].id = e.id, Z.value[e.scaleLabel].yOffset = f, Z.value[e.scaleLabel].individualHeight = p, Z.value[e.scaleLabel].autoScaleYLabels = le, Z.value[e.scaleLabel].unique = cc.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
1754
1804
  ...e,
1755
1805
  yOffset: f,
1756
1806
  autoScaleYLabels: le,
@@ -1760,25 +1810,25 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1760
1810
  individualMax: e.autoScaling ? te : d,
1761
1811
  zeroPosition: e.autoScaling ? re : ne,
1762
1812
  plots: e.autoScaling ? se : ae,
1763
- groupId: Q.value[e.scaleLabel].groupId
1813
+ groupId: Z.value[e.scaleLabel].groupId
1764
1814
  };
1765
1815
  });
1766
- }), $ = b(() => {
1767
- let e = Ys.value.filter((e) => [
1816
+ }), Q = b(() => {
1817
+ let e = cc.value.filter((e) => [
1768
1818
  "bar",
1769
1819
  "line",
1770
1820
  "plot"
1771
- ].includes(e.type)), t = e.length, n = B.value.chart.grid.labels.yAxis.gap, r = V.value.isStacked ? n * (t - 1) : 0, i = Y.value.height - r;
1821
+ ].includes(e.type)), t = e.length, n = B.value.chart.grid.labels.yAxis.gap, r = V.value.isStacked ? n * (t - 1) : 0, i = J.value.height - r;
1772
1822
  return e.filter((e) => e.type === "line").map((e, r) => {
1773
- Fo(e);
1774
- let a = Q.value[e.scaleLabel].min, s = Q.value[e.scaleLabel].max, c = {
1823
+ Jo(e);
1824
+ let a = Z.value[e.scaleLabel].min, s = Z.value[e.scaleLabel].max, c = {
1775
1825
  ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - a) / (s - a)),
1776
1826
  valueMin: a,
1777
1827
  valueMax: s
1778
1828
  }, u = {
1779
1829
  max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1780
1830
  min: e.scaleMin || (Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues))
1781
- }, { individualScale: d, autoScaleSteps: f, individualZero: p, individualMax: re, autoScaleMax: ae, yOffset: oe, individualHeight: ce, zeroPosition: le, autoScaleZeroPosition: ue } = gc({
1831
+ }, { individualScale: d, autoScaleSteps: f, individualZero: p, individualMax: re, autoScaleMax: ae, yOffset: oe, individualHeight: ce, zeroPosition: le, autoScaleZeroPosition: ue } = kc({
1782
1832
  datapoint: e,
1783
1833
  totalSeries: t,
1784
1834
  gap: n,
@@ -1787,18 +1837,18 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1787
1837
  autoScaleValueMax: c.valueMax,
1788
1838
  individualExtremes: u
1789
1839
  }), m = e.series.map((t, n) => {
1790
- if (q.value && (t.x == null || t.y == null)) return {
1840
+ if (K.value && (t.x == null || t.y == null)) return {
1791
1841
  index: n,
1792
1842
  x: null,
1793
1843
  y: null,
1794
1844
  value: null,
1795
1845
  comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
1796
1846
  };
1797
- let r = V.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(p)) / re : Xo(eo(t));
1847
+ let r = V.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(p)) / re : ls(mo(t));
1798
1848
  return {
1799
1849
  index: n,
1800
- x: v(hc(t, n)),
1801
- y: v($o({
1850
+ x: v(Oc(t, n)),
1851
+ y: v(fs({
1802
1852
  ratio: r,
1803
1853
  yOffset: oe,
1804
1854
  individualHeight: ce
@@ -1806,7 +1856,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1806
1856
  value: e.absoluteValues[n],
1807
1857
  comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
1808
1858
  };
1809
- }), h = e.absoluteValues.map((e) => f.min >= 0 ? (e - Math.abs(f.min)) / (f.max - Math.abs(f.min)) : (e + Math.abs(f.min)) / (f.max + Math.abs(f.min))), de = e.series.map((t, n) => q.value && (t.x === null || t.y === null) ? {
1859
+ }), h = e.absoluteValues.map((e) => f.min >= 0 ? (e - Math.abs(f.min)) / (f.max - Math.abs(f.min)) : (e + Math.abs(f.min)) / (f.max + Math.abs(f.min))), de = e.series.map((t, n) => K.value && (t.x === null || t.y === null) ? {
1810
1860
  index: n,
1811
1861
  x: null,
1812
1862
  y: null,
@@ -1814,14 +1864,14 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1814
1864
  comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
1815
1865
  } : [void 0, null].includes(e.absoluteValues[n]) ? {
1816
1866
  index: n,
1817
- x: v(hc(t, n)),
1867
+ x: v(Oc(t, n)),
1818
1868
  y: le,
1819
1869
  value: e.absoluteValues[n],
1820
1870
  comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
1821
1871
  } : {
1822
1872
  index: n,
1823
- x: v(hc(t, n)),
1824
- y: v($o({
1873
+ x: v(Oc(t, n)),
1874
+ y: v(fs({
1825
1875
  ratio: h[n] || 0,
1826
1876
  yOffset: oe,
1827
1877
  individualHeight: ce
@@ -1829,7 +1879,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1829
1879
  value: e.absoluteValues[n],
1830
1880
  comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
1831
1881
  }), fe = e.dashIndices && Array.isArray(e.dashIndices) && e?.dashIndices?.length > 0, g = B.value.line.cutNullValues ? pe(m) : he(m.filter((e) => e.value !== null)), _ = B.value.line.cutNullValues ? pe(de) : he(de.filter((e) => e.value !== null)), me = B.value.line.cutNullValues ? ee(m) : l(m.filter((e) => e.value !== null)), ge = B.value.line.cutNullValues ? ee(de) : l(de.filter((e) => e.value !== null)), _e = o(B.value.line.cutNullValues ? m : m.filter((e) => e.value !== null)), ve = o(B.value.line.cutNullValues ? de : de.filter((e) => e.value !== null)), ye = fe ? ie(B.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), e.dashIndices.map((e) => e - W.value.start)) : [], be = fe ? te(B.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), e.dashIndices.map((e) => e - W.value.start)) : [], xe = d.ticks.map((t) => ({
1832
- y: es({
1882
+ y: ps({
1833
1883
  value: t,
1834
1884
  scaleMin: d.min,
1835
1885
  scaleMax: d.max,
@@ -1841,7 +1891,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1841
1891
  suffix: e.suffix || B.value.chart.labels.suffix,
1842
1892
  datapoint: e
1843
1893
  })), Se = f.ticks.map((t) => ({
1844
- y: $o({
1894
+ y: fs({
1845
1895
  ratio: (t - f.min) / (f.max - f.min || 1),
1846
1896
  yOffset: oe,
1847
1897
  individualHeight: ce
@@ -1851,8 +1901,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1851
1901
  suffix: e.suffix || B.value.chart.labels.suffix,
1852
1902
  datapoint: e
1853
1903
  }));
1854
- Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = B.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? Se : xe, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ue : le, Q.value[e.scaleLabel].individualMax = e.autoScaling ? ae : re, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = oe, Q.value[e.scaleLabel].individualHeight = ce, Q.value[e.scaleLabel].autoScaleYLabels = Se, Q.value[e.scaleLabel].unique = Ys.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1;
1855
- let Ce = V.value.useIndividualScale ? e.autoScaling ? ue : le : Wa.value, we = Math.max(Math.max(e.autoScaling ? ue : xe.at(-1) ? xe.at(-1).y : 0, Y.value?.top), Ce), Ee = e.autoScaling ? de : m, Oe = B.value.line.cutNullValues ? Ee : Ee.filter((e) => e.value !== null), ke = e.absoluteValues.filter((e) => ![
1904
+ Z.value[e.scaleLabel].name = e.name, Z.value[e.scaleLabel].groupName = e.scaleLabel, Z.value[e.scaleLabel].groupColor = B.value.chart.grid.labels.yAxis.groupColor || e.color, Z.value[e.scaleLabel].color = e.color, Z.value[e.scaleLabel].scaleYLabels = e.autoScaling ? Se : xe, Z.value[e.scaleLabel].zeroPosition = e.autoScaling ? ue : le, Z.value[e.scaleLabel].individualMax = e.autoScaling ? ae : re, Z.value[e.scaleLabel].scaleLabel = e.scaleLabel, Z.value[e.scaleLabel].id = e.id, Z.value[e.scaleLabel].yOffset = oe, Z.value[e.scaleLabel].individualHeight = ce, Z.value[e.scaleLabel].autoScaleYLabels = Se, Z.value[e.scaleLabel].unique = cc.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1;
1905
+ let Ce = V.value.useIndividualScale ? e.autoScaling ? ue : le : ro.value, we = Math.max(Math.max(e.autoScaling ? ue : xe.at(-1) ? xe.at(-1).y : 0, J.value?.top), Ce), Ee = e.autoScaling ? de : m, Oe = B.value.line.cutNullValues ? Ee : Ee.filter((e) => e.value !== null), ke = e.absoluteValues.filter((e) => ![
1856
1906
  null,
1857
1907
  void 0,
1858
1908
  NaN
@@ -1876,25 +1926,25 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1876
1926
  area: e.useArea ? e.useStepper ? o(Oe, we) : V.value.useIndividualScale ? B.value.line.cutNullValues ? se(e.autoScaling ? de : m, we) : Te(e.autoScaling ? de.filter((e) => e.value !== null) : m.filter((e) => e.value !== null), we) : B.value.line.cutNullValues ? se(m, we) : Te(m.filter((e) => e.value !== null), we) : "",
1877
1927
  curveAreas: e.useArea ? e.useStepper ? o(Oe, we).split(";").filter(Boolean).map((e) => `M${e}Z`) : ne(e.autoScaling ? B.value.line.cutNullValues ? de : de.filter((e) => e.value !== null) : B.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), we, B.value.line.cutNullValues) : [],
1878
1928
  straight: e.useStepper ? e.autoScaling ? ve : _e : e.autoScaling ? ge : me,
1879
- groupId: Q.value[e.scaleLabel].groupId
1929
+ groupId: Z.value[e.scaleLabel].groupId
1880
1930
  };
1881
1931
  });
1882
- }), vc = b(() => {
1883
- let e = Ys.value.filter((e) => [
1932
+ }), $ = b(() => {
1933
+ let e = cc.value.filter((e) => [
1884
1934
  "bar",
1885
1935
  "line",
1886
1936
  "plot"
1887
- ].includes(e.type)), t = e.length, n = B.value.chart.grid.labels.yAxis.gap, r = V.value.isStacked ? n * (t - 1) : 0, i = Y.value.height - r;
1937
+ ].includes(e.type)), t = e.length, n = B.value.chart.grid.labels.yAxis.gap, r = V.value.isStacked ? n * (t - 1) : 0, i = J.value.height - r;
1888
1938
  return e.filter((e) => e.type === "plot").map((e) => {
1889
- Fo(e);
1890
- let r = Q.value[e.scaleLabel].min, a = Q.value[e.scaleLabel].max, o = {
1939
+ Jo(e);
1940
+ let r = Z.value[e.scaleLabel].min, a = Z.value[e.scaleLabel].max, o = {
1891
1941
  ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - r) / (a - r)),
1892
1942
  valueMin: r,
1893
1943
  valueMax: a
1894
1944
  }, s = {
1895
1945
  max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1896
1946
  min: e.scaleMin || Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues)
1897
- }, { individualScale: c, autoScaleSteps: l, individualZero: u, individualMax: ee, autoScaleMax: d, yOffset: te, individualHeight: f, zeroPosition: p, autoScaleZeroPosition: ne } = gc({
1947
+ }, { individualScale: c, autoScaleSteps: l, individualZero: u, individualMax: ee, autoScaleMax: d, yOffset: te, individualHeight: f, zeroPosition: p, autoScaleZeroPosition: ne } = kc({
1898
1948
  datapoint: e,
1899
1949
  totalSeries: t,
1900
1950
  gap: n,
@@ -1904,18 +1954,18 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1904
1954
  individualExtremes: s,
1905
1955
  forceExactScale: !0
1906
1956
  }), re = e.series.map((t, n) => {
1907
- if (q.value && (t.x == null || t.y == null)) return {
1957
+ if (K.value && (t.x == null || t.y == null)) return {
1908
1958
  index: n,
1909
1959
  x: null,
1910
1960
  y: null,
1911
1961
  value: null,
1912
1962
  comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
1913
1963
  };
1914
- let r = V.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(u)) / ee : Xo(eo(t));
1964
+ let r = V.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(u)) / ee : ls(mo(t));
1915
1965
  return {
1916
1966
  index: n,
1917
- x: v(hc(t, n)),
1918
- y: v($o({
1967
+ x: v(Oc(t, n)),
1968
+ y: v(fs({
1919
1969
  ratio: r,
1920
1970
  yOffset: te,
1921
1971
  individualHeight: f
@@ -1923,7 +1973,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1923
1973
  value: e.absoluteValues[n],
1924
1974
  comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
1925
1975
  };
1926
- }), ie = e.absoluteValues.map((e) => l.min >= 0 ? (e - Math.abs(l.min)) / (l.max - Math.abs(l.min)) : (e + Math.abs(l.min)) / (l.max + Math.abs(l.min))), ae = e.series.map((t, n) => q.value && (t.x === null || t.y === null) ? {
1976
+ }), ie = e.absoluteValues.map((e) => l.min >= 0 ? (e - Math.abs(l.min)) / (l.max - Math.abs(l.min)) : (e + Math.abs(l.min)) / (l.max + Math.abs(l.min))), ae = e.series.map((t, n) => K.value && (t.x === null || t.y === null) ? {
1927
1977
  index: n,
1928
1978
  x: null,
1929
1979
  y: null,
@@ -1931,8 +1981,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1931
1981
  comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
1932
1982
  } : {
1933
1983
  index: n,
1934
- x: v(hc(t, n)),
1935
- y: v($o({
1984
+ x: v(Oc(t, n)),
1985
+ y: v(fs({
1936
1986
  ratio: ie[n] || 0,
1937
1987
  yOffset: te,
1938
1988
  individualHeight: f
@@ -1940,7 +1990,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1940
1990
  value: e.absoluteValues[n],
1941
1991
  comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
1942
1992
  }), oe = c.ticks.map((t) => ({
1943
- y: es({
1993
+ y: ps({
1944
1994
  value: t,
1945
1995
  scaleMin: c.min,
1946
1996
  scaleMax: c.max,
@@ -1952,7 +2002,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1952
2002
  suffix: e.suffix || B.value.chart.labels.suffix,
1953
2003
  datapoint: e
1954
2004
  })), se = l.ticks.map((t) => ({
1955
- y: $o({
2005
+ y: fs({
1956
2006
  ratio: (t - l.min) / (l.max - l.min || 1),
1957
2007
  yOffset: te,
1958
2008
  individualHeight: f
@@ -1962,7 +2012,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1962
2012
  suffix: e.suffix || B.value.chart.labels.suffix,
1963
2013
  datapoint: e
1964
2014
  }));
1965
- return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = B.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? se : oe, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ne : p, Q.value[e.scaleLabel].individualMax = e.autoScaling ? d : ee, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = te, Q.value[e.scaleLabel].individualHeight = f, Q.value[e.scaleLabel].autoScaleYLabels = se, Q.value[e.scaleLabel].unique = Ys.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
2015
+ return Z.value[e.scaleLabel].name = e.name, Z.value[e.scaleLabel].groupName = e.scaleLabel, Z.value[e.scaleLabel].groupColor = B.value.chart.grid.labels.yAxis.groupColor || e.color, Z.value[e.scaleLabel].color = e.color, Z.value[e.scaleLabel].scaleYLabels = e.autoScaling ? se : oe, Z.value[e.scaleLabel].zeroPosition = e.autoScaling ? ne : p, Z.value[e.scaleLabel].individualMax = e.autoScaling ? d : ee, Z.value[e.scaleLabel].scaleLabel = e.scaleLabel, Z.value[e.scaleLabel].id = e.id, Z.value[e.scaleLabel].yOffset = te, Z.value[e.scaleLabel].individualHeight = f, Z.value[e.scaleLabel].autoScaleYLabels = se, Z.value[e.scaleLabel].unique = cc.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
1966
2016
  ...e,
1967
2017
  yOffset: te,
1968
2018
  autoScaleYLabels: se,
@@ -1972,11 +2022,11 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1972
2022
  individualMax: e.autoScaling ? d : ee,
1973
2023
  zeroPosition: e.autoScaling ? ne : p,
1974
2024
  plots: e.autoScaling ? ae : re,
1975
- groupId: Q.value[e.scaleLabel].groupId
2025
+ groupId: Z.value[e.scaleLabel].groupId
1976
2026
  };
1977
2027
  });
1978
- }), yc = b(() => {
1979
- let e = $.value.map((e) => ({
2028
+ }), jc = b(() => {
2029
+ let e = Q.value.map((e) => ({
1980
2030
  name: e.name,
1981
2031
  color: e.color,
1982
2032
  scale: e.individualScale,
@@ -1986,9 +2036,9 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1986
2036
  scaleLabel: e.scaleLabel || "",
1987
2037
  id: e.id,
1988
2038
  yOffset: e.yOffset || 0,
1989
- individualHeight: e.individualHeight || Y.value.height,
2039
+ individualHeight: e.individualHeight || J.value.height,
1990
2040
  autoScaleYLabels: e.autoScaleYLabels
1991
- })), t = _c.value.map((e) => ({
2041
+ })), t = Ac.value.map((e) => ({
1992
2042
  name: e.name,
1993
2043
  color: e.color,
1994
2044
  scale: e.individualScale,
@@ -1998,8 +2048,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
1998
2048
  scaleLabel: e.scaleLabel || "",
1999
2049
  id: e.id,
2000
2050
  yOffset: e.yOffset || 0,
2001
- individualHeight: e.individualHeight || Y.value.height
2002
- })), n = vc.value.map((e) => ({
2051
+ individualHeight: e.individualHeight || J.value.height
2052
+ })), n = $.value.map((e) => ({
2003
2053
  name: e.name,
2004
2054
  color: e.color,
2005
2055
  scale: e.individualScale,
@@ -2009,15 +2059,15 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2009
2059
  scaleLabel: e.scaleLabel || "",
2010
2060
  id: e.id,
2011
2061
  yOffset: e.yOffset || 0,
2012
- individualHeight: e.individualHeight || Y.value.height
2013
- })), r = V.value.useIndividualScale && !V.value.isStacked ? Object.values(Q.value) : [
2062
+ individualHeight: e.individualHeight || J.value.height
2063
+ })), r = V.value.useIndividualScale && !V.value.isStacked ? Object.values(Z.value) : [
2014
2064
  ...e,
2015
2065
  ...t,
2016
2066
  ...n
2017
2067
  ], i = r.flatMap((e) => e).length;
2018
2068
  return r.flatMap((e, t) => {
2019
2069
  let n = 0;
2020
- n = V.value.isStacked ? J.value ? Y.value?.right : Y.value?.left : J.value ? Y.value?.right + mo() * t : Y.value?.left / i * (t + 1);
2070
+ n = V.value.isStacked ? q.value ? J.value?.right : J.value?.left : q.value ? J.value?.right + Do() * t : J.value?.left / i * (t + 1);
2021
2071
  let r = V.value.useIndividualScale && !V.value.isStacked ? e.unique ? e.name : e.groupName : e.name;
2022
2072
  return {
2023
2073
  unique: e.unique,
@@ -2031,7 +2081,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2031
2081
  individualHeight: e.individualHeight,
2032
2082
  x: n,
2033
2083
  yLabels: e.scaleYLabels || e.scale.ticks.map((t) => ({
2034
- y: es({
2084
+ y: ps({
2035
2085
  value: t,
2036
2086
  scaleMin: e.scale.min,
2037
2087
  scaleMax: e.scale.max,
@@ -2042,14 +2092,14 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2042
2092
  }))
2043
2093
  };
2044
2094
  });
2045
- }), bc = b(() => {
2095
+ }), Mc = b(() => {
2046
2096
  let e = B.value.line.interLine || {}, t = e.pairs || [], n = e.colors || [];
2047
2097
  if (!t.length) return [];
2048
2098
  let r = [];
2049
2099
  return t.forEach((e, t) => {
2050
2100
  let [i, a] = Array.isArray(e) ? e : [e.a, e.b];
2051
2101
  if (!i || !a) return;
2052
- let o = $.value.find((e) => e.name === i), s = $.value.find((e) => e.name === a);
2102
+ let o = Q.value.find((e) => e.name === i), s = Q.value.find((e) => e.name === a);
2053
2103
  if (!o || !s || o.type !== "line" || s.type !== "line") return;
2054
2104
  let c = n?.[t]?.[0] ?? o.color, l = n?.[t]?.[1] ?? s.color;
2055
2105
  ue({
@@ -2068,80 +2118,80 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2068
2118
  });
2069
2119
  });
2070
2120
  }), r;
2071
- }), xc = b(() => ({
2072
- timeLabel: X.value[R.value],
2073
- datapoint: rc.value,
2121
+ }), Nc = b(() => ({
2122
+ timeLabel: Y.value[R.value],
2123
+ datapoint: gc.value,
2074
2124
  seriesIndex: R.value,
2075
- series: no.value,
2076
- bars: _c.value,
2077
- lines: $.value,
2078
- plots: vc.value,
2125
+ series: go.value,
2126
+ bars: Ac.value,
2127
+ lines: Q.value,
2128
+ plots: $.value,
2079
2129
  config: B.value
2080
- })), Sc = E({
2130
+ })), Pc = E({
2081
2131
  months: [],
2082
2132
  shortMonths: [],
2083
2133
  days: [],
2084
2134
  shortDays: []
2085
- }), Cc = 0;
2135
+ }), Fc = 0;
2086
2136
  vt(() => {
2087
- let e = ++Cc, t = B.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
2137
+ let e = ++Fc, t = B.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
2088
2138
  (async () => {
2089
2139
  let n = await je(t.locale).catch(() => je("en"));
2090
- e === Cc && (Sc.value = n.data);
2140
+ e === Fc && (Pc.value = n.data);
2091
2141
  })();
2092
2142
  });
2093
- let wc = b(() => {
2143
+ let Ic = b(() => {
2094
2144
  let e = B.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t = Ae({
2095
2145
  useUTC: e.useUTC,
2096
- locale: Sc.value,
2146
+ locale: Pc.value,
2097
2147
  januaryAsYear: e.januaryAsYear
2098
2148
  });
2099
2149
  return (e, n) => {
2100
2150
  let r = B.value.chart.grid.labels.xAxisLabels.values?.[e];
2101
2151
  return r == null ? "" : t.formatDate(new Date(r), n);
2102
2152
  };
2103
- }), Tc = b(() => (B.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
2104
- text: wc.value(t, B.value.chart.zoom.timeFormat),
2153
+ }), Lc = b(() => (B.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
2154
+ text: Ic.value(t, B.value.chart.zoom.timeFormat),
2105
2155
  absoluteIndex: t
2106
- }))), Ec = b(() => {
2107
- let e = "", t = rc.value.map((e) => e.value).filter((e) => ve(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = q.value ? { text: _(B.value.chart.grid.labels.xAxis.formatter, ms.value[0]?.point.raw?.x ?? ms.value[0]?.point.x, s({
2108
- v: ms.value[0]?.point.raw?.x ?? ms.value[0]?.point.x,
2156
+ }))), Rc = b(() => {
2157
+ let e = "", t = gc.value.map((e) => e.value).filter((e) => ve(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = K.value ? { text: _(B.value.chart.grid.labels.xAxis.formatter, Ds.value[0]?.point.raw?.x ?? Ds.value[0]?.point.x, s({
2158
+ v: Ds.value[0]?.point.raw?.x ?? Ds.value[0]?.point.x,
2109
2159
  r: B.value.chart.tooltip.roundingValue
2110
2160
  }), {
2111
2161
  datapoint: null,
2112
2162
  serriesIndex: null
2113
- }) } : X.value[R.value], r = B.value.chart.tooltip.customFormat;
2163
+ }) } : Y.value[R.value], r = B.value.chart.tooltip.customFormat;
2114
2164
  if (xe(r) && be(() => r({
2115
2165
  absoluteIndex: R.value + W.value.start,
2116
2166
  seriesIndex: R.value,
2117
- datapoint: rc.value,
2118
- series: no.value,
2119
- bars: _c.value,
2120
- lines: $.value,
2121
- plots: vc.value,
2167
+ datapoint: gc.value,
2168
+ series: go.value,
2169
+ bars: Ac.value,
2170
+ lines: Q.value,
2171
+ plots: $.value,
2122
2172
  config: B.value,
2123
2173
  dateLabel: n
2124
2174
  }))) return r({
2125
2175
  absoluteIndex: R.value + W.value.start,
2126
2176
  seriesIndex: R.value,
2127
- datapoint: rc.value,
2128
- series: no.value,
2129
- bars: _c.value,
2130
- lines: $.value,
2131
- plots: vc.value,
2177
+ datapoint: gc.value,
2178
+ series: go.value,
2179
+ bars: Ac.value,
2180
+ lines: Q.value,
2181
+ plots: $.value,
2132
2182
  config: B.value,
2133
2183
  dateLabel: n
2134
2184
  });
2135
2185
  if (n && n.text && B.value.chart.tooltip.showTimeLabel) {
2136
- let t = wc.value(R.value + W.value.start, B.value.chart.tooltip.timeFormat);
2137
- q.value || (e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${B.value.chart.tooltip.borderColor}; width:100%">${B.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !B.value.chart.tooltip.useDefaultTimeFormat ? t : n.text}</div>`);
2186
+ let t = Ic.value(R.value + W.value.start, B.value.chart.tooltip.timeFormat);
2187
+ K.value || (e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${B.value.chart.tooltip.borderColor}; width:100%">${B.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !B.value.chart.tooltip.useDefaultTimeFormat ? t : n.text}</div>`);
2138
2188
  }
2139
- return rc.value.forEach((r) => {
2189
+ return gc.value.forEach((r) => {
2140
2190
  if (ve(r.value)) {
2141
2191
  let a = "", o = "";
2142
- switch (Li.value[r.type]) {
2192
+ switch (Yi.value[r.type]) {
2143
2193
  case "bar":
2144
- a = `<svg viewBox="0 0 40 40" height="14" width="14">${pi.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${r.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${pi.pattern ? `url(#pattern_${F.value}_${r.slotAbsoluteIndex}` : r.color}" /></svg>`;
2194
+ a = `<svg viewBox="0 0 40 40" height="14" width="14">${Ti.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${r.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${Ti.pattern ? `url(#pattern_${F.value}_${r.slotAbsoluteIndex}` : r.color}" /></svg>`;
2145
2195
  break;
2146
2196
  case "line":
2147
2197
  !r.shape || ![
@@ -2288,13 +2338,13 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2288
2338
  v: r.value,
2289
2339
  s: r.suffix,
2290
2340
  r: B.value.chart.tooltip.roundingValue
2291
- }), { datapoint: r }) : "", l = B.value.chart.tooltip.showValue ? n.text : "", u = q.value ? `
2341
+ }), { datapoint: r }) : "", l = B.value.chart.tooltip.showValue ? n.text : "", u = K.value ? `
2292
2342
  <span>${B.value.chart.grid.labels.axis.xLabel || "X"}: </span>
2293
2343
  <span>${l}</span>,
2294
2344
  <span>${B.value.chart.grid.labels.axis.yLabel || "Y"}: </span>
2295
2345
  <span>${c}</span>
2296
2346
  ` : c;
2297
- q.value ? e += `
2347
+ K.value ? e += `
2298
2348
  <div style="display:flex;flex-direction:column;">
2299
2349
  <div style="display:flex; flex-direction:row; gap:3px;">
2300
2350
  <div style="width:20px">${a}</div>
@@ -2311,34 +2361,34 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2311
2361
  })})` : ""}</div>`, B.value.chart.comments.showInTooltip && r.comments.length && r.comments.slice(W.value.start, W.value.end)[R.value] && (e += `<div class="vue-data-ui-tooltip-comment" style="background:${r.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${r.comments.slice(W.value.start, W.value.end)[R.value]}</div>`);
2312
2362
  }
2313
2363
  }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${B.value.chart.tooltip.color}">${e}</div>`;
2314
- }), Dc = b(() => {
2315
- if (to.value.length === 0) return {
2364
+ }), zc = b(() => {
2365
+ if (ho.value.length === 0) return {
2316
2366
  head: [],
2317
2367
  body: [],
2318
2368
  config: {},
2319
2369
  columnNames: []
2320
2370
  };
2321
- let e = ro.value.map((e) => ({
2371
+ let e = _o.value.map((e) => ({
2322
2372
  label: e.name,
2323
2373
  color: e.color,
2324
2374
  type: e.type
2325
2375
  })), t = [];
2326
- return X.value.forEach((e, n) => {
2327
- let r = B.value.table.useDefaultTimeFormat ? [e.text] : [wc.value(n + W.value.start, B.value.table.timeFormat)];
2328
- ro.value.forEach((e) => {
2329
- r.push(Jo(e.absoluteValues[n]) ? Number(e.absoluteValues[n].toFixed(B.value.table.rounding)) : "");
2376
+ return Y.value.forEach((e, n) => {
2377
+ let r = B.value.table.useDefaultTimeFormat ? [e.text] : [Ic.value(n + W.value.start, B.value.table.timeFormat)];
2378
+ _o.value.forEach((e) => {
2379
+ r.push(ss(e.absoluteValues[n]) ? Number(e.absoluteValues[n].toFixed(B.value.table.rounding)) : "");
2330
2380
  }), t.push(r);
2331
2381
  }), {
2332
2382
  head: e,
2333
2383
  body: t
2334
2384
  };
2335
- }), Oc = b(() => {
2336
- let e = B.value.table.showSum, t = [""].concat(ro.value.map((e) => e.name));
2385
+ }), Bc = b(() => {
2386
+ let e = B.value.table.showSum, t = [""].concat(_o.value.map((e) => e.name));
2337
2387
  e && (t = t.concat(" <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>"));
2338
2388
  let n = [];
2339
- for (let t = 0; t < Z.value; t += 1) {
2340
- let r = ro.value.map((e) => e.absoluteValues[t] ?? 0).reduce((e, t) => e + t, 0);
2341
- n.push([B.value.table.useDefaultTimeFormat ? X.value[t]?.text ?? "-" : wc.value(t + W.value.start, B.value.table.timeFormat)].concat(ro.value.map((e) => _(e.type === "line" ? B.value.line.labels.formatter : e.type === "bar" ? B.value.bar.labels.formatter : B.value.plot.labels.formatter, e.absoluteValues[t] ?? 0, s({
2389
+ for (let t = 0; t < X.value; t += 1) {
2390
+ let r = _o.value.map((e) => e.absoluteValues[t] ?? 0).reduce((e, t) => e + t, 0);
2391
+ n.push([B.value.table.useDefaultTimeFormat ? Y.value[t]?.text ?? "-" : Ic.value(t + W.value.start, B.value.table.timeFormat)].concat(_o.value.map((e) => _(e.type === "line" ? B.value.line.labels.formatter : e.type === "bar" ? B.value.bar.labels.formatter : B.value.plot.labels.formatter, e.absoluteValues[t] ?? 0, s({
2342
2392
  p: e.prefix || B.value.chart.labels.prefix,
2343
2393
  v: e.absoluteValues[t] ?? 0,
2344
2394
  s: e.suffix || B.value.chart.labels.suffix,
@@ -2357,7 +2407,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2357
2407
  outline: B.value.table.td.outline
2358
2408
  },
2359
2409
  breakpoint: B.value.table.responsiveBreakpoint
2360
- }, i = [B.value.table.columnNames.period].concat(ro.value.map((e) => e.name), B.value.table.columnNames.total);
2410
+ }, i = [B.value.table.columnNames.period].concat(_o.value.map((e) => e.name), B.value.table.columnNames.total);
2361
2411
  return {
2362
2412
  head: t,
2363
2413
  body: n,
@@ -2365,21 +2415,21 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2365
2415
  colNames: i
2366
2416
  };
2367
2417
  });
2368
- function kc(e = null) {
2418
+ function Vc(e = null) {
2369
2419
  let t = [
2370
2420
  [B.value.chart.title.text],
2371
2421
  [B.value.chart.title.subtitle.text],
2372
2422
  [""]
2373
- ], n = ["", ...Dc.value.head.map((e) => e.label)], r = Dc.value.body, i = oe(t.concat([n]).concat(r));
2423
+ ], n = ["", ...zc.value.head.map((e) => e.label)], r = zc.value.body, i = oe(t.concat([n]).concat(r));
2374
2424
  e ? e(i) : u({
2375
2425
  csvContent: i,
2376
2426
  title: B.value.chart.title.text || "vue-ui-xy"
2377
2427
  });
2378
2428
  }
2379
- function Ac(e, t = null) {
2380
- if (io.value) return;
2381
- Bi.value = e;
2382
- let n = ro.value.map((e) => ({
2429
+ function Hc(e, t = null) {
2430
+ if (vo.value) return;
2431
+ Qi.value = e;
2432
+ let n = _o.value.map((e) => ({
2383
2433
  name: e.name,
2384
2434
  value: [
2385
2435
  null,
@@ -2397,25 +2447,25 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2397
2447
  seriesIndex: t + W.value.start
2398
2448
  }));
2399
2449
  }
2400
- function jc() {
2450
+ function Uc() {
2401
2451
  V.value.showTable = !V.value.showTable;
2402
2452
  }
2403
- function Mc() {
2453
+ function Wc() {
2404
2454
  V.value.dataLabels.show = !V.value.dataLabels.show;
2405
2455
  }
2406
- function Nc() {
2456
+ function Gc() {
2407
2457
  V.value.showTooltip = !V.value.showTooltip;
2408
2458
  }
2409
- function Pc(e) {
2410
- zi.value = e, Hi.value += 1;
2459
+ function Kc(e) {
2460
+ Zi.value = e, ea.value += 1;
2411
2461
  }
2412
- function Fc() {
2462
+ function qc() {
2413
2463
  if (!B.value.responsiveProportionalSizing) {
2414
- z.value.dataLabels = B.value.chart.grid.labels.fontSize, z.value.yAxis = B.value.chart.grid.labels.axis.fontSize, z.value.xAxis = B.value.chart.grid.labels.xAxisLabels.fontSize, z.value.plotLabels = B.value.chart.labels.fontSize, ya.value.plot = B.value.plot.radius, ya.value.line = B.value.line.radius;
2464
+ z.value.dataLabels = B.value.chart.grid.labels.fontSize, z.value.yAxis = B.value.chart.grid.labels.axis.fontSize, z.value.xAxis = B.value.chart.grid.labels.xAxisLabels.fontSize, z.value.plotLabels = B.value.chart.labels.fontSize, ja.value.plot = B.value.plot.radius, ja.value.line = B.value.line.radius;
2415
2465
  return;
2416
2466
  }
2417
2467
  z.value.dataLabels = ke({
2418
- relator: Pi.value,
2468
+ relator: Ki.value,
2419
2469
  adjuster: 400,
2420
2470
  source: B.value.chart.grid.labels.fontSize,
2421
2471
  threshold: 10,
@@ -2438,13 +2488,13 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2438
2488
  source: B.value.chart.labels.fontSize,
2439
2489
  threshold: 10,
2440
2490
  fallback: 10
2441
- }), ya.value.plot = ke({
2491
+ }), ja.value.plot = ke({
2442
2492
  relator: N.value,
2443
2493
  adjuster: 800,
2444
2494
  source: B.value.plot.radius,
2445
2495
  threshold: 1,
2446
2496
  fallback: 1
2447
- }), ya.value.line = ke({
2497
+ }), ja.value.line = ke({
2448
2498
  relator: N.value,
2449
2499
  adjuster: 800,
2450
2500
  source: B.value.line.radius,
@@ -2452,58 +2502,58 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2452
2502
  fallback: 1
2453
2503
  });
2454
2504
  }
2455
- function Ic() {
2505
+ function Jc() {
2456
2506
  if (r(j.dataset) ? (ce({
2457
2507
  componentName: "VueUiXy",
2458
2508
  type: "dataset",
2459
- debug: Ta.value
2460
- }), ka.value = !0) : j.dataset.forEach((e, t) => {
2509
+ debug: La.value
2510
+ }), Va.value = !0) : j.dataset.forEach((e, t) => {
2461
2511
  [null, void 0].includes(e.name) && (ce({
2462
2512
  componentName: "VueUiXy",
2463
2513
  type: "datasetSerieAttribute",
2464
2514
  property: "name (string)",
2465
2515
  index: t,
2466
- debug: Ta.value
2467
- }), ka.value = !0);
2468
- }), Ta.value && j.dataset.forEach((e) => {
2516
+ debug: La.value
2517
+ }), Va.value = !0);
2518
+ }), La.value && j.dataset.forEach((e) => {
2469
2519
  e.series.forEach((t, n) => {
2470
2520
  ve(t) || console.warn(`VueUiXy has detected an unsafe value in your dataset:\n-----> The serie '${e.name}' contains the value '${t}' at index ${n}.\n'${t}' was converted to null to allow the chart to display.`);
2471
2521
  });
2472
- }), r(j.dataset) || (ka.value = B.value.loading), qi.value = B.value.chart.userOptions.showOnChartHover, Ji.value = B.value.chart.userOptions.keepStateOnChartLeave, Yi.value = !B.value.chart.userOptions.showOnChartHover, wa(), B.value.responsive) {
2473
- let e = vi.value.parentNode;
2474
- Ai.value && (Ai.value.unobserve(ji.value), Ai.value.disconnect());
2522
+ }), r(j.dataset) || (Va.value = B.value.loading), aa.value = B.value.chart.userOptions.showOnChartHover, oa.value = B.value.chart.userOptions.keepStateOnChartLeave, sa.value = !B.value.chart.userOptions.showOnChartHover, Ia(), B.value.responsive) {
2523
+ let e = Ai.value.parentNode;
2524
+ Hi.value && (Hi.value.unobserve(Ui.value), Hi.value.disconnect());
2475
2525
  let { height: t, width: n } = e.getBoundingClientRect(), r = null, i = 0;
2476
- B.value.chart.title.show && yi.value && (r = yi.value, i = r.getBoundingClientRect().height);
2526
+ B.value.chart.title.show && ji.value && (r = ji.value, i = r.getBoundingClientRect().height);
2477
2527
  let a = null, o = 0;
2478
- B.value.chart.zoom.show && U.value > 6 && Sa.value && bi.value && bi.value.$el && (a = bi.value.$el, o = a.getBoundingClientRect().height);
2528
+ B.value.chart.zoom.show && U.value > 6 && Pa.value && Mi.value && Mi.value.$el && (a = Mi.value.$el, o = a.getBoundingClientRect().height);
2479
2529
  let s = null, c = 0;
2480
- B.value.chart.legend.show && xi.value && (s = xi.value, c = s.getBoundingClientRect().height);
2530
+ B.value.chart.legend.show && Ni.value && (s = Ni.value, c = s.getBoundingClientRect().height);
2481
2531
  let l = 0;
2482
- Si.value && (l = Si.value.getBoundingClientRect().height);
2532
+ Pi.value && (l = Pi.value.getBoundingClientRect().height);
2483
2533
  let u = 0;
2484
- Ci.value && (u = Ci.value.getBoundingClientRect().height), Pi.value = t - i - c - o - l - u - 12, N.value = n, Fi.value = `0 0 ${N.value < 0 ? 10 : N.value} ${Pi.value < 0 ? 10 : Pi.value}`, Fc();
2534
+ Fi.value && (u = Fi.value.getBoundingClientRect().height), Ki.value = t - i - c - o - l - u - 12, N.value = n, qi.value = `0 0 ${N.value < 0 ? 10 : N.value} ${Ki.value < 0 ? 10 : Ki.value}`, qc();
2485
2535
  let ee = new ResizeObserver((e) => {
2486
- for (let t of e) i = B.value.chart.title.show && yi.value ? yi.value.getBoundingClientRect().height : 0, o = bi.value && bi.value.$el ? bi.value.$el.getBoundingClientRect().height : 0, c = xi.value ? xi.value.getBoundingClientRect().height : 0, l = Si.value ? Si.value.getBoundingClientRect().height : 0, u = Ci.value ? Ci.value.getBoundingClientRect().height : 0, requestAnimationFrame(() => {
2487
- Pi.value = t.contentRect.height - i - c - o - l - u - 12, N.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, Fi.value = `0 0 ${N.value < 0 ? 10 : N.value} ${Pi.value < 0 ? 10 : Pi.value}`, Fc(), ua(), fa();
2536
+ for (let t of e) i = B.value.chart.title.show && ji.value ? ji.value.getBoundingClientRect().height : 0, o = Mi.value && Mi.value.$el ? Mi.value.$el.getBoundingClientRect().height : 0, c = Ni.value ? Ni.value.getBoundingClientRect().height : 0, l = Pi.value ? Pi.value.getBoundingClientRect().height : 0, u = Fi.value ? Fi.value.getBoundingClientRect().height : 0, requestAnimationFrame(() => {
2537
+ Ki.value = t.contentRect.height - i - c - o - l - u - 12, N.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, qi.value = `0 0 ${N.value < 0 ? 10 : N.value} ${Ki.value < 0 ? 10 : Ki.value}`, qc(), Sa(), wa();
2488
2538
  });
2489
2539
  });
2490
- Ai.value = ee, ji.value = e, ee.observe(e);
2491
- } else Pi.value = B.value.chart.height, N.value = B.value.chart.width, z.value.dataLabels = B.value.chart.grid.labels.fontSize, z.value.yAxis = B.value.chart.grid.labels.axis.fontSize, z.value.xAxis = B.value.chart.grid.labels.xAxisLabels.fontSize, z.value.plotLabels = B.value.chart.labels.fontSize, ya.value.plot = B.value.plot.radius, ya.value.line = B.value.line.radius, Fi.value = `0 0 ${N.value} ${Pi.value}`;
2492
- ua(), fa();
2540
+ Hi.value = ee, Ui.value = e, ee.observe(e);
2541
+ } else Ki.value = B.value.chart.height, N.value = B.value.chart.width, z.value.dataLabels = B.value.chart.grid.labels.fontSize, z.value.yAxis = B.value.chart.grid.labels.axis.fontSize, z.value.xAxis = B.value.chart.grid.labels.xAxisLabels.fontSize, z.value.plotLabels = B.value.chart.labels.fontSize, ja.value.plot = B.value.plot.radius, ja.value.line = B.value.line.radius, qi.value = `0 0 ${N.value} ${Ki.value}`;
2542
+ Sa(), wa();
2493
2543
  }
2494
- function Lc(e) {
2495
- Ii.value = {
2544
+ function Yc(e) {
2545
+ Ji.value = {
2496
2546
  x: e.clientX,
2497
2547
  y: e.clientY
2498
2548
  };
2499
2549
  }
2500
2550
  ut(() => {
2501
- Ic(), Uo(), document.addEventListener("mousemove", Lc, { passive: !0 }), document.addEventListener("scroll", yo, { passive: !0 });
2551
+ Jc(), ns(), document.addEventListener("mousemove", Yc, { passive: !0 }), document.addEventListener("scroll", Mo, { passive: !0 });
2502
2552
  }), lt(() => {
2503
- document.removeEventListener("scroll", yo, { passive: !0 }), document.removeEventListener("mousemove", Lc, { passive: !0 }), Ai.value &&= (Ai.value.unobserve(ji.value), Ai.value.disconnect(), null);
2553
+ document.removeEventListener("scroll", Mo, { passive: !0 }), document.removeEventListener("mousemove", Yc, { passive: !0 }), Hi.value &&= (Hi.value.unobserve(Ui.value), Hi.value.disconnect(), null);
2504
2554
  }), Ve({
2505
- timeLabelsEls: Di,
2506
- timeLabels: X,
2555
+ timeLabelsEls: zi,
2556
+ timeLabels: Y,
2507
2557
  slicer: W,
2508
2558
  configRef: B,
2509
2559
  rotationPath: [
@@ -2521,35 +2571,35 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2521
2571
  "autoRotate",
2522
2572
  "enable"
2523
2573
  ],
2524
- isAutoSize: Va,
2525
- height: Pi,
2574
+ isAutoSize: eo,
2575
+ height: Ki,
2526
2576
  width: N,
2527
2577
  rotation: B.value.chart.grid.labels.xAxisLabels.autoRotate.angle
2528
2578
  });
2529
- let Rc = E(!1), zc = E(null), Bc = E(200), Vc = b(() => R.value ?? I.value ?? 0), Hc = b(() => {
2530
- if (!q.value) return null;
2531
- if (g(na.value)) return Number(na.value);
2532
- let e = ms.value[0];
2579
+ let Xc = E(!1), Zc = E(null), Qc = E(200), $c = b(() => R.value ?? I.value ?? 0), el = b(() => {
2580
+ if (!K.value) return null;
2581
+ if (g(ma.value)) return Number(ma.value);
2582
+ let e = Ds.value[0];
2533
2583
  return g(e?.point?.x) ? Number(e.point.x) : null;
2534
2584
  });
2535
- function Uc() {
2536
- let e = Math.ceil(Bc.value || 200);
2585
+ function tl() {
2586
+ let e = Math.ceil(Qc.value || 200);
2537
2587
  return Math.min(Math.max(e, 1), 200);
2538
2588
  }
2539
- function Wc() {
2540
- let e = Uc(), t = (q.value && g(Hc.value) ? dc({ x: Hc.value }) : Hs(Vc.value)) - e / 2 - (200 - e) / 2, n = Y.value?.left - (200 - e) / 2, r = Y.value?.right - (200 + e) / 2;
2589
+ function nl() {
2590
+ let e = tl(), t = (K.value && g(el.value) ? wc({ x: el.value }) : tc($c.value)) - e / 2 - (200 - e) / 2, n = J.value?.left - (200 - e) / 2, r = J.value?.right - (200 + e) / 2;
2541
2591
  return v(Math.max(n, Math.min(t, r)));
2542
2592
  }
2543
2593
  ut(() => {
2544
2594
  let e = null, t = null, n = (e) => {
2545
2595
  cancelAnimationFrame(t), t = requestAnimationFrame(() => {
2546
- Bc.value = Math.min(Math.max(Math.ceil(e || 0), 1), 200);
2596
+ Qc.value = Math.min(Math.max(Math.ceil(e || 0), 1), 200);
2547
2597
  });
2548
2598
  }, r = new ResizeObserver((t) => {
2549
2599
  let r = t.find((t) => t.target === e) || t[0];
2550
2600
  r && n(r.contentRect.width || 200);
2551
2601
  }), i = vt((t) => {
2552
- let i = zc.value;
2602
+ let i = Zc.value;
2553
2603
  e && e !== i && (r.unobserve(e), e = null), i && i !== e && (ot(() => {
2554
2604
  i.offsetParent !== null && n(i.offsetWidth || i.getBoundingClientRect().width || 200);
2555
2605
  }), r.observe(i), e = i), t(() => {
@@ -2562,26 +2612,26 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2562
2612
  } catch {}
2563
2613
  });
2564
2614
  });
2565
- let Gc = b(() => {
2566
- if (q.value) {
2567
- if (!Number.isFinite(Number(Hc.value))) return "";
2615
+ let rl = b(() => {
2616
+ if (K.value) {
2617
+ if (!Number.isFinite(Number(el.value))) return "";
2568
2618
  } else if ([null, void 0].includes(R.value) && [null, void 0].includes(I.value)) return "";
2569
2619
  let e = (R.value == null ? 0 : R.value) || (I.value == null ? 0 : I.value), t = B.value.chart.timeTag.customFormat;
2570
- if (Rc.value = !1, q.value) {
2571
- let e = Hc.value;
2620
+ if (Xc.value = !1, K.value) {
2621
+ let e = el.value;
2572
2622
  if (xe(t)) try {
2573
2623
  let n = t({
2574
2624
  absoluteIndex: e,
2575
2625
  seriesIndex: e,
2576
- datapoint: rc.value,
2577
- bars: _c.value,
2578
- lines: $.value,
2579
- plots: vc.value,
2626
+ datapoint: gc.value,
2627
+ bars: Ac.value,
2628
+ lines: Q.value,
2629
+ plots: $.value,
2580
2630
  config: B.value
2581
2631
  });
2582
- if (typeof n == "string") return Rc.value = !0, n;
2632
+ if (typeof n == "string") return Xc.value = !0, n;
2583
2633
  } catch {
2584
- console.warn("Custom format cannot be applied on timeTag."), Rc.value = !1;
2634
+ console.warn("Custom format cannot be applied on timeTag."), Xc.value = !1;
2585
2635
  }
2586
2636
  return s({
2587
2637
  v: e,
@@ -2592,20 +2642,20 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2592
2642
  let n = t({
2593
2643
  absoluteIndex: e + W.value.start,
2594
2644
  seriesIndex: e,
2595
- datapoint: rc.value,
2596
- bars: _c.value,
2597
- lines: $.value,
2598
- plots: vc.value,
2645
+ datapoint: gc.value,
2646
+ bars: Ac.value,
2647
+ lines: Q.value,
2648
+ plots: $.value,
2599
2649
  config: B.value
2600
2650
  });
2601
- if (typeof n == "string") return Rc.value = !0, n;
2651
+ if (typeof n == "string") return Xc.value = !0, n;
2602
2652
  } catch {
2603
- console.warn("Custom format cannot be applied on timeTag."), Rc.value = !1;
2653
+ console.warn("Custom format cannot be applied on timeTag."), Xc.value = !1;
2604
2654
  }
2605
- if (!Rc.value) return [null, void 0].includes(X.value[e]) ? "" : B.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !B.value.chart.timeTag.useDefaultFormat ? wc.value(e + W.value.start, B.value.chart.timeTag.timeFormat) : X.value[e].text;
2655
+ if (!Xc.value) return [null, void 0].includes(Y.value[e]) ? "" : B.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !B.value.chart.timeTag.useDefaultFormat ? Ic.value(e + W.value.start, B.value.chart.timeTag.timeFormat) : Y.value[e].text;
2606
2656
  });
2607
- function Kc({ serie: e, plot: n, type: r }) {
2608
- if (!Jo(n.value)) return "";
2657
+ function il({ serie: e, plot: n, type: r }) {
2658
+ if (!ss(n.value)) return "";
2609
2659
  let i = s({
2610
2660
  p: e.prefix || B.value.chart.labels.prefix,
2611
2661
  v: n.value,
@@ -2613,7 +2663,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2613
2663
  r: B.value[r].labels.rounding
2614
2664
  });
2615
2665
  return t({
2616
- content: q.value && g(n.x) ? `x: ${s({
2666
+ content: K.value && g(n.x) ? `x: ${s({
2617
2667
  v: n.x,
2618
2668
  r: B.value.chart.grid.labels.xAxis.rounding
2619
2669
  })}\ny: ${i}` : _(B.value[r].labels.formatter, n.value, i, {
@@ -2626,84 +2676,113 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2626
2676
  y: 0
2627
2677
  });
2628
2678
  }
2629
- function qc({ plot: e }) {
2630
- let t = B.value.bar.labels.offsetY, n = Math.abs(ss(e)), r = e.value < 0, i = {
2631
- x: (V.value.useIndividualScale && V.value.isStacked ? e.x + cs.value.line / 2 : us(e) + ls() / 2 - Qs.value / 2) + B.value.bar.labels.offsetX,
2679
+ function al({ plot: e }) {
2680
+ let t = B.value.bar.labels.offsetY, n = Math.abs(bs(e)), r = e.value < 0, i = {
2681
+ x: (V.value.useIndividualScale && V.value.isStacked ? e.x + xs.value.line / 2 : Cs(e) + Ss() / 2 - dc.value / 2) + B.value.bar.labels.offsetX,
2632
2682
  y: v(e.y) + (B.value.bar.labels.alwaysOnTop ? t - (r ? n : 0) : e.value >= 0 ? t : -t * 3)
2633
2683
  };
2634
2684
  return `translate(${i.x}, ${i.y}) rotate(${B.value.bar.labels.rotation})`;
2635
2685
  }
2636
- function Jc({ plot: e, type: t }) {
2686
+ function ol({ plot: e, type: t }) {
2637
2687
  let n = B.value[t].labels.offsetY, r = {
2638
2688
  x: e.x + B.value[t].labels.offsetX,
2639
2689
  y: v(e.y) + (B.value[t].labels.alwaysOnTop || e.value >= 0 ? n : -n * 3)
2640
2690
  };
2641
2691
  return `translate(${r.x}, ${r.y}) rotate(${B.value[t].labels.rotation})`;
2642
2692
  }
2643
- function Yc({ plot: e, type: t }) {
2693
+ function sl({ plot: e, type: t }) {
2644
2694
  if (B.value[t].labels.textAnchor != null) return B.value[t].labels.textAnchor;
2645
2695
  let n = e.value >= 0;
2646
2696
  return B.value[t].labels.rotation === 0 ? "middle" : B.value[t].labels.alwaysOnTop || n ? "start" : "end";
2647
2697
  }
2648
- let Xc = b(() => q.value ? g(na.value) ? dc({ x: Number(na.value) }) : g(hs.value) ? hs.value : null : Hs((R.value === null ? 0 : R.value) || (I.value === null ? 0 : I.value)));
2649
- function Zc(e, t, n) {
2650
- return q.value ? ms.value.some((n) => n.datapoint.id === e.id && n.index === t.index) : R.value !== null && R.value === n || I.value !== null && I.value === n;
2698
+ let cl = b(() => K.value ? g(ma.value) ? wc({ x: Number(ma.value) }) : g(Os.value) ? Os.value : null : tc((R.value === null ? 0 : R.value) || (I.value === null ? 0 : I.value))), ll = b(() => B.value.chart.highlighter.crosshairs.show && Ko.value), ul = b(() => [
2699
+ ...Q.value,
2700
+ ...$.value,
2701
+ ...Ac.value
2702
+ ].flatMap((e) => (e.plots || []).filter((t, n) => pl(e, t, n)).filter((e) => ss(e.value)).map((t) => ({
2703
+ ...t,
2704
+ serie: e,
2705
+ x: v(t.x),
2706
+ y: v(t.y)
2707
+ })))), dl = b(() => {
2708
+ if (!ll.value) return null;
2709
+ if (K.value) {
2710
+ let e = Ds.value[0], t = e?.point?.raw?.x ?? e?.point?.x;
2711
+ return g(t) ? {
2712
+ x: cl.value,
2713
+ text: _(B.value.chart.grid.labels.xAxis.formatter, t, s({
2714
+ v: t,
2715
+ r: B.value.chart.tooltip.roundingValue
2716
+ }))
2717
+ } : null;
2718
+ }
2719
+ let e = R.value === null ? I.value : R.value;
2720
+ return e == null ? null : {
2721
+ x: tc(e),
2722
+ text: Y.value[e]?.text ?? ""
2723
+ };
2724
+ });
2725
+ function fl(e) {
2726
+ return B.value.chart.grid.labels.yAxis.position === "right" ? J.value.right : J.value.left;
2727
+ }
2728
+ function pl(e, t, n) {
2729
+ return K.value ? Ds.value.some((n) => n.datapoint.id === e.id && n.index === t.index) : R.value !== null && R.value === n || I.value !== null && I.value === n;
2651
2730
  }
2652
2731
  _t(() => j.dataset, (e) => {
2653
- if (Array.isArray(e) && e.length > 0 && (ka.value = !1), B.value.chart.zoom.keepState) {
2654
- if (U.value = Math.max(0, ...H.value.map((e) => Ma(e.series).length)), U.value > 0) {
2732
+ if (Array.isArray(e) && e.length > 0 && (Va.value = !1), B.value.chart.zoom.keepState) {
2733
+ if (U.value = Math.max(0, ...H.value.map((e) => Wa(e.series).length)), U.value > 0) {
2655
2734
  let e = W.value.start, t = W.value.end;
2656
- if (!zo.value || e === 0 && t === 0) Uo();
2735
+ if (!Qo.value || e === 0 && t === 0) ns();
2657
2736
  else {
2658
2737
  let n = Math.max(0, Math.min(e, U.value - 1)), r = Math.max(n + 1, Math.min(t, U.value));
2659
2738
  W.value = {
2660
2739
  start: n,
2661
2740
  end: r
2662
- }, G.value = {
2741
+ }, Ga.value = {
2663
2742
  start: n,
2664
2743
  end: r
2665
- }, Bo.value = 0, Vo.value = U.value;
2744
+ }, $o.value = 0, es.value = U.value;
2666
2745
  }
2667
2746
  }
2668
- } else U.value = Math.max(...H.value.map((e) => Ma(e.series).length)), W.value = {
2747
+ } else U.value = Math.max(...H.value.map((e) => Wa(e.series).length)), W.value = {
2669
2748
  start: 0,
2670
2749
  end: U.value
2671
2750
  };
2672
- Mi.value += 1, Ki.value += 1, ua(), fa(), Fa();
2751
+ Wi.value += 1, ia.value += 1, Sa(), wa(), Ja();
2673
2752
  }, { deep: !0 }), _t(() => j.config, (e) => {
2674
- Oa.value || (B.value = ba()), Ic(), Wi.value += 1, Ui.value += 1, wa(), ua(), fa(), B.value.chart.zoom.keepState && (U.value = Math.max(0, ...H.value.map((e) => Ma(e.series).length)), U.value > 0 && (!zo.value || W.value.start === 0 && W.value.end === 0) && Uo()), Fa();
2753
+ Ba.value || (B.value = Ma()), Jc(), na.value += 1, ta.value += 1, Ia(), Sa(), wa(), B.value.chart.zoom.keepState && (U.value = Math.max(0, ...H.value.map((e) => Wa(e.series).length)), U.value > 0 && (!Qo.value || W.value.start === 0 && W.value.end === 0) && ns()), Ja();
2675
2754
  }, { deep: !0 });
2676
- let Qc = E(!1);
2677
- function $c() {
2678
- let e = vi.value?.parentNode;
2755
+ let ml = E(!1);
2756
+ function hl() {
2757
+ let e = Ai.value?.parentNode;
2679
2758
  if (!e) {
2680
- Qc.value = !1;
2759
+ ml.value = !1;
2681
2760
  return;
2682
2761
  }
2683
2762
  let t = e.getBoundingClientRect();
2684
- Qc.value = t.width > 2 && t.height > 2;
2763
+ ml.value = t.width > 2 && t.height > 2;
2685
2764
  }
2686
2765
  ut(() => {
2687
- $c();
2766
+ hl();
2688
2767
  let e = new ResizeObserver(() => {
2689
- $c(), Qc.value && (Ic(), Fa(), B.value.chart.zoom.keepState || Uo());
2768
+ hl(), ml.value && (Jc(), Ja(), B.value.chart.zoom.keepState || ns());
2690
2769
  });
2691
- vi.value?.parentNode && e.observe(vi.value.parentNode);
2770
+ Ai.value?.parentNode && e.observe(Ai.value.parentNode);
2692
2771
  }), _t(B, () => {
2693
- wa();
2772
+ Ia();
2694
2773
  }, { immediate: !0 });
2695
- let el = b(() => {
2774
+ let gl = b(() => {
2696
2775
  let e = B.value.table.useDialog && !B.value.showTable, t = V.value.showTable;
2697
2776
  return {
2698
- component: e ? di : Je,
2777
+ component: e ? Ci : Je,
2699
2778
  title: `${B.value.chart.title.text}${B.value.chart.title.subtitle.text ? `: ${B.value.chart.title.subtitle.text}` : ""}`,
2700
2779
  props: e ? {
2701
2780
  backgroundColor: B.value.table.th.backgroundColor,
2702
2781
  color: B.value.table.th.color,
2703
2782
  headerColor: B.value.table.th.color,
2704
2783
  headerBg: B.value.table.th.backgroundColor,
2705
- isFullscreen: zi.value,
2706
- fullscreenParent: vi.value,
2784
+ isFullscreen: Zi.value,
2785
+ fullscreenParent: Ai.value,
2707
2786
  forcedWidth: Math.min(800, window.innerWidth * .8)
2708
2787
  } : {
2709
2788
  hideDetails: !0,
@@ -2723,59 +2802,59 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2723
2802
  };
2724
2803
  });
2725
2804
  _t(() => V.value.showTable, (e) => {
2726
- B.value.showTable || (e && B.value.table.useDialog && $i.value ? $i.value.open() : $i.value && $i.value.close && $i.value.close());
2805
+ B.value.showTable || (e && B.value.table.useDialog && da.value ? da.value.open() : da.value && da.value.close && da.value.close());
2727
2806
  });
2728
- function tl() {
2729
- V.value.showTable = !1, ki.value && ki.value.setTableIconState(!1);
2807
+ function _l() {
2808
+ V.value.showTable = !1, Vi.value && Vi.value.setTableIconState(!1);
2730
2809
  }
2731
- let nl = b(() => no.value.map((e) => ({
2810
+ let vl = b(() => go.value.map((e) => ({
2732
2811
  shape: e.type === "bar" ? "square" : e.shape ?? "circle",
2733
2812
  color: e.color,
2734
2813
  name: e.name
2735
- }))), rl = b(() => B.value.chart.backgroundColor), il = b(() => B.value.chart.legend), { exportSvg: al, getSvg: ol } = Le({
2814
+ }))), yl = b(() => B.value.chart.backgroundColor), bl = b(() => B.value.chart.legend), { exportSvg: xl, getSvg: Sl } = Le({
2736
2815
  svg: L,
2737
2816
  title: b(() => B.value.chart.title),
2738
- legend: il,
2739
- legendItems: nl,
2740
- backgroundColor: rl
2817
+ legend: bl,
2818
+ legendItems: vl,
2819
+ backgroundColor: yl
2741
2820
  });
2742
- async function sl({ isCb: e }) {
2743
- ta.value = !0, await ot();
2821
+ async function Cl({ isCb: e }) {
2822
+ pa.value = !0, await ot();
2744
2823
  try {
2745
2824
  if (e) {
2746
- let { blob: e, url: t, text: n, dataUrl: r } = await ol();
2825
+ let { blob: e, url: t, text: n, dataUrl: r } = await Sl();
2747
2826
  await Promise.resolve(B.value.chart.userOptions.callbacks.svg({
2748
2827
  blob: e,
2749
2828
  url: t,
2750
2829
  text: n,
2751
2830
  dataUrl: r
2752
2831
  }));
2753
- } else await Promise.resolve(al());
2832
+ } else await Promise.resolve(xl());
2754
2833
  } finally {
2755
- ta.value = !1;
2834
+ pa.value = !1;
2756
2835
  }
2757
2836
  }
2758
- function cl(e) {
2837
+ function wl(e) {
2759
2838
  if (e?.stage === "start") {
2760
- ea.value = !0;
2839
+ fa.value = !0;
2761
2840
  return;
2762
2841
  }
2763
2842
  if (e?.stage === "end") {
2764
- ea.value = !1;
2843
+ fa.value = !1;
2765
2844
  return;
2766
2845
  }
2767
- Ba();
2846
+ $a();
2768
2847
  }
2769
- async function ll() {
2770
- if (fi("copyAlt", {
2848
+ async function Tl() {
2849
+ if (wi("copyAlt", {
2771
2850
  config: {
2772
2851
  ...B.value,
2773
- formattedDates: X.value
2852
+ formattedDates: Y.value
2774
2853
  },
2775
2854
  dataset: {
2776
- lines: $.value,
2777
- bars: _c.value,
2778
- plots: vc.value
2855
+ lines: Q.value,
2856
+ bars: Ac.value,
2857
+ plots: $.value
2779
2858
  }
2780
2859
  }), !B.value.chart.userOptions.callbacks.altCopy) {
2781
2860
  console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
@@ -2784,90 +2863,90 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2784
2863
  await Promise.resolve(B.value.chart.userOptions.callbacks.altCopy({
2785
2864
  config: {
2786
2865
  ...B.value,
2787
- formattedDates: X.value
2866
+ formattedDates: Y.value
2788
2867
  },
2789
2868
  dataset: {
2790
- lines: $.value,
2791
- bars: _c.value,
2792
- plots: vc.value
2869
+ lines: Q.value,
2870
+ bars: Ac.value,
2871
+ plots: $.value
2793
2872
  }
2794
2873
  }));
2795
2874
  }
2796
- let ul = E(!1);
2797
- function dl() {
2798
- W.value.end > W.value.start && (ra.value = null), xo.value = !0, ul.value = !0;
2875
+ let El = E(!1);
2876
+ function Dl() {
2877
+ W.value.end > W.value.start && (ha.value = null), Po.value = !0, El.value = !0;
2799
2878
  }
2800
- function fl() {
2801
- ra.value = null, xs(), ul.value = !1, xo.value = !1;
2879
+ function Ol() {
2880
+ ha.value = null, Ps(), El.value = !1, Po.value = !1;
2802
2881
  }
2803
- function pl(e) {
2804
- if (!L.value || Ri.value || document.activeElement !== L.value) return;
2882
+ function kl(e) {
2883
+ if (!L.value || Xi.value || document.activeElement !== L.value) return;
2805
2884
  let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
2806
2885
  if (!t && !n || !W.value.end && W.value.end !== 0) return;
2807
2886
  let r = W.value.end - W.value.start;
2808
2887
  if (r <= 0) return;
2809
- if (e.preventDefault(), e.stopPropagation(), q.value) {
2810
- let e = gs.value.length;
2888
+ if (e.preventDefault(), e.stopPropagation(), K.value) {
2889
+ let e = ks.value.length;
2811
2890
  if (!e) return;
2812
- let r = ra.value;
2813
- r !== null && r >= 0 && r < e ? n ? (r += 1, r >= e && (r = 0)) : t && (--r, r < 0 && (r = e - 1)) : r = n ? 0 : e - 1, _s(r);
2891
+ let r = ha.value;
2892
+ r !== null && r >= 0 && r < e ? n ? (r += 1, r >= e && (r = 0)) : t && (--r, r < 0 && (r = e - 1)) : r = n ? 0 : e - 1, As(r);
2814
2893
  return;
2815
2894
  }
2816
- let i = ra.value, a = ps.value;
2817
- i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, ra.value = i, ml(i), Ac(!0, i);
2895
+ let i = ha.value, a = Es.value;
2896
+ i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, ha.value = i, Al(i), Hc(!0, i);
2818
2897
  }
2819
- function ml(e) {
2898
+ function Al(e) {
2820
2899
  let t = W.value.end - W.value.start;
2821
2900
  if (t <= 0) return;
2822
- let n = Y.value.width / t, r = d(Y.value.left + n * e + n / 2, Y.value.top + Y.value.height / 2, L.value);
2823
- r && (ia.value = r);
2901
+ let n = J.value.width / t, r = d(J.value.left + n * e + n / 2, J.value.top + J.value.height / 2, L.value);
2902
+ r && (ga.value = r);
2824
2903
  }
2825
- let hl = b(() => {
2826
- if (!Oc.value) return null;
2827
- let e = B.value.table.showSum, t = [B.value.table.columnNames.period].concat(ro.value.map((e) => e.name));
2904
+ let jl = b(() => {
2905
+ if (!Bc.value) return null;
2906
+ let e = B.value.table.showSum, t = [B.value.table.columnNames.period].concat(_o.value.map((e) => e.name));
2828
2907
  e && (t = t.concat(B.value.table.columnNames.total));
2829
- let n = Oc.value.body.slice(W.value.start, W.value.end);
2908
+ let n = Bc.value.body.slice(W.value.start, W.value.end);
2830
2909
  return {
2831
2910
  headers: t,
2832
2911
  rows: n
2833
2912
  };
2834
2913
  });
2835
2914
  return Ke({
2836
- getData: ws,
2837
- getImage: Ts,
2838
- generatePdf: za,
2839
- generateImage: Ba,
2840
- generateSvg: sl,
2841
- generateCsv: kc,
2842
- hideSeries: Ms,
2843
- showSeries: js,
2844
- toggleStack: Po,
2845
- toggleTable: jc,
2846
- toggleLabels: Mc,
2847
- toggleTooltip: Nc,
2848
- toggleAnnotator: Co,
2849
- toggleFullscreen: Pc,
2850
- copyAlt: ll,
2851
- resetZoom: qo
2915
+ getData: Ls,
2916
+ getImage: Rs,
2917
+ generatePdf: Qa,
2918
+ generateImage: $a,
2919
+ generateSvg: Cl,
2920
+ generateCsv: Vc,
2921
+ hideSeries: Gs,
2922
+ showSeries: Ws,
2923
+ toggleStack: qo,
2924
+ toggleTable: Uc,
2925
+ toggleLabels: Wc,
2926
+ toggleTooltip: Gc,
2927
+ toggleAnnotator: Io,
2928
+ toggleFullscreen: Kc,
2929
+ copyAlt: Tl,
2930
+ resetZoom: os
2852
2931
  }), (n, r) => (T(), S("div", {
2853
2932
  id: `vue-ui-xy_${F.value}`,
2854
- class: st(`vue-data-ui-component vue-ui-xy ${zi.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${B.value.useCssAnimation ? "" : "vue-ui-dna"}`),
2933
+ class: st(`vue-data-ui-component vue-ui-xy ${Zi.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${B.value.useCssAnimation ? "" : "vue-ui-dna"}`),
2855
2934
  ref_key: "chart",
2856
- ref: vi,
2935
+ ref: Ai,
2857
2936
  style: w(`background:${B.value.chart.backgroundColor}; color:${B.value.chart.color};width:100%;font-family:${B.value.chart.fontFamily};${B.value.responsive ? "height: 100%" : ""}`),
2858
- onMouseenter: r[6] ||= () => So(!0),
2859
- onMouseleave: r[7] ||= () => So(!1),
2860
- onClick: Ss
2937
+ onMouseenter: r[6] ||= () => Fo(!0),
2938
+ onMouseleave: r[7] ||= () => Fo(!1),
2939
+ onClick: Fs
2861
2940
  }, [
2862
2941
  C("div", {
2863
2942
  id: `chart-instructions-${F.value}`,
2864
2943
  class: "sr-only"
2865
2944
  }, [C("p", null, pt(B.value.a11y.translations.keyboardNavigation), 1)], 8, St),
2866
- hl.value?.rows?.length ? (T(), Qe(Xe, {
2945
+ jl.value?.rows?.length ? (T(), Qe(Xe, {
2867
2946
  key: 0,
2868
2947
  uid: F.value,
2869
- head: hl.value.headers,
2870
- body: hl.value.rows,
2948
+ head: jl.value.headers,
2949
+ body: jl.value.rows,
2871
2950
  notice: B.value.a11y.translations.tableAvailable,
2872
2951
  caption: B.value.a11y.translations.tableCaption
2873
2952
  }, null, 8, [
@@ -2877,14 +2956,14 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2877
2956
  "notice",
2878
2957
  "caption"
2879
2958
  ])) : x("", !0),
2880
- B.value.chart.userOptions.buttons.annotator && L.value ? (T(), Qe(k(ui), {
2959
+ B.value.chart.userOptions.buttons.annotator && L.value ? (T(), Qe(k(Si), {
2881
2960
  key: 1,
2882
2961
  svgRef: L.value,
2883
2962
  backgroundColor: B.value.chart.backgroundColor,
2884
2963
  color: B.value.chart.color,
2885
- active: Ri.value,
2886
- isCursorPointer: Ca.value,
2887
- onClose: Co
2964
+ active: Xi.value,
2965
+ isCursorPointer: Fa.value,
2966
+ onClose: Io
2888
2967
  }, {
2889
2968
  "annotator-action-close": A(() => [O(n.$slots, "annotator-action-close", {}, void 0, !0)]),
2890
2969
  "annotator-action-color": A(({ color: e }) => [O(n.$slots, "annotator-action-color", ct(it({ color: e })), void 0, !0)]),
@@ -2900,21 +2979,21 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2900
2979
  "active",
2901
2980
  "isCursorPointer"
2902
2981
  ])) : x("", !0),
2903
- Fs.value ? (T(), S("div", {
2982
+ Js.value ? (T(), S("div", {
2904
2983
  key: 2,
2905
2984
  ref_key: "noTitle",
2906
- ref: Ci,
2985
+ ref: Fi,
2907
2986
  class: "vue-data-ui-no-title-space",
2908
2987
  style: "height:36px; width: 100%; background:transparent"
2909
2988
  }, null, 512)) : x("", !0),
2910
2989
  B.value.chart.title.show ? (T(), S("div", {
2911
2990
  key: 3,
2912
2991
  ref_key: "chartTitle",
2913
- ref: yi,
2992
+ ref: ji,
2914
2993
  class: "vue-ui-xy-title",
2915
2994
  style: w(`font-family:${B.value.chart.fontFamily}`)
2916
2995
  }, [(T(), Qe(Ue, {
2917
- key: `title_${Wi.value}`,
2996
+ key: `title_${na.value}`,
2918
2997
  config: {
2919
2998
  title: {
2920
2999
  cy: "xy-div-title",
@@ -2927,14 +3006,14 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2927
3006
  }
2928
3007
  }, null, 8, ["config"]))], 4)) : x("", !0),
2929
3008
  C("div", { id: `legend-top-${F.value}` }, null, 8, Ct),
2930
- B.value.chart.userOptions.show && (Ji.value || Yi.value) ? (T(), Qe(k(oi), {
3009
+ B.value.chart.userOptions.show && (oa.value || sa.value) ? (T(), Qe(k(vi), {
2931
3010
  ref_key: "userOptionsRef",
2932
- ref: ki,
2933
- key: `user_options_${Hi.value}`,
3011
+ ref: Vi,
3012
+ key: `user_options_${ea.value}`,
2934
3013
  backgroundColor: B.value.chart.backgroundColor,
2935
3014
  color: B.value.chart.color,
2936
- isPrinting: k(La),
2937
- isImaging: k(Ra),
3015
+ isPrinting: k(Xa),
3016
+ isImaging: k(Za),
2938
3017
  uid: F.value,
2939
3018
  hasTooltip: B.value.chart.userOptions.buttons.tooltip && B.value.chart.tooltip.show,
2940
3019
  hasPdf: B.value.chart.userOptions.buttons.pdf,
@@ -2947,29 +3026,29 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
2947
3026
  hasFullscreen: B.value.chart.userOptions.buttons.fullscreen,
2948
3027
  hasAltCopy: B.value.chart.userOptions.buttons.altCopy,
2949
3028
  isStacked: V.value.isStacked,
2950
- isFullscreen: zi.value,
3029
+ isFullscreen: Zi.value,
2951
3030
  chartElement: n.$refs.chart,
2952
3031
  position: B.value.chart.userOptions.position,
2953
3032
  isTooltip: V.value.showTooltip,
2954
3033
  titles: { ...B.value.chart.userOptions.buttonTitles },
2955
3034
  hasAnnotator: B.value.chart.userOptions.buttons.annotator,
2956
- isAnnotation: Ri.value,
3035
+ isAnnotation: Xi.value,
2957
3036
  callbacks: B.value.chart.userOptions.callbacks,
2958
3037
  tableDialog: B.value.table.useDialog,
2959
3038
  printScale: B.value.chart.userOptions.print.scale,
2960
- isCursorPointer: Ca.value,
2961
- onToggleFullscreen: Pc,
2962
- onGeneratePdf: k(za),
2963
- onGenerateCsv: kc,
2964
- onGenerateImage: cl,
2965
- onGenerateSvg: sl,
2966
- onToggleTable: jc,
2967
- onToggleLabels: Mc,
2968
- onToggleStack: Po,
2969
- onToggleTooltip: Nc,
2970
- onToggleAnnotator: Co,
2971
- onCopyAlt: ll,
2972
- style: w({ visibility: Ji.value ? Yi.value ? "visible" : "hidden" : "visible" })
3039
+ isCursorPointer: Fa.value,
3040
+ onToggleFullscreen: Kc,
3041
+ onGeneratePdf: k(Qa),
3042
+ onGenerateCsv: Vc,
3043
+ onGenerateImage: wl,
3044
+ onGenerateSvg: Cl,
3045
+ onToggleTable: Uc,
3046
+ onToggleLabels: Wc,
3047
+ onToggleStack: qo,
3048
+ onToggleTooltip: Gc,
3049
+ onToggleAnnotator: Io,
3050
+ onCopyAlt: Tl,
3051
+ style: w({ visibility: oa.value ? sa.value ? "visible" : "hidden" : "visible" })
2973
3052
  }, $e({ _: 2 }, [
2974
3053
  n.$slots.menuIcon ? {
2975
3054
  name: "menuIcon",
@@ -3056,58 +3135,58 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3056
3135
  ref: L,
3057
3136
  xmlns: "http://www.w3.org/2000/svg",
3058
3137
  class: st([{
3059
- "vue-data-ui-fullscreen--on": zi.value,
3060
- "vue-data-ui-fulscreen--off": !zi.value
3138
+ "vue-data-ui-fullscreen--on": Zi.value,
3139
+ "vue-data-ui-fulscreen--off": !Zi.value
3061
3140
  }, "vue-ui-xy-svg vue-data-ui-svg"]),
3062
3141
  width: "100%",
3063
- viewBox: Fi.value,
3142
+ viewBox: qi.value,
3064
3143
  style: w({
3065
3144
  background: "transparent",
3066
3145
  color: B.value.chart.color,
3067
3146
  fontFamily: B.value.chart.fontFamily
3068
3147
  }),
3069
- "aria-label": Ns.value,
3148
+ "aria-label": Ks.value,
3070
3149
  "aria-describedby": `chart-instructions-${F.value}`,
3071
3150
  "aria-live": "polite",
3072
3151
  role: "img",
3073
3152
  tabindex: "0",
3074
3153
  preserveAspectRatio: "xMidYMid",
3075
- onMousemove: bs,
3076
- onMouseleave: xs,
3077
- onClick: Ss,
3078
- onFocus: dl,
3079
- onBlur: fl,
3080
- onKeydown: pl
3154
+ onMousemove: Ns,
3155
+ onMouseleave: Ps,
3156
+ onClick: Fs,
3157
+ onFocus: Dl,
3158
+ onBlur: Ol,
3159
+ onKeydown: kl
3081
3160
  }, [C("g", {
3082
3161
  ref_key: "G",
3083
- ref: wi,
3162
+ ref: Ii,
3084
3163
  class: "vue-data-ui-g"
3085
3164
  }, [
3086
- tt(k(li)),
3165
+ tt(k(xi)),
3087
3166
  n.$slots["chart-background"] ? (T(), S("foreignObject", {
3088
3167
  key: 0,
3089
- x: Math.max(0, Y.value?.left),
3090
- y: Y.value?.top,
3091
- width: Math.max(0, Y.value?.width),
3092
- height: Math.max(0, Y.value?.height),
3168
+ x: Math.max(0, J.value?.left),
3169
+ y: J.value?.top,
3170
+ width: Math.max(0, J.value?.width),
3171
+ height: Math.max(0, J.value?.height),
3093
3172
  style: { pointerEvents: "none" }
3094
3173
  }, [O(n.$slots, "chart-background", {}, void 0, !0)], 8, Et)) : x("", !0),
3095
- Z.value > 0 ? (T(), S("g", Dt, [
3174
+ X.value > 0 ? (T(), S("g", Dt, [
3096
3175
  C("g", Ot, [
3097
3176
  B.value.chart.grid.labels.xAxis.showBaseline ? (T(), S("line", {
3098
3177
  key: 0,
3099
3178
  stroke: B.value.chart.grid.stroke,
3100
3179
  "stroke-width": "1",
3101
- x1: Y.value?.left,
3102
- x2: Y.value?.right,
3103
- y1: k(h)(Y.value?.bottom),
3104
- y2: k(h)(Y.value?.bottom),
3180
+ x1: J.value?.left,
3181
+ x2: J.value?.right,
3182
+ y1: k(h)(J.value?.bottom),
3183
+ y2: k(h)(J.value?.bottom),
3105
3184
  "stroke-linecap": "round",
3106
3185
  style: { animation: "none !important" }
3107
3186
  }, null, 8, kt)) : x("", !0),
3108
- V.value.useIndividualScale ? B.value.chart.grid.showHorizontalLines ? (T(!0), S(y, { key: 2 }, D(yc.value, (e) => (T(), S("g", null, [e.id === M.value && e.yLabels.length ? (T(!0), S(y, { key: 0 }, D(e.yLabels, (t) => (T(), S("line", {
3109
- x1: Y.value?.left,
3110
- x2: Y.value?.right,
3187
+ V.value.useIndividualScale ? B.value.chart.grid.showHorizontalLines ? (T(!0), S(y, { key: 2 }, D(jc.value, (e) => (T(), S("g", null, [e.id === M.value && e.yLabels.length ? (T(!0), S(y, { key: 0 }, D(e.yLabels, (t) => (T(), S("line", {
3188
+ x1: J.value?.left,
3189
+ x2: J.value?.right,
3111
3190
  y1: k(h)(t.y),
3112
3191
  y2: k(h)(t.y),
3113
3192
  stroke: e.color,
@@ -3115,8 +3194,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3115
3194
  "stroke-linecap": "round",
3116
3195
  style: { animation: "none !important" }
3117
3196
  }, null, 8, Nt))), 256)) : e.yLabels.length ? (T(!0), S(y, { key: 1 }, D(e.yLabels, (e) => (T(), S("line", {
3118
- x1: Y.value?.left,
3119
- x2: Y.value?.right,
3197
+ x1: J.value?.left,
3198
+ x2: J.value?.right,
3120
3199
  y1: k(h)(e.y),
3121
3200
  y2: k(h)(e.y),
3122
3201
  stroke: B.value.chart.grid.stroke,
@@ -3128,15 +3207,15 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3128
3207
  class: "vue-ui-xy-y-axis",
3129
3208
  stroke: B.value.chart.grid.stroke,
3130
3209
  "stroke-width": "1",
3131
- x1: J.value ? Y.value?.right : Y.value?.left,
3132
- x2: J.value ? Y.value?.right : Y.value?.left,
3133
- y1: k(h)(Y.value?.top),
3134
- y2: k(h)(Y.value?.bottom),
3210
+ x1: q.value ? J.value?.right : J.value?.left,
3211
+ x2: q.value ? J.value?.right : J.value?.left,
3212
+ y1: k(h)(J.value?.top),
3213
+ y2: k(h)(J.value?.bottom),
3135
3214
  "stroke-linecap": "round",
3136
3215
  style: { animation: "none !important" }
3137
- }, null, 8, At)) : x("", !0), B.value.chart.grid.showHorizontalLines ? (T(), S("g", jt, [(T(!0), S(y, null, D(ic.value, (e) => (T(), S("line", {
3138
- x1: Y.value?.left,
3139
- x2: Y.value?.right,
3216
+ }, null, 8, At)) : x("", !0), B.value.chart.grid.showHorizontalLines ? (T(), S("g", jt, [(T(!0), S(y, null, D(_c.value, (e) => (T(), S("line", {
3217
+ x1: J.value?.left,
3218
+ x2: J.value?.right,
3140
3219
  y1: k(h)(e.y),
3141
3220
  y2: k(h)(e.y),
3142
3221
  stroke: B.value.chart.grid.stroke,
@@ -3145,21 +3224,21 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3145
3224
  style: { animation: "none !important" }
3146
3225
  }, null, 8, Mt))), 256))])) : x("", !0)], 64)),
3147
3226
  B.value.chart.grid.showVerticalLines ? (T(), S("g", Ft, [C("path", {
3148
- d: ho.value,
3227
+ d: Oo.value,
3149
3228
  "stroke-width": .5,
3150
3229
  stroke: B.value.chart.grid.stroke,
3151
3230
  "stroke-linecap": "round",
3152
3231
  style: { animation: "none !important" }
3153
3232
  }, null, 8, It)])) : x("", !0),
3154
3233
  B.value.chart.grid.labels.xAxisLabels.show ? (T(), S("g", Lt, [C("path", {
3155
- d: go.value,
3234
+ d: ko.value,
3156
3235
  stroke: B.value.chart.grid.stroke,
3157
3236
  "stroke-width": 1,
3158
3237
  "stroke-linecap": "round",
3159
3238
  style: { animation: "none !important" }
3160
3239
  }, null, 8, Rt)])) : x("", !0)
3161
3240
  ]),
3162
- (T(!0), S(y, null, D(_c.value, (e, t) => (T(), S("defs", { key: `def_rect_${t}` }, [n.$slots["bar-gradient"] ? O(n.$slots, "bar-gradient", at({
3241
+ (T(!0), S(y, null, D(Ac.value, (e, t) => (T(), S("defs", { key: `def_rect_${t}` }, [n.$slots["bar-gradient"] ? O(n.$slots, "bar-gradient", at({
3163
3242
  key: 0,
3164
3243
  ref_for: !0
3165
3244
  }, {
@@ -3201,7 +3280,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3201
3280
  "stop-color": e.color
3202
3281
  }, null, 8, Kt)
3203
3282
  ], 8, Ut)], 64))]))), 128)),
3204
- (T(!0), S(y, null, D(vc.value, (e, t) => (T(), S("defs", { key: `def_plot_${t}` }, [C("radialGradient", {
3283
+ (T(!0), S(y, null, D($.value, (e, t) => (T(), S("defs", { key: `def_plot_${t}` }, [C("radialGradient", {
3205
3284
  id: `plotGradient_${t}_${F.value}`,
3206
3285
  cx: "50%",
3207
3286
  cy: "50%",
@@ -3215,7 +3294,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3215
3294
  offset: "100%",
3216
3295
  "stop-color": e.color
3217
3296
  }, null, 8, Yt)], 8, qt)]))), 128)),
3218
- (T(!0), S(y, null, D($.value, (e, t) => (T(), S(y, { key: `def_line_${e.id}` }, [C("defs", null, [C("radialGradient", {
3297
+ (T(!0), S(y, null, D(Q.value, (e, t) => (T(), S(y, { key: `def_line_${e.id}` }, [C("defs", null, [C("radialGradient", {
3219
3298
  id: `lineGradient_${t}_${F.value}`,
3220
3299
  cx: "50%",
3221
3300
  cy: "50%",
@@ -3255,77 +3334,77 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3255
3334
  "stop-color": n,
3256
3335
  offset: k(me)(r, e.temperatureColors.length)
3257
3336
  }, null, 8, an))), 128))], 8, rn)])) : x("", !0)], 64))), 128)),
3258
- (T(!0), S(y, null, D(Is.value, (e) => (T(), S("g", null, [e.show ? (T(), S(y, { key: 0 }, [(T(!0), S(y, null, D(e.span, (t, n) => (T(), S("g", null, [C("rect", {
3337
+ (T(!0), S(y, null, D(Ys.value, (e) => (T(), S("g", null, [e.show ? (T(), S(y, { key: 0 }, [(T(!0), S(y, null, D(e.span, (t, n) => (T(), S("g", null, [C("rect", {
3259
3338
  style: w({
3260
3339
  transition: "none",
3261
3340
  opacity: +(e.from + n >= W.value.start && e.from + n <= W.value.end - 1)
3262
3341
  }),
3263
- x: Ws(e.from + n - W.value.start),
3264
- y: Y.value?.top,
3265
- height: Y.value.height < 0 ? 10 : Y.value.height,
3266
- width: Gs(e.from + n - W.value.start),
3342
+ x: rc(e.from + n - W.value.start),
3343
+ y: J.value?.top,
3344
+ height: J.value.height < 0 ? 10 : J.value.height,
3345
+ width: ic(e.from + n - W.value.start),
3267
3346
  fill: k(f)(e.color, e.opacity)
3268
3347
  }, null, 12, on)]))), 256)), (T(!0), S(y, null, D(e.span, (t, n) => (T(), S("g", null, [e.caption.text && n === 0 ? (T(), S("foreignObject", {
3269
3348
  key: 0,
3270
- x: Ws(e.from + n - W.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - Js(e.span) / 2),
3271
- y: Y.value?.top + e.caption.offsetY,
3349
+ x: rc(e.from + n - W.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - sc(e.span) / 2),
3350
+ y: J.value?.top + e.caption.offsetY,
3272
3351
  style: w({
3273
3352
  overflow: "visible",
3274
3353
  opacity: +(e.to >= W.value.start && e.from < W.value.end)
3275
3354
  }),
3276
3355
  height: "1",
3277
- width: e.caption.width === "auto" ? Js(e.span) : e.caption.width
3356
+ width: e.caption.width === "auto" ? sc(e.span) : e.caption.width
3278
3357
  }, [C("div", { style: w(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`) }, pt(e.caption.text), 5)], 12, sn)) : x("", !0)]))), 256))], 64)) : x("", !0)]))), 256)),
3279
- xo.value && !q.value ? (T(), S("g", cn, [(T(!0), S(y, null, D(Z.value, (e, t) => (T(), S("g", { key: `tooltip_trap_highlighter_${t}` }, [C("rect", {
3280
- x: Ws(t),
3281
- y: Y.value?.top,
3282
- height: Y.value.height < 0 ? 10 : Y.value.height,
3283
- width: qs(t),
3358
+ Po.value && !K.value ? (T(), S("g", cn, [(T(!0), S(y, null, D(X.value, (e, t) => (T(), S("g", { key: `tooltip_trap_highlighter_${t}` }, [C("rect", {
3359
+ x: rc(t),
3360
+ y: J.value?.top,
3361
+ height: J.value.height < 0 ? 10 : J.value.height,
3362
+ width: oc(t),
3284
3363
  fill: [
3285
3364
  I.value,
3286
3365
  R.value,
3287
- Vi.value
3288
- ].includes(t) ? k(f)(B.value.chart.highlighter.color, B.value.chart.highlighter.opacity) : "transparent",
3366
+ $i.value
3367
+ ].includes(t) ? k(f)(B.value.chart.highlighter.color, B.value.chart.highlighter.crosshairs.show ? 0 : B.value.chart.highlighter.opacity) : "transparent",
3289
3368
  style: {
3290
3369
  transition: "none !important",
3291
3370
  animation: "none !important"
3292
3371
  }
3293
3372
  }, null, 8, ln)]))), 128))])) : x("", !0),
3294
- _c.value.length ? (T(!0), S(y, { key: 1 }, D(_c.value, (e, t) => (T(), S("g", {
3373
+ Ac.value.length ? (T(!0), S(y, { key: 1 }, D(Ac.value, (e, t) => (T(), S("g", {
3295
3374
  key: `serie_bar_${e.id}`,
3296
3375
  class: st(`serie_bar_${t}`),
3297
3376
  style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3298
3377
  }, [(T(!0), S(y, null, D(e.plots, (r, i) => (T(), S("g", { key: `bar_plot_${t}_${i}` }, [
3299
- Jo(r.value) ? (T(), S("rect", {
3378
+ ss(r.value) ? (T(), S("rect", {
3300
3379
  key: 0,
3301
- x: us(r) + ec.value / 2,
3302
- y: V.value.useIndividualScale ? fs(r) : ds(r),
3303
- height: V.value.useIndividualScale ? Math.abs(ss(r)) : Math.abs(os(r)),
3304
- width: $s.value - ec.value,
3380
+ x: Cs(r) + pc.value / 2,
3381
+ y: V.value.useIndividualScale ? Ts(r) : ws(r),
3382
+ height: V.value.useIndividualScale ? Math.abs(bs(r)) : Math.abs(ys(r)),
3383
+ width: fc.value - pc.value,
3305
3384
  rx: B.value.bar.borderRadius,
3306
3385
  fill: B.value.bar.useGradient ? r.value >= 0 ? `url(#rectGradient_pos_${t}_${F.value})` : `url(#rectGradient_neg_${t}_${F.value})` : e.color,
3307
3386
  stroke: B.value.bar.border.useSerieColor ? e.color : B.value.bar.border.stroke,
3308
3387
  "stroke-width": B.value.bar.border.strokeWidth,
3309
- style: w({ transition: k(Oa) || !B.value.bar.showTransition ? void 0 : `all ${B.value.bar.transitionDurationMs}ms ease-in-out` })
3388
+ style: w({ transition: k(Ba) || !B.value.bar.showTransition ? void 0 : `all ${B.value.bar.transitionDurationMs}ms ease-in-out` })
3310
3389
  }, null, 12, un)) : x("", !0),
3311
- Jo(r.value) && n.$slots.pattern ? (T(), S("rect", {
3390
+ ss(r.value) && n.$slots.pattern ? (T(), S("rect", {
3312
3391
  key: 1,
3313
- x: us(r) - ec.value / 2,
3314
- y: V.value.useIndividualScale ? fs(r) : ds(r),
3315
- height: V.value.useIndividualScale ? Math.abs(ss(r)) : Math.abs(os(r)),
3316
- width: $s.value - ec.value,
3392
+ x: Cs(r) - pc.value / 2,
3393
+ y: V.value.useIndividualScale ? Ts(r) : ws(r),
3394
+ height: V.value.useIndividualScale ? Math.abs(bs(r)) : Math.abs(ys(r)),
3395
+ width: fc.value - pc.value,
3317
3396
  rx: B.value.bar.borderRadius,
3318
3397
  fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
3319
3398
  stroke: B.value.bar.border.useSerieColor ? e.color : B.value.bar.border.stroke,
3320
3399
  "stroke-width": B.value.bar.border.strokeWidth,
3321
- style: w({ transition: k(Oa) || !B.value.bar.showTransition ? void 0 : `all ${B.value.bar.transitionDurationMs}ms ease-in-out` })
3400
+ style: w({ transition: k(Ba) || !B.value.bar.showTransition ? void 0 : `all ${B.value.bar.transitionDurationMs}ms ease-in-out` })
3322
3401
  }, null, 12, dn)) : x("", !0),
3323
3402
  r.comment && B.value.chart.comments.show ? (T(), S("foreignObject", {
3324
3403
  key: 2,
3325
3404
  style: { overflow: "visible" },
3326
3405
  height: "12",
3327
- width: $s.value + B.value.chart.comments.width,
3328
- x: us(r) - B.value.chart.comments.width / 2 + B.value.chart.comments.offsetX,
3406
+ width: fc.value + B.value.chart.comments.width,
3407
+ x: Cs(r) - B.value.chart.comments.width / 2 + B.value.chart.comments.offsetX,
3329
3408
  y: k(v)(r.y) + B.value.chart.comments.offsetY + 6
3330
3409
  }, [O(n.$slots, "plot-comment", { plot: {
3331
3410
  ...r,
@@ -3338,18 +3417,18 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3338
3417
  key: 2,
3339
3418
  stroke: B.value.chart.grid.stroke,
3340
3419
  "stroke-width": "1",
3341
- x1: Y.value?.left,
3342
- x2: Y.value?.right,
3343
- y1: k(h)(as.value),
3344
- y2: k(h)(as.value),
3420
+ x1: J.value?.left,
3421
+ x2: J.value?.right,
3422
+ y1: k(h)(vs.value),
3423
+ y2: k(h)(vs.value),
3345
3424
  "stroke-linecap": "round",
3346
3425
  style: { animation: "none !important" }
3347
3426
  }, null, 8, pn)) : x("", !0),
3348
- (B.value.chart.highlighter.useLine || q.value) && No.value ? (T(), S("g", mn, [C("line", {
3349
- x1: Xc.value,
3350
- x2: Xc.value,
3351
- y1: k(h)(Y.value?.top),
3352
- y2: k(h)(Y.value?.bottom),
3427
+ !B.value.chart.highlighter.crosshairs.show && (B.value.chart.highlighter.useLine || K.value) && Ko.value ? (T(), S("g", mn, [C("line", {
3428
+ x1: cl.value,
3429
+ x2: cl.value,
3430
+ y1: k(h)(J.value?.top),
3431
+ y2: k(h)(J.value?.bottom),
3353
3432
  stroke: B.value.chart.highlighter.color,
3354
3433
  "stroke-width": B.value.chart.highlighter.lineWidth,
3355
3434
  "stroke-dasharray": B.value.chart.highlighter.lineDasharray,
@@ -3360,58 +3439,93 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3360
3439
  "pointer-events": "none"
3361
3440
  }
3362
3441
  }, null, 8, hn)])) : x("", !0),
3442
+ ll.value ? (T(), S("g", gn, [(T(!0), S(y, null, D(ul.value, (e) => (T(), S("g", { key: `crosshair_${e.serie.id}_${e.index}` }, [
3443
+ C("line", {
3444
+ x1: B.value.chart.highlighter.crosshairs.stopOnPoint ? k(h)(e.x) : J.value.left,
3445
+ x2: B.value.chart.highlighter.crosshairs.stopOnPoint ? k(h)(fl(e.x)) : J.value.right,
3446
+ y1: k(h)(e.y),
3447
+ y2: k(h)(e.y),
3448
+ stroke: B.value.chart.highlighter.crosshairs.stroke,
3449
+ "stroke-width": B.value.chart.highlighter.crosshairs.strokeWidth,
3450
+ "stroke-dasharray": B.value.chart.highlighter.crosshairs.strokeDasharray,
3451
+ "stroke-linecap": "round",
3452
+ style: { "pointer-events": "none" }
3453
+ }, null, 8, _n),
3454
+ C("line", {
3455
+ x1: k(h)(e.x),
3456
+ x2: k(h)(e.x),
3457
+ y1: B.value.chart.highlighter.crosshairs.stopOnPoint ? k(h)(e.y) : J.value.top,
3458
+ y2: B.value.chart.highlighter.crosshairs.stopOnPoint ? k(h)(J.value.bottom) : J.value.bottom,
3459
+ stroke: B.value.chart.highlighter.crosshairs.stroke,
3460
+ "stroke-width": B.value.chart.highlighter.crosshairs.strokeWidth,
3461
+ "stroke-dasharray": B.value.chart.highlighter.crosshairs.strokeDasharray,
3462
+ "stroke-linecap": "round",
3463
+ style: { "pointer-events": "none" }
3464
+ }, null, 8, vn),
3465
+ C("circle", {
3466
+ cx: k(h)(fl(e.x)),
3467
+ cy: k(h)(e.y),
3468
+ r: B.value.chart.highlighter.crosshairs.dot.radius,
3469
+ fill: B.value.chart.highlighter.crosshairs.dot.fill,
3470
+ stroke: B.value.chart.highlighter.crosshairs.dot.stroke,
3471
+ "stroke-width": B.value.chart.highlighter.crosshairs.dot.strokeWidth,
3472
+ style: { "pointer-events": "none" }
3473
+ }, null, 8, yn)
3474
+ ]))), 128))])) : x("", !0),
3363
3475
  B.value.chart.grid.frame.show ? (T(), S("rect", {
3364
- key: 4,
3476
+ key: 5,
3365
3477
  style: {
3366
3478
  pointerEvents: "none",
3367
3479
  transition: "none",
3368
3480
  animation: "none !important"
3369
3481
  },
3370
- x: Math.max(0, Y.value?.left),
3371
- y: Y.value?.top,
3372
- width: Math.max(0, Y.value?.width),
3373
- height: Y.value.height < 0 ? 0 : Y.value.height,
3482
+ x: Math.max(0, J.value?.left),
3483
+ y: J.value?.top,
3484
+ width: Math.max(0, J.value?.width),
3485
+ height: J.value.height < 0 ? 0 : J.value.height,
3374
3486
  fill: "transparent",
3375
3487
  stroke: B.value.chart.grid.frame.stroke,
3376
3488
  "stroke-width": B.value.chart.grid.frame.strokeWidth,
3377
3489
  "stroke-linecap": B.value.chart.grid.frame.strokeLinecap,
3378
3490
  "stroke-linejoin": B.value.chart.grid.frame.strokeLinejoin,
3379
3491
  "stroke-dasharray": B.value.chart.grid.frame.strokeDasharray
3380
- }, null, 8, gn)) : x("", !0),
3492
+ }, null, 8, bn)) : x("", !0),
3381
3493
  B.value.chart.grid.labels.show ? (T(), S("g", {
3382
- key: 5,
3494
+ key: 6,
3383
3495
  ref_key: "scaleLabels",
3384
- ref: Oi
3385
- }, [V.value.useIndividualScale ? (T(), S(y, { key: 0 }, [(T(!0), S(y, null, D(yc.value, (e) => (T(), S("g", null, [C("line", {
3386
- x1: V.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x - Y.value.individualOffsetX,
3387
- x2: V.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x - Y.value.individualOffsetX,
3388
- y1: V.value.isStacked ? k(h)(Y.value?.bottom - e.yOffset - e.individualHeight) : k(h)(Y.value?.top),
3389
- y2: V.value.isStacked ? k(h)(Y.value?.bottom - e.yOffset) : k(h)(Y.value?.bottom),
3496
+ ref: Bi,
3497
+ opacity: ll.value ? .2 : 1,
3498
+ style: { transition: "opacity 0.2s" }
3499
+ }, [V.value.useIndividualScale ? (T(), S(y, { key: 0 }, [(T(!0), S(y, null, D(jc.value, (e) => (T(), S("g", null, [C("line", {
3500
+ x1: V.value.isStacked ? q.value ? J.value.right : J.value.left : q.value ? e.x : e.x - J.value.individualOffsetX,
3501
+ x2: V.value.isStacked ? q.value ? J.value.right : J.value.left : q.value ? e.x : e.x - J.value.individualOffsetX,
3502
+ y1: V.value.isStacked ? k(h)(J.value?.bottom - e.yOffset - e.individualHeight) : k(h)(J.value?.top),
3503
+ y2: V.value.isStacked ? k(h)(J.value?.bottom - e.yOffset) : k(h)(J.value?.bottom),
3390
3504
  stroke: e.color,
3391
3505
  "stroke-width": B.value.chart.grid.stroke,
3392
3506
  "stroke-linecap": "round",
3393
3507
  style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
3394
- }, null, 12, _n)]))), 256)), (T(!0), S(y, null, D(yc.value, (e) => (T(), S("g", { style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`) }, [
3508
+ }, null, 12, Sn)]))), 256)), (T(!0), S(y, null, D(jc.value, (e) => (T(), S("g", { style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`) }, [
3395
3509
  C("text", {
3396
3510
  fill: e.color,
3397
3511
  "font-size": z.value.dataLabels * .8,
3398
3512
  "text-anchor": "middle",
3399
- transform: `translate(${V.value.isStacked ? J.value ? Y.value.right + B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + B.value.chart.grid.labels.yAxis.labelWidth + Y.value.individualOffsetX + B.value.chart.grid.labels.axis.yLabelOffsetX : Y.value.left - B.value.chart.grid.labels.yAxis.crosshairSize - B.value.chart.grid.labels.yAxis.scaleValueOffsetX - B.value.chart.grid.labels.yAxis.labelWidth - B.value.chart.grid.labels.axis.yLabelOffsetX : J.value ? e.x + B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + B.value.chart.grid.labels.yAxis.labelWidth + B.value.chart.grid.labels.axis.yLabelOffsetX : e.x - z.value.dataLabels * .8 / 2}, ${V.value.isStacked ? Y.value?.bottom - e.yOffset - e.individualHeight / 2 : Y.value?.top + Y.value.height / 2}) rotate(-90)`
3400
- }, pt(e.name) + " " + pt(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `- ${e.scaleLabel}` : ""), 9, vn),
3513
+ transform: `translate(${V.value.isStacked ? q.value ? J.value.right + B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + B.value.chart.grid.labels.yAxis.labelWidth + J.value.individualOffsetX + B.value.chart.grid.labels.axis.yLabelOffsetX : J.value.left - B.value.chart.grid.labels.yAxis.crosshairSize - B.value.chart.grid.labels.yAxis.scaleValueOffsetX - B.value.chart.grid.labels.yAxis.labelWidth - B.value.chart.grid.labels.axis.yLabelOffsetX : q.value ? e.x + B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + B.value.chart.grid.labels.yAxis.labelWidth + B.value.chart.grid.labels.axis.yLabelOffsetX : e.x - z.value.dataLabels * .8 / 2}, ${V.value.isStacked ? J.value?.bottom - e.yOffset - e.individualHeight / 2 : J.value?.top + J.value.height / 2}) rotate(-90)`
3514
+ }, pt(e.name) + " " + pt(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `- ${e.scaleLabel}` : ""), 9, Cn),
3401
3515
  (T(!0), S(y, null, D(e.yLabels, (t, n) => (T(), S(y, null, [B.value.chart.grid.labels.yAxis.showCrosshairs ? (T(), S("line", {
3402
3516
  key: 0,
3403
- x1: V.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x + 3 - B.value.chart.grid.labels.yAxis.crosshairSize - Y.value.individualOffsetX,
3404
- x2: V.value.isStacked ? J.value ? Y.value.right + B.value.chart.grid.labels.yAxis.crosshairSize : Y.value.left - B.value.chart.grid.labels.yAxis.crosshairSize : J.value ? e.x + B.value.chart.grid.labels.yAxis.crosshairSize : e.x - Y.value.individualOffsetX,
3517
+ x1: V.value.isStacked ? q.value ? J.value.right : J.value.left : q.value ? e.x : e.x + 3 - B.value.chart.grid.labels.yAxis.crosshairSize - J.value.individualOffsetX,
3518
+ x2: V.value.isStacked ? q.value ? J.value.right + B.value.chart.grid.labels.yAxis.crosshairSize : J.value.left - B.value.chart.grid.labels.yAxis.crosshairSize : q.value ? e.x + B.value.chart.grid.labels.yAxis.crosshairSize : e.x - J.value.individualOffsetX,
3405
3519
  y1: k(h)(t.y),
3406
3520
  y2: k(h)(t.y),
3407
3521
  stroke: e.color,
3408
3522
  "stroke-width": 1,
3409
3523
  "stroke-linecap": "round",
3410
3524
  style: { animation: "none !important" }
3411
- }, null, 8, yn)) : x("", !0)], 64))), 256)),
3525
+ }, null, 8, wn)) : x("", !0)], 64))), 256)),
3412
3526
  (T(!0), S(y, null, D(e.yLabels, (t, n) => (T(), S("text", {
3413
- transform: `translate(${V.value.isStacked ? J.value ? Y.value.right + B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : Y.value.left - B.value.chart.grid.labels.yAxis.crosshairSize - B.value.chart.grid.labels.yAxis.scaleValueOffsetX - 5 : J.value ? e.x + B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : e.x - 5 - Y.value.individualOffsetX}, ${k(h)(t.y) + z.value.dataLabels / 3})`,
3414
- "text-anchor": J.value ? "start" : "end",
3527
+ transform: `translate(${V.value.isStacked ? q.value ? J.value.right + B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.left - B.value.chart.grid.labels.yAxis.crosshairSize - B.value.chart.grid.labels.yAxis.scaleValueOffsetX - 5 : q.value ? e.x + B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : e.x - 5 - J.value.individualOffsetX}, ${k(h)(t.y) + z.value.dataLabels / 3})`,
3528
+ "text-anchor": q.value ? "start" : "end",
3415
3529
  "font-size": z.value.dataLabels,
3416
3530
  fill: e.color
3417
3531
  }, pt(k(_)(B.value.chart.grid.labels.yAxis.formatter, t.value, k(s)({
@@ -3422,34 +3536,67 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3422
3536
  }), {
3423
3537
  datapoint: t.datapoint,
3424
3538
  seriesIndex: n
3425
- })), 9, bn))), 256))
3426
- ], 4))), 256))], 64)) : (T(!0), S(y, { key: 1 }, D(ic.value, (e, t) => (T(), S("g", { key: `yLabel_${t}` }, [Jo(e) && e.value >= K.value.min && e.value <= K.value.max && B.value.chart.grid.labels.yAxis.showCrosshairs ? (T(), S("line", {
3539
+ })), 9, Tn))), 256))
3540
+ ], 4))), 256))], 64)) : (T(!0), S(y, { key: 1 }, D(_c.value, (e, t) => (T(), S("g", { key: `yLabel_${t}` }, [ss(e) && e.value >= G.value.min && e.value <= G.value.max && B.value.chart.grid.labels.yAxis.showCrosshairs ? (T(), S("line", {
3427
3541
  key: 0,
3428
- x1: J.value ? Y.value?.right : Y.value?.left,
3429
- x2: J.value ? Y.value?.right + B.value.chart.grid.labels.yAxis.crosshairSize : Y.value?.left - B.value.chart.grid.labels.yAxis.crosshairSize,
3542
+ x1: q.value ? J.value?.right : J.value?.left,
3543
+ x2: q.value ? J.value?.right + B.value.chart.grid.labels.yAxis.crosshairSize : J.value?.left - B.value.chart.grid.labels.yAxis.crosshairSize,
3430
3544
  y1: k(h)(e.y),
3431
3545
  y2: k(h)(e.y),
3432
3546
  stroke: B.value.chart.grid.stroke,
3433
3547
  "stroke-width": "1",
3434
3548
  "stroke-linecap": "round",
3435
3549
  style: { animation: "none !important" }
3436
- }, null, 8, xn)) : x("", !0), e.value >= K.value.min && e.value <= K.value.max ? (T(), S("text", {
3550
+ }, null, 8, En)) : x("", !0), e.value >= G.value.min && e.value <= G.value.max ? (T(), S("text", {
3437
3551
  key: 1,
3438
- transform: `translate(${J.value ? Y.value.right + B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : Y.value.scaleLabelX - B.value.chart.grid.labels.yAxis.crosshairSize}, ${k(v)(e.y + z.value.dataLabels / 3)})`,
3552
+ transform: `translate(${q.value ? J.value.right + B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - B.value.chart.grid.labels.yAxis.crosshairSize}, ${k(v)(e.y + z.value.dataLabels / 3)})`,
3439
3553
  "font-size": z.value.dataLabels,
3440
- "text-anchor": J.value ? "start" : "end",
3554
+ "text-anchor": q.value ? "start" : "end",
3441
3555
  fill: B.value.chart.grid.labels.color
3442
- }, pt(Jo(e.value) ? k(_)(B.value.chart.grid.labels.yAxis.formatter, e.value, k(s)({
3556
+ }, pt(ss(e.value) ? k(_)(B.value.chart.grid.labels.yAxis.formatter, e.value, k(s)({
3443
3557
  p: e.prefix,
3444
3558
  v: e.value,
3445
3559
  s: e.suffix,
3446
3560
  r: B.value.chart.grid.labels.yAxis.rounding
3447
- })) : ""), 9, Sn)) : x("", !0)]))), 128))], 512)) : x("", !0),
3448
- (T(!0), S(y, null, D(vc.value, (e, t) => (T(), S("g", {
3561
+ })) : ""), 9, Dn)) : x("", !0)]))), 128))], 8, xn)) : x("", !0),
3562
+ ll.value ? (T(), S("g", On, [(T(!0), S(y, null, D(ul.value, (e) => (T(), S("text", {
3563
+ key: `crosshair_y_label_${e.serie.id}_${e.index}`,
3564
+ transform: `translate(${q.value ? J.value.right + B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - B.value.chart.grid.labels.yAxis.crosshairSize}, ${k(h)(e.y) + z.value.dataLabels / 3})`,
3565
+ "font-size": z.value.dataLabels,
3566
+ "text-anchor": q.value ? "start" : "end",
3567
+ fill: B.value.chart.grid.labels.color,
3568
+ style: {
3569
+ transition: "none !important",
3570
+ animation: "none !important",
3571
+ "pointer-events": "none"
3572
+ }
3573
+ }, pt(k(_)(B.value.chart.grid.labels.yAxis.formatter, e.value, k(s)({
3574
+ p: e.serie.prefix || B.value.chart.labels.prefix,
3575
+ v: e.value,
3576
+ s: e.serie.suffix || B.value.chart.labels.suffix,
3577
+ r: B.value.chart.grid.labels.yAxis.rounding
3578
+ }), {
3579
+ datapoint: e.serie,
3580
+ seriesIndex: e.index
3581
+ })), 9, kn))), 128))])) : x("", !0),
3582
+ dl.value ? (T(), S("g", An, [C("circle", {
3583
+ cx: cl.value,
3584
+ cy: k(h)(J.value?.bottom),
3585
+ r: B.value.chart.highlighter.crosshairs.dot.radius,
3586
+ fill: B.value.chart.highlighter.crosshairs.dot.fill,
3587
+ stroke: B.value.chart.highlighter.crosshairs.dot.stroke,
3588
+ "stroke-width": B.value.chart.highlighter.crosshairs.dot.strokeWidth,
3589
+ style: {
3590
+ transition: "none !important",
3591
+ animation: "none !important",
3592
+ "pointer-events": "none"
3593
+ }
3594
+ }, null, 8, jn)])) : x("", !0),
3595
+ (T(!0), S(y, null, D($.value, (e, t) => (T(), S("g", {
3449
3596
  key: `serie_plot_${e.id}`,
3450
3597
  class: st(`serie_plot_${t}`),
3451
3598
  style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3452
- }, [(T(!0), S(y, null, D(e.plots, (r, i) => (T(), S("g", { key: `circle_plot_${t}_${i}` }, [r && Jo(r.value) ? (T(), Qe(Ge, {
3599
+ }, [(T(!0), S(y, null, D(e.plots, (r, i) => (T(), S("g", { key: `circle_plot_${t}_${i}` }, [r && ss(r.value) ? (T(), Qe(Ge, {
3453
3600
  key: 0,
3454
3601
  shape: [
3455
3602
  "triangle",
@@ -3464,10 +3611,10 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3464
3611
  x: k(v)(r.x),
3465
3612
  y: k(v)(r.y)
3466
3613
  },
3467
- radius: Zc(e, r, i) ? (ya.value.plot || 6) * 1.5 : (oc(e.plots, i), ya.value.plot || 6),
3614
+ radius: pl(e, r, i) ? (ja.value.plot || 6) * 1.5 : (yc(e.plots, i), ja.value.plot || 6),
3468
3615
  stroke: B.value.plot.dot.useSerieColor ? B.value.chart.backgroundColor : e.color,
3469
3616
  strokeWidth: B.value.plot.dot.strokeWidth,
3470
- transition: k(Oa) || !B.value.plot.showTransition || Zc(e, r, i) ? void 0 : `all ${B.value.plot.transitionDurationMs}ms ease-in-out`
3617
+ transition: k(Ba) || !B.value.plot.showTransition || pl(e, r, i) ? void 0 : `all ${B.value.plot.transitionDurationMs}ms ease-in-out`
3471
3618
  }, null, 8, [
3472
3619
  "shape",
3473
3620
  "color",
@@ -3483,13 +3630,13 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3483
3630
  width: B.value.chart.comments.width,
3484
3631
  x: r.x - B.value.chart.comments.width / 2 + B.value.chart.comments.offsetX,
3485
3632
  y: r.y + B.value.chart.comments.offsetY + 6
3486
- }, [C("div", wn, [O(n.$slots, "plot-comment", { plot: {
3633
+ }, [C("div", Nn, [O(n.$slots, "plot-comment", { plot: {
3487
3634
  ...r,
3488
3635
  color: e.color,
3489
3636
  seriesIndex: t,
3490
3637
  datapointIndex: i
3491
- } }, void 0, !0)])], 8, Cn)) : x("", !0)]))), 128))], 6))), 128)),
3492
- (T(!0), S(y, null, D($.value, (e, t) => (T(), S("g", {
3638
+ } }, void 0, !0)])], 8, Mn)) : x("", !0)]))), 128))], 6))), 128)),
3639
+ (T(!0), S(y, null, D(Q.value, (e, t) => (T(), S("g", {
3493
3640
  key: `serie_line_${e.id}`,
3494
3641
  class: st(`serie_line_${t}`),
3495
3642
  style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
@@ -3500,8 +3647,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3500
3647
  "stroke-width": B.value.line.strokeWidth + 1,
3501
3648
  "stroke-dasharray": e.dashed ? B.value.line.strokeWidth * 2 : 0,
3502
3649
  fill: "none",
3503
- style: w({ transition: k(Oa) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
3504
- }, null, 12, Tn)) : e.plots.length > 1 && e.straight ? (T(), S("path", {
3650
+ style: w({ transition: k(Ba) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
3651
+ }, null, 12, Pn)) : e.plots.length > 1 && e.straight ? (T(), S("path", {
3505
3652
  key: 1,
3506
3653
  d: `M${e.straight}`,
3507
3654
  stroke: B.value.chart.backgroundColor,
@@ -3510,48 +3657,48 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3510
3657
  fill: "none",
3511
3658
  "stroke-linecap": "round",
3512
3659
  "stroke-linejoin": "round",
3513
- style: w({ transition: k(Oa) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
3514
- }, null, 12, En)) : x("", !0)], 6))), 128)),
3515
- n.$slots.pattern ? (T(), S("defs", Dn, [(T(!0), S(y, null, D(to.value, (e, t) => O(n.$slots, "pattern", at({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
3660
+ style: w({ transition: k(Ba) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
3661
+ }, null, 12, Fn)) : x("", !0)], 6))), 128)),
3662
+ n.$slots.pattern ? (T(), S("defs", In, [(T(!0), S(y, null, D(ho.value, (e, t) => O(n.$slots, "pattern", at({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
3516
3663
  ...e,
3517
3664
  seriesIndex: e.slotAbsoluteIndex,
3518
3665
  patternId: `pattern_${F.value}_${t}`
3519
3666
  }), void 0, !0)), 128))])) : x("", !0),
3520
- bc.value.length && !V.value.isStacked ? (T(), S("g", On, [(T(!0), S(y, null, D(bc.value, (e) => (T(), S("path", {
3667
+ Mc.value.length && !V.value.isStacked ? (T(), S("g", Ln, [(T(!0), S(y, null, D(Mc.value, (e) => (T(), S("path", {
3521
3668
  key: e.key,
3522
3669
  d: e.d,
3523
3670
  fill: e.color,
3524
3671
  "fill-opacity": B.value.line.interLine.fillOpacity,
3525
3672
  stroke: "none",
3526
3673
  "pointer-events": "none",
3527
- style: w({ transition: k(Oa) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
3528
- }, null, 12, kn))), 128))])) : x("", !0),
3529
- (T(!0), S(y, null, D($.value, (e, t) => (T(), S("g", {
3674
+ style: w({ transition: k(Ba) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
3675
+ }, null, 12, Rn))), 128))])) : x("", !0),
3676
+ (T(!0), S(y, null, D(Q.value, (e, t) => (T(), S("g", {
3530
3677
  key: `serie_line_above_${e.id}`,
3531
3678
  class: st(`serie_line_${t}`),
3532
3679
  style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3533
3680
  }, [
3534
- e.useArea && e.plots.length > 1 ? (T(), S("g", An, [e.smooth ? (T(!0), S(y, { key: 0 }, D(e.curveAreas, (r, i) => (T(), S(y, { key: i }, [r ? (T(), S("path", {
3681
+ e.useArea && e.plots.length > 1 ? (T(), S("g", zn, [e.smooth ? (T(!0), S(y, { key: 0 }, D(e.curveAreas, (r, i) => (T(), S(y, { key: i }, [r ? (T(), S("path", {
3535
3682
  key: 0,
3536
3683
  d: r,
3537
3684
  fill: B.value.line.area.useGradient ? `url(#areaGradient_${t}_${F.value})` : k(f)(e.color, B.value.line.area.opacity),
3538
- style: w({ transition: k(Oa) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
3539
- }, null, 12, jn)) : x("", !0), n.$slots.pattern && r ? (T(), S("path", {
3685
+ style: w({ transition: k(Ba) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
3686
+ }, null, 12, Bn)) : x("", !0), n.$slots.pattern && r ? (T(), S("path", {
3540
3687
  key: 1,
3541
3688
  d: r,
3542
3689
  fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
3543
- style: w({ transition: k(Oa) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
3544
- }, null, 12, Mn)) : x("", !0)], 64))), 128)) : (T(!0), S(y, { key: 1 }, D(e.area.split(";"), (r, i) => (T(), S(y, { key: i }, [r ? (T(), S("path", {
3690
+ style: w({ transition: k(Ba) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
3691
+ }, null, 12, Vn)) : x("", !0)], 64))), 128)) : (T(!0), S(y, { key: 1 }, D(e.area.split(";"), (r, i) => (T(), S(y, { key: i }, [r ? (T(), S("path", {
3545
3692
  key: 0,
3546
3693
  d: `M${r}Z`,
3547
3694
  fill: B.value.line.area.useGradient ? `url(#areaGradient_${t}_${F.value})` : k(f)(e.color, B.value.line.area.opacity),
3548
- style: w({ transition: k(Oa) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
3549
- }, null, 12, Nn)) : x("", !0), n.$slots.pattern && r ? (T(), S("path", {
3695
+ style: w({ transition: k(Ba) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
3696
+ }, null, 12, Hn)) : x("", !0), n.$slots.pattern && r ? (T(), S("path", {
3550
3697
  key: 1,
3551
3698
  d: `M${r}Z`,
3552
3699
  fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
3553
- style: w({ transition: k(Oa) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
3554
- }, null, 12, Pn)) : x("", !0)], 64))), 128))])) : x("", !0),
3700
+ style: w({ transition: k(Ba) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
3701
+ }, null, 12, Un)) : x("", !0)], 64))), 128))])) : x("", !0),
3555
3702
  !e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (T(), S("path", {
3556
3703
  key: 1,
3557
3704
  d: `M${e.curve}`,
@@ -3560,8 +3707,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3560
3707
  "stroke-dasharray": e.dashed ? B.value.line.strokeWidth * 2 : 0,
3561
3708
  fill: "none",
3562
3709
  "stroke-linecap": "round",
3563
- style: w({ transition: k(Oa) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
3564
- }, null, 12, Fn)) : e.hasDashedSegments ? (T(), S(y, { key: 2 }, [e.smooth ? (T(!0), S(y, { key: 0 }, D(e.dashedSmooth, (n) => (T(), S("path", {
3710
+ style: w({ transition: k(Ba) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
3711
+ }, null, 12, Wn)) : e.hasDashedSegments ? (T(), S(y, { key: 2 }, [e.smooth ? (T(!0), S(y, { key: 0 }, D(e.dashedSmooth, (n) => (T(), S("path", {
3565
3712
  key: n.path,
3566
3713
  fill: "none",
3567
3714
  "stroke-linecap": "round",
@@ -3570,7 +3717,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3570
3717
  stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${F.value})` : e.color,
3571
3718
  "stroke-width": B.value.line.strokeWidth,
3572
3719
  "stroke-dasharray": n.dashed ? B.value.line.strokeWidth * 2 : 0
3573
- }, null, 8, In))), 128)) : (T(!0), S(y, { key: 1 }, D(e.dashedStraight, (n) => (T(), S("path", {
3720
+ }, null, 8, Gn))), 128)) : (T(!0), S(y, { key: 1 }, D(e.dashedStraight, (n) => (T(), S("path", {
3574
3721
  key: n.path,
3575
3722
  fill: "none",
3576
3723
  "stroke-linecap": "round",
@@ -3579,7 +3726,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3579
3726
  stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${F.value})` : e.color,
3580
3727
  "stroke-width": B.value.line.strokeWidth,
3581
3728
  "stroke-dasharray": n.dashed ? B.value.line.strokeWidth * 2 : 0
3582
- }, null, 8, Ln))), 128))], 64)) : e.plots.length > 1 && e.straight ? (T(), S("path", {
3729
+ }, null, 8, Kn))), 128))], 64)) : e.plots.length > 1 && e.straight ? (T(), S("path", {
3583
3730
  key: 3,
3584
3731
  d: `M${e.straight}`,
3585
3732
  stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${F.value})` : e.color,
@@ -3588,9 +3735,9 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3588
3735
  fill: "none",
3589
3736
  "stroke-linecap": "round",
3590
3737
  "stroke-linejoin": "round",
3591
- style: w({ transition: k(Oa) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
3592
- }, null, 12, Rn)) : x("", !0),
3593
- (T(!0), S(y, null, D(e.plots, (r, i) => (T(), S(y, { key: `circle_line_${t}_${i}` }, [!Ps.value.linePlot && r && Jo(r.value) || Ps.value.linePlot && r && Jo(r.value) && (R.value !== null && R.value === i || I.value !== null && I.value === i) || oc(e.plots, i) ? (T(), Qe(Ge, {
3738
+ style: w({ transition: k(Ba) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
3739
+ }, null, 12, qn)) : x("", !0),
3740
+ (T(!0), S(y, null, D(e.plots, (r, i) => (T(), S(y, { key: `circle_line_${t}_${i}` }, [!qs.value.linePlot && r && ss(r.value) || qs.value.linePlot && r && ss(r.value) && (R.value !== null && R.value === i || I.value !== null && I.value === i) || yc(e.plots, i) ? (T(), Qe(Ge, {
3594
3741
  key: 0,
3595
3742
  shape: [
3596
3743
  "triangle",
@@ -3605,10 +3752,10 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3605
3752
  x: k(v)(r.x),
3606
3753
  y: k(v)(r.y)
3607
3754
  },
3608
- radius: Zc(e, r, i) ? (ya.value.line || 6) * 1.5 : (oc(e.plots, i), ya.value.line || 6),
3755
+ radius: pl(e, r, i) ? (ja.value.line || 6) * 1.5 : (yc(e.plots, i), ja.value.line || 6),
3609
3756
  stroke: B.value.line.dot.useSerieColor ? B.value.chart.backgroundColor : e.color,
3610
3757
  strokeWidth: B.value.line.dot.strokeWidth,
3611
- transition: k(Oa) || !B.value.line.showTransition || Zc(e, r, i) ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out`
3758
+ transition: k(Ba) || !B.value.line.showTransition || pl(e, r, i) ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out`
3612
3759
  }, null, 8, [
3613
3760
  "shape",
3614
3761
  "color",
@@ -3624,33 +3771,33 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3624
3771
  width: B.value.chart.comments.width,
3625
3772
  x: r.x - B.value.chart.comments.width / 2 + B.value.chart.comments.offsetX,
3626
3773
  y: r.y + B.value.chart.comments.offsetY + 6
3627
- }, [C("div", Bn, [O(n.$slots, "plot-comment", { plot: {
3774
+ }, [C("div", Yn, [O(n.$slots, "plot-comment", { plot: {
3628
3775
  ...r,
3629
3776
  color: e.color,
3630
3777
  seriesIndex: t,
3631
3778
  datapointIndex: i
3632
- } }, void 0, !0)])], 8, zn)) : x("", !0)], 64))), 128))
3779
+ } }, void 0, !0)])], 8, Jn)) : x("", !0)], 64))), 128))
3633
3780
  ], 6))), 128)),
3634
- (B.value.bar.labels.show || B.value.bar.serieName.show) && V.value.dataLabels.show ? (T(), S("g", Vn, [(T(!0), S(y, null, D(_c.value, (e, t) => (T(), S(y, { key: `xLabel_bar_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_bar_${t}_${r}` }, [n && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || R.value !== null && R.value === r || I.value !== null && I.value === r) && B.value.bar.labels.show ? (T(), S("text", {
3781
+ (B.value.bar.labels.show || B.value.bar.serieName.show) && V.value.dataLabels.show ? (T(), S("g", Xn, [(T(!0), S(y, null, D(Ac.value, (e, t) => (T(), S(y, { key: `xLabel_bar_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_bar_${t}_${r}` }, [n && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || R.value !== null && R.value === r || I.value !== null && I.value === r) && B.value.bar.labels.show ? (T(), S("text", {
3635
3782
  key: 0,
3636
- "text-anchor": Yc({
3783
+ "text-anchor": sl({
3637
3784
  plot: n,
3638
3785
  type: "bar"
3639
3786
  }),
3640
3787
  "font-size": z.value.plotLabels,
3641
- transform: qc({ plot: n }),
3788
+ transform: al({ plot: n }),
3642
3789
  fill: B.value.bar.labels.color,
3643
3790
  stroke: B.value.chart.backgroundColor,
3644
3791
  "paint-order": "stroke",
3645
3792
  style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
3646
- innerHTML: Kc({
3793
+ innerHTML: il({
3647
3794
  serie: e,
3648
3795
  plot: n,
3649
3796
  type: "bar"
3650
3797
  })
3651
- }, null, 12, Hn)) : x("", !0), n && B.value.bar.serieName.show ? (T(), S("text", {
3798
+ }, null, 12, Zn)) : x("", !0), n && B.value.bar.serieName.show ? (T(), S("text", {
3652
3799
  key: 1,
3653
- x: V.value.useIndividualScale && V.value.isStacked ? n.x + cs.value.line / 2 : n.x + ls() * 1.1,
3800
+ x: V.value.useIndividualScale && V.value.isStacked ? n.x + xs.value.line / 2 : n.x + Ss() * 1.1,
3654
3801
  y: n.y + (n.value > 0 ? B.value.bar.serieName.offsetY : -B.value.bar.serieName.offsetY * 3),
3655
3802
  "text-anchor": "middle",
3656
3803
  "font-size": z.value.plotLabels,
@@ -3660,14 +3807,14 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3660
3807
  }, pt(B.value.bar.serieName.useAbbreviation ? k(ye)({
3661
3808
  source: e.name,
3662
3809
  length: B.value.bar.serieName.abbreviationSize
3663
- }) : e.name), 13, Un)) : x("", !0)], 64))), 128))], 64))), 128))])) : x("", !0),
3664
- B.value.plot.labels.show && V.value.dataLabels.show ? (T(), S("g", Wn, [(T(!0), S(y, null, D(vc.value, (e, t) => (T(), S(y, { key: `xLabel_plot_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_plot_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || Zc(e, n, r) ? (T(), S("text", {
3810
+ }) : e.name), 13, Qn)) : x("", !0)], 64))), 128))], 64))), 128))])) : x("", !0),
3811
+ B.value.plot.labels.show && V.value.dataLabels.show ? (T(), S("g", $n, [(T(!0), S(y, null, D($.value, (e, t) => (T(), S(y, { key: `xLabel_plot_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_plot_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || pl(e, n, r) ? (T(), S("text", {
3665
3812
  key: 0,
3666
- transform: Jc({
3813
+ transform: ol({
3667
3814
  plot: n,
3668
3815
  type: "plot"
3669
3816
  }),
3670
- "text-anchor": Yc({
3817
+ "text-anchor": sl({
3671
3818
  plot: n,
3672
3819
  type: "plot"
3673
3820
  }),
@@ -3676,27 +3823,27 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3676
3823
  stroke: B.value.chart.backgroundColor,
3677
3824
  "paint-order": "stroke",
3678
3825
  style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
3679
- innerHTML: Kc({
3826
+ innerHTML: il({
3680
3827
  serie: e,
3681
3828
  plot: n,
3682
3829
  type: "plot"
3683
3830
  })
3684
- }, null, 12, Gn)) : x("", !0)], 64))), 128))], 64))), 128))])) : (T(), S("g", Kn, [(T(!0), S(y, null, D(vc.value, (e, t) => (T(), S(y, { key: `xLabel_plot_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_plot_${t}_${r}` }, [B.value.plot.tag.followValue ? (T(), S(y, { key: 1 }, [[
3831
+ }, null, 12, er)) : x("", !0)], 64))), 128))], 64))), 128))])) : (T(), S("g", tr, [(T(!0), S(y, null, D($.value, (e, t) => (T(), S(y, { key: `xLabel_plot_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_plot_${t}_${r}` }, [B.value.plot.tag.followValue ? (T(), S(y, { key: 1 }, [[
3685
3832
  I.value,
3686
3833
  R.value,
3687
- Vi.value
3834
+ $i.value
3688
3835
  ].includes(r) && e.useTag ? (T(), S("line", {
3689
3836
  key: 0,
3690
3837
  class: "vue-ui-xy-tag-plot",
3691
- x1: Y.value?.left,
3692
- x2: Y.value?.right,
3838
+ x1: J.value?.left,
3839
+ x2: J.value?.right,
3693
3840
  y1: n.y,
3694
3841
  y2: n.y,
3695
3842
  "stroke-width": 1,
3696
3843
  "stroke-linecap": "round",
3697
3844
  "stroke-dasharray": "2",
3698
3845
  stroke: e.color
3699
- }, null, 8, Zn)) : x("", !0)], 64)) : (T(), S(y, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (T(), S("foreignObject", {
3846
+ }, null, 8, or)) : x("", !0)], 64)) : (T(), S(y, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (T(), S("foreignObject", {
3700
3847
  key: 0,
3701
3848
  x: n.x,
3702
3849
  y: n.y - 20,
@@ -3710,7 +3857,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3710
3857
  seriesIndex: r,
3711
3858
  serieName: e.name
3712
3859
  })
3713
- }, null, 12, Jn)], 12, qn)) : x("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (T(), S("foreignObject", {
3860
+ }, null, 12, rr)], 12, nr)) : x("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (T(), S("foreignObject", {
3714
3861
  key: 1,
3715
3862
  x: n.x - e.name.length * (z.value.plotLabels / 2),
3716
3863
  y: n.y - 20,
@@ -3724,14 +3871,14 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3724
3871
  seriesIndex: r,
3725
3872
  serieName: e.name
3726
3873
  })
3727
- }, null, 12, Xn)], 12, Yn)) : x("", !0)], 64))], 64))), 128))], 64))), 128))])),
3728
- B.value.line.labels.show && V.value.dataLabels.show ? (T(), S("g", Qn, [(T(!0), S(y, null, D($.value, (e, t) => (T(), S(y, { key: `xLabel_line_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_line_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || Zc(e, n, r) ? (T(), S("text", {
3874
+ }, null, 12, ar)], 12, ir)) : x("", !0)], 64))], 64))), 128))], 64))), 128))])),
3875
+ B.value.line.labels.show && V.value.dataLabels.show ? (T(), S("g", sr, [(T(!0), S(y, null, D(Q.value, (e, t) => (T(), S(y, { key: `xLabel_line_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_line_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || pl(e, n, r) ? (T(), S("text", {
3729
3876
  key: 0,
3730
- transform: Jc({
3877
+ transform: ol({
3731
3878
  plot: n,
3732
3879
  type: "line"
3733
3880
  }),
3734
- "text-anchor": Yc({
3881
+ "text-anchor": sl({
3735
3882
  plot: n,
3736
3883
  type: "line"
3737
3884
  }),
@@ -3740,27 +3887,27 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3740
3887
  stroke: B.value.chart.backgroundColor,
3741
3888
  "paint-order": "stroke",
3742
3889
  style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
3743
- innerHTML: Kc({
3890
+ innerHTML: il({
3744
3891
  serie: e,
3745
3892
  plot: n,
3746
3893
  type: "line"
3747
3894
  })
3748
- }, null, 12, $n)) : x("", !0)], 64))), 128))], 64))), 128))])) : (T(), S("g", er, [(T(!0), S(y, null, D($.value, (e, t) => (T(), S(y, { key: `xLabel_line_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_line_${t}_${r}` }, [B.value.line.tag.followValue ? (T(), S(y, { key: 1 }, [[
3895
+ }, null, 12, cr)) : x("", !0)], 64))), 128))], 64))), 128))])) : (T(), S("g", lr, [(T(!0), S(y, null, D(Q.value, (e, t) => (T(), S(y, { key: `xLabel_line_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_line_${t}_${r}` }, [B.value.line.tag.followValue ? (T(), S(y, { key: 1 }, [[
3749
3896
  I.value,
3750
3897
  R.value,
3751
- Vi.value
3898
+ $i.value
3752
3899
  ].includes(r) && e.useTag ? (T(), S("line", {
3753
3900
  key: 0,
3754
3901
  class: "vue-ui-xy-tag-line",
3755
- x1: Y.value?.left,
3756
- x2: Y.value?.right,
3902
+ x1: J.value?.left,
3903
+ x2: J.value?.right,
3757
3904
  y1: n.y,
3758
3905
  y2: n.y,
3759
3906
  "stroke-width": 1,
3760
3907
  "stroke-linecap": "round",
3761
3908
  "stroke-dasharray": "2",
3762
3909
  stroke: e.color
3763
- }, null, 8, ar)) : x("", !0)], 64)) : (T(), S(y, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (T(), S("foreignObject", {
3910
+ }, null, 8, mr)) : x("", !0)], 64)) : (T(), S(y, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (T(), S("foreignObject", {
3764
3911
  key: 0,
3765
3912
  x: n.x,
3766
3913
  y: n.y - 20,
@@ -3774,7 +3921,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3774
3921
  seriesIndex: r,
3775
3922
  serieName: e.name
3776
3923
  })
3777
- }, null, 12, nr)], 12, tr)) : x("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (T(), S("foreignObject", {
3924
+ }, null, 12, dr)], 12, ur)) : x("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (T(), S("foreignObject", {
3778
3925
  key: 1,
3779
3926
  x: n.x,
3780
3927
  y: n.y - 20,
@@ -3788,8 +3935,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3788
3935
  seriesIndex: r,
3789
3936
  serieName: e.name
3790
3937
  })
3791
- }, null, 12, ir)], 12, rr)) : x("", !0)], 64))], 64))), 128))], 64))), 128))])),
3792
- (T(!0), S(y, null, D($.value, (e, t) => (T(), S(y, { key: `xLabel_line_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_line_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (T(), S("text", {
3938
+ }, null, 12, pr)], 12, fr)) : x("", !0)], 64))], 64))), 128))], 64))), 128))])),
3939
+ (T(!0), S(y, null, D(Q.value, (e, t) => (T(), S(y, { key: `xLabel_line_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_line_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (T(), S("text", {
3793
3940
  key: 0,
3794
3941
  x: n.x - z.value.plotLabels,
3795
3942
  y: n.y,
@@ -3805,7 +3952,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3805
3952
  maxWords: 2
3806
3953
  }),
3807
3954
  style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3808
- }, null, 12, or)) : x("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (T(), S("text", {
3955
+ }, null, 12, hr)) : x("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (T(), S("text", {
3809
3956
  key: 1,
3810
3957
  x: n.x + z.value.plotLabels,
3811
3958
  y: n.y,
@@ -3821,8 +3968,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3821
3968
  maxWords: 2
3822
3969
  }),
3823
3970
  style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3824
- }, null, 12, sr)) : x("", !0)], 64))), 128))], 64))), 128)),
3825
- (T(!0), S(y, null, D(vc.value, (e, t) => (T(), S(y, { key: `xLabel_plot_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_plot_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (T(), S("text", {
3971
+ }, null, 12, gr)) : x("", !0)], 64))), 128))], 64))), 128)),
3972
+ (T(!0), S(y, null, D($.value, (e, t) => (T(), S(y, { key: `xLabel_plot_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_plot_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (T(), S("text", {
3826
3973
  key: 0,
3827
3974
  x: n.x - z.value.plotLabels,
3828
3975
  y: n.y,
@@ -3838,7 +3985,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3838
3985
  maxWords: 2
3839
3986
  }),
3840
3987
  style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3841
- }, null, 12, cr)) : x("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (T(), S("text", {
3988
+ }, null, 12, _r)) : x("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (T(), S("text", {
3842
3989
  key: 1,
3843
3990
  x: n.x + z.value.plotLabels,
3844
3991
  y: n.y,
@@ -3854,12 +4001,12 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3854
4001
  maxWords: 2
3855
4002
  }),
3856
4003
  style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3857
- }, null, 12, lr)) : x("", !0)], 64))), 128))], 64))), 128)),
4004
+ }, null, 12, vr)) : x("", !0)], 64))), 128))], 64))), 128)),
3858
4005
  (T(!0), S(y, null, D([
3859
- ...vc.value,
3860
4006
  ...$.value,
3861
- ..._c.value
3862
- ], (e, t) => (T(), S(y, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(k(_e)(e.plots).trend) ? (T(), S("g", ur, [
4007
+ ...Q.value,
4008
+ ...Ac.value
4009
+ ], (e, t) => (T(), S(y, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(k(_e)(e.plots).trend) ? (T(), S("g", yr, [
3863
4010
  C("defs", null, [C("marker", {
3864
4011
  id: `progression_arrow_${t}`,
3865
4012
  markerWidth: "9",
@@ -3876,11 +4023,11 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3876
4023
  stroke: B.value.chart.backgroundColor,
3877
4024
  "stroke-width": "1",
3878
4025
  "stroke-linejoin": "round"
3879
- }, null, 8, fr)], 8, dr)]),
4026
+ }, null, 8, xr)], 8, br)]),
3880
4027
  e.plots.length > 1 ? (T(), S("line", {
3881
4028
  key: 0,
3882
- x1: k(_e)(e.plots).x1 + (e.type === "bar" ? ls() : 0),
3883
- x2: k(_e)(e.plots).x2 + (e.type === "bar" ? ls() : 0),
4029
+ x1: k(_e)(e.plots).x1 + (e.type === "bar" ? Ss() : 0),
4030
+ x2: k(_e)(e.plots).x2 + (e.type === "bar" ? Ss() : 0),
3884
4031
  y1: k(h)(k(_e)(e.plots).y1),
3885
4032
  y2: k(h)(k(_e)(e.plots).y2),
3886
4033
  "stroke-width": 1,
@@ -3889,11 +4036,11 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3889
4036
  "stroke-linecap": "round",
3890
4037
  "stroke-linejoin": "round",
3891
4038
  "marker-end": `url(#progression_arrow_${t})`
3892
- }, null, 8, pr)) : x("", !0),
4039
+ }, null, 8, Sr)) : x("", !0),
3893
4040
  e.plots.length > 1 ? (T(), S("line", {
3894
4041
  key: 1,
3895
- x1: k(_e)(e.plots).x1 + (e.type === "bar" ? ls() : 0),
3896
- x2: k(_e)(e.plots).x2 + (e.type === "bar" ? ls() : 0),
4042
+ x1: k(_e)(e.plots).x1 + (e.type === "bar" ? Ss() : 0),
4043
+ x2: k(_e)(e.plots).x2 + (e.type === "bar" ? Ss() : 0),
3897
4044
  y1: k(h)(k(_e)(e.plots).y1),
3898
4045
  y2: k(h)(k(_e)(e.plots).y2),
3899
4046
  "stroke-width": 1,
@@ -3902,11 +4049,11 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3902
4049
  "stroke-linecap": "round",
3903
4050
  "stroke-linejoin": "round",
3904
4051
  "marker-end": `url(#progression_arrow_${t})`
3905
- }, null, 8, mr)) : x("", !0),
4052
+ }, null, 8, Cr)) : x("", !0),
3906
4053
  e.plots.length > 1 ? (T(), S("text", {
3907
4054
  key: 2,
3908
4055
  "text-anchor": "middle",
3909
- x: k(_e)(e.plots).x2 + (e.type === "bar" ? ls() : 0),
4056
+ x: k(_e)(e.plots).x2 + (e.type === "bar" ? Ss() : 0),
3910
4057
  y: k(_e)(e.plots).y2 - 12,
3911
4058
  "font-size": z.value.plotLabels,
3912
4059
  fill: e.color,
@@ -3919,75 +4066,77 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3919
4066
  v: k(_e)(e.plots).trend * 100,
3920
4067
  s: "%",
3921
4068
  r: 2
3922
- })), 9, hr)) : x("", !0)
4069
+ })), 9, wr)) : x("", !0)
3923
4070
  ])) : x("", !0)], 64))), 128)),
3924
- V.value.useIndividualScale && !V.value.isStacked ? (T(), S(y, { key: 13 }, [C("defs", null, [(T(!0), S(y, null, D(yc.value, (e, t) => (T(), S("linearGradient", {
4071
+ V.value.useIndividualScale && !V.value.isStacked ? (T(), S(y, { key: 16 }, [C("defs", null, [(T(!0), S(y, null, D(jc.value, (e, t) => (T(), S("linearGradient", {
3925
4072
  id: `individual_scale_gradient_${F.value}_${t}`,
3926
- x1: J.value ? "100%" : "0%",
3927
- x2: J.value ? "0%" : "100%",
4073
+ x1: q.value ? "100%" : "0%",
4074
+ x2: q.value ? "0%" : "100%",
3928
4075
  y1: "0%",
3929
4076
  y2: "0%"
3930
4077
  }, [C("stop", {
3931
4078
  offset: "0%",
3932
4079
  "stop-color": B.value.chart.backgroundColor,
3933
4080
  "stop-opacity": "0"
3934
- }, null, 8, _r), C("stop", {
4081
+ }, null, 8, Er), C("stop", {
3935
4082
  offset: "100%",
3936
4083
  "stop-color": e.color,
3937
4084
  "stop-opacity": "0.2"
3938
- }, null, 8, vr)], 8, gr))), 256))]), (T(!0), S(y, null, D(yc.value, (e, t) => (T(), S("rect", {
3939
- x: J.value ? e.x : e.x - B.value.chart.grid.labels.yAxis.labelWidth - Y.value.individualOffsetX,
3940
- y: Y.value?.top,
3941
- width: (J.value, B.value.chart.grid.labels.yAxis.labelWidth + Y.value.individualOffsetX),
3942
- height: Y.value.height < 0 ? 10 : Y.value.height,
4085
+ }, null, 8, Dr)], 8, Tr))), 256))]), (T(!0), S(y, null, D(jc.value, (e, t) => (T(), S("rect", {
4086
+ x: q.value ? e.x : e.x - B.value.chart.grid.labels.yAxis.labelWidth - J.value.individualOffsetX,
4087
+ y: J.value?.top,
4088
+ width: (q.value, B.value.chart.grid.labels.yAxis.labelWidth + J.value.individualOffsetX),
4089
+ height: J.value.height < 0 ? 10 : J.value.height,
3943
4090
  fill: M.value === e.groupId ? `url(#individual_scale_gradient_${F.value}_${t})` : "transparent",
3944
4091
  onMouseenter: (t) => M.value = e.groupId,
3945
4092
  onMouseleave: r[0] ||= (e) => M.value = null
3946
- }, null, 40, yr))), 256))], 64)) : x("", !0),
4093
+ }, null, 40, Or))), 256))], 64)) : x("", !0),
3947
4094
  C("g", null, [B.value.chart.grid.labels.axis.yLabel && !V.value.useIndividualScale ? (T(), S("text", {
3948
4095
  key: 0,
3949
4096
  ref_key: "yAxisLabel",
3950
- ref: Ei,
4097
+ ref: Ri,
3951
4098
  "font-size": z.value.yAxis,
3952
4099
  fill: B.value.chart.grid.labels.color,
3953
- transform: `translate(${J.value ? Y.value.right + Y.value.scaleLabelsOffset + B.value.chart.grid.labels.axis.yLabelOffsetX + z.value.yAxis : B.value.chart.grid.labels.axis.fontSize + B.value.chart.grid.labels.axis.yLabelOffsetX}, ${Y.value?.top + Y.value.height / 2}) rotate(-90)`,
4100
+ transform: `translate(${q.value ? J.value.right + J.value.scaleLabelsOffset + B.value.chart.grid.labels.axis.yLabelOffsetX + z.value.yAxis : B.value.chart.grid.labels.axis.fontSize + B.value.chart.grid.labels.axis.yLabelOffsetX}, ${J.value?.top + J.value.height / 2}) rotate(-90)`,
3954
4101
  "text-anchor": "middle",
3955
4102
  style: { transition: "none" }
3956
- }, pt(B.value.chart.grid.labels.axis.yLabel), 9, br)) : x("", !0), B.value.chart.grid.labels.axis.xLabel ? (T(), S("text", {
4103
+ }, pt(B.value.chart.grid.labels.axis.yLabel), 9, kr)) : x("", !0), B.value.chart.grid.labels.axis.xLabel ? (T(), S("text", {
3957
4104
  key: 1,
3958
4105
  ref_key: "xAxisLabel",
3959
- ref: Ti,
4106
+ ref: Li,
3960
4107
  "text-anchor": "middle",
3961
4108
  x: N.value / 2,
3962
- y: Pi.value - 3,
4109
+ y: Ki.value - 3,
3963
4110
  "font-size": z.value.yAxis,
3964
4111
  fill: B.value.chart.grid.labels.color
3965
- }, pt(B.value.chart.grid.labels.axis.xLabel), 9, xr)) : x("", !0)]),
4112
+ }, pt(B.value.chart.grid.labels.axis.xLabel), 9, Ar)) : x("", !0)]),
3966
4113
  B.value.chart.grid.labels.xAxisLabels.show ? (T(), S("g", {
3967
- key: 14,
4114
+ key: 17,
3968
4115
  ref_key: "timeLabelsEls",
3969
- ref: Di
3970
- }, [n.$slots["time-label"] ? (T(!0), S(y, { key: 0 }, D(lc.value, (e, t) => O(n.$slots, "time-label", at({
4116
+ ref: zi,
4117
+ opacity: ll.value ? .1 : 1,
4118
+ style: { transition: "opacity 0.2s" }
4119
+ }, [n.$slots["time-label"] ? (T(!0), S(y, { key: 0 }, D(Sc.value, (e, t) => O(n.$slots, "time-label", at({
3971
4120
  key: `time_label_${e.id}`,
3972
4121
  ref_for: !0
3973
4122
  }, {
3974
- x: uc(e, t),
3975
- y: Y.value?.bottom,
4123
+ x: Cc(e, t),
4124
+ y: J.value?.bottom,
3976
4125
  fontSize: z.value.xAxis,
3977
4126
  fill: B.value.chart.grid.labels.xAxisLabels.color,
3978
- transform: `translate(${uc(e, t)}, ${Y.value?.bottom + z.value.xAxis * 1.3 + B.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${B.value.chart.grid.labels.xAxisLabels.rotation})`,
4127
+ transform: `translate(${Cc(e, t)}, ${J.value?.bottom + z.value.xAxis * 1.3 + B.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${B.value.chart.grid.labels.xAxisLabels.rotation})`,
3979
4128
  absoluteIndex: e.absoluteIndex,
3980
4129
  content: e.text,
3981
4130
  textAnchor: B.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : B.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3982
4131
  show: e && e.text
3983
- }), void 0, !0)), 128)) : (T(!0), S(y, { key: 1 }, D(lc.value, (e, n) => (T(), S("g", { key: `time_label_${n}` }, [e && e.text ? (T(), S(y, { key: 0 }, [String(e.text).includes("\n") ? (T(), S("text", {
4132
+ }), void 0, !0)), 128)) : (T(!0), S(y, { key: 1 }, D(Sc.value, (e, n) => (T(), S("g", { key: `time_label_${n}` }, [e && e.text ? (T(), S(y, { key: 0 }, [String(e.text).includes("\n") ? (T(), S("text", {
3984
4133
  key: 1,
3985
4134
  class: "vue-data-ui-time-label",
3986
4135
  "text-anchor": B.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : B.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3987
4136
  "font-size": z.value.xAxis,
3988
4137
  fill: B.value.chart.grid.labels.xAxisLabels.color,
3989
- transform: `translate(${uc(e, n)}, ${Y.value?.bottom + z.value.xAxis * 1.5}), rotate(${B.value.chart.grid.labels.xAxisLabels.rotation})`,
3990
- style: w({ cursor: _o() && Ca.value ? "pointer" : "default" }),
4138
+ transform: `translate(${Cc(e, n)}, ${J.value?.bottom + z.value.xAxis * 1.5}), rotate(${B.value.chart.grid.labels.xAxisLabels.rotation})`,
4139
+ style: w({ cursor: Ao() && Fa.value ? "pointer" : "default" }),
3991
4140
  innerHTML: k(t)({
3992
4141
  content: String(e.text),
3993
4142
  fontSize: z.value.xAxis,
@@ -3995,18 +4144,38 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
3995
4144
  x: 0,
3996
4145
  y: 0
3997
4146
  }),
3998
- onClick: () => Ao(e, n)
3999
- }, null, 12, Cr)) : (T(), S("text", {
4147
+ onClick: () => Uo(e, n)
4148
+ }, null, 12, Nr)) : (T(), S("text", {
4000
4149
  key: 0,
4001
4150
  class: "vue-data-ui-time-label",
4002
4151
  "text-anchor": B.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : B.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
4003
4152
  "font-size": z.value.xAxis,
4004
4153
  fill: B.value.chart.grid.labels.xAxisLabels.color,
4005
- transform: `translate(${uc(e, n)}, ${Y.value?.bottom + z.value.xAxis * 1.5}), rotate(${B.value.chart.grid.labels.xAxisLabels.rotation})`,
4006
- style: w({ cursor: _o() && Ca.value ? "pointer" : "default" }),
4007
- onClick: () => Ao(e, n)
4008
- }, pt(e.text || ""), 13, Sr))], 64)) : x("", !0)]))), 128))], 512)) : x("", !0),
4009
- ac.value.length && !V.value.isStacked ? (T(), S("g", wr, [(T(!0), S(y, null, D(ac.value, (e) => (T(), S("g", { key: e.uid }, [
4154
+ transform: `translate(${Cc(e, n)}, ${J.value?.bottom + z.value.xAxis * 1.5}), rotate(${B.value.chart.grid.labels.xAxisLabels.rotation})`,
4155
+ style: w({ cursor: Ao() && Fa.value ? "pointer" : "default" }),
4156
+ onClick: () => Uo(e, n)
4157
+ }, pt(e.text || ""), 13, Mr))], 64)) : x("", !0)]))), 128))], 8, jr)) : x("", !0),
4158
+ dl.value ? (T(), S("g", Pr, [C("text", {
4159
+ class: "vue-data-ui-time-label",
4160
+ "text-anchor": B.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : B.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
4161
+ "font-size": z.value.xAxis,
4162
+ fill: B.value.chart.grid.labels.xAxisLabels.color,
4163
+ transform: `translate(${dl.value.x}, ${J.value?.bottom + z.value.xAxis * 1.5}), rotate(${B.value.chart.grid.labels.xAxisLabels.rotation})`,
4164
+ "font-weight": "bold",
4165
+ style: {
4166
+ transition: "none !important",
4167
+ animation: "none !important",
4168
+ "pointer-events": "none"
4169
+ },
4170
+ innerHTML: k(t)({
4171
+ content: String(dl.value.text),
4172
+ fontSize: z.value.xAxis,
4173
+ fill: B.value.chart.grid.labels.xAxisLabels.color,
4174
+ x: 0,
4175
+ y: 0
4176
+ })
4177
+ }, null, 8, Fr)])) : x("", !0),
4178
+ vc.value.length && !V.value.isStacked ? (T(), S("g", Ir, [(T(!0), S(y, null, D(vc.value, (e) => (T(), S("g", { key: e.uid }, [
4010
4179
  e.yTop && e.show && isFinite(e.yTop) ? (T(), S("line", {
4011
4180
  key: 0,
4012
4181
  x1: e.x1,
@@ -4018,7 +4187,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
4018
4187
  "stroke-dasharray": e.config.line.strokeDasharray,
4019
4188
  "stroke-linecap": "round",
4020
4189
  style: { animation: "none !important" }
4021
- }, null, 8, Tr)) : x("", !0),
4190
+ }, null, 8, Lr)) : x("", !0),
4022
4191
  e.yBottom && e.show && isFinite(e.yBottom) ? (T(), S("line", {
4023
4192
  key: 1,
4024
4193
  x1: e.x1,
@@ -4030,16 +4199,16 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
4030
4199
  "stroke-dasharray": e.config.line.strokeDasharray,
4031
4200
  "stroke-linecap": "round",
4032
4201
  style: { animation: "none !important" }
4033
- }, null, 8, Er)) : x("", !0),
4202
+ }, null, 8, Rr)) : x("", !0),
4034
4203
  e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (T(), S("rect", {
4035
4204
  key: 2,
4036
4205
  y: Math.min(e.yTop, e.yBottom),
4037
4206
  x: e.x1,
4038
- width: Y.value.width,
4207
+ width: J.value.width,
4039
4208
  height: k(v)(e.areaHeight, 0),
4040
4209
  fill: k(f)(e.config.area.fill, e.config.area.opacity),
4041
4210
  style: { animation: "none !important" }
4042
- }, null, 8, Dr)) : x("", !0),
4211
+ }, null, 8, zr)) : x("", !0),
4043
4212
  e.config.label.text && e.show && isFinite(e._box.y) ? (T(), S("rect", at({
4044
4213
  key: 3,
4045
4214
  class: "vue-ui-xy-annotation-label-box"
@@ -4056,72 +4225,72 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
4056
4225
  "font-size": e.config.label.fontSize,
4057
4226
  fill: e.config.label.color,
4058
4227
  "text-anchor": e.config.label.textAnchor
4059
- }, pt(e.config.label.text), 9, Or)) : x("", !0)
4228
+ }, pt(e.config.label.text), 9, Br)) : x("", !0)
4060
4229
  ]))), 128))])) : x("", !0),
4061
- B.value.chart.timeTag.show && (q.value ? k(g)(Hc.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value)) ? (T(), S("g", kr, [(T(), S("foreignObject", {
4062
- x: Wc(),
4063
- y: Y.value?.bottom,
4230
+ !ll.value && B.value.chart.timeTag.show && (K.value ? k(g)(el.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value)) ? (T(), S("g", Vr, [(T(), S("foreignObject", {
4231
+ x: nl(),
4232
+ y: J.value?.bottom,
4064
4233
  width: "200",
4065
4234
  height: "40",
4066
4235
  style: { overflow: "visible !important" }
4067
4236
  }, [C("div", {
4068
4237
  ref_key: "timeTagEl",
4069
- ref: zc,
4238
+ ref: Zc,
4070
4239
  class: "vue-ui-xy-time-tag",
4071
4240
  style: w(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${B.value.chart.timeTag.backgroundColor};color:${B.value.chart.timeTag.color};font-size:${B.value.chart.timeTag.fontSize}px`),
4072
- innerHTML: Gc.value
4073
- }, null, 12, jr)], 8, Ar)), C("circle", {
4074
- cx: q.value && k(g)(Hc.value) ? dc({ x: Hc.value }) : Hs((R.value === null ? 0 : R.value) || (I.value === null ? 0 : I.value)),
4075
- cy: Y.value?.bottom,
4241
+ innerHTML: rl.value
4242
+ }, null, 12, Ur)], 8, Hr)), C("circle", {
4243
+ cx: K.value && k(g)(el.value) ? wc({ x: el.value }) : tc((R.value === null ? 0 : R.value) || (I.value === null ? 0 : I.value)),
4244
+ cy: J.value?.bottom,
4076
4245
  r: B.value.chart.timeTag.circleMarker.radius,
4077
4246
  fill: B.value.chart.timeTag.circleMarker.color
4078
- }, null, 8, Mr)])) : x("", !0)
4247
+ }, null, 8, Wr)])) : x("", !0)
4079
4248
  ])) : x("", !0),
4080
- Na.value ? (T(), S("rect", at({ key: 2 }, Ia.value, {
4249
+ Ka.value ? (T(), S("rect", at({ key: 2 }, Ya.value, {
4081
4250
  "data-start": W.value.start,
4082
4251
  "data-end": W.value.end
4083
- }), null, 16, Nr)) : x("", !0),
4252
+ }), null, 16, Gr)) : x("", !0),
4084
4253
  O(n.$slots, "svg", { svg: {
4085
- ...pa.value,
4254
+ ...Ta.value,
4086
4255
  slicer: W.value,
4087
- isPrintingImg: k(La) || k(Ra) || ea.value,
4088
- isPrintingSvg: ta.value,
4256
+ isPrintingImg: k(Xa) || k(Za) || fa.value,
4257
+ isPrintingSvg: pa.value,
4089
4258
  data: [
4090
- ...$.value,
4091
- ..._c.value,
4092
- ...vc.value
4259
+ ...Q.value,
4260
+ ...Ac.value,
4261
+ ...$.value
4093
4262
  ],
4094
- drawingArea: Y.value
4263
+ drawingArea: J.value
4095
4264
  } }, void 0, !0)
4096
- ], 512)], 46, Tt)), n.$slots.hint ? (T(), S("div", Pr, [O(n.$slots, "hint", ct(it({
4265
+ ], 512)], 46, Tt)), n.$slots.hint ? (T(), S("div", Kr, [O(n.$slots, "hint", ct(it({
4097
4266
  hint: B.value.a11y.translations.keyboardNavigation,
4098
- isVisible: ul.value
4267
+ isVisible: El.value
4099
4268
  })), void 0, !0)])) : x("", !0)]),
4100
- n.$slots.watermark ? (T(), S("div", Fr, [O(n.$slots, "watermark", ct(it({ isPrinting: k(La) || k(Ra) || ea.value || ta.value })), void 0, !0)])) : x("", !0),
4101
- (T(!0), S(y, null, D($.value, (e, t) => (T(), S(y, { key: `tag_line_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `tag_line_${t}_${r}` }, [[
4269
+ n.$slots.watermark ? (T(), S("div", qr, [O(n.$slots, "watermark", ct(it({ isPrinting: k(Xa) || k(Za) || fa.value || pa.value })), void 0, !0)])) : x("", !0),
4270
+ (T(!0), S(y, null, D(Q.value, (e, t) => (T(), S(y, { key: `tag_line_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `tag_line_${t}_${r}` }, [[
4102
4271
  I.value,
4103
4272
  R.value,
4104
- Vi.value
4273
+ $i.value
4105
4274
  ].includes(r) && e.useTag && e.useTag === "end" && B.value.line.tag.followValue ? (T(), S("div", {
4106
4275
  key: 0,
4107
4276
  ref_for: !0,
4108
- ref: (e) => bo(t, r, e, "right", "line"),
4277
+ ref: (e) => No(t, r, e, "right", "line"),
4109
4278
  class: "vue-ui-xy-tag",
4110
4279
  "data-tag": "right",
4111
4280
  style: w({
4112
4281
  position: "fixed",
4113
4282
  top: k(ge)({
4114
4283
  svgElement: L.value,
4115
- x: Y.value?.right + B.value.line.tag.fontSize / 1.5,
4284
+ x: J.value?.right + B.value.line.tag.fontSize / 1.5,
4116
4285
  y: n.y,
4117
- element: Xi.value[`${t}_${r}_right_line`],
4286
+ element: ca.value[`${t}_${r}_right_line`],
4118
4287
  position: "right"
4119
4288
  })?.top + "px",
4120
4289
  left: k(ge)({
4121
4290
  svgElement: L.value,
4122
- x: Y.value?.right + B.value.line.tag.fontSize / 1.5,
4291
+ x: J.value?.right + B.value.line.tag.fontSize / 1.5,
4123
4292
  y: n.y,
4124
- element: Xi.value[`${t}_${r}_right_line`],
4293
+ element: ca.value[`${t}_${r}_right_line`],
4125
4294
  position: "right"
4126
4295
  })?.left + "px",
4127
4296
  height: "fit-content",
@@ -4132,41 +4301,41 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
4132
4301
  fontSize: B.value.line.tag.fontSize + "px",
4133
4302
  opacity: 1
4134
4303
  })
4135
- }, [(T(), S("svg", Ir, [C("path", {
4304
+ }, [(T(), S("svg", Jr, [C("path", {
4136
4305
  d: "M 0,10 10,0 10,20 Z",
4137
4306
  fill: e.color,
4138
4307
  stroke: "none"
4139
- }, null, 8, Lr)])), C("div", {
4308
+ }, null, 8, Yr)])), C("div", {
4140
4309
  class: "vue-ui-xy-tag-content",
4141
4310
  innerHTML: k(_)(B.value.line.tag.formatter, n.value, e.name, {
4142
4311
  datapoint: n,
4143
4312
  seriesIndex: r,
4144
4313
  serieName: e.name
4145
4314
  })
4146
- }, null, 8, Rr)], 4)) : x("", !0), [
4315
+ }, null, 8, Xr)], 4)) : x("", !0), [
4147
4316
  I.value,
4148
4317
  R.value,
4149
- Vi.value
4318
+ $i.value
4150
4319
  ].includes(r) && e.useTag && e.useTag === "start" && B.value.line.tag.followValue ? (T(), S("div", {
4151
4320
  key: 1,
4152
4321
  ref_for: !0,
4153
- ref: (e) => bo(t, r, e, "left", "line"),
4322
+ ref: (e) => No(t, r, e, "left", "line"),
4154
4323
  class: "vue-ui-xy-tag",
4155
4324
  "data-tag": "left",
4156
4325
  style: w({
4157
4326
  position: "fixed",
4158
4327
  top: k(ge)({
4159
4328
  svgElement: L.value,
4160
- x: Y.value?.left - B.value.line.tag.fontSize / 1.5,
4329
+ x: J.value?.left - B.value.line.tag.fontSize / 1.5,
4161
4330
  y: n.y,
4162
- element: Xi.value[`${t}_${r}_left_line`],
4331
+ element: ca.value[`${t}_${r}_left_line`],
4163
4332
  position: "left"
4164
4333
  })?.top + "px",
4165
4334
  left: k(ge)({
4166
4335
  svgElement: L.value,
4167
- x: Y.value?.left - B.value.line.tag.fontSize / 1.5,
4336
+ x: J.value?.left - B.value.line.tag.fontSize / 1.5,
4168
4337
  y: n.y,
4169
- element: Xi.value[`${t}_${r}_left_line`],
4338
+ element: ca.value[`${t}_${r}_left_line`],
4170
4339
  position: "left"
4171
4340
  })?.left + "px",
4172
4341
  height: "fit-content",
@@ -4177,42 +4346,42 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
4177
4346
  fontSize: B.value.line.tag.fontSize + "px",
4178
4347
  opacity: 1
4179
4348
  })
4180
- }, [(T(), S("svg", zr, [C("path", {
4349
+ }, [(T(), S("svg", Zr, [C("path", {
4181
4350
  d: "M 0,0 10,10 0,20 Z",
4182
4351
  fill: e.color,
4183
4352
  stroke: "none"
4184
- }, null, 8, Br)])), C("div", {
4353
+ }, null, 8, Qr)])), C("div", {
4185
4354
  class: "vue-ui-xy-tag-content",
4186
4355
  innerHTML: k(_)(B.value.line.tag.formatter, n.value, e.name, {
4187
4356
  datapoint: n,
4188
4357
  seriesIndex: r,
4189
4358
  serieName: e.name
4190
4359
  })
4191
- }, null, 8, Vr)], 4)) : x("", !0)], 64))), 128))], 64))), 128)),
4192
- (T(!0), S(y, null, D(vc.value, (e, t) => (T(), S(y, { key: `tag_plot_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `tag_plot_${t}_${r}` }, [[
4360
+ }, null, 8, $r)], 4)) : x("", !0)], 64))), 128))], 64))), 128)),
4361
+ (T(!0), S(y, null, D($.value, (e, t) => (T(), S(y, { key: `tag_plot_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `tag_plot_${t}_${r}` }, [[
4193
4362
  I.value,
4194
4363
  R.value,
4195
- Vi.value
4364
+ $i.value
4196
4365
  ].includes(r) && e.useTag && e.useTag === "end" && B.value.plot.tag.followValue ? (T(), S("div", {
4197
4366
  key: 0,
4198
4367
  ref_for: !0,
4199
- ref: (e) => bo(t, r, e, "right", "plot"),
4368
+ ref: (e) => No(t, r, e, "right", "plot"),
4200
4369
  class: "vue-ui-xy-tag",
4201
4370
  "data-tag": "right",
4202
4371
  style: w({
4203
4372
  position: "fixed",
4204
4373
  top: k(ge)({
4205
4374
  svgElement: L.value,
4206
- x: Y.value?.right + B.value.plot.tag.fontSize / 1.5,
4375
+ x: J.value?.right + B.value.plot.tag.fontSize / 1.5,
4207
4376
  y: n.y,
4208
- element: Xi.value[`${t}_${r}_right_plot`],
4377
+ element: ca.value[`${t}_${r}_right_plot`],
4209
4378
  position: "right"
4210
4379
  })?.top + "px",
4211
4380
  left: k(ge)({
4212
4381
  svgElement: L.value,
4213
- x: Y.value?.right + B.value.plot.tag.fontSize / 1.5,
4382
+ x: J.value?.right + B.value.plot.tag.fontSize / 1.5,
4214
4383
  y: n.y,
4215
- element: Xi.value[`${t}_${r}_right_plot`],
4384
+ element: ca.value[`${t}_${r}_right_plot`],
4216
4385
  position: "right"
4217
4386
  })?.left + "px",
4218
4387
  height: "fit-content",
@@ -4223,41 +4392,41 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
4223
4392
  fontSize: B.value.plot.tag.fontSize + "px",
4224
4393
  opacity: 1
4225
4394
  })
4226
- }, [(T(), S("svg", Hr, [C("path", {
4395
+ }, [(T(), S("svg", ei, [C("path", {
4227
4396
  d: "M 0,10 10,0 10,20 Z",
4228
4397
  fill: e.color,
4229
4398
  stroke: "none"
4230
- }, null, 8, Ur)])), C("div", {
4399
+ }, null, 8, ti)])), C("div", {
4231
4400
  class: "vue-ui-xy-tag-content",
4232
4401
  innerHTML: k(_)(B.value.plot.tag.formatter, n.value, e.name, {
4233
4402
  datapoint: n,
4234
4403
  seriesIndex: r,
4235
4404
  serieName: e.name
4236
4405
  })
4237
- }, null, 8, Wr)], 4)) : x("", !0), [
4406
+ }, null, 8, ni)], 4)) : x("", !0), [
4238
4407
  I.value,
4239
4408
  R.value,
4240
- Vi.value
4409
+ $i.value
4241
4410
  ].includes(r) && e.useTag && e.useTag === "start" && B.value.plot.tag.followValue ? (T(), S("div", {
4242
4411
  key: 1,
4243
4412
  ref_for: !0,
4244
- ref: (e) => bo(t, r, e, "left", "plot"),
4413
+ ref: (e) => No(t, r, e, "left", "plot"),
4245
4414
  class: "vue-ui-xy-tag",
4246
4415
  "data-tag": "left",
4247
4416
  style: w({
4248
4417
  position: "fixed",
4249
4418
  top: k(ge)({
4250
4419
  svgElement: L.value,
4251
- x: Y.value?.left - B.value.plot.tag.fontSize / 1.5,
4420
+ x: J.value?.left - B.value.plot.tag.fontSize / 1.5,
4252
4421
  y: n.y,
4253
- element: Xi.value[`${t}_${r}_left_plot`],
4422
+ element: ca.value[`${t}_${r}_left_plot`],
4254
4423
  position: "left"
4255
4424
  })?.top + "px",
4256
4425
  left: k(ge)({
4257
4426
  svgElement: L.value,
4258
- x: Y.value?.left - B.value.plot.tag.fontSize / 1.5,
4427
+ x: J.value?.left - B.value.plot.tag.fontSize / 1.5,
4259
4428
  y: n.y,
4260
- element: Xi.value[`${t}_${r}_left_plot`],
4429
+ element: ca.value[`${t}_${r}_left_plot`],
4261
4430
  position: "left"
4262
4431
  })?.left + "px",
4263
4432
  height: "fit-content",
@@ -4268,24 +4437,24 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
4268
4437
  fontSize: B.value.plot.tag.fontSize + "px",
4269
4438
  opacity: 1
4270
4439
  })
4271
- }, [(T(), S("svg", Gr, [C("path", {
4440
+ }, [(T(), S("svg", ri, [C("path", {
4272
4441
  d: "M 0,0 10,10 0,20 Z",
4273
4442
  fill: e.color,
4274
4443
  stroke: "none"
4275
- }, null, 8, Kr)])), C("div", {
4444
+ }, null, 8, ii)])), C("div", {
4276
4445
  class: "vue-ui-xy-tag-content",
4277
4446
  innerHTML: k(_)(B.value.plot.tag.formatter, n.value, e.name, {
4278
4447
  datapoint: n,
4279
4448
  seriesIndex: r,
4280
4449
  serieName: e.name
4281
4450
  })
4282
- }, null, 8, qr)], 4)) : x("", !0)], 64))), 128))], 64))), 128)),
4283
- B.value.chart.zoom.show && U.value > 6 && Sa.value && zo.value ? (T(), Qe(qe, {
4451
+ }, null, 8, ai)], 4)) : x("", !0)], 64))), 128))], 64))), 128)),
4452
+ B.value.chart.zoom.show && U.value > 6 && Pa.value && Qo.value ? (T(), Qe(qe, {
4284
4453
  key: 6,
4285
4454
  ref_key: "chartSlicer",
4286
- ref: bi,
4455
+ ref: Mi,
4287
4456
  uuid: F.value,
4288
- allMinimaps: nc.value,
4457
+ allMinimaps: hc.value,
4289
4458
  background: B.value.chart.zoom.color,
4290
4459
  borderColor: B.value.chart.backgroundColor,
4291
4460
  customFormat: B.value.chart.zoom.customFormat,
@@ -4299,14 +4468,14 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
4299
4468
  useResetSlot: B.value.chart.zoom.useResetSlot,
4300
4469
  immediate: !B.value.chart.zoom.preview.enable,
4301
4470
  inputColor: B.value.chart.zoom.color,
4302
- isPreview: Na.value,
4303
- labelLeft: X.value[0] ? X.value[0].text : "",
4304
- labelRight: X.value.at(-1) ? X.value.at(-1).text : "",
4305
- max: mc.value,
4306
- min: pc.value,
4307
- precision: q.value ? B.value.chart.grid.labels.xAxis.rounding : 0,
4308
- useValueRange: q.value,
4309
- minimap: tc.value,
4471
+ isPreview: Ka.value,
4472
+ labelLeft: Y.value[0] ? Y.value[0].text : "",
4473
+ labelRight: Y.value.at(-1) ? Y.value.at(-1).text : "",
4474
+ max: Dc.value,
4475
+ min: Ec.value,
4476
+ precision: K.value ? B.value.chart.grid.labels.xAxis.rounding : 0,
4477
+ useValueRange: K.value,
4478
+ minimap: mc.value,
4310
4479
  minimapCompact: B.value.chart.zoom.minimap.compact,
4311
4480
  minimapFrameColor: B.value.chart.zoom.minimap.frameColor,
4312
4481
  minimapIndicatorColor: B.value.chart.zoom.minimap.indicatorColor,
@@ -4314,17 +4483,17 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
4314
4483
  minimapMerged: B.value.chart.zoom.minimap.merged,
4315
4484
  minimapSelectedColor: B.value.chart.zoom.minimap.selectedColor,
4316
4485
  minimapSelectedColorOpacity: B.value.chart.zoom.minimap.selectedColorOpacity,
4317
- minimapSelectedIndex: q.value ? na.value : I.value,
4486
+ minimapSelectedIndex: K.value ? ma.value : I.value,
4318
4487
  minimapSelectionRadius: B.value.chart.zoom.minimap.selectionRadius,
4319
- preciseLabels: Tc.value.length ? Tc.value : wo.value,
4320
- refreshStartPoint: q.value ? pc.value : B.value.chart.zoom.startIndex === null ? 0 : B.value.chart.zoom.startIndex,
4321
- refreshEndPoint: q.value ? mc.value : B.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Ma(e.series).length)) : B.value.chart.zoom.endIndex + 1,
4488
+ preciseLabels: Lc.value.length ? Lc.value : Lo.value,
4489
+ refreshStartPoint: K.value ? Ec.value : B.value.chart.zoom.startIndex === null ? 0 : B.value.chart.zoom.startIndex,
4490
+ refreshEndPoint: K.value ? Dc.value : B.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Wa(e.series).length)) : B.value.chart.zoom.endIndex + 1,
4322
4491
  selectColor: B.value.chart.zoom.highlightColor,
4323
- selectedSeries: rc.value,
4492
+ selectedSeries: gc.value,
4324
4493
  smoothMinimap: B.value.chart.zoom.minimap.smooth,
4325
4494
  start: W.value.start,
4326
4495
  textColor: B.value.chart.color,
4327
- timeLabels: wo.value,
4496
+ timeLabels: Lo.value,
4328
4497
  usePreciseLabels: B.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !B.value.chart.zoom.useDefaultFormat,
4329
4498
  valueEnd: W.value.end,
4330
4499
  valueStart: W.value.start,
@@ -4339,54 +4508,54 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
4339
4508
  handleBorderColor: B.value.chart.zoom.minimap.handleBorderColor,
4340
4509
  handleFill: B.value.chart.zoom.minimap.handleFill,
4341
4510
  handleWidth: B.value.chart.zoom.minimap.handleWidth,
4342
- isCursorPointer: Ca.value,
4343
- onFutureEnd: r[1] ||= (e) => Pa("end", e),
4344
- onFutureStart: r[2] ||= (e) => Pa("start", e),
4345
- onReset: qo,
4346
- onTrapMouse: jo,
4347
- onTrapMouseValue: Mo,
4348
- "onUpdate:end": Ko,
4349
- "onUpdate:start": Go
4511
+ isCursorPointer: Fa.value,
4512
+ onFutureEnd: r[1] ||= (e) => qa("end", e),
4513
+ onFutureStart: r[2] ||= (e) => qa("start", e),
4514
+ onReset: os,
4515
+ onTrapMouse: Wo,
4516
+ onTrapMouseValue: Go,
4517
+ "onUpdate:end": as,
4518
+ "onUpdate:start": is
4350
4519
  }, {
4351
4520
  "reset-action": A(({ reset: e }) => [O(n.$slots, "reset-action", ct(it({ reset: e })), void 0, !0)]),
4352
4521
  _: 3
4353
4522
  }, 8, /* @__PURE__ */ "uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.min.precision.useValueRange.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshStartPoint.refreshEndPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) : x("", !0),
4354
- C("div", { id: `legend-bottom-${F.value}` }, null, 8, Jr),
4355
- Qi.value && (B.value.chart.legend.show || n.$slots.legend) ? (T(), Qe(Ze, {
4523
+ C("div", { id: `legend-bottom-${F.value}` }, null, 8, oi),
4524
+ ua.value && (B.value.chart.legend.show || n.$slots.legend) ? (T(), Qe(Ze, {
4356
4525
  key: 7,
4357
4526
  to: B.value.chart.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
4358
4527
  }, [C("div", {
4359
4528
  ref_key: "chartLegend",
4360
- ref: xi
4361
- }, [O(n.$slots, "legend", { legend: no.value }, () => [B.value.chart.legend.show ? (T(), S("div", {
4529
+ ref: Ni
4530
+ }, [O(n.$slots, "legend", { legend: go.value }, () => [B.value.chart.legend.show ? (T(), S("div", {
4362
4531
  key: 0,
4363
4532
  class: "vue-ui-xy-legend",
4364
4533
  style: w({ fontSize: `var(--legend-font-size, ${B.value.chart.legend.fontSize ?? 14}px)` })
4365
- }, [B.value.chart.legend.selectAllToggle.show && no.value.length > 2 && !k(Oa) ? (T(), Qe(Ye, {
4534
+ }, [B.value.chart.legend.selectAllToggle.show && go.value.length > 2 && !k(Ba) ? (T(), Qe(Ye, {
4366
4535
  key: 0,
4367
4536
  backgroundColor: B.value.chart.legend.selectAllToggle.backgroundColor,
4368
4537
  color: B.value.chart.legend.selectAllToggle.color,
4369
4538
  fontSize: B.value.chart.legend.fontSize,
4370
4539
  checked: P.value.length > 0,
4371
- onToggle: Es
4540
+ onToggle: zs
4372
4541
  }, null, 8, [
4373
4542
  "backgroundColor",
4374
4543
  "color",
4375
4544
  "fontSize",
4376
4545
  "checked"
4377
- ])) : x("", !0), (T(!0), S(y, null, D(no.value, (e, t) => (T(), S("div", {
4546
+ ])) : x("", !0), (T(!0), S(y, null, D(go.value, (e, t) => (T(), S("div", {
4378
4547
  key: `div_legend_item_${t}`,
4379
- onClick: (t) => ks(e),
4380
- onKeydown: (t) => Ds(t, e),
4548
+ onClick: (t) => Hs(e),
4549
+ onKeydown: (t) => Bs(t, e),
4381
4550
  role: "button",
4382
4551
  tabindex: "0",
4383
4552
  class: st({
4384
- "vue-ui-xy-legend-item-alone": no.value.length === 1,
4553
+ "vue-ui-xy-legend-item-alone": go.value.length === 1,
4385
4554
  "vue-ui-xy-legend-item": !0,
4386
4555
  "vue-ui-xy-legend-item-segregated": P.value.includes(e.id)
4387
4556
  }),
4388
- style: w({ cursor: Ca.value ? "pointer" : "default" })
4389
- }, [Li.value[e.type] === "line" ? (T(), S("svg", Xr, [C("rect", {
4557
+ style: w({ cursor: Fa.value ? "pointer" : "default" })
4558
+ }, [Yi.value[e.type] === "line" ? (T(), S("svg", ci, [C("rect", {
4390
4559
  x: "0",
4391
4560
  y: "7.5",
4392
4561
  rx: "1.5",
@@ -4395,7 +4564,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
4395
4564
  height: "3",
4396
4565
  width: "20",
4397
4566
  fill: e.color
4398
- }, null, 8, Zr), tt(Ge, {
4567
+ }, null, 8, li), tt(Ge, {
4399
4568
  plot: {
4400
4569
  x: 10,
4401
4570
  y: 9
@@ -4416,7 +4585,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
4416
4585
  "color",
4417
4586
  "shape",
4418
4587
  "stroke"
4419
- ])])) : Li.value[e.type] === "bar" ? (T(), S("svg", Qr, [Li.value[e.type] === "bar" && n.$slots.pattern ? (T(), S("rect", {
4588
+ ])])) : Yi.value[e.type] === "bar" ? (T(), S("svg", ui, [Yi.value[e.type] === "bar" && n.$slots.pattern ? (T(), S("rect", {
4420
4589
  key: 0,
4421
4590
  x: "4",
4422
4591
  y: "4",
@@ -4425,7 +4594,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
4425
4594
  width: "32",
4426
4595
  stroke: "none",
4427
4596
  fill: e.color
4428
- }, null, 8, $r)) : x("", !0), Li.value[e.type] === "bar" ? (T(), S("rect", {
4597
+ }, null, 8, di)) : x("", !0), Yi.value[e.type] === "bar" ? (T(), S("rect", {
4429
4598
  key: 1,
4430
4599
  x: "4",
4431
4600
  y: "4",
@@ -4434,7 +4603,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
4434
4603
  width: "32",
4435
4604
  stroke: "none",
4436
4605
  fill: n.$slots.pattern ? `url(#pattern_${F.value}_${e.slotAbsoluteIndex})` : e.color
4437
- }, null, 8, ei)) : x("", !0)])) : (T(), S("svg", ti, [tt(Ge, {
4606
+ }, null, 8, fi)) : x("", !0)])) : (T(), S("svg", pi, [tt(Ge, {
4438
4607
  plot: {
4439
4608
  x: 6,
4440
4609
  y: 6
@@ -4449,16 +4618,16 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
4449
4618
  "hexagon",
4450
4619
  "star"
4451
4620
  ].includes(e.shape) ? e.shape : "circle"
4452
- }, null, 8, ["color", "shape"])])), C("span", { style: w(`color:${B.value.chart.legend.color}`) }, pt(e.name), 5)], 46, Yr))), 128))], 4)) : x("", !0)], !0)], 512)], 8, ["to"])) : x("", !0),
4621
+ }, null, 8, ["color", "shape"])])), C("span", { style: w(`color:${B.value.chart.legend.color}`) }, pt(e.name), 5)], 46, si))), 128))], 4)) : x("", !0)], !0)], 512)], 8, ["to"])) : x("", !0),
4453
4622
  n.$slots.source ? (T(), S("div", {
4454
4623
  key: 8,
4455
4624
  ref_key: "source",
4456
- ref: Si,
4625
+ ref: Pi,
4457
4626
  dir: "auto"
4458
4627
  }, [O(n.$slots, "source", {}, void 0, !0)], 512)) : x("", !0),
4459
- tt(k(ai), {
4628
+ tt(k(_i), {
4460
4629
  teleportTo: B.value.chart.tooltip.teleportTo,
4461
- show: V.value.showTooltip && Bi.value,
4630
+ show: V.value.showTooltip && Qi.value,
4462
4631
  backgroundColor: B.value.chart.tooltip.backgroundColor,
4463
4632
  color: B.value.chart.tooltip.color,
4464
4633
  fontSize: B.value.chart.tooltip.fontSize,
@@ -4470,19 +4639,19 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
4470
4639
  offsetX: B.value.chart.tooltip.offsetX,
4471
4640
  offsetY: B.value.chart.tooltip.offsetY,
4472
4641
  parent: n.$refs.chart,
4473
- content: Ec.value,
4474
- isFullscreen: zi.value,
4642
+ content: Rc.value,
4643
+ isFullscreen: Zi.value,
4475
4644
  isCustom: B.value.chart.tooltip.customFormat && typeof B.value.chart.tooltip.customFormat == "function",
4476
4645
  smooth: B.value.chart.tooltip.smooth,
4477
4646
  backdropFilter: B.value.chart.tooltip.backdropFilter,
4478
4647
  smoothForce: B.value.chart.tooltip.smoothForce,
4479
4648
  smoothSnapThreshold: B.value.chart.tooltip.smoothSnapThreshold,
4480
- isA11yMode: ra.value != null,
4481
- a11yPosition: ia.value
4649
+ isA11yMode: ha.value != null,
4650
+ a11yPosition: ga.value
4482
4651
  }, {
4483
- "tooltip-before": A(() => [O(n.$slots, "tooltip-before", ct(it({ ...xc.value })), void 0, !0)]),
4484
- tooltip: A(() => [O(n.$slots, "tooltip", ct(it({ ...xc.value })), void 0, !0)]),
4485
- "tooltip-after": A(() => [O(n.$slots, "tooltip-after", ct(it({ ...xc.value })), void 0, !0)]),
4652
+ "tooltip-before": A(() => [O(n.$slots, "tooltip-before", ct(it({ ...Nc.value })), void 0, !0)]),
4653
+ tooltip: A(() => [O(n.$slots, "tooltip", ct(it({ ...Nc.value })), void 0, !0)]),
4654
+ "tooltip-after": A(() => [O(n.$slots, "tooltip-after", ct(it({ ...Nc.value })), void 0, !0)]),
4486
4655
  _: 3
4487
4656
  }, 8, [
4488
4657
  "teleportTo",
@@ -4508,36 +4677,36 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
4508
4677
  "isA11yMode",
4509
4678
  "a11yPosition"
4510
4679
  ]),
4511
- Sa.value && B.value.chart.userOptions.buttons.table ? (T(), Qe(dt(el.value.component), at({ key: 9 }, el.value.props, {
4680
+ Pa.value && B.value.chart.userOptions.buttons.table ? (T(), Qe(dt(gl.value.component), at({ key: 9 }, gl.value.props, {
4512
4681
  ref_key: "tableUnit",
4513
- ref: $i,
4514
- onClose: tl
4682
+ ref: da,
4683
+ onClose: _l
4515
4684
  }), $e({
4516
- content: A(() => [C("div", { style: w(`${k(La) || B.value.table.useDialog ? "" : "max-height:400px"};${B.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${B.value.table.useDialog ? "" : "margin-top:48px"}`) }, [C("div", ni, [yt(C("input", {
4685
+ content: A(() => [C("div", { style: w(`${k(Xa) || B.value.table.useDialog ? "" : "max-height:400px"};${B.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${B.value.table.useDialog ? "" : "margin-top:48px"}`) }, [C("div", mi, [yt(C("input", {
4517
4686
  type: "checkbox",
4518
- "onUpdate:modelValue": r[4] ||= (e) => Gi.value = e
4519
- }, null, 512), [[gt, Gi.value]]), C("div", {
4520
- onClick: r[5] ||= (e) => Gi.value = !Gi.value,
4521
- style: w({ cursor: Ca.value ? "pointer" : "default" })
4522
- }, [tt(k(si), {
4687
+ "onUpdate:modelValue": r[4] ||= (e) => ra.value = e
4688
+ }, null, 512), [[gt, ra.value]]), C("div", {
4689
+ onClick: r[5] ||= (e) => ra.value = !ra.value,
4690
+ style: w({ cursor: Fa.value ? "pointer" : "default" })
4691
+ }, [tt(k(yi), {
4523
4692
  name: "chartLine",
4524
4693
  size: 20,
4525
4694
  stroke: B.value.chart.color
4526
- }, null, 8, ["stroke"])], 4)]), Gi.value ? (T(), Qe(k(ci), {
4527
- key: `sparkline_${Ki.value}`,
4528
- dataset: Rs.value,
4529
- config: zs.value
4530
- }, null, 8, ["dataset", "config"])) : (T(), Qe(k(ii), {
4531
- key: `table_${Ui.value}`,
4532
- colNames: Oc.value.colNames,
4533
- head: Oc.value.head,
4534
- body: Oc.value.body,
4535
- config: Oc.value.config,
4536
- title: B.value.table.useDialog ? "" : el.value.title,
4695
+ }, null, 8, ["stroke"])], 4)]), ra.value ? (T(), Qe(k(bi), {
4696
+ key: `sparkline_${ia.value}`,
4697
+ dataset: Zs.value,
4698
+ config: Qs.value
4699
+ }, null, 8, ["dataset", "config"])) : (T(), Qe(k(gi), {
4700
+ key: `table_${ta.value}`,
4701
+ colNames: Bc.value.colNames,
4702
+ head: Bc.value.head,
4703
+ body: Bc.value.body,
4704
+ config: Bc.value.config,
4705
+ title: B.value.table.useDialog ? "" : gl.value.title,
4537
4706
  withCloseButton: !B.value.table.useDialog,
4538
- onClose: tl
4707
+ onClose: _l
4539
4708
  }, {
4540
- th: A(({ th: e }) => [C("div", { innerHTML: e }, null, 8, ri)]),
4709
+ th: A(({ th: e }) => [C("div", { innerHTML: e }, null, 8, hi)]),
4541
4710
  td: A(({ td: e }) => [et(pt(isNaN(Number(e)) ? e : k(s)({
4542
4711
  p: B.value.chart.labels.prefix,
4543
4712
  v: e,
@@ -4556,23 +4725,23 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
4556
4725
  _: 2
4557
4726
  }, [B.value.table.useDialog ? {
4558
4727
  name: "title",
4559
- fn: A(() => [et(pt(el.value.title), 1)]),
4728
+ fn: A(() => [et(pt(gl.value.title), 1)]),
4560
4729
  key: "0"
4561
4730
  } : void 0, B.value.table.useDialog ? {
4562
4731
  name: "actions",
4563
4732
  fn: A(() => [C("button", {
4564
4733
  tabindex: "0",
4565
4734
  class: "vue-ui-user-options-button",
4566
- onClick: r[3] ||= (e) => kc(B.value.chart.userOptions.callbacks.csv)
4567
- }, [tt(k(si), {
4735
+ onClick: r[3] ||= (e) => Vc(B.value.chart.userOptions.callbacks.csv)
4736
+ }, [tt(k(yi), {
4568
4737
  name: "fileCsv",
4569
- stroke: el.value.props.color
4738
+ stroke: gl.value.props.color
4570
4739
  }, null, 8, ["stroke"])])]),
4571
4740
  key: "1"
4572
4741
  } : void 0]), 1040)) : x("", !0),
4573
- O(n.$slots, "skeleton", {}, () => [k(Oa) ? (T(), Qe(Ie, { key: 0 })) : x("", !0)], !0)
4742
+ O(n.$slots, "skeleton", {}, () => [k(Ba) ? (T(), Qe(Ie, { key: 0 })) : x("", !0)], !0)
4574
4743
  ], 46, xt));
4575
4744
  }
4576
- }, [["__scopeId", "data-v-0351e25a"]]);
4745
+ }, [["__scopeId", "data-v-22f512b5"]]);
4577
4746
  //#endregion
4578
4747
  export { bt as n, j as t };