vue-data-ui 3.25.2 → 3.25.4

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 (194) hide show
  1. package/dist/{Arrow-CL6s6WpN.js → Arrow-DLn-pcrh.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Cwj9aGdF.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
  3. package/dist/{BaseIcon-Oj70ytWI.js → BaseIcon-t83PDe9k.js} +1 -1
  4. package/dist/{BaseLegendToggle-Cvuc-Mrr.js → BaseLegendToggle-__JnV08B.js} +1 -1
  5. package/dist/{BaseZoomControls-xstFfEqA.js → BaseZoomControls-Xo16vFa4.js} +2 -2
  6. package/dist/{ColorPicker-sZV-tVqO.js → ColorPicker-ZJrR3Olp.js} +2 -2
  7. package/dist/{DataTable-DcDMoMmQ.js → DataTable-COIO9gi4.js} +2 -2
  8. package/dist/{HillActions-BGA3Up35.js → HillActions-Cl-dNBZR.js} +1 -1
  9. package/dist/{Legend-BQxAKh7g.js → Legend-X4kF4PvW.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-1xl1Xynb.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
  11. package/dist/{PackageVersion-DWq6mo_q.js → PackageVersion-5SWftabm.js} +1 -1
  12. package/dist/{PenAndPaper-Co2OSRzH.js → PenAndPaper-B_SdRSKH.js} +12 -12
  13. package/dist/{Shape-26P9pTZH.js → Shape-CIqU-p2F.js} +1 -1
  14. package/dist/{SlicerPreview-CPhQI1vX.js → SlicerPreview-GvsdvE-h.js} +27 -27
  15. package/dist/{SparkTooltip-CQDq9mwg.js → SparkTooltip-C-Y-mDrc.js} +1 -1
  16. package/dist/{Title-BLrnZl5j.js → Title-CPHi-evi.js} +1 -1
  17. package/dist/{Tooltip-CmmM0DtW.js → Tooltip-hhrkQ3Lk.js} +1 -1
  18. package/dist/{UserOptions-pq95M7ss.js → UserOptions-f3Q0nqrj.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-C2hxsVHU.js → dom-to-png-C6cQJ5Hq.js} +1 -1
  91. package/dist/{exposedLib-CHbGXzAI.js → exposedLib-CG3aXJ-v.js} +9 -9
  92. package/dist/{img-EYBQVkRw.js → img-DhGApYG0.js} +1 -1
  93. package/dist/{labelUtils-Ba5vMXV8.js → labelUtils-BXX2NzRe.js} +1 -1
  94. package/dist/{lib-BPg41jWd.js → lib-Dql7cqyA.js} +202 -168
  95. package/dist/{package-ciWqdXC5.js → package-DmsdiyeS.js} +1 -1
  96. package/dist/{pdf-BoZtb_Ft.js → pdf-Di5yPEw9.js} +1 -1
  97. package/dist/{render-common-BEWzwi32.js → render-common-zoPh9a78.js} +2 -2
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/{useNestedProp-fNUUtYXm.js → useNestedProp-Chvyfpl-.js} +1 -1
  103. package/dist/{usePrinter-CsDAx75S.js → usePrinter-DISD7q5m.js} +2 -2
  104. package/dist/utils.js +2 -2
  105. package/dist/{vue-data-ui-BHRh3z_-.js → vue-data-ui-DTj71yB7.js} +70 -70
  106. package/dist/vue-data-ui.js +73 -73
  107. package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
  108. package/dist/{vue-ui-accordion-BGxpEtfk.js → vue-ui-accordion-D4zsdacF.js} +3 -3
  109. package/dist/{vue-ui-age-pyramid-CYHqR2NK.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
  110. package/dist/{vue-ui-annotator-Q5zC15Pp.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
  111. package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
  112. package/dist/{vue-ui-bump-DkntyN9G.js → vue-ui-bump-BkOtQNWe.js} +54 -54
  113. package/dist/{vue-ui-candlestick-Cz0s9M9a.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
  114. package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
  115. package/dist/{vue-ui-chestnut-iwScoeK0.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
  116. package/dist/{vue-ui-chord-Bl_91Sut.js → vue-ui-chord-DQRBgVOx.js} +31 -31
  117. package/dist/{vue-ui-circle-pack-Dm9BU5Kl.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
  118. package/dist/{vue-ui-cursor-D_bkWVNS.js → vue-ui-cursor-BHyXRadA.js} +3 -3
  119. package/dist/{vue-ui-dag-CF4YxXqU.js → vue-ui-dag-CyVqaLbF.js} +75 -75
  120. package/dist/{vue-ui-dashboard-Bwhlqoe4.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
  121. package/dist/{vue-ui-digits-CXM0xSi6.js → vue-ui-digits-BBL8uERO.js} +3 -3
  122. package/dist/{vue-ui-donut-DEn7HF5c.js → vue-ui-donut-DcgUuefk.js} +101 -101
  123. package/dist/vue-ui-donut-DfiocufT.js +2413 -0
  124. package/dist/{vue-ui-donut-evolution-Z7fpl7Zf.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
  125. package/dist/{vue-ui-dumbbell-BEFPs0t1.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
  126. package/dist/{vue-ui-flow-DAId7lkh.js → vue-ui-flow-CoylrfnO.js} +40 -40
  127. package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
  128. package/dist/{vue-ui-galaxy-So95hmON.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
  129. package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
  130. package/dist/{vue-ui-geo-MTJoJ3_A.js → vue-ui-geo-jR4P4pbt.js} +36 -36
  131. package/dist/{vue-ui-gizmo-D9tbjzYe.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
  132. package/dist/{vue-ui-heatmap-DRdQFkV_.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
  133. package/dist/{vue-ui-hill-CdtIsBTO.js → vue-ui-hill-fFq7pm-g.js} +9 -9
  134. package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
  135. package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
  136. package/dist/{vue-ui-kpi-DHDy4LcL.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
  137. package/dist/{vue-ui-label-Bm5iMSie.js → vue-ui-label-BSgLalWD.js} +64 -64
  138. package/dist/{vue-ui-mini-loader-EK0wtL10.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
  139. package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
  140. package/dist/{vue-ui-mood-radar-CTiFn6bj.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
  141. package/dist/{vue-ui-nested-donuts-DKzeriUP.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
  142. package/dist/{vue-ui-onion-C3ZiE1dn.js → vue-ui-onion-B7oFulsQ.js} +119 -119
  143. package/dist/{vue-ui-parallel-coordinate-plot-D1xAQ_qP.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
  144. package/dist/{vue-ui-quadrant-B82S1-8b.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
  145. package/dist/{vue-ui-quick-chart-BeIZ2KVy.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
  146. package/dist/{vue-ui-radar-Bh7LKVWz.js → vue-ui-radar-Bzx69q8f.js} +311 -311
  147. package/dist/{vue-ui-rating-AbGGnd-1.js → vue-ui-rating-CimC9FQ9.js} +2 -2
  148. package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
  149. package/dist/{vue-ui-ridgeline-BmmcBvtt.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
  150. package/dist/{vue-ui-rings-Bx3lTcrM.js → vue-ui-rings-qPL5Iwji.js} +327 -327
  151. package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
  152. package/dist/{vue-ui-skeleton-GSfVAGm5.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
  153. package/dist/{vue-ui-smiley-CVQ85iFx.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
  154. package/dist/{vue-ui-spark-trend-BVS__UWD.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
  155. package/dist/{vue-ui-sparkbar-C-xEaUvd.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
  156. package/dist/{vue-ui-sparkgauge-_XSE8M-e.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
  157. package/dist/{vue-ui-sparkhistogram-DUM6ygCM.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
  158. package/dist/{vue-ui-sparkline-Dg9fXwZG.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
  159. package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
  160. package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
  161. package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
  162. package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
  163. package/dist/vue-ui-table-BQna1wL6.js +1352 -0
  164. package/dist/{vue-ui-table-heatmap-DgFFlNnz.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
  165. package/dist/{vue-ui-table-sparkline-BsVOuCvB.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
  166. package/dist/{vue-ui-thermometer-DOECuI2_.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
  167. package/dist/{vue-ui-timer-B2Cd2bc6.js → vue-ui-timer-CvHP4HoW.js} +5 -5
  168. package/dist/{vue-ui-tiremarks-CrnFAVS8.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
  169. package/dist/{vue-ui-treemap-DHZ6BvAc.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
  170. package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
  171. package/dist/{vue-ui-wheel-7U-O7-xN.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
  172. package/dist/{vue-ui-word-cloud-CVsvKOiI.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
  173. package/dist/{vue-ui-world-B9VGieBA.js → vue-ui-world-D0_2upjg.js} +116 -116
  174. package/dist/{vue-ui-xy-chRPjTTj.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
  175. package/dist/{vue-ui-xy-CNy0avUa.js → vue-ui-xy-D_5FfaH-.js} +423 -422
  176. package/dist/{vue-ui-xy-canvas-B9kzEFnY.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
  177. package/package.json +1 -1
  178. package/dist/vue-ui-3d-bar-DUbSp0so.js +0 -1829
  179. package/dist/vue-ui-bullet-DOF7UCo_.js +0 -700
  180. package/dist/vue-ui-carousel-table-f3ddW3LA.js +0 -467
  181. package/dist/vue-ui-donut-BfehCl28.js +0 -2413
  182. package/dist/vue-ui-funnel-D6Hvhb_C.js +0 -747
  183. package/dist/vue-ui-gauge-Cs96ssGw.js +0 -932
  184. package/dist/vue-ui-history-plot-BaVZe6Fy.js +0 -1696
  185. package/dist/vue-ui-horizontal-bar-DETeVTOn.js +0 -1709
  186. package/dist/vue-ui-molecule-Dt31r51l.js +0 -929
  187. package/dist/vue-ui-relation-circle-4ZeUHCx_.js +0 -903
  188. package/dist/vue-ui-scatter-Vw4JbCjp.js +0 -2403
  189. package/dist/vue-ui-sparkstackbar-8-iyImVK.js +0 -738
  190. package/dist/vue-ui-stackbar-zl-GieBs.js +0 -2349
  191. package/dist/vue-ui-stackline-HcXMSuwS.js +0 -2463
  192. package/dist/vue-ui-strip-plot-B_q_YQiP.js +0 -1738
  193. package/dist/vue-ui-table-CftOhYTO.js +0 -1352
  194. package/dist/vue-ui-waffle-Ca4QSb5z.js +0 -1619
@@ -0,0 +1,2467 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, Ct as n, D as r, Jt as i, Lt as a, M as o, P as s, Pt as c, S as l, Ut as u, V as d, X as f, Yt as p, Zt as m, _ as h, b as g, bt as _, c as ee, ft as te, ht as ne, i as v, jt as re, lt as ie, nt as ae, pt as oe, q as se, qt as ce, st as le, t as ue, v as de, w as fe, wt as pe, z as me } from "./lib-Dql7cqyA.js";
3
+ import { n as he, t as ge } from "./useHints-Dq_w2E8B.js";
4
+ import { n as _e, r as ve, t as ye } from "./useTimeLabels-d2f-W1L4.js";
5
+ import { t as be } from "./useConfig-CyCVHo81.js";
6
+ import { t as xe } from "./usePrinter-DISD7q5m.js";
7
+ import { n as Se, t as Ce } from "./BaseScanner-DZvpgOjM.js";
8
+ import { t as we } from "./useNestedProp-Chvyfpl-.js";
9
+ import { t as Te } from "./useThemeCheck-C43Tcqmk.js";
10
+ import { t as Ee } from "./useChartExport-iwOqiIWX.js";
11
+ import { t as De } from "./useTransitions-g_zBREk2.js";
12
+ import { t as Oe } from "./useStableElementSize-C7KADDKj.js";
13
+ import { t as ke } from "./useTimeLabelCollider-AEcY4Ioe.js";
14
+ import { t as Ae } from "./img-DhGApYG0.js";
15
+ import { n as je } from "./Title-CPHi-evi.js";
16
+ import { t as Me } from "./Shape-CIqU-p2F.js";
17
+ import { t as Ne } from "./_plugin-vue_export-helper-B3ysoDQm.js";
18
+ import { l as Pe, t as Fe } from "./useResponsive-ZtArZtUf.js";
19
+ import { t as Ie } from "./DefGrad-DVBqDjhO.js";
20
+ import { t as Le } from "./SlicerPreview-GvsdvE-h.js";
21
+ import { t as Re } from "./BaseLegendToggle-__JnV08B.js";
22
+ import { t as ze } from "./A11yDataTable-DdRsVULz.js";
23
+ import { t as Be } from "./useUserOptionState-DK-_1ddE.js";
24
+ import { t as Ve } from "./useChartAccessibility-DYqac8yF.js";
25
+ import { t as He } from "./Legend-X4kF4PvW.js";
26
+ import { t as Ue } from "./vue_ui_stackline-DQqKPA9z.js";
27
+ import { Fragment as y, Teleport as We, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Ge, createTextVNode as Ke, createVNode as qe, defineAsyncComponent as Je, guardReactiveProps as T, mergeProps as Ye, nextTick as Xe, normalizeClass as Ze, normalizeProps as E, normalizeStyle as Qe, onBeforeUnmount as $e, onMounted as et, openBlock as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as tt, shallowRef as nt, toDisplayString as j, toRefs as rt, unref as M, useSlots as it, watch as at, watchEffect as ot, withCtx as N } from "vue";
28
+ //#region src/components/vue-ui-stackline.vue
29
+ var st = /* @__PURE__ */ e({ default: () => Gt }), ct = ["id"], lt = ["id"], ut = ["id"], dt = { style: { position: "relative" } }, ft = [
30
+ "aria-describedby",
31
+ "xmlns",
32
+ "viewBox"
33
+ ], pt = { key: 0 }, mt = [
34
+ "x",
35
+ "y",
36
+ "width",
37
+ "height"
38
+ ], ht = { key: 1 }, gt = [
39
+ "x1",
40
+ "x2",
41
+ "y1",
42
+ "y2",
43
+ "stroke",
44
+ "stroke-width",
45
+ "stroke-dasharray"
46
+ ], _t = [
47
+ "x1",
48
+ "x2",
49
+ "y1",
50
+ "y2",
51
+ "stroke",
52
+ "stroke-width",
53
+ "stroke-dasharray"
54
+ ], vt = [
55
+ "x1",
56
+ "x2",
57
+ "y1",
58
+ "y2",
59
+ "stroke",
60
+ "stroke-width"
61
+ ], yt = [
62
+ "x1",
63
+ "x2",
64
+ "y1",
65
+ "y2",
66
+ "stroke",
67
+ "stroke-width"
68
+ ], bt = [
69
+ "x",
70
+ "y",
71
+ "font-size",
72
+ "fill",
73
+ "font-weight"
74
+ ], xt = [
75
+ "transform",
76
+ "font-size",
77
+ "fill",
78
+ "font-weight"
79
+ ], St = [
80
+ "x",
81
+ "y",
82
+ "width",
83
+ "height",
84
+ "stroke",
85
+ "stroke-width",
86
+ "stroke-linecap",
87
+ "stroke-linejoin",
88
+ "stroke-dasharray"
89
+ ], Ct = [
90
+ "d",
91
+ "fill",
92
+ "opacity"
93
+ ], wt = [
94
+ "d",
95
+ "stroke",
96
+ "stroke-width"
97
+ ], Tt = [
98
+ "x1",
99
+ "x2",
100
+ "y1",
101
+ "y2",
102
+ "stroke"
103
+ ], Et = [
104
+ "transform",
105
+ "font-size",
106
+ "font-weight",
107
+ "fill",
108
+ "text-anchor"
109
+ ], Dt = { key: 0 }, Ot = { key: 1 }, kt = [
110
+ "text-anchor",
111
+ "font-size",
112
+ "font-weight",
113
+ "fill",
114
+ "stroke",
115
+ "transform",
116
+ "onClick"
117
+ ], At = [
118
+ "text-anchor",
119
+ "font-size",
120
+ "fill",
121
+ "transform",
122
+ "innerHTML",
123
+ "onClick"
124
+ ], jt = [
125
+ "x",
126
+ "y",
127
+ "height",
128
+ "width",
129
+ "fill"
130
+ ], Mt = { key: 0 }, Nt = [
131
+ "x1",
132
+ "x2",
133
+ "y1",
134
+ "y2",
135
+ "stroke",
136
+ "stroke-width",
137
+ "stroke-dasharray"
138
+ ], Pt = { key: 0 }, Ft = [
139
+ "transform",
140
+ "font-size",
141
+ "fill",
142
+ "font-weight"
143
+ ], It = [
144
+ "transform",
145
+ "font-size",
146
+ "font-weight",
147
+ "fill"
148
+ ], Lt = ["data-start", "data-end"], Rt = {
149
+ key: 0,
150
+ style: {
151
+ position: "absolute",
152
+ top: "100%",
153
+ left: "0",
154
+ width: "100%"
155
+ },
156
+ "data-dom-to-png-ignore": "",
157
+ "aria-hidden": "true"
158
+ }, zt = {
159
+ key: 5,
160
+ class: "vue-data-ui-watermark"
161
+ }, Bt = ["onClick"], Vt = { key: 0 }, Ht = { key: 1 }, Ut = ["innerHTML"], Wt = ["id"], Gt = /*#__PURE__*/ Ne({
162
+ __name: "vue-ui-stackline",
163
+ props: {
164
+ config: {
165
+ type: Object,
166
+ default() {
167
+ return {};
168
+ }
169
+ },
170
+ dataset: {
171
+ type: Array,
172
+ default() {
173
+ return [];
174
+ }
175
+ },
176
+ selectedXIndex: {
177
+ type: Number,
178
+ default: void 0
179
+ }
180
+ },
181
+ emits: [
182
+ "selectDatapoint",
183
+ "selectLegend",
184
+ "selectTimeLabel",
185
+ "selectX",
186
+ "copyAlt"
187
+ ],
188
+ setup(e, { expose: Ne, emit: st }) {
189
+ let Gt = Je(() => import("./Tooltip-hhrkQ3Lk.js")), Kt = Je(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), qt = Je(() => import("./vue-ui-accordion-D4zsdacF.js").then((e) => e.n)), Jt = Je(() => import("./DataTable-COIO9gi4.js")), Yt = Je(() => import("./PenAndPaper-B_SdRSKH.js").then((e) => e.t)), Xt = Je(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Zt = Je(() => import("./PackageVersion-5SWftabm.js").then((e) => e.t)), Qt = Je(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_stackline: $t } = be(), { isThemeValid: en, warnInvalidTheme: tn } = Te(), nn = it(), P = e, rn = st, an = b({
190
+ get() {
191
+ return !!P.dataset && P.dataset.length;
192
+ },
193
+ set(e) {
194
+ return e;
195
+ }
196
+ }), F = O(null), I = O(se()), on = O(!1), L = O([]), sn = O(0), cn = O(null), ln = O(null), un = O(null), dn = O(null), fn = O(null), pn = O(!1), mn = O(!1), hn = O(0), gn = O(0), _n = O(0), vn = O(!1), yn = O(null), bn = O(null), xn = O(!1), Sn = O(null), Cn = O(null), wn = O(null), Tn = O(null), En = O(null), Dn = nt(null), On = O(!1), kn = O(0), An = O(0), R = O(null), jn = O({
197
+ x: 0,
198
+ y: 0
199
+ }), Mn = O("pointer"), Nn = Oe({
200
+ elementRef: Dn,
201
+ minimumWidth: 2,
202
+ minimumHeight: 2,
203
+ stableFramesRequired: 2,
204
+ once: !1,
205
+ onSizeAccepted: () => {
206
+ In();
207
+ }
208
+ });
209
+ function Pn() {
210
+ Dn.value = F.value?.parentNode ?? null;
211
+ }
212
+ function Fn() {
213
+ return new Promise((e) => {
214
+ requestAnimationFrame(() => {
215
+ requestAnimationFrame(e);
216
+ });
217
+ });
218
+ }
219
+ async function In() {
220
+ let e = ++An.value;
221
+ On.value = !1, await Xe(), await Fn(), await Fn(), e === An.value && (kn.value += 1, On.value = !0);
222
+ }
223
+ let Ln = O(null), Rn = O(!1);
224
+ function zn() {
225
+ Rn.value = !Rn.value;
226
+ }
227
+ et(() => {
228
+ Pn(), Nn.start(), vn.value = !0, lr(), In();
229
+ });
230
+ let z = O(Xn());
231
+ he({
232
+ config: () => z.value,
233
+ dataset: () => P.dataset,
234
+ component: "VueUiStackline",
235
+ rules: [
236
+ ge.emptyArray,
237
+ {
238
+ test: (e) => e.some((e) => e.series.length > 200),
239
+ message: [
240
+ "👀 Some series have > 200 datapoints, which can impact performance. Consider:",
241
+ "",
242
+ "▶️ Aggregating data to larger time units, to reduce the number of datapoints.",
243
+ "",
244
+ "▶️ Using filters to constraint the data to a specific time range."
245
+ ]
246
+ },
247
+ {
248
+ test: (e) => e.length > 6,
249
+ message: [
250
+ "👀 The number of series > 6, which can make the chart hard to read. Consider:",
251
+ "",
252
+ "▶️ Grouping small values into an \"Other\" category.",
253
+ "",
254
+ "▶️ Using filters to let users choose a maximum number of series to display."
255
+ ]
256
+ }
257
+ ]
258
+ });
259
+ let { transitionEnabled: Bn } = De({
260
+ config: () => z.value.transitions,
261
+ dataset: () => P.dataset
262
+ }), B = b(() => z.value.userOptions.useCursorPointer), Vn = b(() => m({
263
+ defaultConfig: {
264
+ userOptions: { show: !1 },
265
+ useCssAnimation: !1,
266
+ table: { show: !1 },
267
+ tooltip: { show: !1 },
268
+ style: { chart: {
269
+ backgroundColor: "#99999930",
270
+ lines: {
271
+ totalValues: { show: !1 },
272
+ dataLabels: { show: !1 }
273
+ },
274
+ grid: {
275
+ frame: { stroke: "#6A6A6A" },
276
+ scale: {
277
+ scaleMin: 0,
278
+ scaleMax: 144
279
+ },
280
+ x: {
281
+ axisColor: "#6A6A6A",
282
+ linesColor: "#6A6A6A",
283
+ axisName: { show: !1 },
284
+ timeLabels: { show: !1 }
285
+ },
286
+ y: {
287
+ axisColor: "#6A6A6A",
288
+ linesColor: "#6A6A6A",
289
+ axisName: { show: !1 },
290
+ axisLabels: { show: !1 }
291
+ }
292
+ },
293
+ legend: { backgroundColor: "transparent" },
294
+ padding: {
295
+ left: 24,
296
+ right: 24,
297
+ bottom: 12
298
+ },
299
+ zoom: {
300
+ show: !1,
301
+ startIndex: null,
302
+ endIndex: null,
303
+ keepState: !1
304
+ }
305
+ } }
306
+ },
307
+ userConfig: z.value.skeletonConfig ?? {}
308
+ })), { loading: Hn, FINAL_DATASET: Un, manualLoading: Wn } = Se({
309
+ ...rt(P),
310
+ FINAL_CONFIG: z,
311
+ prepareConfig: Xn,
312
+ callback: () => {
313
+ Promise.resolve().then(async () => {
314
+ (!z.value.style.chart.zoom.keepState || !ti.value || q.value.start === 0 && q.value.end === 0) && await ri();
315
+ });
316
+ },
317
+ skeletonDataset: P.config?.skeletonDataset ?? [{
318
+ name: "",
319
+ series: [
320
+ 3,
321
+ 2,
322
+ 1,
323
+ 5,
324
+ 13,
325
+ 21,
326
+ 8,
327
+ 89,
328
+ 34,
329
+ 55
330
+ ],
331
+ color: "#8A8A8A"
332
+ }, {
333
+ name: "",
334
+ series: [
335
+ 1,
336
+ 2,
337
+ 3,
338
+ 5,
339
+ 8,
340
+ 13,
341
+ 21,
342
+ 34,
343
+ 55,
344
+ 89
345
+ ],
346
+ color: "#CACACA"
347
+ }],
348
+ skeletonConfig: m({
349
+ defaultConfig: z.value,
350
+ userConfig: Vn.value
351
+ })
352
+ }), { userOptionsVisible: Gn, setUserOptionsVisibility: Kn, keepUserOptionState: qn } = Be({ config: z.value }), { svgRef: V } = Ve({ config: z.value.style.chart.title });
353
+ function Jn() {
354
+ xn.value = !0, Kn(!0);
355
+ }
356
+ function Yn() {
357
+ Kn(!1), xn.value = !1, R.value = null, Mn.value = "pointer", on.value = !1, $.value = null, rn("selectX", {
358
+ index: null,
359
+ indexLabel: null,
360
+ dataset: null
361
+ });
362
+ }
363
+ function Xn() {
364
+ let e = we({
365
+ userConfig: P.config,
366
+ defaultConfig: $t
367
+ }), t = {};
368
+ P.config && _(P.config, "style.chart.grid.x.timeLabels.showFirstAndLast") && (e.style.chart.grid.x.timeLabels.showFirstAndLast = !!P.config.style.chart.grid.x.timeLabels.showFirstAndLast);
369
+ let n = e.theme;
370
+ if (n) {
371
+ if (!en.value(e)) tn(e), t = e;
372
+ else {
373
+ let r = we({
374
+ userConfig: Ue[n] || P.config,
375
+ defaultConfig: e
376
+ });
377
+ t = {
378
+ ...we({
379
+ userConfig: P.config,
380
+ defaultConfig: r
381
+ }),
382
+ customPalette: e.customPalette.length ? e.customPalette : p[n] || a
383
+ };
384
+ }
385
+ } else t = e;
386
+ return t;
387
+ }
388
+ let Zn = b(() => z.value.style.chart.lines.dataLabels.hideUnderValue !== null), Qn = b(() => z.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
389
+ at(() => P.config, (e) => {
390
+ Hn.value || (z.value = Xn()), Gn.value = !z.value.userOptions.showOnChartHover, lr({ resetSlicer: !z.value.style.chart.zoom.keepState }), hn.value += 1, gn.value += 1, _n.value += 1, H.value.dataLabels.show = z.value.style.chart.lines.dataLabels.show, H.value.showTable = z.value.table.show, H.value.showTooltip = z.value.style.chart.tooltip.show, U.value.width = z.value.style.chart.width, U.value.height = z.value.style.chart.height, U.value.paddingRatio = {
391
+ top: z.value.style.chart.padding.top / z.value.style.chart.height,
392
+ right: z.value.style.chart.padding.right / z.value.style.chart.width,
393
+ bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
394
+ left: z.value.style.chart.padding.left / z.value.style.chart.width
395
+ }, Pn(), In(), !z.value.style.chart.zoom.keepState || !ti.value || q.value.start === 0 && q.value.end === 0 ? ri() : Tr();
396
+ }, { deep: !0 }), at(() => P.dataset, (e) => {
397
+ Array.isArray(e) && e.length > 0 && (Wn.value = !1), z.value.style.chart.zoom.keepState ? Tr() : Or(), Pn(), In();
398
+ }, { deep: !0 });
399
+ let H = O({
400
+ dataLabels: { show: z.value.style.chart.lines.dataLabels.show },
401
+ showTable: z.value.table.show,
402
+ showTooltip: z.value.style.chart.tooltip.show
403
+ });
404
+ at(z, () => {
405
+ H.value = {
406
+ dataLabels: { show: z.value.style.chart.lines.dataLabels.show },
407
+ showTable: z.value.table.show,
408
+ showTooltip: z.value.style.chart.tooltip.show
409
+ };
410
+ }, { immediate: !0 });
411
+ let { isPrinting: $n, isImaging: er, generatePdf: tr, generateImage: nr } = xe({
412
+ elementId: `stackline_${I.value}`,
413
+ fileName: z.value.style.chart.title.text || "vue-ui-stackline",
414
+ options: z.value.userOptions.print
415
+ }), rr = b(() => z.value.userOptions.show && !z.value.style.chart.title.text), U = O({
416
+ width: z.value.style.chart.width,
417
+ height: z.value.style.chart.height,
418
+ paddingRatio: {
419
+ top: z.value.style.chart.padding.top / z.value.style.chart.height,
420
+ right: z.value.style.chart.padding.right / z.value.style.chart.width,
421
+ bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
422
+ left: z.value.style.chart.padding.left / z.value.style.chart.width
423
+ }
424
+ }), ir = b(() => fe(z.value.customPalette)), ar = nt(null), or = nt(null), sr = O(null), cr = b(() => z.value.debug);
425
+ function lr({ resetSlicer: e = !0 } = {}) {
426
+ if (c(P.dataset) ? (ae({
427
+ componentName: "VueUiStackline",
428
+ type: "dataset",
429
+ debug: cr.value
430
+ }), Wn.value = !0) : P.dataset.forEach((e, t) => {
431
+ ne({
432
+ datasetObject: e,
433
+ requiredAttributes: ["name", "series"]
434
+ }).forEach((e) => {
435
+ an.value = !1, ae({
436
+ componentName: "VueUiStackline",
437
+ type: "datasetSerieAttribute",
438
+ property: e,
439
+ index: t,
440
+ debug: cr.value
441
+ }), Wn.value = !0;
442
+ });
443
+ }), c(P.dataset) || (Wn.value = z.value.loading), setTimeout(() => {
444
+ mn.value = !0;
445
+ }, 10), z.value.responsive) {
446
+ let e = Pe(() => {
447
+ mn.value = !1;
448
+ let { width: e, height: t } = Fe({
449
+ chart: F.value,
450
+ noTitle: dn.value,
451
+ title: z.value.style.chart.title.text ? cn.value : null,
452
+ legend: z.value.style.chart.legend.show ? ln.value : null,
453
+ slicer: z.value.style.chart.zoom.show && K.value > 6 ? un.value.$el : null,
454
+ source: fn.value
455
+ });
456
+ requestAnimationFrame(() => {
457
+ U.value.width = e, U.value.height = t - 12, clearTimeout(sr.value), sr.value = setTimeout(() => {
458
+ mn.value = !0;
459
+ }, 10);
460
+ });
461
+ });
462
+ ar.value && (or.value && ar.value.unobserve(or.value), ar.value.disconnect()), ar.value = new ResizeObserver(e), or.value = F.value.parentNode, ar.value.observe(or.value);
463
+ }
464
+ e && ri();
465
+ }
466
+ $e(() => {
467
+ Nn.stop(), ar.value && (or.value && ar.value.unobserve(or.value), ar.value.disconnect());
468
+ });
469
+ let ur = b(() => z.value.style.chart.grid.y.position === "right");
470
+ function dr() {
471
+ let e = 0;
472
+ wn.value && (e = Array.from(wn.value.querySelectorAll("text")).reduce((e, t) => {
473
+ let n = t.getComputedTextLength();
474
+ return n > e ? n : e;
475
+ }, 0));
476
+ let t = Cn.value ? Cn.value.getBoundingClientRect().width + z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX : 0;
477
+ return {
478
+ left: ur.value ? 0 : e + t,
479
+ right: ur.value ? e + t : 0,
480
+ scaleLabelsWidth: e,
481
+ yAxisLabelWidth: t
482
+ };
483
+ }
484
+ let fr = O(0), pr = O(0), mr = O(0);
485
+ function hr() {
486
+ let e = Tn.value;
487
+ if (!e) {
488
+ pr.value = 0;
489
+ return;
490
+ }
491
+ try {
492
+ let t = e.getBBox();
493
+ pr.value = Number.isFinite(t?.height) ? t.height : 0;
494
+ } catch {
495
+ pr.value = 0;
496
+ }
497
+ }
498
+ function gr() {
499
+ mr.value && cancelAnimationFrame(mr.value), mr.value = requestAnimationFrame(() => {
500
+ requestAnimationFrame(() => {
501
+ hr();
502
+ });
503
+ });
504
+ }
505
+ $e(() => {
506
+ mr.value && cancelAnimationFrame(mr.value), pr.value = 0, fr.value = 0;
507
+ });
508
+ let _r = b(() => {
509
+ let e = 0;
510
+ if (Sn.value) try {
511
+ e = Sn.value.getBBox().height;
512
+ } catch {
513
+ e = 0;
514
+ }
515
+ let t = z.value.style.chart.grid.x.timeLabels.show ? pr.value : 0;
516
+ return e + t;
517
+ }), W = b(() => {
518
+ kn.value;
519
+ let { height: e, width: t } = U.value, { right: n } = U.value.paddingRatio, r = z.value.style.chart.lines.totalValues.show && P.dataset && P.dataset.length > 1 ? z.value.style.chart.lines.totalValues.fontSize * 1.3 : 0, i = 0, a = 0, o = 0, s = 0;
520
+ if (z.value.style.chart.grid.y.axisLabels.show) {
521
+ let e = dr();
522
+ i = e.left, a = e.right, o = e.scaleLabelsWidth, s = e.yAxisLabelWidth;
523
+ }
524
+ let c = z.value.style.chart.padding.top + r, l = t - t * n - fr.value - a, u = e - z.value.style.chart.padding.bottom - _r.value - r, d = z.value.style.chart.padding.left + i, f = t - d - t * n - fr.value - a, p = e - c - z.value.style.chart.padding.bottom - _r.value - r;
525
+ return {
526
+ chartHeight: Math.max(0, e),
527
+ chartWidth: Math.max(0, t),
528
+ top: c,
529
+ right: Math.max(0, l),
530
+ bottom: Math.max(0, u),
531
+ left: Math.max(0, d),
532
+ width: Math.max(0, f),
533
+ height: Math.max(0, p),
534
+ offsetLeftAxis: i,
535
+ offsetRightAxis: a,
536
+ scaleLabelsWidth: o,
537
+ yAxisLabelWidth: s
538
+ };
539
+ }), vr = b(() => {
540
+ let { left: e, top: t, width: n, height: r } = W.value, i = q.value.start, a = q.value.end, o = Math.max(1, a - i), s = Math.max(0, Math.min(o, (J.value.start ?? i) - i)), c = Math.max(0, Math.min(o, (J.value.end ?? a) - i)), l = Math.max(0, c - s), u = {
541
+ fill: z.value.style.chart.zoom.preview.fill,
542
+ stroke: z.value.style.chart.zoom.preview.stroke,
543
+ "stroke-width": z.value.style.chart.zoom.preview.strokeWidth,
544
+ "stroke-dasharray": z.value.style.chart.zoom.preview.strokeDasharray,
545
+ "stroke-linecap": "round",
546
+ "stroke-linejoin": "round",
547
+ style: {
548
+ pointerEvents: "none",
549
+ transition: "none !important",
550
+ animation: "none !important"
551
+ }
552
+ }, d = n / o;
553
+ return {
554
+ x: e + s * d,
555
+ y: t,
556
+ width: l * d,
557
+ height: r,
558
+ ...u
559
+ };
560
+ }), G = b(() => Un.value.map((e, t) => {
561
+ let n = se(), r = l(e.color) || ir.value[t] || a[t] || a[t % a.length];
562
+ return {
563
+ ...e,
564
+ shape: e.shape || "circle",
565
+ standalone: !!e.standalone,
566
+ series: JSON.parse(JSON.stringify(e.series)).map((e) => z.value.style.chart.lines.distributed ? Math.abs(e) : e),
567
+ seriesSource: e.series,
568
+ signedSeries: e.series.map((e) => e >= 0 ? 1 : -1),
569
+ absoluteIndex: t,
570
+ id: n,
571
+ color: r
572
+ };
573
+ })), yr = b(() => G.value.filter((e) => !L.value.includes(e.id) && !e.standalone)), br = b(() => G.value.filter((e) => !L.value.includes(e.id) && e.standalone)), K = b(() => {
574
+ let e = Math.max(...G.value.filter((e) => !L.value.includes(e.id)).map((e) => e.series.length));
575
+ return isFinite(e) ? e : Math.max(...G.value.map((e) => e.series.length));
576
+ });
577
+ function xr(e) {
578
+ Ln.value = e;
579
+ }
580
+ let q = O({
581
+ start: 0,
582
+ end: Math.max(...Un.value.map((e) => e.series.length))
583
+ }), J = O({
584
+ start: 0,
585
+ end: Math.max(...Un.value.map((e) => e.series.length))
586
+ });
587
+ function Sr(e) {
588
+ return (q.value.start ?? 0) + (e ?? 0);
589
+ }
590
+ let Cr = b(() => z.value.style.chart.zoom.preview.enable && (J.value.start !== q.value.start || J.value.end !== q.value.end));
591
+ function wr(e, t) {
592
+ J.value[e] = t;
593
+ }
594
+ function Tr() {
595
+ let e = K.value, t = Math.max(0, Math.min(q.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(q.value.end ?? e, e));
596
+ (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), q.value.start = t, q.value.end = n, J.value.start = t, J.value.end = n, un.value && (un.value.setStartValue(t), un.value.setEndValue(n));
597
+ }
598
+ let Er = O(null);
599
+ function Dr() {
600
+ return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
601
+ }
602
+ $e(() => {
603
+ Er.value && cancelAnimationFrame(Er.value);
604
+ });
605
+ async function Or({ force: e = !1 } = {}) {
606
+ if (z.value.style.chart.zoom.keepState && !e && ti.value && (q.value.start !== 0 || q.value.end !== 0)) {
607
+ Tr();
608
+ return;
609
+ }
610
+ ri(), await Xe(), Er.value && cancelAnimationFrame(Er.value), Er.value = requestAnimationFrame(async () => {
611
+ await Dr(), ri();
612
+ });
613
+ }
614
+ let kr = b(() => Math.max(0, W.value.width / (q.value.end - q.value.start))), Ar = b(() => ce(yr.value.map((e) => ({
615
+ ...e,
616
+ series: e.series.map((e) => e ?? 0)
617
+ }))).slice(q.value.start, q.value.end)), jr = b(() => L.value.length === G.value.length), Mr = b(() => {
618
+ if (!z.value.style.chart.zoom.minimap.show) return [];
619
+ let e = G.value.filter((e) => jr.value ? !0 : !L.value.includes(e.id) && !e.standalone);
620
+ if (e.length) return ce(e.map((e) => ({
621
+ ...e,
622
+ series: (e.series || []).map((e) => e ?? 0)
623
+ })));
624
+ let t = br.value;
625
+ if (!t.length) return [];
626
+ let n = Math.max(...t.map((e) => e.series.length || 0));
627
+ return Array.from({ length: n }, (e, n) => t.reduce((e, t) => e + Math.abs(t.series[n] ?? 0), 0));
628
+ }), Nr = b(() => {
629
+ if (!z.value.style.chart.zoom.minimap.show) return [];
630
+ let e = G.value.filter((e) => jr.value ? !0 : !L.value.includes(e.id) && !e.standalone), t = br.value, n = e.length ? [{
631
+ name: "",
632
+ series: Mr.value,
633
+ color: "#000000",
634
+ isVisible: !0
635
+ }] : [], r = t.map((e) => ({
636
+ name: e.name || "",
637
+ series: (e.series || []).map((e) => e ?? 0),
638
+ color: e.color,
639
+ isVisible: !0
640
+ }));
641
+ return n.concat(r);
642
+ }), Pr = b(() => ce(yr.value.filter((e) => !L.value.includes(e.id)).map((e) => ({
643
+ ...e,
644
+ series: e.series.map((t, n) => {
645
+ let r = t ?? 0;
646
+ return e.signedSeries[n] === -1 && r >= 0 ? -r : r;
647
+ })
648
+ }))).slice(q.value.start, q.value.end)), Fr = b(() => {
649
+ let e = yr.value.filter((e) => !L.value.includes(e.id));
650
+ return {
651
+ positive: ce(e.map((e) => ({
652
+ ...e,
653
+ series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) >= 0 ? e ?? 0 : 0)
654
+ }))),
655
+ negative: ce(e.map((e) => ({
656
+ ...e,
657
+ series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) < 0 ? e ?? 0 : 0)
658
+ })))
659
+ };
660
+ }), Ir = b(() => {
661
+ let e = Math.max(0, q.value.end - q.value.start), t = Array(e).fill(0), n = Array(e).fill(0);
662
+ return br.value.forEach((r) => {
663
+ for (let i = 0; i < e; i += 1) {
664
+ let e = r.series[q.value.start + i] ?? 0;
665
+ e > 0 && (t[i] = Math.max(t[i], e)), e < 0 && (n[i] = Math.min(n[i], e));
666
+ }
667
+ }), {
668
+ positive: t,
669
+ negative: n
670
+ };
671
+ }), Lr = b(() => Pr.value.map((e, t) => ({
672
+ value: e,
673
+ sign: e >= 0 ? 1 : -1
674
+ })));
675
+ function Rr() {
676
+ return { y0: Br.value?.[0]?.zero ?? W.value.bottom };
677
+ }
678
+ function zr(e) {
679
+ let { y0: t } = Rr(), n = z.value.style.chart.lines.totalValues, r = Math.max(2, n.fontSize * 1.3 + n.offsetY), i = (e) => Math.min(Math.max(e, W.value.top - z.value.style.chart.lines.totalValues.fontSize * 1.3), W.value.bottom + z.value.style.chart.lines.totalValues.fontSize * 2);
680
+ if ((Lr.value?.[e]?.value ?? 0) >= 0 || z.value.style.chart.lines.distributed) {
681
+ let n = Infinity;
682
+ for (let t of Y.value || []) {
683
+ let r = t?.series?.[e], i = t?.topY?.[e];
684
+ (r ?? 0) > 0 && Number.isFinite(i) && i < n && (n = i);
685
+ }
686
+ return i((Number.isFinite(n) ? n : t) - r - z.value.style.chart.lines.totalValues.offsetY);
687
+ }
688
+ {
689
+ let a = -Infinity;
690
+ for (let t of Y.value || []) {
691
+ let n = t?.series?.[e], r = t?.topY?.[e];
692
+ (n ?? 0) < 0 && Number.isFinite(r) && r > a && (a = r);
693
+ }
694
+ return i((Number.isFinite(a) ? a : t) + r + n.fontSize * .7 + z.value.style.chart.lines.totalValues.offsetY);
695
+ }
696
+ }
697
+ let Br = b(() => {
698
+ let e = Math.max(...Fr.value.positive, 0), t = Math.min(...Fr.value.negative, 0), n = Math.max(...Ir.value.positive, 0), r = Math.min(...Ir.value.negative, 0), i = Math.max(e, n), a = Math.min(t, r), o = [
699
+ -Infinity,
700
+ Infinity,
701
+ NaN,
702
+ void 0,
703
+ null
704
+ ].includes(a) ? 0 : a, s = z.value.style.chart.grid.scale.scaleMin, c = z.value.style.chart.grid.scale.scaleMax, l = !z.value.style.chart.lines.distributed && (s !== null || c !== null), u = s !== null && !z.value.style.chart.lines.distributed ? s : o > 0 ? 0 : o, d = c !== null && !z.value.style.chart.lines.distributed ? c : i < 0 ? 0 : i, f = l ? de(u, d, z.value.style.chart.grid.scale.ticks) : h(u, d, z.value.style.chart.grid.scale.ticks), p = Math.abs(Number(f.min) || 0), m = (Number(f.max) || 0) + p, g = m === 0 || !Number.isFinite(m) ? 1 : m, _ = Array.isArray(f.ticks) && f.ticks.length ? f.ticks : [0], ee = W.value.bottom - W.value.height * (p / g);
705
+ return _.map((e) => {
706
+ let t = Number(e) || 0, n = W.value.bottom - W.value.height * ((t + p) / g);
707
+ return {
708
+ zero: ee,
709
+ y: n,
710
+ x: ur.value ? X.value.right + 8 : X.value.left - 8,
711
+ value: t
712
+ };
713
+ });
714
+ }), Vr = O([]), Hr = O([]), Ur = 0;
715
+ ot(() => {
716
+ let e = ++Ur;
717
+ (async () => {
718
+ let t = await ye({
719
+ values: z.value.style.chart.grid.x.timeLabels.values,
720
+ maxDatapoints: K.value,
721
+ formatter: z.value.style.chart.grid.x.timeLabels.datetimeFormatter,
722
+ start: q.value.start,
723
+ end: q.value.end
724
+ });
725
+ e === Ur && (Vr.value = t);
726
+ })();
727
+ });
728
+ let Wr = 0;
729
+ ot(() => {
730
+ let e = ++Wr;
731
+ (async () => {
732
+ let t = await ye({
733
+ values: z.value.style.chart.grid.x.timeLabels.values,
734
+ maxDatapoints: K.value,
735
+ formatter: z.value.style.chart.grid.x.timeLabels.datetimeFormatter,
736
+ start: 0,
737
+ end: K.value
738
+ });
739
+ e === Wr && (Hr.value = t);
740
+ })();
741
+ });
742
+ let Gr = b(() => {
743
+ let e = Math.max(1, Math.floor(Number(z.value.style.chart.grid.x.timeLabels.modulo) || 1)), t = (Vr.value || []).map((e) => e?.text ?? ""), n = (Hr.value || []).map((e) => e?.text ?? ""), r = q.value.start ?? 0, i = r > 0 || t.length < n.length;
744
+ return te({
745
+ configuredModulo: e,
746
+ visibleTexts: t,
747
+ allTexts: n,
748
+ startAbs: r,
749
+ isZoomed: i
750
+ });
751
+ }), Kr = b(() => {
752
+ let e = z.value.style.chart.grid.x.timeLabels, t = Vr.value || [], n = Hr.value || [], r = q.value.start ?? 0, i = $.value, a = K.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? ""), c = ee(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Gr.value, o, s, r, i, a);
753
+ if (!e.showFirstAndLast || e.showOnlyFirstAndLast || !c.length) return c;
754
+ let l = c.length - 1;
755
+ return c.map((e, t) => t !== 0 && t !== l ? e : {
756
+ ...e,
757
+ text: o[t] ?? ""
758
+ });
759
+ });
760
+ ot(() => {
761
+ z.value.style.chart.grid.x.timeLabels.show, z.value.style.chart.grid.x.timeLabels.fontSize, z.value.style.chart.grid.x.timeLabels.rotation, z.value.style.chart.grid.x.timeLabels.offsetY, (Kr.value || []).map((e) => e?.text ?? "").join("|"), U.value.width, U.value.height, Tn.value, Sn.value, gr();
762
+ }, { flush: "post" });
763
+ let qr = O({
764
+ months: [],
765
+ shortMonths: [],
766
+ days: [],
767
+ shortDays: []
768
+ }), Jr = 0;
769
+ ot(() => {
770
+ let e = ++Jr, t = z.value.style.chart.grid.x.timeLabels.datetimeFormatter;
771
+ (async () => {
772
+ let n = await ve(t.locale).catch(() => ve("en"));
773
+ e === Jr && (qr.value = n.data);
774
+ })();
775
+ });
776
+ let Yr = b(() => {
777
+ let e = z.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = _e({
778
+ useUTC: e.useUTC,
779
+ locale: qr.value,
780
+ januaryAsYear: e.januaryAsYear
781
+ });
782
+ return (e, n) => {
783
+ let r = z.value.style.chart.grid.x.timeLabels.values?.[e];
784
+ return r == null ? "" : t.formatDate(new Date(r), n);
785
+ };
786
+ }), Xr = b(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
787
+ text: Yr.value(t, z.value.style.chart.zoom.timeFormat),
788
+ absoluteIndex: t
789
+ }))), Zr = b(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
790
+ text: Yr.value(t, z.value.style.chart.tooltip.timeFormat),
791
+ absoluteIndex: t
792
+ }))), Qr = b(() => {
793
+ if (!an.value && !Hn.value) return [];
794
+ let e = W.value.height, t = Br.value[0] ? Br.value[0].zero : W.value.bottom, n = q.value.start ?? 0, r = q.value.end ?? 0, i = Math.max(1, r - n), a = Math.max(...Fr.value.positive, 0), o = Math.min(...Fr.value.negative, 0), s = Math.max(...Ir.value.positive, 0), c = Math.min(...Ir.value.negative, 0), l = Math.max(a, s), u = Math.min(o, c), { min: d, max: f } = !z.value.style.chart.lines.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? de(z.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : h(z.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), p = f + (d >= 0 ? 0 : Math.abs(d)) || 1, m = Array(i).fill(0), g = Array(i).fill(0), _ = (e) => i <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e / (i - 1) * W.value.width;
795
+ return G.value.filter((e) => !L.value.includes(e.id)).map((r) => {
796
+ let a = [], o = [], s = [], c = Array(i).fill(null), l = Array(i).fill(null);
797
+ for (let u = 0; u < i; u += 1) {
798
+ let i = n + u, d = r.series?.[i], f = r.signedSeries?.[i], h = d == null || Number.isNaN(d) ? 0 : d, _ = r.standalone ? h / p : z.value.style.chart.lines.distributed ? h / (Ar.value[u] || 1) : h / p;
799
+ if (h >= 0) {
800
+ let n = e * Math.abs(_);
801
+ if (r.standalone) c[u] = t, l[u] = t - n;
802
+ else {
803
+ let e = m[u], r = e + n;
804
+ c[u] = t - e, l[u] = t - r, m[u] = r;
805
+ }
806
+ } else {
807
+ let n = e * Math.abs(_);
808
+ if (r.standalone) c[u] = t, l[u] = t + n;
809
+ else {
810
+ let e = g[u], r = e + n;
811
+ c[u] = t + e, l[u] = t + r, g[u] = r;
812
+ }
813
+ }
814
+ a.push(u), o.push(h), s.push(f ?? (h >= 0 ? 1 : -1));
815
+ }
816
+ let u = a.map((e) => ({
817
+ x: _(e),
818
+ y: l[e]
819
+ })), d = u.map((e) => e.x), f = o.reduce((e, t) => e + Math.abs(t || 0), 0), h = f === 0 ? 1 : f, ee = o.map((e, t) => {
820
+ if (z.value.style.chart.lines.distributed && !r.standalone) {
821
+ let n = a[t], r = Ar.value[n] || 1;
822
+ return (e || 0) / r;
823
+ }
824
+ return (e || 0) / h;
825
+ });
826
+ return {
827
+ ...r,
828
+ x: d,
829
+ points: u,
830
+ baseY: a.map((e) => c[e]),
831
+ topY: a.map((e) => l[e]),
832
+ series: o,
833
+ signedSeries: s,
834
+ proportions: ee,
835
+ rel: a,
836
+ fullSeries: Array.isArray(r.fullSeries) ? r.fullSeries : r.series
837
+ };
838
+ });
839
+ }), Y = b(() => {
840
+ let e = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "", t = Math.max(...Fr.value.positive, 0), n = Math.min(...Fr.value.negative, 0), r = Math.max(...Ir.value.positive, 0), i = Math.min(...Ir.value.negative, 0), a = Math.max(t, r), o = Math.min(n, i), c = !z.value.style.chart.lines.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? de(z.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : h(z.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), l = Number(c.min) || 0, u = Number(c.max) || 0, f = Math.abs(l), p = u + f || 1, m = (e) => {
841
+ if (z.value.style.chart.lines.distributed) {
842
+ let t = Math.max(0, Math.min(1, e));
843
+ return minimapH - minimapH * t;
844
+ }
845
+ return clampY(minimapH - minimapH * (((e ?? 0) + f) / p));
846
+ };
847
+ return Qr.value.map((t) => {
848
+ let n = t.x.length, r = Array.isArray(t.fullSeries) ? t.fullSeries : t.series, i = ({ left: e = 0, unitW: t }) => {
849
+ let n = r.length;
850
+ return !Number.isFinite(t) || t <= 0 || n <= 0 ? [] : n === 1 ? [e + t * .5] : r.map((n, r) => e + r * t);
851
+ }, a = ({ minimapH: e }) => !Number.isFinite(e) || e <= 0 ? [] : r.map((t) => m(t || 0, e)), o = ({ minimapH: e }) => {
852
+ if (!Number.isFinite(e) || e <= 0) return [];
853
+ let t = m(0, e);
854
+ return r.map(() => t);
855
+ };
856
+ if (n === 0) return {
857
+ ...t,
858
+ points: [],
859
+ smoothPath: "",
860
+ straightPath: "",
861
+ smoothArea: "",
862
+ straightArea: "",
863
+ xMinimap: i,
864
+ yMinimap: a,
865
+ yMinimapBase: o
866
+ };
867
+ let c = t.x.map((e, n) => ({
868
+ x: e,
869
+ y: t.topY[n]
870
+ })), l = t.x.map((e, n) => ({
871
+ x: e,
872
+ y: t.baseY[n]
873
+ })), u = n >= 2 ? s(c) : `M${c[0].x},${c[0].y}`, f = n >= 2 ? d(c) : `M${c[0].x},${c[0].y}`, p = n >= 2 ? `M${e(u)}` : u, h = n >= 2 ? `M${e(f)}` : f, g = "", _ = "";
874
+ if (z.value.style.chart.lines.useArea && n >= 2) {
875
+ let t = s([...l].reverse()), n = d([...l].reverse()), r = l[l.length - 1];
876
+ g = `M${c[0].x},${c[0].y} ${e(u)} L${r.x},${r.y} ${e(t)} Z`, _ = `M${c[0].x},${c[0].y} ${e(f)} L${r.x},${r.y} ${e(n)} Z`;
877
+ }
878
+ return {
879
+ ...t,
880
+ points: c,
881
+ smoothPath: p,
882
+ straightPath: h,
883
+ smoothArea: g,
884
+ straightArea: _,
885
+ xMinimap: i,
886
+ yMinimap: a,
887
+ yMinimapBase: o
888
+ };
889
+ });
890
+ }), $r = b(() => $.value === null || $.value === void 0 ? null : {
891
+ timeLabel: bi($.value),
892
+ absoluteIndex: $.value + q.value.start,
893
+ seriesIndex: $.value,
894
+ datapoint: yi.value,
895
+ series: Y.value,
896
+ config: z.value
897
+ }), ei = O(!1), ti = O(!1);
898
+ function ni(e) {
899
+ let t = K.value;
900
+ return e > t ? t : e < 0 || e < q.value.start ? z.value.style.chart.zoom.startIndex === null ? 1 : q.value.start + 1 : e;
901
+ }
902
+ function ri() {
903
+ if (!ei.value) {
904
+ ei.value = !0;
905
+ try {
906
+ let { startIndex: e, endIndex: t, keepState: n } = z.value.style.chart.zoom, r = n ? Math.max(0, K.value) : K.value;
907
+ if (n && r <= 0) return;
908
+ let i = e ?? 0, a = t == null ? r : Math.min(ni(t + 1), r);
909
+ si.value = !0, q.value.start = i, q.value.end = a, J.value.start = i, J.value.end = a, Tr(), ti.value = !0;
910
+ } finally {
911
+ queueMicrotask(() => {
912
+ si.value = !1;
913
+ }), ei.value = !1;
914
+ }
915
+ }
916
+ }
917
+ function ii(e) {
918
+ ei.value || si.value || e !== q.value.start && (q.value.start = e, J.value.start = e, Tr());
919
+ }
920
+ function ai(e) {
921
+ if (ei.value || si.value) return;
922
+ let t = ni(e);
923
+ t !== q.value.end && (q.value.end = t, J.value.end = t, Tr());
924
+ }
925
+ let X = b(() => ({
926
+ left: W.value.left,
927
+ right: W.value.right,
928
+ width: W.value.width
929
+ })), oi = b(() => {
930
+ let e = z.value.style.chart.grid.y.axisLabels, { prefix: t, suffix: n } = z.value.style.chart.lines.dataLabels;
931
+ return Br.value.map((r) => String(v(e.formatter, r.value, f({
932
+ p: t,
933
+ v: r.value,
934
+ s: n,
935
+ r: e.rounding
936
+ }), { datapoint: r }) ?? "")).join("|");
937
+ });
938
+ at([
939
+ oi,
940
+ () => z.value.style.chart.grid.y.axisLabels.show,
941
+ () => z.value.style.chart.grid.y.axisLabels.fontSize,
942
+ () => z.value.style.chart.grid.y.axisLabels.bold,
943
+ () => z.value.style.chart.grid.y.position
944
+ ], () => {
945
+ z.value.style.chart.grid.y.axisLabels.show && In();
946
+ }, { flush: "post" });
947
+ let si = O(!1), ci = b(() => U.value.width), li = b(() => U.value.height);
948
+ ke({
949
+ timeLabelsEls: Tn,
950
+ timeLabels: Vr,
951
+ slicer: q,
952
+ configRef: z,
953
+ rotationPath: [
954
+ "style",
955
+ "chart",
956
+ "grid",
957
+ "x",
958
+ "timeLabels",
959
+ "rotation"
960
+ ],
961
+ autoRotatePath: [
962
+ "style",
963
+ "chart",
964
+ "grid",
965
+ "x",
966
+ "timeLabels",
967
+ "autoRotate",
968
+ "enable"
969
+ ],
970
+ isAutoSize: !1,
971
+ width: ci,
972
+ height: li,
973
+ rotation: z.value.style.chart.grid.x.timeLabels.autoRotate.angle
974
+ });
975
+ let ui = O(null);
976
+ function di(e) {
977
+ let t = V.value;
978
+ if (!t) return null;
979
+ if (t.createSVGPoint && t.getScreenCTM) {
980
+ let n = t.createSVGPoint();
981
+ n.x = e.clientX, n.y = e.clientY;
982
+ let r = t.getScreenCTM();
983
+ if (r) {
984
+ let e = n.matrixTransform(r.inverse());
985
+ return {
986
+ x: e.x,
987
+ y: e.y,
988
+ ok: !0
989
+ };
990
+ }
991
+ }
992
+ let n = t.getBoundingClientRect(), r = t.viewBox?.baseVal || {
993
+ x: 0,
994
+ y: 0,
995
+ width: n.width,
996
+ height: n.height
997
+ }, i = Math.min(n.width / r.width, n.height / r.height), a = r.width * i, o = r.height * i, s = (n.width - a) / 2, c = (n.height - o) / 2;
998
+ return {
999
+ x: (e.clientX - n.left - s) / i + r.x,
1000
+ y: (e.clientY - n.top - c) / i + r.y,
1001
+ ok: !0
1002
+ };
1003
+ }
1004
+ let fi = 0, Z = b(() => Math.max(1, q.value.end - q.value.start)), pi = b(() => Z.value > 1 ? W.value.width / (Z.value - 1) : 0);
1005
+ function Q(e) {
1006
+ return Z.value <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e * pi.value;
1007
+ }
1008
+ function mi(e) {
1009
+ if (Z.value <= 1) return {
1010
+ x: W.value.left,
1011
+ width: W.value.width
1012
+ };
1013
+ let t = e === 0 ? W.value.left : (Q(e - 1) + Q(e)) / 2, n = e === Z.value - 1 ? W.value.left + W.value.width : (Q(e) + Q(e + 1)) / 2;
1014
+ return {
1015
+ x: t,
1016
+ width: Math.max(0, n - t)
1017
+ };
1018
+ }
1019
+ function hi(e) {
1020
+ Rn.value || (fi && cancelAnimationFrame(fi), fi = requestAnimationFrame(() => {
1021
+ fi = 0;
1022
+ let t = di(e);
1023
+ if (!t || !V.value) {
1024
+ vi();
1025
+ return;
1026
+ }
1027
+ let { left: n, right: r, top: i, bottom: a } = W.value;
1028
+ if (t.x < n || t.x > r || t.y < i || t.y > a) {
1029
+ vi();
1030
+ return;
1031
+ }
1032
+ let o = 0;
1033
+ if (Z.value > 1) {
1034
+ let e = (t.x - n) / pi.value;
1035
+ o = Math.round(e);
1036
+ } else o = 0;
1037
+ o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), ui.value !== o && (ui.value = o, Si(!0, o));
1038
+ }));
1039
+ }
1040
+ function gi(e) {
1041
+ let t = di(e);
1042
+ if (!t || !V.value) return;
1043
+ let { left: n, right: r, top: i, bottom: a } = W.value;
1044
+ if (t.x < n || t.x > r || t.y < i || t.y > a) return;
1045
+ let o = 0;
1046
+ if (Z.value > 1) {
1047
+ let e = (t.x - n) / pi.value;
1048
+ o = Math.round(e);
1049
+ } else o = 0;
1050
+ o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), ra({
1051
+ seriesIndex: o,
1052
+ datapoint: Yi(o)
1053
+ }), _i(o);
1054
+ }
1055
+ function _i(e) {
1056
+ let t = JSON.parse(JSON.stringify(Y.value)).map((t) => ({
1057
+ name: t.name,
1058
+ value: t.series[e] === 0 ? 0 : t.series[e] || null,
1059
+ proportion: t.proportions[e] || null,
1060
+ color: t.color,
1061
+ id: t.id
1062
+ }));
1063
+ z.value.events.datapointClick && z.value.events.datapointClick({
1064
+ datapoint: t,
1065
+ seriesIndex: e + q.value.start
1066
+ }), rn("selectDatapoint", {
1067
+ datapoint: t,
1068
+ period: Vr.value[e]
1069
+ });
1070
+ }
1071
+ at(() => [
1072
+ q.value.start,
1073
+ q.value.end,
1074
+ Y.value.length
1075
+ ], () => {
1076
+ let e = Z.value;
1077
+ if ($.value != null) {
1078
+ if (e <= 0) {
1079
+ $.value = null;
1080
+ return;
1081
+ }
1082
+ $.value < 0 && ($.value = 0), $.value > e - 1 && ($.value = e - 1);
1083
+ }
1084
+ });
1085
+ function vi() {
1086
+ fi &&= (cancelAnimationFrame(fi), 0), ui.value = null, Si(!1, null);
1087
+ }
1088
+ let $ = O(null), yi = b(() => {
1089
+ let e = $.value, t = e == null ? null : Sr(e);
1090
+ return Y.value.map((n) => ({
1091
+ slotAbsoluteIndex: n.absoluteIndex,
1092
+ shape: n.shape || "circle",
1093
+ name: n.name,
1094
+ color: n.color,
1095
+ value: e == null ? null : n.series.find((t, n) => n === e),
1096
+ sourceValue: t == null ? null : n.seriesSource?.[t],
1097
+ comments: n.comments || [],
1098
+ id: n.id,
1099
+ standalone: !!n.standalone
1100
+ }));
1101
+ });
1102
+ function bi(e) {
1103
+ if (e == null || !z.value.style.chart.tooltip.showTimeLabel) return null;
1104
+ let t = Vr.value?.[e]?.text || null, n = Zr.value?.[e]?.text || null, r = Hr.value?.[e]?.text || null;
1105
+ return z.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
1106
+ }
1107
+ let xi = b(() => {
1108
+ let e = z.value.style.chart.tooltip.customFormat, t = [...yi.value].reverse(), r = t.filter((e) => !e.standalone), i = t.filter((e) => e.standalone), a = r.map((e) => e.value).filter((e) => pe(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0);
1109
+ if (n(e) && ie(() => e({
1110
+ absoluteIndex: $.value + q.value.start,
1111
+ seriesIndex: $.value,
1112
+ datapoint: yi.value,
1113
+ series: G.value,
1114
+ config: z.value
1115
+ }))) return e({
1116
+ absoluteIndex: $.value + q.value.start,
1117
+ seriesIndex: $.value,
1118
+ datapoint: yi.value,
1119
+ series: G.value,
1120
+ config: z.value
1121
+ });
1122
+ let { showValue: s, showTotal: c, totalTranslation: l, showPercentage: u, borderColor: d, roundingValue: p, roundingPercentage: m } = z.value.style.chart.tooltip, h = (e) => !e.shape || ![
1123
+ "star",
1124
+ "triangle",
1125
+ "square",
1126
+ "diamond",
1127
+ "pentagon",
1128
+ "hexagon"
1129
+ ].includes(e.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" /></svg>` : e.shape === "star" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><polygon stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" points="${me({
1130
+ plot: {
1131
+ x: 6,
1132
+ y: 6
1133
+ },
1134
+ radius: 5
1135
+ })}" /></svg>` : e.shape === "triangle" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${o({
1136
+ plot: {
1137
+ x: 6,
1138
+ y: 6
1139
+ },
1140
+ radius: 6,
1141
+ sides: 3,
1142
+ rotation: .52
1143
+ }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${o({
1144
+ plot: {
1145
+ x: 6,
1146
+ y: 6
1147
+ },
1148
+ radius: 6,
1149
+ sides: 4,
1150
+ rotation: .8
1151
+ }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "diamond" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${o({
1152
+ plot: {
1153
+ x: 6,
1154
+ y: 6
1155
+ },
1156
+ radius: 5,
1157
+ sides: 4,
1158
+ rotation: 0
1159
+ }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "pentagon" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${o({
1160
+ plot: {
1161
+ x: 6,
1162
+ y: 6
1163
+ },
1164
+ radius: 5,
1165
+ sides: 5,
1166
+ rotation: .95
1167
+ }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${o({
1168
+ plot: {
1169
+ x: 6,
1170
+ y: 6
1171
+ },
1172
+ radius: 5,
1173
+ sides: 6,
1174
+ rotation: 0
1175
+ }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`, g = (e, t) => {
1176
+ let n = t ? f({
1177
+ v: isNaN((e.value ?? 0) / (a || 1)) ? 0 : Math.abs(e.value ?? 0) / (a || 1) * 100,
1178
+ s: "%",
1179
+ r: m
1180
+ }) : "", r = s && t ? "(" : "", i = s && t ? ")" : "";
1181
+ return `
1182
+ <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
1183
+ <div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center;">${h(e)}</div>
1184
+ ${e.name}${s || t ? ":" : ""}
1185
+ ${s ? v(z.value.style.chart.lines.dataLabels.formatter, e.sourceValue, f({
1186
+ p: z.value.style.chart.lines.dataLabels.prefix,
1187
+ v: e.sourceValue,
1188
+ s: z.value.style.chart.lines.dataLabels.suffix,
1189
+ r: p
1190
+ }, { datapoint: e })) : ""} ${r}${n}${i}
1191
+ </div>
1192
+ `;
1193
+ }, _ = "", ee = bi($.value);
1194
+ return ee && (_ += `<div style="width:100%;text-align:center;border-bottom:1px solid ${d};padding-bottom:6px;margin-bottom:3px;">${ee}</div>`), c && r.length > 1 && (_ += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
1195
+ <span>${l}:</span>
1196
+ <span>${v(z.value.style.chart.lines.dataLabels.formatter, le(a), f({
1197
+ p: z.value.style.chart.lines.dataLabels.prefix,
1198
+ v: le(a),
1199
+ s: z.value.style.chart.lines.dataLabels.suffix,
1200
+ r: p
1201
+ }), { datapoint: {
1202
+ name: l,
1203
+ value: le(a)
1204
+ } })}</span>
1205
+ </div>`), r.forEach((e) => {
1206
+ _ += g(e, u);
1207
+ }), i.length && (_ += `<div style="border-top:1px solid ${yr.value.length ? d : "transparent"}; margin:${yr.value.length ? "6px 0" : "0"};"></div>`, i.forEach((e) => {
1208
+ _ += g(e, !1);
1209
+ })), `<div>${_}</div>`;
1210
+ });
1211
+ function Si(e, t = null, n = "pointer") {
1212
+ if (jr.value) return;
1213
+ Mn.value = n, on.value = e;
1214
+ let r = Y.value.map((e) => ({
1215
+ name: e.name,
1216
+ value: [
1217
+ null,
1218
+ void 0,
1219
+ NaN
1220
+ ].includes(e.series[t]) ? null : e.series[t],
1221
+ color: e.color
1222
+ }));
1223
+ e ? (R.value = t, $.value = t, ra({
1224
+ seriesIndex: t,
1225
+ datapoint: r
1226
+ }), z.value.events.datapointEnter && z.value.events.datapointEnter({
1227
+ datapoint: r,
1228
+ seriesIndex: t + q.value.start
1229
+ })) : (R.value = null, $.value = null, rn("selectX", {
1230
+ index: null,
1231
+ indexLabel: null,
1232
+ dataset: null
1233
+ }), z.value.events.datapointLeave && z.value.events.datapointLeave({
1234
+ datapoint: r,
1235
+ seriesIndex: t + q.value.start
1236
+ }));
1237
+ }
1238
+ function Ci(e, t) {
1239
+ let n = JSON.parse(JSON.stringify(Y.value)).map((e) => ({
1240
+ name: e.name,
1241
+ value: e.series[t] === 0 ? 0 : (e.signedSeries[t] === -1 && e.series[t] >= 0 ? -e.series[t] : e.series[t]) || null,
1242
+ proportion: e.proportions[t] || null,
1243
+ color: e.color,
1244
+ id: e.id
1245
+ }));
1246
+ rn("selectTimeLabel", {
1247
+ datapoint: n,
1248
+ absoluteIndex: e.absoluteIndex,
1249
+ label: e.text
1250
+ });
1251
+ }
1252
+ function wi() {
1253
+ L.value.length ? L.value = [] : Ei.value.forEach((e) => {
1254
+ L.value.push(e.id);
1255
+ }), rn("selectLegend", Y.value);
1256
+ }
1257
+ function Ti(e) {
1258
+ if (L.value.includes(e.id)) L.value = L.value.filter((t) => t !== e.id);
1259
+ else {
1260
+ if (L.value.length === G.value.length - 1) return;
1261
+ L.value.push(e.id);
1262
+ }
1263
+ rn("selectLegend", Y.value);
1264
+ }
1265
+ let Ei = b(() => G.value.map((e) => ({
1266
+ ...e,
1267
+ opacity: L.value.includes(e.id) ? .5 : 1,
1268
+ segregate: () => Ti(e),
1269
+ isSegregated: L.value.includes(e.id)
1270
+ }))), Di = b(() => ({
1271
+ cy: "stackline-legend",
1272
+ backgroundColor: z.value.style.chart.legend.backgroundColor,
1273
+ color: z.value.style.chart.legend.color,
1274
+ fontSize: z.value.style.chart.legend.fontSize,
1275
+ paddingBottom: 12,
1276
+ fontWeight: z.value.style.chart.legend.bold ? "bold" : ""
1277
+ }));
1278
+ function Oi(e) {
1279
+ return G.value.length ? G.value.find((t) => t.name === e) || (cr.value && console.warn(`VueUiStackline - Series name not found "${e}"`), null) : (cr.value && console.warn("VueUiStackline - There are no series to show."), null);
1280
+ }
1281
+ function ki(e) {
1282
+ let t = Oi(e);
1283
+ t !== null && L.value.includes(t.id) && Ti({ id: t.id });
1284
+ }
1285
+ function Ai(e) {
1286
+ let t = Oi(e);
1287
+ t !== null && (L.value.includes(t.id) || Ti({ id: t.id }));
1288
+ }
1289
+ let ji = b(() => {
1290
+ if (Y.value.length === 0) return {
1291
+ head: [],
1292
+ body: [],
1293
+ config: {},
1294
+ columnNames: []
1295
+ };
1296
+ let e = Y.value.map(({ name: e, color: t }) => ({
1297
+ label: e,
1298
+ color: t
1299
+ })), t = [];
1300
+ return Kr.value.forEach((e) => {
1301
+ let n = e.absoluteIndex, r = [z.value.style.chart.grid.x.timeLabels.values?.[n] ? e.text : n + 1];
1302
+ G.value.forEach((e) => {
1303
+ let t = e.series?.[n], i = Number((t ?? 0).toFixed(z.value.table.td.roundingValue));
1304
+ r.push(i);
1305
+ }), t.push(r);
1306
+ }), {
1307
+ head: e,
1308
+ body: t
1309
+ };
1310
+ });
1311
+ function Mi(e = null) {
1312
+ let n = [
1313
+ [z.value.style.chart.title.text],
1314
+ [z.value.style.chart.title.subtitle.text],
1315
+ [""]
1316
+ ], i = ["", ...ji.value.head.map((e) => e.label)], a = ji.value.body, o = n.concat([i]).concat(a), s = r(o);
1317
+ e ? e(s) : t({
1318
+ csvContent: s,
1319
+ title: z.value.style.chart.title.text || "vue-ui-stackline"
1320
+ });
1321
+ }
1322
+ let Ni = b(() => {
1323
+ let e = [""].concat(Y.value.map((e) => e.name), "__SUM__"), t = [], n = Math.max(0, q.value.end - q.value.start);
1324
+ for (let e = 0; e < n; e += 1) {
1325
+ let n = Sr(e), r = z.value.style.chart.grid.x.timeLabels.values?.[n] ? Vr.value?.[e]?.text ?? n + 1 : n + 1, i = Y.value.map((t) => {
1326
+ let n = t.series?.[e] ?? 0;
1327
+ return Number(n.toFixed(z.value.table.td.roundingValue));
1328
+ }), a = Y.value.filter((e) => !e.standalone).map((t) => t.series?.[e] ?? 0).reduce((e, t) => e + t, 0);
1329
+ t.push([r].concat(i, Number(a.toFixed(z.value.table.td.roundingValue))));
1330
+ }
1331
+ return {
1332
+ head: e,
1333
+ body: t,
1334
+ config: {
1335
+ th: {
1336
+ backgroundColor: z.value.table.th.backgroundColor,
1337
+ color: z.value.table.th.color,
1338
+ outline: z.value.table.th.outline
1339
+ },
1340
+ td: {
1341
+ backgroundColor: z.value.table.td.backgroundColor,
1342
+ color: z.value.table.td.color,
1343
+ outline: z.value.table.td.outline
1344
+ },
1345
+ breakpoint: z.value.table.responsiveBreakpoint
1346
+ },
1347
+ colNames: [z.value.table.columnNames.period].concat(Y.value.map((e) => e.name), z.value.table.columnNames.total)
1348
+ };
1349
+ }), Pi = b(() => z.value.style.chart.backgroundColor), Fi = b(() => z.value.style.chart.legend), Ii = b(() => z.value.style.chart.title), { isCallbackImaging: Li, isCallbackSvg: Ri, generateSvg: zi, onGenerateImage: Bi } = Ee({
1350
+ svg: V,
1351
+ title: Ii,
1352
+ legend: Fi,
1353
+ legendItems: Ei,
1354
+ backgroundColor: Pi,
1355
+ getSvgCallback: () => z.value.userOptions.callbacks.svg,
1356
+ generateImage: nr
1357
+ });
1358
+ async function Vi({ scale: e = 2 } = {}) {
1359
+ if (!F.value) return;
1360
+ let { imageUri: t, base64: n } = await Ae({
1361
+ domElement: F.value,
1362
+ base64: !0,
1363
+ img: !0,
1364
+ scale: e
1365
+ }), r = F.value.getBoundingClientRect(), i = {
1366
+ width: r.width,
1367
+ height: r.height,
1368
+ aspectRatio: r.height ? r.width / r.height : 0
1369
+ }, a = await oe(t, e) ?? i;
1370
+ return {
1371
+ imageUri: t,
1372
+ base64: n,
1373
+ title: z.value.style.chart.title.text,
1374
+ ...a
1375
+ };
1376
+ }
1377
+ let Hi = b(() => {
1378
+ let e = z.value.table.useDialog && !z.value.table.show, t = H.value.showTable;
1379
+ return {
1380
+ component: e ? Qt : qt,
1381
+ title: `${z.value.style.chart.title.text}${z.value.style.chart.title.subtitle.text ? `: ${z.value.style.chart.title.subtitle.text}` : ""}`,
1382
+ props: e ? {
1383
+ backgroundColor: z.value.table.th.backgroundColor,
1384
+ color: z.value.table.th.color,
1385
+ headerColor: z.value.table.th.color,
1386
+ headerBg: z.value.table.th.backgroundColor,
1387
+ isFullscreen: pn.value,
1388
+ fullscreenParent: F.value,
1389
+ forcedWidth: Math.min(800, window.innerWidth * .8),
1390
+ isCursorPointer: B.value
1391
+ } : {
1392
+ hideDetails: !0,
1393
+ config: {
1394
+ open: t,
1395
+ maxHeight: 1e4,
1396
+ body: {
1397
+ backgroundColor: z.value.style.chart.backgroundColor,
1398
+ color: z.value.style.chart.color
1399
+ },
1400
+ head: {
1401
+ backgroundColor: z.value.style.chart.backgroundColor,
1402
+ color: z.value.style.chart.color
1403
+ }
1404
+ }
1405
+ }
1406
+ };
1407
+ });
1408
+ at(() => H.value.showTable, (e) => {
1409
+ z.value.table.show || (e && z.value.table.useDialog && yn.value ? yn.value.open() : "close" in yn.value && yn.value.close());
1410
+ });
1411
+ function Ui() {
1412
+ H.value.showTable = !1, bn.value && bn.value.setTableIconState(!1);
1413
+ }
1414
+ function Wi(e) {
1415
+ pn.value = e, sn.value += 1;
1416
+ }
1417
+ function Gi() {
1418
+ H.value.showTable = !H.value.showTable;
1419
+ }
1420
+ function Ki() {
1421
+ H.value.dataLabels.show = !H.value.dataLabels.show;
1422
+ }
1423
+ function qi() {
1424
+ H.value.showTooltip = !H.value.showTooltip;
1425
+ }
1426
+ function Ji() {
1427
+ return Y.value;
1428
+ }
1429
+ function Yi(e) {
1430
+ let t = e ?? 0, n = Sr(t);
1431
+ return JSON.parse(JSON.stringify(Y.value)).map((e) => {
1432
+ let r = e.series[t], i = e.signedSeries?.[t], a = r === 0 ? 0 : (i === -1 && r >= 0 ? -r : r) || null;
1433
+ return {
1434
+ name: e.name,
1435
+ absoluteIndex: e.absoluteIndex,
1436
+ value: a,
1437
+ proportion: e.proportions?.[t] || null,
1438
+ color: e.color,
1439
+ id: e.id,
1440
+ timeLabel: Hr.value?.[n] || null
1441
+ };
1442
+ });
1443
+ }
1444
+ let Xi = b(() => Array(K.value).fill(0).map((e, t) => Yi(t)));
1445
+ at(() => P.selectedXIndex, (e) => {
1446
+ if ([null, void 0].includes(P.selectedXIndex)) {
1447
+ $.value = null;
1448
+ return;
1449
+ }
1450
+ let t = e - q.value.start;
1451
+ t < 0 || e >= q.value.end ? $.value = null : $.value = t ?? null;
1452
+ }, { immediate: !0 });
1453
+ let Zi = b(() => {
1454
+ if (z.value.style.chart.lines.distributed) return {
1455
+ min: -1,
1456
+ max: 1
1457
+ };
1458
+ let e = yr.value, t = br.value, n = Math.max(1, ...[...e, ...t].map((e) => e.series?.length || 0)), r = Array(n).fill(0), i = Array(n).fill(0);
1459
+ e.forEach((e) => {
1460
+ for (let t = 0; t < n; t += 1) {
1461
+ let n = e.series[t] ?? 0;
1462
+ n >= 0 ? r[t] += n : i[t] += n;
1463
+ }
1464
+ });
1465
+ let a = Array(n).fill(0), o = Array(n).fill(0);
1466
+ t.forEach((e) => {
1467
+ for (let t = 0; t < n; t += 1) {
1468
+ let n = e.series[t] ?? 0;
1469
+ n > 0 && (a[t] = Math.max(a[t], n)), n < 0 && (o[t] = Math.min(o[t], n));
1470
+ }
1471
+ });
1472
+ let s = Math.max(0, ...r, ...a), c = Math.min(0, ...i, ...o), l = z.value.style.chart.grid.scale.scaleMin, u = z.value.style.chart.grid.scale.scaleMax, d = z.value.style.chart.grid.scale.ticks, f = !z.value.style.chart.lines.distributed && (l !== null || u !== null) ? de(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d) : h(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d);
1473
+ return {
1474
+ min: Number(f.min) || 0,
1475
+ max: Number(f.max) || 0
1476
+ };
1477
+ });
1478
+ function Qi({ minimapH: e, unitW: t }) {
1479
+ let n = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "";
1480
+ if (!Number.isFinite(e) || e <= 0 || !Number.isFinite(t) || t <= 0) return "";
1481
+ let r = Y.value.filter((e) => !e.standalone), i = Y.value.filter((e) => e.standalone), a = Math.max(0, ...Y.value.map((e) => Array.isArray(e.fullSeries) ? e.fullSeries.length : e.series.length));
1482
+ if (a <= 0) return "";
1483
+ let o = a === 1 ? [t * .5] : Array.from({ length: a }, (e, n) => n * t);
1484
+ if (z.value.style.chart.lines.distributed) {
1485
+ let t = Array.from({ length: a }, (e, t) => {
1486
+ let n = 0;
1487
+ return r.forEach((e) => {
1488
+ let r = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series)?.[t];
1489
+ r != null && !Number.isNaN(r) && (n += Math.abs(r));
1490
+ }), n || 1;
1491
+ }), c = (t) => e - e * Math.max(0, Math.min(1, t || 0)), l = [], u = Array(a).fill(0);
1492
+ return r.forEach((e) => {
1493
+ let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array(a), f = Array(a);
1494
+ for (let e = 0; e < a; e += 1) {
1495
+ let n = r?.[e], a = n == null || Number.isNaN(n) ? 0 : Math.abs(n) / t[e];
1496
+ f[e] = u[e], u[e] += a, i[e] = u[e];
1497
+ }
1498
+ let p = i.map(c), m = f.map(c), h = o.map((e, t) => ({
1499
+ x: e,
1500
+ y: p[t]
1501
+ })), g = o.map((e, t) => ({
1502
+ x: e,
1503
+ y: m[t]
1504
+ })), _ = s(h), ee = s([...g].reverse()), te = d(h), ne = d([...g].reverse()), v = g[g.length - 1];
1505
+ if (z.value.style.chart.lines.useArea) {
1506
+ let t = z.value.style.chart.lines.smooth ? `M${h[0].x},${h[0].y} ${n(_)} L${v.x},${v.y} ${n(ee)} Z` : `M${h[0].x},${h[0].y} ${n(te)} L${v.x},${v.y} ${n(ne)} Z`;
1507
+ l.push(`<path d="${t}"
1508
+ fill="${nn.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : (z.value.style.chart.lines.gradient.show, e.color)}"
1509
+ opacity="${z.value.style.chart.lines.areaOpacity}"
1510
+ stroke="none" />`);
1511
+ }
1512
+ let re = z.value.style.chart.lines.smooth ? `M${h[0].x},${h[0].y} ${n(_)}` : `M${h[0].x},${h[0].y} ${n(te)}`;
1513
+ l.push(`<path d="${re}"
1514
+ fill="none"
1515
+ stroke="${e.color}"
1516
+ stroke-width="${z.value.style.chart.lines.strokeWidth}"
1517
+ stroke-linecap="round" />`);
1518
+ }), i.length && i.forEach((e) => {
1519
+ let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array.from({ length: a }, (e, n) => c(Math.abs(r?.[n] ?? 0) / t[n])), u = o.map((e, t) => ({
1520
+ x: e,
1521
+ y: i[t]
1522
+ })), f = s(u), p = d(u), m = z.value.style.chart.lines.smooth ? `M${u[0].x},${u[0].y} ${n(f)}` : `M${u[0].x},${u[0].y} ${n(p)}`;
1523
+ l.push(`<path d="${m}"
1524
+ fill="none"
1525
+ stroke="${e.color}"
1526
+ stroke-width="${z.value.style.chart.lines.strokeWidth}"
1527
+ stroke-linecap="round" />`);
1528
+ }), l.join("");
1529
+ }
1530
+ let c = Zi.value.min, l = Zi.value.max, u = Math.abs(c), f = l + u || 1, p = (t) => Math.max(0, Math.min(e, t)), m = (t) => p(e - e * (((t ?? 0) + u) / f)), h = [];
1531
+ if (r.length) {
1532
+ let e = Array(a).fill(0), t = Array(a).fill(0);
1533
+ r.forEach((r) => {
1534
+ let i = Array.isArray(r.fullSeries) ? r.fullSeries : r.series, c = Array(a), l = Array(a);
1535
+ for (let n = 0; n < a; n += 1) {
1536
+ let r = i?.[n] ?? 0;
1537
+ r >= 0 ? (l[n] = e[n], e[n] += r, c[n] = e[n]) : (l[n] = t[n], t[n] += r, c[n] = t[n]);
1538
+ }
1539
+ let u = c.map(m), f = l.map(m), p = o.map((e, t) => ({
1540
+ x: e,
1541
+ y: u[t]
1542
+ })), g = o.map((e, t) => ({
1543
+ x: e,
1544
+ y: f[t]
1545
+ })), _ = s(p), ee = s([...g].reverse()), te = d(p), ne = d([...g].reverse()), v = g[g.length - 1];
1546
+ if (z.value.style.chart.lines.useArea) {
1547
+ let e = z.value.style.chart.lines.smooth ? `M${p[0].x},${p[0].y} ${n(_)} L${v.x},${v.y} ${n(ee)} Z` : `M${p[0].x},${p[0].y} ${n(te)} L${v.x},${v.y} ${n(ne)} Z`;
1548
+ h.push(`<path d="${e}"
1549
+ fill="${nn.pattern ? `url(#pattern_${I.value}_${r.absoluteIndex})` : (z.value.style.chart.lines.gradient.show, r.color)}"
1550
+ opacity="${z.value.style.chart.lines.areaOpacity}"
1551
+ stroke="none" />`);
1552
+ }
1553
+ let re = z.value.style.chart.lines.smooth ? `M${p[0].x},${p[0].y} ${n(_)}` : `M${p[0].x},${p[0].y} ${n(te)}`;
1554
+ h.push(`<path d="${re}"
1555
+ fill="none"
1556
+ stroke="${r.color}"
1557
+ stroke-width="${z.value.style.chart.lines.strokeWidth}"
1558
+ stroke-linecap="round" />`);
1559
+ });
1560
+ }
1561
+ return i.length && i.forEach((e) => {
1562
+ let t = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series).map(m), r = o.map((e, n) => ({
1563
+ x: e,
1564
+ y: t[n]
1565
+ })), i = s(r), a = d(r), c = z.value.style.chart.lines.smooth ? `M${r[0].x},${r[0].y} ${n(i)}` : `M${r[0].x},${r[0].y} ${n(a)}`;
1566
+ h.push(`<path d="${c}"
1567
+ fill="none"
1568
+ stroke="${e.color}"
1569
+ stroke-width="${z.value.style.chart.lines.strokeWidth}"
1570
+ stroke-linecap="round" />`);
1571
+ }), h.join("");
1572
+ }
1573
+ function $i(e, t) {
1574
+ let n = z.value.style.chart.lines, r = n.dataLabels;
1575
+ return n.showDistributedPercentage && n.distributed ? Qn.value ? t === 0 ? !r.hideEmptyPercentages : Math.abs(t) * 100 >= r.hideUnderPercentage : !r.hideEmptyPercentages || Math.abs(t) > 0 : Qn.value ? (Zn.value && cr.value && console.warn("Vue Data UI - VueUiStackline - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), Math.abs(e) > ea.value * r.hideUnderPercentage / 100) : Zn.value ? Math.abs(e) >= r.hideUnderValue : !r.hideEmptyValues || e !== 0;
1576
+ }
1577
+ let ea = b(() => Math.max(...Y.value.flatMap((e) => e.series)));
1578
+ function ta(e, t, n, r, i) {
1579
+ let a = i === -1 && e >= 0 ? -e : e;
1580
+ return v(z.value.style.chart.lines.dataLabels.formatter, a, f({
1581
+ p: z.value.style.chart.lines.dataLabels.prefix,
1582
+ v: a,
1583
+ s: z.value.style.chart.lines.dataLabels.suffix,
1584
+ r: z.value.style.chart.lines.dataLabels.rounding
1585
+ }), {
1586
+ datapoint: t,
1587
+ seriesIndex: n,
1588
+ datapointIndex: r
1589
+ });
1590
+ }
1591
+ function na(e, t, n, r) {
1592
+ return v(z.value.style.chart.lines.dataLabels.formatter, e, f({
1593
+ v: isNaN(e) ? 0 : e,
1594
+ s: "%",
1595
+ r: z.value.style.chart.lines.dataLabels.rounding
1596
+ }), {
1597
+ datapoint: t,
1598
+ seriesIndex: n,
1599
+ datapointIndex: r
1600
+ });
1601
+ }
1602
+ function ra({ seriesIndex: e, datapoint: t }) {
1603
+ let n = q.value.start + e;
1604
+ rn("selectX", {
1605
+ dataset: t,
1606
+ index: n,
1607
+ indexLabel: z.value.style.chart.grid.x.timeLabels.values[n]
1608
+ });
1609
+ }
1610
+ async function ia() {
1611
+ if (rn("copyAlt", {
1612
+ config: z.value,
1613
+ dataset: Y.value
1614
+ }), !z.value.userOptions.callbacks.altCopy) {
1615
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1616
+ return;
1617
+ }
1618
+ await Promise.resolve(z.value.userOptions.callbacks.altCopy({
1619
+ config: z.value,
1620
+ dataset: Y.value
1621
+ }));
1622
+ }
1623
+ let aa = O(!1);
1624
+ function oa() {
1625
+ R.value = null, aa.value = !0;
1626
+ }
1627
+ function sa() {
1628
+ R.value = null, Mn.value = "pointer", on.value = !1, $.value = null, rn("selectX", {
1629
+ index: null,
1630
+ indexLabel: null,
1631
+ dataset: null
1632
+ }), aa.value = !1;
1633
+ }
1634
+ function ca(e) {
1635
+ if (!V.value || Rn.value || document.activeElement !== V.value || jr.value || !Z.value) return;
1636
+ let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1637
+ if (!t && !n && !r && !i) return;
1638
+ if (e.preventDefault(), e.stopPropagation(), i) {
1639
+ R.value = null, Mn.value = "pointer", on.value = !1, $.value = null, rn("selectX", {
1640
+ index: null,
1641
+ indexLabel: null,
1642
+ dataset: null
1643
+ });
1644
+ return;
1645
+ }
1646
+ if (r) {
1647
+ if (R.value === null) return;
1648
+ _i(R.value);
1649
+ return;
1650
+ }
1651
+ let a = R.value, o = ui.value, s = a !== null && a >= 0 && a < Z.value, c = o !== null && o >= 0 && o < Z.value;
1652
+ s ? n ? (a += 1, a >= Z.value && (a = 0)) : t && (--a, a < 0 && (a = Z.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value && (a = 0), a < 0 && (a = Z.value - 1)) : a = n ? 0 : Z.value - 1, R.value = a, la(a), Si(!0, a, "keyboard");
1653
+ }
1654
+ function la(e) {
1655
+ if (!Number.isFinite(e) || !V.value) return;
1656
+ let t = W.value.left + e * pi.value, n = W.value.top + W.value.height / 2, r = i(t, n, V.value);
1657
+ r && (jn.value = r);
1658
+ }
1659
+ let ua = b(() => ({
1660
+ headers: Ni.value?.colNames ?? [],
1661
+ rows: Ni.value?.body ?? []
1662
+ }));
1663
+ return Ne({
1664
+ getData: Ji,
1665
+ getImage: Vi,
1666
+ generatePdf: tr,
1667
+ generateCsv: Mi,
1668
+ generateImage: nr,
1669
+ generateSvg: zi,
1670
+ hideSeries: Ai,
1671
+ showSeries: ki,
1672
+ toggleTable: Gi,
1673
+ toggleLabels: Ki,
1674
+ toggleTooltip: qi,
1675
+ toggleAnnotator: zn,
1676
+ toggleFullscreen: Wi,
1677
+ copyAlt: ia
1678
+ }), (t, n) => (D(), C("div", {
1679
+ id: `stackline_${I.value}`,
1680
+ ref_key: "stacklineChart",
1681
+ ref: F,
1682
+ class: Ze({
1683
+ "vue-data-ui-component": !0,
1684
+ "vue-ui-stackline": !0,
1685
+ "vue-data-ui-wrapper-fullscreen": pn.value
1686
+ }),
1687
+ style: Qe(`background:${z.value.style.chart.backgroundColor};color:${z.value.style.chart.color};font-family:${z.value.style.fontFamily}; position: relative; ${z.value.responsive ? "height: 100%" : ""}`),
1688
+ onMouseenter: Jn,
1689
+ onMouseleave: Yn
1690
+ }, [
1691
+ w("div", {
1692
+ id: `chart-instructions-${I.value}`,
1693
+ class: "sr-only"
1694
+ }, [w("p", null, j(z.value.a11y.translations.keyboardNavigation), 1)], 8, lt),
1695
+ ua.value?.rows?.length ? (D(), x(ze, {
1696
+ key: 0,
1697
+ uid: I.value,
1698
+ head: ua.value.headers,
1699
+ body: ua.value.rows,
1700
+ notice: z.value.a11y.translations.tableAvailable,
1701
+ caption: z.value.a11y.translations.tableCaption
1702
+ }, null, 8, [
1703
+ "uid",
1704
+ "head",
1705
+ "body",
1706
+ "notice",
1707
+ "caption"
1708
+ ])) : S("", !0),
1709
+ z.value.userOptions.buttons.annotator ? (D(), x(M(Yt), {
1710
+ key: 1,
1711
+ svgRef: M(V),
1712
+ backgroundColor: z.value.style.chart.backgroundColor,
1713
+ color: z.value.style.chart.color,
1714
+ active: Rn.value,
1715
+ isCursorPointer: B.value,
1716
+ onClose: zn
1717
+ }, {
1718
+ "annotator-action-close": N(() => [A(t.$slots, "annotator-action-close", {}, void 0, !0)]),
1719
+ "annotator-action-color": N(({ color: e }) => [A(t.$slots, "annotator-action-color", E(T({ color: e })), void 0, !0)]),
1720
+ "annotator-action-draw": N(({ mode: e }) => [A(t.$slots, "annotator-action-draw", E(T({ mode: e })), void 0, !0)]),
1721
+ "annotator-action-undo": N(({ disabled: e }) => [A(t.$slots, "annotator-action-undo", E(T({ disabled: e })), void 0, !0)]),
1722
+ "annotator-action-redo": N(({ disabled: e }) => [A(t.$slots, "annotator-action-redo", E(T({ disabled: e })), void 0, !0)]),
1723
+ "annotator-action-delete": N(({ disabled: e }) => [A(t.$slots, "annotator-action-delete", E(T({ disabled: e })), void 0, !0)]),
1724
+ _: 3
1725
+ }, 8, [
1726
+ "svgRef",
1727
+ "backgroundColor",
1728
+ "color",
1729
+ "active",
1730
+ "isCursorPointer"
1731
+ ])) : S("", !0),
1732
+ A(t.$slots, "userConfig", {}, void 0, !0),
1733
+ rr.value ? (D(), C("div", {
1734
+ key: 2,
1735
+ ref_key: "noTitle",
1736
+ ref: dn,
1737
+ class: "vue-data-ui-no-title-space",
1738
+ style: "height:36px; width: 100%;background:transparent"
1739
+ }, null, 512)) : S("", !0),
1740
+ z.value.style.chart.title.text ? (D(), C("div", {
1741
+ key: 3,
1742
+ ref_key: "chartTitle",
1743
+ ref: cn,
1744
+ style: "width:100%;background:transparent;"
1745
+ }, [(D(), x(je, {
1746
+ key: `title_${hn.value}`,
1747
+ config: {
1748
+ title: {
1749
+ cy: "stackline-title",
1750
+ ...z.value.style.chart.title
1751
+ },
1752
+ subtitle: {
1753
+ cy: "stackline-subtitle",
1754
+ ...z.value.style.chart.title.subtitle
1755
+ }
1756
+ }
1757
+ }, null, 8, ["config"]))], 512)) : S("", !0),
1758
+ w("div", { id: `legend-top-${I.value}` }, null, 8, ut),
1759
+ z.value.userOptions.show && an.value && (M(qn) || M(Gn)) ? (D(), x(M(Xt), {
1760
+ ref_key: "userOptionsRef",
1761
+ ref: bn,
1762
+ key: `user_option_${sn.value}`,
1763
+ backgroundColor: z.value.style.chart.backgroundColor,
1764
+ color: z.value.style.chart.color,
1765
+ isPrinting: M($n),
1766
+ isImaging: M(er),
1767
+ uid: I.value,
1768
+ hasTooltip: z.value.style.chart.tooltip.show && z.value.userOptions.buttons.tooltip,
1769
+ hasPdf: z.value.userOptions.buttons.pdf,
1770
+ hasImg: z.value.userOptions.buttons.img,
1771
+ hasSvg: z.value.userOptions.buttons.svg,
1772
+ hasXls: z.value.userOptions.buttons.csv,
1773
+ hasTable: z.value.userOptions.buttons.table,
1774
+ hasLabel: z.value.userOptions.buttons.labels,
1775
+ hasFullscreen: z.value.userOptions.buttons.fullscreen,
1776
+ hasAltCopy: z.value.userOptions.buttons.altCopy,
1777
+ isFullscreen: pn.value,
1778
+ chartElement: F.value,
1779
+ position: z.value.userOptions.position,
1780
+ isTooltip: H.value.showTooltip,
1781
+ titles: { ...z.value.userOptions.buttonTitles },
1782
+ hasAnnotator: z.value.userOptions.buttons.annotator,
1783
+ isAnnotation: Rn.value,
1784
+ callbacks: z.value.userOptions.callbacks,
1785
+ printScale: z.value.userOptions.print.scale,
1786
+ tableDialog: z.value.table.useDialog,
1787
+ isCursorPointer: B.value,
1788
+ onToggleFullscreen: Wi,
1789
+ onGeneratePdf: M(tr),
1790
+ onGenerateCsv: Mi,
1791
+ onGenerateImage: M(Bi),
1792
+ onGenerateSvg: M(zi),
1793
+ onToggleTable: Gi,
1794
+ onToggleLabels: Ki,
1795
+ onToggleTooltip: qi,
1796
+ onToggleAnnotator: zn,
1797
+ onCopyAlt: ia,
1798
+ style: Qe({ visibility: M(qn) ? M(Gn) ? "visible" : "hidden" : "visible" })
1799
+ }, Ge({ _: 2 }, [
1800
+ t.$slots.menuIcon ? {
1801
+ name: "menuIcon",
1802
+ fn: N(({ isOpen: e, color: n }) => [A(t.$slots, "menuIcon", E(T({
1803
+ isOpen: e,
1804
+ color: n
1805
+ })), void 0, !0)]),
1806
+ key: "0"
1807
+ } : void 0,
1808
+ t.$slots.optionTooltip ? {
1809
+ name: "optionTooltip",
1810
+ fn: N(() => [A(t.$slots, "optionTooltip", {}, void 0, !0)]),
1811
+ key: "1"
1812
+ } : void 0,
1813
+ t.$slots.optionPdf ? {
1814
+ name: "optionPdf",
1815
+ fn: N(() => [A(t.$slots, "optionPdf", {}, void 0, !0)]),
1816
+ key: "2"
1817
+ } : void 0,
1818
+ t.$slots.optionCsv ? {
1819
+ name: "optionCsv",
1820
+ fn: N(() => [A(t.$slots, "optionCsv", {}, void 0, !0)]),
1821
+ key: "3"
1822
+ } : void 0,
1823
+ t.$slots.optionImg ? {
1824
+ name: "optionImg",
1825
+ fn: N(() => [A(t.$slots, "optionImg", {}, void 0, !0)]),
1826
+ key: "4"
1827
+ } : void 0,
1828
+ t.$slots.optionSvg ? {
1829
+ name: "optionSvg",
1830
+ fn: N(() => [A(t.$slots, "optionSvg", {}, void 0, !0)]),
1831
+ key: "5"
1832
+ } : void 0,
1833
+ t.$slots.optionTable ? {
1834
+ name: "optionTable",
1835
+ fn: N(() => [A(t.$slots, "optionTable", {}, void 0, !0)]),
1836
+ key: "6"
1837
+ } : void 0,
1838
+ t.$slots.optionLabels ? {
1839
+ name: "optionLabels",
1840
+ fn: N(() => [A(t.$slots, "optionLabels", {}, void 0, !0)]),
1841
+ key: "7"
1842
+ } : void 0,
1843
+ t.$slots.optionFullscreen ? {
1844
+ name: "optionFullscreen",
1845
+ fn: N(({ toggleFullscreen: e, isFullscreen: n }) => [A(t.$slots, "optionFullscreen", E(T({
1846
+ toggleFullscreen: e,
1847
+ isFullscreen: n
1848
+ })), void 0, !0)]),
1849
+ key: "8"
1850
+ } : void 0,
1851
+ t.$slots.optionAnnotator ? {
1852
+ name: "optionAnnotator",
1853
+ fn: N(({ toggleAnnotator: e, isAnnotator: n }) => [A(t.$slots, "optionAnnotator", E(T({
1854
+ toggleAnnotator: e,
1855
+ isAnnotator: n
1856
+ })), void 0, !0)]),
1857
+ key: "9"
1858
+ } : void 0,
1859
+ t.$slots.optionAltCopy ? {
1860
+ name: "optionAltCopy",
1861
+ fn: N(({ altCopy: e }) => [A(t.$slots, "optionAltCopy", E(T({ altCopy: e })), void 0, !0)]),
1862
+ key: "10"
1863
+ } : void 0,
1864
+ t.$slots["custom-menu-before"] ? {
1865
+ name: "custom-menu-before",
1866
+ fn: N(() => [A(t.$slots, "custom-menu-before", {}, void 0, !0)]),
1867
+ key: "11"
1868
+ } : void 0,
1869
+ t.$slots["custom-menu-after"] ? {
1870
+ name: "custom-menu-after",
1871
+ fn: N(() => [A(t.$slots, "custom-menu-after", {}, void 0, !0)]),
1872
+ key: "12"
1873
+ } : void 0
1874
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : S("", !0),
1875
+ w("div", dt, [(D(), C("svg", {
1876
+ ref_key: "svgRef",
1877
+ ref: V,
1878
+ "aria-describedby": `chart-instructions-${I.value}`,
1879
+ xmlns: M(ue),
1880
+ viewBox: `0 0 ${W.value.chartWidth <= 0 ? 10 : W.value.chartWidth} ${W.value.chartHeight <= 0 ? 10 : W.value.chartHeight}`,
1881
+ class: Ze({
1882
+ "vue-data-ui-loading": M(Hn),
1883
+ "vue-data-ui-fullscreen--on": pn.value,
1884
+ "vue-data-ui-fulscreen--off": !pn.value,
1885
+ "vue-data-ui-no-transition": !M(Bn)
1886
+ }),
1887
+ style: Qe(`max-width:100%;overflow:visible;background:transparent;color:${z.value.style.chart.color}`),
1888
+ role: "img",
1889
+ "aria-live": "polite",
1890
+ tabindex: "0",
1891
+ preserveAspectRatio: "xMidYMid",
1892
+ onMousemove: hi,
1893
+ onMouseleave: vi,
1894
+ onClick: gi,
1895
+ onFocus: oa,
1896
+ onBlur: sa,
1897
+ onKeydown: ca
1898
+ }, [
1899
+ qe(M(Zt)),
1900
+ (D(!0), C(y, null, k(yr.value, (e) => (D(), C(y, null, [t.$slots.pattern ? (D(), C("defs", pt, [A(t.$slots, "pattern", Ye({ ref_for: !0 }, {
1901
+ seriesIndex: e.absoluteIndex,
1902
+ patternId: `pattern_${I.value}_${e.absoluteIndex}`
1903
+ }), void 0, !0)])) : S("", !0)], 64))), 256)),
1904
+ t.$slots["chart-background"] ? (D(), C("foreignObject", {
1905
+ key: 0,
1906
+ x: X.value.left,
1907
+ y: W.value.top,
1908
+ width: X.value.width,
1909
+ height: W.value.height,
1910
+ style: { pointerEvents: "none" }
1911
+ }, [A(t.$slots, "chart-background", {}, void 0, !0)], 8, mt)) : S("", !0),
1912
+ z.value.style.chart.lines.gradient.show ? (D(), C("defs", ht, [(D(!0), C(y, null, k(Y.value, (e, t) => (D(), x(Ie, {
1913
+ t: "linear",
1914
+ id: `gradient_${e.id}`,
1915
+ key: `gradient_${e.id}_${t}`,
1916
+ x1: "0%",
1917
+ y1: "0%",
1918
+ x2: "0%",
1919
+ y2: "100%",
1920
+ stops: [[
1921
+ "0%",
1922
+ e.color,
1923
+ 1
1924
+ ], [
1925
+ "100%",
1926
+ M(re)(e.color, z.value.style.chart.lines.gradient.intensity / 100),
1927
+ 1
1928
+ ]]
1929
+ }, null, 8, ["id", "stops"]))), 128))])) : S("", !0),
1930
+ z.value.style.chart.grid.x.showHorizontalLines ? (D(!0), C(y, { key: 2 }, k(Br.value, (e, t) => (D(), C("line", {
1931
+ x1: X.value.left,
1932
+ x2: X.value.right,
1933
+ y1: e.y,
1934
+ y2: e.y,
1935
+ stroke: z.value.style.chart.grid.x.linesColor,
1936
+ "stroke-width": z.value.style.chart.grid.x.linesThickness,
1937
+ "stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
1938
+ "stroke-linecap": "round"
1939
+ }, null, 8, gt))), 256)) : S("", !0),
1940
+ z.value.style.chart.grid.y.showVerticalLines ? (D(!0), C(y, { key: 3 }, k(q.value.end - q.value.start, (e, t) => (D(), C("line", {
1941
+ x1: Q(t),
1942
+ x2: Q(t),
1943
+ y1: W.value.top,
1944
+ y2: W.value.bottom,
1945
+ stroke: z.value.style.chart.grid.y.linesColor,
1946
+ "stroke-width": z.value.style.chart.grid.y.linesThickness,
1947
+ "stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
1948
+ "stroke-linecap": "round"
1949
+ }, null, 8, _t))), 256)) : S("", !0),
1950
+ z.value.style.chart.grid.x.showAxis ? (D(), C("line", {
1951
+ key: 4,
1952
+ x1: X.value.left,
1953
+ x2: X.value.right,
1954
+ y1: W.value.bottom,
1955
+ y2: W.value.bottom,
1956
+ stroke: z.value.style.chart.grid.x.axisColor,
1957
+ "stroke-width": z.value.style.chart.grid.x.axisThickness,
1958
+ "stroke-linecap": "round",
1959
+ "stroke-linejoin": "round"
1960
+ }, null, 8, vt)) : S("", !0),
1961
+ z.value.style.chart.grid.y.showAxis && !z.value.style.chart.lines.distributed ? (D(), C("line", {
1962
+ key: 5,
1963
+ x1: ur.value ? X.value.right : X.value.left,
1964
+ x2: ur.value ? X.value.right : X.value.left,
1965
+ y1: W.value.top,
1966
+ y2: W.value.bottom,
1967
+ stroke: z.value.style.chart.grid.y.axisColor,
1968
+ "stroke-width": z.value.style.chart.grid.y.axisThickness,
1969
+ "stroke-linecap": "round",
1970
+ "stroke-linejoin": "round"
1971
+ }, null, 8, yt)) : S("", !0),
1972
+ z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (D(), C("text", {
1973
+ key: 6,
1974
+ ref_key: "xAxisLabel",
1975
+ ref: Sn,
1976
+ x: W.value.left + W.value.width / 2,
1977
+ y: W.value.chartHeight - 3,
1978
+ "font-size": z.value.style.chart.grid.x.axisName.fontSize,
1979
+ fill: z.value.style.chart.grid.x.axisName.color,
1980
+ "font-weight": z.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
1981
+ "text-anchor": "middle"
1982
+ }, j(z.value.style.chart.grid.x.axisName.text), 9, bt)) : S("", !0),
1983
+ z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (D(), C("text", {
1984
+ key: 7,
1985
+ ref_key: "yAxisLabel",
1986
+ ref: Cn,
1987
+ transform: `translate(${ur.value ? W.value.chartWidth - z.value.style.chart.grid.y.axisName.fontSize / 2 - z.value.style.chart.grid.y.axisName.offsetX : z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
1988
+ "font-size": z.value.style.chart.grid.y.axisName.fontSize,
1989
+ fill: z.value.style.chart.grid.y.axisName.color,
1990
+ "font-weight": z.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
1991
+ "text-anchor": "middle"
1992
+ }, j(z.value.style.chart.grid.y.axisName.text), 9, xt)) : S("", !0),
1993
+ z.value.style.chart.grid.frame.show ? (D(), C("rect", {
1994
+ key: 8,
1995
+ style: {
1996
+ pointerEvents: "none",
1997
+ transition: "none",
1998
+ animation: "none !important"
1999
+ },
2000
+ x: X.value.left,
2001
+ y: W.value.top,
2002
+ width: X.value.width,
2003
+ height: W.value.height,
2004
+ fill: "transparent",
2005
+ stroke: z.value.style.chart.grid.frame.stroke,
2006
+ "stroke-width": z.value.style.chart.grid.frame.strokeWidth,
2007
+ "stroke-linecap": z.value.style.chart.grid.frame.strokeLinecap,
2008
+ "stroke-linejoin": z.value.style.chart.grid.frame.strokeLinejoin,
2009
+ "stroke-dasharray": z.value.style.chart.grid.frame.strokeDasharray
2010
+ }, null, 8, St)) : S("", !0),
2011
+ (D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, null, [z.value.style.chart.lines.useArea && !e.standalone ? (D(), C("path", {
2012
+ key: 0,
2013
+ d: z.value.style.chart.lines.smooth ? e.smoothArea : e.straightArea,
2014
+ fill: t.$slots.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : z.value.style.chart.lines.gradient.show ? `url(#gradient_${e.id})` : e.color,
2015
+ opacity: z.value.style.chart.lines.areaOpacity,
2016
+ class: Ze({ "vue-data-ui-transition": M(Bn) })
2017
+ }, null, 10, Ct)) : S("", !0)], 64))), 256)),
2018
+ (D(!0), C(y, null, k(Y.value, (e) => (D(), C("path", {
2019
+ d: z.value.style.chart.lines.smooth ? e.smoothPath : e.straightPath,
2020
+ stroke: z.value.style.chart.lines.path.useSerieColor ? e.color : z.value.style.chart.lines.path.stroke,
2021
+ "stroke-width": z.value.style.chart.lines.strokeWidth,
2022
+ fill: "none",
2023
+ "stroke-linecap": "round",
2024
+ class: Ze({ "vue-data-ui-transition": M(Bn) })
2025
+ }, null, 10, wt))), 256)),
2026
+ z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.lines.distributed ? (D(), C("g", {
2027
+ key: 9,
2028
+ ref_key: "scaleLabels",
2029
+ ref: wn
2030
+ }, [(D(!0), C(y, null, k(Br.value, (e, t) => (D(), C("line", {
2031
+ key: `ytick_${t}`,
2032
+ class: Ze({ "vue-data-ui-transition": M(Bn) }),
2033
+ x1: ur.value ? X.value.right : X.value.left,
2034
+ x2: ur.value ? X.value.right + 6 : X.value.left - 6,
2035
+ y1: e.y,
2036
+ y2: e.y,
2037
+ stroke: z.value.style.chart.grid.x.axisColor,
2038
+ "stroke-width": 1
2039
+ }, null, 10, Tt))), 128)), (D(!0), C(y, null, k(Br.value, (e, t) => (D(), C("text", {
2040
+ class: Ze({ "vue-data-ui-transition": M(Bn) }),
2041
+ transform: `translate(${e.x}, ${e.y + z.value.style.chart.grid.y.axisLabels.fontSize / 3})`,
2042
+ "font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
2043
+ "font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
2044
+ fill: z.value.style.chart.grid.y.axisLabels.color,
2045
+ "text-anchor": ur.value ? "start" : "end"
2046
+ }, j(M(v)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, M(f)({
2047
+ p: z.value.style.chart.lines.dataLabels.prefix,
2048
+ v: e.value,
2049
+ s: z.value.style.chart.lines.dataLabels.suffix,
2050
+ r: z.value.style.chart.grid.y.axisLabels.rounding
2051
+ }), { datapoint: e })), 11, Et))), 256))], 512)) : S("", !0),
2052
+ z.value.style.chart.grid.x.timeLabels.show ? (D(), C("g", {
2053
+ key: 10,
2054
+ ref_key: "timeLabelsEls",
2055
+ ref: Tn
2056
+ }, [t.$slots["time-label"] ? (D(), C("g", Dt, [(D(!0), C(y, null, k(Kr.value, (e, n) => (D(), C("g", null, [A(t.$slots, "time-label", Ye({ ref_for: !0 }, {
2057
+ x: W.value.left + kr.value * n + kr.value / 2,
2058
+ y: W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY,
2059
+ fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
2060
+ fill: z.value.style.chart.grid.x.timeLabels.color,
2061
+ transform: `translate(${W.value.left + kr.value * n + kr.value / 2}, ${W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
2062
+ absoluteIndex: e.absoluteIndex,
2063
+ content: e.text,
2064
+ textAnchor: z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
2065
+ show: !0
2066
+ }), void 0, !0)]))), 256))])) : (D(), C("g", Ot, [(D(!0), C(y, null, k(Kr.value, (e, n) => (D(), C("g", null, [String(e.text).includes("\n") ? (D(), C("text", {
2067
+ key: n + "-multi",
2068
+ "text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
2069
+ "font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
2070
+ fill: z.value.style.chart.grid.x.timeLabels.color,
2071
+ transform: `
2072
+ translate(
2073
+ ${Q(n)},
2074
+ ${W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}
2075
+ ),
2076
+ rotate(${z.value.style.chart.grid.x.timeLabels.rotation})
2077
+ `,
2078
+ style: Qe({ cursor: B.value ? "pointer" : "default" }),
2079
+ innerHTML: t.createTSpansFromLineBreaksOnX({
2080
+ content: String(e.text),
2081
+ fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
2082
+ fill: z.value.style.chart.grid.x.timeLabels.color,
2083
+ stroke: z.value.style.chart.backgroundColor,
2084
+ x: 0,
2085
+ y: 0
2086
+ }),
2087
+ onClick: () => Ci(e, n)
2088
+ }, null, 12, At)) : (D(), C("text", {
2089
+ class: "vue-data-ui-time-label",
2090
+ key: n,
2091
+ "text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
2092
+ "font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
2093
+ "font-weight": z.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
2094
+ fill: z.value.style.chart.grid.x.timeLabels.color,
2095
+ stroke: z.value.style.chart.backgroundColor,
2096
+ "stroke-width": "3",
2097
+ "stroke-linecap": "round",
2098
+ "stroke-linejoin": "round",
2099
+ "paint-order": "stroke fill",
2100
+ transform: `translate(${Q(n)}, ${W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
2101
+ style: Qe({ cursor: B.value ? "pointer" : "default" }),
2102
+ onClick: () => Ci(e, n)
2103
+ }, j(e.text), 13, kt))]))), 256))]))], 512)) : S("", !0),
2104
+ (xn.value || ![null, void 0].includes($.value)) && !z.value.style.chart.highlighter.useLine ? (D(!0), C(y, { key: 11 }, k(q.value.end - q.value.start, (e, t) => (D(), C("g", { key: `tooltip_trap_highlighter_${t}` }, [w("rect", {
2105
+ x: mi(t).x,
2106
+ y: W.value.top,
2107
+ height: W.value.height,
2108
+ width: mi(t).width,
2109
+ fill: [Ln.value, $.value].includes(t) ? M(u)(z.value.style.chart.highlighter.color, z.value.style.chart.highlighter.opacity) : "transparent",
2110
+ style: {
2111
+ transition: "none !important",
2112
+ animation: "none !important"
2113
+ }
2114
+ }, null, 8, jt)]))), 128)) : S("", !0),
2115
+ (xn.value || ![null, void 0].includes($.value)) && z.value.style.chart.highlighter.useLine ? (D(), C(y, { key: 12 }, [![null, void 0].includes($.value) || ![null, void 0].includes(Ln.value) ? (D(), C("g", Mt, [w("line", {
2116
+ x1: Q(($.value ?? Ln.value) || 0),
2117
+ x2: Q(($.value ?? Ln.value) || 0),
2118
+ y1: M(le)(W.value.top),
2119
+ y2: M(le)(W.value.bottom),
2120
+ stroke: z.value.style.chart.highlighter.color,
2121
+ "stroke-width": z.value.style.chart.highlighter.lineWidth,
2122
+ "stroke-dasharray": z.value.style.chart.highlighter.lineDasharray,
2123
+ "stroke-linecap": "round",
2124
+ style: {
2125
+ transition: "none !important",
2126
+ animation: "none !important",
2127
+ "pointer-events": "none"
2128
+ }
2129
+ }, null, 8, Nt)])) : S("", !0)], 64)) : S("", !0),
2130
+ (D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, { key: `shp_sel_${e.id}` }, [xn.value && q.value.end - q.value.start > z.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (D(), C("g", Pt, [$.value == null ? S("", !0) : (D(), C(y, { key: 0 }, [e.rel.includes($.value) && e.fullSeries?.[q.value.start + $.value] != null && !Number.isNaN(e.fullSeries?.[q.value.start + $.value]) ? (D(), x(Me, {
2131
+ key: 0,
2132
+ shape: [
2133
+ "triangle",
2134
+ "square",
2135
+ "diamond",
2136
+ "pentagon",
2137
+ "hexagon",
2138
+ "star"
2139
+ ].includes(e.shape) ? e.shape : "circle",
2140
+ color: z.value.style.chart.lines.dot.useSerieColor ? e.color : z.value.style.chart.lines.dot.fill,
2141
+ plot: {
2142
+ x: M(g)(e.points[e.rel.indexOf($.value)].x),
2143
+ y: M(g)(e.points[e.rel.indexOf($.value)].y)
2144
+ },
2145
+ radius: z.value.style.chart.lines.dot.radius * 1.3,
2146
+ stroke: z.value.style.chart.lines.dot.useSerieColor ? z.value.style.chart.lines.dot.stroke : e.color,
2147
+ strokeWidth: z.value.style.chart.lines.dot.strokeWidth,
2148
+ still: M(Hn),
2149
+ class: Ze({ "vue-data-ui-transition": M(Bn) })
2150
+ }, null, 8, [
2151
+ "shape",
2152
+ "color",
2153
+ "plot",
2154
+ "radius",
2155
+ "stroke",
2156
+ "strokeWidth",
2157
+ "still",
2158
+ "class"
2159
+ ])) : S("", !0)], 64))])) : S("", !0)], 64))), 128)),
2160
+ (D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, { key: `shp_${e.id}` }, [q.value.end - q.value.start < z.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (D(!0), C(y, { key: 0 }, k(e.points, (t, n) => (D(), C("g", { key: `shp_${e.id}_${q.value.start + n}` }, [e.fullSeries?.[q.value.start + e.rel[n]] != null && !Number.isNaN(e.fullSeries?.[q.value.start + e.rel[n]]) ? (D(), x(Me, {
2161
+ key: 0,
2162
+ shape: [
2163
+ "triangle",
2164
+ "square",
2165
+ "diamond",
2166
+ "pentagon",
2167
+ "hexagon",
2168
+ "star"
2169
+ ].includes(e.shape) ? e.shape : "circle",
2170
+ color: z.value.style.chart.lines.dot.useSerieColor ? e.color : z.value.style.chart.lines.dot.fill,
2171
+ plot: {
2172
+ x: t.x,
2173
+ y: t.y
2174
+ },
2175
+ radius: xn.value && $.value === e.rel[n] ? z.value.style.chart.lines.dot.radius * 1.3 : z.value.style.chart.lines.dot.radius,
2176
+ stroke: z.value.style.chart.lines.dot.useSerieColor ? z.value.style.chart.lines.dot.stroke : e.color,
2177
+ strokeWidth: z.value.style.chart.lines.dot.strokeWidth,
2178
+ still: M(Hn),
2179
+ class: Ze({ "vue-data-ui-transition": M(Bn) })
2180
+ }, null, 8, [
2181
+ "shape",
2182
+ "color",
2183
+ "plot",
2184
+ "radius",
2185
+ "stroke",
2186
+ "strokeWidth",
2187
+ "still",
2188
+ "class"
2189
+ ])) : S("", !0)]))), 128)) : S("", !0)], 64))), 128)),
2190
+ H.value.dataLabels.show && z.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > q.value.end - q.value.start ? (D(), C(y, { key: 13 }, [(D(!0), C(y, null, k(Y.value, (e, t) => (D(), C("g", { key: `dl_${e.id}` }, [(D(!0), C(y, null, k(e.points, (n, r) => (D(), C(y, { key: `dp_${e.id}_${q.value.start + r}` }, [$i(e.series[r], e.proportions[r]) ? (D(), C("text", {
2191
+ key: 0,
2192
+ class: Ze({ "vue-data-ui-transition": M(Bn) }),
2193
+ transform: `translate(${n.x}, ${n.y + (e.series[r] >= 0 ? -z.value.style.chart.lines.dataLabels.fontSize / 2 + z.value.style.chart.lines.dataLabels.offsetY : z.value.style.chart.lines.dataLabels.fontSize * 1.2 - z.value.style.chart.lines.dataLabels.offsetY)})`,
2194
+ "font-size": z.value.style.chart.lines.dataLabels.fontSize,
2195
+ fill: z.value.style.chart.lines.dataLabels.color,
2196
+ "font-weight": z.value.style.chart.lines.dataLabels.bold ? "bold" : "normal",
2197
+ "text-anchor": "middle"
2198
+ }, j(z.value.style.chart.lines.showDistributedPercentage && z.value.style.chart.lines.distributed ? na(e.proportions[r] * 100, e, t, e.rel[r]) : ta(e.series[r], e, t, e.rel[r], e.signedSeries[r])), 11, Ft)) : S("", !0)], 64))), 128))]))), 128)), z.value.style.chart.lines.totalValues.show && Y.value.length > 1 ? (D(), C("g", {
2199
+ key: 0,
2200
+ ref_key: "sumTop",
2201
+ ref: En
2202
+ }, [(D(!0), C(y, null, k(Lr.value, (e, t) => (D(), C(y, { key: `total_l_${t + q.value.start}` }, [!z.value.style.chart.lines.dataLabels.hideEmptyValues || e.value !== 0 ? (D(), C("text", {
2203
+ key: 0,
2204
+ class: Ze({ "vue-data-ui-transition": M(Bn) }),
2205
+ transform: `translate(${Q(t)}, ${zr(t)})`,
2206
+ "text-anchor": "middle",
2207
+ "font-size": z.value.style.chart.lines.totalValues.fontSize,
2208
+ "font-weight": z.value.style.chart.lines.totalValues.bold ? "bold" : "normal",
2209
+ fill: z.value.style.chart.lines.totalValues.color
2210
+ }, j(ta(e.value, e, t, t, e.sign)), 11, It)) : S("", !0)], 64))), 128))], 512)) : S("", !0)], 64)) : S("", !0),
2211
+ Cr.value ? (D(), C("rect", Ye({ key: 14 }, vr.value, {
2212
+ "data-start": q.value.start,
2213
+ "data-end": q.value.end
2214
+ }), null, 16, Lt)) : S("", !0),
2215
+ A(t.$slots, "svg", { svg: {
2216
+ drawingArea: W.value,
2217
+ data: Y.value,
2218
+ isPrintingImg: M($n) || M(er) || M(Li),
2219
+ isPrintingSvg: M(Ri)
2220
+ } }, void 0, !0)
2221
+ ], 46, ft)), t.$slots.hint ? (D(), C("div", Rt, [A(t.$slots, "hint", E(T({
2222
+ hint: z.value.a11y.translations.keyboardNavigation,
2223
+ isVisible: aa.value
2224
+ })), void 0, !0)])) : S("", !0)]),
2225
+ t.$slots.watermark ? (D(), C("div", zt, [A(t.$slots, "watermark", E(T({ isPrinting: M($n) || M(er) || M(Li) || M(Ri) })), void 0, !0)])) : S("", !0),
2226
+ vn.value && (z.value.style.chart.legend.show || t.$slots.legend) ? (D(), x(We, {
2227
+ key: 6,
2228
+ to: z.value.style.chart.legend.position === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
2229
+ }, [w("div", {
2230
+ ref_key: "chartLegend",
2231
+ ref: ln
2232
+ }, [A(t.$slots, "legend", { legend: Ei.value }, () => [z.value.style.chart.legend.show ? (D(), x(He, {
2233
+ key: 0,
2234
+ legendSet: Ei.value,
2235
+ config: Di.value,
2236
+ isCursorPointer: B.value,
2237
+ onClickMarker: n[0] ||= ({ legend: e }) => e.segregate()
2238
+ }, Ge({
2239
+ item: N(({ legend: e }) => [M(Hn) ? S("", !0) : (D(), C("div", {
2240
+ key: 0,
2241
+ onClick: (t) => e.segregate(),
2242
+ style: Qe(`opacity:${L.value.includes(e.id) ? .5 : 1}`)
2243
+ }, j(e.name), 13, Bt))]),
2244
+ legendToggle: N(() => [Ei.value.length > 2 && z.value.style.chart.legend.selectAllToggle.show && !M(Hn) ? (D(), x(Re, {
2245
+ key: 0,
2246
+ backgroundColor: z.value.style.chart.legend.selectAllToggle.backgroundColor,
2247
+ color: z.value.style.chart.legend.selectAllToggle.color,
2248
+ fontSize: z.value.style.chart.legend.fontSize,
2249
+ checked: L.value.length > 0,
2250
+ isCursorPointer: B.value,
2251
+ onToggle: wi
2252
+ }, null, 8, [
2253
+ "backgroundColor",
2254
+ "color",
2255
+ "fontSize",
2256
+ "checked",
2257
+ "isCursorPointer"
2258
+ ])) : S("", !0)]),
2259
+ _: 2
2260
+ }, [t.$slots.pattern ? {
2261
+ name: "legend-pattern",
2262
+ fn: N(({ legend: e, index: t }) => [qe(Me, {
2263
+ shape: e.shape,
2264
+ radius: 30,
2265
+ stroke: "none",
2266
+ plot: {
2267
+ x: 30,
2268
+ y: 30
2269
+ },
2270
+ fill: `url(#pattern_${I.value}_${t})`
2271
+ }, null, 8, ["shape", "fill"])]),
2272
+ key: "0"
2273
+ } : void 0]), 1032, [
2274
+ "legendSet",
2275
+ "config",
2276
+ "isCursorPointer"
2277
+ ])) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
2278
+ an.value && z.value.userOptions.buttons.table ? (D(), x(tt(Hi.value.component), Ye({ key: 7 }, Hi.value.props, {
2279
+ ref_key: "tableUnit",
2280
+ ref: yn,
2281
+ onClose: Ui
2282
+ }), Ge({
2283
+ content: N(() => [qe(M(Jt), {
2284
+ colNames: Ni.value.colNames,
2285
+ head: Ni.value.head,
2286
+ body: Ni.value.body,
2287
+ config: Ni.value.config,
2288
+ title: z.value.table.useDialog ? "" : Hi.value.title,
2289
+ withCloseButton: !z.value.table.useDialog,
2290
+ isCursorPointer: B.value,
2291
+ onClose: Ui
2292
+ }, {
2293
+ th: N(({ th: e }) => [e === "__SUM__" ? (D(), C("div", Vt, [qe(M(Kt), {
2294
+ name: "sigma",
2295
+ stroke: Ni.value.config.th.color,
2296
+ size: 16
2297
+ }, null, 8, ["stroke"])])) : (D(), C("div", Ht, j(e), 1))]),
2298
+ td: N(({ td: e }) => [Ke(j(isNaN(Number(e)) ? e : M(f)({
2299
+ p: z.value.style.chart.lines.dataLabels.prefix,
2300
+ v: e,
2301
+ s: z.value.style.chart.lines.dataLabels.suffix,
2302
+ r: z.value.table.td.roundingValue
2303
+ })), 1)]),
2304
+ _: 1
2305
+ }, 8, [
2306
+ "colNames",
2307
+ "head",
2308
+ "body",
2309
+ "config",
2310
+ "title",
2311
+ "withCloseButton",
2312
+ "isCursorPointer"
2313
+ ])]),
2314
+ _: 2
2315
+ }, [z.value.table.useDialog ? {
2316
+ name: "title",
2317
+ fn: N(() => [Ke(j(Hi.value.title), 1)]),
2318
+ key: "0"
2319
+ } : void 0, z.value.table.useDialog ? {
2320
+ name: "actions",
2321
+ fn: N(() => [w("button", {
2322
+ tabindex: "0",
2323
+ class: "vue-ui-user-options-button",
2324
+ onClick: n[1] ||= (e) => Mi(z.value.userOptions.callbacks.csv),
2325
+ style: Qe({ cursor: B.value ? "pointer" : "default" })
2326
+ }, [qe(M(Kt), {
2327
+ name: "fileCsv",
2328
+ stroke: Hi.value.props.color
2329
+ }, null, 8, ["stroke"])], 4)]),
2330
+ key: "1"
2331
+ } : void 0]), 1040)) : S("", !0),
2332
+ z.value.style.chart.zoom.show && an.value && ti.value && K.value > 6 ? (D(), x(Le, {
2333
+ key: 8,
2334
+ ref_key: "chartSlicer",
2335
+ ref: un,
2336
+ "data-dom-to-png-ignore-layout": "",
2337
+ allMinimaps: Nr.value,
2338
+ background: z.value.style.chart.zoom.color,
2339
+ borderColor: z.value.style.chart.backgroundColor,
2340
+ customFormat: z.value.style.chart.zoom.customFormat,
2341
+ cutNullValues: !1,
2342
+ enableRangeHandles: z.value.style.chart.zoom.enableRangeHandles,
2343
+ enableSelectionDrag: z.value.style.chart.zoom.enableSelectionDrag,
2344
+ end: q.value.end,
2345
+ focusOnDrag: z.value.style.chart.zoom.focusOnDrag,
2346
+ focusRangeRatio: z.value.style.chart.zoom.focusRangeRatio,
2347
+ fontSize: z.value.style.chart.zoom.fontSize,
2348
+ immediate: !z.value.style.chart.zoom.preview.enable,
2349
+ inputColor: z.value.style.chart.zoom.color,
2350
+ isPreview: Cr.value,
2351
+ labelLeft: z.value.style.chart.grid.x.timeLabels.values[q.value.start] ? Vr.value?.[0]?.text ?? "" : "",
2352
+ labelRight: z.value.style.chart.grid.x.timeLabels.values[q.value.end - 1] ? Vr.value?.at(-1)?.text ?? "" : "",
2353
+ max: Math.max(...e.dataset.map((e) => e.series.length)),
2354
+ min: 0,
2355
+ minimap: Mr.value,
2356
+ minimapCompact: z.value.style.chart.zoom.minimap.compact,
2357
+ minimapFrameColor: z.value.style.chart.zoom.minimap.frameColor,
2358
+ minimapIndicatorColor: z.value.style.chart.zoom.minimap.indicatorColor,
2359
+ minimapMerged: !1,
2360
+ minimapSelectedColor: z.value.style.chart.zoom.minimap.selectedColor,
2361
+ minimapSelectedColorOpacity: z.value.style.chart.zoom.minimap.selectedColorOpacity,
2362
+ minimapSelectedIndex: $.value,
2363
+ minimapSelectionRadius: 1,
2364
+ preciseLabels: Xr.value.length ? Xr.value : Hr.value,
2365
+ refreshEndPoint: z.value.style.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : z.value.style.chart.zoom.endIndex + 1,
2366
+ refreshStartPoint: z.value.style.chart.zoom.startIndex === null ? 0 : z.value.style.chart.zoom.startIndex,
2367
+ selectColor: z.value.style.chart.zoom.highlightColor,
2368
+ selectedSeries: Xi.value,
2369
+ smoothMinimap: !1,
2370
+ start: q.value.start,
2371
+ textColor: z.value.style.chart.color,
2372
+ timeLabels: Hr.value,
2373
+ usePreciseLabels: z.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !z.value.style.chart.zoom.useDefaultFormat,
2374
+ valueEnd: q.value.end,
2375
+ valueStart: q.value.start,
2376
+ verticalHandles: z.value.style.chart.zoom.minimap.verticalHandles,
2377
+ maxWidth: z.value.style.chart.zoom.maxWidth,
2378
+ minimapLeftInsetRatio: W.value.chartWidth > 0 && z.value.style.chart.zoom.autoFit ? W.value.left / W.value.chartWidth : null,
2379
+ minimapRightInsetRatio: W.value.chartWidth > 0 && z.value.style.chart.zoom.autoFit ? (W.value.chartWidth - W.value.right) / W.value.chartWidth : null,
2380
+ isCursorPointer: B.value,
2381
+ additionalMinimapHeight: z.value.style.chart.zoom.minimap.additionalHeight,
2382
+ handleType: z.value.style.chart.zoom.minimap.handleType,
2383
+ handleIconColor: z.value.style.chart.zoom.minimap.handleIconColor,
2384
+ handleBorderWidth: z.value.style.chart.zoom.minimap.handleBorderWidth,
2385
+ handleBorderColor: z.value.style.chart.zoom.minimap.handleBorderColor,
2386
+ handleFill: z.value.style.chart.zoom.minimap.handleFill,
2387
+ handleWidth: z.value.style.chart.zoom.minimap.handleWidth,
2388
+ "onUpdate:end": ai,
2389
+ "onUpdate:start": ii,
2390
+ onTrapMouse: xr,
2391
+ onReset: n[2] ||= () => Or({ force: !0 }),
2392
+ onFutureEnd: n[3] ||= (e) => wr("end", e),
2393
+ onFutureStart: n[4] ||= (e) => wr("start", e)
2394
+ }, {
2395
+ "reset-action": N(({ reset: e }) => [A(t.$slots, "reset-action", E(T({ reset: e })), void 0, !0)]),
2396
+ slotMap: N(({ width: e, height: t, unitW: n }) => [w("g", { innerHTML: Qi({
2397
+ minimapW: e,
2398
+ minimapH: t,
2399
+ unitW: n
2400
+ }) }, null, 8, Ut)]),
2401
+ _: 3
2402
+ }, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : S("", !0),
2403
+ w("div", { id: `legend-bottom-${I.value}` }, null, 8, Wt),
2404
+ qe(M(Gt), {
2405
+ teleportTo: z.value.style.chart.tooltip.teleportTo,
2406
+ show: H.value.showTooltip && on.value,
2407
+ backgroundColor: z.value.style.chart.tooltip.backgroundColor,
2408
+ color: z.value.style.chart.tooltip.color,
2409
+ fontSize: z.value.style.chart.tooltip.fontSize,
2410
+ borderRadius: z.value.style.chart.tooltip.borderRadius,
2411
+ borderColor: z.value.style.chart.tooltip.borderColor,
2412
+ borderWidth: z.value.style.chart.tooltip.borderWidth,
2413
+ backgroundOpacity: z.value.style.chart.tooltip.backgroundOpacity,
2414
+ position: z.value.style.chart.tooltip.position,
2415
+ offsetX: z.value.style.chart.tooltip.offsetX,
2416
+ offsetY: z.value.style.chart.tooltip.offsetY,
2417
+ parent: F.value,
2418
+ content: xi.value,
2419
+ isFullscreen: pn.value,
2420
+ isCustom: z.value.style.chart.tooltip.customFormat && typeof z.value.style.chart.tooltip.customFormat == "function",
2421
+ smooth: z.value.style.chart.tooltip.smooth,
2422
+ backdropFilter: z.value.style.chart.tooltip.backdropFilter,
2423
+ smoothForce: z.value.style.chart.tooltip.smoothForce,
2424
+ smoothSnapThreshold: z.value.style.chart.tooltip.smoothSnapThreshold,
2425
+ isA11yMode: Mn.value === "keyboard",
2426
+ a11yPosition: jn.value
2427
+ }, {
2428
+ "tooltip-before": N(() => [A(t.$slots, "tooltip-before", E(T({ ...$r.value })), void 0, !0)]),
2429
+ tooltip: N(() => [A(t.$slots, "tooltip", E(T({ ...$r.value })), void 0, !0)]),
2430
+ "tooltip-after": N(() => [A(t.$slots, "tooltip-after", E(T({ ...$r.value })), void 0, !0)]),
2431
+ _: 3
2432
+ }, 8, [
2433
+ "teleportTo",
2434
+ "show",
2435
+ "backgroundColor",
2436
+ "color",
2437
+ "fontSize",
2438
+ "borderRadius",
2439
+ "borderColor",
2440
+ "borderWidth",
2441
+ "backgroundOpacity",
2442
+ "position",
2443
+ "offsetX",
2444
+ "offsetY",
2445
+ "parent",
2446
+ "content",
2447
+ "isFullscreen",
2448
+ "isCustom",
2449
+ "smooth",
2450
+ "backdropFilter",
2451
+ "smoothForce",
2452
+ "smoothSnapThreshold",
2453
+ "isA11yMode",
2454
+ "a11yPosition"
2455
+ ]),
2456
+ t.$slots.source ? (D(), C("div", {
2457
+ key: 9,
2458
+ ref_key: "source",
2459
+ ref: fn,
2460
+ dir: "auto"
2461
+ }, [A(t.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
2462
+ A(t.$slots, "skeleton", {}, () => [M(Hn) ? (D(), x(Ce, { key: 0 })) : S("", !0)], !0)
2463
+ ], 46, ct));
2464
+ }
2465
+ }, [["__scopeId", "data-v-ab99e383"]]);
2466
+ //#endregion
2467
+ export { st as n, Gt as t };