@adyen/lume 0.1.6 → 0.1.7

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,43 +1,43 @@
1
- import N, { isRef as Et, reactive as it, computed as f, ref as k, watch as I, defineComponent as S, toRefs as C, onBeforeMount as re, onMounted as G, onBeforeUnmount as gt, watchEffect as Pt, toRef as ae, defineAsyncComponent as vt } from "vue";
2
- import { sankeyLinkHorizontal as oe, sankey as se, sankeyJustify as ie } from "d3-sankey";
3
- import { ticks as le, format as ue, line as ce, scaleBand as J, scaleLinear as Q, area as de } from "d3";
4
- import { createPopper as fe } from "@popperjs/core";
5
- function at(e) {
6
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? at = function(t) {
1
+ import D, { isRef as Bt, reactive as lt, computed as v, ref as $, watch as N, defineComponent as L, toRefs as w, onBeforeMount as oe, onMounted as V, onBeforeUnmount as yt, watchEffect as Mt, toRef as se, defineAsyncComponent as ht } from "vue";
2
+ import { sankeyLinkHorizontal as ie, sankey as le, sankeyJustify as ue } from "d3-sankey";
3
+ import { format as ce, ticks as de, scaleBand as J, scaleLinear as Q, line as fe, area as pe } from "d3";
4
+ import { createPopper as ve } from "@popperjs/core";
5
+ function ot(e) {
6
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ot = function(t) {
7
7
  return typeof t;
8
- } : at = function(t) {
8
+ } : ot = function(t) {
9
9
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
10
- }, at(e);
10
+ }, ot(e);
11
11
  }
12
- function pe(e) {
13
- return ve(e) || he(e) || _e();
12
+ function he(e) {
13
+ return _e(e) || me(e) || ge();
14
14
  }
15
- function ve(e) {
15
+ function _e(e) {
16
16
  if (Array.isArray(e)) {
17
17
  for (var t = 0, n = new Array(e.length); t < e.length; t++)
18
18
  n[t] = e[t];
19
19
  return n;
20
20
  }
21
21
  }
22
- function he(e) {
22
+ function me(e) {
23
23
  if (Symbol.iterator in Object(e) || Object.prototype.toString.call(e) === "[object Arguments]")
24
24
  return Array.from(e);
25
25
  }
26
- function _e() {
26
+ function ge() {
27
27
  throw new TypeError("Invalid attempt to spread non-iterable instance");
28
28
  }
29
- var rt = typeof window < "u";
30
- function me(e) {
31
- return Array.isArray(e) || at(e) === "object" ? Object.freeze(e) : e;
29
+ var at = typeof window < "u";
30
+ function ye(e) {
31
+ return Array.isArray(e) || ot(e) === "object" ? Object.freeze(e) : e;
32
32
  }
33
- function ge(e) {
33
+ function be(e) {
34
34
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
35
35
  return e.reduce(function(n, r) {
36
36
  var a = r.passengers[0], o = typeof a == "function" ? a(t) : r.passengers;
37
37
  return n.concat(o);
38
38
  }, []);
39
39
  }
40
- function ye(e, t) {
40
+ function xe(e, t) {
41
41
  return e.map(function(n, r) {
42
42
  return [r, n];
43
43
  }).sort(function(n, r) {
@@ -46,35 +46,35 @@ function ye(e, t) {
46
46
  return n[1];
47
47
  });
48
48
  }
49
- function St(e, t) {
49
+ function wt(e, t) {
50
50
  return t.reduce(function(n, r) {
51
51
  return e.hasOwnProperty(r) && (n[r] = e[r]), n;
52
52
  }, {});
53
53
  }
54
- var Bt = {}, be = {}, xe = {}, Ae = N.extend({
54
+ var Ht = {}, Te = {}, Ae = {}, Oe = D.extend({
55
55
  data: function() {
56
56
  return {
57
- transports: Bt,
58
- targets: be,
59
- sources: xe,
60
- trackInstances: rt
57
+ transports: Ht,
58
+ targets: Te,
59
+ sources: Ae,
60
+ trackInstances: at
61
61
  };
62
62
  },
63
63
  methods: {
64
64
  open: function(t) {
65
- if (!!rt) {
66
- var n = t.to, r = t.from, a = t.passengers, o = t.order, i = o === void 0 ? 1 / 0 : o;
65
+ if (!!at) {
66
+ var n = t.to, r = t.from, a = t.passengers, o = t.order, s = o === void 0 ? 1 / 0 : o;
67
67
  if (!(!n || !r || !a)) {
68
- var u = {
68
+ var l = {
69
69
  to: n,
70
70
  from: r,
71
- passengers: me(a),
72
- order: i
73
- }, s = Object.keys(this.transports);
74
- s.indexOf(n) === -1 && N.set(this.transports, n, []);
75
- var c = this.$_getTransportIndex(u), h = this.transports[n].slice(0);
76
- c === -1 ? h.push(u) : h[c] = u, this.transports[n] = ye(h, function(l, v) {
77
- return l.order - v.order;
71
+ passengers: ye(a),
72
+ order: s
73
+ }, i = Object.keys(this.transports);
74
+ i.indexOf(n) === -1 && D.set(this.transports, n, []);
75
+ var c = this.$_getTransportIndex(l), h = this.transports[n].slice(0);
76
+ c === -1 ? h.push(l) : h[c] = l, this.transports[n] = xe(h, function(u, f) {
77
+ return u.order - f.order;
78
78
  });
79
79
  }
80
80
  }
@@ -87,19 +87,19 @@ var Bt = {}, be = {}, xe = {}, Ae = N.extend({
87
87
  else {
88
88
  var o = this.$_getTransportIndex(t);
89
89
  if (o >= 0) {
90
- var i = this.transports[r].slice(0);
91
- i.splice(o, 1), this.transports[r] = i;
90
+ var s = this.transports[r].slice(0);
91
+ s.splice(o, 1), this.transports[r] = s;
92
92
  }
93
93
  }
94
94
  },
95
95
  registerTarget: function(t, n, r) {
96
- !rt || (this.trackInstances && !r && this.targets[t] && console.warn("[portal-vue]: Target ".concat(t, " already exists")), this.$set(this.targets, t, Object.freeze([n])));
96
+ !at || (this.trackInstances && !r && this.targets[t] && console.warn("[portal-vue]: Target ".concat(t, " already exists")), this.$set(this.targets, t, Object.freeze([n])));
97
97
  },
98
98
  unregisterTarget: function(t) {
99
99
  this.$delete(this.targets, t);
100
100
  },
101
101
  registerSource: function(t, n, r) {
102
- !rt || (this.trackInstances && !r && this.sources[t] && console.warn("[portal-vue]: source ".concat(t, " already exists")), this.$set(this.sources, t, Object.freeze([n])));
102
+ !at || (this.trackInstances && !r && this.sources[t] && console.warn("[portal-vue]: source ".concat(t, " already exists")), this.$set(this.sources, t, Object.freeze([n])));
103
103
  },
104
104
  unregisterSource: function(t) {
105
105
  this.$delete(this.sources, t);
@@ -121,7 +121,7 @@ var Bt = {}, be = {}, xe = {}, Ae = N.extend({
121
121
  return -1;
122
122
  }
123
123
  }
124
- }), P = new Ae(Bt), Oe = 1, Mt = N.extend({
124
+ }), P = new Oe(Ht), $e = 1, bt = D.extend({
125
125
  name: "portal",
126
126
  props: {
127
127
  disabled: {
@@ -130,7 +130,7 @@ var Bt = {}, be = {}, xe = {}, Ae = N.extend({
130
130
  name: {
131
131
  type: String,
132
132
  default: function() {
133
- return String(Oe++);
133
+ return String($e++);
134
134
  }
135
135
  },
136
136
  order: {
@@ -197,7 +197,7 @@ var Bt = {}, be = {}, xe = {}, Ae = N.extend({
197
197
  var n = {
198
198
  from: this.name,
199
199
  to: this.to,
200
- passengers: pe(t),
200
+ passengers: he(t),
201
201
  order: this.order
202
202
  };
203
203
  P.open(n);
@@ -217,7 +217,7 @@ var Bt = {}, be = {}, xe = {}, Ae = N.extend({
217
217
  key: "v-portal-placeholder"
218
218
  });
219
219
  }
220
- }), Ht = N.extend({
220
+ }), xt = D.extend({
221
221
  name: "portalTarget",
222
222
  props: {
223
223
  multiple: {
@@ -281,7 +281,7 @@ var Bt = {}, be = {}, xe = {}, Ae = N.extend({
281
281
  return this.multiple ? t : t.length === 0 ? [] : [t[t.length - 1]];
282
282
  },
283
283
  passengers: function() {
284
- return ge(this.ownTransports, this.slotProps);
284
+ return be(this.ownTransports, this.slotProps);
285
285
  }
286
286
  },
287
287
  methods: {
@@ -304,8 +304,8 @@ var Bt = {}, be = {}, xe = {}, Ae = N.extend({
304
304
  }
305
305
  }, r);
306
306
  }
307
- }), Te = 0, $e = ["disabled", "name", "order", "slim", "slotProps", "tag", "to"], ke = ["multiple", "transition"];
308
- N.extend({
307
+ }), ke = 0, Le = ["disabled", "name", "order", "slim", "slotProps", "tag", "to"], Se = ["multiple", "transition"];
308
+ D.extend({
309
309
  name: "MountingPortal",
310
310
  inheritAttrs: !1,
311
311
  props: {
@@ -325,7 +325,7 @@ N.extend({
325
325
  name: {
326
326
  type: String,
327
327
  default: function() {
328
- return "mounted_" + String(Te++);
328
+ return "mounted_" + String(ke++);
329
329
  }
330
330
  },
331
331
  order: {
@@ -390,11 +390,11 @@ N.extend({
390
390
  var a = typeof r == "string" ? r : "DIV", o = document.createElement(a);
391
391
  t.appendChild(o), t = o;
392
392
  }
393
- var i = St(this.$props, ke);
394
- i.slim = this.targetSlim, i.tag = this.targetTag, i.slotProps = this.targetSlotProps, i.name = this.to, this.portalTarget = new Ht({
393
+ var s = wt(this.$props, Se);
394
+ s.slim = this.targetSlim, s.tag = this.targetTag, s.slotProps = this.targetSlotProps, s.name = this.to, this.portalTarget = new xt({
395
395
  el: t,
396
396
  parent: this.$parent || this,
397
- propsData: i
397
+ propsData: s
398
398
  });
399
399
  }
400
400
  },
@@ -410,8 +410,8 @@ N.extend({
410
410
  if (!this.portalTarget)
411
411
  return console.warn("[portal-vue] Target wasn't mounted"), t();
412
412
  if (!this.$scopedSlots.manual) {
413
- var n = St(this.$props, $e);
414
- return t(Mt, {
413
+ var n = wt(this.$props, Le);
414
+ return t(bt, {
415
415
  props: n,
416
416
  attrs: this.$attrs,
417
417
  on: this.$listeners,
@@ -424,11 +424,11 @@ N.extend({
424
424
  return Array.isArray(r) && (r = r[0]), r || t();
425
425
  }
426
426
  });
427
- var M = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(M || {}), yt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(yt || {}), bt = /* @__PURE__ */ ((e) => (e["01"] = "01", e["02"] = "02", e["03"] = "03", e["04"] = "04", e["05"] = "05", e["06"] = "06", e["07"] = "07", e["08"] = "08", e["09"] = "09", e))(bt || {});
428
- const A = {
427
+ var M = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(M || {}), Tt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(Tt || {}), At = /* @__PURE__ */ ((e) => (e["01"] = "01", e["02"] = "02", e["03"] = "03", e["04"] = "04", e["05"] = "05", e["06"] = "06", e["07"] = "07", e["08"] = "08", e["09"] = "09", e))(At || {});
428
+ const T = {
429
429
  HORIZONTAL: "horizontal",
430
430
  VERTICAL: "vertical"
431
- }, Se = {
431
+ }, we = {
432
432
  SINGLE: "single",
433
433
  GROUPED: "grouped",
434
434
  STACKED: "stacked"
@@ -445,7 +445,7 @@ const A = {
445
445
  bottom: 28,
446
446
  left: 24
447
447
  }
448
- }, jt = "No data", Le = 20, we = 0.33, Ce = 0.5, Ie = 1, xt = [
448
+ }, Ft = "No data", Ce = 20, Ie = 0.33, Ne = 0.5, De = 1, Ot = [
449
449
  "auto",
450
450
  "auto-start",
451
451
  "auto-end",
@@ -463,36 +463,36 @@ const A = {
463
463
  "left-end"
464
464
  ];
465
465
  var W = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(W || {});
466
- function Ne() {
466
+ function Re() {
467
467
  return process.env.NODE_ENV === "production";
468
468
  }
469
- function Ft(e) {
469
+ function jt(e) {
470
470
  return (e == null ? void 0 : e.map(
471
471
  (t) => t.values.map((n) => n == null ? void 0 : n.value).flat()
472
472
  ).flat()) || [];
473
473
  }
474
- function lt(e) {
474
+ function ut(e) {
475
475
  return e.length === 1;
476
476
  }
477
- function _t(e) {
477
+ function mt(e) {
478
478
  return !!e && typeof e == "object" && !Array.isArray(e);
479
479
  }
480
- function Gt(e, t) {
480
+ function Vt(e, t) {
481
481
  const n = structuredClone(e);
482
482
  return Object.entries(t).forEach(([r, a]) => {
483
- n[r] = _t(e[r]) && _t(a) ? Gt(e[r], a) : a;
483
+ n[r] = mt(e[r]) && mt(a) ? Vt(e[r], a) : a;
484
484
  }), n;
485
485
  }
486
- function Re(e) {
487
- return e != null && _t(e) && "value" in e;
486
+ function Pe(e) {
487
+ return e != null && mt(e) && "value" in e;
488
488
  }
489
489
  function U(e) {
490
490
  return (e == null ? void 0 : e.bandwidth) !== void 0;
491
491
  }
492
- function At(e) {
492
+ function $t(e) {
493
493
  return U(e) ? e.bandwidth() : Math.max(...e.range()) / Math.max(...e.domain());
494
494
  }
495
- const De = (e, t) => {
495
+ const Ee = (e, t) => {
496
496
  if (!e)
497
497
  throw new Error("Data is not a valid array");
498
498
  if (e.length === 0)
@@ -502,17 +502,17 @@ const De = (e, t) => {
502
502
  throw new Error("Index exceeds length of at least one of the datasets");
503
503
  });
504
504
  };
505
- function Vt(e, t) {
505
+ function Gt(e, t) {
506
506
  var n;
507
- return De(e, t), ((n = e.reduce(
507
+ return Ee(e, t), ((n = e.reduce(
508
508
  (r, a) => {
509
- var o, i, u, s;
510
- return ((i = (o = r.values[t]) == null ? void 0 : o.value) != null ? i : 0) > ((s = (u = a.values[t]) == null ? void 0 : u.value) != null ? s : 0) ? r : a;
509
+ var o, s, l, i;
510
+ return ((s = (o = r.values[t]) == null ? void 0 : o.value) != null ? s : 0) > ((i = (l = a.values[t]) == null ? void 0 : l.value) != null ? i : 0) ? r : a;
511
511
  }
512
512
  ).values[t]) == null ? void 0 : n.value) || 0;
513
513
  }
514
- function ot(e) {
515
- const t = Et(e) ? e.value : e;
514
+ function st(e) {
515
+ const t = Bt(e) ? e.value : e;
516
516
  if (!t)
517
517
  throw new Error("No empty array can be created from specified data value");
518
518
  const n = Math.max(
@@ -521,20 +521,20 @@ function ot(e) {
521
521
  );
522
522
  return Array(n).fill(null);
523
523
  }
524
- function Ee(e) {
524
+ function Be(e) {
525
525
  return U(e) ? e.domain().length : Math.max(...e.domain());
526
526
  }
527
- function Pe(e, t) {
527
+ function Me(e, t) {
528
528
  return (n) => Math.round(e * (1 - n) + t * n);
529
529
  }
530
- function E(e) {
530
+ function R(e) {
531
531
  var t;
532
532
  return typeof e == "string" || typeof e == "number" ? e : (t = e.id) != null ? t : e.label;
533
533
  }
534
534
  function zt(e, t) {
535
535
  return t.length && t.indexOf(e) === -1;
536
536
  }
537
- function Be(e, t, n) {
537
+ function He(e, t, n) {
538
538
  const r = n ? e.length - t : t, a = e.slice(0, r);
539
539
  return e.slice(r).concat(a);
540
540
  }
@@ -548,58 +548,58 @@ function q(e) {
548
548
  }
549
549
  return e;
550
550
  }
551
- const Me = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce(
551
+ const Fe = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce(
552
552
  (t, n) => t += (n &= 63) < 36 ? n.toString(36) : n < 62 ? (n - 26).toString(36).toUpperCase() : n > 62 ? "-" : "_",
553
553
  ""
554
554
  );
555
- var ut = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
556
- Learn more: https://lume.design/guidelines/datasets`, e.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", e.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", e))(ut || {});
557
- const He = "[lume] ";
558
- function Ot(e, t = !0) {
559
- t && Ne() || console.warn(He + "Warning: " + e);
555
+ var tt = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
556
+ Learn more: https://lume.design/guidelines/datasets`, e.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", e.InvalidFormat = "The string provided to format is invalid. Please refer to https://github.com/d3/d3-format for valid arguments.", e.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", e))(tt || {});
557
+ const je = "[lume] ";
558
+ function ct(e, t = !0) {
559
+ t && Re() || console.warn(je + "Warning: " + e);
560
560
  }
561
- const je = W.Categorical, Fe = M.Skyblue, Ge = yt.SkyTeal;
562
- function Ve(e) {
563
- return e === W.Divergent ? Ge : Fe;
561
+ const Ve = W.Categorical, Ge = M.Skyblue, ze = Tt.SkyTeal;
562
+ function We(e) {
563
+ return e === W.Divergent ? ze : Ge;
564
564
  }
565
- function ze(e) {
566
- return Object.values(bt).includes(e);
565
+ function Ze(e) {
566
+ return Object.values(At).includes(e);
567
567
  }
568
- function Lt(e, t) {
569
- return t === W.Divergent ? Object.values(yt).includes(e) : Object.values({ ...M, ...bt }).includes(
568
+ function Ct(e, t) {
569
+ return t === W.Divergent ? Object.values(Tt).includes(e) : Object.values({ ...M, ...At }).includes(
570
570
  e
571
571
  );
572
572
  }
573
- function We(e, t) {
573
+ function qe(e, t) {
574
574
  const n = Object.values(M).indexOf(e);
575
- return Be(Object.values(M), n)[t];
575
+ return He(Object.values(M), n)[t];
576
576
  }
577
- function Ze(e, t) {
577
+ function Xe(e, t) {
578
578
  const n = 50 + t * 10;
579
579
  return `${e}-${n}`;
580
580
  }
581
- function qe(e, t) {
581
+ function Ue(e, t) {
582
582
  const n = (t + 1) * 10;
583
583
  return `${e}-${n}`;
584
584
  }
585
- function ht(e, t, n) {
585
+ function _t(e, t, n) {
586
586
  switch (t) {
587
587
  default:
588
588
  case W.Categorical:
589
- return ze(e) ? e : We(e, n);
589
+ return Ze(e) ? e : qe(e, n);
590
590
  case W.Sequential:
591
- return Ze(e, n);
591
+ return Xe(e, n);
592
592
  case W.Divergent:
593
- return qe(e, n);
593
+ return Ue(e, n);
594
594
  }
595
595
  }
596
- function Xe(e, t, n = je, r) {
597
- return Lt(e, n) ? ht(e, n, r) : (r > 4 && (Ot(ut.ColorLoop), r = r % 5), Lt(t, n) ? ht(t, n, r) : ht(Ve(n), n, r));
596
+ function Ye(e, t, n = Ve, r) {
597
+ return Ct(e, n) ? _t(e, n, r) : (r > 4 && (ct(tt.ColorLoop), r = r % 5), Ct(t, n) ? _t(t, n, r) : _t(We(n), n, r));
598
598
  }
599
- function Ue(e) {
600
- return e.map((t) => Re(t) ? t : { value: t });
599
+ function Ke(e) {
600
+ return e.map((t) => Pe(t) ? t : { value: t });
601
601
  }
602
- function Ye(e) {
602
+ function Je(e) {
603
603
  return e.__internal === !0;
604
604
  }
605
605
  const Wt = (e = null) => ({
@@ -617,118 +617,138 @@ const Wt = (e = null) => ({
617
617
  default: M.Skyblue
618
618
  }
619
619
  });
620
- function ct(e, t, n, r, a) {
621
- const o = it({
620
+ function dt(e, t, n, r, a) {
621
+ const o = lt({
622
622
  width: 0,
623
623
  height: 0
624
- }), i = Me(12), u = f(() => {
624
+ }), s = Fe(12), l = v(() => {
625
625
  var h;
626
- return e.value.length > 5 && Ot(ut.DatasetLength), (h = e.value) == null ? void 0 : h.map(
627
- (l, v) => {
628
- if (Ye(l))
629
- return l;
630
- const p = Ue(l.values), d = Xe(
631
- l.color,
626
+ return e.value.length > 5 && ct(tt.DatasetLength), (h = e.value) == null ? void 0 : h.map(
627
+ (u, f) => {
628
+ if (Je(u))
629
+ return u;
630
+ const p = Ke(u.values), d = Ye(
631
+ u.color,
632
632
  n == null ? void 0 : n.value,
633
633
  r == null ? void 0 : r.value.colorPalette,
634
- v
634
+ f
635
635
  );
636
636
  return {
637
- ...l,
637
+ ...u,
638
638
  values: p,
639
639
  color: d,
640
640
  __internal: !0
641
641
  };
642
642
  }
643
643
  );
644
- }), s = f(() => Array.isArray(t.value) ? t.value : ot(e.value).map((h, l) => l));
644
+ }), i = v(() => Array.isArray(t.value) ? t.value : st(e.value).map((h, u) => u));
645
645
  function c(h) {
646
- const l = (a == null ? void 0 : a.value) === A.HORIZONTAL ? ot(e).length * (Le * 2) : h.height;
647
- N.set(o, "width", h.width), N.set(o, "height", l);
646
+ const u = (a == null ? void 0 : a.value) === T.HORIZONTAL ? st(e).length * (Ce * 2) : h.height;
647
+ D.set(o, "width", h.width), D.set(o, "height", u);
648
648
  }
649
649
  return {
650
- chartID: i,
651
- computedLabels: s,
650
+ chartID: s,
651
+ computedLabels: i,
652
652
  containerSize: o,
653
- internalData: u,
653
+ internalData: l,
654
654
  updateSize: c
655
655
  };
656
656
  }
657
- const dt = () => ({
657
+ const Zt = (e) => {
658
+ let t = null;
659
+ switch (typeof e) {
660
+ case "string":
661
+ try {
662
+ t = ce(e);
663
+ } catch {
664
+ ct(tt.InvalidFormat), t = null;
665
+ }
666
+ break;
667
+ case "function":
668
+ t = e;
669
+ break;
670
+ default:
671
+ t = null;
672
+ }
673
+ function n(r) {
674
+ return t ? t(r) : r;
675
+ }
676
+ return n;
677
+ }, ft = () => ({
658
678
  options: {
659
679
  type: Object,
660
680
  default: () => ({})
661
681
  }
662
682
  });
663
- function F(e, t) {
664
- return { allOptions: f(() => {
665
- const r = Et(t) ? t == null ? void 0 : t.value : t;
666
- return r ? Gt(r, e.value) : e.value;
683
+ function j(e, t) {
684
+ return { allOptions: v(() => {
685
+ const r = Bt(t) ? t == null ? void 0 : t.value : t;
686
+ return r ? Vt(r, e.value) : e.value;
667
687
  }) };
668
688
  }
669
- const Ke = 0.15;
670
- function Je(e, t, n) {
671
- const r = k(), a = f(() => Math.max(...e.value.range())), o = f(() => t.value.length);
672
- function i() {
689
+ const Qe = 0.15;
690
+ function tn(e, t, n) {
691
+ const r = $(), a = v(() => Math.max(...e.value.range())), o = v(() => t.value.length);
692
+ function s() {
673
693
  if (!t.value)
674
694
  return;
675
- const s = t.value.reduce(
676
- (h, l) => h + l.getBoundingClientRect().width,
695
+ const i = t.value.reduce(
696
+ (h, u) => h + u.getBoundingClientRect().width,
677
697
  0
678
- ), c = Math.ceil(s / o.value);
679
- r.value = c + c * Ke;
698
+ ), c = Math.ceil(i / o.value);
699
+ r.value = c + c * Qe;
680
700
  }
681
- function u(s) {
701
+ function l(i) {
682
702
  if (!t.value)
683
703
  return !0;
684
704
  const c = t.value.length;
685
- if (s === 0)
705
+ if (i === 0)
686
706
  return !0;
687
- const h = a.value / c, l = typeof n == "number" && n > 0 && n + 1 || Math.ceil(r.value / h);
688
- return s % l === 0;
707
+ const h = a.value / c, u = typeof n == "number" && n > 0 && n + 1 || Math.ceil(r.value / h);
708
+ return i % u === 0;
689
709
  }
690
- return I(t, i), { showTick: u };
710
+ return N(t, s), { showTick: l };
691
711
  }
692
- function ft(e) {
693
- e != null && e.closest("svg") || Ot(ut.NotContainedInSvg);
712
+ function pt(e) {
713
+ e != null && e.closest("svg") || ct(tt.NotContainedInSvg);
694
714
  }
695
- const Zt = {
715
+ const qt = {
696
716
  gridLines: !1,
697
717
  withTitle: !0,
698
718
  showTicks: !0,
699
719
  tickCount: 10,
700
720
  tickFormat: null,
701
721
  tickPadding: 8
702
- }, Qe = {
703
- ...Zt,
722
+ }, en = {
723
+ ...qt,
704
724
  withTitle: !1,
705
725
  skip: !0
706
- }, tn = {
707
- ...Zt,
726
+ }, nn = {
727
+ ...qt,
708
728
  gridLines: !0
709
- }, en = 12, nn = 8, rn = function(e, t, n) {
710
- const r = f(() => e.value.step() * e.value.paddingInner() / 2);
711
- function a(s) {
729
+ }, rn = 12, an = 8, on = function(e, t, n) {
730
+ const r = v(() => e.value.step() * e.value.paddingInner() / 2);
731
+ function a(i) {
712
732
  return {
713
- transform: `translate(${e.value(s) - r.value}, 0)`
733
+ transform: `translate(${e.value(i) - r.value}, 0)`
714
734
  };
715
735
  }
716
736
  function o() {
717
737
  return {
718
738
  x: -8,
719
739
  width: e.value.step() + 16,
720
- height: n.value.tickPadding + en + nn
740
+ height: n.value.tickPadding + rn + an
721
741
  };
722
742
  }
723
- function i() {
724
- const s = e.value.step() / 2;
743
+ function s() {
744
+ const i = e.value.step() / 2;
725
745
  return {
726
- x1: s,
727
- x2: s,
746
+ x1: i,
747
+ x2: i,
728
748
  y1: -t.value.height
729
749
  };
730
750
  }
731
- function u() {
751
+ function l() {
732
752
  return {
733
753
  x: e.value.step() / 2,
734
754
  y: n.value.tickPadding,
@@ -737,16 +757,16 @@ const Zt = {
737
757
  };
738
758
  }
739
759
  return {
740
- getGridLinesAttributes: i,
760
+ getGridLinesAttributes: s,
741
761
  getTickGhostAttributes: o,
742
762
  getTickGroupAttributes: a,
743
- getTickLabelAttributes: u
763
+ getTickLabelAttributes: l
744
764
  };
745
- }, an = function(e, t, n) {
746
- const r = f(() => e.value.step() * e.value.paddingInner() / 2);
747
- function a(s) {
765
+ }, sn = function(e, t, n) {
766
+ const r = v(() => e.value.step() * e.value.paddingInner() / 2);
767
+ function a(i) {
748
768
  return {
749
- transform: `translate(0, ${e.value(s) - r.value})`
769
+ transform: `translate(0, ${e.value(i) - r.value})`
750
770
  };
751
771
  }
752
772
  function o() {
@@ -756,15 +776,15 @@ const Zt = {
756
776
  height: e.value.step()
757
777
  };
758
778
  }
759
- function i() {
760
- const s = e.value.step() / 2;
779
+ function s() {
780
+ const i = e.value.step() / 2;
761
781
  return {
762
- y1: s,
763
- y2: s,
782
+ y1: i,
783
+ y2: i,
764
784
  x1: t.value.width
765
785
  };
766
786
  }
767
- function u() {
787
+ function l() {
768
788
  return {
769
789
  x: -n.value.tickPadding,
770
790
  y: e.value.step() / 2,
@@ -773,15 +793,15 @@ const Zt = {
773
793
  };
774
794
  }
775
795
  return {
776
- getGridLinesAttributes: i,
796
+ getGridLinesAttributes: s,
777
797
  getTickGhostAttributes: o,
778
798
  getTickGroupAttributes: a,
779
- getTickLabelAttributes: u
799
+ getTickLabelAttributes: l
780
800
  };
781
- }, on = function(e, t, n) {
782
- function r(u) {
801
+ }, ln = function(e, t, n) {
802
+ function r(l) {
783
803
  return {
784
- transform: `translate(${e.value(u)}, 0)`
804
+ transform: `translate(${e.value(l)}, 0)`
785
805
  };
786
806
  }
787
807
  function a() {
@@ -792,7 +812,7 @@ const Zt = {
792
812
  y1: -t.value.height
793
813
  };
794
814
  }
795
- function i() {
815
+ function s() {
796
816
  return {
797
817
  y: n.value.tickPadding,
798
818
  dy: "0.8em",
@@ -803,12 +823,12 @@ const Zt = {
803
823
  getGridLinesAttributes: o,
804
824
  getTickGhostAttributes: a,
805
825
  getTickGroupAttributes: r,
806
- getTickLabelAttributes: i
826
+ getTickLabelAttributes: s
807
827
  };
808
- }, sn = function(e, t, n) {
809
- function r(u) {
828
+ }, un = function(e, t, n) {
829
+ function r(l) {
810
830
  return {
811
- transform: `translate(0, ${e.value(u)})`
831
+ transform: `translate(0, ${e.value(l)})`
812
832
  };
813
833
  }
814
834
  function a() {
@@ -819,7 +839,7 @@ const Zt = {
819
839
  x1: t.value.width
820
840
  };
821
841
  }
822
- function i() {
842
+ function s() {
823
843
  return {
824
844
  x: -n.value.tickPadding,
825
845
  dy: "0.4em",
@@ -830,21 +850,21 @@ const Zt = {
830
850
  getGridLinesAttributes: o,
831
851
  getTickGhostAttributes: a,
832
852
  getTickGroupAttributes: r,
833
- getTickLabelAttributes: i
853
+ getTickLabelAttributes: s
834
854
  };
835
- }, ln = {
836
- "x-band-scale-axis": rn,
837
- "y-band-scale-axis": an,
838
- "x-linear-scale-axis": on,
839
- "y-linear-scale-axis": sn
840
- }, un = {
855
+ }, cn = {
856
+ "x-band-scale-axis": on,
857
+ "y-band-scale-axis": sn,
858
+ "x-linear-scale-axis": ln,
859
+ "y-linear-scale-axis": un
860
+ }, dn = {
841
861
  bandScale: "band-scale-axis",
842
862
  linearScale: "linear-scale-axis"
843
- }, cn = ["bottom", "left"], wt = {
863
+ }, fn = ["bottom", "left"], It = {
844
864
  x: "bottom",
845
865
  y: "left"
846
- }, dn = S({
847
- components: { VuePortal: Mt, VuePortalTarget: Ht },
866
+ }, pn = L({
867
+ components: { VuePortal: bt, VuePortalTarget: xt },
848
868
  props: {
849
869
  scale: {
850
870
  type: Function,
@@ -853,12 +873,12 @@ const Zt = {
853
873
  type: {
854
874
  type: String,
855
875
  default: void 0,
856
- validator: (e) => e in wt
876
+ validator: (e) => e in It
857
877
  },
858
878
  position: {
859
879
  type: String,
860
880
  default: void 0,
861
- validator: (e) => cn.includes(e)
881
+ validator: (e) => fn.includes(e)
862
882
  },
863
883
  containerSize: {
864
884
  type: Object,
@@ -870,114 +890,106 @@ const Zt = {
870
890
  },
871
891
  orientation: {
872
892
  type: String,
873
- default: A.VERTICAL
893
+ default: T.VERTICAL
874
894
  },
875
- ...dt()
895
+ ...ft()
876
896
  },
877
897
  setup(e, t) {
878
- const { scale: n, containerSize: r, hoveredIndex: a, options: o, orientation: i } = C(e), u = it({}), s = k(null), c = k(!1), h = k(null), { chartID: l } = ct(), v = f(
879
- () => e.type ? wt[e.type] : e.position
880
- ), p = f(
881
- () => e.type || (v.value === "left" ? "y" : "x")
882
- ), d = f(
883
- () => p.value === "x" && i.value === A.VERTICAL || p.value === "y" && i.value === A.HORIZONTAL
884
- ), { allOptions: _ } = F(
898
+ const { scale: n, containerSize: r, hoveredIndex: a, options: o, orientation: s } = w(e), l = lt({}), i = $(null), c = $(!1), h = $(null), { chartID: u } = dt(), f = v(
899
+ () => e.type ? It[e.type] : e.position
900
+ ), p = v(
901
+ () => e.type || (f.value === "left" ? "y" : "x")
902
+ ), d = v(
903
+ () => p.value === "x" && s.value === T.VERTICAL || p.value === "y" && s.value === T.HORIZONTAL
904
+ ), { allOptions: _ } = j(
885
905
  o,
886
- p.value === "x" ? Qe : tn
887
- ), { showTick: b } = Je(n, s, _.value.skip), m = f(
906
+ p.value === "x" ? en : nn
907
+ ), { showTick: y } = tn(n, i, _.value.skip), m = v(
888
908
  () => {
889
- var $;
890
- return `translate(0, ${p.value === "x" ? ($ = r.value) == null ? void 0 : $.height : 0})`;
909
+ var k;
910
+ return `translate(0, ${p.value === "x" ? (k = r.value) == null ? void 0 : k.height : 0})`;
891
911
  }
892
- ), g = f(() => {
912
+ ), g = v(() => {
893
913
  if (n.value.step)
894
914
  return n.value.domain();
895
- const { tickCount: $ } = _.value, [w, H] = n.value.domain();
896
- return le(w, H, $);
897
- }), y = f(() => {
898
- const { tickFormat: $ } = _.value;
899
- let w = null;
900
- switch (typeof $) {
901
- case "string":
902
- return w = ue($), w;
903
- case "function":
904
- return $;
905
- default:
906
- return null;
907
- }
915
+ const { tickCount: k } = _.value, [I, H] = n.value.domain();
916
+ return de(I, H, k);
917
+ }), b = v(() => {
918
+ const { tickFormat: k } = _.value;
919
+ return Zt(k);
908
920
  });
909
- function x($) {
910
- const { showTicks: w } = _.value;
911
- return w === !1 ? "" : y.value ? y.value($) : $;
921
+ function x(k) {
922
+ const { showTicks: I } = _.value;
923
+ return I === !1 ? "" : b.value(k);
912
924
  }
913
- function T($) {
914
- d.value && t.emit("tick-mouseover", $);
925
+ function O(k) {
926
+ d.value && t.emit("tick-mouseover", k);
915
927
  }
916
- function R($) {
917
- return _.value.withHover && d.value && a.value === $;
928
+ function E(k) {
929
+ return _.value.withHover && d.value && a.value === k;
918
930
  }
919
- function B($) {
920
- return `${l}-${p.value}-tick--${$}`;
931
+ function B(k) {
932
+ return `${u}-${p.value}-tick--${k}`;
921
933
  }
922
- function D() {
934
+ function C() {
923
935
  c.value = !0;
924
- const $ = n.value.step ? "bandScale" : "linearScale", w = ln[`${p.value}-${un[$]}`];
925
- Object.entries(w(n, r, _) || []).forEach(
926
- ([H, j]) => {
927
- u[H] = j;
936
+ const k = n.value.step ? "bandScale" : "linearScale", I = cn[`${p.value}-${dn[k]}`];
937
+ Object.entries(I(n, r, _) || []).forEach(
938
+ ([H, F]) => {
939
+ l[H] = F;
928
940
  }
929
941
  ), c.value = !1;
930
942
  }
931
- return re(async () => {
932
- D(), I(n, D, { flush: "sync" });
933
- }), G(() => ft(h.value)), {
943
+ return oe(async () => {
944
+ C(), N(n, C, { flush: "sync" });
945
+ }), V(() => pt(h.value)), {
934
946
  allOptions: _,
935
947
  axisTransform: m,
936
- chartID: l,
937
- computedPosition: v,
948
+ chartID: u,
949
+ computedPosition: f,
938
950
  computedType: p,
939
951
  formatTick: x,
940
952
  getTickId: B,
941
- isHovering: R,
953
+ isHovering: E,
942
954
  isLoading: c,
943
- mixins: u,
944
- onTickMouseover: T,
955
+ mixins: l,
956
+ onTickMouseover: O,
945
957
  root: h,
946
958
  shouldHover: d,
947
- showTick: b,
948
- tickRefs: s,
959
+ showTick: y,
960
+ tickRefs: i,
949
961
  ticks: g
950
962
  };
951
963
  }
952
964
  });
953
- function L(e, t, n, r, a, o, i, u) {
954
- var s = typeof e == "function" ? e.options : e;
955
- t && (s.render = t, s.staticRenderFns = n, s._compiled = !0), r && (s.functional = !0), o && (s._scopeId = "data-v-" + o);
965
+ function S(e, t, n, r, a, o, s, l) {
966
+ var i = typeof e == "function" ? e.options : e;
967
+ t && (i.render = t, i.staticRenderFns = n, i._compiled = !0), r && (i.functional = !0), o && (i._scopeId = "data-v-" + o);
956
968
  var c;
957
- if (i ? (c = function(v) {
958
- v = v || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !v && typeof __VUE_SSR_CONTEXT__ < "u" && (v = __VUE_SSR_CONTEXT__), a && a.call(this, v), v && v._registeredComponents && v._registeredComponents.add(i);
959
- }, s._ssrRegister = c) : a && (c = u ? function() {
969
+ if (s ? (c = function(f) {
970
+ f = f || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !f && typeof __VUE_SSR_CONTEXT__ < "u" && (f = __VUE_SSR_CONTEXT__), a && a.call(this, f), f && f._registeredComponents && f._registeredComponents.add(s);
971
+ }, i._ssrRegister = c) : a && (c = l ? function() {
960
972
  a.call(
961
973
  this,
962
- (s.functional ? this.parent : this).$root.$options.shadowRoot
974
+ (i.functional ? this.parent : this).$root.$options.shadowRoot
963
975
  );
964
976
  } : a), c)
965
- if (s.functional) {
966
- s._injectStyles = c;
967
- var h = s.render;
968
- s.render = function(p, d) {
977
+ if (i.functional) {
978
+ i._injectStyles = c;
979
+ var h = i.render;
980
+ i.render = function(p, d) {
969
981
  return c.call(d), h(p, d);
970
982
  };
971
983
  } else {
972
- var l = s.beforeCreate;
973
- s.beforeCreate = l ? [].concat(l, c) : [c];
984
+ var u = i.beforeCreate;
985
+ i.beforeCreate = u ? [].concat(u, c) : [c];
974
986
  }
975
987
  return {
976
988
  exports: e,
977
- options: s
989
+ options: i
978
990
  };
979
991
  }
980
- var fn = function() {
992
+ var vn = function() {
981
993
  var t = this, n = t._self._c;
982
994
  return t._self._setupProxy, t.scale && !t.isLoading ? n("g", { ref: "root", staticClass: "axis", attrs: { transform: t.axisTransform, "data-j-axis": "" } }, [t.computedType === "x" ? n("defs", [n("linearGradient", { attrs: { id: "lume-tick-gradient" } }, [n("stop", { attrs: { offset: "0%", "stop-color": "rgba(255,255,255,0)" } }), n("stop", { attrs: { offset: "10%", "stop-color": "var(--lume-chart-background-color)" } }), n("stop", { attrs: { offset: "90%", "stop-color": "var(--lume-chart-background-color)" } }), n("stop", { attrs: { offset: "100%", "stop-color": "rgba(255,255,255,0)" } })], 1)], 1) : t._e(), t._l(t.ticks, function(r, a) {
983
995
  return n("vue-portal", { key: r, attrs: { slim: "", disabled: !t.isHovering(a), to: `${t.chartID}-${t.computedType}-hovered-portal` } }, [n("g", t._b({ staticClass: "axis__tick", class: {
@@ -987,37 +999,37 @@ var fn = function() {
987
999
  return t.onTickMouseover(a);
988
1000
  } } }, [n("rect", t._b({ staticClass: "axis__ghost", attrs: { fill: "url(#lume-tick-gradient)" } }, "rect", t.mixins.getTickGhostAttributes(), !1)), n("text", t._b({ ref: "tickRefs", refInFor: !0, staticClass: "axis__label" }, "text", t.mixins.getTickLabelAttributes(), !1), [t._v(" " + t._s(t.formatTick(r)) + " ")])]), t.allOptions.gridLines ? n("line", t._b({ staticClass: "axis__grid-line" }, "line", t.mixins.getGridLinesAttributes(), !1)) : t._e()])]);
989
1001
  }), n("vue-portal-target", { attrs: { name: `${t.chartID}-${t.computedType}-hovered-portal`, slim: "" } })], 2) : t._e();
990
- }, pn = [], vn = /* @__PURE__ */ L(
991
- dn,
992
- fn,
1002
+ }, hn = [], _n = /* @__PURE__ */ S(
993
1003
  pn,
1004
+ vn,
1005
+ hn,
994
1006
  !1,
995
1007
  null,
996
- "8632ddd8",
1008
+ "43f07b68",
997
1009
  null,
998
1010
  null
999
1011
  );
1000
- const hn = vn.exports;
1001
- function _n() {
1002
- const e = k(), t = it({
1012
+ const mn = _n.exports;
1013
+ function gn() {
1014
+ const e = $(), t = lt({
1003
1015
  dimensions: {}
1004
1016
  }), n = new ResizeObserver((r) => {
1005
1017
  r.forEach((a) => {
1006
1018
  t.dimensions = a.contentRect;
1007
1019
  });
1008
1020
  });
1009
- return G(() => {
1021
+ return V(() => {
1010
1022
  n.observe(e.value);
1011
- }), gt(() => {
1023
+ }), yt(() => {
1012
1024
  n.unobserve(e.value);
1013
1025
  }), { resizeState: t, resizeRef: e };
1014
1026
  }
1015
- const mn = {
1027
+ const yn = {
1016
1028
  left: 0,
1017
1029
  right: 0,
1018
1030
  top: 0,
1019
1031
  bottom: 0
1020
- }, gn = S({
1032
+ }, bn = L({
1021
1033
  props: {
1022
1034
  margins: {
1023
1035
  type: Object,
@@ -1037,29 +1049,29 @@ const mn = {
1037
1049
  }
1038
1050
  },
1039
1051
  setup(e, t) {
1040
- const { margins: n, containerSize: r } = C(e), a = k(null), { resizeRef: o, resizeState: i } = _n(), u = f(() => ({
1041
- ...mn,
1052
+ const { margins: n, containerSize: r } = w(e), a = $(null), { resizeRef: o, resizeState: s } = gn(), l = v(() => ({
1053
+ ...yn,
1042
1054
  ...n.value
1043
- })), s = f(
1044
- () => r.value.height + u.value.top + u.value.bottom
1055
+ })), i = v(
1056
+ () => r.value.height + l.value.top + l.value.bottom
1045
1057
  );
1046
- return Pt(() => {
1058
+ return Mt(() => {
1047
1059
  if (!a.value)
1048
1060
  return;
1049
- const { width: c } = i.dimensions, { height: h } = a.value.getBoundingClientRect();
1061
+ const { width: c } = s.dimensions, { height: h } = a.value.getBoundingClientRect();
1050
1062
  if (!c || !h)
1051
1063
  return;
1052
- const l = c - u.value.left - u.value.right, v = h - u.value.top - u.value.bottom, p = {
1053
- width: l > 0 ? l : 0,
1054
- height: v > 0 ? v : 0,
1064
+ const u = c - l.value.left - l.value.right, f = h - l.value.top - l.value.bottom, p = {
1065
+ width: u > 0 ? u : 0,
1066
+ height: f > 0 ? f : 0,
1055
1067
  outerWidth: c,
1056
1068
  outerHeight: h
1057
1069
  };
1058
1070
  t.emit("resize", p);
1059
- }), { computedMargins: u, resizeRef: o, root: a, svgHeight: s };
1071
+ }), { computedMargins: l, resizeRef: o, root: a, svgHeight: i };
1060
1072
  }
1061
1073
  });
1062
- var yn = function() {
1074
+ var xn = function() {
1063
1075
  var t = this, n = t._self._c;
1064
1076
  return t._self._setupProxy, n("div", { ref: "resizeRef", staticClass: "lume-chart-container", class: {
1065
1077
  "lume-chart-container--minimum": !t.noMinSize
@@ -1068,17 +1080,17 @@ var yn = function() {
1068
1080
  }, attrs: { height: t.svgHeight, "data-j-chart-container__root": "" }, on: { mouseleave: function(r) {
1069
1081
  return t.$emit("mouseleave", r);
1070
1082
  } } }, [n("g", { staticClass: "lume-chart-container__group", attrs: { transform: `translate(${t.computedMargins.left}, ${t.computedMargins.top})`, "data-j-chart-container__group": "" } }, [t._t("default")], 2)]), t._t("footer"), t._t("extra")], 2);
1071
- }, bn = [], xn = /* @__PURE__ */ L(
1072
- gn,
1073
- yn,
1083
+ }, Tn = [], An = /* @__PURE__ */ S(
1074
1084
  bn,
1085
+ xn,
1086
+ Tn,
1075
1087
  !1,
1076
1088
  null,
1077
1089
  "7aa5be81",
1078
1090
  null,
1079
1091
  null
1080
1092
  );
1081
- const An = xn.exports, On = S({
1093
+ const On = An.exports, $n = L({
1082
1094
  props: {
1083
1095
  data: {
1084
1096
  type: Array,
@@ -1087,24 +1099,24 @@ const An = xn.exports, On = S({
1087
1099
  }
1088
1100
  }
1089
1101
  });
1090
- var Tn = function() {
1102
+ var kn = function() {
1091
1103
  var t = this, n = t._self._c;
1092
1104
  return t._self._setupProxy, n("div", { staticClass: "lume-chart-legend", attrs: { "data-j-chart-legend": "" } }, t._l(t.data, function(r, a) {
1093
1105
  return n("div", { key: `legend-item-${a}`, staticClass: "lume-chart-legend__item lume-typography--body", attrs: { tabindex: "0", "data-j-chart-legend__symbol-wrapper": "" }, on: { click: function(o) {
1094
1106
  return t.$emit("click", a);
1095
1107
  } } }, [n("span", { staticClass: "lume-chart-legend__symbol", class: `lume-background-color--${r.color}`, attrs: { "data-j-chart-legend__symbol": "" } }), t._v(" " + t._s(r.label) + " ")]);
1096
1108
  }), 0);
1097
- }, $n = [], kn = /* @__PURE__ */ L(
1098
- On,
1099
- Tn,
1109
+ }, Ln = [], Sn = /* @__PURE__ */ S(
1100
1110
  $n,
1111
+ kn,
1112
+ Ln,
1101
1113
  !1,
1102
1114
  null,
1103
1115
  "22aa3668",
1104
1116
  null,
1105
1117
  null
1106
1118
  );
1107
- const Sn = kn.exports, Ln = S({
1119
+ const wn = Sn.exports, Cn = L({
1108
1120
  props: {
1109
1121
  targetElement: {
1110
1122
  type: Element,
@@ -1117,7 +1129,7 @@ const Sn = kn.exports, Ln = S({
1117
1129
  position: {
1118
1130
  type: String,
1119
1131
  default: "auto",
1120
- validator: (e) => xt.includes(e)
1132
+ validator: (e) => Ot.includes(e)
1121
1133
  },
1122
1134
  fixedPositioning: {
1123
1135
  type: Boolean,
@@ -1131,17 +1143,17 @@ const Sn = kn.exports, Ln = S({
1131
1143
  type: [String, Number],
1132
1144
  default: null
1133
1145
  },
1134
- ...dt()
1146
+ ...ft()
1135
1147
  },
1136
1148
  setup(e) {
1137
- const t = k(null), { options: n } = C(e), r = k(null), { allOptions: a } = F(n), o = f(
1149
+ const t = $(null), { options: n } = w(e), r = $(null), { allOptions: a } = j(n), o = v(
1138
1150
  () => {
1139
- var v;
1140
- return (v = a.value.fixedPositioning) != null ? v : e.fixedPositioning;
1151
+ var p;
1152
+ return (p = a.value.fixedPositioning) != null ? p : e.fixedPositioning;
1141
1153
  }
1142
- ), i = f(
1154
+ ), s = v(
1143
1155
  () => o.value ? "fixed" : "absolute"
1144
- ), u = f(() => [
1156
+ ), l = v(() => [
1145
1157
  {
1146
1158
  name: "computeStyles",
1147
1159
  options: {
@@ -1153,62 +1165,70 @@ const Sn = kn.exports, Ln = S({
1153
1165
  options: { offset: [0, a.value.offset || 8] }
1154
1166
  },
1155
1167
  ...e.modifiers || []
1156
- ]), s = f(
1168
+ ]), i = v(
1157
1169
  () => a.value.showTitle !== !1 && e.title != null
1158
- );
1159
- function c() {
1160
- e.targetElement && t.value && (r.value = fe(e.targetElement, t.value, {
1170
+ ), c = v(() => Zt(a.value.valueFormat));
1171
+ function h() {
1172
+ e.targetElement && t.value && (r.value = ve(e.targetElement, t.value, {
1161
1173
  placement: e.position,
1162
- strategy: i.value,
1163
- modifiers: u.value
1174
+ strategy: s.value,
1175
+ modifiers: l.value
1164
1176
  }));
1165
1177
  }
1166
- function h() {
1178
+ function u() {
1167
1179
  r.value && r.value.destroy();
1168
1180
  }
1169
- function l() {
1181
+ function f() {
1170
1182
  !r.value || (t.value.classList.add("lume-tooltip--animated"), e.targetElement ? function() {
1171
1183
  r.value.state.elements.reference = e.targetElement, r.value.update();
1172
- }() : h());
1184
+ }() : u());
1173
1185
  }
1174
- return I(() => e.targetElement, l), G(c), gt(h), { allModifiers: u, allOptions: a, popper: r, root: t, showTitle: s, strategy: i };
1186
+ return N(() => e.targetElement, f), V(h), yt(u), {
1187
+ allModifiers: l,
1188
+ allOptions: a,
1189
+ formatValue: c,
1190
+ popper: r,
1191
+ root: t,
1192
+ showTitle: i,
1193
+ strategy: s
1194
+ };
1175
1195
  }
1176
1196
  });
1177
- var wn = function() {
1197
+ var In = function() {
1178
1198
  var t = this, n = t._self._c;
1179
1199
  return t._self._setupProxy, n("div", { ref: "root", staticClass: "lume-tooltip lume-typography--caption", attrs: { "data-j-tooltip": "" } }, [t._t("default", function() {
1180
1200
  return [t.showTitle ? n("div", { staticClass: "lume-tooltip__title", attrs: { "data-j-tooltip__title": "" } }, [t._v(" " + t._s(t.title) + " ")]) : t._e(), n("ul", { staticClass: "lume-tooltip__items" }, t._l(t.items, function(r) {
1181
- return n("li", { key: r.label, staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__item": "" } }, [n("span", { staticClass: "lume-tooltip__symbol", class: [`lume-background-color--${r.color}`], attrs: { "data-j-tooltip__item__symbol": "" } }), n("span", { attrs: { "data-j-tooltip__item__label": "" } }, [t._v(" " + t._s(r.label) + " ")]), n("strong", { staticClass: "lume-tooltip__value", attrs: { "data-j-tooltip__item__value": "" } }, [t._v(" " + t._s(r.value) + " ")])]);
1201
+ return n("li", { key: r.label, staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__item": "" } }, [n("span", { staticClass: "lume-tooltip__symbol", class: [`lume-background-color--${r.color}`], attrs: { "data-j-tooltip__item__symbol": "" } }), n("span", { attrs: { "data-j-tooltip__item__label": "" } }, [t._v(" " + t._s(r.label) + " ")]), n("strong", { staticClass: "lume-tooltip__value", attrs: { "data-j-tooltip__item__value": "" } }, [t._v(" " + t._s(t.formatValue(r.value)) + " ")])]);
1182
1202
  }), 0)];
1183
1203
  })], 2);
1184
- }, Cn = [], In = /* @__PURE__ */ L(
1185
- Ln,
1186
- wn,
1204
+ }, Nn = [], Dn = /* @__PURE__ */ S(
1187
1205
  Cn,
1206
+ In,
1207
+ Nn,
1188
1208
  !1,
1189
1209
  null,
1190
- "8b7fb1cb",
1210
+ "3fd52db5",
1191
1211
  null,
1192
1212
  null
1193
1213
  );
1194
- const Nn = In.exports;
1195
- function Rn(e, t, n, r) {
1196
- const a = f(() => n.value > 0 && n.value < 1), o = f(
1214
+ const Rn = Dn.exports;
1215
+ function Pn(e, t, n, r) {
1216
+ const a = v(() => n.value > 0 && n.value < 1), o = v(
1197
1217
  () => r.value > 0 && r.value < 1
1198
- ), i = f(
1218
+ ), s = v(
1199
1219
  () => a.value ? e.value - 0.5 : e.value
1200
- ), u = f(
1220
+ ), l = v(
1201
1221
  () => o.value ? t.value - 0.5 : t.value
1202
1222
  );
1203
- return { computedX: i, computedY: u, shouldHaveMinWidth: a, shouldHaveMinHeight: o };
1223
+ return { computedX: s, computedY: l, shouldHaveMinWidth: a, shouldHaveMinHeight: o };
1204
1224
  }
1205
- function Dn(e, t, n, r) {
1206
- const a = k(0), o = k(0), i = f(() => `${e.value + n.value / 2}px ${t.value + r.value / 2}px`);
1207
- return G(() => {
1225
+ function En(e, t, n, r) {
1226
+ const a = $(0), o = $(0), s = v(() => `${e.value + n.value / 2}px ${t.value + r.value / 2}px`);
1227
+ return V(() => {
1208
1228
  a.value = n.value, o.value = r.value;
1209
- }), I(n, (u) => a.value = u), I(r, (u) => o.value = u), { computedWidth: a, computedHeight: o, transformOrigin: i };
1229
+ }), N(n, (l) => a.value = l), N(r, (l) => o.value = l), { computedWidth: a, computedHeight: o, transformOrigin: s };
1210
1230
  }
1211
- const En = S({
1231
+ const Bn = L({
1212
1232
  props: {
1213
1233
  x: {
1214
1234
  type: Number,
@@ -1244,25 +1264,25 @@ const En = S({
1244
1264
  }
1245
1265
  },
1246
1266
  setup(e) {
1247
- const { x: t, y: n, width: r, height: a, transition: o, classList: i } = C(e), u = k(null), s = f(
1248
- () => typeof i.value == "string" ? [i.value] : i.value
1249
- ), c = f(() => o.value === "width"), h = f(
1267
+ const { x: t, y: n, width: r, height: a, transition: o, classList: s } = w(e), l = $(null), i = v(
1268
+ () => typeof s.value == "string" ? [s.value] : s.value
1269
+ ), c = v(() => o.value === "width"), h = v(
1250
1270
  () => o.value === "height"
1251
- ), l = Dn(t, n, r, a), { computedX: v, computedY: p, shouldHaveMinWidth: d, shouldHaveMinHeight: _ } = Rn(t, n, r, a), b = f(() => d.value ? 1 : (c.value ? l.computedWidth : r).value), m = f(() => _.value ? 1 : (h.value ? l.computedHeight : a).value), g = c.value || h.value ? l.transformOrigin : null;
1252
- return G(() => ft(u.value)), {
1253
- computedClasses: s,
1254
- computedWidth: b,
1271
+ ), u = En(t, n, r, a), { computedX: f, computedY: p, shouldHaveMinWidth: d, shouldHaveMinHeight: _ } = Pn(t, n, r, a), y = v(() => d.value ? 1 : (c.value ? u.computedWidth : r).value), m = v(() => _.value ? 1 : (h.value ? u.computedHeight : a).value), g = c.value || h.value ? u.transformOrigin : null;
1272
+ return V(() => pt(l.value)), {
1273
+ computedClasses: i,
1274
+ computedWidth: y,
1255
1275
  computedHeight: m,
1256
- computedX: v,
1276
+ computedX: f,
1257
1277
  computedY: p,
1258
- root: u,
1278
+ root: l,
1259
1279
  shouldTransitionWidth: c,
1260
1280
  shouldTransitionHeight: h,
1261
1281
  transformOrigin: g
1262
1282
  };
1263
1283
  }
1264
1284
  });
1265
- var Pn = function() {
1285
+ var Mn = function() {
1266
1286
  var t = this, n = t._self._c;
1267
1287
  return t._self._setupProxy, n("rect", { ref: "root", staticClass: "lume-bar", class: [
1268
1288
  {
@@ -1273,18 +1293,22 @@ var Pn = function() {
1273
1293
  },
1274
1294
  ...t.computedClasses
1275
1295
  ], style: { transformOrigin: t.transformOrigin }, attrs: { x: t.computedX, y: t.computedY, width: t.computedWidth, height: t.computedHeight, "data-j-bar": "" } });
1276
- }, Bn = [], Mn = /* @__PURE__ */ L(
1277
- En,
1278
- Pn,
1296
+ }, Hn = [], Fn = /* @__PURE__ */ S(
1279
1297
  Bn,
1298
+ Mn,
1299
+ Hn,
1280
1300
  !1,
1281
1301
  null,
1282
1302
  "43471964",
1283
1303
  null,
1284
1304
  null
1285
1305
  );
1286
- const Tt = Mn.exports, Hn = 1, jn = 2, Fn = S({
1306
+ const kt = Fn.exports, jn = 1, Vn = 2, Gn = L({
1287
1307
  props: {
1308
+ pathDefinition: {
1309
+ type: String,
1310
+ required: !0
1311
+ },
1288
1312
  color: {
1289
1313
  type: String,
1290
1314
  default: M.Skyblue
@@ -1295,11 +1319,7 @@ const Tt = Mn.exports, Hn = 1, jn = 2, Fn = S({
1295
1319
  },
1296
1320
  width: {
1297
1321
  type: Number,
1298
- default: jn
1299
- },
1300
- values: {
1301
- type: Array,
1302
- required: !0
1322
+ default: Vn
1303
1323
  },
1304
1324
  dashed: {
1305
1325
  type: Boolean,
@@ -1309,39 +1329,23 @@ const Tt = Mn.exports, Hn = 1, jn = 2, Fn = S({
1309
1329
  type: Function,
1310
1330
  required: !0
1311
1331
  },
1312
- yScale: {
1313
- type: Function,
1314
- required: !0
1315
- },
1316
1332
  transition: {
1317
1333
  type: Boolean,
1318
1334
  default: !0
1319
1335
  }
1320
1336
  },
1321
1337
  setup(e) {
1322
- const t = k(null), n = f(
1323
- () => Hn / (Ee(e.xScale) - 1)
1324
- ), r = f(() => e.index < 2 ? 0 : e.transition && (e.index - 1) * n.value), a = f(() => At(e.xScale) / 2);
1325
- function o(s, c) {
1326
- return e.xScale(
1327
- e.index + (c - 1)
1328
- );
1329
- }
1330
- function i(s, c) {
1331
- return e.xScale(
1332
- e.xScale.domain()[e.index + (c - 1)]
1333
- ) + a.value;
1334
- }
1335
- const u = f(() => ce().x(U(e.xScale) ? i : o).y((c) => e.yScale(c))(e.values));
1336
- return G(() => ft(t.value)), {
1338
+ const t = $(null), n = v(
1339
+ () => jn / (Be(e.xScale) - 1)
1340
+ ), r = v(() => e.index < 2 ? 0 : e.transition && (e.index - 1) * n.value);
1341
+ return V(() => pt(t.value)), {
1337
1342
  animationDelay: r,
1338
1343
  animationDuration: n,
1339
- pathDefinition: u,
1340
1344
  root: t
1341
1345
  };
1342
1346
  }
1343
1347
  });
1344
- var Gn = function() {
1348
+ var zn = function() {
1345
1349
  var t = this, n = t._self._c;
1346
1350
  return t._self._setupProxy, n("path", { ref: "root", staticClass: "lume-line", class: {
1347
1351
  [`lume-stroke--${t.color}`]: !0,
@@ -1351,17 +1355,17 @@ var Gn = function() {
1351
1355
  animationDelay: t.transition && t.animationDelay + "s",
1352
1356
  animationDuration: t.transition && t.animationDuration + "s"
1353
1357
  }, attrs: { d: t.pathDefinition, "stroke-width": t.width, "data-j-line": "" } });
1354
- }, Vn = [], zn = /* @__PURE__ */ L(
1355
- Fn,
1358
+ }, Wn = [], Zn = /* @__PURE__ */ S(
1356
1359
  Gn,
1357
- Vn,
1360
+ zn,
1361
+ Wn,
1358
1362
  !1,
1359
1363
  null,
1360
- "20ff656f",
1364
+ "a9d50090",
1361
1365
  null,
1362
1366
  null
1363
1367
  );
1364
- const Wn = zn.exports, Zn = 4, qn = S({
1368
+ const qn = Zn.exports, Xn = 4, Un = L({
1365
1369
  props: {
1366
1370
  color: {
1367
1371
  type: String,
@@ -1369,7 +1373,7 @@ const Wn = zn.exports, Zn = 4, qn = S({
1369
1373
  },
1370
1374
  radius: {
1371
1375
  type: Number,
1372
- default: Zn
1376
+ default: Xn
1373
1377
  },
1374
1378
  value: {
1375
1379
  type: Number,
@@ -1393,26 +1397,26 @@ const Wn = zn.exports, Zn = 4, qn = S({
1393
1397
  }
1394
1398
  },
1395
1399
  setup(e) {
1396
- const t = k(null), n = f(() => At(e.xScale) / 2), r = f(() => e.xScale.domain()), a = f(
1400
+ const t = $(null), n = v(() => $t(e.xScale) / 2), r = v(() => e.xScale.domain()), a = v(
1397
1401
  () => U(e.xScale) ? e.xScale(r.value[e.index]) + n.value : e.xScale(e.index)
1398
- ), o = f(() => e.yScale(e.value)), i = f(() => e.radius / 2);
1399
- return G(() => ft(t.value)), { cx: a, cy: o, root: t, strokeWidth: i };
1402
+ ), o = v(() => e.yScale(e.value)), s = v(() => e.radius / 2);
1403
+ return V(() => pt(t.value)), { cx: a, cy: o, root: t, strokeWidth: s };
1400
1404
  }
1401
1405
  });
1402
- var Xn = function() {
1406
+ var Yn = function() {
1403
1407
  var t = this, n = t._self._c;
1404
1408
  return t._self._setupProxy, n("circle", { ref: "root", staticClass: "lume-point", class: `lume-stroke--${t.color}`, attrs: { cx: t.cx, cy: t.cy, r: t.active ? t.radius : 0, "stroke-width": t.strokeWidth, "data-j-point": "" } });
1405
- }, Un = [], Yn = /* @__PURE__ */ L(
1406
- qn,
1407
- Xn,
1409
+ }, Kn = [], Jn = /* @__PURE__ */ S(
1408
1410
  Un,
1411
+ Yn,
1412
+ Kn,
1409
1413
  !1,
1410
1414
  null,
1411
1415
  "d65961d4",
1412
1416
  null,
1413
1417
  null
1414
1418
  );
1415
- const Kn = Yn.exports, $t = () => ({
1419
+ const Qn = Jn.exports, Lt = () => ({
1416
1420
  data: {
1417
1421
  type: Array,
1418
1422
  required: !0
@@ -1437,53 +1441,53 @@ const Kn = Yn.exports, $t = () => ({
1437
1441
  type: Object,
1438
1442
  default: () => ({})
1439
1443
  }
1440
- }), Jn = S({
1441
- components: { LumeBar: Tt },
1444
+ }), tr = L({
1445
+ components: { LumeBar: kt },
1442
1446
  props: {
1443
- ...$t(),
1447
+ ...Lt(),
1444
1448
  orientation: {
1445
1449
  type: String,
1446
- default: A.VERTICAL
1450
+ default: T.VERTICAL
1447
1451
  }
1448
1452
  },
1449
1453
  setup(e, t) {
1450
- const { data: n, orientation: r, xScale: a, yScale: o } = C(e), i = f(() => ot(n));
1451
- function u(c) {
1452
- const h = r.value === A.HORIZONTAL ? o.value : a.value, l = h.domain(), v = At(h), p = U(h) ? h(l[c]) : h(c) - v / 2;
1453
- return r.value === A.HORIZONTAL ? {
1454
+ const { data: n, orientation: r, xScale: a, yScale: o } = w(e), s = v(() => st(n));
1455
+ function l(c) {
1456
+ const h = r.value === T.HORIZONTAL ? o.value : a.value, u = h.domain(), f = $t(h), p = U(h) ? h(u[c]) : h(c) - f / 2;
1457
+ return r.value === T.HORIZONTAL ? {
1454
1458
  width: Math.max(...a.value.range()),
1455
- height: v,
1459
+ height: f,
1456
1460
  transform: `translate(0, ${p})`
1457
1461
  } : {
1458
- width: v,
1462
+ width: f,
1459
1463
  height: Math.max(...o.value.range()),
1460
1464
  transform: `translate(${p}, 0)`
1461
1465
  };
1462
1466
  }
1463
- function s(c) {
1467
+ function i(c) {
1464
1468
  t.emit("mouseover", c);
1465
1469
  }
1466
- return { getOverlayBarAttributes: u, handleMouseover: s, overlayData: i };
1470
+ return { getOverlayBarAttributes: l, handleMouseover: i, overlayData: s };
1467
1471
  }
1468
1472
  });
1469
- var Qn = function() {
1473
+ var er = function() {
1470
1474
  var t = this, n = t._self._c;
1471
1475
  return t._self._setupProxy, n("g", { staticClass: "lume-overlay-group" }, t._l(t.overlayData, function(r, a) {
1472
1476
  return n("lume-bar", t._b({ key: `overlay-${a}`, attrs: { "data-j-lume-overlay-group": a, transition: !1, "class-list": "lume-fill--transparent" }, nativeOn: { mouseover: function(o) {
1473
1477
  return t.handleMouseover(a);
1474
1478
  } } }, "lume-bar", t.getOverlayBarAttributes(a), !1));
1475
1479
  }), 1);
1476
- }, tr = [], er = /* @__PURE__ */ L(
1477
- Jn,
1478
- Qn,
1480
+ }, nr = [], rr = /* @__PURE__ */ S(
1479
1481
  tr,
1482
+ er,
1483
+ nr,
1480
1484
  !1,
1481
1485
  null,
1482
1486
  null,
1483
1487
  null,
1484
1488
  null
1485
1489
  );
1486
- const nr = er.exports, rr = () => ({
1490
+ const ar = rr.exports, or = () => ({
1487
1491
  xScale: {
1488
1492
  type: Function,
1489
1493
  default: null
@@ -1493,56 +1497,56 @@ const nr = er.exports, rr = () => ({
1493
1497
  default: null
1494
1498
  }
1495
1499
  });
1496
- function ar(e, t, n, r, a) {
1497
- const o = k(null), i = k(null);
1498
- function u() {
1499
- const { width: s, height: c } = n;
1500
- !s && !c || !t.value || !e.value || (r.value === A.HORIZONTAL ? (o.value = It(
1500
+ function sr(e, t, n, r, a) {
1501
+ const o = $(null), s = $(null);
1502
+ function l() {
1503
+ const { width: i, height: c } = n;
1504
+ !i && !c || !t.value || !e.value || (r.value === T.HORIZONTAL ? (o.value = Dt(
1501
1505
  e.value,
1502
- s,
1506
+ i,
1503
1507
  r.value,
1504
1508
  a.value.startOnZero
1505
- ), i.value = Ct(t.value, c)) : (o.value = Ct(t.value, s), i.value = It(
1509
+ ), s.value = Nt(t.value, c)) : (o.value = Nt(t.value, i), s.value = Dt(
1506
1510
  e.value,
1507
1511
  c,
1508
1512
  r.value,
1509
1513
  a.value.startOnZero
1510
1514
  )));
1511
1515
  }
1512
- return Pt(u), { xScale: o, yScale: i };
1516
+ return Mt(l), { xScale: o, yScale: s };
1513
1517
  }
1514
- function Ct(e, t) {
1518
+ function Nt(e, t) {
1515
1519
  const n = [0, t];
1516
1520
  return J().range(n).domain(e);
1517
1521
  }
1518
- function It(e, t, n, r) {
1519
- const a = Ft(e).filter((h) => h != null), o = [0, t];
1522
+ function Dt(e, t, n, r) {
1523
+ const a = jt(e).filter((h) => h != null), o = [0, t];
1520
1524
  if (a.length === 0)
1521
1525
  return Q().range(o).domain([0, 0]).nice();
1522
- const i = Math.min(...a), u = r && i > 0 ? 0 : i, s = Math.max(...a), c = n === A.HORIZONTAL ? [u, s] : [s, u];
1526
+ const s = Math.min(...a), l = r && s > 0 ? 0 : s, i = Math.max(...a), c = n === T.HORIZONTAL ? [l, i] : [i, l];
1523
1527
  return Q().range(o).domain(c).nice();
1524
1528
  }
1525
- function Nt(e) {
1529
+ function Rt(e) {
1526
1530
  return (e == null ? void 0 : e.range) !== void 0 || (e == null ? void 0 : e.copy) !== void 0;
1527
1531
  }
1528
- function mt(e, t) {
1532
+ function gt(e, t) {
1529
1533
  return U(e) ? e.bandwidth() / 2 + e(e.domain()[t]) : e(t);
1530
1534
  }
1531
- function st(e, t, {
1535
+ function it(e, t, {
1532
1536
  padding: n,
1533
1537
  paddingInner: r,
1534
1538
  paddingOuter: a
1535
1539
  } = {}) {
1536
- const o = n != null ? n : t === A.HORIZONTAL ? Ce : we;
1540
+ const o = n != null ? n : t === T.HORIZONTAL ? Ne : Ie;
1537
1541
  return e.copy().paddingInner(r != null ? r : o).paddingOuter(a != null ? a : o / 2);
1538
1542
  }
1539
- function or(e) {
1540
- return Object.values(A).includes(e);
1543
+ function ir(e) {
1544
+ return Object.values(T).includes(e);
1541
1545
  }
1542
- const V = (e, t = !0, n = !0) => ({
1546
+ const G = (e, t = !0, n = !0) => ({
1543
1547
  ...Wt(e),
1544
- ...n ? rr() : {},
1545
- ...dt(),
1548
+ ...n ? or() : {},
1549
+ ...ft(),
1546
1550
  title: {
1547
1551
  type: String,
1548
1552
  default: null
@@ -1550,8 +1554,8 @@ const V = (e, t = !0, n = !0) => ({
1550
1554
  ...t ? {
1551
1555
  orientation: {
1552
1556
  type: String,
1553
- default: A.VERTICAL,
1554
- validator: or
1557
+ default: T.VERTICAL,
1558
+ validator: ir
1555
1559
  }
1556
1560
  } : {},
1557
1561
  classList: {
@@ -1559,212 +1563,207 @@ const V = (e, t = !0, n = !0) => ({
1559
1563
  default: () => []
1560
1564
  }
1561
1565
  });
1562
- function sr(e) {
1563
- return { hasNegativeValues: f(
1564
- () => Ft(e.value).some((n) => n < 0)
1566
+ function lr(e) {
1567
+ return { hasNegativeValues: v(
1568
+ () => jt(e.value).some((n) => n < 0)
1565
1569
  ) };
1566
1570
  }
1567
- function ir(e, t, n, r) {
1568
- const a = f(
1569
- () => r.value === A.HORIZONTAL
1570
- ), o = f(
1571
+ function ur(e, t, n, r) {
1572
+ const a = v(
1573
+ () => r.value === T.HORIZONTAL
1574
+ ), o = v(
1571
1575
  () => {
1572
1576
  var c;
1573
1577
  return e.height - (a != null && a.value ? 0 : ((c = n.value) == null ? void 0 : c.call(n, 0)) || 0);
1574
1578
  }
1575
- ), i = f(
1579
+ ), s = v(
1576
1580
  () => {
1577
1581
  var c;
1578
1582
  return a != null && a.value ? ((c = t.value) == null ? void 0 : c.call(t, 0)) || 0 : e.width;
1579
1583
  }
1580
- ), u = f(
1584
+ ), l = v(
1581
1585
  () => {
1582
1586
  var c;
1583
1587
  return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((c = n.value) == null ? void 0 : c.call(n, 0)) || 0})`;
1584
1588
  }
1585
1589
  );
1586
- return { negativeBarAttributes: f(() => ({
1587
- width: i.value,
1590
+ return { negativeBarAttributes: v(() => ({
1591
+ width: s.value,
1588
1592
  height: o.value,
1589
- transform: u.value
1593
+ transform: l.value
1590
1594
  })) };
1591
1595
  }
1592
- function lr(e, t) {
1596
+ function cr(e, t) {
1593
1597
  return e.reduce((n, r) => {
1594
1598
  var o;
1595
1599
  const a = (o = r.values[t]) == null ? void 0 : o.value;
1596
1600
  return a > 0 && (n += a), n;
1597
1601
  }, 0);
1598
1602
  }
1599
- const Rt = {
1600
- "stacked-bar": lr
1603
+ const Pt = {
1604
+ "stacked-bar": cr
1601
1605
  };
1602
- function ur(e, t, n, r, a) {
1603
- const o = f(() => (u) => {
1604
- var l;
1605
- let s = a.value && Rt[a.value] ? Rt[a.value](e.value, u) : Vt(e.value, u);
1606
- ((l = a == null ? void 0 : a.value) == null ? void 0 : l.includes("bar")) && s < 0 && (s = 0);
1607
- const c = r.value === A.HORIZONTAL ? t.value(s) : mt(t.value, u), h = r.value === A.HORIZONTAL ? mt(n.value, u) : n.value(s);
1606
+ function dr(e, t, n, r, a) {
1607
+ const o = v(() => (l) => {
1608
+ var u;
1609
+ let i = a.value && Pt[a.value] ? Pt[a.value](e.value, l) : Gt(e.value, l);
1610
+ ((u = a == null ? void 0 : a.value) == null ? void 0 : u.includes("bar")) && i < 0 && (i = 0);
1611
+ const c = r.value === T.HORIZONTAL ? t.value(i) : gt(t.value, l), h = r.value === T.HORIZONTAL ? gt(n.value, l) : n.value(i);
1608
1612
  return {
1609
1613
  cx: c,
1610
1614
  cy: h
1611
1615
  };
1612
1616
  });
1613
- function i(u) {
1614
- return e.value.map(({ color: s, label: c, values: h }) => {
1615
- var l, v, p, d, _;
1617
+ function s(l) {
1618
+ return e.value.map(({ color: i, label: c, values: h }) => {
1619
+ var u, f, p, d, _;
1616
1620
  return {
1617
- color: ((l = h[u]) == null ? void 0 : l.color) || s,
1621
+ color: ((u = h[l]) == null ? void 0 : u.color) || i,
1618
1622
  label: c,
1619
- value: (_ = (d = (v = h[u]) == null ? void 0 : v.label) != null ? d : (p = h[u]) == null ? void 0 : p.value) != null ? _ : jt
1623
+ value: (_ = (d = (f = h[l]) == null ? void 0 : f.label) != null ? d : (p = h[l]) == null ? void 0 : p.value) != null ? _ : Ft
1620
1624
  };
1621
1625
  });
1622
1626
  }
1623
- return { getTooltipAnchorAttributes: o, getTooltipItems: i };
1627
+ return { getTooltipAnchorAttributes: o, getTooltipItems: s };
1624
1628
  }
1625
- function cr() {
1626
- const e = it({
1629
+ function fr() {
1630
+ const e = lt({
1627
1631
  opened: !1,
1628
1632
  targetElement: null
1629
1633
  });
1630
1634
  return { tooltipConfig: e, showTooltip: (r) => {
1631
- N.set(e, "opened", !0), N.set(e, "targetElement", r);
1635
+ D.set(e, "opened", !0), D.set(e, "targetElement", r);
1632
1636
  }, hideTooltip: () => {
1633
- N.set(e, "opened", !1), N.set(e, "targetElement", null);
1637
+ D.set(e, "opened", !1), D.set(e, "targetElement", null);
1634
1638
  } };
1635
1639
  }
1636
- const dr = S({
1640
+ const pr = L({
1637
1641
  components: {
1638
- LumeAxis: hn,
1639
- LumeBar: Tt,
1640
- LumeChartContainer: An,
1641
- LumeChartLegend: Sn,
1642
- LumeOverlayGroup: nr,
1643
- LumeTooltip: Nn
1642
+ LumeAxis: mn,
1643
+ LumeBar: kt,
1644
+ LumeChartContainer: On,
1645
+ LumeChartLegend: wn,
1646
+ LumeOverlayGroup: ar,
1647
+ LumeTooltip: Rn,
1648
+ VuePortal: bt,
1649
+ VuePortalTarget: xt
1644
1650
  },
1645
1651
  props: {
1646
- ...V(),
1652
+ ...G(),
1647
1653
  chartType: {
1648
1654
  type: String,
1649
1655
  default: null
1650
1656
  }
1651
1657
  },
1652
1658
  setup(e, t) {
1653
- const { data: n, labels: r, color: a, options: o, orientation: i, chartType: u } = C(e), s = k(-1), c = k(null), h = k(null), { allOptions: l } = F(o), { internalData: v, computedLabels: p, containerSize: d, updateSize: _ } = ct(
1654
- n,
1655
- r,
1656
- a,
1657
- l,
1658
- i
1659
- ), { xScale: b, yScale: m } = ar(
1660
- v,
1659
+ const { data: n, labels: r, color: a, options: o, orientation: s, chartType: l } = w(e), i = $(-1), c = $(null), h = $(null), { allOptions: u } = j(o), { internalData: f, computedLabels: p, containerSize: d, updateSize: _, chartID: y } = dt(n, r, a, u, s), { xScale: m, yScale: g } = sr(
1660
+ f,
1661
1661
  p,
1662
1662
  d,
1663
- i,
1664
- l
1665
- ), g = f(() => {
1666
- var O;
1667
- return e.xScale ? Nt(e.xScale) ? e.xScale : (O = e.xScale) == null ? void 0 : O.call(e, v.value, r.value, d) : b.value;
1668
- }), y = f(() => {
1669
- var O;
1670
- return e.yScale ? Nt(e.yScale) ? e.yScale : (O = e.yScale) == null ? void 0 : O.call(e, v.value, r.value, d) : m.value;
1671
- }), x = f(() => ({
1672
- ...l.value.xAxisOptions,
1673
- withHover: i.value === A.VERTICAL
1674
- })), T = f(() => ({
1675
- ...l.value.yAxisOptions,
1676
- withHover: i.value === A.HORIZONTAL
1677
- })), R = f(() => {
1678
- var O;
1679
- return (O = l.value.xAxisOptions) == null ? void 0 : O.title;
1680
- }), B = f(() => {
1681
- var O;
1682
- return (O = l.value.yAxisOptions) == null ? void 0 : O.title;
1683
- }), D = f(() => {
1684
- var O;
1685
- return ((O = l.value.xAxisOptions) == null ? void 0 : O.withTitle) !== !1 && R.value;
1686
- }), $ = f(() => {
1687
- var O;
1688
- return ((O = l.value.yAxisOptions) == null ? void 0 : O.withTitle) !== !1 && B.value;
1689
- }), w = f(
1663
+ s,
1664
+ u
1665
+ ), b = v(() => {
1666
+ var A;
1667
+ return e.xScale ? Rt(e.xScale) ? e.xScale : (A = e.xScale) == null ? void 0 : A.call(e, f.value, r.value, d) : m.value;
1668
+ }), x = v(() => {
1669
+ var A;
1670
+ return e.yScale ? Rt(e.yScale) ? e.yScale : (A = e.yScale) == null ? void 0 : A.call(e, f.value, r.value, d) : g.value;
1671
+ }), O = v(() => ({
1672
+ ...u.value.xAxisOptions,
1673
+ withHover: s.value === T.VERTICAL
1674
+ })), E = v(() => ({
1675
+ ...u.value.yAxisOptions,
1676
+ withHover: s.value === T.HORIZONTAL
1677
+ })), B = v(() => {
1678
+ var A;
1679
+ return (A = u.value.xAxisOptions) == null ? void 0 : A.title;
1680
+ }), C = v(() => {
1681
+ var A;
1682
+ return (A = u.value.yAxisOptions) == null ? void 0 : A.title;
1683
+ }), k = v(() => {
1684
+ var A;
1685
+ return ((A = u.value.xAxisOptions) == null ? void 0 : A.withTitle) !== !1 && B.value;
1686
+ }), I = v(() => {
1687
+ var A;
1688
+ return ((A = u.value.yAxisOptions) == null ? void 0 : A.withTitle) !== !1 && C.value;
1689
+ }), H = v(
1690
1690
  () => {
1691
- var O;
1692
- return l.value.withTooltip !== !1 && !((O = l.value.tooltipOptions) != null && O.targetElement);
1691
+ var A;
1692
+ return u.value.withTooltip !== !1 && !((A = u.value.tooltipOptions) != null && A.targetElement);
1693
1693
  }
1694
- ), H = f(() => {
1695
- const O = [], { noBaseScales: X } = l.value;
1696
- return X || O.push(() => !!(g.value && y.value)), O.every((nt) => nt() === !0);
1697
- }), { hasNegativeValues: j } = sr(v), { negativeBarAttributes: tt } = ir(
1694
+ ), F = v(() => {
1695
+ const A = [], { noBaseScales: X } = u.value;
1696
+ return X || A.push(() => !!(b.value && x.value)), A.every((rt) => rt() === !0);
1697
+ }), { hasNegativeValues: et } = lr(f), { negativeBarAttributes: nt } = ur(
1698
1698
  d,
1699
- g,
1700
- y,
1701
- i
1702
- ), { tooltipConfig: et, showTooltip: z, hideTooltip: pt } = cr(), { getTooltipAnchorAttributes: Jt, getTooltipItems: Qt } = ur(
1703
- v,
1704
- g,
1705
- y,
1706
- i,
1707
- u
1708
- ), te = f(
1699
+ b,
1700
+ x,
1701
+ s
1702
+ ), { tooltipConfig: z, showTooltip: vt, hideTooltip: Qt } = fr(), { getTooltipAnchorAttributes: te, getTooltipItems: ee } = dr(
1703
+ f,
1704
+ b,
1705
+ x,
1706
+ s,
1707
+ l
1708
+ ), ne = v(
1709
1709
  () => {
1710
- var O;
1711
- return ((O = l.value.tooltipOptions) == null ? void 0 : O.position) || "top";
1710
+ var A;
1711
+ return ((A = u.value.tooltipOptions) == null ? void 0 : A.position) || "top";
1712
1712
  }
1713
1713
  );
1714
- function ee(O) {
1715
- var nt;
1716
- l.value.withHover !== !1 && (s.value = O);
1717
- const X = (nt = l.value.tooltipOptions) != null && nt.targetElement ? l.value.tooltipOptions.targetElement === "self" ? h.value.$el : l.value.tooltipOptions.targetElement : c.value[O];
1718
- l.value.withTooltip !== !1 && z(X);
1714
+ function re(A) {
1715
+ var rt;
1716
+ u.value.withHover !== !1 && (i.value = A);
1717
+ const X = (rt = u.value.tooltipOptions) != null && rt.targetElement ? u.value.tooltipOptions.targetElement === "self" ? h.value.$el : u.value.tooltipOptions.targetElement : c.value[A];
1718
+ u.value.withTooltip !== !1 && vt(X);
1719
1719
  }
1720
- function ne() {
1721
- pt(), s.value = -1;
1720
+ function ae() {
1721
+ Qt(), i.value = -1;
1722
1722
  }
1723
- return G(() => {
1724
- var O, X;
1725
- (X = (O = t.slots).groups) != null && X.call(O) || console.error('"groups" `<slot>` must have content.');
1723
+ return V(() => {
1724
+ var A, X;
1725
+ (X = (A = t.slots).groups) != null && X.call(A) || console.error('"groups" `<slot>` must have content.');
1726
1726
  }), {
1727
- allOptions: l,
1728
- internalData: v,
1727
+ allOptions: u,
1728
+ internalData: f,
1729
1729
  chartContainer: h,
1730
1730
  computedLabels: p,
1731
- computedXAxisOptions: x,
1732
- computedXScale: g,
1733
- computedYAxisOptions: T,
1734
- computedYScale: y,
1731
+ computedXAxisOptions: O,
1732
+ computedXScale: b,
1733
+ computedYAxisOptions: E,
1734
+ computedYScale: x,
1735
1735
  containerSize: d,
1736
- getEmptyArrayFromData: ot,
1737
- getTooltipAnchorAttributes: Jt,
1738
- getTooltipItems: Qt,
1739
- handleMouseleave: ne,
1740
- hasNegativeValues: j,
1741
- hoveredIndex: s,
1742
- isReady: H,
1743
- mouseOverHandler: ee,
1744
- negativeBarAttributes: tt,
1745
- shouldGenerateTooltipAnchors: w,
1746
- showXAxisTitle: D,
1747
- showYAxisTitle: $,
1736
+ getEmptyArrayFromData: st,
1737
+ getTooltipAnchorAttributes: te,
1738
+ getTooltipItems: ee,
1739
+ handleMouseleave: ae,
1740
+ hasNegativeValues: et,
1741
+ hoveredIndex: i,
1742
+ isReady: F,
1743
+ mouseOverHandler: re,
1744
+ negativeBarAttributes: nt,
1745
+ shouldGenerateTooltipAnchors: H,
1746
+ showXAxisTitle: k,
1747
+ showYAxisTitle: I,
1748
1748
  tooltipAnchor: c,
1749
- tooltipAnchorRadius: Ie,
1750
- tooltipConfig: et,
1751
- tooltipPosition: te,
1749
+ tooltipAnchorRadius: De,
1750
+ tooltipConfig: z,
1751
+ tooltipPosition: ne,
1752
1752
  updateSize: _,
1753
- xAxisTitle: R,
1754
- yAxisTitle: B
1753
+ xAxisTitle: B,
1754
+ yAxisTitle: C,
1755
+ chartID: y
1755
1756
  };
1756
1757
  }
1757
1758
  });
1758
- var fr = function() {
1759
+ var vr = function() {
1759
1760
  var t = this, n = t._self._c;
1760
1761
  return t._self._setupProxy, n("lume-chart-container", { ref: "chartContainer", attrs: { margins: t.allOptions.margins, "container-size": t.containerSize, "no-min-size": t.allOptions.noMinSize, "transparent-background": t.allOptions.transparentBackground, "data-j-lume-chart": "" }, on: { resize: t.updateSize, mouseleave: t.handleMouseleave }, scopedSlots: t._u([{ key: "header", fn: function() {
1761
- return [n("div", { staticClass: "lume-chart__header" }, [n("div", { staticClass: "lume-chart__header-section" }, [t.title ? n("h1", { staticClass: "lume-chart__title lume-chart-title lume-typography--display" }, [t._v(" " + t._s(t.title) + " ")]) : t._e(), n("div", { staticClass: "lume-chart__controls" }, [t._t("controls")], 2)]), n("div", { staticClass: "lume-chart__header-section" }, [t.showYAxisTitle ? n("h3", { staticClass: "lume-chart__axis-title lume-axis-title lume-typography--body" }, [t._v(" " + t._s(t.yAxisTitle) + " ")]) : t._e(), t.allOptions.withLegend !== !1 && t.allOptions.legendPosition !== "bottom" ? n("lume-chart-legend", { staticClass: "lume-chart__legend", attrs: { data: t.internalData, "data-j-lume-chart__legend": "" }, on: { click: function(r) {
1762
+ return [n("div", { staticClass: "lume-chart__header" }, [n("div", { staticClass: "lume-chart__header-section" }, [t.title ? n("h1", { staticClass: "lume-chart__title lume-chart-title lume-typography--display" }, [t._v(" " + t._s(t.title) + " ")]) : t._e(), n("div", { staticClass: "lume-chart__controls" }, [t._t("controls")], 2)]), n("div", { staticClass: "lume-chart__header-section" }, [t.showYAxisTitle ? n("h3", { staticClass: "lume-chart__axis-title lume-axis-title lume-typography--body" }, [t._v(" " + t._s(t.yAxisTitle) + " ")]) : t._e(), t.allOptions.withLegend !== !1 ? n("vue-portal", { attrs: { disabled: t.allOptions.legendPosition !== "bottom", to: `legend-bottom-${t.chartID}`, slim: "" } }, [n("lume-chart-legend", { staticClass: "lume-chart__legend", attrs: { data: t.internalData, "data-j-lume-chart__legend": "" }, on: { click: function(r) {
1762
1763
  return t.$emit("click", r);
1763
- } } }) : t._e()], 1)])];
1764
+ } } })], 1) : t._e()], 1)])];
1764
1765
  }, proxy: !0 }, { key: "footer", fn: function() {
1765
- return [t.showXAxisTitle ? n("h3", { staticClass: "lume-chart__axis-title lume-chart__axis-title--centered lume-axis-title" }, [t._v(" " + t._s(t.xAxisTitle) + " ")]) : t._e(), t.allOptions.withLegend !== !1 && t.allOptions.legendPosition === "bottom" ? n("lume-chart-legend", { staticClass: "lume-chart__legend lume-chart__legend--bottom", attrs: { data: t.internalData }, on: { click: function(r) {
1766
- return t.$emit("click", r);
1767
- } } }) : t._e()];
1766
+ return [t.showXAxisTitle ? n("h3", { staticClass: "lume-chart__axis-title lume-chart__axis-title--centered lume-axis-title" }, [t._v(" " + t._s(t.xAxisTitle) + " ")]) : t._e(), n("vue-portal-target", { attrs: { name: `legend-bottom-${t.chartID}`, slim: "" } })];
1768
1767
  }, proxy: !0 }, { key: "extra", fn: function() {
1769
1768
  return [t._t("tooltip", function() {
1770
1769
  return [t.allOptions.withTooltip !== !1 && t.tooltipConfig.opened ? n("lume-tooltip", t._b({ attrs: { position: t.tooltipPosition, title: t.computedLabels[t.hoveredIndex], items: t.getTooltipItems(t.hoveredIndex), options: t.allOptions.tooltipOptions, "data-j-lume-chart__tooltip": "" } }, "lume-tooltip", t.tooltipConfig, !1), [t._t("tooltip-content", null, { data: t.internalData, labels: t.computedLabels, hoveredIndex: t.hoveredIndex })], 2) : t._e()];
@@ -1778,17 +1777,17 @@ var fr = function() {
1778
1777
  }, { xScale: t.computedXScale, yScale: t.computedYScale, containerSize: t.containerSize, options: t.allOptions, hoveredIndex: t.hoveredIndex }) : t._e(), t._t("groups", null, { data: t.internalData, labels: t.computedLabels, options: t.allOptions, orientation: t.orientation, xScale: t.computedXScale, yScale: t.computedYScale, hoveredIndex: t.hoveredIndex, containerSize: t.containerSize, transition: t.allOptions.withTransition !== !1, classList: t.classList }), t.allOptions.withHover !== !1 ? n("lume-overlay-group", { attrs: { data: t.internalData, orientation: t.orientation, "x-scale": t.computedXScale, "y-scale": t.computedYScale, "data-j-lume-chart__overlay-group": "" }, on: { mouseover: t.mouseOverHandler } }) : t._e(), t.shouldGenerateTooltipAnchors ? n("g", t._l(t.getEmptyArrayFromData(t.internalData), function(r, a) {
1779
1778
  return n("circle", t._b({ key: `anchor-${a}`, ref: "tooltipAnchor", refInFor: !0, staticClass: "lume-fill--transparent", attrs: { r: t.tooltipAnchorRadius } }, "circle", t.getTooltipAnchorAttributes(a), !1));
1780
1779
  }), 0) : t._e()] : t._e()], 2);
1781
- }, pr = [], vr = /* @__PURE__ */ L(
1782
- dr,
1783
- fr,
1780
+ }, hr = [], _r = /* @__PURE__ */ S(
1784
1781
  pr,
1782
+ vr,
1783
+ hr,
1785
1784
  !1,
1786
1785
  null,
1787
- "fc14c0e8",
1786
+ "5119f57e",
1788
1787
  null,
1789
1788
  null
1790
1789
  );
1791
- const Y = vr.exports, hr = 8, _r = S({
1790
+ const Y = _r.exports, mr = 8, gr = L({
1792
1791
  props: {
1793
1792
  linkPaths: {
1794
1793
  type: Array,
@@ -1808,8 +1807,8 @@ const Y = vr.exports, hr = 8, _r = S({
1808
1807
  }
1809
1808
  },
1810
1809
  setup(e) {
1811
- const { highlightedLinkIds: t, isGhost: n } = C(e), r = f(
1812
- () => n.value ? hr : 0
1810
+ const { highlightedLinkIds: t, isGhost: n } = w(e), r = v(
1811
+ () => n.value ? mr : 0
1813
1812
  );
1814
1813
  function a(o) {
1815
1814
  return {
@@ -1825,7 +1824,7 @@ const Y = vr.exports, hr = 8, _r = S({
1825
1824
  return { getClasses: a, ghostStrokeWidthOffset: r };
1826
1825
  }
1827
1826
  });
1828
- var mr = function() {
1827
+ var yr = function() {
1829
1828
  var t = this, n = t._self._c;
1830
1829
  return t._self._setupProxy, n("g", { staticClass: "lume-alluvial-path-group" }, t._l(t.linkPaths, function(r) {
1831
1830
  return n("path", { key: `link_${r.id}`, staticClass: "lume-alluvial-path-group__link", class: t.getClasses(r), attrs: { id: t.isGhost ? `${r.id}__ghost` : r.id, d: r.d, "stroke-dasharray": t.containerWidth, "stroke-dashoffset": t.containerWidth, "stroke-width": r.strokeWidth + t.ghostStrokeWidthOffset, "data-j-alluvial-path__path": "" }, on: { mouseover: function(a) {
@@ -1834,23 +1833,23 @@ var mr = function() {
1834
1833
  return t.$emit("mouseout");
1835
1834
  } } });
1836
1835
  }), 0);
1837
- }, gr = [], yr = /* @__PURE__ */ L(
1838
- _r,
1839
- mr,
1836
+ }, br = [], xr = /* @__PURE__ */ S(
1840
1837
  gr,
1838
+ yr,
1839
+ br,
1841
1840
  !1,
1842
1841
  null,
1843
1842
  "ce6a9b03",
1844
1843
  null,
1845
1844
  null
1846
1845
  );
1847
- const br = yr.exports, qt = "03", K = 8, xr = 200;
1848
- function Ar(e, t, n) {
1846
+ const Tr = xr.exports, Xt = "03", K = 8, Ar = 200;
1847
+ function Or(e, t, n) {
1849
1848
  let r = !1;
1850
- gt(() => {
1849
+ yt(() => {
1851
1850
  r = !0;
1852
1851
  });
1853
- const a = f(() => Math.max(...n.value.nodes.map(({ depth: p }) => p))), o = f(() => {
1852
+ const a = v(() => Math.max(...n.value.nodes.map(({ depth: p }) => p))), o = v(() => {
1854
1853
  if (e.value.highlightedLink === null && e.value.highlightedNode === null)
1855
1854
  return {};
1856
1855
  if (t.value.getHighlightedElements)
@@ -1867,7 +1866,7 @@ function Ar(e, t, n) {
1867
1866
  return {
1868
1867
  links: p,
1869
1868
  nodes: new Map(
1870
- p.reduce((d, { source: _, target: b, value: m }) => _ === e.value.highlightedNode ? [...d, [E(b), m]] : [...d, [E(_), m]], [])
1869
+ p.reduce((d, { source: _, target: y, value: m }) => _ === e.value.highlightedNode ? [...d, [R(y), m]] : [...d, [R(_), m]], [])
1871
1870
  )
1872
1871
  };
1873
1872
  }
@@ -1875,67 +1874,67 @@ function Ar(e, t, n) {
1875
1874
  links: [e.value.highlightedLink],
1876
1875
  nodes: /* @__PURE__ */ new Map([
1877
1876
  [
1878
- E(e.value.highlightedLink.target),
1877
+ R(e.value.highlightedLink.target),
1879
1878
  e.value.highlightedLink.value
1880
1879
  ]
1881
1880
  ])
1882
1881
  };
1883
1882
  });
1884
- function i(p) {
1883
+ function s(p) {
1885
1884
  return typeof p == "string" || typeof p == "number" ? p : p == null ? void 0 : p.id;
1886
1885
  }
1887
- function u(p = n.value.links) {
1886
+ function l(p = n.value.links) {
1888
1887
  const d = p.map(
1889
- (b) => `link_${i(b.source)}:${i(b.target)}`
1888
+ (y) => `link_${s(y.source)}:${s(y.target)}`
1890
1889
  );
1891
1890
  return { nodeIds: p.reduce(
1892
- (b, { source: m, target: g }) => [
1893
- ...b,
1894
- `node-block-${i(m)}`,
1895
- `node-block-${i(g)}`
1891
+ (y, { source: m, target: g }) => [
1892
+ ...y,
1893
+ `node-block-${s(m)}`,
1894
+ `node-block-${s(g)}`
1896
1895
  ],
1897
1896
  []
1898
1897
  ), linkIds: d };
1899
1898
  }
1900
- function s(p, d, _) {
1901
- const b = Date.now(), m = e.value.nodeBlocks.find(
1899
+ function i(p, d, _) {
1900
+ const y = Date.now(), m = e.value.nodeBlocks.find(
1902
1901
  (x) => x.id === `node-block-${p}`
1903
- ), g = Pe(d, _), y = () => {
1902
+ ), g = Me(d, _), b = () => {
1904
1903
  if (r)
1905
1904
  return;
1906
- let T = (Date.now() - b) / xr;
1907
- T > 1 && (T = 1), N.set(m.node, "transitionValue", g(T)), T < 1 && requestAnimationFrame(y);
1905
+ let O = (Date.now() - y) / Ar;
1906
+ O > 1 && (O = 1), D.set(m.node, "transitionValue", g(O)), O < 1 && requestAnimationFrame(b);
1908
1907
  };
1909
- requestAnimationFrame(y);
1908
+ requestAnimationFrame(b);
1910
1909
  }
1911
1910
  function c({ values: p, updatingNodes: d = [], isEntering: _ = !1 }) {
1912
- const b = new Set(d), m = (y) => _ ? y.value : p.get(E(y)), g = (y) => _ ? p.get(E(y)) : y.value;
1913
- n.value.nodes.filter((y) => b.has(y)).forEach((y) => {
1914
- s(
1915
- E(y),
1916
- m(y),
1917
- g(y)
1911
+ const y = new Set(d), m = (b) => _ ? b.value : p.get(R(b)), g = (b) => _ ? p.get(R(b)) : b.value;
1912
+ n.value.nodes.filter((b) => y.has(b)).forEach((b) => {
1913
+ i(
1914
+ R(b),
1915
+ m(b),
1916
+ g(b)
1918
1917
  );
1919
1918
  });
1920
1919
  }
1921
1920
  function h(p) {
1922
- const d = oe();
1921
+ const d = ie();
1923
1922
  return p.map((_) => {
1924
- var b;
1923
+ var y;
1925
1924
  return {
1926
- id: `link_${E(_.source)}:${E(
1925
+ id: `link_${R(_.source)}:${R(
1927
1926
  _.target
1928
1927
  )}`,
1929
1928
  d: d(_),
1930
- color: _.color || ((b = _.source) == null ? void 0 : b.color) || qt,
1929
+ color: _.color || ((y = _.source) == null ? void 0 : y.color) || Xt,
1931
1930
  strokeWidth: Math.max(1, _.width),
1932
1931
  link: _
1933
1932
  };
1934
1933
  });
1935
1934
  }
1936
- function l(p) {
1935
+ function u(p) {
1937
1936
  return p.map((d) => ({
1938
- id: `node-block-${E(d)}`,
1937
+ id: `node-block-${R(d)}`,
1939
1938
  rect: {
1940
1939
  width: d.x1 - d.x0,
1941
1940
  height: d.y1 - d.y0
@@ -1947,73 +1946,73 @@ function Ar(e, t, n) {
1947
1946
  node: d
1948
1947
  }));
1949
1948
  }
1950
- function v({ nodes: p, links: d }) {
1951
- p == null || d == null || (e.value.nodeBlocks = l(p), e.value.linkPaths = h(d));
1949
+ function f({ nodes: p, links: d }) {
1950
+ p == null || d == null || (e.value.nodeBlocks = u(p), e.value.linkPaths = h(d));
1952
1951
  }
1953
1952
  return {
1954
1953
  highlightedElements: o,
1955
- highlightLinks: u,
1954
+ highlightLinks: l,
1956
1955
  updateNodes: c,
1957
- renderChart: v,
1956
+ renderChart: f,
1958
1957
  maxDepth: a
1959
1958
  };
1960
1959
  }
1961
- function Or(e, t, n) {
1962
- function r(l) {
1963
- var v, p;
1964
- return (p = (v = t.value) == null ? void 0 : v.nodes) == null ? void 0 : p.reduce(
1965
- (d, _) => Math.max(d, _[l]),
1960
+ function $r(e, t, n) {
1961
+ function r(u) {
1962
+ var f, p;
1963
+ return (p = (f = t.value) == null ? void 0 : f.nodes) == null ? void 0 : p.reduce(
1964
+ (d, _) => Math.max(d, _[u]),
1966
1965
  -1 / 0
1967
1966
  );
1968
1967
  }
1969
- function a(l, v) {
1970
- return i(v) - i(l);
1968
+ function a(u, f) {
1969
+ return s(f) - s(u);
1971
1970
  }
1972
- function o(l) {
1973
- var v, p;
1974
- return (p = (v = n.value) == null ? void 0 : v.find((d) => d.id === `node-text-${l.id}`)) == null ? void 0 : p.getBBox();
1971
+ function o(u) {
1972
+ var f, p;
1973
+ return (p = (f = n.value) == null ? void 0 : f.find((d) => d.id === `node-text-${u.id}`)) == null ? void 0 : p.getBBox();
1975
1974
  }
1976
- function i({ label: l, value: v }) {
1975
+ function s({ label: u, value: f }) {
1977
1976
  var p;
1978
1977
  return Math.max(
1979
- l.length,
1980
- ((p = e.value.valueFormatter(v)) == null ? void 0 : p.length) || 0
1978
+ u.length,
1979
+ ((p = e.value.valueFormatter(f)) == null ? void 0 : p.length) || 0
1981
1980
  );
1982
1981
  }
1983
- const u = f(() => {
1984
- var p, d, _, b;
1985
- const l = r("x1"), v = (d = (p = t.value.nodes) == null ? void 0 : p.filter(({ x1: m }) => m === l).sort(a)) == null ? void 0 : d[0];
1986
- return v == null ? 0 : (b = (_ = o(v)) == null ? void 0 : _.width) != null ? b : 0;
1987
- }), s = f(() => {
1988
- var p, d, _, b, m, g;
1989
- const l = (d = (p = t.value) == null ? void 0 : p.nodes) == null ? void 0 : d.reduce(
1990
- (y, { y0: x }) => Math.min(y, x),
1982
+ const l = v(() => {
1983
+ var p, d, _, y;
1984
+ const u = r("x1"), f = (d = (p = t.value.nodes) == null ? void 0 : p.filter(({ x1: m }) => m === u).sort(a)) == null ? void 0 : d[0];
1985
+ return f == null ? 0 : (y = (_ = o(f)) == null ? void 0 : _.width) != null ? y : 0;
1986
+ }), i = v(() => {
1987
+ var p, d, _, y, m, g;
1988
+ const u = (d = (p = t.value) == null ? void 0 : p.nodes) == null ? void 0 : d.reduce(
1989
+ (b, { y0: x }) => Math.min(b, x),
1991
1990
  1 / 0
1992
- ), v = (b = (_ = t.value) == null ? void 0 : _.nodes) == null ? void 0 : b.find(({ y0: y }) => y === l);
1993
- return v == null ? 0 : Math.abs((g = (m = o(v)) == null ? void 0 : m.y) != null ? g : 0);
1994
- }), c = f(() => {
1995
- var p, d, _, b;
1996
- const l = r("y1"), v = (d = (p = t.value) == null ? void 0 : p.nodes) == null ? void 0 : d.find(({ y1: m }) => m === l);
1997
- return v == null ? 0 : Math.abs((b = (_ = o(v)) == null ? void 0 : _.y) != null ? b : 0);
1991
+ ), f = (y = (_ = t.value) == null ? void 0 : _.nodes) == null ? void 0 : y.find(({ y0: b }) => b === u);
1992
+ return f == null ? 0 : Math.abs((g = (m = o(f)) == null ? void 0 : m.y) != null ? g : 0);
1993
+ }), c = v(() => {
1994
+ var p, d, _, y;
1995
+ const u = r("y1"), f = (d = (p = t.value) == null ? void 0 : p.nodes) == null ? void 0 : d.find(({ y1: m }) => m === u);
1996
+ return f == null ? 0 : Math.abs((y = (_ = o(f)) == null ? void 0 : _.y) != null ? y : 0);
1998
1997
  });
1999
1998
  return {
2000
- leftMostNodeLabelWidth: f(() => {
2001
- var v, p, d, _;
2002
- const l = (p = (v = t.value.nodes) == null ? void 0 : v.filter(({ depth: b }) => b === 0).sort(a)) == null ? void 0 : p[0];
2003
- return l == null ? 0 : (_ = (d = o(l)) == null ? void 0 : d.width) != null ? _ : 0;
1999
+ leftMostNodeLabelWidth: v(() => {
2000
+ var f, p, d, _;
2001
+ const u = (p = (f = t.value.nodes) == null ? void 0 : f.filter(({ depth: y }) => y === 0).sort(a)) == null ? void 0 : p[0];
2002
+ return u == null ? 0 : (_ = (d = o(u)) == null ? void 0 : d.width) != null ? _ : 0;
2004
2003
  }),
2005
- rightMostNodeLabelWidth: u,
2006
- topMostNodeLabelExtraHeight: s,
2004
+ rightMostNodeLabelWidth: l,
2005
+ topMostNodeLabelExtraHeight: i,
2007
2006
  bottomMostNodeLabelExtraHeight: c
2008
2007
  };
2009
2008
  }
2010
- const Tr = {
2009
+ const kr = {
2011
2010
  values: [],
2012
2011
  nodePadding: 16,
2013
2012
  nodeWidth: 16,
2014
- nodeAlign: ie,
2013
+ nodeAlign: ue,
2015
2014
  valueFormatter: (e) => String(e)
2016
- }, $r = {
2015
+ }, Lr = {
2017
2016
  highlightedLink: null,
2018
2017
  highlightedNode: null,
2019
2018
  leftExtent: 0,
@@ -2023,107 +2022,107 @@ const Tr = {
2023
2022
  nodeBlocks: [],
2024
2023
  linkPaths: []
2025
2024
  };
2026
- function kr(e, t) {
2027
- const n = k({ ...$r, containerSize: t }), r = f(() => e.value.values.map(({ label: u, color: s, value: c }) => ({
2028
- label: u,
2029
- color: s,
2025
+ function Sr(e, t) {
2026
+ const n = $({ ...Lr, containerSize: t }), r = v(() => e.value.values.map(({ label: l, color: i, value: c }) => ({
2027
+ label: l,
2028
+ color: i,
2030
2029
  id: c
2031
- }))), a = f(() => e.value.values.map(
2032
- (u) => {
2033
- var s;
2034
- return (s = u.targets) == null ? void 0 : s.map(({ node: c, value: h, color: l }) => {
2035
- var v;
2030
+ }))), a = v(() => e.value.values.map(
2031
+ (l) => {
2032
+ var i;
2033
+ return (i = l.targets) == null ? void 0 : i.map(({ node: c, value: h, color: u }) => {
2034
+ var f;
2036
2035
  return {
2037
- source: (v = u.value) != null ? v : u.label,
2038
- color: l,
2036
+ source: (f = l.value) != null ? f : l.label,
2037
+ color: u,
2039
2038
  target: c,
2040
2039
  value: h
2041
2040
  };
2042
2041
  });
2043
2042
  }
2044
- ).filter(Boolean).reduce((u, s) => [...u, ...s], [])), o = f(() => {
2045
- const { leftExtent: u, rightExtent: s, topExtent: c, bottomExtent: h, containerSize: l } = n.value;
2046
- return se().nodeId(E).nodeWidth(e.value.nodeWidth).nodeSort(e.value.nodeSort).nodePadding(20).nodeAlign(e.value.nodeAlign).extent([
2047
- [u, c],
2048
- [s, l.height - h]
2043
+ ).filter(Boolean).reduce((l, i) => [...l, ...i], [])), o = v(() => {
2044
+ const { leftExtent: l, rightExtent: i, topExtent: c, bottomExtent: h, containerSize: u } = n.value;
2045
+ return le().nodeId(R).nodeWidth(e.value.nodeWidth).nodeSort(e.value.nodeSort).nodePadding(20).nodeAlign(e.value.nodeAlign).extent([
2046
+ [l, c],
2047
+ [i, u.height - h]
2049
2048
  ]);
2050
- }), i = f(() => o.value({
2051
- nodes: r.value.map((u) => ({ ...u })),
2052
- links: a.value.map((u) => ({ ...u }))
2049
+ }), s = v(() => o.value({
2050
+ nodes: r.value.map((l) => ({ ...l })),
2051
+ links: a.value.map((l) => ({ ...l }))
2053
2052
  }));
2054
2053
  return {
2055
2054
  nodes: r,
2056
2055
  links: a,
2057
- graph: i,
2056
+ graph: s,
2058
2057
  alluvialInstance: n
2059
2058
  };
2060
2059
  }
2061
- function Sr(e) {
2060
+ function wr(e) {
2062
2061
  var n;
2063
2062
  const t = (n = e.value) == null ? void 0 : n[0];
2064
2063
  if (!!t)
2065
- return k({
2066
- ...Tr,
2064
+ return $({
2065
+ ...kr,
2067
2066
  ...t
2068
2067
  });
2069
2068
  }
2070
- const Lr = S({
2071
- components: { LumeAlluvialPathGroup: br },
2069
+ const Cr = L({
2070
+ components: { LumeAlluvialPathGroup: Tr },
2072
2071
  props: {
2073
- ...V(lt)
2072
+ ...G(ut)
2074
2073
  },
2075
2074
  setup(e, t) {
2076
- const n = ae(e, "data"), r = k([]), a = k([]), o = k(null), i = Sr(n), { graph: u, alluvialInstance: s } = kr(
2077
- i,
2075
+ const n = se(e, "data"), r = $([]), a = $([]), o = $(null), s = wr(n), { graph: l, alluvialInstance: i } = Sr(
2076
+ s,
2078
2077
  t.attrs.containerSize
2079
2078
  ), {
2080
2079
  leftMostNodeLabelWidth: c,
2081
2080
  rightMostNodeLabelWidth: h,
2082
- topMostNodeLabelExtraHeight: l,
2083
- bottomMostNodeLabelExtraHeight: v
2084
- } = Or(i, u, o), {
2081
+ topMostNodeLabelExtraHeight: u,
2082
+ bottomMostNodeLabelExtraHeight: f
2083
+ } = $r(s, l, o), {
2085
2084
  highlightedElements: p,
2086
2085
  highlightLinks: d,
2087
2086
  updateNodes: _,
2088
- renderChart: b,
2087
+ renderChart: y,
2089
2088
  maxDepth: m
2090
- } = Ar(s, i, u);
2091
- return I(p, function(g, y) {
2092
- var w, H, j, tt, et;
2093
- const x = g.nodes != null && g.links != null, T = new Set((w = g.links) != null ? w : []), { nodes: R = /* @__PURE__ */ new Map() } = (x ? g : y) || {}, { nodeIds: B, linkIds: D } = d(
2094
- (j = (H = u.value) == null ? void 0 : H.links) == null ? void 0 : j.filter((z) => T.has(z))
2089
+ } = Or(i, s, l);
2090
+ return N(p, function(g, b) {
2091
+ var I, H, F, et, nt;
2092
+ const x = g.nodes != null && g.links != null, O = new Set((I = g.links) != null ? I : []), { nodes: E = /* @__PURE__ */ new Map() } = (x ? g : b) || {}, { nodeIds: B, linkIds: C } = d(
2093
+ (F = (H = l.value) == null ? void 0 : H.links) == null ? void 0 : F.filter((z) => O.has(z))
2095
2094
  );
2096
- ((z = [], pt = []) => {
2097
- a.value = z, r.value = pt;
2098
- })(B, D), _({
2095
+ ((z = [], vt = []) => {
2096
+ a.value = z, r.value = vt;
2097
+ })(B, C), _({
2099
2098
  isEntering: x,
2100
- values: R,
2101
- updatingNodes: (et = (tt = u.value) == null ? void 0 : tt.nodes) == null ? void 0 : et.filter(
2102
- (z) => R.has(E(z))
2099
+ values: E,
2100
+ updatingNodes: (nt = (et = l.value) == null ? void 0 : et.nodes) == null ? void 0 : nt.filter(
2101
+ (z) => E.has(R(z))
2103
2102
  )
2104
2103
  });
2105
- }), I(
2106
- u,
2107
- (g) => b({ nodes: g.nodes, links: g.links })
2108
- ), I(
2104
+ }), N(
2105
+ l,
2106
+ (g) => y({ nodes: g.nodes, links: g.links })
2107
+ ), N(
2109
2108
  c,
2110
- (g) => s.value.leftExtent = g + K
2111
- ), I(
2109
+ (g) => i.value.leftExtent = g + K
2110
+ ), N(
2112
2111
  h,
2113
- (g) => s.value.rightExtent = s.value.containerSize.width - (g + K)
2114
- ), I(
2115
- v,
2116
- (g) => s.value.bottomExtent = g
2117
- ), I(
2118
- l,
2119
- (g) => s.value.topExtent = g
2120
- ), I(
2121
- s.value.containerSize,
2122
- (g) => s.value.rightExtent = g.width - (h.value + K)
2112
+ (g) => i.value.rightExtent = i.value.containerSize.width - (g + K)
2113
+ ), N(
2114
+ f,
2115
+ (g) => i.value.bottomExtent = g
2116
+ ), N(
2117
+ u,
2118
+ (g) => i.value.topExtent = g
2119
+ ), N(
2120
+ i.value.containerSize,
2121
+ (g) => i.value.rightExtent = g.width - (h.value + K)
2123
2122
  ), {
2124
- alluvialInstance: s,
2125
- computedData: i,
2126
- defaultColor: qt,
2123
+ alluvialInstance: i,
2124
+ computedData: s,
2125
+ defaultColor: Xt,
2127
2126
  highlightedLinkIds: r,
2128
2127
  highlightedNodeIds: a,
2129
2128
  isNodeOrLinkFaded: zt,
@@ -2132,7 +2131,7 @@ const Lr = S({
2132
2131
  };
2133
2132
  }
2134
2133
  });
2135
- var wr = function() {
2134
+ var Ir = function() {
2136
2135
  var t = this, n = t._self._c;
2137
2136
  return t._self._setupProxy, t.alluvialInstance ? n("g", { staticClass: "lume-alluvial-group", attrs: { "data-j-alluvial-group": "" } }, [t._l(t.alluvialInstance.nodeBlocks, function(r, a) {
2138
2137
  return n("g", { key: `node-block_${a}`, staticClass: "lume-alluvial-group__node", class: {
@@ -2161,17 +2160,17 @@ var wr = function() {
2161
2160
  }, mouseout: function(r) {
2162
2161
  t.alluvialInstance.highlightedLink = null;
2163
2162
  } } })], 2) : t._e();
2164
- }, Cr = [], Ir = /* @__PURE__ */ L(
2165
- Lr,
2166
- wr,
2163
+ }, Nr = [], Dr = /* @__PURE__ */ S(
2167
2164
  Cr,
2165
+ Ir,
2166
+ Nr,
2168
2167
  !1,
2169
2168
  null,
2170
2169
  "9b0ccc03",
2171
2170
  null,
2172
2171
  null
2173
2172
  );
2174
- const Nr = Ir.exports, Rr = {
2173
+ const Rr = Dr.exports, Pr = {
2175
2174
  margins: {
2176
2175
  top: 0,
2177
2176
  right: 0,
@@ -2182,13 +2181,13 @@ const Nr = Ir.exports, Rr = {
2182
2181
  withTooltip: !1,
2183
2182
  withHover: !1,
2184
2183
  withLegend: !1
2185
- }, Dr = S({
2186
- components: { LumeChart: Y, LumeAlluvialGroup: Nr },
2184
+ }, Er = L({
2185
+ components: { LumeChart: Y, LumeAlluvialGroup: Rr },
2187
2186
  props: {
2188
- ...V(lt, !1, !1)
2187
+ ...G(ut, !1, !1)
2189
2188
  },
2190
2189
  setup(e, t) {
2191
- const { options: n } = C(e), { allOptions: r } = F(n, Rr);
2190
+ const { options: n } = w(e), { allOptions: r } = j(n, Pr);
2192
2191
  function a(o) {
2193
2192
  return {
2194
2193
  ...o,
@@ -2202,7 +2201,7 @@ const Nr = Ir.exports, Rr = {
2202
2201
  };
2203
2202
  }
2204
2203
  });
2205
- var Er = function() {
2204
+ var Br = function() {
2206
2205
  var t = this, n = t._self._c;
2207
2206
  return t._self._setupProxy, n("lume-chart", t._b({ attrs: { options: t.getAlluvialDiagramOptions(t.allOptions), "data-j-alluvial-diagram": "" }, scopedSlots: t._u([{ key: "groups", fn: function(r) {
2208
2207
  return [n("lume-alluvial-group", t._b({}, "lume-alluvial-group", r, !1))];
@@ -2211,40 +2210,40 @@ var Er = function() {
2211
2210
  return [t._t(a, null, null, o || {})];
2212
2211
  } };
2213
2212
  })], null, !0) }, "lume-chart", t.$props, !1));
2214
- }, Pr = [], Br = /* @__PURE__ */ L(
2215
- Dr,
2213
+ }, Mr = [], Hr = /* @__PURE__ */ S(
2216
2214
  Er,
2217
- Pr,
2215
+ Br,
2216
+ Mr,
2218
2217
  !1,
2219
2218
  null,
2220
2219
  null,
2221
2220
  null,
2222
2221
  null
2223
2222
  );
2224
- const Ba = Br.exports;
2225
- var Xt = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(Xt || {});
2226
- const Dt = {
2223
+ const Va = Hr.exports;
2224
+ var Ut = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(Ut || {});
2225
+ const Et = {
2227
2226
  single: "lume-single-bar-chart",
2228
2227
  grouped: "lume-grouped-bar-chart",
2229
2228
  stacked: "lume-stacked-bar-chart"
2230
- }, Mr = S({
2229
+ }, Fr = L({
2231
2230
  components: {
2232
- LumeSingleBarChart: vt(
2233
- () => import("./2c318357.js")
2231
+ LumeSingleBarChart: ht(
2232
+ () => import("./b0ac241a.js")
2234
2233
  ),
2235
- LumeGroupedBarChart: vt(
2236
- () => import("./797e4fbd.js")
2234
+ LumeGroupedBarChart: ht(
2235
+ () => import("./dc78ff18.js")
2237
2236
  ),
2238
- LumeStackedBarChart: vt(
2239
- () => import("./b0835720.js")
2237
+ LumeStackedBarChart: ht(
2238
+ () => import("./d5a10e28.js")
2240
2239
  )
2241
2240
  },
2242
2241
  props: {
2243
- ...V(),
2242
+ ...G(),
2244
2243
  type: {
2245
2244
  type: String,
2246
2245
  default: null,
2247
- validator: (e) => e in Xt || e == null
2246
+ validator: (e) => e in Ut || e == null
2248
2247
  }
2249
2248
  },
2250
2249
  setup(e, t) {
@@ -2254,20 +2253,20 @@ const Dt = {
2254
2253
  startOnZero: !0,
2255
2254
  tooltipOptions: {
2256
2255
  ...(a == null ? void 0 : a.tooltipOptions) || {},
2257
- position: e.orientation === A.HORIZONTAL && "right"
2256
+ position: e.orientation === T.HORIZONTAL && "right"
2258
2257
  }
2259
2258
  };
2260
2259
  }
2261
2260
  return {
2262
- component: f(() => {
2261
+ component: v(() => {
2263
2262
  if (!!e.data) {
2264
- if (lt(e.data))
2265
- return Dt.single;
2263
+ if (ut(e.data))
2264
+ return Et.single;
2266
2265
  if (!e.type)
2267
2266
  throw new Error(
2268
2267
  "Bar chart needs a type when there's multiple datasets."
2269
2268
  );
2270
- return Dt[e.type];
2269
+ return Et[e.type];
2271
2270
  }
2272
2271
  }),
2273
2272
  getBarChartOptions: n,
@@ -2275,109 +2274,109 @@ const Dt = {
2275
2274
  };
2276
2275
  }
2277
2276
  });
2278
- var Hr = function() {
2277
+ var jr = function() {
2279
2278
  var t = this, n = t._self._c;
2280
2279
  return t._self._setupProxy, n(t.component, t._g(t._b({ tag: "component", attrs: { options: t.getBarChartOptions(t.options) }, scopedSlots: t._u([t._l(t.slots, function(r, a) {
2281
2280
  return { key: a, fn: function(o) {
2282
2281
  return [t._t(a, null, null, o || {})];
2283
2282
  } };
2284
2283
  })], null, !0) }, "component", t.$props, !1), t.$listeners));
2285
- }, jr = [], Fr = /* @__PURE__ */ L(
2286
- Mr,
2287
- Hr,
2284
+ }, Vr = [], Gr = /* @__PURE__ */ S(
2285
+ Fr,
2288
2286
  jr,
2287
+ Vr,
2289
2288
  !1,
2290
2289
  null,
2291
2290
  null,
2292
2291
  null,
2293
2292
  null
2294
2293
  );
2295
- const Ma = Fr.exports;
2296
- function Gr(e) {
2297
- return Object.values(Se).includes(e) || e == null;
2294
+ const Ga = Gr.exports;
2295
+ function zr(e) {
2296
+ return Object.values(we).includes(e) || e == null;
2298
2297
  }
2299
- function Vr(e) {
2300
- return Object.values(A).includes(e);
2298
+ function Wr(e) {
2299
+ return Object.values(T).includes(e);
2301
2300
  }
2302
- const zr = (e = !1) => ({
2301
+ const Zr = (e = !1) => ({
2303
2302
  type: {
2304
2303
  type: String,
2305
2304
  default: null,
2306
- validator: Gr
2305
+ validator: zr
2307
2306
  },
2308
2307
  ...e ? {
2309
2308
  orientation: {
2310
2309
  type: String,
2311
- default: A.VERTICAL,
2312
- validator: Vr
2310
+ default: T.VERTICAL,
2311
+ validator: Wr
2313
2312
  }
2314
2313
  } : {}
2315
2314
  });
2316
- function Ut(e) {
2317
- const t = f(() => e.value.map((r) => ({
2315
+ function Yt(e) {
2316
+ const t = v(() => e.value.map((r) => ({
2318
2317
  ...r,
2319
2318
  values: r.values.map((a) => ({
2320
2319
  ...a,
2321
2320
  value: (a == null ? void 0 : a.value) || 0
2322
2321
  }))
2323
- }))), n = f(() => {
2322
+ }))), n = v(() => {
2324
2323
  var r;
2325
- return (r = t.value) == null ? void 0 : r.reduce((a, o) => (o.values.forEach((i, u) => {
2326
- a[u] ? a[u].push(i) : a[u] = [i];
2324
+ return (r = t.value) == null ? void 0 : r.reduce((a, o) => (o.values.forEach((s, l) => {
2325
+ a[l] ? a[l].push(s) : a[l] = [s];
2327
2326
  }), a), []);
2328
2327
  });
2329
2328
  return { multiBarData: t, groupedData: n };
2330
2329
  }
2331
- function Wr(e, t) {
2330
+ function qr(e, t) {
2332
2331
  return e.value.length === 1 ? "single" : t.value;
2333
2332
  }
2334
- function Zr(e, t, n, r) {
2335
- const a = f(
2336
- () => r.value === A.HORIZONTAL
2333
+ function Xr(e, t, n, r) {
2334
+ const a = v(
2335
+ () => r.value === T.HORIZONTAL
2337
2336
  );
2338
- function o(s) {
2339
- Math.min(...s.domain()) > 0 && console.error("Bar linear scale domain cannot start above 0!");
2337
+ function o(i) {
2338
+ Math.min(...i.domain()) > 0 && console.error("Bar linear scale domain cannot start above 0!");
2340
2339
  }
2341
- const i = f(() => {
2342
- const { padding: s, paddingInner: c, paddingOuter: h } = n.value;
2343
- return a.value ? (() => (o(e.value), e.value))() : st(
2340
+ const s = v(() => {
2341
+ const { padding: i, paddingInner: c, paddingOuter: h } = n.value;
2342
+ return a.value ? (() => (o(e.value), e.value))() : it(
2344
2343
  e.value,
2345
2344
  r.value,
2346
- { padding: s, paddingInner: c, paddingOuter: h }
2345
+ { padding: i, paddingInner: c, paddingOuter: h }
2347
2346
  );
2348
- }), u = f(() => {
2349
- const { padding: s, paddingInner: c, paddingOuter: h } = n.value;
2350
- return a.value ? st(
2347
+ }), l = v(() => {
2348
+ const { padding: i, paddingInner: c, paddingOuter: h } = n.value;
2349
+ return a.value ? it(
2351
2350
  t.value,
2352
2351
  r.value,
2353
- { padding: s, paddingInner: c, paddingOuter: h }
2352
+ { padding: i, paddingInner: c, paddingOuter: h }
2354
2353
  ) : (() => (o(t.value), t.value))();
2355
2354
  });
2356
- return { barXScale: i, barYScale: u };
2355
+ return { barXScale: s, barYScale: l };
2357
2356
  }
2358
- const qr = "skyblue";
2359
- function Xr(e, t, n, r, a, o) {
2360
- const i = f(
2361
- () => r.value === A.HORIZONTAL
2357
+ const Ur = "skyblue";
2358
+ function Yr(e, t, n, r, a, o) {
2359
+ const s = v(
2360
+ () => r.value === T.HORIZONTAL
2362
2361
  );
2363
- function u(l, v) {
2362
+ function l(u, f) {
2364
2363
  let p, d;
2365
- return i.value ? (p = l >= 0 ? t.value(0) : t.value(l), d = n.value(n.value.domain()[v])) : (p = t.value(t.value.domain()[v]), d = l < 0 ? n.value(0) : n.value(l)), { x: p, y: d };
2364
+ return s.value ? (p = u >= 0 ? t.value(0) : t.value(u), d = n.value(n.value.domain()[f])) : (p = t.value(t.value.domain()[f]), d = u < 0 ? n.value(0) : n.value(u)), { x: p, y: d };
2366
2365
  }
2367
- function s(l) {
2368
- return i.value ? l < 0 ? t.value(0) - t.value(l) : t.value(l) - t.value(0) : t.value.bandwidth();
2366
+ function i(u) {
2367
+ return s.value ? u < 0 ? t.value(0) - t.value(u) : t.value(u) - t.value(0) : t.value.bandwidth();
2369
2368
  }
2370
- function c(l) {
2371
- return i.value ? n.value.bandwidth() : l < 0 ? n.value(l) - n.value(0) : n.value(0) - n.value(l);
2369
+ function c(u) {
2370
+ return s.value ? n.value.bandwidth() : u < 0 ? n.value(u) - n.value(0) : n.value(0) - n.value(u);
2372
2371
  }
2373
- function h(l, v, p) {
2374
- var T;
2375
- const { value: d, color: _ } = l, b = (T = _ != null ? _ : e.value[v].color) != null ? T : qr, { x: m, y: g } = u(d, p), y = s(d), x = c(d);
2372
+ function h(u, f, p) {
2373
+ var O;
2374
+ const { value: d, color: _ } = u, y = (O = _ != null ? _ : e.value[f].color) != null ? O : Ur, { x: m, y: g } = l(d, p), b = i(d), x = c(d);
2376
2375
  return {
2377
- classList: [`lume-fill--${b}`, ...o],
2376
+ classList: [`lume-fill--${y}`, ...o],
2378
2377
  x: m,
2379
2378
  y: g,
2380
- width: y,
2379
+ width: b,
2381
2380
  height: x,
2382
2381
  isFaded: a.value !== -1 && a.value !== p,
2383
2382
  isNegative: d < 0
@@ -2385,131 +2384,131 @@ function Xr(e, t, n, r, a, o) {
2385
2384
  }
2386
2385
  return { barAttributeGenerator: h };
2387
2386
  }
2388
- function Ur(e, t, n, r, a, o) {
2389
- const i = f(
2390
- () => r.value === A.HORIZONTAL
2391
- ), u = f(() => J().domain(e.value.map((d, _) => _)).range([0, t.value.bandwidth()]).padding(0)), s = f(() => J().domain(e.value.map((d, _) => _)).range([0, n.value.bandwidth()]).padding(0));
2392
- function c(d, _, b) {
2393
- if (i.value)
2387
+ function Kr(e, t, n, r, a, o) {
2388
+ const s = v(
2389
+ () => r.value === T.HORIZONTAL
2390
+ ), l = v(() => J().domain(e.value.map((d, _) => _)).range([0, t.value.bandwidth()]).padding(0)), i = v(() => J().domain(e.value.map((d, _) => _)).range([0, n.value.bandwidth()]).padding(0));
2391
+ function c(d, _, y) {
2392
+ if (s.value)
2394
2393
  return d >= 0 ? t.value(0) : t.value(d);
2395
2394
  const m = t.value.domain();
2396
- return t.value(m[_]) + u.value(b);
2395
+ return t.value(m[_]) + l.value(y);
2397
2396
  }
2398
- function h(d, _, b) {
2399
- if (i.value) {
2397
+ function h(d, _, y) {
2398
+ if (s.value) {
2400
2399
  const m = n.value.domain();
2401
- return n.value(m[_]) + s.value(b);
2400
+ return n.value(m[_]) + i.value(y);
2402
2401
  }
2403
2402
  return d < 0 ? n.value(0) : n.value(d);
2404
2403
  }
2405
- function l(d) {
2406
- return i.value ? d < 0 ? t.value(0) - t.value(d) : t.value(d) - t.value(0) : u.value.bandwidth();
2404
+ function u(d) {
2405
+ return s.value ? d < 0 ? t.value(0) - t.value(d) : t.value(d) - t.value(0) : l.value.bandwidth();
2407
2406
  }
2408
- function v(d) {
2409
- return i.value ? s.value.bandwidth() : d < 0 ? n.value(d) - n.value(0) : n.value(0) - n.value(d);
2407
+ function f(d) {
2408
+ return s.value ? i.value.bandwidth() : d < 0 ? n.value(d) - n.value(0) : n.value(0) - n.value(d);
2410
2409
  }
2411
- function p(d, _, b) {
2412
- var D;
2413
- const { value: m, color: g } = d, y = (D = g != null ? g : e.value[_].color) != null ? D : Object.values(M)[_], x = c(m, b, _), T = h(m, b, _), R = l(m), B = v(m);
2410
+ function p(d, _, y) {
2411
+ var C;
2412
+ const { value: m, color: g } = d, b = (C = g != null ? g : e.value[_].color) != null ? C : Object.values(M)[_], x = c(m, y, _), O = h(m, y, _), E = u(m), B = f(m);
2414
2413
  return {
2415
- classList: [`lume-fill--${y}`, ...o],
2414
+ classList: [`lume-fill--${b}`, ...o],
2416
2415
  x,
2417
- y: T,
2418
- width: R,
2416
+ y: O,
2417
+ width: E,
2419
2418
  height: B,
2420
- isFaded: a.value !== -1 && a.value !== b,
2419
+ isFaded: a.value !== -1 && a.value !== y,
2421
2420
  isNegative: m < 0
2422
2421
  };
2423
2422
  }
2424
2423
  return { barAttributeGenerator: p };
2425
2424
  }
2426
- function Yr(e, t) {
2427
- const n = f(
2428
- () => t.value === A.HORIZONTAL
2429
- ), r = f(() => {
2430
- const u = e.value.map(
2431
- (s) => s.filter((c) => c.value < 0).reduce((c, h) => c + h.value, 0)
2425
+ function Jr(e, t) {
2426
+ const n = v(
2427
+ () => t.value === T.HORIZONTAL
2428
+ ), r = v(() => {
2429
+ const l = e.value.map(
2430
+ (i) => i.filter((c) => c.value < 0).reduce((c, h) => c + h.value, 0)
2432
2431
  );
2433
- return Math.min(...u);
2434
- }), a = f(() => {
2435
- const u = e.value.map(
2436
- (s) => s.reduce(
2432
+ return Math.min(...l);
2433
+ }), a = v(() => {
2434
+ const l = e.value.map(
2435
+ (i) => i.reduce(
2437
2436
  (c, h) => h.value >= 0 ? c + h.value : c,
2438
2437
  0
2439
2438
  )
2440
2439
  );
2441
- return Math.max(...u);
2440
+ return Math.max(...l);
2442
2441
  });
2443
- function o(u, s, c) {
2444
- return n.value ? Q().domain([r.value, a.value]).range([0, c.width]) : st(
2445
- J().domain(s == null ? void 0 : s.map((h) => h)).range([0, c.width])
2442
+ function o(l, i, c) {
2443
+ return n.value ? Q().domain([r.value, a.value]).range([0, c.width]) : it(
2444
+ J().domain(i == null ? void 0 : i.map((h) => h)).range([0, c.width])
2446
2445
  );
2447
2446
  }
2448
- function i(u, s, c) {
2449
- return n.value ? st(
2450
- J().domain(s == null ? void 0 : s.map((h) => h)).range([0, c.height])
2447
+ function s(l, i, c) {
2448
+ return n.value ? it(
2449
+ J().domain(i == null ? void 0 : i.map((h) => h)).range([0, c.height])
2451
2450
  ) : Q().domain([a.value, r.value]).range([0, c.height]);
2452
2451
  }
2453
- return { stackedXScaleGenerator: o, stackedYScaleGenerator: i };
2452
+ return { stackedXScaleGenerator: o, stackedYScaleGenerator: s };
2454
2453
  }
2455
- function Kr(e, t, n, r, a, o) {
2456
- const i = f(
2457
- () => r.value === A.HORIZONTAL
2458
- ), u = f(
2459
- () => i.value ? n.value.domain() : t.value.domain()
2460
- ), s = f(
2454
+ function Qr(e, t, n, r, a, o) {
2455
+ const s = v(
2456
+ () => r.value === T.HORIZONTAL
2457
+ ), l = v(
2458
+ () => s.value ? n.value.domain() : t.value.domain()
2459
+ ), i = v(
2461
2460
  () => e.value.map((m) => m.values.map((g) => g == null ? void 0 : g.value))
2462
2461
  );
2463
- function c(m, g, y) {
2464
- let x, T;
2465
- return i.value ? (x = t.value(m >= 0 ? 0 + y : m + y), T = n.value(u.value[g])) : (x = t.value(u.value[g]), T = n.value(m >= 0 ? m + y : 0 + y)), { x, y: T };
2462
+ function c(m, g, b) {
2463
+ let x, O;
2464
+ return s.value ? (x = t.value(m >= 0 ? 0 + b : m + b), O = n.value(l.value[g])) : (x = t.value(l.value[g]), O = n.value(m >= 0 ? m + b : 0 + b)), { x, y: O };
2466
2465
  }
2467
2466
  function h(m) {
2468
- return i.value ? t.value(m) - t.value(0) : t.value.bandwidth();
2467
+ return s.value ? t.value(m) - t.value(0) : t.value.bandwidth();
2469
2468
  }
2470
- function l(m) {
2471
- return i.value ? t.value(0) - t.value(m) : t.value.bandwidth();
2469
+ function u(m) {
2470
+ return s.value ? t.value(0) - t.value(m) : t.value.bandwidth();
2472
2471
  }
2473
- function v(m) {
2474
- return i.value ? n.value.bandwidth() : n.value(0) - n.value(m);
2472
+ function f(m) {
2473
+ return s.value ? n.value.bandwidth() : n.value(0) - n.value(m);
2475
2474
  }
2476
2475
  function p(m) {
2477
- return i.value ? n.value.bandwidth() : n.value(m) - n.value(0);
2476
+ return s.value ? n.value.bandwidth() : n.value(m) - n.value(0);
2478
2477
  }
2479
2478
  function d(m, g) {
2480
- return m ? s.value.reduce((y, x, T) => (T < m && x[g] >= 0 && (y += x[g]), y), 0) : 0;
2479
+ return m ? i.value.reduce((b, x, O) => (O < m && x[g] >= 0 && (b += x[g]), b), 0) : 0;
2481
2480
  }
2482
2481
  function _(m, g) {
2483
- return m ? s.value.reduce((y, x, T) => (T < m && x[g] < 0 && (y += x[g]), y), 0) : 0;
2482
+ return m ? i.value.reduce((b, x, O) => (O < m && x[g] < 0 && (b += x[g]), b), 0) : 0;
2484
2483
  }
2485
- function b(m, g, y) {
2486
- var j;
2487
- const { value: x, color: T } = m, R = x >= 0 ? h(x) : l(x), B = x >= 0 ? v(x) : p(x), D = x >= 0 ? d(g, y) : _(g, y), { x: $, y: w } = c(x, y, D);
2484
+ function y(m, g, b) {
2485
+ var F;
2486
+ const { value: x, color: O } = m, E = x >= 0 ? h(x) : u(x), B = x >= 0 ? f(x) : p(x), C = x >= 0 ? d(g, b) : _(g, b), { x: k, y: I } = c(x, b, C);
2488
2487
  return {
2489
- classList: [`lume-fill--${(j = T != null ? T : e.value[g].color) != null ? j : Object.values(M)[g]}`, ...o],
2490
- width: R,
2488
+ classList: [`lume-fill--${(F = O != null ? O : e.value[g].color) != null ? F : Object.values(M)[g]}`, ...o],
2489
+ width: E,
2491
2490
  height: B,
2492
- x: $,
2493
- y: w,
2494
- isFaded: a.value !== -1 && a.value !== y,
2491
+ x: k,
2492
+ y: I,
2493
+ isFaded: a.value !== -1 && a.value !== b,
2495
2494
  isNegative: x < 0
2496
2495
  };
2497
2496
  }
2498
- return { barAttributeGenerator: b };
2497
+ return { barAttributeGenerator: y };
2499
2498
  }
2500
- const Jr = {
2501
- single: Xr,
2502
- grouped: Ur,
2503
- stacked: Kr
2504
- }, Qr = S({
2505
- components: { LumeBar: Tt },
2499
+ const ta = {
2500
+ single: Yr,
2501
+ grouped: Kr,
2502
+ stacked: Qr
2503
+ }, ea = L({
2504
+ components: { LumeBar: kt },
2506
2505
  props: {
2507
- ...$t(),
2506
+ ...Lt(),
2508
2507
  classList: {
2509
2508
  type: [String, Array],
2510
2509
  default: () => []
2511
2510
  },
2512
- ...zr(!0),
2511
+ ...Zr(!0),
2513
2512
  transition: {
2514
2513
  type: Boolean,
2515
2514
  default: !0
@@ -2522,81 +2521,81 @@ const Jr = {
2522
2521
  options: r,
2523
2522
  orientation: a,
2524
2523
  transition: o,
2525
- type: i,
2526
- xScale: u,
2527
- yScale: s,
2524
+ type: s,
2525
+ xScale: l,
2526
+ yScale: i,
2528
2527
  classList: c
2529
- } = C(e), { groupedData: h } = Ut(t), { barXScale: l, barYScale: v } = Zr(
2530
- u,
2531
- s,
2528
+ } = w(e), { groupedData: h } = Yt(t), { barXScale: u, barYScale: f } = Xr(
2529
+ l,
2530
+ i,
2532
2531
  r,
2533
2532
  a
2534
- ), p = f(() => typeof c.value == "string" ? [c.value] : c.value), d = f(() => {
2535
- const b = Wr(t, i), { barAttributeGenerator: m } = Jr[b](
2533
+ ), p = v(() => typeof c.value == "string" ? [c.value] : c.value), d = v(() => {
2534
+ const y = qr(t, s), { barAttributeGenerator: m } = ta[y](
2536
2535
  t,
2537
- l,
2538
- v,
2536
+ u,
2537
+ f,
2539
2538
  a,
2540
2539
  n,
2541
2540
  p.value
2542
2541
  );
2543
2542
  return m;
2544
- }), _ = f(() => {
2543
+ }), _ = v(() => {
2545
2544
  if (!!o.value)
2546
- return a.value === A.HORIZONTAL ? "width" : "height";
2545
+ return a.value === T.HORIZONTAL ? "width" : "height";
2547
2546
  });
2548
2547
  return {
2549
- barXScale: l,
2550
- barYScale: v,
2548
+ barXScale: u,
2549
+ barYScale: f,
2551
2550
  computedTransition: _,
2552
2551
  getBarAttributes: d,
2553
2552
  groupedData: h
2554
2553
  };
2555
2554
  }
2556
2555
  });
2557
- var ta = function() {
2556
+ var na = function() {
2558
2557
  var t = this, n = t._self._c;
2559
2558
  return t._self._setupProxy, n("g", { staticClass: "lume-bar-group", attrs: { "data-j-bars-group": "" } }, t._l(t.groupedData, function(r, a) {
2560
- return n("g", { key: a }, t._l(r, function(o, i) {
2561
- return n("lume-bar", t._b({ key: `bar-${i}`, attrs: { transition: t.computedTransition, "data-j-lume-bar": "" } }, "lume-bar", t.getBarAttributes(o, i, a, r), !1));
2559
+ return n("g", { key: a }, t._l(r, function(o, s) {
2560
+ return n("lume-bar", t._b({ key: `bar-${s}`, attrs: { transition: t.computedTransition, "data-j-lume-bar": "" } }, "lume-bar", t.getBarAttributes(o, s, a, r), !1));
2562
2561
  }), 1);
2563
2562
  }), 0);
2564
- }, ea = [], na = /* @__PURE__ */ L(
2565
- Qr,
2566
- ta,
2563
+ }, ra = [], aa = /* @__PURE__ */ S(
2567
2564
  ea,
2565
+ na,
2566
+ ra,
2568
2567
  !1,
2569
2568
  null,
2570
2569
  null,
2571
2570
  null,
2572
2571
  null
2573
2572
  );
2574
- const kt = na.exports, ra = {
2575
- [A.VERTICAL]: {
2573
+ const St = aa.exports, oa = {
2574
+ [T.VERTICAL]: {
2576
2575
  withTooltip: !0,
2577
2576
  xAxisOptions: {},
2578
2577
  yAxisOptions: { gridLines: !0 },
2579
2578
  margins: Z.VERTICAL
2580
2579
  },
2581
- [A.HORIZONTAL]: {
2580
+ [T.HORIZONTAL]: {
2582
2581
  withTooltip: !0,
2583
2582
  xAxisOptions: { gridLines: !0 },
2584
2583
  yAxisOptions: { gridLines: !1 },
2585
2584
  margins: Z.HORIZONTAL
2586
2585
  }
2587
- }, aa = S({
2588
- components: { LumeChart: Y, LumeBarGroup: kt },
2586
+ }, sa = L({
2587
+ components: { LumeChart: Y, LumeBarGroup: St },
2589
2588
  props: {
2590
- ...V(lt)
2589
+ ...G(ut)
2591
2590
  },
2592
2591
  setup(e, t) {
2593
- const { orientation: n, options: r } = C(e), a = f(
2594
- () => ra[n.value || A.VERTICAL]
2595
- ), { allOptions: o } = F(r, a);
2592
+ const { orientation: n, options: r } = w(e), a = v(
2593
+ () => oa[n.value || T.VERTICAL]
2594
+ ), { allOptions: o } = j(r, a);
2596
2595
  return { allOptions: o, slots: q(t.slots) };
2597
2596
  }
2598
2597
  });
2599
- var oa = function() {
2598
+ var ia = function() {
2600
2599
  var t = this, n = t._self._c;
2601
2600
  return t._self._setupProxy, n("lume-chart", t._b({ attrs: { "chart-type": "single-bar", options: t.allOptions, "data-j-single-bar-chart": "" }, scopedSlots: t._u([{ key: "groups", fn: function(r) {
2602
2601
  return [n("lume-bar-group", t._b({ attrs: { orientation: t.orientation } }, "lume-bar-group", r, !1))];
@@ -2605,43 +2604,43 @@ var oa = function() {
2605
2604
  return [t._t(a, null, null, o || {})];
2606
2605
  } };
2607
2606
  })], null, !0) }, "lume-chart", t.$props, !1));
2608
- }, sa = [], ia = /* @__PURE__ */ L(
2609
- aa,
2610
- oa,
2607
+ }, la = [], ua = /* @__PURE__ */ S(
2611
2608
  sa,
2609
+ ia,
2610
+ la,
2612
2611
  !1,
2613
2612
  null,
2614
2613
  null,
2615
2614
  null,
2616
2615
  null
2617
2616
  );
2618
- const Ha = ia.exports, la = {
2619
- [A.VERTICAL]: {
2617
+ const za = ua.exports, ca = {
2618
+ [T.VERTICAL]: {
2620
2619
  withTooltip: !0,
2621
2620
  xAxisOptions: {},
2622
2621
  yAxisOptions: { gridLines: !0 },
2623
2622
  margins: Z.VERTICAL
2624
2623
  },
2625
- [A.HORIZONTAL]: {
2624
+ [T.HORIZONTAL]: {
2626
2625
  withTooltip: !0,
2627
2626
  xAxisOptions: { gridLines: !0 },
2628
2627
  yAxisOptions: { gridLines: !1 },
2629
2628
  margins: Z.HORIZONTAL,
2630
- tooltipOptions: { position: xt[6] }
2629
+ tooltipOptions: { position: Ot[6] }
2631
2630
  }
2632
- }, ua = S({
2633
- components: { LumeChart: Y, LumeBarGroup: kt },
2631
+ }, da = L({
2632
+ components: { LumeChart: Y, LumeBarGroup: St },
2634
2633
  props: {
2635
- ...V()
2634
+ ...G()
2636
2635
  },
2637
2636
  setup(e, t) {
2638
- const { orientation: n, options: r } = C(e), a = f(
2639
- () => la[n.value || A.VERTICAL]
2640
- ), { allOptions: o } = F(r, a);
2637
+ const { orientation: n, options: r } = w(e), a = v(
2638
+ () => ca[n.value || T.VERTICAL]
2639
+ ), { allOptions: o } = j(r, a);
2641
2640
  return { allOptions: o, slots: q(t.slots) };
2642
2641
  }
2643
2642
  });
2644
- var ca = function() {
2643
+ var fa = function() {
2645
2644
  var t = this, n = t._self._c;
2646
2645
  return t._self._setupProxy, n("lume-chart", t._b({ attrs: { "chart-type": "grouped-bar", options: t.allOptions, "data-j-grouped-bar-chart": "" }, scopedSlots: t._u([{ key: "groups", fn: function(r) {
2647
2646
  return [n("lume-bar-group", t._b({ attrs: { type: "grouped" } }, "lume-bar-group", r, !1))];
@@ -2650,51 +2649,51 @@ var ca = function() {
2650
2649
  return [t._t(a, null, null, o || {})];
2651
2650
  } };
2652
2651
  })], null, !0) }, "lume-chart", t.$props, !1));
2653
- }, da = [], fa = /* @__PURE__ */ L(
2654
- ua,
2655
- ca,
2652
+ }, pa = [], va = /* @__PURE__ */ S(
2656
2653
  da,
2654
+ fa,
2655
+ pa,
2657
2656
  !1,
2658
2657
  null,
2659
2658
  null,
2660
2659
  null,
2661
2660
  null
2662
2661
  );
2663
- const ja = fa.exports, pa = {
2664
- [A.VERTICAL]: {
2662
+ const Wa = va.exports, ha = {
2663
+ [T.VERTICAL]: {
2665
2664
  withTooltip: !0,
2666
2665
  xAxisOptions: {},
2667
2666
  yAxisOptions: { gridLines: !0 },
2668
2667
  margins: Z.VERTICAL
2669
2668
  },
2670
- [A.HORIZONTAL]: {
2669
+ [T.HORIZONTAL]: {
2671
2670
  withTooltip: !0,
2672
2671
  xAxisOptions: { gridLines: !0 },
2673
2672
  yAxisOptions: { gridLines: !1 },
2674
2673
  margins: Z.HORIZONTAL,
2675
- tooltipOptions: { position: xt[6] }
2674
+ tooltipOptions: { position: Ot[6] }
2676
2675
  }
2677
- }, va = S({
2678
- components: { LumeChart: Y, LumeBarGroup: kt },
2676
+ }, _a = L({
2677
+ components: { LumeChart: Y, LumeBarGroup: St },
2679
2678
  props: {
2680
- ...V()
2679
+ ...G()
2681
2680
  },
2682
2681
  setup(e, t) {
2683
- const { data: n, orientation: r, options: a } = C(e), o = f(
2684
- () => pa[r.value || A.VERTICAL]
2685
- ), { allOptions: i } = F(a, o), { internalData: u } = ct(n), { groupedData: s } = Ut(u), { stackedXScaleGenerator: c, stackedYScaleGenerator: h } = Yr(
2686
- s,
2682
+ const { data: n, orientation: r, options: a } = w(e), o = v(
2683
+ () => ha[r.value || T.VERTICAL]
2684
+ ), { allOptions: s } = j(a, o), { internalData: l } = dt(n), { groupedData: i } = Yt(l), { stackedXScaleGenerator: c, stackedYScaleGenerator: h } = Jr(
2685
+ i,
2687
2686
  r
2688
2687
  );
2689
2688
  return {
2690
- allOptions: i,
2689
+ allOptions: s,
2691
2690
  stackedXScaleGenerator: c,
2692
2691
  stackedYScaleGenerator: h,
2693
2692
  slots: q(t.slots)
2694
2693
  };
2695
2694
  }
2696
2695
  });
2697
- var ha = function() {
2696
+ var ma = function() {
2698
2697
  var t = this, n = t._self._c;
2699
2698
  return t._self._setupProxy, n("lume-chart", t._b({ attrs: { "chart-type": "stacked-bar", options: t.allOptions, "x-scale": t.stackedXScaleGenerator, "y-scale": t.stackedYScaleGenerator, "data-j-stacked-bar-chart": "" }, scopedSlots: t._u([{ key: "groups", fn: function(r) {
2700
2699
  return [n("lume-bar-group", t._b({ attrs: { type: "stacked" } }, "lume-bar-group", r, !1))];
@@ -2703,65 +2702,77 @@ var ha = function() {
2703
2702
  return [t._t(a, null, null, o || {})];
2704
2703
  } };
2705
2704
  })], null, !0) }, "lume-chart", t.$props, !1));
2706
- }, _a = [], ma = /* @__PURE__ */ L(
2707
- va,
2708
- ha,
2705
+ }, ga = [], ya = /* @__PURE__ */ S(
2709
2706
  _a,
2707
+ ma,
2708
+ ga,
2710
2709
  !1,
2711
2710
  null,
2712
2711
  null,
2713
2712
  null,
2714
2713
  null
2715
2714
  );
2716
- const Fa = ma.exports;
2717
- function Yt(e) {
2715
+ const Za = ya.exports;
2716
+ function Kt(e) {
2718
2717
  function t(o) {
2719
- let i = null;
2720
- return o == null ? void 0 : o.reduce((u, s, c) => (s == null || s.value == null ? (i ? i.push(c) : i = [c], c === (o == null ? void 0 : o.length) - 1 && u.push(i)) : i && (u.push(i), i = null), u), []);
2718
+ let s = null;
2719
+ return o == null ? void 0 : o.reduce((l, i, c) => (i == null || i.value == null ? (s ? s.push(c) : s = [c], c === (o == null ? void 0 : o.length) - 1 && l.push(s)) : s && (l.push(s), s = null), l), []);
2721
2720
  }
2722
- function n(o, i, u, s) {
2723
- const l = Math.abs(o - i) / (u + 1) * (s + 1);
2724
- return o > i ? o - l : o + l;
2721
+ function n(o, s, l, i) {
2722
+ const u = Math.abs(o - s) / (l + 1) * (i + 1);
2723
+ return o > s ? o - u : o + u;
2725
2724
  }
2726
2725
  function r(o) {
2727
- return function(u) {
2726
+ return function(l) {
2728
2727
  return !!o.find(
2729
- (s) => s.includes(u) || s.includes(u - 1)
2728
+ (i) => i.includes(l) || i.includes(l - 1)
2730
2729
  );
2731
2730
  };
2732
2731
  }
2733
- return { computedLineData: f(() => e.value.map((o) => {
2734
- const i = t(o.values);
2732
+ return { computedLineData: v(() => e.value.map((o) => {
2733
+ const s = t(o.values);
2735
2734
  return {
2736
2735
  ...o,
2737
- isDashed: r(i),
2738
- values: o.values.map((u, s) => {
2739
- var h, l;
2740
- const c = i.find(
2741
- (v) => v.includes(s)
2736
+ isDashed: r(s),
2737
+ values: o.values.map((l, i) => {
2738
+ var h, u;
2739
+ const c = s.find(
2740
+ (f) => f.includes(i)
2742
2741
  );
2743
2742
  if (c) {
2744
- const v = c[0] - 1, p = c[c.length - 1] + 1;
2745
- let d = (h = o.values[v]) == null ? void 0 : h.value, _ = (l = o.values[p]) == null ? void 0 : l.value;
2743
+ const f = c[0] - 1, p = c[c.length - 1] + 1;
2744
+ let d = (h = o.values[f]) == null ? void 0 : h.value, _ = (u = o.values[p]) == null ? void 0 : u.value;
2746
2745
  return d == null && (d = _), _ == null && (_ = d), {
2747
2746
  value: n(
2748
2747
  d,
2749
2748
  _,
2750
2749
  c.length,
2751
- c.indexOf(s)
2750
+ c.indexOf(i)
2752
2751
  ),
2753
- label: jt
2752
+ label: Ft
2754
2753
  };
2755
2754
  }
2756
- return u;
2755
+ return l;
2757
2756
  })
2758
2757
  };
2759
2758
  })) };
2760
2759
  }
2761
- const ga = S({
2762
- components: { LumeLine: Wn, LumePoint: Kn },
2760
+ function ba(e, t) {
2761
+ const n = $t(e) / 2;
2762
+ return (r, a) => e(e.domain()[t + (a - 1)]) + n;
2763
+ }
2764
+ function xa(e, t) {
2765
+ return (n, r) => e(t + (r - 1));
2766
+ }
2767
+ function Ta(e, t, n, r) {
2768
+ return fe().x(
2769
+ U(n) ? ba(n, e) : xa(n, e)
2770
+ ).y((o) => r(o))(t);
2771
+ }
2772
+ const Aa = L({
2773
+ components: { LumeLine: qn, LumePoint: Qn },
2763
2774
  props: {
2764
- ...$t(),
2775
+ ...Lt(),
2765
2776
  withPoints: {
2766
2777
  type: Boolean,
2767
2778
  default: !0
@@ -2772,85 +2783,94 @@ const ga = S({
2772
2783
  }
2773
2784
  },
2774
2785
  setup(e) {
2775
- const { data: t, options: n, xScale: r, yScale: a } = C(e), o = f(() => {
2776
- if (t.value.every((v) => v.isDashed))
2786
+ const { data: t, options: n, xScale: r, yScale: a } = w(e), o = v(() => {
2787
+ if (t.value.every((p) => p.isDashed))
2777
2788
  return t.value;
2778
- const { computedLineData: l } = Yt(t);
2779
- return l.value;
2780
- }), i = f(() => {
2789
+ const { computedLineData: f } = Kt(t);
2790
+ return f.value;
2791
+ }), s = v(() => {
2781
2792
  if (e.hoveredIndex === -1)
2782
2793
  return;
2783
- const l = Vt(t.value, e.hoveredIndex);
2794
+ const f = Gt(t.value, e.hoveredIndex);
2784
2795
  return {
2785
- d: `M ${mt(r.value, e.hoveredIndex)},${a.value.range()[1]}
2786
- V ${a.value(l)}`
2796
+ d: `M ${gt(r.value, e.hoveredIndex)},${a.value.range()[1]}
2797
+ V ${a.value(f)}`
2787
2798
  };
2788
- }), u = f(
2799
+ }), l = v(
2789
2800
  () => {
2790
- var l;
2791
- return ((l = n.value) == null ? void 0 : l.lineWidth) * 2 || void 0;
2801
+ var f;
2802
+ return ((f = n.value) == null ? void 0 : f.lineWidth) * 2 || void 0;
2792
2803
  }
2793
2804
  );
2794
- function s(l, v) {
2795
- var p, d;
2796
- return l === 0 ? [] : [
2797
- (p = v[l - 1]) == null ? void 0 : p.value,
2798
- (d = v[l]) == null ? void 0 : d.value
2805
+ function i(f) {
2806
+ return o.value[f].values;
2807
+ }
2808
+ function c(f, p) {
2809
+ var _, y;
2810
+ const d = f === 0 ? [] : [
2811
+ (_ = i(p)[f - 1]) == null ? void 0 : _.value,
2812
+ (y = i(p)[f]) == null ? void 0 : y.value
2799
2813
  ];
2814
+ return Ta(
2815
+ f,
2816
+ d,
2817
+ r.value,
2818
+ a.value
2819
+ ) || "";
2800
2820
  }
2801
- function c(l, v) {
2802
- var p;
2803
- return (p = v[l]) == null ? void 0 : p.value;
2821
+ function h(f, p) {
2822
+ var d;
2823
+ return (d = i(p)[f]) == null ? void 0 : d.value;
2804
2824
  }
2805
- function h(l) {
2806
- return e.hoveredIndex === l;
2825
+ function u(f) {
2826
+ return e.hoveredIndex === f;
2807
2827
  }
2808
2828
  return {
2809
2829
  computedGroupData: o,
2810
- getLineValues: s,
2811
- getPointValue: c,
2812
- isPointActive: h,
2813
- overlayLineAttributes: i,
2814
- pointRadius: u
2830
+ getPathDefinition: c,
2831
+ getPointValue: h,
2832
+ isPointActive: u,
2833
+ overlayLineAttributes: s,
2834
+ pointRadius: l
2815
2835
  };
2816
2836
  }
2817
2837
  });
2818
- var ya = function() {
2838
+ var Oa = function() {
2819
2839
  var t = this, n = t._self._c;
2820
- return t._self._setupProxy, n("g", { staticClass: "lume-line-group", attrs: { "data-j-lume-line-group": "" } }, [n("path", t._b({ staticClass: "lume-line-group__overlay-line", attrs: { "data-j-lume-line-group__overlay-line": "" } }, "path", t.overlayLineAttributes, !1)), t._l(t.computedGroupData, function(r) {
2821
- return n("g", { key: r.label, staticClass: "lume-line-group__group" }, [n("g", { staticClass: "lume-line-group__lines" }, t._l(r.values, function(a, o) {
2822
- return n("lume-line", { key: `line-${o}`, attrs: { color: r.color, dashed: r.isDashed(o), index: o, transition: t.transition, values: t.getLineValues(o, r.values), width: t.options.lineWidth, "x-scale": t.xScale, "y-scale": t.yScale } });
2823
- }), 1), t.withPoints ? n("g", { staticClass: "lume-line-group__points", attrs: { "data-j-lume-line-group__points": "" } }, t._l(r.values, function(a, o) {
2824
- return n("lume-point", { key: `point-${o}`, attrs: { active: t.isPointActive(o), color: r.color, index: o, radius: t.pointRadius, value: t.getPointValue(o, r.values), "x-scale": t.xScale, "y-scale": t.yScale } });
2840
+ return t._self._setupProxy, n("g", { staticClass: "lume-line-group", attrs: { "data-j-lume-line-group": "" } }, [n("path", t._b({ staticClass: "lume-line-group__overlay-line", attrs: { "data-j-lume-line-group__overlay-line": "" } }, "path", t.overlayLineAttributes, !1)), t._l(t.computedGroupData, function(r, a) {
2841
+ return n("g", { key: r.label, staticClass: "lume-line-group__group" }, [n("g", { staticClass: "lume-line-group__lines" }, t._l(r.values, function(o, s) {
2842
+ return n("lume-line", { key: `line-${s}`, attrs: { "path-definition": t.getPathDefinition(s, a), color: r.color, dashed: r.isDashed(s), index: s, transition: t.transition, width: t.options.lineWidth, "x-scale": t.xScale } });
2843
+ }), 1), t.withPoints ? n("g", { staticClass: "lume-line-group__points", attrs: { "data-j-lume-line-group__points": "" } }, t._l(r.values, function(o, s) {
2844
+ return n("lume-point", { key: `point-${s}`, attrs: { active: t.isPointActive(s), color: r.color, index: s, radius: t.pointRadius, value: t.getPointValue(s, a), "x-scale": t.xScale, "y-scale": t.yScale } });
2825
2845
  }), 1) : t._e()]);
2826
2846
  })], 2);
2827
- }, ba = [], xa = /* @__PURE__ */ L(
2828
- ga,
2829
- ya,
2830
- ba,
2847
+ }, $a = [], ka = /* @__PURE__ */ S(
2848
+ Aa,
2849
+ Oa,
2850
+ $a,
2831
2851
  !1,
2832
2852
  null,
2833
- "0aa3a767",
2853
+ "10fed727",
2834
2854
  null,
2835
2855
  null
2836
2856
  );
2837
- const Kt = xa.exports, Aa = {
2857
+ const Jt = ka.exports, La = {
2838
2858
  margins: Z.VERTICAL,
2839
2859
  startOnZero: !0,
2840
2860
  withTooltip: !0,
2841
2861
  xAxisOptions: {},
2842
2862
  yAxisOptions: { gridLines: !0 }
2843
- }, Oa = S({
2844
- components: { LumeChart: Y, LumeLineGroup: Kt },
2863
+ }, Sa = L({
2864
+ components: { LumeChart: Y, LumeLineGroup: Jt },
2845
2865
  props: {
2846
- ...V(null, !1)
2866
+ ...G(null, !1)
2847
2867
  },
2848
2868
  setup(e, t) {
2849
- const { options: n } = C(e), { allOptions: r } = F(n, Aa);
2869
+ const { options: n } = w(e), { allOptions: r } = j(n, La);
2850
2870
  return { allOptions: r, slots: q(t.slots) };
2851
2871
  }
2852
2872
  });
2853
- var Ta = function() {
2873
+ var wa = function() {
2854
2874
  var t = this, n = t._self._c;
2855
2875
  return t._self._setupProxy, n("lume-chart", t._b({ attrs: { "chart-type": "line", options: t.allOptions, "data-j-lume-line-chart": "" }, scopedSlots: t._u([{ key: "groups", fn: function(r) {
2856
2876
  return [n("lume-line-group", t._b({}, "lume-line-group", r, !1))];
@@ -2859,28 +2879,28 @@ var Ta = function() {
2859
2879
  return [t._t(a, null, null, o || {})];
2860
2880
  } };
2861
2881
  })], null, !0) }, "lume-chart", t.$props, !1));
2862
- }, $a = [], ka = /* @__PURE__ */ L(
2863
- Oa,
2864
- Ta,
2865
- $a,
2882
+ }, Ca = [], Ia = /* @__PURE__ */ S(
2883
+ Sa,
2884
+ wa,
2885
+ Ca,
2866
2886
  !1,
2867
2887
  null,
2868
2888
  null,
2869
2889
  null,
2870
2890
  null
2871
2891
  );
2872
- const Ga = ka.exports;
2873
- function Sa(e) {
2874
- return { areaPathDefinition: f(
2892
+ const qa = Ia.exports;
2893
+ function Na(e) {
2894
+ return { areaPathDefinition: v(
2875
2895
  () => function(n, r) {
2876
2896
  if (!n || !r)
2877
2897
  return;
2878
2898
  const a = e.value[0].values;
2879
- return de().x((o, i) => n(i)).y0(r(Math.min(...r.domain()))).y1((o) => r(o.value))(a);
2899
+ return pe().x((o, s) => n(s)).y0(r(Math.min(...r.domain()))).y1((o) => r(o.value))(a);
2880
2900
  }
2881
2901
  ) };
2882
2902
  }
2883
- const La = {
2903
+ const Da = {
2884
2904
  margins: {
2885
2905
  top: 0,
2886
2906
  right: 0,
@@ -2894,37 +2914,37 @@ const La = {
2894
2914
  tooltipOptions: {
2895
2915
  showTitle: !1
2896
2916
  }
2897
- }, wa = S({
2898
- components: { LumeChart: Y, LumeLineGroup: Kt },
2917
+ }, Ra = L({
2918
+ components: { LumeChart: Y, LumeLineGroup: Jt },
2899
2919
  props: {
2900
2920
  ...Wt(null),
2901
- ...dt()
2921
+ ...ft()
2902
2922
  },
2903
2923
  setup(e, t) {
2904
- const { data: n, options: r } = C(e), { internalData: a } = ct(n), { allOptions: o } = F(r, La), { computedLineData: i } = Yt(a), { areaPathDefinition: u } = Sa(i), s = f(() => a.value[0].color), c = f(
2905
- () => n.value[0].areaColor || s.value
2924
+ const { data: n, options: r } = w(e), { internalData: a } = dt(n), { allOptions: o } = j(r, Da), { computedLineData: s } = Kt(a), { areaPathDefinition: l } = Na(s), i = v(() => a.value[0].color), c = v(
2925
+ () => n.value[0].areaColor || i.value
2906
2926
  );
2907
- function h(v) {
2927
+ function h(f) {
2908
2928
  return {
2909
- ...v,
2929
+ ...f,
2910
2930
  noMinSize: !0
2911
2931
  };
2912
2932
  }
2913
- function l(v, p, d) {
2914
- return Q().range([0, d.width]).domain([0, v[0].values.length - 1]);
2933
+ function u(f, p, d) {
2934
+ return Q().range([0, d.width]).domain([0, f[0].values.length - 1]);
2915
2935
  }
2916
2936
  return {
2917
2937
  allOptions: o,
2918
2938
  areaColor: c,
2919
- areaPathDefinition: u,
2920
- computedColor: s,
2939
+ areaPathDefinition: l,
2940
+ computedColor: i,
2921
2941
  getSparklineOptions: h,
2922
- xScaleGenerator: l,
2942
+ xScaleGenerator: u,
2923
2943
  slots: q(t.slots)
2924
2944
  };
2925
2945
  }
2926
2946
  });
2927
- var Ca = function() {
2947
+ var Pa = function() {
2928
2948
  var t = this, n = t._self._c;
2929
2949
  return t._self._setupProxy, n("lume-chart", t._b({ attrs: { "chart-type": "line", options: t.getSparklineOptions(t.allOptions), "x-scale": t.xScaleGenerator }, scopedSlots: t._u([{ key: "groups", fn: function(r) {
2930
2950
  return [t.allOptions.showArea ? n("path", { class: [
@@ -2937,36 +2957,36 @@ var Ca = function() {
2937
2957
  return [t._t(a, null, null, o || {})];
2938
2958
  } };
2939
2959
  })], null, !0) }, "lume-chart", t.$props, !1));
2940
- }, Ia = [], Na = /* @__PURE__ */ L(
2941
- wa,
2942
- Ca,
2943
- Ia,
2960
+ }, Ea = [], Ba = /* @__PURE__ */ S(
2961
+ Ra,
2962
+ Pa,
2963
+ Ea,
2944
2964
  !1,
2945
2965
  null,
2946
2966
  "76a94ce0",
2947
2967
  null,
2948
2968
  null
2949
2969
  );
2950
- const Va = Na.exports;
2970
+ const Xa = Ba.exports;
2951
2971
  export {
2952
- hn as L,
2953
- Ma as a,
2954
- Ha as b,
2955
- ja as c,
2956
- Fa as d,
2957
- Ga as e,
2958
- Va as f,
2972
+ mn as L,
2973
+ Ga as a,
2974
+ za as b,
2975
+ Wa as c,
2976
+ Za as d,
2977
+ qa as e,
2978
+ Xa as f,
2959
2979
  Y as g,
2960
- An as h,
2961
- Sn as i,
2962
- Nn as j,
2963
- Tt as k,
2964
- Ba as l,
2965
- Wn as m,
2966
- Kn as n,
2967
- Nr as o,
2968
- kt as p,
2969
- Kt as q,
2970
- nr as r
2980
+ On as h,
2981
+ wn as i,
2982
+ Rn as j,
2983
+ kt as k,
2984
+ Va as l,
2985
+ qn as m,
2986
+ Qn as n,
2987
+ Rr as o,
2988
+ St as p,
2989
+ Jt as q,
2990
+ ar as r
2971
2991
  };
2972
- //# sourceMappingURL=df7327e8.js.map
2992
+ //# sourceMappingURL=6ff56de1.js.map