@adyen/lume 1.15.0 → 1.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { defineComponent as R, ref as I, isRef as Nt, computed as v, watch as H, toRefs as V, inject as Oe, reactive as Ie, onMounted as re, watchEffect as Et, onBeforeUnmount as $t, useSlots as X, nextTick as Be, provide as Pe, defineAsyncComponent as Re } from "vue";
1
+ import { defineComponent as P, ref as I, isRef as Nt, computed as v, watch as D, toRefs as z, inject as Oe, reactive as Ie, onMounted as ae, watchEffect as Et, onBeforeUnmount as $t, useSlots as Y, nextTick as Ce, provide as Pe, defineAsyncComponent as Re } from "vue";
2
2
  import { sankeyLinkHorizontal as Jt, sankey as Qt, sankeyJustify as qt } from "d3-sankey";
3
3
  import { format as en, ticks as tn, scaleLinear as ge, scaleBand as he, link as nn, line as rn, area as an } from "d3";
4
4
  import { createPopper as on } from "@popperjs/core";
5
- const ln = /* @__PURE__ */ R({
5
+ const ln = /* @__PURE__ */ P({
6
6
  __name: "lume-tick",
7
7
  props: {
8
8
  value: {
@@ -44,7 +44,7 @@ const ln = /* @__PURE__ */ R({
44
44
  return e({ ref: n }), { __sfc: !0, emit: r, labelRef: n };
45
45
  }
46
46
  });
47
- function S(t, e, r, n, a, o, l, i) {
47
+ function H(t, e, r, n, a, o, l, i) {
48
48
  var u = typeof t == "function" ? t.options : t;
49
49
  return e && (u.render = e, u.staticRenderFns = r, u._compiled = !0), o && (u._scopeId = "data-v-" + o), {
50
50
  exports: t,
@@ -61,7 +61,7 @@ var un = function() {
61
61
  }, click: function(a) {
62
62
  return n.emit("click", a);
63
63
  } } }, "g", e.group, !1), [r("g", { staticClass: "axis__tick-label lume-typography--axis", attrs: { "pointer-events": "all", "data-j-axis__tick-label": "" } }, [r("rect", e._b({ staticClass: "axis__ghost", attrs: { fill: "url(#lume-tick-gradient)" } }, "rect", e.ghost, !1)), r("text", e._b({ ref: "labelRef", staticClass: "axis__label" }, "text", e.label, !1), [e._v(" " + e._s(e.value) + " ")])]), e.withGridlines ? r("line", e._b({ staticClass: "axis__grid-line" }, "line", e.gridline, !1)) : e._e()]);
64
- }, sn = [], cn = /* @__PURE__ */ S(
64
+ }, sn = [], cn = /* @__PURE__ */ H(
65
65
  ln,
66
66
  un,
67
67
  sn,
@@ -93,23 +93,23 @@ function fn(t) {
93
93
  (e) => "color" in e
94
94
  );
95
95
  }
96
- function Ce(t) {
96
+ function Be(t) {
97
97
  return !!t && typeof t == "object" && !Array.isArray(t);
98
98
  }
99
99
  function Ht(t, e) {
100
100
  const r = { ...t };
101
101
  return Object.entries(e).forEach(([n, a]) => {
102
- r[n] = Ce(t[n]) && Ce(a) ? Ht(t[n], a) : a;
102
+ r[n] = Be(t[n]) && Be(a) ? Ht(t[n], a) : a;
103
103
  }), r;
104
104
  }
105
105
  function pn(t) {
106
- return t != null && Ce(t) && "value" in t;
106
+ return t != null && Be(t) && "value" in t;
107
107
  }
108
- function K(t) {
108
+ function Q(t) {
109
109
  return (t == null ? void 0 : t.bandwidth) !== void 0;
110
110
  }
111
111
  function mn(t) {
112
- return K(t) ? t.step() : Math.max(...t.range()) / Math.max(...t.domain());
112
+ return Q(t) ? t.step() : Math.max(...t.range()) / Math.max(...t.domain());
113
113
  }
114
114
  function _n(t) {
115
115
  const [e, r] = t.domain();
@@ -122,7 +122,7 @@ const gn = (t, e) => {
122
122
  throw new Error("Cannot get highest value from empty array");
123
123
  t.some(
124
124
  ({ values: n }) => n.length - 1 >= e
125
- ) || ne(J.IndexExceedsLengthOfDataSets);
125
+ ) || re(q.IndexExceedsLengthOfDataSets);
126
126
  };
127
127
  function hn(t, e) {
128
128
  var r;
@@ -144,7 +144,7 @@ function St(t) {
144
144
  return Array(r).fill(null);
145
145
  }
146
146
  function yn(t) {
147
- return K(t) ? t.domain().length : Math.max(...t.domain());
147
+ return Q(t) ? t.domain().length : Math.max(...t.domain());
148
148
  }
149
149
  function bn(t, e) {
150
150
  return (r) => Math.round(t * (1 - r) + e * r);
@@ -153,7 +153,7 @@ function kn(t, e, r) {
153
153
  const n = e, a = t.slice(0, n);
154
154
  return t.slice(n).concat(a);
155
155
  }
156
- function se(t) {
156
+ function ce(t) {
157
157
  if (t.groups) {
158
158
  const e = Object.keys(t);
159
159
  return Object.assign(
@@ -175,10 +175,10 @@ function Je(t, e) {
175
175
  const r = e - t.length;
176
176
  return r > 0 ? [...t, ...Array(r).fill({ value: null })] : t;
177
177
  }
178
- var J = /* @__PURE__ */ ((t) => (t.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
179
- Learn more: https://lume.design/guidelines/datasets`, t.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", t.Empty = "The dataset(s) provided are empty.", t.InvalidFormat = "The string provided to format is invalid. Please refer to https://github.com/d3/d3-format for valid arguments.", t.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", t.InvalidHoveredIndex = "The provided hovered index is not valid for the data of this chart.", t.InvalidHoveredElement = "The provided hovered element is not valid for the data of this diagram.", t.IndexExceedsLengthOfDataSets = "Index exceeds length of all of the datasets", t))(J || {});
178
+ var q = /* @__PURE__ */ ((t) => (t.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
179
+ Learn more: https://lume.design/guidelines/datasets`, t.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", t.Empty = "The dataset(s) provided are empty.", t.InvalidFormat = "The string provided to format is invalid. Please refer to https://github.com/d3/d3-format for valid arguments.", t.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", t.InvalidHoveredIndex = "The provided hovered index is not valid for the data of this chart.", t.InvalidHoveredElement = "The provided hovered element is not valid for the data of this diagram.", t.IndexExceedsLengthOfDataSets = "Index exceeds length of all of the datasets", t))(q || {});
180
180
  const Ln = "[lume] ";
181
- function ne(t, e = !0) {
181
+ function re(t, e = !0) {
182
182
  e && wt() || console.warn(Ln + "Warning: " + t);
183
183
  }
184
184
  const Te = (t) => {
@@ -188,7 +188,7 @@ const Te = (t) => {
188
188
  try {
189
189
  e = en(t);
190
190
  } catch {
191
- ne(J.InvalidFormat), e = null;
191
+ re(q.InvalidFormat), e = null;
192
192
  }
193
193
  break;
194
194
  case "function":
@@ -207,7 +207,7 @@ const Te = (t) => {
207
207
  default: () => ({})
208
208
  }
209
209
  });
210
- function Q(t, e) {
210
+ function ee(t, e) {
211
211
  return { allOptions: v(() => {
212
212
  const n = Nt(e) ? e == null ? void 0 : e.value : e;
213
213
  return n ? Ht(n, t.value) : t.value;
@@ -231,7 +231,7 @@ function An(t, e, r) {
231
231
  const f = a.value / s, m = typeof c == "number" && c > 0 && c + 1 || Math.ceil(n.value / f);
232
232
  return u % m === 0;
233
233
  }
234
- return H(e, l), { showTick: i };
234
+ return D(e, l), { showTick: i };
235
235
  }
236
236
  const O = {
237
237
  HORIZONTAL: "horizontal",
@@ -240,7 +240,7 @@ const O = {
240
240
  SINGLE: "single",
241
241
  GROUPED: "grouped",
242
242
  STACKED: "stacked"
243
- }, Pt = "No data", st = 20, Rt = 0.33, Bt = 0.5, Ct = 12, be = 8, In = 1, Nn = [
243
+ }, Pt = "No data", st = 20, Rt = 0.33, Ct = 0.5, Bt = 12, be = 8, In = 1, Nn = [
244
244
  "auto",
245
245
  "auto-start",
246
246
  "auto-end",
@@ -258,7 +258,7 @@ const O = {
258
258
  "left-end"
259
259
  ];
260
260
  function Ne(t) {
261
- t != null && t.closest("svg") || ne(J.NotContainedInSvg);
261
+ t != null && t.closest("svg") || re(q.NotContainedInSvg);
262
262
  }
263
263
  const Ft = {
264
264
  /** Displays a line for each tick. */
@@ -299,7 +299,7 @@ const Ft = {
299
299
  return {
300
300
  x: -(c - t.value.step()) / 2,
301
301
  width: c,
302
- height: r.value.tickPadding + Ct + be
302
+ height: r.value.tickPadding + Bt + be
303
303
  };
304
304
  }
305
305
  function l() {
@@ -375,7 +375,7 @@ const Ft = {
375
375
  }
376
376
  function o() {
377
377
  return {
378
- height: r.value.tickPadding + Ct + be,
378
+ height: r.value.tickPadding + Bt + be,
379
379
  width: n.value,
380
380
  x: -(n.value / 2)
381
381
  };
@@ -443,7 +443,7 @@ const Ft = {
443
443
  "y-linear-scale-axis": Sn
444
444
  };
445
445
  var Fe = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(Fe || {}), Ge = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))(Ge || {}), Le = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(Le || {});
446
- const Rn = /* @__PURE__ */ R({
446
+ const Rn = /* @__PURE__ */ P({
447
447
  __name: "lume-axis",
448
448
  props: {
449
449
  scale: {
@@ -476,40 +476,40 @@ const Rn = /* @__PURE__ */ R({
476
476
  },
477
477
  emits: ["mouseenter", "click", "mouseleave", "lume__internal--axis-size"],
478
478
  setup(t, { emit: e }) {
479
- const r = t, n = 16, { scale: a, containerSize: o, hoveredIndex: l, options: i, orientation: u } = V(r), c = Oe("isEmpty", I(!1)), s = Ie({}), f = I(null), m = I(null), h = I(null), g = v(
479
+ const r = t, n = 16, { scale: a, containerSize: o, hoveredIndex: l, options: i, orientation: u } = z(r), c = Oe("isEmpty", I(!1)), s = Ie({}), f = I(null), m = I(null), h = I(null), g = v(
480
480
  () => r.type ? Le[r.type] : r.position
481
481
  ), _ = v(
482
482
  () => r.type || (g.value === "left" ? "y" : "x")
483
483
  ), x = v(
484
484
  () => _.value === "x" && u.value === O.VERTICAL || _.value === "y" && u.value === O.HORIZONTAL
485
- ), { allOptions: d } = Q(
485
+ ), { allOptions: d } = ee(
486
486
  i,
487
487
  _.value === "x" ? En : $n
488
488
  ), { showTick: p } = An(a, f, d), y = v(
489
489
  () => c.value || !a.value || _n(a.value)
490
490
  ), k = v(() => {
491
- var E, w, P, te;
492
- return _.value === "y" && y.value ? `translate(0, ${((E = o.value) == null ? void 0 : E.height) / 2})` : _.value === "x" && y.value ? `translate(-${((w = o.value) == null ? void 0 : w.width) / 2}, ${(P = o.value) == null ? void 0 : P.height})` : `translate(0, ${_.value === "x" ? (te = o.value) == null ? void 0 : te.height : 0})`;
491
+ var E, w, S, ne;
492
+ return _.value === "y" && y.value ? `translate(0, ${((E = o.value) == null ? void 0 : E.height) / 2})` : _.value === "x" && y.value ? `translate(-${((w = o.value) == null ? void 0 : w.width) / 2}, ${(S = o.value) == null ? void 0 : S.height})` : `translate(0, ${_.value === "x" ? (ne = o.value) == null ? void 0 : ne.height : 0})`;
493
493
  }), T = v(() => {
494
494
  if (!a.value) return [];
495
- if (K(a.value))
495
+ if (Q(a.value))
496
496
  return a.value.labels || a.value.domain();
497
- const { tickCount: E } = d.value, [w, P] = a.value.domain();
498
- return tn(w, P, E);
497
+ const { tickCount: E } = d.value, [w, S] = a.value.domain();
498
+ return tn(w, S, E);
499
499
  }), N = v(() => {
500
500
  const { tickFormat: E } = d.value;
501
501
  return Te(E);
502
- }), A = v(
502
+ }), F = v(
503
503
  () => d.value.withHover && x.value && l.value > -1
504
- ), D = v(
504
+ ), B = v(
505
505
  () => d.value.tickPadding + be || n
506
- ), C = v(() => _.value === "x" ? (
506
+ ), A = v(() => _.value === "x" ? (
507
507
  // If x axis, get the tick height
508
508
  Math.max(
509
509
  ...(f.value || []).map(
510
510
  (E) => {
511
- var w, P;
512
- return ((P = (w = E.ref).getBBox) == null ? void 0 : P.call(w).height) + D.value;
511
+ var w, S;
512
+ return ((S = (w = E.ref).getBBox) == null ? void 0 : S.call(w).height) + B.value;
513
513
  }
514
514
  )
515
515
  )
@@ -518,54 +518,54 @@ const Rn = /* @__PURE__ */ R({
518
518
  Math.max(
519
519
  ...(f.value || []).map(
520
520
  (E) => {
521
- var w, P;
522
- return ((P = (w = E.ref).getBBox) == null ? void 0 : P.call(w).width) + D.value;
521
+ var w, S;
522
+ return ((S = (w = E.ref).getBBox) == null ? void 0 : S.call(w).width) + B.value;
523
523
  }
524
524
  )
525
525
  )
526
526
  ));
527
- function M(E) {
527
+ function C(E) {
528
528
  const { showTicks: w } = d.value;
529
529
  return w === !1 ? "" : N.value(E);
530
530
  }
531
- function z(E, w, P) {
532
- e("mouseenter", { index: x.value ? E : null, value: w, event: P });
531
+ function G(E, w, S) {
532
+ e("mouseenter", { index: x.value ? E : null, value: w, event: S });
533
533
  }
534
- function ee(E, w, P) {
535
- e("click", { index: E, value: w, event: P });
534
+ function W(E, w, S) {
535
+ e("click", { index: E, value: w, event: S });
536
536
  }
537
- function ce(E) {
537
+ function J(E) {
538
538
  var w;
539
539
  if (!(!f.value || !f.value.length))
540
540
  return (w = f.value[E]) == null ? void 0 : w.ref;
541
541
  }
542
- function ae() {
542
+ function oe() {
543
543
  h.value = T.value.map(
544
544
  (E, w) => ({
545
- value: M(E),
545
+ value: C(E),
546
546
  group: s.getTickGroupAttributes(E, w),
547
- ghost: s.getTickGhostAttributes(ce(w)),
547
+ ghost: s.getTickGhostAttributes(J(w)),
548
548
  label: s.getTickLabelAttributes(),
549
549
  gridline: s.getGridLinesAttributes()
550
550
  })
551
551
  );
552
552
  }
553
- function oe() {
553
+ function le() {
554
554
  h.value && h.value.map((E) => (E.gridline = s.getGridLinesAttributes(), E));
555
555
  }
556
- function le() {
556
+ function ue() {
557
557
  if (!a.value) return;
558
558
  const E = a.value.step ? "bandScale" : "linearScale", w = Pn[`${_.value}-${Fe[E]}`];
559
559
  Object.entries(w(a, o, d) || []).forEach(
560
- ([P, te]) => {
561
- s[P] = te;
560
+ ([S, ne]) => {
561
+ s[S] = ne;
562
562
  }
563
563
  );
564
564
  }
565
- return H(a, le, { flush: "sync", immediate: !0 }), H(a, ae, { immediate: !0 }), H(f, ae), H(C, (E) => e("lume__internal--axis-size", E)), H(r.containerSize, oe), re(() => Ne(m.value)), { __sfc: !0, SCALE_MIXIN_MAP: Fe, POSITIONS: Ge, TYPES: Le, AXIS_LABEL_OFFSET: n, props: r, emit: e, scale: a, containerSize: o, hoveredIndex: l, options: i, orientation: u, isEmpty: c, mixins: s, tickRefs: f, root: m, ticksWithAttributes: h, computedPosition: g, computedType: _, shouldHover: x, allOptions: d, showTick: p, alignAxisBaseline: y, axisTransform: k, ticks: T, tickFormatter: N, isHovering: A, axisLabelOffset: D, axisSize: C, formatTick: M, handleTickMouseenter: z, handleTickClick: ee, getTextNode: ce, setTicks: ae, updateGridlines: oe, init: le, LumeTick: dn };
565
+ return D(a, ue, { flush: "sync", immediate: !0 }), D(a, oe, { immediate: !0 }), D(f, oe), D(A, (E) => e("lume__internal--axis-size", E)), D(r.containerSize, le), ae(() => Ne(m.value)), { __sfc: !0, SCALE_MIXIN_MAP: Fe, POSITIONS: Ge, TYPES: Le, AXIS_LABEL_OFFSET: n, props: r, emit: e, scale: a, containerSize: o, hoveredIndex: l, options: i, orientation: u, isEmpty: c, mixins: s, tickRefs: f, root: m, ticksWithAttributes: h, computedPosition: g, computedType: _, shouldHover: x, allOptions: d, showTick: p, alignAxisBaseline: y, axisTransform: k, ticks: T, tickFormatter: N, isHovering: F, axisLabelOffset: B, axisSize: A, formatTick: C, handleTickMouseenter: G, handleTickClick: W, getTextNode: J, setTicks: oe, updateGridlines: le, init: ue, LumeTick: dn };
566
566
  }
567
567
  });
568
- var Bn = function() {
568
+ var Cn = function() {
569
569
  var e = this, r = e._self._c, n = e._self._setupProxy;
570
570
  return n.scale ? r("g", { ref: "root", staticClass: "axis", attrs: { transform: n.axisTransform, "data-j-axis": "" }, on: { mouseleave: function(a) {
571
571
  return n.emit("mouseleave", a);
@@ -582,10 +582,10 @@ var Bn = function() {
582
582
  a
583
583
  );
584
584
  } } }, "lume-tick", n.ticksWithAttributes[n.hoveredIndex], !1)) : e._e()], 2) : e._e();
585
- }, Cn = [], Fn = /* @__PURE__ */ S(
585
+ }, Bn = [], Fn = /* @__PURE__ */ H(
586
586
  Rn,
587
- Bn,
588
587
  Cn,
588
+ Bn,
589
589
  !1,
590
590
  null,
591
591
  null
@@ -605,11 +605,11 @@ function jn(t, e, r, n) {
605
605
  }
606
606
  function Vn(t, e, r, n) {
607
607
  const a = I(0), o = I(0), l = v(() => `${t.value + r.value / 2}px ${e.value + n.value / 2}px`);
608
- return re(() => {
608
+ return ae(() => {
609
609
  a.value = r.value, o.value = n.value;
610
- }), H(r, (i) => a.value = i), H(n, (i) => o.value = i), { computedWidth: a, computedHeight: o, transformOrigin: l };
610
+ }), D(r, (i) => a.value = i), D(n, (i) => o.value = i), { computedWidth: a, computedHeight: o, transformOrigin: l };
611
611
  }
612
- const Mn = /* @__PURE__ */ R({
612
+ const Mn = /* @__PURE__ */ P({
613
613
  __name: "lume-bar",
614
614
  props: {
615
615
  x: {
@@ -647,10 +647,10 @@ const Mn = /* @__PURE__ */ R({
647
647
  },
648
648
  emits: ["click", "mouseover", "mouseleave"],
649
649
  setup(t, { emit: e }) {
650
- const r = t, { x: n, y: a, width: o, height: l, transition: i, classList: u } = V(r), c = I(null), s = v(
650
+ const r = t, { x: n, y: a, width: o, height: l, transition: i, classList: u } = z(r), c = I(null), s = v(
651
651
  () => typeof u.value == "string" ? [u.value] : u.value
652
652
  ), f = v(() => i.value === "width"), m = v(() => i.value === "height"), h = Vn(n, a, o, l), { computedX: g, computedY: _, shouldHaveMinWidth: x, shouldHaveMinHeight: d } = jn(n, a, o, l), p = v(() => x.value ? 1 : (f.value ? h.computedWidth : o).value), y = v(() => d.value ? 1 : (m.value ? h.computedHeight : l).value), k = f.value || m.value ? h.transformOrigin : null;
653
- return re(() => Ne(c.value)), { __sfc: !0, props: r, emit: e, x: n, y: a, width: o, height: l, transition: i, classList: u, root: c, computedClasses: s, shouldTransitionWidth: f, shouldTransitionHeight: m, transitionProps: h, computedX: g, computedY: _, shouldHaveMinWidth: x, shouldHaveMinHeight: d, computedWidth: p, computedHeight: y, transformOrigin: k };
653
+ return ae(() => Ne(c.value)), { __sfc: !0, props: r, emit: e, x: n, y: a, width: o, height: l, transition: i, classList: u, root: c, computedClasses: s, shouldTransitionWidth: f, shouldTransitionHeight: m, transitionProps: h, computedX: g, computedY: _, shouldHaveMinWidth: x, shouldHaveMinHeight: d, computedWidth: p, computedHeight: y, transformOrigin: k };
654
654
  }
655
655
  });
656
656
  var zn = function() {
@@ -670,7 +670,7 @@ var zn = function() {
670
670
  }, mouseleave: function(a) {
671
671
  return n.emit("mouseleave", a);
672
672
  } } });
673
- }, Wn = [], Un = /* @__PURE__ */ S(
673
+ }, Wn = [], Un = /* @__PURE__ */ H(
674
674
  Mn,
675
675
  zn,
676
676
  Wn,
@@ -679,25 +679,25 @@ var zn = function() {
679
679
  "8e8f732a"
680
680
  );
681
681
  const Qe = Un.exports;
682
- var ue = /* @__PURE__ */ ((t) => (t.Categorical = "categorical", t.Sequential = "sequential", t.Divergent = "divergent", t))(ue || {}), Y = /* @__PURE__ */ ((t) => (t.Skyblue = "skyblue", t.Royalblue = "royalblue", t.Violet = "violet", t.Darkteal = "darkteal", t.Gold = "gold", t))(Y || {}), Gt = /* @__PURE__ */ ((t) => (t.Skyblue10 = "skyblue-10", t.Skyblue20 = "skyblue-20", t.Skyblue30 = "skyblue-30", t.Skyblue40 = "skyblue-40", t.Skyblue50 = "skyblue-50", t.Skyblue60 = "skyblue-60", t.Skyblue70 = "skyblue-70", t.Skyblue80 = "skyblue-80", t.Skyblue90 = "skyblue-90", t.Skyblue100 = "skyblue-100", t.Royalblue10 = "royalblue-10", t.Royalblue20 = "royalblue-20", t.Royalblue30 = "royalblue-30", t.Royalblue40 = "royalblue-40", t.Royalblue50 = "royalblue-50", t.Royalblue60 = "royalblue-60", t.Royalblue70 = "royalblue-70", t.Royalblue80 = "royalblue-80", t.Royalblue90 = "royalblue-90", t.Royalblue100 = "royalblue-100", t.Violet10 = "violet-10", t.Violet20 = "violet-20", t.Violet30 = "violet-30", t.Violet40 = "violet-40", t.Violet50 = "violet-50", t.Violet60 = "violet-60", t.Violet70 = "violet-70", t.Violet80 = "violet-80", t.Violet90 = "violet-90", t.Violet100 = "violet-100", t.Darkteal10 = "darkteal-10", t.Darkteal20 = "darkteal-20", t.Darkteal30 = "darkteal-30", t.Darkteal40 = "darkteal-40", t.Darkteal50 = "darkteal-50", t.Darkteal60 = "darkteal-60", t.Darkteal70 = "darkteal-70", t.Darkteal80 = "darkteal-80", t.Darkteal90 = "darkteal-90", t.Darkteal100 = "darkteal-100", t.Gold10 = "gold-10", t.Gold20 = "gold-20", t.Gold30 = "gold-30", t.Gold40 = "gold-40", t.Gold50 = "gold-50", t.Gold60 = "gold-60", t.Gold70 = "gold-70", t.Gold80 = "gold-80", t.Gold90 = "gold-90", t.Gold100 = "gold-100", t))(Gt || {}), qe = /* @__PURE__ */ ((t) => (t.SkyTeal = "skyblue-darkteal", t.VioletRoyal = "violet-royalblue", t.VioletTeal = "violet-darkteal", t.GoldTeal = "gold-darkteal", t.GoldRoyal = "gold-royalblue", t))(qe || {}), et = /* @__PURE__ */ ((t) => (t.White = "white", t.Black = "black", t.Green = "green", t.Orange = "orange", t.Red = "red", t.Grey = "grey", t.Grey10 = "grey-10", t.Grey20 = "grey-20", t.Grey30 = "grey-30", t.Grey40 = "grey-40", t.Grey50 = "grey-50", t.Grey60 = "grey-60", t.Grey70 = "grey-70", t.Grey80 = "grey-80", t.Grey90 = "grey-90", t.Grey100 = "grey-100", t))(et || {}), tt = /* @__PURE__ */ ((t) => (t["01"] = "01", t["02"] = "02", t["03"] = "03", t["04"] = "04", t["05"] = "05", t["06"] = "06", t["07"] = "07", t["08"] = "08", t["09"] = "09", t))(tt || {});
683
- const Zn = ue.Categorical, ke = Y.Skyblue, Xn = qe.SkyTeal;
682
+ var ie = /* @__PURE__ */ ((t) => (t.Categorical = "categorical", t.Sequential = "sequential", t.Divergent = "divergent", t))(ie || {}), K = /* @__PURE__ */ ((t) => (t.Skyblue = "skyblue", t.Royalblue = "royalblue", t.Violet = "violet", t.Darkteal = "darkteal", t.Gold = "gold", t))(K || {}), Gt = /* @__PURE__ */ ((t) => (t.Skyblue10 = "skyblue-10", t.Skyblue20 = "skyblue-20", t.Skyblue30 = "skyblue-30", t.Skyblue40 = "skyblue-40", t.Skyblue50 = "skyblue-50", t.Skyblue60 = "skyblue-60", t.Skyblue70 = "skyblue-70", t.Skyblue80 = "skyblue-80", t.Skyblue90 = "skyblue-90", t.Skyblue100 = "skyblue-100", t.Royalblue10 = "royalblue-10", t.Royalblue20 = "royalblue-20", t.Royalblue30 = "royalblue-30", t.Royalblue40 = "royalblue-40", t.Royalblue50 = "royalblue-50", t.Royalblue60 = "royalblue-60", t.Royalblue70 = "royalblue-70", t.Royalblue80 = "royalblue-80", t.Royalblue90 = "royalblue-90", t.Royalblue100 = "royalblue-100", t.Violet10 = "violet-10", t.Violet20 = "violet-20", t.Violet30 = "violet-30", t.Violet40 = "violet-40", t.Violet50 = "violet-50", t.Violet60 = "violet-60", t.Violet70 = "violet-70", t.Violet80 = "violet-80", t.Violet90 = "violet-90", t.Violet100 = "violet-100", t.Darkteal10 = "darkteal-10", t.Darkteal20 = "darkteal-20", t.Darkteal30 = "darkteal-30", t.Darkteal40 = "darkteal-40", t.Darkteal50 = "darkteal-50", t.Darkteal60 = "darkteal-60", t.Darkteal70 = "darkteal-70", t.Darkteal80 = "darkteal-80", t.Darkteal90 = "darkteal-90", t.Darkteal100 = "darkteal-100", t.Gold10 = "gold-10", t.Gold20 = "gold-20", t.Gold30 = "gold-30", t.Gold40 = "gold-40", t.Gold50 = "gold-50", t.Gold60 = "gold-60", t.Gold70 = "gold-70", t.Gold80 = "gold-80", t.Gold90 = "gold-90", t.Gold100 = "gold-100", t))(Gt || {}), qe = /* @__PURE__ */ ((t) => (t.SkyTeal = "skyblue-darkteal", t.VioletRoyal = "violet-royalblue", t.VioletTeal = "violet-darkteal", t.GoldTeal = "gold-darkteal", t.GoldRoyal = "gold-royalblue", t))(qe || {}), et = /* @__PURE__ */ ((t) => (t.White = "white", t.Black = "black", t.Green = "green", t.Yellow = "yellow", t.Orange = "orange", t.Red = "red", t.Grey = "grey", t.Grey10 = "grey-10", t.Grey20 = "grey-20", t.Grey30 = "grey-30", t.Grey40 = "grey-40", t.Grey50 = "grey-50", t.Grey60 = "grey-60", t.Grey70 = "grey-70", t.Grey80 = "grey-80", t.Grey90 = "grey-90", t.Grey100 = "grey-100", t))(et || {}), tt = /* @__PURE__ */ ((t) => (t["01"] = "01", t["02"] = "02", t["03"] = "03", t["04"] = "04", t["05"] = "05", t["06"] = "06", t["07"] = "07", t["08"] = "08", t["09"] = "09", t))(tt || {});
683
+ const Zn = ie.Categorical, ke = K.Skyblue, Xn = qe.SkyTeal;
684
684
  function Yn(t) {
685
- return t === ue.Divergent ? Xn : ke;
685
+ return t === ie.Divergent ? Xn : ke;
686
686
  }
687
687
  function Kn(t) {
688
688
  return Object.values(tt).includes(t);
689
689
  }
690
690
  function ct(t, e) {
691
- return e === ue.Divergent ? Object.values(qe).includes(t) : Object.values({
692
- ...Y,
691
+ return e === ie.Divergent ? Object.values(qe).includes(t) : Object.values({
692
+ ...K,
693
693
  ...Gt,
694
694
  ...et,
695
695
  ...tt
696
696
  }).includes(t);
697
697
  }
698
698
  function Jn(t, e) {
699
- const r = Object.values(Y).indexOf(t);
700
- return kn(Object.values(Y), r > -1 ? r : 0)[e];
699
+ const r = Object.values(K).indexOf(t);
700
+ return kn(Object.values(K), r > -1 ? r : 0)[e];
701
701
  }
702
702
  function Qn(t, e) {
703
703
  const r = 50 + e * 10;
@@ -710,16 +710,16 @@ function qn(t, e) {
710
710
  function dt(t, e, r) {
711
711
  switch (e) {
712
712
  default:
713
- case ue.Categorical:
713
+ case ie.Categorical:
714
714
  return Kn(t) ? t : Jn(t, r);
715
- case ue.Sequential:
715
+ case ie.Sequential:
716
716
  return Qn(t, r);
717
- case ue.Divergent:
717
+ case ie.Divergent:
718
718
  return qn(t, r);
719
719
  }
720
720
  }
721
721
  function er(t, e, r = Zn, n) {
722
- return ct(t, r) ? t : (n > 4 && (ne(J.ColorLoop), n = n % 5), ct(e, r) ? dt(e, r, n) : dt(Yn(r), r, n));
722
+ return ct(t, r) ? t : (n > 4 && (re(q.ColorLoop), n = n % 5), ct(e, r) ? dt(e, r, n) : dt(Yn(r), r, n));
723
723
  }
724
724
  function tr(t) {
725
725
  return t.map((e) => pn(e) ? e : { value: e });
@@ -739,7 +739,7 @@ const nt = (t = null) => ({
739
739
  },
740
740
  color: {
741
741
  type: String,
742
- default: Y.Skyblue
742
+ default: K.Skyblue
743
743
  },
744
744
  title: {
745
745
  type: String,
@@ -752,7 +752,7 @@ function rt(t, e, r, n, a) {
752
752
  height: 0
753
753
  }), l = crypto.randomUUID(), i = v(() => {
754
754
  var s;
755
- return t.value.length > 5 && ne(J.DatasetLength), (s = t.value) == null ? void 0 : s.map(
755
+ return t.value.length > 5 && re(q.DatasetLength), (s = t.value) == null ? void 0 : s.map(
756
756
  (f, m) => {
757
757
  if (nr(f)) return f;
758
758
  const h = tr(f.values), g = er(
@@ -822,7 +822,7 @@ function ar(t, e, r, n, a) {
822
822
  return Et(i), { xScale: o, yScale: l };
823
823
  }
824
824
  function vt(t, e, r, n) {
825
- const a = [0, e], { padding: o, paddingInner: l, paddingOuter: i } = n, u = o ?? (r === O.HORIZONTAL ? Bt : Rt);
825
+ const a = [0, e], { padding: o, paddingInner: l, paddingOuter: i } = n, u = o ?? (r === O.HORIZONTAL ? Ct : Rt);
826
826
  return Object.assign(
827
827
  he().range(a).paddingInner(l ?? u).paddingOuter(i ?? u).domain(t.map((c, s) => s)),
828
828
  { labels: t }
@@ -842,14 +842,14 @@ function pt(t) {
842
842
  return (t == null ? void 0 : t.range) !== void 0 || (t == null ? void 0 : t.copy) !== void 0;
843
843
  }
844
844
  function je(t, e) {
845
- return K(t) ? t.bandwidth() / 2 + t(t.domain()[e]) : t(e);
845
+ return Q(t) ? t.bandwidth() / 2 + t(t.domain()[e]) : t(e);
846
846
  }
847
847
  function mt(t, e, {
848
848
  padding: r,
849
849
  paddingInner: n,
850
850
  paddingOuter: a
851
851
  } = {}) {
852
- const o = r ?? (e === O.HORIZONTAL ? Bt : Rt);
852
+ const o = r ?? (e === O.HORIZONTAL ? Ct : Rt);
853
853
  return t.copy().paddingInner(n ?? o).paddingOuter(a ?? o);
854
854
  }
855
855
  function at(t) {
@@ -890,13 +890,13 @@ function lr() {
890
890
  e.dimensions = a.contentRect;
891
891
  });
892
892
  });
893
- return re(() => {
893
+ return ae(() => {
894
894
  r.observe(t.value);
895
895
  }), $t(() => {
896
896
  r.unobserve(t.value);
897
897
  }), { resizeState: e, resizeRef: t };
898
898
  }
899
- const ur = /* @__PURE__ */ R({
899
+ const ur = /* @__PURE__ */ P({
900
900
  __name: "lume-chart-container",
901
901
  props: {
902
902
  margins: {
@@ -923,7 +923,7 @@ const ur = /* @__PURE__ */ R({
923
923
  },
924
924
  emits: ["click", "mouseenter", "mouseleave", "resize"],
925
925
  setup(t, { emit: e }) {
926
- const r = t, { margins: n, containerSize: a } = V(r), o = I(null), { resizeRef: l, resizeState: i } = lr(), u = v(
926
+ const r = t, { margins: n, containerSize: a } = z(r), o = I(null), { resizeRef: l, resizeState: i } = lr(), u = v(
927
927
  () => a.value.height + n.value.top + n.value.bottom
928
928
  );
929
929
  return Et(() => {
@@ -954,7 +954,7 @@ var ir = function() {
954
954
  }, mouseleave: function(a) {
955
955
  return n.emit("mouseleave", a);
956
956
  } } }, [r("g", { staticClass: "lume-chart-container__group", attrs: { transform: `translate(${n.margins.left}, ${n.margins.top})`, "data-j-chart-container__group": "" } }, [e._t("default")], 2)]), e._t("footer"), e._t("extra")], 2);
957
- }, sr = [], cr = /* @__PURE__ */ S(
957
+ }, sr = [], cr = /* @__PURE__ */ H(
958
958
  ur,
959
959
  ir,
960
960
  sr,
@@ -962,7 +962,7 @@ var ir = function() {
962
962
  null,
963
963
  "d53cdc3e"
964
964
  );
965
- const dr = cr.exports, vr = /* @__PURE__ */ R({
965
+ const dr = cr.exports, vr = /* @__PURE__ */ P({
966
966
  __name: "lume-chart-legend",
967
967
  props: {
968
968
  data: {
@@ -987,7 +987,7 @@ var fr = function() {
987
987
  return n.emit("mouseenter", { index: o, dataset: a, event: l });
988
988
  } } }, [r("span", { staticClass: "lume-chart-legend__symbol", class: `lume-background-color--${a.color}`, attrs: { "data-j-chart-legend__symbol": "" } }), e._v(" " + e._s(a.label || o) + " ")]);
989
989
  }), 0);
990
- }, pr = [], mr = /* @__PURE__ */ S(
990
+ }, pr = [], mr = /* @__PURE__ */ H(
991
991
  vr,
992
992
  fr,
993
993
  pr,
@@ -999,7 +999,7 @@ const _r = mr.exports, gr = {};
999
999
  var hr = function() {
1000
1000
  var e = this, r = e._self._c;
1001
1001
  return r("div", { staticClass: "lume-tooltip__title", attrs: { "data-j-tooltip__title": "" } }, [e._t("default")], 2);
1002
- }, yr = [], br = /* @__PURE__ */ S(
1002
+ }, yr = [], br = /* @__PURE__ */ H(
1003
1003
  gr,
1004
1004
  hr,
1005
1005
  yr,
@@ -1011,7 +1011,7 @@ const kr = br.exports, xr = {};
1011
1011
  var Lr = function() {
1012
1012
  var e = this, r = e._self._c;
1013
1013
  return r("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__summary-item": "" } }, [r("span", [e._t("default")], 2), r("strong", { staticClass: "lume-tooltip__value" }, [e._t("value")], 2)]);
1014
- }, Tr = [], Ar = /* @__PURE__ */ S(
1014
+ }, Tr = [], Ar = /* @__PURE__ */ H(
1015
1015
  xr,
1016
1016
  Lr,
1017
1017
  Tr,
@@ -1019,7 +1019,7 @@ var Lr = function() {
1019
1019
  null,
1020
1020
  "4ed7ec1b"
1021
1021
  );
1022
- const Or = Ar.exports, Ir = /* @__PURE__ */ R({
1022
+ const Or = Ar.exports, Ir = /* @__PURE__ */ P({
1023
1023
  __name: "lume-tooltip-item",
1024
1024
  props: {
1025
1025
  color: {
@@ -1034,7 +1034,7 @@ const Or = Ar.exports, Ir = /* @__PURE__ */ R({
1034
1034
  var Nr = function() {
1035
1035
  var e = this, r = e._self._c;
1036
1036
  return e._self._setupProxy, r("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__item": "" } }, [e.color ? r("span", { staticClass: "lume-tooltip__symbol", class: [`lume-background-color--${e.color}`], attrs: { "data-j-tooltip__item__symbol": "" } }) : e._e(), r("span", { attrs: { "data-j-tooltip__item__label": "" } }, [e._t("label")], 2), r("strong", { staticClass: "lume-tooltip__value", attrs: { "data-j-tooltip__item__value": "" } }, [e._t("value")], 2)]);
1037
- }, Er = [], $r = /* @__PURE__ */ S(
1037
+ }, Er = [], $r = /* @__PURE__ */ H(
1038
1038
  Ir,
1039
1039
  Nr,
1040
1040
  Er,
@@ -1042,7 +1042,7 @@ var Nr = function() {
1042
1042
  null,
1043
1043
  "4f995c3c"
1044
1044
  );
1045
- const wr = $r.exports, Dr = /* @__PURE__ */ R({
1045
+ const wr = $r.exports, Dr = /* @__PURE__ */ P({
1046
1046
  __name: "lume-tooltip",
1047
1047
  props: {
1048
1048
  opened: {
@@ -1086,7 +1086,7 @@ const wr = $r.exports, Dr = /* @__PURE__ */ R({
1086
1086
  },
1087
1087
  emits: ["opened", "moved", "closed", "tooltip-mouseenter", "tooltip-mouseleave"],
1088
1088
  setup(t, { emit: e }) {
1089
- const r = t, n = I(null), { items: a, options: o } = V(r), l = X(), i = I(null), { allOptions: u } = Q(o), c = v(
1089
+ const r = t, n = I(null), { items: a, options: o } = z(r), l = Y(), i = I(null), { allOptions: u } = ee(o), c = v(
1090
1090
  () => u.value.fixedPositioning ?? r.fixedPositioning
1091
1091
  ), s = v(
1092
1092
  () => c.value ? "fixed" : "absolute"
@@ -1128,12 +1128,12 @@ const wr = $r.exports, Dr = /* @__PURE__ */ R({
1128
1128
  i.value.state.elements.reference = r.targetElement, i.value.update(), e("moved", r.targetElement);
1129
1129
  })() : y());
1130
1130
  }
1131
- return H(
1131
+ return D(
1132
1132
  () => r.targetElement,
1133
1133
  async (T, N) => {
1134
- !N && T ? (await Be(), p()) : k();
1134
+ !N && T ? (await Ce(), p()) : k();
1135
1135
  }
1136
- ), re(p), $t(y), { __sfc: !0, props: r, emit: e, root: n, items: a, options: o, slots: l, popper: i, allOptions: u, computedFixedPositioning: c, strategy: s, allModifiers: f, showTitle: m, formatValue: h, formatTitle: g, summaryItem: _, hasSummary: x, computedItems: d, initPopper: p, destroyPopper: y, updatePopper: k, LumeTooltipTitle: kr, LumeTooltipSummary: Or, LumeTooltipItem: wr };
1136
+ ), ae(p), $t(y), { __sfc: !0, props: r, emit: e, root: n, items: a, options: o, slots: l, popper: i, allOptions: u, computedFixedPositioning: c, strategy: s, allModifiers: f, showTitle: m, formatValue: h, formatTitle: g, summaryItem: _, hasSummary: x, computedItems: d, initPopper: p, destroyPopper: y, updatePopper: k, LumeTooltipTitle: kr, LumeTooltipSummary: Or, LumeTooltipItem: wr };
1137
1137
  }
1138
1138
  });
1139
1139
  var Hr = function() {
@@ -1161,7 +1161,7 @@ var Hr = function() {
1161
1161
  });
1162
1162
  })], 2)];
1163
1163
  })], 2) : e._e();
1164
- }, Sr = [], Pr = /* @__PURE__ */ S(
1164
+ }, Sr = [], Pr = /* @__PURE__ */ H(
1165
1165
  Dr,
1166
1166
  Hr,
1167
1167
  Sr,
@@ -1211,7 +1211,7 @@ const Rr = Pr.exports, Ee = () => ({
1211
1211
  type: [String, Array],
1212
1212
  default: () => []
1213
1213
  }
1214
- }), Br = /* @__PURE__ */ R({
1214
+ }), Cr = /* @__PURE__ */ P({
1215
1215
  __name: "lume-overlay-group",
1216
1216
  props: {
1217
1217
  ...Ee(),
@@ -1222,10 +1222,10 @@ const Rr = Pr.exports, Ee = () => ({
1222
1222
  },
1223
1223
  emits: ["click", "lume__internal--hover", "mouseover"],
1224
1224
  setup(t, { emit: e }) {
1225
- const r = t, { data: n, orientation: a, xScale: o, yScale: l } = V(r), i = v(() => St(n));
1225
+ const r = t, { data: n, orientation: a, xScale: o, yScale: l } = z(r), i = v(() => St(n));
1226
1226
  function u(c) {
1227
1227
  var x;
1228
- const s = a.value === O.HORIZONTAL ? l.value : o.value, f = s.domain(), m = mn(s), h = ((x = s.paddingInner) == null ? void 0 : x.call(s)) ?? 0, g = m * h, _ = K(s) ? s(f[c]) - g / 2 : s(c) - m / 2;
1228
+ const s = a.value === O.HORIZONTAL ? l.value : o.value, f = s.domain(), m = mn(s), h = ((x = s.paddingInner) == null ? void 0 : x.call(s)) ?? 0, g = m * h, _ = Q(s) ? s(f[c]) - g / 2 : s(c) - m / 2;
1229
1229
  return a.value === O.HORIZONTAL ? {
1230
1230
  width: Math.max(...o.value.range()),
1231
1231
  height: m,
@@ -1239,7 +1239,7 @@ const Rr = Pr.exports, Ee = () => ({
1239
1239
  return { __sfc: !0, props: r, emit: e, data: n, orientation: a, xScale: o, yScale: l, overlayData: i, getOverlayBarAttributes: u, LumeBar: Qe };
1240
1240
  }
1241
1241
  });
1242
- var Cr = function() {
1242
+ var Br = function() {
1243
1243
  var e = this, r = e._self._c, n = e._self._setupProxy;
1244
1244
  return r("g", { staticClass: "lume-overlay-group" }, e._l(n.overlayData, function(a, o) {
1245
1245
  return r(n.LumeBar, e._b({ key: `overlay-${o}`, attrs: { "data-j-lume-overlay-group": o, transition: !1, "class-list": "lume-fill--transparent" }, on: { mouseover: function(l) {
@@ -1248,9 +1248,9 @@ var Cr = function() {
1248
1248
  return n.emit("click", { index: o, event: l });
1249
1249
  } } }, "lume-bar", n.getOverlayBarAttributes(o), !1));
1250
1250
  }), 1);
1251
- }, Fr = [], Gr = /* @__PURE__ */ S(
1252
- Br,
1251
+ }, Fr = [], Gr = /* @__PURE__ */ H(
1253
1252
  Cr,
1253
+ Br,
1254
1254
  Fr,
1255
1255
  !1,
1256
1256
  null,
@@ -1284,7 +1284,7 @@ const jr = Gr.exports, Vr = [
1284
1284
  "tooltip-closed",
1285
1285
  "hovered-index-changed",
1286
1286
  "update:hoveredIndex"
1287
- ], q = (t, e) => {
1287
+ ], te = (t, e) => {
1288
1288
  function r(o, ...l) {
1289
1289
  document.dispatchEvent(
1290
1290
  new CustomEvent(`${e}_${o}`, {
@@ -1364,7 +1364,7 @@ function jt(t, e, r, n, a, o, l, i) {
1364
1364
  cy: (o == null ? void 0 : o.value) === O.HORIZONTAL ? je(n.value, _) : n.value(g)
1365
1365
  }));
1366
1366
  }
1367
- return H(
1367
+ return D(
1368
1368
  [r, n],
1369
1369
  () => {
1370
1370
  r.value && n.value && (l != null && l.value) && u.value && c(l.value);
@@ -1395,7 +1395,7 @@ function Xr(t) {
1395
1395
  })
1396
1396
  ) };
1397
1397
  }
1398
- const Ve = 16, Me = 8, ze = 28, We = 24, ie = {
1398
+ const Ve = 16, Me = 8, ze = 28, We = 24, se = {
1399
1399
  VERTICAL: {
1400
1400
  top: Ve,
1401
1401
  right: Me,
@@ -1421,7 +1421,7 @@ function Jr(t, e) {
1421
1421
  function Qr(t, e) {
1422
1422
  return !t || t === "auto" || t.left == null || t.left === "auto" ? e || We : t.left;
1423
1423
  }
1424
- const qr = /* @__PURE__ */ R({
1424
+ const qr = /* @__PURE__ */ P({
1425
1425
  __name: "lume-chart",
1426
1426
  props: {
1427
1427
  ...ve(),
@@ -1431,56 +1431,56 @@ const qr = /* @__PURE__ */ R({
1431
1431
  }
1432
1432
  },
1433
1433
  setup(t, { emit: e }) {
1434
- const r = t, n = X(), { data: a, labels: o, color: l, options: i, orientation: u, chartType: c } = V(r), s = I(-1), f = I(null), m = I(null), h = I([]), g = I(null), _ = I(0), x = I(0), { allOptions: d } = Q(i), { internalData: p, computedLabels: y, containerSize: k, updateSize: T, chartID: N } = rt(a, o, l, d, u), { listenInternalEvent: A } = q(e, N), { xScale: D, yScale: C } = ar(
1434
+ const r = t, n = Y(), { data: a, labels: o, color: l, options: i, orientation: u, chartType: c } = z(r), s = I(-1), f = I(null), m = I(null), h = I([]), g = I(null), _ = I(0), x = I(0), { allOptions: d } = ee(i), { internalData: p, computedLabels: y, containerSize: k, updateSize: T, chartID: N } = rt(a, o, l, d, u), { listenInternalEvent: F } = te(e, N), { xScale: B, yScale: A } = ar(
1435
1435
  p,
1436
1436
  y,
1437
1437
  k,
1438
1438
  u,
1439
1439
  d
1440
- ), M = v(() => ({
1440
+ ), C = v(() => ({
1441
1441
  top: Yr(d.value.margins),
1442
1442
  right: Kr(d.value.margins),
1443
1443
  bottom: Jr(d.value.margins, _.value),
1444
1444
  left: Qr(d.value.margins, x.value)
1445
- })), z = v(() => {
1445
+ })), G = v(() => {
1446
1446
  var b;
1447
- return r.xScale ? pt(r.xScale) ? r.xScale : (b = r.xScale) == null ? void 0 : b.call(r, p.value, o.value, k) : D.value;
1448
- }), ee = v(() => {
1447
+ return r.xScale ? pt(r.xScale) ? r.xScale : (b = r.xScale) == null ? void 0 : b.call(r, p.value, o.value, k) : B.value;
1448
+ }), W = v(() => {
1449
1449
  var b;
1450
- return r.yScale ? pt(r.yScale) ? r.yScale : (b = r.yScale) == null ? void 0 : b.call(r, p.value, o.value, k) : C.value;
1451
- }), ce = v(() => ({
1450
+ return r.yScale ? pt(r.yScale) ? r.yScale : (b = r.yScale) == null ? void 0 : b.call(r, p.value, o.value, k) : A.value;
1451
+ }), J = v(() => ({
1452
1452
  ...d.value.xAxisOptions,
1453
1453
  withHover: u.value === O.VERTICAL
1454
- })), ae = v(() => ({
1454
+ })), oe = v(() => ({
1455
1455
  ...d.value.yAxisOptions,
1456
1456
  withHover: u.value === O.HORIZONTAL
1457
- })), oe = v(() => {
1457
+ })), le = v(() => {
1458
1458
  var b;
1459
1459
  return (b = d.value.xAxisOptions) == null ? void 0 : b.title;
1460
- }), le = v(() => {
1460
+ }), ue = v(() => {
1461
1461
  var b;
1462
1462
  return (b = d.value.yAxisOptions) == null ? void 0 : b.title;
1463
1463
  }), E = v(() => {
1464
1464
  var b;
1465
- return ((b = d.value.xAxisOptions) == null ? void 0 : b.withTitle) !== !1 && oe.value;
1465
+ return ((b = d.value.xAxisOptions) == null ? void 0 : b.withTitle) !== !1 && le.value;
1466
1466
  }), w = v(() => {
1467
1467
  var b;
1468
- return ((b = d.value.yAxisOptions) == null ? void 0 : b.withTitle) !== !1 && le.value;
1469
- }), P = v(
1470
- () => a.value.every((b) => !b.values.length) || a.value.every((b) => b.values.every((F) => F === null))
1471
- ), te = v(() => {
1472
- const b = [], { noBaseScales: F } = d.value;
1473
- return F || b.push(() => !!(z.value && ee.value)), b.every((j) => j() === !0);
1468
+ return ((b = d.value.yAxisOptions) == null ? void 0 : b.withTitle) !== !1 && ue.value;
1469
+ }), S = v(
1470
+ () => a.value.every((b) => !b.values.length) || a.value.every((b) => b.values.every((j) => j === null))
1471
+ ), ne = v(() => {
1472
+ const b = [], { noBaseScales: j } = d.value;
1473
+ return j || b.push(() => !!(G.value && W.value)), b.every((M) => M() === !0);
1474
1474
  }), { hasNegativeValues: $e } = Mr(p), { negativeBarAttributes: we } = zr(
1475
1475
  k,
1476
- z,
1477
- ee,
1476
+ G,
1477
+ W,
1478
1478
  u
1479
1479
  ), { shouldGenerateTooltipAnchors: De } = jt(
1480
1480
  h,
1481
1481
  d,
1482
- z,
1483
- ee,
1482
+ G,
1483
+ W,
1484
1484
  o,
1485
1485
  u,
1486
1486
  p,
@@ -1491,63 +1491,63 @@ const qr = /* @__PURE__ */ R({
1491
1491
  return ((b = d.value.tooltipOptions) == null ? void 0 : b.position) || "top";
1492
1492
  }
1493
1493
  ), $ = v(() => {
1494
- var F;
1495
- const b = (F = d.value.tooltipOptions) == null ? void 0 : F.withPointerEvents;
1494
+ var j;
1495
+ const b = (j = d.value.tooltipOptions) == null ? void 0 : j.withPointerEvents;
1496
1496
  return pe.opened && (!b || b && g.value === !1);
1497
1497
  });
1498
- function B(b) {
1499
- var j;
1498
+ function R(b) {
1499
+ var M;
1500
1500
  if (d.value.withHover === !1 || b === s.value) return;
1501
- const F = s.value;
1501
+ const j = s.value;
1502
1502
  if (s.value = b, d.value.withTooltip !== !1) {
1503
- const Kt = (j = d.value.tooltipOptions) != null && j.targetElement ? d.value.tooltipOptions.targetElement === "self" ? m.value.$el : d.value.tooltipOptions.targetElement : f.value[b];
1503
+ const Kt = (M = d.value.tooltipOptions) != null && M.targetElement ? d.value.tooltipOptions.targetElement === "self" ? m.value.$el : d.value.tooltipOptions.targetElement : f.value[b];
1504
1504
  de(Kt);
1505
1505
  }
1506
- e("hovered-index-changed", { newIndex: b, oldIndex: F }), e("update:hoveredIndex", b);
1506
+ e("hovered-index-changed", { newIndex: b, oldIndex: j }), e("update:hoveredIndex", b);
1507
1507
  }
1508
- function G() {
1508
+ function V() {
1509
1509
  xe(), s.value = -1, e("update:hoveredIndex", -1);
1510
1510
  }
1511
- function U(b) {
1511
+ function Z(b) {
1512
1512
  if (!a.value.some(
1513
- ({ values: j }) => b <= j.length - 1
1513
+ ({ values: M }) => b <= M.length - 1
1514
1514
  )) {
1515
- ne(J.InvalidHoveredIndex);
1515
+ re(q.InvalidHoveredIndex);
1516
1516
  return;
1517
1517
  }
1518
- b == null || b === -1 ? G() : B(b);
1518
+ b == null || b === -1 ? V() : R(b);
1519
1519
  }
1520
- function Z() {
1520
+ function X() {
1521
1521
  setTimeout(() => {
1522
- $.value && G(), e("chart-mouseleave");
1522
+ $.value && V(), e("chart-mouseleave");
1523
1523
  }, 0);
1524
1524
  }
1525
1525
  function it(b) {
1526
1526
  T(b), e("resize", b);
1527
1527
  }
1528
- function He({ index: b, value: F, event: j }) {
1529
- b !== null && B(b), e("axis-mouseenter", { index: b, value: F, event: j });
1528
+ function He({ index: b, value: j, event: M }) {
1529
+ b !== null && R(b), e("axis-mouseenter", { index: b, value: j, event: M });
1530
1530
  }
1531
- function Se({ index: b, value: F, event: j }) {
1532
- e("axis-click", { index: b, value: F, event: j });
1531
+ function Se({ index: b, value: j, event: M }) {
1532
+ e("axis-click", { index: b, value: j, event: M });
1533
1533
  }
1534
- return H(
1534
+ return D(
1535
1535
  a,
1536
- (b, F) => e("data-changed", { newValue: b, oldValue: F })
1537
- ), H(
1536
+ (b, j) => e("data-changed", { newValue: b, oldValue: j })
1537
+ ), D(
1538
1538
  o,
1539
- (b, F) => e("labels-changed", { newValue: b, oldValue: F })
1540
- ), H(P, (b) => b && ne(J.Empty), { immediate: !0 }), H(() => r.hoveredIndex, U), H(
1539
+ (b, j) => e("labels-changed", { newValue: b, oldValue: j })
1540
+ ), D(S, (b) => b && re(q.Empty), { immediate: !0 }), D(() => r.hoveredIndex, Z), D(
1541
1541
  h,
1542
1542
  (b) => {
1543
- b && r.hoveredIndex != null && s.value === -1 && U(r.hoveredIndex);
1543
+ b && r.hoveredIndex != null && s.value === -1 && Z(r.hoveredIndex);
1544
1544
  },
1545
1545
  { flush: "post" }
1546
- ), H(g, (b) => {
1547
- b === !1 && pe.opened && G();
1548
- }), re(async () => {
1549
- e("rendered"), n.groups || console.error('"groups" `<slot>` must have content.'), A("lume__internal--hover", B);
1550
- }), Pe("chartID", N), Pe("isEmpty", P), Pe("tooltipAnchorAttributes", h), { __sfc: !0, props: r, slots: n, emit: e, data: a, labels: o, color: l, options: i, orientation: u, chartType: c, internalHoveredIndex: s, tooltipAnchor: f, chartContainer: m, tooltipAnchorAttributes: h, isHoveringTooltip: g, xAxisHeight: _, yAxisWidth: x, allOptions: d, internalData: p, computedLabels: y, containerSize: k, updateSize: T, chartID: N, listenInternalEvent: A, xScale: D, yScale: C, computedMargins: M, computedXScale: z, computedYScale: ee, computedXAxisOptions: ce, computedYAxisOptions: ae, xAxisTitle: oe, yAxisTitle: le, showXAxisTitle: E, showYAxisTitle: w, isEmpty: P, isReady: te, hasNegativeValues: $e, negativeBarAttributes: we, shouldGenerateTooltipAnchors: De, tooltipConfig: pe, showTooltip: de, hideTooltip: xe, getTooltipItems: me, tooltipPosition: L, shouldHideTooltip: $, handleInternalHover: B, handleHideTooltip: G, handleExternalHover: U, handleMouseleave: Z, handleResize: it, handleAxisMouseenter: He, handleAxisClick: Se, LumeAxis: Gn, LumeBar: Qe, LumeChartContainer: dr, LumeChartLegend: _r, LumeTooltip: Rr, LumeOverlayGroup: jr, TOOLTIP_ANCHOR_RADIUS: In };
1546
+ ), D(g, (b) => {
1547
+ b === !1 && pe.opened && V();
1548
+ }), ae(async () => {
1549
+ e("rendered"), n.groups || console.error('"groups" `<slot>` must have content.'), F("lume__internal--hover", R);
1550
+ }), Pe("chartID", N), Pe("isEmpty", S), Pe("tooltipAnchorAttributes", h), { __sfc: !0, props: r, slots: n, emit: e, data: a, labels: o, color: l, options: i, orientation: u, chartType: c, internalHoveredIndex: s, tooltipAnchor: f, chartContainer: m, tooltipAnchorAttributes: h, isHoveringTooltip: g, xAxisHeight: _, yAxisWidth: x, allOptions: d, internalData: p, computedLabels: y, containerSize: k, updateSize: T, chartID: N, listenInternalEvent: F, xScale: B, yScale: A, computedMargins: C, computedXScale: G, computedYScale: W, computedXAxisOptions: J, computedYAxisOptions: oe, xAxisTitle: le, yAxisTitle: ue, showXAxisTitle: E, showYAxisTitle: w, isEmpty: S, isReady: ne, hasNegativeValues: $e, negativeBarAttributes: we, shouldGenerateTooltipAnchors: De, tooltipConfig: pe, showTooltip: de, hideTooltip: xe, getTooltipItems: me, tooltipPosition: L, shouldHideTooltip: $, handleInternalHover: R, handleHideTooltip: V, handleExternalHover: Z, handleMouseleave: X, handleResize: it, handleAxisMouseenter: He, handleAxisClick: Se, LumeAxis: Gn, LumeBar: Qe, LumeChartContainer: dr, LumeChartLegend: _r, LumeTooltip: Rr, LumeOverlayGroup: jr, TOOLTIP_ANCHOR_RADIUS: In };
1551
1551
  }
1552
1552
  });
1553
1553
  var ea = function() {
@@ -1607,7 +1607,7 @@ var ea = function() {
1607
1607
  }, { xScale: n.computedXScale, yScale: n.computedYScale, containerSize: n.containerSize, options: n.allOptions, hoveredIndex: n.internalHoveredIndex }) : e._e(), n.allOptions.withHover !== !1 ? r(n.LumeOverlayGroup, { attrs: { data: n.internalData, orientation: n.orientation, "x-scale": n.computedXScale, "y-scale": n.computedYScale, "data-j-lume-chart__overlay-group": "" }, on: { "lume__internal--hover": n.handleInternalHover } }) : e._e(), n.shouldGenerateTooltipAnchors ? r("g", e._l(n.tooltipAnchorAttributes, function(a, o) {
1608
1608
  return r("circle", e._b({ key: `anchor_${o}`, ref: "tooltipAnchor", refInFor: !0, staticClass: "lume-fill--transparent", attrs: { r: n.TOOLTIP_ANCHOR_RADIUS } }, "circle", a, !1));
1609
1609
  }), 0) : e._e(), e._t("groups", null, { data: n.internalData, labels: n.computedLabels, options: n.allOptions, orientation: n.orientation, xScale: n.computedXScale, yScale: n.computedYScale, hoveredIndex: n.internalHoveredIndex, containerSize: n.containerSize, transition: n.allOptions.withTransition !== !1, classList: e.classList })] : e._e()], 2);
1610
- }, ta = [], na = /* @__PURE__ */ S(
1610
+ }, ta = [], na = /* @__PURE__ */ H(
1611
1611
  qr,
1612
1612
  ea,
1613
1613
  ta,
@@ -1615,7 +1615,7 @@ var ea = function() {
1615
1615
  null,
1616
1616
  "17c48844"
1617
1617
  );
1618
- const fe = na.exports, gt = 8, ra = 8, aa = 20, _e = 2, oa = 3, la = 4, ht = 2, ua = /* @__PURE__ */ R({
1618
+ const fe = na.exports, gt = 8, ra = 8, aa = 20, _e = 2, oa = 3, la = 4, ht = 2, ua = /* @__PURE__ */ P({
1619
1619
  __name: "lume-alluvial-node-label",
1620
1620
  props: {
1621
1621
  bottom: { type: Boolean, default: !1 },
@@ -1625,25 +1625,25 @@ const fe = na.exports, gt = 8, ra = 8, aa = 20, _e = 2, oa = 3, la = 4, ht = 2,
1625
1625
  emits: ["lume__internal--node-resize"],
1626
1626
  setup(t, { emit: e }) {
1627
1627
  const r = t, n = I(null), a = I(r.maxWidth), o = I(1);
1628
- return H(
1628
+ return D(
1629
1629
  [n, () => r.maxWidth],
1630
1630
  async ([l, i]) => {
1631
1631
  if (l && i) {
1632
- a.value = i, await Be();
1632
+ a.value = i, await Ce();
1633
1633
  const { width: u, height: c } = l.getBoundingClientRect();
1634
1634
  a.value = u + ht > i ? i : u + ht, o.value = Math.ceil(c);
1635
1635
  }
1636
1636
  },
1637
1637
  { immediate: !0 }
1638
- ), H(a, async (l) => {
1639
- l !== r.maxWidth && (await Be(), e("lume__internal--node-resize"));
1638
+ ), D(a, async (l) => {
1639
+ l !== r.maxWidth && (await Ce(), e("lume__internal--node-resize"));
1640
1640
  }), { __sfc: !0, props: r, emit: e, text: n, foreignObjectWidth: a, foreignObjectHeight: o };
1641
1641
  }
1642
1642
  });
1643
1643
  var ia = function() {
1644
1644
  var e = this, r = e._self._c, n = e._self._setupProxy;
1645
1645
  return e.maxWidth ? r("foreignObject", { staticClass: "lume-alluvial-group__node-foreign", attrs: { y: e.bottom ? "0.1em" : -n.foreignObjectHeight + 1, x: e.left ? -n.foreignObjectWidth : 0, width: n.foreignObjectWidth, height: n.foreignObjectHeight } }, [r("div", { staticClass: "lume-alluvial-group__label-wrapper" }, [r("span", { ref: "text", staticClass: "lume-alluvial-group__node-label" }, [e._t("default")], 2)])]) : r("text", { staticClass: "lume-alluvial-group__node-label", attrs: { dy: e.bottom ? ".2em" : "-.2em", "dominant-baseline": e.bottom ? "hanging" : "auto" } }, [e._t("default")], 2);
1646
- }, sa = [], ca = /* @__PURE__ */ S(
1646
+ }, sa = [], ca = /* @__PURE__ */ H(
1647
1647
  ua,
1648
1648
  ia,
1649
1649
  sa,
@@ -1651,7 +1651,7 @@ var ia = function() {
1651
1651
  null,
1652
1652
  "7126dfdb"
1653
1653
  );
1654
- const da = ca.exports, va = /* @__PURE__ */ R({
1654
+ const da = ca.exports, va = /* @__PURE__ */ P({
1655
1655
  __name: "lume-alluvial-node-value",
1656
1656
  props: {
1657
1657
  bottom: { type: Boolean, default: !0 }
@@ -1663,7 +1663,7 @@ const da = ca.exports, va = /* @__PURE__ */ R({
1663
1663
  var fa = function() {
1664
1664
  var e = this, r = e._self._c;
1665
1665
  return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-value", attrs: { y: e.bottom ? ".2em" : "-.2em", "dominant-baseline": e.bottom ? "hanging" : "auto" } }, [e._t("default")], 2);
1666
- }, pa = [], ma = /* @__PURE__ */ S(
1666
+ }, pa = [], ma = /* @__PURE__ */ H(
1667
1667
  va,
1668
1668
  fa,
1669
1669
  pa,
@@ -1671,7 +1671,7 @@ var fa = function() {
1671
1671
  null,
1672
1672
  "b4fc758b"
1673
1673
  );
1674
- const _a = ma.exports, ga = /* @__PURE__ */ R({
1674
+ const _a = ma.exports, ga = /* @__PURE__ */ P({
1675
1675
  __name: "lume-alluvial-node-header",
1676
1676
  props: {
1677
1677
  align: {
@@ -1698,7 +1698,7 @@ var ha = function() {
1698
1698
  return r("g", { attrs: { transform: `translate(${e.x}, ${e.y})` } }, [r("g", { attrs: { transform: n.beforeTransform } }, [e._t("before")], 2), r("text", { ref: "textRef", staticClass: "lume-alluvial-group__node-header lume-typography--caption", class: {
1699
1699
  [`lume-alluvial-group__node-header--${e.align}`]: e.align !== "center"
1700
1700
  } }, [e._t("default")], 2), r("g", { attrs: { transform: n.afterTransform } }, [e._t("after")], 2)]);
1701
- }, ya = [], ba = /* @__PURE__ */ S(
1701
+ }, ya = [], ba = /* @__PURE__ */ H(
1702
1702
  ga,
1703
1703
  ha,
1704
1704
  ya,
@@ -1728,7 +1728,7 @@ function Ue(t, e, r = !0) {
1728
1728
  r && wt() || console.error(La + "Error: " + t, e);
1729
1729
  }
1730
1730
  const Ta = 200;
1731
- function W(t) {
1731
+ function U(t) {
1732
1732
  return typeof t == "string" || typeof t == "number" ? t : t.id ?? t.label;
1733
1733
  }
1734
1734
  function Aa(t, e) {
@@ -1854,7 +1854,7 @@ function Sa(t) {
1854
1854
  function i(u) {
1855
1855
  a(u) && (e.value = l(u) ? e.value.filter((c) => c !== u) : [...e.value, u]);
1856
1856
  }
1857
- return H(t, () => e.value = []), {
1857
+ return D(t, () => e.value = []), {
1858
1858
  childIdsByParentId: r,
1859
1859
  expandedNodeIds: e,
1860
1860
  isExpandableNode: a,
@@ -1868,13 +1868,13 @@ function Pa(t, e, r, n) {
1868
1868
  if (!t || !e || n.size === 0)
1869
1869
  return { nodes: t, links: e };
1870
1870
  const a = e.filter(
1871
- (l) => !n.has(W(l.source)) && !n.has(W(l.target))
1871
+ (l) => !n.has(U(l.source)) && !n.has(U(l.target))
1872
1872
  ), o = new Set(a.map(({ id: l }) => l));
1873
1873
  return r.forEach((l, i) => {
1874
1874
  const u = /* @__PURE__ */ new Map();
1875
1875
  l.forEach((c) => {
1876
1876
  Ut(e, c).forEach((s) => {
1877
- const f = W(s.target), m = u.get(f);
1877
+ const f = U(s.target), m = u.get(f);
1878
1878
  if (m) {
1879
1879
  m.value += s.value;
1880
1880
  return;
@@ -1908,10 +1908,10 @@ function Ra({
1908
1908
  var i;
1909
1909
  (i = t == null ? void 0 : t.nodes) != null && i.length && n.forEach((u) => {
1910
1910
  const c = t.nodes.find((f) => f.id === u), s = (a.get(u) ?? []).map((f) => e.find((m) => m.id === f)).filter(Boolean);
1911
- !c || !s.length || Ba({ graph: t, parent: c, children: s, linkDefinitions: r, options: o, extents: l });
1911
+ !c || !s.length || Ca({ graph: t, parent: c, children: s, linkDefinitions: r, options: o, extents: l });
1912
1912
  });
1913
1913
  }
1914
- function Ba({
1914
+ function Ca({
1915
1915
  graph: t,
1916
1916
  parent: e,
1917
1917
  children: r,
@@ -1924,7 +1924,7 @@ function Ba({
1924
1924
  ), i = l.reduce((s, f) => s + f, 0);
1925
1925
  if (!i) return;
1926
1926
  const u = (e.y1 - e.y0) / i;
1927
- Ca({
1927
+ Ba({
1928
1928
  parent: e,
1929
1929
  children: r,
1930
1930
  childValues: l,
@@ -1959,7 +1959,7 @@ function Ba({
1959
1959
  ...c
1960
1960
  ], t.links.push(...c), t.nodes.push(...r);
1961
1961
  }
1962
- function Ca({
1962
+ function Ba({
1963
1963
  parent: t,
1964
1964
  children: e,
1965
1965
  childValues: r,
@@ -2051,12 +2051,12 @@ function Ma(t, e) {
2051
2051
  }
2052
2052
  function Ut(t, e) {
2053
2053
  return t.filter(
2054
- (r) => W(r.source) === e
2054
+ (r) => U(r.source) === e
2055
2055
  );
2056
2056
  }
2057
2057
  function lt(t, e, r) {
2058
2058
  return t.find(
2059
- (n) => W(n.source) === e && W(n.target) === r
2059
+ (n) => U(n.source) === e && U(n.target) === r
2060
2060
  );
2061
2061
  }
2062
2062
  function za(t, e, r) {
@@ -2106,16 +2106,16 @@ function Xa(t, e, r) {
2106
2106
  color: k,
2107
2107
  value: T,
2108
2108
  deriveColorFromIncomingLinks: N,
2109
- expandableNodes: A,
2110
- offset: D
2109
+ expandableNodes: F,
2110
+ offset: B
2111
2111
  }) => ({
2112
2112
  label: y || T.toString(),
2113
2113
  color: k,
2114
2114
  fallbackColor: k || ke,
2115
2115
  id: T,
2116
2116
  deriveColorFromIncomingLinks: N,
2117
- expandableNodes: A,
2118
- offset: D
2117
+ expandableNodes: F,
2118
+ offset: B
2119
2119
  })
2120
2120
  );
2121
2121
  }), f = v(
@@ -2125,10 +2125,10 @@ function Xa(t, e, r) {
2125
2125
  (y) => {
2126
2126
  var k;
2127
2127
  return (k = y.targets) == null ? void 0 : k.map(
2128
- ({ node: T, value: N, color: A, curveFunction: D }) => ({
2128
+ ({ node: T, value: N, color: F, curveFunction: B }) => ({
2129
2129
  id: `${y.value}:${T}`,
2130
- color: A,
2131
- curveFunction: D,
2130
+ color: F,
2131
+ curveFunction: B,
2132
2132
  source: y.value ?? y.label,
2133
2133
  target: T,
2134
2134
  value: N
@@ -2137,7 +2137,7 @@ function Xa(t, e, r) {
2137
2137
  }
2138
2138
  ).filter(Boolean).flat();
2139
2139
  }
2140
- ), m = v(() => Qt().nodeId(W).nodeAlign(e.value.nodeAlign).nodePadding(e.value.nodePadding).nodeSort(e.value.nodeSort).nodeWidth(e.value.nodeWidth).linkSort(e.value.linkSort).iterations(e.value.iterations)), h = v(() => {
2140
+ ), m = v(() => Qt().nodeId(U).nodeAlign(e.value.nodeAlign).nodePadding(e.value.nodePadding).nodeSort(e.value.nodeSort).nodeWidth(e.value.nodeWidth).linkSort(e.value.linkSort).iterations(e.value.iterations)), h = v(() => {
2141
2141
  var d;
2142
2142
  return (d = n.value) == null ? void 0 : d.nodes.filter((p) => p.parentNodeId == null).reduce((p, y) => {
2143
2143
  const k = xt(y, p);
@@ -2152,11 +2152,11 @@ function Xa(t, e, r) {
2152
2152
  }
2153
2153
  function _(d, p) {
2154
2154
  const { id: y, _y0: k, y0: T } = d, N = p.links.filter(
2155
- (C) => C.source.id === y
2156
- ), A = p.links.filter(
2157
- (C) => C.target.id === y
2158
- ), D = T - k;
2159
- N.forEach((C) => C.y0 += D), A.forEach((C) => C.y1 += D);
2155
+ (A) => A.source.id === y
2156
+ ), F = p.links.filter(
2157
+ (A) => A.target.id === y
2158
+ ), B = T - k;
2159
+ N.forEach((A) => A.y0 += B), F.forEach((A) => A.y1 += B);
2160
2160
  }
2161
2161
  const x = v(() => {
2162
2162
  var d;
@@ -2164,7 +2164,7 @@ function Xa(t, e, r) {
2164
2164
  p.value === 0 && (p.fallbackColor = et.Grey), typeof p.offset == "number" && !i(p.id) && (g(p), _(p, n.value));
2165
2165
  })), n.value;
2166
2166
  });
2167
- return H([m, r, o], () => {
2167
+ return D([m, r, o], () => {
2168
2168
  try {
2169
2169
  const { x0: d, y0: p, x1: y, y1: k } = r.value, T = m.value.extent([
2170
2170
  [d, p],
@@ -2229,16 +2229,16 @@ const Ka = (t, e) => {
2229
2229
  const e = [...t.sourceLinks, ...t.targetLinks];
2230
2230
  return {
2231
2231
  nodes: e.reduce(
2232
- (r, { source: n, target: a, value: o }) => n === t ? { ...r, [W(a)]: o } : { ...r, [W(n)]: o },
2233
- { [W(t)]: t.value }
2232
+ (r, { source: n, target: a, value: o }) => n === t ? { ...r, [U(a)]: o } : { ...r, [U(n)]: o },
2233
+ { [U(t)]: t.value }
2234
2234
  ),
2235
2235
  links: e.map(({ id: r }) => r)
2236
2236
  };
2237
2237
  }
2238
2238
  return {
2239
2239
  nodes: {
2240
- [W(t.target)]: t.value,
2241
- [W(t.source)]: t.source.value
2240
+ [U(t.target)]: t.value,
2241
+ [U(t.source)]: t.source.value
2242
2242
  },
2243
2243
  links: [t.id]
2244
2244
  };
@@ -2248,7 +2248,7 @@ function Qa(t, e, r) {
2248
2248
  n.value,
2249
2249
  r.value
2250
2250
  ) : e.value.highlightedElements === "closest" ? Ja(n.value, r.value) : Ka(n.value, r.value) : { nodes: {}, links: [] });
2251
- return H(a, (o, l) => {
2251
+ return D(a, (o, l) => {
2252
2252
  if (o.links.length === 0 && Object.keys(o.nodes).length === 0) {
2253
2253
  t.value.forEach((i) => {
2254
2254
  i.node.id in l.nodes && bt(
@@ -2271,7 +2271,7 @@ function Qa(t, e, r) {
2271
2271
  });
2272
2272
  }), { highlightedElements: a, hoveredElement: n };
2273
2273
  }
2274
- const qa = /* @__PURE__ */ R({
2274
+ const qa = /* @__PURE__ */ P({
2275
2275
  __name: "lume-alluvial-group",
2276
2276
  props: {
2277
2277
  ...Ee(),
@@ -2282,7 +2282,7 @@ const qa = /* @__PURE__ */ R({
2282
2282
  },
2283
2283
  emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
2284
2284
  setup(t, { emit: e }) {
2285
- const r = t, n = Oe("chartID"), { data: a, options: o } = V(r), l = I([]), i = I([]), u = I(null), c = I(null), s = I(null), { extents: f, updateExtents: m } = xa(r.containerSize), { columns: h, graph: g, isExpandableNode: _, toggleNodeExpansion: x } = Xa(a, o, f), { hoveredElement: d, highlightedElements: p } = Qa(
2285
+ const r = t, n = Oe("chartID"), { data: a, options: o } = z(r), l = I([]), i = I([]), u = I(null), c = I(null), s = I(null), { extents: f, updateExtents: m } = xa(r.containerSize), { columns: h, graph: g, isExpandableNode: _, toggleNodeExpansion: x } = Xa(a, o, f), { hoveredElement: d, highlightedElements: p } = Qa(
2286
2286
  l,
2287
2287
  o,
2288
2288
  g
@@ -2295,65 +2295,65 @@ const qa = /* @__PURE__ */ R({
2295
2295
  var L, $;
2296
2296
  return ($ = (L = g.value) == null ? void 0 : L.nodes) != null && $.length ? ot(g.value.nodes) : 0;
2297
2297
  }
2298
- ), A = v(() => {
2298
+ ), F = v(() => {
2299
2299
  if (!h.value) return [];
2300
2300
  const L = h.value.length - 1;
2301
- return h.value.map(([{ x0: $, x1: B }], G) => G === 0 && o.value.alignFirstNodeLabels === "right" ? { x: $, align: "left" } : G === L && o.value.alignLastNodeLabels === "left" ? { x: B, align: "right" } : { x: ($ + B) / 2, align: "center" });
2302
- }), D = v(() => {
2301
+ return h.value.map(([{ x0: $, x1: R }], V) => V === 0 && o.value.alignFirstNodeLabels === "right" ? { x: $, align: "left" } : V === L && o.value.alignLastNodeLabels === "left" ? { x: R, align: "right" } : { x: ($ + R) / 2, align: "center" });
2302
+ }), B = v(() => {
2303
2303
  if (!(!o.value.nodeHeaders || !o.value.nodeHeaders.length))
2304
- return o.value.nodeHeaders.slice(0, A.value.length).map((L, $) => ({
2304
+ return o.value.nodeHeaders.slice(0, F.value.length).map((L, $) => ({
2305
2305
  label: L,
2306
- ...A.value[$]
2306
+ ...F.value[$]
2307
2307
  }));
2308
- }), C = v(
2308
+ }), A = v(
2309
2309
  () => o.value.nodeHeaderPadding ?? aa
2310
- ), M = v(() => {
2310
+ ), C = v(() => {
2311
2311
  if (!(!o.value.gradient || !g.value))
2312
2312
  return g.value.links.reduce((L, $) => {
2313
- const { source: B, target: G } = $, U = B.color || B.fallbackColor, Z = G.deriveColorFromIncomingLinks ? U : G.color || G.fallbackColor;
2313
+ const { source: R, target: V } = $, Z = R.color || R.fallbackColor, X = V.deriveColorFromIncomingLinks ? Z : V.color || V.fallbackColor;
2314
2314
  return L[$.id] = {
2315
- source: U,
2316
- target: Z,
2317
- x1: B.x1,
2318
- x2: G.x0
2315
+ source: Z,
2316
+ target: X,
2317
+ x1: R.x1,
2318
+ x2: V.x0
2319
2319
  }, L;
2320
2320
  }, {});
2321
- }), z = v(() => {
2321
+ }), G = v(() => {
2322
2322
  const L = l.value.filter(
2323
- (B) => w(B)
2323
+ (R) => w(R)
2324
2324
  ), $ = [];
2325
- return L.forEach((B) => {
2326
- const G = [];
2327
- i.value.filter(({ link: U }) => U.target.id === B.node.id).reverse().reduce((U, Z, it, He) => {
2328
- const Se = Z.link.target.y1 - Z.link.target.y0 > _e;
2329
- let b, F, j;
2330
- return Se ? (b = Z.link.target.y1 - Z.link.target.y0, F = Z.link.value / B.node.value, j = F * b) : j = _e / He.length, G.push({
2331
- x: B.x,
2332
- y: B.y + U,
2333
- height: j,
2334
- width: B.width,
2335
- key: `node-block-${B.node.id}-source-link-${Z.link.source.id}`,
2336
- class: `lume-alluvial-group__node-block lume-fill--${Z.link.source.color || ke}`
2337
- }), U + j;
2325
+ return L.forEach((R) => {
2326
+ const V = [];
2327
+ i.value.filter(({ link: Z }) => Z.target.id === R.node.id).reverse().reduce((Z, X, it, He) => {
2328
+ const Se = X.link.target.y1 - X.link.target.y0 > _e;
2329
+ let b, j, M;
2330
+ return Se ? (b = X.link.target.y1 - X.link.target.y0, j = X.link.value / R.node.value, M = j * b) : M = _e / He.length, V.push({
2331
+ x: R.x,
2332
+ y: R.y + Z,
2333
+ height: M,
2334
+ width: R.width,
2335
+ key: `node-block-${R.node.id}-source-link-${X.link.source.id}`,
2336
+ class: `lume-alluvial-group__node-block lume-fill--${X.link.source.color || ke}`
2337
+ }), Z + M;
2338
2338
  }, 0), $.push({
2339
- id: B.node.id,
2340
- subNodes: G
2339
+ id: R.node.id,
2340
+ subNodes: V
2341
2341
  });
2342
2342
  }), $;
2343
2343
  });
2344
- function ee(L) {
2344
+ function W(L) {
2345
2345
  return o.value.gradient && `url('#${n}_${L.id}')`;
2346
2346
  }
2347
- function ce(L) {
2347
+ function J(L) {
2348
2348
  return T.value.length > 0 && !T.value.includes(L.toString());
2349
2349
  }
2350
- function ae(L) {
2350
+ function oe(L) {
2351
2351
  return T.value.length > 0 && T.value.includes(L.toString());
2352
2352
  }
2353
- function oe(L) {
2353
+ function le(L) {
2354
2354
  return p.value.links.length > 0 && !p.value.links.includes(L);
2355
2355
  }
2356
- function le(L) {
2356
+ function ue(L) {
2357
2357
  return p.value.links.length > 0 && p.value.links.includes(L);
2358
2358
  }
2359
2359
  function E(L) {
@@ -2362,17 +2362,17 @@ const qa = /* @__PURE__ */ R({
2362
2362
  function w(L) {
2363
2363
  return !L.node.color && L.node.deriveColorFromIncomingLinks;
2364
2364
  }
2365
- function P(L) {
2365
+ function S(L) {
2366
2366
  _(L.id) && x(L.id);
2367
2367
  }
2368
- function te(L, $) {
2369
- k.value || P(L), e("node-click", { node: L, event: $ });
2368
+ function ne(L, $) {
2369
+ k.value || S(L), e("node-click", { node: L, event: $ });
2370
2370
  }
2371
2371
  function $e(L, $) {
2372
- P(L), e("node-click", { node: L, event: $ });
2372
+ S(L), e("node-click", { node: L, event: $ });
2373
2373
  }
2374
2374
  function we(L) {
2375
- k.value && P(L);
2375
+ k.value && S(L);
2376
2376
  }
2377
2377
  function De(L, $) {
2378
2378
  L !== d.value && (d.value = L, e("link-mouseenter", { link: L, event: $ }));
@@ -2388,14 +2388,14 @@ const qa = /* @__PURE__ */ R({
2388
2388
  }
2389
2389
  const $ = Aa(L, g.value) || Oa(L, g.value);
2390
2390
  if (!$) {
2391
- ne(J.InvalidHoveredElement);
2391
+ re(q.InvalidHoveredElement);
2392
2392
  return;
2393
2393
  }
2394
2394
  d.value = $;
2395
2395
  }
2396
2396
  function xe(L) {
2397
2397
  var $;
2398
- return (($ = z.value.find(({ id: B }) => L === B)) == null ? void 0 : $.subNodes) ?? [];
2398
+ return (($ = G.value.find(({ id: R }) => L === R)) == null ? void 0 : $.subNodes) ?? [];
2399
2399
  }
2400
2400
  function me() {
2401
2401
  const L = Ia(
@@ -2405,16 +2405,16 @@ const qa = /* @__PURE__ */ R({
2405
2405
  );
2406
2406
  m(L);
2407
2407
  }
2408
- return H(g, (L) => {
2408
+ return D(g, (L) => {
2409
2409
  l.value = Na(L.nodes, o.value), i.value = Da(L.links).reverse(), d.value == null && r.hoveredElementId != null && de(r.hoveredElementId);
2410
- }), H([c, s], () => {
2410
+ }), D([c, s], () => {
2411
2411
  d.value = c.value ?? s.value;
2412
- }), H([r.containerSize, u], () => {
2412
+ }), D([r.containerSize, u], () => {
2413
2413
  r.containerSize.width && r.containerSize.height && me();
2414
- }), H(
2414
+ }), D(
2415
2415
  () => [o.value.alignFirstNodeLabels, o.value.alignLastNodeLabels],
2416
2416
  me
2417
- ), H(() => r.hoveredElementId, de), { __sfc: !0, props: r, emit: e, chartID: n, data: a, options: o, nodeBlocks: l, linkPaths: i, nodeTextRefs: u, pointedNode: c, focusedNode: s, extents: f, updateExtents: m, columns: h, graph: g, isExpandableNode: _, toggleNodeExpansion: x, hoveredElement: d, highlightedElements: p, formatValue: y, isBlockExpansionTrigger: k, hoveredNodeIds: T, lastNodeLayer: N, nodeColumnPositions: A, nodeHeaders: D, computedNodeHeaderPadding: C, gradients: M, nodesDerivingColorFromIncomingLinks: z, getLinkStroke: ee, isNodeFaded: ce, isNodeFocused: ae, isLinkFaded: oe, isLinkFocused: le, isLabelBeforeNode: E, shouldDeriveNodeColorFromIncomingLinks: w, toggleExpansion: P, handleNodeClick: te, handleNodeKeydown: $e, handleNodeBlockClick: we, handleLinkMouseover: De, handleLinkMouseleave: pe, handleExternalHover: de, getSubNodesDerivingColorFromIncomingLinks: xe, updateMargins: me, LumeAlluvialNodeLabel: da, LumeAlluvialNodeValue: _a, LumeAlluvialNodeHeader: ka, GHOST_STROKE_WIDTH_OFFSET: ra, NODE_OUTLINE_PADDING: oa, NODE_OUTLINE_RADIUS: la };
2417
+ ), D(() => r.hoveredElementId, de), { __sfc: !0, props: r, emit: e, chartID: n, data: a, options: o, nodeBlocks: l, linkPaths: i, nodeTextRefs: u, pointedNode: c, focusedNode: s, extents: f, updateExtents: m, columns: h, graph: g, isExpandableNode: _, toggleNodeExpansion: x, hoveredElement: d, highlightedElements: p, formatValue: y, isBlockExpansionTrigger: k, hoveredNodeIds: T, lastNodeLayer: N, nodeColumnPositions: F, nodeHeaders: B, computedNodeHeaderPadding: A, gradients: C, nodesDerivingColorFromIncomingLinks: G, getLinkStroke: W, isNodeFaded: J, isNodeFocused: oe, isLinkFaded: le, isLinkFocused: ue, isLabelBeforeNode: E, shouldDeriveNodeColorFromIncomingLinks: w, toggleExpansion: S, handleNodeClick: ne, handleNodeKeydown: $e, handleNodeBlockClick: we, handleLinkMouseover: De, handleLinkMouseleave: pe, handleExternalHover: de, getSubNodesDerivingColorFromIncomingLinks: xe, updateMargins: me, LumeAlluvialNodeLabel: da, LumeAlluvialNodeValue: _a, LumeAlluvialNodeHeader: ka, GHOST_STROKE_WIDTH_OFFSET: ra, NODE_OUTLINE_PADDING: oa, NODE_OUTLINE_RADIUS: la };
2418
2418
  }
2419
2419
  });
2420
2420
  var eo = function() {
@@ -2491,7 +2491,7 @@ var eo = function() {
2491
2491
  a.node.value
2492
2492
  ) })], 2)], 2)]);
2493
2493
  })], 2);
2494
- }, to = [], no = /* @__PURE__ */ S(
2494
+ }, to = [], no = /* @__PURE__ */ H(
2495
2495
  qa,
2496
2496
  eo,
2497
2497
  to,
@@ -2521,13 +2521,13 @@ const ro = no.exports, ao = {
2521
2521
  nodeExpansionTrigger: "node",
2522
2522
  valueFormat: (t) => String(t),
2523
2523
  iterations: 6
2524
- }, oo = /* @__PURE__ */ R({
2524
+ }, oo = /* @__PURE__ */ P({
2525
2525
  __name: "lume-alluvial-diagram",
2526
2526
  props: {
2527
2527
  ...or(Ke)
2528
2528
  },
2529
2529
  setup(t, { emit: e }) {
2530
- const r = t, { componentEventPropagator: n } = q(e), a = se(X()), o = xn(X()), { options: l } = V(r), { allOptions: i } = Q(l, ao);
2530
+ const r = t, { componentEventPropagator: n } = te(e), a = ce(Y()), o = xn(Y()), { options: l } = z(r), { allOptions: i } = ee(l, ao);
2531
2531
  function u(c) {
2532
2532
  return {
2533
2533
  ...c,
@@ -2551,7 +2551,7 @@ var lo = function() {
2551
2551
  return [e._t(o, null, null, l || {})];
2552
2552
  } };
2553
2553
  })], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
2554
- }, uo = [], io = /* @__PURE__ */ S(
2554
+ }, uo = [], io = /* @__PURE__ */ H(
2555
2555
  oo,
2556
2556
  lo,
2557
2557
  uo,
@@ -2561,7 +2561,7 @@ var lo = function() {
2561
2561
  );
2562
2562
  const xl = io.exports;
2563
2563
  var Ye = /* @__PURE__ */ ((t) => (t.grouped = "grouped", t.stacked = "stacked", t))(Ye || {});
2564
- const so = /* @__PURE__ */ R({
2564
+ const so = /* @__PURE__ */ P({
2565
2565
  __name: "lume-bar-chart",
2566
2566
  props: {
2567
2567
  ...ve(),
@@ -2573,16 +2573,16 @@ const so = /* @__PURE__ */ R({
2573
2573
  },
2574
2574
  setup(t, { emit: e }) {
2575
2575
  const r = t, n = Re(
2576
- () => import("./asrcm8__.js")
2576
+ () => import("./BcdWHItu.js")
2577
2577
  ), a = Re(
2578
- () => import("./BSSy21i7.js")
2578
+ () => import("./B_HRWqQ_.js")
2579
2579
  ), o = Re(
2580
- () => import("./es6xM4zX.js")
2580
+ () => import("./Dd8aumDr.js")
2581
2581
  ), l = /* @__PURE__ */ new Map([
2582
2582
  ["single", n],
2583
2583
  ["grouped", a],
2584
2584
  ["stacked", o]
2585
- ]), { componentEventPropagator: i } = q(e), u = se(X());
2585
+ ]), { componentEventPropagator: i } = te(e), u = ce(Y());
2586
2586
  function c(f) {
2587
2587
  return {
2588
2588
  ...f,
@@ -2610,7 +2610,7 @@ var co = function() {
2610
2610
  return [e._t(o, null, null, l || {})];
2611
2611
  } };
2612
2612
  })], null, !0) }, "component", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
2613
- }, vo = [], fo = /* @__PURE__ */ S(
2613
+ }, vo = [], fo = /* @__PURE__ */ H(
2614
2614
  so,
2615
2615
  co,
2616
2616
  vo,
@@ -2739,13 +2739,13 @@ function xo(t, e, r, n, a, o) {
2739
2739
  }
2740
2740
  function h(g, _, x) {
2741
2741
  if (!(e.value && r.value)) return ko;
2742
- const { value: p, color: y } = g, k = y ?? t.value[_].color ?? Object.values(Y)[_], T = c(p, x, _), N = s(p, x, _), A = f(p), D = m(p);
2742
+ const { value: p, color: y } = g, k = y ?? t.value[_].color ?? Object.values(K)[_], T = c(p, x, _), N = s(p, x, _), F = f(p), B = m(p);
2743
2743
  return {
2744
2744
  classList: [`lume-fill--${k}`, ...o],
2745
2745
  x: T,
2746
2746
  y: N,
2747
- width: A,
2748
- height: D,
2747
+ width: F,
2748
+ height: B,
2749
2749
  isFaded: a.value !== -1 && a.value !== x,
2750
2750
  isNegative: p < 0
2751
2751
  };
@@ -2822,13 +2822,13 @@ function To(t, e, r, n, a, o) {
2822
2822
  return d ? u.value.reduce((y, k, T) => (T < d && k[p] < 0 && (y += k[p]), y), 0) : 0;
2823
2823
  }
2824
2824
  function x(d, p, y) {
2825
- const { value: k, color: T } = d, N = k >= 0 ? s(k) : f(k), A = k >= 0 ? m(k) : h(k), D = k >= 0 ? g(p, y) : _(p, y), { x: C, y: M } = c(k, y, D);
2825
+ const { value: k, color: T } = d, N = k >= 0 ? s(k) : f(k), F = k >= 0 ? m(k) : h(k), B = k >= 0 ? g(p, y) : _(p, y), { x: A, y: C } = c(k, y, B);
2826
2826
  return {
2827
- classList: [`lume-fill--${T ?? t.value[p].color ?? Object.values(Y)[p]}`, ...o],
2827
+ classList: [`lume-fill--${T ?? t.value[p].color ?? Object.values(K)[p]}`, ...o],
2828
2828
  width: N,
2829
- height: A,
2830
- x: C,
2831
- y: M,
2829
+ height: F,
2830
+ x: A,
2831
+ y: C,
2832
2832
  isFaded: a.value !== -1 && a.value !== y,
2833
2833
  isNegative: k < 0
2834
2834
  };
@@ -2839,7 +2839,7 @@ const Lt = {
2839
2839
  single: bo,
2840
2840
  grouped: xo,
2841
2841
  stacked: To
2842
- }, Ao = /* @__PURE__ */ R({
2842
+ }, Ao = /* @__PURE__ */ P({
2843
2843
  __name: "lume-bar-group",
2844
2844
  props: {
2845
2845
  ...Ee(),
@@ -2865,7 +2865,7 @@ const Lt = {
2865
2865
  yScale: c,
2866
2866
  classList: s,
2867
2867
  labels: f
2868
- } = V(r), m = Oe("chartID"), { emitInternalEvent: h } = q(e, m), { groupedData: g } = Zt(n, f), { barXScale: _, barYScale: x } = ho(u, c, o), d = v(() => typeof s.value == "string" ? [s.value] : s.value), p = v(() => {
2868
+ } = z(r), m = Oe("chartID"), { emitInternalEvent: h } = te(e, m), { groupedData: g } = Zt(n, f), { barXScale: _, barYScale: x } = ho(u, c, o), d = v(() => typeof s.value == "string" ? [s.value] : s.value), p = v(() => {
2869
2869
  const T = go(n, i), { barAttributeGenerator: N } = Lt[T](
2870
2870
  n,
2871
2871
  _,
@@ -2900,7 +2900,7 @@ var Oo = function() {
2900
2900
  } } }, "lume-bar", n.getBarAttributes(l, i, o, a), !1));
2901
2901
  }), 1);
2902
2902
  }), 0);
2903
- }, Io = [], No = /* @__PURE__ */ S(
2903
+ }, Io = [], No = /* @__PURE__ */ H(
2904
2904
  Ao,
2905
2905
  Oo,
2906
2906
  Io,
@@ -2913,24 +2913,24 @@ const ut = No.exports, Eo = {
2913
2913
  withTooltip: !0,
2914
2914
  xAxisOptions: {},
2915
2915
  yAxisOptions: { gridLines: !0 },
2916
- margins: ie.VERTICAL
2916
+ margins: se.VERTICAL
2917
2917
  },
2918
2918
  [O.HORIZONTAL]: {
2919
2919
  withTooltip: !0,
2920
2920
  xAxisOptions: { gridLines: !0 },
2921
2921
  yAxisOptions: { gridLines: !1 },
2922
- margins: ie.HORIZONTAL
2922
+ margins: se.HORIZONTAL
2923
2923
  }
2924
- }, $o = /* @__PURE__ */ R({
2924
+ }, $o = /* @__PURE__ */ P({
2925
2925
  __name: "lume-single-bar-chart",
2926
2926
  props: {
2927
2927
  ...ve(Ke)
2928
2928
  },
2929
2929
  setup(t, { emit: e }) {
2930
- const r = t, { componentEventPropagator: n } = q(e), a = se(X()), { orientation: o, options: l } = V(r), i = v(
2930
+ const r = t, { componentEventPropagator: n } = te(e), a = ce(Y()), { orientation: o, options: l } = z(r), i = v(
2931
2931
  () => Eo[o.value || O.VERTICAL]
2932
2932
  // needs to be computed so that default options are reactive
2933
- ), { allOptions: u } = Q(l, i);
2933
+ ), { allOptions: u } = ee(l, i);
2934
2934
  return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, orientation: o, options: l, baseOptions: i, allOptions: u, LumeChart: fe, LumeBarGroup: ut };
2935
2935
  }
2936
2936
  });
@@ -2943,7 +2943,7 @@ var wo = function() {
2943
2943
  return [e._t(o, null, null, l || {})];
2944
2944
  } };
2945
2945
  })], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
2946
- }, Do = [], Ho = /* @__PURE__ */ S(
2946
+ }, Do = [], Ho = /* @__PURE__ */ H(
2947
2947
  $o,
2948
2948
  wo,
2949
2949
  Do,
@@ -2956,25 +2956,25 @@ const Tl = Ho.exports, So = {
2956
2956
  withTooltip: !0,
2957
2957
  xAxisOptions: {},
2958
2958
  yAxisOptions: { gridLines: !0 },
2959
- margins: ie.VERTICAL
2959
+ margins: se.VERTICAL
2960
2960
  },
2961
2961
  [O.HORIZONTAL]: {
2962
2962
  withTooltip: !0,
2963
2963
  xAxisOptions: { gridLines: !0 },
2964
2964
  yAxisOptions: { gridLines: !1 },
2965
- margins: ie.HORIZONTAL,
2965
+ margins: se.HORIZONTAL,
2966
2966
  tooltipOptions: { position: "right" }
2967
2967
  }
2968
- }, Po = /* @__PURE__ */ R({
2968
+ }, Po = /* @__PURE__ */ P({
2969
2969
  __name: "lume-grouped-bar-chart",
2970
2970
  props: {
2971
2971
  ...ve()
2972
2972
  },
2973
2973
  setup(t, { emit: e }) {
2974
- const r = t, { componentEventPropagator: n } = q(e), a = se(X()), { orientation: o, options: l } = V(r), i = v(
2974
+ const r = t, { componentEventPropagator: n } = te(e), a = ce(Y()), { orientation: o, options: l } = z(r), i = v(
2975
2975
  () => So[o.value || O.VERTICAL]
2976
2976
  // needs to be computed so that default options are reactive
2977
- ), { allOptions: u } = Q(
2977
+ ), { allOptions: u } = ee(
2978
2978
  l,
2979
2979
  i
2980
2980
  );
@@ -2990,39 +2990,39 @@ var Ro = function() {
2990
2990
  return [e._t(o, null, null, l || {})];
2991
2991
  } };
2992
2992
  })], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
2993
- }, Bo = [], Co = /* @__PURE__ */ S(
2993
+ }, Co = [], Bo = /* @__PURE__ */ H(
2994
2994
  Po,
2995
2995
  Ro,
2996
- Bo,
2996
+ Co,
2997
2997
  !1,
2998
2998
  null,
2999
2999
  null
3000
3000
  );
3001
- const Al = Co.exports, Fo = {
3001
+ const Al = Bo.exports, Fo = {
3002
3002
  [O.VERTICAL]: {
3003
3003
  withTooltip: !0,
3004
3004
  xAxisOptions: {},
3005
3005
  yAxisOptions: { gridLines: !0 },
3006
- margins: ie.VERTICAL,
3006
+ margins: se.VERTICAL,
3007
3007
  tooltipOptions: { inverse: !0 }
3008
3008
  },
3009
3009
  [O.HORIZONTAL]: {
3010
3010
  withTooltip: !0,
3011
3011
  xAxisOptions: { gridLines: !0 },
3012
3012
  yAxisOptions: { gridLines: !1 },
3013
- margins: ie.HORIZONTAL,
3013
+ margins: se.HORIZONTAL,
3014
3014
  tooltipOptions: { position: "right" }
3015
3015
  }
3016
- }, Go = /* @__PURE__ */ R({
3016
+ }, Go = /* @__PURE__ */ P({
3017
3017
  __name: "lume-stacked-bar-chart",
3018
3018
  props: {
3019
3019
  ...ve()
3020
3020
  },
3021
3021
  setup(t, { emit: e }) {
3022
- const r = t, { componentEventPropagator: n } = q(e), a = se(X()), { data: o, orientation: l, options: i, labels: u } = V(r), c = v(
3022
+ const r = t, { componentEventPropagator: n } = te(e), a = ce(Y()), { data: o, orientation: l, options: i, labels: u } = z(r), c = v(
3023
3023
  () => Fo[l.value || O.VERTICAL]
3024
3024
  // needs to be computed so that default options are reactive
3025
- ), { allOptions: s } = Q(
3025
+ ), { allOptions: s } = ee(
3026
3026
  i,
3027
3027
  c
3028
3028
  ), { internalData: f } = rt(o), { groupedData: m } = Zt(f, u), { stackedXScaleGenerator: h, stackedYScaleGenerator: g } = Lo(
@@ -3042,7 +3042,7 @@ var jo = function() {
3042
3042
  return [e._t(o, null, null, l || {})];
3043
3043
  } };
3044
3044
  })], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
3045
- }, Vo = [], Mo = /* @__PURE__ */ S(
3045
+ }, Vo = [], Mo = /* @__PURE__ */ H(
3046
3046
  Go,
3047
3047
  jo,
3048
3048
  Vo,
@@ -3050,7 +3050,7 @@ var jo = function() {
3050
3050
  null,
3051
3051
  null
3052
3052
  );
3053
- const Ol = Mo.exports, Tt = 2, zo = /* @__PURE__ */ R({
3053
+ const Ol = Mo.exports, Tt = 2, zo = /* @__PURE__ */ P({
3054
3054
  __name: "lume-line",
3055
3055
  props: {
3056
3056
  pathDefinition: {
@@ -3063,7 +3063,7 @@ const Ol = Mo.exports, Tt = 2, zo = /* @__PURE__ */ R({
3063
3063
  },
3064
3064
  color: {
3065
3065
  type: String,
3066
- default: Y.Skyblue
3066
+ default: K.Skyblue
3067
3067
  },
3068
3068
  dashed: {
3069
3069
  type: Boolean,
@@ -3085,7 +3085,7 @@ const Ol = Mo.exports, Tt = 2, zo = /* @__PURE__ */ R({
3085
3085
  emits: ["click"],
3086
3086
  setup(t, { emit: e }) {
3087
3087
  const r = I(null);
3088
- return re(() => Ne(r.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: Tt, emit: e, root: r };
3088
+ return ae(() => Ne(r.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: Tt, emit: e, root: r };
3089
3089
  }
3090
3090
  });
3091
3091
  var Wo = function() {
@@ -3100,7 +3100,7 @@ var Wo = function() {
3100
3100
  }, attrs: { d: e.pathDefinition, "stroke-width": e.width, "data-j-line": "" }, on: { click: function(a) {
3101
3101
  return n.emit("click", a);
3102
3102
  } } });
3103
- }, Uo = [], Zo = /* @__PURE__ */ S(
3103
+ }, Uo = [], Zo = /* @__PURE__ */ H(
3104
3104
  zo,
3105
3105
  Wo,
3106
3106
  Uo,
@@ -3108,12 +3108,12 @@ var Wo = function() {
3108
3108
  null,
3109
3109
  "59449838"
3110
3110
  );
3111
- const Xo = Zo.exports, At = 4, Ot = 3, Yo = /* @__PURE__ */ R({
3111
+ const Xo = Zo.exports, At = 4, Ot = 3, Yo = /* @__PURE__ */ P({
3112
3112
  __name: "lume-point",
3113
3113
  props: {
3114
3114
  x: null,
3115
3115
  y: null,
3116
- color: { default: Y.Skyblue },
3116
+ color: { default: K.Skyblue },
3117
3117
  radius: { default: At },
3118
3118
  active: { type: Boolean, default: !1 },
3119
3119
  visible: { type: Boolean, default: !1 }
@@ -3121,7 +3121,7 @@ const Xo = Zo.exports, At = 4, Ot = 3, Yo = /* @__PURE__ */ R({
3121
3121
  emits: ["click"],
3122
3122
  setup(t, { emit: e }) {
3123
3123
  const r = t, n = I(null), a = v(() => r.radius / 2), o = v(() => r.active ? r.radius : r.visible ? Ot : 0);
3124
- return re(() => Ne(n.value)), { __sfc: !0, DEFAULT_RADIUS: At, DEFAULT_VISIBLE_RADIUS: Ot, props: r, emit: e, root: n, strokeWidth: a, computedRadius: o };
3124
+ return ae(() => Ne(n.value)), { __sfc: !0, DEFAULT_RADIUS: At, DEFAULT_VISIBLE_RADIUS: Ot, props: r, emit: e, root: n, strokeWidth: a, computedRadius: o };
3125
3125
  }
3126
3126
  });
3127
3127
  var Ko = function() {
@@ -3133,7 +3133,7 @@ var Ko = function() {
3133
3133
  }, attrs: { cx: e.x, cy: e.y, r: n.computedRadius, "stroke-width": n.strokeWidth, "data-j-point": "" }, on: { click: function(a) {
3134
3134
  return n.emit("click", a);
3135
3135
  } } });
3136
- }, Jo = [], Qo = /* @__PURE__ */ S(
3136
+ }, Jo = [], Qo = /* @__PURE__ */ H(
3137
3137
  Yo,
3138
3138
  Ko,
3139
3139
  Jo,
@@ -3202,11 +3202,11 @@ function tl(t, e) {
3202
3202
  }
3203
3203
  function nl(t, e, r, n) {
3204
3204
  const a = rn().x(
3205
- K(r) ? el(r, t) : tl(r, t)
3205
+ Q(r) ? el(r, t) : tl(r, t)
3206
3206
  ).y((o) => n(o));
3207
3207
  return e.every((o) => o == null) ? null : a(e);
3208
3208
  }
3209
- const It = 1, rl = /* @__PURE__ */ R({
3209
+ const It = 1, rl = /* @__PURE__ */ P({
3210
3210
  __name: "lume-line-group",
3211
3211
  props: {
3212
3212
  ...Ee(),
@@ -3221,7 +3221,7 @@ const It = 1, rl = /* @__PURE__ */ R({
3221
3221
  },
3222
3222
  emits: ["line-click", "point-click", "lume__internal--hover"],
3223
3223
  setup(t, { emit: e }) {
3224
- const r = t, { data: n, options: a, xScale: o, yScale: l, labels: i } = V(r), u = Oe(
3224
+ const r = t, { data: n, options: a, xScale: o, yScale: l, labels: i } = z(r), u = Oe(
3225
3225
  "tooltipAnchorAttributes",
3226
3226
  null
3227
3227
  ), { updateTooltipAnchorAttributes: c } = jt(
@@ -3231,7 +3231,7 @@ const It = 1, rl = /* @__PURE__ */ R({
3231
3231
  l,
3232
3232
  i
3233
3233
  ), s = v(() => {
3234
- if (n.value.every((D) => D.isDashed))
3234
+ if (n.value.every((C) => C.isDashed))
3235
3235
  return n.value;
3236
3236
  const { computedLineData: A } = Xt(
3237
3237
  n,
@@ -3268,73 +3268,82 @@ const It = 1, rl = /* @__PURE__ */ R({
3268
3268
  function p(A) {
3269
3269
  return s.value[A].values;
3270
3270
  }
3271
- function y(A, D) {
3272
- var M, z;
3273
- const C = A === 0 ? [] : [
3274
- (M = p(D)[A - 1]) == null ? void 0 : M.value,
3275
- (z = p(D)[A]) == null ? void 0 : z.value
3271
+ function y(A) {
3272
+ return p(A).flatMap(
3273
+ (C, G) => C.isNull ? [] : [G]
3274
+ );
3275
+ }
3276
+ function k(A, C) {
3277
+ var G;
3278
+ return ((G = p(C)[A]) == null ? void 0 : G.color) ?? s.value[C].color;
3279
+ }
3280
+ function T(A, C) {
3281
+ var W, J;
3282
+ const G = A === 0 ? [] : [
3283
+ (W = p(C)[A - 1]) == null ? void 0 : W.value,
3284
+ (J = p(C)[A]) == null ? void 0 : J.value
3276
3285
  ];
3277
3286
  return nl(
3278
3287
  A,
3279
- C,
3288
+ G,
3280
3289
  o.value,
3281
3290
  l.value
3282
3291
  ) || "";
3283
3292
  }
3284
- function k(A) {
3293
+ function N(A) {
3285
3294
  return {
3286
3295
  animationDelay: A < 2 ? 0 : (A - 1) * m.value,
3287
3296
  animationDuration: m.value
3288
3297
  };
3289
3298
  }
3290
- function T(A, D) {
3291
- var M;
3292
- const C = (M = p(D)[A]) == null ? void 0 : M.value;
3299
+ function F(A, C) {
3300
+ var W;
3301
+ const G = (W = p(C)[A]) == null ? void 0 : W.value;
3293
3302
  return {
3294
- x: K(o.value) ? r.xScale(_.value[A]) + g.value : r.xScale(A),
3295
- y: C === null ? l.value(l.value.domain()[1]) : l.value(C)
3303
+ x: Q(o.value) ? r.xScale(_.value[A]) + g.value : r.xScale(A),
3304
+ y: G === null ? l.value(l.value.domain()[1]) : l.value(G)
3296
3305
  };
3297
3306
  }
3298
- function N(A) {
3307
+ function B(A) {
3299
3308
  return r.hoveredIndex === A;
3300
3309
  }
3301
- return { __sfc: !0, LUME_TRANSITION_TIME_FULL: It, props: r, emit: e, data: n, options: a, xScale: o, yScale: l, labels: i, tooltipAnchorAttributes: u, updateTooltipAnchorAttributes: c, computedGroupData: s, overlayLineAttributes: f, animationDuration: m, pointRadius: h, xAxisOffset: g, domain: _, computedWithPoints: x, computedVisiblePoints: d, getValuesFromDataset: p, getPathDefinition: y, getLineTransitionParams: k, getPointPosition: T, isPointActive: N, LumeLine: Xo, LumePoint: qo };
3310
+ return { __sfc: !0, LUME_TRANSITION_TIME_FULL: It, props: r, emit: e, data: n, options: a, xScale: o, yScale: l, labels: i, tooltipAnchorAttributes: u, updateTooltipAnchorAttributes: c, computedGroupData: s, overlayLineAttributes: f, animationDuration: m, pointRadius: h, xAxisOffset: g, domain: _, computedWithPoints: x, computedVisiblePoints: d, getValuesFromDataset: p, getNonNullIndexes: y, getColor: k, getPathDefinition: T, getLineTransitionParams: N, getPointPosition: F, isPointActive: B, LumeLine: Xo, LumePoint: qo };
3302
3311
  }
3303
3312
  });
3304
3313
  var al = function() {
3305
3314
  var e = this, r = e._self._c, n = e._self._setupProxy;
3306
3315
  return r("g", { staticClass: "lume-line-group", attrs: { "data-j-lume-line-group": "" } }, [r("path", e._b({ staticClass: "lume-line-group__overlay-line", attrs: { "data-j-lume-line-group__overlay-line": "" } }, "path", n.overlayLineAttributes, !1)), e._l(n.computedGroupData, function(a, o) {
3307
3316
  return r("g", { key: a.label, staticClass: "lume-line-group__group" }, [r("g", { staticClass: "lume-line-group__lines" }, e._l(a.values, function(l, i) {
3308
- return r(n.LumeLine, e._b({ key: `line-${i}`, attrs: { color: a.color, dashed: a.isDashed(i), "path-definition": n.getPathDefinition(i, o), transition: e.transition, width: n.options.lineWidth }, on: { click: function(u) {
3317
+ return r(n.LumeLine, e._b({ key: `line-${i}`, attrs: { color: n.getColor(i, o), dashed: a.isDashed(i), "path-definition": n.getPathDefinition(i, o), transition: e.transition, width: n.options.lineWidth }, on: { click: function(u) {
3309
3318
  return n.emit("line-click", { index: i, datasetIndex: o, event: u });
3310
3319
  } } }, "lume-line", n.getLineTransitionParams(i), !1));
3311
- }), 1), n.computedWithPoints ? r("g", { staticClass: "lume-line-group__points", attrs: { "data-j-lume-line-group__points": "" } }, [e._l(a.values, function(l, i) {
3312
- return [l.isNull ? e._e() : r(n.LumePoint, e._b({ attrs: { active: n.isPointActive(i), color: a.color, index: i, radius: n.pointRadius, visible: n.computedVisiblePoints }, on: { click: function(u) {
3313
- return n.emit("point-click", { index: i, datasetIndex: o, event: u });
3314
- } } }, "lume-point", n.getPointPosition(i, o), !1))];
3315
- })], 2) : e._e()]);
3320
+ }), 1), n.computedWithPoints ? r("g", { staticClass: "lume-line-group__points", attrs: { "data-j-lume-line-group__points": "" } }, e._l(n.getNonNullIndexes(o), function(l) {
3321
+ return r(n.LumePoint, e._b({ key: `point-${l}`, attrs: { active: n.isPointActive(l), color: n.getColor(l, o), index: l, radius: n.pointRadius, visible: n.computedVisiblePoints }, on: { click: function(i) {
3322
+ return n.emit("point-click", { index: l, datasetIndex: o, event: i });
3323
+ } } }, "lume-point", n.getPointPosition(l, o), !1));
3324
+ }), 1) : e._e()]);
3316
3325
  })], 2);
3317
- }, ol = [], ll = /* @__PURE__ */ S(
3326
+ }, ol = [], ll = /* @__PURE__ */ H(
3318
3327
  rl,
3319
3328
  al,
3320
3329
  ol,
3321
3330
  !1,
3322
3331
  null,
3323
- "898c2e7a"
3332
+ "8c8a77a0"
3324
3333
  );
3325
3334
  const Yt = ll.exports, ul = {
3326
- margins: ie.VERTICAL,
3335
+ margins: se.VERTICAL,
3327
3336
  startOnZero: !0,
3328
3337
  withTooltip: !0,
3329
3338
  xAxisOptions: {},
3330
3339
  yAxisOptions: { gridLines: !0 }
3331
- }, il = /* @__PURE__ */ R({
3340
+ }, il = /* @__PURE__ */ P({
3332
3341
  __name: "lume-line-chart",
3333
3342
  props: {
3334
3343
  ...ve(null, !1)
3335
3344
  },
3336
3345
  setup(t, { emit: e }) {
3337
- const r = t, { componentEventPropagator: n } = q(e), a = se(X()), { options: o } = V(r), { allOptions: l } = Q(o, ul);
3346
+ const r = t, { componentEventPropagator: n } = te(e), a = ce(Y()), { options: o } = z(r), { allOptions: l } = ee(o, ul);
3338
3347
  return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, options: o, allOptions: l, LumeChart: fe, LumeLineGroup: Yt };
3339
3348
  }
3340
3349
  });
@@ -3347,7 +3356,7 @@ var sl = function() {
3347
3356
  return [e._t(o, null, null, l || {})];
3348
3357
  } };
3349
3358
  })], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
3350
- }, cl = [], dl = /* @__PURE__ */ S(
3359
+ }, cl = [], dl = /* @__PURE__ */ H(
3351
3360
  il,
3352
3361
  sl,
3353
3362
  cl,
@@ -3359,7 +3368,7 @@ const Il = dl.exports;
3359
3368
  function vl(t) {
3360
3369
  return { areaPathDefinition: v(
3361
3370
  () => function(r, n) {
3362
- if (!r || !n || K(r) || K(n))
3371
+ if (!r || !n || Q(r) || Q(n))
3363
3372
  return;
3364
3373
  const a = t.value[0].values;
3365
3374
  return an().x((o, l) => r(l)).y0(n(Math.min(...n.domain()))).y1((o) => n(o.value))(a);
@@ -3380,14 +3389,14 @@ const fl = {
3380
3389
  tooltipOptions: {
3381
3390
  showTitle: !1
3382
3391
  }
3383
- }, pl = /* @__PURE__ */ R({
3392
+ }, pl = /* @__PURE__ */ P({
3384
3393
  __name: "lume-sparkline-chart",
3385
3394
  props: {
3386
3395
  ...nt(null),
3387
3396
  ...ye()
3388
3397
  },
3389
3398
  setup(t, { expose: e, emit: r }) {
3390
- const n = t, { componentEventPropagator: a } = q(r), o = se(X()), { data: l, options: i } = V(n), { internalData: u } = rt(l), { allOptions: c } = Q(i, fl), { computedLineData: s } = Xt(u), { areaPathDefinition: f } = vl(s), m = v(() => {
3399
+ const n = t, { componentEventPropagator: a } = te(r), o = ce(Y()), { data: l, options: i } = z(n), { internalData: u } = rt(l), { allOptions: c } = ee(i, fl), { computedLineData: s } = Xt(u), { areaPathDefinition: f } = vl(s), m = v(() => {
3391
3400
  var x, d;
3392
3401
  return (d = (x = u.value) == null ? void 0 : x[0]) == null ? void 0 : d.color;
3393
3402
  }), h = v(
@@ -3425,7 +3434,7 @@ var ml = function() {
3425
3434
  return [e._t(o, null, null, l || {})];
3426
3435
  } };
3427
3436
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
3428
- }, _l = [], gl = /* @__PURE__ */ S(
3437
+ }, _l = [], gl = /* @__PURE__ */ H(
3429
3438
  pl,
3430
3439
  ml,
3431
3440
  _l,
@@ -3437,7 +3446,7 @@ const Nl = gl.exports;
3437
3446
  export {
3438
3447
  Mr as A,
3439
3448
  mt as B,
3440
- ue as C,
3449
+ ie as C,
3441
3450
  qe as D,
3442
3451
  je as E,
3443
3452
  pt as F,
@@ -3447,7 +3456,7 @@ export {
3447
3456
  Xt as J,
3448
3457
  zr as K,
3449
3458
  tt as L,
3450
- Q as M,
3459
+ ee as M,
3451
3460
  lr as N,
3452
3461
  et as O,
3453
3462
  Zr as P,
@@ -3459,7 +3468,7 @@ export {
3459
3468
  or as V,
3460
3469
  ye as W,
3461
3470
  rr as X,
3462
- Y as a,
3471
+ K as a,
3463
3472
  ro as b,
3464
3473
  ka as c,
3465
3474
  da as d,
@@ -3486,4 +3495,4 @@ export {
3486
3495
  Or as y,
3487
3496
  kr as z
3488
3497
  };
3489
- //# sourceMappingURL=h4DBladZ.js.map
3498
+ //# sourceMappingURL=tiVLuRX9.js.map