vue-data-ui 3.22.8 → 3.22.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-Av7Uxq5V.js} +1 -1
  2. package/dist/BaseIcon-UdRAvP2h.js +483 -0
  3. package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
  4. package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-BY2KLqs6.js} +1 -1
  5. package/dist/{ColorPicker-CK2-h611.js → ColorPicker-DR_ummtM.js} +1 -1
  6. package/dist/{DataTable-D9NvewTT.js → DataTable-BxpTMgfK.js} +1 -1
  7. package/dist/DefGrad-DVBqDjhO.js +48 -0
  8. package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-B6EG_Sga.js} +2 -2
  9. package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-D__dRVRA.js} +1 -1
  10. package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-DsXi7GJ-.js} +2 -2
  11. package/dist/{Slicer-BZ5VnOOS.js → Slicer-CW_XPIKL.js} +359 -354
  12. package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-CTz41lOu.js} +471 -466
  13. package/dist/{UserOptions-16uF1ayB.js → UserOptions-trvJ26nz.js} +1 -1
  14. package/dist/components/vue-ui-3d-bar.js +1 -1
  15. package/dist/components/vue-ui-accordion.js +1 -1
  16. package/dist/components/vue-ui-age-pyramid.js +1 -1
  17. package/dist/components/vue-ui-annotator.js +1 -1
  18. package/dist/components/vue-ui-bullet.js +1 -1
  19. package/dist/components/vue-ui-bump.js +1 -1
  20. package/dist/components/vue-ui-candlestick.js +1 -1
  21. package/dist/components/vue-ui-carousel-table.js +1 -1
  22. package/dist/components/vue-ui-chestnut.js +1 -1
  23. package/dist/components/vue-ui-chord.js +1 -1
  24. package/dist/components/vue-ui-circle-pack.js +1 -1
  25. package/dist/components/vue-ui-cursor.js +1 -1
  26. package/dist/components/vue-ui-dag.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-geo.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-molecule.js +1 -1
  44. package/dist/components/vue-ui-mood-radar.js +1 -1
  45. package/dist/components/vue-ui-nested-donuts.js +1 -1
  46. package/dist/components/vue-ui-onion.js +1 -1
  47. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  48. package/dist/components/vue-ui-quadrant.js +1 -1
  49. package/dist/components/vue-ui-quick-chart.js +1 -1
  50. package/dist/components/vue-ui-radar.js +1 -1
  51. package/dist/components/vue-ui-rating.js +1 -1
  52. package/dist/components/vue-ui-relation-circle.js +1 -1
  53. package/dist/components/vue-ui-ridgeline.js +1 -1
  54. package/dist/components/vue-ui-rings.js +1 -1
  55. package/dist/components/vue-ui-scatter.js +1 -1
  56. package/dist/components/vue-ui-skeleton.js +1 -1
  57. package/dist/components/vue-ui-smiley.js +1 -1
  58. package/dist/components/vue-ui-spark-trend.js +1 -1
  59. package/dist/components/vue-ui-sparkbar.js +1 -1
  60. package/dist/components/vue-ui-sparkgauge.js +1 -1
  61. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  62. package/dist/components/vue-ui-sparkline.js +1 -1
  63. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  64. package/dist/components/vue-ui-stackbar.js +1 -1
  65. package/dist/components/vue-ui-stackline.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/{package-gp9pYCfN.js → package-ByOT60IK.js} +1 -1
  82. package/dist/{render-common-CLn1VXJ9.js → render-common-D18VrP0h.js} +1 -1
  83. package/dist/ssr/vue-ui-donut.js +1 -1
  84. package/dist/ssr/vue-ui-xy.js +1 -1
  85. package/dist/ssr.js +2 -2
  86. package/dist/style.css +1 -1
  87. package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-ub3fCh6P.js} +67 -67
  88. package/dist/vue-data-ui.js +67 -67
  89. package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
  90. package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-CjAGqEJg.js} +1 -1
  91. package/dist/{vue-ui-age-pyramid-DTAOc7fn.js → vue-ui-age-pyramid-jvQZbF8E.js} +306 -297
  92. package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BIucnT0L.js} +3 -3
  93. package/dist/{vue-ui-bullet-CCLnrOLm.js → vue-ui-bullet-CIATzlsk.js} +1 -1
  94. package/dist/{vue-ui-bump-Rq7efdoe.js → vue-ui-bump-D8MxltQE.js} +2 -2
  95. package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-DULUMU-Q.js} +513 -502
  96. package/dist/{vue-ui-carousel-table-Lx5Zk4dG.js → vue-ui-carousel-table-BSmdexG7.js} +1 -1
  97. package/dist/vue-ui-chestnut-BIh1nQ7q.js +2042 -0
  98. package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-DL1M7cgL.js} +1 -1
  99. package/dist/vue-ui-circle-pack-C1Pgq6si.js +1614 -0
  100. package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-d2uLAKTQ.js} +1 -1
  101. package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CVh9FpZr.js} +2 -2
  102. package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BH0N3ebj.js} +65 -65
  103. package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-R6wi3J-Y.js} +1 -1
  104. package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-BWDeVzLc.js} +1 -1
  105. package/dist/{vue-ui-donut-C3Rt6j-I.js → vue-ui-donut-BoZdciGh.js} +632 -623
  106. package/dist/vue-ui-donut-evolution-CpC9EMro.js +1522 -0
  107. package/dist/{vue-ui-dumbbell-wK7vUB0x.js → vue-ui-dumbbell-DGA5Bfnl.js} +528 -494
  108. package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-CNczKwTh.js} +1 -1
  109. package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
  110. package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-v3cTbUiM.js} +2 -2
  111. package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
  112. package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-BgmLkZZ2.js} +2 -2
  113. package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
  114. package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-dSTh8ah_.js} +2 -2
  115. package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-N8BqMFVU.js} +395 -384
  116. package/dist/{vue-ui-horizontal-bar-D1rCsgqt.js → vue-ui-horizontal-bar-CwiQxYzv.js} +360 -354
  117. package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BKrUk9o8.js} +1 -1
  118. package/dist/{vue-ui-molecule-CExCqZ08.js → vue-ui-molecule--kK1JfnP.js} +295 -289
  119. package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-CpBRHQo_.js} +209 -204
  120. package/dist/{vue-ui-nested-donuts-3TRV8pN-.js → vue-ui-nested-donuts-8Ehwcuns.js} +307 -301
  121. package/dist/{vue-ui-onion-DwKK9DXn.js → vue-ui-onion-Cf6JiYTH.js} +2 -2
  122. package/dist/{vue-ui-parallel-coordinate-plot-DSp_cwU-.js → vue-ui-parallel-coordinate-plot-Blnqp1DB.js} +2 -2
  123. package/dist/{vue-ui-quadrant-ByVg-NBs.js → vue-ui-quadrant-CxU0jiOm.js} +366 -360
  124. package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-BO98uEPl.js} +3 -3
  125. package/dist/{vue-ui-radar-DE-me6OC.js → vue-ui-radar-eH2Qih4_.js} +272 -266
  126. package/dist/{vue-ui-rating-CzD3EQ3G.js → vue-ui-rating-CN-ZiAES.js} +135 -126
  127. package/dist/{vue-ui-relation-circle-L7-dTqet.js → vue-ui-relation-circle-BIcP-aAt.js} +1 -1
  128. package/dist/vue-ui-ridgeline-ChXHzEJw.js +1628 -0
  129. package/dist/{vue-ui-rings-WzWiEo9W.js → vue-ui-rings-J990vNbX.js} +262 -256
  130. package/dist/{vue-ui-scatter-DwrAydha.js → vue-ui-scatter-BeJB0EKg.js} +642 -633
  131. package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-DC2bZ0nk.js} +336 -333
  132. package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-Dyyu1je3.js} +111 -98
  133. package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-CpDX85H3.js} +158 -153
  134. package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
  135. package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-D0Fo3Hts.js} +75 -70
  136. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
  137. package/dist/vue-ui-sparkline-ApivEMBP.js +1560 -0
  138. package/dist/{vue-ui-sparkstackbar-DrmiWFlw.js → vue-ui-sparkstackbar-DsKQJx_n.js} +179 -167
  139. package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-Ds4hXATH.js} +538 -531
  140. package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
  141. package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-C3ZHf4bD.js} +368 -361
  142. package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CNXNXXBU.js} +1 -1
  143. package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-B9JJ4pFF.js} +1 -1
  144. package/dist/{vue-ui-table-Q3brrivC.js → vue-ui-table-uudidrYt.js} +4 -4
  145. package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
  146. package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-5NAWw5BN.js} +91 -86
  147. package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-Caz_g1c5.js} +1 -1
  148. package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-F9upPyOI.js} +458 -453
  149. package/dist/{vue-ui-waffle-Pi9e7Ae7.js → vue-ui-waffle-Bk9AsrPp.js} +296 -290
  150. package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-DD6Q39BA.js} +1 -1
  151. package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-BZLT5svo.js} +2 -2
  152. package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-DbEJN5NA.js} +284 -273
  153. package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-BYMAITk_.js} +1294 -1268
  154. package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Cn9Q8YPr.js} +1 -1
  155. package/dist/{vue-ui-xy-canvas-BfgeE3TW.js → vue-ui-xy-canvas-Dcm2ftwm.js} +5 -5
  156. package/package.json +1 -1
  157. package/dist/BaseIcon-C2qlyHc7.js +0 -502
  158. package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
  159. package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
  160. package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
  161. package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
  162. package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
  163. package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
  164. package/dist/vue-ui-ridgeline-Cp3YP0xe.js +0 -1622
  165. package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
  166. package/dist/vue-ui-sparkhistogram-D02ff7ZI.js +0 -560
  167. package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
  168. package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
  169. package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
@@ -1,49 +1,50 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, G as n, Gt as r, J as i, Kt as a, Rt as o, T as s, Z as ee, h as c, kt as l, lt as te, ot as ne, s as re, t as ie, v as u, yt as ae, zt as oe } from "./lib-JqW18y5I.js";
3
- import { n as se, r as ce, t as le } from "./useTimeLabels-BmBRv27Y.js";
4
- import { t as ue } from "./useConfig-DYM3f6EI.js";
5
- import { t as de } from "./usePrinter-CqqHmnBI.js";
6
- import { n as fe, t as pe } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as me } from "./useSvgExport-SVIsDot8.js";
8
- import { t as he } from "./useNestedProp-DIuuzG1r.js";
9
- import { t as ge } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as _e } from "./useTimeLabelCollider-AEcY4Ioe.js";
11
- import { t as ve } from "./img-DnP3eXuv.js";
12
- import { n as ye } from "./Title-CcNiYzEo.js";
13
- import { t as be } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
- import { c as xe } from "./canvas-lib-BOP_HS11.js";
15
- import { t as Se } from "./useResponsive-BfnK0KxU.js";
16
- import { t as Ce } from "./SlicerPreview-BQFeCw0m.js";
2
+ import { $ as t, G as n, Gt as r, J as i, Kt as a, Rt as o, T as s, Z as c, h as l, kt as u, lt as ee, ot as te, s as ne, t as re, v as d, yt as ie, zt as ae } from "./lib-JqW18y5I.js";
3
+ import { n as oe, r as se, t as ce } from "./useTimeLabels-BmBRv27Y.js";
4
+ import { t as le } from "./useConfig-DYM3f6EI.js";
5
+ import { t as ue } from "./usePrinter-CqqHmnBI.js";
6
+ import { n as de, t as fe } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as pe } from "./useSvgExport-SVIsDot8.js";
8
+ import { t as me } from "./useNestedProp-DIuuzG1r.js";
9
+ import { t as he } from "./useThemeCheck-C43Tcqmk.js";
10
+ import { t as ge } from "./useTimeLabelCollider-AEcY4Ioe.js";
11
+ import { t as _e } from "./img-DnP3eXuv.js";
12
+ import { n as ve } from "./Title-CcNiYzEo.js";
13
+ import { t as ye } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
+ import { c as be } from "./canvas-lib-BOP_HS11.js";
15
+ import { t as xe } from "./useResponsive-BfnK0KxU.js";
16
+ import { t as Se } from "./DefGrad-DVBqDjhO.js";
17
+ import { t as Ce } from "./SlicerPreview-CTz41lOu.js";
17
18
  import { t as we } from "./A11yDataTable-DdRsVULz.js";
18
19
  import { t as Te } from "./useUserOptionState-DK-_1ddE.js";
19
20
  import { t as Ee } from "./useChartAccessibility-DYqac8yF.js";
20
21
  import { t as De } from "./vue_ui_candlestick-J8jmJvxP.js";
21
- import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Oe, createTextVNode as ke, createVNode as Ae, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as je, nextTick as Me, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Ne, onMounted as Pe, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Fe, shallowRef as Ie, toDisplayString as Le, toRefs as Re, unref as E, watch as ze, watchEffect as Be, withCtx as D } from "vue";
22
+ import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Oe, createTextVNode as ke, createVNode as Ae, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as je, nextTick as Me, normalizeClass as b, normalizeProps as x, normalizeStyle as Ne, onBeforeUnmount as Pe, onMounted as Fe, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Ie, shallowRef as Le, toDisplayString as Re, toRefs as ze, unref as E, watch as Be, watchEffect as Ve, withCtx as D } from "vue";
22
23
  //#region src/components/vue-ui-candlestick.vue
23
- var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We = { style: { position: "relative" } }, Ge = [
24
+ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge = { style: { position: "relative" } }, Ke = [
24
25
  "xmlns",
25
26
  "aria-describedby",
26
27
  "viewBox"
27
- ], Ke = [
28
+ ], qe = [
28
29
  "x",
29
30
  "y",
30
31
  "width",
31
32
  "height"
32
- ], qe = { key: 1 }, Je = ["id"], Ye = ["stop-color"], Xe = ["stop-color"], Ze = ["stop-color"], Qe = ["id"], $e = ["stop-color"], et = ["stop-color"], tt = ["stop-color"], nt = { key: 0 }, rt = [
33
+ ], Je = { key: 1 }, Ye = { key: 0 }, Xe = [
33
34
  "x1",
34
35
  "x2",
35
36
  "y1",
36
37
  "y2",
37
38
  "stroke",
38
39
  "stroke-width"
39
- ], it = [
40
+ ], Ze = [
40
41
  "x1",
41
42
  "x2",
42
43
  "y1",
43
44
  "y2",
44
45
  "stroke",
45
46
  "stroke-width"
46
- ], at = [
47
+ ], Qe = [
47
48
  "x1",
48
49
  "x2",
49
50
  "y1",
@@ -51,7 +52,7 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
51
52
  "stroke",
52
53
  "stroke-width",
53
54
  "stroke-dasharray"
54
- ], ot = [
55
+ ], $e = [
55
56
  "x1",
56
57
  "x2",
57
58
  "y1",
@@ -59,78 +60,78 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
59
60
  "stroke",
60
61
  "stroke-width",
61
62
  "stroke-dasharray"
62
- ], st = [
63
+ ], et = [
63
64
  "x1",
64
65
  "x2",
65
66
  "y1",
66
67
  "y2",
67
68
  "stroke",
68
69
  "stroke-width"
69
- ], ct = [
70
+ ], tt = [
70
71
  "x1",
71
72
  "x2",
72
73
  "y1",
73
74
  "y2",
74
75
  "stroke",
75
76
  "stroke-width"
76
- ], lt = [
77
+ ], nt = [
77
78
  "x",
78
79
  "y",
79
80
  "text-anchor",
80
81
  "font-size",
81
82
  "fill",
82
83
  "font-weight"
83
- ], ut = [
84
+ ], rt = [
84
85
  "transform",
85
86
  "text-anchor",
86
87
  "font-size",
87
88
  "fill",
88
89
  "font-weight"
89
- ], dt = [
90
+ ], it = [
90
91
  "transform",
91
92
  "text-anchor",
92
93
  "font-size",
93
94
  "fill",
94
95
  "font-weight"
95
- ], ft = [
96
+ ], at = [
96
97
  "x",
97
98
  "y",
98
99
  "width",
99
100
  "height",
100
101
  "fill",
101
102
  "rx"
102
- ], pt = { key: 0 }, mt = [
103
+ ], ot = { key: 0 }, st = [
103
104
  "cx",
104
105
  "cy",
105
106
  "r",
106
107
  "fill"
107
- ], ht = [
108
+ ], ct = [
108
109
  "cx",
109
110
  "cy",
110
111
  "r",
111
112
  "fill"
112
- ], gt = { key: 1 }, _t = [
113
+ ], lt = { key: 1 }, ut = [
113
114
  "x",
114
115
  "y",
115
116
  "width",
116
117
  "height",
117
118
  "rx",
118
119
  "fill"
119
- ], vt = [
120
+ ], dt = [
120
121
  "x",
121
122
  "y",
122
123
  "width",
123
124
  "height",
124
125
  "fill",
125
126
  "rx"
126
- ], yt = [
127
+ ], ft = [
127
128
  "x",
128
129
  "y",
129
130
  "height",
130
131
  "width",
131
132
  "fill",
132
133
  "rx"
133
- ], bt = [
134
+ ], pt = [
134
135
  "x",
135
136
  "y",
136
137
  "height",
@@ -139,7 +140,7 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
139
140
  "rx",
140
141
  "stroke",
141
142
  "stroke-width"
142
- ], xt = ["d", "stroke"], St = [
143
+ ], mt = ["d", "stroke"], ht = [
143
144
  "x",
144
145
  "y",
145
146
  "height",
@@ -148,7 +149,7 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
148
149
  "onMouseover",
149
150
  "onMouseleave",
150
151
  "onClick"
151
- ], Ct = ["data-start", "data-end"], wt = {
152
+ ], gt = ["data-start", "data-end"], _t = {
152
153
  key: 0,
153
154
  style: {
154
155
  position: "absolute",
@@ -158,14 +159,14 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
158
159
  },
159
160
  "data-dom-to-png-ignore": "",
160
161
  "aria-hidden": "true"
161
- }, Tt = {
162
+ }, vt = {
162
163
  key: 5,
163
164
  class: "vue-data-ui-watermark"
164
- }, Et = ["d", "stroke"], Dt = [
165
+ }, yt = ["d", "stroke"], bt = [
165
166
  "d",
166
167
  "stroke",
167
168
  "stroke-width"
168
- ], Ot = ["innerHTML"], kt = /*#__PURE__*/ be({
169
+ ], xt = ["innerHTML"], St = /*#__PURE__*/ ye({
169
170
  __name: "vue-ui-candlestick",
170
171
  props: {
171
172
  config: {
@@ -186,11 +187,11 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
186
187
  }
187
188
  },
188
189
  emits: ["selectX", "copyAlt"],
189
- setup(e, { expose: be, emit: Ve }) {
190
- let kt = _(() => import("./BaseIcon-C2qlyHc7.js").then((e) => e.n)), At = _(() => import("./Tooltip-CxOrWlFy.js")), jt = _(() => import("./vue-ui-accordion-YyosvEPo.js").then((e) => e.n)), Mt = _(() => import("./DataTable-D9NvewTT.js")), Nt = _(() => import("./PenAndPaper-pcgwlYr2.js").then((e) => e.t)), Pt = _(() => import("./UserOptions-16uF1ayB.js").then((e) => e.n)), Ft = _(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), It = _(() => import("./BaseDraggableDialog-DcfGlH8A.js").then((e) => e.n)), { vue_ui_candlestick: Lt } = ue(), { isThemeValid: Rt, warnInvalidTheme: zt } = ge(), O = e, Bt = Ve, Vt = f(() => !!O.dataset && O.dataset.length), k = C(!1), Ht = C(null), A = C(n()), Ut = C(!1), Wt = C(""), j = C(void 0), Gt = C(0), M = C(null), Kt = C(null), qt = C(null), Jt = C(null), Yt = C(null), Xt = C(null), Zt = C(0), Qt = C(0), $t = C(0), en = C(null), tn = C(null), nn = C(null), rn = C(null), an = C(null), on = C(!1), sn = C(!1), N = C(null), cn = C({
190
+ setup(e, { expose: ye, emit: He }) {
191
+ let St = v(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), Ct = v(() => import("./Tooltip-CxOrWlFy.js")), wt = v(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), Tt = v(() => import("./DataTable-BxpTMgfK.js")), Et = v(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), Dt = v(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), Ot = v(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), kt = v(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_candlestick: At } = le(), { isThemeValid: jt, warnInvalidTheme: Mt } = he(), O = e, Nt = He, Pt = p(() => !!O.dataset && O.dataset.length), k = C(!1), Ft = C(null), A = C(n()), It = C(!1), Lt = C(""), j = C(void 0), Rt = C(0), M = C(null), zt = C(null), Bt = C(null), Vt = C(null), Ht = C(null), Ut = C(null), Wt = C(0), Gt = C(0), Kt = C(0), qt = C(null), Jt = C(null), Yt = C(null), Xt = C(null), Zt = C(null), Qt = C(!1), $t = C(!1), N = C(null), en = C({
191
192
  x: 0,
192
193
  y: 0
193
- }), ln = C("pointer"), un = C(!1), P = C(yn()), dn = f(() => P.value.userOptions.useCursorPointer), fn = f(() => a({
194
+ }), tn = C("pointer"), nn = C(!1), P = C(fn()), rn = p(() => P.value.userOptions.useCursorPointer), an = p(() => a({
194
195
  defaultConfig: {
195
196
  useCssAnimation: !1,
196
197
  userOptions: { show: !1 },
@@ -228,13 +229,13 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
228
229
  }
229
230
  },
230
231
  userConfig: P.value.skeletonConfig ?? {}
231
- })), { loading: F, FINAL_DATASET: I, manualLoading: pn } = fe({
232
- ...Re(O),
232
+ })), { loading: F, FINAL_DATASET: I, manualLoading: on } = de({
233
+ ...ze(O),
233
234
  FINAL_CONFIG: P,
234
- prepareConfig: yn,
235
+ prepareConfig: fn,
235
236
  callback: () => {
236
237
  Promise.resolve().then(async () => {
237
- await fr();
238
+ await ar();
238
239
  });
239
240
  },
240
241
  skeletonDataset: O.config?.skeletonDataset ?? [
@@ -337,30 +338,30 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
337
338
  ],
338
339
  skeletonConfig: a({
339
340
  defaultConfig: P.value,
340
- userConfig: fn.value
341
+ userConfig: an.value
341
342
  })
342
- }), { userOptionsVisible: mn, setUserOptionsVisibility: hn, keepUserOptionState: gn } = Te({ config: P.value }), { svgRef: L } = Ee({ config: P.value.style.title });
343
- function _n() {
344
- hn(!0);
343
+ }), { userOptionsVisible: sn, setUserOptionsVisibility: cn, keepUserOptionState: ln } = Te({ config: P.value }), { svgRef: L } = Ee({ config: P.value.style.title });
344
+ function un() {
345
+ cn(!0);
345
346
  }
346
- function vn() {
347
- hn(!1), Bt("selectX", {
347
+ function dn() {
348
+ cn(!1), Nt("selectX", {
348
349
  seriesIndex: null,
349
350
  datapoint: null
350
351
  }), j.value = null;
351
352
  }
352
- function yn() {
353
- let e = he({
353
+ function fn() {
354
+ let e = me({
354
355
  userConfig: O.config,
355
- defaultConfig: Lt
356
+ defaultConfig: At
356
357
  }), t = {}, n = e.theme;
357
- if (n) if (!Rt.value(e)) zt(e), t = e;
358
+ if (n) if (!jt.value(e)) Mt(e), t = e;
358
359
  else {
359
- let r = he({
360
+ let r = me({
360
361
  userConfig: De[n] || O.config,
361
362
  defaultConfig: e
362
363
  });
363
- t = { ...he({
364
+ t = { ...me({
364
365
  userConfig: O.config,
365
366
  defaultConfig: r
366
367
  }) };
@@ -368,38 +369,38 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
368
369
  else t = e;
369
370
  return t;
370
371
  }
371
- ze(() => O.config, (e) => {
372
- F.value || (P.value = yn()), mn.value = !P.value.userOptions.showOnChartHover, bn(), Zt.value += 1, $t.value += 1, Qt.value += 1, H.value.showTable = P.value.table.show, H.value.showTooltip = P.value.style.tooltip.show, Nn();
373
- }, { deep: !0 }), ze(() => O.dataset, (e) => {
374
- Array.isArray(e) && e.length > 0 && (pn.value = !1), cr();
372
+ Be(() => O.config, (e) => {
373
+ F.value || (P.value = fn()), sn.value = !P.value.userOptions.showOnChartHover, pn(), Wt.value += 1, Kt.value += 1, Gt.value += 1, H.value.showTable = P.value.table.show, H.value.showTooltip = P.value.style.tooltip.show, En();
374
+ }, { deep: !0 }), Be(() => O.dataset, (e) => {
375
+ Array.isArray(e) && e.length > 0 && (on.value = !1), tr();
375
376
  }, { deep: !0 });
376
377
  let R = C({
377
378
  height: P.value.style.height,
378
379
  width: P.value.style.width,
379
380
  xAxisFontSize: P.value.style.layout.grid.xAxis.dataLabels.fontSize,
380
381
  yAxisFontSize: P.value.style.layout.grid.yAxis.dataLabels.fontSize
381
- }), z = Ie(null), B = Ie(null);
382
- Pe(() => {
383
- bn();
382
+ }), z = Le(null), B = Le(null);
383
+ Fe(() => {
384
+ pn();
384
385
  });
385
- let V = f(() => !!P.value.debug);
386
- function bn() {
387
- if (l(O.dataset) && (t({
386
+ let V = p(() => !!P.value.debug);
387
+ function pn() {
388
+ if (u(O.dataset) && (t({
388
389
  componentName: "VueUiCandlestick",
389
390
  type: "dataset",
390
391
  debug: V.value
391
- }), pn.value = !0), l(O.dataset) || (pn.value = P.value.loading), setTimeout(() => {
392
+ }), on.value = !0), u(O.dataset) || (on.value = P.value.loading), setTimeout(() => {
392
393
  k.value = !0;
393
394
  }, 10), P.value.responsive) {
394
- let e = xe(() => {
395
+ let e = be(() => {
395
396
  k.value = !1;
396
- let { width: e, height: t } = Se({
397
+ let { width: e, height: t } = xe({
397
398
  chart: M.value,
398
- title: P.value.style.title.text ? Kt.value : null,
399
- slicer: P.value.style.zoom.show && G.value > 6 ? Jt.value.$el : null,
400
- legend: qt.value,
401
- source: Yt.value,
402
- noTitle: Xt.value
399
+ title: P.value.style.title.text ? zt.value : null,
400
+ slicer: P.value.style.zoom.show && G.value > 6 ? Vt.value.$el : null,
401
+ legend: Bt.value,
402
+ source: Ht.value,
403
+ noTitle: Ut.value
403
404
  });
404
405
  requestAnimationFrame(() => {
405
406
  R.value.width = e, R.value.height = t - 12, P.value.responsiveProportionalSizing ? (R.value.xAxisFontSize = r({
@@ -414,45 +415,45 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
414
415
  source: P.value.style.layout.grid.yAxis.dataLabels.fontSize,
415
416
  threshold: 6,
416
417
  fallback: 6
417
- })) : (R.value.xAxisFontSize = P.value.style.layout.grid.xAxis.dataLabels.fontSize, R.value.yAxisFontSize = P.value.style.layout.grid.yAxis.dataLabels.fontSize), Ht.value && clearTimeout(Ht.value), Ht.value = setTimeout(() => {
418
+ })) : (R.value.xAxisFontSize = P.value.style.layout.grid.xAxis.dataLabels.fontSize, R.value.yAxisFontSize = P.value.style.layout.grid.yAxis.dataLabels.fontSize), Ft.value && clearTimeout(Ft.value), Ft.value = setTimeout(() => {
418
419
  k.value = !0;
419
420
  }, 10);
420
421
  });
421
422
  });
422
423
  z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value = M.value.parentNode, z.value.observe(B.value);
423
424
  }
424
- fr();
425
+ ar();
425
426
  }
426
- Ne(() => {
427
+ Pe(() => {
427
428
  z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
428
429
  });
429
- let { isPrinting: xn, isImaging: Sn, generatePdf: Cn, generateImage: wn } = de({
430
+ let { isPrinting: mn, isImaging: hn, generatePdf: gn, generateImage: _n } = ue({
430
431
  elementId: `vue-ui-candlestick_${A.value}`,
431
432
  fileName: P.value.style.title.text || "vue-ui-candlestick",
432
433
  options: P.value.userOptions.print
433
- }), Tn = f(() => P.value.userOptions.show && !P.value.style.title.text), H = C({
434
+ }), vn = p(() => P.value.userOptions.show && !P.value.style.title.text), H = C({
434
435
  showTable: P.value.table.show,
435
436
  showTooltip: P.value.style.tooltip.show
436
- }), En = C(0), Dn = xe((e) => {
437
- En.value = e;
437
+ }), yn = C(0), bn = be((e) => {
438
+ yn.value = e;
438
439
  }, 100);
439
- Be((e) => {
440
- let t = tn.value;
440
+ Ve((e) => {
441
+ let t = Jt.value;
441
442
  if (!t) return;
442
443
  let n = new ResizeObserver((e) => {
443
- Dn(e[0].contentRect.height);
444
+ bn(e[0].contentRect.height);
444
445
  });
445
446
  n.observe(t), e(() => n.disconnect());
446
- }), Ne(() => {
447
- En.value = 0;
447
+ }), Pe(() => {
448
+ yn.value = 0;
448
449
  });
449
- let On = f(() => {
450
+ let xn = p(() => {
450
451
  let e = 0;
451
- return tn.value && (e = En.value + R.value.xAxisFontSize), e;
452
- }), U = f(() => P.value.style.layout.grid.yAxis.position === "right");
453
- function kn() {
452
+ return Jt.value && (e = yn.value + R.value.xAxisFontSize), e;
453
+ }), U = p(() => P.value.style.layout.grid.yAxis.position === "right");
454
+ function Sn() {
454
455
  let e = P.value.style.layout.grid.yAxis.dataLabels.offsetX;
455
- en.value && (e = Array.from(en.value.querySelectorAll("text")).reduce((e, t) => {
456
+ qt.value && (e = Array.from(qt.value.querySelectorAll("text")).reduce((e, t) => {
456
457
  let n = t.getComputedTextLength();
457
458
  return n > e ? n : e;
458
459
  }, 0));
@@ -465,25 +466,25 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
465
466
  crosshair: 13
466
467
  };
467
468
  }
468
- let W = f(() => {
469
- let { top: e, right: t, bottom: n, left: r } = P.value.style.layout.padding, i = kn();
469
+ let W = p(() => {
470
+ let { top: e, right: t, bottom: n, left: r } = P.value.style.layout.padding, i = Sn();
470
471
  return {
471
472
  top: e + 12,
472
473
  right: R.value.width - t - i.right,
473
474
  left: r + i.left,
474
- bottom: R.value.height - n - On.value,
475
+ bottom: R.value.height - n - xn.value,
475
476
  width: R.value.width - r - t - i.left - i.right,
476
- height: R.value.height - e - n - On.value - 12,
477
+ height: R.value.height - e - n - xn.value - 12,
477
478
  scaleLabelsWidth: i.scaleLabelsWidth,
478
479
  yAxisNameWidth: i.yAxisNameWidth,
479
480
  crosshair: i.crosshair
480
481
  };
481
- }), An = f(() => {
482
- let { left: e, top: t, width: n, height: r } = W.value, i = K.value.start, a = K.value.end - i, o = n / a, s = q.value.start - i, ee = q.value.end - i, c = Math.max(0, Math.min(a, s)), l = Math.max(0, Math.min(a, ee));
482
+ }), Cn = p(() => {
483
+ let { left: e, top: t, width: n, height: r } = W.value, i = K.value.start, a = K.value.end - i, o = n / a, s = q.value.start - i, c = q.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
483
484
  return {
484
- x: e + c * o,
485
+ x: e + l * o,
485
486
  y: t,
486
- width: (l - c) * o,
487
+ width: (u - l) * o,
487
488
  height: r,
488
489
  fill: P.value.style.zoom.preview.fill,
489
490
  stroke: P.value.style.zoom.preview.stroke,
@@ -497,24 +498,24 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
497
498
  animation: "none !important"
498
499
  }
499
500
  };
500
- }), G = f(() => I.value.length), K = C({
501
+ }), G = p(() => I.value.length), K = C({
501
502
  start: 0,
502
503
  end: G.value
503
504
  }), q = C({
504
505
  start: 0,
505
506
  end: G.value
506
- }), jn = f(() => P.value.style.zoom.preview.enable && (q.value.start !== K.value.start || q.value.end !== K.value.end));
507
- function Mn(e, t) {
507
+ }), wn = p(() => P.value.style.zoom.preview.enable && (q.value.start !== K.value.start || q.value.end !== K.value.end));
508
+ function Tn(e, t) {
508
509
  q.value[e] = t;
509
510
  }
510
- function Nn() {
511
+ function En() {
511
512
  let e = Math.max(0, Math.min(K.value.start ?? 0, G.value - 1)), t = Math.max(e + 1, Math.min(K.value.end ?? G.value, G.value));
512
- (!Number.isFinite(e) || !Number.isFinite(t) || t <= e) && (e = 0, t = G.value), K.value.start = e, K.value.end = t, q.value.start = e, q.value.end = t, Jt.value && (Jt.value.setStartValue(e), Jt.value.setEndValue(t));
513
+ (!Number.isFinite(e) || !Number.isFinite(t) || t <= e) && (e = 0, t = G.value), K.value.start = e, K.value.end = t, q.value.start = e, q.value.end = t, Vt.value && (Vt.value.setStartValue(e), Vt.value.setEndValue(t));
513
514
  }
514
- let Pn = f(() => I.value.map((e, t) => ({
515
+ let Dn = p(() => I.value.map((e, t) => ({
515
516
  ...e,
516
517
  absoluteIndex: t
517
- }))), Fn = f(() => Pn.value.slice(K.value.start, K.value.end)), J = f(() => (I.value.forEach((e, n) => {
518
+ }))), On = p(() => Dn.value.slice(K.value.start, K.value.end)), J = p(() => (I.value.forEach((e, n) => {
518
519
  [null, void 0].includes(e[0]) && t({
519
520
  componentName: "VueUiCandlestick",
520
521
  type: "datasetAttribute",
@@ -552,7 +553,7 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
552
553
  index: n,
553
554
  debug: V.value
554
555
  });
555
- }), Fn.value.map((e) => ({
556
+ }), On.value.map((e) => ({
556
557
  absoluteIndex: e.absoluteIndex,
557
558
  period: e[0],
558
559
  open: e[1],
@@ -560,7 +561,7 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
560
561
  low: e[3],
561
562
  close: e[4],
562
563
  volume: e[5]
563
- })))), In = f(() => Pn.value.map((e) => ({
564
+ })))), kn = p(() => Dn.value.map((e) => ({
564
565
  absoluteIndex: e.absoluteIndex,
565
566
  period: e[0],
566
567
  open: e[1],
@@ -568,21 +569,21 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
568
569
  low: e[3],
569
570
  close: e[4],
570
571
  volume: e[5]
571
- }))), Y = f(() => W.value.width / Fn.value.length), Ln = f(() => ({
572
+ }))), Y = p(() => W.value.width / On.value.length), An = p(() => ({
572
573
  max: P.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...J.value.map((e) => e.high)) : P.value.style.layout.grid.yAxis.scale.max,
573
574
  min: P.value.style.layout.grid.yAxis.scale.min === null ? 0 : P.value.style.layout.grid.yAxis.scale.min
574
- })), X = f(() => c(Ln.value.min, Ln.value.max, P.value.style.layout.grid.yAxis.dataLabels.steps));
575
- function Rn(e, t, n = null, r = null) {
575
+ })), X = p(() => l(An.value.min, An.value.max, P.value.style.layout.grid.yAxis.dataLabels.steps));
576
+ function jn(e, t, n = null, r = null) {
576
577
  return {
577
578
  ...e,
578
- x: u(W.value.left + t * Y.value + Y.value / 2),
579
- y: u(W.value.top + (1 - (e - X.value.min) / (X.value.max - X.value.min)) * W.value.height),
580
- value: u(e),
579
+ x: d(W.value.left + t * Y.value + Y.value / 2),
580
+ y: d(W.value.top + (1 - (e - X.value.min) / (X.value.max - X.value.min)) * W.value.height),
581
+ value: d(e),
581
582
  isMax: e === n,
582
583
  isMin: e === r
583
584
  };
584
585
  }
585
- let Z = f(() => {
586
+ let Z = p(() => {
586
587
  let e = {
587
588
  o: Math.max(...J.value.map((e) => e.open)),
588
589
  h: Math.max(...J.value.map((e) => e.high)),
@@ -595,52 +596,52 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
595
596
  c: Math.min(...J.value.map((e) => e.low))
596
597
  }, n = Math.max(...J.value.map((e) => e.volume)), r = Math.min(...J.value.map((e) => e.volume));
597
598
  return J.value.map((i, a) => {
598
- let o = Rn(i.open, a, e.o, t.o), s = Rn(i.high, a, e.h, t.h), ee = Rn(i.low, a, e.l, t.l), c = Rn(i.close, a, e.c, t.c), l = i.close > i.open, te = i.volume === n, ne = i.volume === r;
599
+ let o = jn(i.open, a, e.o, t.o), s = jn(i.high, a, e.h, t.h), c = jn(i.low, a, e.l, t.l), l = jn(i.close, a, e.c, t.c), u = i.close > i.open, ee = i.volume === n, te = i.volume === r;
599
600
  return {
600
601
  period: i.period,
601
602
  open: o,
602
603
  high: s,
603
- low: ee,
604
- close: c,
604
+ low: c,
605
+ close: l,
605
606
  volume: i.volume,
606
- isBullish: l,
607
+ isBullish: u,
607
608
  absoluteIndex: i.absoluteIndex,
608
- isMaxVolume: te,
609
- isMinVolume: ne
609
+ isMaxVolume: ee,
610
+ isMinVolume: te
610
611
  };
611
612
  });
612
613
  });
613
- function zn({ item: e, index: t, minimapH: n, unitW: r }) {
614
+ function Mn({ item: e, index: t, minimapH: n, unitW: r }) {
614
615
  let i = P.value.style.layout.grid.yAxis.scale.min ?? 0, a = P.value.style.layout.grid.yAxis.scale.max ?? Math.max(...I.value.map((e) => e[2]));
615
616
  return {
616
617
  ...e,
617
- x: u(t * r),
618
- y: u((1 - (e - i) / (a - i)) * n),
619
- value: u(e)
618
+ x: d(t * r),
619
+ y: d((1 - (e - i) / (a - i)) * n),
620
+ value: d(e)
620
621
  };
621
622
  }
622
- let Bn = f(() => ({ minimapH: e, unitW: t }) => In.value.map((n, r) => {
623
- let i = zn({
623
+ let Nn = p(() => ({ minimapH: e, unitW: t }) => kn.value.map((n, r) => {
624
+ let i = Mn({
624
625
  item: n.open,
625
626
  index: r,
626
627
  minimapH: e,
627
628
  unitW: t
628
- }), a = zn({
629
+ }), a = Mn({
629
630
  item: n.high,
630
631
  index: r,
631
632
  minimapH: e,
632
633
  unitW: t
633
- }), o = zn({
634
+ }), o = Mn({
634
635
  item: n.low,
635
636
  index: r,
636
637
  minimapH: e,
637
638
  unitW: t
638
- }), s = zn({
639
+ }), s = Mn({
639
640
  item: n.close,
640
641
  index: r,
641
642
  minimapH: e,
642
643
  unitW: t
643
- }), ee = n.close > n.open;
644
+ }), c = n.close > n.open;
644
645
  return {
645
646
  period: n.period,
646
647
  open: i,
@@ -648,104 +649,104 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
648
649
  low: o,
649
650
  close: s,
650
651
  volume: n.volume,
651
- isBullish: ee,
652
+ isBullish: c,
652
653
  absoluteIndex: n.absoluteIndex
653
654
  };
654
- })), Vn = f(() => P.value.style.zoom.minimap.show ? [{
655
+ })), Pn = p(() => P.value.style.zoom.minimap.show ? [{
655
656
  name: "",
656
657
  series: I.value.map((e) => e[2]),
657
658
  color: "#000000",
658
659
  isVisible: !0
659
660
  }] : []);
660
- function Hn(e) {
661
- return u((e - X.value.min) / (X.value.max - X.value.min));
661
+ function Fn(e) {
662
+ return d((e - X.value.min) / (X.value.max - X.value.min));
662
663
  }
663
- let Un = f(() => X.value.ticks.map((e) => ({
664
- y: W.value.bottom - W.value.height * Hn(e),
665
- value: u(e)
666
- }))), Wn = f(() => J.value.map((e) => e.period)), Q = C([]), Gn = C([]), Kn = 0;
667
- Be(() => {
668
- let e = ++Kn;
664
+ let In = p(() => X.value.ticks.map((e) => ({
665
+ y: W.value.bottom - W.value.height * Fn(e),
666
+ value: d(e)
667
+ }))), Ln = p(() => J.value.map((e) => e.period)), Q = C([]), Rn = C([]), zn = 0;
668
+ Ve(() => {
669
+ let e = ++zn;
669
670
  (async () => {
670
- let t = await le({
671
+ let t = await ce({
671
672
  values: I.value.map((e) => e[0]),
672
673
  maxDatapoints: I.value.length,
673
674
  formatter: P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
674
675
  start: K.value.start,
675
676
  end: K.value.end
676
677
  });
677
- e === Kn && (Q.value = t);
678
+ e === zn && (Q.value = t);
678
679
  })();
679
680
  });
680
- let qn = 0;
681
- Be(() => {
682
- let e = ++qn;
681
+ let Bn = 0;
682
+ Ve(() => {
683
+ let e = ++Bn;
683
684
  (async () => {
684
- let t = await le({
685
+ let t = await ce({
685
686
  values: I.value.map((e) => e[0]),
686
687
  maxDatapoints: I.value.length,
687
688
  formatter: P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
688
689
  start: 0,
689
690
  end: G.value
690
691
  });
691
- e === qn && (Gn.value = t);
692
+ e === Bn && (Rn.value = t);
692
693
  })();
693
694
  });
694
- let Jn = f(() => {
695
+ let Vn = p(() => {
695
696
  let e = P.value.style.layout.grid.xAxis.dataLabels.modulo;
696
697
  return Q.value.length ? Math.min(e, [...new Set(Q.value.map((e) => e.text))].length) : e;
697
- }), Yn = C({
698
+ }), Hn = C({
698
699
  months: [],
699
700
  shortMonths: [],
700
701
  days: [],
701
702
  shortDays: []
702
- }), Xn = 0;
703
- Be(() => {
704
- let e = ++Xn, t = P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter;
703
+ }), Un = 0;
704
+ Ve(() => {
705
+ let e = ++Un, t = P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter;
705
706
  (async () => {
706
- let n = await ce(t.locale).catch(() => ce("en"));
707
- e === Xn && (Yn.value = n.data);
707
+ let n = await se(t.locale).catch(() => se("en"));
708
+ e === Un && (Hn.value = n.data);
708
709
  })();
709
710
  });
710
- let Zn = f(() => {
711
- let e = P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, t = se({
711
+ let Wn = p(() => {
712
+ let e = P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, t = oe({
712
713
  useUTC: e.useUTC,
713
- locale: Yn.value,
714
+ locale: Hn.value,
714
715
  januaryAsYear: e.januaryAsYear
715
716
  });
716
717
  return (e, n) => {
717
718
  let r = I.value.map((e) => e[0])?.[e];
718
719
  return r == null ? "" : t.formatDate(new Date(r), n);
719
720
  };
720
- }), Qn = f(() => (I.value.map((e) => e[0]) || []).map((e, t) => ({
721
- text: Zn.value(t, P.value.style.tooltip.timeFormat),
721
+ }), Gn = p(() => (I.value.map((e) => e[0]) || []).map((e, t) => ({
722
+ text: Wn.value(t, P.value.style.tooltip.timeFormat),
722
723
  absoluteIndex: t
723
- }))), $n = f(() => (I.value.map((e) => e[0]) || []).map((e, t) => ({
724
- text: Zn.value(t, P.value.style.zoom.timeFormat),
724
+ }))), Kn = p(() => (I.value.map((e) => e[0]) || []).map((e, t) => ({
725
+ text: Wn.value(t, P.value.style.zoom.timeFormat),
725
726
  absoluteIndex: t
726
- }))), er = f(() => {
727
- let e = P.value.style.layout.grid.xAxis.dataLabels, t = Q.value || [], n = Gn.value || [], r = K.value.start ?? 0, i = j.value, a = G.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
728
- return re(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Jn.value || 1), o, s, r, i, a);
729
- }), tr = f(() => P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
727
+ }))), qn = p(() => {
728
+ let e = P.value.style.layout.grid.xAxis.dataLabels, t = Q.value || [], n = Rn.value || [], r = K.value.start ?? 0, i = j.value, a = G.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
729
+ return ne(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Vn.value || 1), o, s, r, i, a);
730
+ }), Jn = p(() => P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
730
731
  start: Q.value.find((e) => e.absoluteIndex === K.value.start)?.text ?? "",
731
732
  end: Q.value.find((e) => e.absoluteIndex === K.value.end - 1)?.text ?? ""
732
733
  } : {
733
734
  start: I.value[K.value.start] ? I.value[K.value.start][0] : I.value[0][0],
734
735
  end: I.value[K.value.end - 1] ? I.value[K.value.end - 1][0] : I.value.at(-1)[0]
735
- }), nr = C(null);
736
- function rr(e, t) {
736
+ }), Yn = C(null);
737
+ function Xn(e, t) {
737
738
  P.value.events.datapointClick && P.value.events.datapointClick({
738
739
  datapoint: t,
739
740
  seriesIndex: e + K.value.start
740
741
  });
741
742
  }
742
- function ir(e, t) {
743
+ function Zn(e, t) {
743
744
  P.value.events.datapointLeave && P.value.events.datapointLeave({
744
745
  datapoint: t,
745
746
  seriesIndex: e + K.value.start
746
- }), j.value = void 0, Ut.value = !1, N.value = null, ln.value = "pointer";
747
+ }), j.value = void 0, It.value = !1, N.value = null, tn.value = "pointer";
747
748
  }
748
- ze(() => O.selectedXIndex, (e) => {
749
+ Be(() => O.selectedXIndex, (e) => {
749
750
  if ([null, void 0].includes(O.selectedXIndex)) {
750
751
  j.value = null;
751
752
  return;
@@ -753,53 +754,53 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
753
754
  let t = e - K.value.start;
754
755
  t < 0 || e >= K.value.end ? j.value = null : j.value = t ?? null;
755
756
  }, { immediate: !0 });
756
- function ar(e, t, n = "pointer") {
757
+ function Qn(e, t, n = "pointer") {
757
758
  P.value.events.datapointEnter && P.value.events.datapointEnter({
758
759
  datapoint: t,
759
760
  seriesIndex: e + K.value.start
760
- }), j.value = e, N.value = e, ln.value = n, nr.value = {
761
+ }), j.value = e, N.value = e, tn.value = n, Yn.value = {
761
762
  datapoint: t,
762
763
  seriesIndex: e,
763
764
  series: Z.value,
764
765
  config: P.value
765
- }, Nr({
766
+ }, Er({
766
767
  seriesIndex: e,
767
768
  datapoint: t
768
769
  });
769
770
  let r = P.value.style.tooltip.customFormat;
770
- if (ae(r) && ne(() => r({
771
+ if (ie(r) && te(() => r({
771
772
  seriesIndex: e,
772
773
  datapoint: t,
773
774
  series: Z.value,
774
775
  config: P.value
775
- }))) Wt.value = r({
776
+ }))) Lt.value = r({
776
777
  seriesIndex: e,
777
778
  datapoint: t,
778
779
  series: Z.value,
779
780
  config: P.value
780
781
  });
781
782
  else if (P.value.style.tooltip.show) {
782
- let n = "", { period: r, open: a, high: o, low: s, close: ee, volume: c, isBullish: l } = Z.value[e], { period: te, open: ne, high: re, low: ie, close: u, volume: ae } = P.value.translations, oe = P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? P.value.style.tooltip.useDefaultTimeFormat ? Q.value[e].text : Qn.value[e].text : r;
783
+ let n = "", { period: r, open: a, high: o, low: s, close: c, volume: l, isBullish: u } = Z.value[e], { period: ee, open: te, high: ne, low: re, close: d, volume: ie } = P.value.translations, ae = P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? P.value.style.tooltip.useDefaultTimeFormat ? Q.value[e].text : Gn.value[e].text : r;
783
784
  n += `<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${P.value.style.layout.candle.borderRadius * 3}" stroke="${P.value.style.layout.candle.stroke}" stroke-width="${P.value.style.layout.candle.strokeWidth}"
784
- fill="${P.value.style.layout.candle.gradient.show ? l ? `url(#bullish_gradient_${A.value})` : `url(#bearish_gradient_${A.value})` : l ? P.value.style.layout.candle.colors.bullish : P.value.style.layout.candle.colors.bearish}"/></svg>${oe}</div>`, n += `${ae} : <b>${isNaN(c) ? "-" : Number(c.toFixed(P.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${P.value.style.tooltip.borderColor}">`;
785
- let se = i({
785
+ fill="${P.value.style.layout.candle.gradient.show ? u ? `url(#bullish_gradient_${A.value})` : `url(#bearish_gradient_${A.value})` : u ? P.value.style.layout.candle.colors.bullish : P.value.style.layout.candle.colors.bearish}"/></svg>${ae}</div>`, n += `${ie} : <b>${isNaN(l) ? "-" : Number(l.toFixed(P.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${P.value.style.tooltip.borderColor}">`;
786
+ let oe = i({
786
787
  p: P.value.style.tooltip.prefix,
787
788
  v: a.value,
788
789
  s: P.value.style.tooltip.suffix,
789
790
  r: P.value.style.tooltip.roundingValue
790
- }), ce = i({
791
+ }), se = i({
791
792
  p: P.value.style.tooltip.prefix,
792
793
  v: o.value,
793
794
  s: P.value.style.tooltip.suffix,
794
795
  r: P.value.style.tooltip.roundingValue
795
- }), le = i({
796
+ }), ce = i({
796
797
  p: P.value.style.tooltip.prefix,
797
798
  v: s.value,
798
799
  s: P.value.style.tooltip.suffix,
799
800
  r: P.value.style.tooltip.roundingValue
800
- }), ue = i({
801
+ }), le = i({
801
802
  p: P.value.style.tooltip.prefix,
802
- v: ee.value,
803
+ v: c.value,
803
804
  s: P.value.style.tooltip.suffix,
804
805
  r: P.value.style.tooltip.roundingValue
805
806
  });
@@ -810,54 +811,54 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
810
811
  ${t.isBullish ? `
811
812
  <line x1="45" x2="50" y1="65" y2="65" stroke="${P.value.style.layout.candle.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
812
813
  <line x1="50" x2="55" y1="35" y2="35" stroke="${P.value.style.layout.candle.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
813
- <text x="38" y="70" text-anchor="end" fill="${P.value.style.tooltip.color}">${se}</text>
814
- <text x="62" y="40" text-anchor="start" fill="${P.value.style.tooltip.color}">${ue}</text>
814
+ <text x="38" y="70" text-anchor="end" fill="${P.value.style.tooltip.color}">${oe}</text>
815
+ <text x="62" y="40" text-anchor="start" fill="${P.value.style.tooltip.color}">${le}</text>
815
816
  ` : `
816
817
  <line x1="45" x2="50" y1="35" y2="35" stroke="${P.value.style.layout.candle.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
817
818
  <line x1="50" x2="55" y1="65" y2="65" stroke="${P.value.style.layout.candle.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
818
- <text x="40" y="40" text-anchor="end" fill="${P.value.style.tooltip.color}">${se}</text>
819
- <text x="60" y="70" text-anchor="start" fill="${P.value.style.tooltip.color}">${ue}</text>
819
+ <text x="40" y="40" text-anchor="end" fill="${P.value.style.tooltip.color}">${oe}</text>
820
+ <text x="60" y="70" text-anchor="start" fill="${P.value.style.tooltip.color}">${le}</text>
820
821
  `}
821
- <text x="50" y="13" text-anchor="middle" fill="${P.value.style.tooltip.color}">${ce}</text>
822
- <text x="50" y="97" text-anchor="middle" fill="${P.value.style.tooltip.color}">${le}</text>
822
+ <text x="50" y="13" text-anchor="middle" fill="${P.value.style.tooltip.color}">${se}</text>
823
+ <text x="50" y="97" text-anchor="middle" fill="${P.value.style.tooltip.color}">${ce}</text>
823
824
  <g>
824
825
  </svg>
825
826
  <div>
826
- ` : (n += `<div>${ne}: <b>${se}</b></div>`, n += `<div>${re}: <b>${ce}</b></div>`, n += `<div>${ie}: <b>${le}</b></div>`, n += `<div>${u}: <b>${ue}</b></div>`), n += "</div>", Wt.value = `<div style="text-align:right">${n}</div>`;
827
+ ` : (n += `<div>${te}: <b>${oe}</b></div>`, n += `<div>${ne}: <b>${se}</b></div>`, n += `<div>${re}: <b>${ce}</b></div>`, n += `<div>${d}: <b>${le}</b></div>`), n += "</div>", Lt.value = `<div style="text-align:right">${n}</div>`;
827
828
  }
828
- Ut.value = !0;
829
+ It.value = !0;
829
830
  }
830
- let or = C(null);
831
- function sr() {
831
+ let $n = C(null);
832
+ function er() {
832
833
  return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
833
834
  }
834
- Ne(() => {
835
- or.value && cancelAnimationFrame(or.value);
835
+ Pe(() => {
836
+ $n.value && cancelAnimationFrame($n.value);
836
837
  });
837
- async function cr() {
838
- fr(), await Me(), or.value && cancelAnimationFrame(or.value), or.value = requestAnimationFrame(async () => {
839
- await sr(), fr();
838
+ async function tr() {
839
+ ar(), await Me(), $n.value && cancelAnimationFrame($n.value), $n.value = requestAnimationFrame(async () => {
840
+ await er(), ar();
840
841
  });
841
842
  }
842
- let lr = C(!1), ur = C(!1), dr = C(!1);
843
- function fr() {
844
- if (!lr.value) {
845
- lr.value = !0;
843
+ let nr = C(!1), rr = C(!1), ir = C(!1);
844
+ function ar() {
845
+ if (!nr.value) {
846
+ nr.value = !0;
846
847
  try {
847
- let { startIndex: e, endIndex: t } = P.value.style.zoom, n = G.value, r = e ?? 0, i = t == null ? n : Math.min(pr(t + 1), n);
848
- dr.value = !0, K.value.start = r, K.value.end = i, q.value.start = r, q.value.end = i, Nn(), ur.value = !0;
848
+ let { startIndex: e, endIndex: t } = P.value.style.zoom, n = G.value, r = e ?? 0, i = t == null ? n : Math.min(or(t + 1), n);
849
+ ir.value = !0, K.value.start = r, K.value.end = i, q.value.start = r, q.value.end = i, En(), rr.value = !0;
849
850
  } finally {
850
851
  queueMicrotask(() => {
851
- dr.value = !1;
852
- }), lr.value = !1;
852
+ ir.value = !1;
853
+ }), nr.value = !1;
853
854
  }
854
855
  }
855
856
  }
856
- function pr(e) {
857
+ function or(e) {
857
858
  let t = G.value;
858
859
  return e > t ? t : e < 0 || e < K.value.start ? P.value.style.zoom.startIndex === null ? 1 : P.value.style.zoom.startIndex + 1 : e;
859
860
  }
860
- function mr(e = null) {
861
+ function sr(e = null) {
861
862
  Me(() => {
862
863
  let t = [
863
864
  P.value.translations.period,
@@ -883,13 +884,13 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
883
884
  ],
884
885
  t
885
886
  ].concat(n));
886
- e ? e(r) : ee({
887
+ e ? e(r) : c({
887
888
  csvContent: r,
888
889
  title: P.value.style.title.text || "vue-ui-candlestick"
889
890
  });
890
891
  });
891
892
  }
892
- let hr = f(() => {
893
+ let cr = p(() => {
893
894
  let e = Z.value.map((e, t) => {
894
895
  let n = P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? Q.value?.[t]?.text ?? "" : e.period, r = i({
895
896
  p: P.value.table.td.prefix,
@@ -975,22 +976,22 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
975
976
  colNames: r
976
977
  };
977
978
  }), $ = C(!1);
978
- function gr(e) {
979
- $.value = e, Gt.value += 1;
979
+ function lr(e) {
980
+ $.value = e, Rt.value += 1;
980
981
  }
981
- function _r() {
982
+ function ur() {
982
983
  H.value.showTable = !H.value.showTable;
983
984
  }
984
- function vr() {
985
+ function dr() {
985
986
  H.value.showTooltip = !H.value.showTooltip;
986
987
  }
987
- let yr = C(!1);
988
- function br() {
989
- yr.value = !yr.value;
988
+ let fr = C(!1);
989
+ function pr() {
990
+ fr.value = !fr.value;
990
991
  }
991
- async function xr({ scale: e = 2 } = {}) {
992
+ async function mr({ scale: e = 2 } = {}) {
992
993
  if (!M.value) return;
993
- let { imageUri: t, base64: n } = await ve({
994
+ let { imageUri: t, base64: n } = await _e({
994
995
  domElement: M.value,
995
996
  base64: !0,
996
997
  img: !0,
@@ -999,7 +1000,7 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
999
1000
  width: r.width,
1000
1001
  height: r.height,
1001
1002
  aspectRatio: r.height ? r.width / r.height : 0
1002
- }, a = await te(t, e) ?? i;
1003
+ }, a = await ee(t, e) ?? i;
1003
1004
  return {
1004
1005
  imageUri: t,
1005
1006
  base64: n,
@@ -1007,9 +1008,9 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1007
1008
  ...a
1008
1009
  };
1009
1010
  }
1010
- let Sr = f(() => R.value.width), Cr = f(() => R.value.height);
1011
- _e({
1012
- timeLabelsEls: tn,
1011
+ let hr = p(() => R.value.width), gr = p(() => R.value.height);
1012
+ ge({
1013
+ timeLabelsEls: Jt,
1013
1014
  timeLabels: Q,
1014
1015
  slicer: K,
1015
1016
  configRef: P,
@@ -1032,18 +1033,18 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1032
1033
  ],
1033
1034
  isAutoSize: !1,
1034
1035
  rotation: P.value.style.layout.grid.xAxis.dataLabels.autoRotate.angle,
1035
- width: Sr,
1036
- height: Cr
1037
- }), ze(P, () => {
1036
+ width: hr,
1037
+ height: gr
1038
+ }), Be(P, () => {
1038
1039
  H.value = {
1039
1040
  showTable: P.value.table.show,
1040
1041
  showTooltip: P.value.style.tooltip.show
1041
1042
  };
1042
1043
  }, { immediate: !0 });
1043
- let wr = f(() => {
1044
+ let _r = p(() => {
1044
1045
  let e = P.value.table.useDialog && !P.value.table.show, t = H.value.showTable;
1045
1046
  return {
1046
- component: e ? It : jt,
1047
+ component: e ? kt : wt,
1047
1048
  title: `${P.value.style.title.text}${P.value.style.title.subtitle.text ? `: ${P.value.style.title.subtitle.text}` : ""}`,
1048
1049
  props: e ? {
1049
1050
  backgroundColor: P.value.table.th.backgroundColor,
@@ -1053,7 +1054,7 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1053
1054
  isFullscreen: $.value,
1054
1055
  fullscreenParent: M.value,
1055
1056
  forcedWidth: Math.min(800, window.innerWidth * .8),
1056
- isCursorPointer: dn.value
1057
+ isCursorPointer: rn.value
1057
1058
  } : {
1058
1059
  hideDetails: !0,
1059
1060
  config: {
@@ -1071,64 +1072,64 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1071
1072
  }
1072
1073
  };
1073
1074
  });
1074
- ze(() => H.value.showTable, (e) => {
1075
- P.value.table.show || (e && P.value.table.useDialog && nn.value ? nn.value.open() : "close" in nn.value && nn.value.close());
1075
+ Be(() => H.value.showTable, (e) => {
1076
+ P.value.table.show || (e && P.value.table.useDialog && Yt.value ? Yt.value.open() : "close" in Yt.value && Yt.value.close());
1076
1077
  });
1077
- function Tr() {
1078
- H.value.showTable = !1, rn.value && rn.value.setTableIconState(!1);
1078
+ function vr() {
1079
+ H.value.showTable = !1, Xt.value && Xt.value.setTableIconState(!1);
1079
1080
  }
1080
- let Er = f(() => P.value.style.backgroundColor), { exportSvg: Dr, getSvg: Or } = me({
1081
+ let yr = p(() => P.value.style.backgroundColor), { exportSvg: br, getSvg: xr } = pe({
1081
1082
  svg: L,
1082
- title: f(() => P.value.style.title),
1083
- backgroundColor: Er
1083
+ title: p(() => P.value.style.title),
1084
+ backgroundColor: yr
1084
1085
  });
1085
- async function kr({ isCb: e }) {
1086
- sn.value = !0, await Me();
1086
+ async function Sr({ isCb: e }) {
1087
+ $t.value = !0, await Me();
1087
1088
  try {
1088
1089
  if (e) {
1089
- let { blob: e, url: t, text: n, dataUrl: r } = await Or();
1090
+ let { blob: e, url: t, text: n, dataUrl: r } = await xr();
1090
1091
  await Promise.resolve(P.value.userOptions.callbacks.svg({
1091
1092
  blob: e,
1092
1093
  url: t,
1093
1094
  text: n,
1094
1095
  dataUrl: r
1095
1096
  }));
1096
- } else await Promise.resolve(Dr());
1097
+ } else await Promise.resolve(br());
1097
1098
  } finally {
1098
- sn.value = !1;
1099
+ $t.value = !1;
1099
1100
  }
1100
1101
  }
1101
- function Ar(e) {
1102
- an.value = e;
1102
+ function Cr(e) {
1103
+ Zt.value = e;
1103
1104
  }
1104
- function jr(e) {
1105
- lr.value || dr.value || e !== K.value.start && (K.value.start = e, q.value.start = e, Nn());
1105
+ function wr(e) {
1106
+ nr.value || ir.value || e !== K.value.start && (K.value.start = e, q.value.start = e, En());
1106
1107
  }
1107
- function Mr(e) {
1108
- if (lr.value || dr.value) return;
1109
- let t = pr(e);
1110
- t !== K.value.end && (K.value.end = t, q.value.end = t, Nn());
1108
+ function Tr(e) {
1109
+ if (nr.value || ir.value) return;
1110
+ let t = or(e);
1111
+ t !== K.value.end && (K.value.end = t, q.value.end = t, En());
1111
1112
  }
1112
- function Nr({ seriesIndex: e, datapoint: t }) {
1113
- Bt("selectX", {
1113
+ function Er({ seriesIndex: e, datapoint: t }) {
1114
+ Nt("selectX", {
1114
1115
  dataset: t,
1115
1116
  index: K.value.start + e,
1116
1117
  indexLabel: ""
1117
1118
  });
1118
1119
  }
1119
- function Pr(e) {
1120
+ function Dr(e) {
1120
1121
  if (e?.stage === "start") {
1121
- on.value = !0;
1122
+ Qt.value = !0;
1122
1123
  return;
1123
1124
  }
1124
1125
  if (e?.stage === "end") {
1125
- on.value = !1;
1126
+ Qt.value = !1;
1126
1127
  return;
1127
1128
  }
1128
- wn();
1129
+ _n();
1129
1130
  }
1130
- async function Fr() {
1131
- if (Bt("copyAlt", {
1131
+ async function Or() {
1132
+ if (Nt("copyAlt", {
1132
1133
  config: P.value,
1133
1134
  dataset: Z.value
1134
1135
  }), !P.value.userOptions.callbacks.altCopy) {
@@ -1140,73 +1141,73 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1140
1141
  dataset: Z.value
1141
1142
  }));
1142
1143
  }
1143
- function Ir() {
1144
- N.value = null, un.value = !0;
1144
+ function kr() {
1145
+ N.value = null, nn.value = !0;
1145
1146
  }
1146
- function Lr() {
1147
- N.value = null, ln.value = "pointer", Ut.value = !1, j.value = void 0, un.value = !1;
1147
+ function Ar() {
1148
+ N.value = null, tn.value = "pointer", It.value = !1, j.value = void 0, nn.value = !1;
1148
1149
  }
1149
- function Rr(e) {
1150
- if (!L.value || yr.value || document.activeElement !== L.value || !Z.value.length) return;
1150
+ function jr(e) {
1151
+ if (!L.value || fr.value || document.activeElement !== L.value || !Z.value.length) return;
1151
1152
  let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1152
1153
  if (!t && !n && !r && !i) return;
1153
1154
  if (e.preventDefault(), e.stopPropagation(), i) {
1154
- N.value = null, ln.value = "pointer", Ut.value = !1, j.value = void 0;
1155
+ N.value = null, tn.value = "pointer", It.value = !1, j.value = void 0;
1155
1156
  return;
1156
1157
  }
1157
1158
  if (r) {
1158
1159
  if (N.value === null) return;
1159
1160
  let e = Z.value[N.value];
1160
1161
  if (!e) return;
1161
- rr(N.value, e);
1162
+ Xn(N.value, e);
1162
1163
  return;
1163
1164
  }
1164
- let a = N.value, o = j.value, s = a !== null && a >= 0 && a < Z.value.length, ee = o != null && o >= 0 && o < Z.value.length;
1165
- s ? n ? (a += 1, a >= Z.value.length && (a = 0)) : t && (--a, a < 0 && (a = Z.value.length - 1)) : ee ? (a = n ? o + 1 : o - 1, a >= Z.value.length && (a = 0), a < 0 && (a = Z.value.length - 1)) : a = n ? 0 : Z.value.length - 1;
1166
- let c = Z.value[a];
1167
- c && (zr(a), ar(a, c, "keyboard"));
1165
+ let a = N.value, o = j.value, s = a !== null && a >= 0 && a < Z.value.length, c = o != null && o >= 0 && o < Z.value.length;
1166
+ s ? n ? (a += 1, a >= Z.value.length && (a = 0)) : t && (--a, a < 0 && (a = Z.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value.length && (a = 0), a < 0 && (a = Z.value.length - 1)) : a = n ? 0 : Z.value.length - 1;
1167
+ let l = Z.value[a];
1168
+ l && (Mr(a), Qn(a, l, "keyboard"));
1168
1169
  }
1169
- function zr(e) {
1170
+ function Mr(e) {
1170
1171
  if (!Number.isFinite(e) || !L.value) return;
1171
1172
  let t = W.value.left + Y.value * e + Y.value / 2, n = W.value.top + W.value.height / 2, r = L.value.getBoundingClientRect();
1172
- cn.value = {
1173
+ en.value = {
1173
1174
  x: r.left + t / R.value.width * r.width,
1174
1175
  y: r.top + n / R.value.height * r.height
1175
1176
  };
1176
1177
  }
1177
- let Br = f(() => ({
1178
- headers: hr.value?.colNames ?? [],
1179
- rows: hr.value?.bodyA11y ?? []
1178
+ let Nr = p(() => ({
1179
+ headers: cr.value?.colNames ?? [],
1180
+ rows: cr.value?.bodyA11y ?? []
1180
1181
  }));
1181
- return be({
1182
- getImage: xr,
1183
- generatePdf: Cn,
1184
- generateCsv: mr,
1185
- generateImage: wn,
1186
- generateSvg: kr,
1187
- toggleTable: _r,
1188
- toggleTooltip: vr,
1189
- toggleAnnotator: br,
1190
- toggleFullscreen: gr,
1191
- copyAlt: Fr
1192
- }), (e, t) => (S(), h("div", {
1182
+ return ye({
1183
+ getImage: mr,
1184
+ generatePdf: gn,
1185
+ generateCsv: sr,
1186
+ generateImage: _n,
1187
+ generateSvg: Sr,
1188
+ toggleTable: ur,
1189
+ toggleTooltip: dr,
1190
+ toggleAnnotator: pr,
1191
+ toggleFullscreen: lr,
1192
+ copyAlt: Or
1193
+ }), (e, t) => (S(), g("div", {
1193
1194
  ref_key: "candlestickChart",
1194
1195
  ref: M,
1195
- class: y(`vue-data-ui-component vue-ui-candlestick ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1196
- style: x(`position:relative;font-family:${P.value.style.fontFamily}; text-align:center;background:${P.value.style.backgroundColor}; ${P.value.responsive ? "height: 100%" : ""}`),
1196
+ class: b(`vue-data-ui-component vue-ui-candlestick ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1197
+ style: Ne(`position:relative;font-family:${P.value.style.fontFamily}; text-align:center;background:${P.value.style.backgroundColor}; ${P.value.responsive ? "height: 100%" : ""}`),
1197
1198
  id: `vue-ui-candlestick_${A.value}`,
1198
- onMouseenter: _n,
1199
- onMouseleave: vn
1199
+ onMouseenter: un,
1200
+ onMouseleave: dn
1200
1201
  }, [
1201
- g("div", {
1202
+ _("div", {
1202
1203
  id: `chart-instructions-${A.value}`,
1203
1204
  class: "sr-only"
1204
- }, [g("p", null, Le(P.value.a11y.translations.keyboardNavigation), 1)], 8, Ue),
1205
- Br.value?.rows?.length ? (S(), p(we, {
1205
+ }, [_("p", null, Re(P.value.a11y.translations.keyboardNavigation), 1)], 8, We),
1206
+ Nr.value?.rows?.length ? (S(), m(we, {
1206
1207
  key: 0,
1207
1208
  uid: A.value,
1208
- head: Br.value.headers,
1209
- body: Br.value.rows,
1209
+ head: Nr.value.headers,
1210
+ body: Nr.value.rows,
1210
1211
  notice: P.value.a11y.translations.tableAvailable,
1211
1212
  caption: P.value.a11y.translations.tableCaption
1212
1213
  }, null, 8, [
@@ -1215,22 +1216,22 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1215
1216
  "body",
1216
1217
  "notice",
1217
1218
  "caption"
1218
- ])) : m("", !0),
1219
- P.value.userOptions.buttons.annotator ? (S(), p(E(Nt), {
1219
+ ])) : h("", !0),
1220
+ P.value.userOptions.buttons.annotator ? (S(), m(E(Et), {
1220
1221
  key: 1,
1221
1222
  svgRef: E(L),
1222
1223
  backgroundColor: P.value.style.backgroundColor,
1223
1224
  color: P.value.style.color,
1224
- active: yr.value,
1225
- isCursorPointer: dn.value,
1226
- onClose: br
1225
+ active: fr.value,
1226
+ isCursorPointer: rn.value,
1227
+ onClose: pr
1227
1228
  }, {
1228
1229
  "annotator-action-close": D(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1229
- "annotator-action-color": D(({ color: t }) => [T(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
1230
- "annotator-action-draw": D(({ mode: t }) => [T(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
1231
- "annotator-action-undo": D(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
1232
- "annotator-action-redo": D(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
1233
- "annotator-action-delete": D(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
1230
+ "annotator-action-color": D(({ color: t }) => [T(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
1231
+ "annotator-action-draw": D(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
1232
+ "annotator-action-undo": D(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
1233
+ "annotator-action-redo": D(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
1234
+ "annotator-action-delete": D(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
1234
1235
  _: 3
1235
1236
  }, 8, [
1236
1237
  "svgRef",
@@ -1238,21 +1239,21 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1238
1239
  "color",
1239
1240
  "active",
1240
1241
  "isCursorPointer"
1241
- ])) : m("", !0),
1242
- Tn.value ? (S(), h("div", {
1242
+ ])) : h("", !0),
1243
+ vn.value ? (S(), g("div", {
1243
1244
  key: 2,
1244
1245
  ref_key: "noTitle",
1245
- ref: Xt,
1246
+ ref: Ut,
1246
1247
  class: "vue-data-ui-no-title-space",
1247
1248
  style: "height:36px; width: 100%;background:transparent"
1248
- }, null, 512)) : m("", !0),
1249
- P.value.style.title.text ? (S(), h("div", {
1249
+ }, null, 512)) : h("", !0),
1250
+ P.value.style.title.text ? (S(), g("div", {
1250
1251
  key: 3,
1251
1252
  ref_key: "chartTitle",
1252
- ref: Kt,
1253
+ ref: zt,
1253
1254
  style: "width:100%;background:transparent"
1254
- }, [(S(), p(ye, {
1255
- key: `title_${$t.value}`,
1255
+ }, [(S(), m(ve, {
1256
+ key: `title_${Kt.value}`,
1256
1257
  config: {
1257
1258
  title: {
1258
1259
  cy: "candlestick-div-title",
@@ -1263,15 +1264,15 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1263
1264
  ...P.value.style.title.subtitle
1264
1265
  }
1265
1266
  }
1266
- }, null, 8, ["config"]))], 512)) : m("", !0),
1267
- P.value.userOptions.show && Vt.value && (E(gn) || E(mn)) ? (S(), p(E(Pt), {
1267
+ }, null, 8, ["config"]))], 512)) : h("", !0),
1268
+ P.value.userOptions.show && Pt.value && (E(ln) || E(sn)) ? (S(), m(E(Dt), {
1268
1269
  ref_key: "userOptionsRef",
1269
- ref: rn,
1270
- key: `user_options_${Gt.value}`,
1270
+ ref: Xt,
1271
+ key: `user_options_${Rt.value}`,
1271
1272
  backgroundColor: P.value.style.backgroundColor,
1272
1273
  color: P.value.style.color,
1273
- isImaging: E(Sn),
1274
- isPrinting: E(xn),
1274
+ isImaging: E(hn),
1275
+ isPrinting: E(mn),
1275
1276
  uid: A.value,
1276
1277
  hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.tooltip.show,
1277
1278
  hasPdf: P.value.userOptions.buttons.pdf,
@@ -1287,25 +1288,25 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1287
1288
  chartElement: M.value,
1288
1289
  position: P.value.userOptions.position,
1289
1290
  hasAnnotator: P.value.userOptions.buttons.annotator,
1290
- isAnnotation: yr.value,
1291
+ isAnnotation: fr.value,
1291
1292
  callbacks: P.value.userOptions.callbacks,
1292
1293
  printScale: P.value.userOptions.print.scale,
1293
1294
  tableDialog: P.value.table.useDialog,
1294
- isCursorPointer: dn.value,
1295
- onToggleFullscreen: gr,
1296
- onGeneratePdf: E(Cn),
1297
- onGenerateCsv: mr,
1298
- onGenerateImage: Pr,
1299
- onGenerateSvg: kr,
1300
- onToggleTable: _r,
1301
- onToggleTooltip: vr,
1302
- onToggleAnnotator: br,
1303
- onCopyAlt: Fr,
1304
- style: x({ visibility: E(gn) ? E(mn) ? "visible" : "hidden" : "visible" })
1295
+ isCursorPointer: rn.value,
1296
+ onToggleFullscreen: lr,
1297
+ onGeneratePdf: E(gn),
1298
+ onGenerateCsv: sr,
1299
+ onGenerateImage: Dr,
1300
+ onGenerateSvg: Sr,
1301
+ onToggleTable: ur,
1302
+ onToggleTooltip: dr,
1303
+ onToggleAnnotator: pr,
1304
+ onCopyAlt: Or,
1305
+ style: Ne({ visibility: E(ln) ? E(sn) ? "visible" : "hidden" : "visible" })
1305
1306
  }, Oe({ _: 2 }, [
1306
1307
  e.$slots.menuIcon ? {
1307
1308
  name: "menuIcon",
1308
- fn: D(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", b(v({
1309
+ fn: D(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(y({
1309
1310
  isOpen: t,
1310
1311
  color: n
1311
1312
  })), void 0, !0)]),
@@ -1343,7 +1344,7 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1343
1344
  } : void 0,
1344
1345
  e.$slots.optionFullscreen ? {
1345
1346
  name: "optionFullscreen",
1346
- fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", b(v({
1347
+ fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(y({
1347
1348
  toggleFullscreen: t,
1348
1349
  isFullscreen: n
1349
1350
  })), void 0, !0)]),
@@ -1351,7 +1352,7 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1351
1352
  } : void 0,
1352
1353
  e.$slots.optionAnnotator ? {
1353
1354
  name: "optionAnnotator",
1354
- fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", b(v({
1355
+ fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(y({
1355
1356
  toggleAnnotator: t,
1356
1357
  isAnnotator: n
1357
1358
  })), void 0, !0)]),
@@ -1359,7 +1360,7 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1359
1360
  } : void 0,
1360
1361
  e.$slots.optionAltCopy ? {
1361
1362
  name: "optionAltCopy",
1362
- fn: D(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
1363
+ fn: D(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
1363
1364
  key: "9"
1364
1365
  } : void 0,
1365
1366
  e.$slots["custom-menu-before"] ? {
@@ -1372,70 +1373,80 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1372
1373
  fn: D(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1373
1374
  key: "11"
1374
1375
  } : void 0
1375
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : m("", !0),
1376
- g("div", We, [(S(), h("svg", {
1376
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : h("", !0),
1377
+ _("div", Ge, [(S(), g("svg", {
1377
1378
  ref_key: "svgRef",
1378
1379
  ref: L,
1379
- xmlns: E(ie),
1380
+ xmlns: E(re),
1380
1381
  "aria-describedby": `chart-instructions-${A.value}`,
1381
- class: y({
1382
+ class: b({
1382
1383
  "vue-data-ui-fullscreen--on": $.value,
1383
1384
  "vue-data-ui-fulscreen--off": !$.value
1384
1385
  }),
1385
1386
  viewBox: `0 0 ${R.value.width <= 0 ? 10 : R.value.width} ${R.value.height <= 0 ? 10 : R.value.height}`,
1386
- style: x(`max-width:100%;overflow:visible;background:transparent;color:${P.value.style.color}`),
1387
+ style: Ne(`max-width:100%;overflow:visible;background:transparent;color:${P.value.style.color}`),
1387
1388
  tabindex: "0",
1388
- onFocus: Ir,
1389
- onBlur: Lr,
1390
- onKeydown: Rr
1389
+ onFocus: kr,
1390
+ onBlur: Ar,
1391
+ onKeydown: jr
1391
1392
  }, [
1392
- Ae(E(Ft)),
1393
- e.$slots["chart-background"] ? (S(), h("foreignObject", {
1393
+ Ae(E(Ot)),
1394
+ e.$slots["chart-background"] ? (S(), g("foreignObject", {
1394
1395
  key: 0,
1395
1396
  x: W.value.left,
1396
1397
  y: W.value.top,
1397
1398
  width: Math.max(.1, W.value.width),
1398
1399
  height: Math.max(.1, W.value.height),
1399
1400
  style: { pointerEvents: "none" }
1400
- }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Ke)) : m("", !0),
1401
- Z.value.length > 0 ? (S(), h("g", qe, [
1402
- g("defs", null, [g("linearGradient", {
1401
+ }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, qe)) : h("", !0),
1402
+ Z.value.length > 0 ? (S(), g("g", Je, [
1403
+ _("defs", null, [Ae(Se, {
1404
+ t: "linear",
1403
1405
  id: `bearish_gradient_${A.value}`,
1404
1406
  x2: "0%",
1405
- y2: "100%"
1406
- }, [
1407
- g("stop", {
1408
- offset: "0%",
1409
- "stop-color": P.value.style.layout.candle.colors.bearish
1410
- }, null, 8, Ye),
1411
- g("stop", {
1412
- offset: "50%",
1413
- "stop-color": `${E(oe)(P.value.style.layout.candle.colors.bearish, .02)}DE`
1414
- }, null, 8, Xe),
1415
- g("stop", {
1416
- offset: "100%",
1417
- "stop-color": `${E(oe)(P.value.style.layout.candle.colors.bearish, .05)}66`
1418
- }, null, 8, Ze)
1419
- ], 8, Je), g("linearGradient", {
1407
+ y2: "100%",
1408
+ stops: [
1409
+ [
1410
+ "0%",
1411
+ P.value.style.layout.candle.colors.bearish,
1412
+ 1
1413
+ ],
1414
+ [
1415
+ "50%",
1416
+ E(ae)(P.value.style.layout.candle.colors.bearish, .02),
1417
+ .87
1418
+ ],
1419
+ [
1420
+ "100%",
1421
+ E(ae)(P.value.style.layout.candle.colors.bearish, .05),
1422
+ .4
1423
+ ]
1424
+ ]
1425
+ }, null, 8, ["id", "stops"]), Ae(Se, {
1426
+ t: "linear",
1420
1427
  id: `bullish_gradient_${A.value}`,
1421
1428
  x2: "0%",
1422
- y2: "100%"
1423
- }, [
1424
- g("stop", {
1425
- offset: "0%",
1426
- "stop-color": P.value.style.layout.candle.colors.bullish
1427
- }, null, 8, $e),
1428
- g("stop", {
1429
- offset: "50%",
1430
- "stop-color": `${E(oe)(P.value.style.layout.candle.colors.bullish, .02)}DE`
1431
- }, null, 8, et),
1432
- g("stop", {
1433
- offset: "100%",
1434
- "stop-color": `${E(oe)(P.value.style.layout.candle.colors.bullish, .05)}66`
1435
- }, null, 8, tt)
1436
- ], 8, Qe)]),
1437
- P.value.style.layout.grid.show ? (S(), h("g", nt, [
1438
- g("line", {
1429
+ y2: "100%",
1430
+ stops: [
1431
+ [
1432
+ "0%",
1433
+ P.value.style.layout.candle.colors.bullish,
1434
+ 1
1435
+ ],
1436
+ [
1437
+ "50%",
1438
+ E(ae)(P.value.style.layout.candle.colors.bullish, .02),
1439
+ .87
1440
+ ],
1441
+ [
1442
+ "100%",
1443
+ E(ae)(P.value.style.layout.candle.colors.bullish, .05),
1444
+ .4
1445
+ ]
1446
+ ]
1447
+ }, null, 8, ["id", "stops"])]),
1448
+ P.value.style.layout.grid.show ? (S(), g("g", Ye, [
1449
+ _("line", {
1439
1450
  x1: U.value ? W.value.right : W.value.left,
1440
1451
  x2: U.value ? W.value.right : W.value.left,
1441
1452
  y1: W.value.top,
@@ -1443,8 +1454,8 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1443
1454
  stroke: P.value.style.layout.grid.stroke,
1444
1455
  "stroke-width": P.value.style.layout.grid.strokeWidth,
1445
1456
  "stroke-linecap": "round"
1446
- }, null, 8, rt),
1447
- g("line", {
1457
+ }, null, 8, Xe),
1458
+ _("line", {
1448
1459
  x1: W.value.left,
1449
1460
  x2: W.value.right,
1450
1461
  y1: W.value.bottom,
@@ -1452,8 +1463,8 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1452
1463
  stroke: P.value.style.layout.grid.stroke,
1453
1464
  "stroke-width": P.value.style.layout.grid.strokeWidth,
1454
1465
  "stroke-linecap": "round"
1455
- }, null, 8, it),
1456
- P.value.style.layout.grid.horizontalLines.show ? (S(!0), h(d, { key: 0 }, w(Un.value, (e) => (S(), h("line", {
1466
+ }, null, 8, Ze),
1467
+ P.value.style.layout.grid.horizontalLines.show ? (S(!0), g(f, { key: 0 }, w(In.value, (e) => (S(), g("line", {
1457
1468
  x1: W.value.left,
1458
1469
  x2: W.value.right,
1459
1470
  y1: e.y,
@@ -1462,8 +1473,8 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1462
1473
  "stroke-width": P.value.style.layout.grid.horizontalLines.strokeWidth,
1463
1474
  "stroke-dasharray": P.value.style.layout.grid.horizontalLines.strokeDasharray,
1464
1475
  "stroke-linecap": "round"
1465
- }, null, 8, at))), 256)) : m("", !0),
1466
- P.value.style.layout.grid.verticalLines.show ? (S(!0), h(d, { key: 1 }, w(er.value, (e, t) => (S(), h("g", null, [e.text ? (S(), h("line", {
1476
+ }, null, 8, Qe))), 256)) : h("", !0),
1477
+ P.value.style.layout.grid.verticalLines.show ? (S(!0), g(f, { key: 1 }, w(qn.value, (e, t) => (S(), g("g", null, [e.text ? (S(), g("line", {
1467
1478
  key: 0,
1468
1479
  x1: W.value.left + Y.value * t + Y.value / 2,
1469
1480
  x2: W.value.left + Y.value * t + Y.value / 2,
@@ -1473,8 +1484,8 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1473
1484
  "stroke-width": P.value.style.layout.grid.verticalLines.strokeWidth,
1474
1485
  "stroke-dasharray": P.value.style.layout.grid.verticalLines.strokeDasharray,
1475
1486
  "stroke-linecap": "round"
1476
- }, null, 8, ot)) : m("", !0)]))), 256)) : m("", !0),
1477
- P.value.style.layout.grid.xAxis.ticks.show ? (S(!0), h(d, { key: 2 }, w(er.value, (e, t) => (S(), h("g", null, [e.text ? (S(), h("line", {
1487
+ }, null, 8, $e)) : h("", !0)]))), 256)) : h("", !0),
1488
+ P.value.style.layout.grid.xAxis.ticks.show ? (S(!0), g(f, { key: 2 }, w(qn.value, (e, t) => (S(), g("g", null, [e.text ? (S(), g("line", {
1478
1489
  key: 0,
1479
1490
  x1: W.value.left + Y.value * t + Y.value / 2,
1480
1491
  x2: W.value.left + Y.value * t + Y.value / 2,
@@ -1483,13 +1494,13 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1483
1494
  stroke: P.value.style.layout.grid.stroke,
1484
1495
  "stroke-width": P.value.style.layout.grid.strokeWidth,
1485
1496
  "stroke-linecap": "round"
1486
- }, null, 8, st)) : m("", !0)]))), 256)) : m("", !0)
1487
- ])) : m("", !0),
1488
- P.value.style.layout.grid.yAxis.dataLabels.show ? (S(), h("g", {
1497
+ }, null, 8, et)) : h("", !0)]))), 256)) : h("", !0)
1498
+ ])) : h("", !0),
1499
+ P.value.style.layout.grid.yAxis.dataLabels.show ? (S(), g("g", {
1489
1500
  key: 1,
1490
1501
  ref_key: "scaleLabels",
1491
- ref: en
1492
- }, [(S(!0), h(d, null, w(Un.value, (e, t) => (S(), h("g", null, [e.value >= X.value.min && e.value <= X.value.max ? (S(), h("line", {
1502
+ ref: qt
1503
+ }, [(S(!0), g(f, null, w(In.value, (e, t) => (S(), g("g", null, [e.value >= X.value.min && e.value <= X.value.max ? (S(), g("line", {
1493
1504
  key: 0,
1494
1505
  x1: U.value ? W.value.right : W.value.left,
1495
1506
  x2: U.value ? W.value.right + 5 : W.value.left - 5,
@@ -1498,7 +1509,7 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1498
1509
  stroke: P.value.style.layout.grid.stroke,
1499
1510
  "stroke-width": P.value.style.layout.grid.strokeWidth,
1500
1511
  "stroke-linecap": "round"
1501
- }, null, 8, ct)) : m("", !0), e.value >= X.value.min && e.value <= X.value.max ? (S(), h("text", {
1512
+ }, null, 8, tt)) : h("", !0), e.value >= X.value.min && e.value <= X.value.max ? (S(), g("text", {
1502
1513
  key: 1,
1503
1514
  x: U.value ? W.value.right + 8 + P.value.style.layout.grid.yAxis.dataLabels.offsetX : W.value.left - 8 + P.value.style.layout.grid.yAxis.dataLabels.offsetX,
1504
1515
  y: e.y + R.value.yAxisFontSize / 3,
@@ -1506,38 +1517,38 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1506
1517
  "font-size": R.value.yAxisFontSize,
1507
1518
  fill: P.value.style.layout.grid.yAxis.dataLabels.color,
1508
1519
  "font-weight": P.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
1509
- }, Le(E(i)({
1520
+ }, Re(E(i)({
1510
1521
  p: P.value.style.layout.grid.yAxis.dataLabels.prefix,
1511
1522
  v: e.value,
1512
1523
  s: P.value.style.layout.grid.yAxis.dataLabels.suffix,
1513
1524
  r: P.value.style.layout.grid.yAxis.dataLabels.roundingValue
1514
- })), 9, lt)) : m("", !0)]))), 256))], 512)) : m("", !0),
1515
- P.value.style.layout.grid.xAxis.dataLabels.show && !P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (S(), h("g", {
1525
+ })), 9, nt)) : h("", !0)]))), 256))], 512)) : h("", !0),
1526
+ P.value.style.layout.grid.xAxis.dataLabels.show && !P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (S(), g("g", {
1516
1527
  key: 2,
1517
1528
  ref_key: "timeLabelsEls",
1518
- ref: tn
1519
- }, [(S(!0), h(d, null, w(Wn.value, (e, t) => (S(), h("g", null, [g("text", {
1529
+ ref: Jt
1530
+ }, [(S(!0), g(f, null, w(Ln.value, (e, t) => (S(), g("g", null, [_("text", {
1520
1531
  class: "vue-data-ui-time-label",
1521
1532
  transform: `translate(${W.value.left + Y.value * t + Y.value / 2}, ${W.value.bottom + R.value.xAxisFontSize * 1.5}), rotate(${P.value.style.layout.grid.xAxis.dataLabels.rotation})`,
1522
1533
  "text-anchor": P.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : P.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1523
1534
  "font-size": R.value.xAxisFontSize,
1524
1535
  fill: P.value.style.layout.grid.xAxis.dataLabels.color,
1525
1536
  "font-weight": P.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
1526
- }, Le(e), 9, ut)]))), 256))], 512)) : m("", !0),
1527
- P.value.style.layout.grid.xAxis.dataLabels.show && P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (S(), h("g", {
1537
+ }, Re(e), 9, rt)]))), 256))], 512)) : h("", !0),
1538
+ P.value.style.layout.grid.xAxis.dataLabels.show && P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (S(), g("g", {
1528
1539
  key: 3,
1529
1540
  ref_key: "timeLabelsEls",
1530
- ref: tn
1531
- }, [(S(!0), h(d, null, w(er.value, (e, t) => (S(), h("g", null, [g("text", {
1541
+ ref: Jt
1542
+ }, [(S(!0), g(f, null, w(qn.value, (e, t) => (S(), g("g", null, [_("text", {
1532
1543
  class: "vue-data-ui-time-label",
1533
1544
  transform: `translate(${W.value.left + Y.value * t + Y.value / 2}, ${W.value.bottom + R.value.xAxisFontSize * 1.5}), rotate(${P.value.style.layout.grid.xAxis.dataLabels.rotation})`,
1534
1545
  "text-anchor": P.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : P.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1535
1546
  "font-size": R.value.xAxisFontSize,
1536
1547
  fill: P.value.style.layout.grid.xAxis.dataLabels.color,
1537
1548
  "font-weight": P.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
1538
- }, Le(e?.text ?? ""), 9, dt)]))), 256))], 512)) : m("", !0),
1539
- P.value.type === "candlestick" ? (S(), h(d, { key: 4 }, [g("g", null, [(S(!0), h(d, null, w(Z.value, (e, t) => (S(), h("g", null, [
1540
- g("rect", {
1549
+ }, Re(e?.text ?? ""), 9, it)]))), 256))], 512)) : h("", !0),
1550
+ P.value.type === "candlestick" ? (S(), g(f, { key: 4 }, [_("g", null, [(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("g", null, [
1551
+ _("rect", {
1541
1552
  x: e.open.x - P.value.style.layout.wick.strokeWidth / 2,
1542
1553
  y: e.high.y,
1543
1554
  width: P.value.style.layout.wick.strokeWidth,
@@ -1545,22 +1556,22 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1545
1556
  fill: P.value.style.layout.wick.stroke,
1546
1557
  stroke: "none",
1547
1558
  rx: P.value.style.layout.wick.strokeWidth / 2,
1548
- class: y({ "vue-data-ui-transition": k.value && !E(F) })
1549
- }, null, 10, ft),
1550
- P.value.style.layout.wick.extremity.shape === "circle" ? (S(), h("g", pt, [g("circle", {
1559
+ class: b({ "vue-data-ui-transition": k.value && !E(F) })
1560
+ }, null, 10, at),
1561
+ P.value.style.layout.wick.extremity.shape === "circle" ? (S(), g("g", ot, [_("circle", {
1551
1562
  cx: e.high.x,
1552
1563
  cy: e.high.y,
1553
1564
  r: P.value.style.layout.wick.extremity.size === "auto" ? Y.value / 20 : P.value.style.layout.wick.extremity.size,
1554
1565
  fill: P.value.style.layout.wick.extremity.color,
1555
- class: y({ "vue-data-ui-transition": k.value && !E(F) })
1556
- }, null, 10, mt), g("circle", {
1566
+ class: b({ "vue-data-ui-transition": k.value && !E(F) })
1567
+ }, null, 10, st), _("circle", {
1557
1568
  cx: e.low.x,
1558
1569
  cy: e.low.y,
1559
1570
  r: P.value.style.layout.wick.extremity.size === "auto" ? Y.value / 20 : P.value.style.layout.wick.extremity.size,
1560
1571
  fill: P.value.style.layout.wick.extremity.color,
1561
- class: y({ "vue-data-ui-transition": k.value && !E(F) })
1562
- }, null, 10, ht)])) : m("", !0),
1563
- P.value.style.layout.wick.extremity.shape === "line" ? (S(), h("g", gt, [g("rect", {
1572
+ class: b({ "vue-data-ui-transition": k.value && !E(F) })
1573
+ }, null, 10, ct)])) : h("", !0),
1574
+ P.value.style.layout.wick.extremity.shape === "line" ? (S(), g("g", lt, [_("rect", {
1564
1575
  x: e.high.x - (P.value.style.layout.wick.extremity.size === "auto" ? Y.value * P.value.style.layout.candle.widthRatio : P.value.style.layout.wick.extremity.size) / 2,
1565
1576
  y: e.high.y - P.value.style.layout.wick.strokeWidth / 2,
1566
1577
  width: Math.abs(e.high.x - (P.value.style.layout.wick.extremity.size === "auto" ? Y.value * P.value.style.layout.candle.widthRatio : P.value.style.layout.wick.extremity.size) / 2 - (e.high.x + (P.value.style.layout.wick.extremity.size === "auto" ? Y.value * P.value.style.layout.candle.widthRatio : P.value.style.layout.wick.extremity.size) / 2)),
@@ -1568,8 +1579,8 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1568
1579
  rx: P.value.style.layout.wick.strokeWidth / 2,
1569
1580
  fill: P.value.style.layout.wick.extremity.color,
1570
1581
  stroke: "none",
1571
- class: y({ "vue-data-ui-transition": k.value && !E(F) })
1572
- }, null, 10, _t), g("rect", {
1582
+ class: b({ "vue-data-ui-transition": k.value && !E(F) })
1583
+ }, null, 10, ut), _("rect", {
1573
1584
  x: e.low.x - (P.value.style.layout.wick.extremity.size === "auto" ? Y.value * P.value.style.layout.candle.widthRatio : P.value.style.layout.wick.extremity.size) / 2,
1574
1585
  y: e.low.y - P.value.style.layout.wick.strokeWidth / 2,
1575
1586
  width: Math.abs(e.low.x - (P.value.style.layout.wick.extremity.size === "auto" ? Y.value * P.value.style.layout.candle.widthRatio : P.value.style.layout.wick.extremity.size) / 2 - (e.low.x + (P.value.style.layout.wick.extremity.size === "auto" ? Y.value * P.value.style.layout.candle.widthRatio : P.value.style.layout.wick.extremity.size) / 2)),
@@ -1577,9 +1588,9 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1577
1588
  fill: P.value.style.layout.wick.extremity.color,
1578
1589
  stroke: "none",
1579
1590
  rx: P.value.style.layout.wick.strokeWidth / 2,
1580
- class: y({ "vue-data-ui-transition": k.value && !E(F) })
1581
- }, null, 10, vt)])) : m("", !0)
1582
- ]))), 256))]), g("g", null, [(S(!0), h(d, null, w(Z.value, (e, t) => (S(), h("rect", {
1591
+ class: b({ "vue-data-ui-transition": k.value && !E(F) })
1592
+ }, null, 10, dt)])) : h("", !0)
1593
+ ]))), 256))]), _("g", null, [(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
1583
1594
  x: e.open.x - Y.value / 2 + Y.value * (1 - P.value.style.layout.candle.widthRatio) / 2,
1584
1595
  y: e.isBullish ? e.close.y : e.open.y,
1585
1596
  height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
@@ -1587,8 +1598,8 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1587
1598
  fill: P.value.style.layout.candle.gradient.underlayer,
1588
1599
  rx: P.value.style.layout.candle.borderRadius,
1589
1600
  stroke: "none",
1590
- class: y({ "vue-data-ui-transition": k.value && !E(F) })
1591
- }, null, 10, yt))), 256)), (S(!0), h(d, null, w(Z.value, (e, t) => (S(), h("rect", {
1601
+ class: b({ "vue-data-ui-transition": k.value && !E(F) })
1602
+ }, null, 10, ft))), 256)), (S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
1592
1603
  x: e.open.x - Y.value / 2 + Y.value * (1 - P.value.style.layout.candle.widthRatio) / 2,
1593
1604
  y: e.isBullish ? e.close.y : e.open.y,
1594
1605
  height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
@@ -1599,46 +1610,46 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1599
1610
  "stroke-width": P.value.style.layout.candle.strokeWidth,
1600
1611
  "stroke-linecap": "round",
1601
1612
  "stroke-linejoin": "round",
1602
- class: y({ "vue-data-ui-transition": k.value && !E(F) })
1603
- }, null, 10, bt))), 256))])], 64)) : m("", !0),
1604
- P.value.type === "ohlc" ? (S(!0), h(d, { key: 5 }, w(Z.value, (e, t) => (S(), h("g", null, [g("path", {
1613
+ class: b({ "vue-data-ui-transition": k.value && !E(F) })
1614
+ }, null, 10, pt))), 256))])], 64)) : h("", !0),
1615
+ P.value.type === "ohlc" ? (S(!0), g(f, { key: 5 }, w(Z.value, (e, t) => (S(), g("g", null, [_("path", {
1605
1616
  d: `M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y} M${e.open.x - Math.min(6, Y.value / 3)},${e.open.y} ${e.open.x},${e.open.y} M${e.close.x},${e.close.y} ${e.close.x + Math.min(6, Y.value / 3)},${e.close.y}`,
1606
1617
  stroke: e.isBullish ? P.value.style.layout.candle.colors.bullish : P.value.style.layout.candle.colors.bearish,
1607
1618
  "stroke-width": 1
1608
- }, null, 8, xt)]))), 256)) : m("", !0),
1609
- g("g", null, [(S(!0), h(d, null, w(Z.value, (e, t) => (S(), h("rect", {
1619
+ }, null, 8, mt)]))), 256)) : h("", !0),
1620
+ _("g", null, [(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
1610
1621
  x: W.value.left + t * Y.value,
1611
1622
  y: W.value.top,
1612
1623
  height: W.value.height <= 0 ? 1e-4 : W.value.height,
1613
1624
  width: Y.value <= 0 ? 1e-4 : Y.value,
1614
- fill: j.value === t || an.value === t ? E(o)(P.value.style.layout.selector.color, P.value.style.layout.selector.opacity) : "transparent",
1615
- onMouseover: () => ar(t, e, "pointer"),
1616
- onMouseleave: () => ir(t, e),
1617
- onClick: () => rr(t, e)
1618
- }, null, 40, St))), 256))])
1619
- ])) : m("", !0),
1620
- jn.value ? (S(), h("rect", je({ key: 2 }, An.value, {
1625
+ fill: j.value === t || Zt.value === t ? E(o)(P.value.style.layout.selector.color, P.value.style.layout.selector.opacity) : "transparent",
1626
+ onMouseover: () => Qn(t, e, "pointer"),
1627
+ onMouseleave: () => Zn(t, e),
1628
+ onClick: () => Xn(t, e)
1629
+ }, null, 40, ht))), 256))])
1630
+ ])) : h("", !0),
1631
+ wn.value ? (S(), g("rect", je({ key: 2 }, Cn.value, {
1621
1632
  "data-start": K.value.start,
1622
1633
  "data-end": K.value.end
1623
- }), null, 16, Ct)) : m("", !0),
1634
+ }), null, 16, gt)) : h("", !0),
1624
1635
  T(e.$slots, "svg", { svg: {
1625
1636
  ...R.value,
1626
1637
  data: Z.value,
1627
1638
  drawingArea: W.value,
1628
- isPrintingImg: E(xn) || E(Sn) || on.value,
1629
- isPrintingSvg: sn.value
1639
+ isPrintingImg: E(mn) || E(hn) || Qt.value,
1640
+ isPrintingSvg: $t.value
1630
1641
  } }, void 0, !0)
1631
- ], 46, Ge)), e.$slots.hint ? (S(), h("div", wt, [T(e.$slots, "hint", b(v({
1642
+ ], 46, Ke)), e.$slots.hint ? (S(), g("div", _t, [T(e.$slots, "hint", x(y({
1632
1643
  hint: P.value.a11y.translations.keyboardNavigation,
1633
- isVisible: un.value
1634
- })), void 0, !0)])) : m("", !0)]),
1635
- e.$slots.watermark ? (S(), h("div", Tt, [T(e.$slots, "watermark", b(v({ isPrinting: E(xn) || E(Sn) || on.value || sn.value })), void 0, !0)])) : m("", !0),
1636
- P.value.style.zoom.show && G.value > 6 && Vt.value && ur.value ? (S(), p(Ce, {
1644
+ isVisible: nn.value
1645
+ })), void 0, !0)])) : h("", !0)]),
1646
+ e.$slots.watermark ? (S(), g("div", vt, [T(e.$slots, "watermark", x(y({ isPrinting: E(mn) || E(hn) || Qt.value || $t.value })), void 0, !0)])) : h("", !0),
1647
+ P.value.style.zoom.show && G.value > 6 && Pt.value && rr.value ? (S(), m(Ce, {
1637
1648
  key: 6,
1638
1649
  ref_key: "chartSlicer",
1639
- ref: Jt,
1650
+ ref: Vt,
1640
1651
  "data-dom-to-png-ignore-layout": "",
1641
- allMinimaps: Vn.value,
1652
+ allMinimaps: Pn.value,
1642
1653
  background: P.value.style.zoom.color,
1643
1654
  borderColor: P.value.style.backgroundColor,
1644
1655
  customFormat: P.value.style.zoom.customFormat,
@@ -1651,9 +1662,9 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1651
1662
  fontSize: P.value.style.zoom.fontSize,
1652
1663
  immediate: !P.value.style.zoom.preview.enable,
1653
1664
  inputColor: P.value.style.zoom.color,
1654
- isPreview: jn.value,
1655
- labelLeft: tr.value.start || "",
1656
- labelRight: tr.value.end || "",
1665
+ isPreview: wn.value,
1666
+ labelLeft: Jn.value.start || "",
1667
+ labelRight: Jn.value.end || "",
1657
1668
  max: G.value,
1658
1669
  min: 0,
1659
1670
  minimap: P.value.style.zoom.minimap.show ? E(I).map((e) => e[2]) : [],
@@ -1665,7 +1676,7 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1665
1676
  minimapSelectedColorOpacity: P.value.style.zoom.minimap.selectedColorOpacity,
1666
1677
  minimapSelectedIndex: j.value,
1667
1678
  minimapSelectionRadius: 1,
1668
- preciseLabels: $n.value,
1679
+ preciseLabels: Kn.value,
1669
1680
  refreshEndPoint: P.value.style.zoom.endIndex === null ? G.value : P.value.style.zoom.endIndex + 1,
1670
1681
  refreshStartPoint: P.value.style.zoom.startIndex === null ? 0 : P.value.style.zoom.startIndex,
1671
1682
  selectColor: P.value.style.zoom.highlightColor,
@@ -1673,7 +1684,7 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1673
1684
  smoothMinimap: !1,
1674
1685
  start: K.value.start,
1675
1686
  textColor: P.value.style.color,
1676
- timeLabels: Gn.value,
1687
+ timeLabels: Rn.value,
1677
1688
  usePreciseLabels: P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable && !P.value.style.zoom.useDefaultFormat,
1678
1689
  useResetSlot: P.value.style.zoom.useResetSlot,
1679
1690
  valueEnd: K.value.end,
@@ -1689,43 +1700,43 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1689
1700
  handleBorderColor: P.value.style.zoom.minimap.handleBorderColor,
1690
1701
  handleFill: P.value.style.zoom.minimap.handleFill,
1691
1702
  handleWidth: P.value.style.zoom.minimap.handleWidth,
1692
- "onUpdate:end": Mr,
1693
- "onUpdate:start": jr,
1694
- onTrapMouse: Ar,
1695
- onReset: cr,
1696
- onFutureEnd: t[0] ||= (e) => Mn("end", e),
1697
- onFutureStart: t[1] ||= (e) => Mn("start", e)
1703
+ "onUpdate:end": Tr,
1704
+ "onUpdate:start": wr,
1705
+ onTrapMouse: Cr,
1706
+ onReset: tr,
1707
+ onFutureEnd: t[0] ||= (e) => Tn("end", e),
1708
+ onFutureStart: t[1] ||= (e) => Tn("start", e)
1698
1709
  }, {
1699
- "reset-action": D(({ reset: t }) => [T(e.$slots, "reset-action", b(v({ reset: t })), void 0, !0)]),
1700
- slotMap: D(({ height: e, unitW: t }) => [(S(!0), h(d, null, w(Bn.value({
1710
+ "reset-action": D(({ reset: t }) => [T(e.$slots, "reset-action", x(y({ reset: t })), void 0, !0)]),
1711
+ slotMap: D(({ height: e, unitW: t }) => [(S(!0), g(f, null, w(Nn.value({
1701
1712
  minimapH: e,
1702
1713
  unitW: t
1703
- }), (e, n) => (S(), h("g", null, [g("path", {
1714
+ }), (e, n) => (S(), g("g", null, [_("path", {
1704
1715
  d: `M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y}`,
1705
1716
  stroke: e.isBullish ? P.value.style.layout.candle.colors.bullish : P.value.style.layout.candle.colors.bearish,
1706
1717
  "stroke-width": 1,
1707
- style: x({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
1708
- }, null, 12, Et), g("path", {
1718
+ style: Ne({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
1719
+ }, null, 12, yt), _("path", {
1709
1720
  d: `M ${e.open.x},${e.open.y} ${e.close.x},${e.close.y}`,
1710
1721
  stroke: e.isBullish ? P.value.style.layout.candle.colors.bullish : P.value.style.layout.candle.colors.bearish,
1711
1722
  "stroke-width": Math.min(6, t / 1.5),
1712
- style: x({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
1713
- }, null, 12, Dt)]))), 256))]),
1723
+ style: Ne({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
1724
+ }, null, 12, bt)]))), 256))]),
1714
1725
  _: 3
1715
- }, 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.useResetSlot.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : m("", !0),
1716
- g("div", {
1726
+ }, 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.useResetSlot.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : h("", !0),
1727
+ _("div", {
1717
1728
  ref_key: "chartLegend",
1718
- ref: qt
1729
+ ref: Bt
1719
1730
  }, [T(e.$slots, "legend", { legend: Z.value }, void 0, !0)], 512),
1720
- e.$slots.source ? (S(), h("div", {
1731
+ e.$slots.source ? (S(), g("div", {
1721
1732
  key: 7,
1722
1733
  ref_key: "source",
1723
- ref: Yt,
1734
+ ref: Ht,
1724
1735
  dir: "auto"
1725
- }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
1726
- Ae(E(At), {
1736
+ }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
1737
+ Ae(E(Ct), {
1727
1738
  teleportTo: P.value.style.tooltip.teleportTo,
1728
- show: H.value.showTooltip && Ut.value,
1739
+ show: H.value.showTooltip && It.value,
1729
1740
  backgroundColor: P.value.style.tooltip.backgroundColor,
1730
1741
  color: P.value.style.tooltip.color,
1731
1742
  borderRadius: P.value.style.tooltip.borderRadius,
@@ -1737,19 +1748,19 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1737
1748
  offsetX: P.value.style.tooltip.offsetX,
1738
1749
  offsetY: P.value.style.tooltip.offsetY,
1739
1750
  parent: M.value,
1740
- content: Wt.value,
1751
+ content: Lt.value,
1741
1752
  isFullscreen: $.value,
1742
1753
  isCustom: P.value.style.tooltip.customFormat && typeof P.value.style.tooltip.customFormat == "function",
1743
1754
  smooth: P.value.style.tooltip.smooth,
1744
1755
  backdropFilter: P.value.style.tooltip.backdropFilter,
1745
1756
  smoothForce: P.value.style.tooltip.smoothForce,
1746
1757
  smoothSnapThreshold: P.value.style.tooltip.smoothSnapThreshold,
1747
- isA11yMode: ln.value === "keyboard",
1748
- a11yPosition: cn.value
1758
+ isA11yMode: tn.value === "keyboard",
1759
+ a11yPosition: en.value
1749
1760
  }, {
1750
- "tooltip-before": D(() => [T(e.$slots, "tooltip-before", b(v({ ...nr.value })), void 0, !0)]),
1751
- tooltip: D(() => [T(e.$slots, "tooltip", b(v({ ...nr.value })), void 0, !0)]),
1752
- "tooltip-after": D(() => [T(e.$slots, "tooltip-after", b(v({ ...nr.value })), void 0, !0)]),
1761
+ "tooltip-before": D(() => [T(e.$slots, "tooltip-before", x(y({ ...Yn.value })), void 0, !0)]),
1762
+ tooltip: D(() => [T(e.$slots, "tooltip", x(y({ ...Yn.value })), void 0, !0)]),
1763
+ "tooltip-after": D(() => [T(e.$slots, "tooltip-after", x(y({ ...Yn.value })), void 0, !0)]),
1753
1764
  _: 3
1754
1765
  }, 8, [
1755
1766
  "teleportTo",
@@ -1775,24 +1786,24 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1775
1786
  "isA11yMode",
1776
1787
  "a11yPosition"
1777
1788
  ]),
1778
- Vt.value && P.value.userOptions.buttons.table ? (S(), p(Fe(wr.value.component), je({ key: 8 }, wr.value.props, {
1789
+ Pt.value && P.value.userOptions.buttons.table ? (S(), m(Ie(_r.value.component), je({ key: 8 }, _r.value.props, {
1779
1790
  ref_key: "tableUnit",
1780
- ref: nn,
1781
- onClose: Tr
1791
+ ref: Yt,
1792
+ onClose: vr
1782
1793
  }), Oe({
1783
- content: D(() => [(S(), p(E(Mt), {
1784
- key: `table_${Qt.value}`,
1785
- colNames: hr.value.colNames,
1786
- head: hr.value.head,
1787
- body: hr.value.body,
1788
- config: hr.value.config,
1789
- title: P.value.table.useDialog ? "" : wr.value.title,
1794
+ content: D(() => [(S(), m(E(Tt), {
1795
+ key: `table_${Gt.value}`,
1796
+ colNames: cr.value.colNames,
1797
+ head: cr.value.head,
1798
+ body: cr.value.body,
1799
+ config: cr.value.config,
1800
+ title: P.value.table.useDialog ? "" : _r.value.title,
1790
1801
  withCloseButton: !P.value.table.useDialog,
1791
- isCursorPointer: dn.value,
1792
- onClose: Tr
1802
+ isCursorPointer: rn.value,
1803
+ onClose: vr
1793
1804
  }, {
1794
- th: D(({ th: e }) => [ke(Le(e), 1)]),
1795
- td: D(({ td: e }) => [g("div", { innerHTML: e }, null, 8, Ot)]),
1805
+ th: D(({ th: e }) => [ke(Re(e), 1)]),
1806
+ td: D(({ td: e }) => [_("div", { innerHTML: e }, null, 8, xt)]),
1796
1807
  _: 1
1797
1808
  }, 8, [
1798
1809
  "colNames",
@@ -1806,24 +1817,24 @@ var Ve = /* @__PURE__ */ e({ default: () => kt }), He = ["id"], Ue = ["id"], We
1806
1817
  _: 2
1807
1818
  }, [P.value.table.useDialog ? {
1808
1819
  name: "title",
1809
- fn: D(() => [ke(Le(wr.value.title), 1)]),
1820
+ fn: D(() => [ke(Re(_r.value.title), 1)]),
1810
1821
  key: "0"
1811
1822
  } : void 0, P.value.table.useDialog ? {
1812
1823
  name: "actions",
1813
- fn: D(() => [g("button", {
1824
+ fn: D(() => [_("button", {
1814
1825
  tabindex: "0",
1815
1826
  class: "vue-ui-user-options-button",
1816
- onClick: t[2] ||= (e) => mr(P.value.userOptions.callbacks.csv),
1817
- style: x({ cursor: dn.value ? "pointer" : "default" })
1818
- }, [Ae(E(kt), {
1827
+ onClick: t[2] ||= (e) => sr(P.value.userOptions.callbacks.csv),
1828
+ style: Ne({ cursor: rn.value ? "pointer" : "default" })
1829
+ }, [Ae(E(St), {
1819
1830
  name: "fileCsv",
1820
- stroke: wr.value.props.color
1831
+ stroke: _r.value.props.color
1821
1832
  }, null, 8, ["stroke"])], 4)]),
1822
1833
  key: "1"
1823
- } : void 0]), 1040)) : m("", !0),
1824
- T(e.$slots, "skeleton", {}, () => [E(F) ? (S(), p(pe, { key: 0 })) : m("", !0)], !0)
1825
- ], 46, He));
1834
+ } : void 0]), 1040)) : h("", !0),
1835
+ T(e.$slots, "skeleton", {}, () => [E(F) ? (S(), m(fe, { key: 0 })) : h("", !0)], !0)
1836
+ ], 46, Ue));
1826
1837
  }
1827
- }, [["__scopeId", "data-v-732ff0a3"]]);
1838
+ }, [["__scopeId", "data-v-df4d118c"]]);
1828
1839
  //#endregion
1829
- export { Ve as n, kt as t };
1840
+ export { He as n, St as t };