@adyen/lume-vue3 1.11.4 → 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 (103) 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/lume-bar.vue.d.ts +4 -4
  25. package/dist/@types/components/core/lume-bar/lume-bar.vue.d.ts.map +1 -1
  26. package/dist/@types/components/core/lume-chart/lume-chart.vue.d.ts +247 -77
  27. package/dist/@types/components/core/lume-chart/lume-chart.vue.d.ts.map +1 -1
  28. package/dist/@types/components/core/lume-chart-container/lume-chart-container.vue.d.ts +18 -7
  29. package/dist/@types/components/core/lume-chart-container/lume-chart-container.vue.d.ts.map +1 -1
  30. package/dist/@types/components/core/lume-chart-legend/lume-chart-legend.vue.d.ts +2 -2
  31. package/dist/@types/components/core/lume-chart-legend/lume-chart-legend.vue.d.ts.map +1 -1
  32. package/dist/@types/components/core/lume-line/lume-line.vue.d.ts.map +1 -1
  33. package/dist/@types/components/core/lume-point/lume-point.vue.d.ts.map +1 -1
  34. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-item/lume-tooltip-item.vue.d.ts +13 -5
  35. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-item/lume-tooltip-item.vue.d.ts.map +1 -1
  36. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-summary/lume-tooltip-summary.vue.d.ts +12 -4
  37. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-summary/lume-tooltip-summary.vue.d.ts.map +1 -1
  38. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-title/lume-tooltip-title.vue.d.ts +11 -3
  39. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-title/lume-tooltip-title.vue.d.ts.map +1 -1
  40. package/dist/@types/components/core/lume-tooltip/lume-tooltip.vue.d.ts +2 -2
  41. package/dist/@types/components/core/lume-tooltip/lume-tooltip.vue.d.ts.map +1 -1
  42. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-header/lume-alluvial-node-header.vue.d.ts +16 -6
  43. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-header/lume-alluvial-node-header.vue.d.ts.map +1 -1
  44. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-label/lume-alluvial-node-label.vue.d.ts +15 -4
  45. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-label/lume-alluvial-node-label.vue.d.ts.map +1 -1
  46. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-value/lume-alluvial-node-value.vue.d.ts +12 -4
  47. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-value/lume-alluvial-node-value.vue.d.ts.map +1 -1
  48. package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-graph.d.ts +1 -1
  49. package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-hover.d.ts +244 -84
  50. package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-hover.d.ts.map +1 -1
  51. package/dist/@types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts +152 -142
  52. package/dist/@types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts.map +1 -1
  53. package/dist/@types/components/groups/lume-bar-group/composables/bar-mixin.d.ts +1 -1
  54. package/dist/@types/components/groups/lume-bar-group/composables/bar-mixin.d.ts.map +1 -1
  55. package/dist/@types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts +2 -2
  56. package/dist/@types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts.map +1 -1
  57. package/dist/@types/components/groups/lume-bar-group/lume-bar-group.vue.d.ts +4 -4
  58. package/dist/@types/components/groups/lume-bar-group/lume-bar-group.vue.d.ts.map +1 -1
  59. package/dist/@types/components/groups/lume-line-group/lume-line-group.vue.d.ts +4 -4
  60. package/dist/@types/components/groups/lume-line-group/lume-line-group.vue.d.ts.map +1 -1
  61. package/dist/@types/components/groups/lume-overlay-group/lume-overlay-group.vue.d.ts +4 -4
  62. package/dist/@types/components/groups/lume-overlay-group/lume-overlay-group.vue.d.ts.map +1 -1
  63. package/dist/@types/composables/base.d.ts +5 -5
  64. package/dist/@types/composables/base.d.ts.map +1 -1
  65. package/dist/@types/composables/events.d.ts.map +1 -1
  66. package/dist/@types/composables/format.d.ts +1 -1
  67. package/dist/@types/composables/format.d.ts.map +1 -1
  68. package/dist/@types/composables/group-props.d.ts +3 -3
  69. package/dist/@types/composables/group-props.d.ts.map +1 -1
  70. package/dist/@types/composables/line-null-values.d.ts.map +1 -1
  71. package/dist/@types/composables/options.d.ts.map +1 -1
  72. package/dist/@types/composables/props.d.ts +8 -8
  73. package/dist/@types/composables/props.d.ts.map +1 -1
  74. package/dist/@types/composables/scales.d.ts +2 -2
  75. package/dist/@types/composables/scales.d.ts.map +1 -1
  76. package/dist/@types/composables/tooltip.d.ts +2 -2
  77. package/dist/@types/composables/tooltip.d.ts.map +1 -1
  78. package/dist/@types/docs/storybook-helpers.d.ts.map +1 -1
  79. package/dist/@types/plugin.d.ts.map +1 -1
  80. package/dist/@types/utils/helpers.d.ts +0 -8
  81. package/dist/@types/utils/helpers.d.ts.map +1 -1
  82. package/dist/@types/utils/margins.d.ts.map +1 -1
  83. package/dist/common/B-J6h1cQ.js +5 -0
  84. package/dist/common/B-J6h1cQ.js.map +1 -0
  85. package/dist/common/B79GZzqk.js +5 -0
  86. package/dist/common/B79GZzqk.js.map +1 -0
  87. package/dist/common/{o-3UCjl8.js → BfKxCes1.js} +938 -939
  88. package/dist/common/BfKxCes1.js.map +1 -0
  89. package/dist/common/DpwoykqR.js +5 -0
  90. package/dist/common/DpwoykqR.js.map +1 -0
  91. package/dist/index.js +1 -1
  92. package/dist/plugin.js +1 -1
  93. package/dist/plugin.js.map +1 -1
  94. package/dist/scss/main.scss +9 -9
  95. package/dist/styles/main.css +2 -2
  96. package/package.json +6 -6
  97. package/dist/common/D3C1hTl9.js +0 -5
  98. package/dist/common/D3C1hTl9.js.map +0 -1
  99. package/dist/common/DI0JiGP5.js +0 -5
  100. package/dist/common/DI0JiGP5.js.map +0 -1
  101. package/dist/common/DgbGPOnI.js +0 -5
  102. package/dist/common/DgbGPOnI.js.map +0 -1
  103. package/dist/common/o-3UCjl8.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 ue, nextTick as Qe, withCtx as V, createSlots as ce, pushScopeId as sn, popScopeId as cn, provide as Ke, createVNode as re, toHandlers as oe, normalizeProps as pe, guardReactiveProps as he, defineAsyncComponent as Je, resolveDynamicComponent as dn } from "vue";
2
- import { sankeyLinkHorizontal as vn, sankey as fn, sankeyJustify as mn } 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";
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
+ import { sankeyLinkHorizontal as vn, sankey as mn, sankeyJustify as fn } from "d3-sankey";
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 }), (u, 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 xn = (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 wn(e, n) {
132
- var t;
133
- return xn(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
- var u, l;
136
- return (((u = o.values[n]) == null ? void 0 : u.value) ?? 0) > (((l = a.values[n]) == null ? void 0 : l.value) ?? 0) ? o : a;
135
+ var r, l;
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 fe(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())), u = 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(
230
- (m, r) => m + r.ref.getBoundingClientRect().width,
224
+ if (!t.value) return;
225
+ const c = t.value.reduce(
226
+ (f, u) => f + u.ref.getBoundingClientRect().width,
231
227
  0
232
- ), s = Math.ceil(c / u.value);
233
- o.value = s + s * Rn;
228
+ ), s = Math.ceil(c / r.value);
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, m = 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
- const r = a.value / m, f = typeof s == "number" && s > 0 && s + 1 || Math.ceil(o.value / r);
240
- return c % f === 0;
235
+ const u = a.value / f, m = typeof s == "number" && s > 0 && s + 1 || Math.ceil(o.value / u);
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,30 +280,30 @@ 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 {
298
294
  transform: `translate(${(e.value(s) ?? e.value(c)) - o.value}, 0)`
299
295
  };
300
296
  }
301
- function u(c) {
302
- var m;
297
+ function r(c) {
298
+ var f;
303
299
  const s = Math.max(
304
300
  e.value.step(),
305
- (c ? (m = c.getComputedTextLength) == null ? void 0 : m.call(c) : e.value.step()) + 20
301
+ (c ? (f = c.getComputedTextLength) == null ? void 0 : f.call(c) : e.value.step()) + 20
306
302
  );
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,34 +311,34 @@ 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
  };
329
325
  }
330
326
  return {
331
327
  getGridLinesAttributes: l,
332
- getTickGhostAttributes: u,
328
+ getTickGhostAttributes: r,
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 {
340
336
  transform: `translate(0, ${(e.value(s) ?? e.value(c)) - o.value})`
341
337
  };
342
338
  }
343
- function u(c) {
344
- var m;
345
- const s = (c ? (m = c.getComputedTextLength) == null ? void 0 : m.call(c) : 42) + t.value.tickPadding + Se;
339
+ function r(c) {
340
+ var f;
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"
@@ -367,11 +363,11 @@ const Kt = {
367
363
  }
368
364
  return {
369
365
  getGridLinesAttributes: l,
370
- getTickGhostAttributes: u,
366
+ getTickGhostAttributes: r,
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;
@@ -381,32 +377,32 @@ const Kt = {
381
377
  transform: `translate(${e.value(c)}, 0)`
382
378
  };
383
379
  }
384
- function u() {
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
  };
402
398
  }
403
399
  return {
404
400
  getGridLinesAttributes: l,
405
- getTickGhostAttributes: u,
401
+ getTickGhostAttributes: r,
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;
@@ -416,9 +412,9 @@ const Kt = {
416
412
  transform: `translate(0, ${e.value(c)})`
417
413
  };
418
414
  }
419
- function u(c) {
420
- var m;
421
- const s = (((m = c == null ? void 0 : c.getComputedTextLength) == null ? void 0 : m.call(c)) || 0) + t.value.tickPadding + Se;
415
+ function r(c) {
416
+ var f;
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,46 +424,46 @@ 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
  };
440
436
  }
441
437
  return {
442
438
  getGridLinesAttributes: l,
443
- getTickGhostAttributes: u,
439
+ getTickGhostAttributes: r,
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,26 +498,26 @@ 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: u, containerSize: l, hoveredIndex: i, options: c, orientation: s } = ee(o), m = Ce("isEmpty", S(!1)), r = Fe({}), f = 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")
510
506
  ), L = v(
511
507
  () => $.value === "x" && s.value === H.VERTICAL || $.value === "y" && s.value === H.HORIZONTAL
512
- ), { allOptions: g } = fe(
508
+ ), { allOptions: g } = me(
513
509
  c,
514
- $.value === "x" ? Pn : Cn
515
- ), { showTick: O } = Sn(u, f, g), N = v(
516
- () => m.value || !u.value || In(u.value)
510
+ $.value === "x" ? Vn : Pn
511
+ ), { showTick: O } = Rn(r, m, g), N = v(
512
+ () => f.value || !r.value || In(r.value)
517
513
  ), D = v(() => {
518
514
  var k, E, h, R;
519
515
  return $.value === "y" && N.value ? `translate(0, ${((k = l.value) == null ? void 0 : k.height) / 2})` : $.value === "x" && N.value ? `translate(-${((E = l.value) == null ? void 0 : E.width) / 2}, ${(h = l.value) == null ? void 0 : h.height})` : `translate(0, ${$.value === "x" ? (R = l.value) == null ? void 0 : R.height : 0})`;
520
516
  }), P = v(() => {
521
- if (!u.value) return [];
522
- if (de(u.value))
523
- return u.value.labels || u.value.domain();
524
- const { tickCount: k } = g.value, [E, h] = u.value.domain();
517
+ if (!r.value) return [];
518
+ if (de(r.value))
519
+ return r.value.labels || r.value.domain();
520
+ const { tickCount: k } = g.value, [E, h] = r.value.domain();
525
521
  return hn(E, h, k);
526
522
  }), w = v(() => {
527
523
  const { tickFormat: k } = g.value;
@@ -529,11 +525,11 @@ const Lt = /* @__PURE__ */ Z({
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(
536
- ...(f.value || []).map(
532
+ ...(m.value || []).map(
537
533
  (k) => {
538
534
  var E, h;
539
535
  return ((h = (E = k.ref).getBBox) == null ? void 0 : h.call(E).height) + U.value;
@@ -543,7 +539,7 @@ const Lt = /* @__PURE__ */ Z({
543
539
  ) : (
544
540
  // If y axis, get the tick width
545
541
  Math.max(
546
- ...(f.value || []).map(
542
+ ...(m.value || []).map(
547
543
  (k) => {
548
544
  var E, h;
549
545
  return ((h = (E = k.ref).getBBox) == null ? void 0 : h.call(E).width) + U.value;
@@ -561,35 +557,35 @@ 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
- if (!(!f.value || !f.value.length))
567
- return (E = f.value[k]) == null ? void 0 : E.ref;
562
+ if (!(!m.value || !m.value.length))
563
+ return (E = m.value[k]) == null ? void 0 : E.ref;
568
564
  }
569
- function me() {
565
+ function fe() {
570
566
  p.value = P.value.map(
571
567
  (k, E) => ({
572
568
  value: J(k),
573
- group: r.getTickGroupAttributes(k, E),
574
- ghost: r.getTickGhostAttributes(Ne(E)),
575
- label: r.getTickLabelAttributes(),
576
- gridline: r.getGridLinesAttributes()
569
+ group: u.getTickGroupAttributes(k, E),
570
+ ghost: u.getTickGhostAttributes(we(E)),
571
+ label: u.getTickLabelAttributes(),
572
+ gridline: u.getGridLinesAttributes()
577
573
  })
578
574
  );
579
575
  }
580
576
  function Te() {
581
- p.value && p.value.map((k) => (k.gridline = r.getGridLinesAttributes(), k));
577
+ p.value && p.value.map((k) => (k.gridline = u.getGridLinesAttributes(), k));
582
578
  }
583
579
  function Le() {
584
- if (!u.value) return;
585
- const k = u.value.step ? "bandScale" : "linearScale", E = Un[`${$.value}-${Jt[k]}`];
586
- Object.entries(E(u, l, g) || []).forEach(
580
+ if (!r.value) return;
581
+ const k = r.value.step ? "bandScale" : "linearScale", E = Zn[`${$.value}-${Jt[k]}`];
582
+ Object.entries(E(r, l, g) || []).forEach(
587
583
  ([h, R]) => {
588
- r[h] = R;
584
+ u[h] = R;
589
585
  }
590
586
  );
591
587
  }
592
- return X(u, Le, { flush: "sync", immediate: !0 }), X(u, me, { immediate: !0 }), X(f, me), X(K, (k) => a("lume__internal--axis-size", k)), X(o.containerSize, Te), ye(() => ze(y.value)), (k, E) => d(u) ? (_(), I("g", {
588
+ return X(r, Le, { flush: "sync", immediate: !0 }), X(r, fe, { immediate: !0 }), X(m, fe), X(K, (k) => a("lume__internal--axis-size", k)), X(o.containerSize, Te), ye(() => ze(y.value)), (k, E) => d(r) ? (_(), I("g", {
593
589
  key: 0,
594
590
  ref_key: "root",
595
591
  ref: y,
@@ -598,12 +594,12 @@ 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,
605
601
  ref_key: "tickRefs",
606
- ref: f
602
+ ref: m
607
603
  }, h, {
608
604
  "is-hidden": d(g).skip && !d(O)(R),
609
605
  "with-gridlines": d(g).gridLines,
@@ -619,28 +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), u = 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
- () => u.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
- return { computedX: l, computedY: i, shouldHaveMinWidth: a, shouldHaveMinHeight: u };
631
+ return { computedX: l, computedY: i, shouldHaveMinWidth: a, shouldHaveMinHeight: r };
636
632
  }
637
- function qn(e, n, t, o) {
638
- const a = S(0), u = S(0), l = v(() => `${e.value + t.value / 2}px ${n.value + o.value / 2}px`);
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`);
639
635
  return ye(() => {
640
- a.value = t.value, u.value = o.value;
641
- }), X(t, (i) => a.value = i), X(o, (i) => u.value = i), { computedWidth: a, computedHeight: u, 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 };
642
638
  }
643
- const eo = ["x", "y", "width", "height"], to = /* @__PURE__ */ Z({
639
+ const qn = ["x", "y", "width", "height"], eo = /* @__PURE__ */ Z({
644
640
  __name: "lume-bar",
645
641
  props: {
646
642
  x: {
@@ -677,21 +673,21 @@ const eo = ["x", "y", "width", "height"], to = /* @__PURE__ */ Z({
677
673
  }
678
674
  },
679
675
  emits: ["click", "mouseover", "mouseleave"],
680
- setup(e, { emit: n }) {
681
- const t = e, o = n, { x: a, y: u, width: l, height: i, transition: c, classList: s } = ee(t), m = S(null), r = 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(
682
678
  () => typeof s.value == "string" ? [s.value] : s.value
683
- ), f = v(() => c.value === "width"), y = v(() => c.value === "height"), p = qn(a, u, l, i), { computedX: b, computedY: $, shouldHaveMinWidth: L, shouldHaveMinHeight: g } = Qn(a, u, l, i), O = v(() => L.value ? 1 : (f.value ? p.computedWidth : l).value), N = v(() => g.value ? 1 : (y.value ? p.computedHeight : i).value), D = f.value || y.value ? p.transformOrigin : null;
684
- return ye(() => ze(m.value)), (P, w) => (_(), 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", {
685
681
  ref_key: "root",
686
- ref: m,
682
+ ref: f,
687
683
  class: te(["lume-bar", [
688
684
  {
689
685
  "lume-fill--faded": e.isFaded,
690
686
  "lume-bar--negative": e.isNegative,
691
- "lume-bar--transition-width": f.value,
687
+ "lume-bar--transition-width": m.value,
692
688
  "lume-bar--transition-height": y.value
693
689
  },
694
- ...r.value
690
+ ...u.value
695
691
  ]]),
696
692
  style: jt({ transformOrigin: d(D) }),
697
693
  x: d(b),
@@ -702,55 +698,55 @@ const eo = ["x", "y", "width", "height"], to = /* @__PURE__ */ Z({
702
698
  onClick: w[0] || (w[0] = (B) => o("click", B)),
703
699
  onMouseover: w[1] || (w[1] = (B) => o("mouseover", B)),
704
700
  onMouseleave: w[2] || (w[2] = (B) => o("mouseleave", B))
705
- }, null, 46, eo));
701
+ }, null, 46, qn));
706
702
  }
707
- }), dt = /* @__PURE__ */ q(to, [["__scopeId", "data-v-8e8f732a"]]);
708
- 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 || {}), ft = /* @__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))(ft || {}), mt = /* @__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))(mt || {});
709
- const no = ke.Categorical, Ge = ie.Skyblue, oo = vt.SkyTeal;
710
- function ao(e) {
711
- return e === ke.Divergent ? oo : Ge;
703
+ }), dt = /* @__PURE__ */ q(eo, [["__scopeId", "data-v-8e8f732a"]]);
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 || {});
705
+ const to = ke.Categorical, Se = ie.Skyblue, no = vt.SkyTeal;
706
+ function oo(e) {
707
+ return e === ke.Divergent ? no : Se;
712
708
  }
713
- function lo(e) {
714
- return Object.values(mt).includes(e);
709
+ function ao(e) {
710
+ return Object.values(ft).includes(e);
715
711
  }
716
- function $t(e, n) {
717
- 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({
718
714
  ...ie,
719
715
  ...qt,
720
- ...ft,
721
- ...mt
716
+ ...mt,
717
+ ...ft
722
718
  }).includes(e);
723
719
  }
724
- function uo(e, n) {
725
- const t = Object.values(ie).indexOf(e);
726
- 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];
727
723
  }
728
- function ro(e, n) {
729
- const t = 50 + n * 10;
730
- return `${e}-${t}`;
724
+ function ro(e, t) {
725
+ const n = 50 + t * 10;
726
+ return `${e}-${n}`;
731
727
  }
732
- function io(e, n) {
733
- const t = (n + 1) * 10;
734
- return `${e}-${t}`;
728
+ function uo(e, t) {
729
+ const n = (t + 1) * 10;
730
+ return `${e}-${n}`;
735
731
  }
736
- function Ot(e, n, t) {
737
- switch (n) {
732
+ function Ot(e, t, n) {
733
+ switch (t) {
738
734
  default:
739
735
  case ke.Categorical:
740
- return lo(e) ? e : uo(e, t);
736
+ return ao(e) ? e : lo(e, n);
741
737
  case ke.Sequential:
742
- return ro(e, t);
738
+ return ro(e, n);
743
739
  case ke.Divergent:
744
- return io(e, t);
740
+ return uo(e, n);
745
741
  }
746
742
  }
747
- function so(e, n, t = no, o) {
748
- 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));
749
745
  }
750
- function co(e) {
751
- return e.map((n) => $n(n) ? n : { value: n });
746
+ function so(e) {
747
+ return e.map((t) => $n(t) ? t : { value: t });
752
748
  }
753
- function vo(e) {
749
+ function co(e) {
754
750
  return e.__internal === !0;
755
751
  }
756
752
  const pt = (e = null) => ({
@@ -772,43 +768,43 @@ const pt = (e = null) => ({
772
768
  default: null
773
769
  }
774
770
  });
775
- function ht(e, n, t, o, a) {
776
- const u = Fe({
771
+ function ht(e, t, n, o, a) {
772
+ const r = Fe({
777
773
  width: 0,
778
774
  height: 0
779
- }), l = Bn(12), i = v(() => {
780
- var m;
781
- return e.value.length > 5 && ge(ve.DatasetLength), (m = e.value) == null ? void 0 : m.map(
782
- (r, f) => {
783
- if (vo(r)) return r;
784
- const y = co(r.values), p = so(
785
- r.color,
786
- t == null ? void 0 : t.value,
775
+ }), l = crypto.randomUUID(), i = v(() => {
776
+ var f;
777
+ return e.value.length > 5 && ge(ve.DatasetLength), (f = e.value) == null ? void 0 : f.map(
778
+ (u, m) => {
779
+ if (co(u)) return u;
780
+ const y = so(u.values), p = io(
781
+ u.color,
782
+ n == null ? void 0 : n.value,
787
783
  o == null ? void 0 : o.value.colorPalette,
788
- f
784
+ m
789
785
  );
790
786
  return {
791
- ...r,
787
+ ...u,
792
788
  values: y,
793
789
  color: p,
794
790
  __internal: !0
795
791
  };
796
792
  }
797
793
  );
798
- }), c = v(() => Array.isArray(n.value) ? n.value : Wt(e.value).map((m, r) => r));
799
- function s(m) {
800
- const r = (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) || m.height;
801
- u.width = m.width, u.height = r;
794
+ }), c = v(() => Array.isArray(t.value) ? t.value : Wt(e.value).map((f, u) => u));
795
+ function s(f) {
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;
797
+ r.width = f.width, r.height = u;
802
798
  }
803
799
  return {
804
800
  chartID: l,
805
801
  computedLabels: c,
806
- containerSize: u,
802
+ containerSize: r,
807
803
  internalData: i,
808
804
  updateSize: s
809
805
  };
810
806
  }
811
- const fo = () => ({
807
+ const vo = () => ({
812
808
  xScale: {
813
809
  type: Function,
814
810
  default: null
@@ -818,23 +814,23 @@ const fo = () => ({
818
814
  default: null
819
815
  }
820
816
  });
821
- function mo(e, n, t, o, a) {
822
- const u = S(null), l = S(null);
817
+ function mo(e, t, n, o, a) {
818
+ const r = G(null), l = G(null);
823
819
  function i() {
824
- var m, r, f, y;
825
- const { width: c, height: s } = t;
826
- !c && !s || (o.value === H.HORIZONTAL ? (u.value = (m = e.value) != null && m.length ? xt(
820
+ var f, u, m, y;
821
+ const { width: c, height: s } = n;
822
+ !c && !s || (o.value === H.HORIZONTAL ? (r.value = (f = e.value) != null && f.length ? xt(
827
823
  e.value,
828
824
  c,
829
825
  o.value,
830
826
  a.value.startOnZero
831
- ) : null, l.value = (r = n.value) != null && r.length ? It(
832
- n.value,
827
+ ) : null, l.value = (u = t.value) != null && u.length ? It(
828
+ t.value,
833
829
  s,
834
830
  o.value,
835
831
  a.value
836
- ) : null) : (u.value = (f = n.value) != null && f.length ? It(
837
- n.value,
832
+ ) : null) : (r.value = (m = t.value) != null && m.length ? It(
833
+ t.value,
838
834
  c,
839
835
  o.value,
840
836
  a.value
@@ -845,42 +841,45 @@ function mo(e, n, t, o, a) {
845
841
  a.value.startOnZero
846
842
  ) : null));
847
843
  }
848
- return Vt(i), { xScale: u, yScale: l };
844
+ return Vt(i), { xScale: r, yScale: l };
849
845
  }
850
- function It(e, n, t, o) {
851
- const a = [0, n], { padding: u, paddingInner: l, paddingOuter: i } = o, c = u ?? (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);
852
848
  return Object.assign(
853
- Be().range(a).paddingInner(l ?? c).paddingOuter(i ?? c).domain(e.map((s, m) => m)),
849
+ Me().range(a).paddingInner(l ?? c).paddingOuter(i ?? c).domain(e.map((s, f) => f)),
854
850
  { labels: e }
855
851
  );
856
852
  }
857
- function xt(e, n, t, o) {
858
- const a = Ft(e).filter((m) => m != null), u = [0, n];
853
+ function xt(e, t, n, o) {
854
+ const a = Ft(e).filter((f) => f != null), r = [0, t];
859
855
  if (a.length === 0)
860
- return Me().range(u).domain([0, 0]).nice();
861
- const l = Math.min(...a), i = o && l > 0 ? 0 : l, c = Math.max(...a), s = t === H.HORIZONTAL ? [i, c] : [c, i];
862
- return Me().range(u).domain(s).nice();
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();
863
862
  }
864
863
  function wt(e) {
865
864
  return (e == null ? void 0 : e.range) !== void 0 || (e == null ? void 0 : e.copy) !== void 0;
866
865
  }
867
- function tt(e, n) {
868
- 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);
869
868
  }
870
- function Et(e, n, {
871
- padding: t,
869
+ function Et(e, t, {
870
+ padding: n,
872
871
  paddingInner: o,
873
872
  paddingOuter: a
874
873
  } = {}) {
875
- const u = t ?? (n === H.HORIZONTAL ? Xt : Ut);
876
- return e.copy().paddingInner(o ?? u).paddingOuter(a ?? u);
874
+ const r = n ?? (t === H.HORIZONTAL ? Xt : Ut);
875
+ return e.copy().paddingInner(o ?? r).paddingOuter(a ?? r);
877
876
  }
878
877
  function gt(e) {
879
878
  return Object.values(H).includes(e);
880
879
  }
881
- const we = (e, n = !0) => ({
880
+ const Ie = (e, t = !0) => ({
882
881
  ...pt(e),
883
- ...fo(),
882
+ ...vo(),
884
883
  ...Re(),
885
884
  classList: {
886
885
  type: [String, Array],
@@ -890,14 +889,14 @@ const we = (e, n = !0) => ({
890
889
  type: Number,
891
890
  default: null
892
891
  },
893
- ...n ? {
892
+ ...t ? {
894
893
  orientation: {
895
894
  type: String,
896
895
  default: H.VERTICAL,
897
896
  validator: gt
898
897
  }
899
898
  } : {}
900
- }), po = (e) => ({
899
+ }), fo = (e) => ({
901
900
  ...pt(e),
902
901
  ...Re(),
903
902
  hoveredElement: {
@@ -905,21 +904,21 @@ const we = (e, n = !0) => ({
905
904
  default: null
906
905
  }
907
906
  });
908
- function ho() {
909
- const e = S(), n = Fe({
907
+ function po() {
908
+ const e = G(), t = Fe({
910
909
  dimensions: {}
911
- }), t = new ResizeObserver((o) => {
910
+ }), n = new ResizeObserver((o) => {
912
911
  o.forEach((a) => {
913
- n.dimensions = a.contentRect;
912
+ t.dimensions = a.contentRect;
914
913
  });
915
914
  });
916
915
  return ye(() => {
917
- t.observe(e.value);
916
+ n.observe(e.value);
918
917
  }), Pt(() => {
919
- t.unobserve(e.value);
920
- }), { resizeState: n, resizeRef: e };
918
+ n.unobserve(e.value);
919
+ }), { resizeState: t, resizeRef: e };
921
920
  }
922
- const go = ["height"], yo = ["transform"], _o = /* @__PURE__ */ Z({
921
+ const ho = ["height"], go = ["transform"], yo = /* @__PURE__ */ Z({
923
922
  __name: "lume-chart-container",
924
923
  props: {
925
924
  margins: {
@@ -945,23 +944,23 @@ const go = ["height"], yo = ["transform"], _o = /* @__PURE__ */ Z({
945
944
  }
946
945
  },
947
946
  emits: ["click", "mouseenter", "mouseleave", "resize"],
948
- setup(e, { emit: n }) {
949
- const t = e, o = n, { margins: a, containerSize: u } = ee(t), l = S(null), { resizeRef: i, resizeState: c } = ho(), s = v(
950
- () => u.value.height + a.value.top + a.value.bottom
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(
949
+ () => r.value.height + a.value.top + a.value.bottom
951
950
  );
952
951
  return Vt(() => {
953
952
  if (!l.value) return;
954
- const { width: m } = c.dimensions, { height: r } = l.value.getBoundingClientRect();
955
- if (!m || t.orientation === H.VERTICAL && !r)
953
+ const { width: f } = c.dimensions, { height: u } = l.value.getBoundingClientRect();
954
+ if (!f || n.orientation === H.VERTICAL && !u)
956
955
  return;
957
- const f = m - a.value.left - a.value.right, y = r - a.value.top - a.value.bottom, p = {
958
- width: f > 0 ? f : 0,
956
+ const m = f - a.value.left - a.value.right, y = u - a.value.top - a.value.bottom, p = {
957
+ width: m > 0 ? m : 0,
959
958
  height: y > 0 ? y : 0,
960
- outerWidth: m,
961
- outerHeight: r
959
+ outerWidth: f,
960
+ outerHeight: u
962
961
  };
963
962
  o("resize", p);
964
- }), (m, r) => (_(), I("div", {
963
+ }), (f, u) => (_(), I("div", {
965
964
  ref_key: "resizeRef",
966
965
  ref: i,
967
966
  class: te(["lume-chart-container", {
@@ -969,7 +968,7 @@ const go = ["height"], yo = ["transform"], _o = /* @__PURE__ */ Z({
969
968
  }]),
970
969
  "data-j-chart-container": ""
971
970
  }, [
972
- M(m.$slots, "header", {}, void 0, !0),
971
+ M(f.$slots, "header", {}, void 0, !0),
973
972
  (_(), I("svg", {
974
973
  ref_key: "root",
975
974
  ref: l,
@@ -978,23 +977,23 @@ const go = ["height"], yo = ["transform"], _o = /* @__PURE__ */ Z({
978
977
  }]),
979
978
  height: s.value,
980
979
  "data-j-chart-container__root": "",
981
- onClick: r[0] || (r[0] = (f) => o("click", f)),
982
- onMouseenter: r[1] || (r[1] = (f) => o("mouseenter", f)),
983
- onMouseleave: r[2] || (r[2] = (f) => o("mouseleave", f))
980
+ onClick: u[0] || (u[0] = (m) => o("click", m)),
981
+ onMouseenter: u[1] || (u[1] = (m) => o("mouseenter", m)),
982
+ onMouseleave: u[2] || (u[2] = (m) => o("mouseleave", m))
984
983
  }, [
985
- G("g", {
984
+ S("g", {
986
985
  transform: `translate(${d(a).left}, ${d(a).top})`,
987
986
  class: "lume-chart-container__group",
988
987
  "data-j-chart-container__group": ""
989
988
  }, [
990
- M(m.$slots, "default", {}, void 0, !0)
991
- ], 8, yo)
992
- ], 42, go)),
993
- M(m.$slots, "footer", {}, void 0, !0),
994
- M(m.$slots, "extra", {}, void 0, !0)
989
+ M(f.$slots, "default", {}, void 0, !0)
990
+ ], 8, go)
991
+ ], 42, ho)),
992
+ M(f.$slots, "footer", {}, void 0, !0),
993
+ M(f.$slots, "extra", {}, void 0, !0)
995
994
  ], 2));
996
995
  }
997
- }), 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({
998
997
  __name: "lume-chart-legend",
999
998
  props: {
1000
999
  data: {
@@ -1004,59 +1003,59 @@ const go = ["height"], yo = ["transform"], _o = /* @__PURE__ */ Z({
1004
1003
  }
1005
1004
  },
1006
1005
  emits: ["click", "mouseenter", "mouseleave"],
1007
- setup(e, { emit: n }) {
1008
- const t = n;
1006
+ setup(e, { emit: t }) {
1007
+ const n = t;
1009
1008
  return (o, a) => (_(), I("div", {
1010
1009
  class: "lume-chart-legend",
1011
1010
  "data-j-chart-legend": "",
1012
- onMouseleave: a[0] || (a[0] = (u) => t("mouseleave"))
1011
+ onMouseleave: a[0] || (a[0] = (r) => n("mouseleave"))
1013
1012
  }, [
1014
- (_(!0), I(Q, null, W(e.data, (u, l) => (_(), I("div", {
1013
+ (_(!0), I(Q, null, W(e.data, (r, l) => (_(), I("div", {
1015
1014
  key: `legend-item-${l}`,
1016
1015
  class: "lume-chart-legend__item lume-typography--caption",
1017
1016
  tabindex: "0",
1018
1017
  "data-j-chart-legend__symbol-wrapper": "",
1019
- onClick: (i) => t("click", { index: l, dataset: u, event: i }),
1020
- onMouseenter: (i) => t("mouseenter", { index: l, dataset: u, event: i })
1018
+ onClick: (i) => n("click", { index: l, dataset: r, event: i }),
1019
+ onMouseenter: (i) => n("mouseenter", { index: l, dataset: r, event: i })
1021
1020
  }, [
1022
- G("span", {
1023
- class: te(["lume-chart-legend__symbol", `lume-background-color--${u.color}`]),
1021
+ S("span", {
1022
+ class: te(["lume-chart-legend__symbol", `lume-background-color--${r.color}`]),
1024
1023
  "data-j-chart-legend__symbol": ""
1025
1024
  }, null, 2),
1026
- se(" " + ne(u.label || l), 1)
1027
- ], 40, bo))), 128))
1025
+ se(" " + ne(r.label || l), 1)
1026
+ ], 40, ko))), 128))
1028
1027
  ], 32));
1029
1028
  }
1030
- }), Nt = /* @__PURE__ */ q(Ao, [["__scopeId", "data-v-6f1d1c44"]]), To = {}, Lo = {
1029
+ }), Nt = /* @__PURE__ */ q(bo, [["__scopeId", "data-v-6f1d1c44"]]), Ao = {}, To = {
1031
1030
  class: "lume-tooltip__title",
1032
1031
  "data-j-tooltip__title": ""
1033
1032
  };
1034
- function $o(e, n) {
1035
- return _(), I("div", Lo, [
1033
+ function Lo(e, t) {
1034
+ return _(), I("div", To, [
1036
1035
  M(e.$slots, "default", {}, void 0, !0)
1037
1036
  ]);
1038
1037
  }
1039
- const Oo = /* @__PURE__ */ q(To, [["render", $o], ["__scopeId", "data-v-8af3fac6"]]), Io = {}, xo = {
1038
+ const $o = /* @__PURE__ */ q(Ao, [["render", Lo], ["__scopeId", "data-v-8af3fac6"]]), Oo = {}, Io = {
1040
1039
  class: "lume-tooltip__item",
1041
1040
  "data-j-tooltip__summary-item": ""
1042
- }, wo = { class: "lume-tooltip__value" };
1043
- function Eo(e, n) {
1044
- return _(), I("li", xo, [
1045
- G("span", null, [
1041
+ }, xo = { class: "lume-tooltip__value" };
1042
+ function wo(e, t) {
1043
+ return _(), I("li", Io, [
1044
+ S("span", null, [
1046
1045
  M(e.$slots, "default", {}, void 0, !0)
1047
1046
  ]),
1048
- G("strong", wo, [
1047
+ S("strong", xo, [
1049
1048
  M(e.$slots, "value", {}, void 0, !0)
1050
1049
  ])
1051
1050
  ]);
1052
1051
  }
1053
- 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 = {
1054
1053
  class: "lume-tooltip__item",
1055
1054
  "data-j-tooltip__item": ""
1056
- }, Ho = { "data-j-tooltip__item__label": "" }, Bo = {
1055
+ }, Do = { "data-j-tooltip__item__label": "" }, Ho = {
1057
1056
  class: "lume-tooltip__value",
1058
1057
  "data-j-tooltip__item__value": ""
1059
- }, Mo = /* @__PURE__ */ Z({
1058
+ }, Bo = /* @__PURE__ */ Z({
1060
1059
  __name: "lume-tooltip-item",
1061
1060
  props: {
1062
1061
  color: {
@@ -1065,26 +1064,26 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1065
1064
  }
1066
1065
  },
1067
1066
  setup(e) {
1068
- return (n, t) => (_(), I("li", Do, [
1067
+ return (t, n) => (_(), I("li", No, [
1069
1068
  e.color ? (_(), I("span", {
1070
1069
  key: 0,
1071
1070
  class: te([[`lume-background-color--${e.color}`], "lume-tooltip__symbol"]),
1072
1071
  "data-j-tooltip__item__symbol": ""
1073
1072
  }, null, 2)) : z("", !0),
1074
- G("span", Ho, [
1075
- M(n.$slots, "label", {}, void 0, !0)
1073
+ S("span", Do, [
1074
+ M(t.$slots, "label", {}, void 0, !0)
1076
1075
  ]),
1077
- G("strong", Bo, [
1078
- M(n.$slots, "value", {}, void 0, !0)
1076
+ S("strong", Ho, [
1077
+ M(t.$slots, "value", {}, void 0, !0)
1079
1078
  ])
1080
1079
  ]));
1081
1080
  }
1082
- }), 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 = {
1083
1082
  key: 0,
1084
1083
  class: "lume-tooltip__break"
1085
- }, Vo = /* @__PURE__ */ So(() => /* @__PURE__ */ G("hr", null, null, -1)), Po = [
1086
- Vo
1087
- ], Co = /* @__PURE__ */ Z({
1084
+ }, jo = /* @__PURE__ */ Ro(() => /* @__PURE__ */ S("hr", null, null, -1)), Vo = [
1085
+ jo
1086
+ ], Po = /* @__PURE__ */ Z({
1088
1087
  __name: "lume-tooltip",
1089
1088
  props: {
1090
1089
  opened: {
@@ -1102,7 +1101,7 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1102
1101
  position: {
1103
1102
  type: String,
1104
1103
  default: "auto",
1105
- validator: (e) => Vn.includes(e)
1104
+ validator: (e) => jn.includes(e)
1106
1105
  },
1107
1106
  fixedPositioning: {
1108
1107
  type: Boolean,
@@ -1127,12 +1126,12 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1127
1126
  ...Re()
1128
1127
  },
1129
1128
  emits: ["opened", "moved", "closed", "tooltip-mouseenter", "tooltip-mouseleave"],
1130
- setup(e, { emit: n }) {
1131
- const t = e, o = n, a = S(null), { items: u, options: l } = ee(t), i = ue(), c = S(null), { allOptions: s } = fe(l), m = v(
1132
- () => s.value.fixedPositioning ?? t.fixedPositioning
1133
- ), r = v(
1134
- () => m.value ? "fixed" : "absolute"
1135
- ), f = v(() => [
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
1132
+ ), u = v(
1133
+ () => f.value ? "fixed" : "absolute"
1134
+ ), m = v(() => [
1136
1135
  {
1137
1136
  name: "computeStyles",
1138
1137
  options: {
@@ -1144,34 +1143,34 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1144
1143
  name: "offset",
1145
1144
  options: { offset: [0, s.value.offset || 8] }
1146
1145
  },
1147
- ...t.modifiers || []
1146
+ ...n.modifiers || []
1148
1147
  ]), y = v(
1149
- () => s.value.showTitle !== !1 && t.title != null
1148
+ () => s.value.showTitle !== !1 && n.title != null
1150
1149
  ), p = v(() => Ve(s.value.valueFormat)), b = v(() => Ve(s.value.titleFormat)), $ = v(
1151
1150
  () => {
1152
1151
  var P;
1153
- return ((P = u.value) == null ? void 0 : P.find((w) => w.isSummary)) || {
1154
- 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
1155
1154
  };
1156
1155
  }
1157
- ), L = v(() => i.summary || $.value.label), g = v(() => t.inverse || s.value.inverse ? [...u.value].reverse() : u.value);
1156
+ ), L = v(() => i.summary || $.value.label), g = v(() => n.inverse || s.value.inverse ? [...r.value].reverse() : r.value);
1158
1157
  function O() {
1159
- t.targetElement && a.value && (c.value = kn(t.targetElement, a.value, {
1160
- placement: t.position,
1161
- strategy: r.value,
1162
- modifiers: f.value
1163
- }), o("opened", t.targetElement));
1158
+ n.targetElement && a.value && (c.value = kn(n.targetElement, a.value, {
1159
+ placement: n.position,
1160
+ strategy: u.value,
1161
+ modifiers: m.value
1162
+ }), o("opened", n.targetElement));
1164
1163
  }
1165
1164
  function N() {
1166
1165
  c.value && (c.value.destroy(), o("closed"), a.value && a.value.classList.remove("lume-tooltip--animated"));
1167
1166
  }
1168
1167
  function D() {
1169
- c.value && (s.value.withAnimation !== !1 && a.value && a.value.classList.add("lume-tooltip--animated"), t.targetElement ? function() {
1170
- 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);
1171
1170
  }() : N());
1172
1171
  }
1173
1172
  return X(
1174
- () => t.targetElement,
1173
+ () => n.targetElement,
1175
1174
  async (P, w) => {
1176
1175
  !w && P ? (await Qe(), O()) : D();
1177
1176
  }
@@ -1188,16 +1187,16 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1188
1187
  }, [
1189
1188
  M(P.$slots, "default", {}, () => [
1190
1189
  M(P.$slots, "title", {}, () => [
1191
- y.value ? (_(), Y(d(Oo), { key: 0 }, {
1190
+ y.value ? (_(), Y(d($o), { key: 0 }, {
1192
1191
  default: V(() => [
1193
1192
  se(ne(b.value(e.title)), 1)
1194
1193
  ]),
1195
1194
  _: 1
1196
1195
  })) : z("", !0)
1197
1196
  ], !0),
1198
- G("ul", Go, [
1197
+ S("ul", Go, [
1199
1198
  M(P.$slots, "summary", {}, () => [
1200
- L.value ? (_(), Y(d(No), { key: 0 }, ce({
1199
+ L.value ? (_(), Y(d(Eo), { key: 0 }, ce({
1201
1200
  default: V(() => [
1202
1201
  se(ne($.value.label) + " ", 1)
1203
1202
  ]),
@@ -1212,9 +1211,9 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1212
1211
  } : void 0
1213
1212
  ]), 1024)) : z("", !0)
1214
1213
  ], !0),
1215
- L.value ? (_(), I("li", jo, Po)) : z("", !0),
1214
+ L.value ? (_(), I("li", So, Vo)) : z("", !0),
1216
1215
  M(P.$slots, "items", {}, () => [
1217
- (_(!0), I(Q, null, W(g.value, (B) => (_(), Y(d(Ro), {
1216
+ (_(!0), I(Q, null, W(g.value, (B) => (_(), Y(d(Mo), {
1218
1217
  key: B.label,
1219
1218
  color: B.color
1220
1219
  }, {
@@ -1231,7 +1230,7 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1231
1230
  ], !0)
1232
1231
  ], 34)) : z("", !0);
1233
1232
  }
1234
- }), Fo = /* @__PURE__ */ q(Co, [["__scopeId", "data-v-e7c90551"]]), We = () => ({
1233
+ }), Co = /* @__PURE__ */ q(Po, [["__scopeId", "data-v-6f13599d"]]), We = () => ({
1235
1234
  data: {
1236
1235
  type: Array,
1237
1236
  required: !0
@@ -1273,7 +1272,7 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1273
1272
  type: [String, Array],
1274
1273
  default: () => []
1275
1274
  }
1276
- }), zo = { class: "lume-overlay-group" }, Wo = /* @__PURE__ */ Z({
1275
+ }), Fo = { class: "lume-overlay-group" }, zo = /* @__PURE__ */ Z({
1277
1276
  __name: "lume-overlay-group",
1278
1277
  props: {
1279
1278
  ...We(),
@@ -1283,12 +1282,12 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1283
1282
  }
1284
1283
  },
1285
1284
  emits: ["click", "lume__internal--hover", "mouseover"],
1286
- setup(e, { emit: n }) {
1287
- const t = e, o = n, { data: a, orientation: u, xScale: l, yScale: i } = ee(t), c = v(() => Wt(a));
1288
- function s(m) {
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));
1287
+ function s(f) {
1289
1288
  var L;
1290
- const r = u.value === H.HORIZONTAL ? i.value : l.value, f = r.domain(), y = On(r), p = ((L = r.paddingInner) == null ? void 0 : L.call(r)) ?? 0, b = y * p, $ = de(r) ? r(f[m]) - b / 2 : r(m) - y / 2;
1291
- return u.value === H.HORIZONTAL ? {
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;
1290
+ return r.value === H.HORIZONTAL ? {
1292
1291
  width: Math.max(...l.value.range()),
1293
1292
  height: y,
1294
1293
  transform: `translate(0, ${$})`
@@ -1298,8 +1297,8 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1298
1297
  transform: `translate(${$}, 0)`
1299
1298
  };
1300
1299
  }
1301
- return (m, r) => (_(), I("g", zo, [
1302
- (_(!0), I(Q, null, W(c.value, (f, y) => (_(), Y(d(dt), j(s(y), {
1300
+ return (f, u) => (_(), I("g", Fo, [
1301
+ (_(!0), I(Q, null, W(c.value, (m, y) => (_(), Y(d(dt), j(s(y), {
1303
1302
  key: `overlay-${y}`,
1304
1303
  "data-j-lume-overlay-group": y,
1305
1304
  transition: !1,
@@ -1309,86 +1308,86 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
1309
1308
  }), null, 16, ["data-j-lume-overlay-group", "onMouseover", "onClick"]))), 128))
1310
1309
  ]));
1311
1310
  }
1312
- }), _e = (e, n) => {
1313
- function t(u, ...l) {
1311
+ }), _e = (e, t) => {
1312
+ function n(r, ...l) {
1314
1313
  }
1315
- function o(u, l) {
1314
+ function o(r, l) {
1316
1315
  }
1317
- return { componentEventPropagator: {}, emitInternalEvent: t, listenInternalEvent: o };
1316
+ return { componentEventPropagator: {}, emitInternalEvent: n, listenInternalEvent: o };
1318
1317
  };
1319
- function Zo(e) {
1318
+ function Wo(e) {
1320
1319
  return { hasNegativeValues: v(
1321
- () => Ft(e.value).some((t) => t < 0)
1320
+ () => Ft(e.value).some((n) => n < 0)
1322
1321
  ) };
1323
1322
  }
1324
- function Uo(e, n, t, o) {
1323
+ function Zo(e, t, n, o) {
1325
1324
  const a = v(
1326
1325
  () => o.value === H.HORIZONTAL
1327
- ), u = v(
1326
+ ), r = v(
1328
1327
  () => {
1329
1328
  var s;
1330
- 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);
1331
1330
  }
1332
1331
  ), l = v(
1333
1332
  () => {
1334
1333
  var s;
1335
- 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;
1336
1335
  }
1337
1336
  ), i = v(
1338
1337
  () => {
1339
1338
  var s;
1340
- 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})`;
1341
1340
  }
1342
1341
  );
1343
1342
  return { negativeBarAttributes: v(() => ({
1344
1343
  width: l.value,
1345
- height: u.value,
1344
+ height: r.value,
1346
1345
  transform: i.value
1347
1346
  })) };
1348
1347
  }
1349
- function Xo(e, n) {
1350
- return e.reduce((t, o) => ct(o.values, n).map(
1351
- (a, u) => t[u] ? a.value > t[u] ? a.value : t[u] : 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
1352
1351
  ), []);
1353
1352
  }
1354
- function Yo(e, n) {
1355
- return e.reduce((t, o) => ct(o.values, n).map(
1356
- (a, u) => {
1353
+ function Xo(e, t) {
1354
+ return e.reduce((n, o) => ct(o.values, t).map(
1355
+ (a, r) => {
1357
1356
  const l = a.value == null || a.value < 0 ? 0 : a.value;
1358
- return t[u] ? t[u] + l : l;
1357
+ return n[r] ? n[r] + l : l;
1359
1358
  }
1360
1359
  ), []);
1361
1360
  }
1362
1361
  const Dt = {
1363
- "stacked-bar": Yo
1362
+ "stacked-bar": Xo
1364
1363
  };
1365
- function en(e, n, t, o, a, u, l, i) {
1364
+ function en(e, t, n, o, a, r, l, i) {
1366
1365
  const c = v(
1367
1366
  () => {
1368
- var m;
1369
- return n.value.withTooltip !== !1 && !((m = n.value.tooltipOptions) != null && m.targetElement);
1367
+ var f;
1368
+ return t.value.withTooltip !== !1 && !((f = t.value.tooltipOptions) != null && f.targetElement);
1370
1369
  }
1371
1370
  );
1372
- function s(m) {
1371
+ function s(f) {
1373
1372
  var y;
1374
- const r = ((y = a == null ? void 0 : a.value) == null ? void 0 : y.length) ?? 0, f = i != null && i.value && Dt[i.value] ? Dt[i.value](
1375
- m,
1376
- r
1377
- ) : Xo(m, r);
1378
- e.value = f.map((p, b) => ({
1379
- cx: (u == null ? void 0 : u.value) === H.HORIZONTAL ? t.value(p) : tt(t.value, b),
1380
- cy: (u == null ? void 0 : u.value) === H.HORIZONTAL ? tt(o.value, b) : o.value(p)
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](
1374
+ f,
1375
+ u
1376
+ ) : Uo(f, u);
1377
+ e.value = m.map((p, b) => ({
1378
+ cx: (r == null ? void 0 : r.value) === H.HORIZONTAL ? n.value(p) : tt(n.value, b),
1379
+ cy: (r == null ? void 0 : r.value) === H.HORIZONTAL ? tt(o.value, b) : o.value(p)
1381
1380
  }));
1382
1381
  }
1383
1382
  return X(
1384
- [t, o],
1383
+ [n, o],
1385
1384
  () => {
1386
- 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);
1387
1386
  },
1388
1387
  { immediate: !0 }
1389
1388
  ), { shouldGenerateTooltipAnchors: c, updateTooltipAnchorAttributes: s };
1390
1389
  }
1391
- function Ko() {
1390
+ function Yo() {
1392
1391
  const e = Fe({
1393
1392
  opened: !1,
1394
1393
  targetElement: null
@@ -1399,14 +1398,14 @@ function Ko() {
1399
1398
  e.opened = !1, e.targetElement = null;
1400
1399
  } };
1401
1400
  }
1402
- function Jo(e) {
1401
+ function Ko(e) {
1403
1402
  return { getTooltipItems: v(
1404
- () => (t) => e.value.map(({ color: o, label: a, values: u }) => {
1403
+ () => (n) => e.value.map(({ color: o, label: a, values: r }) => {
1405
1404
  var l, i, c;
1406
1405
  return {
1407
- color: ((l = u[t]) == null ? void 0 : l.color) || o,
1406
+ color: ((l = r[n]) == null ? void 0 : l.color) || o,
1408
1407
  label: a,
1409
- value: ((i = u[t]) == null ? void 0 : i.label) ?? ((c = u[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
1410
1409
  };
1411
1410
  })
1412
1411
  ) };
@@ -1425,61 +1424,61 @@ const nt = 16, ot = 8, at = 28, lt = 24, be = {
1425
1424
  left: lt
1426
1425
  }
1427
1426
  };
1428
- function Qo(e) {
1427
+ function Jo(e) {
1429
1428
  return !e || e === "auto" || e.top == null || e.top === "auto" ? nt : e.top;
1430
1429
  }
1431
- function qo(e) {
1430
+ function Qo(e) {
1432
1431
  return !e || e === "auto" || e.right == null || e.right === "auto" ? ot : e.right;
1433
1432
  }
1434
- function ea(e, n) {
1435
- 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;
1436
1435
  }
1437
- function ta(e, n) {
1438
- 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;
1439
1438
  }
1440
- 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 = {
1441
1440
  key: 0,
1442
1441
  class: "lume-chart__title lume-chart-title lume-typography--display"
1443
- }, la = { class: "lume-chart__controls" }, ua = { class: "lume-chart__header-section" }, ra = {
1442
+ }, aa = { class: "lume-chart__controls" }, la = { class: "lume-chart__header-section" }, ra = {
1444
1443
  key: 0,
1445
1444
  class: "lume-chart__axis-title lume-axis-title lume-typography--caption"
1446
- }, ia = { key: 3 }, sa = ["r"], ca = {
1445
+ }, ua = { key: 3 }, ia = ["r"], sa = {
1447
1446
  key: 0,
1448
1447
  class: "lume-chart__axis-title lume-chart__axis-title--centered lume-axis-title lume-typography--body"
1449
- }, da = /* @__PURE__ */ Z({
1448
+ }, ca = /* @__PURE__ */ Z({
1450
1449
  __name: "lume-chart",
1451
1450
  props: {
1452
- ...we(),
1451
+ ...Ie(),
1453
1452
  chartType: {
1454
1453
  type: String,
1455
1454
  default: null
1456
1455
  }
1457
1456
  },
1458
- setup(e, { emit: n }) {
1459
- const t = e, o = ue(), a = n, { data: u, labels: l, color: i, options: c, orientation: s, chartType: m } = ee(t), r = S(-1), f = S(null), y = S(null), p = S([]), b = S(null), $ = S(0), L = S(0), { allOptions: g } = fe(c), { internalData: O, computedLabels: N, containerSize: D, updateSize: P, chartID: w } = ht(u, l, i, g, s), { xScale: B, yScale: U } = mo(
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(
1460
1459
  O,
1461
1460
  N,
1462
1461
  D,
1463
1462
  s,
1464
1463
  g
1465
1464
  ), K = v(() => ({
1466
- top: Qo(g.value.margins),
1467
- right: qo(g.value.margins),
1468
- bottom: ea(g.value.margins, $.value),
1469
- 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)
1470
1469
  })), J = v(() => {
1471
1470
  var A;
1472
- return t.xScale ? wt(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;
1473
1472
  }), C = v(() => {
1474
1473
  var A;
1475
- return t.yScale ? wt(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;
1476
1475
  }), ae = v(() => ({
1477
1476
  ...g.value.xAxisOptions,
1478
1477
  withHover: s.value === H.VERTICAL
1479
- })), Ne = v(() => ({
1478
+ })), we = v(() => ({
1480
1479
  ...g.value.yAxisOptions,
1481
1480
  withHover: s.value === H.HORIZONTAL
1482
- })), me = v(() => {
1481
+ })), fe = v(() => {
1483
1482
  var A;
1484
1483
  return (A = g.value.xAxisOptions) == null ? void 0 : A.title;
1485
1484
  }), Te = v(() => {
@@ -1487,16 +1486,16 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1487
1486
  return (A = g.value.yAxisOptions) == null ? void 0 : A.title;
1488
1487
  }), Le = v(() => {
1489
1488
  var A;
1490
- return ((A = g.value.xAxisOptions) == null ? void 0 : A.withTitle) !== !1 && me.value;
1489
+ return ((A = g.value.xAxisOptions) == null ? void 0 : A.withTitle) !== !1 && fe.value;
1491
1490
  }), k = v(() => {
1492
1491
  var A;
1493
1492
  return ((A = g.value.yAxisOptions) == null ? void 0 : A.withTitle) !== !1 && Te.value;
1494
1493
  }), E = v(
1495
- () => u.value.every((A) => !A.values.length) || u.value.every((A) => A.values.every((T) => T === null))
1494
+ () => r.value.every((A) => !A.values.length) || r.value.every((A) => A.values.every((T) => T === null))
1496
1495
  ), h = v(() => {
1497
1496
  const A = [], { noBaseScales: T } = g.value;
1498
1497
  return T || A.push(() => !!(J.value && C.value)), A.every((x) => x() === !0);
1499
- }), { hasNegativeValues: R } = Zo(O), { negativeBarAttributes: F } = Uo(
1498
+ }), { hasNegativeValues: R } = Wo(O), { negativeBarAttributes: F } = Zo(
1500
1499
  D,
1501
1500
  J,
1502
1501
  C,
@@ -1509,32 +1508,32 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1509
1508
  l,
1510
1509
  s,
1511
1510
  O,
1512
- m
1513
- ), { tooltipConfig: De, showTooltip: Ze, hideTooltip: Ue } = Ko(), { getTooltipItems: $e } = Jo(O), He = v(
1511
+ f
1512
+ ), { tooltipConfig: Ee, showTooltip: Ze, hideTooltip: Ue } = Yo(), { getTooltipItems: Ne } = Ko(O), De = v(
1514
1513
  () => {
1515
1514
  var A;
1516
1515
  return ((A = g.value.tooltipOptions) == null ? void 0 : A.position) || "top";
1517
1516
  }
1518
- ), Oe = v(() => {
1517
+ ), $e = v(() => {
1519
1518
  var T;
1520
1519
  const A = (T = g.value.tooltipOptions) == null ? void 0 : T.withPointerEvents;
1521
- return De.opened && (!A || A && b.value === !1);
1520
+ return Ee.opened && (!A || A && b.value === !1);
1522
1521
  });
1523
1522
  function je(A) {
1524
1523
  var x;
1525
- if (g.value.withHover === !1 || A === r.value) return;
1526
- const T = r.value;
1527
- if (r.value = A, g.value.withTooltip !== !1) {
1528
- const Ye = (x = g.value.tooltipOptions) != null && x.targetElement ? g.value.tooltipOptions.targetElement === "self" ? y.value.$el : g.value.tooltipOptions.targetElement : f.value[A];
1524
+ if (g.value.withHover === !1 || A === u.value) return;
1525
+ const T = u.value;
1526
+ if (u.value = A, g.value.withTooltip !== !1) {
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];
1529
1528
  Ze(Ye);
1530
1529
  }
1531
1530
  a("hovered-index-changed", { newIndex: A, oldIndex: T }), a("update:hoveredIndex", A);
1532
1531
  }
1533
1532
  function Xe() {
1534
- Ue(), r.value = -1, a("update:hoveredIndex", -1);
1533
+ Ue(), u.value = -1, a("update:hoveredIndex", -1);
1535
1534
  }
1536
1535
  function _t(A) {
1537
- if (!u.value.some(
1536
+ if (!r.value.some(
1538
1537
  ({ values: x }) => A <= x.length - 1
1539
1538
  )) {
1540
1539
  ge(ve.InvalidHoveredIndex);
@@ -1542,12 +1541,12 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1542
1541
  }
1543
1542
  A == null || A === -1 ? Xe() : je(A);
1544
1543
  }
1545
- function un() {
1544
+ function rn() {
1546
1545
  setTimeout(() => {
1547
- Oe.value && Xe(), a("chart-mouseleave");
1546
+ $e.value && Xe(), a("chart-mouseleave");
1548
1547
  }, 0);
1549
1548
  }
1550
- function rn(A) {
1549
+ function un(A) {
1551
1550
  P(A), a("resize", A);
1552
1551
  }
1553
1552
  function kt({ index: A, value: T, event: x }) {
@@ -1557,22 +1556,22 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1557
1556
  a("axis-click", { index: A, value: T, event: x });
1558
1557
  }
1559
1558
  return X(
1560
- u,
1559
+ r,
1561
1560
  (A, T) => a("data-changed", { newValue: A, oldValue: T })
1562
1561
  ), X(
1563
1562
  l,
1564
1563
  (A, T) => a("labels-changed", { newValue: A, oldValue: T })
1565
- ), 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(
1566
1565
  p,
1567
1566
  (A) => {
1568
- A && t.hoveredIndex != null && r.value === -1 && _t(t.hoveredIndex);
1567
+ A && n.hoveredIndex != null && u.value === -1 && _t(n.hoveredIndex);
1569
1568
  },
1570
1569
  { flush: "post" }
1571
1570
  ), X(b, (A) => {
1572
- A === !1 && De.opened && Xe();
1571
+ A === !1 && Ee.opened && Xe();
1573
1572
  }), ye(async () => {
1574
1573
  a("rendered"), o.groups || console.error('"groups" `<slot>` must have content.');
1575
- }), Ke("chartID", w), Ke("isEmpty", E), Ke("tooltipAnchorAttributes", p), (A, T) => (_(), Y(d(ko), {
1574
+ }), Ke("chartID", w), Ke("isEmpty", E), Ke("tooltipAnchorAttributes", p), (A, T) => (_(), Y(d(_o), {
1576
1575
  id: `lume-chart_${d(w)}`,
1577
1576
  ref_key: "chartContainer",
1578
1577
  ref: y,
@@ -1582,20 +1581,20 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1582
1581
  "transparent-background": d(g).transparentBackground,
1583
1582
  orientation: d(s),
1584
1583
  "data-j-lume-chart": "",
1585
- onResize: rn,
1584
+ onResize: un,
1586
1585
  onClick: T[24] || (T[24] = (x) => a("chart-click", x)),
1587
1586
  onMouseenter: T[25] || (T[25] = (x) => a("chart-mouseenter", x)),
1588
- onMouseleave: un
1587
+ onMouseleave: rn
1589
1588
  }, {
1590
1589
  header: V(() => [
1591
- G("div", na, [
1592
- G("div", oa, [
1593
- A.title ? (_(), I("h1", aa, ne(A.title), 1)) : z("", !0),
1594
- 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, [
1595
1594
  M(A.$slots, "controls", {}, void 0, !0)
1596
1595
  ])
1597
1596
  ]),
1598
- G("div", ua, [
1597
+ S("div", la, [
1599
1598
  k.value ? (_(), I("h3", ra, ne(Te.value), 1)) : z("", !0),
1600
1599
  M(A.$slots, "legend", { data: d(O) }, () => [
1601
1600
  d(g).withLegend !== !1 && d(g).legendPosition !== "bottom" ? (_(), Y(d(Nt), {
@@ -1612,7 +1611,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1612
1611
  ])
1613
1612
  ]),
1614
1613
  footer: V(() => [
1615
- Le.value ? (_(), I("h3", ca, ne(me.value), 1)) : z("", !0),
1614
+ Le.value ? (_(), I("h3", sa, ne(fe.value), 1)) : z("", !0),
1616
1615
  d(g).withLegend !== !1 && d(g).legendPosition == "bottom" ? (_(), Y(d(Nt), {
1617
1616
  key: 1,
1618
1617
  data: d(O),
@@ -1624,30 +1623,30 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1624
1623
  }, null, 8, ["data"])) : z("", !0)
1625
1624
  ]),
1626
1625
  extra: V(() => [
1627
- M(A.$slots, "tooltip", j(d(De), {
1626
+ M(A.$slots, "tooltip", j(d(Ee), {
1628
1627
  data: d(O),
1629
1628
  labels: d(N),
1630
- title: d(N)[r.value],
1631
- items: d($e)(r.value),
1632
- position: He.value,
1629
+ title: d(N)[u.value],
1630
+ items: d(Ne)(u.value),
1631
+ position: De.value,
1633
1632
  withTooltip: d(g).withTooltip !== !1,
1634
- hoveredIndex: r.value,
1633
+ hoveredIndex: u.value,
1635
1634
  handleMouseEnter: () => b.value = !0,
1636
1635
  handleMouseLeave: () => b.value = !1,
1637
1636
  options: d(g).tooltipOptions
1638
1637
  }), () => [
1639
- d(g).withTooltip !== !1 ? (_(), Y(d(Fo), j({ key: 0 }, d(De), {
1640
- position: He.value,
1641
- title: d(N)[r.value],
1642
- items: d($e)(r.value),
1638
+ d(g).withTooltip !== !1 ? (_(), Y(d(Co), j({ key: 0 }, d(Ee), {
1639
+ position: De.value,
1640
+ title: d(N)[u.value],
1641
+ items: d(Ne)(u.value),
1643
1642
  options: d(g).tooltipOptions,
1644
1643
  "data-j-lume-chart__tooltip": "",
1645
1644
  onOpened: T[19] || (T[19] = (x) => a("tooltip-opened", {
1646
- index: r.value,
1645
+ index: u.value,
1647
1646
  targetElement: x
1648
1647
  })),
1649
1648
  onMoved: T[20] || (T[20] = (x) => a("tooltip-moved", {
1650
- index: r.value,
1649
+ index: u.value,
1651
1650
  targetElement: x
1652
1651
  })),
1653
1652
  onClosed: T[21] || (T[21] = (x) => a("tooltip-closed")),
@@ -1658,7 +1657,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1658
1657
  M(A.$slots, "tooltip-content", {
1659
1658
  data: d(O),
1660
1659
  labels: d(N),
1661
- hoveredIndex: r.value
1660
+ hoveredIndex: u.value
1662
1661
  }, void 0, !0)
1663
1662
  ]),
1664
1663
  _: 3
@@ -1678,14 +1677,14 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1678
1677
  yScale: C.value,
1679
1678
  containerSize: d(D),
1680
1679
  options: d(g),
1681
- hoveredIndex: r.value
1680
+ hoveredIndex: u.value
1682
1681
  }, () => [
1683
- re(d(Lt), {
1682
+ ue(d(Lt), {
1684
1683
  type: "x",
1685
1684
  scale: J.value,
1686
1685
  "container-size": d(D),
1687
1686
  options: ae.value,
1688
- "hovered-index": r.value,
1687
+ "hovered-index": u.value,
1689
1688
  orientation: d(s),
1690
1689
  "data-j-lume-chart__x-axis": "",
1691
1690
  onClick: bt,
@@ -1693,12 +1692,12 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1693
1692
  onMouseleave: T[3] || (T[3] = (x) => a("axis-mouseleave")),
1694
1693
  "onLume__internal-AxisSize": T[4] || (T[4] = (x) => $.value = x)
1695
1694
  }, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"]),
1696
- re(d(Lt), {
1695
+ ue(d(Lt), {
1697
1696
  type: "y",
1698
1697
  scale: C.value,
1699
1698
  "container-size": d(D),
1700
- options: Ne.value,
1701
- "hovered-index": r.value,
1699
+ options: we.value,
1700
+ "hovered-index": u.value,
1702
1701
  orientation: d(s),
1703
1702
  "data-j-lume-chart__y-axis": "",
1704
1703
  onClick: bt,
@@ -1707,7 +1706,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1707
1706
  "onLume__internal-AxisSize": T[6] || (T[6] = (x) => L.value = x)
1708
1707
  }, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"])
1709
1708
  ], !0) : z("", !0),
1710
- d(g).withHover !== !1 ? (_(), Y(d(Wo), {
1709
+ d(g).withHover !== !1 ? (_(), Y(d(zo), {
1711
1710
  key: 2,
1712
1711
  data: d(O),
1713
1712
  orientation: d(s),
@@ -1716,15 +1715,15 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1716
1715
  "data-j-lume-chart__overlay-group": "",
1717
1716
  "onLume__internal-Hover": je
1718
1717
  }, null, 8, ["data", "orientation", "x-scale", "y-scale"])) : z("", !0),
1719
- d(le) ? (_(), I("g", ia, [
1718
+ d(le) ? (_(), I("g", ua, [
1720
1719
  (_(!0), I(Q, null, W(p.value, (x, Ye) => (_(), I("circle", j(x, {
1721
1720
  ref_for: !0,
1722
1721
  ref_key: "tooltipAnchor",
1723
- ref: f,
1722
+ ref: m,
1724
1723
  key: `anchor_${Ye}`,
1725
- r: d(jn),
1724
+ r: d(Sn),
1726
1725
  class: "lume-fill--transparent"
1727
- }), null, 16, sa))), 128))
1726
+ }), null, 16, ia))), 128))
1728
1727
  ])) : z("", !0),
1729
1728
  M(A.$slots, "groups", {
1730
1729
  data: d(O),
@@ -1733,7 +1732,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1733
1732
  orientation: d(s),
1734
1733
  xScale: J.value,
1735
1734
  yScale: C.value,
1736
- hoveredIndex: r.value,
1735
+ hoveredIndex: u.value,
1737
1736
  containerSize: d(D),
1738
1737
  transition: d(g).withTransition !== !1,
1739
1738
  classList: A.classList,
@@ -1753,7 +1752,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1753
1752
  _: 3
1754
1753
  }, 8, ["id", "margins", "container-size", "no-min-size", "transparent-background", "orientation"]));
1755
1754
  }
1756
- }), Ee = /* @__PURE__ */ q(da, [["__scopeId", "data-v-5aa3d9ab"]]), Ht = 8, va = 8, fa = 20, xe = 2, Bt = 2, ma = ["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({
1757
1756
  __name: "lume-alluvial-node-label",
1758
1757
  props: {
1759
1758
  bottom: { type: Boolean, default: !1 },
@@ -1761,30 +1760,30 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1761
1760
  maxWidth: { type: Number, default: 0 }
1762
1761
  },
1763
1762
  emits: ["lume__internal--node-resize"],
1764
- setup(e, { emit: n }) {
1765
- const t = e, o = n, a = S(null), u = 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);
1766
1765
  return X(
1767
- [a, () => t.maxWidth],
1766
+ [a, () => n.maxWidth],
1768
1767
  async ([i, c]) => {
1769
1768
  if (i && c) {
1770
- u.value = c, await Qe();
1771
- const { width: s, height: m } = i.getBoundingClientRect();
1772
- u.value = s + Bt > c ? c : s + Bt, l.value = Math.ceil(m);
1769
+ r.value = c, await Qe();
1770
+ const { width: s, height: f } = i.getBoundingClientRect();
1771
+ r.value = s + Bt > c ? c : s + Bt, l.value = Math.ceil(f);
1773
1772
  }
1774
1773
  },
1775
1774
  { immediate: !0 }
1776
- ), X(u, async (i) => {
1777
- i !== t.maxWidth && (await Qe(), o("lume__internal--node-resize"));
1775
+ ), X(r, async (i) => {
1776
+ i !== n.maxWidth && (await Qe(), o("lume__internal--node-resize"));
1778
1777
  }), (i, c) => e.maxWidth ? (_(), I("foreignObject", {
1779
1778
  key: 1,
1780
1779
  class: "lume-alluvial-group__node-foreign",
1781
1780
  y: e.bottom ? "0.1em" : -l.value + 1,
1782
- x: e.left ? -u.value : 0,
1783
- width: u.value,
1781
+ x: e.left ? -r.value : 0,
1782
+ width: r.value,
1784
1783
  height: l.value
1785
1784
  }, [
1786
- G("div", ha, [
1787
- G("span", {
1785
+ S("div", pa, [
1786
+ S("span", {
1788
1787
  ref_key: "text",
1789
1788
  ref: a,
1790
1789
  class: "lume-alluvial-group__node-label"
@@ -1792,7 +1791,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1792
1791
  M(i.$slots, "default", {}, void 0, !0)
1793
1792
  ], 512)
1794
1793
  ])
1795
- ], 8, pa)) : (_(), I("text", {
1794
+ ], 8, fa)) : (_(), I("text", {
1796
1795
  key: 0,
1797
1796
  class: "lume-alluvial-group__node-label",
1798
1797
  dy: e.bottom ? ".2em" : "-.2em",
@@ -1801,148 +1800,148 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1801
1800
  M(i.$slots, "default", {}, void 0, !0)
1802
1801
  ], 8, ma));
1803
1802
  }
1804
- }), 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({
1805
1804
  __name: "lume-alluvial-node-value",
1806
1805
  props: {
1807
1806
  bottom: { type: Boolean, default: !0 }
1808
1807
  },
1809
1808
  setup(e) {
1810
- return (n, t) => (_(), I("text", {
1809
+ return (t, n) => (_(), I("text", {
1811
1810
  class: "lume-alluvial-group__node-value",
1812
1811
  y: e.bottom ? ".2em" : "-.2em",
1813
1812
  "dominant-baseline": e.bottom ? "hanging" : "auto"
1814
1813
  }, [
1815
- M(n.$slots, "default", {}, void 0, !0)
1816
- ], 8, _a));
1814
+ M(t.$slots, "default", {}, void 0, !0)
1815
+ ], 8, ya));
1817
1816
  }
1818
- }), 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({
1819
1818
  __name: "lume-alluvial-node-header",
1820
1819
  props: {
1821
1820
  x: { type: Number, required: !0 },
1822
1821
  y: { type: Number, required: !0 }
1823
1822
  },
1824
1823
  setup(e) {
1825
- const n = S(null), t = v(
1826
- () => 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)`
1827
1826
  ), o = v(
1828
- () => n.value && `translate(${n.value.getBBox().width / 2}, 0)`
1827
+ () => t.value && `translate(${t.value.getBBox().width / 2}, 0)`
1829
1828
  );
1830
- return (a, u) => (_(), I("g", {
1829
+ return (a, r) => (_(), I("g", {
1831
1830
  transform: `translate(${e.x}, ${e.y})`
1832
1831
  }, [
1833
- G("g", { transform: t.value }, [
1832
+ S("g", { transform: n.value }, [
1834
1833
  M(a.$slots, "before", {}, void 0, !0)
1835
- ], 8, Ta),
1836
- G("text", {
1834
+ ], 8, Aa),
1835
+ S("text", {
1837
1836
  ref_key: "textRef",
1838
- ref: n,
1837
+ ref: t,
1839
1838
  class: "lume-alluvial-group__node-header lume-typography--caption"
1840
1839
  }, [
1841
1840
  M(a.$slots, "default", {}, void 0, !0)
1842
1841
  ], 512),
1843
- G("g", { transform: o.value }, [
1842
+ S("g", { transform: o.value }, [
1844
1843
  M(a.$slots, "after", {}, void 0, !0)
1845
- ], 8, La)
1846
- ], 8, Aa));
1844
+ ], 8, Ta)
1845
+ ], 8, ba));
1847
1846
  }
1848
- }), Oa = /* @__PURE__ */ q($a, [["__scopeId", "data-v-0e483453"]]);
1849
- function Mt(e, n) {
1847
+ }), $a = /* @__PURE__ */ q(La, [["__scopeId", "data-v-0e483453"]]);
1848
+ function Mt(e, t) {
1850
1849
  return {
1851
- x0: 0 + (n ? n.left : 0),
1852
- y0: 0 + (n ? n.top : 0),
1853
- x1: e.width - (n ? n.right : 0),
1854
- 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)
1855
1854
  };
1856
1855
  }
1857
- function Ia(e) {
1858
- const n = S(Mt(e));
1859
- function t(o) {
1860
- 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);
1861
1860
  }
1862
- return { extents: n, updateExtents: t };
1861
+ return { extents: t, updateExtents: n };
1863
1862
  }
1864
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 || {});
1865
- const xa = "[lume] ";
1866
- function ut(e, n, t = !0) {
1867
- t && Ct() || console.error(xa + "Error: " + e, n);
1864
+ const Ia = "[lume] ";
1865
+ function rt(e, t, n = !0) {
1866
+ n && Ct() || console.error(Ia + "Error: " + e, t);
1868
1867
  }
1869
- const wa = 200;
1870
- function Ie(e) {
1868
+ const xa = 200;
1869
+ function Oe(e) {
1871
1870
  return typeof e == "string" || typeof e == "number" ? e : e.id ?? e.label;
1872
1871
  }
1873
- function Ea(e, n) {
1874
- return n.nodes.find((t) => t.id === e);
1872
+ function wa(e, t) {
1873
+ return t.nodes.find((n) => n.id === e);
1875
1874
  }
1876
- function Na(e, n) {
1877
- return n.links.find((t) => t.id === e);
1875
+ function Ea(e, t) {
1876
+ return t.links.find((n) => n.id === e);
1878
1877
  }
1879
1878
  function tn(e) {
1880
1879
  return !!(e.sourceLinks && e.targetLinks);
1881
1880
  }
1882
- function Da(e, n) {
1883
- if (!n) return;
1884
- 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(
1885
1884
  (l, i) => Math.max(l, i.getBBox().width),
1886
1885
  -1 / 0
1887
- ), u = n.filter((l) => o.includes(l.dataset.id)).reduce(
1886
+ ), r = t.filter((l) => o.includes(l.dataset.id)).reduce(
1888
1887
  (l, i) => Math.max(l, i.getBBox().width),
1889
1888
  -1 / 0
1890
1889
  );
1891
1890
  return {
1892
1891
  left: a,
1893
1892
  top: 0,
1894
- right: u,
1893
+ right: r,
1895
1894
  bottom: 0
1896
1895
  };
1897
1896
  }
1898
- function Ha(e) {
1899
- return e.map((n) => {
1900
- const t = n.y1 - n.y0 < xe;
1897
+ function Da(e) {
1898
+ return e.map((t) => {
1899
+ const n = t.y1 - t.y0 < He;
1901
1900
  return {
1902
- x: n.x0,
1903
- y: n.y0 - (t ? xe / 2 : 0),
1901
+ x: t.x0,
1902
+ y: t.y0 - (n ? He / 2 : 0),
1904
1903
  // Negative offset to account for the min. height
1905
- width: n.x1 - n.x0,
1906
- height: t ? xe : n.y1 - n.y0,
1904
+ width: t.x1 - t.x0,
1905
+ height: n ? He : t.y1 - t.y0,
1907
1906
  textTransform: {
1908
- x: n.depth > 0 ? n.x1 + Ht : n.x0 - Ht,
1909
- y: (n.y1 + n.y0) / 2
1907
+ x: t.depth > 0 ? t.x1 + Ht : t.x0 - Ht,
1908
+ y: (t.y1 + t.y0) / 2
1910
1909
  },
1911
- node: n
1910
+ node: t
1912
1911
  };
1913
1912
  });
1914
1913
  }
1915
- function Ba(e) {
1914
+ function Ha(e) {
1916
1915
  return [e.source.x1, e.y0];
1917
1916
  }
1918
- function Ma(e) {
1917
+ function Ba(e) {
1919
1918
  return [e.target.x0, e.y1];
1920
1919
  }
1921
- function Ra(e) {
1922
- 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();
1923
1922
  }
1924
- function Sa(e) {
1925
- return e.map((n) => {
1926
- var t;
1923
+ function Ra(e) {
1924
+ return e.map((t) => {
1925
+ var n;
1927
1926
  return {
1928
- id: n.id,
1929
- color: n.color || ((t = n.source) == null ? void 0 : t.color) || Ge,
1930
- d: Ra(n)(n),
1931
- strokeWidth: Math.max(1, n.width),
1932
- 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
1933
1932
  };
1934
1933
  });
1935
1934
  }
1936
- function Rt(e, n, t, o, a) {
1935
+ function Rt(e, t, n, o, a) {
1937
1936
  if (o === !1) {
1938
1937
  e.node = {
1939
1938
  ...e.node,
1940
- transitionValue: a ? void 0 : t
1939
+ transitionValue: a ? void 0 : n
1941
1940
  };
1942
1941
  return;
1943
1942
  }
1944
- const u = Date.now(), l = Nn(n, t), i = () => {
1945
- let s = (Date.now() - u) / wa;
1943
+ const r = Date.now(), l = Nn(t, n), i = () => {
1944
+ let s = (Date.now() - r) / xa;
1946
1945
  s > 1 && (s = 1), e.node = {
1947
1946
  ...e.node,
1948
1947
  transitionValue: a && s === 1 ? void 0 : l(s)
@@ -1954,26 +1953,26 @@ const Ga = {
1954
1953
  nodes: [],
1955
1954
  links: []
1956
1955
  };
1957
- function St(e, n) {
1958
- 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));
1959
1958
  }
1960
- function ja(e, n, t) {
1961
- const o = S(null), a = v(() => {
1962
- var r, f;
1963
- return (f = (r = e.value) == null ? void 0 : r[0]) == null ? void 0 : f.values.map(
1959
+ function Sa(e, t, n) {
1960
+ const o = G(null), a = v(() => {
1961
+ var u, m;
1962
+ return (m = (u = e.value) == null ? void 0 : u[0]) == null ? void 0 : m.values.map(
1964
1963
  ({ label: y, color: p, value: b, deriveColorFromIncomingLinks: $, offset: L }) => ({
1965
1964
  label: y || b.toString(),
1966
1965
  color: p,
1967
- fallbackColor: p || Ge,
1966
+ fallbackColor: p || Se,
1968
1967
  id: b,
1969
1968
  deriveColorFromIncomingLinks: $,
1970
1969
  offset: L
1971
1970
  })
1972
1971
  );
1973
- }), u = v(
1972
+ }), r = v(
1974
1973
  () => {
1975
- var r, f;
1976
- return (f = (r = e.value) == null ? void 0 : r[0]) == null ? void 0 : f.values.map(
1974
+ var u, m;
1975
+ return (m = (u = e.value) == null ? void 0 : u[0]) == null ? void 0 : m.values.map(
1977
1976
  (y) => {
1978
1977
  var p;
1979
1978
  return (p = y.targets) == null ? void 0 : p.map(
@@ -1989,132 +1988,132 @@ function ja(e, n, t) {
1989
1988
  }
1990
1989
  ).filter(Boolean).flat();
1991
1990
  }
1992
- ), l = v(() => fn().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(() => {
1993
- var r;
1994
- return (r = o.value) == null ? void 0 : r.nodes.reduce(
1995
- (f, y) => {
1996
- const p = St(y, f);
1997
- return p ? (p.push(y), p.sort((b, $) => (b._y0 || b.y0) - ($._y0 || $.y0))) : f.push([y]), f;
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(() => {
1992
+ var u;
1993
+ return (u = o.value) == null ? void 0 : u.nodes.reduce(
1994
+ (m, y) => {
1995
+ const p = Gt(y, m);
1996
+ return p ? (p.push(y), p.sort((b, $) => (b._y0 || b.y0) - ($._y0 || $.y0))) : m.push([y]), m;
1998
1997
  },
1999
1998
  []
2000
1999
  );
2001
2000
  });
2002
- function c(r) {
2003
- const { offset: f } = r, y = St(r, i.value);
2001
+ function c(u) {
2002
+ const { offset: m } = u, y = Gt(u, i.value);
2004
2003
  if (!y) return;
2005
- const p = y[y.findIndex(($) => $.id === r.id) - 1], b = p && y.length !== 1 ? p.y1 + f : f;
2006
- r._y0 = r.y0, r._y1 = r.y1, r.y0 = b, r.y1 = r.y0 + (r._y1 - r._y0);
2004
+ const p = y[y.findIndex(($) => $.id === u.id) - 1], b = p && y.length !== 1 ? p.y1 + m : m;
2005
+ u._y0 = u.y0, u._y1 = u.y1, u.y0 = b, u.y1 = u.y0 + (u._y1 - u._y0);
2007
2006
  }
2008
- function s(r, f) {
2009
- const { id: y, _y0: p, y0: b } = r, $ = f.links.filter(
2007
+ function s(u, m) {
2008
+ const { id: y, _y0: p, y0: b } = u, $ = m.links.filter(
2010
2009
  (O) => O.source.id === y
2011
- ), L = f.links.filter(
2010
+ ), L = m.links.filter(
2012
2011
  (O) => O.target.id === y
2013
2012
  ), g = b - p;
2014
2013
  $.forEach((O) => O.y0 += g), L.forEach((O) => O.y1 += g);
2015
2014
  }
2016
- const m = v(() => {
2017
- var r;
2018
- return o.value && ((r = a.value) == null || r.forEach((f) => {
2019
- f.value === 0 && (f.fallbackColor = ft.Grey), typeof f.offset == "number" && (c(f), s(f, o.value));
2015
+ const f = v(() => {
2016
+ var u;
2017
+ return o.value && ((u = a.value) == null || u.forEach((m) => {
2018
+ m.value === 0 && (m.fallbackColor = mt.Grey), typeof m.offset == "number" && (c(m), s(m, o.value));
2020
2019
  })), o.value;
2021
2020
  });
2022
- return X([l, t], () => {
2021
+ return X([l, n], () => {
2023
2022
  try {
2024
- const { x0: r, y0: f, x1: y, y1: p } = t.value;
2023
+ const { x0: u, y0: m, x1: y, y1: p } = n.value;
2025
2024
  o.value = l.value.extent([
2026
- [r, f],
2025
+ [u, m],
2027
2026
  [y, p]
2028
- ])({ nodes: a.value, links: u.value });
2029
- } catch (r) {
2030
- ut(Pe.GraphProblem, r), o.value = Ga;
2027
+ ])({ nodes: a.value, links: r.value });
2028
+ } catch (u) {
2029
+ rt(Pe.GraphProblem, u), o.value = Ga;
2031
2030
  }
2032
- }), { columns: i, graph: m };
2031
+ }), { columns: i, graph: f };
2033
2032
  }
2034
- function rt(e, n) {
2035
- return n || (n = {}), e.targetLinks && e.targetLinks.forEach(({ source: t, value: o }) => {
2036
- n[t.id] = o, rt(
2037
- t,
2038
- 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
2039
2038
  );
2040
- }), n;
2039
+ }), t;
2041
2040
  }
2042
- function it(e, n) {
2043
- return n || (n = {}), e.sourceLinks && e.sourceLinks.forEach(({ target: t, value: o }) => {
2044
- n[t.id] = o, it(
2045
- t,
2046
- 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
2047
2046
  );
2048
- }), n;
2047
+ }), t;
2049
2048
  }
2050
- function Va(e, n) {
2051
- 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), []);
2052
2051
  }
2053
- const Pa = (e, n) => {
2054
- let t;
2055
- tn(e) ? t = {
2052
+ const Va = (e, t) => {
2053
+ let n;
2054
+ tn(e) ? n = {
2056
2055
  [e.id]: e.value,
2057
- ...rt(e),
2056
+ ...ut(e),
2058
2057
  ...it(e)
2059
- } : t = {
2058
+ } : n = {
2060
2059
  [e.source.id]: e.source.value,
2061
2060
  [e.target.id]: e.target.value,
2062
- ...rt(e.source),
2061
+ ...ut(e.source),
2063
2062
  ...it(e.target)
2064
2063
  };
2065
- const o = Va(t, n);
2066
- return { nodes: t, links: o };
2067
- }, Ca = (e) => {
2064
+ const o = ja(n, t);
2065
+ return { nodes: n, links: o };
2066
+ }, Pa = (e) => {
2068
2067
  if (tn(e)) {
2069
- const n = [...e.sourceLinks, ...e.targetLinks];
2068
+ const t = [...e.sourceLinks, ...e.targetLinks];
2070
2069
  return {
2071
- nodes: n.reduce(
2072
- (t, { source: o, target: a, value: u }) => o === e ? { ...t, [Ie(a)]: u } : { ...t, [Ie(o)]: u },
2073
- { [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 }
2074
2073
  ),
2075
- links: n.map(({ id: t }) => t)
2074
+ links: t.map(({ id: n }) => n)
2076
2075
  };
2077
2076
  }
2078
2077
  return {
2079
2078
  nodes: {
2080
- [Ie(e.target)]: e.value,
2081
- [Ie(e.source)]: e.source.value
2079
+ [Oe(e.target)]: e.value,
2080
+ [Oe(e.source)]: e.source.value
2082
2081
  },
2083
2082
  links: [e.id]
2084
2083
  };
2085
2084
  };
2086
- function Fa(e, n, t) {
2087
- 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(
2088
2087
  o.value,
2089
- t.value
2090
- ) : n.value.highlightedElements === "closest" ? Ca(o.value, t.value) : Pa(o.value, t.value) : { nodes: {}, links: [] });
2091
- return X(a, (u, l) => {
2092
- if (u.links.length === 0 && Object.keys(u.nodes).length === 0) {
2088
+ n.value
2089
+ ) : t.value.highlightedElements === "closest" ? Pa(o.value, n.value) : Va(o.value, n.value) : { nodes: {}, links: [] });
2090
+ return X(a, (r, l) => {
2091
+ if (r.links.length === 0 && Object.keys(r.nodes).length === 0) {
2093
2092
  e.value.forEach((i) => {
2094
2093
  i.node.id in l.nodes && Rt(
2095
2094
  i,
2096
2095
  l.nodes[i.node.id],
2097
2096
  i.node.value,
2098
- n.value.withTransition,
2097
+ t.value.withTransition,
2099
2098
  !0
2100
2099
  );
2101
2100
  });
2102
2101
  return;
2103
2102
  }
2104
2103
  e.value.forEach((i) => {
2105
- i.node.id in u.nodes && Rt(
2104
+ i.node.id in r.nodes && Rt(
2106
2105
  i,
2107
2106
  i.node.value,
2108
- u.nodes[i.node.id],
2109
- n.value.withTransition
2107
+ r.nodes[i.node.id],
2108
+ t.value.withTransition
2110
2109
  );
2111
2110
  });
2112
2111
  }), { highlightedElements: a, hoveredElement: o };
2113
2112
  }
2114
- const za = {
2113
+ const Fa = {
2115
2114
  class: "lume-alluvial-group",
2116
2115
  "data-j-alluvial-group": ""
2117
- }, 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({
2118
2117
  __name: "lume-alluvial-group",
2119
2118
  props: {
2120
2119
  ...We(),
@@ -2124,14 +2123,14 @@ const za = {
2124
2123
  }
2125
2124
  },
2126
2125
  emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
2127
- setup(e, { emit: n }) {
2128
- const t = e, o = n, a = Ce("chartID"), { data: u, options: l } = ee(t), i = S([]), c = S([]), s = S(null), { extents: m, updateExtents: r } = Ia(t.containerSize), { columns: f, graph: y } = ja(u, l, m), { 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(
2129
2128
  i,
2130
2129
  l,
2131
2130
  y
2132
2131
  ), $ = v(() => Ve(l.value.valueFormat)), L = v(
2133
2132
  () => Object.keys(b.value.nodes)
2134
- ), g = v(() => f.value ? f.value.map(
2133
+ ), g = v(() => m.value ? m.value.map(
2135
2134
  (k) => k[0].x0 + l.value.nodeWidth / 2
2136
2135
  ) : []), O = v(() => {
2137
2136
  if (!(!l.value.nodeHeaders || !l.value.nodeHeaders.length))
@@ -2140,7 +2139,7 @@ const za = {
2140
2139
  x: g.value[E]
2141
2140
  }));
2142
2141
  }), N = v(
2143
- () => l.value.nodeHeaderPadding ?? fa
2142
+ () => l.value.nodeHeaderPadding ?? va
2144
2143
  ), D = v(() => {
2145
2144
  if (!(!l.value.gradient || !y.value))
2146
2145
  return y.value.links.reduce((k, E) => {
@@ -2158,17 +2157,17 @@ const za = {
2158
2157
  ), E = [];
2159
2158
  return k.forEach((h) => {
2160
2159
  const R = [];
2161
- c.value.filter(({ link: F }) => F.target.id === h.node.id).reverse().reduce((F, le, De, Ze) => {
2162
- const Ue = le.link.target.y1 - le.link.target.y0 > xe;
2163
- let $e, He, Oe;
2164
- return Ue ? ($e = le.link.target.y1 - le.link.target.y0, He = le.link.value / h.node.value, Oe = He * $e) : ($e = xe, Oe = xe / 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({
2165
2164
  x: h.x,
2166
2165
  y: h.y + F,
2167
- height: Oe,
2166
+ height: $e,
2168
2167
  width: h.width,
2169
2168
  key: `node-block-${h.node.id}-source-link-${le.link.source.id}`,
2170
- class: `lume-alluvial-group__node-block lume-fill--${le.link.source.color || Ge}`
2171
- }), F + Oe;
2169
+ class: `lume-alluvial-group__node-block lume-fill--${le.link.source.color || Se}`
2170
+ }), F + $e;
2172
2171
  }, 0), E.push({
2173
2172
  id: h.node.id,
2174
2173
  subNodes: R
@@ -2196,16 +2195,16 @@ const za = {
2196
2195
  function ae(k, E) {
2197
2196
  k !== p.value && (p.value = k, o("link-mouseenter", { link: k, event: E }));
2198
2197
  }
2199
- function Ne(k) {
2198
+ function we(k) {
2200
2199
  const E = p.value;
2201
2200
  p.value = null, o("link-mouseleave", { link: E, event: k });
2202
2201
  }
2203
- function me(k) {
2202
+ function fe(k) {
2204
2203
  if (k == null) {
2205
2204
  p.value = null;
2206
2205
  return;
2207
2206
  }
2208
- const E = Ea(k, y.value) || Na(k, y.value);
2207
+ const E = wa(k, y.value) || Ea(k, y.value);
2209
2208
  if (!E) {
2210
2209
  ge(ve.InvalidHoveredElement);
2211
2210
  return;
@@ -2217,20 +2216,20 @@ const za = {
2217
2216
  return ((E = P.value.find(({ id: h }) => k === h)) == null ? void 0 : E.subNodes) ?? [];
2218
2217
  }
2219
2218
  function Le() {
2220
- const k = Da(y.value, s.value);
2221
- r(k);
2219
+ const k = Na(y.value, s.value);
2220
+ u(k);
2222
2221
  }
2223
2222
  return X(y, (k) => {
2224
- i.value = Ha(k.nodes), c.value = Sa(k.links).reverse(), p.value == null && t.hoveredElementId != null && me(t.hoveredElementId);
2225
- }), X([t.containerSize, s], () => {
2226
- t.containerSize.width && t.containerSize.height && Le();
2227
- }), X(() => t.hoveredElementId, me), (k, E) => (_(), I("g", za, [
2228
- 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, [
2229
2228
  (_(!0), I(Q, null, W(O.value, (h, R) => M(k.$slots, `node-header-${R}`, {
2230
2229
  x: h.x,
2231
2230
  y: -N.value
2232
2231
  }, () => [
2233
- (_(), Y(d(Oa), {
2232
+ (_(), Y(d($a), {
2234
2233
  key: `header_${h.x}`,
2235
2234
  x: h.x,
2236
2235
  y: -N.value
@@ -2242,11 +2241,11 @@ const za = {
2242
2241
  }, 1032, ["x", "y"]))
2243
2242
  ], !0)), 256))
2244
2243
  ])) : z("", !0),
2245
- G("g", {
2244
+ S("g", {
2246
2245
  class: "lume-alluvial-link-group",
2247
- onMouseleave: Ne
2246
+ onMouseleave: we
2248
2247
  }, [
2249
- d(l).gradient ? (_(), I("defs", Za, [
2248
+ d(l).gradient ? (_(), I("defs", Wa, [
2250
2249
  (_(!0), I(Q, null, W(D.value, (h, R) => (_(), I("linearGradient", {
2251
2250
  id: `${d(a)}_${R}`,
2252
2251
  key: R,
@@ -2254,15 +2253,15 @@ const za = {
2254
2253
  x1: h.x1,
2255
2254
  x2: h.x2
2256
2255
  }, [
2257
- G("stop", {
2256
+ S("stop", {
2258
2257
  offset: "0%",
2259
2258
  "stop-color": `var(--lume-color--${h.source})`
2260
- }, null, 8, Xa),
2261
- G("stop", {
2259
+ }, null, 8, Ua),
2260
+ S("stop", {
2262
2261
  offset: "100%",
2263
2262
  "stop-color": `var(--lume-color--${h.target})`
2264
- }, null, 8, Ya)
2265
- ], 8, Ua))), 128))
2263
+ }, null, 8, Xa)
2264
+ ], 8, Za))), 128))
2266
2265
  ])) : z("", !0),
2267
2266
  (_(!0), I(Q, null, W(c.value, (h) => (_(), I("path", {
2268
2267
  key: `link-ghost_${h.id}`,
@@ -2271,11 +2270,11 @@ const za = {
2271
2270
  "lume-alluvial-group__link--ghost"
2272
2271
  ]]),
2273
2272
  d: h.d,
2274
- "stroke-width": h.strokeWidth + d(va),
2273
+ "stroke-width": h.strokeWidth + d(da),
2275
2274
  "data-j-alluvial-ghost": "",
2276
2275
  onClick: (R) => o("link-click", { link: h.link, event: R }),
2277
2276
  onMouseover: (R) => ae(h.link, R)
2278
- }, null, 40, Ka))), 128)),
2277
+ }, null, 40, Ya))), 128)),
2279
2278
  (_(!0), I(Q, null, W(c.value, (h) => (_(), I("path", {
2280
2279
  key: `link_${h.id}`,
2281
2280
  class: te(["lume-alluvial-group__link", {
@@ -2292,7 +2291,7 @@ const za = {
2292
2291
  "data-id": h.id,
2293
2292
  onClick: (R) => o("link-click", { link: h.link, event: R }),
2294
2293
  onMouseover: (R) => ae(h.link, R)
2295
- }, null, 42, Ja))), 128))
2294
+ }, null, 42, Ka))), 128))
2296
2295
  ], 32),
2297
2296
  (_(!0), I(Q, null, W(i.value, (h, R) => (_(), I("g", {
2298
2297
  key: `node-block_${R}`,
@@ -2302,7 +2301,7 @@ const za = {
2302
2301
  }]),
2303
2302
  "data-j-alluvial-group__node-block": ""
2304
2303
  }, [
2305
- G("g", {
2304
+ S("g", {
2306
2305
  onClick: (F) => o("node-click", { node: h.node, event: F }),
2307
2306
  onMouseenter: (F) => o("node-mouseenter", { node: h.node, event: F }),
2308
2307
  onMouseleave: (F) => o("node-mouseleave", { node: h.node, event: F }),
@@ -2321,8 +2320,8 @@ const za = {
2321
2320
  y: h.y,
2322
2321
  height: h.height,
2323
2322
  width: h.width
2324
- }, null, 10, qa)),
2325
- G("g", {
2323
+ }, null, 10, Qa)),
2324
+ S("g", {
2326
2325
  ref_for: !0,
2327
2326
  ref_key: "nodeTextRefs",
2328
2327
  ref: s,
@@ -2340,7 +2339,7 @@ const za = {
2340
2339
  h.node.value
2341
2340
  )
2342
2341
  }, () => [
2343
- re(d(ya), {
2342
+ ue(d(ga), {
2344
2343
  bottom: d(l).switchText,
2345
2344
  left: h.node.depth === 0,
2346
2345
  "max-width": d(l).nodeLabelMaxWidth,
@@ -2351,7 +2350,7 @@ const za = {
2351
2350
  ]),
2352
2351
  _: 2
2353
2352
  }, 1032, ["bottom", "left", "max-width"]),
2354
- re(d(ba), {
2353
+ ue(d(ka), {
2355
2354
  bottom: !d(l).switchText
2356
2355
  }, {
2357
2356
  default: V(() => [
@@ -2363,12 +2362,12 @@ const za = {
2363
2362
  _: 2
2364
2363
  }, 1032, ["bottom"])
2365
2364
  ], !0)
2366
- ], 10, el)
2367
- ], 40, Qa)
2365
+ ], 10, qa)
2366
+ ], 40, Ja)
2368
2367
  ], 2))), 128))
2369
2368
  ]));
2370
2369
  }
2371
- }), nl = /* @__PURE__ */ q(tl, [["__scopeId", "data-v-ea53c3da"]]), ol = {
2370
+ }), tl = /* @__PURE__ */ q(el, [["__scopeId", "data-v-2a790ee0"]]), nl = {
2372
2371
  margins: {
2373
2372
  top: 0,
2374
2373
  right: 0,
@@ -2384,16 +2383,16 @@ const za = {
2384
2383
  highlightedElements: "closest",
2385
2384
  nodePadding: 16,
2386
2385
  nodeWidth: 16,
2387
- nodeAlign: mn,
2386
+ nodeAlign: fn,
2388
2387
  valueFormat: (e) => String(e),
2389
2388
  iterations: 6
2390
- }, Zl = /* @__PURE__ */ Z({
2389
+ }, Wl = /* @__PURE__ */ Z({
2391
2390
  __name: "lume-alluvial-diagram",
2392
2391
  props: {
2393
- ...po(st)
2392
+ ...fo(st)
2394
2393
  },
2395
- setup(e, { emit: n }) {
2396
- const t = e, { componentEventPropagator: o } = _e(), a = Ae(ue()), u = Hn(ue()), { options: l } = ee(t), { allOptions: i } = fe(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);
2397
2396
  function c(s) {
2398
2397
  return {
2399
2398
  ...s,
@@ -2401,13 +2400,13 @@ const za = {
2401
2400
  // Alluvial chart never uses base scales
2402
2401
  };
2403
2402
  }
2404
- return (s, m) => (_(), Y(d(Ee), j({ ...t, ...s.$attrs }, {
2403
+ return (s, f) => (_(), Y(d(xe), j({ ...n, ...s.$attrs }, {
2405
2404
  options: c(d(i)),
2406
2405
  "data-j-alluvial-diagram": ""
2407
2406
  }, oe(d(o))), ce({
2408
- groups: V((r) => [
2409
- re(d(nl), j(r, { "hovered-element-id": s.hoveredElement }, oe(d(o))), ce({ _: 2 }, [
2410
- W(d(u), (f, y) => ({
2407
+ groups: V((u) => [
2408
+ ue(d(tl), j(u, { "hovered-element-id": s.hoveredElement }, oe(d(o))), ce({ _: 2 }, [
2409
+ W(d(r), (m, y) => ({
2411
2410
  name: y,
2412
2411
  fn: V((p) => [
2413
2412
  M(s.$slots, y, pe(he(p || {})))
@@ -2417,95 +2416,95 @@ const za = {
2417
2416
  ]),
2418
2417
  _: 2
2419
2418
  }, [
2420
- W(d(a), (r, f) => ({
2421
- name: f,
2419
+ W(d(a), (u, m) => ({
2420
+ name: m,
2422
2421
  fn: V((y) => [
2423
- M(s.$slots, f, pe(he(y || {})))
2422
+ M(s.$slots, m, pe(he(y || {})))
2424
2423
  ])
2425
2424
  }))
2426
2425
  ]), 1040, ["options"]));
2427
2426
  }
2428
2427
  });
2429
2428
  var nn = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(nn || {});
2430
- const Ul = /* @__PURE__ */ Z({
2429
+ const Zl = /* @__PURE__ */ Z({
2431
2430
  __name: "lume-bar-chart",
2432
2431
  props: {
2433
- ...we(),
2432
+ ...Ie(),
2434
2433
  type: {
2435
2434
  type: String,
2436
2435
  default: null,
2437
2436
  validator: (e) => e in nn || e == null
2438
2437
  }
2439
2438
  },
2440
- setup(e, { emit: n }) {
2441
- const t = Je(
2442
- () => import("./DI0JiGP5.js")
2439
+ setup(e, { emit: t }) {
2440
+ const n = Je(
2441
+ () => import("./B79GZzqk.js")
2443
2442
  ), o = Je(
2444
- () => import("./DgbGPOnI.js")
2443
+ () => import("./B-J6h1cQ.js")
2445
2444
  ), a = Je(
2446
- () => import("./D3C1hTl9.js")
2447
- ), u = /* @__PURE__ */ new Map([
2448
- ["single", t],
2445
+ () => import("./DpwoykqR.js")
2446
+ ), r = /* @__PURE__ */ new Map([
2447
+ ["single", n],
2449
2448
  ["grouped", o],
2450
2449
  ["stacked", a]
2451
- ]), l = e, { componentEventPropagator: i } = _e(), c = Ae(ue());
2452
- function s(r) {
2450
+ ]), l = e, { componentEventPropagator: i } = _e(), c = Ae(re());
2451
+ function s(u) {
2453
2452
  return {
2454
- ...r,
2453
+ ...u,
2455
2454
  startOnZero: !0,
2456
2455
  // Bar chart always starts on zero,
2457
2456
  tooltipOptions: {
2458
- ...(r == null ? void 0 : r.tooltipOptions) || {},
2457
+ ...(u == null ? void 0 : u.tooltipOptions) || {},
2459
2458
  position: l.orientation === H.HORIZONTAL ? "right" : void 0
2460
2459
  }
2461
2460
  };
2462
2461
  }
2463
- const m = v(() => {
2464
- if (st(l.data)) return u.get("single");
2462
+ const f = v(() => {
2463
+ if (st(l.data)) return r.get("single");
2465
2464
  if (!l.type)
2466
2465
  throw new Error("Bar chart needs a type when there's multiple datasets.");
2467
- return u.get(l.type);
2466
+ return r.get(l.type);
2468
2467
  });
2469
- return (r, f) => (_(), Y(dn(m.value), j({ ...l, ...r.$attrs }, {
2470
- options: s(r.options)
2468
+ return (u, m) => (_(), Y(dn(f.value), j({ ...l, ...u.$attrs }, {
2469
+ options: s(u.options)
2471
2470
  }, oe(d(i))), ce({ _: 2 }, [
2472
2471
  W(d(c), (y, p) => ({
2473
2472
  name: p,
2474
2473
  fn: V((b) => [
2475
- M(r.$slots, p, pe(he(b || {})))
2474
+ M(u.$slots, p, pe(he(b || {})))
2476
2475
  ])
2477
2476
  }))
2478
2477
  ]), 1040, ["options"]));
2479
2478
  }
2480
2479
  });
2481
- function al(e) {
2480
+ function ol(e) {
2482
2481
  return Object.values(Gn).includes(e) || e == null;
2483
2482
  }
2484
- function ll(e) {
2483
+ function al(e) {
2485
2484
  return Object.values(H).includes(e);
2486
2485
  }
2487
- const ul = (e = !1) => ({
2486
+ const ll = (e = !1) => ({
2488
2487
  type: {
2489
2488
  type: String,
2490
2489
  default: null,
2491
- validator: al
2490
+ validator: ol
2492
2491
  },
2493
2492
  ...e ? {
2494
2493
  orientation: {
2495
2494
  type: String,
2496
2495
  default: H.VERTICAL,
2497
- validator: ll
2496
+ validator: al
2498
2497
  }
2499
2498
  } : {}
2500
2499
  });
2501
- function on(e, n) {
2502
- const t = v(() => e.value.map((a) => {
2503
- var u;
2500
+ function on(e, t) {
2501
+ const n = v(() => e.value.map((a) => {
2502
+ var r;
2504
2503
  return {
2505
2504
  ...a,
2506
2505
  values: ct(
2507
2506
  a.values,
2508
- ((u = n == null ? void 0 : n.value) == null ? void 0 : u.length) ?? 0
2507
+ ((r = t == null ? void 0 : t.value) == null ? void 0 : r.length) ?? 0
2509
2508
  ).map((l) => ({
2510
2509
  ...l,
2511
2510
  value: (l == null ? void 0 : l.value) || 0
@@ -2513,50 +2512,50 @@ function on(e, n) {
2513
2512
  };
2514
2513
  })), o = v(() => {
2515
2514
  var a;
2516
- return (a = t.value) == null ? void 0 : a.reduce((u, l) => (l.values.forEach((i, c) => {
2517
- u[c] ? u[c].push(i) : u[c] = [i];
2518
- }), u), []);
2515
+ return (a = n.value) == null ? void 0 : a.reduce((r, l) => (l.values.forEach((i, c) => {
2516
+ r[c] ? r[c].push(i) : r[c] = [i];
2517
+ }), r), []);
2519
2518
  });
2520
- return { multiBarData: t, groupedData: o };
2519
+ return { multiBarData: n, groupedData: o };
2521
2520
  }
2522
- function rl(e, n) {
2523
- return e.value.length === 1 ? "single" : n.value;
2521
+ function rl(e, t) {
2522
+ return e.value.length === 1 ? "single" : t.value;
2524
2523
  }
2525
- function il(e, n, t) {
2524
+ function ul(e, t, n) {
2526
2525
  const o = v(
2527
- () => t.value === H.HORIZONTAL
2526
+ () => n.value === H.HORIZONTAL
2528
2527
  );
2529
2528
  function a(i) {
2530
- i || ut(Pe.BarScaleNull), Math.min(...i.domain()) > 0 && ut(Pe.BarScaleDomainAbove0);
2529
+ i || rt(Pe.BarScaleNull), Math.min(...i.domain()) > 0 && rt(Pe.BarScaleDomainAbove0);
2531
2530
  }
2532
- const u = v(() => o.value ? (a(e.value), e.value) : e.value), l = v(() => o.value ? n.value : (a(n.value), n.value));
2533
- return { barXScale: u, barYScale: l };
2531
+ const r = v(() => o.value ? (a(e.value), e.value) : e.value), l = v(() => o.value ? t.value : (a(t.value), t.value));
2532
+ return { barXScale: r, barYScale: l };
2534
2533
  }
2535
- const sl = {
2534
+ const il = {
2536
2535
  x: 0,
2537
2536
  y: 0,
2538
2537
  width: 0,
2539
2538
  height: 0
2540
2539
  };
2541
- function cl(e, n, t, o, a, u) {
2540
+ function sl(e, t, n, o, a, r) {
2542
2541
  const l = v(
2543
2542
  () => o.value === H.HORIZONTAL
2544
2543
  );
2545
- function i(r, f) {
2544
+ function i(u, m) {
2546
2545
  let y, p;
2547
- return l.value ? (y = r >= 0 ? n.value(0) : n.value(r), p = t.value(t.value.domain()[f])) : (y = n.value(n.value.domain()[f]), p = r < 0 ? t.value(0) : t.value(r)), { 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 };
2548
2547
  }
2549
- function c(r) {
2550
- return l.value ? r < 0 ? n.value(0) - n.value(r) : n.value(r) - n.value(0) : n.value.bandwidth();
2548
+ function c(u) {
2549
+ return l.value ? u < 0 ? t.value(0) - t.value(u) : t.value(u) - t.value(0) : t.value.bandwidth();
2551
2550
  }
2552
- function s(r) {
2553
- return l.value ? t.value.bandwidth() : r < 0 ? t.value(r) - t.value(0) : t.value(0) - t.value(r);
2551
+ function s(u) {
2552
+ return l.value ? n.value.bandwidth() : u < 0 ? n.value(u) - n.value(0) : n.value(0) - n.value(u);
2554
2553
  }
2555
- function m(r, f, y) {
2556
- if (!(n.value && t.value)) return sl;
2557
- const { value: b, color: $ } = r, L = $ ?? e.value[f].color ?? Ge, { x: g, y: O } = i(b, y), N = c(b), D = s(b);
2554
+ function f(u, m, y) {
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);
2558
2557
  return {
2559
- classList: [`lume-fill--${L}`, ...u],
2558
+ classList: [`lume-fill--${L}`, ...r],
2560
2559
  x: g,
2561
2560
  y: O,
2562
2561
  width: N,
@@ -2565,42 +2564,42 @@ function cl(e, n, t, o, a, u) {
2565
2564
  isNegative: b < 0
2566
2565
  };
2567
2566
  }
2568
- return { barAttributeGenerator: m };
2567
+ return { barAttributeGenerator: f };
2569
2568
  }
2570
- const dl = {
2569
+ const cl = {
2571
2570
  x: 0,
2572
2571
  y: 0,
2573
2572
  width: 0,
2574
2573
  height: 0
2575
2574
  };
2576
- function vl(e, n, t, o, a, u) {
2575
+ function dl(e, t, n, o, a, r) {
2577
2576
  const l = v(
2578
2577
  () => o.value === H.HORIZONTAL
2579
- ), 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));
2580
2579
  function s(p, b, $) {
2581
2580
  if (l.value)
2582
- return p >= 0 ? n.value(0) : n.value(p);
2583
- const L = n.value.domain();
2584
- 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($);
2585
2584
  }
2586
- function m(p, b, $) {
2585
+ function f(p, b, $) {
2587
2586
  if (l.value) {
2588
- const L = t.value.domain();
2589
- return t.value(L[b]) + c.value($);
2587
+ const L = n.value.domain();
2588
+ return n.value(L[b]) + c.value($);
2590
2589
  }
2591
- return p < 0 ? t.value(0) : t.value(p);
2590
+ return p < 0 ? n.value(0) : n.value(p);
2592
2591
  }
2593
- function r(p) {
2594
- return l.value ? p < 0 ? n.value(0) - n.value(p) : n.value(p) - n.value(0) : i.value.bandwidth();
2592
+ function u(p) {
2593
+ return l.value ? p < 0 ? t.value(0) - t.value(p) : t.value(p) - t.value(0) : i.value.bandwidth();
2595
2594
  }
2596
- function f(p) {
2597
- return l.value ? c.value.bandwidth() : p < 0 ? t.value(p) - t.value(0) : t.value(0) - t.value(p);
2595
+ function m(p) {
2596
+ return l.value ? c.value.bandwidth() : p < 0 ? n.value(p) - n.value(0) : n.value(0) - n.value(p);
2598
2597
  }
2599
2598
  function y(p, b, $) {
2600
- if (!(n.value && t.value)) return dl;
2601
- const { value: g, color: O } = p, N = O ?? e.value[b].color ?? Object.values(ie)[b], D = s(g, $, b), P = m(g, $, b), w = r(g), B = f(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);
2602
2601
  return {
2603
- classList: [`lume-fill--${N}`, ...u],
2602
+ classList: [`lume-fill--${N}`, ...r],
2604
2603
  x: D,
2605
2604
  y: P,
2606
2605
  width: w,
@@ -2611,68 +2610,68 @@ function vl(e, n, t, o, a, u) {
2611
2610
  }
2612
2611
  return { barAttributeGenerator: y };
2613
2612
  }
2614
- function fl(e, n, t) {
2613
+ function vl(e, t, n) {
2615
2614
  const o = v(
2616
- () => n.value === H.HORIZONTAL
2615
+ () => t.value === H.HORIZONTAL
2617
2616
  ), a = v(() => {
2618
2617
  const c = e.value.map(
2619
- (s) => s.filter((m) => m.value < 0).reduce((m, r) => m + r.value, 0)
2618
+ (s) => s.filter((f) => f.value < 0).reduce((f, u) => f + u.value, 0)
2620
2619
  );
2621
2620
  return Math.min(...c);
2622
- }), u = v(() => {
2621
+ }), r = v(() => {
2623
2622
  const c = e.value.map(
2624
2623
  (s) => s.reduce(
2625
- (m, r) => r.value >= 0 ? m + r.value : m,
2624
+ (f, u) => u.value >= 0 ? f + u.value : f,
2626
2625
  0
2627
2626
  )
2628
2627
  );
2629
2628
  return Math.max(...c);
2630
2629
  });
2631
- function l(c, s, m) {
2632
- return s.length ? o.value ? Me().domain([a.value, u.value]).range([0, m.width]) : Object.assign(
2630
+ function l(c, s, f) {
2631
+ return s.length ? o.value ? Be().domain([a.value, r.value]).range([0, f.width]) : Object.assign(
2633
2632
  Et(
2634
- Be().domain(s.map((r, f) => f)).range([0, m.width]),
2635
- n.value,
2636
- t.value
2633
+ Me().domain(s.map((u, m) => m)).range([0, f.width]),
2634
+ t.value,
2635
+ n.value
2637
2636
  ),
2638
2637
  { labels: s }
2639
2638
  ) : null;
2640
2639
  }
2641
- function i(c, s, m) {
2640
+ function i(c, s, f) {
2642
2641
  return s.length ? o.value ? Object.assign(
2643
2642
  Et(
2644
- Be().domain(s.map((r, f) => f)).range([0, m.height]),
2645
- n.value,
2646
- t.value
2643
+ Me().domain(s.map((u, m) => m)).range([0, f.height]),
2644
+ t.value,
2645
+ n.value
2647
2646
  ),
2648
2647
  { labels: s }
2649
- ) : Me().domain([u.value, a.value]).range([0, m.height]) : null;
2648
+ ) : Be().domain([r.value, a.value]).range([0, f.height]) : null;
2650
2649
  }
2651
2650
  return { stackedXScaleGenerator: l, stackedYScaleGenerator: i };
2652
2651
  }
2653
- function ml(e, n, t, o, a, u) {
2652
+ function ml(e, t, n, o, a, r) {
2654
2653
  const l = v(
2655
2654
  () => o.value === H.HORIZONTAL
2656
2655
  ), i = v(
2657
- () => l.value ? t.value.domain() : n.value.domain()
2656
+ () => l.value ? n.value.domain() : t.value.domain()
2658
2657
  ), c = v(
2659
2658
  () => e.value.map((L) => L.values.map((g) => g == null ? void 0 : g.value))
2660
2659
  );
2661
2660
  function s(L, g, O) {
2662
2661
  let N, D;
2663
- 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 };
2664
2663
  }
2665
- function m(L) {
2666
- return l.value ? n.value(L) - n.value(0) : n.value.bandwidth();
2664
+ function f(L) {
2665
+ return l.value ? t.value(L) - t.value(0) : t.value.bandwidth();
2667
2666
  }
2668
- function r(L) {
2669
- return l.value ? n.value(0) - n.value(L) : n.value.bandwidth();
2667
+ function u(L) {
2668
+ return l.value ? t.value(0) - t.value(L) : t.value.bandwidth();
2670
2669
  }
2671
- function f(L) {
2672
- return l.value ? t.value.bandwidth() : t.value(0) - t.value(L);
2670
+ function m(L) {
2671
+ return l.value ? n.value.bandwidth() : n.value(0) - n.value(L);
2673
2672
  }
2674
2673
  function y(L) {
2675
- 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);
2676
2675
  }
2677
2676
  function p(L, g) {
2678
2677
  return L ? c.value.reduce((O, N, D) => (D < L && N[g] >= 0 && (O += N[g]), O), 0) : 0;
@@ -2681,9 +2680,9 @@ function ml(e, n, t, o, a, u) {
2681
2680
  return L ? c.value.reduce((O, N, D) => (D < L && N[g] < 0 && (O += N[g]), O), 0) : 0;
2682
2681
  }
2683
2682
  function $(L, g, O) {
2684
- const { value: N, color: D } = L, P = N >= 0 ? m(N) : r(N), w = N >= 0 ? f(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);
2685
2684
  return {
2686
- classList: [`lume-fill--${D ?? e.value[g].color ?? Object.values(ie)[g]}`, ...u],
2685
+ classList: [`lume-fill--${D ?? e.value[g].color ?? Object.values(ie)[g]}`, ...r],
2687
2686
  width: P,
2688
2687
  height: w,
2689
2688
  x: U,
@@ -2694,12 +2693,12 @@ function ml(e, n, t, o, a, u) {
2694
2693
  }
2695
2694
  return { barAttributeGenerator: $ };
2696
2695
  }
2697
- const pl = {
2696
+ const fl = {
2698
2697
  class: "lume-bar-group",
2699
2698
  "data-j-bars-group": ""
2700
- }, hl = ["onMouseenter"], gl = {
2701
- single: cl,
2702
- grouped: vl,
2699
+ }, pl = ["onMouseenter"], hl = {
2700
+ single: sl,
2701
+ grouped: dl,
2703
2702
  stacked: ml
2704
2703
  }, yt = /* @__PURE__ */ Z({
2705
2704
  __name: "lume-bar-group",
@@ -2709,33 +2708,33 @@ const pl = {
2709
2708
  type: [String, Array],
2710
2709
  default: () => []
2711
2710
  },
2712
- ...ul(!0),
2711
+ ...ll(!0),
2713
2712
  transition: {
2714
2713
  type: Boolean,
2715
2714
  default: !0
2716
2715
  }
2717
2716
  },
2718
2717
  emits: ["bar-click", "lume__internal--hover"],
2719
- setup(e, { emit: n }) {
2720
- const t = e, o = n, {
2718
+ setup(e, { emit: t }) {
2719
+ const n = e, o = t, {
2721
2720
  data: a,
2722
- hoveredIndex: u,
2721
+ hoveredIndex: r,
2723
2722
  orientation: l,
2724
2723
  transition: i,
2725
2724
  type: c,
2726
2725
  xScale: s,
2727
- yScale: m,
2728
- classList: r,
2729
- labels: f
2730
- } = ee(t);
2726
+ yScale: f,
2727
+ classList: u,
2728
+ labels: m
2729
+ } = ee(n);
2731
2730
  Ce("chartID");
2732
- const { emitInternalEvent: y } = _e(), { groupedData: p } = on(a, f), { barXScale: b, barYScale: $ } = il(s, m, l), L = v(() => typeof r.value == "string" ? [r.value] : r.value), g = v(() => {
2733
- const D = rl(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](
2734
2733
  a,
2735
2734
  b,
2736
2735
  $,
2737
2736
  l,
2738
- u,
2737
+ r,
2739
2738
  L.value
2740
2739
  );
2741
2740
  return P;
@@ -2746,7 +2745,7 @@ const pl = {
2746
2745
  async function N(D) {
2747
2746
  o("lume__internal--hover", D), y("lume__internal--hover", D);
2748
2747
  }
2749
- return (D, P) => (_(), I("g", pl, [
2748
+ return (D, P) => (_(), I("g", fl, [
2750
2749
  (_(!0), I(Q, null, W(d(p), (w, B) => (_(), I("g", {
2751
2750
  key: B,
2752
2751
  onMouseenter: (U) => N(B)
@@ -2761,10 +2760,10 @@ const pl = {
2761
2760
  event: J
2762
2761
  })
2763
2762
  }), null, 16, ["transition", "onClick"]))), 128))
2764
- ], 40, hl))), 128))
2763
+ ], 40, pl))), 128))
2765
2764
  ]));
2766
2765
  }
2767
- }), yl = {
2766
+ }), gl = {
2768
2767
  [H.VERTICAL]: {
2769
2768
  withTooltip: !0,
2770
2769
  xAxisOptions: {},
@@ -2777,35 +2776,35 @@ const pl = {
2777
2776
  yAxisOptions: { gridLines: !1 },
2778
2777
  margins: be.HORIZONTAL
2779
2778
  }
2780
- }, Xl = /* @__PURE__ */ Z({
2779
+ }, Ul = /* @__PURE__ */ Z({
2781
2780
  __name: "lume-single-bar-chart",
2782
2781
  props: {
2783
- ...we(st)
2782
+ ...Ie(st)
2784
2783
  },
2785
- setup(e, { emit: n }) {
2786
- const t = e, { componentEventPropagator: o } = _e(), a = Ae(ue()), { orientation: u, options: l } = ee(t), i = v(
2787
- () => yl[u.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]
2788
2787
  // needs to be computed so that default options are reactive
2789
- ), { allOptions: c } = fe(l, i);
2790
- return (s, m) => (_(), Y(d(Ee), j({ ...t, ...s.$attrs }, {
2788
+ ), { allOptions: c } = me(l, i);
2789
+ return (s, f) => (_(), Y(d(xe), j({ ...n, ...s.$attrs }, {
2791
2790
  "chart-type": "single-bar",
2792
2791
  options: d(c),
2793
2792
  "data-j-single-bar-chart": ""
2794
2793
  }, oe(d(o))), ce({
2795
- groups: V((r) => [
2796
- re(d(yt), j(r, { orientation: d(u) }, oe(d(o))), null, 16, ["orientation"])
2794
+ groups: V((u) => [
2795
+ ue(d(yt), j(u, { orientation: d(r) }, oe(d(o))), null, 16, ["orientation"])
2797
2796
  ]),
2798
2797
  _: 2
2799
2798
  }, [
2800
- W(d(a), (r, f) => ({
2801
- name: f,
2799
+ W(d(a), (u, m) => ({
2800
+ name: m,
2802
2801
  fn: V((y) => [
2803
- M(s.$slots, f, pe(he(y || {})))
2802
+ M(s.$slots, m, pe(he(y || {})))
2804
2803
  ])
2805
2804
  }))
2806
2805
  ]), 1040, ["options"]));
2807
2806
  }
2808
- }), _l = {
2807
+ }), yl = {
2809
2808
  [H.VERTICAL]: {
2810
2809
  withTooltip: !0,
2811
2810
  xAxisOptions: {},
@@ -2819,38 +2818,38 @@ const pl = {
2819
2818
  margins: be.HORIZONTAL,
2820
2819
  tooltipOptions: { position: "right" }
2821
2820
  }
2822
- }, Yl = /* @__PURE__ */ Z({
2821
+ }, Xl = /* @__PURE__ */ Z({
2823
2822
  __name: "lume-grouped-bar-chart",
2824
2823
  props: {
2825
- ...we()
2824
+ ...Ie()
2826
2825
  },
2827
- setup(e, { emit: n }) {
2828
- const t = e, { componentEventPropagator: o } = _e(), a = Ae(ue()), { orientation: u, options: l } = ee(t), i = v(
2829
- () => _l[u.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]
2830
2829
  // needs to be computed so that default options are reactive
2831
- ), { allOptions: c } = fe(
2830
+ ), { allOptions: c } = me(
2832
2831
  l,
2833
2832
  i
2834
2833
  );
2835
- return (s, m) => (_(), Y(d(Ee), j({ ...t, ...s.$attrs }, {
2834
+ return (s, f) => (_(), Y(d(xe), j({ ...n, ...s.$attrs }, {
2836
2835
  "chart-type": "grouped-bar",
2837
2836
  options: d(c),
2838
2837
  "data-j-grouped-bar-chart": ""
2839
2838
  }, oe(d(o))), ce({
2840
- groups: V((r) => [
2841
- re(d(yt), j(r, { type: "grouped" }, oe(d(o))), null, 16)
2839
+ groups: V((u) => [
2840
+ ue(d(yt), j(u, { type: "grouped" }, oe(d(o))), null, 16)
2842
2841
  ]),
2843
2842
  _: 2
2844
2843
  }, [
2845
- W(d(a), (r, f) => ({
2846
- name: f,
2844
+ W(d(a), (u, m) => ({
2845
+ name: m,
2847
2846
  fn: V((y) => [
2848
- M(s.$slots, f, pe(he(y || {})))
2847
+ M(s.$slots, m, pe(he(y || {})))
2849
2848
  ])
2850
2849
  }))
2851
2850
  ]), 1040, ["options"]));
2852
2851
  }
2853
- }), kl = {
2852
+ }), _l = {
2854
2853
  [H.VERTICAL]: {
2855
2854
  withTooltip: !0,
2856
2855
  xAxisOptions: {},
@@ -2865,32 +2864,32 @@ const pl = {
2865
2864
  margins: be.HORIZONTAL,
2866
2865
  tooltipOptions: { position: "right" }
2867
2866
  }
2868
- }, Kl = /* @__PURE__ */ Z({
2867
+ }, Yl = /* @__PURE__ */ Z({
2869
2868
  __name: "lume-stacked-bar-chart",
2870
2869
  props: {
2871
- ...we()
2870
+ ...Ie()
2872
2871
  },
2873
- setup(e, { emit: n }) {
2874
- const t = e, { componentEventPropagator: o } = _e(), a = Ae(ue()), { data: u, orientation: l, options: i, labels: c } = ee(t), s = v(
2875
- () => 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]
2876
2875
  // needs to be computed so that default options are reactive
2877
- ), { allOptions: m } = fe(
2876
+ ), { allOptions: f } = me(
2878
2877
  i,
2879
2878
  s
2880
- ), { internalData: r } = ht(u), { groupedData: f } = on(r, c), { stackedXScaleGenerator: y, stackedYScaleGenerator: p } = fl(
2881
- f,
2879
+ ), { internalData: u } = ht(r), { groupedData: m } = on(u, c), { stackedXScaleGenerator: y, stackedYScaleGenerator: p } = vl(
2880
+ m,
2882
2881
  l,
2883
2882
  i
2884
- ), b = v(() => t.xScale || y), $ = v(() => t.yScale || p);
2885
- 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 }, {
2886
2885
  "chart-type": "stacked-bar",
2887
- options: d(m),
2886
+ options: d(f),
2888
2887
  "x-scale": b.value,
2889
2888
  "y-scale": $.value,
2890
2889
  "data-j-stacked-bar-chart": ""
2891
2890
  }, oe(d(o))), ce({
2892
2891
  groups: V((O) => [
2893
- re(d(yt), j(O, { type: "stacked" }, oe(d(o))), null, 16)
2892
+ ue(d(yt), j(O, { type: "stacked" }, oe(d(o))), null, 16)
2894
2893
  ]),
2895
2894
  _: 2
2896
2895
  }, [
@@ -2902,7 +2901,7 @@ const pl = {
2902
2901
  }))
2903
2902
  ]), 1040, ["options", "x-scale", "y-scale"]));
2904
2903
  }
2905
- }), bl = ["d", "stroke-width"], Al = 2, Tl = /* @__PURE__ */ Z({
2904
+ }), kl = ["d", "stroke-width"], bl = 2, Al = /* @__PURE__ */ Z({
2906
2905
  __name: "lume-line",
2907
2906
  props: {
2908
2907
  pathDefinition: {
@@ -2911,7 +2910,7 @@ const pl = {
2911
2910
  },
2912
2911
  width: {
2913
2912
  type: Number,
2914
- default: Al
2913
+ default: bl
2915
2914
  },
2916
2915
  color: {
2917
2916
  type: String,
@@ -2935,9 +2934,9 @@ const pl = {
2935
2934
  }
2936
2935
  },
2937
2936
  emits: ["click"],
2938
- setup(e, { emit: n }) {
2939
- const t = n, o = S(null);
2940
- return ye(() => ze(o.value)), (a, u) => (_(), I("path", {
2937
+ setup(e, { emit: t }) {
2938
+ const n = t, o = G(null);
2939
+ return ye(() => ze(o.value)), (a, r) => (_(), I("path", {
2941
2940
  ref_key: "root",
2942
2941
  ref: o,
2943
2942
  class: te(["lume-line", {
@@ -2952,10 +2951,10 @@ const pl = {
2952
2951
  animationDuration: e.transition && e.animationDuration + "s"
2953
2952
  }),
2954
2953
  "data-j-line": "",
2955
- onClick: u[0] || (u[0] = (l) => t("click", l))
2956
- }, null, 14, bl));
2954
+ onClick: r[0] || (r[0] = (l) => n("click", l))
2955
+ }, null, 14, kl));
2957
2956
  }
2958
- }), 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({
2959
2958
  __name: "lume-point",
2960
2959
  props: {
2961
2960
  x: { type: Number, required: !0 },
@@ -2966,7 +2965,7 @@ const pl = {
2966
2965
  },
2967
2966
  radius: {
2968
2967
  type: Number,
2969
- default: Ol
2968
+ default: $l
2970
2969
  },
2971
2970
  active: {
2972
2971
  type: Boolean,
@@ -2974,8 +2973,8 @@ const pl = {
2974
2973
  }
2975
2974
  },
2976
2975
  emits: ["click"],
2977
- setup(e, { emit: n }) {
2978
- const t = e, o = n, a = S(null), u = v(() => t.radius / 2);
2976
+ setup(e, { emit: t }) {
2977
+ const n = e, o = t, a = G(null), r = v(() => n.radius / 2);
2979
2978
  return ye(() => ze(a.value)), (l, i) => (_(), I("circle", {
2980
2979
  ref_key: "root",
2981
2980
  ref: a,
@@ -2983,43 +2982,43 @@ const pl = {
2983
2982
  cx: e.x,
2984
2983
  cy: e.y,
2985
2984
  r: e.active ? e.radius : 0,
2986
- "stroke-width": u.value,
2985
+ "stroke-width": r.value,
2987
2986
  "data-j-point": "",
2988
2987
  onClick: i[0] || (i[0] = (c) => o("click", c))
2989
- }, null, 10, $l));
2988
+ }, null, 10, Ll));
2990
2989
  }
2991
- }), xl = /* @__PURE__ */ q(Il, [["__scopeId", "data-v-436fef87"]]);
2990
+ }), Il = /* @__PURE__ */ q(Ol, [["__scopeId", "data-v-436fef87"]]);
2992
2991
  function an(e) {
2993
- function n(u) {
2992
+ function t(r) {
2994
2993
  let l = null;
2995
- return u == null ? void 0 : u.reduce((i, c, s) => (c == null || c.value == null ? (l ? l.push(s) : l = [s], s === (u == null ? void 0 : u.length) - 1 && i.push(l)) : l && (i.push(l), l = null), i), []);
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), []);
2996
2995
  }
2997
- function t(u, l, i, c) {
2998
- const r = Math.abs(u - l) / (i + 1) * (c + 1);
2999
- return u == null && l == null ? null : u > l ? u - r : u + r;
2996
+ function n(r, l, i, c) {
2997
+ const u = Math.abs(r - l) / (i + 1) * (c + 1);
2998
+ return r == null && l == null ? null : r > l ? r - u : r + u;
3000
2999
  }
3001
- function o(u) {
3000
+ function o(r) {
3002
3001
  return function(i) {
3003
- return !!u.find(
3002
+ return !!r.find(
3004
3003
  (c) => c.includes(i) || c.includes(i - 1)
3005
3004
  );
3006
3005
  };
3007
3006
  }
3008
- return { computedLineData: v(() => e.value.map((u) => {
3009
- const l = n(u.values);
3007
+ return { computedLineData: v(() => e.value.map((r) => {
3008
+ const l = t(r.values);
3010
3009
  return {
3011
- ...u,
3010
+ ...r,
3012
3011
  isDashed: o(l),
3013
- values: u.values.map((i, c) => {
3014
- var m, r;
3012
+ values: r.values.map((i, c) => {
3013
+ var f, u;
3015
3014
  const s = l.find(
3016
- (f) => f.includes(c)
3015
+ (m) => m.includes(c)
3017
3016
  );
3018
3017
  if (s) {
3019
- const f = s[0] - 1, y = s[s.length - 1] + 1;
3020
- let p = (m = u.values[f]) == null ? void 0 : m.value, b = (r = u.values[y]) == null ? void 0 : r.value;
3018
+ const m = s[0] - 1, y = s[s.length - 1] + 1;
3019
+ let p = (f = r.values[m]) == null ? void 0 : f.value, b = (u = r.values[y]) == null ? void 0 : u.value;
3021
3020
  return p == null && (p = b), b == null && (b = p), {
3022
- value: t(
3021
+ value: n(
3023
3022
  p,
3024
3023
  b,
3025
3024
  s.length,
@@ -3033,27 +3032,27 @@ function an(e) {
3033
3032
  };
3034
3033
  })) };
3035
3034
  }
3036
- function wl(e, n) {
3037
- const t = e.bandwidth() / 2;
3038
- 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;
3039
3038
  }
3040
- function El(e, n) {
3041
- return (t, o) => e(n + (o - 1));
3039
+ function wl(e, t) {
3040
+ return (n, o) => e(t + (o - 1));
3042
3041
  }
3043
- function Nl(e, n, t, o) {
3042
+ function El(e, t, n, o) {
3044
3043
  const a = yn().x(
3045
- de(t) ? wl(t, e) : El(t, e)
3046
- ).y((u) => o(u));
3047
- return n.every((u) => u == null) ? null : a(n);
3044
+ de(n) ? xl(n, e) : wl(n, e)
3045
+ ).y((r) => o(r));
3046
+ return t.every((r) => r == null) ? null : a(t);
3048
3047
  }
3049
- const Dl = {
3048
+ const Nl = {
3050
3049
  class: "lume-line-group",
3051
3050
  "data-j-lume-line-group": ""
3052
- }, Hl = { class: "lume-line-group__lines" }, Bl = {
3051
+ }, Dl = { class: "lume-line-group__lines" }, Hl = {
3053
3052
  key: 0,
3054
3053
  class: "lume-line-group__points",
3055
3054
  "data-j-lume-line-group__points": ""
3056
- }, Ml = 1, Rl = /* @__PURE__ */ Z({
3055
+ }, Bl = 1, Ml = /* @__PURE__ */ Z({
3057
3056
  __name: "lume-line-group",
3058
3057
  props: {
3059
3058
  ...We(),
@@ -3067,48 +3066,48 @@ const Dl = {
3067
3066
  }
3068
3067
  },
3069
3068
  emits: ["line-click", "point-click", "lume__internal--hover"],
3070
- setup(e, { emit: n }) {
3071
- const t = e, o = n, { data: a, options: u, 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(
3072
3071
  "tooltipAnchorAttributes",
3073
3072
  null
3074
- ), { updateTooltipAnchorAttributes: m } = en(
3073
+ ), { updateTooltipAnchorAttributes: f } = en(
3075
3074
  s,
3076
- u,
3075
+ r,
3077
3076
  l,
3078
3077
  i,
3079
3078
  c
3080
- ), r = v(() => {
3079
+ ), u = v(() => {
3081
3080
  if (a.value.every((B) => B.isDashed))
3082
3081
  return a.value;
3083
3082
  const { computedLineData: w } = an(a);
3084
- return u.value.withTooltip !== !1 && (s != null && s.value) && m(w.value), w.value;
3085
- }), f = v(() => {
3086
- if (t.hoveredIndex === -1) return;
3083
+ return r.value.withTooltip !== !1 && (s != null && s.value) && f(w.value), w.value;
3084
+ }), m = v(() => {
3085
+ if (n.hoveredIndex === -1) return;
3087
3086
  const w = wn(
3088
- r.value,
3089
- t.hoveredIndex
3087
+ u.value,
3088
+ n.hoveredIndex
3090
3089
  );
3091
3090
  return {
3092
- d: `M ${tt(l.value, t.hoveredIndex)},${i.value.range()[1]}
3091
+ d: `M ${tt(l.value, n.hoveredIndex)},${i.value.range()[1]}
3093
3092
  V ${i.value(w)}`
3094
3093
  // Move to X index, Vertical line to the highest point
3095
3094
  };
3096
3095
  }), y = v(
3097
- () => l.value && Ml / (En(l.value) - 1)
3096
+ () => l.value && Bl / (En(l.value) - 1)
3098
3097
  // Subtracting the first line (read below)
3099
3098
  ), p = v(
3100
3099
  () => {
3101
3100
  var w;
3102
- return ((w = u.value) == null ? void 0 : w.lineWidth) * 2 || void 0;
3101
+ return ((w = r.value) == null ? void 0 : w.lineWidth) * 2 || void 0;
3103
3102
  }
3104
3103
  // If no `lineWidth`, returns NaN which needs to be undefined
3105
3104
  ), b = v(
3106
3105
  () => l.value.bandwidth() / 2
3107
3106
  ), $ = v(() => l.value.domain()), L = v(
3108
- () => u.value.withPoints ?? t.withPoints
3107
+ () => r.value.withPoints ?? n.withPoints
3109
3108
  );
3110
3109
  function g(w) {
3111
- return r.value[w].values;
3110
+ return u.value[w].values;
3112
3111
  }
3113
3112
  function O(w, B) {
3114
3113
  var K, J;
@@ -3116,7 +3115,7 @@ const Dl = {
3116
3115
  (K = g(B)[w - 1]) == null ? void 0 : K.value,
3117
3116
  (J = g(B)[w]) == null ? void 0 : J.value
3118
3117
  ];
3119
- return Nl(
3118
+ return El(
3120
3119
  w,
3121
3120
  U,
3122
3121
  l.value,
@@ -3133,35 +3132,35 @@ const Dl = {
3133
3132
  var K;
3134
3133
  const U = (K = g(B)[w]) == null ? void 0 : K.value;
3135
3134
  return {
3136
- x: de(l.value) ? t.xScale($.value[w]) + b.value : t.xScale(w),
3135
+ x: de(l.value) ? n.xScale($.value[w]) + b.value : n.xScale(w),
3137
3136
  y: U === null ? i.value(i.value.domain()[1]) : i.value(U)
3138
3137
  };
3139
3138
  }
3140
3139
  function P(w) {
3141
- return t.hoveredIndex === w;
3140
+ return n.hoveredIndex === w;
3142
3141
  }
3143
- return (w, B) => (_(), I("g", Dl, [
3144
- G("path", j(f.value, {
3142
+ return (w, B) => (_(), I("g", Nl, [
3143
+ S("path", j(m.value, {
3145
3144
  class: "lume-line-group__overlay-line",
3146
3145
  "data-j-lume-line-group__overlay-line": ""
3147
3146
  }), null, 16),
3148
- (_(!0), I(Q, null, W(r.value, (U, K) => (_(), I("g", {
3147
+ (_(!0), I(Q, null, W(u.value, (U, K) => (_(), I("g", {
3149
3148
  key: U.label,
3150
3149
  class: "lume-line-group__group"
3151
3150
  }, [
3152
- G("g", Hl, [
3153
- (_(!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), {
3154
3153
  key: `line-${C}`,
3155
3154
  color: U.color,
3156
3155
  dashed: U.isDashed(C),
3157
3156
  "path-definition": O(C, K),
3158
3157
  transition: e.transition,
3159
- width: d(u).lineWidth,
3158
+ width: d(r).lineWidth,
3160
3159
  onClick: (ae) => o("line-click", { index: C, datasetIndex: K, event: ae })
3161
3160
  }), null, 16, ["color", "dashed", "path-definition", "transition", "width", "onClick"]))), 128))
3162
3161
  ]),
3163
- L.value ? (_(), I("g", Bl, [
3164
- (_(!0), I(Q, null, W(U.values, (J, C) => (_(), Y(d(xl), 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), {
3165
3164
  key: `point-${C}`,
3166
3165
  active: P(C),
3167
3166
  color: U.color,
@@ -3173,33 +3172,33 @@ const Dl = {
3173
3172
  ]))), 128))
3174
3173
  ]));
3175
3174
  }
3176
- }), ln = /* @__PURE__ */ q(Rl, [["__scopeId", "data-v-23492507"]]), Sl = {
3175
+ }), ln = /* @__PURE__ */ q(Ml, [["__scopeId", "data-v-23492507"]]), Rl = {
3177
3176
  margins: be.VERTICAL,
3178
3177
  startOnZero: !0,
3179
3178
  withTooltip: !0,
3180
3179
  xAxisOptions: {},
3181
3180
  yAxisOptions: { gridLines: !0 }
3182
- }, Jl = /* @__PURE__ */ Z({
3181
+ }, Kl = /* @__PURE__ */ Z({
3183
3182
  __name: "lume-line-chart",
3184
3183
  props: {
3185
- ...we(null, !1)
3184
+ ...Ie(null, !1)
3186
3185
  },
3187
- setup(e, { emit: n }) {
3188
- const t = e, { componentEventPropagator: o } = _e(), a = Ae(ue()), { options: u } = ee(t), { allOptions: l } = fe(u, Sl);
3189
- 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 }, {
3190
3189
  "chart-type": "line",
3191
3190
  options: d(l),
3192
3191
  "data-j-lume-line-chart": ""
3193
3192
  }, oe(d(o))), ce({
3194
3193
  groups: V((s) => [
3195
- re(d(ln), j(s, oe(d(o))), null, 16)
3194
+ ue(d(ln), j(s, oe(d(o))), null, 16)
3196
3195
  ]),
3197
3196
  _: 2
3198
3197
  }, [
3199
- W(d(a), (s, m) => ({
3200
- name: m,
3201
- fn: V((r) => [
3202
- M(i.$slots, m, pe(he(r || {})))
3198
+ W(d(a), (s, f) => ({
3199
+ name: f,
3200
+ fn: V((u) => [
3201
+ M(i.$slots, f, pe(he(u || {})))
3203
3202
  ])
3204
3203
  }))
3205
3204
  ]), 1040, ["options"]));
@@ -3207,15 +3206,15 @@ const Dl = {
3207
3206
  });
3208
3207
  function Gl(e) {
3209
3208
  return { areaPathDefinition: v(
3210
- () => function(t, o) {
3211
- if (!t || !o || de(t) || de(o))
3209
+ () => function(n, o) {
3210
+ if (!n || !o || de(n) || de(o))
3212
3211
  return;
3213
3212
  const a = e.value[0].values;
3214
- return _n().x((u, l) => t(l)).y0(o(Math.min(...o.domain()))).y1((u) => o(u.value))(a);
3213
+ return _n().x((r, l) => n(l)).y0(o(Math.min(...o.domain()))).y1((r) => o(r.value))(a);
3215
3214
  }
3216
3215
  ) };
3217
3216
  }
3218
- const jl = {
3217
+ const Sl = {
3219
3218
  margins: {
3220
3219
  top: 0,
3221
3220
  right: 0,
@@ -3229,20 +3228,20 @@ const jl = {
3229
3228
  tooltipOptions: {
3230
3229
  showTitle: !1
3231
3230
  }
3232
- }, Vl = ["d"], Pl = /* @__PURE__ */ Z({
3231
+ }, jl = ["d"], Vl = /* @__PURE__ */ Z({
3233
3232
  __name: "lume-sparkline-chart",
3234
3233
  props: {
3235
3234
  ...pt(null),
3236
3235
  ...Re()
3237
3236
  },
3238
- setup(e, { expose: n, emit: t }) {
3239
- const o = e, { componentEventPropagator: a } = _e(), u = Ae(ue()), { data: l, options: i } = ee(o), { internalData: c } = ht(l), { allOptions: s } = fe(i, jl), { computedLineData: m } = an(c), { areaPathDefinition: r } = Gl(m), f = 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(() => {
3240
3239
  var $, L;
3241
3240
  return (L = ($ = c.value) == null ? void 0 : $[0]) == null ? void 0 : L.color;
3242
3241
  }), y = v(
3243
3242
  () => {
3244
3243
  var $, L;
3245
- return ((L = ($ = l.value) == null ? void 0 : $[0]) == null ? void 0 : L.areaColor) || f.value;
3244
+ return ((L = ($ = l.value) == null ? void 0 : $[0]) == null ? void 0 : L.areaColor) || m.value;
3246
3245
  }
3247
3246
  );
3248
3247
  function p($) {
@@ -3253,11 +3252,11 @@ const jl = {
3253
3252
  }
3254
3253
  function b($, L, g) {
3255
3254
  if ($.length)
3256
- 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]);
3257
3256
  }
3258
- return n({
3259
- areaPathDefinition: r
3260
- }), ($, L) => (_(), Y(d(Ee), j(o, {
3257
+ return t({
3258
+ areaPathDefinition: u
3259
+ }), ($, L) => (_(), Y(d(xe), j(o, {
3261
3260
  "chart-type": "line",
3262
3261
  options: p(d(s)),
3263
3262
  "x-scale": b
@@ -3268,17 +3267,17 @@ const jl = {
3268
3267
  class: te([
3269
3268
  "sparkline-chart__area",
3270
3269
  d(i).withTransition !== !1 ? "sparkline-chart__area--transition" : "",
3271
- `lume-fill--${y.value || f.value}`,
3270
+ `lume-fill--${y.value || m.value}`,
3272
3271
  "lume-fill--faded"
3273
3272
  ]),
3274
- d: d(r)(g.xScale, g.yScale),
3273
+ d: d(u)(g.xScale, g.yScale),
3275
3274
  "data-j-sparkline__area": ""
3276
- }, null, 10, Vl)) : z("", !0),
3277
- re(d(ln), j(g, { "with-points": !1 }, oe(d(a))), null, 16)
3275
+ }, null, 10, jl)) : z("", !0),
3276
+ ue(d(ln), j(g, { "with-points": !1 }, oe(d(a))), null, 16)
3278
3277
  ]),
3279
3278
  _: 2
3280
3279
  }, [
3281
- W(d(u), (g, O) => ({
3280
+ W(d(r), (g, O) => ({
3282
3281
  name: O,
3283
3282
  fn: V((N) => [
3284
3283
  M($.$slots, O, pe(he(N || {})), void 0, !0)
@@ -3286,57 +3285,57 @@ const jl = {
3286
3285
  }))
3287
3286
  ]), 1040, ["options"]));
3288
3287
  }
3289
- }), Ql = /* @__PURE__ */ q(Pl, [["__scopeId", "data-v-e9fe3992"]]);
3288
+ }), Jl = /* @__PURE__ */ q(Vl, [["__scopeId", "data-v-579f7e32"]]);
3290
3289
  export {
3291
- Zo as A,
3292
- Uo as B,
3290
+ Wo as A,
3291
+ Zo as B,
3293
3292
  Re as C,
3294
- fe as D,
3293
+ me as D,
3295
3294
  gt as E,
3296
- we as F,
3297
- po as G,
3298
- ho as H,
3299
- fo as I,
3295
+ Ie as F,
3296
+ fo as G,
3297
+ po as H,
3298
+ vo as I,
3300
3299
  mo as J,
3301
3300
  wt as K,
3302
- Ee as L,
3301
+ xe as L,
3303
3302
  tt as M,
3304
3303
  Et as N,
3305
3304
  en as O,
3306
- Ko as P,
3307
- Jo as Q,
3305
+ Yo as P,
3306
+ Ko as Q,
3308
3307
  ie as R,
3309
3308
  qt as S,
3310
3309
  vt as T,
3311
- ft as U,
3312
- mt as V,
3310
+ mt as U,
3311
+ ft as V,
3313
3312
  ke as W,
3314
- Zl as _,
3315
- Ul as a,
3316
- Xl as b,
3317
- Yl as c,
3318
- Kl as d,
3319
- 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,
3320
3319
  Lt as f,
3321
- ko as g,
3320
+ _o as g,
3322
3321
  Nt as h,
3323
- Fo as i,
3324
- Ro as j,
3325
- No as k,
3326
- Ql as l,
3327
- Oo as m,
3322
+ Co as i,
3323
+ Mo as j,
3324
+ Eo as k,
3325
+ Jl as l,
3326
+ $o as m,
3328
3327
  dt as n,
3329
- Ll as o,
3330
- xl as p,
3331
- nl as q,
3332
- ya as r,
3333
- ba as s,
3334
- 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,
3335
3334
  yt as u,
3336
3335
  ln as v,
3337
- Wo as w,
3336
+ zo as w,
3338
3337
  pt as x,
3339
3338
  ht as y,
3340
3339
  an as z
3341
3340
  };
3342
- //# sourceMappingURL=o-3UCjl8.js.map
3341
+ //# sourceMappingURL=BfKxCes1.js.map