@mozaic-ds/chart 0.1.0-beta.38 → 0.1.0-beta.39

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,7 +1,7 @@
1
1
  var Oa = Object.defineProperty;
2
2
  var Ia = (i, t, e) => t in i ? Oa(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var w = (i, t, e) => (Ia(i, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { version as Fa, defineComponent as Et, ref as q, shallowRef as po, onMounted as Ra, onBeforeUnmount as Ea, watch as vi, toRaw as tn, h as mo, isProxy as bo, reactive as yo, computed as R, openBlock as rt, createElementBlock as Xt, createElementVNode as ot, createBlock as he, unref as Ot, normalizeClass as de, normalizeStyle as qt, createCommentVNode as Gt, toDisplayString as xo } from "vue";
4
+ import { version as Fa, defineComponent as zt, ref as G, shallowRef as po, onMounted as Ra, onBeforeUnmount as Ea, watch as vi, toRaw as tn, h as mo, isProxy as bo, reactive as yo, computed as E, openBlock as st, createElementBlock as Ot, createElementVNode as rt, createBlock as he, unref as It, normalizeClass as de, normalizeStyle as Gt, createCommentVNode as Ft, toDisplayString as xo } from "vue";
5
5
  /*!
6
6
  * @kurkle/color v0.3.2
7
7
  * https://github.com/kurkle/color#readme
@@ -441,10 +441,10 @@ const or = (() => {
441
441
  let i = 0;
442
442
  return () => i++;
443
443
  })();
444
- function F(i) {
444
+ function R(i) {
445
445
  return i === null || typeof i > "u";
446
446
  }
447
- function N(i) {
447
+ function W(i) {
448
448
  if (Array.isArray && Array.isArray(i))
449
449
  return !0;
450
450
  const t = Object.prototype.toString.call(i);
@@ -453,11 +453,11 @@ function N(i) {
453
453
  function O(i) {
454
454
  return i !== null && Object.prototype.toString.call(i) === "[object Object]";
455
455
  }
456
- function G(i) {
456
+ function K(i) {
457
457
  return (typeof i == "number" || i instanceof Number) && isFinite(+i);
458
458
  }
459
459
  function dt(i, t) {
460
- return G(i) ? i : t;
460
+ return K(i) ? i : t;
461
461
  }
462
462
  function A(i, t) {
463
463
  return typeof i > "u" ? t : i;
@@ -467,9 +467,9 @@ function z(i, t, e) {
467
467
  if (i && typeof i.call == "function")
468
468
  return i.apply(e, t);
469
469
  }
470
- function E(i, t, e, n) {
470
+ function B(i, t, e, n) {
471
471
  let s, o, a;
472
- if (N(i))
472
+ if (W(i))
473
473
  if (o = i.length, n)
474
474
  for (s = o - 1; s >= 0; s--)
475
475
  t.call(e, i[s], s);
@@ -490,7 +490,7 @@ function Si(i, t) {
490
490
  return !0;
491
491
  }
492
492
  function Mi(i) {
493
- if (N(i))
493
+ if (W(i))
494
494
  return i.map(Mi);
495
495
  if (O(i)) {
496
496
  const t = /* @__PURE__ */ Object.create(null), e = Object.keys(i), n = e.length;
@@ -515,7 +515,7 @@ function rr(i, t, e, n) {
515
515
  O(s) && O(o) ? bt(s, o, n) : t[i] = Mi(o);
516
516
  }
517
517
  function bt(i, t, e) {
518
- const n = N(t) ? t : [
518
+ const n = W(t) ? t : [
519
519
  t
520
520
  ], s = n.length;
521
521
  if (!O(i))
@@ -568,13 +568,13 @@ function hr(i) {
568
568
  return e;
569
569
  };
570
570
  }
571
- function It(i, t) {
571
+ function Rt(i, t) {
572
572
  return ($n[t] || ($n[t] = hr(t)))(i);
573
573
  }
574
574
  function Sn(i) {
575
575
  return i.charAt(0).toUpperCase() + i.slice(1);
576
576
  }
577
- const Ve = (i) => typeof i < "u", Ft = (i) => typeof i == "function", Un = (i, t) => {
577
+ const Ve = (i) => typeof i < "u", Et = (i) => typeof i == "function", Un = (i, t) => {
578
578
  if (i.size !== t.size)
579
579
  return !1;
580
580
  for (const e of i)
@@ -585,7 +585,7 @@ const Ve = (i) => typeof i < "u", Ft = (i) => typeof i == "function", Un = (i, t
585
585
  function dr(i) {
586
586
  return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu";
587
587
  }
588
- const V = Math.PI, W = 2 * V, ur = W + V, ki = Number.POSITIVE_INFINITY, fr = V / 180, U = V / 2, zt = V / 4, Yn = V * 2 / 3, nn = Math.log10, mt = Math.sign;
588
+ const $ = Math.PI, H = 2 * $, ur = H + $, ki = Number.POSITIVE_INFINITY, fr = $ / 180, Y = $ / 2, Wt = $ / 4, Yn = $ * 2 / 3, nn = Math.log10, mt = Math.sign;
589
589
  function Ee(i, t, e) {
590
590
  return Math.abs(i - t) < e;
591
591
  }
@@ -615,13 +615,13 @@ function mr(i, t, e) {
615
615
  o = i[n][e], isNaN(o) || (t.min = Math.min(t.min, o), t.max = Math.max(t.max, o));
616
616
  }
617
617
  function gt(i) {
618
- return i * (V / 180);
618
+ return i * ($ / 180);
619
619
  }
620
620
  function Mn(i) {
621
- return i * (180 / V);
621
+ return i * (180 / $);
622
622
  }
623
623
  function qn(i) {
624
- if (!G(i))
624
+ if (!K(i))
625
625
  return;
626
626
  let t = 1, e = 0;
627
627
  for (; Math.round(i * t) / t !== i; )
@@ -631,7 +631,7 @@ function qn(i) {
631
631
  function wo(i, t) {
632
632
  const e = t.x - i.x, n = t.y - i.y, s = Math.sqrt(e * e + n * n);
633
633
  let o = Math.atan2(n, e);
634
- return o < -0.5 * V && (o += W), {
634
+ return o < -0.5 * $ && (o += H), {
635
635
  angle: o,
636
636
  distance: s
637
637
  };
@@ -640,10 +640,10 @@ function sn(i, t) {
640
640
  return Math.sqrt(Math.pow(t.x - i.x, 2) + Math.pow(t.y - i.y, 2));
641
641
  }
642
642
  function br(i, t) {
643
- return (i - t + ur) % W - V;
643
+ return (i - t + ur) % H - $;
644
644
  }
645
645
  function at(i) {
646
- return (i % W + W) % W;
646
+ return (i % H + H) % H;
647
647
  }
648
648
  function $e(i, t, e, n) {
649
649
  const s = at(i), o = at(t), a = at(e), r = at(o - s), l = at(a - s), c = at(s - o), h = at(s - a);
@@ -668,7 +668,7 @@ function kn(i, t, e) {
668
668
  hi: n
669
669
  };
670
670
  }
671
- const $t = (i, t, e, n) => kn(i, e, n ? (s) => {
671
+ const Yt = (i, t, e, n) => kn(i, e, n ? (s) => {
672
672
  const o = i[s][t];
673
673
  return o < e || o === e && i[s + 1][t] === e;
674
674
  } : (s) => i[s][t] < e), xr = (i, t, e) => kn(i, e, (n) => i[n][t] >= e);
@@ -754,14 +754,14 @@ function kr(i, t, e) {
754
754
  const { iScale: a, _parsed: r } = i, l = a.axis, { min: c, max: h, minDefined: d, maxDefined: u } = a.getUserBounds();
755
755
  d && (s = Q(Math.min(
756
756
  // @ts-expect-error Need to type _parsed
757
- $t(r, l, c).lo,
757
+ Yt(r, l, c).lo,
758
758
  // @ts-expect-error Need to fix types on _lookupByKey
759
- e ? n : $t(t, l, a.getPixelForValue(c)).lo
759
+ e ? n : Yt(t, l, a.getPixelForValue(c)).lo
760
760
  ), 0, n - 1)), u ? o = Q(Math.max(
761
761
  // @ts-expect-error Need to type _parsed
762
- $t(r, a.axis, h, !0).hi + 1,
762
+ Yt(r, a.axis, h, !0).hi + 1,
763
763
  // @ts-expect-error Need to fix types on _lookupByKey
764
- e ? 0 : $t(t, l, a.getPixelForValue(h), !0).hi + 1
764
+ e ? 0 : Yt(t, l, a.getPixelForValue(h), !0).hi + 1
765
765
  ), s, n) - s : o = n - s;
766
766
  }
767
767
  return {
@@ -781,7 +781,7 @@ function wr(i) {
781
781
  const o = n.xmin !== t.min || n.xmax !== t.max || n.ymin !== e.min || n.ymax !== e.max;
782
782
  return Object.assign(n, s), o;
783
783
  }
784
- const ei = (i) => i === 0 || i === 1, Kn = (i, t, e) => -(Math.pow(2, 10 * (i -= 1)) * Math.sin((i - t) * W / e)), Zn = (i, t, e) => Math.pow(2, -10 * i) * Math.sin((i - t) * W / e) + 1, Be = {
784
+ const ei = (i) => i === 0 || i === 1, Kn = (i, t, e) => -(Math.pow(2, 10 * (i -= 1)) * Math.sin((i - t) * H / e)), Zn = (i, t, e) => Math.pow(2, -10 * i) * Math.sin((i - t) * H / e) + 1, Be = {
785
785
  linear: (i) => i,
786
786
  easeInQuad: (i) => i * i,
787
787
  easeOutQuad: (i) => -i * (i - 2),
@@ -795,9 +795,9 @@ const ei = (i) => i === 0 || i === 1, Kn = (i, t, e) => -(Math.pow(2, 10 * (i -=
795
795
  easeInQuint: (i) => i * i * i * i * i,
796
796
  easeOutQuint: (i) => (i -= 1) * i * i * i * i + 1,
797
797
  easeInOutQuint: (i) => (i /= 0.5) < 1 ? 0.5 * i * i * i * i * i : 0.5 * ((i -= 2) * i * i * i * i + 2),
798
- easeInSine: (i) => -Math.cos(i * U) + 1,
799
- easeOutSine: (i) => Math.sin(i * U),
800
- easeInOutSine: (i) => -0.5 * (Math.cos(V * i) - 1),
798
+ easeInSine: (i) => -Math.cos(i * Y) + 1,
799
+ easeOutSine: (i) => Math.sin(i * Y),
800
+ easeInOutSine: (i) => -0.5 * (Math.cos($ * i) - 1),
801
801
  easeInExpo: (i) => i === 0 ? 0 : Math.pow(2, 10 * (i - 1)),
802
802
  easeOutExpo: (i) => i === 1 ? 1 : -Math.pow(2, -10 * i) + 1,
803
803
  easeInOutExpo: (i) => ei(i) ? i : i < 0.5 ? 0.5 * Math.pow(2, 10 * (i * 2 - 1)) : 0.5 * (-Math.pow(2, -10 * (i * 2 - 1)) + 2),
@@ -933,7 +933,7 @@ function Pn(i, t, e) {
933
933
  }
934
934
  const Lo = {
935
935
  values(i) {
936
- return N(i) ? i : "" + i;
936
+ return W(i) ? i : "" + i;
937
937
  },
938
938
  numeric(i, t, e) {
939
939
  if (i === 0)
@@ -1105,7 +1105,7 @@ class Ir {
1105
1105
  t.forEach((e) => e(this));
1106
1106
  }
1107
1107
  }
1108
- var $ = /* @__PURE__ */ new Ir({
1108
+ var U = /* @__PURE__ */ new Ir({
1109
1109
  _scriptable: (i) => !i.startsWith("on"),
1110
1110
  _indexable: (i) => i !== "events",
1111
1111
  hover: {
@@ -1121,7 +1121,7 @@ var $ = /* @__PURE__ */ new Ir({
1121
1121
  Or
1122
1122
  ]);
1123
1123
  function Fr(i) {
1124
- return !i || F(i.size) || F(i.family) ? null : (i.style ? i.style + " " : "") + (i.weight ? i.weight + " " : "") + i.size + "px " + i.family;
1124
+ return !i || R(i.size) || R(i.family) ? null : (i.style ? i.style + " " : "") + (i.weight ? i.weight + " " : "") + i.size + "px " + i.family;
1125
1125
  }
1126
1126
  function wi(i, t, e, n, s) {
1127
1127
  let o = t[s];
@@ -1135,11 +1135,11 @@ function Rr(i, t, e, n) {
1135
1135
  const r = e.length;
1136
1136
  let l, c, h, d, u;
1137
1137
  for (l = 0; l < r; l++)
1138
- if (d = e[l], d != null && !N(d))
1138
+ if (d = e[l], d != null && !W(d))
1139
1139
  a = wi(i, s, o, a, d);
1140
- else if (N(d))
1140
+ else if (W(d))
1141
1141
  for (c = 0, h = d.length; c < h; c++)
1142
- u = d[c], u != null && !N(u) && (a = wi(i, s, o, a, u));
1142
+ u = d[c], u != null && !W(u) && (a = wi(i, s, o, a, u));
1143
1143
  i.restore();
1144
1144
  const f = o.length / 2;
1145
1145
  if (f > e.length) {
@@ -1149,7 +1149,7 @@ function Rr(i, t, e, n) {
1149
1149
  }
1150
1150
  return a;
1151
1151
  }
1152
- function Nt(i, t, e) {
1152
+ function Ht(i, t, e) {
1153
1153
  const n = i.currentDevicePixelRatio, s = e !== 0 ? Math.max(e / 2, 0.5) : 0;
1154
1154
  return Math.round((t - s) * n) / n + s;
1155
1155
  }
@@ -1170,30 +1170,30 @@ function To(i, t, e, n, s) {
1170
1170
  if (!(isNaN(g) || g <= 0)) {
1171
1171
  switch (i.beginPath(), f) {
1172
1172
  default:
1173
- s ? i.ellipse(e, n, s / 2, g, 0, 0, W) : i.arc(e, n, g, 0, W), i.closePath();
1173
+ s ? i.ellipse(e, n, s / 2, g, 0, 0, H) : i.arc(e, n, g, 0, H), i.closePath();
1174
1174
  break;
1175
1175
  case "triangle":
1176
1176
  h = s ? s / 2 : g, i.moveTo(e + Math.sin(p) * h, n - Math.cos(p) * g), p += Yn, i.lineTo(e + Math.sin(p) * h, n - Math.cos(p) * g), p += Yn, i.lineTo(e + Math.sin(p) * h, n - Math.cos(p) * g), i.closePath();
1177
1177
  break;
1178
1178
  case "rectRounded":
1179
- c = g * 0.516, l = g - c, a = Math.cos(p + zt) * l, d = Math.cos(p + zt) * (s ? s / 2 - c : l), r = Math.sin(p + zt) * l, u = Math.sin(p + zt) * (s ? s / 2 - c : l), i.arc(e - d, n - r, c, p - V, p - U), i.arc(e + u, n - a, c, p - U, p), i.arc(e + d, n + r, c, p, p + U), i.arc(e - u, n + a, c, p + U, p + V), i.closePath();
1179
+ c = g * 0.516, l = g - c, a = Math.cos(p + Wt) * l, d = Math.cos(p + Wt) * (s ? s / 2 - c : l), r = Math.sin(p + Wt) * l, u = Math.sin(p + Wt) * (s ? s / 2 - c : l), i.arc(e - d, n - r, c, p - $, p - Y), i.arc(e + u, n - a, c, p - Y, p), i.arc(e + d, n + r, c, p, p + Y), i.arc(e - u, n + a, c, p + Y, p + $), i.closePath();
1180
1180
  break;
1181
1181
  case "rect":
1182
1182
  if (!m) {
1183
1183
  l = Math.SQRT1_2 * g, h = s ? s / 2 : l, i.rect(e - h, n - l, 2 * h, 2 * l);
1184
1184
  break;
1185
1185
  }
1186
- p += zt;
1186
+ p += Wt;
1187
1187
  case "rectRot":
1188
1188
  d = Math.cos(p) * (s ? s / 2 : g), a = Math.cos(p) * g, r = Math.sin(p) * g, u = Math.sin(p) * (s ? s / 2 : g), i.moveTo(e - d, n - r), i.lineTo(e + u, n - a), i.lineTo(e + d, n + r), i.lineTo(e - u, n + a), i.closePath();
1189
1189
  break;
1190
1190
  case "crossRot":
1191
- p += zt;
1191
+ p += Wt;
1192
1192
  case "cross":
1193
1193
  d = Math.cos(p) * (s ? s / 2 : g), a = Math.cos(p) * g, r = Math.sin(p) * g, u = Math.sin(p) * (s ? s / 2 : g), i.moveTo(e - d, n - r), i.lineTo(e + d, n + r), i.moveTo(e + u, n - a), i.lineTo(e - u, n + a);
1194
1194
  break;
1195
1195
  case "star":
1196
- d = Math.cos(p) * (s ? s / 2 : g), a = Math.cos(p) * g, r = Math.sin(p) * g, u = Math.sin(p) * (s ? s / 2 : g), i.moveTo(e - d, n - r), i.lineTo(e + d, n + r), i.moveTo(e + u, n - a), i.lineTo(e - u, n + a), p += zt, d = Math.cos(p) * (s ? s / 2 : g), a = Math.cos(p) * g, r = Math.sin(p) * g, u = Math.sin(p) * (s ? s / 2 : g), i.moveTo(e - d, n - r), i.lineTo(e + d, n + r), i.moveTo(e + u, n - a), i.lineTo(e - u, n + a);
1196
+ d = Math.cos(p) * (s ? s / 2 : g), a = Math.cos(p) * g, r = Math.sin(p) * g, u = Math.sin(p) * (s ? s / 2 : g), i.moveTo(e - d, n - r), i.lineTo(e + d, n + r), i.moveTo(e + u, n - a), i.lineTo(e - u, n + a), p += Wt, d = Math.cos(p) * (s ? s / 2 : g), a = Math.cos(p) * g, r = Math.sin(p) * g, u = Math.sin(p) * (s ? s / 2 : g), i.moveTo(e - d, n - r), i.lineTo(e + d, n + r), i.moveTo(e + u, n - a), i.lineTo(e - u, n + a);
1197
1197
  break;
1198
1198
  case "line":
1199
1199
  a = s ? s / 2 : Math.cos(p) * g, r = Math.sin(p) * g, i.moveTo(e - a, n - r), i.lineTo(e + a, n + r);
@@ -1233,7 +1233,7 @@ function Br(i, t, e, n) {
1233
1233
  i.bezierCurveTo(n ? t.cp1x : t.cp2x, n ? t.cp1y : t.cp2y, n ? e.cp2x : e.cp1x, n ? e.cp2y : e.cp1y, e.x, e.y);
1234
1234
  }
1235
1235
  function zr(i, t) {
1236
- t.translation && i.translate(t.translation[0], t.translation[1]), F(t.rotation) || i.rotate(t.rotation), t.color && (i.fillStyle = t.color), t.textAlign && (i.textAlign = t.textAlign), t.textBaseline && (i.textBaseline = t.textBaseline);
1236
+ t.translation && i.translate(t.translation[0], t.translation[1]), R(t.rotation) || i.rotate(t.rotation), t.color && (i.fillStyle = t.color), t.textAlign && (i.textAlign = t.textAlign), t.textBaseline && (i.textBaseline = t.textBaseline);
1237
1237
  }
1238
1238
  function Nr(i, t, e, n, s) {
1239
1239
  if (s.strikethrough || s.underline) {
@@ -1246,17 +1246,17 @@ function Wr(i, t) {
1246
1246
  i.fillStyle = t.color, i.fillRect(t.left, t.top, t.width, t.height), i.fillStyle = e;
1247
1247
  }
1248
1248
  function Zt(i, t, e, n, s, o = {}) {
1249
- const a = N(t) ? t : [
1249
+ const a = W(t) ? t : [
1250
1250
  t
1251
1251
  ], r = o.strokeWidth > 0 && o.strokeColor !== "";
1252
1252
  let l, c;
1253
1253
  for (i.save(), i.font = s.string, zr(i, o), l = 0; l < a.length; ++l)
1254
- c = a[l], o.backdrop && Wr(i, o.backdrop), r && (o.strokeColor && (i.strokeStyle = o.strokeColor), F(o.strokeWidth) || (i.lineWidth = o.strokeWidth), i.strokeText(c, e, n, o.maxWidth)), i.fillText(c, e, n, o.maxWidth), Nr(i, e, n, c, o), n += Number(s.lineHeight);
1254
+ c = a[l], o.backdrop && Wr(i, o.backdrop), r && (o.strokeColor && (i.strokeStyle = o.strokeColor), R(o.strokeWidth) || (i.lineWidth = o.strokeWidth), i.strokeText(c, e, n, o.maxWidth)), i.fillText(c, e, n, o.maxWidth), Nr(i, e, n, c, o), n += Number(s.lineHeight);
1255
1255
  i.restore();
1256
1256
  }
1257
1257
  function Ue(i, t) {
1258
1258
  const { x: e, y: n, w: s, h: o, radius: a } = t;
1259
- i.arc(e + a.topLeft, n + a.topLeft, a.topLeft, 1.5 * V, V, !0), i.lineTo(e, n + o - a.bottomLeft), i.arc(e + a.bottomLeft, n + o - a.bottomLeft, a.bottomLeft, V, U, !0), i.lineTo(e + s - a.bottomRight, n + o), i.arc(e + s - a.bottomRight, n + o - a.bottomRight, a.bottomRight, U, 0, !0), i.lineTo(e + s, n + a.topRight), i.arc(e + s - a.topRight, n + a.topRight, a.topRight, 0, -U, !0), i.lineTo(e + a.topLeft, n);
1259
+ i.arc(e + a.topLeft, n + a.topLeft, a.topLeft, 1.5 * $, $, !0), i.lineTo(e, n + o - a.bottomLeft), i.arc(e + a.bottomLeft, n + o - a.bottomLeft, a.bottomLeft, $, Y, !0), i.lineTo(e + s - a.bottomRight, n + o), i.arc(e + s - a.bottomRight, n + o - a.bottomRight, a.bottomRight, Y, 0, !0), i.lineTo(e + s, n + a.topRight), i.arc(e + s - a.topRight, n + a.topRight, a.topRight, 0, -Y, !0), i.lineTo(e + a.topLeft, n);
1260
1260
  }
1261
1261
  const Hr = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, Vr = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
1262
1262
  function jr(i, t) {
@@ -1287,7 +1287,7 @@ function Oo(i) {
1287
1287
  left: "x"
1288
1288
  });
1289
1289
  }
1290
- function Ut(i) {
1290
+ function Xt(i) {
1291
1291
  return An(i, [
1292
1292
  "topLeft",
1293
1293
  "topRight",
@@ -1295,12 +1295,12 @@ function Ut(i) {
1295
1295
  "bottomRight"
1296
1296
  ]);
1297
1297
  }
1298
- function K(i) {
1298
+ function Z(i) {
1299
1299
  const t = Oo(i);
1300
1300
  return t.width = t.left + t.right, t.height = t.top + t.bottom, t;
1301
1301
  }
1302
1302
  function X(i, t) {
1303
- i = i || {}, t = t || $.font;
1303
+ i = i || {}, t = t || U.font;
1304
1304
  let e = A(i.size, t.size);
1305
1305
  typeof e == "string" && (e = parseInt(e, 10));
1306
1306
  let n = A(i.style, t.style);
@@ -1315,10 +1315,10 @@ function X(i, t) {
1315
1315
  };
1316
1316
  return s.string = Fr(s), s;
1317
1317
  }
1318
- function H(i, t, e, n) {
1318
+ function j(i, t, e, n) {
1319
1319
  let s = !0, o, a, r;
1320
1320
  for (o = 0, a = i.length; o < a; ++o)
1321
- if (r = i[o], r !== void 0 && (t !== void 0 && typeof r == "function" && (r = r(t), s = !1), e !== void 0 && N(r) && (r = r[e % r.length], s = !1), r !== void 0))
1321
+ if (r = i[o], r !== void 0 && (t !== void 0 && typeof r == "function" && (r = r(t), s = !1), e !== void 0 && W(r) && (r = r[e % r.length], s = !1), r !== void 0))
1322
1322
  return n && !s && (n.cacheable = !1), r;
1323
1323
  }
1324
1324
  function Ur(i, t, e) {
@@ -1328,7 +1328,7 @@ function Ur(i, t, e) {
1328
1328
  max: a(s, o)
1329
1329
  };
1330
1330
  }
1331
- function Bt(i, t) {
1331
+ function Nt(i, t) {
1332
1332
  return Object.assign(Object.create(i), t);
1333
1333
  }
1334
1334
  function Ln(i, t = [
@@ -1464,8 +1464,8 @@ function Io(i, t = {
1464
1464
  allKeys: s,
1465
1465
  scriptable: e,
1466
1466
  indexable: n,
1467
- isScriptable: Ft(e) ? e : () => e,
1468
- isIndexable: Ft(n) ? n : () => n
1467
+ isScriptable: Et(e) ? e : () => e,
1468
+ isIndexable: Et(n) ? n : () => n
1469
1469
  };
1470
1470
  }
1471
1471
  const Yr = (i, t) => i ? i + Sn(t) : t, Tn = (i, t) => O(t) && i !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
@@ -1478,7 +1478,7 @@ function Fo(i, t, e) {
1478
1478
  function Xr(i, t, e) {
1479
1479
  const { _proxy: n, _context: s, _subProxy: o, _descriptors: a } = i;
1480
1480
  let r = n[t];
1481
- return Ft(r) && a.isScriptable(t) && (r = qr(t, r, i, e)), N(r) && r.length && (r = Gr(t, r, i, a.isIndexable)), Tn(t, r) && (r = ae(r, s, o && o[t], a)), r;
1481
+ return Et(r) && a.isScriptable(t) && (r = qr(t, r, i, e)), W(r) && r.length && (r = Gr(t, r, i, a.isIndexable)), Tn(t, r) && (r = ae(r, s, o && o[t], a)), r;
1482
1482
  }
1483
1483
  function qr(i, t, e, n) {
1484
1484
  const { _proxy: s, _context: o, _subProxy: a, _stack: r } = e;
@@ -1503,9 +1503,9 @@ function Gr(i, t, e, n) {
1503
1503
  return t;
1504
1504
  }
1505
1505
  function Ro(i, t, e) {
1506
- return Ft(i) ? i(t, e) : i;
1506
+ return Et(i) ? i(t, e) : i;
1507
1507
  }
1508
- const Kr = (i, t) => i === !0 ? t : typeof i == "string" ? It(t, i) : void 0;
1508
+ const Kr = (i, t) => i === !0 ? t : typeof i == "string" ? Rt(t, i) : void 0;
1509
1509
  function Zr(i, t, e, n, s) {
1510
1510
  for (const o of t) {
1511
1511
  const a = Kr(e, o);
@@ -1539,7 +1539,7 @@ function Jr(i, t, e) {
1539
1539
  const n = i._getTarget();
1540
1540
  t in n || (n[t] = {});
1541
1541
  const s = n[t];
1542
- return N(s) && O(e) ? e : s || {};
1542
+ return W(s) && O(e) ? e : s || {};
1543
1543
  }
1544
1544
  function Qr(i, t, e, n) {
1545
1545
  let s;
@@ -1572,7 +1572,7 @@ function el(i, t, e, n) {
1572
1572
  let r, l, c, h;
1573
1573
  for (r = 0, l = n; r < l; ++r)
1574
1574
  c = r + e, h = t[c], a[r] = {
1575
- r: s.parse(It(h, o), c)
1575
+ r: s.parse(Rt(h, o), c)
1576
1576
  };
1577
1577
  return a;
1578
1578
  }
@@ -1668,7 +1668,7 @@ const hl = [
1668
1668
  "bottom",
1669
1669
  "left"
1670
1670
  ];
1671
- function Yt(i, t, e) {
1671
+ function qt(i, t, e) {
1672
1672
  const n = {};
1673
1673
  e = e ? "-" + e : "";
1674
1674
  for (let s = 0; s < 4; s++) {
@@ -1693,10 +1693,10 @@ function ul(i, t) {
1693
1693
  box: a
1694
1694
  };
1695
1695
  }
1696
- function Vt(i, t) {
1696
+ function $t(i, t) {
1697
1697
  if ("native" in i)
1698
1698
  return i;
1699
- const { canvas: e, currentDevicePixelRatio: n } = t, s = Ii(e), o = s.boxSizing === "border-box", a = Yt(s, "padding"), r = Yt(s, "border", "width"), { x: l, y: c, box: h } = ul(i, e), d = a.left + (h && r.left), u = a.top + (h && r.top);
1699
+ const { canvas: e, currentDevicePixelRatio: n } = t, s = Ii(e), o = s.boxSizing === "border-box", a = qt(s, "padding"), r = qt(s, "border", "width"), { x: l, y: c, box: h } = ul(i, e), d = a.left + (h && r.left), u = a.top + (h && r.top);
1700
1700
  let { width: f, height: m } = t;
1701
1701
  return o && (f -= a.width + r.width, m -= a.height + r.height), {
1702
1702
  x: Math.round((l - d) / f * e.width / n),
@@ -1710,7 +1710,7 @@ function fl(i, t, e) {
1710
1710
  if (!o)
1711
1711
  t = i.clientWidth, e = i.clientHeight;
1712
1712
  else {
1713
- const a = o.getBoundingClientRect(), r = Ii(o), l = Yt(r, "border", "width"), c = Yt(r, "padding");
1713
+ const a = o.getBoundingClientRect(), r = Ii(o), l = qt(r, "border", "width"), c = qt(r, "padding");
1714
1714
  t = a.width - c.width - l.width, e = a.height - c.height - l.height, n = Ci(r.maxWidth, o, "clientWidth"), s = Ci(r.maxHeight, o, "clientHeight");
1715
1715
  }
1716
1716
  }
@@ -1723,10 +1723,10 @@ function fl(i, t, e) {
1723
1723
  }
1724
1724
  const ni = (i) => Math.round(i * 10) / 10;
1725
1725
  function gl(i, t, e, n) {
1726
- const s = Ii(i), o = Yt(s, "margin"), a = Ci(s.maxWidth, i, "clientWidth") || ki, r = Ci(s.maxHeight, i, "clientHeight") || ki, l = fl(i, t, e);
1726
+ const s = Ii(i), o = qt(s, "margin"), a = Ci(s.maxWidth, i, "clientWidth") || ki, r = Ci(s.maxHeight, i, "clientHeight") || ki, l = fl(i, t, e);
1727
1727
  let { width: c, height: h } = l;
1728
1728
  if (s.boxSizing === "content-box") {
1729
- const u = Yt(s, "border", "width"), f = Yt(s, "padding");
1729
+ const u = qt(s, "border", "width"), f = qt(s, "padding");
1730
1730
  c -= f.width + u.width, h -= f.height + u.height;
1731
1731
  }
1732
1732
  return c = Math.max(0, c - o.width), h = Math.max(0, n ? c / n : h - o.height), c = ni(Math.min(c, a, l.maxWidth)), h = ni(Math.min(h, r, l.maxHeight)), c && !h && (h = ni(c / 2)), (t !== void 0 || e !== void 0) && n && l.height && h > l.height && (h = l.height, c = ni(Math.floor(h * n))), {
@@ -1757,7 +1757,7 @@ function ss(i, t) {
1757
1757
  const e = cl(i, t), n = e && e.match(/^(\d+)(\.\d+)?px$/);
1758
1758
  return n ? +n[1] : void 0;
1759
1759
  }
1760
- function jt(i, t, e, n) {
1760
+ function Ut(i, t, e, n) {
1761
1761
  return {
1762
1762
  x: i.x + e * (t.x - i.x),
1763
1763
  y: i.y + e * (t.y - i.y)
@@ -1776,8 +1776,8 @@ function bl(i, t, e, n) {
1776
1776
  }, o = {
1777
1777
  x: t.cp1x,
1778
1778
  y: t.cp1y
1779
- }, a = jt(i, s, e), r = jt(s, o, e), l = jt(o, t, e), c = jt(a, r, e), h = jt(r, l, e);
1780
- return jt(c, h, e);
1779
+ }, a = Ut(i, s, e), r = Ut(s, o, e), l = Ut(o, t, e), c = Ut(a, r, e), h = Ut(r, l, e);
1780
+ return Ut(c, h, e);
1781
1781
  }
1782
1782
  const yl = function(i, t) {
1783
1783
  return {
@@ -1967,7 +1967,7 @@ function kl(i, t, e, n) {
1967
1967
  let g = e[d % l], p;
1968
1968
  for (u = d + 1; u <= m.end; u++) {
1969
1969
  const b = e[u % l];
1970
- p = rs(n.setContext(Bt(s, {
1970
+ p = rs(n.setContext(Nt(s, {
1971
1971
  type: "segment",
1972
1972
  p0: g,
1973
1973
  p1: b,
@@ -2097,13 +2097,13 @@ const ls = "transparent", Pl = {
2097
2097
  class Dl {
2098
2098
  constructor(t, e, n, s) {
2099
2099
  const o = e[n];
2100
- s = H([
2100
+ s = j([
2101
2101
  t.to,
2102
2102
  s,
2103
2103
  o,
2104
2104
  t.from
2105
2105
  ]);
2106
- const a = H([
2106
+ const a = j([
2107
2107
  t.from,
2108
2108
  o,
2109
2109
  s
@@ -2117,12 +2117,12 @@ class Dl {
2117
2117
  if (this._active) {
2118
2118
  this._notify(!1);
2119
2119
  const s = this._target[this._prop], o = n - this._start, a = this._duration - o;
2120
- this._start = n, this._duration = Math.floor(Math.max(a, t.duration)), this._total += o, this._loop = !!t.loop, this._to = H([
2120
+ this._start = n, this._duration = Math.floor(Math.max(a, t.duration)), this._total += o, this._loop = !!t.loop, this._to = j([
2121
2121
  t.to,
2122
2122
  e,
2123
2123
  s,
2124
2124
  t.from
2125
- ]), this._from = H([
2125
+ ]), this._from = j([
2126
2126
  t.from,
2127
2127
  s,
2128
2128
  e
@@ -2167,7 +2167,7 @@ class $o {
2167
2167
  configure(t) {
2168
2168
  if (!O(t))
2169
2169
  return;
2170
- const e = Object.keys($.animation), n = this._properties;
2170
+ const e = Object.keys(U.animation), n = this._properties;
2171
2171
  Object.getOwnPropertyNames(t).forEach((s) => {
2172
2172
  const o = t[s];
2173
2173
  if (!O(o))
@@ -2175,7 +2175,7 @@ class $o {
2175
2175
  const a = {};
2176
2176
  for (const r of e)
2177
2177
  a[r] = o[r];
2178
- (N(o.properties) && o.properties || [
2178
+ (W(o.properties) && o.properties || [
2179
2179
  s
2180
2180
  ]).forEach((r) => {
2181
2181
  (r === s || !n.has(r)) && n.set(r, a);
@@ -2296,7 +2296,7 @@ function hs(i, t, e, n = {}) {
2296
2296
  continue;
2297
2297
  break;
2298
2298
  }
2299
- c = i.values[l], G(c) && (o || t === 0 || mt(t) === mt(c)) && (t += c);
2299
+ c = i.values[l], K(c) && (o || t === 0 || mt(t) === mt(c)) && (t += c);
2300
2300
  }
2301
2301
  return t;
2302
2302
  }
@@ -2352,7 +2352,7 @@ function ji(i, t) {
2352
2352
  return Object.keys(e).filter((n) => e[n].axis === t).shift();
2353
2353
  }
2354
2354
  function Bl(i, t) {
2355
- return Bt(i, {
2355
+ return Nt(i, {
2356
2356
  active: !1,
2357
2357
  dataset: void 0,
2358
2358
  datasetIndex: t,
@@ -2362,7 +2362,7 @@ function Bl(i, t) {
2362
2362
  });
2363
2363
  }
2364
2364
  function zl(i, t, e) {
2365
- return Bt(i, {
2365
+ return Nt(i, {
2366
2366
  active: !1,
2367
2367
  dataIndex: t,
2368
2368
  parsed: void 0,
@@ -2458,7 +2458,7 @@ class wt {
2458
2458
  if (this._parsing === !1)
2459
2459
  n._parsed = s, n._sorted = !0, u = s;
2460
2460
  else {
2461
- N(s[t]) ? u = this.parseArrayData(n, s, t, e) : O(s[t]) ? u = this.parseObjectData(n, s, t, e) : u = this.parsePrimitiveData(n, s, t, e);
2461
+ W(s[t]) ? u = this.parseArrayData(n, s, t, e) : O(s[t]) ? u = this.parseObjectData(n, s, t, e) : u = this.parsePrimitiveData(n, s, t, e);
2462
2462
  const f = () => d[r] === null || c && d[r] < c[r];
2463
2463
  for (h = 0; h < e; ++h)
2464
2464
  n._parsed[h + t] = d = u[h], l && (f() && (l = !1), c = d);
@@ -2491,8 +2491,8 @@ class wt {
2491
2491
  let h, d, u, f;
2492
2492
  for (h = 0, d = s; h < d; ++h)
2493
2493
  u = h + n, f = e[u], c[h] = {
2494
- x: o.parse(It(f, r), u),
2495
- y: a.parse(It(f, l), u)
2494
+ x: o.parse(Rt(f, r), u),
2495
+ y: a.parse(Rt(f, l), u)
2496
2496
  };
2497
2497
  return c;
2498
2498
  }
@@ -2526,7 +2526,7 @@ class wt {
2526
2526
  function m() {
2527
2527
  f = s[u];
2528
2528
  const g = f[r.axis];
2529
- return !G(f[t.axis]) || h > g || d < g;
2529
+ return !K(f[t.axis]) || h > g || d < g;
2530
2530
  }
2531
2531
  for (u = 0; u < a && !(!m() && (this.updateRangeFromParsed(c, t, f, l), o)); ++u)
2532
2532
  ;
@@ -2543,7 +2543,7 @@ class wt {
2543
2543
  const e = this._cachedMeta._parsed, n = [];
2544
2544
  let s, o, a;
2545
2545
  for (s = 0, o = e.length; s < o; ++s)
2546
- a = e[s][t.axis], G(a) && n.push(a);
2546
+ a = e[s][t.axis], K(a) && n.push(a);
2547
2547
  return n;
2548
2548
  }
2549
2549
  getMaxOverflow() {
@@ -2604,7 +2604,7 @@ class wt {
2604
2604
  ] : [
2605
2605
  t,
2606
2606
  ""
2607
- ], u = c.getOptionScopes(this.getDataset(), h), f = Object.keys($.elements[t]), m = () => this.getContext(n, s, e), g = c.resolveNamedOptions(u, f, m, d);
2607
+ ], u = c.getOptionScopes(this.getDataset(), h), f = Object.keys(U.elements[t]), m = () => this.getContext(n, s, e), g = c.resolveNamedOptions(u, f, m, d);
2608
2608
  return g.$shared && (g.$shared = l, o[a] = Object.freeze(gs(g, l))), g;
2609
2609
  }
2610
2610
  _resolveAnimations(t, e, n) {
@@ -2770,7 +2770,7 @@ function Hl(i) {
2770
2770
  function Vl(i, t, e, n) {
2771
2771
  const s = e.barThickness;
2772
2772
  let o, a;
2773
- return F(s) ? (o = t.min * e.categoryPercentage, a = e.barPercentage) : (o = s * n, a = 1), {
2773
+ return R(s) ? (o = t.min * e.categoryPercentage, a = e.barPercentage) : (o = s * n, a = 1), {
2774
2774
  chunk: o / n,
2775
2775
  ratio: a,
2776
2776
  start: t.pixels[i] - o / 2
@@ -2801,7 +2801,7 @@ function $l(i, t, e, n) {
2801
2801
  };
2802
2802
  }
2803
2803
  function Yo(i, t, e, n) {
2804
- return N(i) ? $l(i, t, e, n) : t[e.axis] = e.parse(i, n), t;
2804
+ return W(i) ? $l(i, t, e, n) : t[e.axis] = e.parse(i, n), t;
2805
2805
  }
2806
2806
  function ps(i, t, e, n) {
2807
2807
  const s = i.iScale, o = i.vScale, a = s.getLabels(), r = s === o, l = [];
@@ -2868,7 +2868,7 @@ class pi extends wt {
2868
2868
  const { iScale: o, vScale: a } = t, { xAxisKey: r = "x", yAxisKey: l = "y" } = this._parsing, c = o.axis === "x" ? r : l, h = a.axis === "x" ? r : l, d = [];
2869
2869
  let u, f, m, g;
2870
2870
  for (u = n, f = n + s; u < f; ++u)
2871
- g = e[u], m = {}, m[o.axis] = o.parse(It(g, c), u), d.push(Yo(It(g, h), m, a, u));
2871
+ g = e[u], m = {}, m[o.axis] = o.parse(Rt(g, c), u), d.push(Yo(Rt(g, h), m, a, u));
2872
2872
  return d;
2873
2873
  }
2874
2874
  updateRangeFromParsed(t, e, n, s) {
@@ -2898,7 +2898,7 @@ class pi extends wt {
2898
2898
  updateElements(t, e, n, s) {
2899
2899
  const o = s === "reset", { index: a, _cachedMeta: { vScale: r } } = this, l = r.getBasePixel(), c = r.isHorizontal(), h = this._getRuler(), { sharedOptions: d, includeOptions: u } = this._getSharedOptions(e, s);
2900
2900
  for (let f = e; f < e + n; f++) {
2901
- const m = this.getParsed(f), g = o || F(m[r.axis]) ? {
2901
+ const m = this.getParsed(f), g = o || R(m[r.axis]) ? {
2902
2902
  base: l,
2903
2903
  head: l
2904
2904
  } : this._calculateBarValuePixels(f), p = this._calculateBarIndexPixels(f, h), b = (m._stacks || {})[r.axis], y = {
@@ -2918,7 +2918,7 @@ class pi extends wt {
2918
2918
  _getStacks(t, e) {
2919
2919
  const { iScale: n } = this._cachedMeta, s = n.getMatchingVisibleMetas(this._type).filter((l) => l.controller.options.grouped), o = n.options.stacked, a = [], r = (l) => {
2920
2920
  const c = l.controller.getParsed(e), h = c && c[l.vScale.axis];
2921
- if (F(h) || isNaN(h))
2921
+ if (R(h) || isNaN(h))
2922
2922
  return !0;
2923
2923
  };
2924
2924
  for (const l of s)
@@ -2954,7 +2954,7 @@ class pi extends wt {
2954
2954
  const { _cachedMeta: { vScale: e, _stacked: n, index: s }, options: { base: o, minBarLength: a } } = this, r = o || 0, l = this.getParsed(t), c = l._custom, h = Ui(c);
2955
2955
  let d = l[e.axis], u = 0, f = n ? this.applyStack(e, l, n) : d, m, g;
2956
2956
  f !== d && (u = f - d, f = d), h && (d = c.barStart, f = c.barEnd - c.barStart, d !== 0 && mt(d) !== mt(c.barEnd) && (u = 0), u += d);
2957
- const p = !F(o) && !h ? o : u;
2957
+ const p = !R(o) && !h ? o : u;
2958
2958
  let b = e.getPixelForValue(p);
2959
2959
  if (this.chart.getDataVisibility(t) ? m = e.getPixelForValue(u + f) : m = b, g = m - b, Math.abs(g) < a) {
2960
2960
  g = Ul(g, e, r) * a, d === r && (b -= g / 2);
@@ -3114,8 +3114,8 @@ w(mi, "id", "bubble"), w(mi, "defaults", {
3114
3114
  });
3115
3115
  function Kl(i, t, e) {
3116
3116
  let n = 1, s = 1, o = 0, a = 0;
3117
- if (t < W) {
3118
- const r = i, l = r + t, c = Math.cos(r), h = Math.sin(r), d = Math.cos(l), u = Math.sin(l), f = (x, _, v) => $e(x, r, l, !0) ? 1 : Math.max(_, _ * e, v, v * e), m = (x, _, v) => $e(x, r, l, !0) ? -1 : Math.min(_, _ * e, v, v * e), g = f(0, c, d), p = f(U, h, u), b = m(V, c, d), y = m(V + U, h, u);
3117
+ if (t < H) {
3118
+ const r = i, l = r + t, c = Math.cos(r), h = Math.sin(r), d = Math.cos(l), u = Math.sin(l), f = (x, _, v) => $e(x, r, l, !0) ? 1 : Math.max(_, _ * e, v, v * e), m = (x, _, v) => $e(x, r, l, !0) ? -1 : Math.min(_, _ * e, v, v * e), g = f(0, c, d), p = f(Y, h, u), b = m($, c, d), y = m($ + Y, h, u);
3119
3119
  n = (g - b) / 2, s = (p - y) / 2, o = -(g + b) / 2, a = -(p + y) / 2;
3120
3120
  }
3121
3121
  return {
@@ -3139,7 +3139,7 @@ class Te extends wt {
3139
3139
  let o = (l) => +n[l];
3140
3140
  if (O(n[t])) {
3141
3141
  const { key: l = "value" } = this._parsing;
3142
- o = (c) => +It(n[c], l);
3142
+ o = (c) => +Rt(n[c], l);
3143
3143
  }
3144
3144
  let a, r;
3145
3145
  for (a = t, r = t + e; a < r; ++a)
@@ -3153,7 +3153,7 @@ class Te extends wt {
3153
3153
  return gt(this.options.circumference);
3154
3154
  }
3155
3155
  _getRotationExtents() {
3156
- let t = W, e = -W;
3156
+ let t = H, e = -H;
3157
3157
  for (let n = 0; n < this.chart.data.datasets.length; ++n)
3158
3158
  if (this.chart.isDatasetVisible(n) && this.chart.getDatasetMeta(n).type === this._type) {
3159
3159
  const s = this.chart.getDatasetMeta(n).controller, o = s._getRotation(), a = s._getCircumference();
@@ -3170,7 +3170,7 @@ class Te extends wt {
3170
3170
  }
3171
3171
  _circumference(t, e) {
3172
3172
  const n = this.options, s = this._cachedMeta, o = this._getCircumference();
3173
- return e && n.animation.animateRotate || !this.chart.getDataVisibility(t) || s._parsed[t] === null || s.data[t].hidden ? 0 : this.calculateCircumference(s._parsed[t] * o / W);
3173
+ return e && n.animation.animateRotate || !this.chart.getDataVisibility(t) || s._parsed[t] === null || s.data[t].hidden ? 0 : this.calculateCircumference(s._parsed[t] * o / H);
3174
3174
  }
3175
3175
  updateElements(t, e, n, s) {
3176
3176
  const o = s === "reset", a = this.chart, r = a.chartArea, c = a.options.animation, h = (r.left + r.right) / 2, d = (r.top + r.bottom) / 2, u = o && c.animateScale, f = u ? 0 : this.innerRadius, m = u ? 0 : this.outerRadius, { sharedOptions: g, includeOptions: p } = this._getSharedOptions(e, s);
@@ -3201,7 +3201,7 @@ class Te extends wt {
3201
3201
  }
3202
3202
  calculateCircumference(t) {
3203
3203
  const e = this._cachedMeta.total;
3204
- return e > 0 && !isNaN(t) ? W * (Math.abs(t) / e) : 0;
3204
+ return e > 0 && !isNaN(t) ? H * (Math.abs(t) / e) : 0;
3205
3205
  }
3206
3206
  getLabelAndValue(t) {
3207
3207
  const e = this._cachedMeta, n = this.chart, s = n.data.labels || [], o = Pn(e._parsed[t], n.options.locale);
@@ -3336,8 +3336,8 @@ class bi extends wt {
3336
3336
  M.skip = !0;
3337
3337
  continue;
3338
3338
  }
3339
- const k = this.getParsed(v), P = F(k[f]), L = M[u] = a.getPixelForValue(k[u], v), C = M[f] = o || P ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, k, l) : k[f], v);
3340
- M.skip = isNaN(L) || isNaN(C) || P, M.stop = v > 0 && Math.abs(k[u] - _[u]) > p, g && (M.parsed = k, M.raw = c.data[v]), d && (M.options = h || this.resolveDataElementOptions(v, S.active ? "active" : s)), b || this.updateElement(S, v, M, s), _ = k;
3339
+ const k = this.getParsed(v), P = R(k[f]), L = M[u] = a.getPixelForValue(k[u], v), D = M[f] = o || P ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, k, l) : k[f], v);
3340
+ M.skip = isNaN(L) || isNaN(D) || P, M.stop = v > 0 && Math.abs(k[u] - _[u]) > p, g && (M.parsed = k, M.raw = c.data[v]), d && (M.options = h || this.resolveDataElementOptions(v, S.active ? "active" : s)), b || this.updateElement(S, v, M, s), _ = k;
3341
3341
  }
3342
3342
  }
3343
3343
  getMaxOverflow() {
@@ -3424,7 +3424,7 @@ w(yi, "id", "radar"), w(yi, "defaults", {
3424
3424
  }
3425
3425
  }
3426
3426
  });
3427
- function Wt() {
3427
+ function Vt() {
3428
3428
  throw new Error("This method is not implemented: Check that a complete date adapter is provided.");
3429
3429
  }
3430
3430
  class Fn {
@@ -3449,25 +3449,25 @@ class Fn {
3449
3449
  init() {
3450
3450
  }
3451
3451
  formats() {
3452
- return Wt();
3452
+ return Vt();
3453
3453
  }
3454
3454
  parse() {
3455
- return Wt();
3455
+ return Vt();
3456
3456
  }
3457
3457
  format() {
3458
- return Wt();
3458
+ return Vt();
3459
3459
  }
3460
3460
  add() {
3461
- return Wt();
3461
+ return Vt();
3462
3462
  }
3463
3463
  diff() {
3464
- return Wt();
3464
+ return Vt();
3465
3465
  }
3466
3466
  startOf() {
3467
- return Wt();
3467
+ return Vt();
3468
3468
  }
3469
3469
  endOf() {
3470
- return Wt();
3470
+ return Vt();
3471
3471
  }
3472
3472
  }
3473
3473
  var Zl = {
@@ -3476,7 +3476,7 @@ var Zl = {
3476
3476
  function Jl(i, t, e, n) {
3477
3477
  const { controller: s, data: o, _sorted: a } = i, r = s._cachedMeta.iScale;
3478
3478
  if (r && t === r.axis && t !== "r" && a && o.length) {
3479
- const l = r._reversePixels ? xr : $t;
3479
+ const l = r._reversePixels ? xr : Yt;
3480
3480
  if (n) {
3481
3481
  if (s._sharedOptions) {
3482
3482
  const c = o[0], h = typeof c.getRange == "function" && c.getRange(t);
@@ -3585,7 +3585,7 @@ var ic = {
3585
3585
  evaluateInteractionItems: qe,
3586
3586
  modes: {
3587
3587
  index(i, t, e, n) {
3588
- const s = Vt(t, i), o = e.axis || "x", a = e.includeInvisible || !1, r = e.intersect ? Yi(i, s, o, n, a) : Xi(i, s, o, !1, n, a), l = [];
3588
+ const s = $t(t, i), o = e.axis || "x", a = e.includeInvisible || !1, r = e.intersect ? Yi(i, s, o, n, a) : Xi(i, s, o, !1, n, a), l = [];
3589
3589
  return r.length ? (i.getSortedVisibleDatasetMetas().forEach((c) => {
3590
3590
  const h = r[0].index, d = c.data[h];
3591
3591
  d && !d.skip && l.push({
@@ -3596,7 +3596,7 @@ var ic = {
3596
3596
  }), l) : [];
3597
3597
  },
3598
3598
  dataset(i, t, e, n) {
3599
- const s = Vt(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
3599
+ const s = $t(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
3600
3600
  let r = e.intersect ? Yi(i, s, o, n, a) : Xi(i, s, o, !1, n, a);
3601
3601
  if (r.length > 0) {
3602
3602
  const l = r[0].datasetIndex, c = i.getDatasetMeta(l).data;
@@ -3611,19 +3611,19 @@ var ic = {
3611
3611
  return r;
3612
3612
  },
3613
3613
  point(i, t, e, n) {
3614
- const s = Vt(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
3614
+ const s = $t(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
3615
3615
  return Yi(i, s, o, n, a);
3616
3616
  },
3617
3617
  nearest(i, t, e, n) {
3618
- const s = Vt(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
3618
+ const s = $t(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
3619
3619
  return Xi(i, s, o, e.intersect, n, a);
3620
3620
  },
3621
3621
  x(i, t, e, n) {
3622
- const s = Vt(t, i);
3622
+ const s = $t(t, i);
3623
3623
  return ys(i, s, "x", e.intersect, n);
3624
3624
  },
3625
3625
  y(i, t, e, n) {
3626
- const s = Vt(t, i);
3626
+ const s = $t(t, i);
3627
3627
  return ys(i, s, "y", e.intersect, n);
3628
3628
  }
3629
3629
  }
@@ -3808,8 +3808,8 @@ var ct = {
3808
3808
  update(i, t, e, n) {
3809
3809
  if (!i)
3810
3810
  return;
3811
- const s = K(i.options.layout.padding), o = Math.max(t - s.width, 0), a = Math.max(e - s.height, 0), r = ac(i.boxes), l = r.vertical, c = r.horizontal;
3812
- E(i.boxes, (g) => {
3811
+ const s = Z(i.options.layout.padding), o = Math.max(t - s.width, 0), a = Math.max(e - s.height, 0), r = ac(i.boxes), l = r.vertical, c = r.horizontal;
3812
+ B(i.boxes, (g) => {
3813
3813
  typeof g.beforeLayout == "function" && g.beforeLayout();
3814
3814
  });
3815
3815
  const h = l.reduce((g, p) => p.box.options && p.box.options.display === !1 ? g : g + 1, 0) || 1, d = Object.freeze({
@@ -3821,7 +3821,7 @@ var ct = {
3821
3821
  vBoxMaxWidth: o / 2 / h,
3822
3822
  hBoxMaxHeight: a / 2
3823
3823
  }), u = Object.assign({}, s);
3824
- qo(u, K(n));
3824
+ qo(u, Z(n));
3825
3825
  const f = Object.assign({
3826
3826
  maxPadding: u,
3827
3827
  w: o,
@@ -3836,7 +3836,7 @@ var ct = {
3836
3836
  bottom: f.top + f.h,
3837
3837
  height: f.h,
3838
3838
  width: f.w
3839
- }, E(r.chartArea, (g) => {
3839
+ }, B(r.chartArea, (g) => {
3840
3840
  const p = g.box;
3841
3841
  Object.assign(p, i.chartArea), p.update(f.w, f.h, {
3842
3842
  left: 0,
@@ -3926,7 +3926,7 @@ function gc(i, t, e) {
3926
3926
  i.canvas.removeEventListener(t, e, Ko);
3927
3927
  }
3928
3928
  function pc(i, t) {
3929
- const e = dc[i.type] || i.type, { x: n, y: s } = Vt(i, t);
3929
+ const e = dc[i.type] || i.type, { x: n, y: s } = $t(i, t);
3930
3930
  return {
3931
3931
  type: e,
3932
3932
  chart: t,
@@ -4015,7 +4015,7 @@ class Sc extends Go {
4015
4015
  "width"
4016
4016
  ].forEach((o) => {
4017
4017
  const a = n[o];
4018
- F(a) ? e.removeAttribute(o) : e.setAttribute(o, a);
4018
+ R(a) ? e.removeAttribute(o) : e.setAttribute(o, a);
4019
4019
  });
4020
4020
  const s = n.style || {};
4021
4021
  return Object.keys(s).forEach((o) => {
@@ -4095,9 +4095,9 @@ function kc(i, t) {
4095
4095
  if (a > 0) {
4096
4096
  let d, u;
4097
4097
  const f = a > 1 ? Math.round((l - r) / (a - 1)) : null;
4098
- for (oi(t, c, h, F(f) ? 0 : r - f, r), d = 0, u = a - 1; d < u; d++)
4098
+ for (oi(t, c, h, R(f) ? 0 : r - f, r), d = 0, u = a - 1; d < u; d++)
4099
4099
  oi(t, c, h, o[d], o[d + 1]);
4100
- return oi(t, c, h, l, F(f) ? t.length : l + f), c;
4100
+ return oi(t, c, h, l, R(f) ? t.length : l + f), c;
4101
4101
  }
4102
4102
  return oi(t, c, h), c;
4103
4103
  }
@@ -4162,7 +4162,7 @@ function Tc(i, t, e) {
4162
4162
  return l;
4163
4163
  }
4164
4164
  function Oc(i, t) {
4165
- E(i, (e) => {
4165
+ B(i, (e) => {
4166
4166
  const n = e.gc, s = n.length / 2;
4167
4167
  let o;
4168
4168
  if (s > t) {
@@ -4178,17 +4178,17 @@ function Pe(i) {
4178
4178
  function Ps(i, t) {
4179
4179
  if (!i.display)
4180
4180
  return 0;
4181
- const e = X(i.font, t), n = K(i.padding);
4182
- return (N(i.text) ? i.text.length : 1) * e.lineHeight + n.height;
4181
+ const e = X(i.font, t), n = Z(i.padding);
4182
+ return (W(i.text) ? i.text.length : 1) * e.lineHeight + n.height;
4183
4183
  }
4184
4184
  function Ic(i, t) {
4185
- return Bt(i, {
4185
+ return Nt(i, {
4186
4186
  scale: t,
4187
4187
  type: "scale"
4188
4188
  });
4189
4189
  }
4190
4190
  function Fc(i, t, e) {
4191
- return Bt(i, {
4191
+ return Nt(i, {
4192
4192
  tick: e,
4193
4193
  index: t,
4194
4194
  type: "tick"
@@ -4215,7 +4215,7 @@ function Ec(i, t, e, n) {
4215
4215
  f = h[b].getPixelForValue(y) - p + t;
4216
4216
  } else
4217
4217
  e === "center" ? f = (c.left + c.right) / 2 - p + t : f = ks(i, e, t);
4218
- m = J(n, a, s), d = e === "left" ? -U : U;
4218
+ m = J(n, a, s), d = e === "left" ? -Y : Y;
4219
4219
  }
4220
4220
  return {
4221
4221
  titleX: f,
@@ -4244,8 +4244,8 @@ class ue extends ht {
4244
4244
  return t = dt(t, Number.POSITIVE_INFINITY), e = dt(e, Number.NEGATIVE_INFINITY), n = dt(n, Number.POSITIVE_INFINITY), s = dt(s, Number.NEGATIVE_INFINITY), {
4245
4245
  min: dt(t, n),
4246
4246
  max: dt(e, s),
4247
- minDefined: G(t),
4248
- maxDefined: G(e)
4247
+ minDefined: K(t),
4248
+ maxDefined: K(e)
4249
4249
  };
4250
4250
  }
4251
4251
  getMinMax(t) {
@@ -4442,7 +4442,7 @@ class ue extends ht {
4442
4442
  this.beforeTickToLabelConversion(), this.generateTickLabels(t);
4443
4443
  let e, n;
4444
4444
  for (e = 0, n = t.length; e < n; e++)
4445
- F(t[e].label) && (t.splice(e, 1), n--, e--);
4445
+ R(t[e].label) && (t.splice(e, 1), n--, e--);
4446
4446
  this.afterTickToLabelConversion();
4447
4447
  }
4448
4448
  _getLabelSizes() {
@@ -4461,11 +4461,11 @@ class ue extends ht {
4461
4461
  if (m = t[d].label, g = this._resolveTickFontOptions(d), s.font = p = g.string, b = o[p] = o[p] || {
4462
4462
  data: {},
4463
4463
  gc: []
4464
- }, y = g.lineHeight, x = _ = 0, !F(m) && !N(m))
4464
+ }, y = g.lineHeight, x = _ = 0, !R(m) && !W(m))
4465
4465
  x = wi(s, b.data, b.gc, x, m), _ = y;
4466
- else if (N(m))
4466
+ else if (W(m))
4467
4467
  for (u = 0, f = m.length; u < f; ++u)
4468
- v = m[u], !F(v) && !N(v) && (x = wi(s, b.data, b.gc, x, v), _ += y);
4468
+ v = m[u], !R(v) && !W(v) && (x = wi(s, b.data, b.gc, x, v), _ += y);
4469
4469
  a.push(x), r.push(_), c = Math.max(x, c), h = Math.max(_, h);
4470
4470
  }
4471
4471
  Oc(o, e);
@@ -4497,7 +4497,7 @@ class ue extends ht {
4497
4497
  getPixelForDecimal(t) {
4498
4498
  this._reversePixels && (t = 1 - t);
4499
4499
  const e = this._startPixel + t * this._length;
4500
- return yr(this._alignToPixels ? Nt(this.chart, e, 0) : e);
4500
+ return yr(this._alignToPixels ? Ht(this.chart, e, 0) : e);
4501
4501
  }
4502
4502
  getDecimalForPixel(t) {
4503
4503
  const e = (t - this._startPixel) / this._length;
@@ -4527,48 +4527,48 @@ class ue extends ht {
4527
4527
  return t !== "auto" ? !!t : this.getMatchingVisibleMetas().length > 0;
4528
4528
  }
4529
4529
  _computeGridLineItems(t) {
4530
- const e = this.axis, n = this.chart, s = this.options, { grid: o, position: a, border: r } = s, l = o.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), u = Pe(o), f = [], m = r.setContext(this.getContext()), g = m.display ? m.width : 0, p = g / 2, b = function(B) {
4531
- return Nt(n, B, g);
4530
+ const e = this.axis, n = this.chart, s = this.options, { grid: o, position: a, border: r } = s, l = o.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), u = Pe(o), f = [], m = r.setContext(this.getContext()), g = m.display ? m.width : 0, p = g / 2, b = function(F) {
4531
+ return Ht(n, F, g);
4532
4532
  };
4533
- let y, x, _, v, S, M, k, P, L, C, D, I;
4533
+ let y, x, _, v, S, M, k, P, L, D, C, T;
4534
4534
  if (a === "top")
4535
- y = b(this.bottom), M = this.bottom - u, P = y - p, C = b(t.top) + p, I = t.bottom;
4535
+ y = b(this.bottom), M = this.bottom - u, P = y - p, D = b(t.top) + p, T = t.bottom;
4536
4536
  else if (a === "bottom")
4537
- y = b(this.top), C = t.top, I = b(t.bottom) - p, M = y + p, P = this.top + u;
4537
+ y = b(this.top), D = t.top, T = b(t.bottom) - p, M = y + p, P = this.top + u;
4538
4538
  else if (a === "left")
4539
- y = b(this.right), S = this.right - u, k = y - p, L = b(t.left) + p, D = t.right;
4539
+ y = b(this.right), S = this.right - u, k = y - p, L = b(t.left) + p, C = t.right;
4540
4540
  else if (a === "right")
4541
- y = b(this.left), L = t.left, D = b(t.right) - p, S = y + p, k = this.left + u;
4541
+ y = b(this.left), L = t.left, C = b(t.right) - p, S = y + p, k = this.left + u;
4542
4542
  else if (e === "x") {
4543
4543
  if (a === "center")
4544
4544
  y = b((t.top + t.bottom) / 2 + 0.5);
4545
4545
  else if (O(a)) {
4546
- const B = Object.keys(a)[0], j = a[B];
4547
- y = b(this.chart.scales[B].getPixelForValue(j));
4546
+ const F = Object.keys(a)[0], V = a[F];
4547
+ y = b(this.chart.scales[F].getPixelForValue(V));
4548
4548
  }
4549
- C = t.top, I = t.bottom, M = y + p, P = M + u;
4549
+ D = t.top, T = t.bottom, M = y + p, P = M + u;
4550
4550
  } else if (e === "y") {
4551
4551
  if (a === "center")
4552
4552
  y = b((t.left + t.right) / 2);
4553
4553
  else if (O(a)) {
4554
- const B = Object.keys(a)[0], j = a[B];
4555
- y = b(this.chart.scales[B].getPixelForValue(j));
4554
+ const F = Object.keys(a)[0], V = a[F];
4555
+ y = b(this.chart.scales[F].getPixelForValue(V));
4556
4556
  }
4557
- S = y - p, k = S - u, L = t.left, D = t.right;
4557
+ S = y - p, k = S - u, L = t.left, C = t.right;
4558
4558
  }
4559
- const Y = A(s.ticks.maxTicksLimit, d), T = Math.max(1, Math.ceil(d / Y));
4560
- for (x = 0; x < d; x += T) {
4561
- const B = this.getContext(x), j = o.setContext(B), et = r.setContext(B), Z = j.lineWidth, Jt = j.color, Ze = et.dash || [], Qt = et.dashOffset, _e = j.tickWidth, ve = j.tickColor, Se = j.tickBorderDash || [], Me = j.tickBorderDashOffset;
4562
- _ = Tc(this, x, l), _ !== void 0 && (v = Nt(n, _, Z), c ? S = k = L = D = v : M = P = C = I = v, f.push({
4559
+ const N = A(s.ticks.maxTicksLimit, d), I = Math.max(1, Math.ceil(d / N));
4560
+ for (x = 0; x < d; x += I) {
4561
+ const F = this.getContext(x), V = o.setContext(F), ot = r.setContext(F), q = V.lineWidth, Jt = V.color, Ze = ot.dash || [], Qt = ot.dashOffset, _e = V.tickWidth, ve = V.tickColor, Se = V.tickBorderDash || [], Me = V.tickBorderDashOffset;
4562
+ _ = Tc(this, x, l), _ !== void 0 && (v = Ht(n, _, q), c ? S = k = L = C = v : M = P = D = T = v, f.push({
4563
4563
  tx1: S,
4564
4564
  ty1: M,
4565
4565
  tx2: k,
4566
4566
  ty2: P,
4567
4567
  x1: L,
4568
- y1: C,
4569
- x2: D,
4570
- y2: I,
4571
- width: Z,
4568
+ y1: D,
4569
+ x2: C,
4570
+ y2: T,
4571
+ width: q,
4572
4572
  color: Jt,
4573
4573
  borderDash: Ze,
4574
4574
  borderDashOffset: Qt,
@@ -4582,48 +4582,48 @@ class ue extends ht {
4582
4582
  }
4583
4583
  _computeLabelItems(t) {
4584
4584
  const e = this.axis, n = this.options, { position: s, ticks: o } = n, a = this.isHorizontal(), r = this.ticks, { align: l, crossAlign: c, padding: h, mirror: d } = o, u = Pe(n.grid), f = u + h, m = d ? -h : f, g = -gt(this.labelRotation), p = [];
4585
- let b, y, x, _, v, S, M, k, P, L, C, D, I = "middle";
4585
+ let b, y, x, _, v, S, M, k, P, L, D, C, T = "middle";
4586
4586
  if (s === "top")
4587
4587
  S = this.bottom - m, M = this._getXAxisLabelAlignment();
4588
4588
  else if (s === "bottom")
4589
4589
  S = this.top + m, M = this._getXAxisLabelAlignment();
4590
4590
  else if (s === "left") {
4591
- const T = this._getYAxisLabelAlignment(u);
4592
- M = T.textAlign, v = T.x;
4591
+ const I = this._getYAxisLabelAlignment(u);
4592
+ M = I.textAlign, v = I.x;
4593
4593
  } else if (s === "right") {
4594
- const T = this._getYAxisLabelAlignment(u);
4595
- M = T.textAlign, v = T.x;
4594
+ const I = this._getYAxisLabelAlignment(u);
4595
+ M = I.textAlign, v = I.x;
4596
4596
  } else if (e === "x") {
4597
4597
  if (s === "center")
4598
4598
  S = (t.top + t.bottom) / 2 + f;
4599
4599
  else if (O(s)) {
4600
- const T = Object.keys(s)[0], B = s[T];
4601
- S = this.chart.scales[T].getPixelForValue(B) + f;
4600
+ const I = Object.keys(s)[0], F = s[I];
4601
+ S = this.chart.scales[I].getPixelForValue(F) + f;
4602
4602
  }
4603
4603
  M = this._getXAxisLabelAlignment();
4604
4604
  } else if (e === "y") {
4605
4605
  if (s === "center")
4606
4606
  v = (t.left + t.right) / 2 - f;
4607
4607
  else if (O(s)) {
4608
- const T = Object.keys(s)[0], B = s[T];
4609
- v = this.chart.scales[T].getPixelForValue(B);
4608
+ const I = Object.keys(s)[0], F = s[I];
4609
+ v = this.chart.scales[I].getPixelForValue(F);
4610
4610
  }
4611
4611
  M = this._getYAxisLabelAlignment(u).textAlign;
4612
4612
  }
4613
- e === "y" && (l === "start" ? I = "top" : l === "end" && (I = "bottom"));
4614
- const Y = this._getLabelSizes();
4613
+ e === "y" && (l === "start" ? T = "top" : l === "end" && (T = "bottom"));
4614
+ const N = this._getLabelSizes();
4615
4615
  for (b = 0, y = r.length; b < y; ++b) {
4616
4616
  x = r[b], _ = x.label;
4617
- const T = o.setContext(this.getContext(b));
4618
- k = this.getPixelForTick(b) + o.labelOffset, P = this._resolveTickFontOptions(b), L = P.lineHeight, C = N(_) ? _.length : 1;
4619
- const B = C / 2, j = T.color, et = T.textStrokeColor, Z = T.textStrokeWidth;
4617
+ const I = o.setContext(this.getContext(b));
4618
+ k = this.getPixelForTick(b) + o.labelOffset, P = this._resolveTickFontOptions(b), L = P.lineHeight, D = W(_) ? _.length : 1;
4619
+ const F = D / 2, V = I.color, ot = I.textStrokeColor, q = I.textStrokeWidth;
4620
4620
  let Jt = M;
4621
- a ? (v = k, M === "inner" && (b === y - 1 ? Jt = this.options.reverse ? "left" : "right" : b === 0 ? Jt = this.options.reverse ? "right" : "left" : Jt = "center"), s === "top" ? c === "near" || g !== 0 ? D = -C * L + L / 2 : c === "center" ? D = -Y.highest.height / 2 - B * L + L : D = -Y.highest.height + L / 2 : c === "near" || g !== 0 ? D = L / 2 : c === "center" ? D = Y.highest.height / 2 - B * L : D = Y.highest.height - C * L, d && (D *= -1), g !== 0 && !T.showLabelBackdrop && (v += L / 2 * Math.sin(g))) : (S = k, D = (1 - C) * L / 2);
4621
+ a ? (v = k, M === "inner" && (b === y - 1 ? Jt = this.options.reverse ? "left" : "right" : b === 0 ? Jt = this.options.reverse ? "right" : "left" : Jt = "center"), s === "top" ? c === "near" || g !== 0 ? C = -D * L + L / 2 : c === "center" ? C = -N.highest.height / 2 - F * L + L : C = -N.highest.height + L / 2 : c === "near" || g !== 0 ? C = L / 2 : c === "center" ? C = N.highest.height / 2 - F * L : C = N.highest.height - D * L, d && (C *= -1), g !== 0 && !I.showLabelBackdrop && (v += L / 2 * Math.sin(g))) : (S = k, C = (1 - D) * L / 2);
4622
4622
  let Ze;
4623
- if (T.showLabelBackdrop) {
4624
- const Qt = K(T.backdropPadding), _e = Y.heights[b], ve = Y.widths[b];
4625
- let Se = D - Qt.top, Me = 0 - Qt.left;
4626
- switch (I) {
4623
+ if (I.showLabelBackdrop) {
4624
+ const Qt = Z(I.backdropPadding), _e = N.heights[b], ve = N.widths[b];
4625
+ let Se = C - Qt.top, Me = 0 - Qt.left;
4626
+ switch (T) {
4627
4627
  case "middle":
4628
4628
  Se -= _e / 2;
4629
4629
  break;
@@ -4644,20 +4644,20 @@ class ue extends ht {
4644
4644
  top: Se,
4645
4645
  width: ve + Qt.width,
4646
4646
  height: _e + Qt.height,
4647
- color: T.backdropColor
4647
+ color: I.backdropColor
4648
4648
  };
4649
4649
  }
4650
4650
  p.push({
4651
4651
  label: _,
4652
4652
  font: P,
4653
- textOffset: D,
4653
+ textOffset: C,
4654
4654
  options: {
4655
4655
  rotation: g,
4656
- color: j,
4657
- strokeColor: et,
4658
- strokeWidth: Z,
4656
+ color: V,
4657
+ strokeColor: ot,
4658
+ strokeWidth: q,
4659
4659
  textAlign: Jt,
4660
- textBaseline: I,
4660
+ textBaseline: T,
4661
4661
  translation: [
4662
4662
  v,
4663
4663
  S
@@ -4748,7 +4748,7 @@ class ue extends ht {
4748
4748
  return;
4749
4749
  const r = s.setContext(this.getContext(0)).lineWidth, l = this._borderValue;
4750
4750
  let c, h, d, u;
4751
- this.isHorizontal() ? (c = Nt(t, this.left, a) - a / 2, h = Nt(t, this.right, r) + r / 2, d = u = l) : (d = Nt(t, this.top, a) - a / 2, u = Nt(t, this.bottom, r) + r / 2, c = h = l), e.save(), e.lineWidth = o.width, e.strokeStyle = o.color, e.beginPath(), e.moveTo(c, d), e.lineTo(h, u), e.stroke(), e.restore();
4751
+ this.isHorizontal() ? (c = Ht(t, this.left, a) - a / 2, h = Ht(t, this.right, r) + r / 2, d = u = l) : (d = Ht(t, this.top, a) - a / 2, u = Ht(t, this.bottom, r) + r / 2, c = h = l), e.save(), e.lineWidth = o.width, e.strokeStyle = o.color, e.beginPath(), e.moveTo(c, d), e.lineTo(h, u), e.stroke(), e.restore();
4752
4752
  }
4753
4753
  drawLabels(t) {
4754
4754
  if (!this.options.ticks.display)
@@ -4766,9 +4766,9 @@ class ue extends ht {
4766
4766
  const { ctx: t, options: { position: e, title: n, reverse: s } } = this;
4767
4767
  if (!n.display)
4768
4768
  return;
4769
- const o = X(n.font), a = K(n.padding), r = n.align;
4769
+ const o = X(n.font), a = Z(n.padding), r = n.align;
4770
4770
  let l = o.lineHeight / 2;
4771
- e === "bottom" || e === "center" || O(e) ? (l += a.bottom, N(n.text) && (l += o.lineHeight * (n.text.length - 1))) : l += a.top;
4771
+ e === "bottom" || e === "center" || O(e) ? (l += a.bottom, W(n.text) && (l += o.lineHeight * (n.text.length - 1))) : l += a.top;
4772
4772
  const { titleX: c, titleY: h, maxWidth: d, rotation: u } = Ec(this, l, e, r);
4773
4773
  Zt(t, n.text, 0, 0, o, {
4774
4774
  color: n.color,
@@ -4847,30 +4847,30 @@ class ai {
4847
4847
  const s = this.items, o = t.id, a = this.scope + "." + o;
4848
4848
  if (!o)
4849
4849
  throw new Error("class does not have id: " + t);
4850
- return o in s || (s[o] = t, Bc(t, a, n), this.override && $.override(t.id, t.overrides)), a;
4850
+ return o in s || (s[o] = t, Bc(t, a, n), this.override && U.override(t.id, t.overrides)), a;
4851
4851
  }
4852
4852
  get(t) {
4853
4853
  return this.items[t];
4854
4854
  }
4855
4855
  unregister(t) {
4856
4856
  const e = this.items, n = t.id, s = this.scope;
4857
- n in e && delete e[n], s && n in $[s] && (delete $[s][n], this.override && delete Kt[n]);
4857
+ n in e && delete e[n], s && n in U[s] && (delete U[s][n], this.override && delete Kt[n]);
4858
4858
  }
4859
4859
  }
4860
4860
  function Bc(i, t, e) {
4861
4861
  const n = bt(/* @__PURE__ */ Object.create(null), [
4862
- e ? $.get(e) : {},
4863
- $.get(t),
4862
+ e ? U.get(e) : {},
4863
+ U.get(t),
4864
4864
  i.defaults
4865
4865
  ]);
4866
- $.set(t, n), i.defaultRoutes && zc(t, i.defaultRoutes), i.descriptors && $.describe(t, i.descriptors);
4866
+ U.set(t, n), i.defaultRoutes && zc(t, i.defaultRoutes), i.descriptors && U.describe(t, i.descriptors);
4867
4867
  }
4868
4868
  function zc(i, t) {
4869
4869
  Object.keys(t).forEach((e) => {
4870
4870
  const n = e.split("."), s = n.pop(), o = [
4871
4871
  i
4872
4872
  ].concat(n).join("."), a = t[e].split("."), r = a.pop(), l = a.join(".");
4873
- $.route(o, s, l, r);
4873
+ U.route(o, s, l, r);
4874
4874
  });
4875
4875
  }
4876
4876
  function Nc(i) {
@@ -4931,7 +4931,7 @@ class Wc {
4931
4931
  ...e
4932
4932
  ].forEach((s) => {
4933
4933
  const o = n || this._getRegistryForType(s);
4934
- n || o.isForType(s) || o === this.plugins && s.id ? this._exec(t, o, s) : E(s, (a) => {
4934
+ n || o.isForType(s) || o === this.plugins && s.id ? this._exec(t, o, s) : B(s, (a) => {
4935
4935
  const r = n || this._getRegistryForType(a);
4936
4936
  this._exec(t, r, a);
4937
4937
  });
@@ -4980,7 +4980,7 @@ class Hc {
4980
4980
  return !0;
4981
4981
  }
4982
4982
  invalidate() {
4983
- F(this._cache) || (this._oldCache = this._cache, this._cache = void 0);
4983
+ R(this._cache) || (this._oldCache = this._cache, this._cache = void 0);
4984
4984
  }
4985
4985
  _descriptors(t) {
4986
4986
  if (this._cache)
@@ -5039,7 +5039,7 @@ function Uc(i, { plugin: t, local: e }, n, s) {
5039
5039
  });
5040
5040
  }
5041
5041
  function rn(i, t) {
5042
- const e = $.datasets[i] || {};
5042
+ const e = U.datasets[i] || {};
5043
5043
  return ((t.datasets || {})[i] || {}).indexAxis || t.indexAxis || e.indexAxis || "x";
5044
5044
  }
5045
5045
  function Yc(i, t) {
@@ -5093,7 +5093,7 @@ function Kc(i, t) {
5093
5093
  return console.error(`Invalid scale configuration for scale: ${a}`);
5094
5094
  if (r._proxy)
5095
5095
  return console.warn(`Ignoring resolver passed as options for scale: ${a}`);
5096
- const l = ln(a, r, Gc(a, i), $.scales[r.type]), c = Xc(l, s), h = e.scales || {};
5096
+ const l = ln(a, r, Gc(a, i), U.scales[r.type]), c = Xc(l, s), h = e.scales || {};
5097
5097
  o[a] = Re(/* @__PURE__ */ Object.create(null), [
5098
5098
  {
5099
5099
  axis: l
@@ -5117,8 +5117,8 @@ function Kc(i, t) {
5117
5117
  }), Object.keys(o).forEach((a) => {
5118
5118
  const r = o[a];
5119
5119
  Re(r, [
5120
- $.scales[r.type],
5121
- $.scale
5120
+ U.scales[r.type],
5121
+ U.scale
5122
5122
  ]);
5123
5123
  }), o;
5124
5124
  }
@@ -5138,7 +5138,7 @@ function ri(i, t) {
5138
5138
  return e || (e = t(), Ls.set(i, e), ta.add(e)), e;
5139
5139
  }
5140
5140
  const De = (i, t, e) => {
5141
- const n = It(t, e);
5141
+ const n = Rt(t, e);
5142
5142
  n !== void 0 && i.add(n);
5143
5143
  };
5144
5144
  class Jc {
@@ -5226,7 +5226,7 @@ class Jc {
5226
5226
  return r;
5227
5227
  const l = /* @__PURE__ */ new Set();
5228
5228
  e.forEach((h) => {
5229
- t && (l.add(t), h.forEach((d) => De(l, t, d))), h.forEach((d) => De(l, s, d)), h.forEach((d) => De(l, Kt[o] || {}, d)), h.forEach((d) => De(l, $, d)), h.forEach((d) => De(l, on, d));
5229
+ t && (l.add(t), h.forEach((d) => De(l, t, d))), h.forEach((d) => De(l, s, d)), h.forEach((d) => De(l, Kt[o] || {}, d)), h.forEach((d) => De(l, U, d)), h.forEach((d) => De(l, on, d));
5230
5230
  });
5231
5231
  const c = Array.from(l);
5232
5232
  return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), ta.has(e) && a.set(e, c), c;
@@ -5236,11 +5236,11 @@ class Jc {
5236
5236
  return [
5237
5237
  t,
5238
5238
  Kt[e] || {},
5239
- $.datasets[e] || {},
5239
+ U.datasets[e] || {},
5240
5240
  {
5241
5241
  type: e
5242
5242
  },
5243
- $,
5243
+ U,
5244
5244
  on
5245
5245
  ];
5246
5246
  }
@@ -5252,7 +5252,7 @@ class Jc {
5252
5252
  }, { resolver: a, subPrefixes: r } = Ts(this._resolverCache, t, s);
5253
5253
  let l = a;
5254
5254
  if (th(a, e)) {
5255
- o.$shared = !1, n = Ft(n) ? n() : n;
5255
+ o.$shared = !1, n = Et(n) ? n() : n;
5256
5256
  const c = this.createResolver(t, n, r);
5257
5257
  l = ae(a, n, c);
5258
5258
  }
@@ -5277,12 +5277,12 @@ function Ts(i, t, e) {
5277
5277
  subPrefixes: e.filter((r) => !r.toLowerCase().includes("hover"))
5278
5278
  }, n.set(s, o)), o;
5279
5279
  }
5280
- const Qc = (i) => O(i) && Object.getOwnPropertyNames(i).reduce((t, e) => t || Ft(i[e]), !1);
5280
+ const Qc = (i) => O(i) && Object.getOwnPropertyNames(i).reduce((t, e) => t || Et(i[e]), !1);
5281
5281
  function th(i, t) {
5282
5282
  const { isScriptable: e, isIndexable: n } = Io(i);
5283
5283
  for (const s of t) {
5284
5284
  const o = e(s), a = n(s), r = (a || o) && i[s];
5285
- if (o && (Ft(r) || Qc(r)) || a && N(r))
5285
+ if (o && (Et(r) || Qc(r)) || a && W(r))
5286
5286
  return !0;
5287
5287
  }
5288
5288
  return !1;
@@ -5370,7 +5370,7 @@ let Ct = (Pt = class {
5370
5370
  }
5371
5371
  get aspectRatio() {
5372
5372
  const { options: { aspectRatio: t, maintainAspectRatio: e }, width: n, height: s, _aspectRatio: o } = this;
5373
- return F(t) ? e && o ? o : s ? n / s : null : t;
5373
+ return R(t) ? e && o ? o : s ? n / s : null : t;
5374
5374
  }
5375
5375
  get data() {
5376
5376
  return this.config.data;
@@ -5413,7 +5413,7 @@ let Ct = (Pt = class {
5413
5413
  }
5414
5414
  ensureScalesHaveIDs() {
5415
5415
  const e = this.options.scales || {};
5416
- E(e, (n, s) => {
5416
+ B(e, (n, s) => {
5417
5417
  n.id = s;
5418
5418
  });
5419
5419
  }
@@ -5427,7 +5427,7 @@ let Ct = (Pt = class {
5427
5427
  dposition: c ? "chartArea" : h ? "bottom" : "left",
5428
5428
  dtype: c ? "radialLinear" : h ? "category" : "linear"
5429
5429
  };
5430
- }))), E(o, (a) => {
5430
+ }))), B(o, (a) => {
5431
5431
  const r = a.options, l = r.id, c = ln(l, r), h = A(r.type, a.dtype);
5432
5432
  (r.position === void 0 || Os(r.position, c) !== Os(a.dposition)) && (r.position = a.dposition), s[l] = !0;
5433
5433
  let d = null;
@@ -5443,9 +5443,9 @@ let Ct = (Pt = class {
5443
5443
  }), n[d.id] = d;
5444
5444
  }
5445
5445
  d.init(r, t);
5446
- }), E(s, (a, r) => {
5446
+ }), B(s, (a, r) => {
5447
5447
  a || delete n[r];
5448
- }), E(n, (a) => {
5448
+ }), B(n, (a) => {
5449
5449
  ct.configure(this, a, a.options), ct.addBox(this, a);
5450
5450
  });
5451
5451
  }
@@ -5474,7 +5474,7 @@ let Ct = (Pt = class {
5474
5474
  if (a.type && a.type !== r && (this._destroyDatasetMeta(n), a = this.getDatasetMeta(n)), a.type = r, a.indexAxis = o.indexAxis || rn(r, this.options), a.order = o.order || 0, a.index = n, a.label = "" + o.label, a.visible = this.isDatasetVisible(n), a.controller)
5475
5475
  a.controller.updateIndex(n), a.controller.linkScales();
5476
5476
  else {
5477
- const l = ft.getController(r), { datasetElementType: c, dataElementType: h } = $.datasets[r];
5477
+ const l = ft.getController(r), { datasetElementType: c, dataElementType: h } = U.datasets[r];
5478
5478
  Object.assign(l, {
5479
5479
  dataElementType: ft.getElement(h),
5480
5480
  datasetElementType: c && ft.getElement(c)
@@ -5484,7 +5484,7 @@ let Ct = (Pt = class {
5484
5484
  return this._updateMetasets(), t;
5485
5485
  }
5486
5486
  _resetElements() {
5487
- E(this.data.datasets, (t, e) => {
5487
+ B(this.data.datasets, (t, e) => {
5488
5488
  this.getDatasetMeta(e).controller.reset();
5489
5489
  }, this);
5490
5490
  }
@@ -5507,7 +5507,7 @@ let Ct = (Pt = class {
5507
5507
  const { controller: d } = this.getDatasetMeta(c), u = !s && o.indexOf(d) === -1;
5508
5508
  d.buildOrUpdateElements(u), a = Math.max(+d.getMaxOverflow(), a);
5509
5509
  }
5510
- a = this._minPadding = n.layout.autoPadding ? a : 0, this._updateLayout(a), s || E(o, (c) => {
5510
+ a = this._minPadding = n.layout.autoPadding ? a : 0, this._updateLayout(a), s || B(o, (c) => {
5511
5511
  c.reset();
5512
5512
  }), this._updateDatasets(t), this.notifyPlugins("afterUpdate", {
5513
5513
  mode: t
@@ -5516,7 +5516,7 @@ let Ct = (Pt = class {
5516
5516
  l ? this._eventHandler(l, !0) : r.length && this._updateHoverStyles(r, r, !0), this.render();
5517
5517
  }
5518
5518
  _updateScales() {
5519
- E(this.scales, (t) => {
5519
+ B(this.scales, (t) => {
5520
5520
  ct.removeBox(this, t);
5521
5521
  }), this.ensureScalesHaveIDs(), this.buildOrUpdateScales();
5522
5522
  }
@@ -5553,7 +5553,7 @@ let Ct = (Pt = class {
5553
5553
  return;
5554
5554
  ct.update(this, this.width, this.height, t);
5555
5555
  const e = this.chartArea, n = e.width <= 0 || e.height <= 0;
5556
- this._layers = [], E(this.boxes, (s) => {
5556
+ this._layers = [], B(this.boxes, (s) => {
5557
5557
  n && s.position === "chartArea" || (s.configure && s.configure(), this._layers.push(...s._layers()));
5558
5558
  }, this), this._layers.forEach((s, o) => {
5559
5559
  s._idx = o;
@@ -5567,7 +5567,7 @@ let Ct = (Pt = class {
5567
5567
  for (let e = 0, n = this.data.datasets.length; e < n; ++e)
5568
5568
  this.getDatasetMeta(e).controller.configure();
5569
5569
  for (let e = 0, n = this.data.datasets.length; e < n; ++e)
5570
- this._updateDataset(e, Ft(t) ? t({
5570
+ this._updateDataset(e, Et(t) ? t({
5571
5571
  datasetIndex: e
5572
5572
  }) : t);
5573
5573
  this.notifyPlugins("afterDatasetsUpdate", {
@@ -5669,7 +5669,7 @@ let Ct = (Pt = class {
5669
5669
  }, n.push(s)), s;
5670
5670
  }
5671
5671
  getContext() {
5672
- return this.$context || (this.$context = Bt(null, {
5672
+ return this.$context || (this.$context = Nt(null, {
5673
5673
  chart: this,
5674
5674
  type: "chart"
5675
5675
  }));
@@ -5732,7 +5732,7 @@ let Ct = (Pt = class {
5732
5732
  }, s = (o, a, r) => {
5733
5733
  o.offsetX = a, o.offsetY = r, this._eventHandler(o);
5734
5734
  };
5735
- E(this.options.events, (o) => n(o, s));
5735
+ B(this.options.events, (o) => n(o, s));
5736
5736
  }
5737
5737
  bindResponsiveEvents() {
5738
5738
  this._responsiveListeners || (this._responsiveListeners = {});
@@ -5752,9 +5752,9 @@ let Ct = (Pt = class {
5752
5752
  }, e.isAttached(this.canvas) ? r() : a();
5753
5753
  }
5754
5754
  unbindEvents() {
5755
- E(this._listeners, (t, e) => {
5755
+ B(this._listeners, (t, e) => {
5756
5756
  this.platform.removeEventListener(this, e, t);
5757
- }), this._listeners = {}, E(this._responsiveListeners, (t, e) => {
5757
+ }), this._listeners = {}, B(this._responsiveListeners, (t, e) => {
5758
5758
  this.platform.removeEventListener(this, e, t);
5759
5759
  }), this._responsiveListeners = void 0;
5760
5760
  }
@@ -5827,14 +5827,14 @@ let Ct = (Pt = class {
5827
5827
  const o = this.options.hover;
5828
5828
  return this.getElementsAtEventForMode(t, o.mode, o, s);
5829
5829
  }
5830
- }, w(Pt, "defaults", $), w(Pt, "instances", _i), w(Pt, "overrides", Kt), w(Pt, "registry", ft), w(Pt, "version", eh), w(Pt, "getChart", Rs), Pt);
5830
+ }, w(Pt, "defaults", U), w(Pt, "instances", _i), w(Pt, "overrides", Kt), w(Pt, "registry", ft), w(Pt, "version", eh), w(Pt, "getChart", Rs), Pt);
5831
5831
  function Es() {
5832
- return E(Ct.instances, (i) => i._plugins.invalidate());
5832
+ return B(Ct.instances, (i) => i._plugins.invalidate());
5833
5833
  }
5834
5834
  function rh(i, t, e) {
5835
5835
  const { startAngle: n, pixelMargin: s, x: o, y: a, outerRadius: r, innerRadius: l } = t;
5836
5836
  let c = s / r;
5837
- i.beginPath(), i.arc(o, a, r, n - c, e + c), l > s ? (c = s / l, i.arc(o, a, l, e + c, n - c, !0)) : i.arc(o, a, s, e + U, n - U), i.closePath(), i.clip();
5837
+ i.beginPath(), i.arc(o, a, r, n - c, e + c), l > s ? (c = s / l, i.arc(o, a, l, e + c, n - c, !0)) : i.arc(o, a, s, e + Y, n - Y), i.closePath(), i.clip();
5838
5838
  }
5839
5839
  function lh(i) {
5840
5840
  return An(i, [
@@ -5867,37 +5867,37 @@ function Di(i, t, e, n, s, o) {
5867
5867
  let f = 0;
5868
5868
  const m = s - l;
5869
5869
  if (n) {
5870
- const T = h > 0 ? h - n : 0, B = d > 0 ? d - n : 0, j = (T + B) / 2, et = j !== 0 ? m * j / (j + n) : m;
5871
- f = (m - et) / 2;
5870
+ const I = h > 0 ? h - n : 0, F = d > 0 ? d - n : 0, V = (I + F) / 2, ot = V !== 0 ? m * V / (V + n) : m;
5871
+ f = (m - ot) / 2;
5872
5872
  }
5873
- const g = Math.max(1e-3, m * d - e / V) / d, p = (m - g) / 2, b = l + p + f, y = s - p - f, { outerStart: x, outerEnd: _, innerStart: v, innerEnd: S } = ch(t, u, d, y - b), M = d - x, k = d - _, P = b + x / M, L = y - _ / k, C = u + v, D = u + S, I = b + v / C, Y = y - S / D;
5873
+ const g = Math.max(1e-3, m * d - e / $) / d, p = (m - g) / 2, b = l + p + f, y = s - p - f, { outerStart: x, outerEnd: _, innerStart: v, innerEnd: S } = ch(t, u, d, y - b), M = d - x, k = d - _, P = b + x / M, L = y - _ / k, D = u + v, C = u + S, T = b + v / D, N = y - S / C;
5874
5874
  if (i.beginPath(), o) {
5875
- const T = (P + L) / 2;
5876
- if (i.arc(a, r, d, P, T), i.arc(a, r, d, T, L), _ > 0) {
5877
- const Z = ee(k, L, a, r);
5878
- i.arc(Z.x, Z.y, _, L, y + U);
5879
- }
5880
- const B = ee(D, y, a, r);
5881
- if (i.lineTo(B.x, B.y), S > 0) {
5882
- const Z = ee(D, Y, a, r);
5883
- i.arc(Z.x, Z.y, S, y + U, Y + Math.PI);
5884
- }
5885
- const j = (y - S / u + (b + v / u)) / 2;
5886
- if (i.arc(a, r, u, y - S / u, j, !0), i.arc(a, r, u, j, b + v / u, !0), v > 0) {
5887
- const Z = ee(C, I, a, r);
5888
- i.arc(Z.x, Z.y, v, I + Math.PI, b - U);
5889
- }
5890
- const et = ee(M, b, a, r);
5891
- if (i.lineTo(et.x, et.y), x > 0) {
5892
- const Z = ee(M, P, a, r);
5893
- i.arc(Z.x, Z.y, x, b - U, P);
5875
+ const I = (P + L) / 2;
5876
+ if (i.arc(a, r, d, P, I), i.arc(a, r, d, I, L), _ > 0) {
5877
+ const q = ee(k, L, a, r);
5878
+ i.arc(q.x, q.y, _, L, y + Y);
5879
+ }
5880
+ const F = ee(C, y, a, r);
5881
+ if (i.lineTo(F.x, F.y), S > 0) {
5882
+ const q = ee(C, N, a, r);
5883
+ i.arc(q.x, q.y, S, y + Y, N + Math.PI);
5884
+ }
5885
+ const V = (y - S / u + (b + v / u)) / 2;
5886
+ if (i.arc(a, r, u, y - S / u, V, !0), i.arc(a, r, u, V, b + v / u, !0), v > 0) {
5887
+ const q = ee(D, T, a, r);
5888
+ i.arc(q.x, q.y, v, T + Math.PI, b - Y);
5889
+ }
5890
+ const ot = ee(M, b, a, r);
5891
+ if (i.lineTo(ot.x, ot.y), x > 0) {
5892
+ const q = ee(M, P, a, r);
5893
+ i.arc(q.x, q.y, x, b - Y, P);
5894
5894
  }
5895
5895
  } else {
5896
5896
  i.moveTo(a, r);
5897
- const T = Math.cos(P) * d + a, B = Math.sin(P) * d + r;
5898
- i.lineTo(T, B);
5899
- const j = Math.cos(L) * d + a, et = Math.sin(L) * d + r;
5900
- i.lineTo(j, et);
5897
+ const I = Math.cos(P) * d + a, F = Math.sin(P) * d + r;
5898
+ i.lineTo(I, F);
5899
+ const V = Math.cos(L) * d + a, ot = Math.sin(L) * d + r;
5900
+ i.lineTo(V, ot);
5901
5901
  }
5902
5902
  i.closePath();
5903
5903
  }
@@ -5908,7 +5908,7 @@ function hh(i, t, e, n, s) {
5908
5908
  Di(i, t, e, n, l, s);
5909
5909
  for (let c = 0; c < o; ++c)
5910
5910
  i.fill();
5911
- isNaN(r) || (l = a + (r % W || W));
5911
+ isNaN(r) || (l = a + (r % H || H));
5912
5912
  }
5913
5913
  return Di(i, t, e, n, l, s), i.fill(), l;
5914
5914
  }
@@ -5922,7 +5922,7 @@ function dh(i, t, e, n, s) {
5922
5922
  Di(i, t, e, n, m, s);
5923
5923
  for (let g = 0; g < o; ++g)
5924
5924
  i.stroke();
5925
- isNaN(r) || (m = a + (r % W || W));
5925
+ isNaN(r) || (m = a + (r % H || H));
5926
5926
  }
5927
5927
  f && rh(i, t, m), o || (Di(i, t, e, n, m, s), i.stroke());
5928
5928
  }
@@ -5951,7 +5951,7 @@ class ne extends ht {
5951
5951
  "innerRadius",
5952
5952
  "outerRadius",
5953
5953
  "circumference"
5954
- ], s), f = (this.options.spacing + this.options.borderWidth) / 2, g = A(u, c - l) >= W || $e(a, l, c), p = St(r, h + f, d + f);
5954
+ ], s), f = (this.options.spacing + this.options.borderWidth) / 2, g = A(u, c - l) >= H || $e(a, l, c), p = St(r, h + f, d + f);
5955
5955
  return g && p;
5956
5956
  }
5957
5957
  getCenterPoint(e) {
@@ -5973,12 +5973,12 @@ class ne extends ht {
5973
5973
  }
5974
5974
  draw(e) {
5975
5975
  const { options: n, circumference: s } = this, o = (n.offset || 0) / 4, a = (n.spacing || 0) / 2, r = n.circular;
5976
- if (this.pixelMargin = n.borderAlign === "inner" ? 0.33 : 0, this.fullCircles = s > W ? Math.floor(s / W) : 0, s === 0 || this.innerRadius < 0 || this.outerRadius < 0)
5976
+ if (this.pixelMargin = n.borderAlign === "inner" ? 0.33 : 0, this.fullCircles = s > H ? Math.floor(s / H) : 0, s === 0 || this.innerRadius < 0 || this.outerRadius < 0)
5977
5977
  return;
5978
5978
  e.save();
5979
5979
  const l = (this.startAngle + this.endAngle) / 2;
5980
5980
  e.translate(Math.cos(l) * o, Math.sin(l) * o);
5981
- const c = 1 - Math.sin(Math.min(V, s || 0)), h = o * c;
5981
+ const c = 1 - Math.sin(Math.min($, s || 0)), h = o * c;
5982
5982
  e.fillStyle = n.backgroundColor, e.strokeStyle = n.borderColor, hh(e, this, h, a, r), dh(e, this, h, a, r), e.restore();
5983
5983
  }
5984
5984
  }
@@ -6044,7 +6044,7 @@ function cn(i) {
6044
6044
  return !i._decimated && !i._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !e ? ph : gh;
6045
6045
  }
6046
6046
  function mh(i) {
6047
- return i.stepped ? ml : i.tension || i.cubicInterpolationMode === "monotone" ? bl : jt;
6047
+ return i.stepped ? ml : i.tension || i.cubicInterpolationMode === "monotone" ? bl : Ut;
6048
6048
  }
6049
6049
  function bh(i, t, e, n) {
6050
6050
  let s = t._path;
@@ -6251,7 +6251,7 @@ function vh(i, t, e) {
6251
6251
  function Sh(i, t, e) {
6252
6252
  const { enableBorderRadius: n } = i.getProps([
6253
6253
  "enableBorderRadius"
6254
- ]), s = i.options.borderRadius, o = Ut(s), a = Math.min(t, e), r = i.borderSkipped, l = n || O(s);
6254
+ ]), s = i.options.borderRadius, o = Xt(s), a = Math.min(t, e), r = i.borderSkipped, l = n || O(s);
6255
6255
  return {
6256
6256
  topLeft: At(!l || r.top || r.left, o.topLeft, 0, a),
6257
6257
  topRight: At(!l || r.top || r.right, o.topRight, 0, a),
@@ -6422,7 +6422,7 @@ function zs(i, t, e, n) {
6422
6422
  }
6423
6423
  function oa(i, t) {
6424
6424
  let e = [], n = !1;
6425
- return N(i) ? (n = !0, e = i) : e = Ph(i, t), e.length ? new pt({
6425
+ return W(i) ? (n = !0, e = i) : e = Ph(i, t), e.length ? new pt({
6426
6426
  points: e,
6427
6427
  options: {
6428
6428
  tension: 0
@@ -6443,7 +6443,7 @@ function Dh(i, t, e) {
6443
6443
  if (!e)
6444
6444
  return s;
6445
6445
  for (; s !== !1 && o.indexOf(s) === -1; ) {
6446
- if (!G(s))
6446
+ if (!K(s))
6447
6447
  return s;
6448
6448
  if (a = i[s], !a)
6449
6449
  return !1;
@@ -6458,7 +6458,7 @@ function Ah(i, t, e) {
6458
6458
  if (O(n))
6459
6459
  return isNaN(n.value) ? !1 : n;
6460
6460
  let s = parseFloat(n);
6461
- return G(s) && Math.floor(s) === s ? Lh(n[0], t, s, e) : [
6461
+ return K(s) && Math.floor(s) === s ? Lh(n[0], t, s, e) : [
6462
6462
  "origin",
6463
6463
  "start",
6464
6464
  "end",
@@ -6548,7 +6548,7 @@ class aa {
6548
6548
  const { x: s, y: o, radius: a } = this;
6549
6549
  return e = e || {
6550
6550
  start: 0,
6551
- end: W
6551
+ end: H
6552
6552
  }, t.arc(s, o, a, e.end, e.start, !0), !n.bounds;
6553
6553
  }
6554
6554
  interpolate(t) {
@@ -6562,7 +6562,7 @@ class aa {
6562
6562
  }
6563
6563
  function zh(i) {
6564
6564
  const { chart: t, fill: e, line: n } = i;
6565
- if (G(e))
6565
+ if (K(e))
6566
6566
  return Nh(t, e);
6567
6567
  if (e === "stack")
6568
6568
  return Fh(i);
@@ -6580,7 +6580,7 @@ function Wh(i) {
6580
6580
  }
6581
6581
  function Hh(i) {
6582
6582
  const { scale: t = {}, fill: e } = i, n = Th(e, t);
6583
- if (G(n)) {
6583
+ if (K(n)) {
6584
6584
  const s = t.isHorizontal();
6585
6585
  return {
6586
6586
  x: s ? n : null,
@@ -6809,7 +6809,7 @@ class $s extends ht {
6809
6809
  }
6810
6810
  }
6811
6811
  _draw() {
6812
- const { options: t, columnSizes: e, lineWidths: n, ctx: s } = this, { align: o, labels: a } = t, r = $.color, l = se(t.rtl, this.left, this.width), c = X(a.font), { padding: h } = a, d = c.size, u = d / 2;
6812
+ const { options: t, columnSizes: e, lineWidths: n, ctx: s } = this, { align: o, labels: a } = t, r = U.color, l = se(t.rtl, this.left, this.width), c = X(a.font), { padding: h } = a, d = c.size, u = d / 2;
6813
6813
  let f;
6814
6814
  this.drawTitle(), s.textAlign = l.textAlign("left"), s.textBaseline = "middle", s.lineWidth = 0.5, s.font = c.string;
6815
6815
  const { boxWidth: m, boxHeight: g, itemHeight: p } = js(a, d), b = function(S, M, k) {
@@ -6823,17 +6823,17 @@ class $s extends ht {
6823
6823
  pointStyle: k.pointStyle,
6824
6824
  rotation: k.rotation,
6825
6825
  borderWidth: P
6826
- }, C = l.xPlus(S, m / 2), D = M + u;
6827
- To(s, L, C, D, a.pointStyleWidth && m);
6826
+ }, D = l.xPlus(S, m / 2), C = M + u;
6827
+ To(s, L, D, C, a.pointStyleWidth && m);
6828
6828
  } else {
6829
- const L = M + Math.max((d - g) / 2, 0), C = l.leftForLtr(S, m), D = Ut(k.borderRadius);
6830
- s.beginPath(), Object.values(D).some((I) => I !== 0) ? Ue(s, {
6831
- x: C,
6829
+ const L = M + Math.max((d - g) / 2, 0), D = l.leftForLtr(S, m), C = Xt(k.borderRadius);
6830
+ s.beginPath(), Object.values(C).some((T) => T !== 0) ? Ue(s, {
6831
+ x: D,
6832
6832
  y: L,
6833
6833
  w: m,
6834
6834
  h: g,
6835
- radius: D
6836
- }) : s.rect(C, L, m, g), s.fill(), P !== 0 && s.stroke();
6835
+ radius: C
6836
+ }) : s.rect(D, L, m, g), s.fill(), P !== 0 && s.stroke();
6837
6837
  }
6838
6838
  s.restore();
6839
6839
  }, y = function(S, M, k) {
@@ -6855,20 +6855,20 @@ class $s extends ht {
6855
6855
  this.legendItems.forEach((S, M) => {
6856
6856
  s.strokeStyle = S.fontColor, s.fillStyle = S.fontColor;
6857
6857
  const k = s.measureText(S.text).width, P = l.textAlign(S.textAlign || (S.textAlign = a.textAlign)), L = m + u + k;
6858
- let C = f.x, D = f.y;
6859
- l.setWidth(this.width), x ? M > 0 && C + L + h > this.right && (D = f.y += v, f.line++, C = f.x = J(o, this.left + h, this.right - n[f.line])) : M > 0 && D + v > this.bottom && (C = f.x = C + e[f.line].width + h, f.line++, D = f.y = J(o, this.top + _ + h, this.bottom - e[f.line].height));
6860
- const I = l.x(C);
6861
- if (b(I, D, S), C = Mr(P, C + m + u, x ? C + L : this.right, t.rtl), y(l.x(C), D, S), x)
6858
+ let D = f.x, C = f.y;
6859
+ l.setWidth(this.width), x ? M > 0 && D + L + h > this.right && (C = f.y += v, f.line++, D = f.x = J(o, this.left + h, this.right - n[f.line])) : M > 0 && C + v > this.bottom && (D = f.x = D + e[f.line].width + h, f.line++, C = f.y = J(o, this.top + _ + h, this.bottom - e[f.line].height));
6860
+ const T = l.x(D);
6861
+ if (b(T, C, S), D = Mr(P, D + m + u, x ? D + L : this.right, t.rtl), y(l.x(D), C, S), x)
6862
6862
  f.x += L + h;
6863
6863
  else if (typeof S.text != "string") {
6864
- const Y = c.lineHeight;
6865
- f.y += ra(S, Y) + h;
6864
+ const N = c.lineHeight;
6865
+ f.y += ra(S, N) + h;
6866
6866
  } else
6867
6867
  f.y += v;
6868
6868
  }), Wo(this.ctx, t.textDirection);
6869
6869
  }
6870
6870
  drawTitle() {
6871
- const t = this.options, e = t.title, n = X(e.font), s = K(e.padding);
6871
+ const t = this.options, e = t.title, n = X(e.font), s = Z(e.padding);
6872
6872
  if (!e.display)
6873
6873
  return;
6874
6874
  const o = se(t.rtl, this.left, this.width), a = this.ctx, r = e.position, l = n.size / 2, c = s.top + l;
@@ -6883,7 +6883,7 @@ class $s extends ht {
6883
6883
  a.textAlign = o.textAlign(wn(r)), a.textBaseline = "middle", a.strokeStyle = e.color, a.fillStyle = e.color, a.font = n.string, Zt(a, e.text, f, h, n);
6884
6884
  }
6885
6885
  _computeTitleHeight() {
6886
- const t = this.options.title, e = X(t.font), n = K(t.padding);
6886
+ const t = this.options.title, e = X(t.font), n = Z(t.padding);
6887
6887
  return t.display ? e.lineHeight + n.height : 0;
6888
6888
  }
6889
6889
  _getLegendItemAt(t, e) {
@@ -6986,7 +6986,7 @@ var fe = {
6986
6986
  generateLabels(i) {
6987
6987
  const t = i.data.datasets, { labels: { usePointStyle: e, pointStyle: n, textAlign: s, color: o, useBorderRadius: a, borderRadius: r } } = i.legend.options;
6988
6988
  return i._getSortedDatasetMetas().map((l) => {
6989
- const c = l.controller.getStyle(e ? 0 : void 0), h = K(c.borderWidth);
6989
+ const c = l.controller.getStyle(e ? 0 : void 0), h = Z(c.borderWidth);
6990
6990
  return {
6991
6991
  text: t[l.index].label,
6992
6992
  fillStyle: c.backgroundColor,
@@ -7036,8 +7036,8 @@ class la extends ht {
7036
7036
  return;
7037
7037
  }
7038
7038
  this.width = this.right = t, this.height = this.bottom = e;
7039
- const s = N(n.text) ? n.text.length : 1;
7040
- this._padding = K(n.padding);
7039
+ const s = W(n.text) ? n.text.length : 1;
7040
+ this._padding = Z(n.padding);
7041
7041
  const o = s * X(n.font).lineHeight + this._padding.height;
7042
7042
  this.isHorizontal() ? this.height = o : this.width = o;
7043
7043
  }
@@ -7048,7 +7048,7 @@ class la extends ht {
7048
7048
  _drawArgs(t) {
7049
7049
  const { top: e, left: n, bottom: s, right: o, options: a } = this, r = a.align;
7050
7050
  let l = 0, c, h, d;
7051
- return this.isHorizontal() ? (h = J(r, n, o), d = e + t, c = o - n) : (a.position === "left" ? (h = n + t, d = J(r, s, e), l = V * -0.5) : (h = o - t, d = J(r, e, s), l = V * 0.5), c = s - e), {
7051
+ return this.isHorizontal() ? (h = J(r, n, o), d = e + t, c = o - n) : (a.position === "left" ? (h = n + t, d = J(r, s, e), l = $ * -0.5) : (h = o - t, d = J(r, e, s), l = $ * 0.5), c = s - e), {
7052
7052
  titleX: h,
7053
7053
  titleY: d,
7054
7054
  maxWidth: c,
@@ -7154,7 +7154,7 @@ const Ie = {
7154
7154
  }
7155
7155
  };
7156
7156
  function ut(i, t) {
7157
- return t && (N(t) ? Array.prototype.push.apply(i, t) : i.push(t)), i;
7157
+ return t && (W(t) ? Array.prototype.push.apply(i, t) : i.push(t)), i;
7158
7158
  }
7159
7159
  function _t(i) {
7160
7160
  return (typeof i == "string" || i instanceof String) && i.indexOf(`
@@ -7176,7 +7176,7 @@ function Jh(i, t) {
7176
7176
  };
7177
7177
  }
7178
7178
  function Us(i, t) {
7179
- const e = i.chart.ctx, { body: n, footer: s, title: o } = i, { boxWidth: a, boxHeight: r } = t, l = X(t.bodyFont), c = X(t.titleFont), h = X(t.footerFont), d = o.length, u = s.length, f = n.length, m = K(t.padding);
7179
+ const e = i.chart.ctx, { body: n, footer: s, title: o } = i, { boxWidth: a, boxHeight: r } = t, l = X(t.bodyFont), c = X(t.titleFont), h = X(t.footerFont), d = o.length, u = s.length, f = n.length, m = Z(t.padding);
7180
7180
  let g = m.height, p = 0, b = n.reduce((_, v) => _ + v.before.length + v.lines.length + v.after.length, 0);
7181
7181
  if (b += i.beforeBody.length + i.afterBody.length, d && (g += d * c.lineHeight + (d - 1) * t.titleSpacing + t.titleMarginBottom), b) {
7182
7182
  const _ = t.displayColors ? Math.max(r, l.lineHeight) : l.lineHeight;
@@ -7187,9 +7187,9 @@ function Us(i, t) {
7187
7187
  const x = function(_) {
7188
7188
  p = Math.max(p, e.measureText(_).width + y);
7189
7189
  };
7190
- return e.save(), e.font = c.string, E(i.title, x), e.font = l.string, E(i.beforeBody.concat(i.afterBody), x), y = t.displayColors ? a + 2 + t.boxPadding : 0, E(n, (_) => {
7191
- E(_.before, x), E(_.lines, x), E(_.after, x);
7192
- }), y = 0, e.font = h.string, E(i.footer, x), e.restore(), p += m.width, {
7190
+ return e.save(), e.font = c.string, B(i.title, x), e.font = l.string, B(i.beforeBody.concat(i.afterBody), x), y = t.displayColors ? a + 2 + t.boxPadding : 0, B(n, (_) => {
7191
+ B(_.before, x), B(_.lines, x), B(_.after, x);
7192
+ }), y = 0, e.font = h.string, B(i.footer, x), e.restore(), p += m.width, {
7193
7193
  width: p,
7194
7194
  height: g
7195
7195
  };
@@ -7224,7 +7224,7 @@ function nd(i, t, e) {
7224
7224
  return t === "top" ? n += e : t === "bottom" ? n -= s + e : n -= s / 2, n;
7225
7225
  }
7226
7226
  function Xs(i, t, e, n) {
7227
- const { caretSize: s, caretPadding: o, cornerRadius: a } = i, { xAlign: r, yAlign: l } = e, c = s + o, { topLeft: h, topRight: d, bottomLeft: u, bottomRight: f } = Ut(a);
7227
+ const { caretSize: s, caretPadding: o, cornerRadius: a } = i, { xAlign: r, yAlign: l } = e, c = s + o, { topLeft: h, topRight: d, bottomLeft: u, bottomRight: f } = Xt(a);
7228
7228
  let m = id(t, r);
7229
7229
  const g = nd(t, l, c);
7230
7230
  return l === "center" ? r === "left" ? m += c : r === "right" && (m -= c) : r === "left" ? m -= Math.max(h, u) + s : r === "right" && (m += Math.max(d, f) + s), {
@@ -7233,14 +7233,14 @@ function Xs(i, t, e, n) {
7233
7233
  };
7234
7234
  }
7235
7235
  function ci(i, t, e) {
7236
- const n = K(e.padding);
7236
+ const n = Z(e.padding);
7237
7237
  return t === "center" ? i.x + i.width / 2 : t === "right" ? i.x + i.width - n.right : i.x + n.left;
7238
7238
  }
7239
7239
  function qs(i) {
7240
7240
  return ut([], _t(i));
7241
7241
  }
7242
7242
  function sd(i, t, e) {
7243
- return Bt(i, {
7243
+ return Nt(i, {
7244
7244
  tooltip: t,
7245
7245
  tooltipItems: e,
7246
7246
  type: "tooltip"
@@ -7273,7 +7273,7 @@ const ca = {
7273
7273
  let t = i.dataset.label || "";
7274
7274
  t && (t += ": ");
7275
7275
  const e = i.formattedValue;
7276
- return F(e) || (t += e), t;
7276
+ return R(e) || (t += e), t;
7277
7277
  },
7278
7278
  labelColor(i) {
7279
7279
  const e = i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);
@@ -7302,7 +7302,7 @@ const ca = {
7302
7302
  footer: yt,
7303
7303
  afterFooter: yt
7304
7304
  };
7305
- function it(i, t, e, n) {
7305
+ function et(i, t, e, n) {
7306
7306
  const s = i[t].call(e, n);
7307
7307
  return typeof s > "u" ? ca[t].call(e, n) : s;
7308
7308
  }
@@ -7324,29 +7324,29 @@ class dn extends ht {
7324
7324
  return this.$context || (this.$context = sd(this.chart.getContext(), this, this._tooltipItems));
7325
7325
  }
7326
7326
  getTitle(t, e) {
7327
- const { callbacks: n } = e, s = it(n, "beforeTitle", this, t), o = it(n, "title", this, t), a = it(n, "afterTitle", this, t);
7327
+ const { callbacks: n } = e, s = et(n, "beforeTitle", this, t), o = et(n, "title", this, t), a = et(n, "afterTitle", this, t);
7328
7328
  let r = [];
7329
7329
  return r = ut(r, _t(s)), r = ut(r, _t(o)), r = ut(r, _t(a)), r;
7330
7330
  }
7331
7331
  getBeforeBody(t, e) {
7332
- return qs(it(e.callbacks, "beforeBody", this, t));
7332
+ return qs(et(e.callbacks, "beforeBody", this, t));
7333
7333
  }
7334
7334
  getBody(t, e) {
7335
7335
  const { callbacks: n } = e, s = [];
7336
- return E(t, (o) => {
7336
+ return B(t, (o) => {
7337
7337
  const a = {
7338
7338
  before: [],
7339
7339
  lines: [],
7340
7340
  after: []
7341
7341
  }, r = Gs(n, o);
7342
- ut(a.before, _t(it(r, "beforeLabel", this, o))), ut(a.lines, it(r, "label", this, o)), ut(a.after, _t(it(r, "afterLabel", this, o))), s.push(a);
7342
+ ut(a.before, _t(et(r, "beforeLabel", this, o))), ut(a.lines, et(r, "label", this, o)), ut(a.after, _t(et(r, "afterLabel", this, o))), s.push(a);
7343
7343
  }), s;
7344
7344
  }
7345
7345
  getAfterBody(t, e) {
7346
- return qs(it(e.callbacks, "afterBody", this, t));
7346
+ return qs(et(e.callbacks, "afterBody", this, t));
7347
7347
  }
7348
7348
  getFooter(t, e) {
7349
- const { callbacks: n } = e, s = it(n, "beforeFooter", this, t), o = it(n, "footer", this, t), a = it(n, "afterFooter", this, t);
7349
+ const { callbacks: n } = e, s = et(n, "beforeFooter", this, t), o = et(n, "footer", this, t), a = et(n, "afterFooter", this, t);
7350
7350
  let r = [];
7351
7351
  return r = ut(r, _t(s)), r = ut(r, _t(o)), r = ut(r, _t(a)), r;
7352
7352
  }
@@ -7355,9 +7355,9 @@ class dn extends ht {
7355
7355
  let r = [], l, c;
7356
7356
  for (l = 0, c = e.length; l < c; ++l)
7357
7357
  r.push(Jh(this.chart, e[l]));
7358
- return t.filter && (r = r.filter((h, d, u) => t.filter(h, d, u, n))), t.itemSort && (r = r.sort((h, d) => t.itemSort(h, d, n))), E(r, (h) => {
7358
+ return t.filter && (r = r.filter((h, d, u) => t.filter(h, d, u, n))), t.itemSort && (r = r.sort((h, d) => t.itemSort(h, d, n))), B(r, (h) => {
7359
7359
  const d = Gs(t.callbacks, h);
7360
- s.push(it(d, "labelColor", this, h)), o.push(it(d, "labelPointStyle", this, h)), a.push(it(d, "labelTextColor", this, h));
7360
+ s.push(et(d, "labelColor", this, h)), o.push(et(d, "labelPointStyle", this, h)), a.push(et(d, "labelTextColor", this, h));
7361
7361
  }), this.labelColors = s, this.labelPointStyles = o, this.labelTextColors = a, this.dataPoints = r, r;
7362
7362
  }
7363
7363
  update(t, e) {
@@ -7392,7 +7392,7 @@ class dn extends ht {
7392
7392
  e.lineTo(o.x1, o.y1), e.lineTo(o.x2, o.y2), e.lineTo(o.x3, o.y3);
7393
7393
  }
7394
7394
  getCaretPosition(t, e, n) {
7395
- const { xAlign: s, yAlign: o } = this, { caretSize: a, cornerRadius: r } = n, { topLeft: l, topRight: c, bottomLeft: h, bottomRight: d } = Ut(r), { x: u, y: f } = t, { width: m, height: g } = e;
7395
+ const { xAlign: s, yAlign: o } = this, { caretSize: a, cornerRadius: r } = n, { topLeft: l, topRight: c, bottomLeft: h, bottomRight: d } = Xt(r), { x: u, y: f } = t, { width: m, height: g } = e;
7396
7396
  let p, b, y, x, _, v;
7397
7397
  return o === "center" ? (_ = f + g / 2, s === "left" ? (p = u, b = p - a, x = _ + a, v = _ - a) : (p = u + m, b = p + a, x = _ - a, v = _ + a), y = p) : (s === "left" ? b = u + Math.max(l, h) + a : s === "right" ? b = u + m - Math.max(c, d) - a : b = this.caretX, o === "top" ? (x = f, _ = x - a, p = b - a, y = b + a) : (x = f + g, _ = x + a, p = b + a, y = b - a), v = x), {
7398
7398
  x1: p,
@@ -7424,7 +7424,7 @@ class dn extends ht {
7424
7424
  t.strokeStyle = o.multiKeyBackground, t.fillStyle = o.multiKeyBackground, an(t, g, p, b), t.strokeStyle = a.borderColor, t.fillStyle = a.backgroundColor, an(t, g, p, b);
7425
7425
  } else {
7426
7426
  t.lineWidth = O(a.borderWidth) ? Math.max(...Object.values(a.borderWidth)) : a.borderWidth || 1, t.strokeStyle = a.borderColor, t.setLineDash(a.borderDash || []), t.lineDashOffset = a.borderDashOffset || 0;
7427
- const g = s.leftForLtr(u, c), p = s.leftForLtr(s.xPlus(u, 1), c - 2), b = Ut(a.borderRadius);
7427
+ const g = s.leftForLtr(u, c), p = s.leftForLtr(s.xPlus(u, 1), c - 2), b = Xt(a.borderRadius);
7428
7428
  Object.values(b).some((y) => y !== 0) ? (t.beginPath(), t.fillStyle = o.multiKeyBackground, Ue(t, {
7429
7429
  x: g,
7430
7430
  y: m,
@@ -7448,12 +7448,12 @@ class dn extends ht {
7448
7448
  e.fillText(k, m.x(t.x + f), t.y + u / 2), t.y += u + o;
7449
7449
  }, p = m.textAlign(a);
7450
7450
  let b, y, x, _, v, S, M;
7451
- for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = ci(this, p, n), e.fillStyle = n.bodyColor, E(this.beforeBody, g), f = r && p !== "right" ? a === "center" ? c / 2 + h : c + 2 + h : 0, _ = 0, S = s.length; _ < S; ++_) {
7452
- for (b = s[_], y = this.labelTextColors[_], e.fillStyle = y, E(b.before, g), x = b.lines, r && x.length && (this._drawColorBox(e, t, _, m, n), u = Math.max(d.lineHeight, l)), v = 0, M = x.length; v < M; ++v)
7451
+ for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = ci(this, p, n), e.fillStyle = n.bodyColor, B(this.beforeBody, g), f = r && p !== "right" ? a === "center" ? c / 2 + h : c + 2 + h : 0, _ = 0, S = s.length; _ < S; ++_) {
7452
+ for (b = s[_], y = this.labelTextColors[_], e.fillStyle = y, B(b.before, g), x = b.lines, r && x.length && (this._drawColorBox(e, t, _, m, n), u = Math.max(d.lineHeight, l)), v = 0, M = x.length; v < M; ++v)
7453
7453
  g(x[v]), u = d.lineHeight;
7454
- E(b.after, g);
7454
+ B(b.after, g);
7455
7455
  }
7456
- f = 0, u = d.lineHeight, E(this.afterBody, g), t.y -= o;
7456
+ f = 0, u = d.lineHeight, B(this.afterBody, g), t.y -= o;
7457
7457
  }
7458
7458
  drawFooter(t, e, n) {
7459
7459
  const s = this.footer, o = s.length;
@@ -7465,7 +7465,7 @@ class dn extends ht {
7465
7465
  }
7466
7466
  }
7467
7467
  drawBackground(t, e, n, s) {
7468
- const { xAlign: o, yAlign: a } = this, { x: r, y: l } = t, { width: c, height: h } = n, { topLeft: d, topRight: u, bottomLeft: f, bottomRight: m } = Ut(s.cornerRadius);
7468
+ const { xAlign: o, yAlign: a } = this, { x: r, y: l } = t, { width: c, height: h } = n, { topLeft: d, topRight: u, bottomLeft: f, bottomRight: m } = Xt(s.cornerRadius);
7469
7469
  e.fillStyle = s.backgroundColor, e.strokeStyle = s.borderColor, e.lineWidth = s.borderWidth, e.beginPath(), e.moveTo(r + d, l), a === "top" && this.drawCaret(t, e, n, s), e.lineTo(r + c - u, l), e.quadraticCurveTo(r + c, l, r + c, l + u), a === "center" && o === "right" && this.drawCaret(t, e, n, s), e.lineTo(r + c, l + h - m), e.quadraticCurveTo(r + c, l + h, r + c - m, l + h), a === "bottom" && this.drawCaret(t, e, n, s), e.lineTo(r + f, l + h), e.quadraticCurveTo(r, l + h, r, l + h - f), a === "center" && o === "left" && this.drawCaret(t, e, n, s), e.lineTo(r, l + d), e.quadraticCurveTo(r, l, r + d, l), e.closePath(), e.fill(), s.borderWidth > 0 && e.stroke();
7470
7470
  }
7471
7471
  _updateAnimationTarget(t) {
@@ -7495,7 +7495,7 @@ class dn extends ht {
7495
7495
  y: this.y
7496
7496
  };
7497
7497
  n = Math.abs(n) < 1e-3 ? 0 : n;
7498
- const a = K(e.padding), r = this.title.length || this.beforeBody.length || this.body.length || this.afterBody.length || this.footer.length;
7498
+ const a = Z(e.padding), r = this.title.length || this.beforeBody.length || this.body.length || this.afterBody.length || this.footer.length;
7499
7499
  e.enabled && r && (t.save(), t.globalAlpha = n, this.drawBackground(o, t, s, e), No(t, e.textDirection), o.y += a.top, this.drawTitle(o, t, e), this.drawBody(o, t, e), this.drawFooter(o, t, e), Wo(t, e.textDirection), t.restore());
7500
7500
  }
7501
7501
  getActiveElements() {
@@ -7686,7 +7686,7 @@ class le extends ue {
7686
7686
  super.init(t);
7687
7687
  }
7688
7688
  parse(t, e) {
7689
- if (F(t))
7689
+ if (R(t))
7690
7690
  return null;
7691
7691
  const n = this.getLabels();
7692
7692
  return e = isFinite(e) && n[e] === t ? e : ad(n, t, A(e, t), this._addedLabels), rd(e, n.length - 1);
@@ -7732,7 +7732,7 @@ w(le, "id", "category"), w(le, "defaults", {
7732
7732
  }
7733
7733
  });
7734
7734
  function ld(i, t) {
7735
- const e = [], { bounds: s, step: o, min: a, max: r, precision: l, count: c, maxTicks: h, maxDigits: d, includeBounds: u } = i, f = o || 1, m = h - 1, { min: g, max: p } = t, b = !F(a), y = !F(r), x = !F(c), _ = (p - g) / (d + 1);
7735
+ const e = [], { bounds: s, step: o, min: a, max: r, precision: l, count: c, maxTicks: h, maxDigits: d, includeBounds: u } = i, f = o || 1, m = h - 1, { min: g, max: p } = t, b = !R(a), y = !R(r), x = !R(c), _ = (p - g) / (d + 1);
7736
7736
  let v = Xn((p - g) / m / f) * f, S, M, k, P;
7737
7737
  if (v < 1e-14 && !b && !y)
7738
7738
  return [
@@ -7743,18 +7743,18 @@ function ld(i, t) {
7743
7743
  value: p
7744
7744
  }
7745
7745
  ];
7746
- P = Math.ceil(p / v) - Math.floor(g / v), P > m && (v = Xn(P * v / m / f) * f), F(l) || (S = Math.pow(10, l), v = Math.ceil(v * S) / S), s === "ticks" ? (M = Math.floor(g / v) * v, k = Math.ceil(p / v) * v) : (M = g, k = p), b && y && o && pr((r - a) / o, v / 1e3) ? (P = Math.round(Math.min((r - a) / v, h)), v = (r - a) / P, M = a, k = r) : x ? (M = b ? a : M, k = y ? r : k, P = c - 1, v = (k - M) / P) : (P = (k - M) / v, Ee(P, Math.round(P), v / 1e3) ? P = Math.round(P) : P = Math.ceil(P));
7746
+ P = Math.ceil(p / v) - Math.floor(g / v), P > m && (v = Xn(P * v / m / f) * f), R(l) || (S = Math.pow(10, l), v = Math.ceil(v * S) / S), s === "ticks" ? (M = Math.floor(g / v) * v, k = Math.ceil(p / v) * v) : (M = g, k = p), b && y && o && pr((r - a) / o, v / 1e3) ? (P = Math.round(Math.min((r - a) / v, h)), v = (r - a) / P, M = a, k = r) : x ? (M = b ? a : M, k = y ? r : k, P = c - 1, v = (k - M) / P) : (P = (k - M) / v, Ee(P, Math.round(P), v / 1e3) ? P = Math.round(P) : P = Math.ceil(P));
7747
7747
  const L = Math.max(qn(v), qn(M));
7748
- S = Math.pow(10, F(l) ? L : l), M = Math.round(M * S) / S, k = Math.round(k * S) / S;
7749
- let C = 0;
7748
+ S = Math.pow(10, R(l) ? L : l), M = Math.round(M * S) / S, k = Math.round(k * S) / S;
7749
+ let D = 0;
7750
7750
  for (b && (u && M !== a ? (e.push({
7751
7751
  value: a
7752
- }), M < a && C++, Ee(Math.round((M + C * v) * S) / S, a, Zs(a, _, i)) && C++) : M < a && C++); C < P; ++C) {
7753
- const D = Math.round((M + C * v) * S) / S;
7754
- if (y && D > r)
7752
+ }), M < a && D++, Ee(Math.round((M + D * v) * S) / S, a, Zs(a, _, i)) && D++) : M < a && D++); D < P; ++D) {
7753
+ const C = Math.round((M + D * v) * S) / S;
7754
+ if (y && C > r)
7755
7755
  break;
7756
7756
  e.push({
7757
- value: D
7757
+ value: C
7758
7758
  });
7759
7759
  }
7760
7760
  return y && u && k !== r ? e.length && Ee(e[e.length - 1].value, r, Zs(r, _, i)) ? e[e.length - 1].value = r : e.push({
@@ -7772,7 +7772,7 @@ class un extends ue {
7772
7772
  super(t), this.start = void 0, this.end = void 0, this._startValue = void 0, this._endValue = void 0, this._valueRange = 0;
7773
7773
  }
7774
7774
  parse(t, e) {
7775
- return F(t) || (typeof t == "number" || t instanceof Number) && !isFinite(+t) ? null : +t;
7775
+ return R(t) || (typeof t == "number" || t instanceof Number) && !isFinite(+t) ? null : +t;
7776
7776
  }
7777
7777
  handleTickRangeOptions() {
7778
7778
  const { beginAtZero: t } = this.options, { minDefined: e, maxDefined: n } = this.getUserBounds();
@@ -7831,7 +7831,7 @@ class un extends ue {
7831
7831
  class ce extends un {
7832
7832
  determineDataLimits() {
7833
7833
  const { min: t, max: e } = this.getMinMax(!0);
7834
- this.min = G(t) ? t : 0, this.max = G(e) ? e : 1, this.handleTickRangeOptions();
7834
+ this.min = K(t) ? t : 0, this.max = K(e) ? e : 1, this.handleTickRangeOptions();
7835
7835
  }
7836
7836
  computeTickLimit() {
7837
7837
  const t = this.isHorizontal(), e = t ? this.width : this.height, n = gt(this.options.ticks.minRotation), s = (t ? Math.sin(n) : Math.cos(n)) || 1e-3, o = this._resolveTickFontOptions(0);
@@ -7852,13 +7852,13 @@ w(ce, "id", "linear"), w(ce, "defaults", {
7852
7852
  function fn(i) {
7853
7853
  const t = i.ticks;
7854
7854
  if (t.display && i.display) {
7855
- const e = K(t.backdropPadding);
7856
- return A(t.font && t.font.size, $.font.size) + e.height;
7855
+ const e = Z(t.backdropPadding);
7856
+ return A(t.font && t.font.size, U.font.size) + e.height;
7857
7857
  }
7858
7858
  return 0;
7859
7859
  }
7860
7860
  function cd(i, t, e) {
7861
- return e = N(e) ? e : [
7861
+ return e = W(e) ? e : [
7862
7862
  e
7863
7863
  ], {
7864
7864
  w: Rr(i, t.string, e),
@@ -7883,7 +7883,7 @@ function hd(i) {
7883
7883
  r: i.right - i._padding.right,
7884
7884
  t: i.top + i._padding.top,
7885
7885
  b: i.bottom - i._padding.bottom
7886
- }, e = Object.assign({}, t), n = [], s = [], o = i._pointLabels.length, a = i.options.pointLabels, r = a.centerPointLabels ? V / o : 0;
7886
+ }, e = Object.assign({}, t), n = [], s = [], o = i._pointLabels.length, a = i.options.pointLabels, r = a.centerPointLabels ? $ / o : 0;
7887
7887
  for (let l = 0; l < o; l++) {
7888
7888
  const c = a.setContext(i.getPointLabelContext(l));
7889
7889
  s[l] = c.padding;
@@ -7900,7 +7900,7 @@ function dd(i, t, e, n, s) {
7900
7900
  n.start < t.l ? (r = (t.l - n.start) / o, i.l = Math.min(i.l, t.l - r)) : n.end > t.r && (r = (n.end - t.r) / o, i.r = Math.max(i.r, t.r + r)), s.start < t.t ? (l = (t.t - s.start) / a, i.t = Math.min(i.t, t.t - l)) : s.end > t.b && (l = (s.end - t.b) / a, i.b = Math.max(i.b, t.b + l));
7901
7901
  }
7902
7902
  function ud(i, t, e) {
7903
- const n = i.drawingArea, { extra: s, additionalAngle: o, padding: a, size: r } = e, l = i.getPointPosition(t, n + s + a, o), c = Math.round(Mn(at(l.angle + U))), h = bd(l.y, r.h, c), d = pd(c), u = md(l.x, r.w, d);
7903
+ const n = i.drawingArea, { extra: s, additionalAngle: o, padding: a, size: r } = e, l = i.getPointPosition(t, n + s + a, o), c = Math.round(Mn(at(l.angle + Y))), h = bd(l.y, r.h, c), d = pd(c), u = md(l.x, r.w, d);
7904
7904
  return {
7905
7905
  visible: !0,
7906
7906
  x: l.x,
@@ -7933,7 +7933,7 @@ function fd(i, t) {
7933
7933
  function gd(i, t, e) {
7934
7934
  const n = [], s = i._pointLabels.length, o = i.options, { centerPointLabels: a, display: r } = o.pointLabels, l = {
7935
7935
  extra: fn(o) / 2,
7936
- additionalAngle: a ? V / s : 0
7936
+ additionalAngle: a ? $ / s : 0
7937
7937
  };
7938
7938
  let c;
7939
7939
  for (let h = 0; h < s; h++) {
@@ -7954,8 +7954,8 @@ function bd(i, t, e) {
7954
7954
  }
7955
7955
  function yd(i, t, e) {
7956
7956
  const { left: n, top: s, right: o, bottom: a } = e, { backdropColor: r } = t;
7957
- if (!F(r)) {
7958
- const l = Ut(t.borderRadius), c = K(t.backdropPadding);
7957
+ if (!R(r)) {
7958
+ const l = Xt(t.borderRadius), c = Z(t.backdropPadding);
7959
7959
  i.fillStyle = r;
7960
7960
  const h = n - c.left, d = s - c.top, u = o - n + c.width, f = a - s + c.height;
7961
7961
  Object.values(l).some((m) => m !== 0) ? (i.beginPath(), Ue(i, {
@@ -7986,7 +7986,7 @@ function xd(i, t) {
7986
7986
  function ha(i, t, e, n) {
7987
7987
  const { ctx: s } = i;
7988
7988
  if (e)
7989
- s.arc(i.xCenter, i.yCenter, t, 0, W);
7989
+ s.arc(i.xCenter, i.yCenter, t, 0, H);
7990
7990
  else {
7991
7991
  let o = i.getPointPosition(0, t);
7992
7992
  s.moveTo(o.x, o.y);
@@ -7999,7 +7999,7 @@ function _d(i, t, e, n, s) {
7999
7999
  !a && !n || !r || !l || e < 0 || (o.save(), o.strokeStyle = r, o.lineWidth = l, o.setLineDash(s.dash), o.lineDashOffset = s.dashOffset, o.beginPath(), ha(i, e, a, n), o.closePath(), o.stroke(), o.restore());
8000
8000
  }
8001
8001
  function vd(i, t, e) {
8002
- return Bt(i, {
8002
+ return Nt(i, {
8003
8003
  label: e,
8004
8004
  index: t,
8005
8005
  type: "pointLabel"
@@ -8010,12 +8010,12 @@ class Fe extends un {
8010
8010
  super(t), this.xCenter = void 0, this.yCenter = void 0, this.drawingArea = void 0, this._pointLabels = [], this._pointLabelItems = [];
8011
8011
  }
8012
8012
  setDimensions() {
8013
- const t = this._padding = K(fn(this.options) / 2), e = this.width = this.maxWidth - t.width, n = this.height = this.maxHeight - t.height;
8013
+ const t = this._padding = Z(fn(this.options) / 2), e = this.width = this.maxWidth - t.width, n = this.height = this.maxHeight - t.height;
8014
8014
  this.xCenter = Math.floor(this.left + e / 2 + t.left), this.yCenter = Math.floor(this.top + n / 2 + t.top), this.drawingArea = Math.floor(Math.min(e, n) / 2);
8015
8015
  }
8016
8016
  determineDataLimits() {
8017
8017
  const { min: t, max: e } = this.getMinMax(!1);
8018
- this.min = G(t) && !isNaN(t) ? t : 0, this.max = G(e) && !isNaN(e) ? e : 0, this.handleTickRangeOptions();
8018
+ this.min = K(t) && !isNaN(t) ? t : 0, this.max = K(e) && !isNaN(e) ? e : 0, this.handleTickRangeOptions();
8019
8019
  }
8020
8020
  computeTickLimit() {
8021
8021
  return Math.ceil(this.drawingArea / fn(this.options));
@@ -8037,17 +8037,17 @@ class Fe extends un {
8037
8037
  this.xCenter += Math.floor((t - e) / 2), this.yCenter += Math.floor((n - s) / 2), this.drawingArea -= Math.min(this.drawingArea / 2, Math.max(t, e, n, s));
8038
8038
  }
8039
8039
  getIndexAngle(t) {
8040
- const e = W / (this._pointLabels.length || 1), n = this.options.startAngle || 0;
8040
+ const e = H / (this._pointLabels.length || 1), n = this.options.startAngle || 0;
8041
8041
  return at(t * e + gt(n));
8042
8042
  }
8043
8043
  getDistanceFromCenterForValue(t) {
8044
- if (F(t))
8044
+ if (R(t))
8045
8045
  return NaN;
8046
8046
  const e = this.drawingArea / (this.max - this.min);
8047
8047
  return this.options.reverse ? (this.max - t) * e : (t - this.min) * e;
8048
8048
  }
8049
8049
  getValueForDistanceFromCenter(t) {
8050
- if (F(t))
8050
+ if (R(t))
8051
8051
  return NaN;
8052
8052
  const e = t / (this.drawingArea / (this.max - this.min));
8053
8053
  return this.options.reverse ? this.max - e : this.min + e;
@@ -8060,7 +8060,7 @@ class Fe extends un {
8060
8060
  }
8061
8061
  }
8062
8062
  getPointPosition(t, e, n = 0) {
8063
- const s = this.getIndexAngle(t) - U + n;
8063
+ const s = this.getIndexAngle(t) - Y + n;
8064
8064
  return {
8065
8065
  x: Math.cos(s) * e + this.xCenter,
8066
8066
  y: Math.sin(s) * e + this.yCenter,
@@ -8120,7 +8120,7 @@ class Fe extends un {
8120
8120
  const c = n.setContext(this.getContext(l)), h = X(c.font);
8121
8121
  if (o = this.getDistanceFromCenterForValue(this.ticks[l].value), c.showLabelBackdrop) {
8122
8122
  t.font = h.string, a = t.measureText(r.label).width, t.fillStyle = c.backdropColor;
8123
- const d = K(c.backdropPadding);
8123
+ const d = Z(c.backdropPadding);
8124
8124
  t.fillRect(-a / 2 - d.left, -o - h.size / 2 - d.top, a + d.width, h.size + d.height);
8125
8125
  }
8126
8126
  Zt(t, r.label, 0, -o, h, {
@@ -8218,38 +8218,38 @@ const Fi = {
8218
8218
  common: !0,
8219
8219
  size: 3154e7
8220
8220
  }
8221
- }, st = /* @__PURE__ */ Object.keys(Fi);
8221
+ }, nt = /* @__PURE__ */ Object.keys(Fi);
8222
8222
  function Qs(i, t) {
8223
8223
  return i - t;
8224
8224
  }
8225
8225
  function to(i, t) {
8226
- if (F(t))
8226
+ if (R(t))
8227
8227
  return null;
8228
8228
  const e = i._adapter, { parser: n, round: s, isoWeekday: o } = i._parseOpts;
8229
8229
  let a = t;
8230
- return typeof n == "function" && (a = n(a)), G(a) || (a = typeof n == "string" ? e.parse(a, n) : e.parse(a)), a === null ? null : (s && (a = s === "week" && (je(o) || o === !0) ? e.startOf(a, "isoWeek", o) : e.startOf(a, s)), +a);
8230
+ return typeof n == "function" && (a = n(a)), K(a) || (a = typeof n == "string" ? e.parse(a, n) : e.parse(a)), a === null ? null : (s && (a = s === "week" && (je(o) || o === !0) ? e.startOf(a, "isoWeek", o) : e.startOf(a, s)), +a);
8231
8231
  }
8232
8232
  function eo(i, t, e, n) {
8233
- const s = st.length;
8234
- for (let o = st.indexOf(i); o < s - 1; ++o) {
8235
- const a = Fi[st[o]], r = a.steps ? a.steps : Number.MAX_SAFE_INTEGER;
8233
+ const s = nt.length;
8234
+ for (let o = nt.indexOf(i); o < s - 1; ++o) {
8235
+ const a = Fi[nt[o]], r = a.steps ? a.steps : Number.MAX_SAFE_INTEGER;
8236
8236
  if (a.common && Math.ceil((e - t) / (r * a.size)) <= n)
8237
- return st[o];
8237
+ return nt[o];
8238
8238
  }
8239
- return st[s - 1];
8239
+ return nt[s - 1];
8240
8240
  }
8241
8241
  function Sd(i, t, e, n, s) {
8242
- for (let o = st.length - 1; o >= st.indexOf(e); o--) {
8243
- const a = st[o];
8242
+ for (let o = nt.length - 1; o >= nt.indexOf(e); o--) {
8243
+ const a = nt[o];
8244
8244
  if (Fi[a].common && i._adapter.diff(s, n, a) >= t - 1)
8245
8245
  return a;
8246
8246
  }
8247
- return st[e ? st.indexOf(e) : 0];
8247
+ return nt[e ? nt.indexOf(e) : 0];
8248
8248
  }
8249
8249
  function Md(i) {
8250
- for (let t = st.indexOf(i) + 1, e = st.length; t < e; ++t)
8251
- if (Fi[st[t]].common)
8252
- return st[t];
8250
+ for (let t = nt.indexOf(i) + 1, e = nt.length; t < e; ++t)
8251
+ if (Fi[nt[t]].common)
8252
+ return nt[t];
8253
8253
  }
8254
8254
  function io(i, t, e) {
8255
8255
  if (!e)
@@ -8308,7 +8308,7 @@ class Ai extends ue {
8308
8308
  function l(c) {
8309
8309
  !a && !isNaN(c.min) && (s = Math.min(s, c.min)), !r && !isNaN(c.max) && (o = Math.max(o, c.max));
8310
8310
  }
8311
- (!a || !r) && (l(this._getLabelBounds()), (t.bounds !== "ticks" || t.ticks.source !== "labels") && l(this.getMinMax(!1))), s = G(s) && !isNaN(s) ? s : +e.startOf(Date.now(), n), o = G(o) && !isNaN(o) ? o : +e.endOf(Date.now(), n) + 1, this.min = Math.min(s, o - 1), this.max = Math.max(s + 1, o);
8311
+ (!a || !r) && (l(this._getLabelBounds()), (t.bounds !== "ticks" || t.ticks.source !== "labels") && l(this.getMinMax(!1))), s = K(s) && !isNaN(s) ? s : +e.startOf(Date.now(), n), o = K(o) && !isNaN(o) ? o : +e.endOf(Date.now(), n) + 1, this.min = Math.min(s, o - 1), this.max = Math.max(s + 1, o);
8312
8312
  }
8313
8313
  _getLabelBounds() {
8314
8314
  const t = this.getLabelTimestamps();
@@ -8441,7 +8441,7 @@ w(Ai, "id", "time"), w(Ai, "defaults", {
8441
8441
  });
8442
8442
  function hi(i, t, e) {
8443
8443
  let n = 0, s = i.length - 1, o, a, r, l;
8444
- e ? (t >= i[n].pos && t <= i[s].pos && ({ lo: n, hi: s } = $t(i, "pos", t)), { pos: o, time: r } = i[n], { pos: a, time: l } = i[s]) : (t >= i[n].time && t <= i[s].time && ({ lo: n, hi: s } = $t(i, "time", t)), { time: o, pos: r } = i[n], { time: a, pos: l } = i[s]);
8444
+ e ? (t >= i[n].pos && t <= i[s].pos && ({ lo: n, hi: s } = Yt(i, "pos", t)), { pos: o, time: r } = i[n], { pos: a, time: l } = i[s]) : (t >= i[n].time && t <= i[s].time && ({ lo: n, hi: s } = Yt(i, "time", t)), { time: o, pos: r } = i[n], { time: a, pos: l } = i[s]);
8445
8445
  const c = a - o;
8446
8446
  return c ? r + (l - r) * (t - o) / c : r;
8447
8447
  }
@@ -8557,11 +8557,11 @@ function Ad(i, t) {
8557
8557
  };
8558
8558
  return ua(e, i.labels), fa(e, i.datasets, t), e;
8559
8559
  }
8560
- const Ld = Et({
8560
+ const Ld = zt({
8561
8561
  props: wd,
8562
8562
  setup(i, t) {
8563
8563
  let { expose: e } = t;
8564
- const n = q(null), s = po(null);
8564
+ const n = G(null), s = po(null);
8565
8565
  e({
8566
8566
  chart: s
8567
8567
  });
@@ -8609,7 +8609,7 @@ const Ld = Et({
8609
8609
  }
8610
8610
  });
8611
8611
  function Ge(i, t) {
8612
- return Ct.register(t), Et({
8612
+ return Ct.register(t), zt({
8613
8613
  props: da,
8614
8614
  setup(e, n) {
8615
8615
  let { expose: s } = n;
@@ -8644,7 +8644,7 @@ function Ri() {
8644
8644
  function pa(i, t, e = 0, n = 0) {
8645
8645
  return `${tt(i, e, n)}${t ? " " + t : ""}`;
8646
8646
  }
8647
- function Rt(i, t = 2, e = 2) {
8647
+ function Bt(i, t = 2, e = 2) {
8648
8648
  return Math.abs(Number(i)) >= 1e6 ? tt(i / 1e6, t, e) + " M" : Math.abs(Number(i)) >= 1e3 ? tt(i / 1e3, t, e) + " K" : tt(i, t, e);
8649
8649
  }
8650
8650
  function tt(i, t = 2, e = 2) {
@@ -8661,48 +8661,49 @@ function Rd(i, t) {
8661
8661
  return t ? (i + t) % 6 : i;
8662
8662
  }
8663
8663
  function Ed(i, t) {
8664
- return `${Rt(i.data[t].value)} (${Rt(i.data[t].rate)}%)`;
8664
+ return `${Bt(i.data[t].value)} (${Bt(i.data[t].rate)}%)`;
8665
8665
  }
8666
8666
  const Bd = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTExLjc0IDEyLjAzaC4wMi0uMDJ6TTEyIDdhMyAzIDAgMDAtMyAzIC43NS43NSAwIDAwMS41IDBBMS41IDEuNSAwIDAxMTIgOC41MWExLjUgMS41IDAgMDEuNjYgMi44NSAyLjQxIDIuNDEgMCAwMC0xLjQxIDIuMTZ2LjI1YS43NS43NSAwIDAwMS41IDB2LS4yNWEuOTEuOTEgMCAwMS41Ny0uODFBMyAzIDAgMDAxMiA3eiIvPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTYuMjQiIHI9Ii43NSIvPjxwYXRoIGQ9Ik0xMiAyYTEwIDEwIDAgMTAxMCAxMEExMCAxMCAwIDAwMTIgMnptMCAxOGE4IDggMCAxMTgtOCA4IDggMCAwMS04IDh6Ii8+PC9zdmc+", { getPatternCanvas: zd } = Ri(), Nd = 14, ma = "6px", Li = "22px", oo = 6, En = "2px";
8667
- function ba(i, t, e, n, s, o, a, r, l) {
8667
+ function ba(i, t, e, n, s, o, a, r, l, c) {
8668
8668
  return {
8669
8669
  id: "htmlLegend",
8670
- afterUpdate(c) {
8671
- const d = c.config.type === "doughnut" ? "column" : "row", u = Ni(
8670
+ afterUpdate(h) {
8671
+ const u = h.config.type === "doughnut" ? "column" : "row", f = Ni(
8672
8672
  i,
8673
- d
8673
+ u
8674
8674
  );
8675
- for (u.style.margin = "1.375rem 1.0625rem"; u.firstChild; )
8676
- u.firstChild.remove();
8677
- c.options.plugins.legend.labels.generateLabels(c).forEach((m) => {
8678
- const g = c.config.type === "doughnut", p = g ? m.index : m.datasetIndex, b = Bi(
8679
- c,
8675
+ for (f.style.margin = "1.375rem 1.0625rem"; f.firstChild; )
8676
+ f.firstChild.remove();
8677
+ h.options.plugins.legend.labels.generateLabels(h).forEach((g) => {
8678
+ const p = h.config.type === "doughnut", b = p ? g.index : g.datasetIndex, y = Bi(
8679
+ h,
8680
8680
  t,
8681
- p
8681
+ b,
8682
+ c
8682
8683
  );
8683
- if (g) {
8684
- const x = p + 1 === r;
8685
- b.style.marginTop = "12px", x && (b.style.position = "relative");
8684
+ if (p) {
8685
+ const _ = b + 1 === r;
8686
+ y.style.marginTop = "12px", _ && (y.style.position = "relative");
8686
8687
  } else
8687
- b.style.marginRight = "10px";
8688
- b.style.width = "max-content", b.style.cursor = "pointer";
8689
- let y;
8690
- t.value ? y = xa(
8691
- c,
8692
- m,
8688
+ y.style.marginRight = "10px";
8689
+ y.style.width = "max-content";
8690
+ let x;
8691
+ t.value ? x = xa(
8692
+ h,
8693
+ g,
8693
8694
  t,
8694
8695
  e,
8695
8696
  s.value,
8696
8697
  a.value
8697
- ) : y = ya(
8698
- m,
8699
- c,
8698
+ ) : x = ya(
8699
+ g,
8700
+ h,
8700
8701
  e,
8701
8702
  n.value,
8702
8703
  s.value,
8703
8704
  o.value,
8704
8705
  a.value
8705
- ), y.style.boxSizing = "border-box", b.appendChild(y), b.appendChild(Ei(m)), g && r && Wd(l, r, p) && b.appendChild(Hd(l, r)), u.appendChild(b);
8706
+ ), x.style.boxSizing = "border-box", y.appendChild(x), y.appendChild(Ei(g)), p && r && Wd(l, r, b) && y.appendChild(Hd(l, r)), f.appendChild(y);
8706
8707
  });
8707
8708
  }
8708
8709
  };
@@ -8777,11 +8778,11 @@ function $d(i) {
8777
8778
  const t = document.createElement("div");
8778
8779
  return t.style.height = oo + "px", t.style.width = oo + "px", t.style.background = "white", t.style.borderStyle = "solid", t.style.borderColor = i.strokeStyle, t.style.borderWidth = En, t;
8779
8780
  }
8780
- function Bi(i, t, e) {
8781
- const n = document.createElement("li");
8782
- return n.style.alignItems = "center", n.style.cursor = t.value ? "" : "pointer", n.style.display = "flex", n.style.flexDirection = "row", n.setAttribute("data-test-id", `legend-item-${e}`), n.onclick = () => {
8781
+ function Bi(i, t, e, n) {
8782
+ const s = document.createElement("li");
8783
+ return s.style.alignItems = "center", s.style.display = "flex", s.style.flexDirection = "row", s.setAttribute("data-test-id", `legend-item-${e}`), n != null && n.value || (s.style.cursor = t.value ? "" : "pointer", s.onclick = () => {
8783
8784
  t.value ? zi(i, e, t) : (Sa(i, e, t), i.update());
8784
- }, n;
8785
+ }), s;
8785
8786
  }
8786
8787
  function Ud(i, t, e, n) {
8787
8788
  let s = "#fff", o = "#666";
@@ -8849,11 +8850,11 @@ function Ke(i, t) {
8849
8850
  }
8850
8851
  const { getPatternIndexWithShift: Ji } = Ri();
8851
8852
  function Xd() {
8852
- const i = q(3), t = q(null), e = yo({
8853
+ const i = G(3), t = G(null), e = yo({
8853
8854
  dataSetIndex: -1,
8854
8855
  columnIndex: -1
8855
8856
  });
8856
- function n(g, p, b, y, x, _) {
8857
+ function n(g, p, b, y, x, _, v) {
8857
8858
  return ba(
8858
8859
  g,
8859
8860
  p,
@@ -8861,7 +8862,10 @@ function Xd() {
8861
8862
  b,
8862
8863
  y,
8863
8864
  x,
8864
- _
8865
+ _,
8866
+ void 0,
8867
+ null,
8868
+ v
8865
8869
  );
8866
8870
  }
8867
8871
  function s() {
@@ -9254,7 +9258,7 @@ function ye() {
9254
9258
  ]
9255
9259
  };
9256
9260
  }
9257
- const eu = { class: "container" }, iu = { class: "main" }, nu = /* @__PURE__ */ Et({
9261
+ const eu = { class: "container" }, iu = { class: "main" }, nu = /* @__PURE__ */ zt({
9258
9262
  __name: "BarChart",
9259
9263
  props: {
9260
9264
  /**
@@ -9471,6 +9475,14 @@ const eu = { class: "container" }, iu = { class: "main" }, nu = /* @__PURE__ */
9471
9475
  ticksMaximumFractionDigits: {
9472
9476
  type: Number,
9473
9477
  required: !1
9478
+ },
9479
+ hideLegend: {
9480
+ type: Boolean,
9481
+ default: !1
9482
+ },
9483
+ disableLegendClick: {
9484
+ type: Boolean,
9485
+ default: !1
9474
9486
  }
9475
9487
  },
9476
9488
  setup(i) {
@@ -9483,22 +9495,22 @@ const eu = { class: "container" }, iu = { class: "main" }, nu = /* @__PURE__ */
9483
9495
  le,
9484
9496
  ce
9485
9497
  );
9486
- const { colourSets: e, patternsStandardList: n } = ye(), s = q(null), o = q(!1), a = R(() => t.newPatternsOrder.length !== n.length ? e[t.colourSet] : t.newPatternsOrder.map((C) => e[t.colourSet][C])), r = R(() => t.newPatternsOrder.length !== n.length ? n : t.newPatternsOrder.map((C) => n[C])), l = R(() => t.disableAccessibility), c = R(() => t.enableHoverFeature), {
9487
- onHoverIndex: h,
9488
- barChartRef: d,
9489
- reloadChart: u,
9490
- getOnHoverOptions: f,
9491
- getStackedDatasets: m,
9492
- privateGetHtmlLegendPlugin: g
9493
- } = Xd(), p = R(() => {
9494
- const C = M(_.value);
9495
- return x(), {
9498
+ const { colourSets: e, patternsStandardList: n } = ye(), s = G(null), o = G(!1), a = E(() => t.newPatternsOrder.length !== n.length ? e[t.colourSet] : t.newPatternsOrder.map((C) => e[t.colourSet][C])), r = E(() => t.newPatternsOrder.length !== n.length ? n : t.newPatternsOrder.map((C) => n[C])), l = E(() => t.disableAccessibility), c = E(() => t.enableHoverFeature), h = E(() => t.disableLegendClick), {
9499
+ onHoverIndex: d,
9500
+ barChartRef: u,
9501
+ reloadChart: f,
9502
+ getOnHoverOptions: m,
9503
+ getStackedDatasets: g,
9504
+ privateGetHtmlLegendPlugin: p
9505
+ } = Xd(), b = E(() => {
9506
+ const C = k(v.value);
9507
+ return _(), {
9496
9508
  labels: C,
9497
- datasets: m(
9498
- t.datasets.map((D, I) => ({
9499
- data: v(I, _.value),
9500
- label: t.datasets[I].label,
9501
- stack: D.stack || 0
9509
+ datasets: g(
9510
+ t.datasets.map((T, N) => ({
9511
+ data: S(N, v.value),
9512
+ label: t.datasets[N].label,
9513
+ stack: T.stack || 0
9502
9514
  })),
9503
9515
  t.stacked,
9504
9516
  t.disableAccessibility,
@@ -9508,31 +9520,31 @@ const eu = { class: "container" }, iu = { class: "main" }, nu = /* @__PURE__ */
9508
9520
  )
9509
9521
  };
9510
9522
  });
9511
- let b, y;
9512
- const x = () => {
9513
- b = t.tooltipFirstLineLabel, y = t.tooltipSecondLineLabel;
9514
- }, _ = R(() => {
9523
+ let y, x;
9524
+ const _ = () => {
9525
+ y = t.tooltipFirstLineLabel, x = t.tooltipSecondLineLabel;
9526
+ }, v = E(() => {
9515
9527
  const C = t.labels;
9516
9528
  if (C.includes("other")) {
9517
- const D = C.indexOf("other");
9518
- if (t.datasets[0].data[D].rate + "" == "0" && t.datasets[1].data[D].rate + "" == "0")
9519
- return D;
9529
+ const T = C.indexOf("other");
9530
+ if (t.datasets[0].data[T].rate + "" == "0" && t.datasets[1].data[T].rate + "" == "0")
9531
+ return T;
9520
9532
  }
9521
9533
  return null;
9522
- }), v = (C, D, I = !1) => {
9523
- const Y = Object.assign([], t.datasets[C].data);
9524
- return D && _.value && Y.splice(_.value, 1), Y.map(
9525
- (T) => t.unit === "%" ? T.rate : T.amount
9534
+ }), S = (C, T, N = !1) => {
9535
+ const I = Object.assign([], t.datasets[C].data);
9536
+ return T && v.value && I.splice(v.value, 1), I.map(
9537
+ (F) => t.unit === "%" ? F.rate : F.amount
9526
9538
  );
9527
- }, S = (C) => {
9528
- const D = C.tooltip.dataPoints[0].datasetIndex, I = C.tooltip.dataPoints[0].dataIndex, Y = C.tooltip.body[0].lines[0].split(":")[1], T = t.datasets[D].data[I], B = T.rate ? tt(parseFloat(Y.replace(",", ".")), t.rateMinimumFractionDigits, t.rateMaximumFractionDigits) + " % " : "", j = T.amountUnit ? T.amountUnit : "", et = T.amount ? tt(T.amount, t.amountMinimumFractionDigits, t.amountMaximumFractionDigits) : "";
9529
- return B + (B && et ? "/ " : "") + et + " " + j;
9530
9539
  }, M = (C) => {
9531
- const D = Object.assign([], t.labels);
9532
- return C && D.splice(C, 1), D.map((I) => I);
9533
- }, k = R(() => ({
9540
+ const T = C.tooltip.dataPoints[0].datasetIndex, N = C.tooltip.dataPoints[0].dataIndex, I = C.tooltip.body[0].lines[0].split(":")[1], F = t.datasets[T].data[N], V = F.rate ? tt(parseFloat(I.replace(",", ".")), t.rateMinimumFractionDigits, t.rateMaximumFractionDigits) + " % " : "", ot = F.amountUnit ? F.amountUnit : "", q = F.amount ? tt(F.amount, t.amountMinimumFractionDigits, t.amountMaximumFractionDigits) : "";
9541
+ return V + (V && q ? "/ " : "") + q + " " + ot;
9542
+ }, k = (C) => {
9543
+ const T = Object.assign([], t.labels);
9544
+ return C && T.splice(C, 1), T.map((N) => N);
9545
+ }, P = E(() => ({
9534
9546
  // eslint-disable-next-line
9535
- onHover: t.enableHoverFeature ? f() : () => {
9547
+ onHover: t.enableHoverFeature ? m() : () => {
9536
9548
  },
9537
9549
  elements: {
9538
9550
  bar: {
@@ -9557,15 +9569,15 @@ const eu = { class: "container" }, iu = { class: "main" }, nu = /* @__PURE__ */
9557
9569
  enabled: !1,
9558
9570
  position: "nearest",
9559
9571
  external: function(C) {
9560
- var I;
9561
- const D = ((I = C.tooltip.dataPoints) == null ? void 0 : I[0].dataIndex) || 0;
9562
- !t.labels[D] || t.labels[D] === "" || new me().createTooltip(
9572
+ var N;
9573
+ const T = ((N = C.tooltip.dataPoints) == null ? void 0 : N[0].dataIndex) || 0;
9574
+ !t.labels[T] || t.labels[T] === "" || new me().createTooltip(
9563
9575
  C,
9564
- S,
9576
+ M,
9565
9577
  {
9566
9578
  chartType: be.BAR_CHART,
9567
- firstLineLabel: b,
9568
- secondLineLabel: y
9579
+ firstLineLabel: y,
9580
+ secondLineLabel: x
9569
9581
  },
9570
9582
  a.value,
9571
9583
  r.value,
@@ -9583,7 +9595,7 @@ const eu = { class: "container" }, iu = { class: "main" }, nu = /* @__PURE__ */
9583
9595
  display: t.xAxisTitle !== null,
9584
9596
  text: t.xAxisTitle
9585
9597
  },
9586
- ticks: t.horizontalChart ? P() : { display: t.displayDataSetsTicksLabels }
9598
+ ticks: t.horizontalChart ? L() : { display: t.displayDataSetsTicksLabels }
9587
9599
  },
9588
9600
  y: {
9589
9601
  min: t.yMin,
@@ -9593,52 +9605,54 @@ const eu = { class: "container" }, iu = { class: "main" }, nu = /* @__PURE__ */
9593
9605
  display: t.yAxisTitle !== null,
9594
9606
  text: t.yAxisTitle
9595
9607
  },
9596
- ticks: t.horizontalChart ? { display: t.displayDataSetsTicksLabels } : P()
9608
+ ticks: t.horizontalChart ? { display: t.displayDataSetsTicksLabels } : L()
9597
9609
  }
9598
9610
  },
9599
9611
  indexAxis: t.horizontalChart ? "y" : "x"
9600
9612
  }));
9601
- function P() {
9613
+ function L() {
9602
9614
  return {
9603
9615
  callback: function(C) {
9604
- return t.unit === "%" ? pa(C, t.unit, t.ticksMinimumFractionDigits, t.ticksMaximumFractionDigits) : Rt(C, t.ticksMinimumFractionDigits, t.ticksMaximumFractionDigits) + " " + t.unit;
9616
+ return t.unit === "%" ? pa(C, t.unit, t.ticksMinimumFractionDigits, t.ticksMaximumFractionDigits) : Bt(C, t.ticksMinimumFractionDigits, t.ticksMaximumFractionDigits) + " " + t.unit;
9605
9617
  }
9606
9618
  };
9607
9619
  }
9608
- const L = R(() => [
9609
- g(
9620
+ const D = E(() => [
9621
+ p(
9610
9622
  s,
9611
9623
  o,
9612
9624
  l,
9613
9625
  a,
9614
9626
  r,
9615
- c
9627
+ c,
9628
+ h
9616
9629
  )
9617
9630
  ]);
9618
9631
  return vi(
9619
- h,
9632
+ d,
9620
9633
  () => {
9621
- u();
9634
+ f();
9622
9635
  },
9623
9636
  { deep: !0 }
9624
- ), (C, D) => (rt(), Xt("div", eu, [
9625
- ot("div", iu, [
9626
- p.value ? (rt(), he(Ot(ga), {
9637
+ ), (C, T) => (st(), Ot("div", eu, [
9638
+ rt("div", iu, [
9639
+ b.value ? (st(), he(It(ga), {
9627
9640
  key: 0,
9628
9641
  ref_key: "barChartRef",
9629
- ref: d,
9642
+ ref: u,
9630
9643
  id: i.chartId,
9631
- data: p.value,
9632
- options: k.value,
9633
- plugins: L.value,
9644
+ data: b.value,
9645
+ options: P.value,
9646
+ plugins: D.value,
9634
9647
  class: de(i.cssClasses),
9635
- style: qt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
9636
- }, null, 8, ["id", "data", "options", "plugins", "class", "style"])) : Gt("", !0)
9648
+ style: Gt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
9649
+ }, null, 8, ["id", "data", "options", "plugins", "class", "style"])) : Ft("", !0)
9637
9650
  ]),
9638
- ot("div", {
9651
+ i.hideLegend ? Ft("", !0) : (st(), Ot("div", {
9652
+ key: 0,
9639
9653
  ref_key: "legendContainer",
9640
9654
  ref: s
9641
- }, null, 512)
9655
+ }, null, 512))
9642
9656
  ]));
9643
9657
  }
9644
9658
  });
@@ -9647,12 +9661,12 @@ const xe = (i, t) => {
9647
9661
  for (const [n, s] of t)
9648
9662
  e[n] = s;
9649
9663
  return e;
9650
- }, gn = /* @__PURE__ */ xe(nu, [["__scopeId", "data-v-e0921fde"]]);
9664
+ }, gn = /* @__PURE__ */ xe(nu, [["__scopeId", "data-v-0d1e7cab"]]);
9651
9665
  gn.install = (i) => {
9652
9666
  i.component("BarChart", gn);
9653
9667
  };
9654
9668
  function su() {
9655
- const i = q(null), t = q(null), e = q(null), n = q(null);
9669
+ const i = G(null), t = G(null), e = G(null), n = G(null);
9656
9670
  function s(u, f, m, g, p, b, y, x) {
9657
9671
  return ba(
9658
9672
  u,
@@ -9694,7 +9708,7 @@ function su() {
9694
9708
  S.startAngle !== S.endAngle && m.push(M);
9695
9709
  });
9696
9710
  const p = (_ = (x = (y = f._metasets[0]) == null ? void 0 : y._dataset) == null ? void 0 : x.raw_value) == null ? void 0 : _.filter((S, M) => m.includes(M)).reduce((S, M) => S + M, 0), b = ((v = u[0]) == null ? void 0 : v.unit) ?? "";
9697
- n.value = `${Rt(p)}${b}`;
9711
+ n.value = `${Bt(p)}${b}`;
9698
9712
  }
9699
9713
  };
9700
9714
  }
@@ -9703,7 +9717,7 @@ function su() {
9703
9717
  return u.length > m && (b = d(f, m), p = p.slice(0, m - 1), p.push(g)), p.map(
9704
9718
  (y, x) => {
9705
9719
  var _;
9706
- return `${l(y)} (${Rt(
9720
+ return `${l(y)} (${Bt(
9707
9721
  (_ = b[x]) == null ? void 0 : _.rate
9708
9722
  )} %)`;
9709
9723
  }
@@ -9736,7 +9750,7 @@ function su() {
9736
9750
  const ou = { class: "container" }, au = { class: "main" }, ru = {
9737
9751
  key: 1,
9738
9752
  class: "centered-label"
9739
- }, lu = /* @__PURE__ */ Et({
9753
+ }, lu = /* @__PURE__ */ zt({
9740
9754
  __name: "DoughnutChart",
9741
9755
  props: {
9742
9756
  /**
@@ -9894,9 +9908,9 @@ const ou = { class: "container" }, au = { class: "main" }, ru = {
9894
9908
  groupDataAfterNthValue: d,
9895
9909
  getDoughnutLabels: u,
9896
9910
  getBorderColor: f
9897
- } = su(), m = q(!1), g = q(null), p = R(
9911
+ } = su(), m = G(!1), g = G(null), p = E(
9898
9912
  () => d(t.data, t.maxValues)
9899
- ), b = R(() => t.newPatternsOrder.length !== 6 ? e[t.colourSet] : t.newPatternsOrder.map((C) => e[t.colourSet][C])), y = R(() => t.newPatternsOrder.length !== 6 ? n : t.newPatternsOrder.map((C) => n[C])), x = R(() => ({
9913
+ ), b = E(() => t.newPatternsOrder.length !== 6 ? e[t.colourSet] : t.newPatternsOrder.map((D) => e[t.colourSet][D])), y = E(() => t.newPatternsOrder.length !== 6 ? n : t.newPatternsOrder.map((D) => n[D])), x = E(() => ({
9900
9914
  labels: u(
9901
9915
  t.labels,
9902
9916
  t.data,
@@ -9905,8 +9919,8 @@ const ou = { class: "container" }, au = { class: "main" }, ru = {
9905
9919
  ),
9906
9920
  datasets: [
9907
9921
  {
9908
- data: p.value.map((C) => C.rate),
9909
- raw_value: p.value.map((C) => C.value),
9922
+ data: p.value.map((D) => D.rate),
9923
+ raw_value: p.value.map((D) => D.value),
9910
9924
  backgroundColor: r(
9911
9925
  b.value,
9912
9926
  y.value,
@@ -9919,15 +9933,15 @@ const ou = { class: "container" }, au = { class: "main" }, ru = {
9919
9933
  )
9920
9934
  }
9921
9935
  ]
9922
- })), _ = (C) => {
9923
- const D = C.tooltip.dataPoints[0].dataIndex, I = p.value[D], Y = tt(I.rate, t.rateMinimumFractionDigits, t.rateMaximumFractionDigits), T = tt(I.value, t.valueMinimumFractionDigits, t.valueMaximumFractionDigits), B = I.unit || "";
9924
- return `${T} ${B} (${Y} %)`;
9936
+ })), _ = (D) => {
9937
+ const C = D.tooltip.dataPoints[0].dataIndex, T = p.value[C], N = tt(T.rate, t.rateMinimumFractionDigits, t.rateMaximumFractionDigits), I = tt(T.value, t.valueMinimumFractionDigits, t.valueMaximumFractionDigits), F = T.unit || "";
9938
+ return `${I} ${F} (${N} %)`;
9925
9939
  };
9926
9940
  function v() {
9927
9941
  return t.labels.length <= 1 ? 0 : 12;
9928
9942
  }
9929
- const S = R(() => {
9930
- const C = b.value, D = y.value;
9943
+ const S = E(() => {
9944
+ const D = b.value, C = y.value;
9931
9945
  return {
9932
9946
  responsive: !0,
9933
9947
  maintainAspectRatio: !1,
@@ -9951,15 +9965,15 @@ const ou = { class: "container" }, au = { class: "main" }, ru = {
9951
9965
  },
9952
9966
  tooltip: {
9953
9967
  enabled: !1,
9954
- external: function(I) {
9968
+ external: function(T) {
9955
9969
  new me().createTooltip(
9956
- I,
9970
+ T,
9957
9971
  _,
9958
9972
  {
9959
9973
  chartType: be.DOUGHNUT
9960
9974
  },
9961
- C,
9962
9975
  D,
9976
+ C,
9963
9977
  k.value
9964
9978
  );
9965
9979
  }
@@ -9974,7 +9988,7 @@ const ou = { class: "container" }, au = { class: "main" }, ru = {
9974
9988
  }), M = {
9975
9989
  data: t.data,
9976
9990
  labels: t.labels
9977
- }, k = R(() => t.disableAccessibility), P = R(() => t.enableHoverFeature), L = R(() => [
9991
+ }, k = E(() => t.disableAccessibility), P = E(() => t.enableHoverFeature), L = E(() => [
9978
9992
  l(
9979
9993
  g,
9980
9994
  m,
@@ -9987,8 +10001,8 @@ const ou = { class: "container" }, au = { class: "main" }, ru = {
9987
10001
  ),
9988
10002
  c(t.data)
9989
10003
  ]);
9990
- return vi(s, (C, D) => {
9991
- C !== D && P.value && r(
10004
+ return vi(s, (D, C) => {
10005
+ D !== C && P.value && r(
9992
10006
  b.value,
9993
10007
  y.value,
9994
10008
  t.disableAccessibility,
@@ -10001,9 +10015,9 @@ const ou = { class: "container" }, au = { class: "main" }, ru = {
10001
10015
  t.disableAccessibility,
10002
10016
  P.value
10003
10017
  );
10004
- }), (C, D) => (rt(), Xt("div", ou, [
10005
- ot("div", au, [
10006
- x.value ? (rt(), he(Ot(Td), {
10018
+ }), (D, C) => (st(), Ot("div", ou, [
10019
+ rt("div", au, [
10020
+ x.value ? (st(), he(It(Td), {
10007
10021
  key: 0,
10008
10022
  ref_key: "doughnutRef",
10009
10023
  ref: o,
@@ -10013,11 +10027,11 @@ const ou = { class: "container" }, au = { class: "main" }, ru = {
10013
10027
  plugins: L.value,
10014
10028
  "max-values": i.maxValues,
10015
10029
  class: de(i.cssClasses),
10016
- style: qt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
10017
- }, null, 8, ["id", "data", "options", "plugins", "max-values", "class", "style"])) : Gt("", !0),
10018
- i.enableCenteredLabel ? (rt(), Xt("span", ru, xo(Ot(a)), 1)) : Gt("", !0)
10030
+ style: Gt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
10031
+ }, null, 8, ["id", "data", "options", "plugins", "max-values", "class", "style"])) : Ft("", !0),
10032
+ i.enableCenteredLabel ? (st(), Ot("span", ru, xo(It(a)), 1)) : Ft("", !0)
10019
10033
  ]),
10020
- ot("div", {
10034
+ rt("div", {
10021
10035
  ref_key: "legendContainer",
10022
10036
  ref: g
10023
10037
  }, null, 512)
@@ -10028,7 +10042,7 @@ const pn = /* @__PURE__ */ xe(lu, [["__scopeId", "data-v-aad16a24"]]);
10028
10042
  pn.install = (i) => {
10029
10043
  i.component("DoughnutChart", pn);
10030
10044
  };
10031
- const cu = { class: "container" }, hu = { class: "main" }, du = /* @__PURE__ */ Et({
10045
+ const cu = { class: "container" }, hu = { class: "main" }, du = /* @__PURE__ */ zt({
10032
10046
  __name: "LineChart",
10033
10047
  props: {
10034
10048
  /**
@@ -10198,7 +10212,7 @@ const cu = { class: "container" }, hu = { class: "main" }, du = /* @__PURE__ */
10198
10212
  le,
10199
10213
  ce
10200
10214
  );
10201
- const { colourSets: e, patternsStandardList: n } = ye(), s = q(null), o = q(!1), a = R(
10215
+ const { colourSets: e, patternsStandardList: n } = ye(), s = G(null), o = G(!1), a = E(
10202
10216
  () => t.newPatternsOrder.length !== 6 ? e[t.colourSet] : t.newPatternsOrder.map((y) => e[t.colourSet][y])
10203
10217
  ), r = t.newPatternsOrder.length !== 6 ? n : t.newPatternsOrder.map((y) => n[y]), l = (y) => {
10204
10218
  var S, M;
@@ -10207,14 +10221,14 @@ const cu = { class: "container" }, hu = { class: "main" }, du = /* @__PURE__ */
10207
10221
  return ((M = t.lines[x].formattedData) == null ? void 0 : M[_]) || "";
10208
10222
  const v = tt(t.lines[x].data[_], t.valueMinimumFractionDigits, t.valueMaximumFractionDigits);
10209
10223
  return t.lines[x].unit ? v + " " + t.lines[x].unit : v;
10210
- }, c = R(() => t.tooltipFirstLineLabel), h = R(() => t.tooltipSecondLineLabel), d = (y) => {
10224
+ }, c = E(() => t.tooltipFirstLineLabel), h = E(() => t.tooltipSecondLineLabel), d = (y) => {
10211
10225
  switch (y) {
10212
10226
  case 1:
10213
10227
  return "circle";
10214
10228
  default:
10215
10229
  return "rectRot";
10216
10230
  }
10217
- }, u = R(() => ({
10231
+ }, u = E(() => ({
10218
10232
  labels: t.labels.map((y) => y),
10219
10233
  datasets: t.lines.map((y, x) => ({
10220
10234
  type: "line",
@@ -10258,7 +10272,7 @@ const cu = { class: "container" }, hu = { class: "main" }, du = /* @__PURE__ */
10258
10272
  zi(y, x.datasetIndex, o), v.stopPropagation();
10259
10273
  }, _;
10260
10274
  }
10261
- const g = f(s, o), p = R(() => ({
10275
+ const g = f(s, o), p = E(() => ({
10262
10276
  responsive: !0,
10263
10277
  maintainAspectRatio: !1,
10264
10278
  plugins: {
@@ -10315,22 +10329,22 @@ const cu = { class: "container" }, hu = { class: "main" }, du = /* @__PURE__ */
10315
10329
  }));
10316
10330
  function b(y) {
10317
10331
  const x = t.lines[0].unit;
10318
- return `${Rt(y, t.ticksMinimumFractionDigits, t.ticksMaximumFractionDigits)} ${x || ""}`;
10332
+ return `${Bt(y, t.ticksMinimumFractionDigits, t.ticksMaximumFractionDigits)} ${x || ""}`;
10319
10333
  }
10320
- return (y, x) => (rt(), Xt("div", cu, [
10321
- ot("div", hu, [
10322
- u.value ? (rt(), he(Ot(Od), {
10334
+ return (y, x) => (st(), Ot("div", cu, [
10335
+ rt("div", hu, [
10336
+ u.value ? (st(), he(It(Od), {
10323
10337
  key: 0,
10324
10338
  ref: "lineChartRef",
10325
10339
  id: i.chartId,
10326
10340
  data: u.value,
10327
10341
  options: p.value,
10328
- plugins: Ot(g),
10342
+ plugins: It(g),
10329
10343
  class: de(i.cssClasses),
10330
- style: qt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
10331
- }, null, 8, ["id", "data", "options", "plugins", "class", "style"])) : Gt("", !0)
10344
+ style: Gt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
10345
+ }, null, 8, ["id", "data", "options", "plugins", "class", "style"])) : Ft("", !0)
10332
10346
  ]),
10333
- ot("div", {
10347
+ rt("div", {
10334
10348
  ref_key: "legendContainer",
10335
10349
  ref: s
10336
10350
  }, null, 512)
@@ -10381,7 +10395,7 @@ function gu(i, t) {
10381
10395
  }
10382
10396
  return [i, t];
10383
10397
  }
10384
- const pu = { class: "container" }, mu = /* @__PURE__ */ Et({
10398
+ const pu = { class: "container" }, mu = /* @__PURE__ */ zt({
10385
10399
  __name: "RadarChart",
10386
10400
  props: {
10387
10401
  /**
@@ -10487,11 +10501,11 @@ const pu = { class: "container" }, mu = /* @__PURE__ */ Et({
10487
10501
  Tt,
10488
10502
  Uh
10489
10503
  );
10490
- const { colourSets: e, patternsStandardList: n } = ye(), s = R(
10504
+ const { colourSets: e, patternsStandardList: n } = ye(), s = E(
10491
10505
  () => t.newPatternsOrder.length !== 6 ? e[t.colourSet] : t.newPatternsOrder.map((p) => e[t.colourSet][p])
10492
- ), o = R(
10506
+ ), o = E(
10493
10507
  () => t.newPatternsOrder.length !== 6 ? n : t.newPatternsOrder.map((p) => n[p])
10494
- ), a = R(() => ({
10508
+ ), a = E(() => ({
10495
10509
  labels: d(),
10496
10510
  datasets: r()
10497
10511
  }));
@@ -10571,12 +10585,12 @@ const pu = { class: "container" }, mu = /* @__PURE__ */ Et({
10571
10585
  }
10572
10586
  }
10573
10587
  }
10574
- }, c = q(null), h = q(!1), d = () => t.labels.map((p, b) => {
10588
+ }, c = G(null), h = G(!1), d = () => t.labels.map((p, b) => {
10575
10589
  const y = t.datasets[0].areaData[b].value ? `${u(
10576
10590
  t.datasets[0].areaData[b].value + ""
10577
10591
  )} ${t.datasets[0].areaData[b].unit}` : "No Data";
10578
10592
  return gu(p, y);
10579
- }), u = (p) => Rt(parseFloat(p), t.dataMinimumFractionDigits, t.dataMaximumFractionDigits);
10593
+ }), u = (p) => Bt(parseFloat(p), t.dataMinimumFractionDigits, t.dataMaximumFractionDigits);
10580
10594
  function f(p, b) {
10581
10595
  const y = Bn(
10582
10596
  p,
@@ -10615,22 +10629,22 @@ const pu = { class: "container" }, mu = /* @__PURE__ */ Et({
10615
10629
  const b = p.tooltip.dataPoints[0].datasetIndex, y = p.tooltip.dataPoints[0].dataIndex, x = t.datasets[b];
10616
10630
  return tt(x.areaData[y].value, t.dataMinimumFractionDigits, t.dataMaximumFractionDigits) + " " + x.areaData[y].unit;
10617
10631
  };
10618
- return (p, b) => (rt(), Xt("div", pu, [
10619
- ot("div", {
10632
+ return (p, b) => (st(), Ot("div", pu, [
10633
+ rt("div", {
10620
10634
  class: "main",
10621
- style: qt({ height: i.height })
10635
+ style: Gt({ height: i.height })
10622
10636
  }, [
10623
- a.value ? (rt(), he(Ot(Id), {
10637
+ a.value ? (st(), he(It(Id), {
10624
10638
  key: 0,
10625
10639
  id: i.chartId,
10626
10640
  data: a.value,
10627
10641
  options: l,
10628
10642
  plugins: m,
10629
10643
  class: de(i.cssClasses),
10630
- style: qt([{ height: i.height, cursor: "pointer" }, i.styles])
10631
- }, null, 8, ["id", "data", "class", "style"])) : Gt("", !0)
10644
+ style: Gt([{ height: i.height, cursor: "pointer" }, i.styles])
10645
+ }, null, 8, ["id", "data", "class", "style"])) : Ft("", !0)
10632
10646
  ], 4),
10633
- ot("div", {
10647
+ rt("div", {
10634
10648
  ref_key: "legendContainer",
10635
10649
  ref: c,
10636
10650
  class: "legendContainer"
@@ -10650,7 +10664,7 @@ const ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10650
10664
  RadarChart: bn
10651
10665
  }, Symbol.toStringTag, { value: "Module" })), { getPatternIndexWithShift: lo } = Ri();
10652
10666
  function bu() {
10653
- const i = q(2), t = yo({
10667
+ const i = G(2), t = yo({
10654
10668
  dataSetIndex: -1,
10655
10669
  columnIndex: -1
10656
10670
  });
@@ -10777,7 +10791,7 @@ function bu() {
10777
10791
  onHoverIndex: t
10778
10792
  };
10779
10793
  }
10780
- const yu = { class: "container" }, xu = { class: "main" }, _u = /* @__PURE__ */ Et({
10794
+ const yu = { class: "container" }, xu = { class: "main" }, _u = /* @__PURE__ */ zt({
10781
10795
  __name: "MixedBarLineChart",
10782
10796
  props: {
10783
10797
  /**
@@ -11003,10 +11017,10 @@ const yu = { class: "container" }, xu = { class: "main" }, _u = /* @__PURE__ */
11003
11017
  pt,
11004
11018
  Tt
11005
11019
  );
11006
- const { privateGetHtmlLegendPlugin: e, getMixedDatasets: n } = bu(), { colourSets: s, patternsStandardList: o } = ye(), a = q(null), r = q(!1), l = R(() => {
11020
+ const { privateGetHtmlLegendPlugin: e, getMixedDatasets: n } = bu(), { colourSets: s, patternsStandardList: o } = ye(), a = G(null), r = G(!1), l = E(() => {
11007
11021
  let _ = [];
11008
11022
  return t.barDatasets && (_ = _.concat(t.barDatasets)), t.lineDatasets && (_ = _.concat(t.lineDatasets)), _;
11009
- }), c = R(() => t.newPatternsOrder.length !== o.length ? s[t.colourSet] : t.newPatternsOrder.map((_) => s[t.colourSet][_])), h = R(() => t.newPatternsOrder.length !== o.length ? o : t.newPatternsOrder.map((_) => o[_])), d = R(() => t.disableAccessibility), u = R(() => ({
11023
+ }), c = E(() => t.newPatternsOrder.length !== o.length ? s[t.colourSet] : t.newPatternsOrder.map((_) => s[t.colourSet][_])), h = E(() => t.newPatternsOrder.length !== o.length ? o : t.newPatternsOrder.map((_) => o[_])), d = E(() => t.disableAccessibility), u = E(() => ({
11010
11024
  labels: m(),
11011
11025
  datasets: n(
11012
11026
  l.value,
@@ -11018,7 +11032,7 @@ const yu = { class: "container" }, xu = { class: "main" }, _u = /* @__PURE__ */
11018
11032
  })), f = (_) => {
11019
11033
  const v = _.tooltip.dataPoints[0].datasetIndex, S = _.tooltip.dataPoints[0].dataIndex, M = l.value[v].data[S], k = l.value[v].type === "bar" ? t.barUnit : t.lineUnit;
11020
11034
  return (l.value[v].type === "bar" ? tt(M, t.barValueMinimumFractionDigits, t.barValueMaximumFractionDigits) : tt(M, t.lineValueMinimumFractionDigits, t.lineValueMaximumFractionDigits)) + " " + k;
11021
- }, m = () => Object.assign([], t.labels).map((v) => v), g = R(() => ({
11035
+ }, m = () => Object.assign([], t.labels).map((v) => v), g = E(() => ({
11022
11036
  type: "bar",
11023
11037
  responsive: !0,
11024
11038
  maintainAspectRatio: !1,
@@ -11104,9 +11118,9 @@ const yu = { class: "container" }, xu = { class: "main" }, _u = /* @__PURE__ */
11104
11118
  return y(_, t.lineUnit, t.lineTicksMinimumFractionDigits, t.lineTicksMaximumFractionDigits);
11105
11119
  }
11106
11120
  function y(_, v, S, M) {
11107
- return v === "%" ? `${pa(_, t.unit, S, M)} ${v}` : `${Rt(_, S, M)} ${v}`;
11121
+ return v === "%" ? `${pa(_, t.unit, S, M)} ${v}` : `${Bt(_, S, M)} ${v}`;
11108
11122
  }
11109
- const x = q(
11123
+ const x = G(
11110
11124
  e(
11111
11125
  a,
11112
11126
  r,
@@ -11115,9 +11129,9 @@ const yu = { class: "container" }, xu = { class: "main" }, _u = /* @__PURE__ */
11115
11129
  h
11116
11130
  )
11117
11131
  );
11118
- return (_, v) => (rt(), Xt("div", yu, [
11119
- ot("div", xu, [
11120
- u.value ? (rt(), he(Ot(ga), {
11132
+ return (_, v) => (st(), Ot("div", yu, [
11133
+ rt("div", xu, [
11134
+ u.value ? (st(), he(It(ga), {
11121
11135
  key: 0,
11122
11136
  ref: "mixedBarLineChartRef",
11123
11137
  id: i.chartId,
@@ -11125,10 +11139,10 @@ const yu = { class: "container" }, xu = { class: "main" }, _u = /* @__PURE__ */
11125
11139
  options: g.value,
11126
11140
  plugins: x.value,
11127
11141
  class: de(i.cssClasses),
11128
- style: qt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
11129
- }, null, 8, ["id", "data", "options", "plugins", "class", "style"])) : Gt("", !0)
11142
+ style: Gt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
11143
+ }, null, 8, ["id", "data", "options", "plugins", "class", "style"])) : Ft("", !0)
11130
11144
  ]),
11131
- ot("div", {
11145
+ rt("div", {
11132
11146
  ref_key: "legendContainer",
11133
11147
  ref: a
11134
11148
  }, null, 512)
@@ -11161,7 +11175,7 @@ var ho = function() {
11161
11175
  var t = [], e;
11162
11176
  for (i = [].concat(i); i.length; )
11163
11177
  e = i.pop(), typeof e == "string" ? t.unshift.apply(t, e.split(`
11164
- `)) : Array.isArray(e) ? i.push.apply(i, e) : F(i) || t.unshift("" + e);
11178
+ `)) : Array.isArray(e) ? i.push.apply(i, e) : R(i) || t.unshift("" + e);
11165
11179
  return t;
11166
11180
  },
11167
11181
  // @todo move this in Chart.helpers.canvas.textSize
@@ -11395,38 +11409,38 @@ bt(Da.prototype, {
11395
11409
  * @private
11396
11410
  */
11397
11411
  _modelize: function(i, t, e, n) {
11398
- var s = this, o = s._index, a = X(H([e.font, {}], n, o)), r = H([e.color, $.color], n, o);
11412
+ var s = this, o = s._index, a = X(j([e.font, {}], n, o)), r = j([e.color, U.color], n, o);
11399
11413
  return {
11400
- align: H([e.align, "center"], n, o),
11401
- anchor: H([e.anchor, "center"], n, o),
11414
+ align: j([e.align, "center"], n, o),
11415
+ anchor: j([e.anchor, "center"], n, o),
11402
11416
  area: n.chart.chartArea,
11403
- backgroundColor: H([e.backgroundColor, null], n, o),
11404
- borderColor: H([e.borderColor, null], n, o),
11405
- borderRadius: H([e.borderRadius, 0], n, o),
11406
- borderWidth: H([e.borderWidth, 0], n, o),
11407
- clamp: H([e.clamp, !1], n, o),
11408
- clip: H([e.clip, !1], n, o),
11417
+ backgroundColor: j([e.backgroundColor, null], n, o),
11418
+ borderColor: j([e.borderColor, null], n, o),
11419
+ borderRadius: j([e.borderRadius, 0], n, o),
11420
+ borderWidth: j([e.borderWidth, 0], n, o),
11421
+ clamp: j([e.clamp, !1], n, o),
11422
+ clip: j([e.clip, !1], n, o),
11409
11423
  color: r,
11410
11424
  display: i,
11411
11425
  font: a,
11412
11426
  lines: t,
11413
- offset: H([e.offset, 4], n, o),
11414
- opacity: H([e.opacity, 1], n, o),
11427
+ offset: j([e.offset, 4], n, o),
11428
+ opacity: j([e.opacity, 1], n, o),
11415
11429
  origin: Cu(s._el, n),
11416
- padding: K(H([e.padding, 4], n, o)),
11430
+ padding: Z(j([e.padding, 4], n, o)),
11417
11431
  positioner: Pu(s._el),
11418
- rotation: H([e.rotation, 0], n, o) * (Math.PI / 180),
11432
+ rotation: j([e.rotation, 0], n, o) * (Math.PI / 180),
11419
11433
  size: Ne.textSize(s._ctx, t, a),
11420
- textAlign: H([e.textAlign, "start"], n, o),
11421
- textShadowBlur: H([e.textShadowBlur, 0], n, o),
11422
- textShadowColor: H([e.textShadowColor, r], n, o),
11423
- textStrokeColor: H([e.textStrokeColor, r], n, o),
11424
- textStrokeWidth: H([e.textStrokeWidth, 0], n, o)
11434
+ textAlign: j([e.textAlign, "start"], n, o),
11435
+ textShadowBlur: j([e.textShadowBlur, 0], n, o),
11436
+ textShadowColor: j([e.textShadowColor, r], n, o),
11437
+ textStrokeColor: j([e.textStrokeColor, r], n, o),
11438
+ textStrokeWidth: j([e.textStrokeWidth, 0], n, o)
11425
11439
  };
11426
11440
  },
11427
11441
  update: function(i) {
11428
- var t = this, e = null, n = null, s = t._index, o = t._config, a, r, l, c = H([o.display, !0], i, s);
11429
- c && (a = i.dataset.data[s], r = A(z(o.formatter, [a, i]), a), l = F(r) ? [] : Ne.toTextLines(r), l.length && (e = t._modelize(c, l, o, i), n = wu(e))), t._model = e, t._rects = n;
11442
+ var t = this, e = null, n = null, s = t._index, o = t._config, a, r, l, c = j([o.display, !0], i, s);
11443
+ c && (a = i.dataset.data[s], r = A(z(o.formatter, [a, i]), a), l = R(r) ? [] : Ne.toTextLines(r), l.length && (e = t._modelize(c, l, o, i), n = wu(e))), t._model = e, t._rects = n;
11430
11444
  },
11431
11445
  geometry: function() {
11432
11446
  return this._rects ? this._rects.frame : {};
@@ -11594,13 +11608,13 @@ var We = {
11594
11608
  s = t[e], o = s.$layout, o._visible && (a = s.geometry(), r = La(s._el, s.model(), a), o._box.update(r, a, s.rotation()), s.draw(i, r));
11595
11609
  }
11596
11610
  }, Bu = function(i) {
11597
- if (F(i))
11611
+ if (R(i))
11598
11612
  return null;
11599
11613
  var t = i, e, n, s;
11600
11614
  if (O(i))
11601
- if (!F(i.label))
11615
+ if (!R(i.label))
11602
11616
  t = i.label;
11603
- else if (!F(i.r))
11617
+ else if (!R(i.r))
11604
11618
  t = i.r;
11605
11619
  else
11606
11620
  for (t = "", e = Object.keys(i), s = 0, n = e.length; s < n; ++s)
@@ -11641,7 +11655,7 @@ var We = {
11641
11655
  textStrokeWidth: 0,
11642
11656
  textShadowBlur: 0,
11643
11657
  textShadowColor: void 0
11644
- }, nt = "$datalabels", Ta = "$default";
11658
+ }, it = "$datalabels", Ta = "$default";
11645
11659
  function Nu(i, t) {
11646
11660
  var e = i.datalabels, n = {}, s = [], o, a;
11647
11661
  return e === !1 ? null : (e === !0 && (e = {}), t = bt({}, [t, e]), o = t.labels || {}, a = Object.keys(o), delete t.labels, a.length ? a.forEach(function(r) {
@@ -11651,7 +11665,7 @@ function Nu(i, t) {
11651
11665
  { _key: r }
11652
11666
  ]));
11653
11667
  }) : s.push(t), n = s.reduce(function(r, l) {
11654
- return E(l.listeners || {}, function(c, h) {
11668
+ return B(l.listeners || {}, function(c, h) {
11655
11669
  r[h] = r[h] || {}, r[h][l._key || Ta] = c;
11656
11670
  }), delete l.listeners, r;
11657
11671
  }, {}), {
@@ -11662,7 +11676,7 @@ function Nu(i, t) {
11662
11676
  function yn(i, t, e, n) {
11663
11677
  if (t) {
11664
11678
  var s = e.$context, o = e.$groups, a;
11665
- t[o._set] && (a = t[o._set][o._key], a && z(a, [s, n]) === !0 && (i[nt]._dirty = !0, e.update(s)));
11679
+ t[o._set] && (a = t[o._set][o._key], a && z(a, [s, n]) === !0 && (i[it]._dirty = !0, e.update(s)));
11666
11680
  }
11667
11681
  }
11668
11682
  function Wu(i, t, e, n, s) {
@@ -11670,7 +11684,7 @@ function Wu(i, t, e, n, s) {
11670
11684
  !e && !n || (e ? n ? e !== n && (a = o = !0) : a = !0 : o = !0, a && yn(i, t.leave, e, s), o && yn(i, t.enter, n, s));
11671
11685
  }
11672
11686
  function Hu(i, t) {
11673
- var e = i[nt], n = e._listeners, s, o;
11687
+ var e = i[it], n = e._listeners, s, o;
11674
11688
  if (!(!n.enter && !n.leave)) {
11675
11689
  if (t.type === "mousemove")
11676
11690
  o = We.lookup(e._labels, t);
@@ -11680,25 +11694,25 @@ function Hu(i, t) {
11680
11694
  }
11681
11695
  }
11682
11696
  function Vu(i, t) {
11683
- var e = i[nt], n = e._listeners.click, s = n && We.lookup(e._labels, t);
11697
+ var e = i[it], n = e._listeners.click, s = n && We.lookup(e._labels, t);
11684
11698
  s && yn(i, n, s, t);
11685
11699
  }
11686
- var Ht = {
11700
+ var jt = {
11687
11701
  id: "datalabels",
11688
11702
  defaults: zu,
11689
11703
  beforeInit: function(i) {
11690
- i[nt] = {
11704
+ i[it] = {
11691
11705
  _actives: []
11692
11706
  };
11693
11707
  },
11694
11708
  beforeUpdate: function(i) {
11695
- var t = i[nt];
11709
+ var t = i[it];
11696
11710
  t._listened = !1, t._listeners = {}, t._datasets = [], t._labels = [];
11697
11711
  },
11698
11712
  afterDatasetUpdate: function(i, t, e) {
11699
- var n = t.index, s = i[nt], o = s._datasets[n] = [], a = i.isDatasetVisible(n), r = i.data.datasets[n], l = Nu(r, e), c = t.meta.data || [], h = i.ctx, d, u, f, m, g, p, b, y;
11713
+ var n = t.index, s = i[it], o = s._datasets[n] = [], a = i.isDatasetVisible(n), r = i.data.datasets[n], l = Nu(r, e), c = t.meta.data || [], h = i.ctx, d, u, f, m, g, p, b, y;
11700
11714
  for (h.save(), d = 0, f = c.length; d < f; ++d)
11701
- if (b = c[d], b[nt] = [], a && b && i.getDataVisibility(d) && !b.skip)
11715
+ if (b = c[d], b[it] = [], a && b && i.getDataVisibility(d) && !b.skip)
11702
11716
  for (u = 0, m = l.labels.length; u < m; ++u)
11703
11717
  g = l.labels[u], p = g._key, y = new Da(g, h, b, d), y.$groups = {
11704
11718
  _set: n,
@@ -11709,7 +11723,7 @@ var Ht = {
11709
11723
  dataIndex: d,
11710
11724
  dataset: r,
11711
11725
  datasetIndex: n
11712
- }, y.update(y.$context), b[nt].push(y), o.push(y);
11726
+ }, y.update(y.$context), b[it].push(y), o.push(y);
11713
11727
  h.restore(), bt(s._listeners, l.listeners, {
11714
11728
  merger: function(x, _, v) {
11715
11729
  _[x] = _[x] || {}, _[x][t.index] = v[x], s._listened = !0;
@@ -11717,16 +11731,16 @@ var Ht = {
11717
11731
  });
11718
11732
  },
11719
11733
  afterUpdate: function(i) {
11720
- i[nt]._labels = We.prepare(i[nt]._datasets);
11734
+ i[it]._labels = We.prepare(i[it]._datasets);
11721
11735
  },
11722
11736
  // Draw labels on top of all dataset elements
11723
11737
  // https://github.com/chartjs/chartjs-plugin-datalabels/issues/29
11724
11738
  // https://github.com/chartjs/chartjs-plugin-datalabels/issues/32
11725
11739
  afterDatasetsDraw: function(i) {
11726
- We.draw(i, i[nt]._labels);
11740
+ We.draw(i, i[it]._labels);
11727
11741
  },
11728
11742
  beforeEvent: function(i, t) {
11729
- if (i[nt]._listened) {
11743
+ if (i[it]._listened) {
11730
11744
  var e = t.event;
11731
11745
  switch (e.type) {
11732
11746
  case "mousemove":
@@ -11740,10 +11754,10 @@ var Ht = {
11740
11754
  }
11741
11755
  },
11742
11756
  afterEvent: function(i) {
11743
- var t = i[nt], e = t._actives, n = t._actives = i.getActiveElements(), s = Ne.arrayDiff(e, n), o, a, r, l, c, h, d;
11757
+ var t = i[it], e = t._actives, n = t._actives = i.getActiveElements(), s = Ne.arrayDiff(e, n), o, a, r, l, c, h, d;
11744
11758
  for (o = 0, a = s.length; o < a; ++o)
11745
11759
  if (c = s[o], c[1])
11746
- for (d = c[0].element[nt] || [], r = 0, l = d.length; r < l; ++r)
11760
+ for (d = c[0].element[it] || [], r = 0, l = d.length; r < l; ++r)
11747
11761
  h = d[r], h.$context.active = c[1] === 1, h.update(h.$context);
11748
11762
  (t._dirty || s.length) && (We.update(t._labels), i.render()), delete t._dirty;
11749
11763
  }
@@ -11789,7 +11803,7 @@ class ju extends me {
11789
11803
  }), `<div>${n}</div>`;
11790
11804
  }
11791
11805
  }
11792
- const $u = { class: "container" }, Uu = { class: "main" }, Yu = { class: "chart-legend" }, Xu = ["alt"], qu = { class: "size-legend-label" }, Gu = /* @__PURE__ */ Et({
11806
+ const $u = { class: "container" }, Uu = { class: "main" }, Yu = { class: "chart-legend" }, Xu = ["alt"], qu = { class: "size-legend-label" }, Gu = /* @__PURE__ */ zt({
11793
11807
  __name: "BubbleChart",
11794
11808
  props: {
11795
11809
  /**
@@ -11980,14 +11994,14 @@ const $u = { class: "container" }, Uu = { class: "main" }, Yu = { class: "chart-
11980
11994
  _labels: [],
11981
11995
  _actives: []
11982
11996
  }, n = {
11983
- ...Ht,
11997
+ ...jt,
11984
11998
  beforeUpdate(c, h, d) {
11985
11999
  var u;
11986
- return c.$datalabels || (c.$datalabels = e), (u = Ht.beforeUpdate) == null ? void 0 : u.call(Ht, c, h, d);
12000
+ return c.$datalabels || (c.$datalabels = e), (u = jt.beforeUpdate) == null ? void 0 : u.call(jt, c, h, d);
11987
12001
  },
11988
12002
  beforeEvent(c, h, d) {
11989
12003
  var u;
11990
- return c.$datalabels || (c.$datalabels = e), (u = Ht.beforeEvent) == null ? void 0 : u.call(Ht, c, h, d);
12004
+ return c.$datalabels || (c.$datalabels = e), (u = jt.beforeEvent) == null ? void 0 : u.call(jt, c, h, d);
11991
12005
  }
11992
12006
  };
11993
12007
  Ct.register(
@@ -12016,7 +12030,7 @@ const $u = { class: "container" }, Uu = { class: "main" }, Yu = { class: "chart-
12016
12030
  y: p.y,
12017
12031
  r: m + (p.r - u) * (f - m) / (d - u)
12018
12032
  })));
12019
- }, a = R(() => {
12033
+ }, a = E(() => {
12020
12034
  const c = s[t.colourSet];
12021
12035
  return {
12022
12036
  datasets: o(t.datasets).map(
@@ -12032,7 +12046,7 @@ const $u = { class: "container" }, Uu = { class: "main" }, Yu = { class: "chart-
12032
12046
  })
12033
12047
  )
12034
12048
  };
12035
- }), r = R(() => ({
12049
+ }), r = E(() => ({
12036
12050
  responsive: !1,
12037
12051
  // eslint-disable-next-line
12038
12052
  scales: {
@@ -12103,25 +12117,25 @@ const $u = { class: "container" }, Uu = { class: "main" }, Yu = { class: "chart-
12103
12117
  }
12104
12118
  ];
12105
12119
  }
12106
- return (c, h) => (rt(), Xt("div", $u, [
12107
- ot("div", Uu, [
12108
- a.value ? (rt(), he(Ot(Fd), {
12120
+ return (c, h) => (st(), Ot("div", $u, [
12121
+ rt("div", Uu, [
12122
+ a.value ? (st(), he(It(Fd), {
12109
12123
  key: 0,
12110
12124
  ref: "bubbleChartRef",
12111
12125
  id: i.chartId,
12112
12126
  data: a.value,
12113
12127
  options: r.value,
12114
12128
  class: de(i.cssClasses),
12115
- style: qt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
12116
- }, null, 8, ["id", "data", "options", "class", "style"])) : Gt("", !0)
12129
+ style: Gt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
12130
+ }, null, 8, ["id", "data", "options", "class", "style"])) : Ft("", !0)
12117
12131
  ]),
12118
- ot("div", Yu, [
12119
- ot("img", {
12132
+ rt("div", Yu, [
12133
+ rt("img", {
12120
12134
  src: vu,
12121
12135
  alt: i.rAxis.title,
12122
12136
  class: "bubble-icon mu-mr-025"
12123
12137
  }, null, 8, Xu),
12124
- ot("div", qu, xo(i.rAxis.title), 1)
12138
+ rt("div", qu, xo(i.rAxis.title), 1)
12125
12139
  ])
12126
12140
  ]));
12127
12141
  }