@adyen/lume-vue3 1.11.3 → 1.11.5

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 (104) hide show
  1. package/dist/@types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts +18 -10
  2. package/dist/@types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts.map +1 -1
  3. package/dist/@types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts +12 -12
  4. package/dist/@types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts.map +1 -1
  5. package/dist/@types/components/charts/lume-grouped-bar-chart/defaults.d.ts +5 -6
  6. package/dist/@types/components/charts/lume-grouped-bar-chart/defaults.d.ts.map +1 -1
  7. package/dist/@types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts +22 -14
  8. package/dist/@types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts.map +1 -1
  9. package/dist/@types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts +22 -14
  10. package/dist/@types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts.map +1 -1
  11. package/dist/@types/components/charts/lume-single-bar-chart/defaults.d.ts +5 -5
  12. package/dist/@types/components/charts/lume-single-bar-chart/defaults.d.ts.map +1 -1
  13. package/dist/@types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts +22 -14
  14. package/dist/@types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts.map +1 -1
  15. package/dist/@types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts +16 -8
  16. package/dist/@types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts.map +1 -1
  17. package/dist/@types/components/charts/lume-stacked-bar-chart/defaults.d.ts +5 -7
  18. package/dist/@types/components/charts/lume-stacked-bar-chart/defaults.d.ts.map +1 -1
  19. package/dist/@types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts +22 -14
  20. package/dist/@types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts.map +1 -1
  21. package/dist/@types/components/core/lume-axis/components/lume-tick/lume-tick.vue.d.ts +9 -8
  22. package/dist/@types/components/core/lume-axis/components/lume-tick/lume-tick.vue.d.ts.map +1 -1
  23. package/dist/@types/components/core/lume-axis/lume-axis.vue.d.ts.map +1 -1
  24. package/dist/@types/components/core/lume-bar/composables/bar-transition.d.ts.map +1 -1
  25. package/dist/@types/components/core/lume-bar/lume-bar.vue.d.ts +4 -4
  26. package/dist/@types/components/core/lume-bar/lume-bar.vue.d.ts.map +1 -1
  27. package/dist/@types/components/core/lume-chart/lume-chart.vue.d.ts +247 -77
  28. package/dist/@types/components/core/lume-chart/lume-chart.vue.d.ts.map +1 -1
  29. package/dist/@types/components/core/lume-chart-container/lume-chart-container.vue.d.ts +18 -7
  30. package/dist/@types/components/core/lume-chart-container/lume-chart-container.vue.d.ts.map +1 -1
  31. package/dist/@types/components/core/lume-chart-legend/lume-chart-legend.vue.d.ts +2 -2
  32. package/dist/@types/components/core/lume-chart-legend/lume-chart-legend.vue.d.ts.map +1 -1
  33. package/dist/@types/components/core/lume-line/lume-line.vue.d.ts.map +1 -1
  34. package/dist/@types/components/core/lume-point/lume-point.vue.d.ts.map +1 -1
  35. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-item/lume-tooltip-item.vue.d.ts +13 -5
  36. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-item/lume-tooltip-item.vue.d.ts.map +1 -1
  37. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-summary/lume-tooltip-summary.vue.d.ts +12 -4
  38. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-summary/lume-tooltip-summary.vue.d.ts.map +1 -1
  39. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-title/lume-tooltip-title.vue.d.ts +11 -3
  40. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-title/lume-tooltip-title.vue.d.ts.map +1 -1
  41. package/dist/@types/components/core/lume-tooltip/lume-tooltip.vue.d.ts +2 -2
  42. package/dist/@types/components/core/lume-tooltip/lume-tooltip.vue.d.ts.map +1 -1
  43. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-header/lume-alluvial-node-header.vue.d.ts +16 -6
  44. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-header/lume-alluvial-node-header.vue.d.ts.map +1 -1
  45. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-label/lume-alluvial-node-label.vue.d.ts +15 -4
  46. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-label/lume-alluvial-node-label.vue.d.ts.map +1 -1
  47. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-value/lume-alluvial-node-value.vue.d.ts +12 -4
  48. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-value/lume-alluvial-node-value.vue.d.ts.map +1 -1
  49. package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-graph.d.ts +1 -1
  50. package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-hover.d.ts +244 -84
  51. package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-hover.d.ts.map +1 -1
  52. package/dist/@types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts +152 -142
  53. package/dist/@types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts.map +1 -1
  54. package/dist/@types/components/groups/lume-bar-group/composables/bar-mixin.d.ts +1 -1
  55. package/dist/@types/components/groups/lume-bar-group/composables/bar-mixin.d.ts.map +1 -1
  56. package/dist/@types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts +2 -2
  57. package/dist/@types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts.map +1 -1
  58. package/dist/@types/components/groups/lume-bar-group/lume-bar-group.vue.d.ts +4 -4
  59. package/dist/@types/components/groups/lume-bar-group/lume-bar-group.vue.d.ts.map +1 -1
  60. package/dist/@types/components/groups/lume-line-group/lume-line-group.vue.d.ts +4 -4
  61. package/dist/@types/components/groups/lume-line-group/lume-line-group.vue.d.ts.map +1 -1
  62. package/dist/@types/components/groups/lume-overlay-group/lume-overlay-group.vue.d.ts +4 -4
  63. package/dist/@types/components/groups/lume-overlay-group/lume-overlay-group.vue.d.ts.map +1 -1
  64. package/dist/@types/composables/base.d.ts +5 -5
  65. package/dist/@types/composables/base.d.ts.map +1 -1
  66. package/dist/@types/composables/events.d.ts.map +1 -1
  67. package/dist/@types/composables/format.d.ts +1 -1
  68. package/dist/@types/composables/format.d.ts.map +1 -1
  69. package/dist/@types/composables/group-props.d.ts +3 -3
  70. package/dist/@types/composables/group-props.d.ts.map +1 -1
  71. package/dist/@types/composables/line-null-values.d.ts.map +1 -1
  72. package/dist/@types/composables/options.d.ts.map +1 -1
  73. package/dist/@types/composables/props.d.ts +8 -8
  74. package/dist/@types/composables/props.d.ts.map +1 -1
  75. package/dist/@types/composables/scales.d.ts +2 -2
  76. package/dist/@types/composables/scales.d.ts.map +1 -1
  77. package/dist/@types/composables/tooltip.d.ts +2 -2
  78. package/dist/@types/composables/tooltip.d.ts.map +1 -1
  79. package/dist/@types/docs/storybook-helpers.d.ts.map +1 -1
  80. package/dist/@types/plugin.d.ts.map +1 -1
  81. package/dist/@types/utils/helpers.d.ts +0 -8
  82. package/dist/@types/utils/helpers.d.ts.map +1 -1
  83. package/dist/@types/utils/margins.d.ts.map +1 -1
  84. package/dist/common/B-J6h1cQ.js +5 -0
  85. package/dist/common/B-J6h1cQ.js.map +1 -0
  86. package/dist/common/B79GZzqk.js +5 -0
  87. package/dist/common/B79GZzqk.js.map +1 -0
  88. package/dist/common/{_87XKFtI.js → BfKxCes1.js} +748 -754
  89. package/dist/common/BfKxCes1.js.map +1 -0
  90. package/dist/common/DpwoykqR.js +5 -0
  91. package/dist/common/DpwoykqR.js.map +1 -0
  92. package/dist/index.js +1 -1
  93. package/dist/plugin.js +1 -1
  94. package/dist/plugin.js.map +1 -1
  95. package/dist/scss/main.scss +9 -9
  96. package/dist/styles/main.css +2 -2
  97. package/package.json +6 -6
  98. package/dist/common/C65Yk4mi.js +0 -5
  99. package/dist/common/C65Yk4mi.js.map +0 -1
  100. package/dist/common/Q4X11bG0.js +0 -5
  101. package/dist/common/Q4X11bG0.js.map +0 -1
  102. package/dist/common/_87XKFtI.js.map +0 -1
  103. package/dist/common/ttsUF_VP.js +0 -5
  104. package/dist/common/ttsUF_VP.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { defineComponent as Z, ref as S, openBlock as _, createElementBlock as I, mergeProps as j, createElementVNode as G, toDisplayString as ne, createCommentVNode as z, isRef as Gt, computed as v, watch as X, toRefs as ee, inject as Ce, reactive as Fe, onMounted as ye, unref as d, Fragment as Q, renderList as W, createBlock as Y, normalizeClass as te, normalizeStyle as jt, watchEffect as Vt, onBeforeUnmount as Pt, renderSlot as M, createTextVNode as se, useSlots as re, nextTick as Qe, withCtx as V, createSlots as ce, pushScopeId as sn, popScopeId as cn, provide as Ke, createVNode as ue, toHandlers as oe, normalizeProps as pe, guardReactiveProps as he, defineAsyncComponent as Je, resolveDynamicComponent as dn } from "vue";
1
+ import { defineComponent as Z, ref as G, createElementBlock as I, openBlock as _, mergeProps as j, createElementVNode as S, createCommentVNode as z, toDisplayString as ne, isRef as St, computed as v, watch as X, toRefs as ee, inject as Ce, reactive as Fe, onMounted as ye, unref as d, createBlock as Y, Fragment as Q, renderList as W, normalizeStyle as jt, normalizeClass as te, watchEffect as Vt, onBeforeUnmount as Pt, renderSlot as M, createTextVNode as se, useSlots as re, nextTick as Qe, withCtx as V, createSlots as ce, pushScopeId as sn, popScopeId as cn, provide as Ke, createVNode as ue, toHandlers as oe, normalizeProps as pe, guardReactiveProps as he, defineAsyncComponent as Je, resolveDynamicComponent as dn } from "vue";
2
2
  import { sankeyLinkHorizontal as vn, sankey as mn, sankeyJustify as fn } from "d3-sankey";
3
- import { format as pn, ticks as hn, scaleBand as Be, scaleLinear as Me, link as gn, line as yn, area as _n } from "d3";
3
+ import { format as pn, ticks as hn, scaleLinear as Be, scaleBand as Me, link as gn, line as yn, area as _n } from "d3";
4
4
  import { createPopper as kn } from "@popperjs/core";
5
5
  const bn = {
6
6
  class: "axis__tick-label lume-typography--axis",
@@ -43,9 +43,9 @@ const bn = {
43
43
  }
44
44
  },
45
45
  emits: ["click", "mouseenter"],
46
- setup(e, { expose: n, emit: t }) {
47
- const o = t, a = S(null);
48
- return n({ ref: a }), (r, l) => (_(), I("g", j(e.group, {
46
+ setup(e, { expose: t, emit: n }) {
47
+ const o = n, a = G(null);
48
+ return t({ ref: a }), (r, l) => (_(), I("g", j(e.group, {
49
49
  class: ["axis__tick", {
50
50
  "axis__tick--hovered": e.isHovered,
51
51
  "axis__tick--hidden": e.isHidden
@@ -54,12 +54,12 @@ const bn = {
54
54
  onMouseenter: l[0] || (l[0] = (i) => o("mouseenter", i)),
55
55
  onClick: l[1] || (l[1] = (i) => o("click", i))
56
56
  }), [
57
- G("g", bn, [
58
- G("rect", j(e.ghost, {
57
+ S("g", bn, [
58
+ S("rect", j(e.ghost, {
59
59
  class: "axis__ghost",
60
60
  fill: "url(#lume-tick-gradient)"
61
61
  }), null, 16),
62
- G("text", j(e.label, {
62
+ S("text", j(e.label, {
63
63
  ref_key: "labelRef",
64
64
  ref: a,
65
65
  class: "axis__label"
@@ -68,11 +68,11 @@ const bn = {
68
68
  e.withGridlines ? (_(), I("line", j({ key: 0 }, e.gridline, { class: "axis__grid-line" }), null, 16)) : z("", !0)
69
69
  ], 16));
70
70
  }
71
- }), q = (e, n) => {
72
- const t = e.__vccOpts || e;
73
- for (const [o, a] of n)
74
- t[o] = a;
75
- return t;
71
+ }), q = (e, t) => {
72
+ const n = e.__vccOpts || e;
73
+ for (const [o, a] of t)
74
+ n[o] = a;
75
+ return n;
76
76
  }, At = /* @__PURE__ */ q(An, [["__scopeId", "data-v-59ddc0a6"]]), Tn = [
77
77
  "controls",
78
78
  "legend",
@@ -86,7 +86,7 @@ function Ct() {
86
86
  }
87
87
  function Ft(e) {
88
88
  return (e == null ? void 0 : e.map(
89
- (n) => n.values.map((t) => t == null ? void 0 : t.value).flat()
89
+ (t) => t.values.map((n) => n == null ? void 0 : n.value).flat()
90
90
  ).flat()) || [];
91
91
  }
92
92
  function st(e) {
@@ -94,17 +94,17 @@ function st(e) {
94
94
  }
95
95
  function Ln(e) {
96
96
  return !!e && e.every(
97
- (n) => "color" in n
97
+ (t) => "color" in t
98
98
  );
99
99
  }
100
100
  function qe(e) {
101
101
  return !!e && typeof e == "object" && !Array.isArray(e);
102
102
  }
103
- function zt(e, n) {
104
- const t = { ...e };
105
- return Object.entries(n).forEach(([o, a]) => {
106
- t[o] = qe(e[o]) && qe(a) ? zt(e[o], a) : a;
107
- }), t;
103
+ function zt(e, t) {
104
+ const n = { ...e };
105
+ return Object.entries(t).forEach(([o, a]) => {
106
+ n[o] = qe(e[o]) && qe(a) ? zt(e[o], a) : a;
107
+ }), n;
108
108
  }
109
109
  function $n(e) {
110
110
  return e != null && qe(e) && "value" in e;
@@ -116,53 +116,53 @@ function On(e) {
116
116
  return de(e) ? e.step() : Math.max(...e.range()) / Math.max(...e.domain());
117
117
  }
118
118
  function In(e) {
119
- const [n, t] = e.domain();
120
- return n == null || t == null || n === 0 && t === 0;
119
+ const [t, n] = e.domain();
120
+ return t == null || n == null || t === 0 && n === 0;
121
121
  }
122
- const wn = (e, n) => {
122
+ const xn = (e, t) => {
123
123
  if (!e)
124
124
  throw new Error("Data is not a valid array");
125
125
  if (e.length === 0)
126
126
  throw new Error("Cannot get highest value from empty array");
127
127
  e.some(
128
- ({ values: o }) => o.length - 1 >= n
128
+ ({ values: o }) => o.length - 1 >= t
129
129
  ) || ge(ve.IndexExceedsLengthOfDataSets);
130
130
  };
131
- function xn(e, n) {
132
- var t;
133
- return wn(e, n), ((t = e.reduce(
131
+ function wn(e, t) {
132
+ var n;
133
+ return xn(e, t), ((n = e.reduce(
134
134
  (o, a) => {
135
135
  var r, l;
136
- return (((r = o.values[n]) == null ? void 0 : r.value) ?? 0) > (((l = a.values[n]) == null ? void 0 : l.value) ?? 0) ? o : a;
136
+ return (((r = o.values[t]) == null ? void 0 : r.value) ?? 0) > (((l = a.values[t]) == null ? void 0 : l.value) ?? 0) ? o : a;
137
137
  }
138
- ).values[n]) == null ? void 0 : t.value) || 0;
138
+ ).values[t]) == null ? void 0 : n.value) || 0;
139
139
  }
140
140
  function Wt(e) {
141
- const n = Gt(e) ? e.value : e;
142
- if (!n)
141
+ const t = St(e) ? e.value : e;
142
+ if (!t)
143
143
  throw new Error("No empty array can be created from specified data value");
144
- const t = Math.max(
145
- ...n.map((o) => o.values.length),
144
+ const n = Math.max(
145
+ ...t.map((o) => o.values.length),
146
146
  0
147
147
  );
148
- return Array(t).fill(null);
148
+ return Array(n).fill(null);
149
149
  }
150
150
  function En(e) {
151
151
  return de(e) ? e.domain().length : Math.max(...e.domain());
152
152
  }
153
- function Nn(e, n) {
154
- return (t) => Math.round(e * (1 - t) + n * t);
153
+ function Nn(e, t) {
154
+ return (n) => Math.round(e * (1 - n) + t * n);
155
155
  }
156
- function Dn(e, n, t) {
157
- const o = n, a = e.slice(0, o);
156
+ function Dn(e, t, n) {
157
+ const o = t, a = e.slice(0, o);
158
158
  return e.slice(o).concat(a);
159
159
  }
160
160
  function Ae(e) {
161
161
  if (e.groups) {
162
- const n = Object.keys(e);
162
+ const t = Object.keys(e);
163
163
  return Object.assign(
164
164
  {},
165
- ...n.map((t) => t !== "groups" ? { [t]: e[t] } : {})
165
+ ...t.map((n) => n !== "groups" ? { [n]: e[n] } : {})
166
166
  );
167
167
  }
168
168
  return e;
@@ -171,75 +171,71 @@ function Hn(e) {
171
171
  return Object.assign(
172
172
  {},
173
173
  ...Object.keys(e).map(
174
- (n) => Tn.includes(n) ? {} : { [n]: e[n] }
174
+ (t) => Tn.includes(t) ? {} : { [t]: e[t] }
175
175
  )
176
176
  );
177
177
  }
178
- const Bn = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce(
179
- (n, t) => n += (t &= 63) < 36 ? t.toString(36) : t < 62 ? (t - 26).toString(36).toUpperCase() : t > 62 ? "-" : "_",
180
- ""
181
- );
182
- function ct(e, n) {
183
- const t = n - e.length;
184
- return t > 0 ? [...e, ...Array(t).fill({ value: null })] : e;
178
+ function ct(e, t) {
179
+ const n = t - e.length;
180
+ return n > 0 ? [...e, ...Array(n).fill({ value: null })] : e;
185
181
  }
186
182
  var ve = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
187
183
  Learn more: https://lume.design/guidelines/datasets`, e.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", e.Empty = "The dataset(s) provided are empty.", e.InvalidFormat = "The string provided to format is invalid. Please refer to https://github.com/d3/d3-format for valid arguments.", e.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", e.InvalidHoveredIndex = "The provided hovered index is not valid for the data of this chart.", e.InvalidHoveredElement = "The provided hovered element is not valid for the data of this diagram.", e.IndexExceedsLengthOfDataSets = "Index exceeds length of all of the datasets", e))(ve || {});
188
- const Mn = "[lume] ";
189
- function ge(e, n = !0) {
190
- n && Ct() || console.warn(Mn + "Warning: " + e);
184
+ const Bn = "[lume] ";
185
+ function ge(e, t = !0) {
186
+ t && Ct() || console.warn(Bn + "Warning: " + e);
191
187
  }
192
188
  const Ve = (e) => {
193
- let n = null;
189
+ let t = null;
194
190
  switch (typeof e) {
195
191
  case "string":
196
192
  try {
197
- n = pn(e);
193
+ t = pn(e);
198
194
  } catch {
199
- ge(ve.InvalidFormat), n = null;
195
+ ge(ve.InvalidFormat), t = null;
200
196
  }
201
197
  break;
202
198
  case "function":
203
- n = e;
199
+ t = e;
204
200
  break;
205
201
  default:
206
- n = null;
202
+ t = null;
207
203
  }
208
- function t(...o) {
209
- return n ? n(...o) : o[0];
204
+ function n(...o) {
205
+ return t ? t(...o) : o[0];
210
206
  }
211
- return t;
207
+ return n;
212
208
  }, Re = () => ({
213
209
  options: {
214
210
  type: Object,
215
211
  default: () => ({})
216
212
  }
217
213
  });
218
- function me(e, n) {
214
+ function me(e, t) {
219
215
  return { allOptions: v(() => {
220
- const o = Gt(n) ? n == null ? void 0 : n.value : n;
216
+ const o = St(t) ? t == null ? void 0 : t.value : t;
221
217
  return o ? zt(o, e.value) : e.value;
222
218
  }) };
223
219
  }
224
- const Rn = 0.2;
225
- function Sn(e, n, t) {
226
- const o = S(), a = v(() => Math.max(...e.value.range())), r = v(() => n.value.length);
220
+ const Mn = 0.2;
221
+ function Rn(e, t, n) {
222
+ const o = G(), a = v(() => Math.max(...e.value.range())), r = v(() => t.value.length);
227
223
  function l() {
228
- if (!n.value) return;
229
- const c = n.value.reduce(
224
+ if (!t.value) return;
225
+ const c = t.value.reduce(
230
226
  (f, u) => f + u.ref.getBoundingClientRect().width,
231
227
  0
232
228
  ), s = Math.ceil(c / r.value);
233
- o.value = s + s * Rn;
229
+ o.value = s + s * Mn;
234
230
  }
235
231
  function i(c) {
236
- if (!n.value) return !0;
237
- const s = t.value.skip, f = n.value.length;
232
+ if (!t.value) return !0;
233
+ const s = n.value.skip, f = t.value.length;
238
234
  if (c === 0) return !0;
239
235
  const u = a.value / f, m = typeof s == "number" && s > 0 && s + 1 || Math.ceil(o.value / u);
240
236
  return c % m === 0;
241
237
  }
242
- return X(n, l), { showTick: i };
238
+ return X(t, l), { showTick: i };
243
239
  }
244
240
  const H = {
245
241
  HORIZONTAL: "horizontal",
@@ -248,7 +244,7 @@ const H = {
248
244
  SINGLE: "single",
249
245
  GROUPED: "grouped",
250
246
  STACKED: "stacked"
251
- }, Zt = "No data", Tt = 20, Ut = 0.33, Xt = 0.5, Yt = 12, Se = 8, jn = 1, Vn = [
247
+ }, Zt = "No data", Tt = 20, Ut = 0.33, Xt = 0.5, Yt = 12, Ge = 8, Sn = 1, jn = [
252
248
  "auto",
253
249
  "auto-start",
254
250
  "auto-end",
@@ -284,14 +280,14 @@ const Kt = {
284
280
  tickFormat: null,
285
281
  /** Space between the tick label and the axis line. */
286
282
  tickPadding: 12
287
- }, Pn = {
283
+ }, Vn = {
288
284
  ...Kt,
289
285
  withTitle: !1,
290
286
  skip: !0
291
- }, Cn = {
287
+ }, Pn = {
292
288
  ...Kt,
293
289
  gridLines: !0
294
- }, Fn = function(e, n, t) {
290
+ }, Cn = function(e, t, n) {
295
291
  const o = v(() => e.value.step() * e.value.paddingInner() / 2);
296
292
  function a(c, s) {
297
293
  return {
@@ -307,7 +303,7 @@ const Kt = {
307
303
  return {
308
304
  x: -(s - e.value.step()) / 2,
309
305
  width: s,
310
- height: t.value.tickPadding + Yt + Se
306
+ height: n.value.tickPadding + Yt + Ge
311
307
  };
312
308
  }
313
309
  function l() {
@@ -315,14 +311,14 @@ const Kt = {
315
311
  return {
316
312
  x1: c,
317
313
  x2: c,
318
- y1: -n.value.height
314
+ y1: -t.value.height
319
315
  // Negative height means it goes from bottom to top
320
316
  };
321
317
  }
322
318
  function i() {
323
319
  return {
324
320
  x: e.value.step() / 2,
325
- y: t.value.tickPadding,
321
+ y: n.value.tickPadding,
326
322
  dy: "0.8em",
327
323
  "text-anchor": "middle"
328
324
  };
@@ -333,7 +329,7 @@ const Kt = {
333
329
  getTickGroupAttributes: a,
334
330
  getTickLabelAttributes: i
335
331
  };
336
- }, zn = function(e, n, t) {
332
+ }, Fn = function(e, t, n) {
337
333
  const o = v(() => e.value.step() * e.value.paddingInner() / 2);
338
334
  function a(c, s) {
339
335
  return {
@@ -342,7 +338,7 @@ const Kt = {
342
338
  }
343
339
  function r(c) {
344
340
  var f;
345
- const s = (c ? (f = c.getComputedTextLength) == null ? void 0 : f.call(c) : 42) + t.value.tickPadding + Se;
341
+ const s = (c ? (f = c.getComputedTextLength) == null ? void 0 : f.call(c) : 42) + n.value.tickPadding + Ge;
346
342
  return {
347
343
  x: -s,
348
344
  width: s,
@@ -354,12 +350,12 @@ const Kt = {
354
350
  return {
355
351
  y1: c,
356
352
  y2: c,
357
- x1: n.value.width
353
+ x1: t.value.width
358
354
  };
359
355
  }
360
356
  function i() {
361
357
  return {
362
- x: -t.value.tickPadding,
358
+ x: -n.value.tickPadding,
363
359
  y: e.value.step() / 2,
364
360
  "text-anchor": "end",
365
361
  "alignment-baseline": "middle"
@@ -371,7 +367,7 @@ const Kt = {
371
367
  getTickGroupAttributes: a,
372
368
  getTickLabelAttributes: i
373
369
  };
374
- }, Wn = function(e, n, t) {
370
+ }, zn = function(e, t, n) {
375
371
  const o = v(() => {
376
372
  const c = e.value.ticks();
377
373
  return c.length > 1 ? e.value(c[1]) - e.value(c[0]) : 0;
@@ -383,19 +379,19 @@ const Kt = {
383
379
  }
384
380
  function r() {
385
381
  return {
386
- height: t.value.tickPadding + Yt + Se,
382
+ height: n.value.tickPadding + Yt + Ge,
387
383
  width: o.value,
388
384
  x: -(o.value / 2)
389
385
  };
390
386
  }
391
387
  function l() {
392
388
  return {
393
- y1: -n.value.height
389
+ y1: -t.value.height
394
390
  };
395
391
  }
396
392
  function i() {
397
393
  return {
398
- y: t.value.tickPadding,
394
+ y: n.value.tickPadding,
399
395
  dy: "0.8em",
400
396
  "text-anchor": "middle"
401
397
  };
@@ -406,7 +402,7 @@ const Kt = {
406
402
  getTickGroupAttributes: a,
407
403
  getTickLabelAttributes: i
408
404
  };
409
- }, Zn = function(e, n, t) {
405
+ }, Wn = function(e, t, n) {
410
406
  const o = v(() => {
411
407
  const c = e.value.ticks();
412
408
  return c.length > 1 ? e.value(c[1]) - e.value(c[0]) : 0;
@@ -418,7 +414,7 @@ const Kt = {
418
414
  }
419
415
  function r(c) {
420
416
  var f;
421
- const s = (((f = c == null ? void 0 : c.getComputedTextLength) == null ? void 0 : f.call(c)) || 0) + t.value.tickPadding + Se;
417
+ const s = (((f = c == null ? void 0 : c.getComputedTextLength) == null ? void 0 : f.call(c)) || 0) + n.value.tickPadding + Ge;
422
418
  return {
423
419
  width: s,
424
420
  height: o.value,
@@ -428,12 +424,12 @@ const Kt = {
428
424
  }
429
425
  function l() {
430
426
  return {
431
- x1: n.value.width
427
+ x1: t.value.width
432
428
  };
433
429
  }
434
430
  function i() {
435
431
  return {
436
- x: -t.value.tickPadding,
432
+ x: -n.value.tickPadding,
437
433
  dy: "0.4em",
438
434
  "text-anchor": "end"
439
435
  };
@@ -444,30 +440,30 @@ const Kt = {
444
440
  getTickGroupAttributes: a,
445
441
  getTickLabelAttributes: i
446
442
  };
447
- }, Un = {
448
- "x-band-scale-axis": Fn,
449
- "y-band-scale-axis": zn,
450
- "x-linear-scale-axis": Wn,
451
- "y-linear-scale-axis": Zn
452
- }, Xn = ["transform"], Yn = { key: 0 }, Kn = /* @__PURE__ */ G("linearGradient", { id: "lume-tick-gradient" }, [
453
- /* @__PURE__ */ G("stop", {
443
+ }, Zn = {
444
+ "x-band-scale-axis": Cn,
445
+ "y-band-scale-axis": Fn,
446
+ "x-linear-scale-axis": zn,
447
+ "y-linear-scale-axis": Wn
448
+ }, Un = ["transform"], Xn = { key: 0 }, Yn = /* @__PURE__ */ S("linearGradient", { id: "lume-tick-gradient" }, [
449
+ /* @__PURE__ */ S("stop", {
454
450
  offset: "0%",
455
451
  "stop-color": "rgba(255,255,255,0)"
456
452
  }),
457
- /* @__PURE__ */ G("stop", {
453
+ /* @__PURE__ */ S("stop", {
458
454
  offset: "10%",
459
455
  "stop-color": "var(--lume-chart-background-color)"
460
456
  }),
461
- /* @__PURE__ */ G("stop", {
457
+ /* @__PURE__ */ S("stop", {
462
458
  offset: "90%",
463
459
  "stop-color": "var(--lume-chart-background-color)"
464
460
  }),
465
- /* @__PURE__ */ G("stop", {
461
+ /* @__PURE__ */ S("stop", {
466
462
  offset: "100%",
467
463
  "stop-color": "rgba(255,255,255,0)"
468
464
  })
469
- ], -1), Jn = [
470
- Kn
465
+ ], -1), Kn = [
466
+ Yn
471
467
  ];
472
468
  var Jt = /* @__PURE__ */ ((e) => (e.bandScale = "band-scale-axis", e.linearScale = "linear-scale-axis", e))(Jt || {}), Qt = /* @__PURE__ */ ((e) => (e.left = "left", e.bottom = "bottom", e))(Qt || {}), et = /* @__PURE__ */ ((e) => (e.x = "bottom", e.y = "left", e))(et || {});
473
469
  const Lt = /* @__PURE__ */ Z({
@@ -502,8 +498,8 @@ const Lt = /* @__PURE__ */ Z({
502
498
  ...Re()
503
499
  },
504
500
  emits: ["mouseenter", "click", "mouseleave", "lume__internal--axis-size"],
505
- setup(e, { emit: n }) {
506
- const o = e, a = n, { scale: r, containerSize: l, hoveredIndex: i, options: c, orientation: s } = ee(o), f = Ce("isEmpty", S(!1)), u = Fe({}), m = S(null), y = S(null), p = S(null), b = v(
501
+ setup(e, { emit: t }) {
502
+ const o = e, a = t, { scale: r, containerSize: l, hoveredIndex: i, options: c, orientation: s } = ee(o), f = Ce("isEmpty", G(!1)), u = Fe({}), m = G(null), y = G(null), p = G(null), b = v(
507
503
  () => o.type ? et[o.type] : o.position
508
504
  ), $ = v(
509
505
  () => o.type || (b.value === "left" ? "y" : "x")
@@ -511,8 +507,8 @@ const Lt = /* @__PURE__ */ Z({
511
507
  () => $.value === "x" && s.value === H.VERTICAL || $.value === "y" && s.value === H.HORIZONTAL
512
508
  ), { allOptions: g } = me(
513
509
  c,
514
- $.value === "x" ? Pn : Cn
515
- ), { showTick: O } = Sn(r, m, g), N = v(
510
+ $.value === "x" ? Vn : Pn
511
+ ), { showTick: O } = Rn(r, m, g), N = v(
516
512
  () => f.value || !r.value || In(r.value)
517
513
  ), D = v(() => {
518
514
  var k, E, h, R;
@@ -523,13 +519,13 @@ const Lt = /* @__PURE__ */ Z({
523
519
  return r.value.labels || r.value.domain();
524
520
  const { tickCount: k } = g.value, [E, h] = r.value.domain();
525
521
  return hn(E, h, k);
526
- }), x = v(() => {
522
+ }), w = v(() => {
527
523
  const { tickFormat: k } = g.value;
528
524
  return Ve(k);
529
525
  }), B = v(
530
526
  () => g.value.withHover && L.value && i.value > -1
531
527
  ), U = v(
532
- () => g.value.tickPadding + Se || 16
528
+ () => g.value.tickPadding + Ge || 16
533
529
  ), K = v(() => $.value === "x" ? (
534
530
  // If x axis, get the tick height
535
531
  Math.max(
@@ -553,7 +549,7 @@ const Lt = /* @__PURE__ */ Z({
553
549
  ));
554
550
  function J(k) {
555
551
  const { showTicks: E } = g.value;
556
- return E === !1 ? "" : x.value(k);
552
+ return E === !1 ? "" : w.value(k);
557
553
  }
558
554
  function C(k, E, h) {
559
555
  a("mouseenter", { index: L.value ? k : null, value: E, event: h });
@@ -561,7 +557,7 @@ const Lt = /* @__PURE__ */ Z({
561
557
  function ae(k, E, h) {
562
558
  a("click", { index: k, value: E, event: h });
563
559
  }
564
- function Ne(k) {
560
+ function we(k) {
565
561
  var E;
566
562
  if (!(!m.value || !m.value.length))
567
563
  return (E = m.value[k]) == null ? void 0 : E.ref;
@@ -571,7 +567,7 @@ const Lt = /* @__PURE__ */ Z({
571
567
  (k, E) => ({
572
568
  value: J(k),
573
569
  group: u.getTickGroupAttributes(k, E),
574
- ghost: u.getTickGhostAttributes(Ne(E)),
570
+ ghost: u.getTickGhostAttributes(we(E)),
575
571
  label: u.getTickLabelAttributes(),
576
572
  gridline: u.getGridLinesAttributes()
577
573
  })
@@ -582,7 +578,7 @@ const Lt = /* @__PURE__ */ Z({
582
578
  }
583
579
  function Le() {
584
580
  if (!r.value) return;
585
- const k = r.value.step ? "bandScale" : "linearScale", E = Un[`${$.value}-${Jt[k]}`];
581
+ const k = r.value.step ? "bandScale" : "linearScale", E = Zn[`${$.value}-${Jt[k]}`];
586
582
  Object.entries(E(r, l, g) || []).forEach(
587
583
  ([h, R]) => {
588
584
  u[h] = R;
@@ -598,7 +594,7 @@ const Lt = /* @__PURE__ */ Z({
598
594
  "data-j-axis": "",
599
595
  onMouseleave: E[1] || (E[1] = (h) => a("mouseleave", h))
600
596
  }, [
601
- $.value === "x" ? (_(), I("defs", Yn, Jn)) : z("", !0),
597
+ $.value === "x" ? (_(), I("defs", Xn, Kn)) : z("", !0),
602
598
  (_(!0), I(Q, null, W(p.value, (h, R) => (_(), Y(d(At), j({
603
599
  key: `${h.value}_${R}`,
604
600
  ref_for: !0,
@@ -619,33 +615,28 @@ const Lt = /* @__PURE__ */ Z({
619
615
  h
620
616
  ))
621
617
  }), null, 16)) : z("", !0)
622
- ], 40, Xn)) : z("", !0);
618
+ ], 40, Un)) : z("", !0);
623
619
  }
624
620
  });
625
- function Qn(e, n, t, o) {
626
- const a = v(() => t.value > 0 && t.value < 1), r = v(
621
+ function Jn(e, t, n, o) {
622
+ const a = v(() => n.value > 0 && n.value < 1), r = v(
627
623
  () => o.value > 0 && o.value < 1
628
624
  ), l = v(
629
625
  () => a.value ? e.value - 0.5 : e.value
630
626
  // draws the 1px bar closer to the axis
631
627
  ), i = v(
632
- () => r.value ? n.value - 0.5 : n.value
628
+ () => r.value ? t.value - 0.5 : t.value
633
629
  // draws the 1px bar closer to the axis
634
630
  );
635
631
  return { computedX: l, computedY: i, shouldHaveMinWidth: a, shouldHaveMinHeight: r };
636
632
  }
637
- function qn(e, n, t, o) {
638
- const a = S(0), r = S(0), l = v(() => {
639
- const i = parseFloat(
640
- getComputedStyle(document.documentElement).fontSize
641
- ), c = (e.value + t.value / 2) / i, s = (n.value + o.value / 2) / i;
642
- return `${c}rem ${s}rem`;
643
- });
633
+ function Qn(e, t, n, o) {
634
+ const a = G(0), r = G(0), l = v(() => `${e.value + n.value / 2}px ${t.value + o.value / 2}px`);
644
635
  return ye(() => {
645
- a.value = t.value, r.value = o.value;
646
- }), X(t, (i) => a.value = i), X(o, (i) => r.value = i), { computedWidth: a, computedHeight: r, transformOrigin: l };
636
+ a.value = n.value, r.value = o.value;
637
+ }), X(n, (i) => a.value = i), X(o, (i) => r.value = i), { computedWidth: a, computedHeight: r, transformOrigin: l };
647
638
  }
648
- const eo = ["x", "y", "width", "height"], to = /* @__PURE__ */ Z({
639
+ const qn = ["x", "y", "width", "height"], eo = /* @__PURE__ */ Z({
649
640
  __name: "lume-bar",
650
641
  props: {
651
642
  x: {
@@ -682,11 +673,11 @@ const eo = ["x", "y", "width", "height"], to = /* @__PURE__ */ Z({
682
673
  }
683
674
  },
684
675
  emits: ["click", "mouseover", "mouseleave"],
685
- setup(e, { emit: n }) {
686
- const t = e, o = n, { x: a, y: r, width: l, height: i, transition: c, classList: s } = ee(t), f = S(null), u = v(
676
+ setup(e, { emit: t }) {
677
+ const n = e, o = t, { x: a, y: r, width: l, height: i, transition: c, classList: s } = ee(n), f = G(null), u = v(
687
678
  () => typeof s.value == "string" ? [s.value] : s.value
688
- ), m = v(() => c.value === "width"), y = v(() => c.value === "height"), p = qn(a, r, l, i), { computedX: b, computedY: $, shouldHaveMinWidth: L, shouldHaveMinHeight: g } = Qn(a, r, l, i), O = v(() => L.value ? 1 : (m.value ? p.computedWidth : l).value), N = v(() => g.value ? 1 : (y.value ? p.computedHeight : i).value), D = m.value || y.value ? p.transformOrigin : null;
689
- return ye(() => ze(f.value)), (P, x) => (_(), I("rect", {
679
+ ), m = v(() => c.value === "width"), y = v(() => c.value === "height"), p = Qn(a, r, l, i), { computedX: b, computedY: $, shouldHaveMinWidth: L, shouldHaveMinHeight: g } = Jn(a, r, l, i), O = v(() => L.value ? 1 : (m.value ? p.computedWidth : l).value), N = v(() => g.value ? 1 : (y.value ? p.computedHeight : i).value), D = m.value || y.value ? p.transformOrigin : null;
680
+ return ye(() => ze(f.value)), (P, w) => (_(), I("rect", {
690
681
  ref_key: "root",
691
682
  ref: f,
692
683
  class: te(["lume-bar", [
@@ -704,58 +695,58 @@ const eo = ["x", "y", "width", "height"], to = /* @__PURE__ */ Z({
704
695
  width: O.value,
705
696
  height: N.value,
706
697
  "data-j-bar": "",
707
- onClick: x[0] || (x[0] = (B) => o("click", B)),
708
- onMouseover: x[1] || (x[1] = (B) => o("mouseover", B)),
709
- onMouseleave: x[2] || (x[2] = (B) => o("mouseleave", B))
710
- }, null, 46, eo));
698
+ onClick: w[0] || (w[0] = (B) => o("click", B)),
699
+ onMouseover: w[1] || (w[1] = (B) => o("mouseover", B)),
700
+ onMouseleave: w[2] || (w[2] = (B) => o("mouseleave", B))
701
+ }, null, 46, qn));
711
702
  }
712
- }), dt = /* @__PURE__ */ q(to, [["__scopeId", "data-v-8e8f732a"]]);
703
+ }), dt = /* @__PURE__ */ q(eo, [["__scopeId", "data-v-8e8f732a"]]);
713
704
  var ke = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(ke || {}), ie = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(ie || {}), qt = /* @__PURE__ */ ((e) => (e.Skyblue10 = "skyblue-10", e.Skyblue20 = "skyblue-20", e.Skyblue30 = "skyblue-30", e.Skyblue40 = "skyblue-40", e.Skyblue50 = "skyblue-50", e.Skyblue60 = "skyblue-60", e.Skyblue70 = "skyblue-70", e.Skyblue80 = "skyblue-80", e.Skyblue90 = "skyblue-90", e.Skyblue100 = "skyblue-100", e.Royalblue10 = "royalblue-10", e.Royalblue20 = "royalblue-20", e.Royalblue30 = "royalblue-30", e.Royalblue40 = "royalblue-40", e.Royalblue50 = "royalblue-50", e.Royalblue60 = "royalblue-60", e.Royalblue70 = "royalblue-70", e.Royalblue80 = "royalblue-80", e.Royalblue90 = "royalblue-90", e.Royalblue100 = "royalblue-100", e.Violet10 = "violet-10", e.Violet20 = "violet-20", e.Violet30 = "violet-30", e.Violet40 = "violet-40", e.Violet50 = "violet-50", e.Violet60 = "violet-60", e.Violet70 = "violet-70", e.Violet80 = "violet-80", e.Violet90 = "violet-90", e.Violet100 = "violet-100", e.Darkteal10 = "darkteal-10", e.Darkteal20 = "darkteal-20", e.Darkteal30 = "darkteal-30", e.Darkteal40 = "darkteal-40", e.Darkteal50 = "darkteal-50", e.Darkteal60 = "darkteal-60", e.Darkteal70 = "darkteal-70", e.Darkteal80 = "darkteal-80", e.Darkteal90 = "darkteal-90", e.Darkteal100 = "darkteal-100", e.Gold10 = "gold-10", e.Gold20 = "gold-20", e.Gold30 = "gold-30", e.Gold40 = "gold-40", e.Gold50 = "gold-50", e.Gold60 = "gold-60", e.Gold70 = "gold-70", e.Gold80 = "gold-80", e.Gold90 = "gold-90", e.Gold100 = "gold-100", e))(qt || {}), vt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(vt || {}), mt = /* @__PURE__ */ ((e) => (e.White = "white", e.Black = "black", e.Green = "green", e.Orange = "orange", e.Red = "red", e.Grey = "grey", e.Grey10 = "grey-10", e.Grey20 = "grey-20", e.Grey30 = "grey-30", e.Grey40 = "grey-40", e.Grey50 = "grey-50", e.Grey60 = "grey-60", e.Grey70 = "grey-70", e.Grey80 = "grey-80", e.Grey90 = "grey-90", e.Grey100 = "grey-100", e))(mt || {}), ft = /* @__PURE__ */ ((e) => (e["01"] = "01", e["02"] = "02", e["03"] = "03", e["04"] = "04", e["05"] = "05", e["06"] = "06", e["07"] = "07", e["08"] = "08", e["09"] = "09", e))(ft || {});
714
- const no = ke.Categorical, Ge = ie.Skyblue, oo = vt.SkyTeal;
715
- function ao(e) {
716
- return e === ke.Divergent ? oo : Ge;
705
+ const to = ke.Categorical, Se = ie.Skyblue, no = vt.SkyTeal;
706
+ function oo(e) {
707
+ return e === ke.Divergent ? no : Se;
717
708
  }
718
- function lo(e) {
709
+ function ao(e) {
719
710
  return Object.values(ft).includes(e);
720
711
  }
721
- function $t(e, n) {
722
- return n === ke.Divergent ? Object.values(vt).includes(e) : Object.values({
712
+ function $t(e, t) {
713
+ return t === ke.Divergent ? Object.values(vt).includes(e) : Object.values({
723
714
  ...ie,
724
715
  ...qt,
725
716
  ...mt,
726
717
  ...ft
727
718
  }).includes(e);
728
719
  }
729
- function ro(e, n) {
730
- const t = Object.values(ie).indexOf(e);
731
- return Dn(Object.values(ie), t > -1 ? t : 0)[n];
720
+ function lo(e, t) {
721
+ const n = Object.values(ie).indexOf(e);
722
+ return Dn(Object.values(ie), n > -1 ? n : 0)[t];
732
723
  }
733
- function uo(e, n) {
734
- const t = 50 + n * 10;
735
- return `${e}-${t}`;
724
+ function ro(e, t) {
725
+ const n = 50 + t * 10;
726
+ return `${e}-${n}`;
736
727
  }
737
- function io(e, n) {
738
- const t = (n + 1) * 10;
739
- return `${e}-${t}`;
728
+ function uo(e, t) {
729
+ const n = (t + 1) * 10;
730
+ return `${e}-${n}`;
740
731
  }
741
- function Ot(e, n, t) {
742
- switch (n) {
732
+ function Ot(e, t, n) {
733
+ switch (t) {
743
734
  default:
744
735
  case ke.Categorical:
745
- return lo(e) ? e : ro(e, t);
736
+ return ao(e) ? e : lo(e, n);
746
737
  case ke.Sequential:
747
- return uo(e, t);
738
+ return ro(e, n);
748
739
  case ke.Divergent:
749
- return io(e, t);
740
+ return uo(e, n);
750
741
  }
751
742
  }
752
- function so(e, n, t = no, o) {
753
- return $t(e, t) ? e : (o > 4 && (ge(ve.ColorLoop), o = o % 5), $t(n, t) ? Ot(n, t, o) : Ot(ao(t), t, o));
743
+ function io(e, t, n = to, o) {
744
+ return $t(e, n) ? e : (o > 4 && (ge(ve.ColorLoop), o = o % 5), $t(t, n) ? Ot(t, n, o) : Ot(oo(n), n, o));
754
745
  }
755
- function co(e) {
756
- return e.map((n) => $n(n) ? n : { value: n });
746
+ function so(e) {
747
+ return e.map((t) => $n(t) ? t : { value: t });
757
748
  }
758
- function vo(e) {
749
+ function co(e) {
759
750
  return e.__internal === !0;
760
751
  }
761
752
  const pt = (e = null) => ({
@@ -777,18 +768,18 @@ const pt = (e = null) => ({
777
768
  default: null
778
769
  }
779
770
  });
780
- function ht(e, n, t, o, a) {
771
+ function ht(e, t, n, o, a) {
781
772
  const r = Fe({
782
773
  width: 0,
783
774
  height: 0
784
- }), l = Bn(12), i = v(() => {
775
+ }), l = crypto.randomUUID(), i = v(() => {
785
776
  var f;
786
777
  return e.value.length > 5 && ge(ve.DatasetLength), (f = e.value) == null ? void 0 : f.map(
787
778
  (u, m) => {
788
- if (vo(u)) return u;
789
- const y = co(u.values), p = so(
779
+ if (co(u)) return u;
780
+ const y = so(u.values), p = io(
790
781
  u.color,
791
- t == null ? void 0 : t.value,
782
+ n == null ? void 0 : n.value,
792
783
  o == null ? void 0 : o.value.colorPalette,
793
784
  m
794
785
  );
@@ -800,7 +791,7 @@ function ht(e, n, t, o, a) {
800
791
  };
801
792
  }
802
793
  );
803
- }), c = v(() => Array.isArray(n.value) ? n.value : Wt(e.value).map((f, u) => u));
794
+ }), c = v(() => Array.isArray(t.value) ? t.value : Wt(e.value).map((f, u) => u));
804
795
  function s(f) {
805
796
  const u = (a == null ? void 0 : a.value) === H.HORIZONTAL && c.value.length * (((o == null ? void 0 : o.value.barHeight) || Tt) * 2) + ((o == null ? void 0 : o.value.barHeight) || Tt) || f.height;
806
797
  r.width = f.width, r.height = u;
@@ -813,7 +804,7 @@ function ht(e, n, t, o, a) {
813
804
  updateSize: s
814
805
  };
815
806
  }
816
- const mo = () => ({
807
+ const vo = () => ({
817
808
  xScale: {
818
809
  type: Function,
819
810
  default: null
@@ -823,27 +814,27 @@ const mo = () => ({
823
814
  default: null
824
815
  }
825
816
  });
826
- function fo(e, n, t, o, a) {
827
- const r = S(null), l = S(null);
817
+ function mo(e, t, n, o, a) {
818
+ const r = G(null), l = G(null);
828
819
  function i() {
829
820
  var f, u, m, y;
830
- const { width: c, height: s } = t;
831
- !c && !s || (o.value === H.HORIZONTAL ? (r.value = (f = e.value) != null && f.length ? wt(
821
+ const { width: c, height: s } = n;
822
+ !c && !s || (o.value === H.HORIZONTAL ? (r.value = (f = e.value) != null && f.length ? xt(
832
823
  e.value,
833
824
  c,
834
825
  o.value,
835
826
  a.value.startOnZero
836
- ) : null, l.value = (u = n.value) != null && u.length ? It(
837
- n.value,
827
+ ) : null, l.value = (u = t.value) != null && u.length ? It(
828
+ t.value,
838
829
  s,
839
830
  o.value,
840
831
  a.value
841
- ) : null) : (r.value = (m = n.value) != null && m.length ? It(
842
- n.value,
832
+ ) : null) : (r.value = (m = t.value) != null && m.length ? It(
833
+ t.value,
843
834
  c,
844
835
  o.value,
845
836
  a.value
846
- ) : null, l.value = (y = e.value) != null && y.length ? wt(
837
+ ) : null, l.value = (y = e.value) != null && y.length ? xt(
847
838
  e.value,
848
839
  s,
849
840
  o.value,
@@ -852,40 +843,43 @@ function fo(e, n, t, o, a) {
852
843
  }
853
844
  return Vt(i), { xScale: r, yScale: l };
854
845
  }
855
- function It(e, n, t, o) {
856
- const a = [0, n], { padding: r, paddingInner: l, paddingOuter: i } = o, c = r ?? (t === H.HORIZONTAL ? Xt : Ut);
846
+ function It(e, t, n, o) {
847
+ const a = [0, t], { padding: r, paddingInner: l, paddingOuter: i } = o, c = r ?? (n === H.HORIZONTAL ? Xt : Ut);
857
848
  return Object.assign(
858
- Be().range(a).paddingInner(l ?? c).paddingOuter(i ?? c).domain(e.map((s, f) => f)),
849
+ Me().range(a).paddingInner(l ?? c).paddingOuter(i ?? c).domain(e.map((s, f) => f)),
859
850
  { labels: e }
860
851
  );
861
852
  }
862
- function wt(e, n, t, o) {
863
- const a = Ft(e).filter((f) => f != null), r = [0, n];
853
+ function xt(e, t, n, o) {
854
+ const a = Ft(e).filter((f) => f != null), r = [0, t];
864
855
  if (a.length === 0)
865
- return Me().range(r).domain([0, 0]).nice();
866
- const l = Math.min(...a), i = o && l > 0 ? 0 : l, c = Math.max(...a), s = t === H.HORIZONTAL ? [i, c] : [c, i];
867
- return Me().range(r).domain(s).nice();
868
- }
869
- function xt(e) {
856
+ return Be().range(r).domain([0, 0]).nice();
857
+ const l = Math.min(...a), i = o && l > 0 ? 0 : l;
858
+ let c = Math.max(...a);
859
+ o && c < 0 && (c = 0);
860
+ const s = n === H.HORIZONTAL ? [i, c] : [c, i];
861
+ return Be().range(r).domain(s).nice();
862
+ }
863
+ function wt(e) {
870
864
  return (e == null ? void 0 : e.range) !== void 0 || (e == null ? void 0 : e.copy) !== void 0;
871
865
  }
872
- function tt(e, n) {
873
- return de(e) ? e.bandwidth() / 2 + e(e.domain()[n]) : e(n);
866
+ function tt(e, t) {
867
+ return de(e) ? e.bandwidth() / 2 + e(e.domain()[t]) : e(t);
874
868
  }
875
- function Et(e, n, {
876
- padding: t,
869
+ function Et(e, t, {
870
+ padding: n,
877
871
  paddingInner: o,
878
872
  paddingOuter: a
879
873
  } = {}) {
880
- const r = t ?? (n === H.HORIZONTAL ? Xt : Ut);
874
+ const r = n ?? (t === H.HORIZONTAL ? Xt : Ut);
881
875
  return e.copy().paddingInner(o ?? r).paddingOuter(a ?? r);
882
876
  }
883
877
  function gt(e) {
884
878
  return Object.values(H).includes(e);
885
879
  }
886
- const xe = (e, n = !0) => ({
880
+ const Ie = (e, t = !0) => ({
887
881
  ...pt(e),
888
- ...mo(),
882
+ ...vo(),
889
883
  ...Re(),
890
884
  classList: {
891
885
  type: [String, Array],
@@ -895,14 +889,14 @@ const xe = (e, n = !0) => ({
895
889
  type: Number,
896
890
  default: null
897
891
  },
898
- ...n ? {
892
+ ...t ? {
899
893
  orientation: {
900
894
  type: String,
901
895
  default: H.VERTICAL,
902
896
  validator: gt
903
897
  }
904
898
  } : {}
905
- }), po = (e) => ({
899
+ }), fo = (e) => ({
906
900
  ...pt(e),
907
901
  ...Re(),
908
902
  hoveredElement: {
@@ -910,21 +904,21 @@ const xe = (e, n = !0) => ({
910
904
  default: null
911
905
  }
912
906
  });
913
- function ho() {
914
- const e = S(), n = Fe({
907
+ function po() {
908
+ const e = G(), t = Fe({
915
909
  dimensions: {}
916
- }), t = new ResizeObserver((o) => {
910
+ }), n = new ResizeObserver((o) => {
917
911
  o.forEach((a) => {
918
- n.dimensions = a.contentRect;
912
+ t.dimensions = a.contentRect;
919
913
  });
920
914
  });
921
915
  return ye(() => {
922
- t.observe(e.value);
916
+ n.observe(e.value);
923
917
  }), Pt(() => {
924
- t.unobserve(e.value);
925
- }), { resizeState: n, resizeRef: e };
918
+ n.unobserve(e.value);
919
+ }), { resizeState: t, resizeRef: e };
926
920
  }
927
- const go = ["height"], yo = ["transform"], _o = /* @__PURE__ */ Z({
921
+ const ho = ["height"], go = ["transform"], yo = /* @__PURE__ */ Z({
928
922
  __name: "lume-chart-container",
929
923
  props: {
930
924
  margins: {
@@ -950,14 +944,14 @@ const go = ["height"], yo = ["transform"], _o = /* @__PURE__ */ Z({
950
944
  }
951
945
  },
952
946
  emits: ["click", "mouseenter", "mouseleave", "resize"],
953
- setup(e, { emit: n }) {
954
- const t = e, o = n, { margins: a, containerSize: r } = ee(t), l = S(null), { resizeRef: i, resizeState: c } = ho(), s = v(
947
+ setup(e, { emit: t }) {
948
+ const n = e, o = t, { margins: a, containerSize: r } = ee(n), l = G(null), { resizeRef: i, resizeState: c } = po(), s = v(
955
949
  () => r.value.height + a.value.top + a.value.bottom
956
950
  );
957
951
  return Vt(() => {
958
952
  if (!l.value) return;
959
953
  const { width: f } = c.dimensions, { height: u } = l.value.getBoundingClientRect();
960
- if (!f || t.orientation === H.VERTICAL && !u)
954
+ if (!f || n.orientation === H.VERTICAL && !u)
961
955
  return;
962
956
  const m = f - a.value.left - a.value.right, y = u - a.value.top - a.value.bottom, p = {
963
957
  width: m > 0 ? m : 0,
@@ -987,19 +981,19 @@ const go = ["height"], yo = ["transform"], _o = /* @__PURE__ */ Z({
987
981
  onMouseenter: u[1] || (u[1] = (m) => o("mouseenter", m)),
988
982
  onMouseleave: u[2] || (u[2] = (m) => o("mouseleave", m))
989
983
  }, [
990
- G("g", {
984
+ S("g", {
991
985
  transform: `translate(${d(a).left}, ${d(a).top})`,
992
986
  class: "lume-chart-container__group",
993
987
  "data-j-chart-container__group": ""
994
988
  }, [
995
989
  M(f.$slots, "default", {}, void 0, !0)
996
- ], 8, yo)
997
- ], 42, go)),
990
+ ], 8, go)
991
+ ], 42, ho)),
998
992
  M(f.$slots, "footer", {}, void 0, !0),
999
993
  M(f.$slots, "extra", {}, void 0, !0)
1000
994
  ], 2));
1001
995
  }
1002
- }), ko = /* @__PURE__ */ q(_o, [["__scopeId", "data-v-d53cdc3e"]]), bo = ["onClick", "onMouseenter"], Ao = /* @__PURE__ */ Z({
996
+ }), _o = /* @__PURE__ */ q(yo, [["__scopeId", "data-v-d53cdc3e"]]), ko = ["onClick", "onMouseenter"], bo = /* @__PURE__ */ Z({
1003
997
  __name: "lume-chart-legend",
1004
998
  props: {
1005
999
  data: {
@@ -1009,59 +1003,59 @@ const go = ["height"], yo = ["transform"], _o = /* @__PURE__ */ Z({
1009
1003
  }
1010
1004
  },
1011
1005
  emits: ["click", "mouseenter", "mouseleave"],
1012
- setup(e, { emit: n }) {
1013
- const t = n;
1006
+ setup(e, { emit: t }) {
1007
+ const n = t;
1014
1008
  return (o, a) => (_(), I("div", {
1015
1009
  class: "lume-chart-legend",
1016
1010
  "data-j-chart-legend": "",
1017
- onMouseleave: a[0] || (a[0] = (r) => t("mouseleave"))
1011
+ onMouseleave: a[0] || (a[0] = (r) => n("mouseleave"))
1018
1012
  }, [
1019
1013
  (_(!0), I(Q, null, W(e.data, (r, l) => (_(), I("div", {
1020
1014
  key: `legend-item-${l}`,
1021
1015
  class: "lume-chart-legend__item lume-typography--caption",
1022
1016
  tabindex: "0",
1023
1017
  "data-j-chart-legend__symbol-wrapper": "",
1024
- onClick: (i) => t("click", { index: l, dataset: r, event: i }),
1025
- onMouseenter: (i) => t("mouseenter", { index: l, dataset: r, event: i })
1018
+ onClick: (i) => n("click", { index: l, dataset: r, event: i }),
1019
+ onMouseenter: (i) => n("mouseenter", { index: l, dataset: r, event: i })
1026
1020
  }, [
1027
- G("span", {
1021
+ S("span", {
1028
1022
  class: te(["lume-chart-legend__symbol", `lume-background-color--${r.color}`]),
1029
1023
  "data-j-chart-legend__symbol": ""
1030
1024
  }, null, 2),
1031
1025
  se(" " + ne(r.label || l), 1)
1032
- ], 40, bo))), 128))
1026
+ ], 40, ko))), 128))
1033
1027
  ], 32));
1034
1028
  }
1035
- }), Nt = /* @__PURE__ */ q(Ao, [["__scopeId", "data-v-6f1d1c44"]]), To = {}, Lo = {
1029
+ }), Nt = /* @__PURE__ */ q(bo, [["__scopeId", "data-v-6f1d1c44"]]), Ao = {}, To = {
1036
1030
  class: "lume-tooltip__title",
1037
1031
  "data-j-tooltip__title": ""
1038
1032
  };
1039
- function $o(e, n) {
1040
- return _(), I("div", Lo, [
1033
+ function Lo(e, t) {
1034
+ return _(), I("div", To, [
1041
1035
  M(e.$slots, "default", {}, void 0, !0)
1042
1036
  ]);
1043
1037
  }
1044
- const Oo = /* @__PURE__ */ q(To, [["render", $o], ["__scopeId", "data-v-8af3fac6"]]), Io = {}, wo = {
1038
+ const $o = /* @__PURE__ */ q(Ao, [["render", Lo], ["__scopeId", "data-v-8af3fac6"]]), Oo = {}, Io = {
1045
1039
  class: "lume-tooltip__item",
1046
1040
  "data-j-tooltip__summary-item": ""
1047
1041
  }, xo = { class: "lume-tooltip__value" };
1048
- function Eo(e, n) {
1049
- return _(), I("li", wo, [
1050
- G("span", null, [
1042
+ function wo(e, t) {
1043
+ return _(), I("li", Io, [
1044
+ S("span", null, [
1051
1045
  M(e.$slots, "default", {}, void 0, !0)
1052
1046
  ]),
1053
- G("strong", xo, [
1047
+ S("strong", xo, [
1054
1048
  M(e.$slots, "value", {}, void 0, !0)
1055
1049
  ])
1056
1050
  ]);
1057
1051
  }
1058
- const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b"]]), Do = {
1052
+ const Eo = /* @__PURE__ */ q(Oo, [["render", wo], ["__scopeId", "data-v-4ed7ec1b"]]), No = {
1059
1053
  class: "lume-tooltip__item",
1060
1054
  "data-j-tooltip__item": ""
1061
- }, Ho = { "data-j-tooltip__item__label": "" }, Bo = {
1055
+ }, Do = { "data-j-tooltip__item__label": "" }, Ho = {
1062
1056
  class: "lume-tooltip__value",
1063
1057
  "data-j-tooltip__item__value": ""
1064
- }, Mo = /* @__PURE__ */ Z({
1058
+ }, Bo = /* @__PURE__ */ Z({
1065
1059
  __name: "lume-tooltip-item",
1066
1060
  props: {
1067
1061
  color: {
@@ -1070,26 +1064,26 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1070
1064
  }
1071
1065
  },
1072
1066
  setup(e) {
1073
- return (n, t) => (_(), I("li", Do, [
1067
+ return (t, n) => (_(), I("li", No, [
1074
1068
  e.color ? (_(), I("span", {
1075
1069
  key: 0,
1076
1070
  class: te([[`lume-background-color--${e.color}`], "lume-tooltip__symbol"]),
1077
1071
  "data-j-tooltip__item__symbol": ""
1078
1072
  }, null, 2)) : z("", !0),
1079
- G("span", Ho, [
1080
- M(n.$slots, "label", {}, void 0, !0)
1073
+ S("span", Do, [
1074
+ M(t.$slots, "label", {}, void 0, !0)
1081
1075
  ]),
1082
- G("strong", Bo, [
1083
- M(n.$slots, "value", {}, void 0, !0)
1076
+ S("strong", Ho, [
1077
+ M(t.$slots, "value", {}, void 0, !0)
1084
1078
  ])
1085
1079
  ]));
1086
1080
  }
1087
- }), Ro = /* @__PURE__ */ q(Mo, [["__scopeId", "data-v-4f995c3c"]]), So = (e) => (sn("data-v-e7c90551"), e = e(), cn(), e), Go = { class: "lume-tooltip__items" }, jo = {
1081
+ }), Mo = /* @__PURE__ */ q(Bo, [["__scopeId", "data-v-4f995c3c"]]), Ro = (e) => (sn("data-v-6f13599d"), e = e(), cn(), e), Go = { class: "lume-tooltip__items" }, So = {
1088
1082
  key: 0,
1089
1083
  class: "lume-tooltip__break"
1090
- }, Vo = /* @__PURE__ */ So(() => /* @__PURE__ */ G("hr", null, null, -1)), Po = [
1091
- Vo
1092
- ], Co = /* @__PURE__ */ Z({
1084
+ }, jo = /* @__PURE__ */ Ro(() => /* @__PURE__ */ S("hr", null, null, -1)), Vo = [
1085
+ jo
1086
+ ], Po = /* @__PURE__ */ Z({
1093
1087
  __name: "lume-tooltip",
1094
1088
  props: {
1095
1089
  opened: {
@@ -1107,7 +1101,7 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1107
1101
  position: {
1108
1102
  type: String,
1109
1103
  default: "auto",
1110
- validator: (e) => Vn.includes(e)
1104
+ validator: (e) => jn.includes(e)
1111
1105
  },
1112
1106
  fixedPositioning: {
1113
1107
  type: Boolean,
@@ -1132,9 +1126,9 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1132
1126
  ...Re()
1133
1127
  },
1134
1128
  emits: ["opened", "moved", "closed", "tooltip-mouseenter", "tooltip-mouseleave"],
1135
- setup(e, { emit: n }) {
1136
- const t = e, o = n, a = S(null), { items: r, options: l } = ee(t), i = re(), c = S(null), { allOptions: s } = me(l), f = v(
1137
- () => s.value.fixedPositioning ?? t.fixedPositioning
1129
+ setup(e, { emit: t }) {
1130
+ const n = e, o = t, a = G(null), { items: r, options: l } = ee(n), i = re(), c = G(null), { allOptions: s } = me(l), f = v(
1131
+ () => s.value.fixedPositioning ?? n.fixedPositioning
1138
1132
  ), u = v(
1139
1133
  () => f.value ? "fixed" : "absolute"
1140
1134
  ), m = v(() => [
@@ -1149,38 +1143,38 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1149
1143
  name: "offset",
1150
1144
  options: { offset: [0, s.value.offset || 8] }
1151
1145
  },
1152
- ...t.modifiers || []
1146
+ ...n.modifiers || []
1153
1147
  ]), y = v(
1154
- () => s.value.showTitle !== !1 && t.title != null
1148
+ () => s.value.showTitle !== !1 && n.title != null
1155
1149
  ), p = v(() => Ve(s.value.valueFormat)), b = v(() => Ve(s.value.titleFormat)), $ = v(
1156
1150
  () => {
1157
1151
  var P;
1158
- return ((P = r.value) == null ? void 0 : P.find((x) => x.isSummary)) || {
1159
- label: s.value.summary ?? t.summary
1152
+ return ((P = r.value) == null ? void 0 : P.find((w) => w.isSummary)) || {
1153
+ label: s.value.summary ?? n.summary
1160
1154
  };
1161
1155
  }
1162
- ), L = v(() => i.summary || $.value.label), g = v(() => t.inverse || s.value.inverse ? [...r.value].reverse() : r.value);
1156
+ ), L = v(() => i.summary || $.value.label), g = v(() => n.inverse || s.value.inverse ? [...r.value].reverse() : r.value);
1163
1157
  function O() {
1164
- t.targetElement && a.value && (c.value = kn(t.targetElement, a.value, {
1165
- placement: t.position,
1158
+ n.targetElement && a.value && (c.value = kn(n.targetElement, a.value, {
1159
+ placement: n.position,
1166
1160
  strategy: u.value,
1167
1161
  modifiers: m.value
1168
- }), o("opened", t.targetElement));
1162
+ }), o("opened", n.targetElement));
1169
1163
  }
1170
1164
  function N() {
1171
1165
  c.value && (c.value.destroy(), o("closed"), a.value && a.value.classList.remove("lume-tooltip--animated"));
1172
1166
  }
1173
1167
  function D() {
1174
- c.value && (s.value.withAnimation !== !1 && a.value && a.value.classList.add("lume-tooltip--animated"), t.targetElement ? function() {
1175
- c.value.state.elements.reference = t.targetElement, c.value.update(), o("moved", t.targetElement);
1168
+ c.value && (s.value.withAnimation !== !1 && a.value && a.value.classList.add("lume-tooltip--animated"), n.targetElement ? function() {
1169
+ c.value.state.elements.reference = n.targetElement, c.value.update(), o("moved", n.targetElement);
1176
1170
  }() : N());
1177
1171
  }
1178
1172
  return X(
1179
- () => t.targetElement,
1180
- async (P, x) => {
1181
- !x && P ? (await Qe(), O()) : D();
1173
+ () => n.targetElement,
1174
+ async (P, w) => {
1175
+ !w && P ? (await Qe(), O()) : D();
1182
1176
  }
1183
- ), ye(O), Pt(N), (P, x) => e.opened && e.targetElement ? (_(), I("div", {
1177
+ ), ye(O), Pt(N), (P, w) => e.opened && e.targetElement ? (_(), I("div", {
1184
1178
  key: 0,
1185
1179
  ref_key: "root",
1186
1180
  ref: a,
@@ -1188,21 +1182,21 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1188
1182
  "lume-tooltip--pointer-events": d(l).withPointerEvents
1189
1183
  }]),
1190
1184
  "data-j-tooltip": "",
1191
- onMouseenter: x[0] || (x[0] = (B) => o("tooltip-mouseenter")),
1192
- onMouseleave: x[1] || (x[1] = (B) => o("tooltip-mouseleave"))
1185
+ onMouseenter: w[0] || (w[0] = (B) => o("tooltip-mouseenter")),
1186
+ onMouseleave: w[1] || (w[1] = (B) => o("tooltip-mouseleave"))
1193
1187
  }, [
1194
1188
  M(P.$slots, "default", {}, () => [
1195
1189
  M(P.$slots, "title", {}, () => [
1196
- y.value ? (_(), Y(d(Oo), { key: 0 }, {
1190
+ y.value ? (_(), Y(d($o), { key: 0 }, {
1197
1191
  default: V(() => [
1198
1192
  se(ne(b.value(e.title)), 1)
1199
1193
  ]),
1200
1194
  _: 1
1201
1195
  })) : z("", !0)
1202
1196
  ], !0),
1203
- G("ul", Go, [
1197
+ S("ul", Go, [
1204
1198
  M(P.$slots, "summary", {}, () => [
1205
- L.value ? (_(), Y(d(No), { key: 0 }, ce({
1199
+ L.value ? (_(), Y(d(Eo), { key: 0 }, ce({
1206
1200
  default: V(() => [
1207
1201
  se(ne($.value.label) + " ", 1)
1208
1202
  ]),
@@ -1217,9 +1211,9 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1217
1211
  } : void 0
1218
1212
  ]), 1024)) : z("", !0)
1219
1213
  ], !0),
1220
- L.value ? (_(), I("li", jo, Po)) : z("", !0),
1214
+ L.value ? (_(), I("li", So, Vo)) : z("", !0),
1221
1215
  M(P.$slots, "items", {}, () => [
1222
- (_(!0), I(Q, null, W(g.value, (B) => (_(), Y(d(Ro), {
1216
+ (_(!0), I(Q, null, W(g.value, (B) => (_(), Y(d(Mo), {
1223
1217
  key: B.label,
1224
1218
  color: B.color
1225
1219
  }, {
@@ -1236,7 +1230,7 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1236
1230
  ], !0)
1237
1231
  ], 34)) : z("", !0);
1238
1232
  }
1239
- }), Fo = /* @__PURE__ */ q(Co, [["__scopeId", "data-v-e7c90551"]]), We = () => ({
1233
+ }), Co = /* @__PURE__ */ q(Po, [["__scopeId", "data-v-6f13599d"]]), We = () => ({
1240
1234
  data: {
1241
1235
  type: Array,
1242
1236
  required: !0
@@ -1278,7 +1272,7 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1278
1272
  type: [String, Array],
1279
1273
  default: () => []
1280
1274
  }
1281
- }), zo = { class: "lume-overlay-group" }, Wo = /* @__PURE__ */ Z({
1275
+ }), Fo = { class: "lume-overlay-group" }, zo = /* @__PURE__ */ Z({
1282
1276
  __name: "lume-overlay-group",
1283
1277
  props: {
1284
1278
  ...We(),
@@ -1288,8 +1282,8 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1288
1282
  }
1289
1283
  },
1290
1284
  emits: ["click", "lume__internal--hover", "mouseover"],
1291
- setup(e, { emit: n }) {
1292
- const t = e, o = n, { data: a, orientation: r, xScale: l, yScale: i } = ee(t), c = v(() => Wt(a));
1285
+ setup(e, { emit: t }) {
1286
+ const n = e, o = t, { data: a, orientation: r, xScale: l, yScale: i } = ee(n), c = v(() => Wt(a));
1293
1287
  function s(f) {
1294
1288
  var L;
1295
1289
  const u = r.value === H.HORIZONTAL ? i.value : l.value, m = u.domain(), y = On(u), p = ((L = u.paddingInner) == null ? void 0 : L.call(u)) ?? 0, b = y * p, $ = de(u) ? u(m[f]) - b / 2 : u(f) - y / 2;
@@ -1303,7 +1297,7 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1303
1297
  transform: `translate(${$}, 0)`
1304
1298
  };
1305
1299
  }
1306
- return (f, u) => (_(), I("g", zo, [
1300
+ return (f, u) => (_(), I("g", Fo, [
1307
1301
  (_(!0), I(Q, null, W(c.value, (m, y) => (_(), Y(d(dt), j(s(y), {
1308
1302
  key: `overlay-${y}`,
1309
1303
  "data-j-lume-overlay-group": y,
@@ -1314,35 +1308,35 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1314
1308
  }), null, 16, ["data-j-lume-overlay-group", "onMouseover", "onClick"]))), 128))
1315
1309
  ]));
1316
1310
  }
1317
- }), _e = (e, n) => {
1318
- function t(r, ...l) {
1311
+ }), _e = (e, t) => {
1312
+ function n(r, ...l) {
1319
1313
  }
1320
1314
  function o(r, l) {
1321
1315
  }
1322
- return { componentEventPropagator: {}, emitInternalEvent: t, listenInternalEvent: o };
1316
+ return { componentEventPropagator: {}, emitInternalEvent: n, listenInternalEvent: o };
1323
1317
  };
1324
- function Zo(e) {
1318
+ function Wo(e) {
1325
1319
  return { hasNegativeValues: v(
1326
- () => Ft(e.value).some((t) => t < 0)
1320
+ () => Ft(e.value).some((n) => n < 0)
1327
1321
  ) };
1328
1322
  }
1329
- function Uo(e, n, t, o) {
1323
+ function Zo(e, t, n, o) {
1330
1324
  const a = v(
1331
1325
  () => o.value === H.HORIZONTAL
1332
1326
  ), r = v(
1333
1327
  () => {
1334
1328
  var s;
1335
- return e.height - (a != null && a.value ? 0 : ((s = t.value) == null ? void 0 : s.call(t, 0)) || 0);
1329
+ return e.height - (a != null && a.value ? 0 : ((s = n.value) == null ? void 0 : s.call(n, 0)) || 0);
1336
1330
  }
1337
1331
  ), l = v(
1338
1332
  () => {
1339
1333
  var s;
1340
- return a != null && a.value ? ((s = n.value) == null ? void 0 : s.call(n, 0)) || 0 : e.width;
1334
+ return a != null && a.value ? ((s = t.value) == null ? void 0 : s.call(t, 0)) || 0 : e.width;
1341
1335
  }
1342
1336
  ), i = v(
1343
1337
  () => {
1344
1338
  var s;
1345
- return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((s = t.value) == null ? void 0 : s.call(t, 0)) || 0})`;
1339
+ return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((s = n.value) == null ? void 0 : s.call(n, 0)) || 0})`;
1346
1340
  }
1347
1341
  );
1348
1342
  return { negativeBarAttributes: v(() => ({
@@ -1351,27 +1345,27 @@ function Uo(e, n, t, o) {
1351
1345
  transform: i.value
1352
1346
  })) };
1353
1347
  }
1354
- function Xo(e, n) {
1355
- return e.reduce((t, o) => ct(o.values, n).map(
1356
- (a, r) => t[r] ? a.value > t[r] ? a.value : t[r] : a.value ?? 0
1348
+ function Uo(e, t) {
1349
+ return e.reduce((n, o) => ct(o.values, t).map(
1350
+ (a, r) => n[r] ? a.value > n[r] ? a.value : n[r] : a.value ?? 0
1357
1351
  ), []);
1358
1352
  }
1359
- function Yo(e, n) {
1360
- return e.reduce((t, o) => ct(o.values, n).map(
1353
+ function Xo(e, t) {
1354
+ return e.reduce((n, o) => ct(o.values, t).map(
1361
1355
  (a, r) => {
1362
1356
  const l = a.value == null || a.value < 0 ? 0 : a.value;
1363
- return t[r] ? t[r] + l : l;
1357
+ return n[r] ? n[r] + l : l;
1364
1358
  }
1365
1359
  ), []);
1366
1360
  }
1367
1361
  const Dt = {
1368
- "stacked-bar": Yo
1362
+ "stacked-bar": Xo
1369
1363
  };
1370
- function en(e, n, t, o, a, r, l, i) {
1364
+ function en(e, t, n, o, a, r, l, i) {
1371
1365
  const c = v(
1372
1366
  () => {
1373
1367
  var f;
1374
- return n.value.withTooltip !== !1 && !((f = n.value.tooltipOptions) != null && f.targetElement);
1368
+ return t.value.withTooltip !== !1 && !((f = t.value.tooltipOptions) != null && f.targetElement);
1375
1369
  }
1376
1370
  );
1377
1371
  function s(f) {
@@ -1379,21 +1373,21 @@ function en(e, n, t, o, a, r, l, i) {
1379
1373
  const u = ((y = a == null ? void 0 : a.value) == null ? void 0 : y.length) ?? 0, m = i != null && i.value && Dt[i.value] ? Dt[i.value](
1380
1374
  f,
1381
1375
  u
1382
- ) : Xo(f, u);
1376
+ ) : Uo(f, u);
1383
1377
  e.value = m.map((p, b) => ({
1384
- cx: (r == null ? void 0 : r.value) === H.HORIZONTAL ? t.value(p) : tt(t.value, b),
1378
+ cx: (r == null ? void 0 : r.value) === H.HORIZONTAL ? n.value(p) : tt(n.value, b),
1385
1379
  cy: (r == null ? void 0 : r.value) === H.HORIZONTAL ? tt(o.value, b) : o.value(p)
1386
1380
  }));
1387
1381
  }
1388
1382
  return X(
1389
- [t, o],
1383
+ [n, o],
1390
1384
  () => {
1391
- t.value && o.value && (l != null && l.value) && c.value && s(l.value);
1385
+ n.value && o.value && (l != null && l.value) && c.value && s(l.value);
1392
1386
  },
1393
1387
  { immediate: !0 }
1394
1388
  ), { shouldGenerateTooltipAnchors: c, updateTooltipAnchorAttributes: s };
1395
1389
  }
1396
- function Ko() {
1390
+ function Yo() {
1397
1391
  const e = Fe({
1398
1392
  opened: !1,
1399
1393
  targetElement: null
@@ -1404,14 +1398,14 @@ function Ko() {
1404
1398
  e.opened = !1, e.targetElement = null;
1405
1399
  } };
1406
1400
  }
1407
- function Jo(e) {
1401
+ function Ko(e) {
1408
1402
  return { getTooltipItems: v(
1409
- () => (t) => e.value.map(({ color: o, label: a, values: r }) => {
1403
+ () => (n) => e.value.map(({ color: o, label: a, values: r }) => {
1410
1404
  var l, i, c;
1411
1405
  return {
1412
- color: ((l = r[t]) == null ? void 0 : l.color) || o,
1406
+ color: ((l = r[n]) == null ? void 0 : l.color) || o,
1413
1407
  label: a,
1414
- value: ((i = r[t]) == null ? void 0 : i.label) ?? ((c = r[t]) == null ? void 0 : c.value) ?? Zt
1408
+ value: ((i = r[n]) == null ? void 0 : i.label) ?? ((c = r[n]) == null ? void 0 : c.value) ?? Zt
1415
1409
  };
1416
1410
  })
1417
1411
  ) };
@@ -1430,58 +1424,58 @@ const nt = 16, ot = 8, at = 28, lt = 24, be = {
1430
1424
  left: lt
1431
1425
  }
1432
1426
  };
1433
- function Qo(e) {
1427
+ function Jo(e) {
1434
1428
  return !e || e === "auto" || e.top == null || e.top === "auto" ? nt : e.top;
1435
1429
  }
1436
- function qo(e) {
1430
+ function Qo(e) {
1437
1431
  return !e || e === "auto" || e.right == null || e.right === "auto" ? ot : e.right;
1438
1432
  }
1439
- function ea(e, n) {
1440
- return !e || e === "auto" || e.bottom == null || e.bottom === "auto" ? n || at : e.bottom;
1433
+ function qo(e, t) {
1434
+ return !e || e === "auto" || e.bottom == null || e.bottom === "auto" ? t || at : e.bottom;
1441
1435
  }
1442
- function ta(e, n) {
1443
- return !e || e === "auto" || e.left == null || e.left === "auto" ? n || lt : e.left;
1436
+ function ea(e, t) {
1437
+ return !e || e === "auto" || e.left == null || e.left === "auto" ? t || lt : e.left;
1444
1438
  }
1445
- const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-section" }, aa = {
1439
+ const ta = { class: "lume-chart__header" }, na = { class: "lume-chart__header-section" }, oa = {
1446
1440
  key: 0,
1447
1441
  class: "lume-chart__title lume-chart-title lume-typography--display"
1448
- }, la = { class: "lume-chart__controls" }, ra = { class: "lume-chart__header-section" }, ua = {
1442
+ }, aa = { class: "lume-chart__controls" }, la = { class: "lume-chart__header-section" }, ra = {
1449
1443
  key: 0,
1450
1444
  class: "lume-chart__axis-title lume-axis-title lume-typography--caption"
1451
- }, ia = { key: 3 }, sa = ["r"], ca = {
1445
+ }, ua = { key: 3 }, ia = ["r"], sa = {
1452
1446
  key: 0,
1453
1447
  class: "lume-chart__axis-title lume-chart__axis-title--centered lume-axis-title lume-typography--body"
1454
- }, da = /* @__PURE__ */ Z({
1448
+ }, ca = /* @__PURE__ */ Z({
1455
1449
  __name: "lume-chart",
1456
1450
  props: {
1457
- ...xe(),
1451
+ ...Ie(),
1458
1452
  chartType: {
1459
1453
  type: String,
1460
1454
  default: null
1461
1455
  }
1462
1456
  },
1463
- setup(e, { emit: n }) {
1464
- const t = e, o = re(), a = n, { data: r, labels: l, color: i, options: c, orientation: s, chartType: f } = ee(t), u = S(-1), m = S(null), y = S(null), p = S([]), b = S(null), $ = S(0), L = S(0), { allOptions: g } = me(c), { internalData: O, computedLabels: N, containerSize: D, updateSize: P, chartID: x } = ht(r, l, i, g, s), { xScale: B, yScale: U } = fo(
1457
+ setup(e, { emit: t }) {
1458
+ const n = e, o = re(), a = t, { data: r, labels: l, color: i, options: c, orientation: s, chartType: f } = ee(n), u = G(-1), m = G(null), y = G(null), p = G([]), b = G(null), $ = G(0), L = G(0), { allOptions: g } = me(c), { internalData: O, computedLabels: N, containerSize: D, updateSize: P, chartID: w } = ht(r, l, i, g, s), { xScale: B, yScale: U } = mo(
1465
1459
  O,
1466
1460
  N,
1467
1461
  D,
1468
1462
  s,
1469
1463
  g
1470
1464
  ), K = v(() => ({
1471
- top: Qo(g.value.margins),
1472
- right: qo(g.value.margins),
1473
- bottom: ea(g.value.margins, $.value),
1474
- left: ta(g.value.margins, L.value)
1465
+ top: Jo(g.value.margins),
1466
+ right: Qo(g.value.margins),
1467
+ bottom: qo(g.value.margins, $.value),
1468
+ left: ea(g.value.margins, L.value)
1475
1469
  })), J = v(() => {
1476
1470
  var A;
1477
- return t.xScale ? xt(t.xScale) ? t.xScale : (A = t.xScale) == null ? void 0 : A.call(t, O.value, l.value, D) : B.value;
1471
+ return n.xScale ? wt(n.xScale) ? n.xScale : (A = n.xScale) == null ? void 0 : A.call(n, O.value, l.value, D) : B.value;
1478
1472
  }), C = v(() => {
1479
1473
  var A;
1480
- return t.yScale ? xt(t.yScale) ? t.yScale : (A = t.yScale) == null ? void 0 : A.call(t, O.value, l.value, D) : U.value;
1474
+ return n.yScale ? wt(n.yScale) ? n.yScale : (A = n.yScale) == null ? void 0 : A.call(n, O.value, l.value, D) : U.value;
1481
1475
  }), ae = v(() => ({
1482
1476
  ...g.value.xAxisOptions,
1483
1477
  withHover: s.value === H.VERTICAL
1484
- })), Ne = v(() => ({
1478
+ })), we = v(() => ({
1485
1479
  ...g.value.yAxisOptions,
1486
1480
  withHover: s.value === H.HORIZONTAL
1487
1481
  })), fe = v(() => {
@@ -1500,8 +1494,8 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1500
1494
  () => r.value.every((A) => !A.values.length) || r.value.every((A) => A.values.every((T) => T === null))
1501
1495
  ), h = v(() => {
1502
1496
  const A = [], { noBaseScales: T } = g.value;
1503
- return T || A.push(() => !!(J.value && C.value)), A.every((w) => w() === !0);
1504
- }), { hasNegativeValues: R } = Zo(O), { negativeBarAttributes: F } = Uo(
1497
+ return T || A.push(() => !!(J.value && C.value)), A.every((x) => x() === !0);
1498
+ }), { hasNegativeValues: R } = Wo(O), { negativeBarAttributes: F } = Zo(
1505
1499
  D,
1506
1500
  J,
1507
1501
  C,
@@ -1515,22 +1509,22 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1515
1509
  s,
1516
1510
  O,
1517
1511
  f
1518
- ), { tooltipConfig: De, showTooltip: Ze, hideTooltip: Ue } = Ko(), { getTooltipItems: $e } = Jo(O), He = v(
1512
+ ), { tooltipConfig: Ee, showTooltip: Ze, hideTooltip: Ue } = Yo(), { getTooltipItems: Ne } = Ko(O), De = v(
1519
1513
  () => {
1520
1514
  var A;
1521
1515
  return ((A = g.value.tooltipOptions) == null ? void 0 : A.position) || "top";
1522
1516
  }
1523
- ), Oe = v(() => {
1517
+ ), $e = v(() => {
1524
1518
  var T;
1525
1519
  const A = (T = g.value.tooltipOptions) == null ? void 0 : T.withPointerEvents;
1526
- return De.opened && (!A || A && b.value === !1);
1520
+ return Ee.opened && (!A || A && b.value === !1);
1527
1521
  });
1528
1522
  function je(A) {
1529
- var w;
1523
+ var x;
1530
1524
  if (g.value.withHover === !1 || A === u.value) return;
1531
1525
  const T = u.value;
1532
1526
  if (u.value = A, g.value.withTooltip !== !1) {
1533
- const Ye = (w = g.value.tooltipOptions) != null && w.targetElement ? g.value.tooltipOptions.targetElement === "self" ? y.value.$el : g.value.tooltipOptions.targetElement : m.value[A];
1527
+ const Ye = (x = g.value.tooltipOptions) != null && x.targetElement ? g.value.tooltipOptions.targetElement === "self" ? y.value.$el : g.value.tooltipOptions.targetElement : m.value[A];
1534
1528
  Ze(Ye);
1535
1529
  }
1536
1530
  a("hovered-index-changed", { newIndex: A, oldIndex: T }), a("update:hoveredIndex", A);
@@ -1540,7 +1534,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1540
1534
  }
1541
1535
  function _t(A) {
1542
1536
  if (!r.value.some(
1543
- ({ values: w }) => A <= w.length - 1
1537
+ ({ values: x }) => A <= x.length - 1
1544
1538
  )) {
1545
1539
  ge(ve.InvalidHoveredIndex);
1546
1540
  return;
@@ -1549,17 +1543,17 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1549
1543
  }
1550
1544
  function rn() {
1551
1545
  setTimeout(() => {
1552
- Oe.value && Xe(), a("chart-mouseleave");
1546
+ $e.value && Xe(), a("chart-mouseleave");
1553
1547
  }, 0);
1554
1548
  }
1555
1549
  function un(A) {
1556
1550
  P(A), a("resize", A);
1557
1551
  }
1558
- function kt({ index: A, value: T, event: w }) {
1559
- A !== null && je(A), a("axis-mouseenter", { index: A, value: T, event: w });
1552
+ function kt({ index: A, value: T, event: x }) {
1553
+ A !== null && je(A), a("axis-mouseenter", { index: A, value: T, event: x });
1560
1554
  }
1561
- function bt({ index: A, value: T, event: w }) {
1562
- a("axis-click", { index: A, value: T, event: w });
1555
+ function bt({ index: A, value: T, event: x }) {
1556
+ a("axis-click", { index: A, value: T, event: x });
1563
1557
  }
1564
1558
  return X(
1565
1559
  r,
@@ -1567,18 +1561,18 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1567
1561
  ), X(
1568
1562
  l,
1569
1563
  (A, T) => a("labels-changed", { newValue: A, oldValue: T })
1570
- ), X(E, (A) => A && ge(ve.Empty), { immediate: !0 }), X(() => t.hoveredIndex, _t), X(
1564
+ ), X(E, (A) => A && ge(ve.Empty), { immediate: !0 }), X(() => n.hoveredIndex, _t), X(
1571
1565
  p,
1572
1566
  (A) => {
1573
- A && t.hoveredIndex != null && u.value === -1 && _t(t.hoveredIndex);
1567
+ A && n.hoveredIndex != null && u.value === -1 && _t(n.hoveredIndex);
1574
1568
  },
1575
1569
  { flush: "post" }
1576
1570
  ), X(b, (A) => {
1577
- A === !1 && De.opened && Xe();
1571
+ A === !1 && Ee.opened && Xe();
1578
1572
  }), ye(async () => {
1579
1573
  a("rendered"), o.groups || console.error('"groups" `<slot>` must have content.');
1580
- }), Ke("chartID", x), Ke("isEmpty", E), Ke("tooltipAnchorAttributes", p), (A, T) => (_(), Y(d(ko), {
1581
- id: `lume-chart_${d(x)}`,
1574
+ }), Ke("chartID", w), Ke("isEmpty", E), Ke("tooltipAnchorAttributes", p), (A, T) => (_(), Y(d(_o), {
1575
+ id: `lume-chart_${d(w)}`,
1582
1576
  ref_key: "chartContainer",
1583
1577
  ref: y,
1584
1578
  margins: K.value,
@@ -1588,76 +1582,76 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1588
1582
  orientation: d(s),
1589
1583
  "data-j-lume-chart": "",
1590
1584
  onResize: un,
1591
- onClick: T[24] || (T[24] = (w) => a("chart-click", w)),
1592
- onMouseenter: T[25] || (T[25] = (w) => a("chart-mouseenter", w)),
1585
+ onClick: T[24] || (T[24] = (x) => a("chart-click", x)),
1586
+ onMouseenter: T[25] || (T[25] = (x) => a("chart-mouseenter", x)),
1593
1587
  onMouseleave: rn
1594
1588
  }, {
1595
1589
  header: V(() => [
1596
- G("div", na, [
1597
- G("div", oa, [
1598
- A.title ? (_(), I("h1", aa, ne(A.title), 1)) : z("", !0),
1599
- G("div", la, [
1590
+ S("div", ta, [
1591
+ S("div", na, [
1592
+ A.title ? (_(), I("h1", oa, ne(A.title), 1)) : z("", !0),
1593
+ S("div", aa, [
1600
1594
  M(A.$slots, "controls", {}, void 0, !0)
1601
1595
  ])
1602
1596
  ]),
1603
- G("div", ra, [
1604
- k.value ? (_(), I("h3", ua, ne(Te.value), 1)) : z("", !0),
1597
+ S("div", la, [
1598
+ k.value ? (_(), I("h3", ra, ne(Te.value), 1)) : z("", !0),
1605
1599
  M(A.$slots, "legend", { data: d(O) }, () => [
1606
1600
  d(g).withLegend !== !1 && d(g).legendPosition !== "bottom" ? (_(), Y(d(Nt), {
1607
1601
  key: 0,
1608
1602
  data: d(O),
1609
1603
  class: "lume-chart__legend",
1610
1604
  "data-j-lume-chart__legend": "",
1611
- onClick: T[0] || (T[0] = (w) => a("legend-click", w)),
1612
- onMouseenter: T[1] || (T[1] = (w) => a("legend-mouseenter", w)),
1613
- onMouseleave: T[2] || (T[2] = (w) => a("legend-mouseleave"))
1605
+ onClick: T[0] || (T[0] = (x) => a("legend-click", x)),
1606
+ onMouseenter: T[1] || (T[1] = (x) => a("legend-mouseenter", x)),
1607
+ onMouseleave: T[2] || (T[2] = (x) => a("legend-mouseleave"))
1614
1608
  }, null, 8, ["data"])) : z("", !0)
1615
1609
  ], !0)
1616
1610
  ])
1617
1611
  ])
1618
1612
  ]),
1619
1613
  footer: V(() => [
1620
- Le.value ? (_(), I("h3", ca, ne(fe.value), 1)) : z("", !0),
1614
+ Le.value ? (_(), I("h3", sa, ne(fe.value), 1)) : z("", !0),
1621
1615
  d(g).withLegend !== !1 && d(g).legendPosition == "bottom" ? (_(), Y(d(Nt), {
1622
1616
  key: 1,
1623
1617
  data: d(O),
1624
1618
  class: "lume-chart__legend lume-chart__legend--bottom",
1625
1619
  "data-j-lume-chart__legend": "",
1626
- onClick: T[16] || (T[16] = (w) => a("legend-click", w)),
1627
- onMouseenter: T[17] || (T[17] = (w) => a("legend-mouseenter", w)),
1628
- onMouseleave: T[18] || (T[18] = (w) => a("legend-mouseleave"))
1620
+ onClick: T[16] || (T[16] = (x) => a("legend-click", x)),
1621
+ onMouseenter: T[17] || (T[17] = (x) => a("legend-mouseenter", x)),
1622
+ onMouseleave: T[18] || (T[18] = (x) => a("legend-mouseleave"))
1629
1623
  }, null, 8, ["data"])) : z("", !0)
1630
1624
  ]),
1631
1625
  extra: V(() => [
1632
- M(A.$slots, "tooltip", j(d(De), {
1626
+ M(A.$slots, "tooltip", j(d(Ee), {
1633
1627
  data: d(O),
1634
1628
  labels: d(N),
1635
1629
  title: d(N)[u.value],
1636
- items: d($e)(u.value),
1637
- position: He.value,
1630
+ items: d(Ne)(u.value),
1631
+ position: De.value,
1638
1632
  withTooltip: d(g).withTooltip !== !1,
1639
1633
  hoveredIndex: u.value,
1640
1634
  handleMouseEnter: () => b.value = !0,
1641
1635
  handleMouseLeave: () => b.value = !1,
1642
1636
  options: d(g).tooltipOptions
1643
1637
  }), () => [
1644
- d(g).withTooltip !== !1 ? (_(), Y(d(Fo), j({ key: 0 }, d(De), {
1645
- position: He.value,
1638
+ d(g).withTooltip !== !1 ? (_(), Y(d(Co), j({ key: 0 }, d(Ee), {
1639
+ position: De.value,
1646
1640
  title: d(N)[u.value],
1647
- items: d($e)(u.value),
1641
+ items: d(Ne)(u.value),
1648
1642
  options: d(g).tooltipOptions,
1649
1643
  "data-j-lume-chart__tooltip": "",
1650
- onOpened: T[19] || (T[19] = (w) => a("tooltip-opened", {
1644
+ onOpened: T[19] || (T[19] = (x) => a("tooltip-opened", {
1651
1645
  index: u.value,
1652
- targetElement: w
1646
+ targetElement: x
1653
1647
  })),
1654
- onMoved: T[20] || (T[20] = (w) => a("tooltip-moved", {
1648
+ onMoved: T[20] || (T[20] = (x) => a("tooltip-moved", {
1655
1649
  index: u.value,
1656
- targetElement: w
1650
+ targetElement: x
1657
1651
  })),
1658
- onClosed: T[21] || (T[21] = (w) => a("tooltip-closed")),
1659
- onTooltipMouseenter: T[22] || (T[22] = (w) => b.value = !0),
1660
- onTooltipMouseleave: T[23] || (T[23] = (w) => b.value = !1)
1652
+ onClosed: T[21] || (T[21] = (x) => a("tooltip-closed")),
1653
+ onTooltipMouseenter: T[22] || (T[22] = (x) => b.value = !0),
1654
+ onTooltipMouseleave: T[23] || (T[23] = (x) => b.value = !1)
1661
1655
  }), {
1662
1656
  default: V(() => [
1663
1657
  M(A.$slots, "tooltip-content", {
@@ -1695,24 +1689,24 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1695
1689
  "data-j-lume-chart__x-axis": "",
1696
1690
  onClick: bt,
1697
1691
  onMouseenter: kt,
1698
- onMouseleave: T[3] || (T[3] = (w) => a("axis-mouseleave")),
1699
- "onLume__internal-AxisSize": T[4] || (T[4] = (w) => $.value = w)
1692
+ onMouseleave: T[3] || (T[3] = (x) => a("axis-mouseleave")),
1693
+ "onLume__internal-AxisSize": T[4] || (T[4] = (x) => $.value = x)
1700
1694
  }, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"]),
1701
1695
  ue(d(Lt), {
1702
1696
  type: "y",
1703
1697
  scale: C.value,
1704
1698
  "container-size": d(D),
1705
- options: Ne.value,
1699
+ options: we.value,
1706
1700
  "hovered-index": u.value,
1707
1701
  orientation: d(s),
1708
1702
  "data-j-lume-chart__y-axis": "",
1709
1703
  onClick: bt,
1710
1704
  onMouseenter: kt,
1711
- onMouseleave: T[5] || (T[5] = (w) => a("axis-mouseleave")),
1712
- "onLume__internal-AxisSize": T[6] || (T[6] = (w) => L.value = w)
1705
+ onMouseleave: T[5] || (T[5] = (x) => a("axis-mouseleave")),
1706
+ "onLume__internal-AxisSize": T[6] || (T[6] = (x) => L.value = x)
1713
1707
  }, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"])
1714
1708
  ], !0) : z("", !0),
1715
- d(g).withHover !== !1 ? (_(), Y(d(Wo), {
1709
+ d(g).withHover !== !1 ? (_(), Y(d(zo), {
1716
1710
  key: 2,
1717
1711
  data: d(O),
1718
1712
  orientation: d(s),
@@ -1721,15 +1715,15 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1721
1715
  "data-j-lume-chart__overlay-group": "",
1722
1716
  "onLume__internal-Hover": je
1723
1717
  }, null, 8, ["data", "orientation", "x-scale", "y-scale"])) : z("", !0),
1724
- d(le) ? (_(), I("g", ia, [
1725
- (_(!0), I(Q, null, W(p.value, (w, Ye) => (_(), I("circle", j(w, {
1718
+ d(le) ? (_(), I("g", ua, [
1719
+ (_(!0), I(Q, null, W(p.value, (x, Ye) => (_(), I("circle", j(x, {
1726
1720
  ref_for: !0,
1727
1721
  ref_key: "tooltipAnchor",
1728
1722
  ref: m,
1729
1723
  key: `anchor_${Ye}`,
1730
- r: d(jn),
1724
+ r: d(Sn),
1731
1725
  class: "lume-fill--transparent"
1732
- }), null, 16, sa))), 128))
1726
+ }), null, 16, ia))), 128))
1733
1727
  ])) : z("", !0),
1734
1728
  M(A.$slots, "groups", {
1735
1729
  data: d(O),
@@ -1742,15 +1736,15 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1742
1736
  containerSize: d(D),
1743
1737
  transition: d(g).withTransition !== !1,
1744
1738
  classList: A.classList,
1745
- onNodeClick: T[7] || (T[7] = (w) => a("node-click", w)),
1746
- onNodeMouseenter: T[8] || (T[8] = (w) => a("node-mouseenter", w)),
1747
- onNodeMouseleave: T[9] || (T[9] = (w) => a("node-mouseleave", w)),
1748
- onLinkClick: T[10] || (T[10] = (w) => a("link-click", w)),
1749
- onLinkMouseenter: T[11] || (T[11] = (w) => a("link-mouseenter", w)),
1750
- onLinkMouseleave: T[12] || (T[12] = (w) => a("link-mouseleave", w)),
1751
- onBarClick: T[13] || (T[13] = (w) => a("bar-click", w)),
1752
- onLineClick: T[14] || (T[14] = (w) => a("line-click", w)),
1753
- onPointClick: T[15] || (T[15] = (w) => a("point-click", w)),
1739
+ onNodeClick: T[7] || (T[7] = (x) => a("node-click", x)),
1740
+ onNodeMouseenter: T[8] || (T[8] = (x) => a("node-mouseenter", x)),
1741
+ onNodeMouseleave: T[9] || (T[9] = (x) => a("node-mouseleave", x)),
1742
+ onLinkClick: T[10] || (T[10] = (x) => a("link-click", x)),
1743
+ onLinkMouseenter: T[11] || (T[11] = (x) => a("link-mouseenter", x)),
1744
+ onLinkMouseleave: T[12] || (T[12] = (x) => a("link-mouseleave", x)),
1745
+ onBarClick: T[13] || (T[13] = (x) => a("bar-click", x)),
1746
+ onLineClick: T[14] || (T[14] = (x) => a("line-click", x)),
1747
+ onPointClick: T[15] || (T[15] = (x) => a("point-click", x)),
1754
1748
  "onLume__internal-Hover": je
1755
1749
  }, void 0, !0)
1756
1750
  ], 64)) : z("", !0)
@@ -1758,7 +1752,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1758
1752
  _: 3
1759
1753
  }, 8, ["id", "margins", "container-size", "no-min-size", "transparent-background", "orientation"]));
1760
1754
  }
1761
- }), Ee = /* @__PURE__ */ q(da, [["__scopeId", "data-v-5aa3d9ab"]]), Ht = 8, va = 8, ma = 20, we = 2, Bt = 2, fa = ["dy", "dominant-baseline"], pa = ["y", "x", "width", "height"], ha = { class: "lume-alluvial-group__label-wrapper" }, ga = /* @__PURE__ */ Z({
1755
+ }), xe = /* @__PURE__ */ q(ca, [["__scopeId", "data-v-17c48844"]]), Ht = 8, da = 8, va = 20, He = 2, Bt = 2, ma = ["dy", "dominant-baseline"], fa = ["y", "x", "width", "height"], pa = { class: "lume-alluvial-group__label-wrapper" }, ha = /* @__PURE__ */ Z({
1762
1756
  __name: "lume-alluvial-node-label",
1763
1757
  props: {
1764
1758
  bottom: { type: Boolean, default: !1 },
@@ -1766,10 +1760,10 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1766
1760
  maxWidth: { type: Number, default: 0 }
1767
1761
  },
1768
1762
  emits: ["lume__internal--node-resize"],
1769
- setup(e, { emit: n }) {
1770
- const t = e, o = n, a = S(null), r = S(t.maxWidth), l = S(1);
1763
+ setup(e, { emit: t }) {
1764
+ const n = e, o = t, a = G(null), r = G(n.maxWidth), l = G(1);
1771
1765
  return X(
1772
- [a, () => t.maxWidth],
1766
+ [a, () => n.maxWidth],
1773
1767
  async ([i, c]) => {
1774
1768
  if (i && c) {
1775
1769
  r.value = c, await Qe();
@@ -1779,7 +1773,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1779
1773
  },
1780
1774
  { immediate: !0 }
1781
1775
  ), X(r, async (i) => {
1782
- i !== t.maxWidth && (await Qe(), o("lume__internal--node-resize"));
1776
+ i !== n.maxWidth && (await Qe(), o("lume__internal--node-resize"));
1783
1777
  }), (i, c) => e.maxWidth ? (_(), I("foreignObject", {
1784
1778
  key: 1,
1785
1779
  class: "lume-alluvial-group__node-foreign",
@@ -1788,8 +1782,8 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1788
1782
  width: r.value,
1789
1783
  height: l.value
1790
1784
  }, [
1791
- G("div", ha, [
1792
- G("span", {
1785
+ S("div", pa, [
1786
+ S("span", {
1793
1787
  ref_key: "text",
1794
1788
  ref: a,
1795
1789
  class: "lume-alluvial-group__node-label"
@@ -1797,99 +1791,99 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1797
1791
  M(i.$slots, "default", {}, void 0, !0)
1798
1792
  ], 512)
1799
1793
  ])
1800
- ], 8, pa)) : (_(), I("text", {
1794
+ ], 8, fa)) : (_(), I("text", {
1801
1795
  key: 0,
1802
1796
  class: "lume-alluvial-group__node-label",
1803
1797
  dy: e.bottom ? ".2em" : "-.2em",
1804
1798
  "dominant-baseline": e.bottom ? "hanging" : "auto"
1805
1799
  }, [
1806
1800
  M(i.$slots, "default", {}, void 0, !0)
1807
- ], 8, fa));
1801
+ ], 8, ma));
1808
1802
  }
1809
- }), ya = /* @__PURE__ */ q(ga, [["__scopeId", "data-v-7126dfdb"]]), _a = ["y", "dominant-baseline"], ka = /* @__PURE__ */ Z({
1803
+ }), ga = /* @__PURE__ */ q(ha, [["__scopeId", "data-v-7126dfdb"]]), ya = ["y", "dominant-baseline"], _a = /* @__PURE__ */ Z({
1810
1804
  __name: "lume-alluvial-node-value",
1811
1805
  props: {
1812
1806
  bottom: { type: Boolean, default: !0 }
1813
1807
  },
1814
1808
  setup(e) {
1815
- return (n, t) => (_(), I("text", {
1809
+ return (t, n) => (_(), I("text", {
1816
1810
  class: "lume-alluvial-group__node-value",
1817
1811
  y: e.bottom ? ".2em" : "-.2em",
1818
1812
  "dominant-baseline": e.bottom ? "hanging" : "auto"
1819
1813
  }, [
1820
- M(n.$slots, "default", {}, void 0, !0)
1821
- ], 8, _a));
1814
+ M(t.$slots, "default", {}, void 0, !0)
1815
+ ], 8, ya));
1822
1816
  }
1823
- }), ba = /* @__PURE__ */ q(ka, [["__scopeId", "data-v-b4fc758b"]]), Aa = ["transform"], Ta = ["transform"], La = ["transform"], $a = /* @__PURE__ */ Z({
1817
+ }), ka = /* @__PURE__ */ q(_a, [["__scopeId", "data-v-b4fc758b"]]), ba = ["transform"], Aa = ["transform"], Ta = ["transform"], La = /* @__PURE__ */ Z({
1824
1818
  __name: "lume-alluvial-node-header",
1825
1819
  props: {
1826
1820
  x: { type: Number, required: !0 },
1827
1821
  y: { type: Number, required: !0 }
1828
1822
  },
1829
1823
  setup(e) {
1830
- const n = S(null), t = v(
1831
- () => n.value && `translate(${-n.value.getBBox().width / 2}, 0)`
1824
+ const t = G(null), n = v(
1825
+ () => t.value && `translate(${-t.value.getBBox().width / 2}, 0)`
1832
1826
  ), o = v(
1833
- () => n.value && `translate(${n.value.getBBox().width / 2}, 0)`
1827
+ () => t.value && `translate(${t.value.getBBox().width / 2}, 0)`
1834
1828
  );
1835
1829
  return (a, r) => (_(), I("g", {
1836
1830
  transform: `translate(${e.x}, ${e.y})`
1837
1831
  }, [
1838
- G("g", { transform: t.value }, [
1832
+ S("g", { transform: n.value }, [
1839
1833
  M(a.$slots, "before", {}, void 0, !0)
1840
- ], 8, Ta),
1841
- G("text", {
1834
+ ], 8, Aa),
1835
+ S("text", {
1842
1836
  ref_key: "textRef",
1843
- ref: n,
1837
+ ref: t,
1844
1838
  class: "lume-alluvial-group__node-header lume-typography--caption"
1845
1839
  }, [
1846
1840
  M(a.$slots, "default", {}, void 0, !0)
1847
1841
  ], 512),
1848
- G("g", { transform: o.value }, [
1842
+ S("g", { transform: o.value }, [
1849
1843
  M(a.$slots, "after", {}, void 0, !0)
1850
- ], 8, La)
1851
- ], 8, Aa));
1844
+ ], 8, Ta)
1845
+ ], 8, ba));
1852
1846
  }
1853
- }), Oa = /* @__PURE__ */ q($a, [["__scopeId", "data-v-0e483453"]]);
1854
- function Mt(e, n) {
1847
+ }), $a = /* @__PURE__ */ q(La, [["__scopeId", "data-v-0e483453"]]);
1848
+ function Mt(e, t) {
1855
1849
  return {
1856
- x0: 0 + (n ? n.left : 0),
1857
- y0: 0 + (n ? n.top : 0),
1858
- x1: e.width - (n ? n.right : 0),
1859
- y1: e.height - (n ? n.bottom : 0)
1850
+ x0: 0 + (t ? t.left : 0),
1851
+ y0: 0 + (t ? t.top : 0),
1852
+ x1: e.width - (t ? t.right : 0),
1853
+ y1: e.height - (t ? t.bottom : 0)
1860
1854
  };
1861
1855
  }
1862
- function Ia(e) {
1863
- const n = S(Mt(e));
1864
- function t(o) {
1865
- n.value = Mt(e, o);
1856
+ function Oa(e) {
1857
+ const t = G(Mt(e));
1858
+ function n(o) {
1859
+ t.value = Mt(e, o);
1866
1860
  }
1867
- return { extents: n, updateExtents: t };
1861
+ return { extents: t, updateExtents: n };
1868
1862
  }
1869
1863
  var Pe = /* @__PURE__ */ ((e) => (e.GraphProblem = "There was an issue generating your alluvial graph.", e.BarScaleDomainAbove0 = "Bar linear scale domain cannot start above 0!", e.BarScaleNull = "Bar linear scale cannot be `null`", e))(Pe || {});
1870
- const wa = "[lume] ";
1871
- function rt(e, n, t = !0) {
1872
- t && Ct() || console.error(wa + "Error: " + e, n);
1864
+ const Ia = "[lume] ";
1865
+ function rt(e, t, n = !0) {
1866
+ n && Ct() || console.error(Ia + "Error: " + e, t);
1873
1867
  }
1874
1868
  const xa = 200;
1875
- function Ie(e) {
1869
+ function Oe(e) {
1876
1870
  return typeof e == "string" || typeof e == "number" ? e : e.id ?? e.label;
1877
1871
  }
1878
- function Ea(e, n) {
1879
- return n.nodes.find((t) => t.id === e);
1872
+ function wa(e, t) {
1873
+ return t.nodes.find((n) => n.id === e);
1880
1874
  }
1881
- function Na(e, n) {
1882
- return n.links.find((t) => t.id === e);
1875
+ function Ea(e, t) {
1876
+ return t.links.find((n) => n.id === e);
1883
1877
  }
1884
1878
  function tn(e) {
1885
1879
  return !!(e.sourceLinks && e.targetLinks);
1886
1880
  }
1887
- function Da(e, n) {
1888
- if (!n) return;
1889
- const t = e.nodes.filter((l) => l.targetLinks.length === 0).map((l) => `${l.id}`), o = e.nodes.filter((l) => l.sourceLinks.length === 0).map((l) => `${l.id}`), a = n.filter((l) => t.includes(l.dataset.id)).reduce(
1881
+ function Na(e, t) {
1882
+ if (!t) return;
1883
+ const n = e.nodes.filter((l) => l.targetLinks.length === 0).map((l) => `${l.id}`), o = e.nodes.filter((l) => l.sourceLinks.length === 0).map((l) => `${l.id}`), a = t.filter((l) => n.includes(l.dataset.id)).reduce(
1890
1884
  (l, i) => Math.max(l, i.getBBox().width),
1891
1885
  -1 / 0
1892
- ), r = n.filter((l) => o.includes(l.dataset.id)).reduce(
1886
+ ), r = t.filter((l) => o.includes(l.dataset.id)).reduce(
1893
1887
  (l, i) => Math.max(l, i.getBBox().width),
1894
1888
  -1 / 0
1895
1889
  );
@@ -1900,53 +1894,53 @@ function Da(e, n) {
1900
1894
  bottom: 0
1901
1895
  };
1902
1896
  }
1903
- function Ha(e) {
1904
- return e.map((n) => {
1905
- const t = n.y1 - n.y0 < we;
1897
+ function Da(e) {
1898
+ return e.map((t) => {
1899
+ const n = t.y1 - t.y0 < He;
1906
1900
  return {
1907
- x: n.x0,
1908
- y: n.y0 - (t ? we / 2 : 0),
1901
+ x: t.x0,
1902
+ y: t.y0 - (n ? He / 2 : 0),
1909
1903
  // Negative offset to account for the min. height
1910
- width: n.x1 - n.x0,
1911
- height: t ? we : n.y1 - n.y0,
1904
+ width: t.x1 - t.x0,
1905
+ height: n ? He : t.y1 - t.y0,
1912
1906
  textTransform: {
1913
- x: n.depth > 0 ? n.x1 + Ht : n.x0 - Ht,
1914
- y: (n.y1 + n.y0) / 2
1907
+ x: t.depth > 0 ? t.x1 + Ht : t.x0 - Ht,
1908
+ y: (t.y1 + t.y0) / 2
1915
1909
  },
1916
- node: n
1910
+ node: t
1917
1911
  };
1918
1912
  });
1919
1913
  }
1920
- function Ba(e) {
1914
+ function Ha(e) {
1921
1915
  return [e.source.x1, e.y0];
1922
1916
  }
1923
- function Ma(e) {
1917
+ function Ba(e) {
1924
1918
  return [e.target.x0, e.y1];
1925
1919
  }
1926
- function Ra(e) {
1927
- return e.curveFunction ? gn(e.curveFunction).source(Ba).target(Ma) : vn();
1920
+ function Ma(e) {
1921
+ return e.curveFunction ? gn(e.curveFunction).source(Ha).target(Ba) : vn();
1928
1922
  }
1929
- function Sa(e) {
1930
- return e.map((n) => {
1931
- var t;
1923
+ function Ra(e) {
1924
+ return e.map((t) => {
1925
+ var n;
1932
1926
  return {
1933
- id: n.id,
1934
- color: n.color || ((t = n.source) == null ? void 0 : t.color) || Ge,
1935
- d: Ra(n)(n),
1936
- strokeWidth: Math.max(1, n.width),
1937
- link: n
1927
+ id: t.id,
1928
+ color: t.color || ((n = t.source) == null ? void 0 : n.color) || Se,
1929
+ d: Ma(t)(t),
1930
+ strokeWidth: Math.max(1, t.width),
1931
+ link: t
1938
1932
  };
1939
1933
  });
1940
1934
  }
1941
- function Rt(e, n, t, o, a) {
1935
+ function Rt(e, t, n, o, a) {
1942
1936
  if (o === !1) {
1943
1937
  e.node = {
1944
1938
  ...e.node,
1945
- transitionValue: a ? void 0 : t
1939
+ transitionValue: a ? void 0 : n
1946
1940
  };
1947
1941
  return;
1948
1942
  }
1949
- const r = Date.now(), l = Nn(n, t), i = () => {
1943
+ const r = Date.now(), l = Nn(t, n), i = () => {
1950
1944
  let s = (Date.now() - r) / xa;
1951
1945
  s > 1 && (s = 1), e.node = {
1952
1946
  ...e.node,
@@ -1959,17 +1953,17 @@ const Ga = {
1959
1953
  nodes: [],
1960
1954
  links: []
1961
1955
  };
1962
- function St(e, n) {
1963
- return n.find((t) => t.every((o) => o.x0 === e.x0));
1956
+ function Gt(e, t) {
1957
+ return t.find((n) => n.every((o) => o.x0 === e.x0));
1964
1958
  }
1965
- function ja(e, n, t) {
1966
- const o = S(null), a = v(() => {
1959
+ function Sa(e, t, n) {
1960
+ const o = G(null), a = v(() => {
1967
1961
  var u, m;
1968
1962
  return (m = (u = e.value) == null ? void 0 : u[0]) == null ? void 0 : m.values.map(
1969
1963
  ({ label: y, color: p, value: b, deriveColorFromIncomingLinks: $, offset: L }) => ({
1970
1964
  label: y || b.toString(),
1971
1965
  color: p,
1972
- fallbackColor: p || Ge,
1966
+ fallbackColor: p || Se,
1973
1967
  id: b,
1974
1968
  deriveColorFromIncomingLinks: $,
1975
1969
  offset: L
@@ -1994,18 +1988,18 @@ function ja(e, n, t) {
1994
1988
  }
1995
1989
  ).filter(Boolean).flat();
1996
1990
  }
1997
- ), l = v(() => mn().nodeId(Ie).nodeAlign(n.value.nodeAlign).nodePadding(n.value.nodePadding).nodeSort(n.value.nodeSort).nodeWidth(n.value.nodeWidth).linkSort(n.value.linkSort).iterations(n.value.iterations)), i = v(() => {
1991
+ ), l = v(() => mn().nodeId(Oe).nodeAlign(t.value.nodeAlign).nodePadding(t.value.nodePadding).nodeSort(t.value.nodeSort).nodeWidth(t.value.nodeWidth).linkSort(t.value.linkSort).iterations(t.value.iterations)), i = v(() => {
1998
1992
  var u;
1999
1993
  return (u = o.value) == null ? void 0 : u.nodes.reduce(
2000
1994
  (m, y) => {
2001
- const p = St(y, m);
1995
+ const p = Gt(y, m);
2002
1996
  return p ? (p.push(y), p.sort((b, $) => (b._y0 || b.y0) - ($._y0 || $.y0))) : m.push([y]), m;
2003
1997
  },
2004
1998
  []
2005
1999
  );
2006
2000
  });
2007
2001
  function c(u) {
2008
- const { offset: m } = u, y = St(u, i.value);
2002
+ const { offset: m } = u, y = Gt(u, i.value);
2009
2003
  if (!y) return;
2010
2004
  const p = y[y.findIndex(($) => $.id === u.id) - 1], b = p && y.length !== 1 ? p.y1 + m : m;
2011
2005
  u._y0 = u.y0, u._y1 = u.y1, u.y0 = b, u.y1 = u.y0 + (u._y1 - u._y0);
@@ -2024,9 +2018,9 @@ function ja(e, n, t) {
2024
2018
  m.value === 0 && (m.fallbackColor = mt.Grey), typeof m.offset == "number" && (c(m), s(m, o.value));
2025
2019
  })), o.value;
2026
2020
  });
2027
- return X([l, t], () => {
2021
+ return X([l, n], () => {
2028
2022
  try {
2029
- const { x0: u, y0: m, x1: y, y1: p } = t.value;
2023
+ const { x0: u, y0: m, x1: y, y1: p } = n.value;
2030
2024
  o.value = l.value.extent([
2031
2025
  [u, m],
2032
2026
  [y, p]
@@ -2036,63 +2030,63 @@ function ja(e, n, t) {
2036
2030
  }
2037
2031
  }), { columns: i, graph: f };
2038
2032
  }
2039
- function ut(e, n) {
2040
- return n || (n = {}), e.targetLinks && e.targetLinks.forEach(({ source: t, value: o }) => {
2041
- n[t.id] = o, ut(
2042
- t,
2043
- n
2033
+ function ut(e, t) {
2034
+ return t || (t = {}), e.targetLinks && e.targetLinks.forEach(({ source: n, value: o }) => {
2035
+ t[n.id] = o, ut(
2036
+ n,
2037
+ t
2044
2038
  );
2045
- }), n;
2039
+ }), t;
2046
2040
  }
2047
- function it(e, n) {
2048
- return n || (n = {}), e.sourceLinks && e.sourceLinks.forEach(({ target: t, value: o }) => {
2049
- n[t.id] = o, it(
2050
- t,
2051
- n
2041
+ function it(e, t) {
2042
+ return t || (t = {}), e.sourceLinks && e.sourceLinks.forEach(({ target: n, value: o }) => {
2043
+ t[n.id] = o, it(
2044
+ n,
2045
+ t
2052
2046
  );
2053
- }), n;
2047
+ }), t;
2054
2048
  }
2055
- function Va(e, n) {
2056
- return n.links.reduce((t, o) => (o.source.id in e && o.target.id in e && t.push(o.id), t), []);
2049
+ function ja(e, t) {
2050
+ return t.links.reduce((n, o) => (o.source.id in e && o.target.id in e && n.push(o.id), n), []);
2057
2051
  }
2058
- const Pa = (e, n) => {
2059
- let t;
2060
- tn(e) ? t = {
2052
+ const Va = (e, t) => {
2053
+ let n;
2054
+ tn(e) ? n = {
2061
2055
  [e.id]: e.value,
2062
2056
  ...ut(e),
2063
2057
  ...it(e)
2064
- } : t = {
2058
+ } : n = {
2065
2059
  [e.source.id]: e.source.value,
2066
2060
  [e.target.id]: e.target.value,
2067
2061
  ...ut(e.source),
2068
2062
  ...it(e.target)
2069
2063
  };
2070
- const o = Va(t, n);
2071
- return { nodes: t, links: o };
2072
- }, Ca = (e) => {
2064
+ const o = ja(n, t);
2065
+ return { nodes: n, links: o };
2066
+ }, Pa = (e) => {
2073
2067
  if (tn(e)) {
2074
- const n = [...e.sourceLinks, ...e.targetLinks];
2068
+ const t = [...e.sourceLinks, ...e.targetLinks];
2075
2069
  return {
2076
- nodes: n.reduce(
2077
- (t, { source: o, target: a, value: r }) => o === e ? { ...t, [Ie(a)]: r } : { ...t, [Ie(o)]: r },
2078
- { [Ie(e)]: e.value }
2070
+ nodes: t.reduce(
2071
+ (n, { source: o, target: a, value: r }) => o === e ? { ...n, [Oe(a)]: r } : { ...n, [Oe(o)]: r },
2072
+ { [Oe(e)]: e.value }
2079
2073
  ),
2080
- links: n.map(({ id: t }) => t)
2074
+ links: t.map(({ id: n }) => n)
2081
2075
  };
2082
2076
  }
2083
2077
  return {
2084
2078
  nodes: {
2085
- [Ie(e.target)]: e.value,
2086
- [Ie(e.source)]: e.source.value
2079
+ [Oe(e.target)]: e.value,
2080
+ [Oe(e.source)]: e.source.value
2087
2081
  },
2088
2082
  links: [e.id]
2089
2083
  };
2090
2084
  };
2091
- function Fa(e, n, t) {
2092
- const o = S(null), a = v(() => o.value ? typeof n.value.highlightedElements == "function" ? n.value.highlightedElements(
2085
+ function Ca(e, t, n) {
2086
+ const o = G(null), a = v(() => o.value ? typeof t.value.highlightedElements == "function" ? t.value.highlightedElements(
2093
2087
  o.value,
2094
- t.value
2095
- ) : n.value.highlightedElements === "closest" ? Ca(o.value, t.value) : Pa(o.value, t.value) : { nodes: {}, links: [] });
2088
+ n.value
2089
+ ) : t.value.highlightedElements === "closest" ? Pa(o.value, n.value) : Va(o.value, n.value) : { nodes: {}, links: [] });
2096
2090
  return X(a, (r, l) => {
2097
2091
  if (r.links.length === 0 && Object.keys(r.nodes).length === 0) {
2098
2092
  e.value.forEach((i) => {
@@ -2100,7 +2094,7 @@ function Fa(e, n, t) {
2100
2094
  i,
2101
2095
  l.nodes[i.node.id],
2102
2096
  i.node.value,
2103
- n.value.withTransition,
2097
+ t.value.withTransition,
2104
2098
  !0
2105
2099
  );
2106
2100
  });
@@ -2111,15 +2105,15 @@ function Fa(e, n, t) {
2111
2105
  i,
2112
2106
  i.node.value,
2113
2107
  r.nodes[i.node.id],
2114
- n.value.withTransition
2108
+ t.value.withTransition
2115
2109
  );
2116
2110
  });
2117
2111
  }), { highlightedElements: a, hoveredElement: o };
2118
2112
  }
2119
- const za = {
2113
+ const Fa = {
2120
2114
  class: "lume-alluvial-group",
2121
2115
  "data-j-alluvial-group": ""
2122
- }, Wa = { key: 0 }, Za = { key: 0 }, Ua = ["id", "x1", "x2"], Xa = ["stop-color"], Ya = ["stop-color"], Ka = ["d", "stroke-width", "onClick", "onMouseover"], Ja = ["d", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-width", "data-id", "onClick", "onMouseover"], Qa = ["onClick", "onMouseenter", "onMouseleave", "onMouseover"], qa = ["x", "y", "height", "width"], el = ["transform", "data-id", "width"], tl = /* @__PURE__ */ Z({
2116
+ }, za = { key: 0 }, Wa = { key: 0 }, Za = ["id", "x1", "x2"], Ua = ["stop-color"], Xa = ["stop-color"], Ya = ["d", "stroke-width", "onClick", "onMouseover"], Ka = ["d", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-width", "data-id", "onClick", "onMouseover"], Ja = ["onClick", "onMouseenter", "onMouseleave", "onMouseover"], Qa = ["x", "y", "height", "width"], qa = ["transform", "data-id", "width"], el = /* @__PURE__ */ Z({
2123
2117
  __name: "lume-alluvial-group",
2124
2118
  props: {
2125
2119
  ...We(),
@@ -2129,8 +2123,8 @@ const za = {
2129
2123
  }
2130
2124
  },
2131
2125
  emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
2132
- setup(e, { emit: n }) {
2133
- const t = e, o = n, a = Ce("chartID"), { data: r, options: l } = ee(t), i = S([]), c = S([]), s = S(null), { extents: f, updateExtents: u } = Ia(t.containerSize), { columns: m, graph: y } = ja(r, l, f), { hoveredElement: p, highlightedElements: b } = Fa(
2126
+ setup(e, { emit: t }) {
2127
+ const n = e, o = t, a = Ce("chartID"), { data: r, options: l } = ee(n), i = G([]), c = G([]), s = G(null), { extents: f, updateExtents: u } = Oa(n.containerSize), { columns: m, graph: y } = Sa(r, l, f), { hoveredElement: p, highlightedElements: b } = Ca(
2134
2128
  i,
2135
2129
  l,
2136
2130
  y
@@ -2145,7 +2139,7 @@ const za = {
2145
2139
  x: g.value[E]
2146
2140
  }));
2147
2141
  }), N = v(
2148
- () => l.value.nodeHeaderPadding ?? ma
2142
+ () => l.value.nodeHeaderPadding ?? va
2149
2143
  ), D = v(() => {
2150
2144
  if (!(!l.value.gradient || !y.value))
2151
2145
  return y.value.links.reduce((k, E) => {
@@ -2163,24 +2157,24 @@ const za = {
2163
2157
  ), E = [];
2164
2158
  return k.forEach((h) => {
2165
2159
  const R = [];
2166
- c.value.filter(({ link: F }) => F.target.id === h.node.id).reverse().reduce((F, le, De, Ze) => {
2167
- const Ue = le.link.target.y1 - le.link.target.y0 > we;
2168
- let $e, He, Oe;
2169
- return Ue ? ($e = le.link.target.y1 - le.link.target.y0, He = le.link.value / h.node.value, Oe = He * $e) : ($e = we, Oe = we / Ze.length), R.push({
2160
+ c.value.filter(({ link: F }) => F.target.id === h.node.id).reverse().reduce((F, le, Ee, Ze) => {
2161
+ const Ue = le.link.target.y1 - le.link.target.y0 > He;
2162
+ let Ne, De, $e;
2163
+ return Ue ? (Ne = le.link.target.y1 - le.link.target.y0, De = le.link.value / h.node.value, $e = De * Ne) : $e = He / Ze.length, R.push({
2170
2164
  x: h.x,
2171
2165
  y: h.y + F,
2172
- height: Oe,
2166
+ height: $e,
2173
2167
  width: h.width,
2174
2168
  key: `node-block-${h.node.id}-source-link-${le.link.source.id}`,
2175
- class: `lume-alluvial-group__node-block lume-fill--${le.link.source.color || Ge}`
2176
- }), F + Oe;
2169
+ class: `lume-alluvial-group__node-block lume-fill--${le.link.source.color || Se}`
2170
+ }), F + $e;
2177
2171
  }, 0), E.push({
2178
2172
  id: h.node.id,
2179
2173
  subNodes: R
2180
2174
  });
2181
2175
  }), E;
2182
2176
  });
2183
- function x(k) {
2177
+ function w(k) {
2184
2178
  return l.value.gradient && `url('#${a}_${k.id}')`;
2185
2179
  }
2186
2180
  function B(k) {
@@ -2201,7 +2195,7 @@ const za = {
2201
2195
  function ae(k, E) {
2202
2196
  k !== p.value && (p.value = k, o("link-mouseenter", { link: k, event: E }));
2203
2197
  }
2204
- function Ne(k) {
2198
+ function we(k) {
2205
2199
  const E = p.value;
2206
2200
  p.value = null, o("link-mouseleave", { link: E, event: k });
2207
2201
  }
@@ -2210,7 +2204,7 @@ const za = {
2210
2204
  p.value = null;
2211
2205
  return;
2212
2206
  }
2213
- const E = Ea(k, y.value) || Na(k, y.value);
2207
+ const E = wa(k, y.value) || Ea(k, y.value);
2214
2208
  if (!E) {
2215
2209
  ge(ve.InvalidHoveredElement);
2216
2210
  return;
@@ -2222,20 +2216,20 @@ const za = {
2222
2216
  return ((E = P.value.find(({ id: h }) => k === h)) == null ? void 0 : E.subNodes) ?? [];
2223
2217
  }
2224
2218
  function Le() {
2225
- const k = Da(y.value, s.value);
2219
+ const k = Na(y.value, s.value);
2226
2220
  u(k);
2227
2221
  }
2228
2222
  return X(y, (k) => {
2229
- i.value = Ha(k.nodes), c.value = Sa(k.links).reverse(), p.value == null && t.hoveredElementId != null && fe(t.hoveredElementId);
2230
- }), X([t.containerSize, s], () => {
2231
- t.containerSize.width && t.containerSize.height && Le();
2232
- }), X(() => t.hoveredElementId, fe), (k, E) => (_(), I("g", za, [
2233
- O.value ? (_(), I("g", Wa, [
2223
+ i.value = Da(k.nodes), c.value = Ra(k.links).reverse(), p.value == null && n.hoveredElementId != null && fe(n.hoveredElementId);
2224
+ }), X([n.containerSize, s], () => {
2225
+ n.containerSize.width && n.containerSize.height && Le();
2226
+ }), X(() => n.hoveredElementId, fe), (k, E) => (_(), I("g", Fa, [
2227
+ O.value ? (_(), I("g", za, [
2234
2228
  (_(!0), I(Q, null, W(O.value, (h, R) => M(k.$slots, `node-header-${R}`, {
2235
2229
  x: h.x,
2236
2230
  y: -N.value
2237
2231
  }, () => [
2238
- (_(), Y(d(Oa), {
2232
+ (_(), Y(d($a), {
2239
2233
  key: `header_${h.x}`,
2240
2234
  x: h.x,
2241
2235
  y: -N.value
@@ -2247,11 +2241,11 @@ const za = {
2247
2241
  }, 1032, ["x", "y"]))
2248
2242
  ], !0)), 256))
2249
2243
  ])) : z("", !0),
2250
- G("g", {
2244
+ S("g", {
2251
2245
  class: "lume-alluvial-link-group",
2252
- onMouseleave: Ne
2246
+ onMouseleave: we
2253
2247
  }, [
2254
- d(l).gradient ? (_(), I("defs", Za, [
2248
+ d(l).gradient ? (_(), I("defs", Wa, [
2255
2249
  (_(!0), I(Q, null, W(D.value, (h, R) => (_(), I("linearGradient", {
2256
2250
  id: `${d(a)}_${R}`,
2257
2251
  key: R,
@@ -2259,15 +2253,15 @@ const za = {
2259
2253
  x1: h.x1,
2260
2254
  x2: h.x2
2261
2255
  }, [
2262
- G("stop", {
2256
+ S("stop", {
2263
2257
  offset: "0%",
2264
2258
  "stop-color": `var(--lume-color--${h.source})`
2265
- }, null, 8, Xa),
2266
- G("stop", {
2259
+ }, null, 8, Ua),
2260
+ S("stop", {
2267
2261
  offset: "100%",
2268
2262
  "stop-color": `var(--lume-color--${h.target})`
2269
- }, null, 8, Ya)
2270
- ], 8, Ua))), 128))
2263
+ }, null, 8, Xa)
2264
+ ], 8, Za))), 128))
2271
2265
  ])) : z("", !0),
2272
2266
  (_(!0), I(Q, null, W(c.value, (h) => (_(), I("path", {
2273
2267
  key: `link-ghost_${h.id}`,
@@ -2276,11 +2270,11 @@ const za = {
2276
2270
  "lume-alluvial-group__link--ghost"
2277
2271
  ]]),
2278
2272
  d: h.d,
2279
- "stroke-width": h.strokeWidth + d(va),
2273
+ "stroke-width": h.strokeWidth + d(da),
2280
2274
  "data-j-alluvial-ghost": "",
2281
2275
  onClick: (R) => o("link-click", { link: h.link, event: R }),
2282
2276
  onMouseover: (R) => ae(h.link, R)
2283
- }, null, 40, Ka))), 128)),
2277
+ }, null, 40, Ya))), 128)),
2284
2278
  (_(!0), I(Q, null, W(c.value, (h) => (_(), I("path", {
2285
2279
  key: `link_${h.id}`,
2286
2280
  class: te(["lume-alluvial-group__link", {
@@ -2289,7 +2283,7 @@ const za = {
2289
2283
  "lume-alluvial-group__link--focused": J(h.id)
2290
2284
  }]),
2291
2285
  d: h.d,
2292
- stroke: x(h.link),
2286
+ stroke: w(h.link),
2293
2287
  "stroke-dasharray": k.containerSize.width,
2294
2288
  "stroke-dashoffset": k.containerSize.width,
2295
2289
  "stroke-width": h.strokeWidth,
@@ -2297,7 +2291,7 @@ const za = {
2297
2291
  "data-id": h.id,
2298
2292
  onClick: (R) => o("link-click", { link: h.link, event: R }),
2299
2293
  onMouseover: (R) => ae(h.link, R)
2300
- }, null, 42, Ja))), 128))
2294
+ }, null, 42, Ka))), 128))
2301
2295
  ], 32),
2302
2296
  (_(!0), I(Q, null, W(i.value, (h, R) => (_(), I("g", {
2303
2297
  key: `node-block_${R}`,
@@ -2307,7 +2301,7 @@ const za = {
2307
2301
  }]),
2308
2302
  "data-j-alluvial-group__node-block": ""
2309
2303
  }, [
2310
- G("g", {
2304
+ S("g", {
2311
2305
  onClick: (F) => o("node-click", { node: h.node, event: F }),
2312
2306
  onMouseenter: (F) => o("node-mouseenter", { node: h.node, event: F }),
2313
2307
  onMouseleave: (F) => o("node-mouseleave", { node: h.node, event: F }),
@@ -2326,8 +2320,8 @@ const za = {
2326
2320
  y: h.y,
2327
2321
  height: h.height,
2328
2322
  width: h.width
2329
- }, null, 10, qa)),
2330
- G("g", {
2323
+ }, null, 10, Qa)),
2324
+ S("g", {
2331
2325
  ref_for: !0,
2332
2326
  ref_key: "nodeTextRefs",
2333
2327
  ref: s,
@@ -2345,7 +2339,7 @@ const za = {
2345
2339
  h.node.value
2346
2340
  )
2347
2341
  }, () => [
2348
- ue(d(ya), {
2342
+ ue(d(ga), {
2349
2343
  bottom: d(l).switchText,
2350
2344
  left: h.node.depth === 0,
2351
2345
  "max-width": d(l).nodeLabelMaxWidth,
@@ -2356,7 +2350,7 @@ const za = {
2356
2350
  ]),
2357
2351
  _: 2
2358
2352
  }, 1032, ["bottom", "left", "max-width"]),
2359
- ue(d(ba), {
2353
+ ue(d(ka), {
2360
2354
  bottom: !d(l).switchText
2361
2355
  }, {
2362
2356
  default: V(() => [
@@ -2368,12 +2362,12 @@ const za = {
2368
2362
  _: 2
2369
2363
  }, 1032, ["bottom"])
2370
2364
  ], !0)
2371
- ], 10, el)
2372
- ], 40, Qa)
2365
+ ], 10, qa)
2366
+ ], 40, Ja)
2373
2367
  ], 2))), 128))
2374
2368
  ]));
2375
2369
  }
2376
- }), nl = /* @__PURE__ */ q(tl, [["__scopeId", "data-v-ea53c3da"]]), ol = {
2370
+ }), tl = /* @__PURE__ */ q(el, [["__scopeId", "data-v-2a790ee0"]]), nl = {
2377
2371
  margins: {
2378
2372
  top: 0,
2379
2373
  right: 0,
@@ -2392,13 +2386,13 @@ const za = {
2392
2386
  nodeAlign: fn,
2393
2387
  valueFormat: (e) => String(e),
2394
2388
  iterations: 6
2395
- }, Zl = /* @__PURE__ */ Z({
2389
+ }, Wl = /* @__PURE__ */ Z({
2396
2390
  __name: "lume-alluvial-diagram",
2397
2391
  props: {
2398
- ...po(st)
2392
+ ...fo(st)
2399
2393
  },
2400
- setup(e, { emit: n }) {
2401
- const t = e, { componentEventPropagator: o } = _e(), a = Ae(re()), r = Hn(re()), { options: l } = ee(t), { allOptions: i } = me(l, ol);
2394
+ setup(e, { emit: t }) {
2395
+ const n = e, { componentEventPropagator: o } = _e(), a = Ae(re()), r = Hn(re()), { options: l } = ee(n), { allOptions: i } = me(l, nl);
2402
2396
  function c(s) {
2403
2397
  return {
2404
2398
  ...s,
@@ -2406,12 +2400,12 @@ const za = {
2406
2400
  // Alluvial chart never uses base scales
2407
2401
  };
2408
2402
  }
2409
- return (s, f) => (_(), Y(d(Ee), j({ ...t, ...s.$attrs }, {
2403
+ return (s, f) => (_(), Y(d(xe), j({ ...n, ...s.$attrs }, {
2410
2404
  options: c(d(i)),
2411
2405
  "data-j-alluvial-diagram": ""
2412
2406
  }, oe(d(o))), ce({
2413
2407
  groups: V((u) => [
2414
- ue(d(nl), j(u, { "hovered-element-id": s.hoveredElement }, oe(d(o))), ce({ _: 2 }, [
2408
+ ue(d(tl), j(u, { "hovered-element-id": s.hoveredElement }, oe(d(o))), ce({ _: 2 }, [
2415
2409
  W(d(r), (m, y) => ({
2416
2410
  name: y,
2417
2411
  fn: V((p) => [
@@ -2432,25 +2426,25 @@ const za = {
2432
2426
  }
2433
2427
  });
2434
2428
  var nn = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(nn || {});
2435
- const Ul = /* @__PURE__ */ Z({
2429
+ const Zl = /* @__PURE__ */ Z({
2436
2430
  __name: "lume-bar-chart",
2437
2431
  props: {
2438
- ...xe(),
2432
+ ...Ie(),
2439
2433
  type: {
2440
2434
  type: String,
2441
2435
  default: null,
2442
2436
  validator: (e) => e in nn || e == null
2443
2437
  }
2444
2438
  },
2445
- setup(e, { emit: n }) {
2446
- const t = Je(
2447
- () => import("./ttsUF_VP.js")
2439
+ setup(e, { emit: t }) {
2440
+ const n = Je(
2441
+ () => import("./B79GZzqk.js")
2448
2442
  ), o = Je(
2449
- () => import("./Q4X11bG0.js")
2443
+ () => import("./B-J6h1cQ.js")
2450
2444
  ), a = Je(
2451
- () => import("./C65Yk4mi.js")
2445
+ () => import("./DpwoykqR.js")
2452
2446
  ), r = /* @__PURE__ */ new Map([
2453
- ["single", t],
2447
+ ["single", n],
2454
2448
  ["grouped", o],
2455
2449
  ["stacked", a]
2456
2450
  ]), l = e, { componentEventPropagator: i } = _e(), c = Ae(re());
@@ -2483,34 +2477,34 @@ const Ul = /* @__PURE__ */ Z({
2483
2477
  ]), 1040, ["options"]));
2484
2478
  }
2485
2479
  });
2486
- function al(e) {
2480
+ function ol(e) {
2487
2481
  return Object.values(Gn).includes(e) || e == null;
2488
2482
  }
2489
- function ll(e) {
2483
+ function al(e) {
2490
2484
  return Object.values(H).includes(e);
2491
2485
  }
2492
- const rl = (e = !1) => ({
2486
+ const ll = (e = !1) => ({
2493
2487
  type: {
2494
2488
  type: String,
2495
2489
  default: null,
2496
- validator: al
2490
+ validator: ol
2497
2491
  },
2498
2492
  ...e ? {
2499
2493
  orientation: {
2500
2494
  type: String,
2501
2495
  default: H.VERTICAL,
2502
- validator: ll
2496
+ validator: al
2503
2497
  }
2504
2498
  } : {}
2505
2499
  });
2506
- function on(e, n) {
2507
- const t = v(() => e.value.map((a) => {
2500
+ function on(e, t) {
2501
+ const n = v(() => e.value.map((a) => {
2508
2502
  var r;
2509
2503
  return {
2510
2504
  ...a,
2511
2505
  values: ct(
2512
2506
  a.values,
2513
- ((r = n == null ? void 0 : n.value) == null ? void 0 : r.length) ?? 0
2507
+ ((r = t == null ? void 0 : t.value) == null ? void 0 : r.length) ?? 0
2514
2508
  ).map((l) => ({
2515
2509
  ...l,
2516
2510
  value: (l == null ? void 0 : l.value) || 0
@@ -2518,48 +2512,48 @@ function on(e, n) {
2518
2512
  };
2519
2513
  })), o = v(() => {
2520
2514
  var a;
2521
- return (a = t.value) == null ? void 0 : a.reduce((r, l) => (l.values.forEach((i, c) => {
2515
+ return (a = n.value) == null ? void 0 : a.reduce((r, l) => (l.values.forEach((i, c) => {
2522
2516
  r[c] ? r[c].push(i) : r[c] = [i];
2523
2517
  }), r), []);
2524
2518
  });
2525
- return { multiBarData: t, groupedData: o };
2519
+ return { multiBarData: n, groupedData: o };
2526
2520
  }
2527
- function ul(e, n) {
2528
- return e.value.length === 1 ? "single" : n.value;
2521
+ function rl(e, t) {
2522
+ return e.value.length === 1 ? "single" : t.value;
2529
2523
  }
2530
- function il(e, n, t) {
2524
+ function ul(e, t, n) {
2531
2525
  const o = v(
2532
- () => t.value === H.HORIZONTAL
2526
+ () => n.value === H.HORIZONTAL
2533
2527
  );
2534
2528
  function a(i) {
2535
2529
  i || rt(Pe.BarScaleNull), Math.min(...i.domain()) > 0 && rt(Pe.BarScaleDomainAbove0);
2536
2530
  }
2537
- const r = v(() => o.value ? (a(e.value), e.value) : e.value), l = v(() => o.value ? n.value : (a(n.value), n.value));
2531
+ const r = v(() => o.value ? (a(e.value), e.value) : e.value), l = v(() => o.value ? t.value : (a(t.value), t.value));
2538
2532
  return { barXScale: r, barYScale: l };
2539
2533
  }
2540
- const sl = {
2534
+ const il = {
2541
2535
  x: 0,
2542
2536
  y: 0,
2543
2537
  width: 0,
2544
2538
  height: 0
2545
2539
  };
2546
- function cl(e, n, t, o, a, r) {
2540
+ function sl(e, t, n, o, a, r) {
2547
2541
  const l = v(
2548
2542
  () => o.value === H.HORIZONTAL
2549
2543
  );
2550
2544
  function i(u, m) {
2551
2545
  let y, p;
2552
- return l.value ? (y = u >= 0 ? n.value(0) : n.value(u), p = t.value(t.value.domain()[m])) : (y = n.value(n.value.domain()[m]), p = u < 0 ? t.value(0) : t.value(u)), { x: y, y: p };
2546
+ return l.value ? (y = u >= 0 ? t.value(0) : t.value(u), p = n.value(n.value.domain()[m])) : (y = t.value(t.value.domain()[m]), p = u < 0 ? n.value(0) : n.value(u)), { x: y, y: p };
2553
2547
  }
2554
2548
  function c(u) {
2555
- return l.value ? u < 0 ? n.value(0) - n.value(u) : n.value(u) - n.value(0) : n.value.bandwidth();
2549
+ return l.value ? u < 0 ? t.value(0) - t.value(u) : t.value(u) - t.value(0) : t.value.bandwidth();
2556
2550
  }
2557
2551
  function s(u) {
2558
- return l.value ? t.value.bandwidth() : u < 0 ? t.value(u) - t.value(0) : t.value(0) - t.value(u);
2552
+ return l.value ? n.value.bandwidth() : u < 0 ? n.value(u) - n.value(0) : n.value(0) - n.value(u);
2559
2553
  }
2560
2554
  function f(u, m, y) {
2561
- if (!(n.value && t.value)) return sl;
2562
- const { value: b, color: $ } = u, L = $ ?? e.value[m].color ?? Ge, { x: g, y: O } = i(b, y), N = c(b), D = s(b);
2555
+ if (!(t.value && n.value)) return il;
2556
+ const { value: b, color: $ } = u, L = $ ?? e.value[m].color ?? Se, { x: g, y: O } = i(b, y), N = c(b), D = s(b);
2563
2557
  return {
2564
2558
  classList: [`lume-fill--${L}`, ...r],
2565
2559
  x: g,
@@ -2572,43 +2566,43 @@ function cl(e, n, t, o, a, r) {
2572
2566
  }
2573
2567
  return { barAttributeGenerator: f };
2574
2568
  }
2575
- const dl = {
2569
+ const cl = {
2576
2570
  x: 0,
2577
2571
  y: 0,
2578
2572
  width: 0,
2579
2573
  height: 0
2580
2574
  };
2581
- function vl(e, n, t, o, a, r) {
2575
+ function dl(e, t, n, o, a, r) {
2582
2576
  const l = v(
2583
2577
  () => o.value === H.HORIZONTAL
2584
- ), i = v(() => Be().domain(e.value.map((p, b) => b)).range([0, n.value.bandwidth()]).padding(0)), c = v(() => Be().domain(e.value.map((p, b) => b)).range([0, t.value.bandwidth()]).padding(0));
2578
+ ), i = v(() => Me().domain(e.value.map((p, b) => b)).range([0, t.value.bandwidth()]).padding(0)), c = v(() => Me().domain(e.value.map((p, b) => b)).range([0, n.value.bandwidth()]).padding(0));
2585
2579
  function s(p, b, $) {
2586
2580
  if (l.value)
2587
- return p >= 0 ? n.value(0) : n.value(p);
2588
- const L = n.value.domain();
2589
- return n.value(L[b]) + i.value($);
2581
+ return p >= 0 ? t.value(0) : t.value(p);
2582
+ const L = t.value.domain();
2583
+ return t.value(L[b]) + i.value($);
2590
2584
  }
2591
2585
  function f(p, b, $) {
2592
2586
  if (l.value) {
2593
- const L = t.value.domain();
2594
- return t.value(L[b]) + c.value($);
2587
+ const L = n.value.domain();
2588
+ return n.value(L[b]) + c.value($);
2595
2589
  }
2596
- return p < 0 ? t.value(0) : t.value(p);
2590
+ return p < 0 ? n.value(0) : n.value(p);
2597
2591
  }
2598
2592
  function u(p) {
2599
- return l.value ? p < 0 ? n.value(0) - n.value(p) : n.value(p) - n.value(0) : i.value.bandwidth();
2593
+ return l.value ? p < 0 ? t.value(0) - t.value(p) : t.value(p) - t.value(0) : i.value.bandwidth();
2600
2594
  }
2601
2595
  function m(p) {
2602
- return l.value ? c.value.bandwidth() : p < 0 ? t.value(p) - t.value(0) : t.value(0) - t.value(p);
2596
+ return l.value ? c.value.bandwidth() : p < 0 ? n.value(p) - n.value(0) : n.value(0) - n.value(p);
2603
2597
  }
2604
2598
  function y(p, b, $) {
2605
- if (!(n.value && t.value)) return dl;
2606
- const { value: g, color: O } = p, N = O ?? e.value[b].color ?? Object.values(ie)[b], D = s(g, $, b), P = f(g, $, b), x = u(g), B = m(g);
2599
+ if (!(t.value && n.value)) return cl;
2600
+ const { value: g, color: O } = p, N = O ?? e.value[b].color ?? Object.values(ie)[b], D = s(g, $, b), P = f(g, $, b), w = u(g), B = m(g);
2607
2601
  return {
2608
2602
  classList: [`lume-fill--${N}`, ...r],
2609
2603
  x: D,
2610
2604
  y: P,
2611
- width: x,
2605
+ width: w,
2612
2606
  height: B,
2613
2607
  isFaded: a.value !== -1 && a.value !== $,
2614
2608
  isNegative: g < 0
@@ -2616,9 +2610,9 @@ function vl(e, n, t, o, a, r) {
2616
2610
  }
2617
2611
  return { barAttributeGenerator: y };
2618
2612
  }
2619
- function ml(e, n, t) {
2613
+ function vl(e, t, n) {
2620
2614
  const o = v(
2621
- () => n.value === H.HORIZONTAL
2615
+ () => t.value === H.HORIZONTAL
2622
2616
  ), a = v(() => {
2623
2617
  const c = e.value.map(
2624
2618
  (s) => s.filter((f) => f.value < 0).reduce((f, u) => f + u.value, 0)
@@ -2634,11 +2628,11 @@ function ml(e, n, t) {
2634
2628
  return Math.max(...c);
2635
2629
  });
2636
2630
  function l(c, s, f) {
2637
- return s.length ? o.value ? Me().domain([a.value, r.value]).range([0, f.width]) : Object.assign(
2631
+ return s.length ? o.value ? Be().domain([a.value, r.value]).range([0, f.width]) : Object.assign(
2638
2632
  Et(
2639
- Be().domain(s.map((u, m) => m)).range([0, f.width]),
2640
- n.value,
2641
- t.value
2633
+ Me().domain(s.map((u, m) => m)).range([0, f.width]),
2634
+ t.value,
2635
+ n.value
2642
2636
  ),
2643
2637
  { labels: s }
2644
2638
  ) : null;
@@ -2646,38 +2640,38 @@ function ml(e, n, t) {
2646
2640
  function i(c, s, f) {
2647
2641
  return s.length ? o.value ? Object.assign(
2648
2642
  Et(
2649
- Be().domain(s.map((u, m) => m)).range([0, f.height]),
2650
- n.value,
2651
- t.value
2643
+ Me().domain(s.map((u, m) => m)).range([0, f.height]),
2644
+ t.value,
2645
+ n.value
2652
2646
  ),
2653
2647
  { labels: s }
2654
- ) : Me().domain([r.value, a.value]).range([0, f.height]) : null;
2648
+ ) : Be().domain([r.value, a.value]).range([0, f.height]) : null;
2655
2649
  }
2656
2650
  return { stackedXScaleGenerator: l, stackedYScaleGenerator: i };
2657
2651
  }
2658
- function fl(e, n, t, o, a, r) {
2652
+ function ml(e, t, n, o, a, r) {
2659
2653
  const l = v(
2660
2654
  () => o.value === H.HORIZONTAL
2661
2655
  ), i = v(
2662
- () => l.value ? t.value.domain() : n.value.domain()
2656
+ () => l.value ? n.value.domain() : t.value.domain()
2663
2657
  ), c = v(
2664
2658
  () => e.value.map((L) => L.values.map((g) => g == null ? void 0 : g.value))
2665
2659
  );
2666
2660
  function s(L, g, O) {
2667
2661
  let N, D;
2668
- return l.value ? (N = n.value(L >= 0 ? 0 + O : L + O), D = t.value(i.value[g])) : (N = n.value(i.value[g]), D = t.value(L >= 0 ? L + O : 0 + O)), { x: N, y: D };
2662
+ return l.value ? (N = t.value(L >= 0 ? 0 + O : L + O), D = n.value(i.value[g])) : (N = t.value(i.value[g]), D = n.value(L >= 0 ? L + O : 0 + O)), { x: N, y: D };
2669
2663
  }
2670
2664
  function f(L) {
2671
- return l.value ? n.value(L) - n.value(0) : n.value.bandwidth();
2665
+ return l.value ? t.value(L) - t.value(0) : t.value.bandwidth();
2672
2666
  }
2673
2667
  function u(L) {
2674
- return l.value ? n.value(0) - n.value(L) : n.value.bandwidth();
2668
+ return l.value ? t.value(0) - t.value(L) : t.value.bandwidth();
2675
2669
  }
2676
2670
  function m(L) {
2677
- return l.value ? t.value.bandwidth() : t.value(0) - t.value(L);
2671
+ return l.value ? n.value.bandwidth() : n.value(0) - n.value(L);
2678
2672
  }
2679
2673
  function y(L) {
2680
- return l.value ? t.value.bandwidth() : t.value(L) - t.value(0);
2674
+ return l.value ? n.value.bandwidth() : n.value(L) - n.value(0);
2681
2675
  }
2682
2676
  function p(L, g) {
2683
2677
  return L ? c.value.reduce((O, N, D) => (D < L && N[g] >= 0 && (O += N[g]), O), 0) : 0;
@@ -2686,11 +2680,11 @@ function fl(e, n, t, o, a, r) {
2686
2680
  return L ? c.value.reduce((O, N, D) => (D < L && N[g] < 0 && (O += N[g]), O), 0) : 0;
2687
2681
  }
2688
2682
  function $(L, g, O) {
2689
- const { value: N, color: D } = L, P = N >= 0 ? f(N) : u(N), x = N >= 0 ? m(N) : y(N), B = N >= 0 ? p(g, O) : b(g, O), { x: U, y: K } = s(N, O, B);
2683
+ const { value: N, color: D } = L, P = N >= 0 ? f(N) : u(N), w = N >= 0 ? m(N) : y(N), B = N >= 0 ? p(g, O) : b(g, O), { x: U, y: K } = s(N, O, B);
2690
2684
  return {
2691
2685
  classList: [`lume-fill--${D ?? e.value[g].color ?? Object.values(ie)[g]}`, ...r],
2692
2686
  width: P,
2693
- height: x,
2687
+ height: w,
2694
2688
  x: U,
2695
2689
  y: K,
2696
2690
  isFaded: a.value !== -1 && a.value !== O,
@@ -2699,13 +2693,13 @@ function fl(e, n, t, o, a, r) {
2699
2693
  }
2700
2694
  return { barAttributeGenerator: $ };
2701
2695
  }
2702
- const pl = {
2696
+ const fl = {
2703
2697
  class: "lume-bar-group",
2704
2698
  "data-j-bars-group": ""
2705
- }, hl = ["onMouseenter"], gl = {
2706
- single: cl,
2707
- grouped: vl,
2708
- stacked: fl
2699
+ }, pl = ["onMouseenter"], hl = {
2700
+ single: sl,
2701
+ grouped: dl,
2702
+ stacked: ml
2709
2703
  }, yt = /* @__PURE__ */ Z({
2710
2704
  __name: "lume-bar-group",
2711
2705
  props: {
@@ -2714,15 +2708,15 @@ const pl = {
2714
2708
  type: [String, Array],
2715
2709
  default: () => []
2716
2710
  },
2717
- ...rl(!0),
2711
+ ...ll(!0),
2718
2712
  transition: {
2719
2713
  type: Boolean,
2720
2714
  default: !0
2721
2715
  }
2722
2716
  },
2723
2717
  emits: ["bar-click", "lume__internal--hover"],
2724
- setup(e, { emit: n }) {
2725
- const t = e, o = n, {
2718
+ setup(e, { emit: t }) {
2719
+ const n = e, o = t, {
2726
2720
  data: a,
2727
2721
  hoveredIndex: r,
2728
2722
  orientation: l,
@@ -2732,10 +2726,10 @@ const pl = {
2732
2726
  yScale: f,
2733
2727
  classList: u,
2734
2728
  labels: m
2735
- } = ee(t);
2729
+ } = ee(n);
2736
2730
  Ce("chartID");
2737
- const { emitInternalEvent: y } = _e(), { groupedData: p } = on(a, m), { barXScale: b, barYScale: $ } = il(s, f, l), L = v(() => typeof u.value == "string" ? [u.value] : u.value), g = v(() => {
2738
- const D = ul(a, c), { barAttributeGenerator: P } = gl[D](
2731
+ const { emitInternalEvent: y } = _e(), { groupedData: p } = on(a, m), { barXScale: b, barYScale: $ } = ul(s, f, l), L = v(() => typeof u.value == "string" ? [u.value] : u.value), g = v(() => {
2732
+ const D = rl(a, c), { barAttributeGenerator: P } = hl[D](
2739
2733
  a,
2740
2734
  b,
2741
2735
  $,
@@ -2751,12 +2745,12 @@ const pl = {
2751
2745
  async function N(D) {
2752
2746
  o("lume__internal--hover", D), y("lume__internal--hover", D);
2753
2747
  }
2754
- return (D, P) => (_(), I("g", pl, [
2755
- (_(!0), I(Q, null, W(d(p), (x, B) => (_(), I("g", {
2748
+ return (D, P) => (_(), I("g", fl, [
2749
+ (_(!0), I(Q, null, W(d(p), (w, B) => (_(), I("g", {
2756
2750
  key: B,
2757
2751
  onMouseenter: (U) => N(B)
2758
2752
  }, [
2759
- (_(!0), I(Q, null, W(x, (U, K) => (_(), Y(d(dt), j(g.value(U, K, B, x), {
2753
+ (_(!0), I(Q, null, W(w, (U, K) => (_(), Y(d(dt), j(g.value(U, K, B, w), {
2760
2754
  key: `bar-${K}`,
2761
2755
  transition: O.value,
2762
2756
  "data-j-lume-bar": "",
@@ -2766,10 +2760,10 @@ const pl = {
2766
2760
  event: J
2767
2761
  })
2768
2762
  }), null, 16, ["transition", "onClick"]))), 128))
2769
- ], 40, hl))), 128))
2763
+ ], 40, pl))), 128))
2770
2764
  ]));
2771
2765
  }
2772
- }), yl = {
2766
+ }), gl = {
2773
2767
  [H.VERTICAL]: {
2774
2768
  withTooltip: !0,
2775
2769
  xAxisOptions: {},
@@ -2782,17 +2776,17 @@ const pl = {
2782
2776
  yAxisOptions: { gridLines: !1 },
2783
2777
  margins: be.HORIZONTAL
2784
2778
  }
2785
- }, Xl = /* @__PURE__ */ Z({
2779
+ }, Ul = /* @__PURE__ */ Z({
2786
2780
  __name: "lume-single-bar-chart",
2787
2781
  props: {
2788
- ...xe(st)
2782
+ ...Ie(st)
2789
2783
  },
2790
- setup(e, { emit: n }) {
2791
- const t = e, { componentEventPropagator: o } = _e(), a = Ae(re()), { orientation: r, options: l } = ee(t), i = v(
2792
- () => yl[r.value || H.VERTICAL]
2784
+ setup(e, { emit: t }) {
2785
+ const n = e, { componentEventPropagator: o } = _e(), a = Ae(re()), { orientation: r, options: l } = ee(n), i = v(
2786
+ () => gl[r.value || H.VERTICAL]
2793
2787
  // needs to be computed so that default options are reactive
2794
2788
  ), { allOptions: c } = me(l, i);
2795
- return (s, f) => (_(), Y(d(Ee), j({ ...t, ...s.$attrs }, {
2789
+ return (s, f) => (_(), Y(d(xe), j({ ...n, ...s.$attrs }, {
2796
2790
  "chart-type": "single-bar",
2797
2791
  options: d(c),
2798
2792
  "data-j-single-bar-chart": ""
@@ -2810,7 +2804,7 @@ const pl = {
2810
2804
  }))
2811
2805
  ]), 1040, ["options"]));
2812
2806
  }
2813
- }), _l = {
2807
+ }), yl = {
2814
2808
  [H.VERTICAL]: {
2815
2809
  withTooltip: !0,
2816
2810
  xAxisOptions: {},
@@ -2824,20 +2818,20 @@ const pl = {
2824
2818
  margins: be.HORIZONTAL,
2825
2819
  tooltipOptions: { position: "right" }
2826
2820
  }
2827
- }, Yl = /* @__PURE__ */ Z({
2821
+ }, Xl = /* @__PURE__ */ Z({
2828
2822
  __name: "lume-grouped-bar-chart",
2829
2823
  props: {
2830
- ...xe()
2824
+ ...Ie()
2831
2825
  },
2832
- setup(e, { emit: n }) {
2833
- const t = e, { componentEventPropagator: o } = _e(), a = Ae(re()), { orientation: r, options: l } = ee(t), i = v(
2834
- () => _l[r.value || H.VERTICAL]
2826
+ setup(e, { emit: t }) {
2827
+ const n = e, { componentEventPropagator: o } = _e(), a = Ae(re()), { orientation: r, options: l } = ee(n), i = v(
2828
+ () => yl[r.value || H.VERTICAL]
2835
2829
  // needs to be computed so that default options are reactive
2836
2830
  ), { allOptions: c } = me(
2837
2831
  l,
2838
2832
  i
2839
2833
  );
2840
- return (s, f) => (_(), Y(d(Ee), j({ ...t, ...s.$attrs }, {
2834
+ return (s, f) => (_(), Y(d(xe), j({ ...n, ...s.$attrs }, {
2841
2835
  "chart-type": "grouped-bar",
2842
2836
  options: d(c),
2843
2837
  "data-j-grouped-bar-chart": ""
@@ -2855,7 +2849,7 @@ const pl = {
2855
2849
  }))
2856
2850
  ]), 1040, ["options"]));
2857
2851
  }
2858
- }), kl = {
2852
+ }), _l = {
2859
2853
  [H.VERTICAL]: {
2860
2854
  withTooltip: !0,
2861
2855
  xAxisOptions: {},
@@ -2870,24 +2864,24 @@ const pl = {
2870
2864
  margins: be.HORIZONTAL,
2871
2865
  tooltipOptions: { position: "right" }
2872
2866
  }
2873
- }, Kl = /* @__PURE__ */ Z({
2867
+ }, Yl = /* @__PURE__ */ Z({
2874
2868
  __name: "lume-stacked-bar-chart",
2875
2869
  props: {
2876
- ...xe()
2870
+ ...Ie()
2877
2871
  },
2878
- setup(e, { emit: n }) {
2879
- const t = e, { componentEventPropagator: o } = _e(), a = Ae(re()), { data: r, orientation: l, options: i, labels: c } = ee(t), s = v(
2880
- () => kl[l.value || H.VERTICAL]
2872
+ setup(e, { emit: t }) {
2873
+ const n = e, { componentEventPropagator: o } = _e(), a = Ae(re()), { data: r, orientation: l, options: i, labels: c } = ee(n), s = v(
2874
+ () => _l[l.value || H.VERTICAL]
2881
2875
  // needs to be computed so that default options are reactive
2882
2876
  ), { allOptions: f } = me(
2883
2877
  i,
2884
2878
  s
2885
- ), { internalData: u } = ht(r), { groupedData: m } = on(u, c), { stackedXScaleGenerator: y, stackedYScaleGenerator: p } = ml(
2879
+ ), { internalData: u } = ht(r), { groupedData: m } = on(u, c), { stackedXScaleGenerator: y, stackedYScaleGenerator: p } = vl(
2886
2880
  m,
2887
2881
  l,
2888
2882
  i
2889
- ), b = v(() => t.xScale || y), $ = v(() => t.yScale || p);
2890
- return (L, g) => (_(), Y(d(Ee), j({ ...t, ...L.$attrs }, {
2883
+ ), b = v(() => n.xScale || y), $ = v(() => n.yScale || p);
2884
+ return (L, g) => (_(), Y(d(xe), j({ ...n, ...L.$attrs }, {
2891
2885
  "chart-type": "stacked-bar",
2892
2886
  options: d(f),
2893
2887
  "x-scale": b.value,
@@ -2907,7 +2901,7 @@ const pl = {
2907
2901
  }))
2908
2902
  ]), 1040, ["options", "x-scale", "y-scale"]));
2909
2903
  }
2910
- }), bl = ["d", "stroke-width"], Al = 2, Tl = /* @__PURE__ */ Z({
2904
+ }), kl = ["d", "stroke-width"], bl = 2, Al = /* @__PURE__ */ Z({
2911
2905
  __name: "lume-line",
2912
2906
  props: {
2913
2907
  pathDefinition: {
@@ -2916,7 +2910,7 @@ const pl = {
2916
2910
  },
2917
2911
  width: {
2918
2912
  type: Number,
2919
- default: Al
2913
+ default: bl
2920
2914
  },
2921
2915
  color: {
2922
2916
  type: String,
@@ -2940,8 +2934,8 @@ const pl = {
2940
2934
  }
2941
2935
  },
2942
2936
  emits: ["click"],
2943
- setup(e, { emit: n }) {
2944
- const t = n, o = S(null);
2937
+ setup(e, { emit: t }) {
2938
+ const n = t, o = G(null);
2945
2939
  return ye(() => ze(o.value)), (a, r) => (_(), I("path", {
2946
2940
  ref_key: "root",
2947
2941
  ref: o,
@@ -2957,10 +2951,10 @@ const pl = {
2957
2951
  animationDuration: e.transition && e.animationDuration + "s"
2958
2952
  }),
2959
2953
  "data-j-line": "",
2960
- onClick: r[0] || (r[0] = (l) => t("click", l))
2961
- }, null, 14, bl));
2954
+ onClick: r[0] || (r[0] = (l) => n("click", l))
2955
+ }, null, 14, kl));
2962
2956
  }
2963
- }), Ll = /* @__PURE__ */ q(Tl, [["__scopeId", "data-v-59449838"]]), $l = ["cx", "cy", "r", "stroke-width"], Ol = 4, Il = /* @__PURE__ */ Z({
2957
+ }), Tl = /* @__PURE__ */ q(Al, [["__scopeId", "data-v-59449838"]]), Ll = ["cx", "cy", "r", "stroke-width"], $l = 4, Ol = /* @__PURE__ */ Z({
2964
2958
  __name: "lume-point",
2965
2959
  props: {
2966
2960
  x: { type: Number, required: !0 },
@@ -2971,7 +2965,7 @@ const pl = {
2971
2965
  },
2972
2966
  radius: {
2973
2967
  type: Number,
2974
- default: Ol
2968
+ default: $l
2975
2969
  },
2976
2970
  active: {
2977
2971
  type: Boolean,
@@ -2979,8 +2973,8 @@ const pl = {
2979
2973
  }
2980
2974
  },
2981
2975
  emits: ["click"],
2982
- setup(e, { emit: n }) {
2983
- const t = e, o = n, a = S(null), r = v(() => t.radius / 2);
2976
+ setup(e, { emit: t }) {
2977
+ const n = e, o = t, a = G(null), r = v(() => n.radius / 2);
2984
2978
  return ye(() => ze(a.value)), (l, i) => (_(), I("circle", {
2985
2979
  ref_key: "root",
2986
2980
  ref: a,
@@ -2991,15 +2985,15 @@ const pl = {
2991
2985
  "stroke-width": r.value,
2992
2986
  "data-j-point": "",
2993
2987
  onClick: i[0] || (i[0] = (c) => o("click", c))
2994
- }, null, 10, $l));
2988
+ }, null, 10, Ll));
2995
2989
  }
2996
- }), wl = /* @__PURE__ */ q(Il, [["__scopeId", "data-v-436fef87"]]);
2990
+ }), Il = /* @__PURE__ */ q(Ol, [["__scopeId", "data-v-436fef87"]]);
2997
2991
  function an(e) {
2998
- function n(r) {
2992
+ function t(r) {
2999
2993
  let l = null;
3000
2994
  return r == null ? void 0 : r.reduce((i, c, s) => (c == null || c.value == null ? (l ? l.push(s) : l = [s], s === (r == null ? void 0 : r.length) - 1 && i.push(l)) : l && (i.push(l), l = null), i), []);
3001
2995
  }
3002
- function t(r, l, i, c) {
2996
+ function n(r, l, i, c) {
3003
2997
  const u = Math.abs(r - l) / (i + 1) * (c + 1);
3004
2998
  return r == null && l == null ? null : r > l ? r - u : r + u;
3005
2999
  }
@@ -3011,7 +3005,7 @@ function an(e) {
3011
3005
  };
3012
3006
  }
3013
3007
  return { computedLineData: v(() => e.value.map((r) => {
3014
- const l = n(r.values);
3008
+ const l = t(r.values);
3015
3009
  return {
3016
3010
  ...r,
3017
3011
  isDashed: o(l),
@@ -3024,7 +3018,7 @@ function an(e) {
3024
3018
  const m = s[0] - 1, y = s[s.length - 1] + 1;
3025
3019
  let p = (f = r.values[m]) == null ? void 0 : f.value, b = (u = r.values[y]) == null ? void 0 : u.value;
3026
3020
  return p == null && (p = b), b == null && (b = p), {
3027
- value: t(
3021
+ value: n(
3028
3022
  p,
3029
3023
  b,
3030
3024
  s.length,
@@ -3038,27 +3032,27 @@ function an(e) {
3038
3032
  };
3039
3033
  })) };
3040
3034
  }
3041
- function xl(e, n) {
3042
- const t = e.bandwidth() / 2;
3043
- return (o, a) => e(e.domain()[n + (a - 1)]) + t;
3035
+ function xl(e, t) {
3036
+ const n = e.bandwidth() / 2;
3037
+ return (o, a) => e(e.domain()[t + (a - 1)]) + n;
3044
3038
  }
3045
- function El(e, n) {
3046
- return (t, o) => e(n + (o - 1));
3039
+ function wl(e, t) {
3040
+ return (n, o) => e(t + (o - 1));
3047
3041
  }
3048
- function Nl(e, n, t, o) {
3042
+ function El(e, t, n, o) {
3049
3043
  const a = yn().x(
3050
- de(t) ? xl(t, e) : El(t, e)
3044
+ de(n) ? xl(n, e) : wl(n, e)
3051
3045
  ).y((r) => o(r));
3052
- return n.every((r) => r == null) ? null : a(n);
3046
+ return t.every((r) => r == null) ? null : a(t);
3053
3047
  }
3054
- const Dl = {
3048
+ const Nl = {
3055
3049
  class: "lume-line-group",
3056
3050
  "data-j-lume-line-group": ""
3057
- }, Hl = { class: "lume-line-group__lines" }, Bl = {
3051
+ }, Dl = { class: "lume-line-group__lines" }, Hl = {
3058
3052
  key: 0,
3059
3053
  class: "lume-line-group__points",
3060
3054
  "data-j-lume-line-group__points": ""
3061
- }, Ml = 1, Rl = /* @__PURE__ */ Z({
3055
+ }, Bl = 1, Ml = /* @__PURE__ */ Z({
3062
3056
  __name: "lume-line-group",
3063
3057
  props: {
3064
3058
  ...We(),
@@ -3072,8 +3066,8 @@ const Dl = {
3072
3066
  }
3073
3067
  },
3074
3068
  emits: ["line-click", "point-click", "lume__internal--hover"],
3075
- setup(e, { emit: n }) {
3076
- const t = e, o = n, { data: a, options: r, xScale: l, yScale: i, labels: c } = ee(t), s = Ce(
3069
+ setup(e, { emit: t }) {
3070
+ const n = e, o = t, { data: a, options: r, xScale: l, yScale: i, labels: c } = ee(n), s = Ce(
3077
3071
  "tooltipAnchorAttributes",
3078
3072
  null
3079
3073
  ), { updateTooltipAnchorAttributes: f } = en(
@@ -3085,68 +3079,68 @@ const Dl = {
3085
3079
  ), u = v(() => {
3086
3080
  if (a.value.every((B) => B.isDashed))
3087
3081
  return a.value;
3088
- const { computedLineData: x } = an(a);
3089
- return r.value.withTooltip !== !1 && (s != null && s.value) && f(x.value), x.value;
3082
+ const { computedLineData: w } = an(a);
3083
+ return r.value.withTooltip !== !1 && (s != null && s.value) && f(w.value), w.value;
3090
3084
  }), m = v(() => {
3091
- if (t.hoveredIndex === -1) return;
3092
- const x = xn(
3085
+ if (n.hoveredIndex === -1) return;
3086
+ const w = wn(
3093
3087
  u.value,
3094
- t.hoveredIndex
3088
+ n.hoveredIndex
3095
3089
  );
3096
3090
  return {
3097
- d: `M ${tt(l.value, t.hoveredIndex)},${i.value.range()[1]}
3098
- V ${i.value(x)}`
3091
+ d: `M ${tt(l.value, n.hoveredIndex)},${i.value.range()[1]}
3092
+ V ${i.value(w)}`
3099
3093
  // Move to X index, Vertical line to the highest point
3100
3094
  };
3101
3095
  }), y = v(
3102
- () => l.value && Ml / (En(l.value) - 1)
3096
+ () => l.value && Bl / (En(l.value) - 1)
3103
3097
  // Subtracting the first line (read below)
3104
3098
  ), p = v(
3105
3099
  () => {
3106
- var x;
3107
- return ((x = r.value) == null ? void 0 : x.lineWidth) * 2 || void 0;
3100
+ var w;
3101
+ return ((w = r.value) == null ? void 0 : w.lineWidth) * 2 || void 0;
3108
3102
  }
3109
3103
  // If no `lineWidth`, returns NaN which needs to be undefined
3110
3104
  ), b = v(
3111
3105
  () => l.value.bandwidth() / 2
3112
3106
  ), $ = v(() => l.value.domain()), L = v(
3113
- () => r.value.withPoints ?? t.withPoints
3107
+ () => r.value.withPoints ?? n.withPoints
3114
3108
  );
3115
- function g(x) {
3116
- return u.value[x].values;
3109
+ function g(w) {
3110
+ return u.value[w].values;
3117
3111
  }
3118
- function O(x, B) {
3112
+ function O(w, B) {
3119
3113
  var K, J;
3120
- const U = x === 0 ? [] : [
3121
- (K = g(B)[x - 1]) == null ? void 0 : K.value,
3122
- (J = g(B)[x]) == null ? void 0 : J.value
3114
+ const U = w === 0 ? [] : [
3115
+ (K = g(B)[w - 1]) == null ? void 0 : K.value,
3116
+ (J = g(B)[w]) == null ? void 0 : J.value
3123
3117
  ];
3124
- return Nl(
3125
- x,
3118
+ return El(
3119
+ w,
3126
3120
  U,
3127
3121
  l.value,
3128
3122
  i.value
3129
3123
  ) || "";
3130
3124
  }
3131
- function N(x) {
3125
+ function N(w) {
3132
3126
  return {
3133
- animationDelay: x < 2 ? 0 : (x - 1) * y.value,
3127
+ animationDelay: w < 2 ? 0 : (w - 1) * y.value,
3134
3128
  animationDuration: y.value
3135
3129
  };
3136
3130
  }
3137
- function D(x, B) {
3131
+ function D(w, B) {
3138
3132
  var K;
3139
- const U = (K = g(B)[x]) == null ? void 0 : K.value;
3133
+ const U = (K = g(B)[w]) == null ? void 0 : K.value;
3140
3134
  return {
3141
- x: de(l.value) ? t.xScale($.value[x]) + b.value : t.xScale(x),
3135
+ x: de(l.value) ? n.xScale($.value[w]) + b.value : n.xScale(w),
3142
3136
  y: U === null ? i.value(i.value.domain()[1]) : i.value(U)
3143
3137
  };
3144
3138
  }
3145
- function P(x) {
3146
- return t.hoveredIndex === x;
3139
+ function P(w) {
3140
+ return n.hoveredIndex === w;
3147
3141
  }
3148
- return (x, B) => (_(), I("g", Dl, [
3149
- G("path", j(m.value, {
3142
+ return (w, B) => (_(), I("g", Nl, [
3143
+ S("path", j(m.value, {
3150
3144
  class: "lume-line-group__overlay-line",
3151
3145
  "data-j-lume-line-group__overlay-line": ""
3152
3146
  }), null, 16),
@@ -3154,8 +3148,8 @@ const Dl = {
3154
3148
  key: U.label,
3155
3149
  class: "lume-line-group__group"
3156
3150
  }, [
3157
- G("g", Hl, [
3158
- (_(!0), I(Q, null, W(U.values, (J, C) => (_(), Y(d(Ll), j(N(C), {
3151
+ S("g", Dl, [
3152
+ (_(!0), I(Q, null, W(U.values, (J, C) => (_(), Y(d(Tl), j(N(C), {
3159
3153
  key: `line-${C}`,
3160
3154
  color: U.color,
3161
3155
  dashed: U.isDashed(C),
@@ -3165,8 +3159,8 @@ const Dl = {
3165
3159
  onClick: (ae) => o("line-click", { index: C, datasetIndex: K, event: ae })
3166
3160
  }), null, 16, ["color", "dashed", "path-definition", "transition", "width", "onClick"]))), 128))
3167
3161
  ]),
3168
- L.value ? (_(), I("g", Bl, [
3169
- (_(!0), I(Q, null, W(U.values, (J, C) => (_(), Y(d(wl), j(D(C, K), {
3162
+ L.value ? (_(), I("g", Hl, [
3163
+ (_(!0), I(Q, null, W(U.values, (J, C) => (_(), Y(d(Il), j(D(C, K), {
3170
3164
  key: `point-${C}`,
3171
3165
  active: P(C),
3172
3166
  color: U.color,
@@ -3178,20 +3172,20 @@ const Dl = {
3178
3172
  ]))), 128))
3179
3173
  ]));
3180
3174
  }
3181
- }), ln = /* @__PURE__ */ q(Rl, [["__scopeId", "data-v-23492507"]]), Sl = {
3175
+ }), ln = /* @__PURE__ */ q(Ml, [["__scopeId", "data-v-23492507"]]), Rl = {
3182
3176
  margins: be.VERTICAL,
3183
3177
  startOnZero: !0,
3184
3178
  withTooltip: !0,
3185
3179
  xAxisOptions: {},
3186
3180
  yAxisOptions: { gridLines: !0 }
3187
- }, Jl = /* @__PURE__ */ Z({
3181
+ }, Kl = /* @__PURE__ */ Z({
3188
3182
  __name: "lume-line-chart",
3189
3183
  props: {
3190
- ...xe(null, !1)
3184
+ ...Ie(null, !1)
3191
3185
  },
3192
- setup(e, { emit: n }) {
3193
- const t = e, { componentEventPropagator: o } = _e(), a = Ae(re()), { options: r } = ee(t), { allOptions: l } = me(r, Sl);
3194
- return (i, c) => (_(), Y(d(Ee), j({ ...t, ...i.$attrs }, {
3186
+ setup(e, { emit: t }) {
3187
+ const n = e, { componentEventPropagator: o } = _e(), a = Ae(re()), { options: r } = ee(n), { allOptions: l } = me(r, Rl);
3188
+ return (i, c) => (_(), Y(d(xe), j({ ...n, ...i.$attrs }, {
3195
3189
  "chart-type": "line",
3196
3190
  options: d(l),
3197
3191
  "data-j-lume-line-chart": ""
@@ -3212,15 +3206,15 @@ const Dl = {
3212
3206
  });
3213
3207
  function Gl(e) {
3214
3208
  return { areaPathDefinition: v(
3215
- () => function(t, o) {
3216
- if (!t || !o || de(t) || de(o))
3209
+ () => function(n, o) {
3210
+ if (!n || !o || de(n) || de(o))
3217
3211
  return;
3218
3212
  const a = e.value[0].values;
3219
- return _n().x((r, l) => t(l)).y0(o(Math.min(...o.domain()))).y1((r) => o(r.value))(a);
3213
+ return _n().x((r, l) => n(l)).y0(o(Math.min(...o.domain()))).y1((r) => o(r.value))(a);
3220
3214
  }
3221
3215
  ) };
3222
3216
  }
3223
- const jl = {
3217
+ const Sl = {
3224
3218
  margins: {
3225
3219
  top: 0,
3226
3220
  right: 0,
@@ -3234,14 +3228,14 @@ const jl = {
3234
3228
  tooltipOptions: {
3235
3229
  showTitle: !1
3236
3230
  }
3237
- }, Vl = ["d"], Pl = /* @__PURE__ */ Z({
3231
+ }, jl = ["d"], Vl = /* @__PURE__ */ Z({
3238
3232
  __name: "lume-sparkline-chart",
3239
3233
  props: {
3240
3234
  ...pt(null),
3241
3235
  ...Re()
3242
3236
  },
3243
- setup(e, { expose: n, emit: t }) {
3244
- const o = e, { componentEventPropagator: a } = _e(), r = Ae(re()), { data: l, options: i } = ee(o), { internalData: c } = ht(l), { allOptions: s } = me(i, jl), { computedLineData: f } = an(c), { areaPathDefinition: u } = Gl(f), m = v(() => {
3237
+ setup(e, { expose: t, emit: n }) {
3238
+ const o = e, { componentEventPropagator: a } = _e(), r = Ae(re()), { data: l, options: i } = ee(o), { internalData: c } = ht(l), { allOptions: s } = me(i, Sl), { computedLineData: f } = an(c), { areaPathDefinition: u } = Gl(f), m = v(() => {
3245
3239
  var $, L;
3246
3240
  return (L = ($ = c.value) == null ? void 0 : $[0]) == null ? void 0 : L.color;
3247
3241
  }), y = v(
@@ -3258,11 +3252,11 @@ const jl = {
3258
3252
  }
3259
3253
  function b($, L, g) {
3260
3254
  if ($.length)
3261
- return Me().range([0, g.width]).domain([0, $[0].values.length - 1]);
3255
+ return Be().range([0, g.width]).domain([0, $[0].values.length - 1]);
3262
3256
  }
3263
- return n({
3257
+ return t({
3264
3258
  areaPathDefinition: u
3265
- }), ($, L) => (_(), Y(d(Ee), j(o, {
3259
+ }), ($, L) => (_(), Y(d(xe), j(o, {
3266
3260
  "chart-type": "line",
3267
3261
  options: p(d(s)),
3268
3262
  "x-scale": b
@@ -3278,7 +3272,7 @@ const jl = {
3278
3272
  ]),
3279
3273
  d: d(u)(g.xScale, g.yScale),
3280
3274
  "data-j-sparkline__area": ""
3281
- }, null, 10, Vl)) : z("", !0),
3275
+ }, null, 10, jl)) : z("", !0),
3282
3276
  ue(d(ln), j(g, { "with-points": !1 }, oe(d(a))), null, 16)
3283
3277
  ]),
3284
3278
  _: 2
@@ -3291,57 +3285,57 @@ const jl = {
3291
3285
  }))
3292
3286
  ]), 1040, ["options"]));
3293
3287
  }
3294
- }), Ql = /* @__PURE__ */ q(Pl, [["__scopeId", "data-v-e9fe3992"]]);
3288
+ }), Jl = /* @__PURE__ */ q(Vl, [["__scopeId", "data-v-579f7e32"]]);
3295
3289
  export {
3296
- Zo as A,
3297
- Uo as B,
3290
+ Wo as A,
3291
+ Zo as B,
3298
3292
  Re as C,
3299
3293
  me as D,
3300
3294
  gt as E,
3301
- xe as F,
3302
- po as G,
3303
- ho as H,
3304
- mo as I,
3305
- fo as J,
3306
- xt as K,
3307
- Ee as L,
3295
+ Ie as F,
3296
+ fo as G,
3297
+ po as H,
3298
+ vo as I,
3299
+ mo as J,
3300
+ wt as K,
3301
+ xe as L,
3308
3302
  tt as M,
3309
3303
  Et as N,
3310
3304
  en as O,
3311
- Ko as P,
3312
- Jo as Q,
3305
+ Yo as P,
3306
+ Ko as Q,
3313
3307
  ie as R,
3314
3308
  qt as S,
3315
3309
  vt as T,
3316
3310
  mt as U,
3317
3311
  ft as V,
3318
3312
  ke as W,
3319
- Zl as _,
3320
- Ul as a,
3321
- Xl as b,
3322
- Yl as c,
3323
- Kl as d,
3324
- Jl as e,
3313
+ Wl as _,
3314
+ Zl as a,
3315
+ Ul as b,
3316
+ Xl as c,
3317
+ Yl as d,
3318
+ Kl as e,
3325
3319
  Lt as f,
3326
- ko as g,
3320
+ _o as g,
3327
3321
  Nt as h,
3328
- Fo as i,
3329
- Ro as j,
3330
- No as k,
3331
- Ql as l,
3332
- Oo as m,
3322
+ Co as i,
3323
+ Mo as j,
3324
+ Eo as k,
3325
+ Jl as l,
3326
+ $o as m,
3333
3327
  dt as n,
3334
- Ll as o,
3335
- wl as p,
3336
- nl as q,
3337
- ya as r,
3338
- ba as s,
3339
- Oa as t,
3328
+ Tl as o,
3329
+ Il as p,
3330
+ tl as q,
3331
+ ga as r,
3332
+ ka as s,
3333
+ $a as t,
3340
3334
  yt as u,
3341
3335
  ln as v,
3342
- Wo as w,
3336
+ zo as w,
3343
3337
  pt as x,
3344
3338
  ht as y,
3345
3339
  an as z
3346
3340
  };
3347
- //# sourceMappingURL=_87XKFtI.js.map
3341
+ //# sourceMappingURL=BfKxCes1.js.map