vue-data-ui 3.0.0-next.9 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/README.md +32 -30
  2. package/dist/{Arrow-B6OlqyCG.js → Arrow-DQoWnUfD.js} +1 -1
  3. package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-DEw6oieL.js} +4 -4
  4. package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-DEl03NUZ.js} +1 -1
  5. package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-CrivFZqC.js} +2 -2
  6. package/dist/{DataTable--paavNqF.js → DataTable-ClgCsiJA.js} +2 -2
  7. package/dist/{Legend-BZ06qU55.js → Legend-CMvJ6X5j.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-B2Wvbl3p.js} +3 -3
  9. package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CD5VH_Al.js} +3 -3
  10. package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3WRn-G2.js} +32 -32
  11. package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
  12. package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
  13. package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
  14. package/dist/{Shape-Mr1eIp_G.js → Shape-Adi9i_-f.js} +43 -37
  15. package/dist/Slicer-t6e1t2iM.js +602 -0
  16. package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-B8OnBSvk.js} +7 -7
  17. package/dist/{Title-B2dA6-uH.js → Title-xTWR-Vil.js} +1 -1
  18. package/dist/{Tooltip-O_hCvqgF.js → Tooltip-BH3CiANh.js} +23 -19
  19. package/dist/{UserOptions-Bk03FRqW.js → UserOptions-CKKPgDLV.js} +2 -2
  20. package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-C4hj491O.js} +1 -1
  21. package/dist/{img-C_9wps3s.js → img-Vb4QHAHI.js} +1 -1
  22. package/dist/{index-CgShIRes.js → index-Dzc2Gi60.js} +2885 -2010
  23. package/dist/{pdf-CXdbjyRJ.js → pdf-ddpqw-dt.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +753 -65
  26. package/dist/types/vue-data-ui.d.ts +753 -65
  27. package/dist/useAutoSizeLabelsInsideViewbox-CN_Jh8Hr.js +81 -0
  28. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  29. package/dist/useLoading-D7YHNtLX.js +29 -0
  30. package/dist/useNestedProp-CjnS13nF.js +13 -0
  31. package/dist/usePanZoom-BVca3eMk.js +122 -0
  32. package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DBRh8ZvS.js} +2 -2
  33. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  34. package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
  35. package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-B7ztqj9-.js} +105 -100
  36. package/dist/vue-data-ui.js +26 -25
  37. package/dist/vue-ui-3d-bar-DUmYPtHl.js +1323 -0
  38. package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-CPk8wAuj.js} +3 -3
  39. package/dist/vue-ui-age-pyramid-Bv5HmeXj.js +835 -0
  40. package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-KXWlIhtd.js} +12 -12
  41. package/dist/vue-ui-bullet-B4N4mBk9.js +571 -0
  42. package/dist/vue-ui-candlestick-DENvPnUO.js +1000 -0
  43. package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-vC2bHBaY.js} +29 -29
  44. package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-2nS0StrY.js} +664 -536
  45. package/dist/vue-ui-chord-CyfS6vNM.js +1038 -0
  46. package/dist/vue-ui-circle-pack-C4JR-0fx.js +709 -0
  47. package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-BgeSDtQh.js} +2 -2
  48. package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-9DWUBJ-I.js} +64 -64
  49. package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-BQO7IBFA.js} +2 -2
  50. package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-C-ZJXJ74.js} +431 -422
  51. package/dist/vue-ui-donut-evolution-B870IrQA.js +1076 -0
  52. package/dist/vue-ui-dumbbell-Cfs2Uotx.js +1120 -0
  53. package/dist/vue-ui-flow-DnaUVVAD.js +841 -0
  54. package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-B9s-H5ZG.js} +16 -16
  55. package/dist/vue-ui-galaxy-BoJOczdh.js +680 -0
  56. package/dist/vue-ui-gauge-qjm4BqZR.js +791 -0
  57. package/dist/vue-ui-gizmo-fn7ZaMTI.js +210 -0
  58. package/dist/vue-ui-heatmap-CIBDKhh8.js +1078 -0
  59. package/dist/vue-ui-history-plot-bbNxldYG.js +1074 -0
  60. package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-BX-2jhLx.js} +26 -26
  61. package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-Bn1Bb8-J.js} +2 -2
  62. package/dist/vue-ui-molecule-DQ3qFtBq.js +656 -0
  63. package/dist/vue-ui-mood-radar-Cf-ehIo1.js +785 -0
  64. package/dist/vue-ui-nested-donuts-CWg5BEi-.js +1284 -0
  65. package/dist/vue-ui-onion-sHgQTYfa.js +776 -0
  66. package/dist/vue-ui-parallel-coordinate-plot-Ki3ITp_s.js +916 -0
  67. package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-BIVqW7U7.js} +512 -459
  68. package/dist/vue-ui-quick-chart-C_hvHc1b.js +1762 -0
  69. package/dist/vue-ui-radar-RZUPyPwB.js +796 -0
  70. package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-BI8Vk7dO.js} +2 -2
  71. package/dist/vue-ui-relation-circle-TVMUEtxK.js +598 -0
  72. package/dist/vue-ui-ridgeline-DQeXHQG4.js +1157 -0
  73. package/dist/vue-ui-rings-BH81WmMS.js +728 -0
  74. package/dist/vue-ui-scatter-Cy7Tz_An.js +1178 -0
  75. package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-CF50qQxr.js} +13 -13
  76. package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-CrFXEbJs.js} +46 -46
  77. package/dist/vue-ui-spark-trend-DtHArnot.js +315 -0
  78. package/dist/vue-ui-sparkbar-CIOwFFgA.js +351 -0
  79. package/dist/vue-ui-sparkgauge-E0DdGotz.js +232 -0
  80. package/dist/vue-ui-sparkhistogram-Dm7WoyjY.js +380 -0
  81. package/dist/vue-ui-sparkline-DoW6DDKT.js +513 -0
  82. package/dist/vue-ui-sparkstackbar-BJnPUWY4.js +421 -0
  83. package/dist/vue-ui-stackbar-Du42smPs.js +1371 -0
  84. package/dist/vue-ui-strip-plot-DnenGI-d.js +916 -0
  85. package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BQOQVlHr.js} +17 -17
  86. package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-BzK4_gsP.js} +5 -5
  87. package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-B-IwcT8I.js} +19 -16
  88. package/dist/vue-ui-thermometer-06ao_Pj5.js +541 -0
  89. package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-CxQq4roK.js} +5 -5
  90. package/dist/vue-ui-tiremarks-CuTxkByj.js +406 -0
  91. package/dist/vue-ui-treemap-BgHhRpiV.js +1035 -0
  92. package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-CAcsUUCo.js} +104 -102
  93. package/dist/vue-ui-waffle-Ct3Upw3m.js +910 -0
  94. package/dist/vue-ui-wheel-oz06Kt-p.js +379 -0
  95. package/dist/vue-ui-word-cloud-BRy7fg4S.js +765 -0
  96. package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-CTV-YfFN.js} +364 -327
  97. package/dist/vue-ui-xy-DqCy9dpa.js +3808 -0
  98. package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-BZdhKUIp.js} +265 -264
  99. package/package.json +4 -4
  100. package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
  101. package/dist/Slicer-3t0HimeE.js +0 -577
  102. package/dist/useLoading-Bt5Doa8m.js +0 -28
  103. package/dist/useNestedProp-BC4Ciblw.js +0 -13
  104. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  105. package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
  106. package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
  107. package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
  108. package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
  109. package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
  110. package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
  111. package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
  112. package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
  113. package/dist/vue-ui-flow-MvORTthN.js +0 -765
  114. package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
  115. package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
  116. package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
  117. package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
  118. package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
  119. package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
  120. package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
  121. package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
  122. package/dist/vue-ui-onion-DXLokGec.js +0 -701
  123. package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
  124. package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
  125. package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
  126. package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
  127. package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
  128. package/dist/vue-ui-rings-Duay-EmS.js +0 -685
  129. package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
  130. package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
  131. package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
  132. package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
  133. package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
  134. package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
  135. package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
  136. package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
  137. package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
  138. package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
  139. package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
  140. package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
  141. package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
  142. package/dist/vue-ui-wheel-tydUATi8.js +0 -352
  143. package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
  144. package/dist/vue-ui-xy--HToGdle.js +0 -2982
@@ -0,0 +1,3808 @@
1
+ import { useCssVars as uo, computed as k, ref as p, onMounted as rt, onBeforeUnmount as ct, watch as ol, nextTick as Kl, onUpdated as no, createElementBlock as i, openBlock as n, createElementVNode as b, createCommentVNode as g, renderSlot as J, normalizeStyle as $, createVNode as ql, withDirectives as Yt, unref as v, Fragment as m, renderList as _, normalizeClass as Oe, withKeys as _a, vModelText as La, toDisplayString as te, defineAsyncComponent as Sl, useSlots as io, getCurrentInstance as so, toRefs as ro, watchEffect as co, createBlock as Ue, createSlots as vo, withCtx as me, normalizeProps as rl, guardReactiveProps as $l, mergeProps as _t, vModelCheckbox as ho, createTextVNode as fo } from "vue";
2
+ import { c as Ct, V as zt, U as It, X as go, F as Ke, u as mo, f as Ft, t as xo, a4 as Ze, d as bo, D as st, ac as Nl, e as po, p as yo, ad as Lt, a9 as D, ae as ko, h as H, af as Ma, ag as Aa, ah as wo, ai as Ca, aj as za, k as pe, y as So, z as $o, _ as Ia, R as al, i as Fe, x as Ol, s as qe, a7 as j, L as _o, ak as Mt, I as Lo, al as _l, C as We, a as Mo, b as Ao, o as Ta, v as Co, w as zo, E as Zl } from "./index-Dzc2Gi60.js";
3
+ import { t as Dt, u as Io } from "./useResponsive-DfdjqQps.js";
4
+ import { u as To } from "./usePrinter-DBRh8ZvS.js";
5
+ import { u as No, B as Oo } from "./useLoading-D7YHNtLX.js";
6
+ import { u as Wt } from "./useNestedProp-CjnS13nF.js";
7
+ import { u as Na } from "./useTimeLabels-DkzmKfZn.js";
8
+ import { u as Ro } from "./useTimeLabelCollider-CIsgDrl9.js";
9
+ import Po from "./img-Vb4QHAHI.js";
10
+ import Ho from "./Title-xTWR-Vil.js";
11
+ import { S as Vo } from "./Slicer-t6e1t2iM.js";
12
+ import { _ as At } from "./Shape-Adi9i_-f.js";
13
+ import Eo from "./BaseIcon-DEl03NUZ.js";
14
+ import { _ as Oa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const Bo = {
16
+ class: "vue-data-ui-slicer-labels",
17
+ style: { position: "relative", "z-index": "1", "pointer-events": "none" }
18
+ }, Fo = {
19
+ key: 0,
20
+ style: { width: "100%", position: "relative" }
21
+ }, Wo = {
22
+ key: 0,
23
+ class: "minimap",
24
+ style: { width: "100%" }
25
+ }, Yo = ["xmlns", "viewBox"], Do = ["id"], Xo = ["stop-color"], Go = ["d", "stroke"], Uo = ["x", "width", "height", "fill", "rx"], Zo = ["d", "fill"], qo = ["x", "width", "height", "rx", "fill"], Ko = ["x", "width", "height", "fill", "rx"], Jo = ["d", "fill"], Qo = ["d", "stroke"], jo = ["cx", "cy", "stroke", "fill"], eu = ["cx", "cy", "stroke", "fill"], lu = ["x1", "x2", "y2", "stroke"], tu = ["x", "height", "width", "onMouseenter"], au = ["min", "max"], ou = ["min", "max"], uu = {
26
+ __name: "SlicerPreview",
27
+ props: {
28
+ background: {
29
+ type: String,
30
+ default: "#FFFFFF"
31
+ },
32
+ borderColor: {
33
+ type: String,
34
+ default: "#FFFFFF"
35
+ },
36
+ fontSize: {
37
+ type: Number,
38
+ default: 14
39
+ },
40
+ labelLeft: {
41
+ type: [String, Number],
42
+ default: ""
43
+ },
44
+ labelRight: {
45
+ type: [String, Number],
46
+ default: ""
47
+ },
48
+ textColor: {
49
+ type: String,
50
+ default: "#1A1A1A"
51
+ },
52
+ inputColor: {
53
+ type: String,
54
+ default: "#1A1A1A"
55
+ },
56
+ max: {
57
+ type: Number,
58
+ default: 0
59
+ },
60
+ min: {
61
+ type: Number,
62
+ default: 0
63
+ },
64
+ selectColor: {
65
+ type: String,
66
+ default: "#4A4A4A"
67
+ },
68
+ useResetSlot: {
69
+ type: Boolean,
70
+ default: !1
71
+ },
72
+ valueStart: {
73
+ type: [Number, String],
74
+ default: 0
75
+ },
76
+ valueEnd: {
77
+ type: [Number, String],
78
+ default: 0
79
+ },
80
+ minimap: {
81
+ type: Array,
82
+ default: []
83
+ },
84
+ smoothMinimap: {
85
+ type: Boolean,
86
+ default: !1
87
+ },
88
+ minimapSelectedColor: {
89
+ type: String,
90
+ default: "#1f77b4"
91
+ },
92
+ minimapSelectionRadius: {
93
+ type: Number,
94
+ default: 12
95
+ },
96
+ minimapLineColor: {
97
+ type: String,
98
+ default: "#2D353C"
99
+ },
100
+ minimapSelectedColorOpacity: {
101
+ type: Number,
102
+ default: 0.2
103
+ },
104
+ minimapSelectedIndex: {
105
+ type: Number,
106
+ default: null
107
+ },
108
+ minimapIndicatorColor: {
109
+ type: String,
110
+ default: "#2D353C"
111
+ },
112
+ refreshStartPoint: {
113
+ type: Number,
114
+ default: 0
115
+ },
116
+ refreshEndPoint: {
117
+ type: Number,
118
+ default: null
119
+ },
120
+ enableRangeHandles: {
121
+ type: Boolean,
122
+ default: !1
123
+ },
124
+ enableSelectionDrag: {
125
+ type: Boolean,
126
+ default: !0
127
+ },
128
+ verticalHandles: {
129
+ type: Boolean,
130
+ default: !1
131
+ },
132
+ timeLabels: {
133
+ type: Array
134
+ },
135
+ isPreview: {
136
+ type: Boolean,
137
+ default: !1
138
+ }
139
+ },
140
+ emits: ["futureStart", "futureEnd", "update:start", "update:end", "reset", "trapMouse"],
141
+ setup(A, { expose: Tt, emit: Nt }) {
142
+ uo((x) => ({
143
+ "08ee7c46": dl.value,
144
+ d9036b5e: Je.value,
145
+ "4e6bd1fc": Al.value,
146
+ "73b38b81": A.selectColor,
147
+ "07444d8f": Ml.value
148
+ }));
149
+ const h = A, Re = p(null), de = p(h.min), he = p(h.max), Ll = k(() => !!h.minimap.length), Jl = p(Ct()), Rl = p(0), cl = k({
150
+ get() {
151
+ return de.value;
152
+ },
153
+ set(x) {
154
+ const f = Math.min(x, he.value - 1);
155
+ de.value = f, fl.value && (fl.value.value = String(f)), Ye("futureStart", f);
156
+ }
157
+ }), vl = k({
158
+ get() {
159
+ return he.value;
160
+ },
161
+ set(x) {
162
+ const f = Math.max(x, de.value + 1);
163
+ he.value = f, Ql.value && (Ql.value.value = String(f)), Ye("futureEnd", f);
164
+ }
165
+ });
166
+ rt(() => {
167
+ const x = () => {
168
+ Re.value && (Rl.value = Re.value.getBoundingClientRect().width);
169
+ };
170
+ x();
171
+ const f = Dt(x, 50);
172
+ window.addEventListener("resize", f), ct(() => {
173
+ window.removeEventListener("resize", f);
174
+ });
175
+ });
176
+ let Pl = null;
177
+ function Pe() {
178
+ clearTimeout(Pl), Ye("update:start", Number(de.value)), Ye("update:end", Number(he.value));
179
+ }
180
+ const Ot = k(() => h.refreshEndPoint === null ? h.max : h.refreshEndPoint), Ye = Nt, ue = k(() => {
181
+ const x = h.max - h.min, f = (de.value - h.min) / x * 100, d = (he.value - h.min) / x * 100, V = (f + d) / 2, ze = Ae.value ? `calc(${V}% - ${ie.value.width}px)` : ul.value ? `calc(${V}%)` : `calc(${V}% - ${ie.value.width / 2}px)`;
182
+ return {
183
+ left: `${f}%`,
184
+ width: `${d - f}%`,
185
+ background: h.selectColor,
186
+ tooltipLeft: `calc(${f}% - ${ul.value ? 0 : Yl.value / 2}px)`,
187
+ tooltipRight: `calc(${d}% - ${Ae.value ? y.value : y.value / 2}px)`,
188
+ tooltipCenter: ze,
189
+ arrowLeft: !ul.value,
190
+ arrowRight: !Ae.value
191
+ };
192
+ }), ul = k(() => Re.value ? Re.value.getBoundingClientRect().width * ((de.value - h.min) / (h.max - h.min)) - Yl.value / 2 < 0 : !1), Ae = k(() => Re.value ? Re.value.getBoundingClientRect().width * ((he.value - h.min) / (h.max - h.min)) + y.value / 2 > Re.value.getBoundingClientRect().width : !1), dl = k(() => h.inputColor), Ml = k(() => h.background), Al = k(() => `${h.selectColor}33`), Je = k(() => h.borderColor), Hl = k(() => {
193
+ let x = [];
194
+ for (let f = 0; f < h.minimap.length; f += 1)
195
+ x.push(f);
196
+ return x;
197
+ });
198
+ function Vl() {
199
+ Ye("reset");
200
+ }
201
+ p({
202
+ start: de.value,
203
+ end: he.value
204
+ }), ol(
205
+ () => h.min,
206
+ (x) => {
207
+ Number(de.value) < Number(x) && (de.value = Number(x)), Number(he.value) < Number(x) && (he.value = Number(x));
208
+ }
209
+ ), ol(
210
+ () => h.max,
211
+ (x) => {
212
+ Number(de.value) > Number(x) && (de.value = Number(x)), Number(he.value) > Number(x) && (he.value = Number(x));
213
+ }
214
+ );
215
+ const Qe = p(null), Z = p({
216
+ width: 1,
217
+ height: 1
218
+ }), $e = p(null);
219
+ rt(() => {
220
+ if (Ll.value) {
221
+ const x = Dt(() => {
222
+ const { width: f, height: d } = Io({
223
+ chart: Qe.value
224
+ });
225
+ Z.value.width = f, Z.value.height = d - 47;
226
+ });
227
+ $e.value = new ResizeObserver(x), $e.value.observe(Qe.value);
228
+ }
229
+ }), ct(() => {
230
+ $e.value && $e.value.disconnect();
231
+ });
232
+ const fe = k(() => h.minimap.length ? Z.value.width / h.minimap.length : 0), ye = k(() => {
233
+ if (!h.minimap.length) return [];
234
+ const x = Math.max(...h.minimap), f = Math.min(...h.minimap) - 10, d = x - (f > 0 ? 0 : f), V = h.minimap.map((Rt, et) => {
235
+ const ft = Rt - f;
236
+ return {
237
+ x: Z.value.width / h.minimap.length * et + fe.value / 2,
238
+ y: Z.value.height - ft / d * (Z.value.height * 0.9)
239
+ };
240
+ }), ze = h.smoothMinimap ? zt(V) : It(V), pl = [...V].slice(h.valueStart, h.valueEnd), Xl = h.smoothMinimap ? zt(pl) : It(pl);
241
+ return {
242
+ fullSet: ze,
243
+ selectionSet: Xl,
244
+ sliced: pl,
245
+ firstPlot: V[h.valueStart],
246
+ lastPlot: V[h.valueEnd - 1]
247
+ };
248
+ }), L = k(() => ({
249
+ x: fe.value * de.value + fe.value / 2,
250
+ width: Z.value.width * ((he.value - de.value) / h.max) - fe.value
251
+ })), hl = p(h.minimapSelectedIndex);
252
+ ol(() => h.minimapSelectedIndex, (x) => {
253
+ hl.value = x + h.valueStart;
254
+ }, { immediate: !0 });
255
+ function xe(x) {
256
+ hl.value = x, x >= h.valueStart && x < h.valueEnd && Ye("trapMouse", x - h.valueStart);
257
+ }
258
+ const ne = p(0), fl = p(null), Ql = p(null);
259
+ function gl(x) {
260
+ if (typeof x == "object" && x && "target" in x) {
261
+ const d = x.target, V = "valueAsNumber" in d ? d.valueAsNumber : +d.value;
262
+ return Number.isFinite(V) ? V : NaN;
263
+ }
264
+ const f = +x;
265
+ return Number.isFinite(f) ? f : NaN;
266
+ }
267
+ function ml(x) {
268
+ const f = gl(x);
269
+ Number.isFinite(f) && (cl.value = f);
270
+ }
271
+ function nl(x) {
272
+ const f = gl(x);
273
+ Number.isFinite(f) && (vl.value = f);
274
+ }
275
+ const El = k(() => h.valueEnd - h.valueStart), Ce = p(!1);
276
+ let ae = p(null);
277
+ const Q = k(() => (Rl.value - 48) / (h.max - h.min)), vt = k(() => (Rl.value - 48) / (h.max - h.min) * El.value), dt = p(2.5), jl = k(() => {
278
+ const x = Rl.value - 48;
279
+ return Math.ceil(
280
+ (h.max - h.min) / ((x - vt.value) / dt.value)
281
+ );
282
+ });
283
+ let _e = null, He = null, C = null, De = null;
284
+ const Bl = (x) => {
285
+ if (je.value = !0, !h.enableSelectionDrag) return;
286
+ const f = x.type === "touchstart", d = f && x.targetTouches && x.targetTouches[0] ? x.targetTouches[0] : null, V = f ? d ? d.target : null : x.target;
287
+ !V || !(V instanceof Element) || V.classList && V.classList.contains("range-handle") || (Ce.value = !0, ae.value = f ? d ? d.clientX : 0 : x.clientX, _e = f ? "touchmove" : "mousemove", He = f ? "touchend" : "mouseup", C = f ? ke : Fl, De = f ? w : Wl, window.addEventListener(_e, C, { passive: !1 }), window.addEventListener(He, De));
288
+ };
289
+ function Fl(x) {
290
+ Ce.value && Ve(x.clientX);
291
+ }
292
+ function ke(x) {
293
+ if (!Ce.value || !Re.value) return;
294
+ const f = x.target;
295
+ if (!(f instanceof Element) || !Re.value.contains(f) || f.classList && f.classList.contains("range-handle")) return;
296
+ x.preventDefault();
297
+ const d = x.targetTouches && x.targetTouches[0] ? x.targetTouches[0] : null;
298
+ d && Ve(d.clientX);
299
+ }
300
+ function Ve(x) {
301
+ if (!Ce.value) return;
302
+ const f = x - ae.value;
303
+ if (Math.abs(f) > Q.value) {
304
+ if (f > 0) {
305
+ const d = Math.min(h.max, he.value + jl.value);
306
+ vl.value = d, cl.value = d - El.value;
307
+ } else {
308
+ const d = Math.max(h.min, de.value - jl.value);
309
+ cl.value = d, vl.value = d + El.value;
310
+ }
311
+ ae.value = x;
312
+ }
313
+ }
314
+ function Wl() {
315
+ ht();
316
+ }
317
+ function w() {
318
+ ht();
319
+ }
320
+ function ht() {
321
+ Ce.value = !1, _e && C && window.removeEventListener(_e, C), He && De && window.removeEventListener(He, De), _e = He = null, C = De = null, Pe();
322
+ }
323
+ const xl = p(!1), bl = p(null), il = p(null), Yl = p(1), y = p(1), je = p(!1);
324
+ function S() {
325
+ bl.value && (Yl.value = bl.value.getBoundingClientRect().width);
326
+ }
327
+ function Le() {
328
+ il.value && (y.value = il.value.getBoundingClientRect().width);
329
+ }
330
+ const Dl = p(0);
331
+ function Cl(x) {
332
+ Dl.value = x === "start" ? 1 : 0;
333
+ }
334
+ const l = p(!1), ie = p({
335
+ width: 0,
336
+ left: 0
337
+ });
338
+ ol([de, he], async () => {
339
+ if (await Kl(), !bl.value || !il.value) {
340
+ l.value = !1, ie.value = { width: 0, left: 0 };
341
+ return;
342
+ }
343
+ const x = bl.value.getBoundingClientRect(), f = il.value.getBoundingClientRect();
344
+ l.value = x.x + x.width > f.x;
345
+ const d = x.x + x.width / 2, V = f.x + f.width / 2, ze = x.width + f.width, pl = (d + V) / 2;
346
+ ie.value = {
347
+ width: ze,
348
+ left: pl - ze / 2
349
+ };
350
+ }), no(() => {
351
+ S(), Le();
352
+ }), ol(() => h.labelLeft, () => {
353
+ Kl(S);
354
+ }, { deep: !0 }), ol(() => h.labelRight, () => {
355
+ Kl(Le);
356
+ }, { deep: !0 });
357
+ const F = k(() => {
358
+ const x = h.timeLabels.find((d) => d.absoluteIndex === de.value), f = h.timeLabels.find((d) => d.absoluteIndex === he.value - 1);
359
+ return {
360
+ left: x ? x.text : "",
361
+ right: f ? f.text : ""
362
+ };
363
+ });
364
+ return ct(() => {
365
+ $e.value && $e.value.disconnect(), _e && C && window.removeEventListener(_e, C), He && De && window.removeEventListener(He, De), _e = He = null, C = De = null, clearTimeout(Pl);
366
+ }), Tt({
367
+ setStartValue: ml,
368
+ setEndValue: nl
369
+ }), (x, f) => (n(), i("div", {
370
+ "data-dom-to-png-ignore": "",
371
+ style: { padding: "0 24px" },
372
+ class: "vue-data-ui-zoom",
373
+ ref_key: "zoomWrapper",
374
+ ref: Re,
375
+ onMousedown: Bl,
376
+ onTouchstart: Bl
377
+ }, [
378
+ b("div", Bo, [
379
+ A.valueStart !== A.refreshStartPoint || A.valueEnd !== Ot.value ? (n(), i("div", Fo, [
380
+ A.useResetSlot ? J(x.$slots, "reset-action", {
381
+ key: 1,
382
+ reset: Vl
383
+ }, void 0, !0) : (n(), i("button", {
384
+ key: 0,
385
+ tabindex: "0",
386
+ role: "button",
387
+ class: "vue-data-ui-refresh-button",
388
+ style: $({
389
+ top: Ll.value ? "36px" : "-16px",
390
+ pointerEvents: "all !important"
391
+ }),
392
+ onClick: Vl
393
+ }, [
394
+ ql(Eo, {
395
+ name: "refresh",
396
+ stroke: A.textColor
397
+ }, null, 8, ["stroke"])
398
+ ], 4))
399
+ ])) : g("", !0)
400
+ ]),
401
+ b("div", {
402
+ class: "double-range-slider",
403
+ ref_key: "minimapWrapper",
404
+ ref: Qe,
405
+ style: { "z-index": "0" },
406
+ onMouseenter: f[13] || (f[13] = (d) => je.value = !0),
407
+ onMouseleave: f[14] || (f[14] = (d) => je.value = !1)
408
+ }, [
409
+ Ll.value ? (n(), i("div", Wo, [
410
+ (n(), i("svg", {
411
+ xmlns: v(go),
412
+ viewBox: `0 0 ${Z.value.width < 0 ? 0 : Z.value.width} ${Z.value.height < 0 ? 0 : Z.value.height}`
413
+ }, [
414
+ b("defs", null, [
415
+ b("linearGradient", {
416
+ id: Jl.value,
417
+ x1: "0%",
418
+ y1: "0%",
419
+ x2: "0%",
420
+ y2: "100%"
421
+ }, [
422
+ b("stop", {
423
+ offset: "0%",
424
+ "stop-color": `${A.minimapLineColor}50`
425
+ }, null, 8, Xo),
426
+ f[15] || (f[15] = b("stop", {
427
+ offset: "100%",
428
+ "stop-color": "transparent"
429
+ }, null, -1))
430
+ ], 8, Do)
431
+ ]),
432
+ b("path", {
433
+ d: `M${ye.value.fullSet}`,
434
+ stroke: `${A.minimapLineColor}`,
435
+ fill: "none",
436
+ "stroke-width": "1",
437
+ "stroke-linecap": "round",
438
+ "stroke-linejoin": "round",
439
+ style: { opacity: "1" }
440
+ }, null, 8, Go),
441
+ b("rect", {
442
+ x: L.value.x,
443
+ width: L.value.width < 0 ? 0 : L.value.width,
444
+ height: Math.max(Z.value.height, 0),
445
+ y: 0,
446
+ fill: Je.value,
447
+ rx: A.minimapSelectionRadius,
448
+ stroke: "none"
449
+ }, null, 8, Uo),
450
+ b("path", {
451
+ d: `M${fe.value / 2},${Math.max(Z.value.height, 0)} ${ye.value.fullSet} L${Z.value.width - fe.value / 2},${Math.max(Z.value.height, 0)}Z`,
452
+ fill: `url(#${Jl.value})`,
453
+ stroke: "none",
454
+ style: { opacity: "1" }
455
+ }, null, 8, Zo),
456
+ b("rect", {
457
+ x: L.value.x,
458
+ width: L.value.width < 0 ? 0 : L.value.width,
459
+ height: Math.max(Z.value.height, 0),
460
+ y: 0,
461
+ rx: A.minimapSelectionRadius,
462
+ fill: Je.value
463
+ }, null, 8, qo),
464
+ b("rect", {
465
+ x: L.value.x,
466
+ width: L.value.width < 0 ? 0 : L.value.width,
467
+ height: Math.max(Z.value.height, 0),
468
+ y: 0,
469
+ fill: A.minimapSelectedColor,
470
+ rx: A.minimapSelectionRadius,
471
+ style: $({
472
+ opacity: A.minimapSelectedColorOpacity
473
+ })
474
+ }, null, 12, Ko),
475
+ b("path", {
476
+ d: `M${ye.value.sliced[0].x},${Math.max(Z.value.height, 0)} ${ye.value.selectionSet} L${ye.value.sliced.at(-1).x},${Math.max(Z.value.height, 0)}Z`,
477
+ fill: `url(#${Jl.value})`,
478
+ stroke: "none",
479
+ style: { opacity: "1" }
480
+ }, null, 8, Jo),
481
+ b("path", {
482
+ d: `M ${ye.value.selectionSet}`,
483
+ stroke: `${A.minimapLineColor}`,
484
+ fill: "transparent",
485
+ "stroke-width": "2",
486
+ "stroke-linecap": "round",
487
+ "stroke-linejoin": "round"
488
+ }, null, 8, Qo),
489
+ b("circle", {
490
+ cx: ye.value.firstPlot.x,
491
+ cy: ye.value.firstPlot.y,
492
+ "stroke-width": "0.5",
493
+ stroke: Je.value,
494
+ r: "3",
495
+ fill: A.minimapLineColor
496
+ }, null, 8, jo),
497
+ b("circle", {
498
+ cx: ye.value.lastPlot.x,
499
+ cy: ye.value.lastPlot.y,
500
+ "stroke-width": "0.5",
501
+ stroke: Je.value,
502
+ r: "3",
503
+ fill: A.minimapLineColor
504
+ }, null, 8, eu),
505
+ hl.value !== null ? (n(!0), i(m, { key: 0 }, _(Hl.value, (d, V) => (n(), i("g", null, [
506
+ hl.value === d && d >= A.valueStart && d < A.valueEnd ? (n(), i("line", {
507
+ key: 0,
508
+ x1: fe.value * V + fe.value / 2,
509
+ x2: fe.value * V + fe.value / 2,
510
+ y1: 0,
511
+ y2: Math.max(Z.value.height, 0),
512
+ stroke: A.minimapIndicatorColor,
513
+ "stroke-linecap": "round",
514
+ "stroke-dasharray": "2",
515
+ "stroke-width": "1"
516
+ }, null, 8, lu)) : g("", !0)
517
+ ]))), 256)) : g("", !0),
518
+ (n(!0), i(m, null, _(Hl.value, (d, V) => (n(), i("rect", {
519
+ x: fe.value * V,
520
+ y: 0,
521
+ height: Math.max(Z.value.height, 0),
522
+ width: fe.value < 0 ? 0 : fe.value,
523
+ fill: "transparent",
524
+ style: $([{ "pointer-events": "all !important" }, {
525
+ cursor: d >= A.valueStart && d < A.valueEnd && A.enableSelectionDrag ? xl.value ? "grabbing" : "grab" : "default"
526
+ }]),
527
+ onMousedown: f[0] || (f[0] = (ze) => xl.value = !0),
528
+ onMouseup: f[1] || (f[1] = (ze) => xl.value = !1),
529
+ onMouseenter: (ze) => xe(d),
530
+ onMouseleave: f[2] || (f[2] = (ze) => {
531
+ hl.value = null, Ye("trapMouse", null);
532
+ })
533
+ }, null, 44, tu))), 256))
534
+ ], 8, Yo))
535
+ ])) : g("", !0),
536
+ f[16] || (f[16] = b("div", { class: "slider-track" }, null, -1)),
537
+ b("div", {
538
+ class: Oe({
539
+ "range-highlight": !0,
540
+ move: A.enableSelectionDrag
541
+ }),
542
+ onMousedown: f[3] || (f[3] = (d) => xl.value = !0),
543
+ onMouseup: f[4] || (f[4] = (d) => xl.value = !1),
544
+ style: $({
545
+ ...ue.value,
546
+ cursor: xl.value ? "grabbing" : "grab"
547
+ })
548
+ }, null, 38),
549
+ A.enableRangeHandles ? Yt((n(), i("input", {
550
+ ref_key: "rangeStart",
551
+ ref: fl,
552
+ key: `range-min${ne.value}`,
553
+ type: "range",
554
+ class: Oe({ "range-left": !0, "range-handle": !0, "range-minimap": Ll.value && A.verticalHandles }),
555
+ min: A.min,
556
+ max: A.max,
557
+ "onUpdate:modelValue": f[5] || (f[5] = (d) => cl.value = d),
558
+ onInput: f[6] || (f[6] = (d) => ml(d)),
559
+ onChange: Pe,
560
+ onKeyup: _a(Pe, ["enter"]),
561
+ onBlur: Pe,
562
+ onMouseenter: f[7] || (f[7] = (d) => Cl("start")),
563
+ onPointermove: f[8] || (f[8] = (d) => cl.value = +d.target.value),
564
+ onPointerup: Pe
565
+ }, null, 42, au)), [
566
+ [
567
+ La,
568
+ cl.value,
569
+ void 0,
570
+ { number: !0 }
571
+ ]
572
+ ]) : g("", !0),
573
+ A.enableRangeHandles ? Yt((n(), i("input", {
574
+ key: 2,
575
+ ref_key: "rangeEnd",
576
+ ref: Ql,
577
+ type: "range",
578
+ class: Oe({ "range-right": !0, "range-handle": !0, "range-minimap": Ll.value && A.verticalHandles }),
579
+ min: A.min,
580
+ max: A.max,
581
+ "onUpdate:modelValue": f[9] || (f[9] = (d) => vl.value = d),
582
+ onInput: f[10] || (f[10] = (d) => nl(d)),
583
+ onChange: Pe,
584
+ onKeyup: _a(Pe, ["enter"]),
585
+ onBlur: Pe,
586
+ onMouseenter: f[11] || (f[11] = (d) => Cl("end")),
587
+ onPointermove: f[12] || (f[12] = (d) => vl.value = +d.target.value),
588
+ onPointerup: Pe
589
+ }, null, 42, ou)), [
590
+ [
591
+ La,
592
+ vl.value,
593
+ void 0,
594
+ { number: !0 }
595
+ ]
596
+ ]) : g("", !0),
597
+ F.value.left ? (n(), i("div", {
598
+ key: 3,
599
+ ref_key: "tooltipLeft",
600
+ ref: bl,
601
+ class: Oe({
602
+ "range-tooltip": !0,
603
+ "range-tooltip-visible": je.value,
604
+ "range-tooltip-arrow": ue.value.arrowLeft && !A.verticalHandles,
605
+ "range-tooltip-arrow-left": !ue.value.arrowLeft && !A.verticalHandles
606
+ }),
607
+ style: $({
608
+ left: ue.value.tooltipLeft,
609
+ color: v(Ke)(A.selectColor),
610
+ backgroundColor: A.selectColor,
611
+ border: `1px solid ${Je.value}`,
612
+ zIndex: `${Dl.value + 4}`,
613
+ visibility: l.value || F.value.left === F.value.right ? "hidden" : "visible"
614
+ })
615
+ }, te(F.value.left), 7)) : g("", !0),
616
+ (l.value || F.value.left === F.value.right) && (F.value.left || F.value.right) ? (n(), i("div", {
617
+ key: 4,
618
+ ref: "tooltipMerge",
619
+ class: Oe({
620
+ "range-tooltip": !0,
621
+ "range-tooltip-visible": je.value,
622
+ "range-tooltip-arrow": !0,
623
+ "range-tooltip-arrow-left": !ue.value.arrowLeft && !A.verticalHandles,
624
+ "range-tooltip-arrow-right": !ue.value.arrowRight && !A.verticalHandles
625
+ }),
626
+ style: $({
627
+ left: ue.value.tooltipCenter,
628
+ width: ie.value.width + "px",
629
+ color: v(Ke)(A.selectColor),
630
+ backgroundColor: A.selectColor,
631
+ border: `1px solid ${Je.value}`,
632
+ zIndex: "4"
633
+ })
634
+ }, te(F.value.left === F.value.right ? F.value.left : `${F.value.left} - ${F.value.right}`), 7)) : g("", !0),
635
+ F.value.right ? (n(), i("div", {
636
+ key: 5,
637
+ ref_key: "tooltipRight",
638
+ ref: il,
639
+ class: Oe({
640
+ "range-tooltip": !0,
641
+ "range-tooltip-visible": je.value,
642
+ "range-tooltip-arrow": ue.value.arrowRight && !A.verticalHandles,
643
+ "range-tooltip-arrow-right": !ue.value.arrowRight && !A.verticalHandles
644
+ }),
645
+ style: $({
646
+ left: ue.value.tooltipRight,
647
+ color: v(Ke)(A.selectColor),
648
+ backgroundColor: A.selectColor,
649
+ border: `1px solid ${Je.value}`,
650
+ zIndex: "4",
651
+ visibility: l.value || F.value.left === F.value.right ? "hidden" : "visible"
652
+ })
653
+ }, te(F.value.right), 7)) : g("", !0)
654
+ ], 544)
655
+ ], 544));
656
+ }
657
+ }, nu = /* @__PURE__ */ Oa(uu, [["__scopeId", "data-v-619e736c"]]), iu = ["id"], su = ["viewBox", "aria-label"], ru = ["x", "y", "width", "height"], cu = { key: 1 }, vu = { class: "vue-ui-xy-grid" }, du = ["stroke", "x1", "x2", "y1", "y2"], hu = ["stroke", "x1", "x2", "y1", "y2"], fu = { key: 1 }, gu = ["x1", "x2", "y1", "y2", "stroke"], mu = ["x1", "x2", "y1", "y2", "stroke"], xu = ["x1", "x2", "y1", "y2", "stroke"], bu = { key: 3 }, pu = ["d", "stroke"], yu = { key: 4 }, ku = ["d", "stroke"], wu = ["id"], Su = ["stop-color"], $u = ["stop-color"], _u = ["stop-color"], Lu = ["id"], Mu = ["stop-color"], Au = ["stop-color"], Cu = ["stop-color"], zu = ["id"], Iu = ["stop-color"], Tu = ["stop-color"], Nu = ["id"], Ou = ["stop-color"], Ru = ["stop-color"], Pu = ["id"], Hu = ["stop-color"], Vu = ["stop-color"], Eu = ["x", "y", "height", "width", "fill"], Bu = ["x", "y", "width"], Fu = { key: 0 }, Wu = ["x", "y", "height", "width", "fill"], Yu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Du = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Xu = ["width", "x", "y"], Gu = { key: 0 }, Uu = ["id"], Zu = ["fill"], qu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ku = ["x", "y", "font-size", "fill"], Ju = ["stroke", "x1", "x2", "y1", "y2"], Qu = { key: 3 }, ju = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], en = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], ln = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tn = ["fill", "font-size", "transform"], an = ["x1", "x2", "y1", "y2", "stroke"], on = ["x", "y", "font-size", "fill"], un = ["x1", "x2", "y1", "y2", "stroke"], nn = ["x", "y", "font-size", "fill"], sn = ["width", "x", "y"], rn = { style: { width: "100%" } }, cn = { key: 0 }, vn = ["id"], dn = ["fill"], hn = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], fn = ["x", "y", "font-size", "fill"], gn = ["d", "stroke", "stroke-width", "stroke-dasharray"], mn = ["d", "stroke", "stroke-width", "stroke-dasharray"], xn = { key: 6 }, bn = { key: 0 }, pn = ["d", "fill"], yn = ["d", "fill"], kn = ["d", "fill"], wn = ["d", "fill"], Sn = ["d", "stroke", "stroke-width", "stroke-dasharray"], $n = ["d", "stroke", "stroke-width", "stroke-dasharray"], _n = ["width", "x", "y"], Ln = { style: { width: "100%" } }, Mn = { key: 3 }, An = ["id"], Cn = ["fill"], zn = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], In = ["x", "y", "font-size", "fill"], Tn = { key: 7 }, Nn = ["x", "y", "font-size", "fill"], On = ["x", "y", "font-size", "fill", "font-weight"], Rn = { key: 8 }, Pn = ["x", "y", "font-size", "fill"], Hn = { key: 9 }, Vn = ["x", "y"], En = ["innerHTML"], Bn = ["x", "y"], Fn = ["innerHTML"], Wn = ["x1", "x2", "y1", "y2", "stroke"], Yn = { key: 10 }, Dn = ["x", "y", "font-size", "fill"], Xn = { key: 11 }, Gn = ["x", "y"], Un = ["innerHTML"], Zn = ["x", "y"], qn = ["innerHTML"], Kn = ["x1", "x2", "y1", "y2", "stroke"], Jn = ["x", "y", "font-size", "fill", "innerHTML"], Qn = ["x", "y", "font-size", "fill", "innerHTML"], jn = ["x", "y", "font-size", "fill", "innerHTML"], ei = ["x", "y", "font-size", "fill", "innerHTML"], li = ["id"], ti = ["stop-color"], ai = ["stop-color"], oi = ["x", "y", "width", "height", "fill", "onMouseenter"], ui = ["font-size", "fill", "transform"], ni = ["x", "y", "font-size", "fill"], ii = ["text-anchor", "font-size", "fill", "transform", "onClick"], si = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], ri = { key: 14 }, ci = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], vi = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], di = ["y", "x", "width", "height", "fill"], hi = ["id", "x", "y", "font-size", "fill", "text-anchor"], fi = {
658
+ key: 15,
659
+ style: { "pointer-events": "none" }
660
+ }, gi = ["x", "y"], mi = ["cx", "cy", "r", "fill"], xi = {
661
+ key: 4,
662
+ class: "vue-data-ui-watermark"
663
+ }, bi = {
664
+ class: "vue-ui-xy-tag-arrow",
665
+ height: "20",
666
+ viewBox: "0 0 10 20",
667
+ style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
668
+ }, pi = ["fill"], yi = ["innerHTML"], ki = {
669
+ class: "vue-ui-xy-tag-arrow",
670
+ height: "100%",
671
+ viewBox: "0 0 10 20",
672
+ style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
673
+ }, wi = ["fill"], Si = ["innerHTML"], $i = {
674
+ class: "vue-ui-xy-tag-arrow",
675
+ height: "20",
676
+ viewBox: "0 0 10 20",
677
+ style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
678
+ }, _i = ["fill"], Li = ["innerHTML"], Mi = {
679
+ class: "vue-ui-xy-tag-arrow",
680
+ height: "100%",
681
+ viewBox: "0 0 10 20",
682
+ style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
683
+ }, Ai = ["fill"], Ci = ["innerHTML"], zi = ["onClick"], Ii = {
684
+ key: 0,
685
+ viewBox: "0 0 20 12",
686
+ height: "14",
687
+ width: "20"
688
+ }, Ti = ["stroke", "fill"], Ni = {
689
+ key: 1,
690
+ viewBox: "0 0 40 40",
691
+ height: "14",
692
+ width: "14"
693
+ }, Oi = ["fill"], Ri = ["fill"], Pi = {
694
+ key: 2,
695
+ viewBox: "0 0 12 12",
696
+ height: "14",
697
+ width: "14"
698
+ }, Hi = {
699
+ style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
700
+ "data-dom-to-png-ignore": ""
701
+ }, Vi = ["innerHTML"], Ei = {
702
+ __name: "vue-ui-xy",
703
+ props: {
704
+ config: {
705
+ type: Object,
706
+ default() {
707
+ return {};
708
+ }
709
+ },
710
+ dataset: {
711
+ type: Array,
712
+ default() {
713
+ return [];
714
+ }
715
+ },
716
+ selectedXIndex: {
717
+ type: Number,
718
+ default: void 0
719
+ }
720
+ },
721
+ emits: ["selectTimeLabel", "selectX", "selectLegend"],
722
+ setup(A, { expose: Tt, emit: Nt }) {
723
+ const h = A, Re = Sl(() => import("./DataTable-ClgCsiJA.js")), de = Sl(() => import("./Tooltip-BH3CiANh.js")), he = Sl(() => import("./UserOptions-CKKPgDLV.js")), Ll = Sl(() => import("./BaseIcon-DEl03NUZ.js")), Jl = Sl(() => import("./vue-ui-table-sparkline-B-IwcT8I.js")), Rl = Sl(() => import("./vue-ui-accordion-CPk8wAuj.js")), cl = Sl(() => import("./PackageVersion-CD5VH_Al.js")), vl = Sl(() => import("./PenAndPaper-D3WRn-G2.js")), Pl = Nt, Pe = io(), Ot = so(), { vue_ui_xy: Ye } = mo(), ue = p(null), ul = p(null), Ae = p(null), dl = p(null), Ml = p(null), Al = p(null), Je = p(null), Hl = p(null), Vl = p(null), Qe = p(null), Z = p(null), $e = p(null), fe = p(null), ye = p(0), L = p(null), hl = p(!0), xe = p(600), ne = p(1e3), fl = p("0 0 1000 600"), Ql = p({ x: 0, y: 0 }), gl = p({ line: "line", bar: "bar", plot: "plot" }), ml = p(!1), nl = p(!1), El = p(!1), Ce = p(null), ae = p([]), Q = p(Ct()), vt = p(0), dt = p(0), jl = p(0), _e = p(!0), He = p(0), C = p(null), De = p(!1), Bl = p(!0), Fl = p(!0), ke = p(null), Ve = p({}), Wl = p(null), w = p(null), ht = k(() => ({
724
+ height: xe.value,
725
+ width: ne.value
726
+ })), xl = h.config.downsample && h.config.downsample.threshold ? h.config.downsample.threshold : 500;
727
+ function bl(t) {
728
+ return Number.isFinite(t) ? Math.max(0, Math.floor(t)) : 0;
729
+ }
730
+ function il(t, r, e = 0) {
731
+ return Number.isFinite(t) && Number.isFinite(r) && Math.abs(r) > 1e-9 ? t / r : e;
732
+ }
733
+ const Yl = p(!1), y = p({
734
+ dataLabels: { show: !0 },
735
+ showTooltip: !0,
736
+ showTable: !1,
737
+ isStacked: !1,
738
+ useIndividualScale: !1
739
+ });
740
+ function je() {
741
+ Yl.value ? (y.value.isStacked = l.value.chart.grid.labels.yAxis.stacked, y.value.useIndividualScale == null && (y.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale)) : (y.value = {
742
+ dataLabels: { show: !0 },
743
+ showTooltip: l.value.chart.tooltip.show === !0,
744
+ showTable: l.value.showTable === !0,
745
+ isStacked: l.value.chart.grid.labels.yAxis.stacked,
746
+ useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
747
+ }, Yl.value = !0);
748
+ }
749
+ const S = p({
750
+ xAxis: 18,
751
+ yAxis: 12,
752
+ dataLabels: 20,
753
+ plotLabels: 10
754
+ }), Le = p({ plot: 3, line: 3 });
755
+ rt(() => {
756
+ h.dataset.length && h.dataset.forEach((t, r) => {
757
+ [null, void 0].includes(t.series) && Ft({
758
+ componentName: "VueUiXy",
759
+ type: "datasetSerieAttribute",
760
+ property: "series (number[])",
761
+ index: r,
762
+ debug: ut.value
763
+ });
764
+ });
765
+ });
766
+ function Dl() {
767
+ if (!Object.keys(h.config || {}).length)
768
+ return Ye;
769
+ const t = Wt({
770
+ userConfig: h.config,
771
+ defaultConfig: Ye
772
+ });
773
+ return h.config && We(h.config, "chart.highlightArea") && (Array.isArray(h.config.chart.highlightArea) ? t.chart.highlightArea = h.config.chart.highlightArea : t.chart.highlightArea = [h.config.chart.highlightArea]), h.config && We(h.config, "chart.grid.labels.yAxis.scaleMin") ? t.chart.grid.labels.yAxis.scaleMin = h.config.chart.grid.labels.yAxis.scaleMin : t.chart.grid.labels.yAxis.scaleMin = null, h.config && We(h.config, "chart.grid.labels.yAxis.scaleMax") ? t.chart.grid.labels.yAxis.scaleMax = h.config.chart.grid.labels.yAxis.scaleMax : t.chart.grid.labels.yAxis.scaleMax = null, h.config && We(h.config, "chart.zoom.startIndex") ? t.chart.zoom.startIndex = h.config.chart.zoom.startIndex : t.chart.zoom.startIndex = null, h.config && We(h.config, "chart.zoom.endIndex") ? t.chart.zoom.endIndex = h.config.chart.zoom.endIndex : t.chart.zoom.endIndex = null, h.config && We(h.config, "chart.grid.labels.yAxis.groupColor") ? t.chart.grid.labels.yAxis.groupColor = h.config.chart.grid.labels.yAxis.groupColor : t.chart.grid.labels.yAxis.groupColor = null, h.config && h.config.chart.annotations && Array.isArray(h.config.chart.annotations) && h.config.chart.annotations.length ? t.chart.annotations = h.config.chart.annotations.map((r) => Wt({
774
+ defaultConfig: Ye.chart.annotations[0],
775
+ userConfig: r
776
+ })) : t.chart.annotations = [], h.config && We(h.config, "chart.grid.position") && h.config.chart.grid.position === "start" && h.dataset.length && h.dataset.some((r) => r.type === "bar") && (t.chart.grid.position = "middle", We(h.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), h.config && We(h.config, "chart.grid.labels.yAxis.serieNameFormatter") ? t.chart.grid.labels.yAxis.serieNameFormatter = h.config.chart.grid.labels.yAxis.serieNameFormatter : t.chart.grid.labels.yAxis.serieNameFormatter = null, h.config && We(h.config, "events.datapointEnter") ? t.events.datapointEnter = h.config.events.datapointEnter : t.events.datapointEnter = null, h.config && We(h.config, "events.datapointLeave") ? t.events.datapointLeave = h.config.events.datapointLeave : t.events.datapointLeave = null, h.config && We(h.config, "events.datapointClick") ? t.events.datapointClick = h.config.events.datapointClick : t.events.datapointClick = null, t.theme ? {
777
+ ...Wt({
778
+ userConfig: Ao.vue_ui_xy[t.theme] || h.config,
779
+ defaultConfig: t
780
+ }),
781
+ customPalette: Mo[t.theme] || h.palette
782
+ } : t;
783
+ }
784
+ const Cl = k({
785
+ get() {
786
+ return !!h.dataset && h.dataset.length;
787
+ },
788
+ set(t) {
789
+ return t;
790
+ }
791
+ }), l = p(Dl()), { loading: ie, FINAL_DATASET: F, manualLoading: x } = No({
792
+ ...ro(h),
793
+ FINAL_CONFIG: l,
794
+ prepareConfig: Dl,
795
+ callback: () => {
796
+ Promise.resolve().then(async () => {
797
+ await pt();
798
+ });
799
+ },
800
+ skeletonDataset: [
801
+ {
802
+ name: "",
803
+ series: [0, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 134],
804
+ type: "line",
805
+ smooth: !0,
806
+ color: "#BABABA"
807
+ },
808
+ {
809
+ name: "",
810
+ series: [0, 0.5, 1, 1.5, 2.5, 4, 6.5, 10.5, 17, 27.5, 44.5, 67],
811
+ type: "bar",
812
+ color: "#CACACA"
813
+ }
814
+ ],
815
+ skeletonConfig: xo({
816
+ defaultConfig: l.value,
817
+ userConfig: {
818
+ useCssAnimation: !1,
819
+ showTable: !1,
820
+ chart: {
821
+ annotations: [],
822
+ highlightArea: [],
823
+ backgroundColor: "#99999930",
824
+ grid: {
825
+ stroke: "#6A6A6A",
826
+ labels: {
827
+ show: !1,
828
+ axis: {
829
+ yLabel: "",
830
+ xLabel: ""
831
+ },
832
+ xAxisLabels: { show: !1 },
833
+ yAxis: {
834
+ commonScaleSteps: 10,
835
+ useNiceScale: !0,
836
+ scaleMin: 0,
837
+ scaleMax: 134
838
+ },
839
+ zeroLine: { show: !0 }
840
+ }
841
+ },
842
+ padding: {
843
+ top: 12,
844
+ bottom: 24,
845
+ left: 24,
846
+ right: 24
847
+ },
848
+ userOptions: { show: !1 },
849
+ zoom: {
850
+ show: !1,
851
+ startIndex: null,
852
+ endIndex: null
853
+ }
854
+ },
855
+ bar: {
856
+ serieName: { show: !1 },
857
+ labels: { show: !1 },
858
+ border: {
859
+ useSerieColor: !1,
860
+ stroke: "#999999"
861
+ }
862
+ },
863
+ line: {
864
+ dot: {
865
+ useSerieColor: !1,
866
+ fill: "#8A8A8A"
867
+ },
868
+ labels: { show: !1 }
869
+ }
870
+ }
871
+ })
872
+ }), f = k({
873
+ get: () => Math.max(...F.value.map((t) => Ze({ data: t.series, threshold: xl }).length)),
874
+ set: (t) => t
875
+ }), d = p({ start: 0, end: f.value }), V = p({ start: 0, end: f.value }), ze = k(() => l.value.chart.zoom.preview.enable && (V.value.start !== d.value.start || V.value.end !== d.value.end));
876
+ function pl(t, r) {
877
+ V.value[t] = r;
878
+ }
879
+ function Xl() {
880
+ const t = Math.max(
881
+ 1,
882
+ ...F.value.map((u) => Ze({
883
+ data: u.series,
884
+ threshold: l.value.downsample.threshold
885
+ }).length)
886
+ );
887
+ let r = Math.max(0, Math.min(d.value.start ?? 0, t - 1)), e = Math.max(r + 1, Math.min(d.value.end ?? t, t));
888
+ (!Number.isFinite(r) || !Number.isFinite(e) || e <= r) && (r = 0, e = t), d.value = { start: r, end: e }, V.value.start = r, V.value.end = e;
889
+ }
890
+ const Rt = k(() => {
891
+ const { left: t, top: r, width: e, height: u } = c.value, a = d.value.start, o = d.value.end - a, P = e / o, X = V.value.start - a, G = V.value.end - a, I = Math.max(0, Math.min(o, X)), O = Math.max(0, Math.min(o, G));
892
+ return {
893
+ x: t + I * P,
894
+ y: r,
895
+ width: (O - I) * P,
896
+ height: u,
897
+ fill: l.value.chart.zoom.preview.fill,
898
+ stroke: l.value.chart.zoom.preview.stroke,
899
+ "stroke-width": l.value.chart.zoom.preview.strokeWidth,
900
+ "stroke-dasharray": l.value.chart.zoom.preview.strokeDasharray,
901
+ "stroke-linecap": "round",
902
+ "stroke-linejoin": "round",
903
+ style: {
904
+ pointerEvents: "none",
905
+ transition: "all 0.1s ease-in-out",
906
+ animation: "none !important"
907
+ }
908
+ };
909
+ });
910
+ ol(() => h.selectedXIndex, (t) => {
911
+ if ([null, void 0].includes(h.selectedXIndex)) {
912
+ w.value = null;
913
+ return;
914
+ }
915
+ const r = t - d.value.start;
916
+ r < 0 || t >= d.value.end ? w.value = null : w.value = r ?? null;
917
+ }, { immediate: !0 });
918
+ const { isPrinting: et, isImaging: ft, generatePdf: Xt, generateImage: Gt } = To({
919
+ elementId: `vue-ui-xy_${Q.value}`,
920
+ fileName: l.value.chart.title.text || "vue-ui-xy",
921
+ options: l.value.chart.userOptions.print
922
+ }), Ra = p(!1), Ut = k(() => bo(l.value.customPalette)), gt = k(() => {
923
+ if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
924
+ return l.value.chart.grid.labels.yAxis.scaleMin;
925
+ const t = Math.min(...sl.value.filter((r) => !ae.value.includes(r.id)).map((r) => Math.min(...r.series)));
926
+ return t > 0 ? 0 : t;
927
+ }), mt = k(() => {
928
+ if (l.value.chart.grid.labels.yAxis.scaleMax)
929
+ return l.value.chart.grid.labels.yAxis.scaleMax;
930
+ const t = Math.max(...sl.value.filter((r) => !ae.value.includes(r.id)).map((r) => Math.max(...r.series)));
931
+ return gt.value === t ? t + 1 : t;
932
+ }), Xe = k(() => l.value.chart.grid.labels.yAxis.useNiceScale ? st(gt.value, mt.value < 0 ? 0 : mt.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : Nl(gt.value, mt.value < 0 ? 0 : mt.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), lt = k(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? Xe.value.min >= 0 ? 0 : Math.abs(Xe.value.min) : -Xe.value.min), sl = k(() => hl.value ? F.value.map((t, r) => {
933
+ const e = Ze({
934
+ data: t.series,
935
+ threshold: l.value.downsample.threshold
936
+ }), u = `uniqueId_${r}`;
937
+ return {
938
+ ...t,
939
+ slotAbsoluteIndex: r,
940
+ series: e.map((a) => Lt(a) ? a : null).slice(d.value.start, d.value.end),
941
+ color: po(t.color ? t.color : Ut.value[r] ? Ut.value[r] : yo[r]),
942
+ id: u,
943
+ scaleLabel: t.scaleLabel || u
944
+ };
945
+ }) : F.value), el = k(() => sl.value.map((t, r) => ({
946
+ absoluteIndex: r,
947
+ ...t,
948
+ series: t.series.map((e) => e + lt.value),
949
+ absoluteValues: t.series,
950
+ segregate: () => ra(t),
951
+ isSegregated: ae.value.includes(t.id)
952
+ }))), Ee = k(() => sl.value.map((t, r) => ({
953
+ ...t,
954
+ series: t.series.map((e) => e + lt.value),
955
+ absoluteValues: t.series
956
+ })).filter((t) => !ae.value.includes(t.id)));
957
+ function Pa() {
958
+ let t = 0;
959
+ Z.value && (t = Array.from(Z.value.querySelectorAll("text")).reduce((a, s) => {
960
+ const o = s.getComputedTextLength();
961
+ return (o > a ? o : a) + l.value.chart.grid.labels.yAxis.scaleValueOffsetX;
962
+ }, 0));
963
+ const r = Vl.value ? Vl.value.getBoundingClientRect().width + l.value.chart.grid.labels.axis.yLabelOffsetX + S.value.yAxis : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
964
+ return t + r + e;
965
+ }
966
+ const Pt = p(0), Ha = Dt((t) => {
967
+ Pt.value = t;
968
+ }, 100);
969
+ co((t) => {
970
+ const r = Qe.value;
971
+ if (!r) return;
972
+ const e = new ResizeObserver((u) => {
973
+ Ha(u[0].contentRect.height);
974
+ });
975
+ e.observe(r), t(() => e.disconnect());
976
+ }), ct(() => {
977
+ Pt.value = 0;
978
+ });
979
+ const Zt = k(() => {
980
+ let t = 0;
981
+ Hl.value && (t = Hl.value.getBBox().height);
982
+ let r = 0;
983
+ return Qe.value && (r = Pt.value), t + r + S.value.xAxis;
984
+ }), Va = k(() => F.value.some((t) => t.useProgression)), c = k(() => {
985
+ let t = 0;
986
+ const r = 36;
987
+ l.value.chart.grid.labels.show && (y.value.useIndividualScale && !y.value.isStacked ? t = (F.value.length - ae.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + r) : y.value.useIndividualScale && y.value.isStacked ? t = l.value.chart.grid.labels.yAxis.labelWidth + r : t = Pa());
988
+ const e = l.value.chart.labels.fontSize * 1.1, u = Va.value ? 24 : 6;
989
+ if (Qe.value) {
990
+ const o = Qe.value.getBBox().x;
991
+ o < 0 && (t += Math.abs(o));
992
+ }
993
+ const a = ne.value - t - l.value.chart.grid.labels.yAxis.crosshairSize - u - l.value.chart.padding.left - l.value.chart.padding.right, s = l.value.chart.grid.position === "middle" ? 0 : a / M.value / 2;
994
+ return {
995
+ top: l.value.chart.padding.top + e,
996
+ right: ne.value - u - l.value.chart.padding.right,
997
+ bottom: xe.value - Zt.value - l.value.chart.padding.bottom - l.value.chart.grid.labels.axis.xLabelOffsetY,
998
+ left: t + l.value.chart.grid.labels.yAxis.crosshairSize - s + l.value.chart.padding.left,
999
+ height: xe.value - Zt.value - l.value.chart.padding.top - l.value.chart.padding.bottom - e - l.value.chart.grid.labels.axis.xLabelOffsetY,
1000
+ width: a,
1001
+ scaleLabelX: t,
1002
+ individualOffsetX: r
1003
+ };
1004
+ }), Ea = k(() => {
1005
+ const t = l.value.chart.grid.position === "middle" ? 1 : 0, r = M.value + t, e = D(c.value.top), u = D(c.value.bottom);
1006
+ return Array.from({ length: r }).map((a, s) => {
1007
+ const o = c.value.width / M.value * s + c.value.left + ee.value;
1008
+ return `M${o},${e} L${o},${u}`;
1009
+ }).join(" ");
1010
+ }), Ba = k(() => {
1011
+ if (!l.value.chart.grid.labels.xAxis.showCrosshairs)
1012
+ return "";
1013
+ const {
1014
+ showOnlyAtModulo: t,
1015
+ showOnlyFirstAndLast: r,
1016
+ modulo: e
1017
+ } = l.value.chart.grid.labels.xAxisLabels, u = q.value.length ? Math.min(e, [...new Set(q.value.map((s) => s.text))].length) : e, a = Math.floor((d.value.end - d.value.start) / u);
1018
+ return q.value.map((s, o) => {
1019
+ if (!s) return null;
1020
+ const P = t && M.value <= u, X = !r && !t, G = r && !t && (o === 0 || o === q.value.length - 1), I = r && !t && w.value === o, O = !r && t && o % a === 0;
1021
+ if (!(P || X || G || I || O))
1022
+ return null;
1023
+ const U = c.value.width / M.value, T = c.value.left + U * o + U / 2, E = l.value.chart.grid.labels.xAxis.crosshairSize, N = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero, se = N ? we.value - (we.value === c.value.bottom ? 0 : E / 2) : c.value.bottom, ge = N ? we.value + E / (we.value === c.value.bottom ? 1 : 2) : c.value.bottom + E;
1024
+ return `M${T},${se} L${T},${ge}`;
1025
+ }).filter((s) => s !== null).join(" ");
1026
+ });
1027
+ function qt() {
1028
+ return !!Ot?.vnode.props?.onSelectTimeLabel;
1029
+ }
1030
+ function Fa(t, r, e) {
1031
+ if (!Wl.value) {
1032
+ const u = document.createElement("canvas");
1033
+ Wl.value = u.getContext("2d");
1034
+ }
1035
+ return Wl.value.font = `normal ${t}px sans-serif`, Wl.value;
1036
+ }
1037
+ function Kt() {
1038
+ const t = ue.value.querySelectorAll(".vue-ui-xy-tag");
1039
+ t.length && Array.from(t).forEach((r) => r.style.opacity = "0");
1040
+ }
1041
+ function xt(t, r, e, u, a) {
1042
+ e && (Ve.value[`${t}_${r}_${u}_${a}`] = e);
1043
+ }
1044
+ const Jt = p(!1);
1045
+ async function Qt(t = !1) {
1046
+ await Kl(), Jt.value = t, De.value && (Fl.value = t);
1047
+ }
1048
+ function Ht() {
1049
+ ml.value = !ml.value;
1050
+ }
1051
+ const q = k(() => {
1052
+ const t = Math.max(...F.value.map((r) => Ze({ data: r.series, threshold: l.value.downsample.threshold }).length));
1053
+ return Na({
1054
+ values: l.value.chart.grid.labels.xAxisLabels.values,
1055
+ maxDatapoints: t,
1056
+ formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
1057
+ start: d.value.start,
1058
+ end: d.value.end
1059
+ });
1060
+ }), Wa = k(() => {
1061
+ const t = Math.max(...F.value.map((r) => Ze({ data: r.series, threshold: l.value.downsample.threshold }).length));
1062
+ return Na({
1063
+ values: l.value.chart.grid.labels.xAxisLabels.values,
1064
+ maxDatapoints: t,
1065
+ formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
1066
+ start: 0,
1067
+ end: f.value
1068
+ });
1069
+ }), bt = k(() => {
1070
+ const t = l.value.chart.grid.labels.xAxisLabels.modulo;
1071
+ return q.value.length ? Math.min(t, [...new Set(q.value.map((r) => r.text))].length) : t;
1072
+ });
1073
+ function jt(t, r) {
1074
+ const e = Ee.value.map((u) => ({
1075
+ shape: u.shape || null,
1076
+ name: u.name,
1077
+ color: u.color,
1078
+ type: u.type,
1079
+ value: u.absoluteValues.find((a, s) => s === r),
1080
+ comments: u.comments || [],
1081
+ prefix: u.prefix || l.value.chart.labels.prefix,
1082
+ suffix: u.suffix || l.value.chart.labels.suffix
1083
+ }));
1084
+ Pl("selectTimeLabel", {
1085
+ datapoint: e,
1086
+ absoluteIndex: t.absoluteIndex,
1087
+ label: t.text
1088
+ });
1089
+ }
1090
+ const M = k(() => {
1091
+ const t = bl((d.value.end ?? 0) - (d.value.start ?? 0));
1092
+ return Math.max(1, t);
1093
+ });
1094
+ function ea(t) {
1095
+ C.value = t;
1096
+ }
1097
+ function la() {
1098
+ y.value.isStacked = !y.value.isStacked, y.value.isStacked ? y.value.useIndividualScale = !0 : y.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale;
1099
+ }
1100
+ function Vt(t) {
1101
+ ut.value && t.autoScaling && (l.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${t.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), l.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${t.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
1102
+ }
1103
+ function Ya(t, r) {
1104
+ const e = bl(t), u = Array(e).fill(0);
1105
+ for (let a = 0; a < r.length && a < e; a += 1) u[a] = r[a] ?? 0;
1106
+ return u;
1107
+ }
1108
+ function Da(t) {
1109
+ const r = Math.max(...F.value.map((e) => Ze({ data: e.series, threshold: l.value.downsample.threshold }).length));
1110
+ return t > r ? r : t < 0 || l.value.chart.zoom.startIndex !== null && t < l.value.chart.zoom.startIndex ? l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex + 1 : 1 : t;
1111
+ }
1112
+ async function pt() {
1113
+ await Kl(), await Kl();
1114
+ const { startIndex: t, endIndex: r } = l.value.chart.zoom, e = Ae.value, u = Math.max(
1115
+ ...F.value.map(
1116
+ (a) => Ze({
1117
+ data: a.series,
1118
+ threshold: l.value.downsample.threshold
1119
+ }).length
1120
+ )
1121
+ );
1122
+ (t != null || r != null) && e ? (t != null && (d.value.start = t, e.setStartValue(t)), r != null && (d.value.end = r + 1, e.setEndValue(Da(r + 1)))) : (d.value = { start: 0, end: u }, ye.value += 1), V.value.start = d.value.start, V.value.end = d.value.end, Xl();
1123
+ }
1124
+ async function ta() {
1125
+ await pt();
1126
+ }
1127
+ function Ie(t) {
1128
+ return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(t);
1129
+ }
1130
+ const aa = k(() => Xe.value.max + lt.value);
1131
+ function zl(t) {
1132
+ return t / (Ie(aa.value) ? aa.value : 1);
1133
+ }
1134
+ const we = k(() => isNaN(zl(lt.value)) ? c.value.bottom : c.value.bottom - c.value.height * zl(lt.value));
1135
+ function oa(t) {
1136
+ const r = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && gt.value >= 0 ? c.value.bottom : we.value;
1137
+ return t.value >= 0 ? H(r - t.y <= 0 ? 1e-5 : r - t.y) : H(t.y - we.value <= 0 ? 1e-5 : t.y - we.value);
1138
+ }
1139
+ function ua(t) {
1140
+ return t.value >= 0 ? H(t.zeroPosition - t.y <= 0 ? 1e-5 : t.zeroPosition - t.y) : H(t.y - t.zeroPosition <= 0 ? 1e-5 : t.zeroPosition - t.y);
1141
+ }
1142
+ const oe = k(() => {
1143
+ const t = Math.max(1, M.value), r = Math.max(1, c.value.width), e = Math.max(1, sl.value.filter((u) => u.type === "bar" && !ae.value.includes(u.id)).length);
1144
+ return {
1145
+ bar: il(r, t * e, 1),
1146
+ plot: il(r, t, 1),
1147
+ line: il(r, t, 1)
1148
+ };
1149
+ });
1150
+ function Gl() {
1151
+ return y.value.useIndividualScale && y.value.isStacked ? oe.value.line - c.value.width / M.value * 0.1 : oe.value.bar;
1152
+ }
1153
+ function yt(t) {
1154
+ return y.value.useIndividualScale && y.value.isStacked ? t.x + c.value.width / M.value * 0.05 : t.x + oe.value.bar / 2;
1155
+ }
1156
+ function na(t) {
1157
+ return t.value >= 0 ? t.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(we.value) ? c.bottom.value : we.value;
1158
+ }
1159
+ function ia(t) {
1160
+ return t.value >= 0 ? t.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(t.zeroPosition) ? 0 : t.zeroPosition;
1161
+ }
1162
+ const tt = p(null);
1163
+ function Xa(t) {
1164
+ if (ml.value) return;
1165
+ const r = ke.value.getBoundingClientRect(), u = ke.value.viewBox.baseVal.width / r.width, s = (t.clientX - r.left) * u - c.value.left, o = c.value.width / M.value, P = Math.floor(s / o);
1166
+ P >= 0 && P < M.value ? tt.value !== P && (tt.value = P, ba(!0, P)) : sa();
1167
+ }
1168
+ function sa() {
1169
+ tt.value = null, ba(!1, null);
1170
+ }
1171
+ function Ga() {
1172
+ tt.value != null && Ua(tt.value);
1173
+ }
1174
+ function Ua(t) {
1175
+ const r = Ee.value.map((e) => ({
1176
+ name: e.name,
1177
+ value: [null, void 0, NaN].includes(e.absoluteValues[t]) ? null : e.absoluteValues[t],
1178
+ color: e.color,
1179
+ type: e.type
1180
+ }));
1181
+ Pl(
1182
+ "selectX",
1183
+ {
1184
+ dataset: r,
1185
+ index: t,
1186
+ indexLabel: l.value.chart.grid.labels.xAxisLabels.values[t]
1187
+ }
1188
+ ), l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: r, seriesIndex: t + d.value.start });
1189
+ }
1190
+ function Za() {
1191
+ return el.value.map((t) => ({
1192
+ values: t.absoluteValues,
1193
+ color: t.color,
1194
+ name: t.name,
1195
+ type: t.type
1196
+ }));
1197
+ }
1198
+ async function qa({ scale: t = 2 } = {}) {
1199
+ if (!ue.value) return;
1200
+ const { width: r, height: e } = ue.value.getBoundingClientRect(), u = r / e, { imageUri: a, base64: s } = await Po({ domElement: ue.value, base64: !0, img: !0, scale: t });
1201
+ return {
1202
+ imageUri: a,
1203
+ base64: s,
1204
+ title: l.value.chart.title.text,
1205
+ width: r,
1206
+ height: e,
1207
+ aspectRatio: u
1208
+ };
1209
+ }
1210
+ function ra(t) {
1211
+ if (ae.value.includes(t.id))
1212
+ ae.value = ae.value.filter((r) => r !== t.id);
1213
+ else {
1214
+ if (ae.value.length + 1 === sl.value.length) return;
1215
+ ae.value.push(t.id);
1216
+ }
1217
+ Pl("selectLegend", Ee.value.map((r) => ({
1218
+ name: r.name,
1219
+ values: r.absoluteValues,
1220
+ color: r.color,
1221
+ type: r.type
1222
+ }))), He.value += 1;
1223
+ }
1224
+ const Ka = k(() => {
1225
+ const t = l.value.chart.title.text || "Chart visualization", r = l.value.chart.title.subtitle.text || "";
1226
+ return `${t}. ${r}`;
1227
+ }), ca = k(() => ({
1228
+ linePlot: M.value > l.value.line.dot.hideAboveMaxSerieLength
1229
+ })), Ja = k(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), Qa = k(() => {
1230
+ if (Array.isArray(l.value.chart.highlightArea))
1231
+ return l.value.chart.highlightArea.map((r) => {
1232
+ const e = Math.min(r.to, f.value - 1);
1233
+ return {
1234
+ ...r,
1235
+ span: r.from === e ? 1 : e < r.from ? 0 : e - r.from + 1
1236
+ };
1237
+ });
1238
+ const t = {
1239
+ ...l.value.chart.highlightArea,
1240
+ to: Math.min(l.value.chart.highlightArea.to, f.value - 1)
1241
+ };
1242
+ return [{ ...t, span: t.from === t.to ? 1 : t.to < t.from ? 0 : t.to - t.from + 1 }];
1243
+ }), ja = k(() => hl.value ? F.value.map((t, r) => ({
1244
+ ...t,
1245
+ series: Ze({
1246
+ data: t.series,
1247
+ threshold: l.value.downsample.threshold
1248
+ }),
1249
+ id: `uniqueId_${r}`
1250
+ })) : F.value), eo = k(() => Ee.value.map((t) => {
1251
+ const r = t.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
1252
+ return {
1253
+ id: t.id,
1254
+ name: t.name,
1255
+ color: t.color,
1256
+ values: Ya(M.value, r)
1257
+ };
1258
+ })), lo = k(() => ({
1259
+ responsiveBreakpoint: l.value.table.responsiveBreakpoint,
1260
+ roundingValues: l.value.table.rounding,
1261
+ showAverage: !1,
1262
+ showMedian: !1,
1263
+ showTotal: !1,
1264
+ fontFamily: l.value.chart.fontFamily,
1265
+ prefix: l.value.chart.labels.prefix,
1266
+ suffix: l.value.chart.labels.suffix,
1267
+ colNames: q.value.map((t) => t.text),
1268
+ thead: {
1269
+ backgroundColor: l.value.table.th.backgroundColor,
1270
+ color: l.value.table.th.color,
1271
+ outline: l.value.table.th.outline
1272
+ },
1273
+ tbody: {
1274
+ backgroundColor: l.value.table.td.backgroundColor,
1275
+ color: l.value.table.td.color,
1276
+ outline: l.value.table.td.outline
1277
+ },
1278
+ userOptions: {
1279
+ show: !1
1280
+ }
1281
+ })), ee = k(() => l.value.chart.grid.position === "middle" ? 0 : c.value.width / M.value / 2), Il = k(() => ko(el.value.filter((t) => !ae.value.includes(t.id)))), z = k(() => {
1282
+ const t = Object.groupBy(Il.value, (e) => e.scaleLabel), r = {};
1283
+ for (const [e, u] of Object.entries(t)) {
1284
+ const a = u.flatMap((s) => s.absoluteValues);
1285
+ r[e] = {
1286
+ min: Math.min(...a) || 0,
1287
+ max: Math.max(...a) || 1,
1288
+ groupId: `scale_group_${Ct()}`
1289
+ };
1290
+ }
1291
+ return r;
1292
+ }), to = k(() => {
1293
+ const t = sl.value.filter((r) => r.type === "bar").filter((r) => !ae.value.includes(r.id)).length;
1294
+ return c.value.width / M.value / t - kt.value * t;
1295
+ }), kt = k(() => oe.value.line * l.value.bar.periodGap), wt = k(() => Math.max(1e-5, Gl() - (y.value.useIndividualScale && y.value.isStacked ? 0 : kt.value))), St = k(() => wt.value * Math.min(Math.abs(l.value.bar.innerGap), 0.95)), va = k(() => {
1296
+ if (!l.value.chart.zoom.minimap.show) return [];
1297
+ const t = ja.value.filter((a) => !ae.value.includes(a.id)), r = Math.max(...t.map((a) => a.series.length)), e = [];
1298
+ for (let a = 0; a < r; a += 1)
1299
+ e.push(t.map((s) => s.series[a] || 0).reduce((s, o) => (s || 0) + (o || 0), 0));
1300
+ const u = Math.min(...e);
1301
+ return e.map((a) => a + (u < 0 ? Math.abs(u) : 0));
1302
+ }), at = k(() => Ee.value.map((t) => ({
1303
+ slotAbsoluteIndex: t.slotAbsoluteIndex,
1304
+ shape: t.shape || null,
1305
+ name: t.name,
1306
+ color: t.color,
1307
+ type: t.type,
1308
+ value: t.absoluteValues.find((r, e) => e === w.value),
1309
+ comments: t.comments || [],
1310
+ prefix: t.prefix || l.value.chart.labels.prefix,
1311
+ suffix: t.suffix || l.value.chart.labels.suffix
1312
+ }))), da = k(() => Xe.value.ticks.map((t) => ({
1313
+ y: t >= 0 ? we.value - c.value.height * zl(t) : we.value + c.value.height * zl(Math.abs(t)),
1314
+ value: t,
1315
+ prefix: l.value.chart.labels.prefix,
1316
+ suffix: l.value.chart.labels.suffix
1317
+ }))), ha = k(() => {
1318
+ const t = l.value.chart.annotations;
1319
+ if (!t || !Array.isArray(t) || t.every((I) => !I.show)) return [];
1320
+ const r = t.filter(
1321
+ (I) => I.show && (I.yAxis.yTop != null || I.yAxis.yBottom != null)
1322
+ );
1323
+ if (!r.length) return [];
1324
+ const { left: e, right: u } = c.value, a = we.value, s = c.value.height, o = Xe.value.min, X = Xe.value.max - o, G = (I) => {
1325
+ const O = (I - 0) / X;
1326
+ return a - O * s;
1327
+ };
1328
+ return r.map((I) => {
1329
+ const { yAxis: { yTop: O, yBottom: U, label: T } } = I, E = O != null && U != null && O !== U, N = O == null ? null : G(O), se = U == null ? null : G(U), ge = Fa(T.fontSize);
1330
+ ge.font = `${T.fontSize}px sans-serif`;
1331
+ const le = ge.measureText(T.text).width, Be = T.fontSize, tl = (T.position === "start" ? e + T.padding.left : u - T.padding.right) + T.offsetX, Te = (N != null && se != null ? Math.min(N, se) : N ?? se) - T.fontSize / 3 + T.offsetY - T.padding.top;
1332
+ let W;
1333
+ T.textAnchor === "middle" ? W = tl - le / 2 - T.padding.left : T.textAnchor === "end" ? W = tl - le - T.padding.right : W = tl - T.padding.left;
1334
+ const Y = Te - Be * 0.75 - T.padding.top;
1335
+ return {
1336
+ show: ![N, se, Y].includes(NaN),
1337
+ id: `annotation_y_${Ct()}`,
1338
+ hasArea: E,
1339
+ areaHeight: E ? Math.abs(N - se) : 0,
1340
+ yTop: N,
1341
+ yBottom: se,
1342
+ config: I.yAxis,
1343
+ x1: e,
1344
+ x2: u,
1345
+ _text: { x: tl, y: Te },
1346
+ _box: {
1347
+ x: W,
1348
+ y: Y,
1349
+ width: le + T.padding.left + T.padding.right,
1350
+ height: Be + T.padding.top + T.padding.bottom,
1351
+ fill: T.backgroundColor,
1352
+ stroke: T.border.stroke,
1353
+ rx: T.border.rx,
1354
+ ry: T.border.ry,
1355
+ strokeWidth: T.border.strokeWidth
1356
+ }
1357
+ };
1358
+ });
1359
+ });
1360
+ function fa(t, r) {
1361
+ const e = t[r - 1], u = t[r + 1];
1362
+ let a = !!e && !!u && e.value == null && u.value == null || !e && !!u && u.value == null || !!e && !u && e.value == null;
1363
+ return Ie(t[r].value) && a;
1364
+ }
1365
+ const yl = k(() => {
1366
+ const t = Il.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), r = t.length, e = l.value.chart.grid.labels.yAxis.gap, u = y.value.isStacked, a = u ? e * (r - 1) : 0, s = c.value.height - a;
1367
+ return t.filter((o) => o.type === "bar").map((o, P) => {
1368
+ Vt(o);
1369
+ const X = z.value[o.scaleLabel].min, G = z.value[o.scaleLabel].max;
1370
+ o.absoluteValues.filter((B) => ![null, void 0].includes(B)).map((B) => (B - X) / (G - X));
1371
+ const I = {
1372
+ valueMin: X,
1373
+ valueMax: G < 0 ? 0 : G
1374
+ }, O = {
1375
+ max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
1376
+ min: o.scaleMin || Math.min(...o.absoluteValues.filter((B) => ![void 0, null].includes(B))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((B) => ![null, void 0].includes(B)))
1377
+ }, U = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, T = 1.0000001, E = l.value.chart.grid.labels.yAxis.useNiceScale ? st(O.min, O.max === O.min ? O.max * T : O.max, U) : Nl(O.min, O.max === O.min ? O.max * T : O.max, U), N = l.value.chart.grid.labels.yAxis.useNiceScale ? st(I.valueMin, I.valueMax === I.valueMin ? I.valueMax * T : I.valueMax, U) : Nl(I.valueMin, I.valueMax === I.valueMin ? I.valueMax * T : I.valueMax, U), se = E.min >= 0 ? 0 : Math.abs(E.min), ge = 0, le = E.max + se, Be = N.max + Math.abs(ge), tl = o.stackIndex, Ul = r - 1 - tl, Te = u ? 1 - o.cumulatedStackRatio : 0, W = u ? s * Te + e * Ul : 0, Y = u ? s * o.stackRatio : c.value.height, re = c.value.bottom - W - Y * se / le, Ne = c.value.bottom - W - Y * ge / Be, Se = el.value.filter((B) => B.type === "bar").filter((B) => !ae.value.includes(B.id)).length, nt = o.series.map((B, ve) => {
1378
+ const wl = y.value.useIndividualScale ? (o.absoluteValues[ve] + se) / le : zl(B), Tl = y.value.useIndividualScale && y.value.isStacked ? c.value.left + c.value.width / M.value * ve : c.value.left + oe.value.bar * P + oe.value.bar * ve * Se - to.value / 2 - P * kt.value;
1379
+ return {
1380
+ yOffset: H(W),
1381
+ individualHeight: H(Y),
1382
+ x: H(Tl),
1383
+ y: c.value.bottom - W - Y * wl,
1384
+ value: o.absoluteValues[ve],
1385
+ zeroPosition: H(re),
1386
+ individualMax: H(le),
1387
+ comment: o.comments && o.comments.slice(d.value.start, d.value.end)[ve] || ""
1388
+ };
1389
+ }), Me = o.absoluteValues.map((B) => N.min >= 0 ? (B - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (B + Math.abs(N.min)) / (N.max + Math.abs(N.min))), kl = o.series.map((B, ve) => {
1390
+ const wl = y.value.useIndividualScale && y.value.isStacked ? c.value.left + c.value.width / M.value * ve : c.value.left - oe.value.bar / 2 + oe.value.bar * P + oe.value.bar * ve * el.value.filter((Tl) => Tl.type === "bar").filter((Tl) => !ae.value.includes(Tl.id)).length;
1391
+ return {
1392
+ yOffset: H(W),
1393
+ individualHeight: H(Y),
1394
+ x: H(wl),
1395
+ y: H(c.value.bottom - H(W) - (H(Y) * Me[ve] || 0)),
1396
+ value: o.absoluteValues[ve],
1397
+ zeroPosition: H(re),
1398
+ individualMax: H(le),
1399
+ comment: o.comments && o.comments.slice(d.value.start, d.value.end)[ve] || ""
1400
+ };
1401
+ }), K = E.ticks.map((B) => ({
1402
+ y: B >= 0 ? re - Y * (B / le) : re + Y * Math.abs(B) / le,
1403
+ value: B,
1404
+ prefix: o.prefix || l.value.chart.labels.prefix,
1405
+ suffix: o.suffix || l.value.chart.labels.suffix,
1406
+ datapoint: o
1407
+ })), ce = N.ticks.map((B) => {
1408
+ const ve = (B - N.min) / (N.max - N.min);
1409
+ return {
1410
+ y: B >= 0 ? Ne - Y * ve : Ne + Y * ve,
1411
+ value: B,
1412
+ prefix: o.prefix || l.value.chart.labels.prefix,
1413
+ suffix: o.suffix || l.value.chart.labels.suffix,
1414
+ datapoint: o
1415
+ };
1416
+ });
1417
+ return z.value[o.scaleLabel].name = o.name, z.value[o.scaleLabel].groupName = o.scaleLabel, z.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, z.value[o.scaleLabel].color = o.color, z.value[o.scaleLabel].scaleYLabels = o.autoScaling ? ce : K, z.value[o.scaleLabel].zeroPosition = o.autoScaling ? Ne : re, z.value[o.scaleLabel].individualMax = o.autoScaling ? Be : le, z.value[o.scaleLabel].scaleLabel = o.scaleLabel, z.value[o.scaleLabel].id = o.id, z.value[o.scaleLabel].yOffset = W, z.value[o.scaleLabel].individualHeight = Y, z.value[o.scaleLabel].autoScaleYLabels = ce, z.value[o.scaleLabel].unique = Il.value.filter((B) => B.scaleLabel === o.scaleLabel).length === 1, {
1418
+ ...o,
1419
+ yOffset: W,
1420
+ autoScaleYLabels: ce,
1421
+ individualHeight: Y,
1422
+ scaleYLabels: o.autoScaling ? ce : K,
1423
+ individualScale: o.autoScaling ? N : E,
1424
+ individualMax: o.autoScaling ? Be : le,
1425
+ zeroPosition: o.autoScaling ? Ne : re,
1426
+ plots: o.autoScaling ? kl : nt,
1427
+ groupId: z.value[o.scaleLabel].groupId
1428
+ };
1429
+ });
1430
+ }), Ge = k(() => {
1431
+ const t = Il.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), r = t.length, e = l.value.chart.grid.labels.yAxis.gap, u = y.value.isStacked, a = u ? e * (r - 1) : 0, s = c.value.height - a;
1432
+ return t.filter((o) => o.type === "line").map((o, P) => {
1433
+ Vt(o);
1434
+ const X = z.value[o.scaleLabel].min, G = z.value[o.scaleLabel].max;
1435
+ o.absoluteValues.filter((R) => ![null, void 0].includes(R)).map((R) => (R - X) / (G - X));
1436
+ const I = {
1437
+ valueMin: X,
1438
+ valueMax: G
1439
+ }, O = {
1440
+ max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
1441
+ min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
1442
+ }, U = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, T = 1.0000001, E = l.value.chart.grid.labels.yAxis.useNiceScale ? st(O.min, O.max === O.min ? O.max * T : O.max, U) : Nl(O.min, O.max === O.min ? O.max * T : O.max, U), N = l.value.chart.grid.labels.yAxis.useNiceScale ? st(I.valueMin, I.valueMax === I.valueMin ? I.valueMax * T : I.valueMax, U) : Nl(I.valueMin, I.valueMax === I.valueMin ? I.valueMax * T : I.valueMax, U), se = E.min >= 0 ? 0 : Math.abs(E.min), ge = 0, le = E.max + Math.abs(se), Be = N.max + Math.abs(ge), tl = o.stackIndex, Ul = r - 1 - tl, Te = u ? 1 - o.cumulatedStackRatio : 0, W = u ? s * Te + e * Ul : 0, Y = u ? s * o.stackRatio : c.value.height, re = c.value.bottom - W - Y * se / le, Ne = c.value.bottom - W - Y * ge / Be, Se = o.series.map((R, be) => {
1443
+ const oo = y.value.useIndividualScale ? (o.absoluteValues[be] + Math.abs(se)) / le : zl(R);
1444
+ return {
1445
+ x: H(c.value.left + oe.value.line / 2 + oe.value.line * be),
1446
+ y: H(c.value.bottom - W - Y * oo),
1447
+ value: o.absoluteValues[be],
1448
+ comment: o.comments && o.comments.slice(d.value.start, d.value.end)[be] || ""
1449
+ };
1450
+ }), nt = o.absoluteValues.map((R) => N.min >= 0 ? (R - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (R + Math.abs(N.min)) / (N.max + Math.abs(N.min))), Me = o.series.map((R, be) => [void 0, null].includes(o.absoluteValues[be]) ? {
1451
+ x: H(c.value.left + oe.value.line / 2 + oe.value.line * be),
1452
+ y: re,
1453
+ value: o.absoluteValues[be],
1454
+ comment: o.comments && o.comments.slice(d.value.start, d.value.end)[be] || ""
1455
+ } : {
1456
+ x: H(c.value.left + oe.value.line / 2 + oe.value.line * be),
1457
+ y: H(c.value.bottom - W - (Y * nt[be] || 0)),
1458
+ value: o.absoluteValues[be],
1459
+ comment: o.comments && o.comments.slice(d.value.start, d.value.end)[be] || ""
1460
+ }), kl = l.value.line.cutNullValues ? Ma(Se) : zt(Se.filter((R) => R.value !== null)), K = l.value.line.cutNullValues ? Ma(Me) : zt(Me.filter((R) => R.value !== null)), ce = l.value.line.cutNullValues ? Aa(Se) : It(Se.filter((R) => R.value !== null)), B = l.value.line.cutNullValues ? Aa(Me) : It(Me.filter((R) => R.value !== null)), ve = E.ticks.map((R) => ({
1461
+ y: R >= 0 ? re - Y * (R / le) : re + Y * Math.abs(R) / le,
1462
+ value: R,
1463
+ prefix: o.prefix || l.value.chart.labels.prefix,
1464
+ suffix: o.suffix || l.value.chart.labels.suffix,
1465
+ datapoint: o
1466
+ })), wl = N.ticks.map((R) => {
1467
+ const be = (R - N.min) / (N.max - N.min);
1468
+ return {
1469
+ y: R >= 0 ? Ne - Y * be : Ne + Y * be,
1470
+ value: R,
1471
+ prefix: o.prefix || l.value.chart.labels.prefix,
1472
+ suffix: o.suffix || l.value.chart.labels.suffix,
1473
+ datapoint: o
1474
+ };
1475
+ });
1476
+ z.value[o.scaleLabel].name = o.name, z.value[o.scaleLabel].groupName = o.scaleLabel, z.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, z.value[o.scaleLabel].color = o.color, z.value[o.scaleLabel].scaleYLabels = o.autoScaling ? wl : ve, z.value[o.scaleLabel].zeroPosition = o.autoScaling ? Ne : re, z.value[o.scaleLabel].individualMax = o.autoScaling ? Be : le, z.value[o.scaleLabel].scaleLabel = o.scaleLabel, z.value[o.scaleLabel].id = o.id, z.value[o.scaleLabel].yOffset = W, z.value[o.scaleLabel].individualHeight = Y, z.value[o.scaleLabel].autoScaleYLabels = wl, z.value[o.scaleLabel].unique = Il.value.filter((R) => R.scaleLabel === o.scaleLabel).length === 1;
1477
+ const Tl = y.value.useIndividualScale ? o.autoScaling ? Ne : re : we.value, it = Math.max(Math.max(o.autoScaling ? Ne : ve.at(-1) ? ve.at(-1).y : 0, c.value.top), Tl);
1478
+ return {
1479
+ ...o,
1480
+ yOffset: W,
1481
+ autoScaleYLabels: wl,
1482
+ individualHeight: Y,
1483
+ scaleYLabels: o.autoScaling ? wl : ve,
1484
+ individualScale: o.autoScaling ? N : E,
1485
+ individualMax: o.autoScaling ? Be : le,
1486
+ zeroPosition: o.autoScaling ? Ne : re,
1487
+ curve: o.autoScaling ? K : kl,
1488
+ plots: o.autoScaling ? Me : Se,
1489
+ area: o.useArea ? y.value.useIndividualScale ? l.value.line.cutNullValues ? Ca(
1490
+ o.autoScaling ? Me : Se,
1491
+ it
1492
+ ) : za(
1493
+ o.autoScaling ? Me.filter((R) => R.value !== null) : Se.filter((R) => R.value !== null),
1494
+ it
1495
+ ) : l.value.line.cutNullValues ? Ca(Se, it) : za(Se.filter((R) => R.value !== null), it) : "",
1496
+ curveAreas: o.useArea ? wo(
1497
+ o.autoScaling ? l.value.line.cutNullValues ? Me : Me.filter((R) => R.value !== null) : l.value.line.cutNullValues ? Se : Se.filter((R) => R.value !== null),
1498
+ it,
1499
+ l.value.line.cutNullValues
1500
+ ) : [],
1501
+ straight: o.autoScaling ? B : ce,
1502
+ groupId: z.value[o.scaleLabel].groupId
1503
+ };
1504
+ });
1505
+ }), ll = k(() => {
1506
+ const t = Il.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), r = t.length, e = l.value.chart.grid.labels.yAxis.gap, u = y.value.isStacked, a = u ? e * (r - 1) : 0, s = c.value.height - a;
1507
+ return t.filter((o) => o.type === "plot").map((o) => {
1508
+ Vt(o);
1509
+ const P = z.value[o.scaleLabel].min, X = z.value[o.scaleLabel].max;
1510
+ o.absoluteValues.filter((K) => ![null, void 0].includes(K)).map((K) => (K - P) / (X - P));
1511
+ const G = {
1512
+ valueMin: P,
1513
+ valueMax: X
1514
+ }, I = {
1515
+ max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
1516
+ min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
1517
+ }, O = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, U = 1.0000001, T = Nl(I.min, I.max === I.min ? I.max * U : I.max, O), E = Nl(G.valueMin, G.valueMax === G.valueMin ? G.valueMax * U : G.valueMax, O), N = T.min >= 0 ? 0 : Math.abs(T.min), se = 0, ge = T.max + N, le = E.max + Math.abs(se), Be = o.stackIndex, tl = r - 1 - Be, Ul = u ? 1 - o.cumulatedStackRatio : 0, Te = u ? s * Ul + e * tl : 0, W = u ? s * o.stackRatio : c.value.height, Y = c.value.bottom - Te - W * N / ge, re = c.value.bottom - Te - W * se / le, Ne = o.series.map((K, ce) => {
1518
+ const B = y.value.useIndividualScale ? (o.absoluteValues[ce] + Math.abs(N)) / ge : zl(K);
1519
+ return {
1520
+ x: H(c.value.left + oe.value.plot / 2 + oe.value.plot * ce),
1521
+ y: H(c.value.bottom - Te - W * B),
1522
+ value: o.absoluteValues[ce],
1523
+ comment: o.comments && o.comments.slice(d.value.start, d.value.end)[ce] || ""
1524
+ };
1525
+ }), Se = o.absoluteValues.map((K) => E.min >= 0 ? (K - Math.abs(E.min)) / (E.max - Math.abs(E.min)) : (K + Math.abs(E.min)) / (E.max + Math.abs(E.min))), nt = o.series.map((K, ce) => ({
1526
+ x: H(c.value.left + oe.value.plot / 2 + oe.value.plot * ce),
1527
+ y: H(c.value.bottom - Te - (W * Se[ce] || 0)),
1528
+ value: o.absoluteValues[ce],
1529
+ comment: o.comments && o.comments.slice(d.value.start, d.value.end)[ce] || ""
1530
+ })), Me = T.ticks.map((K) => ({
1531
+ y: K >= 0 ? Y - W * (K / ge) : Y + W * Math.abs(K) / ge,
1532
+ value: K,
1533
+ prefix: o.prefix || l.value.chart.labels.prefix,
1534
+ suffix: o.suffix || l.value.chart.labels.suffix,
1535
+ datapoint: o
1536
+ })), kl = E.ticks.map((K) => {
1537
+ const ce = (K - E.min) / (E.max - E.min);
1538
+ return {
1539
+ y: K >= 0 ? re - W * ce : re + W * ce,
1540
+ value: K,
1541
+ prefix: o.prefix || l.value.chart.labels.prefix,
1542
+ suffix: o.suffix || l.value.chart.labels.suffix,
1543
+ datapoint: o
1544
+ };
1545
+ });
1546
+ return z.value[o.scaleLabel].name = o.name, z.value[o.scaleLabel].groupName = o.scaleLabel, z.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, z.value[o.scaleLabel].color = o.color, z.value[o.scaleLabel].scaleYLabels = o.autoScaling ? kl : Me, z.value[o.scaleLabel].zeroPosition = o.autoScaling ? re : Y, z.value[o.scaleLabel].individualMax = o.autoScaling ? le : ge, z.value[o.scaleLabel].scaleLabel = o.scaleLabel, z.value[o.scaleLabel].id = o.id, z.value[o.scaleLabel].yOffset = Te, z.value[o.scaleLabel].individualHeight = W, z.value[o.scaleLabel].autoScaleYLabels = kl, z.value[o.scaleLabel].unique = Il.value.filter((K) => K.scaleLabel === o.scaleLabel).length === 1, {
1547
+ ...o,
1548
+ yOffset: Te,
1549
+ autoScaleYLabels: kl,
1550
+ individualHeight: W,
1551
+ scaleYLabels: o.autoScaling ? kl : Me,
1552
+ individualScale: o.autoScaling ? E : T,
1553
+ individualMax: o.autoScaling ? le : ge,
1554
+ zeroPosition: o.autoScaling ? re : Y,
1555
+ plots: o.autoScaling ? nt : Ne,
1556
+ groupId: z.value[o.scaleLabel].groupId
1557
+ };
1558
+ });
1559
+ }), ot = k(() => {
1560
+ const t = Ge.value.map((s) => ({
1561
+ name: s.name,
1562
+ color: s.color,
1563
+ scale: s.individualScale,
1564
+ scaleYLabels: s.scaleYLabels,
1565
+ zero: s.zeroPosition,
1566
+ max: s.individualMax,
1567
+ scaleLabel: s.scaleLabel || "",
1568
+ id: s.id,
1569
+ yOffset: s.yOffset || 0,
1570
+ individualHeight: s.individualHeight || c.value.height,
1571
+ autoScaleYLabels: s.autoScaleYLabels
1572
+ })), r = yl.value.map((s) => ({
1573
+ name: s.name,
1574
+ color: s.color,
1575
+ scale: s.individualScale,
1576
+ scaleYLabels: s.scaleYLabels,
1577
+ zero: s.zeroPosition,
1578
+ max: s.individualMax,
1579
+ scaleLabel: s.scaleLabel || "",
1580
+ id: s.id,
1581
+ yOffset: s.yOffset || 0,
1582
+ individualHeight: s.individualHeight || c.value.height
1583
+ })), e = ll.value.map((s) => ({
1584
+ name: s.name,
1585
+ color: s.color,
1586
+ scale: s.individualScale,
1587
+ scaleYLabels: s.scaleYLabels,
1588
+ // FIX
1589
+ zero: s.zeroPosition,
1590
+ max: s.individualMax,
1591
+ scaleLabel: s.scaleLabel || "",
1592
+ id: s.id,
1593
+ yOffset: s.yOffset || 0,
1594
+ individualHeight: s.individualHeight || c.value.height
1595
+ })), u = y.value.useIndividualScale && !y.value.isStacked ? Object.values(z.value) : [...t, ...r, ...e], a = u.flatMap((s) => s).length;
1596
+ return u.flatMap((s, o) => {
1597
+ let P = 0;
1598
+ P = y.value.isStacked ? c.value.left : c.value.left / a * (o + 1);
1599
+ const X = y.value.useIndividualScale && !y.value.isStacked ? s.unique ? s.name : s.groupName : s.name;
1600
+ return {
1601
+ unique: s.unique,
1602
+ id: s.id,
1603
+ groupId: s.groupId,
1604
+ scaleLabel: s.scaleLabel,
1605
+ name: pe(
1606
+ l.value.chart.grid.labels.yAxis.serieNameFormatter,
1607
+ X,
1608
+ X,
1609
+ s
1610
+ ),
1611
+ color: y.value.useIndividualScale && !y.value.isStacked ? s.unique ? s.color : s.groupColor : s.color,
1612
+ scale: s.scale,
1613
+ yOffset: s.yOffset,
1614
+ individualHeight: s.individualHeight,
1615
+ x: P,
1616
+ yLabels: s.scaleYLabels || s.scale.ticks.map((G) => ({
1617
+ y: G >= 0 ? s.zero - s.individualHeight * (G / s.max) : s.zero + s.individualHeight * Math.abs(G) / s.max,
1618
+ value: G
1619
+ }))
1620
+ };
1621
+ });
1622
+ }), ga = k(() => ({
1623
+ datapoint: at.value,
1624
+ seriesIndex: w.value,
1625
+ series: el.value,
1626
+ bars: yl.value,
1627
+ lines: Ge.value,
1628
+ plots: ll.value,
1629
+ config: l.value
1630
+ })), ao = k(() => {
1631
+ let t = "", r = at.value.map((a) => a.value).filter((a) => Lt(a) && a !== null).reduce((a, s) => Math.abs(a) + Math.abs(s), 0);
1632
+ const e = q.value[w.value], u = l.value.chart.tooltip.customFormat;
1633
+ return So(u) && $o(() => u({
1634
+ absoluteIndex: w.value + d.value.start,
1635
+ seriesIndex: w.value,
1636
+ datapoint: at.value,
1637
+ series: el.value,
1638
+ bars: yl.value,
1639
+ lines: Ge.value,
1640
+ plots: ll.value,
1641
+ config: l.value
1642
+ })) ? u({
1643
+ absoluteIndex: w.value + d.value.start,
1644
+ seriesIndex: w.value,
1645
+ datapoint: at.value,
1646
+ series: el.value,
1647
+ bars: yl.value,
1648
+ lines: Ge.value,
1649
+ plots: ll.value,
1650
+ config: l.value
1651
+ }) : (e && e.text && l.value.chart.tooltip.showTimeLabel && (t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${e.text}</div>`), at.value.forEach((a) => {
1652
+ if (Lt(a.value)) {
1653
+ let s = "", o = "";
1654
+ switch (gl.value[a.type]) {
1655
+ case "bar":
1656
+ s = `<svg viewBox="0 0 40 40" height="14" width="14">${Pe.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${a.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${Pe.pattern ? `url(#pattern_${Q.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
1657
+ break;
1658
+ case "line":
1659
+ !a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${al({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${al({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${al({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${al({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${al({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${Ia({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), s = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
1660
+ break;
1661
+ case "plot":
1662
+ if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
1663
+ s = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" /></svg>`;
1664
+ break;
1665
+ }
1666
+ if (a.shape === "star") {
1667
+ s = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${Ia({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
1668
+ break;
1669
+ }
1670
+ if (a.shape === "triangle") {
1671
+ s = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${al({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1672
+ break;
1673
+ }
1674
+ if (a.shape === "square") {
1675
+ s = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${al({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1676
+ break;
1677
+ }
1678
+ if (a.shape === "diamond") {
1679
+ s = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${al({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1680
+ break;
1681
+ }
1682
+ if (a.shape === "pentagon") {
1683
+ s = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${al({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1684
+ break;
1685
+ }
1686
+ if (a.shape === "hexagon") {
1687
+ s = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${al({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1688
+ break;
1689
+ }
1690
+ }
1691
+ t += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${s}</div> ${a.name}: <b>${l.value.chart.tooltip.showValue ? pe(
1692
+ a.type === "line" ? l.value.line.labels.formatter : a.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1693
+ a.value,
1694
+ Fe({
1695
+ p: a.prefix,
1696
+ v: a.value,
1697
+ s: a.suffix,
1698
+ r: l.value.chart.tooltip.roundingValue
1699
+ }),
1700
+ { datapoint: a }
1701
+ ) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${Fe({
1702
+ v: H(Math.abs(a.value) / r * 100),
1703
+ s: "%",
1704
+ r: l.value.chart.tooltip.roundingPercentage
1705
+ })})` : ""}</div>`, l.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(d.value.start, d.value.end)[w.value] && (t += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.comments.slice(d.value.start, d.value.end)[w.value]}</div>`);
1706
+ }
1707
+ }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${t}</div>`);
1708
+ }), ma = k(() => {
1709
+ if (sl.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
1710
+ const t = Ee.value.map((e) => ({
1711
+ label: e.name,
1712
+ color: e.color,
1713
+ type: e.type
1714
+ })), r = [];
1715
+ return q.value.forEach((e, u) => {
1716
+ const a = [e.text];
1717
+ Ee.value.forEach((s) => {
1718
+ a.push(Ie(s.absoluteValues[u]) ? Number(s.absoluteValues[u].toFixed(l.value.table.rounding)) : "");
1719
+ }), r.push(a);
1720
+ }), { head: t, body: r };
1721
+ }), $t = k(() => {
1722
+ const t = l.value.table.showSum;
1723
+ let r = [""].concat(Ee.value.map((s) => s.name));
1724
+ t && (r = r.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>'));
1725
+ let e = [];
1726
+ for (let s = 0; s < M.value; s += 1) {
1727
+ const o = Ee.value.map((P) => P.absoluteValues[s] ?? 0).reduce((P, X) => P + X, 0);
1728
+ e.push(
1729
+ [
1730
+ q.value[s].text ?? "-"
1731
+ ].concat(Ee.value.map(
1732
+ (P) => pe(
1733
+ P.type === "line" ? l.value.line.labels.formatter : P.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1734
+ P.absoluteValues[s] ?? 0,
1735
+ Fe({
1736
+ p: P.prefix || l.value.chart.labels.prefix,
1737
+ v: P.absoluteValues[s] ?? 0,
1738
+ s: P.suffix || l.value.chart.labels.suffix,
1739
+ r: l.value.table.rounding
1740
+ })
1741
+ )
1742
+ )).concat(t ? (o ?? 0).toFixed(l.value.table.rounding) : [])
1743
+ );
1744
+ }
1745
+ const u = {
1746
+ th: {
1747
+ backgroundColor: l.value.table.th.backgroundColor,
1748
+ color: l.value.table.th.color,
1749
+ outline: l.value.table.th.outline
1750
+ },
1751
+ td: {
1752
+ backgroundColor: l.value.table.td.backgroundColor,
1753
+ color: l.value.table.td.color,
1754
+ outline: l.value.table.td.outline
1755
+ },
1756
+ breakpoint: l.value.table.responsiveBreakpoint
1757
+ }, a = [l.value.table.columnNames.period].concat(Ee.value.map((s) => s.name)).concat(l.value.table.columnNames.total);
1758
+ return { head: r, body: e, config: u, colNames: a };
1759
+ });
1760
+ function xa(t = null) {
1761
+ const r = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...ma.value.head.map((o) => o.label)], u = ma.value.body, a = r.concat([e]).concat(u), s = Co(a);
1762
+ t ? t(s) : zo({ csvContent: s, title: l.value.chart.title.text || "vue-ui-xy" });
1763
+ }
1764
+ function ba(t, r = null) {
1765
+ El.value = t;
1766
+ const e = Ee.value.map((u) => ({
1767
+ name: u.name,
1768
+ value: [null, void 0, NaN].includes(u.absoluteValues[r]) ? null : u.absoluteValues[r],
1769
+ color: u.color,
1770
+ type: u.type
1771
+ }));
1772
+ t ? (w.value = r, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: r + d.value.start })) : (w.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: r + d.value.start }));
1773
+ }
1774
+ function pa() {
1775
+ y.value.showTable = !y.value.showTable;
1776
+ }
1777
+ function ya() {
1778
+ y.value.dataLabels.show = !y.value.dataLabels.show;
1779
+ }
1780
+ function ka() {
1781
+ y.value.showTooltip = !y.value.showTooltip;
1782
+ }
1783
+ function wa(t) {
1784
+ nl.value = t, vt.value += 1;
1785
+ }
1786
+ function Sa() {
1787
+ if (!l.value.responsiveProportionalSizing) {
1788
+ S.value.dataLabels = l.value.chart.grid.labels.fontSize, S.value.yAxis = l.value.chart.grid.labels.axis.fontSize, S.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, S.value.plotLabels = l.value.chart.labels.fontSize, Le.value.plot = l.value.plot.radius, Le.value.line = l.value.line.radius;
1789
+ return;
1790
+ }
1791
+ S.value.dataLabels = Zl({
1792
+ relator: xe.value,
1793
+ adjuster: 400,
1794
+ source: l.value.chart.grid.labels.fontSize,
1795
+ threshold: 10,
1796
+ fallback: 10
1797
+ }), S.value.yAxis = Zl({
1798
+ relator: ne.value,
1799
+ adjuster: 1e3,
1800
+ source: l.value.chart.grid.labels.axis.fontSize,
1801
+ threshold: 10,
1802
+ fallback: 10
1803
+ }), S.value.xAxis = Zl({
1804
+ relator: ne.value,
1805
+ adjuster: 1e3,
1806
+ source: l.value.chart.grid.labels.xAxisLabels.fontSize,
1807
+ threshold: 10,
1808
+ fallback: 10
1809
+ }), S.value.plotLabels = Zl({
1810
+ relator: ne.value,
1811
+ adjuster: 800,
1812
+ source: l.value.chart.labels.fontSize,
1813
+ threshold: 10,
1814
+ fallback: 10
1815
+ }), Le.value.plot = Zl({
1816
+ relator: ne.value,
1817
+ adjuster: 800,
1818
+ source: l.value.plot.radius,
1819
+ threshold: 1,
1820
+ fallback: 1
1821
+ }), Le.value.line = Zl({
1822
+ relator: ne.value,
1823
+ adjuster: 800,
1824
+ source: l.value.line.radius,
1825
+ threshold: 1,
1826
+ fallback: 1
1827
+ });
1828
+ }
1829
+ const ut = k(() => !!l.value.debug);
1830
+ function Et() {
1831
+ Ta(h.dataset) ? (Ft({
1832
+ componentName: "VueUiXy",
1833
+ type: "dataset",
1834
+ debug: ut.value
1835
+ }), x.value = !0) : h.dataset.forEach((r, e) => {
1836
+ [null, void 0].includes(r.name) && (Ft({
1837
+ componentName: "VueUiXy",
1838
+ type: "datasetSerieAttribute",
1839
+ property: "name (string)",
1840
+ index: e,
1841
+ debug: ut.value
1842
+ }), x.value = !0);
1843
+ }), ut.value && h.dataset.forEach((r) => {
1844
+ r.series.forEach((e, u) => {
1845
+ Lt(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1846
+ -----> The serie '${r.name}' contains the value '${e}' at index ${u}.
1847
+ '${e}' was converted to null to allow the chart to display.`);
1848
+ });
1849
+ }), Ta(h.dataset) || (x.value = l.value.loading), De.value = l.value.chart.userOptions.showOnChartHover, Bl.value = l.value.chart.userOptions.keepStateOnChartLeave, Fl.value = !l.value.chart.userOptions.showOnChartHover, je();
1850
+ const t = 12;
1851
+ if (l.value.responsive) {
1852
+ const e = ue.value.parentNode;
1853
+ $e.value && ($e.value.unobserve(fe.value), $e.value.disconnect());
1854
+ const { height: u, width: a } = e.getBoundingClientRect();
1855
+ let s = null, o = 0;
1856
+ l.value.chart.title.show && ul.value && (s = ul.value, o = s.getBoundingClientRect().height);
1857
+ let P = null, X = 0;
1858
+ l.value.chart.zoom.show && f.value > 6 && Cl.value && Ae.value && Ae.value.$el && (P = Ae.value.$el, X = P.getBoundingClientRect().height);
1859
+ let G = null, I = 0;
1860
+ l.value.chart.legend.show && dl.value && (G = dl.value, I = G.getBoundingClientRect().height);
1861
+ let O = 0;
1862
+ Ml.value && (O = Ml.value.getBoundingClientRect().height);
1863
+ let U = 0;
1864
+ Al.value && (U = Al.value.getBoundingClientRect().height), xe.value = u - o - I - X - O - U - t, ne.value = a, fl.value = `0 0 ${ne.value < 0 ? 10 : ne.value} ${xe.value < 0 ? 10 : xe.value}`, Sa();
1865
+ const T = new ResizeObserver((E) => {
1866
+ for (const N of E)
1867
+ l.value.chart.title.show && ul.value ? o = ul.value.getBoundingClientRect().height : o = 0, Ae.value && Ae.value.$el ? X = Ae.value.$el.getBoundingClientRect().height : X = 0, dl.value ? I = dl.value.getBoundingClientRect().height : I = 0, Ml.value ? O = Ml.value.getBoundingClientRect().height : O = 0, Al.value ? U = Al.value.getBoundingClientRect().height : U = 0, requestAnimationFrame(() => {
1868
+ xe.value = N.contentRect.height - o - I - X - O - U - t, ne.value = N.contentBoxSize[0].inlineSize, fl.value = `0 0 ${ne.value < 0 ? 10 : ne.value} ${xe.value < 0 ? 10 : xe.value}`, Sa();
1869
+ });
1870
+ });
1871
+ $e.value = T, fe.value = e, T.observe(e);
1872
+ } else
1873
+ xe.value = l.value.chart.height, ne.value = l.value.chart.width, S.value.dataLabels = l.value.chart.grid.labels.fontSize, S.value.yAxis = l.value.chart.grid.labels.axis.fontSize, S.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, S.value.plotLabels = l.value.chart.labels.fontSize, Le.value.plot = l.value.plot.radius, Le.value.line = l.value.line.radius, fl.value = `0 0 ${ne.value} ${xe.value}`;
1874
+ }
1875
+ rt(() => {
1876
+ Et(), pt(), document.addEventListener("mousemove", (t) => {
1877
+ Ql.value = {
1878
+ x: t.clientX,
1879
+ y: t.clientY
1880
+ };
1881
+ }), document.addEventListener("scroll", Kt);
1882
+ }), ct(() => {
1883
+ document.removeEventListener("scroll", Kt), $e.value && ($e.value.unobserve(fe.value), $e.value.disconnect());
1884
+ }), Ro({
1885
+ timeLabelsEls: Qe,
1886
+ timeLabels: q,
1887
+ slicer: d,
1888
+ configRef: l,
1889
+ rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
1890
+ autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate", "enable"],
1891
+ isAutoSize: Ra,
1892
+ height: xe,
1893
+ width: ne,
1894
+ rotation: l.value.chart.grid.labels.xAxisLabels.autoRotate.angle
1895
+ }), ol(() => h.dataset, (t) => {
1896
+ Array.isArray(t) && t.length > 0 && (x.value = !1), f.value = Math.max(...F.value.map((r) => Ze({
1897
+ data: r.series,
1898
+ threshold: l.value.downsample.threshold
1899
+ }).length)), d.value = {
1900
+ start: 0,
1901
+ end: f.value
1902
+ }, ye.value += 1, He.value += 1, Xl();
1903
+ }, { deep: !0 }), ol(() => h.config, (t) => {
1904
+ ie.value || (l.value = Dl()), Et(), jl.value += 1, dt.value += 1, je(), Xl();
1905
+ }, { deep: !0 });
1906
+ const Bt = p(!1);
1907
+ function $a() {
1908
+ const t = ue.value?.parentNode;
1909
+ if (!t) {
1910
+ Bt.value = !1;
1911
+ return;
1912
+ }
1913
+ const r = t.getBoundingClientRect();
1914
+ Bt.value = r.width > 2 && r.height > 2;
1915
+ }
1916
+ return rt(() => {
1917
+ $a();
1918
+ const t = new ResizeObserver(() => {
1919
+ $a(), Bt.value && (Et(), Xl(), pt());
1920
+ });
1921
+ ue.value?.parentNode && t.observe(ue.value.parentNode);
1922
+ }), ol(l, () => {
1923
+ je();
1924
+ }, { immediate: !0 }), Tt({
1925
+ getData: Za,
1926
+ getImage: qa,
1927
+ generatePdf: Xt,
1928
+ generateImage: Gt,
1929
+ generateCsv: xa,
1930
+ toggleStack: la,
1931
+ toggleTable: pa,
1932
+ toggleLabels: ya,
1933
+ toggleTooltip: ka,
1934
+ toggleAnnotator: Ht,
1935
+ toggleFullscreen: wa
1936
+ }), (t, r) => (n(), i("div", {
1937
+ id: `vue-ui-xy_${Q.value}`,
1938
+ class: Oe(`vue-ui-xy ${nl.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1939
+ ref_key: "chart",
1940
+ ref: ue,
1941
+ style: $(`background:${l.value.chart.backgroundColor}; color:${l.value.chart.color};width:100%;font-family:${l.value.chart.fontFamily};${l.value.responsive ? "height: 100%" : ""}`),
1942
+ onMouseenter: r[10] || (r[10] = () => Qt(!0)),
1943
+ onMouseleave: r[11] || (r[11] = () => Qt(!1))
1944
+ }, [
1945
+ l.value.chart.userOptions.buttons.annotator && ke.value ? (n(), Ue(v(vl), {
1946
+ key: 0,
1947
+ svgRef: ke.value,
1948
+ backgroundColor: l.value.chart.backgroundColor,
1949
+ color: l.value.chart.color,
1950
+ active: ml.value,
1951
+ onClose: Ht
1952
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
1953
+ Ja.value ? (n(), i("div", {
1954
+ key: 1,
1955
+ ref_key: "noTitle",
1956
+ ref: Al,
1957
+ class: "vue-data-ui-no-title-space",
1958
+ style: "height:36px; width: 100%; background:transparent"
1959
+ }, null, 512)) : g("", !0),
1960
+ l.value.chart.title.show ? (n(), i("div", {
1961
+ key: 2,
1962
+ ref_key: "chartTitle",
1963
+ ref: ul,
1964
+ class: "vue-ui-xy-title",
1965
+ style: $(`font-family:${l.value.chart.fontFamily}`)
1966
+ }, [
1967
+ (n(), Ue(Ho, {
1968
+ key: `title_${jl.value}`,
1969
+ config: {
1970
+ title: {
1971
+ cy: "xy-div-title",
1972
+ ...l.value.chart.title
1973
+ },
1974
+ subtitle: {
1975
+ cy: "xy-div-subtitle",
1976
+ ...l.value.chart.title.subtitle
1977
+ }
1978
+ }
1979
+ }, null, 8, ["config"]))
1980
+ ], 4)) : g("", !0),
1981
+ l.value.chart.userOptions.show && (Bl.value || Fl.value) ? (n(), Ue(v(he), {
1982
+ ref: "defails",
1983
+ key: `user_options_${vt.value}`,
1984
+ backgroundColor: l.value.chart.backgroundColor,
1985
+ color: l.value.chart.color,
1986
+ isPrinting: v(et),
1987
+ isImaging: v(ft),
1988
+ uid: Q.value,
1989
+ hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
1990
+ hasPdf: l.value.chart.userOptions.buttons.pdf,
1991
+ hasXls: l.value.chart.userOptions.buttons.csv,
1992
+ hasImg: l.value.chart.userOptions.buttons.img,
1993
+ hasLabel: l.value.chart.userOptions.buttons.labels,
1994
+ hasTable: l.value.chart.userOptions.buttons.table,
1995
+ hasStack: A.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
1996
+ hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
1997
+ isStacked: y.value.isStacked,
1998
+ isFullscreen: nl.value,
1999
+ chartElement: t.$refs.chart,
2000
+ position: l.value.chart.userOptions.position,
2001
+ isTooltip: y.value.showTooltip,
2002
+ titles: { ...l.value.chart.userOptions.buttonTitles },
2003
+ hasAnnotator: l.value.chart.userOptions.buttons.annotator,
2004
+ isAnnotation: ml.value,
2005
+ callbacks: l.value.chart.userOptions.callbacks,
2006
+ printScale: l.value.chart.userOptions.print.scale,
2007
+ onToggleFullscreen: wa,
2008
+ onGeneratePdf: v(Xt),
2009
+ onGenerateCsv: xa,
2010
+ onGenerateImage: v(Gt),
2011
+ onToggleTable: pa,
2012
+ onToggleLabels: ya,
2013
+ onToggleStack: la,
2014
+ onToggleTooltip: ka,
2015
+ onToggleAnnotator: Ht,
2016
+ style: $({
2017
+ visibility: Bl.value ? Fl.value ? "visible" : "hidden" : "visible"
2018
+ })
2019
+ }, vo({ _: 2 }, [
2020
+ t.$slots.menuIcon ? {
2021
+ name: "menuIcon",
2022
+ fn: me(({ isOpen: e, color: u }) => [
2023
+ J(t.$slots, "menuIcon", rl($l({ isOpen: e, color: u })), void 0, !0)
2024
+ ]),
2025
+ key: "0"
2026
+ } : void 0,
2027
+ t.$slots.optionTooltip ? {
2028
+ name: "optionTooltip",
2029
+ fn: me(() => [
2030
+ J(t.$slots, "optionTooltip", {}, void 0, !0)
2031
+ ]),
2032
+ key: "1"
2033
+ } : void 0,
2034
+ t.$slots.optionPdf ? {
2035
+ name: "optionPdf",
2036
+ fn: me(() => [
2037
+ J(t.$slots, "optionPdf", {}, void 0, !0)
2038
+ ]),
2039
+ key: "2"
2040
+ } : void 0,
2041
+ t.$slots.optionCsv ? {
2042
+ name: "optionCsv",
2043
+ fn: me(() => [
2044
+ J(t.$slots, "optionCsv", {}, void 0, !0)
2045
+ ]),
2046
+ key: "3"
2047
+ } : void 0,
2048
+ t.$slots.optionImg ? {
2049
+ name: "optionImg",
2050
+ fn: me(() => [
2051
+ J(t.$slots, "optionImg", {}, void 0, !0)
2052
+ ]),
2053
+ key: "4"
2054
+ } : void 0,
2055
+ t.$slots.optionTable ? {
2056
+ name: "optionTable",
2057
+ fn: me(() => [
2058
+ J(t.$slots, "optionTable", {}, void 0, !0)
2059
+ ]),
2060
+ key: "5"
2061
+ } : void 0,
2062
+ t.$slots.optionLabels ? {
2063
+ name: "optionLabels",
2064
+ fn: me(() => [
2065
+ J(t.$slots, "optionLabels", {}, void 0, !0)
2066
+ ]),
2067
+ key: "6"
2068
+ } : void 0,
2069
+ t.$slots.optionStack ? {
2070
+ name: "optionStack",
2071
+ fn: me(() => [
2072
+ J(t.$slots, "optionStack", {}, void 0, !0)
2073
+ ]),
2074
+ key: "7"
2075
+ } : void 0,
2076
+ t.$slots.optionFullscreen ? {
2077
+ name: "optionFullscreen",
2078
+ fn: me(({ toggleFullscreen: e, isFullscreen: u }) => [
2079
+ J(t.$slots, "optionFullscreen", rl($l({ toggleFullscreen: e, isFullscreen: u })), void 0, !0)
2080
+ ]),
2081
+ key: "8"
2082
+ } : void 0,
2083
+ t.$slots.optionAnnotator ? {
2084
+ name: "optionAnnotator",
2085
+ fn: me(({ toggleAnnotator: e, isAnnotator: u }) => [
2086
+ J(t.$slots, "optionAnnotator", rl($l({ toggleAnnotator: e, isAnnotator: u })), void 0, !0)
2087
+ ]),
2088
+ key: "9"
2089
+ } : void 0
2090
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
2091
+ (n(), i("svg", {
2092
+ ref_key: "svgRef",
2093
+ ref: ke,
2094
+ xmlns: "http://www.w3.org/2000/svg",
2095
+ class: Oe([{ "vue-data-ui-fullscreen--on": nl.value, "vue-data-ui-fulscreen--off": !nl.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
2096
+ width: "100%",
2097
+ viewBox: fl.value,
2098
+ style: $({
2099
+ background: "transparent",
2100
+ color: l.value.chart.color,
2101
+ fontFamily: l.value.chart.fontFamily
2102
+ }),
2103
+ "aria-label": Ka.value,
2104
+ role: "img",
2105
+ "aria-live": "polite",
2106
+ preserveAspectRatio: "xMidYMid",
2107
+ onMousemove: Xa,
2108
+ onMouseleave: sa,
2109
+ onClick: Ga
2110
+ }, [
2111
+ b("g", {
2112
+ ref_key: "G",
2113
+ ref: Je,
2114
+ class: "vue-data-ui-g"
2115
+ }, [
2116
+ ql(v(cl)),
2117
+ t.$slots["chart-background"] ? (n(), i("foreignObject", {
2118
+ key: 0,
2119
+ x: c.value.left + ee.value < 0 ? 0 : c.value.left + ee.value,
2120
+ y: c.value.top,
2121
+ width: c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / M.value) < 0 ? 0 : c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / M.value),
2122
+ height: c.value.height < 0 ? 0 : c.value.height,
2123
+ style: {
2124
+ pointerEvents: "none"
2125
+ }
2126
+ }, [
2127
+ J(t.$slots, "chart-background", {}, void 0, !0)
2128
+ ], 8, ru)) : g("", !0),
2129
+ M.value > 0 ? (n(), i("g", cu, [
2130
+ b("g", vu, [
2131
+ l.value.chart.grid.labels.xAxis.showBaseline ? (n(), i("line", {
2132
+ key: 0,
2133
+ stroke: l.value.chart.grid.stroke,
2134
+ "stroke-width": "1",
2135
+ x1: c.value.left + ee.value,
2136
+ x2: c.value.right - ee.value,
2137
+ y1: v(D)(c.value.bottom),
2138
+ y2: v(D)(c.value.bottom),
2139
+ "stroke-linecap": "round",
2140
+ style: { animation: "none !important" }
2141
+ }, null, 8, du)) : g("", !0),
2142
+ y.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (n(!0), i(m, { key: 2 }, _(ot.value, (e) => (n(), i("g", null, [
2143
+ e.id === L.value && e.yLabels.length ? (n(!0), i(m, { key: 0 }, _(e.yLabels, (u) => (n(), i("line", {
2144
+ x1: c.value.left + ee.value,
2145
+ x2: c.value.right - ee.value,
2146
+ y1: v(D)(u.y),
2147
+ y2: v(D)(u.y),
2148
+ stroke: e.color,
2149
+ "stroke-width": 0.5,
2150
+ "stroke-linecap": "round",
2151
+ style: { animation: "none !important" }
2152
+ }, null, 8, mu))), 256)) : e.yLabels.length ? (n(!0), i(m, { key: 1 }, _(e.yLabels, (u) => (n(), i("line", {
2153
+ x1: c.value.left + ee.value,
2154
+ x2: c.value.right - ee.value,
2155
+ y1: v(D)(u.y),
2156
+ y2: v(D)(u.y),
2157
+ stroke: l.value.chart.grid.stroke,
2158
+ "stroke-width": 0.5,
2159
+ "stroke-linecap": "round",
2160
+ style: { animation: "none !important" }
2161
+ }, null, 8, xu))), 256)) : g("", !0)
2162
+ ]))), 256)) : g("", !0) : (n(), i(m, { key: 1 }, [
2163
+ l.value.chart.grid.labels.yAxis.showBaseline ? (n(), i("line", {
2164
+ key: 0,
2165
+ stroke: l.value.chart.grid.stroke,
2166
+ "stroke-width": "1",
2167
+ x1: c.value.left + ee.value,
2168
+ x2: c.value.left + ee.value,
2169
+ y1: v(D)(c.value.top),
2170
+ y2: v(D)(c.value.bottom),
2171
+ "stroke-linecap": "round",
2172
+ style: { animation: "none !important" }
2173
+ }, null, 8, hu)) : g("", !0),
2174
+ l.value.chart.grid.showHorizontalLines ? (n(), i("g", fu, [
2175
+ (n(!0), i(m, null, _(da.value, (e) => (n(), i("line", {
2176
+ x1: c.value.left + ee.value,
2177
+ x2: c.value.right,
2178
+ y1: v(D)(e.y),
2179
+ y2: v(D)(e.y),
2180
+ stroke: l.value.chart.grid.stroke,
2181
+ "stroke-width": 0.5,
2182
+ "stroke-linecap": "round",
2183
+ style: { animation: "none !important" }
2184
+ }, null, 8, gu))), 256))
2185
+ ])) : g("", !0)
2186
+ ], 64)),
2187
+ l.value.chart.grid.showVerticalLines ? (n(), i("g", bu, [
2188
+ b("path", {
2189
+ d: Ea.value,
2190
+ "stroke-width": 0.5,
2191
+ stroke: l.value.chart.grid.stroke,
2192
+ "stroke-linecap": "round",
2193
+ style: { animation: "none !important" }
2194
+ }, null, 8, pu)
2195
+ ])) : g("", !0),
2196
+ l.value.chart.grid.labels.xAxisLabels.show ? (n(), i("g", yu, [
2197
+ b("path", {
2198
+ d: Ba.value,
2199
+ stroke: l.value.chart.grid.stroke,
2200
+ "stroke-width": 1,
2201
+ "stroke-linecap": "round",
2202
+ style: { animation: "none !important" }
2203
+ }, null, 8, ku)
2204
+ ])) : g("", !0)
2205
+ ]),
2206
+ (n(!0), i(m, null, _(yl.value, (e, u) => (n(), i("defs", {
2207
+ key: `def_rect_${u}`
2208
+ }, [
2209
+ b("linearGradient", {
2210
+ id: `rectGradient_pos_${u}_${Q.value}`,
2211
+ x2: "0%",
2212
+ y2: "100%"
2213
+ }, [
2214
+ b("stop", {
2215
+ offset: "0%",
2216
+ "stop-color": e.color
2217
+ }, null, 8, Su),
2218
+ b("stop", {
2219
+ offset: "62%",
2220
+ "stop-color": `${v(Ol)(e.color, 0.02)}`
2221
+ }, null, 8, $u),
2222
+ b("stop", {
2223
+ offset: "100%",
2224
+ "stop-color": `${v(Ol)(e.color, 0.05)}`
2225
+ }, null, 8, _u)
2226
+ ], 8, wu),
2227
+ b("linearGradient", {
2228
+ id: `rectGradient_neg_${u}_${Q.value}`,
2229
+ x2: "0%",
2230
+ y2: "100%"
2231
+ }, [
2232
+ b("stop", {
2233
+ offset: "0%",
2234
+ "stop-color": `${v(Ol)(e.color, 0.05)}`
2235
+ }, null, 8, Mu),
2236
+ b("stop", {
2237
+ offset: "38%",
2238
+ "stop-color": `${v(Ol)(e.color, 0.02)}`
2239
+ }, null, 8, Au),
2240
+ b("stop", {
2241
+ offset: "100%",
2242
+ "stop-color": e.color
2243
+ }, null, 8, Cu)
2244
+ ], 8, Lu)
2245
+ ]))), 128)),
2246
+ (n(!0), i(m, null, _(ll.value, (e, u) => (n(), i("defs", {
2247
+ key: `def_plot_${u}`
2248
+ }, [
2249
+ b("radialGradient", {
2250
+ id: `plotGradient_${u}_${Q.value}`,
2251
+ cx: "50%",
2252
+ cy: "50%",
2253
+ r: "50%",
2254
+ fx: "50%",
2255
+ fy: "50%"
2256
+ }, [
2257
+ b("stop", {
2258
+ offset: "0%",
2259
+ "stop-color": `${v(Ol)(e.color, 0.05)}`
2260
+ }, null, 8, Iu),
2261
+ b("stop", {
2262
+ offset: "100%",
2263
+ "stop-color": e.color
2264
+ }, null, 8, Tu)
2265
+ ], 8, zu)
2266
+ ]))), 128)),
2267
+ (n(!0), i(m, null, _(Ge.value, (e, u) => (n(), i("defs", {
2268
+ key: `def_line_${u}`
2269
+ }, [
2270
+ b("radialGradient", {
2271
+ id: `lineGradient_${u}_${Q.value}`,
2272
+ cx: "50%",
2273
+ cy: "50%",
2274
+ r: "50%",
2275
+ fx: "50%",
2276
+ fy: "50%"
2277
+ }, [
2278
+ b("stop", {
2279
+ offset: "0%",
2280
+ "stop-color": `${v(Ol)(e.color, 0.05)}`
2281
+ }, null, 8, Ou),
2282
+ b("stop", {
2283
+ offset: "100%",
2284
+ "stop-color": e.color
2285
+ }, null, 8, Ru)
2286
+ ], 8, Nu),
2287
+ b("linearGradient", {
2288
+ id: `areaGradient_${u}_${Q.value}`,
2289
+ x1: "0%",
2290
+ x2: "100%",
2291
+ y1: "0%",
2292
+ y2: "0%"
2293
+ }, [
2294
+ b("stop", {
2295
+ offset: "0%",
2296
+ "stop-color": `${v(qe)(v(Ol)(e.color, 0.03), l.value.line.area.opacity)}`
2297
+ }, null, 8, Hu),
2298
+ b("stop", {
2299
+ offset: "100%",
2300
+ "stop-color": `${v(qe)(e.color, l.value.line.area.opacity)}`
2301
+ }, null, 8, Vu)
2302
+ ], 8, Pu)
2303
+ ]))), 128)),
2304
+ (n(!0), i(m, null, _(Qa.value, (e) => (n(), i("g", null, [
2305
+ e.show ? (n(), i(m, { key: 0 }, [
2306
+ (n(!0), i(m, null, _(e.span, (u, a) => (n(), i("g", null, [
2307
+ b("rect", {
2308
+ style: $({
2309
+ transition: "none",
2310
+ opacity: e.from + a >= d.value.start && e.from + a <= d.value.end - 1 ? 1 : 0
2311
+ }),
2312
+ x: c.value.left + c.value.width / M.value * (e.from + a - d.value.start),
2313
+ y: c.value.top,
2314
+ height: c.value.height < 0 ? 10 : c.value.height,
2315
+ width: c.value.width / M.value < 0 ? 1e-5 : c.value.width / M.value,
2316
+ fill: v(qe)(e.color, e.opacity)
2317
+ }, null, 12, Eu)
2318
+ ]))), 256)),
2319
+ (n(!0), i(m, null, _(e.span, (u, a) => (n(), i("g", null, [
2320
+ e.caption.text && a === 0 ? (n(), i("foreignObject", {
2321
+ key: 0,
2322
+ x: c.value.left + c.value.width / M.value * (e.from + a - d.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / M.value * e.span / 2),
2323
+ y: c.value.top + e.caption.offsetY,
2324
+ style: $({
2325
+ overflow: "visible",
2326
+ opacity: e.to >= d.value.start && e.from < d.value.end ? 1 : 0
2327
+ }),
2328
+ height: "1",
2329
+ width: e.caption.width === "auto" ? c.value.width / M.value * e.span : e.caption.width
2330
+ }, [
2331
+ b("div", {
2332
+ style: $(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`)
2333
+ }, te(e.caption.text), 5)
2334
+ ], 12, Bu)) : g("", !0)
2335
+ ]))), 256))
2336
+ ], 64)) : g("", !0)
2337
+ ]))), 256)),
2338
+ Jt.value ? (n(), i("g", Fu, [
2339
+ (n(!0), i(m, null, _(M.value, (e, u) => (n(), i("g", {
2340
+ key: `tooltip_trap_highlighter_${u}`
2341
+ }, [
2342
+ b("rect", {
2343
+ x: c.value.left + c.value.width / M.value * u,
2344
+ y: c.value.top,
2345
+ height: c.value.height < 0 ? 10 : c.value.height,
2346
+ width: c.value.width / M.value < 0 ? 1e-5 : c.value.width / M.value,
2347
+ fill: [C.value, w.value, Ce.value].includes(u) ? v(qe)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent",
2348
+ style: { transition: "none !important", animation: "none !important" }
2349
+ }, null, 8, Wu)
2350
+ ]))), 128))
2351
+ ])) : g("", !0),
2352
+ yl.value.length ? (n(!0), i(m, { key: 1 }, _(yl.value, (e, u) => (n(), i("g", {
2353
+ key: `serie_bar_${u}`,
2354
+ class: Oe(`serie_bar_${u}`),
2355
+ style: $(`opacity:${L.value ? L.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2356
+ }, [
2357
+ (n(!0), i(m, null, _(e.plots, (a, s) => (n(), i("g", {
2358
+ key: `bar_plot_${u}_${s}`
2359
+ }, [
2360
+ Ie(a.value) ? (n(), i("rect", {
2361
+ key: 0,
2362
+ x: yt(a) + St.value / 2,
2363
+ y: y.value.useIndividualScale ? ia(a) : na(a),
2364
+ height: y.value.useIndividualScale ? Math.abs(ua(a)) : Math.abs(oa(a)),
2365
+ width: wt.value - St.value,
2366
+ rx: l.value.bar.borderRadius,
2367
+ fill: l.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${u}_${Q.value})` : `url(#rectGradient_neg_${u}_${Q.value})` : e.color,
2368
+ stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
2369
+ "stroke-width": l.value.bar.border.strokeWidth,
2370
+ style: $({ transition: v(ie) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out` })
2371
+ }, null, 12, Yu)) : g("", !0),
2372
+ Ie(a.value) && t.$slots.pattern ? (n(), i("rect", {
2373
+ key: 1,
2374
+ x: yt(a) - St.value / 2,
2375
+ y: y.value.useIndividualScale ? ia(a) : na(a),
2376
+ height: y.value.useIndividualScale ? Math.abs(ua(a)) : Math.abs(oa(a)),
2377
+ width: wt.value - St.value,
2378
+ rx: l.value.bar.borderRadius,
2379
+ fill: `url(#pattern_${Q.value}_${e.slotAbsoluteIndex})`,
2380
+ stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
2381
+ "stroke-width": l.value.bar.border.strokeWidth,
2382
+ style: $({ transition: v(ie) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out` })
2383
+ }, null, 12, Du)) : g("", !0),
2384
+ a.comment && l.value.chart.comments.show ? (n(), i("foreignObject", {
2385
+ key: 2,
2386
+ style: { overflow: "visible" },
2387
+ height: "12",
2388
+ width: wt.value / 2 + l.value.chart.comments.width,
2389
+ x: yt(a) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2390
+ y: v(H)(a.y) + l.value.chart.comments.offsetY + 6
2391
+ }, [
2392
+ J(t.$slots, "plot-comment", {
2393
+ plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: s }
2394
+ }, void 0, !0)
2395
+ ], 8, Xu)) : g("", !0)
2396
+ ]))), 128)),
2397
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (n(), i("g", Gu, [
2398
+ b("defs", null, [
2399
+ b("marker", {
2400
+ id: `bar_arrow_${u}`,
2401
+ markerWidth: 7,
2402
+ markerHeight: 7,
2403
+ refX: "0",
2404
+ refY: 7 / 2,
2405
+ orient: "auto"
2406
+ }, [
2407
+ b("polygon", {
2408
+ points: `0 0, 7 ${7 / 2}, 0 7`,
2409
+ fill: e.color
2410
+ }, null, 8, Zu)
2411
+ ], 8, Uu)
2412
+ ]),
2413
+ e.plots.length > 1 ? (n(), i("line", {
2414
+ key: 0,
2415
+ x1: v(j)(e.plots).x1 + Gl(),
2416
+ x2: v(j)(e.plots).x2 + Gl(),
2417
+ y1: v(D)(v(j)(e.plots).y1),
2418
+ y2: v(D)(v(j)(e.plots).y2),
2419
+ "stroke-width": 1,
2420
+ stroke: e.color,
2421
+ "stroke-dasharray": 2,
2422
+ "marker-end": `url(#bar_arrow_${u})`
2423
+ }, null, 8, qu)) : g("", !0),
2424
+ e.plots.length > 1 ? (n(), i("text", {
2425
+ key: 1,
2426
+ "text-anchor": "middle",
2427
+ x: v(j)(e.plots).x2 + Gl(),
2428
+ y: v(j)(e.plots).y2 - 6,
2429
+ "font-size": S.value.plotLabels,
2430
+ fill: e.color
2431
+ }, te(v(Fe)({
2432
+ v: v(j)(e.plots).trend * 100,
2433
+ s: "%",
2434
+ r: 2
2435
+ })), 9, Ku)) : g("", !0)
2436
+ ])) : g("", !0)
2437
+ ], 6))), 128)) : g("", !0),
2438
+ !y.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (n(), i("line", {
2439
+ key: 2,
2440
+ stroke: l.value.chart.grid.stroke,
2441
+ "stroke-width": "1",
2442
+ x1: c.value.left + ee.value,
2443
+ x2: c.value.right - ee.value,
2444
+ y1: v(D)(we.value),
2445
+ y2: v(D)(we.value),
2446
+ "stroke-linecap": "round",
2447
+ style: { animation: "none !important" }
2448
+ }, null, 8, Ju)) : g("", !0),
2449
+ l.value.chart.highlighter.useLine && (![null, void 0].includes(w.value) || ![null, void 0].includes(C.value)) ? (n(), i("g", Qu, [
2450
+ b("line", {
2451
+ x1: c.value.left + c.value.width / M.value * ((w.value !== null ? w.value : 0) || (C.value !== null ? C.value : 0)) + c.value.width / M.value / 2,
2452
+ x2: c.value.left + c.value.width / M.value * ((w.value !== null ? w.value : 0) || (C.value !== null ? C.value : 0)) + c.value.width / M.value / 2,
2453
+ y1: v(D)(c.value.top),
2454
+ y2: v(D)(c.value.bottom),
2455
+ stroke: l.value.chart.highlighter.color,
2456
+ "stroke-width": l.value.chart.highlighter.lineWidth,
2457
+ "stroke-dasharray": l.value.chart.highlighter.lineDasharray,
2458
+ "stroke-linecap": "round",
2459
+ style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
2460
+ }, null, 8, ju)
2461
+ ])) : g("", !0),
2462
+ l.value.chart.grid.frame.show ? (n(), i("rect", {
2463
+ key: 4,
2464
+ style: { pointerEvents: "none", transition: "none", animation: "none !important" },
2465
+ x: c.value.left + ee.value < 0 ? 0 : c.value.left + ee.value,
2466
+ y: c.value.top,
2467
+ width: c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / M.value) < 0 ? 0 : c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / M.value),
2468
+ height: c.value.height < 0 ? 0 : c.value.height,
2469
+ fill: "transparent",
2470
+ stroke: l.value.chart.grid.frame.stroke,
2471
+ "stroke-width": l.value.chart.grid.frame.strokeWidth,
2472
+ "stroke-linecap": l.value.chart.grid.frame.strokeLinecap,
2473
+ "stroke-linejoin": l.value.chart.grid.frame.strokeLinejoin,
2474
+ "stroke-dasharray": l.value.chart.grid.frame.strokeDasharray
2475
+ }, null, 8, en)) : g("", !0),
2476
+ l.value.chart.grid.labels.show ? (n(), i("g", {
2477
+ key: 5,
2478
+ ref_key: "scaleLabels",
2479
+ ref: Z
2480
+ }, [
2481
+ y.value.useIndividualScale ? (n(), i(m, { key: 0 }, [
2482
+ (n(!0), i(m, null, _(ot.value, (e) => (n(), i("g", null, [
2483
+ b("line", {
2484
+ x1: e.x + ee.value - c.value.individualOffsetX,
2485
+ x2: e.x + ee.value - c.value.individualOffsetX,
2486
+ y1: y.value.isStacked ? v(D)(c.value.bottom - e.yOffset - e.individualHeight) : v(D)(c.value.top),
2487
+ y2: y.value.isStacked ? v(D)(c.value.bottom - e.yOffset) : v(D)(c.value.bottom),
2488
+ stroke: e.color,
2489
+ "stroke-width": l.value.chart.grid.stroke,
2490
+ "stroke-linecap": "round",
2491
+ style: $(`opacity:${L.value ? L.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
2492
+ }, null, 12, ln)
2493
+ ]))), 256)),
2494
+ (n(!0), i(m, null, _(ot.value, (e) => (n(), i("g", {
2495
+ style: $(`opacity:${L.value ? L.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
2496
+ }, [
2497
+ b("text", {
2498
+ fill: e.color,
2499
+ "font-size": S.value.dataLabels * 0.8,
2500
+ "text-anchor": "middle",
2501
+ transform: `translate(${e.x - S.value.dataLabels * 0.8 / 2 + ee.value}, ${y.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
2502
+ }, te(e.name) + " " + te(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
2503
+ ${e.scaleLabel}` : ""), 9, tn),
2504
+ (n(!0), i(m, null, _(e.yLabels, (u, a) => (n(), i(m, null, [
2505
+ l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), i("line", {
2506
+ key: 0,
2507
+ x1: e.x + 3 + ee.value - l.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
2508
+ x2: e.x + ee.value - c.value.individualOffsetX,
2509
+ y1: v(D)(u.y),
2510
+ y2: v(D)(u.y),
2511
+ stroke: e.color,
2512
+ "stroke-width": 1,
2513
+ "stroke-linecap": "round",
2514
+ style: { animation: "none !important" }
2515
+ }, null, 8, an)) : g("", !0)
2516
+ ], 64))), 256)),
2517
+ (n(!0), i(m, null, _(e.yLabels, (u, a) => (n(), i("text", {
2518
+ x: e.x - 5 + ee.value - c.value.individualOffsetX,
2519
+ y: v(D)(u.y) + S.value.dataLabels / 3,
2520
+ "font-size": S.value.dataLabels,
2521
+ "text-anchor": "end",
2522
+ fill: e.color
2523
+ }, te(v(pe)(
2524
+ l.value.chart.grid.labels.yAxis.formatter,
2525
+ u.value,
2526
+ v(Fe)({
2527
+ p: u.prefix,
2528
+ v: u.value,
2529
+ s: u.suffix,
2530
+ r: l.value.chart.grid.labels.yAxis.rounding
2531
+ }),
2532
+ { datapoint: u.datapoint, seriesIndex: a }
2533
+ )), 9, on))), 256))
2534
+ ], 4))), 256))
2535
+ ], 64)) : (n(!0), i(m, { key: 1 }, _(da.value, (e, u) => (n(), i("g", {
2536
+ key: `yLabel_${u}`
2537
+ }, [
2538
+ Ie(e) && e.value >= Xe.value.min && e.value <= Xe.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), i("line", {
2539
+ key: 0,
2540
+ x1: c.value.left,
2541
+ x2: c.value.left - l.value.chart.grid.labels.yAxis.crosshairSize,
2542
+ y1: v(D)(e.y),
2543
+ y2: v(D)(e.y),
2544
+ stroke: l.value.chart.grid.stroke,
2545
+ "stroke-width": "1",
2546
+ "stroke-linecap": "round",
2547
+ style: { animation: "none !important" }
2548
+ }, null, 8, un)) : g("", !0),
2549
+ e.value >= Xe.value.min && e.value <= Xe.value.max ? (n(), i("text", {
2550
+ key: 1,
2551
+ x: c.value.scaleLabelX - l.value.chart.grid.labels.yAxis.crosshairSize,
2552
+ y: v(H)(e.y + S.value.dataLabels / 3),
2553
+ "font-size": S.value.dataLabels,
2554
+ "text-anchor": "end",
2555
+ fill: l.value.chart.grid.labels.color
2556
+ }, te(Ie(e.value) ? v(pe)(
2557
+ l.value.chart.grid.labels.yAxis.formatter,
2558
+ e.value,
2559
+ v(Fe)({
2560
+ p: e.prefix,
2561
+ v: e.value,
2562
+ s: e.suffix,
2563
+ r: l.value.chart.grid.labels.yAxis.rounding
2564
+ })
2565
+ ) : ""), 9, nn)) : g("", !0)
2566
+ ]))), 128))
2567
+ ], 512)) : g("", !0),
2568
+ (n(!0), i(m, null, _(ll.value, (e, u) => (n(), i("g", {
2569
+ key: `serie_plot_${u}`,
2570
+ class: Oe(`serie_plot_${u}`),
2571
+ style: $(`opacity:${L.value ? L.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2572
+ }, [
2573
+ (n(!0), i(m, null, _(e.plots, (a, s) => (n(), i("g", {
2574
+ key: `circle_plot_${u}_${s}`
2575
+ }, [
2576
+ a && Ie(a.value) ? (n(), Ue(At, {
2577
+ key: 0,
2578
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
2579
+ color: l.value.plot.useGradient ? `url(#plotGradient_${u}_${Q.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
2580
+ plot: { x: v(H)(a.x), y: v(H)(a.y) },
2581
+ radius: w.value !== null && w.value === s || C.value !== null && C.value === s ? (Le.value.plot || 6) * 1.5 : Le.value.plot || 6,
2582
+ stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
2583
+ strokeWidth: l.value.plot.dot.strokeWidth,
2584
+ transition: v(ie) || !l.value.plot.showTransition || w.value !== null && w.value === s || C.value !== null && C.value === s ? void 0 : `all ${l.value.plot.transitionDurationMs}ms ease-in-out`
2585
+ }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : g("", !0),
2586
+ a.comment && l.value.chart.comments.show ? (n(), i("foreignObject", {
2587
+ key: 1,
2588
+ style: { overflow: "visible" },
2589
+ height: "12",
2590
+ width: l.value.chart.comments.width,
2591
+ x: a.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2592
+ y: a.y + l.value.chart.comments.offsetY + 6
2593
+ }, [
2594
+ b("div", rn, [
2595
+ J(t.$slots, "plot-comment", {
2596
+ plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: s }
2597
+ }, void 0, !0)
2598
+ ])
2599
+ ], 8, sn)) : g("", !0)
2600
+ ]))), 128)),
2601
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (n(), i("g", cn, [
2602
+ b("defs", null, [
2603
+ b("marker", {
2604
+ id: `plot_arrow_${u}`,
2605
+ markerWidth: 7,
2606
+ markerHeight: 7,
2607
+ refX: "0",
2608
+ refY: 7 / 2,
2609
+ orient: "auto"
2610
+ }, [
2611
+ b("polygon", {
2612
+ points: `0 0, 7 ${7 / 2}, 0 7`,
2613
+ fill: e.color
2614
+ }, null, 8, dn)
2615
+ ], 8, vn)
2616
+ ]),
2617
+ e.plots.length > 1 ? (n(), i("line", {
2618
+ key: 0,
2619
+ x1: v(j)(e.plots).x1,
2620
+ x2: v(j)(e.plots).x2,
2621
+ y1: v(D)(v(j)(e.plots).y1),
2622
+ y2: v(D)(v(j)(e.plots).y2),
2623
+ "stroke-width": 1,
2624
+ stroke: e.color,
2625
+ "stroke-dasharray": 2,
2626
+ "marker-end": `url(#plot_arrow_${u})`
2627
+ }, null, 8, hn)) : g("", !0),
2628
+ e.plots.length > 1 ? (n(), i("text", {
2629
+ key: 1,
2630
+ "text-anchor": "middle",
2631
+ x: v(j)(e.plots).x2,
2632
+ y: v(j)(e.plots).y2 - 6,
2633
+ "font-size": S.value.plotLabels,
2634
+ fill: e.color
2635
+ }, te(v(Fe)({
2636
+ v: v(j)(e.plots).trend * 100,
2637
+ s: "%",
2638
+ r: 2
2639
+ })), 9, fn)) : g("", !0)
2640
+ ])) : g("", !0)
2641
+ ], 6))), 128)),
2642
+ (n(!0), i(m, null, _(Ge.value, (e, u) => (n(), i("g", {
2643
+ key: `serie_line_${u}`,
2644
+ class: Oe(`serie_line_${u}`),
2645
+ style: $(`opacity:${L.value ? L.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2646
+ }, [
2647
+ e.smooth && e.plots.length > 1 && e.curve ? (n(), i("path", {
2648
+ key: 0,
2649
+ d: `M${e.curve}`,
2650
+ stroke: l.value.chart.backgroundColor,
2651
+ "stroke-width": l.value.line.strokeWidth + 1,
2652
+ "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
2653
+ fill: "none",
2654
+ style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2655
+ }, null, 12, gn)) : e.plots.length > 1 && e.straight ? (n(), i("path", {
2656
+ key: 1,
2657
+ d: `M${e.straight}`,
2658
+ stroke: l.value.chart.backgroundColor,
2659
+ "stroke-width": l.value.line.strokeWidth + 1,
2660
+ "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
2661
+ fill: "none",
2662
+ "stroke-linecap": "round",
2663
+ "stroke-linejoin": "round",
2664
+ style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2665
+ }, null, 12, mn)) : g("", !0)
2666
+ ], 6))), 128)),
2667
+ t.$slots.pattern ? (n(), i("defs", xn, [
2668
+ (n(!0), i(m, null, _(sl.value, (e, u) => J(t.$slots, "pattern", _t({
2669
+ key: `serie_pattern_slot_${u}`
2670
+ }, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${Q.value}_${u}` }), void 0, !0)), 128))
2671
+ ])) : g("", !0),
2672
+ (n(!0), i(m, null, _(Ge.value, (e, u) => (n(), i("g", {
2673
+ key: `serie_line_${u}`,
2674
+ class: Oe(`serie_line_${u}`),
2675
+ style: $(`opacity:${L.value ? L.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2676
+ }, [
2677
+ e.useArea && e.plots.length > 1 ? (n(), i("g", bn, [
2678
+ e.smooth ? (n(!0), i(m, { key: 0 }, _(e.curveAreas, (a, s) => (n(), i(m, { key: s }, [
2679
+ a ? (n(), i("path", {
2680
+ key: 0,
2681
+ d: a,
2682
+ fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${Q.value})` : v(qe)(e.color, l.value.line.area.opacity),
2683
+ style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2684
+ }, null, 12, pn)) : g("", !0),
2685
+ t.$slots.pattern && a ? (n(), i("path", {
2686
+ key: 1,
2687
+ d: a,
2688
+ fill: `url(#pattern_${Q.value}_${e.slotAbsoluteIndex})`,
2689
+ style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2690
+ }, null, 12, yn)) : g("", !0)
2691
+ ], 64))), 128)) : (n(!0), i(m, { key: 1 }, _(e.area.split(";"), (a, s) => (n(), i(m, { key: s }, [
2692
+ a ? (n(), i("path", {
2693
+ key: 0,
2694
+ d: `M${a}Z`,
2695
+ fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${Q.value})` : v(qe)(e.color, l.value.line.area.opacity),
2696
+ style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2697
+ }, null, 12, kn)) : g("", !0),
2698
+ t.$slots.pattern && a ? (n(), i("path", {
2699
+ key: 1,
2700
+ d: `M${a}Z`,
2701
+ fill: `url(#pattern_${Q.value}_${e.slotAbsoluteIndex})`,
2702
+ style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2703
+ }, null, 12, wn)) : g("", !0)
2704
+ ], 64))), 128))
2705
+ ])) : g("", !0),
2706
+ e.smooth && e.plots.length > 1 && e.curve ? (n(), i("path", {
2707
+ key: 1,
2708
+ d: `M${e.curve}`,
2709
+ stroke: e.color,
2710
+ "stroke-width": l.value.line.strokeWidth,
2711
+ "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
2712
+ fill: "none",
2713
+ "stroke-linecap": "round",
2714
+ style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2715
+ }, null, 12, Sn)) : e.plots.length > 1 && e.straight ? (n(), i("path", {
2716
+ key: 2,
2717
+ d: `M${e.straight}`,
2718
+ stroke: e.color,
2719
+ "stroke-width": l.value.line.strokeWidth,
2720
+ "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
2721
+ fill: "none",
2722
+ "stroke-linecap": "round",
2723
+ "stroke-linejoin": "round",
2724
+ style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2725
+ }, null, 12, $n)) : g("", !0),
2726
+ (n(!0), i(m, null, _(e.plots, (a, s) => (n(), i(m, {
2727
+ key: `circle_line_${u}_${s}`
2728
+ }, [
2729
+ !ca.value.linePlot && a && Ie(a.value) || ca.value.linePlot && a && Ie(a.value) && (w.value !== null && w.value === s || C.value !== null && C.value === s) || fa(e.plots, s) ? (n(), Ue(At, {
2730
+ key: 0,
2731
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
2732
+ color: l.value.line.useGradient ? `url(#lineGradient_${u}_${Q.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
2733
+ plot: { x: v(H)(a.x), y: v(H)(a.y) },
2734
+ radius: w.value !== null && w.value === s || C.value !== null && C.value === s ? (Le.value.line || 6) * 1.5 : (fa(e.plots, s), Le.value.line || 6),
2735
+ stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
2736
+ strokeWidth: l.value.line.dot.strokeWidth,
2737
+ transition: v(ie) || !l.value.line.showTransition || w.value !== null && w.value === s || C.value !== null && C.value === s ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out`
2738
+ }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : g("", !0),
2739
+ a.comment && l.value.chart.comments.show ? (n(), i("foreignObject", {
2740
+ key: 1,
2741
+ style: { overflow: "visible" },
2742
+ height: "12",
2743
+ width: l.value.chart.comments.width,
2744
+ x: a.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2745
+ y: a.y + l.value.chart.comments.offsetY + 6
2746
+ }, [
2747
+ b("div", Ln, [
2748
+ J(t.$slots, "plot-comment", {
2749
+ plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: s }
2750
+ }, void 0, !0)
2751
+ ])
2752
+ ], 8, _n)) : g("", !0)
2753
+ ], 64))), 128)),
2754
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (n(), i("g", Mn, [
2755
+ b("defs", null, [
2756
+ b("marker", {
2757
+ id: `line_arrow_${u}`,
2758
+ markerWidth: 7,
2759
+ markerHeight: 7,
2760
+ refX: "0",
2761
+ refY: 7 / 2,
2762
+ orient: "auto"
2763
+ }, [
2764
+ b("polygon", {
2765
+ points: `0 0, 7 ${7 / 2}, 0 7`,
2766
+ fill: e.color
2767
+ }, null, 8, Cn)
2768
+ ], 8, An)
2769
+ ]),
2770
+ e.plots.length > 1 ? (n(), i("line", {
2771
+ key: 0,
2772
+ x1: v(j)(e.plots).x1,
2773
+ x2: v(j)(e.plots).x2,
2774
+ y1: v(D)(v(j)(e.plots).y1),
2775
+ y2: v(D)(v(j)(e.plots).y2),
2776
+ "stroke-width": 1,
2777
+ stroke: e.color,
2778
+ "stroke-dasharray": 2,
2779
+ "marker-end": `url(#line_arrow_${u})`
2780
+ }, null, 8, zn)) : g("", !0),
2781
+ e.plots.length > 1 ? (n(), i("text", {
2782
+ key: 1,
2783
+ "text-anchor": "middle",
2784
+ x: v(j)(e.plots).x2,
2785
+ y: v(j)(e.plots).y2 - 6,
2786
+ "font-size": S.value.plotLabels,
2787
+ fill: e.color
2788
+ }, te(v(Fe)({
2789
+ v: v(j)(e.plots).trend * 100,
2790
+ s: "%",
2791
+ r: 2
2792
+ })), 9, In)) : g("", !0)
2793
+ ])) : g("", !0)
2794
+ ], 6))), 128)),
2795
+ (l.value.bar.labels.show || l.value.bar.serieName.show) && y.value.dataLabels.show ? (n(), i("g", Tn, [
2796
+ (n(!0), i(m, null, _(yl.value, (e, u) => (n(), i(m, {
2797
+ key: `xLabel_bar_${u}`
2798
+ }, [
2799
+ (n(!0), i(m, null, _(e.plots, (a, s) => (n(), i(m, {
2800
+ key: `xLabel_bar_${u}_${s}`
2801
+ }, [
2802
+ a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || w.value !== null && w.value === s || C.value !== null && C.value === s) && l.value.bar.labels.show ? (n(), i("text", {
2803
+ key: 0,
2804
+ x: y.value.useIndividualScale && y.value.isStacked ? a.x + oe.value.line / 2 : yt(a) + Gl() / 2 - kt.value / 2,
2805
+ y: v(H)(a.y) + (a.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
2806
+ "text-anchor": "middle",
2807
+ "font-size": S.value.plotLabels,
2808
+ fill: l.value.bar.labels.color,
2809
+ style: $(`opacity:${L.value ? L.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2810
+ }, te(Ie(a.value) ? v(pe)(
2811
+ l.value.bar.labels.formatter,
2812
+ a.value,
2813
+ v(Fe)({
2814
+ p: e.prefix || l.value.chart.labels.prefix,
2815
+ v: a.value,
2816
+ s: e.suffix || l.value.chart.labels.suffix,
2817
+ r: l.value.bar.labels.rounding
2818
+ }),
2819
+ {
2820
+ datapoint: a,
2821
+ serie: e
2822
+ }
2823
+ ) : ""), 13, Nn)) : g("", !0),
2824
+ a && l.value.bar.serieName.show ? (n(), i("text", {
2825
+ key: 1,
2826
+ x: y.value.useIndividualScale && y.value.isStacked ? a.x + oe.value.line / 2 : a.x + Gl() * 1.1,
2827
+ y: a.y + (a.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
2828
+ "text-anchor": "middle",
2829
+ "font-size": S.value.plotLabels,
2830
+ fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
2831
+ "font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
2832
+ style: $(`opacity:${L.value ? L.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2833
+ }, te(l.value.bar.serieName.useAbbreviation ? v(_o)({
2834
+ source: e.name,
2835
+ length: l.value.bar.serieName.abbreviationSize
2836
+ }) : e.name), 13, On)) : g("", !0)
2837
+ ], 64))), 128))
2838
+ ], 64))), 128))
2839
+ ])) : g("", !0),
2840
+ l.value.plot.labels.show && y.value.dataLabels.show ? (n(), i("g", Rn, [
2841
+ (n(!0), i(m, null, _(ll.value, (e, u) => (n(), i(m, {
2842
+ key: `xLabel_plot_${u}`
2843
+ }, [
2844
+ (n(!0), i(m, null, _(e.plots, (a, s) => (n(), i(m, {
2845
+ key: `xLabel_plot_${u}_${s}`
2846
+ }, [
2847
+ a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || w.value !== null && w.value === s || C.value !== null && C.value === s ? (n(), i("text", {
2848
+ key: 0,
2849
+ x: a.x,
2850
+ y: a.y + l.value.plot.labels.offsetY,
2851
+ "text-anchor": "middle",
2852
+ "font-size": S.value.plotLabels,
2853
+ fill: l.value.plot.labels.color,
2854
+ style: $(`opacity:${L.value ? L.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2855
+ }, te(Ie(a.value) ? v(pe)(
2856
+ l.value.plot.labels.formatter,
2857
+ a.value,
2858
+ v(Fe)({
2859
+ p: e.prefix || l.value.chart.labels.prefix,
2860
+ v: a.value,
2861
+ s: e.suffix || l.value.chart.labels.suffix,
2862
+ r: l.value.plot.labels.rounding
2863
+ }),
2864
+ {
2865
+ datapoint: a,
2866
+ serie: e
2867
+ }
2868
+ ) : ""), 13, Pn)) : g("", !0)
2869
+ ], 64))), 128))
2870
+ ], 64))), 128))
2871
+ ])) : (n(), i("g", Hn, [
2872
+ (n(!0), i(m, null, _(ll.value, (e, u) => (n(), i(m, {
2873
+ key: `xLabel_plot_${u}`
2874
+ }, [
2875
+ (n(!0), i(m, null, _(e.plots, (a, s) => (n(), i(m, {
2876
+ key: `xLabel_plot_${u}_${s}`
2877
+ }, [
2878
+ l.value.plot.tag.followValue ? (n(), i(m, { key: 1 }, [
2879
+ [C.value, w.value, Ce.value].includes(s) && e.useTag ? (n(), i("line", {
2880
+ key: 0,
2881
+ class: "vue-ui-xy-tag-plot",
2882
+ x1: c.value.left,
2883
+ x2: c.value.right,
2884
+ y1: a.y,
2885
+ y2: a.y,
2886
+ "stroke-width": 1,
2887
+ "stroke-linecap": "round",
2888
+ "stroke-dasharray": "2",
2889
+ stroke: e.color
2890
+ }, null, 8, Wn)) : g("", !0)
2891
+ ], 64)) : (n(), i(m, { key: 0 }, [
2892
+ a && s === 0 && e.useTag && e.useTag === "start" ? (n(), i("foreignObject", {
2893
+ key: 0,
2894
+ x: a.x,
2895
+ y: a.y - 20,
2896
+ height: 24,
2897
+ width: "150",
2898
+ style: $(`overflow: visible; opacity:${L.value ? L.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2899
+ }, [
2900
+ b("div", {
2901
+ style: $(`padding: 3px; background:${v(qe)(e.color, 80)};color:${v(Ke)(e.color)};width:fit-content;font-size:${S.value.plotLabels}px;border-radius: 2px;`),
2902
+ innerHTML: v(pe)(
2903
+ l.value.plot.tag.formatter,
2904
+ a.value,
2905
+ e.name,
2906
+ {
2907
+ datapoint: a,
2908
+ seriesIndex: s,
2909
+ serieName: e.name
2910
+ }
2911
+ )
2912
+ }, null, 12, En)
2913
+ ], 12, Vn)) : g("", !0),
2914
+ a && s === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), i("foreignObject", {
2915
+ key: 1,
2916
+ x: a.x - e.name.length * (S.value.plotLabels / 2),
2917
+ y: a.y - 20,
2918
+ height: 24,
2919
+ width: "150",
2920
+ style: $(`overflow: visible; opacity:${L.value ? L.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2921
+ }, [
2922
+ b("div", {
2923
+ style: $(`padding: 3px; background:${v(qe)(e.color, 80)};color:${v(Ke)(e.color)};width:fit-content;font-size:${S.value.plotLabels}px;border-radius: 2px;`),
2924
+ innerHTML: v(pe)(
2925
+ l.value.plot.tag.formatter,
2926
+ a.value,
2927
+ e.name,
2928
+ {
2929
+ datapoint: a,
2930
+ seriesIndex: s,
2931
+ serieName: e.name
2932
+ }
2933
+ )
2934
+ }, null, 12, Fn)
2935
+ ], 12, Bn)) : g("", !0)
2936
+ ], 64))
2937
+ ], 64))), 128))
2938
+ ], 64))), 128))
2939
+ ])),
2940
+ l.value.line.labels.show && y.value.dataLabels.show ? (n(), i("g", Yn, [
2941
+ (n(!0), i(m, null, _(Ge.value, (e, u) => (n(), i(m, {
2942
+ key: `xLabel_line_${u}`
2943
+ }, [
2944
+ (n(!0), i(m, null, _(e.plots, (a, s) => (n(), i(m, {
2945
+ key: `xLabel_line_${u}_${s}`
2946
+ }, [
2947
+ a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || w.value !== null && w.value === s || C.value !== null && C.value === s ? (n(), i("text", {
2948
+ key: 0,
2949
+ x: a.x,
2950
+ y: a.y + (a.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
2951
+ "text-anchor": "middle",
2952
+ "font-size": S.value.plotLabels,
2953
+ fill: l.value.line.labels.color,
2954
+ style: $(`opacity:${L.value ? L.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2955
+ }, te(Ie(a.value) ? v(pe)(
2956
+ l.value.line.labels.formatter,
2957
+ a.value,
2958
+ v(Fe)({
2959
+ p: e.prefix || l.value.chart.labels.prefix,
2960
+ v: a.value,
2961
+ s: e.suffix || l.value.chart.labels.suffix,
2962
+ r: l.value.line.labels.rounding
2963
+ }),
2964
+ {
2965
+ datapoint: a,
2966
+ serie: e
2967
+ }
2968
+ ) : ""), 13, Dn)) : g("", !0)
2969
+ ], 64))), 128))
2970
+ ], 64))), 128))
2971
+ ])) : (n(), i("g", Xn, [
2972
+ (n(!0), i(m, null, _(Ge.value, (e, u) => (n(), i(m, {
2973
+ key: `xLabel_line_${u}`
2974
+ }, [
2975
+ (n(!0), i(m, null, _(e.plots, (a, s) => (n(), i(m, {
2976
+ key: `xLabel_line_${u}_${s}`
2977
+ }, [
2978
+ l.value.line.tag.followValue ? (n(), i(m, { key: 1 }, [
2979
+ [C.value, w.value, Ce.value].includes(s) && e.useTag ? (n(), i("line", {
2980
+ key: 0,
2981
+ class: "vue-ui-xy-tag-line",
2982
+ x1: c.value.left,
2983
+ x2: c.value.right,
2984
+ y1: a.y,
2985
+ y2: a.y,
2986
+ "stroke-width": 1,
2987
+ "stroke-linecap": "round",
2988
+ "stroke-dasharray": "2",
2989
+ stroke: e.color
2990
+ }, null, 8, Kn)) : g("", !0)
2991
+ ], 64)) : (n(), i(m, { key: 0 }, [
2992
+ a && s === 0 && e.useTag && e.useTag === "start" ? (n(), i("foreignObject", {
2993
+ key: 0,
2994
+ x: a.x,
2995
+ y: a.y - 20,
2996
+ height: 24,
2997
+ width: "150",
2998
+ style: $(`overflow: visible; opacity:${L.value ? L.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2999
+ }, [
3000
+ b("div", {
3001
+ style: $(`padding: 3px; background:${v(qe)(e.color, 80)};color:${v(Ke)(e.color)};width:fit-content;font-size:${S.value.plotLabels}px;border-radius: 2px;`),
3002
+ innerHTML: v(pe)(
3003
+ l.value.line.tag.formatter,
3004
+ a.value,
3005
+ e.name,
3006
+ {
3007
+ datapoint: a,
3008
+ seriesIndex: s,
3009
+ serieName: e.name
3010
+ }
3011
+ )
3012
+ }, null, 12, Un)
3013
+ ], 12, Gn)) : g("", !0),
3014
+ a && s === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), i("foreignObject", {
3015
+ key: 1,
3016
+ x: a.x,
3017
+ y: a.y - 20,
3018
+ height: 24,
3019
+ width: "150",
3020
+ style: $(`overflow: visible; opacity:${L.value ? L.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3021
+ }, [
3022
+ b("div", {
3023
+ style: $(`padding: 3px; background:${v(qe)(e.color, 80)};color:${v(Ke)(e.color)};width:fit-content;font-size:${S.value.plotLabels}px;border-radius: 2px;`),
3024
+ innerHTML: v(pe)(
3025
+ l.value.line.tag.formatter,
3026
+ a.value,
3027
+ e.name,
3028
+ {
3029
+ datapoint: a,
3030
+ seriesIndex: s,
3031
+ serieName: e.name
3032
+ }
3033
+ )
3034
+ }, null, 12, qn)
3035
+ ], 12, Zn)) : g("", !0)
3036
+ ], 64))
3037
+ ], 64))), 128))
3038
+ ], 64))), 128))
3039
+ ])),
3040
+ (n(!0), i(m, null, _(Ge.value, (e, u) => (n(), i(m, {
3041
+ key: `xLabel_line_${u}`
3042
+ }, [
3043
+ (n(!0), i(m, null, _(e.plots, (a, s) => (n(), i(m, {
3044
+ key: `xLabel_line_${u}_${s}`
3045
+ }, [
3046
+ a && s === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), i("text", {
3047
+ key: 0,
3048
+ x: a.x - S.value.plotLabels,
3049
+ y: a.y,
3050
+ "font-size": S.value.plotLabels,
3051
+ "text-anchor": "end",
3052
+ fill: e.color,
3053
+ innerHTML: v(Mt)({
3054
+ content: e.name,
3055
+ fontSize: S.value.plotLabels,
3056
+ fill: e.color,
3057
+ x: a.x - S.value.plotLabels,
3058
+ y: a.y,
3059
+ maxWords: 2
3060
+ }),
3061
+ style: $(`opacity:${L.value ? L.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3062
+ }, null, 12, Jn)) : g("", !0),
3063
+ a && s === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), i("text", {
3064
+ key: 1,
3065
+ x: a.x + S.value.plotLabels,
3066
+ y: a.y,
3067
+ "font-size": S.value.plotLabels,
3068
+ "text-anchor": "start",
3069
+ fill: e.color,
3070
+ innerHTML: v(Mt)({
3071
+ content: e.name,
3072
+ fontSize: S.value.plotLabels,
3073
+ fill: e.color,
3074
+ x: a.x + S.value.plotLabels,
3075
+ y: a.y,
3076
+ maxWords: 2
3077
+ }),
3078
+ style: $(`opacity:${L.value ? L.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3079
+ }, null, 12, Qn)) : g("", !0)
3080
+ ], 64))), 128))
3081
+ ], 64))), 128)),
3082
+ (n(!0), i(m, null, _(ll.value, (e, u) => (n(), i(m, {
3083
+ key: `xLabel_plot_${u}`
3084
+ }, [
3085
+ (n(!0), i(m, null, _(e.plots, (a, s) => (n(), i(m, {
3086
+ key: `xLabel_plot_${u}_${s}`
3087
+ }, [
3088
+ a && s === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), i("text", {
3089
+ key: 0,
3090
+ x: a.x - S.value.plotLabels,
3091
+ y: a.y,
3092
+ "font-size": S.value.plotLabels,
3093
+ "text-anchor": "end",
3094
+ fill: e.color,
3095
+ innerHTML: v(Mt)({
3096
+ content: e.name,
3097
+ fontSize: S.value.plotLabels,
3098
+ fill: e.color,
3099
+ x: a.x - S.value.plotLabels,
3100
+ y: a.y,
3101
+ maxWords: 2
3102
+ }),
3103
+ style: $(`opacity:${L.value ? L.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3104
+ }, null, 12, jn)) : g("", !0),
3105
+ a && s === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), i("text", {
3106
+ key: 1,
3107
+ x: a.x + S.value.plotLabels,
3108
+ y: a.y,
3109
+ "font-size": S.value.plotLabels,
3110
+ "text-anchor": "start",
3111
+ fill: e.color,
3112
+ innerHTML: v(Mt)({
3113
+ content: e.name,
3114
+ fontSize: S.value.plotLabels,
3115
+ fill: e.color,
3116
+ x: a.x + S.value.plotLabels,
3117
+ y: a.y,
3118
+ maxWords: 2
3119
+ }),
3120
+ style: $(`opacity:${L.value ? L.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3121
+ }, null, 12, ei)) : g("", !0)
3122
+ ], 64))), 128))
3123
+ ], 64))), 128)),
3124
+ y.value.useIndividualScale && !y.value.isStacked ? (n(), i(m, { key: 12 }, [
3125
+ b("defs", null, [
3126
+ (n(!0), i(m, null, _(ot.value, (e, u) => (n(), i("linearGradient", {
3127
+ id: `individual_scale_gradient_${Q.value}_${u}`,
3128
+ x1: "0%",
3129
+ x2: "100%",
3130
+ y1: "0%",
3131
+ y2: "0%"
3132
+ }, [
3133
+ b("stop", {
3134
+ offset: "0%",
3135
+ "stop-color": l.value.chart.backgroundColor,
3136
+ "stop-opacity": "0"
3137
+ }, null, 8, ti),
3138
+ b("stop", {
3139
+ offset: "100%",
3140
+ "stop-color": e.color,
3141
+ "stop-opacity": "0.2"
3142
+ }, null, 8, ai)
3143
+ ], 8, li))), 256))
3144
+ ]),
3145
+ (n(!0), i(m, null, _(ot.value, (e, u) => (n(), i("rect", {
3146
+ x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + ee.value - c.value.individualOffsetX,
3147
+ y: c.value.top,
3148
+ width: l.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
3149
+ height: c.value.height < 0 ? 10 : c.value.height,
3150
+ fill: L.value === e.groupId ? `url(#individual_scale_gradient_${Q.value}_${u})` : "transparent",
3151
+ onMouseenter: (a) => L.value = e.groupId,
3152
+ onMouseleave: r[0] || (r[0] = (a) => L.value = null)
3153
+ }, null, 40, oi))), 256))
3154
+ ], 64)) : g("", !0),
3155
+ b("g", null, [
3156
+ l.value.chart.grid.labels.axis.yLabel && !y.value.useIndividualScale ? (n(), i("text", {
3157
+ key: 0,
3158
+ ref_key: "yAxisLabel",
3159
+ ref: Vl,
3160
+ "font-size": S.value.yAxis,
3161
+ fill: l.value.chart.grid.labels.color,
3162
+ transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${c.value.top + c.value.height / 2}) rotate(-90)`,
3163
+ "text-anchor": "middle",
3164
+ style: { transition: "none" }
3165
+ }, te(l.value.chart.grid.labels.axis.yLabel), 9, ui)) : g("", !0),
3166
+ l.value.chart.grid.labels.axis.xLabel ? (n(), i("text", {
3167
+ key: 1,
3168
+ ref_key: "xAxisLabel",
3169
+ ref: Hl,
3170
+ "text-anchor": "middle",
3171
+ x: ne.value / 2,
3172
+ y: xe.value - 3,
3173
+ "font-size": S.value.yAxis,
3174
+ fill: l.value.chart.grid.labels.color
3175
+ }, te(l.value.chart.grid.labels.axis.xLabel), 9, ni)) : g("", !0)
3176
+ ]),
3177
+ l.value.chart.grid.labels.xAxisLabels.show ? (n(), i("g", {
3178
+ key: 13,
3179
+ ref_key: "timeLabelsEls",
3180
+ ref: Qe
3181
+ }, [
3182
+ t.$slots["time-label"] ? (n(!0), i(m, { key: 0 }, _(q.value, (e, u) => J(t.$slots, "time-label", _t({
3183
+ key: `time_label_${u}`,
3184
+ ref_for: !0
3185
+ }, {
3186
+ x: c.value.left + c.value.width / M.value * u + c.value.width / M.value / 2,
3187
+ y: c.value.bottom,
3188
+ fontSize: S.value.xAxis,
3189
+ fill: l.value.chart.grid.labels.xAxisLabels.color,
3190
+ transform: `translate(${c.value.left + c.value.width / M.value * u + c.value.width / M.value / 2}, ${c.value.bottom + S.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
3191
+ absoluteIndex: e.absoluteIndex,
3192
+ content: e.text,
3193
+ textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3194
+ show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && M.value <= bt.value || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (u === 0 || u === q.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && w.value === u && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && u % Math.floor((d.value.end - d.value.start) / bt.value) === 0
3195
+ }), void 0, !0)), 128)) : (n(!0), i(m, { key: 1 }, _(q.value, (e, u) => (n(), i("g", {
3196
+ key: `time_label_${u}`
3197
+ }, [
3198
+ e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && M.value <= bt.value || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (u === 0 || u === q.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && w.value === u && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && u % Math.floor((d.value.end - d.value.start) / bt.value) === 0 ? (n(), i(m, { key: 0 }, [
3199
+ String(e.text).includes(`
3200
+ `) ? (n(), i("text", {
3201
+ key: 1,
3202
+ class: "vue-data-ui-time-label",
3203
+ "text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3204
+ "font-size": S.value.xAxis,
3205
+ fill: l.value.chart.grid.labels.xAxisLabels.color,
3206
+ transform: `translate(${c.value.left + c.value.width / M.value * u + c.value.width / M.value / 2}, ${c.value.bottom + S.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
3207
+ style: $({
3208
+ cursor: qt() ? "pointer" : "default"
3209
+ }),
3210
+ innerHTML: v(Lo)({
3211
+ content: String(e.text),
3212
+ fontSize: S.value.xAxis,
3213
+ fill: l.value.chart.grid.labels.xAxisLabels.color,
3214
+ x: 0,
3215
+ y: 0
3216
+ }),
3217
+ onClick: () => jt(e, u)
3218
+ }, null, 12, si)) : (n(), i("text", {
3219
+ key: 0,
3220
+ class: "vue-data-ui-time-label",
3221
+ "text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3222
+ "font-size": S.value.xAxis,
3223
+ fill: l.value.chart.grid.labels.xAxisLabels.color,
3224
+ transform: `translate(${c.value.left + c.value.width / M.value * u + c.value.width / M.value / 2}, ${c.value.bottom + S.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
3225
+ style: $({
3226
+ cursor: qt() ? "pointer" : "default"
3227
+ }),
3228
+ onClick: () => jt(e, u)
3229
+ }, te(e.text || ""), 13, ii))
3230
+ ], 64)) : g("", !0)
3231
+ ]))), 128))
3232
+ ], 512)) : g("", !0),
3233
+ ha.value.length && !y.value.isStacked ? (n(), i("g", ri, [
3234
+ (n(!0), i(m, null, _(ha.value, (e) => (n(), i("g", {
3235
+ key: e.uid
3236
+ }, [
3237
+ e.yTop && e.show && isFinite(e.yTop) ? (n(), i("line", {
3238
+ key: 0,
3239
+ x1: e.x1,
3240
+ y1: e.yTop,
3241
+ x2: e.x2,
3242
+ y2: e.yTop,
3243
+ stroke: e.config.line.stroke,
3244
+ "stroke-width": e.config.line.strokeWidth,
3245
+ "stroke-dasharray": e.config.line.strokeDasharray,
3246
+ "stroke-linecap": "round",
3247
+ style: { animation: "none !important" }
3248
+ }, null, 8, ci)) : g("", !0),
3249
+ e.yBottom && e.show && isFinite(e.yBottom) ? (n(), i("line", {
3250
+ key: 1,
3251
+ x1: e.x1,
3252
+ y1: e.yBottom,
3253
+ x2: e.x2,
3254
+ y2: e.yBottom,
3255
+ stroke: e.config.line.stroke,
3256
+ "stroke-width": e.config.line.strokeWidth,
3257
+ "stroke-dasharray": e.config.line.strokeDasharray,
3258
+ "stroke-linecap": "round",
3259
+ style: { animation: "none !important" }
3260
+ }, null, 8, vi)) : g("", !0),
3261
+ e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (n(), i("rect", {
3262
+ key: 2,
3263
+ y: Math.min(e.yTop, e.yBottom),
3264
+ x: e.x1,
3265
+ width: c.value.width,
3266
+ height: v(H)(e.areaHeight, 0),
3267
+ fill: v(qe)(e.config.area.fill, e.config.area.opacity),
3268
+ style: { animation: "none !important" }
3269
+ }, null, 8, di)) : g("", !0),
3270
+ e.config.label.text && e.show && isFinite(e._box.y) ? (n(), i("rect", _t({
3271
+ key: 3,
3272
+ class: "vue-ui-xy-annotation-label-box"
3273
+ }, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : g("", !0),
3274
+ e.config.label.text && e.show && isFinite(e._text.y) ? (n(), i("text", {
3275
+ key: 4,
3276
+ id: e.id,
3277
+ class: "vue-ui-xy-annotation-label",
3278
+ x: e._text.x,
3279
+ y: e._text.y,
3280
+ "font-size": e.config.label.fontSize,
3281
+ fill: e.config.label.color,
3282
+ "text-anchor": e.config.label.textAnchor
3283
+ }, te(e.config.label.text), 9, hi)) : g("", !0)
3284
+ ]))), 128))
3285
+ ])) : g("", !0),
3286
+ l.value.chart.timeTag.show && (![null, void 0].includes(w.value) || ![null, void 0].includes(C.value)) ? (n(), i("g", fi, [
3287
+ (n(), i("foreignObject", {
3288
+ x: c.value.left + c.value.width / M.value * ((w.value !== null ? w.value : 0) || (C.value !== null ? C.value : 0)) - 100 + c.value.width / M.value / 2,
3289
+ y: c.value.bottom,
3290
+ width: "200",
3291
+ height: "40",
3292
+ style: { overflow: "visible !important" }
3293
+ }, [
3294
+ b("div", {
3295
+ class: "vue-ui-xy-time-tag",
3296
+ style: $(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${l.value.chart.timeTag.backgroundColor};color:${l.value.chart.timeTag.color};font-size:${l.value.chart.timeTag.fontSize}px`)
3297
+ }, te((q.value[(w.value !== null ? w.value : 0) || (C.value !== null ? C.value : 0)] ? q.value[(w.value !== null ? w.value : 0) || (C.value !== null ? C.value : 0)].text : "") || (w.value !== null ? w.value : 0) || (C.value !== null ? C.value : 0)), 5)
3298
+ ], 8, gi)),
3299
+ b("circle", {
3300
+ cx: c.value.left + c.value.width / M.value * ((w.value !== null ? w.value : 0) || (C.value !== null ? C.value : 0)) + c.value.width / M.value / 2,
3301
+ cy: c.value.bottom,
3302
+ r: l.value.chart.timeTag.circleMarker.radius,
3303
+ fill: l.value.chart.timeTag.circleMarker.color
3304
+ }, null, 8, mi)
3305
+ ])) : g("", !0)
3306
+ ])) : g("", !0),
3307
+ ze.value ? (n(), i("rect", rl(_t({ key: 2 }, Rt.value)), null, 16)) : g("", !0),
3308
+ J(t.$slots, "svg", { svg: ht.value }, void 0, !0)
3309
+ ], 512)
3310
+ ], 46, su)),
3311
+ t.$slots.watermark ? (n(), i("div", xi, [
3312
+ J(t.$slots, "watermark", rl($l({ isPrinting: v(et) || v(ft) })), void 0, !0)
3313
+ ])) : g("", !0),
3314
+ (n(!0), i(m, null, _(Ge.value, (e, u) => (n(), i(m, {
3315
+ key: `tag_line_${u}`
3316
+ }, [
3317
+ (n(!0), i(m, null, _(e.plots, (a, s) => (n(), i(m, {
3318
+ key: `tag_line_${u}_${s}`
3319
+ }, [
3320
+ [C.value, w.value, Ce.value].includes(s) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (n(), i("div", {
3321
+ key: 0,
3322
+ ref_for: !0,
3323
+ ref: (o) => xt(u, s, o, "right", "line"),
3324
+ class: "vue-ui-xy-tag",
3325
+ "data-tag": "right",
3326
+ style: $({
3327
+ position: "fixed",
3328
+ top: v(_l)({
3329
+ svgElement: ke.value,
3330
+ x: c.value.right + l.value.line.tag.fontSize / 1.5,
3331
+ y: a.y,
3332
+ element: Ve.value[`${u}_${s}_right_line`],
3333
+ position: "right"
3334
+ }).top + "px",
3335
+ left: v(_l)({
3336
+ svgElement: ke.value,
3337
+ x: c.value.right + l.value.line.tag.fontSize / 1.5,
3338
+ y: a.y,
3339
+ element: Ve.value[`${u}_${s}_right_line`],
3340
+ position: "right"
3341
+ }).left + "px",
3342
+ height: "fit-content",
3343
+ width: "fit-content",
3344
+ background: e.color,
3345
+ color: v(Ke)(e.color),
3346
+ padding: "0 6px",
3347
+ fontSize: l.value.line.tag.fontSize + "px",
3348
+ opacity: 1
3349
+ })
3350
+ }, [
3351
+ (n(), i("svg", bi, [
3352
+ b("path", {
3353
+ d: "M 0,10 10,0 10,20 Z",
3354
+ fill: e.color,
3355
+ stroke: "none"
3356
+ }, null, 8, pi)
3357
+ ])),
3358
+ b("div", {
3359
+ class: "vue-ui-xy-tag-content",
3360
+ innerHTML: v(pe)(
3361
+ l.value.line.tag.formatter,
3362
+ a.value,
3363
+ e.name,
3364
+ {
3365
+ datapoint: a,
3366
+ seriesIndex: s,
3367
+ serieName: e.name
3368
+ }
3369
+ )
3370
+ }, null, 8, yi)
3371
+ ], 4)) : g("", !0),
3372
+ [C.value, w.value, Ce.value].includes(s) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (n(), i("div", {
3373
+ key: 1,
3374
+ ref_for: !0,
3375
+ ref: (o) => xt(u, s, o, "left", "line"),
3376
+ class: "vue-ui-xy-tag",
3377
+ "data-tag": "left",
3378
+ style: $({
3379
+ position: "fixed",
3380
+ top: v(_l)({
3381
+ svgElement: ke.value,
3382
+ x: c.value.left - l.value.line.tag.fontSize / 1.5,
3383
+ y: a.y,
3384
+ element: Ve.value[`${u}_${s}_left_line`],
3385
+ position: "left"
3386
+ }).top + "px",
3387
+ left: v(_l)({
3388
+ svgElement: ke.value,
3389
+ x: c.value.left - l.value.line.tag.fontSize / 1.5,
3390
+ y: a.y,
3391
+ element: Ve.value[`${u}_${s}_left_line`],
3392
+ position: "left"
3393
+ }).left + "px",
3394
+ height: "fit-content",
3395
+ width: "fit-content",
3396
+ background: e.color,
3397
+ color: v(Ke)(e.color),
3398
+ padding: "0 6px",
3399
+ fontSize: l.value.line.tag.fontSize + "px",
3400
+ opacity: 1
3401
+ })
3402
+ }, [
3403
+ (n(), i("svg", ki, [
3404
+ b("path", {
3405
+ d: "M 0,0 10,10 0,20 Z",
3406
+ fill: e.color,
3407
+ stroke: "none"
3408
+ }, null, 8, wi)
3409
+ ])),
3410
+ b("div", {
3411
+ class: "vue-ui-xy-tag-content",
3412
+ innerHTML: v(pe)(
3413
+ l.value.line.tag.formatter,
3414
+ a.value,
3415
+ e.name,
3416
+ {
3417
+ datapoint: a,
3418
+ seriesIndex: s,
3419
+ serieName: e.name
3420
+ }
3421
+ )
3422
+ }, null, 8, Si)
3423
+ ], 4)) : g("", !0)
3424
+ ], 64))), 128))
3425
+ ], 64))), 128)),
3426
+ (n(!0), i(m, null, _(ll.value, (e, u) => (n(), i(m, {
3427
+ key: `tag_plot_${u}`
3428
+ }, [
3429
+ (n(!0), i(m, null, _(e.plots, (a, s) => (n(), i(m, {
3430
+ key: `tag_plot_${u}_${s}`
3431
+ }, [
3432
+ [C.value, w.value, Ce.value].includes(s) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (n(), i("div", {
3433
+ key: 0,
3434
+ ref_for: !0,
3435
+ ref: (o) => xt(u, s, o, "right", "plot"),
3436
+ class: "vue-ui-xy-tag",
3437
+ "data-tag": "right",
3438
+ style: $({
3439
+ position: "fixed",
3440
+ top: v(_l)({
3441
+ svgElement: ke.value,
3442
+ x: c.value.right + l.value.plot.tag.fontSize / 1.5,
3443
+ y: a.y,
3444
+ element: Ve.value[`${u}_${s}_right_plot`],
3445
+ position: "right"
3446
+ }).top + "px",
3447
+ left: v(_l)({
3448
+ svgElement: ke.value,
3449
+ x: c.value.right + l.value.plot.tag.fontSize / 1.5,
3450
+ y: a.y,
3451
+ element: Ve.value[`${u}_${s}_right_plot`],
3452
+ position: "right"
3453
+ }).left + "px",
3454
+ height: "fit-content",
3455
+ width: "fit-content",
3456
+ background: e.color,
3457
+ color: v(Ke)(e.color),
3458
+ padding: "0 6px",
3459
+ fontSize: l.value.plot.tag.fontSize + "px",
3460
+ opacity: 1
3461
+ })
3462
+ }, [
3463
+ (n(), i("svg", $i, [
3464
+ b("path", {
3465
+ d: "M 0,10 10,0 10,20 Z",
3466
+ fill: e.color,
3467
+ stroke: "none"
3468
+ }, null, 8, _i)
3469
+ ])),
3470
+ b("div", {
3471
+ class: "vue-ui-xy-tag-content",
3472
+ innerHTML: v(pe)(
3473
+ l.value.plot.tag.formatter,
3474
+ a.value,
3475
+ e.name,
3476
+ {
3477
+ datapoint: a,
3478
+ seriesIndex: s,
3479
+ serieName: e.name
3480
+ }
3481
+ )
3482
+ }, null, 8, Li)
3483
+ ], 4)) : g("", !0),
3484
+ [C.value, w.value, Ce.value].includes(s) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (n(), i("div", {
3485
+ key: 1,
3486
+ ref_for: !0,
3487
+ ref: (o) => xt(u, s, o, "left", "plot"),
3488
+ class: "vue-ui-xy-tag",
3489
+ "data-tag": "left",
3490
+ style: $({
3491
+ position: "fixed",
3492
+ top: v(_l)({
3493
+ svgElement: ke.value,
3494
+ x: c.value.left - l.value.plot.tag.fontSize / 1.5,
3495
+ y: a.y,
3496
+ element: Ve.value[`${u}_${s}_left_plot`],
3497
+ position: "left"
3498
+ }).top + "px",
3499
+ left: v(_l)({
3500
+ svgElement: ke.value,
3501
+ x: c.value.left - l.value.plot.tag.fontSize / 1.5,
3502
+ y: a.y,
3503
+ element: Ve.value[`${u}_${s}_left_plot`],
3504
+ position: "left"
3505
+ }).left + "px",
3506
+ height: "fit-content",
3507
+ width: "fit-content",
3508
+ background: e.color,
3509
+ color: v(Ke)(e.color),
3510
+ padding: "0 6px",
3511
+ fontSize: l.value.plot.tag.fontSize + "px",
3512
+ opacity: 1
3513
+ })
3514
+ }, [
3515
+ (n(), i("svg", Mi, [
3516
+ b("path", {
3517
+ d: "M 0,0 10,10 0,20 Z",
3518
+ fill: e.color,
3519
+ stroke: "none"
3520
+ }, null, 8, Ai)
3521
+ ])),
3522
+ b("div", {
3523
+ class: "vue-ui-xy-tag-content",
3524
+ innerHTML: v(pe)(
3525
+ l.value.plot.tag.formatter,
3526
+ a.value,
3527
+ e.name,
3528
+ {
3529
+ datapoint: a,
3530
+ seriesIndex: s,
3531
+ serieName: e.name
3532
+ }
3533
+ )
3534
+ }, null, 8, Ci)
3535
+ ], 4)) : g("", !0)
3536
+ ], 64))), 128))
3537
+ ], 64))), 128)),
3538
+ l.value.chart.zoom.preview.enable ? (n(), i(m, { key: 5 }, [
3539
+ l.value.chart.zoom.show && f.value > 6 && Cl.value ? (n(), Ue(nu, {
3540
+ ref_key: "chartSlicer",
3541
+ ref: Ae,
3542
+ key: `slicer_${ye.value}`,
3543
+ background: l.value.chart.zoom.color,
3544
+ fontSize: l.value.chart.zoom.fontSize,
3545
+ useResetSlot: l.value.chart.zoom.useResetSlot,
3546
+ labelLeft: q.value[0] ? q.value[0].text : "",
3547
+ labelRight: q.value.at(-1) ? q.value.at(-1).text : "",
3548
+ textColor: l.value.chart.color,
3549
+ inputColor: l.value.chart.zoom.color,
3550
+ selectColor: l.value.chart.zoom.highlightColor,
3551
+ borderColor: l.value.chart.backgroundColor,
3552
+ minimap: va.value,
3553
+ smoothMinimap: l.value.chart.zoom.minimap.smooth,
3554
+ minimapSelectedColor: l.value.chart.zoom.minimap.selectedColor,
3555
+ minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
3556
+ minimapLineColor: l.value.chart.zoom.minimap.lineColor,
3557
+ minimapSelectedColorOpacity: l.value.chart.zoom.minimap.selectedColorOpacity,
3558
+ minimapSelectedIndex: w.value,
3559
+ minimapIndicatorColor: l.value.chart.zoom.minimap.indicatorColor,
3560
+ verticalHandles: l.value.chart.zoom.minimap.verticalHandles,
3561
+ max: f.value,
3562
+ min: 0,
3563
+ valueStart: d.value.start,
3564
+ valueEnd: d.value.end,
3565
+ start: d.value.start,
3566
+ "onUpdate:start": r[1] || (r[1] = (e) => d.value.start = e),
3567
+ end: d.value.end,
3568
+ "onUpdate:end": r[2] || (r[2] = (e) => d.value.end = e),
3569
+ refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
3570
+ refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...A.dataset.map((e) => v(Ze)({ data: e.series, threshold: l.value.downsample.threshold }).length)),
3571
+ enableRangeHandles: l.value.chart.zoom.enableRangeHandles,
3572
+ enableSelectionDrag: l.value.chart.zoom.enableSelectionDrag,
3573
+ onReset: ta,
3574
+ onTrapMouse: ea,
3575
+ onFutureStart: r[3] || (r[3] = (e) => pl("start", e)),
3576
+ onFutureEnd: r[4] || (r[4] = (e) => pl("end", e)),
3577
+ timeLabels: Wa.value,
3578
+ isPreview: ze.value
3579
+ }, {
3580
+ "reset-action": me(({ reset: e }) => [
3581
+ J(t.$slots, "reset-action", rl($l({ reset: e })), void 0, !0)
3582
+ ]),
3583
+ _: 3
3584
+ }, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "timeLabels", "isPreview"])) : g("", !0)
3585
+ ], 64)) : (n(), i(m, { key: 6 }, [
3586
+ l.value.chart.zoom.show && f.value > 6 && Cl.value ? (n(), Ue(Vo, {
3587
+ ref_key: "chartSlicer",
3588
+ ref: Ae,
3589
+ key: `slicer_${ye.value}`,
3590
+ background: l.value.chart.zoom.color,
3591
+ fontSize: l.value.chart.zoom.fontSize,
3592
+ useResetSlot: l.value.chart.zoom.useResetSlot,
3593
+ labelLeft: q.value[0] ? q.value[0].text : "",
3594
+ labelRight: q.value.at(-1) ? q.value.at(-1).text : "",
3595
+ textColor: l.value.chart.color,
3596
+ inputColor: l.value.chart.zoom.color,
3597
+ selectColor: l.value.chart.zoom.highlightColor,
3598
+ borderColor: l.value.chart.backgroundColor,
3599
+ minimap: va.value,
3600
+ smoothMinimap: l.value.chart.zoom.minimap.smooth,
3601
+ minimapSelectedColor: l.value.chart.zoom.minimap.selectedColor,
3602
+ minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
3603
+ minimapLineColor: l.value.chart.zoom.minimap.lineColor,
3604
+ minimapSelectedColorOpacity: l.value.chart.zoom.minimap.selectedColorOpacity,
3605
+ minimapSelectedIndex: w.value,
3606
+ minimapIndicatorColor: l.value.chart.zoom.minimap.indicatorColor,
3607
+ verticalHandles: l.value.chart.zoom.minimap.verticalHandles,
3608
+ max: f.value,
3609
+ min: 0,
3610
+ valueStart: d.value.start,
3611
+ valueEnd: d.value.end,
3612
+ start: d.value.start,
3613
+ "onUpdate:start": r[5] || (r[5] = (e) => d.value.start = e),
3614
+ end: d.value.end,
3615
+ "onUpdate:end": r[6] || (r[6] = (e) => d.value.end = e),
3616
+ refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
3617
+ refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...A.dataset.map((e) => v(Ze)({ data: e.series, threshold: l.value.downsample.threshold }).length)),
3618
+ enableRangeHandles: l.value.chart.zoom.enableRangeHandles,
3619
+ enableSelectionDrag: l.value.chart.zoom.enableSelectionDrag,
3620
+ onReset: ta,
3621
+ onTrapMouse: ea
3622
+ }, {
3623
+ "reset-action": me(({ reset: e }) => [
3624
+ J(t.$slots, "reset-action", rl($l({ reset: e })), void 0, !0)
3625
+ ]),
3626
+ _: 3
3627
+ }, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : g("", !0)
3628
+ ], 64)),
3629
+ l.value.chart.legend.show ? (n(), i("div", {
3630
+ key: 7,
3631
+ ref_key: "chartLegend",
3632
+ ref: dl,
3633
+ class: "vue-ui-xy-legend",
3634
+ style: $(`font-size:${l.value.chart.legend.fontSize}px`)
3635
+ }, [
3636
+ (n(!0), i(m, null, _(el.value, (e, u) => (n(), i("div", {
3637
+ key: `div_legend_item_${u}`,
3638
+ onClick: (a) => ra(e),
3639
+ class: Oe({ "vue-ui-xy-legend-item-alone": el.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ae.value.includes(e.id) })
3640
+ }, [
3641
+ gl.value[e.type] === "line" ? (n(), i("svg", Ii, [
3642
+ b("rect", {
3643
+ x: "0",
3644
+ y: "7.5",
3645
+ rx: "1.5",
3646
+ stroke: l.value.chart.backgroundColor,
3647
+ "stroke-width": 0.5,
3648
+ height: "3",
3649
+ width: "20",
3650
+ fill: e.color
3651
+ }, null, 8, Ti),
3652
+ ql(At, {
3653
+ plot: { x: 10, y: 9 },
3654
+ radius: 4,
3655
+ color: e.color,
3656
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
3657
+ stroke: l.value.chart.backgroundColor,
3658
+ strokeWidth: 0.5
3659
+ }, null, 8, ["color", "shape", "stroke"])
3660
+ ])) : gl.value[e.type] === "bar" ? (n(), i("svg", Ni, [
3661
+ gl.value[e.type] === "bar" && t.$slots.pattern ? (n(), i("rect", {
3662
+ key: 0,
3663
+ x: "0",
3664
+ y: "0",
3665
+ rx: "1",
3666
+ height: "40",
3667
+ width: "40",
3668
+ stroke: "none",
3669
+ fill: e.color
3670
+ }, null, 8, Oi)) : g("", !0),
3671
+ gl.value[e.type] === "bar" ? (n(), i("rect", {
3672
+ key: 1,
3673
+ x: "0",
3674
+ y: "0",
3675
+ rx: "1",
3676
+ height: "40",
3677
+ width: "40",
3678
+ stroke: "none",
3679
+ fill: t.$slots.pattern ? `url(#pattern_${Q.value}_${e.slotAbsoluteIndex})` : e.color
3680
+ }, null, 8, Ri)) : g("", !0)
3681
+ ])) : (n(), i("svg", Pi, [
3682
+ ql(At, {
3683
+ plot: { x: 6, y: 6 },
3684
+ radius: 5,
3685
+ color: e.color,
3686
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle"
3687
+ }, null, 8, ["color", "shape"])
3688
+ ])),
3689
+ b("span", {
3690
+ style: $(`color:${l.value.chart.legend.color}`)
3691
+ }, te(e.name), 5)
3692
+ ], 10, zi))), 128))
3693
+ ], 4)) : (n(), i("div", {
3694
+ key: 8,
3695
+ ref_key: "chartLegend",
3696
+ ref: dl
3697
+ }, [
3698
+ J(t.$slots, "legend", { legend: el.value }, void 0, !0)
3699
+ ], 512)),
3700
+ t.$slots.source ? (n(), i("div", {
3701
+ key: 9,
3702
+ ref_key: "source",
3703
+ ref: Ml,
3704
+ dir: "auto"
3705
+ }, [
3706
+ J(t.$slots, "source", {}, void 0, !0)
3707
+ ], 512)) : g("", !0),
3708
+ ql(v(de), {
3709
+ show: y.value.showTooltip && El.value,
3710
+ backgroundColor: l.value.chart.tooltip.backgroundColor,
3711
+ color: l.value.chart.tooltip.color,
3712
+ fontSize: l.value.chart.tooltip.fontSize,
3713
+ borderRadius: l.value.chart.tooltip.borderRadius,
3714
+ borderColor: l.value.chart.tooltip.borderColor,
3715
+ borderWidth: l.value.chart.tooltip.borderWidth,
3716
+ backgroundOpacity: l.value.chart.tooltip.backgroundOpacity,
3717
+ position: l.value.chart.tooltip.position,
3718
+ offsetY: l.value.chart.tooltip.offsetY,
3719
+ parent: t.$refs.chart,
3720
+ content: ao.value,
3721
+ isFullscreen: nl.value,
3722
+ isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function",
3723
+ smooth: l.value.chart.tooltip.smooth,
3724
+ backdropFilter: l.value.chart.tooltip.backdropFilter
3725
+ }, {
3726
+ "tooltip-before": me(() => [
3727
+ J(t.$slots, "tooltip-before", rl($l({ ...ga.value })), void 0, !0)
3728
+ ]),
3729
+ "tooltip-after": me(() => [
3730
+ J(t.$slots, "tooltip-after", rl($l({ ...ga.value })), void 0, !0)
3731
+ ]),
3732
+ _: 3
3733
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
3734
+ Cl.value ? (n(), Ue(v(Rl), {
3735
+ key: 10,
3736
+ hideDetails: "",
3737
+ config: {
3738
+ open: y.value.showTable,
3739
+ maxHeight: 1e4,
3740
+ body: {
3741
+ backgroundColor: l.value.chart.backgroundColor,
3742
+ color: l.value.chart.color
3743
+ },
3744
+ head: {
3745
+ backgroundColor: l.value.chart.backgroundColor,
3746
+ color: l.value.chart.color
3747
+ }
3748
+ }
3749
+ }, {
3750
+ content: me(() => [
3751
+ b("div", {
3752
+ style: $(`${v(et) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
3753
+ }, [
3754
+ b("div", Hi, [
3755
+ Yt(b("input", {
3756
+ type: "checkbox",
3757
+ "onUpdate:modelValue": r[7] || (r[7] = (e) => _e.value = e)
3758
+ }, null, 512), [
3759
+ [ho, _e.value]
3760
+ ]),
3761
+ b("div", {
3762
+ onClick: r[8] || (r[8] = (e) => _e.value = !_e.value),
3763
+ style: { cursor: "pointer" }
3764
+ }, [
3765
+ ql(v(Ll), {
3766
+ name: "chartLine",
3767
+ size: 20,
3768
+ stroke: l.value.chart.color
3769
+ }, null, 8, ["stroke"])
3770
+ ])
3771
+ ]),
3772
+ _e.value ? (n(), Ue(v(Jl), {
3773
+ key: `sparkline_${He.value}`,
3774
+ dataset: eo.value,
3775
+ config: lo.value
3776
+ }, null, 8, ["dataset", "config"])) : (n(), Ue(v(Re), {
3777
+ key: `table_${dt.value}`,
3778
+ colNames: $t.value.colNames,
3779
+ head: $t.value.head,
3780
+ body: $t.value.body,
3781
+ config: $t.value.config,
3782
+ title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? ` : ${l.value.chart.title.subtitle.text}` : ""}`,
3783
+ onClose: r[9] || (r[9] = (e) => y.value.showTable = !1)
3784
+ }, {
3785
+ th: me(({ th: e }) => [
3786
+ b("div", { innerHTML: e }, null, 8, Vi)
3787
+ ]),
3788
+ td: me(({ td: e }) => [
3789
+ fo(te(isNaN(Number(e)) ? e : v(Fe)({
3790
+ p: l.value.chart.labels.prefix,
3791
+ v: e,
3792
+ s: l.value.chart.labels.suffix,
3793
+ r: l.value.table.rounding
3794
+ })), 1)
3795
+ ]),
3796
+ _: 1
3797
+ }, 8, ["colNames", "head", "body", "config", "title"]))
3798
+ ], 4)
3799
+ ]),
3800
+ _: 1
3801
+ }, 8, ["config"])) : g("", !0),
3802
+ v(ie) ? (n(), Ue(Oo, { key: 11 })) : g("", !0)
3803
+ ], 46, iu));
3804
+ }
3805
+ }, es = /* @__PURE__ */ Oa(Ei, [["__scopeId", "data-v-71f8f3f4"]]);
3806
+ export {
3807
+ es as default
3808
+ };