@mozaic-ds/chart 0.1.0-beta.22 → 0.1.0-beta.25

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.
@@ -680,7 +680,7 @@ function yr(i, t, e) {
680
680
  s--;
681
681
  return n > 0 || s < i.length ? i.slice(n, s) : i;
682
682
  }
683
- const Co = [
683
+ const Mo = [
684
684
  "push",
685
685
  "pop",
686
686
  "shift",
@@ -700,7 +700,7 @@ function xr(i, t) {
700
700
  t
701
701
  ]
702
702
  }
703
- }), Co.forEach((e) => {
703
+ }), Mo.forEach((e) => {
704
704
  const n = "_onData" + vn(e), s = i[e];
705
705
  Object.defineProperty(i, e, {
706
706
  configurable: !0,
@@ -719,11 +719,11 @@ function Gn(i, t) {
719
719
  if (!e)
720
720
  return;
721
721
  const n = e.listeners, s = n.indexOf(t);
722
- s !== -1 && n.splice(s, 1), !(n.length > 0) && (Co.forEach((o) => {
722
+ s !== -1 && n.splice(s, 1), !(n.length > 0) && (Mo.forEach((o) => {
723
723
  delete i[o];
724
724
  }), delete i._chartjs);
725
725
  }
726
- function Mo(i) {
726
+ function Co(i) {
727
727
  const t = new Set(i);
728
728
  return t.size === i.length ? i : Array.from(t);
729
729
  }
@@ -825,7 +825,7 @@ const Qe = (i) => i === 0 || i === 1, qn = (i, t, e) => -(Math.pow(2, 10 * (i -=
825
825
  },
826
826
  easeInOutBounce: (i) => i < 0.5 ? Ee.easeInBounce(i * 2) * 0.5 : Ee.easeOutBounce(i * 2 - 1) * 0.5 + 0.5
827
827
  };
828
- function Cn(i) {
828
+ function Mn(i) {
829
829
  if (i && typeof i == "object") {
830
830
  const t = i.toString();
831
831
  return t === "[object CanvasPattern]" || t === "[object CanvasGradient]";
@@ -833,10 +833,10 @@ function Cn(i) {
833
833
  return !1;
834
834
  }
835
835
  function Zn(i) {
836
- return Cn(i) ? i : new He(i);
836
+ return Mn(i) ? i : new He(i);
837
837
  }
838
838
  function Wi(i) {
839
- return Cn(i) ? i : new He(i).saturate(0.5).darken(0.1).hexString();
839
+ return Mn(i) ? i : new He(i).saturate(0.5).darken(0.1).hexString();
840
840
  }
841
841
  const kr = [
842
842
  "x",
@@ -844,12 +844,12 @@ const kr = [
844
844
  "borderWidth",
845
845
  "radius",
846
846
  "tension"
847
- ], Cr = [
847
+ ], Mr = [
848
848
  "color",
849
849
  "borderColor",
850
850
  "backgroundColor"
851
851
  ];
852
- function Mr(i) {
852
+ function Cr(i) {
853
853
  i.set("animation", {
854
854
  delay: void 0,
855
855
  duration: 1e3,
@@ -866,7 +866,7 @@ function Mr(i) {
866
866
  }), i.set("animations", {
867
867
  colors: {
868
868
  type: "color",
869
- properties: Cr
869
+ properties: Mr
870
870
  },
871
871
  numbers: {
872
872
  type: "number",
@@ -928,7 +928,7 @@ function Ar(i, t) {
928
928
  let n = Jn.get(e);
929
929
  return n || (n = new Intl.NumberFormat(i, t), Jn.set(e, n)), n;
930
930
  }
931
- function Mn(i, t, e) {
931
+ function Cn(i, t, e) {
932
932
  return Ar(t, e).format(i);
933
933
  }
934
934
  const Do = {
@@ -949,7 +949,7 @@ const Do = {
949
949
  minimumFractionDigits: r,
950
950
  maximumFractionDigits: r
951
951
  };
952
- return Object.assign(l, this.options.ticks.format), Mn(i, n, l);
952
+ return Object.assign(l, this.options.ticks.format), Cn(i, n, l);
953
953
  },
954
954
  logarithmic(i, t, e) {
955
955
  if (i === 0)
@@ -1116,7 +1116,7 @@ var $ = /* @__PURE__ */ new Tr({
1116
1116
  _indexable: !1
1117
1117
  }
1118
1118
  }, [
1119
- Mr,
1119
+ Cr,
1120
1120
  Pr,
1121
1121
  Lr
1122
1122
  ]);
@@ -1869,9 +1869,9 @@ function No(i, t, e) {
1869
1869
  ];
1870
1870
  const { property: n, start: s, end: o } = e, a = t.length, { compare: r, between: l, normalize: c } = Ho(n), { start: h, end: d, loop: u, style: f } = yl(i, t, e), p = [];
1871
1871
  let g = !1, m = null, b, y, x;
1872
- const v = () => l(s, x, b) && r(s, x) !== 0, _ = () => r(o, b) === 0 || l(o, x, b), S = () => g || v(), C = () => !g || _();
1872
+ const v = () => l(s, x, b) && r(s, x) !== 0, _ = () => r(o, b) === 0 || l(o, x, b), S = () => g || v(), M = () => !g || _();
1873
1873
  for (let w = h, A = h; w <= d; ++w)
1874
- y = t[w % a], !y.skip && (b = c(y[n]), b !== x && (g = l(b, s, o), m === null && S() && (m = r(b, s) === 0 ? w : A), m !== null && C() && (p.push(ss({
1874
+ y = t[w % a], !y.skip && (b = c(y[n]), b !== x && (g = l(b, s, o), m === null && S() && (m = r(b, s) === 0 ? w : A), m !== null && M() && (p.push(ss({
1875
1875
  start: m,
1876
1876
  end: w,
1877
1877
  loop: u,
@@ -1995,7 +1995,7 @@ function wl(i, t) {
1995
1995
  if (!t)
1996
1996
  return !1;
1997
1997
  const e = [], n = function(s, o) {
1998
- return Cn(o) ? (e.includes(o) || e.push(o), e.indexOf(o)) : o;
1998
+ return Mn(o) ? (e.includes(o) || e.push(o), e.indexOf(o)) : o;
1999
1999
  };
2000
2000
  return JSON.stringify(i, n) !== JSON.stringify(t, n);
2001
2001
  }
@@ -2082,7 +2082,7 @@ class kl {
2082
2082
  }
2083
2083
  }
2084
2084
  var xt = /* @__PURE__ */ new kl();
2085
- const rs = "transparent", Cl = {
2085
+ const rs = "transparent", Ml = {
2086
2086
  boolean(i, t, e) {
2087
2087
  return e > 0.5 ? t : i;
2088
2088
  },
@@ -2094,7 +2094,7 @@ const rs = "transparent", Cl = {
2094
2094
  return i + (t - i) * e;
2095
2095
  }
2096
2096
  };
2097
- class Ml {
2097
+ class Cl {
2098
2098
  constructor(t, e, n, s) {
2099
2099
  const o = e[n];
2100
2100
  s = V([
@@ -2108,7 +2108,7 @@ class Ml {
2108
2108
  o,
2109
2109
  s
2110
2110
  ]);
2111
- this._active = !0, this._fn = t.fn || Cl[t.type || typeof a], this._easing = Ee[t.easing] || Ee.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = e, this._prop = n, this._from = a, this._to = s, this._promises = void 0;
2111
+ this._active = !0, this._fn = t.fn || Ml[t.type || typeof a], this._easing = Ee[t.easing] || Ee.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = e, this._prop = n, this._from = a, this._to = s, this._promises = void 0;
2112
2112
  }
2113
2113
  active() {
2114
2114
  return this._active;
@@ -2216,7 +2216,7 @@ class jo {
2216
2216
  t[c] = h;
2217
2217
  continue;
2218
2218
  }
2219
- o[c] = d = new Ml(u, t, c, h), s.push(d);
2219
+ o[c] = d = new Cl(u, t, c, h), s.push(d);
2220
2220
  }
2221
2221
  return s;
2222
2222
  }
@@ -2389,7 +2389,7 @@ const Vi = (i) => i === "reset" || i === "none", fs = (i, t) => t ? i : Object.a
2389
2389
  keys: $o(e, !0),
2390
2390
  values: null
2391
2391
  };
2392
- class Ct {
2392
+ class Mt {
2393
2393
  constructor(t, e) {
2394
2394
  this.chart = t, this._ctx = t.ctx, this.index = e, this._cachedDataOpts = {}, this._cachedMeta = this.getMeta(), this._type = this._cachedMeta.type, this.options = void 0, this._parsing = !1, this._data = void 0, this._objectData = void 0, this._sharedOptions = void 0, this._drawStart = void 0, this._drawCount = void 0, this.enableOptionSharing = !1, this.supportsDecimation = !1, this.$context = void 0, this._syncList = [], this.datasetElementType = new.target.datasetElementType, this.dataElementType = new.target.dataElementType, this.initialize();
2395
2395
  }
@@ -2744,14 +2744,14 @@ class Ct {
2744
2744
  ]);
2745
2745
  }
2746
2746
  }
2747
- k(Ct, "defaults", {}), k(Ct, "datasetElementType", null), k(Ct, "dataElementType", null);
2747
+ k(Mt, "defaults", {}), k(Mt, "datasetElementType", null), k(Mt, "dataElementType", null);
2748
2748
  function zl(i, t) {
2749
2749
  if (!i._cache.$bar) {
2750
2750
  const e = i.getMatchingVisibleMetas(t);
2751
2751
  let n = [];
2752
2752
  for (let s = 0, o = e.length; s < o; s++)
2753
2753
  n = n.concat(e[s].controller.getAllParsedValues(i));
2754
- i._cache.$bar = Mo(n.sort((s, o) => s - o));
2754
+ i._cache.$bar = Co(n.sort((s, o) => s - o));
2755
2755
  }
2756
2756
  return i._cache.$bar;
2757
2757
  }
@@ -2857,7 +2857,7 @@ function ms(i, t, e) {
2857
2857
  function Xl(i, { inflateAmount: t }, e) {
2858
2858
  i.inflateAmount = t === "auto" ? e === 1 ? 0.33 : 0 : t;
2859
2859
  }
2860
- class fi extends Ct {
2860
+ class fi extends Mt {
2861
2861
  parsePrimitiveData(t, e, n, s) {
2862
2862
  return gs(t, e, n, s);
2863
2863
  }
@@ -3027,7 +3027,7 @@ k(fi, "id", "bar"), k(fi, "defaults", {
3027
3027
  }
3028
3028
  }
3029
3029
  });
3030
- class gi extends Ct {
3030
+ class gi extends Mt {
3031
3031
  initialize() {
3032
3032
  this.enableOptionSharing = !0, super.initialize();
3033
3033
  }
@@ -3125,7 +3125,7 @@ function Gl(i, t, e) {
3125
3125
  offsetY: a
3126
3126
  };
3127
3127
  }
3128
- class Le extends Ct {
3128
+ class Le extends Mt {
3129
3129
  constructor(t, e) {
3130
3130
  super(t, e), this.enableOptionSharing = !0, this.innerRadius = void 0, this.outerRadius = void 0, this.offsetX = void 0, this.offsetY = void 0;
3131
3131
  }
@@ -3204,7 +3204,7 @@ class Le extends Ct {
3204
3204
  return e > 0 && !isNaN(t) ? W * (Math.abs(t) / e) : 0;
3205
3205
  }
3206
3206
  getLabelAndValue(t) {
3207
- const e = this._cachedMeta, n = this.chart, s = n.data.labels || [], o = Mn(e._parsed[t], n.options.locale);
3207
+ const e = this._cachedMeta, n = this.chart, s = n.data.labels || [], o = Cn(e._parsed[t], n.options.locale);
3208
3208
  return {
3209
3209
  label: s[t] || "",
3210
3210
  value: o
@@ -3313,7 +3313,7 @@ k(Le, "id", "doughnut"), k(Le, "defaults", {
3313
3313
  }
3314
3314
  }
3315
3315
  });
3316
- class pi extends Ct {
3316
+ class pi extends Mt {
3317
3317
  initialize() {
3318
3318
  this.enableOptionSharing = !0, this.supportsDecimation = !0, super.initialize();
3319
3319
  }
@@ -3331,13 +3331,13 @@ class pi extends Ct {
3331
3331
  const o = s === "reset", { iScale: a, vScale: r, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: h, includeOptions: d } = this._getSharedOptions(e, s), u = a.axis, f = r.axis, { spanGaps: p, segment: g } = this.options, m = Ve(p) ? p : Number.POSITIVE_INFINITY, b = this.chart._animationsDisabled || o || s === "none", y = e + n, x = t.length;
3332
3332
  let v = e > 0 && this.getParsed(e - 1);
3333
3333
  for (let _ = 0; _ < x; ++_) {
3334
- const S = t[_], C = b ? S : {};
3334
+ const S = t[_], M = b ? S : {};
3335
3335
  if (_ < e || _ >= y) {
3336
- C.skip = !0;
3336
+ M.skip = !0;
3337
3337
  continue;
3338
3338
  }
3339
- const w = this.getParsed(_), A = O(w[f]), M = C[u] = a.getPixelForValue(w[u], _), P = C[f] = o || A ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, w, l) : w[f], _);
3340
- C.skip = isNaN(M) || isNaN(P) || A, C.stop = _ > 0 && Math.abs(w[u] - v[u]) > m, g && (C.parsed = w, C.raw = c.data[_]), d && (C.options = h || this.resolveDataElementOptions(_, S.active ? "active" : s)), b || this.updateElement(S, _, C, s), v = w;
3339
+ const w = this.getParsed(_), A = O(w[f]), C = M[u] = a.getPixelForValue(w[u], _), P = M[f] = o || A ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, w, l) : w[f], _);
3340
+ M.skip = isNaN(C) || isNaN(P) || A, M.stop = _ > 0 && Math.abs(w[u] - v[u]) > m, g && (M.parsed = w, M.raw = c.data[_]), d && (M.options = h || this.resolveDataElementOptions(_, S.active ? "active" : s)), b || this.updateElement(S, _, M, s), v = w;
3341
3341
  }
3342
3342
  }
3343
3343
  getMaxOverflow() {
@@ -3367,7 +3367,7 @@ k(pi, "id", "line"), k(pi, "defaults", {
3367
3367
  }
3368
3368
  }
3369
3369
  });
3370
- class mi extends Ct {
3370
+ class mi extends Mt {
3371
3371
  getLabelAndValue(t) {
3372
3372
  const e = this._cachedMeta.vScale, n = this.getParsed(t);
3373
3373
  return {
@@ -3640,7 +3640,7 @@ function ke(i, t) {
3640
3640
  function ys(i, t) {
3641
3641
  return i.filter((e) => Yo.indexOf(e.pos) === -1 && e.box.axis === t);
3642
3642
  }
3643
- function Ce(i, t) {
3643
+ function Me(i, t) {
3644
3644
  return i.sort((e, n) => {
3645
3645
  const s = t ? n : e, o = t ? e : n;
3646
3646
  return s.weight === o.weight ? s.index - o.index : s.weight - o.weight;
@@ -3688,7 +3688,7 @@ function nc(i, t) {
3688
3688
  return e;
3689
3689
  }
3690
3690
  function sc(i) {
3691
- const t = ec(i), e = Ce(t.filter((c) => c.box.fullSize), !0), n = Ce(ke(t, "left"), !0), s = Ce(ke(t, "right")), o = Ce(ke(t, "top"), !0), a = Ce(ke(t, "bottom")), r = ys(t, "x"), l = ys(t, "y");
3691
+ const t = ec(i), e = Me(t.filter((c) => c.box.fullSize), !0), n = Me(ke(t, "left"), !0), s = Me(ke(t, "right")), o = Me(ke(t, "top"), !0), a = Me(ke(t, "bottom")), r = ys(t, "x"), l = ys(t, "y");
3692
3692
  return {
3693
3693
  fullSize: e,
3694
3694
  leftAndTop: n.concat(o),
@@ -3935,7 +3935,7 @@ function fc(i, t) {
3935
3935
  y: s !== void 0 ? s : null
3936
3936
  };
3937
3937
  }
3938
- function Ci(i, t) {
3938
+ function Mi(i, t) {
3939
3939
  for (const e of i)
3940
3940
  if (e === t || e.contains(t))
3941
3941
  return !0;
@@ -3944,7 +3944,7 @@ function gc(i, t, e) {
3944
3944
  const n = i.canvas, s = new MutationObserver((o) => {
3945
3945
  let a = !1;
3946
3946
  for (const r of o)
3947
- a = a || Ci(r.addedNodes, n), a = a && !Ci(r.removedNodes, n);
3947
+ a = a || Mi(r.addedNodes, n), a = a && !Mi(r.removedNodes, n);
3948
3948
  a && e();
3949
3949
  });
3950
3950
  return s.observe(document, {
@@ -3956,7 +3956,7 @@ function pc(i, t, e) {
3956
3956
  const n = i.canvas, s = new MutationObserver((o) => {
3957
3957
  let a = !1;
3958
3958
  for (const r of o)
3959
- a = a || Ci(r.removedNodes, n), a = a && !Ci(r.addedNodes, n);
3959
+ a = a || Mi(r.removedNodes, n), a = a && !Mi(r.addedNodes, n);
3960
3960
  a && e();
3961
3961
  });
3962
3962
  return s.observe(document, {
@@ -4088,9 +4088,9 @@ class ht {
4088
4088
  }
4089
4089
  k(ht, "defaults", {}), k(ht, "defaultRoutes");
4090
4090
  function Sc(i, t) {
4091
- const e = i.options.ticks, n = wc(i), s = Math.min(e.maxTicksLimit || n, n), o = e.major.enabled ? Cc(t) : [], a = o.length, r = o[0], l = o[a - 1], c = [];
4091
+ const e = i.options.ticks, n = wc(i), s = Math.min(e.maxTicksLimit || n, n), o = e.major.enabled ? Mc(t) : [], a = o.length, r = o[0], l = o[a - 1], c = [];
4092
4092
  if (a > s)
4093
- return Mc(t, c, o, a / s), c;
4093
+ return Cc(t, c, o, a / s), c;
4094
4094
  const h = kc(o, t, s);
4095
4095
  if (a > 0) {
4096
4096
  let d, u;
@@ -4117,14 +4117,14 @@ function kc(i, t, e) {
4117
4117
  }
4118
4118
  return Math.max(s, 1);
4119
4119
  }
4120
- function Cc(i) {
4120
+ function Mc(i) {
4121
4121
  const t = [];
4122
4122
  let e, n;
4123
4123
  for (e = 0, n = i.length; e < n; e++)
4124
4124
  i[e].major && t.push(e);
4125
4125
  return t;
4126
4126
  }
4127
- function Mc(i, t, e, n) {
4127
+ function Cc(i, t, e, n) {
4128
4128
  let s = 0, o = e[0], a;
4129
4129
  for (n = Math.ceil(n), a = 0; a < i.length; a++)
4130
4130
  a === o && (t.push(i[a]), s++, o = e[s * n]);
@@ -4148,7 +4148,7 @@ function Pc(i) {
4148
4148
  return n;
4149
4149
  }
4150
4150
  const Ac = (i) => i === "left" ? "right" : i === "right" ? "left" : i, ws = (i, t, e) => t === "top" || t === "left" ? i[t] + e : i[t] - e, ks = (i, t) => Math.min(t || i, i);
4151
- function Cs(i, t) {
4151
+ function Ms(i, t) {
4152
4152
  const e = [], n = i.length / t, s = i.length;
4153
4153
  let o = 0;
4154
4154
  for (; o < s; o += n)
@@ -4172,10 +4172,10 @@ function Lc(i, t) {
4172
4172
  }
4173
4173
  });
4174
4174
  }
4175
- function Me(i) {
4175
+ function Ce(i) {
4176
4176
  return i.drawTicks ? i.tickLength : 0;
4177
4177
  }
4178
- function Ms(i, t) {
4178
+ function Cs(i, t) {
4179
4179
  if (!i.display)
4180
4180
  return 0;
4181
4181
  const e = X(i.font, t), n = K(i.padding);
@@ -4298,7 +4298,7 @@ class de extends ht {
4298
4298
  bottom: 0
4299
4299
  }, n), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + n.left + n.right : this.height + n.top + n.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range = jr(this, o, s), this._dataLimitsCached = !0), this.beforeBuildTicks(), this.ticks = this.buildTicks() || [], this.afterBuildTicks();
4300
4300
  const l = r < this.ticks.length;
4301
- this._convertTicksToLabels(l ? Cs(this.ticks, r) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), a.display && (a.autoSkip || a.source === "auto") && (this.ticks = Sc(this, this.ticks), this._labelSizes = null, this.afterAutoSkip()), l && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate();
4301
+ this._convertTicksToLabels(l ? Ms(this.ticks, r) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), a.display && (a.autoSkip || a.source === "auto") && (this.ticks = Sc(this, this.ticks), this._labelSizes = null, this.afterAutoSkip()), l && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate();
4302
4302
  }
4303
4303
  configure() {
4304
4304
  let t = this.options.reverse, e, n;
@@ -4377,7 +4377,7 @@ class de extends ht {
4377
4377
  return;
4378
4378
  }
4379
4379
  const h = this._getLabelSizes(), d = h.widest.width, u = h.highest.height, f = Q(this.chart.width - d, 0, this.maxWidth);
4380
- r = t.offset ? this.maxWidth / n : f / (n - 1), d + 6 > r && (r = f / (n - (t.offset ? 0.5 : 1)), l = this.maxHeight - Me(t.grid) - e.padding - Ms(t.title, this.chart.options.font), c = Math.sqrt(d * d + u * u), a = Sn(Math.min(Math.asin(Q((h.highest.height + 6) / r, -1, 1)), Math.asin(Q(l / c, -1, 1)) - Math.asin(Q(u / c, -1, 1)))), a = Math.max(s, Math.min(o, a))), this.labelRotation = a;
4380
+ r = t.offset ? this.maxWidth / n : f / (n - 1), d + 6 > r && (r = f / (n - (t.offset ? 0.5 : 1)), l = this.maxHeight - Ce(t.grid) - e.padding - Cs(t.title, this.chart.options.font), c = Math.sqrt(d * d + u * u), a = Sn(Math.min(Math.asin(Q((h.highest.height + 6) / r, -1, 1)), Math.asin(Q(l / c, -1, 1)) - Math.asin(Q(u / c, -1, 1)))), a = Math.max(s, Math.min(o, a))), this.labelRotation = a;
4381
4381
  }
4382
4382
  afterCalculateLabelRotation() {
4383
4383
  E(this.options.afterCalculateLabelRotation, [
@@ -4397,8 +4397,8 @@ class de extends ht {
4397
4397
  height: 0
4398
4398
  }, { chart: e, options: { ticks: n, title: s, grid: o } } = this, a = this._isVisible(), r = this.isHorizontal();
4399
4399
  if (a) {
4400
- const l = Ms(s, e.options.font);
4401
- if (r ? (t.width = this.maxWidth, t.height = Me(o) + l) : (t.height = this.maxHeight, t.width = Me(o) + l), n.display && this.ticks.length) {
4400
+ const l = Cs(s, e.options.font);
4401
+ if (r ? (t.width = this.maxWidth, t.height = Ce(o) + l) : (t.height = this.maxHeight, t.width = Ce(o) + l), n.display && this.ticks.length) {
4402
4402
  const { first: c, last: h, widest: d, highest: u } = this._getLabelSizes(), f = n.padding * 2, p = gt(this.labelRotation), g = Math.cos(p), m = Math.sin(p);
4403
4403
  if (r) {
4404
4404
  const b = n.mirror ? 0 : m * d.width + g * u.height;
@@ -4450,7 +4450,7 @@ class de extends ht {
4450
4450
  if (!t) {
4451
4451
  const e = this.options.ticks.sampleSize;
4452
4452
  let n = this.ticks;
4453
- e < n.length && (n = Cs(n, e)), this._labelSizes = t = this._computeLabelSizes(n, n.length, this.options.ticks.maxTicksLimit);
4453
+ e < n.length && (n = Ms(n, e)), this._labelSizes = t = this._computeLabelSizes(n, n.length, this.options.ticks.maxTicksLimit);
4454
4454
  }
4455
4455
  return t;
4456
4456
  }
@@ -4469,7 +4469,7 @@ class de extends ht {
4469
4469
  a.push(x), r.push(v), c = Math.max(x, c), h = Math.max(v, h);
4470
4470
  }
4471
4471
  Lc(o, e);
4472
- const S = a.indexOf(c), C = r.indexOf(h), w = (A) => ({
4472
+ const S = a.indexOf(c), M = r.indexOf(h), w = (A) => ({
4473
4473
  width: a[A] || 0,
4474
4474
  height: r[A] || 0
4475
4475
  });
@@ -4477,7 +4477,7 @@ class de extends ht {
4477
4477
  first: w(0),
4478
4478
  last: w(e - 1),
4479
4479
  widest: w(S),
4480
- highest: w(C),
4480
+ highest: w(M),
4481
4481
  widths: a,
4482
4482
  heights: r
4483
4483
  };
@@ -4527,18 +4527,18 @@ class de 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 = Me(o), f = [], p = r.setContext(this.getContext()), g = p.display ? p.width : 0, m = g / 2, b = function(B) {
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 = Ce(o), f = [], p = r.setContext(this.getContext()), g = p.display ? p.width : 0, m = g / 2, b = function(B) {
4531
4531
  return Bt(n, B, g);
4532
4532
  };
4533
- let y, x, v, _, S, C, w, A, M, P, D, H;
4533
+ let y, x, v, _, S, M, w, A, C, P, D, H;
4534
4534
  if (a === "top")
4535
- y = b(this.bottom), C = this.bottom - u, A = y - m, P = b(t.top) + m, H = t.bottom;
4535
+ y = b(this.bottom), M = this.bottom - u, A = y - m, P = b(t.top) + m, H = t.bottom;
4536
4536
  else if (a === "bottom")
4537
- y = b(this.top), P = t.top, H = b(t.bottom) - m, C = y + m, A = this.top + u;
4537
+ y = b(this.top), P = t.top, H = b(t.bottom) - m, M = y + m, A = this.top + u;
4538
4538
  else if (a === "left")
4539
- y = b(this.right), S = this.right - u, w = y - m, M = b(t.left) + m, D = t.right;
4539
+ y = b(this.right), S = this.right - u, w = y - m, C = b(t.left) + m, D = t.right;
4540
4540
  else if (a === "right")
4541
- y = b(this.left), M = t.left, D = b(t.right) - m, S = y + m, w = this.left + u;
4541
+ y = b(this.left), C = t.left, D = b(t.right) - m, S = y + m, w = 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);
@@ -4546,7 +4546,7 @@ class de extends ht {
4546
4546
  const B = Object.keys(a)[0], N = a[B];
4547
4547
  y = b(this.chart.scales[B].getPixelForValue(N));
4548
4548
  }
4549
- P = t.top, H = t.bottom, C = y + m, A = C + u;
4549
+ P = t.top, H = t.bottom, M = y + m, A = M + u;
4550
4550
  } else if (e === "y") {
4551
4551
  if (a === "center")
4552
4552
  y = b((t.left + t.right) / 2);
@@ -4554,17 +4554,17 @@ class de extends ht {
4554
4554
  const B = Object.keys(a)[0], N = a[B];
4555
4555
  y = b(this.chart.scales[B].getPixelForValue(N));
4556
4556
  }
4557
- S = y - m, w = S - u, M = t.left, D = t.right;
4557
+ S = y - m, w = S - u, C = t.left, D = t.right;
4558
4558
  }
4559
4559
  const U = L(s.ticks.maxTicksLimit, d), I = Math.max(1, Math.ceil(d / U));
4560
4560
  for (x = 0; x < d; x += I) {
4561
4561
  const B = this.getContext(x), N = o.setContext(B), ct = r.setContext(B), Z = N.lineWidth, Gt = N.color, qe = ct.dash || [], qt = ct.dashOffset, xe = N.tickWidth, _e = N.tickColor, ve = N.tickBorderDash || [], Se = N.tickBorderDashOffset;
4562
- v = Dc(this, x, l), v !== void 0 && (_ = Bt(n, v, Z), c ? S = w = M = D = _ : C = A = P = H = _, f.push({
4562
+ v = Dc(this, x, l), v !== void 0 && (_ = Bt(n, v, Z), c ? S = w = C = D = _ : M = A = P = H = _, f.push({
4563
4563
  tx1: S,
4564
- ty1: C,
4564
+ ty1: M,
4565
4565
  tx2: w,
4566
4566
  ty2: A,
4567
- x1: M,
4567
+ x1: C,
4568
4568
  y1: P,
4569
4569
  x2: D,
4570
4570
  y2: H,
@@ -4581,18 +4581,18 @@ class de extends ht {
4581
4581
  return this._ticksLength = d, this._borderValue = y, f;
4582
4582
  }
4583
4583
  _computeLabelItems(t) {
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 = Me(n.grid), f = u + h, p = d ? -h : f, g = -gt(this.labelRotation), m = [];
4585
- let b, y, x, v, _, S, C, w, A, M, P, D, H = "middle";
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 = Ce(n.grid), f = u + h, p = d ? -h : f, g = -gt(this.labelRotation), m = [];
4585
+ let b, y, x, v, _, S, M, w, A, C, P, D, H = "middle";
4586
4586
  if (s === "top")
4587
- S = this.bottom - p, C = this._getXAxisLabelAlignment();
4587
+ S = this.bottom - p, M = this._getXAxisLabelAlignment();
4588
4588
  else if (s === "bottom")
4589
- S = this.top + p, C = this._getXAxisLabelAlignment();
4589
+ S = this.top + p, M = this._getXAxisLabelAlignment();
4590
4590
  else if (s === "left") {
4591
4591
  const I = this._getYAxisLabelAlignment(u);
4592
- C = I.textAlign, _ = I.x;
4592
+ M = I.textAlign, _ = I.x;
4593
4593
  } else if (s === "right") {
4594
4594
  const I = this._getYAxisLabelAlignment(u);
4595
- C = I.textAlign, _ = I.x;
4595
+ M = I.textAlign, _ = I.x;
4596
4596
  } else if (e === "x") {
4597
4597
  if (s === "center")
4598
4598
  S = (t.top + t.bottom) / 2 + f;
@@ -4600,7 +4600,7 @@ class de extends ht {
4600
4600
  const I = Object.keys(s)[0], B = s[I];
4601
4601
  S = this.chart.scales[I].getPixelForValue(B) + f;
4602
4602
  }
4603
- C = this._getXAxisLabelAlignment();
4603
+ M = this._getXAxisLabelAlignment();
4604
4604
  } else if (e === "y") {
4605
4605
  if (s === "center")
4606
4606
  _ = (t.left + t.right) / 2 - f;
@@ -4608,17 +4608,17 @@ class de extends ht {
4608
4608
  const I = Object.keys(s)[0], B = s[I];
4609
4609
  _ = this.chart.scales[I].getPixelForValue(B);
4610
4610
  }
4611
- C = this._getYAxisLabelAlignment(u).textAlign;
4611
+ M = this._getYAxisLabelAlignment(u).textAlign;
4612
4612
  }
4613
4613
  e === "y" && (l === "start" ? H = "top" : l === "end" && (H = "bottom"));
4614
4614
  const U = this._getLabelSizes();
4615
4615
  for (b = 0, y = r.length; b < y; ++b) {
4616
4616
  x = r[b], v = x.label;
4617
4617
  const I = o.setContext(this.getContext(b));
4618
- w = this.getPixelForTick(b) + o.labelOffset, A = this._resolveTickFontOptions(b), M = A.lineHeight, P = z(v) ? v.length : 1;
4618
+ w = this.getPixelForTick(b) + o.labelOffset, A = this._resolveTickFontOptions(b), C = A.lineHeight, P = z(v) ? v.length : 1;
4619
4619
  const B = P / 2, N = I.color, ct = I.textStrokeColor, Z = I.textStrokeWidth;
4620
- let Gt = C;
4621
- a ? (_ = w, C === "inner" && (b === y - 1 ? Gt = this.options.reverse ? "left" : "right" : b === 0 ? Gt = this.options.reverse ? "right" : "left" : Gt = "center"), s === "top" ? c === "near" || g !== 0 ? D = -P * M + M / 2 : c === "center" ? D = -U.highest.height / 2 - B * M + M : D = -U.highest.height + M / 2 : c === "near" || g !== 0 ? D = M / 2 : c === "center" ? D = U.highest.height / 2 - B * M : D = U.highest.height - P * M, d && (D *= -1), g !== 0 && !I.showLabelBackdrop && (_ += M / 2 * Math.sin(g))) : (S = w, D = (1 - P) * M / 2);
4620
+ let Gt = M;
4621
+ a ? (_ = w, M === "inner" && (b === y - 1 ? Gt = this.options.reverse ? "left" : "right" : b === 0 ? Gt = this.options.reverse ? "right" : "left" : Gt = "center"), s === "top" ? c === "near" || g !== 0 ? D = -P * C + C / 2 : c === "center" ? D = -U.highest.height / 2 - B * C + C : D = -U.highest.height + C / 2 : c === "near" || g !== 0 ? D = C / 2 : c === "center" ? D = U.highest.height / 2 - B * C : D = U.highest.height - P * C, d && (D *= -1), g !== 0 && !I.showLabelBackdrop && (_ += C / 2 * Math.sin(g))) : (S = w, D = (1 - P) * C / 2);
4622
4622
  let qe;
4623
4623
  if (I.showLabelBackdrop) {
4624
4624
  const qt = K(I.backdropPadding), xe = U.heights[b], _e = U.widths[b];
@@ -4631,7 +4631,7 @@ class de extends ht {
4631
4631
  ve -= xe;
4632
4632
  break;
4633
4633
  }
4634
- switch (C) {
4634
+ switch (M) {
4635
4635
  case "center":
4636
4636
  Se -= _e / 2;
4637
4637
  break;
@@ -4878,7 +4878,7 @@ function Bc(i) {
4878
4878
  }
4879
4879
  class zc {
4880
4880
  constructor() {
4881
- this.controllers = new si(Ct, "datasets", !0), this.elements = new si(ht, "elements"), this.plugins = new si(Object, "plugins"), this.scales = new si(de, "scales"), this._typedRegistries = [
4881
+ this.controllers = new si(Mt, "datasets", !0), this.elements = new si(ht, "elements"), this.plugins = new si(Object, "plugins"), this.scales = new si(de, "scales"), this._typedRegistries = [
4882
4882
  this.controllers,
4883
4883
  this.scales,
4884
4884
  this.elements
@@ -5348,7 +5348,7 @@ function sh(i, t) {
5348
5348
  } : t;
5349
5349
  }
5350
5350
  var Pt;
5351
- let Mt = (Pt = class {
5351
+ let Ct = (Pt = class {
5352
5352
  static register(...t) {
5353
5353
  ft.add(...t), Rs();
5354
5354
  }
@@ -5829,7 +5829,7 @@ let Mt = (Pt = class {
5829
5829
  }
5830
5830
  }, k(Pt, "defaults", $), k(Pt, "instances", yi), k(Pt, "overrides", Yt), k(Pt, "registry", ft), k(Pt, "version", Qc), k(Pt, "getChart", Fs), Pt);
5831
5831
  function Rs() {
5832
- return R(Mt.instances, (i) => i._plugins.invalidate());
5832
+ return R(Ct.instances, (i) => i._plugins.invalidate());
5833
5833
  }
5834
5834
  function oh(i, t, e) {
5835
5835
  const { startAngle: n, pixelMargin: s, x: o, y: a, outerRadius: r, innerRadius: l } = t;
@@ -5862,7 +5862,7 @@ function Zt(i, t, e, n) {
5862
5862
  y: n + i * Math.sin(t)
5863
5863
  };
5864
5864
  }
5865
- function Mi(i, t, e, n, s, o) {
5865
+ function Ci(i, t, e, n, s, o) {
5866
5866
  const { x: a, y: r, startAngle: l, pixelMargin: c, innerRadius: h } = t, d = Math.max(t.outerRadius + n + e - c, 0), u = h > 0 ? h + n + e + c : 0;
5867
5867
  let f = 0;
5868
5868
  const p = s - l;
@@ -5870,12 +5870,12 @@ function Mi(i, t, e, n, s, o) {
5870
5870
  const I = h > 0 ? h - n : 0, B = d > 0 ? d - n : 0, N = (I + B) / 2, ct = N !== 0 ? p * N / (N + n) : p;
5871
5871
  f = (p - ct) / 2;
5872
5872
  }
5873
- const g = Math.max(1e-3, p * d - e / j) / d, m = (p - g) / 2, b = l + m + f, y = s - m - f, { outerStart: x, outerEnd: v, innerStart: _, innerEnd: S } = rh(t, u, d, y - b), C = d - x, w = d - v, A = b + x / C, M = y - v / w, P = u + _, D = u + S, H = b + _ / P, U = y - S / D;
5873
+ const g = Math.max(1e-3, p * d - e / j) / d, m = (p - g) / 2, b = l + m + f, y = s - m - f, { outerStart: x, outerEnd: v, innerStart: _, innerEnd: S } = rh(t, u, d, y - b), M = d - x, w = d - v, A = b + x / M, C = y - v / w, P = u + _, D = u + S, H = b + _ / P, U = y - S / D;
5874
5874
  if (i.beginPath(), o) {
5875
- const I = (A + M) / 2;
5876
- if (i.arc(a, r, d, A, I), i.arc(a, r, d, I, M), v > 0) {
5877
- const Z = Zt(w, M, a, r);
5878
- i.arc(Z.x, Z.y, v, M, y + Y);
5875
+ const I = (A + C) / 2;
5876
+ if (i.arc(a, r, d, A, I), i.arc(a, r, d, I, C), v > 0) {
5877
+ const Z = Zt(w, C, a, r);
5878
+ i.arc(Z.x, Z.y, v, C, y + Y);
5879
5879
  }
5880
5880
  const B = Zt(D, y, a, r);
5881
5881
  if (i.lineTo(B.x, B.y), S > 0) {
@@ -5887,16 +5887,16 @@ function Mi(i, t, e, n, s, o) {
5887
5887
  const Z = Zt(P, H, a, r);
5888
5888
  i.arc(Z.x, Z.y, _, H + Math.PI, b - Y);
5889
5889
  }
5890
- const ct = Zt(C, b, a, r);
5890
+ const ct = Zt(M, b, a, r);
5891
5891
  if (i.lineTo(ct.x, ct.y), x > 0) {
5892
- const Z = Zt(C, A, a, r);
5892
+ const Z = Zt(M, A, a, r);
5893
5893
  i.arc(Z.x, Z.y, x, b - Y, A);
5894
5894
  }
5895
5895
  } else {
5896
5896
  i.moveTo(a, r);
5897
5897
  const I = Math.cos(A) * d + a, B = Math.sin(A) * d + r;
5898
5898
  i.lineTo(I, B);
5899
- const N = Math.cos(M) * d + a, ct = Math.sin(M) * d + r;
5899
+ const N = Math.cos(C) * d + a, ct = Math.sin(C) * d + r;
5900
5900
  i.lineTo(N, ct);
5901
5901
  }
5902
5902
  i.closePath();
@@ -5905,12 +5905,12 @@ function lh(i, t, e, n, s) {
5905
5905
  const { fullCircles: o, startAngle: a, circumference: r } = t;
5906
5906
  let l = t.endAngle;
5907
5907
  if (o) {
5908
- Mi(i, t, e, n, l, s);
5908
+ Ci(i, t, e, n, l, s);
5909
5909
  for (let c = 0; c < o; ++c)
5910
5910
  i.fill();
5911
5911
  isNaN(r) || (l = a + (r % W || W));
5912
5912
  }
5913
- return Mi(i, t, e, n, l, s), i.fill(), l;
5913
+ return Ci(i, t, e, n, l, s), i.fill(), l;
5914
5914
  }
5915
5915
  function ch(i, t, e, n, s) {
5916
5916
  const { fullCircles: o, startAngle: a, circumference: r, options: l } = t, { borderWidth: c, borderJoinStyle: h, borderDash: d, borderDashOffset: u } = l, f = l.borderAlign === "inner";
@@ -5919,12 +5919,12 @@ function ch(i, t, e, n, s) {
5919
5919
  i.setLineDash(d || []), i.lineDashOffset = u, f ? (i.lineWidth = c * 2, i.lineJoin = h || "round") : (i.lineWidth = c, i.lineJoin = h || "bevel");
5920
5920
  let p = t.endAngle;
5921
5921
  if (o) {
5922
- Mi(i, t, e, n, p, s);
5922
+ Ci(i, t, e, n, p, s);
5923
5923
  for (let g = 0; g < o; ++g)
5924
5924
  i.stroke();
5925
5925
  isNaN(r) || (p = a + (r % W || W));
5926
5926
  }
5927
- f && oh(i, t, p), o || (Mi(i, t, e, n, p, s), i.stroke());
5927
+ f && oh(i, t, p), o || (Ci(i, t, e, n, p, s), i.stroke());
5928
5928
  }
5929
5929
  class Qt extends ht {
5930
5930
  constructor(e) {
@@ -6389,7 +6389,7 @@ function ln(i, t, e, n) {
6389
6389
  end: o
6390
6390
  };
6391
6391
  }
6392
- function Ch(i, t) {
6392
+ function Mh(i, t) {
6393
6393
  const { x: e = null, y: n = null } = i || {}, s = t.points, o = [];
6394
6394
  return t.segments.forEach(({ start: a, end: r }) => {
6395
6395
  r = Fn(a, r, s);
@@ -6422,7 +6422,7 @@ function Bs(i, t, e, n) {
6422
6422
  }
6423
6423
  function sa(i, t) {
6424
6424
  let e = [], n = !1;
6425
- return z(i) ? (n = !0, e = i) : e = Ch(i, t), e.length ? new pt({
6425
+ return z(i) ? (n = !0, e = i) : e = Mh(i, t), e.length ? new pt({
6426
6426
  points: e,
6427
6427
  options: {
6428
6428
  tension: 0
@@ -6434,7 +6434,7 @@ function sa(i, t) {
6434
6434
  function zs(i) {
6435
6435
  return i && i.fill !== !1;
6436
6436
  }
6437
- function Mh(i, t, e) {
6437
+ function Ch(i, t, e) {
6438
6438
  let s = i[t].fill;
6439
6439
  const o = [
6440
6440
  t
@@ -6685,7 +6685,7 @@ var jh = {
6685
6685
  line: r
6686
6686
  }), o.$filler = l, s.push(l);
6687
6687
  for (a = 0; a < n; ++a)
6688
- l = s[a], !(!l || l.fill === !1) && (l.fill = Mh(s, a, e.propagate));
6688
+ l = s[a], !(!l || l.fill === !1) && (l.fill = Ch(s, a, e.propagate));
6689
6689
  },
6690
6690
  beforeDraw(i, t, e) {
6691
6691
  const n = e.drawTime === "beforeDraw", s = i.getSortedVisibleDatasetMetas(), o = i.chartArea;
@@ -6812,32 +6812,32 @@ class js extends ht {
6812
6812
  const { options: t, columnSizes: e, lineWidths: n, ctx: s } = this, { align: o, labels: a } = t, r = $.color, l = te(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
- const { boxWidth: p, boxHeight: g, itemHeight: m } = Vs(a, d), b = function(S, C, w) {
6815
+ const { boxWidth: p, boxHeight: g, itemHeight: m } = Vs(a, d), b = function(S, M, w) {
6816
6816
  if (isNaN(p) || p <= 0 || isNaN(g) || g < 0)
6817
6817
  return;
6818
6818
  s.save();
6819
6819
  const A = L(w.lineWidth, 1);
6820
6820
  if (s.fillStyle = L(w.fillStyle, r), s.lineCap = L(w.lineCap, "butt"), s.lineDashOffset = L(w.lineDashOffset, 0), s.lineJoin = L(w.lineJoin, "miter"), s.lineWidth = A, s.strokeStyle = L(w.strokeStyle, r), s.setLineDash(L(w.lineDash, [])), a.usePointStyle) {
6821
- const M = {
6821
+ const C = {
6822
6822
  radius: g * Math.SQRT2 / 2,
6823
6823
  pointStyle: w.pointStyle,
6824
6824
  rotation: w.rotation,
6825
6825
  borderWidth: A
6826
- }, P = l.xPlus(S, p / 2), D = C + u;
6827
- Lo(s, M, P, D, a.pointStyleWidth && p);
6826
+ }, P = l.xPlus(S, p / 2), D = M + u;
6827
+ Lo(s, C, P, D, a.pointStyleWidth && p);
6828
6828
  } else {
6829
- const M = C + Math.max((d - g) / 2, 0), P = l.leftForLtr(S, p), D = Vt(w.borderRadius);
6829
+ const C = M + Math.max((d - g) / 2, 0), P = l.leftForLtr(S, p), D = Vt(w.borderRadius);
6830
6830
  s.beginPath(), Object.values(D).some((H) => H !== 0) ? $e(s, {
6831
6831
  x: P,
6832
- y: M,
6832
+ y: C,
6833
6833
  w: p,
6834
6834
  h: g,
6835
6835
  radius: D
6836
- }) : s.rect(P, M, p, g), s.fill(), A !== 0 && s.stroke();
6836
+ }) : s.rect(P, C, p, g), s.fill(), A !== 0 && s.stroke();
6837
6837
  }
6838
6838
  s.restore();
6839
- }, y = function(S, C, w) {
6840
- Xt(s, w.text, S, C + m / 2, c, {
6839
+ }, y = function(S, M, w) {
6840
+ Xt(s, w.text, S, M + m / 2, c, {
6841
6841
  strikethrough: w.hidden,
6842
6842
  textAlign: l.textAlign(w.textAlign)
6843
6843
  });
@@ -6852,14 +6852,14 @@ class js extends ht {
6852
6852
  line: 0
6853
6853
  }, zo(this.ctx, t.textDirection);
6854
6854
  const _ = m + h;
6855
- this.legendItems.forEach((S, C) => {
6855
+ this.legendItems.forEach((S, M) => {
6856
6856
  s.strokeStyle = S.fontColor, s.fillStyle = S.fontColor;
6857
- const w = s.measureText(S.text).width, A = l.textAlign(S.textAlign || (S.textAlign = a.textAlign)), M = p + u + w;
6857
+ const w = s.measureText(S.text).width, A = l.textAlign(S.textAlign || (S.textAlign = a.textAlign)), C = p + u + w;
6858
6858
  let P = f.x, D = f.y;
6859
- l.setWidth(this.width), x ? C > 0 && P + M + h > this.right && (D = f.y += _, f.line++, P = f.x = J(o, this.left + h, this.right - n[f.line])) : C > 0 && D + _ > this.bottom && (P = f.x = P + e[f.line].width + h, f.line++, D = f.y = J(o, this.top + v + h, this.bottom - e[f.line].height));
6859
+ l.setWidth(this.width), x ? M > 0 && P + C + h > this.right && (D = f.y += _, f.line++, P = f.x = J(o, this.left + h, this.right - n[f.line])) : M > 0 && D + _ > this.bottom && (P = f.x = P + e[f.line].width + h, f.line++, D = f.y = J(o, this.top + v + h, this.bottom - e[f.line].height));
6860
6860
  const H = l.x(P);
6861
- if (b(H, D, S), P = vr(A, P + p + u, x ? P + M : this.right, t.rtl), y(l.x(P), D, S), x)
6862
- f.x += M + h;
6861
+ if (b(H, D, S), P = vr(A, P + p + u, x ? P + C : this.right, t.rtl), y(l.x(P), D, S), x)
6862
+ f.x += C + h;
6863
6863
  else if (typeof S.text != "string") {
6864
6864
  const U = c.lineHeight;
6865
6865
  f.y += aa(S, U) + h;
@@ -7447,9 +7447,9 @@ class cn extends ht {
7447
7447
  const p = te(n.rtl, this.x, this.width), g = function(w) {
7448
7448
  e.fillText(w, p.x(t.x + f), t.y + u / 2), t.y += u + o;
7449
7449
  }, m = p.textAlign(a);
7450
- let b, y, x, v, _, S, C;
7450
+ let b, y, x, v, _, S, M;
7451
7451
  for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = ri(this, m, n), e.fillStyle = n.bodyColor, R(this.beforeBody, g), f = r && m !== "right" ? a === "center" ? c / 2 + h : c + 2 + h : 0, v = 0, S = s.length; v < S; ++v) {
7452
- for (b = s[v], y = this.labelTextColors[v], e.fillStyle = y, R(b.before, g), x = b.lines, r && x.length && (this._drawColorBox(e, t, v, p, n), u = Math.max(d.lineHeight, l)), _ = 0, C = x.length; _ < C; ++_)
7452
+ for (b = s[v], y = this.labelTextColors[v], e.fillStyle = y, R(b.before, g), x = b.lines, r && x.length && (this._drawColorBox(e, t, v, p, n), u = Math.max(d.lineHeight, l)), _ = 0, M = x.length; _ < M; ++_)
7453
7453
  g(x[_]), u = d.lineHeight;
7454
7454
  R(b.after, g);
7455
7455
  }
@@ -7733,7 +7733,7 @@ k(se, "id", "category"), k(se, "defaults", {
7733
7733
  });
7734
7734
  function ad(i, t) {
7735
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, p = h - 1, { min: g, max: m } = t, b = !O(a), y = !O(r), x = !O(c), v = (m - g) / (d + 1);
7736
- let _ = Yn((m - g) / p / f) * f, S, C, w, A;
7736
+ let _ = Yn((m - g) / p / f) * f, S, M, w, A;
7737
7737
  if (_ < 1e-14 && !b && !y)
7738
7738
  return [
7739
7739
  {
@@ -7743,14 +7743,14 @@ function ad(i, t) {
7743
7743
  value: m
7744
7744
  }
7745
7745
  ];
7746
- A = Math.ceil(m / _) - Math.floor(g / _), A > p && (_ = Yn(A * _ / p / f) * f), O(l) || (S = Math.pow(10, l), _ = Math.ceil(_ * S) / S), s === "ticks" ? (C = Math.floor(g / _) * _, w = Math.ceil(m / _) * _) : (C = g, w = m), b && y && o && fr((r - a) / o, _ / 1e3) ? (A = Math.round(Math.min((r - a) / _, h)), _ = (r - a) / A, C = a, w = r) : x ? (C = b ? a : C, w = y ? r : w, A = c - 1, _ = (w - C) / A) : (A = (w - C) / _, Re(A, Math.round(A), _ / 1e3) ? A = Math.round(A) : A = Math.ceil(A));
7747
- const M = Math.max(Xn(_), Xn(C));
7748
- S = Math.pow(10, O(l) ? M : l), C = Math.round(C * S) / S, w = Math.round(w * S) / S;
7746
+ A = Math.ceil(m / _) - Math.floor(g / _), A > p && (_ = Yn(A * _ / p / f) * f), O(l) || (S = Math.pow(10, l), _ = Math.ceil(_ * S) / S), s === "ticks" ? (M = Math.floor(g / _) * _, w = Math.ceil(m / _) * _) : (M = g, w = m), b && y && o && fr((r - a) / o, _ / 1e3) ? (A = Math.round(Math.min((r - a) / _, h)), _ = (r - a) / A, M = a, w = r) : x ? (M = b ? a : M, w = y ? r : w, A = c - 1, _ = (w - M) / A) : (A = (w - M) / _, Re(A, Math.round(A), _ / 1e3) ? A = Math.round(A) : A = Math.ceil(A));
7747
+ const C = Math.max(Xn(_), Xn(M));
7748
+ S = Math.pow(10, O(l) ? C : l), M = Math.round(M * S) / S, w = Math.round(w * S) / S;
7749
7749
  let P = 0;
7750
- for (b && (u && C !== a ? (e.push({
7750
+ for (b && (u && M !== a ? (e.push({
7751
7751
  value: a
7752
- }), C < a && P++, Re(Math.round((C + P * _) * S) / S, a, Ks(a, v, i)) && P++) : C < a && P++); P < A; ++P) {
7753
- const D = Math.round((C + P * _) * S) / S;
7752
+ }), M < a && P++, Re(Math.round((M + P * _) * S) / S, a, Ks(a, v, i)) && P++) : M < a && P++); P < A; ++P) {
7753
+ const D = Math.round((M + P * _) * S) / S;
7754
7754
  if (y && D > r)
7755
7755
  break;
7756
7756
  e.push({
@@ -7825,7 +7825,7 @@ class hn extends de {
7825
7825
  this._startValue = e, this._endValue = n, this._valueRange = n - e;
7826
7826
  }
7827
7827
  getLabelForValue(t) {
7828
- return Mn(t, this.chart.options.locale, this.options.ticks.format);
7828
+ return Cn(t, this.chart.options.locale, this.options.ticks.format);
7829
7829
  }
7830
7830
  }
7831
7831
  class oe extends hn {
@@ -8417,7 +8417,7 @@ class Pi extends de {
8417
8417
  return this._cache.labels = this._normalized ? t : this.normalize(t);
8418
8418
  }
8419
8419
  normalize(t) {
8420
- return Mo(t.sort(Js));
8420
+ return Co(t.sort(Js));
8421
8421
  }
8422
8422
  }
8423
8423
  k(Pi, "id", "time"), k(Pi, "defaults", {
@@ -8530,11 +8530,11 @@ const ha = {
8530
8530
  function Jt(i) {
8531
8531
  return bo(i) ? Ji(i) : i;
8532
8532
  }
8533
- function Cd(i) {
8533
+ function Md(i) {
8534
8534
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : i;
8535
8535
  return bo(t) ? new Proxy(i, {}) : i;
8536
8536
  }
8537
- function Md(i, t) {
8537
+ function Cd(i, t) {
8538
8538
  const e = i.options;
8539
8539
  e && t && Object.assign(e, t);
8540
8540
  }
@@ -8568,8 +8568,8 @@ const Ad = Ft({
8568
8568
  const o = () => {
8569
8569
  if (!n.value)
8570
8570
  return;
8571
- const { type: l, data: c, options: h, plugins: d, datasetIdKey: u } = i, f = Pd(c, u), p = Cd(f, c);
8572
- s.value = new Mt(n.value, {
8571
+ const { type: l, data: c, options: h, plugins: d, datasetIdKey: u } = i, f = Pd(c, u), p = Md(f, c);
8572
+ s.value = new Ct(n.value, {
8573
8573
  type: l,
8574
8574
  data: p,
8575
8575
  options: {
@@ -8594,7 +8594,7 @@ const Ad = Ft({
8594
8594
  let g = !1;
8595
8595
  if (h) {
8596
8596
  const m = Jt(h), b = Jt(u);
8597
- m && m !== b && (Md(p, m), g = !0);
8597
+ m && m !== b && (Cd(p, m), g = !0);
8598
8598
  }
8599
8599
  if (d) {
8600
8600
  const m = Jt(d.labels), b = Jt(f.labels), y = Jt(d.datasets), x = Jt(f.datasets);
@@ -8609,7 +8609,7 @@ const Ad = Ft({
8609
8609
  }
8610
8610
  });
8611
8611
  function Ge(i, t) {
8612
- return Mt.register(t), Ft({
8612
+ return Ct.register(t), Ft({
8613
8613
  props: ha,
8614
8614
  setup(e, n) {
8615
8615
  let { expose: s } = n;
@@ -8814,19 +8814,19 @@ function Ud() {
8814
8814
  }
8815
8815
  function o(g, m, b, y, x, v) {
8816
8816
  const _ = i.value;
8817
- return g.map((S, C) => ({
8817
+ return g.map((S, M) => ({
8818
8818
  borderColor: function(w) {
8819
- return b ? "#00000000" : r(C, w.index, y, v);
8819
+ return b ? "#00000000" : r(M, w.index, y, v);
8820
8820
  },
8821
8821
  backgroundColor: function(w) {
8822
- return l(C, w.index, b, y, x, v);
8822
+ return l(M, w.index, b, y, x, v);
8823
8823
  },
8824
8824
  borderWidth: function() {
8825
8825
  return b ? 1 : _;
8826
8826
  },
8827
8827
  data: S.data,
8828
8828
  label: S.label,
8829
- stack: `Stack ${m ? S.stack : C}`
8829
+ stack: `Stack ${m ? S.stack : M}`
8830
8830
  }));
8831
8831
  }
8832
8832
  function a(g, m, b, y, x) {
@@ -9245,7 +9245,7 @@ const Qd = { class: "container" }, tu = { class: "main" }, eu = /* @__PURE__ */
9245
9245
  },
9246
9246
  setup(i) {
9247
9247
  const t = i;
9248
- Mt.register(
9248
+ Ct.register(
9249
9249
  fe,
9250
9250
  ge,
9251
9251
  ue,
@@ -9253,7 +9253,7 @@ const Qd = { class: "container" }, tu = { class: "main" }, eu = /* @__PURE__ */
9253
9253
  se,
9254
9254
  oe
9255
9255
  );
9256
- const { colourSets: e, patternsStandardList: n } = be(), s = G(null), o = G(!1), a = F(() => t.newPatternsOrder.length !== n.length ? e[t.colourSet] : t.newPatternsOrder.map((M) => e[t.colourSet][M])), r = F(() => t.newPatternsOrder.length !== n.length ? n : t.newPatternsOrder.map((M) => n[M])), l = F(() => t.disableAccessibility), c = F(() => t.enableHoverFeature), {
9256
+ const { colourSets: e, patternsStandardList: n } = be(), s = G(null), o = G(!1), a = F(() => t.newPatternsOrder.length !== n.length ? e[t.colourSet] : t.newPatternsOrder.map((C) => e[t.colourSet][C])), r = F(() => t.newPatternsOrder.length !== n.length ? n : t.newPatternsOrder.map((C) => n[C])), l = F(() => t.disableAccessibility), c = F(() => t.enableHoverFeature), {
9257
9257
  onHoverIndex: h,
9258
9258
  barChartRef: d,
9259
9259
  reloadChart: u,
@@ -9261,9 +9261,9 @@ const Qd = { class: "container" }, tu = { class: "main" }, eu = /* @__PURE__ */
9261
9261
  getStackedDatasets: p,
9262
9262
  privateGetHtmlLegendPlugin: g
9263
9263
  } = Ud(), m = F(() => {
9264
- const M = C(v.value);
9264
+ const C = M(v.value);
9265
9265
  return x(), {
9266
- labels: M,
9266
+ labels: C,
9267
9267
  datasets: p(
9268
9268
  t.datasets.map((P, D) => ({
9269
9269
  data: _(D, v.value),
@@ -9282,24 +9282,24 @@ const Qd = { class: "container" }, tu = { class: "main" }, eu = /* @__PURE__ */
9282
9282
  const x = () => {
9283
9283
  b = t.tooltipFirstLineLabel, y = t.tooltipSecondLineLabel;
9284
9284
  }, v = F(() => {
9285
- const M = t.labels;
9286
- if (M.includes("other")) {
9287
- const P = M.indexOf("other");
9285
+ const C = t.labels;
9286
+ if (C.includes("other")) {
9287
+ const P = C.indexOf("other");
9288
9288
  if (t.datasets[0].data[P].rate + "" == "0" && t.datasets[1].data[P].rate + "" == "0")
9289
9289
  return P;
9290
9290
  }
9291
9291
  return null;
9292
- }), _ = (M, P, D = !1) => {
9293
- const H = Object.assign([], t.datasets[M].data);
9292
+ }), _ = (C, P, D = !1) => {
9293
+ const H = Object.assign([], t.datasets[C].data);
9294
9294
  return P && v.value && H.splice(v.value, 1), H.map(
9295
9295
  (U) => t.unit === "%" ? U.rate : U.amount
9296
9296
  );
9297
- }, S = (M) => {
9298
- const P = M.tooltip.dataPoints[0].datasetIndex, D = M.tooltip.dataPoints[0].dataIndex, H = M.tooltip.body[0].lines[0].split(":")[1], U = t.datasets[P].data[D], I = U.rate ? parseFloat(H.replace(",", ".")).toFixed(2) + "% " : "", B = U.amountUnit ? U.amountUnit : "", N = U.amount ? tt(U.amount) : "";
9297
+ }, S = (C) => {
9298
+ const P = C.tooltip.dataPoints[0].datasetIndex, D = C.tooltip.dataPoints[0].dataIndex, H = C.tooltip.body[0].lines[0].split(":")[1], U = t.datasets[P].data[D], I = U.rate ? parseFloat(H.replace(",", ".")).toFixed(2) + "% " : "", B = U.amountUnit ? U.amountUnit : "", N = U.amount ? tt(U.amount) : "";
9299
9299
  return I + (I && N ? "/ " : "") + N + B;
9300
- }, C = (M) => {
9300
+ }, M = (C) => {
9301
9301
  const P = Object.assign([], t.labels);
9302
- return M && P.splice(M, 1), P.map((D) => D);
9302
+ return C && P.splice(C, 1), P.map((D) => D);
9303
9303
  }, w = F(() => ({
9304
9304
  // eslint-disable-next-line
9305
9305
  onHover: t.enableHoverFeature ? f() : () => {
@@ -9309,6 +9309,8 @@ const Qd = { class: "container" }, tu = { class: "main" }, eu = /* @__PURE__ */
9309
9309
  borderSkipped: !1
9310
9310
  }
9311
9311
  },
9312
+ maxBarThickness: 64,
9313
+ categoryPercentage: 0.6,
9312
9314
  plugins: {
9313
9315
  responsive: !0,
9314
9316
  maintainAspectRatio: !1,
@@ -9324,11 +9326,11 @@ const Qd = { class: "container" }, tu = { class: "main" }, eu = /* @__PURE__ */
9324
9326
  tooltip: {
9325
9327
  enabled: !1,
9326
9328
  position: "nearest",
9327
- external: function(M) {
9329
+ external: function(C) {
9328
9330
  var D;
9329
- const P = ((D = M.tooltip.dataPoints) == null ? void 0 : D[0].dataIndex) || 0;
9331
+ const P = ((D = C.tooltip.dataPoints) == null ? void 0 : D[0].dataIndex) || 0;
9330
9332
  !t.labels[P] || t.labels[P] === "" || new pe().createTooltip(
9331
- M,
9333
+ C,
9332
9334
  S,
9333
9335
  {
9334
9336
  chartType: me.BAR_CHART,
@@ -9357,8 +9359,8 @@ const Qd = { class: "container" }, tu = { class: "main" }, eu = /* @__PURE__ */
9357
9359
  text: t.yAxisTitle
9358
9360
  },
9359
9361
  ticks: {
9360
- callback: function(M) {
9361
- return t.unit === "%" ? un(M, t.unit) : tt(M) + " " + t.unit;
9362
+ callback: function(C) {
9363
+ return t.unit === "%" ? un(C, t.unit) : tt(C) + " " + t.unit;
9362
9364
  }
9363
9365
  }
9364
9366
  }
@@ -9379,7 +9381,7 @@ const Qd = { class: "container" }, tu = { class: "main" }, eu = /* @__PURE__ */
9379
9381
  u();
9380
9382
  },
9381
9383
  { deep: !0 }
9382
- ), (M, P) => (lt(), re("div", Qd, [
9384
+ ), (C, P) => (lt(), re("div", Qd, [
9383
9385
  st("div", tu, [
9384
9386
  m.value ? (lt(), le($t(fa), {
9385
9387
  key: 0,
@@ -9405,7 +9407,7 @@ const ye = (i, t) => {
9405
9407
  for (const [n, s] of t)
9406
9408
  e[n] = s;
9407
9409
  return e;
9408
- }, fn = /* @__PURE__ */ ye(eu, [["__scopeId", "data-v-98d7a612"]]);
9410
+ }, fn = /* @__PURE__ */ ye(eu, [["__scopeId", "data-v-aaa6e255"]]);
9409
9411
  fn.install = (i) => {
9410
9412
  i.component("BarChart", fn);
9411
9413
  };
@@ -9586,7 +9588,7 @@ const nu = { class: "container" }, su = { class: "main" }, ou = /* @__PURE__ */
9586
9588
  },
9587
9589
  setup(i) {
9588
9590
  const t = i;
9589
- Mt.register(fe, ge, ue, Qt);
9591
+ Ct.register(fe, ge, ue, Qt);
9590
9592
  const { colourSets: e, patternsStandardList: n } = be(), {
9591
9593
  onHoverIndex: s,
9592
9594
  doughnutRef: o,
@@ -9619,10 +9621,10 @@ const nu = { class: "container" }, su = { class: "main" }, ou = /* @__PURE__ */
9619
9621
  }
9620
9622
  ]
9621
9623
  })), b = (w) => {
9622
- const A = w.tooltip.dataPoints[0].dataIndex, M = c(
9624
+ const A = w.tooltip.dataPoints[0].dataIndex, C = c(
9623
9625
  t.data,
9624
9626
  t.maxValues
9625
- )[A], P = tt(M.rate), D = tt(M.value), H = M.unit || "";
9627
+ )[A], P = tt(C.rate), D = tt(C.value), H = C.unit || "";
9626
9628
  return `${D}${H} (${P})%`;
9627
9629
  };
9628
9630
  function y() {
@@ -9652,9 +9654,9 @@ const nu = { class: "container" }, su = { class: "main" }, ou = /* @__PURE__ */
9652
9654
  },
9653
9655
  tooltip: {
9654
9656
  enabled: !1,
9655
- external: function(M) {
9657
+ external: function(C) {
9656
9658
  new pe().createTooltip(
9657
- M,
9659
+ C,
9658
9660
  b,
9659
9661
  {
9660
9662
  chartType: me.DOUGHNUT
@@ -9675,7 +9677,7 @@ const nu = { class: "container" }, su = { class: "main" }, ou = /* @__PURE__ */
9675
9677
  }), v = {
9676
9678
  data: t.data,
9677
9679
  labels: t.labels
9678
- }, _ = F(() => t.disableAccessibility), S = F(() => t.enableHoverFeature), C = F(
9680
+ }, _ = F(() => t.disableAccessibility), S = F(() => t.enableHoverFeature), M = F(
9679
9681
  () => r(
9680
9682
  f,
9681
9683
  u,
@@ -9717,7 +9719,7 @@ const nu = { class: "container" }, su = { class: "main" }, ou = /* @__PURE__ */
9717
9719
  id: i.chartId,
9718
9720
  data: m.value,
9719
9721
  options: x.value,
9720
- plugins: C.value,
9722
+ plugins: M.value,
9721
9723
  "max-values": i.maxValues,
9722
9724
  class: ce(i.cssClasses),
9723
9725
  style: Ut([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
@@ -9828,6 +9830,20 @@ const au = { class: "container" }, ru = { class: "main" }, lu = /* @__PURE__ */
9828
9830
  type: String,
9829
9831
  default: null
9830
9832
  },
9833
+ /**
9834
+ * Adjustment used when calculating the minimum data value.
9835
+ */
9836
+ suggestedMin: {
9837
+ type: Number,
9838
+ default: void 0
9839
+ },
9840
+ /**
9841
+ * Adjustment used when calculating the maximum data value.
9842
+ */
9843
+ suggestedMax: {
9844
+ type: Number,
9845
+ default: void 0
9846
+ },
9831
9847
  /**
9832
9848
  * Add custom CSS classes to the <canvas> element
9833
9849
  */
@@ -9853,7 +9869,7 @@ const au = { class: "container" }, ru = { class: "main" }, lu = /* @__PURE__ */
9853
9869
  },
9854
9870
  setup(i) {
9855
9871
  const t = i;
9856
- Mt.register(
9872
+ Ct.register(
9857
9873
  fe,
9858
9874
  ge,
9859
9875
  ue,
@@ -9906,8 +9922,8 @@ const au = { class: "container" }, ru = { class: "main" }, lu = /* @__PURE__ */
9906
9922
  b,
9907
9923
  _.datasetIndex
9908
9924
  );
9909
- let C;
9910
- b.value ? C = f(y, _) : C = zn(_), C.style.boxSizing = "border-box", S.style.marginRight = "10px", S.appendChild(C), S.appendChild(Fi(_)), x.appendChild(S);
9925
+ let M;
9926
+ b.value ? M = f(y, _) : M = zn(_), M.style.boxSizing = "border-box", S.style.marginRight = "10px", S.appendChild(M), S.appendChild(Fi(_)), x.appendChild(S);
9911
9927
  });
9912
9928
  }
9913
9929
  }
@@ -9962,6 +9978,8 @@ const au = { class: "container" }, ru = { class: "main" }, lu = /* @__PURE__ */
9962
9978
  display: t.yAxisTitle !== null,
9963
9979
  text: t.yAxisTitle
9964
9980
  },
9981
+ suggestedMin: t.suggestedMin,
9982
+ suggestedMax: t.suggestedMax,
9965
9983
  position: "left",
9966
9984
  grid: {
9967
9985
  drawOnChartArea: !0
@@ -9995,7 +10013,7 @@ const au = { class: "container" }, ru = { class: "main" }, lu = /* @__PURE__ */
9995
10013
  ]));
9996
10014
  }
9997
10015
  });
9998
- const pn = /* @__PURE__ */ ye(lu, [["__scopeId", "data-v-a49082e5"]]);
10016
+ const pn = /* @__PURE__ */ ye(lu, [["__scopeId", "data-v-a3d5cf61"]]);
9999
10017
  pn.install = (i) => {
10000
10018
  i.component("LineChart", pn);
10001
10019
  };
@@ -10122,7 +10140,7 @@ const uu = { class: "container" }, fu = /* @__PURE__ */ Ft({
10122
10140
  },
10123
10141
  setup(i) {
10124
10142
  const t = i;
10125
- Mt.register(
10143
+ Ct.register(
10126
10144
  fe,
10127
10145
  ge,
10128
10146
  ue,
@@ -10591,7 +10609,7 @@ const pu = { class: "container" }, mu = { class: "main" }, bu = /* @__PURE__ */
10591
10609
  },
10592
10610
  setup(i) {
10593
10611
  const t = i;
10594
- Mt.register(
10612
+ Ct.register(
10595
10613
  fe,
10596
10614
  ge,
10597
10615
  ue,
@@ -10617,9 +10635,11 @@ const pu = { class: "container" }, mu = { class: "main" }, bu = /* @__PURE__ */
10617
10635
  const y = b.tooltip.dataPoints[0].datasetIndex, x = b.tooltip.dataPoints[0].dataIndex, v = l.value[y].data[x], _ = l.value[y].type === "bar" ? t.barUnit : t.lineUnit;
10618
10636
  return (_ === "%" ? parseFloat(v.toString().replace(",", ".")).toFixed(2) : tt(v)) + _;
10619
10637
  }, p = () => Object.assign([], t.labels).map((y) => y), g = F(() => ({
10620
- type: "scatter",
10638
+ type: "bar",
10621
10639
  responsive: !0,
10622
10640
  maintainAspectRatio: !0,
10641
+ maxBarThickness: 64,
10642
+ categoryPercentage: 0.6,
10623
10643
  elements: {
10624
10644
  bar: {
10625
10645
  borderSkipped: !1
@@ -10725,7 +10745,7 @@ const pu = { class: "container" }, mu = { class: "main" }, bu = /* @__PURE__ */
10725
10745
  ]));
10726
10746
  }
10727
10747
  });
10728
- const lo = /* @__PURE__ */ ye(bu, [["__scopeId", "data-v-2dbee7d5"]]);
10748
+ const lo = /* @__PURE__ */ ye(bu, [["__scopeId", "data-v-6a9cb065"]]);
10729
10749
  lo.install = (i) => {
10730
10750
  i.component("MixedBarLineChart", lo);
10731
10751
  };
@@ -10838,14 +10858,14 @@ function xu(i, t, e, n, s) {
10838
10858
  vy: n
10839
10859
  };
10840
10860
  }
10841
- var _u = 0, Sa = 1, wa = 2, ka = 4, Ca = 8;
10861
+ var _u = 0, Sa = 1, wa = 2, ka = 4, Ma = 8;
10842
10862
  function ci(i, t, e) {
10843
10863
  var n = _u;
10844
- return i < e.left ? n |= Sa : i > e.right && (n |= wa), t < e.top ? n |= Ca : t > e.bottom && (n |= ka), n;
10864
+ return i < e.left ? n |= Sa : i > e.right && (n |= wa), t < e.top ? n |= Ma : t > e.bottom && (n |= ka), n;
10845
10865
  }
10846
10866
  function vu(i, t) {
10847
10867
  for (var e = i.x0, n = i.y0, s = i.x1, o = i.y1, a = ci(e, n, t), r = ci(s, o, t), l, c, h; !(!(a | r) || a & r); )
10848
- l = a || r, l & Ca ? (c = e + (s - e) * (t.top - n) / (o - n), h = t.top) : l & ka ? (c = e + (s - e) * (t.bottom - n) / (o - n), h = t.bottom) : l & wa ? (h = n + (o - n) * (t.right - e) / (s - e), c = t.right) : l & Sa && (h = n + (o - n) * (t.left - e) / (s - e), c = t.left), l === a ? (e = c, n = h, a = ci(e, n, t)) : (s = c, o = h, r = ci(s, o, t));
10868
+ l = a || r, l & Ma ? (c = e + (s - e) * (t.top - n) / (o - n), h = t.top) : l & ka ? (c = e + (s - e) * (t.bottom - n) / (o - n), h = t.bottom) : l & wa ? (h = n + (o - n) * (t.right - e) / (s - e), c = t.right) : l & Sa && (h = n + (o - n) * (t.left - e) / (s - e), c = t.left), l === a ? (e = c, n = h, a = ci(e, n, t)) : (s = c, o = h, r = ci(s, o, t));
10849
10869
  return {
10850
10870
  x0: e,
10851
10871
  x1: s,
@@ -10932,7 +10952,7 @@ function wu(i, t) {
10932
10952
  function ku(i) {
10933
10953
  return i instanceof Qt ? di.arc : i instanceof Tt ? di.point : i instanceof ee ? di.bar : di.fallback;
10934
10954
  }
10935
- function Cu(i, t, e, n, s, o) {
10955
+ function Mu(i, t, e, n, s, o) {
10936
10956
  var a = Math.PI / 2;
10937
10957
  if (o) {
10938
10958
  var r = Math.min(o, s / 2, n / 2), l = t + r, c = e + r, h = t + n - r, d = e + s - r;
@@ -10940,9 +10960,9 @@ function Cu(i, t, e, n, s, o) {
10940
10960
  } else
10941
10961
  i.rect(t, e, n, s);
10942
10962
  }
10943
- function Mu(i, t, e) {
10963
+ function Cu(i, t, e) {
10944
10964
  var n = e.backgroundColor, s = e.borderColor, o = e.borderWidth;
10945
- !n && (!s || !o) || (i.beginPath(), Cu(
10965
+ !n && (!s || !o) || (i.beginPath(), Mu(
10946
10966
  i,
10947
10967
  kt(t.x) + o / 2,
10948
10968
  kt(t.y) + o / 2,
@@ -10976,11 +10996,11 @@ function Du(i, t, e, n) {
10976
10996
  y: e.y + e.h * u
10977
10997
  });
10978
10998
  }
10979
- var Ma = function(i, t, e, n) {
10999
+ var Ca = function(i, t, e, n) {
10980
11000
  var s = this;
10981
11001
  s._config = i, s._index = n, s._model = null, s._rects = null, s._ctx = t, s._el = e;
10982
11002
  };
10983
- bt(Ma.prototype, {
11003
+ bt(Ca.prototype, {
10984
11004
  /**
10985
11005
  * @private
10986
11006
  */
@@ -11037,7 +11057,7 @@ bt(Ma.prototype, {
11037
11057
  a.top,
11038
11058
  a.right - a.left,
11039
11059
  a.bottom - a.top
11040
- ), n.clip()), n.globalAlpha = ze.bound(0, s.opacity, 1), n.translate(kt(t.x), kt(t.y)), n.rotate(s.rotation), Mu(n, o.frame, s), Du(n, s.lines, o.text, s), n.restore());
11060
+ ), n.clip()), n.globalAlpha = ze.bound(0, s.opacity, 1), n.translate(kt(t.x), kt(t.y)), n.rotate(s.rotation), Cu(n, o.frame, s), Du(n, s.lines, o.text, s), n.restore());
11041
11061
  }
11042
11062
  });
11043
11063
  var Lu = Number.MIN_SAFE_INTEGER || -9007199254740991, Tu = Number.MAX_SAFE_INTEGER || 9007199254740991;
@@ -11290,7 +11310,7 @@ var Hu = {
11290
11310
  for (h.save(), d = 0, f = c.length; d < f; ++d)
11291
11311
  if (b = c[d], b[it] = [], a && b && i.getDataVisibility(d) && !b.skip)
11292
11312
  for (u = 0, p = l.labels.length; u < p; ++u)
11293
- g = l.labels[u], m = g._key, y = new Ma(g, h, b, d), y.$groups = {
11313
+ g = l.labels[u], m = g._key, y = new Ca(g, h, b, d), y.$groups = {
11294
11314
  _set: n,
11295
11315
  _key: m || Da
11296
11316
  }, y.$context = {
@@ -11520,7 +11540,7 @@ const Vu = { class: "container" }, ju = { class: "main" }, $u = { class: "chart-
11520
11540
  },
11521
11541
  setup(i) {
11522
11542
  const t = i;
11523
- Mt.register(
11543
+ Ct.register(
11524
11544
  fe,
11525
11545
  ge,
11526
11546
  ue,
@@ -11537,7 +11557,11 @@ const Vu = { class: "container" }, ju = { class: "main" }, $u = { class: "chart-
11537
11557
  });
11538
11558
  });
11539
11559
  const l = Math.max(...r), c = Math.min(...r), h = t.bubbleMax, d = t.bubbleMin;
11540
- return a.map((u) => u.map((f) => ({
11560
+ return a.map((u) => l === c ? u.map((f) => ({
11561
+ x: f.x,
11562
+ y: f.y,
11563
+ r: d + (h - d) / 2
11564
+ })) : u.map((f) => ({
11541
11565
  x: f.x,
11542
11566
  y: f.y,
11543
11567
  r: d + (f.r - c) * (h - d) / (l - c)
@@ -11633,7 +11657,7 @@ const Vu = { class: "container" }, ju = { class: "main" }, $u = { class: "chart-
11633
11657
  ]));
11634
11658
  }
11635
11659
  });
11636
- const fo = /* @__PURE__ */ ye(Xu, [["__scopeId", "data-v-cecd05d5"]]);
11660
+ const fo = /* @__PURE__ */ ye(Xu, [["__scopeId", "data-v-a786496d"]]);
11637
11661
  fo.install = (i) => {
11638
11662
  i.component("BubbleChart", fo);
11639
11663
  };