@kong-ui-public/analytics-chart 13.3.0 → 13.3.1-pr.4049.0044b6038.0

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,5 +1,5 @@
1
- import { computed as M, getCurrentInstance as er, onUnmounted as qe, shallowRef as be, onMounted as fn, onBeforeUnmount as nr, watch as At, hasInjectionContext as dg, inject as Ye, nextTick as pd, isRef as hg, toRefs as fg, customRef as mg, toValue as gt, getCurrentScope as gg, onScopeDispose as pg, ref as St, unref as U, watchEffect as dl, defineComponent as Ut, openBlock as L, createElementBlock as j, createElementVNode as G, toDisplayString as tt, createVNode as Vt, Fragment as _e, renderList as Oe, normalizeClass as Ct, normalizeStyle as We, createBlock as ht, createCommentVNode as mt, resolveComponent as an, resolveDynamicComponent as Xs, withCtx as Nt, createSlots as ir, createTextVNode as he, onWatcherCleanup as yg, useTemplateRef as tn, reactive as ai, toRef as st, Teleport as yd, h as ka, toRaw as Da, version as bg, isProxy as bd, renderSlot as ri, provide as hl, useCssVars as _d, useSlots as _g } from "vue";
2
- import { CloseIcon as vg, DragIcon as xg, ProgressIcon as wg, WarningIcon as Mg, EqualIcon as Tg, GrokIcon as Sg, VllmIcon as kg, GoogleVertexIcon as Dg, OpenAiIcon as Cg, OllamaIcon as Og, NvidiaIcon as Pg, KimiIcon as Ag, MistralIcon as Rg, MetaLlamaIcon as Ig, HuggingFaceIcon as Eg, GeminiIcon as Lg, DeepseekIcon as Ng, DatabricksIcon as Fg, CohereIcon as zg, CerebrasIcon as Ug, AmazonBedrockIcon as Bg, AzureIcon as Hg, AnthropicIcon as $g } from "@kong/icons";
1
+ import { computed as T, getCurrentInstance as er, onUnmounted as qe, shallowRef as be, onMounted as fn, onBeforeUnmount as nr, watch as At, hasInjectionContext as dg, inject as Ye, nextTick as pd, isRef as hg, toRefs as fg, customRef as mg, toValue as gt, getCurrentScope as gg, onScopeDispose as pg, ref as St, unref as U, watchEffect as dl, defineComponent as Ut, openBlock as L, createElementBlock as j, createElementVNode as G, toDisplayString as tt, createVNode as Vt, Fragment as _e, renderList as Oe, normalizeClass as Ct, normalizeStyle as We, createBlock as ht, createCommentVNode as mt, resolveComponent as an, resolveDynamicComponent as Xs, withCtx as Nt, createSlots as ir, createTextVNode as he, onWatcherCleanup as yg, useTemplateRef as tn, reactive as ai, toRef as st, Teleport as yd, h as ka, toRaw as Da, version as bg, isProxy as bd, renderSlot as ri, provide as hl, useCssVars as _d, useSlots as _g } from "vue";
2
+ import { CloseIcon as vg, DragIcon as xg, ProgressIcon as wg, WarningIcon as Tg, EqualIcon as Mg, GrokIcon as Sg, VllmIcon as kg, GoogleVertexIcon as Dg, OpenAiIcon as Cg, OllamaIcon as Og, NvidiaIcon as Pg, KimiIcon as Ag, MistralIcon as Rg, MetaLlamaIcon as Ig, HuggingFaceIcon as Eg, GeminiIcon as Lg, DeepseekIcon as Ng, DatabricksIcon as Fg, CohereIcon as zg, CerebrasIcon as Ug, AmazonBedrockIcon as Bg, AzureIcon as Hg, AnthropicIcon as $g } from "@kong/icons";
3
3
  import { createI18n as Yg, i18nTComponent as Wg } from "@kong-ui-public/i18n";
4
4
  import { useDatasourceConfigStore as vd } from "@kong-ui-public/analytics-config-store";
5
5
  import { buildDeltaMapping as Vg, calculateChange as jg, changePolarity as qg, defineIcon as Gg, metricChange as fl, useTrendRange as Xg } from "@kong-ui-public/analytics-metric-provider";
@@ -260,7 +260,7 @@ const yp = [
260
260
  "time"
261
261
  ], lr = En(yp);
262
262
  new Set(sr), new Set(or), new Set(ar), new Set(rr), new Set(lr);
263
- const Md = [
263
+ const Td = [
264
264
  { code: "AF", name: "Afghanistan" },
265
265
  { code: "AX", name: "Aland Islands" },
266
266
  { code: "AL", name: "Albania" },
@@ -563,7 +563,7 @@ const Md = [
563
563
  ({
564
564
  ...mn()
565
565
  });
566
- Md.map((e) => e.code);
566
+ Td.map((e) => e.code);
567
567
  const bp = [
568
568
  "control_plane",
569
569
  "gateway_service",
@@ -681,12 +681,12 @@ const xp = {
681
681
  long: "h:mm:ss a z",
682
682
  medium: "h:mm:ss a",
683
683
  short: "h:mm a"
684
- }, Mp = {
684
+ }, Tp = {
685
685
  full: "{{date}} 'at' {{time}}",
686
686
  long: "{{date}} 'at' {{time}}",
687
687
  medium: "{{date}}, {{time}}",
688
688
  short: "{{date}}, {{time}}"
689
- }, Tp = {
689
+ }, Mp = {
690
690
  date: Vo({
691
691
  formats: xp,
692
692
  defaultWidth: "full"
@@ -696,7 +696,7 @@ const xp = {
696
696
  defaultWidth: "full"
697
697
  }),
698
698
  dateTime: Vo({
699
- formats: Mp,
699
+ formats: Tp,
700
700
  defaultWidth: "full"
701
701
  })
702
702
  }, Sp = {
@@ -873,7 +873,7 @@ const Dp = {
873
873
  defaultFormattingWidth: "wide"
874
874
  })
875
875
  };
876
- function Mi(e) {
876
+ function Ti(e) {
877
877
  return (t, n = {}) => {
878
878
  const i = n.width, s = i && e.matchPatterns[i] || e.matchPatterns[e.defaultMatchWidth], o = t.match(s);
879
879
  if (!o)
@@ -986,32 +986,32 @@ const zp = /^(\d+)(th|st|nd|rd)?/i, Up = /\d+/i, Bp = {
986
986
  parsePattern: Up,
987
987
  valueCallback: (e) => parseInt(e, 10)
988
988
  }),
989
- era: Mi({
989
+ era: Ti({
990
990
  matchPatterns: Bp,
991
991
  defaultMatchWidth: "wide",
992
992
  parsePatterns: Hp,
993
993
  defaultParseWidth: "any"
994
994
  }),
995
- quarter: Mi({
995
+ quarter: Ti({
996
996
  matchPatterns: $p,
997
997
  defaultMatchWidth: "wide",
998
998
  parsePatterns: Yp,
999
999
  defaultParseWidth: "any",
1000
1000
  valueCallback: (e) => e + 1
1001
1001
  }),
1002
- month: Mi({
1002
+ month: Ti({
1003
1003
  matchPatterns: Wp,
1004
1004
  defaultMatchWidth: "wide",
1005
1005
  parsePatterns: Vp,
1006
1006
  defaultParseWidth: "any"
1007
1007
  }),
1008
- day: Mi({
1008
+ day: Ti({
1009
1009
  matchPatterns: jp,
1010
1010
  defaultMatchWidth: "wide",
1011
1011
  parsePatterns: qp,
1012
1012
  defaultParseWidth: "any"
1013
1013
  }),
1014
- dayPeriod: Mi({
1014
+ dayPeriod: Ti({
1015
1015
  matchPatterns: Gp,
1016
1016
  defaultMatchWidth: "any",
1017
1017
  parsePatterns: Xp,
@@ -1020,7 +1020,7 @@ const zp = /^(\d+)(th|st|nd|rd)?/i, Up = /\d+/i, Bp = {
1020
1020
  }, Zp = {
1021
1021
  code: "en-US",
1022
1022
  formatDistance: vp,
1023
- formatLong: Tp,
1023
+ formatLong: Mp,
1024
1024
  formatRelative: kp,
1025
1025
  localize: Ep,
1026
1026
  match: Kp,
@@ -1033,7 +1033,7 @@ let Qp = {};
1033
1033
  function ss() {
1034
1034
  return Qp;
1035
1035
  }
1036
- const Td = 6048e5, Jp = 864e5, ty = 60, ey = 3600, yl = /* @__PURE__ */ Symbol.for("constructDateFrom");
1036
+ const Md = 6048e5, Jp = 864e5, ty = 60, ey = 3600, yl = /* @__PURE__ */ Symbol.for("constructDateFrom");
1037
1037
  function we(e, t) {
1038
1038
  return typeof e == "function" ? e(t) : e && typeof e == "object" && yl in e ? e[yl](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
1039
1039
  }
@@ -1102,7 +1102,7 @@ function ay(e, t) {
1102
1102
  }
1103
1103
  function ry(e, t) {
1104
1104
  const n = ie(e, t?.in), i = +Ks(n) - +ay(n);
1105
- return Math.round(i / Td) + 1;
1105
+ return Math.round(i / Md) + 1;
1106
1106
  }
1107
1107
  function kd(e, t) {
1108
1108
  const n = ie(e, t?.in), i = n.getFullYear(), s = ss(), o = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? s.firstWeekContainsDate ?? s.locale?.options?.firstWeekContainsDate ?? 1, a = we(t?.in || e, 0);
@@ -1118,7 +1118,7 @@ function ly(e, t) {
1118
1118
  }
1119
1119
  function cy(e, t) {
1120
1120
  const n = ie(e, t?.in), i = +Ve(n, t) - +ly(n, t);
1121
- return Math.round(i / Td) + 1;
1121
+ return Math.round(i / Md) + 1;
1122
1122
  }
1123
1123
  function _t(e, t) {
1124
1124
  const n = e < 0 ? "-" : "", i = Math.abs(e).toString().padStart(t, "0");
@@ -1781,7 +1781,7 @@ function _y(e) {
1781
1781
  function vy(e) {
1782
1782
  return !(!_y(e) && typeof e != "number" || isNaN(+ie(e)));
1783
1783
  }
1784
- const xy = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, wy = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, My = /^'([^]*?)'?$/, Ty = /''/g, Sy = /[a-zA-Z]/;
1784
+ const xy = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, wy = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ty = /^'([^]*?)'?$/, My = /''/g, Sy = /[a-zA-Z]/;
1785
1785
  function ky(e, t, n) {
1786
1786
  const i = ss(), s = n?.locale ?? i.locale ?? Zp, o = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, a = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? i.weekStartsOn ?? i.locale?.options?.weekStartsOn ?? 0, r = ie(e, n?.in);
1787
1787
  if (!vy(r))
@@ -1822,10 +1822,10 @@ function ky(e, t, n) {
1822
1822
  }).join("");
1823
1823
  }
1824
1824
  function Dy(e) {
1825
- const t = e.match(My);
1826
- return t ? t[1].replace(Ty, "'") : e;
1825
+ const t = e.match(Ty);
1826
+ return t ? t[1].replace(My, "'") : e;
1827
1827
  }
1828
- function Ms(e, t, n) {
1828
+ function Ts(e, t, n) {
1829
1829
  const i = ie(e, n?.in);
1830
1830
  return isNaN(t) ? we(e, NaN) : (i.setDate(i.getDate() + t), i);
1831
1831
  }
@@ -1861,7 +1861,7 @@ function Oy(e, t) {
1861
1861
  function Py() {
1862
1862
  return Object.assign({}, ss());
1863
1863
  }
1864
- function Ml(e) {
1864
+ function Tl(e) {
1865
1865
  return Math.trunc(e * ey);
1866
1866
  }
1867
1867
  function Ay(e) {
@@ -1874,7 +1874,7 @@ function Od(e, t, n) {
1874
1874
  function Pd(e, t, n) {
1875
1875
  return Cy(e, -1, n);
1876
1876
  }
1877
- function Tl(e, t, n) {
1877
+ function Ml(e, t, n) {
1878
1878
  const i = Py(), s = Ey(e, n.timeZone, n.locale ?? i.locale);
1879
1879
  return "formatToParts" in s ? Ry(s, t) : Iy(s, t);
1880
1880
  }
@@ -2082,9 +2082,9 @@ const Vy = 60 * 1e3, jy = {
2082
2082
  case "z":
2083
2083
  case "zz":
2084
2084
  case "zzz":
2085
- return Tl("short", e, n);
2085
+ return Ml("short", e, n);
2086
2086
  default:
2087
- return Tl("long", e, n);
2087
+ return Ml("long", e, n);
2088
2088
  }
2089
2089
  }
2090
2090
  };
@@ -2354,7 +2354,7 @@ const l0 = {
2354
2354
  weekly: 3600 * 24 * 7 * 1e3,
2355
2355
  trend: 0
2356
2356
  };
2357
- function Ts(e) {
2357
+ function Ms(e) {
2358
2358
  return e && sp.find((t) => e <= l0[t]) || null;
2359
2359
  }
2360
2360
  var Ss = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Hs = { exports: {} };
@@ -2362,8 +2362,8 @@ Hs.exports;
2362
2362
  var Ll;
2363
2363
  function c0() {
2364
2364
  return Ll || (Ll = 1, (function(e, t) {
2365
- var n = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", a = "[object Array]", r = "[object Boolean]", l = "[object Date]", c = "[object Error]", u = "[object Function]", d = "[object GeneratorFunction]", h = "[object Map]", f = "[object Number]", m = "[object Object]", g = "[object Promise]", p = "[object RegExp]", b = "[object Set]", _ = "[object String]", x = "[object Symbol]", S = "[object WeakMap]", v = "[object ArrayBuffer]", k = "[object DataView]", T = "[object Float32Array]", P = "[object Float64Array]", I = "[object Int8Array]", R = "[object Int16Array]", w = "[object Int32Array]", C = "[object Uint8Array]", H = "[object Uint8ClampedArray]", F = "[object Uint16Array]", Y = "[object Uint32Array]", q = /[\\^$.*+?()[\]{}|]/g, Z = /\w*$/, ct = /^\[object .+?Constructor\]$/, ut = /^(?:0|[1-9]\d*)$/, et = {};
2366
- et[o] = et[a] = et[v] = et[k] = et[r] = et[l] = et[T] = et[P] = et[I] = et[R] = et[w] = et[h] = et[f] = et[m] = et[p] = et[b] = et[_] = et[x] = et[C] = et[H] = et[F] = et[Y] = !0, et[c] = et[u] = et[S] = !1;
2365
+ var n = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", a = "[object Array]", r = "[object Boolean]", l = "[object Date]", c = "[object Error]", u = "[object Function]", d = "[object GeneratorFunction]", h = "[object Map]", f = "[object Number]", m = "[object Object]", g = "[object Promise]", p = "[object RegExp]", b = "[object Set]", _ = "[object String]", x = "[object Symbol]", S = "[object WeakMap]", v = "[object ArrayBuffer]", k = "[object DataView]", M = "[object Float32Array]", P = "[object Float64Array]", I = "[object Int8Array]", R = "[object Int16Array]", w = "[object Int32Array]", C = "[object Uint8Array]", H = "[object Uint8ClampedArray]", F = "[object Uint16Array]", Y = "[object Uint32Array]", q = /[\\^$.*+?()[\]{}|]/g, Z = /\w*$/, ct = /^\[object .+?Constructor\]$/, ut = /^(?:0|[1-9]\d*)$/, et = {};
2366
+ et[o] = et[a] = et[v] = et[k] = et[r] = et[l] = et[M] = et[P] = et[I] = et[R] = et[w] = et[h] = et[f] = et[m] = et[p] = et[b] = et[_] = et[x] = et[C] = et[H] = et[F] = et[Y] = !0, et[c] = et[u] = et[S] = !1;
2367
2367
  var $ = typeof Ss == "object" && Ss && Ss.Object === Object && Ss, D = typeof self == "object" && self && self.Object === Object && self, A = $ || D || Function("return this")(), B = t && !t.nodeType && t, V = B && !0 && e && !e.nodeType && e, lt = V && V.exports === B;
2368
2368
  function N(y, O) {
2369
2369
  return y.set(O[0], O[1]), y;
@@ -2371,7 +2371,7 @@ function c0() {
2371
2371
  function W(y, O) {
2372
2372
  return y.add(O), y;
2373
2373
  }
2374
- function Mt(y, O) {
2374
+ function Tt(y, O) {
2375
2375
  for (var E = -1, K = y ? y.length : 0; ++E < K && O(y[E], E, y) !== !1; )
2376
2376
  ;
2377
2377
  return y;
@@ -2423,8 +2423,8 @@ function c0() {
2423
2423
  var z = Array.prototype, Q = Function.prototype, dt = Object.prototype, It = A["__core-js_shared__"], le = (function() {
2424
2424
  var y = /[^.]+$/.exec(It && It.keys && It.keys.IE_PROTO || "");
2425
2425
  return y ? "Symbol(src)_1." + y : "";
2426
- })(), bs = Q.toString, Te = dt.hasOwnProperty, Bn = dt.toString, nm = RegExp(
2427
- "^" + bs.call(Te).replace(q, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2426
+ })(), bs = Q.toString, Me = dt.hasOwnProperty, Bn = dt.toString, nm = RegExp(
2427
+ "^" + bs.call(Me).replace(q, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2428
2428
  ), Gr = lt ? A.Buffer : void 0, Xr = A.Symbol, Kr = A.Uint8Array, im = Ge(Object.getPrototypeOf, Object), sm = Object.create, om = dt.propertyIsEnumerable, am = z.splice, Zr = Object.getOwnPropertySymbols, rm = Gr ? Gr.isBuffer : void 0, lm = Ge(Object.keys, Object), No = Yn(A, "DataView"), vi = Yn(A, "Map"), Fo = Yn(A, "Promise"), zo = Yn(A, "Set"), Uo = Yn(A, "WeakMap"), xi = Yn(Object, "create"), cm = vn(No), um = vn(vi), dm = vn(Fo), hm = vn(zo), fm = vn(Uo), Qr = Xr ? Xr.prototype : void 0, Jr = Qr ? Qr.valueOf : void 0;
2429
2429
  function bn(y) {
2430
2430
  var O = -1, E = y ? y.length : 0;
@@ -2445,11 +2445,11 @@ function c0() {
2445
2445
  var E = O[y];
2446
2446
  return E === i ? void 0 : E;
2447
2447
  }
2448
- return Te.call(O, y) ? O[y] : void 0;
2448
+ return Me.call(O, y) ? O[y] : void 0;
2449
2449
  }
2450
2450
  function ym(y) {
2451
2451
  var O = this.__data__;
2452
- return xi ? O[y] !== void 0 : Te.call(O, y);
2452
+ return xi ? O[y] !== void 0 : Me.call(O, y);
2453
2453
  }
2454
2454
  function bm(y, O) {
2455
2455
  var E = this.__data__;
@@ -2480,11 +2480,11 @@ function c0() {
2480
2480
  function wm(y) {
2481
2481
  return _s(this.__data__, y) > -1;
2482
2482
  }
2483
- function Mm(y, O) {
2483
+ function Tm(y, O) {
2484
2484
  var E = this.__data__, K = _s(E, y);
2485
2485
  return K < 0 ? E.push([y, O]) : E[K][1] = O, this;
2486
2486
  }
2487
- Ee.prototype.clear = _m, Ee.prototype.delete = vm, Ee.prototype.get = xm, Ee.prototype.has = wm, Ee.prototype.set = Mm;
2487
+ Ee.prototype.clear = _m, Ee.prototype.delete = vm, Ee.prototype.get = xm, Ee.prototype.has = wm, Ee.prototype.set = Tm;
2488
2488
  function Hn(y) {
2489
2489
  var O = -1, E = y ? y.length : 0;
2490
2490
  for (this.clear(); ++O < E; ) {
@@ -2492,7 +2492,7 @@ function c0() {
2492
2492
  this.set(K[0], K[1]);
2493
2493
  }
2494
2494
  }
2495
- function Tm() {
2495
+ function Mm() {
2496
2496
  this.__data__ = {
2497
2497
  hash: new bn(),
2498
2498
  map: new (vi || Ee)(),
@@ -2511,7 +2511,7 @@ function c0() {
2511
2511
  function Cm(y, O) {
2512
2512
  return vs(this, y).set(y, O), this;
2513
2513
  }
2514
- Hn.prototype.clear = Tm, Hn.prototype.delete = Sm, Hn.prototype.get = km, Hn.prototype.has = Dm, Hn.prototype.set = Cm;
2514
+ Hn.prototype.clear = Mm, Hn.prototype.delete = Sm, Hn.prototype.get = km, Hn.prototype.has = Dm, Hn.prototype.set = Cm;
2515
2515
  function $n(y) {
2516
2516
  this.__data__ = new Ee(y);
2517
2517
  }
@@ -2541,12 +2541,12 @@ function c0() {
2541
2541
  function Em(y, O) {
2542
2542
  var E = $o(y) || sg(y) ? Lt(y.length, String) : [], K = E.length, Xt = !!K;
2543
2543
  for (var ce in y)
2544
- Te.call(y, ce) && !(Xt && (ce == "length" || tg(ce, K))) && E.push(ce);
2544
+ Me.call(y, ce) && !(Xt && (ce == "length" || tg(ce, K))) && E.push(ce);
2545
2545
  return E;
2546
2546
  }
2547
2547
  function tl(y, O, E) {
2548
2548
  var K = y[O];
2549
- (!(Te.call(y, O) && sl(K, E)) || E === void 0 && !(O in y)) && (y[O] = E);
2549
+ (!(Me.call(y, O) && sl(K, E)) || E === void 0 && !(O in y)) && (y[O] = E);
2550
2550
  }
2551
2551
  function _s(y, O) {
2552
2552
  for (var E = y.length; E--; )
@@ -2588,7 +2588,7 @@ function c0() {
2588
2588
  return cl;
2589
2589
  if (Le.set(y, ue), !rl)
2590
2590
  var ul = E ? Km(y) : Yo(y);
2591
- return Mt(ul || y, function(Wo, ws) {
2591
+ return Tt(ul || y, function(Wo, ws) {
2592
2592
  ul && (ws = Wo, Wo = y[ws]), tl(ue, ws, Bo(Wo, O, E, K, ws, y, Le));
2593
2593
  }), ue;
2594
2594
  }
@@ -2613,7 +2613,7 @@ function c0() {
2613
2613
  return lm(y);
2614
2614
  var O = [];
2615
2615
  for (var E in Object(y))
2616
- Te.call(y, E) && E != "constructor" && O.push(E);
2616
+ Me.call(y, E) && E != "constructor" && O.push(E);
2617
2617
  return O;
2618
2618
  }
2619
2619
  function Hm(y, O) {
@@ -2697,7 +2697,7 @@ function c0() {
2697
2697
  });
2698
2698
  function Zm(y) {
2699
2699
  var O = y.length, E = y.constructor(O);
2700
- return O && typeof y[0] == "string" && Te.call(y, "index") && (E.index = y.index, E.input = y.input), E;
2700
+ return O && typeof y[0] == "string" && Me.call(y, "index") && (E.index = y.index, E.input = y.input), E;
2701
2701
  }
2702
2702
  function Qm(y) {
2703
2703
  return typeof y.constructor == "function" && !il(y) ? Nm(im(y)) : {};
@@ -2712,7 +2712,7 @@ function c0() {
2712
2712
  return new Xt(+y);
2713
2713
  case k:
2714
2714
  return $m(y, K);
2715
- case T:
2715
+ case M:
2716
2716
  case P:
2717
2717
  case I:
2718
2718
  case R:
@@ -2769,7 +2769,7 @@ function c0() {
2769
2769
  return y === O || y !== y && O !== O;
2770
2770
  }
2771
2771
  function sg(y) {
2772
- return og(y) && Te.call(y, "callee") && (!om.call(y, "callee") || Bn.call(y) == o);
2772
+ return og(y) && Me.call(y, "callee") && (!om.call(y, "callee") || Bn.call(y) == o);
2773
2773
  }
2774
2774
  var $o = Array.isArray;
2775
2775
  function ol(y) {
@@ -2806,7 +2806,7 @@ function c0() {
2806
2806
  })(Hs, Hs.exports)), Hs.exports;
2807
2807
  }
2808
2808
  c0();
2809
- const Me = (e, t) => new Date(e.getTime() - a0(t, e));
2809
+ const Te = (e, t) => new Date(e.getTime() - a0(t, e));
2810
2810
  class qt {
2811
2811
  timeframeText;
2812
2812
  key;
@@ -2883,7 +2883,7 @@ class qt {
2883
2883
  class u0 extends qt {
2884
2884
  rawStart(t) {
2885
2885
  let n = Ve(this.tzAdjustedDate(t), { weekStartsOn: 1 });
2886
- return t && (n = Me(n, t)), n;
2886
+ return t && (n = Te(n, t)), n;
2887
2887
  }
2888
2888
  maximumTimeframeLength() {
2889
2889
  return 3600 * 24 * 7;
@@ -2892,7 +2892,7 @@ class u0 extends qt {
2892
2892
  class d0 extends qt {
2893
2893
  rawStart(t) {
2894
2894
  let n = si(this.tzAdjustedDate(t));
2895
- return t && (n = Me(n, t)), n;
2895
+ return t && (n = Te(n, t)), n;
2896
2896
  }
2897
2897
  maximumTimeframeLength() {
2898
2898
  return 3600 * 24 * 31;
@@ -2901,7 +2901,7 @@ class d0 extends qt {
2901
2901
  class h0 extends qt {
2902
2902
  rawStart(t) {
2903
2903
  let n = ii(this.tzAdjustedDate(t));
2904
- return t && (n = Me(n, t)), n;
2904
+ return t && (n = Te(n, t)), n;
2905
2905
  }
2906
2906
  maximumTimeframeLength() {
2907
2907
  return 3600 * 24 * 92;
@@ -2910,7 +2910,7 @@ class h0 extends qt {
2910
2910
  class f0 extends qt {
2911
2911
  rawStart(t) {
2912
2912
  let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
2913
- return t && (n = Me(n, t)), n;
2913
+ return t && (n = Te(n, t)), n;
2914
2914
  }
2915
2915
  maximumTimeframeLength() {
2916
2916
  return 3600 * 24 * 366;
@@ -2919,44 +2919,44 @@ class f0 extends qt {
2919
2919
  class m0 extends qt {
2920
2920
  rawEnd(t) {
2921
2921
  let n = Ve(this.tzAdjustedDate(t), { weekStartsOn: 1 });
2922
- return t && (n = Me(n, t)), n;
2922
+ return t && (n = Te(n, t)), n;
2923
2923
  }
2924
2924
  rawStart(t) {
2925
2925
  const n = this.tzAdjustedDate(t);
2926
2926
  let i = Ve(n.setDate(n.getDate() - 7), {
2927
2927
  weekStartsOn: 1
2928
2928
  });
2929
- return t && (i = Me(i, t)), i;
2929
+ return t && (i = Te(i, t)), i;
2930
2930
  }
2931
2931
  }
2932
2932
  class g0 extends qt {
2933
2933
  rawEnd(t) {
2934
2934
  let n = ii(this.tzAdjustedDate(t));
2935
- return t && (n = Me(n, t)), n;
2935
+ return t && (n = Te(n, t)), n;
2936
2936
  }
2937
2937
  rawStart(t) {
2938
2938
  let n = ii(Pd(this.tzAdjustedDate(t)));
2939
- return t && (n = Me(n, t)), n;
2939
+ return t && (n = Te(n, t)), n;
2940
2940
  }
2941
2941
  }
2942
2942
  class p0 extends qt {
2943
2943
  rawEnd(t) {
2944
2944
  let n = si(this.tzAdjustedDate(t));
2945
- return t && (n = Me(n, t)), n;
2945
+ return t && (n = Te(n, t)), n;
2946
2946
  }
2947
2947
  rawStart(t) {
2948
2948
  let n = si(Od(this.tzAdjustedDate(t)));
2949
- return t && (n = Me(n, t)), n;
2949
+ return t && (n = Te(n, t)), n;
2950
2950
  }
2951
2951
  }
2952
2952
  class y0 extends qt {
2953
2953
  rawEnd(t) {
2954
2954
  let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
2955
- return t && (n = Me(n, t)), n;
2955
+ return t && (n = Te(n, t)), n;
2956
2956
  }
2957
2957
  rawStart(t) {
2958
2958
  let n = new Date(this.tzAdjustedDate(t).getFullYear() - 1, 0, 1);
2959
- return t && (n = Me(n, t)), n;
2959
+ return t && (n = Te(n, t)), n;
2960
2960
  }
2961
2961
  }
2962
2962
  X.FIFTEEN_MIN, new qt({
@@ -3075,7 +3075,7 @@ X.FIFTEEN_MIN, new qt({
3075
3075
  timeframeText: "Week",
3076
3076
  timeframeLength: () => {
3077
3077
  const e = Ve(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
3078
- return (ti(Ms(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
3078
+ return (ti(Ts(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
3079
3079
  },
3080
3080
  defaultResponseGranularity: "daily",
3081
3081
  dataGranularity: "daily",
@@ -3089,7 +3089,7 @@ X.FIFTEEN_MIN, new qt({
3089
3089
  timeframeText: "Month",
3090
3090
  timeframeLength: () => {
3091
3091
  const e = si(/* @__PURE__ */ new Date());
3092
- return (ti(Ms(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
3092
+ return (ti(Ts(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
3093
3093
  },
3094
3094
  defaultResponseGranularity: "daily",
3095
3095
  dataGranularity: "daily",
@@ -3101,7 +3101,7 @@ X.FIFTEEN_MIN, new qt({
3101
3101
  timeframeText: "Quarter",
3102
3102
  timeframeLength: () => {
3103
3103
  const e = ii(/* @__PURE__ */ new Date());
3104
- return (ti(Ms(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
3104
+ return (ti(Ts(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
3105
3105
  },
3106
3106
  defaultResponseGranularity: "daily",
3107
3107
  dataGranularity: "daily",
@@ -3113,7 +3113,7 @@ X.FIFTEEN_MIN, new qt({
3113
3113
  timeframeText: "Year",
3114
3114
  timeframeLength: () => {
3115
3115
  const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1);
3116
- return (ti(Ms(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
3116
+ return (ti(Ts(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
3117
3117
  },
3118
3118
  defaultResponseGranularity: "daily",
3119
3119
  dataGranularity: "daily",
@@ -3137,7 +3137,7 @@ X.FIFTEEN_MIN, new qt({
3137
3137
  timeframeLength: () => {
3138
3138
  let e = 0;
3139
3139
  const t = si(/* @__PURE__ */ new Date()), n = si(Od(/* @__PURE__ */ new Date()));
3140
- return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = Nl(t, n)), 3600 * 24 * Oy((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + Ml(e);
3140
+ return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = Nl(t, n)), 3600 * 24 * Oy((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + Tl(e);
3141
3141
  },
3142
3142
  defaultResponseGranularity: "daily",
3143
3143
  dataGranularity: "daily",
@@ -3162,7 +3162,7 @@ X.FIFTEEN_MIN, new qt({
3162
3162
  timeframeLength: () => {
3163
3163
  const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1), t = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1);
3164
3164
  let n = 0;
3165
- return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n = Nl(e, t)), 3600 * 24 * (365 + (t.getFullYear() % 4 === 0 ? 1 : 0)) + Ml(n);
3165
+ return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n = Nl(e, t)), 3600 * 24 * (365 + (t.getFullYear() % 4 === 0 ? 1 : 0)) + Tl(n);
3166
3166
  },
3167
3167
  defaultResponseGranularity: "daily",
3168
3168
  dataGranularity: "daily",
@@ -3173,14 +3173,14 @@ function Nl(e, t) {
3173
3173
  return Ay(e.getTimezoneOffset() - t.getTimezoneOffset());
3174
3174
  }
3175
3175
  X.FIFTEEN_MIN, X.ONE_HOUR, X.SIX_HOUR, X.TWELVE_HOUR, X.ONE_DAY, X.SEVEN_DAY, X.FIFTEEN_MIN, X.ONE_HOUR, X.SIX_HOUR, X.TWELVE_HOUR, X.ONE_DAY, X.SEVEN_DAY, X.THIRTY_DAY, X.NINETY_DAY, X.ONE_HUNDRED_EIGHTY_DAY, X.ONE_YEAR, X.CURRENT_WEEK, X.CURRENT_MONTH, X.CURRENT_QUARTER, X.CURRENT_YEAR, X.PREVIOUS_WEEK, X.PREVIOUS_MONTH, X.PREVIOUS_QUARTER, X.PREVIOUS_YEAR;
3176
- const b0 = new Map(Md.map((e) => [e.code, { code: e.code, name: e.name }])), Oa = (e) => b0.get(e)?.name || e, Fl = 1e3, _0 = 1e4, zl = 1e6, Ul = 1e9, Bl = 1e12, $s = (e, t) => {
3176
+ const b0 = new Map(Td.map((e) => [e.code, { code: e.code, name: e.name }])), Oa = (e) => b0.get(e)?.name || e, Fl = 1e3, _0 = 1e4, zl = 1e6, Ul = 1e9, Bl = 1e12, $s = (e, t) => {
3177
3177
  if (t.separator === !1 || e < 1e3)
3178
3178
  return e.toString();
3179
3179
  const n = typeof t.separator == "string" ? t.separator : ",", i = [];
3180
3180
  return Math.round(e).toString().split("").reverse().forEach((s, o) => {
3181
3181
  o && o % 3 === 0 && i.push(n), i.push(s);
3182
3182
  }), i.reverse().join("");
3183
- }, Ti = (e, t, n) => {
3183
+ }, Mi = (e, t, n) => {
3184
3184
  const i = e / t, s = n.round ? "round" : "floor";
3185
3185
  if (n.decimal === !1)
3186
3186
  return Math[s](i).toString();
@@ -3194,7 +3194,7 @@ function Ys(e, t = {}) {
3194
3194
  const i = e < 0;
3195
3195
  i && (e = Math.abs(e)), t.precision && (e = parseFloat(e.toPrecision(t.precision)));
3196
3196
  const s = t.min10k ? _0 : Fl;
3197
- return e < s || t.precision && t.precision > Math.log10(e) ? n = $s(Ti(e, 1, t), t) : e < zl ? n = `${Ti(e, Fl, t)}k` : e < Ul ? n = `${Ti(e, zl, t)}m` : e < Bl ? n = `${$s(Ti(e, Ul, t), t)}b` : n = `${$s(Ti(e, Bl, t), t)}t`, i && (n = `-${n}`), t.capital && (n = n.toUpperCase()), t.prefix && (n = `${t.prefix}${n}`), t.suffix && (n = `${n}${t.suffix}`), n;
3197
+ return e < s || t.precision && t.precision > Math.log10(e) ? n = $s(Mi(e, 1, t), t) : e < zl ? n = `${Mi(e, Fl, t)}k` : e < Ul ? n = `${Mi(e, zl, t)}m` : e < Bl ? n = `${$s(Mi(e, Ul, t), t)}b` : n = `${$s(Mi(e, Bl, t), t)}t`, i && (n = `-${n}`), t.capital && (n = n.toUpperCase()), t.prefix && (n = `${t.prefix}${n}`), t.suffix && (n = `${n}${t.suffix}`), n;
3198
3198
  }
3199
3199
  Ys.addCommas = $s;
3200
3200
  const v0 = typeof document < "u" && document.documentElement?.lang || "en-US", Ws = new Intl.NumberFormat(v0), x0 = /* @__PURE__ */ new Set(["%"]), w0 = (e) => x0.has(e) ? "flush" : "spaced";
@@ -3268,7 +3268,7 @@ function Ie({
3268
3268
  return i(`${h} - ${f}`, a, d);
3269
3269
  } };
3270
3270
  }
3271
- const Hl = "#d60027", $l = "#ffe5e5", M0 = "#f1f0ff", T0 = "#e0e4ea", Yl = "#0d0e14", S0 = "#ad000e", ur = "#6c7489", Wl = "#52596e", k0 = "#007d60", D0 = "#995c00", C0 = "'Inter', Roboto, Helvetica, sans-serif", li = "16px", O0 = "20px", P0 = "40px", A0 = "#bee2ff", R0 = "#8fc1ff", I0 = "#5f9aff", E0 = "#306fff", L0 = "#b5ffee", N0 = "#00fabe", F0 = "#00d6a4", z0 = "#00a17b", U0 = "#007d60", B0 = "#005944", H0 = "#b5ffee", $0 = "#00fabe", Y0 = "#b5ffee", W0 = "#00a17b", V0 = "#fff296", j0 = "#ffe04b", q0 = "#ffc400", G0 = "#b37600", X0 = "#995c00", K0 = "#804400", Z0 = "#fff296", Q0 = "#ffe04b", J0 = "#ffc2b3", tb = "#ff9877", eb = "#ff723c", nb = "#f75008", ib = "#d13500", sb = "#a31f00", ob = "#ffc2b3", ab = "#ff9877", rb = "#ff723c", lb = "#f75008", cb = "#d13500", ub = "#a31f00", db = "#ffc2b3", hb = "#ff9877", fb = "#ff723c", mb = "#f75008", gb = "#d13500", pb = "#a31f00", yb = "#ffc2b3", bb = "#ff9877", _b = "#ff723c", vb = "#f75008", xb = "#d13500", wb = "#a31f00", Mb = "#ffc2b3", Tb = "#ff9877", Sb = "#ff723c", kb = "#f75008", Db = "#d13500", Cb = "#ffabab", Ob = "#ff7272", Pb = "#ff3954", Ab = "#f50045", Rb = "#d60027", Ib = "#ad000e", Eb = "#ffabab", Lb = "#ff7272", Nb = "#ff3954", Fb = "#f50045", zb = "#d60027", Ub = "#eefaff", Bb = "#ecfffb", Hb = "#fffce0", $b = "#fff1ef", Yb = "#ffe5e5", Wb = "#5f9aff", Vb = "#00d6a4", jb = "#ffc400", qb = "#ff723c", Gb = "#ff3954", Ed = 6048e5, Xb = 864e5, as = 6e4, pi = 36e5, Kb = 1e3, Vl = /* @__PURE__ */ Symbol.for("constructDateFrom");
3271
+ const Hl = "#d60027", $l = "#ffe5e5", T0 = "#f1f0ff", M0 = "#e0e4ea", Yl = "#0d0e14", S0 = "#ad000e", ur = "#6c7489", Wl = "#52596e", k0 = "#007d60", D0 = "#995c00", C0 = "'Inter', Roboto, Helvetica, sans-serif", li = "16px", O0 = "20px", P0 = "40px", A0 = "#bee2ff", R0 = "#8fc1ff", I0 = "#5f9aff", E0 = "#306fff", L0 = "#b5ffee", N0 = "#00fabe", F0 = "#00d6a4", z0 = "#00a17b", U0 = "#007d60", B0 = "#005944", H0 = "#b5ffee", $0 = "#00fabe", Y0 = "#b5ffee", W0 = "#00a17b", V0 = "#fff296", j0 = "#ffe04b", q0 = "#ffc400", G0 = "#b37600", X0 = "#995c00", K0 = "#804400", Z0 = "#fff296", Q0 = "#ffe04b", J0 = "#ffc2b3", tb = "#ff9877", eb = "#ff723c", nb = "#f75008", ib = "#d13500", sb = "#a31f00", ob = "#ffc2b3", ab = "#ff9877", rb = "#ff723c", lb = "#f75008", cb = "#d13500", ub = "#a31f00", db = "#ffc2b3", hb = "#ff9877", fb = "#ff723c", mb = "#f75008", gb = "#d13500", pb = "#a31f00", yb = "#ffc2b3", bb = "#ff9877", _b = "#ff723c", vb = "#f75008", xb = "#d13500", wb = "#a31f00", Tb = "#ffc2b3", Mb = "#ff9877", Sb = "#ff723c", kb = "#f75008", Db = "#d13500", Cb = "#ffabab", Ob = "#ff7272", Pb = "#ff3954", Ab = "#f50045", Rb = "#d60027", Ib = "#ad000e", Eb = "#ffabab", Lb = "#ff7272", Nb = "#ff3954", Fb = "#f50045", zb = "#d60027", Ub = "#eefaff", Bb = "#ecfffb", Hb = "#fffce0", $b = "#fff1ef", Yb = "#ffe5e5", Wb = "#5f9aff", Vb = "#00d6a4", jb = "#ffc400", qb = "#ff723c", Gb = "#ff3954", Ed = 6048e5, Xb = 864e5, as = 6e4, pi = 36e5, Kb = 1e3, Vl = /* @__PURE__ */ Symbol.for("constructDateFrom");
3272
3272
  function Ft(e, t) {
3273
3273
  return typeof e == "function" ? e(t) : e && typeof e == "object" && Vl in e ? e[Vl](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
3274
3274
  }
@@ -3520,7 +3520,7 @@ function w_(e, t) {
3520
3520
  const n = ot(e, t?.in);
3521
3521
  return n.setMilliseconds(999), n;
3522
3522
  }
3523
- const M_ = {
3523
+ const T_ = {
3524
3524
  lessThanXSeconds: {
3525
3525
  one: "less than a second",
3526
3526
  other: "less than {{count}} seconds"
@@ -3582,9 +3582,9 @@ const M_ = {
3582
3582
  one: "almost 1 year",
3583
3583
  other: "almost {{count}} years"
3584
3584
  }
3585
- }, T_ = (e, t, n) => {
3585
+ }, M_ = (e, t, n) => {
3586
3586
  let i;
3587
- const s = M_[e];
3587
+ const s = T_[e];
3588
3588
  return typeof s == "string" ? i = s : t === 1 ? i = s.one : i = s.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + i : i + " ago" : i;
3589
3589
  };
3590
3590
  function Zo(e) {
@@ -3941,7 +3941,7 @@ const $_ = /^(\d+)(th|st|nd|rd)?/i, Y_ = /\d+/i, W_ = {
3941
3941
  })
3942
3942
  }, $d = {
3943
3943
  code: "en-US",
3944
- formatDistance: T_,
3944
+ formatDistance: M_,
3945
3945
  formatLong: C_,
3946
3946
  formatRelative: P_,
3947
3947
  localize: z_,
@@ -4986,7 +4986,7 @@ class wv extends pt {
4986
4986
  "T"
4987
4987
  ];
4988
4988
  }
4989
- class Mv extends pt {
4989
+ class Tv extends pt {
4990
4990
  priority = 130;
4991
4991
  parse(t, n) {
4992
4992
  return eo(n === "R" ? 4 : n.length, t);
@@ -5013,7 +5013,7 @@ class Mv extends pt {
5013
5013
  "T"
5014
5014
  ];
5015
5015
  }
5016
- class Tv extends pt {
5016
+ class Mv extends pt {
5017
5017
  priority = 130;
5018
5018
  parse(t, n) {
5019
5019
  return eo(n === "u" ? 4 : n.length, t);
@@ -6039,8 +6039,8 @@ const nx = {
6039
6039
  G: new vv(),
6040
6040
  y: new xv(),
6041
6041
  Y: new wv(),
6042
- R: new Mv(),
6043
- u: new Tv(),
6042
+ R: new Tv(),
6043
+ u: new Mv(),
6044
6044
  Q: new Sv(),
6045
6045
  q: new kv(),
6046
6046
  M: new Dv(),
@@ -6225,7 +6225,7 @@ function _x(e, t) {
6225
6225
  return kx(t, r, l) ? wx(t, r, l) : /* @__PURE__ */ new Date(NaN);
6226
6226
  {
6227
6227
  const c = /* @__PURE__ */ new Date(0);
6228
- return !Tx(t, o, a) || !Sx(t, s) ? /* @__PURE__ */ new Date(NaN) : (c.setUTCFullYear(t, o, Math.max(s, a)), c);
6228
+ return !Mx(t, o, a) || !Sx(t, s) ? /* @__PURE__ */ new Date(NaN) : (c.setUTCFullYear(t, o, Math.max(s, a)), c);
6229
6229
  }
6230
6230
  }
6231
6231
  function Di(e) {
@@ -6253,12 +6253,12 @@ function wx(e, t, n) {
6253
6253
  const s = i.getUTCDay() || 7, o = (t - 1) * 7 + n + 1 - s;
6254
6254
  return i.setUTCDate(i.getUTCDate() + o), i;
6255
6255
  }
6256
- const Mx = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
6256
+ const Tx = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
6257
6257
  function eh(e) {
6258
6258
  return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
6259
6259
  }
6260
- function Tx(e, t, n) {
6261
- return t >= 0 && t <= 11 && n >= 1 && n <= (Mx[t] || (eh(e) ? 29 : 28));
6260
+ function Mx(e, t, n) {
6261
+ return t >= 0 && t <= 11 && n >= 1 && n <= (Tx[t] || (eh(e) ? 29 : 28));
6262
6262
  }
6263
6263
  function Sx(e, t) {
6264
6264
  return t >= 1 && t <= (eh(e) ? 366 : 365);
@@ -6754,7 +6754,7 @@ function ye(e, t) {
6754
6754
  function it(e, t) {
6755
6755
  return typeof e > "u" ? t : e;
6756
6756
  }
6757
- const Mw = (e, t) => typeof e == "string" && e.endsWith("%") ? parseFloat(e) / 100 : +e / t, oh = (e, t) => typeof e == "string" && e.endsWith("%") ? parseFloat(e) / 100 * t : +e;
6757
+ const Tw = (e, t) => typeof e == "string" && e.endsWith("%") ? parseFloat(e) / 100 : +e / t, oh = (e, t) => typeof e == "string" && e.endsWith("%") ? parseFloat(e) / 100 * t : +e;
6758
6758
  function xt(e, t, n) {
6759
6759
  if (e && typeof e.call == "function")
6760
6760
  return e.apply(n, t);
@@ -6796,7 +6796,7 @@ function ah(e) {
6796
6796
  "constructor"
6797
6797
  ].indexOf(e) === -1;
6798
6798
  }
6799
- function Tw(e, t, n, i) {
6799
+ function Mw(e, t, n, i) {
6800
6800
  if (!ah(e))
6801
6801
  return;
6802
6802
  const s = t[e], o = n[e];
@@ -6809,7 +6809,7 @@ function Qi(e, t, n) {
6809
6809
  if (!rt(e))
6810
6810
  return e;
6811
6811
  n = n || {};
6812
- const o = n.merger || Tw;
6812
+ const o = n.merger || Mw;
6813
6813
  let a;
6814
6814
  for (let r = 0; r < s; ++r) {
6815
6815
  if (a = i[r], !rt(a))
@@ -6873,7 +6873,7 @@ const pe = (e) => typeof e < "u", me = (e) => typeof e == "function", nc = (e, t
6873
6873
  function Cw(e) {
6874
6874
  return e.type === "mouseup" || e.type === "click" || e.type === "contextmenu";
6875
6875
  }
6876
- const at = Math.PI, Tt = 2 * at, Ow = Tt + at, so = Number.POSITIVE_INFINITY, Mr = at / 180, kt = at / 2, xe = at / 4, oo = at * 2 / 3, nn = Math.log10, Pe = Math.sign;
6876
+ const at = Math.PI, Mt = 2 * at, Ow = Mt + at, so = Number.POSITIVE_INFINITY, Tr = at / 180, kt = at / 2, xe = at / 4, oo = at * 2 / 3, nn = Math.log10, Pe = Math.sign;
6877
6877
  function Yi(e, t, n) {
6878
6878
  return Math.abs(e - t) < n;
6879
6879
  }
@@ -6922,7 +6922,7 @@ function sc(e) {
6922
6922
  function ao(e, t) {
6923
6923
  const n = t.x - e.x, i = t.y - e.y, s = Math.sqrt(n * n + i * i);
6924
6924
  let o = Math.atan2(i, n);
6925
- return o < -0.5 * at && (o += Tt), {
6925
+ return o < -0.5 * at && (o += Mt), {
6926
6926
  angle: o,
6927
6927
  distance: s
6928
6928
  };
@@ -6931,10 +6931,10 @@ function ui(e, t) {
6931
6931
  return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
6932
6932
  }
6933
6933
  function Iw(e, t) {
6934
- return (e - t + Ow) % Tt - at;
6934
+ return (e - t + Ow) % Mt - at;
6935
6935
  }
6936
6936
  function Jt(e) {
6937
- return (e % Tt + Tt) % Tt;
6937
+ return (e % Mt + Mt) % Mt;
6938
6938
  }
6939
6939
  function Ji(e, t, n, i) {
6940
6940
  const s = Jt(e), o = Jt(t), a = Jt(n), r = Jt(o - s), l = Jt(a - s), c = Jt(s - o), u = Jt(s - a);
@@ -6949,7 +6949,7 @@ function Ew(e) {
6949
6949
  function Be(e, t, n, i = 1e-6) {
6950
6950
  return e >= Math.min(t, n) - i && e <= Math.max(t, n) + i;
6951
6951
  }
6952
- function Tr(e, t, n) {
6952
+ function Mr(e, t, n) {
6953
6953
  n = n || ((a) => e[a] < t);
6954
6954
  let i = e.length - 1, s = 0, o;
6955
6955
  for (; i - s > 1; )
@@ -6959,10 +6959,10 @@ function Tr(e, t, n) {
6959
6959
  hi: i
6960
6960
  };
6961
6961
  }
6962
- const He = (e, t, n, i) => Tr(e, n, i ? (s) => {
6962
+ const He = (e, t, n, i) => Mr(e, n, i ? (s) => {
6963
6963
  const o = e[s][t];
6964
6964
  return o < n || o === n && e[s + 1][t] === n;
6965
- } : (s) => e[s][t] < n), Lw = (e, t, n) => Tr(e, n, (i) => e[i][t] >= n);
6965
+ } : (s) => e[s][t] < n), Lw = (e, t, n) => Mr(e, n, (i) => e[i][t] >= n);
6966
6966
  function Nw(e, t, n) {
6967
6967
  let i = 0, s = e.length;
6968
6968
  for (; i < s && e[i] < t; )
@@ -7087,7 +7087,7 @@ function fh(e) {
7087
7087
  const o = i.xmin !== t.min || i.xmax !== t.max || i.ymin !== n.min || i.ymax !== n.max;
7088
7088
  return Object.assign(i, s), o;
7089
7089
  }
7090
- const Ps = (e) => e === 0 || e === 1, ac = (e, t, n) => -(Math.pow(2, 10 * (e -= 1)) * Math.sin((e - t) * Tt / n)), rc = (e, t, n) => Math.pow(2, -10 * e) * Math.sin((e - t) * Tt / n) + 1, Wi = {
7090
+ const Ps = (e) => e === 0 || e === 1, ac = (e, t, n) => -(Math.pow(2, 10 * (e -= 1)) * Math.sin((e - t) * Mt / n)), rc = (e, t, n) => Math.pow(2, -10 * e) * Math.sin((e - t) * Mt / n) + 1, Wi = {
7091
7091
  linear: (e) => e,
7092
7092
  easeInQuad: (e) => e * e,
7093
7093
  easeOutQuad: (e) => -e * (e - 2),
@@ -7468,7 +7468,7 @@ function La(e, t, n, i) {
7468
7468
  function gh(e, t, n, i, s) {
7469
7469
  let o, a, r, l, c, u, d, h;
7470
7470
  const f = t.pointStyle, m = t.rotation, g = t.radius;
7471
- let p = (m || 0) * Mr;
7471
+ let p = (m || 0) * Tr;
7472
7472
  if (f && typeof f == "object" && (o = f.toString(), o === "[object HTMLImageElement]" || o === "[object HTMLCanvasElement]")) {
7473
7473
  e.save(), e.translate(n, i), e.rotate(p), e.drawImage(f, -f.width / 2, -f.height / 2, f.width, f.height), e.restore();
7474
7474
  return;
@@ -7477,7 +7477,7 @@ function gh(e, t, n, i, s) {
7477
7477
  switch (e.beginPath(), f) {
7478
7478
  // Default includes circle
7479
7479
  default:
7480
- s ? e.ellipse(n, i, s / 2, g, 0, 0, Tt) : e.arc(n, i, g, 0, Tt), e.closePath();
7480
+ s ? e.ellipse(n, i, s / 2, g, 0, 0, Mt) : e.arc(n, i, g, 0, Mt), e.closePath();
7481
7481
  break;
7482
7482
  case "triangle":
7483
7483
  u = s ? s / 2 : g, e.moveTo(n + Math.sin(p) * u, i - Math.cos(p) * g), p += oo, e.lineTo(n + Math.sin(p) * u, i - Math.cos(p) * g), p += oo, e.lineTo(n + Math.sin(p) * u, i - Math.cos(p) * g), e.closePath();
@@ -7549,7 +7549,7 @@ function Jw(e, t, n, i, s) {
7549
7549
  e.strokeStyle = e.fillStyle, e.beginPath(), e.lineWidth = s.decorationWidth || 2, e.moveTo(a, u), e.lineTo(r, u), e.stroke();
7550
7550
  }
7551
7551
  }
7552
- function tM(e, t) {
7552
+ function tT(e, t) {
7553
7553
  const n = e.fillStyle;
7554
7554
  e.fillStyle = t.color, e.fillRect(t.left, t.top, t.width, t.height), e.fillStyle = n;
7555
7555
  }
@@ -7559,16 +7559,16 @@ function Rn(e, t, n, i, s, o = {}) {
7559
7559
  ], r = o.strokeWidth > 0 && o.strokeColor !== "";
7560
7560
  let l, c;
7561
7561
  for (e.save(), e.font = s.string, Qw(e, o), l = 0; l < a.length; ++l)
7562
- c = a[l], o.backdrop && tM(e, o.backdrop), r && (o.strokeColor && (e.strokeStyle = o.strokeColor), nt(o.strokeWidth) || (e.lineWidth = o.strokeWidth), e.strokeText(c, n, i, o.maxWidth)), e.fillText(c, n, i, o.maxWidth), Jw(e, n, i, c, o), i += Number(s.lineHeight);
7562
+ c = a[l], o.backdrop && tT(e, o.backdrop), r && (o.strokeColor && (e.strokeStyle = o.strokeColor), nt(o.strokeWidth) || (e.lineWidth = o.strokeWidth), e.strokeText(c, n, i, o.maxWidth)), e.fillText(c, n, i, o.maxWidth), Jw(e, n, i, c, o), i += Number(s.lineHeight);
7563
7563
  e.restore();
7564
7564
  }
7565
7565
  function di(e, t) {
7566
7566
  const { x: n, y: i, w: s, h: o, radius: a } = t;
7567
7567
  e.arc(n + a.topLeft, i + a.topLeft, a.topLeft, 1.5 * at, at, !0), e.lineTo(n, i + o - a.bottomLeft), e.arc(n + a.bottomLeft, i + o - a.bottomLeft, a.bottomLeft, at, kt, !0), e.lineTo(n + s - a.bottomRight, i + o), e.arc(n + s - a.bottomRight, i + o - a.bottomRight, a.bottomRight, kt, 0, !0), e.lineTo(n + s, i + a.topRight), e.arc(n + s - a.topRight, i + a.topRight, a.topRight, 0, -kt, !0), e.lineTo(n + a.topLeft, i);
7568
7568
  }
7569
- const eM = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, nM = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
7570
- function iM(e, t) {
7571
- const n = ("" + e).match(eM);
7569
+ const eT = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, nT = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
7570
+ function iT(e, t) {
7571
+ const n = ("" + e).match(eT);
7572
7572
  if (!n || n[1] === "normal")
7573
7573
  return t * 1.2;
7574
7574
  switch (e = +n[2], n[3]) {
@@ -7580,11 +7580,11 @@ function iM(e, t) {
7580
7580
  }
7581
7581
  return t * e;
7582
7582
  }
7583
- const sM = (e) => +e || 0;
7583
+ const sT = (e) => +e || 0;
7584
7584
  function Dr(e, t) {
7585
7585
  const n = {}, i = rt(t), s = i ? Object.keys(t) : t, o = rt(e) ? i ? (a) => it(e[a], e[t[a]]) : (a) => e[a] : () => e;
7586
7586
  for (const a of s)
7587
- n[a] = sM(o(a));
7587
+ n[a] = sT(o(a));
7588
7588
  return n;
7589
7589
  }
7590
7590
  function ph(e) {
@@ -7612,10 +7612,10 @@ function Pt(e, t) {
7612
7612
  let n = it(e.size, t.size);
7613
7613
  typeof n == "string" && (n = parseInt(n, 10));
7614
7614
  let i = it(e.style, t.style);
7615
- i && !("" + i).match(nM) && (console.warn('Invalid font style specified: "' + i + '"'), i = void 0);
7615
+ i && !("" + i).match(nT) && (console.warn('Invalid font style specified: "' + i + '"'), i = void 0);
7616
7616
  const s = {
7617
7617
  family: it(e.family, t.family),
7618
- lineHeight: iM(it(e.lineHeight, t.lineHeight), n),
7618
+ lineHeight: iT(it(e.lineHeight, t.lineHeight), n),
7619
7619
  size: n,
7620
7620
  style: i,
7621
7621
  weight: it(e.weight, t.weight),
@@ -7629,7 +7629,7 @@ function Ni(e, t, n, i) {
7629
7629
  if (a = e[s], a !== void 0 && a !== void 0)
7630
7630
  return a;
7631
7631
  }
7632
- function oM(e, t, n) {
7632
+ function oT(e, t, n) {
7633
7633
  const { min: i, max: s } = e, o = oh(t, (s - i) / 2), a = (r, l) => n && r === 0 ? 0 : r + l;
7634
7634
  return {
7635
7635
  min: a(i, -Math.abs(o)),
@@ -7667,7 +7667,7 @@ function Cr(e, t = [
7667
7667
  * A trap for getting property values.
7668
7668
  */
7669
7669
  get(r, l) {
7670
- return bh(r, l, () => fM(l, t, e, r));
7670
+ return bh(r, l, () => fT(l, t, e, r));
7671
7671
  },
7672
7672
  /**
7673
7673
  * A trap for Object.getOwnPropertyDescriptor.
@@ -7725,7 +7725,7 @@ function hi(e, t, n, i) {
7725
7725
  * A trap for getting property values.
7726
7726
  */
7727
7727
  get(o, a, r) {
7728
- return bh(o, a, () => rM(o, a, r));
7728
+ return bh(o, a, () => rT(o, a, r));
7729
7729
  },
7730
7730
  /**
7731
7731
  * A trap for Object.getOwnPropertyDescriptor.
@@ -7776,19 +7776,19 @@ function yh(e, t = {
7776
7776
  isIndexable: me(i) ? i : () => i
7777
7777
  };
7778
7778
  }
7779
- const aM = (e, t) => e ? e + wr(t) : t, Or = (e, t) => rt(t) && e !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
7779
+ const aT = (e, t) => e ? e + wr(t) : t, Or = (e, t) => rt(t) && e !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
7780
7780
  function bh(e, t, n) {
7781
7781
  if (Object.prototype.hasOwnProperty.call(e, t) || t === "constructor")
7782
7782
  return e[t];
7783
7783
  const i = n();
7784
7784
  return e[t] = i, i;
7785
7785
  }
7786
- function rM(e, t, n) {
7786
+ function rT(e, t, n) {
7787
7787
  const { _proxy: i, _context: s, _subProxy: o, _descriptors: a } = e;
7788
7788
  let r = i[t];
7789
- return me(r) && a.isScriptable(t) && (r = lM(t, r, e, n)), bt(r) && r.length && (r = cM(t, r, e, a.isIndexable)), Or(t, r) && (r = hi(r, s, o && o[t], a)), r;
7789
+ return me(r) && a.isScriptable(t) && (r = lT(t, r, e, n)), bt(r) && r.length && (r = cT(t, r, e, a.isIndexable)), Or(t, r) && (r = hi(r, s, o && o[t], a)), r;
7790
7790
  }
7791
- function lM(e, t, n, i) {
7791
+ function lT(e, t, n, i) {
7792
7792
  const { _proxy: s, _context: o, _subProxy: a, _stack: r } = n;
7793
7793
  if (r.has(e))
7794
7794
  throw new Error("Recursion detected: " + Array.from(r).join("->") + "->" + e);
@@ -7796,7 +7796,7 @@ function lM(e, t, n, i) {
7796
7796
  let l = t(o, a || i);
7797
7797
  return r.delete(e), Or(e, l) && (l = Pr(s._scopes, s, e, l)), l;
7798
7798
  }
7799
- function cM(e, t, n, i) {
7799
+ function cT(e, t, n, i) {
7800
7800
  const { _proxy: s, _context: o, _subProxy: a, _descriptors: r } = n;
7801
7801
  if (typeof o.index < "u" && i(e))
7802
7802
  return t[o.index % t.length];
@@ -7813,10 +7813,10 @@ function cM(e, t, n, i) {
7813
7813
  function _h(e, t, n) {
7814
7814
  return me(e) ? e(t, n) : e;
7815
7815
  }
7816
- const uM = (e, t) => e === !0 ? t : typeof e == "string" ? un(t, e) : void 0;
7817
- function dM(e, t, n, i, s) {
7816
+ const uT = (e, t) => e === !0 ? t : typeof e == "string" ? un(t, e) : void 0;
7817
+ function dT(e, t, n, i, s) {
7818
7818
  for (const o of t) {
7819
- const a = uM(n, o);
7819
+ const a = uT(n, o);
7820
7820
  if (a) {
7821
7821
  e.add(a);
7822
7822
  const r = _h(a._fallback, n, s);
@@ -7836,23 +7836,23 @@ function Pr(e, t, n, i) {
7836
7836
  let l = uc(r, a, n, o || n, i);
7837
7837
  return l === null || typeof o < "u" && o !== n && (l = uc(r, a, o, l, i), l === null) ? !1 : Cr(Array.from(r), [
7838
7838
  ""
7839
- ], s, o, () => hM(t, n, i));
7839
+ ], s, o, () => hT(t, n, i));
7840
7840
  }
7841
7841
  function uc(e, t, n, i, s) {
7842
7842
  for (; n; )
7843
- n = dM(e, t, n, i, s);
7843
+ n = dT(e, t, n, i, s);
7844
7844
  return n;
7845
7845
  }
7846
- function hM(e, t, n) {
7846
+ function hT(e, t, n) {
7847
7847
  const i = e._getTarget();
7848
7848
  t in i || (i[t] = {});
7849
7849
  const s = i[t];
7850
7850
  return bt(s) && rt(n) ? n : s || {};
7851
7851
  }
7852
- function fM(e, t, n, i) {
7852
+ function fT(e, t, n, i) {
7853
7853
  let s;
7854
7854
  for (const o of t)
7855
- if (s = vh(aM(o, e), n), typeof s < "u")
7855
+ if (s = vh(aT(o, e), n), typeof s < "u")
7856
7856
  return Or(e, s) ? Pr(n, i, e, s) : s;
7857
7857
  }
7858
7858
  function vh(e, t) {
@@ -7866,9 +7866,9 @@ function vh(e, t) {
7866
7866
  }
7867
7867
  function dc(e) {
7868
7868
  let t = e._keys;
7869
- return t || (t = e._keys = mM(e._scopes)), t;
7869
+ return t || (t = e._keys = mT(e._scopes)), t;
7870
7870
  }
7871
- function mM(e) {
7871
+ function mT(e) {
7872
7872
  const t = /* @__PURE__ */ new Set();
7873
7873
  for (const n of e)
7874
7874
  for (const i of Object.keys(n).filter((s) => !s.startsWith("_")))
@@ -7884,8 +7884,8 @@ function xh(e, t, n, i) {
7884
7884
  };
7885
7885
  return a;
7886
7886
  }
7887
- const gM = Number.EPSILON || 1e-14, fi = (e, t) => t < e.length && !e[t].skip && e[t], wh = (e) => e === "x" ? "y" : "x";
7888
- function pM(e, t, n, i) {
7887
+ const gT = Number.EPSILON || 1e-14, fi = (e, t) => t < e.length && !e[t].skip && e[t], wh = (e) => e === "x" ? "y" : "x";
7888
+ function pT(e, t, n, i) {
7889
7889
  const s = e.skip ? t : e, o = t, a = n.skip ? t : n, r = ui(o, s), l = ui(a, o);
7890
7890
  let c = r / (r + l), u = l / (r + l);
7891
7891
  c = isNaN(c) ? 0 : c, u = isNaN(u) ? 0 : u;
@@ -7901,19 +7901,19 @@ function pM(e, t, n, i) {
7901
7901
  }
7902
7902
  };
7903
7903
  }
7904
- function yM(e, t, n) {
7904
+ function yT(e, t, n) {
7905
7905
  const i = e.length;
7906
7906
  let s, o, a, r, l, c = fi(e, 0);
7907
7907
  for (let u = 0; u < i - 1; ++u)
7908
7908
  if (l = c, c = fi(e, u + 1), !(!l || !c)) {
7909
- if (Yi(t[u], 0, gM)) {
7909
+ if (Yi(t[u], 0, gT)) {
7910
7910
  n[u] = n[u + 1] = 0;
7911
7911
  continue;
7912
7912
  }
7913
7913
  s = n[u] / t[u], o = n[u + 1] / t[u], r = Math.pow(s, 2) + Math.pow(o, 2), !(r <= 9) && (a = 3 / Math.sqrt(r), n[u] = s * a * t[u], n[u + 1] = o * a * t[u]);
7914
7914
  }
7915
7915
  }
7916
- function bM(e, t, n = "x") {
7916
+ function bT(e, t, n = "x") {
7917
7917
  const i = wh(n), s = e.length;
7918
7918
  let o, a, r, l = fi(e, 0);
7919
7919
  for (let c = 0; c < s; ++c) {
@@ -7923,7 +7923,7 @@ function bM(e, t, n = "x") {
7923
7923
  a && (o = (u - a[n]) / 3, r[`cp1${n}`] = u - o, r[`cp1${i}`] = d - o * t[c]), l && (o = (l[n] - u) / 3, r[`cp2${n}`] = u + o, r[`cp2${i}`] = d + o * t[c]);
7924
7924
  }
7925
7925
  }
7926
- function _M(e, t = "x") {
7926
+ function _T(e, t = "x") {
7927
7927
  const n = wh(t), i = e.length, s = Array(i).fill(0), o = Array(i);
7928
7928
  let a, r, l, c = fi(e, 0);
7929
7929
  for (a = 0; a < i; ++a)
@@ -7934,26 +7934,26 @@ function _M(e, t = "x") {
7934
7934
  }
7935
7935
  o[a] = r ? c ? Pe(s[a - 1]) !== Pe(s[a]) ? 0 : (s[a - 1] + s[a]) / 2 : s[a - 1] : s[a];
7936
7936
  }
7937
- yM(e, s, o), bM(e, o, t);
7937
+ yT(e, s, o), bT(e, o, t);
7938
7938
  }
7939
7939
  function As(e, t, n) {
7940
7940
  return Math.max(Math.min(e, n), t);
7941
7941
  }
7942
- function vM(e, t) {
7942
+ function vT(e, t) {
7943
7943
  let n, i, s, o, a, r = $e(e[0], t);
7944
7944
  for (n = 0, i = e.length; n < i; ++n)
7945
7945
  a = o, o = r, r = n < i - 1 && $e(e[n + 1], t), o && (s = e[n], a && (s.cp1x = As(s.cp1x, t.left, t.right), s.cp1y = As(s.cp1y, t.top, t.bottom)), r && (s.cp2x = As(s.cp2x, t.left, t.right), s.cp2y = As(s.cp2y, t.top, t.bottom)));
7946
7946
  }
7947
- function xM(e, t, n, i, s) {
7947
+ function xT(e, t, n, i, s) {
7948
7948
  let o, a, r, l;
7949
7949
  if (t.spanGaps && (e = e.filter((c) => !c.skip)), t.cubicInterpolationMode === "monotone")
7950
- _M(e, s);
7950
+ _T(e, s);
7951
7951
  else {
7952
7952
  let c = i ? e[e.length - 1] : e[0];
7953
7953
  for (o = 0, a = e.length; o < a; ++o)
7954
- r = e[o], l = pM(c, r, e[Math.min(o + 1, a - (i ? 0 : 1)) % a], t.tension), r.cp1x = l.previous.x, r.cp1y = l.previous.y, r.cp2x = l.next.x, r.cp2y = l.next.y, c = r;
7954
+ r = e[o], l = pT(c, r, e[Math.min(o + 1, a - (i ? 0 : 1)) % a], t.tension), r.cp1x = l.previous.x, r.cp1y = l.previous.y, r.cp2x = l.next.x, r.cp2y = l.next.y, c = r;
7955
7955
  }
7956
- t.capBezierPoints && vM(e, n);
7956
+ t.capBezierPoints && vT(e, n);
7957
7957
  }
7958
7958
  function Ar() {
7959
7959
  return typeof window < "u" && typeof document < "u";
@@ -7967,10 +7967,10 @@ function co(e, t, n) {
7967
7967
  return typeof e == "string" ? (i = parseInt(e, 10), e.indexOf("%") !== -1 && (i = i / 100 * t.parentNode[n])) : i = e, i;
7968
7968
  }
7969
7969
  const vo = (e) => e.ownerDocument.defaultView.getComputedStyle(e, null);
7970
- function wM(e, t) {
7970
+ function wT(e, t) {
7971
7971
  return vo(e).getPropertyValue(t);
7972
7972
  }
7973
- const MM = [
7973
+ const TT = [
7974
7974
  "top",
7975
7975
  "right",
7976
7976
  "bottom",
@@ -7980,16 +7980,16 @@ function Pn(e, t, n) {
7980
7980
  const i = {};
7981
7981
  n = n ? "-" + n : "";
7982
7982
  for (let s = 0; s < 4; s++) {
7983
- const o = MM[s];
7983
+ const o = TT[s];
7984
7984
  i[o] = parseFloat(e[t + "-" + o + n]) || 0;
7985
7985
  }
7986
7986
  return i.width = i.left + i.right, i.height = i.top + i.bottom, i;
7987
7987
  }
7988
- const TM = (e, t, n) => (e > 0 || t > 0) && (!n || !n.shadowRoot);
7989
- function SM(e, t) {
7988
+ const MT = (e, t, n) => (e > 0 || t > 0) && (!n || !n.shadowRoot);
7989
+ function ST(e, t) {
7990
7990
  const n = e.touches, i = n && n.length ? n[0] : e, { offsetX: s, offsetY: o } = i;
7991
7991
  let a = !1, r, l;
7992
- if (TM(s, o, e.target))
7992
+ if (MT(s, o, e.target))
7993
7993
  r = s, l = o;
7994
7994
  else {
7995
7995
  const c = t.getBoundingClientRect();
@@ -8004,14 +8004,14 @@ function SM(e, t) {
8004
8004
  function Je(e, t) {
8005
8005
  if ("native" in e)
8006
8006
  return e;
8007
- const { canvas: n, currentDevicePixelRatio: i } = t, s = vo(n), o = s.boxSizing === "border-box", a = Pn(s, "padding"), r = Pn(s, "border", "width"), { x: l, y: c, box: u } = SM(e, n), d = a.left + (u && r.left), h = a.top + (u && r.top);
8007
+ const { canvas: n, currentDevicePixelRatio: i } = t, s = vo(n), o = s.boxSizing === "border-box", a = Pn(s, "padding"), r = Pn(s, "border", "width"), { x: l, y: c, box: u } = ST(e, n), d = a.left + (u && r.left), h = a.top + (u && r.top);
8008
8008
  let { width: f, height: m } = t;
8009
8009
  return o && (f -= a.width + r.width, m -= a.height + r.height), {
8010
8010
  x: Math.round((l - d) / f * n.width / i),
8011
8011
  y: Math.round((c - h) / m * n.height / i)
8012
8012
  };
8013
8013
  }
8014
- function kM(e, t, n) {
8014
+ function kT(e, t, n) {
8015
8015
  let i, s;
8016
8016
  if (t === void 0 || n === void 0) {
8017
8017
  const o = e && Rr(e);
@@ -8030,8 +8030,8 @@ function kM(e, t, n) {
8030
8030
  };
8031
8031
  }
8032
8032
  const sn = (e) => Math.round(e * 10) / 10;
8033
- function DM(e, t, n, i) {
8034
- const s = vo(e), o = Pn(s, "margin"), a = co(s.maxWidth, e, "clientWidth") || so, r = co(s.maxHeight, e, "clientHeight") || so, l = kM(e, t, n);
8033
+ function DT(e, t, n, i) {
8034
+ const s = vo(e), o = Pn(s, "margin"), a = co(s.maxWidth, e, "clientWidth") || so, r = co(s.maxHeight, e, "clientHeight") || so, l = kT(e, t, n);
8035
8035
  let { width: c, height: u } = l;
8036
8036
  if (s.boxSizing === "content-box") {
8037
8037
  const h = Pn(s, "border", "width"), f = Pn(s, "padding");
@@ -8048,7 +8048,7 @@ function hc(e, t, n) {
8048
8048
  const a = e.canvas;
8049
8049
  return a.style && (n || !a.style.height && !a.style.width) && (a.style.height = `${e.height}px`, a.style.width = `${e.width}px`), e.currentDevicePixelRatio !== i || a.height !== s || a.width !== o ? (e.currentDevicePixelRatio = i, a.height = s, a.width = o, e.ctx.setTransform(i, 0, 0, i, 0, 0), !0) : !1;
8050
8050
  }
8051
- const CM = (function() {
8051
+ const CT = (function() {
8052
8052
  let e = !1;
8053
8053
  try {
8054
8054
  const t = {
@@ -8062,7 +8062,7 @@ const CM = (function() {
8062
8062
  return e;
8063
8063
  })();
8064
8064
  function fc(e, t) {
8065
- const n = wM(e, t), i = n && n.match(/^(\d+)(\.\d+)?px$/);
8065
+ const n = wT(e, t), i = n && n.match(/^(\d+)(\.\d+)?px$/);
8066
8066
  return i ? +i[1] : void 0;
8067
8067
  }
8068
8068
  function Dn(e, t, n, i) {
@@ -8071,13 +8071,13 @@ function Dn(e, t, n, i) {
8071
8071
  y: e.y + n * (t.y - e.y)
8072
8072
  };
8073
8073
  }
8074
- function OM(e, t, n, i) {
8074
+ function OT(e, t, n, i) {
8075
8075
  return {
8076
8076
  x: e.x + n * (t.x - e.x),
8077
8077
  y: i === "middle" ? n < 0.5 ? e.y : t.y : i === "after" ? n < 1 ? e.y : t.y : n > 0 ? t.y : e.y
8078
8078
  };
8079
8079
  }
8080
- function PM(e, t, n, i) {
8080
+ function PT(e, t, n, i) {
8081
8081
  const s = {
8082
8082
  x: e.cp2x,
8083
8083
  y: e.cp2y
@@ -8087,7 +8087,7 @@ function PM(e, t, n, i) {
8087
8087
  }, a = Dn(e, s, n), r = Dn(s, o, n), l = Dn(o, t, n), c = Dn(a, r, n), u = Dn(r, l, n);
8088
8088
  return Dn(c, u, n);
8089
8089
  }
8090
- const AM = function(e, t) {
8090
+ const AT = function(e, t) {
8091
8091
  return {
8092
8092
  x(n) {
8093
8093
  return e + e + t - n;
@@ -8105,7 +8105,7 @@ const AM = function(e, t) {
8105
8105
  return n - i;
8106
8106
  }
8107
8107
  };
8108
- }, RM = function() {
8108
+ }, RT = function() {
8109
8109
  return {
8110
8110
  x(e) {
8111
8111
  return e;
@@ -8124,16 +8124,16 @@ const AM = function(e, t) {
8124
8124
  };
8125
8125
  };
8126
8126
  function oi(e, t, n) {
8127
- return e ? AM(t, n) : RM();
8127
+ return e ? AT(t, n) : RT();
8128
8128
  }
8129
- function Mh(e, t) {
8129
+ function Th(e, t) {
8130
8130
  let n, i;
8131
8131
  (t === "ltr" || t === "rtl") && (n = e.canvas.style, i = [
8132
8132
  n.getPropertyValue("direction"),
8133
8133
  n.getPropertyPriority("direction")
8134
8134
  ], n.setProperty("direction", t, "important"), e.prevTextDirection = i);
8135
8135
  }
8136
- function Th(e, t) {
8136
+ function Mh(e, t) {
8137
8137
  t !== void 0 && (delete e.prevTextDirection, e.canvas.style.setProperty("direction", t[0], t[1]));
8138
8138
  }
8139
8139
  function Sh(e) {
@@ -8155,7 +8155,7 @@ function mc({ start: e, end: t, count: n, loop: i, style: s }) {
8155
8155
  style: s
8156
8156
  };
8157
8157
  }
8158
- function IM(e, t, n) {
8158
+ function IT(e, t, n) {
8159
8159
  const { property: i, start: s, end: o } = n, { between: a, normalize: r } = Sh(i), l = t.length;
8160
8160
  let { start: c, end: u, loop: d } = e, h, f;
8161
8161
  if (d) {
@@ -8175,11 +8175,11 @@ function kh(e, t, n) {
8175
8175
  return [
8176
8176
  e
8177
8177
  ];
8178
- const { property: i, start: s, end: o } = n, a = t.length, { compare: r, between: l, normalize: c } = Sh(i), { start: u, end: d, loop: h, style: f } = IM(e, t, n), m = [];
8178
+ const { property: i, start: s, end: o } = n, a = t.length, { compare: r, between: l, normalize: c } = Sh(i), { start: u, end: d, loop: h, style: f } = IT(e, t, n), m = [];
8179
8179
  let g = !1, p = null, b, _, x;
8180
- const S = () => l(s, x, b) && r(s, x) !== 0, v = () => r(o, b) === 0 || l(o, x, b), k = () => g || S(), T = () => !g || v();
8180
+ const S = () => l(s, x, b) && r(s, x) !== 0, v = () => r(o, b) === 0 || l(o, x, b), k = () => g || S(), M = () => !g || v();
8181
8181
  for (let P = u, I = u; P <= d; ++P)
8182
- _ = t[P % a], !_.skip && (b = c(_[i]), b !== x && (g = l(b, s, o), p === null && k() && (p = r(b, s) === 0 ? P : I), p !== null && T() && (m.push(mc({
8182
+ _ = t[P % a], !_.skip && (b = c(_[i]), b !== x && (g = l(b, s, o), p === null && k() && (p = r(b, s) === 0 ? P : I), p !== null && M() && (m.push(mc({
8183
8183
  start: p,
8184
8184
  end: P,
8185
8185
  loop: h,
@@ -8202,7 +8202,7 @@ function Dh(e, t) {
8202
8202
  }
8203
8203
  return n;
8204
8204
  }
8205
- function EM(e, t, n, i) {
8205
+ function ET(e, t, n, i) {
8206
8206
  let s = 0, o = t - 1;
8207
8207
  if (n && !i)
8208
8208
  for (; s < t && !e[s].skip; )
@@ -8216,7 +8216,7 @@ function EM(e, t, n, i) {
8216
8216
  end: o
8217
8217
  };
8218
8218
  }
8219
- function LM(e, t, n, i) {
8219
+ function LT(e, t, n, i) {
8220
8220
  const s = e.length, o = [];
8221
8221
  let a = t, r = e[t], l;
8222
8222
  for (l = t + 1; l <= n; ++l) {
@@ -8233,11 +8233,11 @@ function LM(e, t, n, i) {
8233
8233
  loop: i
8234
8234
  }), o;
8235
8235
  }
8236
- function NM(e, t) {
8236
+ function NT(e, t) {
8237
8237
  const n = e.points, i = e.options.spanGaps, s = n.length;
8238
8238
  if (!s)
8239
8239
  return [];
8240
- const o = !!e._loop, { start: a, end: r } = EM(n, s, o, i);
8240
+ const o = !!e._loop, { start: a, end: r } = ET(n, s, o, i);
8241
8241
  if (i === !0)
8242
8242
  return gc(e, [
8243
8243
  {
@@ -8247,12 +8247,12 @@ function NM(e, t) {
8247
8247
  }
8248
8248
  ], n, t);
8249
8249
  const l = r < a ? r + s : r, c = !!e._fullLoop && a === 0 && r === s - 1;
8250
- return gc(e, LM(n, a, l, c), n, t);
8250
+ return gc(e, LT(n, a, l, c), n, t);
8251
8251
  }
8252
8252
  function gc(e, t, n, i) {
8253
- return !i || !i.setContext || !n ? t : FM(e, t, n, i);
8253
+ return !i || !i.setContext || !n ? t : FT(e, t, n, i);
8254
8254
  }
8255
- function FM(e, t, n, i) {
8255
+ function FT(e, t, n, i) {
8256
8256
  const s = e._chart.getContext(), o = pc(e.options), { _datasetIndex: a, options: { spanGaps: r } } = e, l = n.length, c = [];
8257
8257
  let u = o, d = t[0].start, h = d;
8258
8258
  function f(m, g, p, b) {
@@ -8282,7 +8282,7 @@ function FM(e, t, n, i) {
8282
8282
  p0DataIndex: (h - 1) % l,
8283
8283
  p1DataIndex: h % l,
8284
8284
  datasetIndex: a
8285
- }))), zM(p, u) && f(d, h - 1, m.loop, u), g = b, u = p;
8285
+ }))), zT(p, u) && f(d, h - 1, m.loop, u), g = b, u = p;
8286
8286
  }
8287
8287
  d < h - 1 && f(d, h - 1, m.loop, u);
8288
8288
  }
@@ -8299,7 +8299,7 @@ function pc(e) {
8299
8299
  borderColor: e.borderColor
8300
8300
  };
8301
8301
  }
8302
- function zM(e, t) {
8302
+ function zT(e, t) {
8303
8303
  if (!t)
8304
8304
  return !1;
8305
8305
  const n = [], i = function(s, o) {
@@ -8310,7 +8310,7 @@ function zM(e, t) {
8310
8310
  function Rs(e, t, n) {
8311
8311
  return e.options.clip ? e[n] : t[n];
8312
8312
  }
8313
- function UM(e, t) {
8313
+ function UT(e, t) {
8314
8314
  const { xScale: n, yScale: i } = e;
8315
8315
  return n && i ? {
8316
8316
  left: Rs(n, t, "left"),
@@ -8323,7 +8323,7 @@ function Ch(e, t) {
8323
8323
  const n = t._clip;
8324
8324
  if (n.disabled)
8325
8325
  return !1;
8326
- const i = UM(t, e.chartArea);
8326
+ const i = UT(t, e.chartArea);
8327
8327
  return {
8328
8328
  left: n.left === !1 ? 0 : i.left - (n.left === !0 ? 0 : n.left),
8329
8329
  right: n.right === !1 ? e.width : i.right + (n.right === !0 ? 0 : n.right),
@@ -8331,7 +8331,7 @@ function Ch(e, t) {
8331
8331
  bottom: n.bottom === !1 ? e.height : i.bottom + (n.bottom === !0 ? 0 : n.bottom)
8332
8332
  };
8333
8333
  }
8334
- class BM {
8334
+ class BT {
8335
8335
  constructor() {
8336
8336
  this._request = null, this._charts = /* @__PURE__ */ new Map(), this._running = !1, this._lastDate = void 0;
8337
8337
  }
@@ -8407,8 +8407,8 @@ class BM {
8407
8407
  return this._charts.delete(t);
8408
8408
  }
8409
8409
  }
8410
- var Fe = /* @__PURE__ */ new BM();
8411
- const yc = "transparent", HM = {
8410
+ var Fe = /* @__PURE__ */ new BT();
8411
+ const yc = "transparent", HT = {
8412
8412
  boolean(e, t, n) {
8413
8413
  return n > 0.5 ? t : e;
8414
8414
  },
@@ -8420,7 +8420,7 @@ const yc = "transparent", HM = {
8420
8420
  return e + (t - e) * n;
8421
8421
  }
8422
8422
  };
8423
- class $M {
8423
+ class $T {
8424
8424
  constructor(t, n, i, s) {
8425
8425
  const o = n[i];
8426
8426
  s = Ni([
@@ -8434,7 +8434,7 @@ class $M {
8434
8434
  o,
8435
8435
  s
8436
8436
  ]);
8437
- this._active = !0, this._fn = t.fn || HM[t.type || typeof a], this._easing = Wi[t.easing] || Wi.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = n, this._prop = i, this._from = a, this._to = s, this._promises = void 0;
8437
+ this._active = !0, this._fn = t.fn || HT[t.type || typeof a], this._easing = Wi[t.easing] || Wi.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = n, this._prop = i, this._from = a, this._to = s, this._promises = void 0;
8438
8438
  }
8439
8439
  active() {
8440
8440
  return this._active;
@@ -8509,11 +8509,11 @@ class Ir {
8509
8509
  });
8510
8510
  }
8511
8511
  _animateOptions(t, n) {
8512
- const i = n.options, s = WM(t, i);
8512
+ const i = n.options, s = WT(t, i);
8513
8513
  if (!s)
8514
8514
  return [];
8515
8515
  const o = this._createAnimations(s, i);
8516
- return i.$shared && YM(t.options.$animations, i).then(() => {
8516
+ return i.$shared && YT(t.options.$animations, i).then(() => {
8517
8517
  t.options = i;
8518
8518
  }, () => {
8519
8519
  }), o;
@@ -8542,7 +8542,7 @@ class Ir {
8542
8542
  t[c] = u;
8543
8543
  continue;
8544
8544
  }
8545
- o[c] = d = new $M(h, t, c, u), s.push(d);
8545
+ o[c] = d = new $T(h, t, c, u), s.push(d);
8546
8546
  }
8547
8547
  return s;
8548
8548
  }
@@ -8556,7 +8556,7 @@ class Ir {
8556
8556
  return Fe.add(this._chart, i), !0;
8557
8557
  }
8558
8558
  }
8559
- function YM(e, t) {
8559
+ function YT(e, t) {
8560
8560
  const n = [], i = Object.keys(t);
8561
8561
  for (let s = 0; s < i.length; s++) {
8562
8562
  const o = e[i[s]];
@@ -8564,7 +8564,7 @@ function YM(e, t) {
8564
8564
  }
8565
8565
  return Promise.all(n);
8566
8566
  }
8567
- function WM(e, t) {
8567
+ function WT(e, t) {
8568
8568
  if (!t)
8569
8569
  return;
8570
8570
  let n = e.options;
@@ -8584,7 +8584,7 @@ function bc(e, t) {
8584
8584
  end: i ? s : o
8585
8585
  };
8586
8586
  }
8587
- function VM(e, t, n) {
8587
+ function VT(e, t, n) {
8588
8588
  if (n === !1)
8589
8589
  return !1;
8590
8590
  const i = bc(e, n), s = bc(t, n);
@@ -8595,7 +8595,7 @@ function VM(e, t, n) {
8595
8595
  left: i.start
8596
8596
  };
8597
8597
  }
8598
- function jM(e) {
8598
+ function jT(e) {
8599
8599
  let t, n, i, s;
8600
8600
  return rt(e) ? (t = e.top, n = e.right, i = e.bottom, s = e.left) : t = n = i = s = e, {
8601
8601
  top: t,
@@ -8628,7 +8628,7 @@ function _c(e, t, n, i = {}) {
8628
8628
  }
8629
8629
  return !u && !i.all ? 0 : t;
8630
8630
  }
8631
- function qM(e, t) {
8631
+ function qT(e, t) {
8632
8632
  const { iScale: n, vScale: i } = t, s = n.axis === "x" ? "x" : "y", o = i.axis === "x" ? "x" : "y", a = Object.keys(e), r = new Array(a.length);
8633
8633
  let l, c, u;
8634
8634
  for (l = 0, c = a.length; l < c; ++l)
@@ -8642,17 +8642,17 @@ function na(e, t) {
8642
8642
  const n = e && e.options.stacked;
8643
8643
  return n || n === void 0 && t.stack !== void 0;
8644
8644
  }
8645
- function GM(e, t, n) {
8645
+ function GT(e, t, n) {
8646
8646
  return `${e.id}.${t.id}.${n.stack || n.type}`;
8647
8647
  }
8648
- function XM(e) {
8648
+ function XT(e) {
8649
8649
  const { min: t, max: n, minDefined: i, maxDefined: s } = e.getUserBounds();
8650
8650
  return {
8651
8651
  min: i ? t : Number.NEGATIVE_INFINITY,
8652
8652
  max: s ? n : Number.POSITIVE_INFINITY
8653
8653
  };
8654
8654
  }
8655
- function KM(e, t, n) {
8655
+ function KT(e, t, n) {
8656
8656
  const i = e[t] || (e[t] = {});
8657
8657
  return i[n] || (i[n] = {});
8658
8658
  }
@@ -8665,11 +8665,11 @@ function vc(e, t, n, i) {
8665
8665
  return null;
8666
8666
  }
8667
8667
  function xc(e, t) {
8668
- const { chart: n, _cachedMeta: i } = e, s = n._stacks || (n._stacks = {}), { iScale: o, vScale: a, index: r } = i, l = o.axis, c = a.axis, u = GM(o, a, i), d = t.length;
8668
+ const { chart: n, _cachedMeta: i } = e, s = n._stacks || (n._stacks = {}), { iScale: o, vScale: a, index: r } = i, l = o.axis, c = a.axis, u = GT(o, a, i), d = t.length;
8669
8669
  let h;
8670
8670
  for (let f = 0; f < d; ++f) {
8671
8671
  const m = t[f], { [l]: g, [c]: p } = m, b = m._stacks || (m._stacks = {});
8672
- h = b[c] = KM(s, u, g), h[r] = p, h._top = vc(h, a, !0, i.type), h._bottom = vc(h, a, !1, i.type);
8672
+ h = b[c] = KT(s, u, g), h[r] = p, h._top = vc(h, a, !0, i.type), h._bottom = vc(h, a, !1, i.type);
8673
8673
  const _ = h._visualValues || (h._visualValues = {});
8674
8674
  _[r] = p;
8675
8675
  }
@@ -8678,7 +8678,7 @@ function ia(e, t) {
8678
8678
  const n = e.scales;
8679
8679
  return Object.keys(n).filter((i) => n[i].axis === t).shift();
8680
8680
  }
8681
- function ZM(e, t) {
8681
+ function ZT(e, t) {
8682
8682
  return gn(e, {
8683
8683
  active: !1,
8684
8684
  dataset: void 0,
@@ -8688,7 +8688,7 @@ function ZM(e, t) {
8688
8688
  type: "dataset"
8689
8689
  });
8690
8690
  }
8691
- function QM(e, t, n) {
8691
+ function QT(e, t, n) {
8692
8692
  return gn(e, {
8693
8693
  active: !1,
8694
8694
  dataIndex: t,
@@ -8712,7 +8712,7 @@ function Ci(e, t) {
8712
8712
  }
8713
8713
  }
8714
8714
  }
8715
- const sa = (e) => e === "reset" || e === "none", wc = (e, t) => t ? e : Object.assign({}, e), JM = (e, t, n) => e && !t.hidden && t._stacked && {
8715
+ const sa = (e) => e === "reset" || e === "none", wc = (e, t) => t ? e : Object.assign({}, e), JT = (e, t, n) => e && !t.hidden && t._stacked && {
8716
8716
  keys: Oh(n, !0),
8717
8717
  values: null
8718
8718
  };
@@ -8758,7 +8758,7 @@ class pn {
8758
8758
  const t = this.getDataset(), n = t.data || (t.data = []), i = this._data;
8759
8759
  if (rt(n)) {
8760
8760
  const s = this._cachedMeta;
8761
- this._data = qM(n, s);
8761
+ this._data = qT(n, s);
8762
8762
  } else if (i !== n) {
8763
8763
  if (i) {
8764
8764
  oc(i, this);
@@ -8849,10 +8849,10 @@ class pn {
8849
8849
  s && r && (s.values = r, a = _c(s, o, this._cachedMeta.index)), t.min = Math.min(t.min, a), t.max = Math.max(t.max, a);
8850
8850
  }
8851
8851
  getMinMax(t, n) {
8852
- const i = this._cachedMeta, s = i._parsed, o = i._sorted && t === i.iScale, a = s.length, r = this._getOtherScale(t), l = JM(n, i, this.chart), c = {
8852
+ const i = this._cachedMeta, s = i._parsed, o = i._sorted && t === i.iScale, a = s.length, r = this._getOtherScale(t), l = JT(n, i, this.chart), c = {
8853
8853
  min: Number.POSITIVE_INFINITY,
8854
8854
  max: Number.NEGATIVE_INFINITY
8855
- }, { min: u, max: d } = XM(r);
8855
+ }, { min: u, max: d } = XT(r);
8856
8856
  let h, f;
8857
8857
  function m() {
8858
8858
  f = s[h];
@@ -8889,7 +8889,7 @@ class pn {
8889
8889
  }
8890
8890
  _update(t) {
8891
8891
  const n = this._cachedMeta;
8892
- this.update(t || "default"), n._clip = jM(it(this.options.clip, VM(n.xScale, n.yScale, this.getMaxOverflow())));
8892
+ this.update(t || "default"), n._clip = jT(it(this.options.clip, VT(n.xScale, n.yScale, this.getMaxOverflow())));
8893
8893
  }
8894
8894
  update(t) {
8895
8895
  }
@@ -8912,9 +8912,9 @@ class pn {
8912
8912
  let o;
8913
8913
  if (t >= 0 && t < this._cachedMeta.data.length) {
8914
8914
  const a = this._cachedMeta.data[t];
8915
- o = a.$context || (a.$context = QM(this.getContext(), t, a)), o.parsed = this.getParsed(t), o.raw = s.data[t], o.index = o.dataIndex = t;
8915
+ o = a.$context || (a.$context = QT(this.getContext(), t, a)), o.parsed = this.getParsed(t), o.raw = s.data[t], o.index = o.dataIndex = t;
8916
8916
  } else
8917
- o = this.$context || (this.$context = ZM(this.chart.getContext(), this.index)), o.dataset = s, o.index = o.datasetIndex = this.index;
8917
+ o = this.$context || (this.$context = ZT(this.chart.getContext(), this.index)), o.dataset = s, o.index = o.datasetIndex = this.index;
8918
8918
  return o.active = !!n, o.mode = i, o;
8919
8919
  }
8920
8920
  resolveDatasetElementOptions(t) {
@@ -9075,7 +9075,7 @@ class pn {
9075
9075
  ]);
9076
9076
  }
9077
9077
  }
9078
- function tT(e, t) {
9078
+ function tM(e, t) {
9079
9079
  if (!e._cache.$bar) {
9080
9080
  const n = e.getMatchingVisibleMetas(t);
9081
9081
  let i = [];
@@ -9085,8 +9085,8 @@ function tT(e, t) {
9085
9085
  }
9086
9086
  return e._cache.$bar;
9087
9087
  }
9088
- function eT(e) {
9089
- const t = e.iScale, n = tT(t, e.type);
9088
+ function eM(e) {
9089
+ const t = e.iScale, n = tM(t, e.type);
9090
9090
  let i = t._length, s, o, a, r;
9091
9091
  const l = () => {
9092
9092
  a === 32767 || a === -32768 || (pe(r) && (i = Math.min(i, Math.abs(a - r) || i)), r = a);
@@ -9097,7 +9097,7 @@ function eT(e) {
9097
9097
  a = t.getPixelForTick(s), l();
9098
9098
  return i;
9099
9099
  }
9100
- function nT(e, t, n, i) {
9100
+ function nM(e, t, n, i) {
9101
9101
  const s = n.barThickness;
9102
9102
  let o, a;
9103
9103
  return nt(s) ? (o = t.min * n.categoryPercentage, a = n.barPercentage) : (o = s * i, a = 1), {
@@ -9106,7 +9106,7 @@ function nT(e, t, n, i) {
9106
9106
  start: t.pixels[e] - o / 2
9107
9107
  };
9108
9108
  }
9109
- function iT(e, t, n, i) {
9109
+ function iM(e, t, n, i) {
9110
9110
  const s = t.pixels, o = s[e];
9111
9111
  let a = e > 0 ? s[e - 1] : null, r = e < s.length - 1 ? s[e + 1] : null;
9112
9112
  const l = n.categoryPercentage;
@@ -9118,7 +9118,7 @@ function iT(e, t, n, i) {
9118
9118
  start: c
9119
9119
  };
9120
9120
  }
9121
- function sT(e, t, n, i) {
9121
+ function sM(e, t, n, i) {
9122
9122
  const s = n.parse(e[0], i), o = n.parse(e[1], i), a = Math.min(s, o), r = Math.max(s, o);
9123
9123
  let l = a, c = r;
9124
9124
  Math.abs(a) > Math.abs(r) && (l = r, c = a), t[n.axis] = c, t._custom = {
@@ -9131,9 +9131,9 @@ function sT(e, t, n, i) {
9131
9131
  };
9132
9132
  }
9133
9133
  function Ph(e, t, n, i) {
9134
- return bt(e) ? sT(e, t, n, i) : t[n.axis] = n.parse(e, i), t;
9134
+ return bt(e) ? sM(e, t, n, i) : t[n.axis] = n.parse(e, i), t;
9135
9135
  }
9136
- function Mc(e, t, n, i) {
9136
+ function Tc(e, t, n, i) {
9137
9137
  const s = e.iScale, o = e.vScale, a = s.getLabels(), r = s === o, l = [];
9138
9138
  let c, u, d, h;
9139
9139
  for (c = n, u = n + i; c < u; ++c)
@@ -9143,10 +9143,10 @@ function Mc(e, t, n, i) {
9143
9143
  function oa(e) {
9144
9144
  return e && e.barStart !== void 0 && e.barEnd !== void 0;
9145
9145
  }
9146
- function oT(e, t, n) {
9146
+ function oM(e, t, n) {
9147
9147
  return e !== 0 ? Pe(e) : (t.isHorizontal() ? 1 : -1) * (t.min >= n ? 1 : -1);
9148
9148
  }
9149
- function aT(e) {
9149
+ function aM(e) {
9150
9150
  let t, n, i, s, o;
9151
9151
  return e.horizontal ? (t = e.base > e.x, n = "left", i = "right") : (t = e.base < e.y, n = "bottom", i = "top"), t ? (s = "end", o = "start") : (s = "start", o = "end"), {
9152
9152
  start: n,
@@ -9156,7 +9156,7 @@ function aT(e) {
9156
9156
  bottom: o
9157
9157
  };
9158
9158
  }
9159
- function rT(e, t, n, i) {
9159
+ function rM(e, t, n, i) {
9160
9160
  let s = t.borderSkipped;
9161
9161
  const o = {};
9162
9162
  if (!s) {
@@ -9172,19 +9172,19 @@ function rT(e, t, n, i) {
9172
9172
  };
9173
9173
  return;
9174
9174
  }
9175
- const { start: a, end: r, reverse: l, top: c, bottom: u } = aT(e);
9176
- s === "middle" && n && (e.enableBorderRadius = !0, (n._top || 0) === i ? s = c : (n._bottom || 0) === i ? s = u : (o[Tc(u, a, r, l)] = !0, s = c)), o[Tc(s, a, r, l)] = !0, e.borderSkipped = o;
9175
+ const { start: a, end: r, reverse: l, top: c, bottom: u } = aM(e);
9176
+ s === "middle" && n && (e.enableBorderRadius = !0, (n._top || 0) === i ? s = c : (n._bottom || 0) === i ? s = u : (o[Mc(u, a, r, l)] = !0, s = c)), o[Mc(s, a, r, l)] = !0, e.borderSkipped = o;
9177
9177
  }
9178
- function Tc(e, t, n, i) {
9179
- return i ? (e = lT(e, t, n), e = Sc(e, n, t)) : e = Sc(e, t, n), e;
9178
+ function Mc(e, t, n, i) {
9179
+ return i ? (e = lM(e, t, n), e = Sc(e, n, t)) : e = Sc(e, t, n), e;
9180
9180
  }
9181
- function lT(e, t, n) {
9181
+ function lM(e, t, n) {
9182
9182
  return e === t ? n : e === n ? t : e;
9183
9183
  }
9184
9184
  function Sc(e, t, n) {
9185
9185
  return e === "start" ? t : e === "end" ? n : e;
9186
9186
  }
9187
- function cT(e, { inflateAmount: t }, n) {
9187
+ function cM(e, { inflateAmount: t }, n) {
9188
9188
  e.inflateAmount = t === "auto" ? n === 1 ? 0.33 : 0 : t;
9189
9189
  }
9190
9190
  class Ah extends pn {
@@ -9224,10 +9224,10 @@ class Ah extends pn {
9224
9224
  }
9225
9225
  };
9226
9226
  parsePrimitiveData(t, n, i, s) {
9227
- return Mc(t, n, i, s);
9227
+ return Tc(t, n, i, s);
9228
9228
  }
9229
9229
  parseArrayData(t, n, i, s) {
9230
- return Mc(t, n, i, s);
9230
+ return Tc(t, n, i, s);
9231
9231
  }
9232
9232
  parseObjectData(t, n, i, s) {
9233
9233
  const { iScale: o, vScale: a } = t, { xAxisKey: r = "x", yAxisKey: l = "y" } = this._parsing, c = o.axis === "x" ? r : l, u = a.axis === "x" ? r : l, d = [];
@@ -9277,7 +9277,7 @@ class Ah extends pn {
9277
9277
  };
9278
9278
  h && (_.options = d || this.resolveDataElementOptions(f, t[f].active ? "active" : s));
9279
9279
  const x = _.options || t[f].options;
9280
- rT(_, x, b, a), cT(_, x, u.ratio), this.updateElement(t[f], f, _, s);
9280
+ rM(_, x, b, a), cM(_, x, u.ratio), this.updateElement(t[f], f, _, s);
9281
9281
  }
9282
9282
  }
9283
9283
  _getStacks(t, n) {
@@ -9318,7 +9318,7 @@ class Ah extends pn {
9318
9318
  s.push(i.getPixelForValue(this.getParsed(o)[i.axis], o));
9319
9319
  const r = t.barThickness;
9320
9320
  return {
9321
- min: r || eT(n),
9321
+ min: r || eM(n),
9322
9322
  pixels: s,
9323
9323
  start: i._startPixel,
9324
9324
  end: i._endPixel,
@@ -9335,7 +9335,7 @@ class Ah extends pn {
9335
9335
  const p = !nt(o) && !u ? o : h;
9336
9336
  let b = n.getPixelForValue(p);
9337
9337
  if (this.chart.getDataVisibility(t) ? m = n.getPixelForValue(h + f) : m = b, g = m - b, Math.abs(g) < a) {
9338
- g = oT(g, n, r) * a, d === r && (b -= g / 2);
9338
+ g = oM(g, n, r) * a, d === r && (b -= g / 2);
9339
9339
  const _ = n.getPixelForDecimal(0), x = n.getPixelForDecimal(1), S = Math.min(_, x), v = Math.max(_, x);
9340
9340
  b = Math.max(Math.min(b, v), S), m = b + g, i && !u && (l._stacks[n.axis]._visualValues[s] = n.getValueForPixel(m) - n.getValueForPixel(b));
9341
9341
  }
@@ -9355,7 +9355,7 @@ class Ah extends pn {
9355
9355
  let r, l;
9356
9356
  const c = this._getAxisCount();
9357
9357
  if (n.grouped) {
9358
- const u = o ? this._getStackCount(t) : n.stackCount, d = s.barThickness === "flex" ? iT(t, n, s, u * c) : nT(t, n, s, u * c), h = this.chart.options.indexAxis === "x" ? this.getDataset().xAxisID : this.getDataset().yAxisID, f = this._getAxis().indexOf(it(h, this.getFirstScaleIdForIndexAxis())), m = this._getStackIndex(this.index, this._cachedMeta.stack, o ? t : void 0) + f;
9358
+ const u = o ? this._getStackCount(t) : n.stackCount, d = s.barThickness === "flex" ? iM(t, n, s, u * c) : nM(t, n, s, u * c), h = this.chart.options.indexAxis === "x" ? this.getDataset().xAxisID : this.getDataset().yAxisID, f = this._getAxis().indexOf(it(h, this.getFirstScaleIdForIndexAxis())), m = this._getStackIndex(this.index, this._cachedMeta.stack, o ? t : void 0) + f;
9359
9359
  r = d.start + d.chunk * m + d.chunk / 2, l = Math.min(a, d.chunk * d.ratio);
9360
9360
  } else
9361
9361
  r = i.getPixelForValue(this.getParsed(t)[i.axis], t), l = Math.min(a, n.min * n.ratio);
@@ -9373,7 +9373,7 @@ class Ah extends pn {
9373
9373
  this.getParsed(o)[n.axis] !== null && !i[o].hidden && i[o].draw(this._ctx);
9374
9374
  }
9375
9375
  }
9376
- class uT extends pn {
9376
+ class uM extends pn {
9377
9377
  static id = "bubble";
9378
9378
  static defaults = {
9379
9379
  datasetElementType: !1,
@@ -9460,9 +9460,9 @@ class uT extends pn {
9460
9460
  return n !== "active" && (s.radius = 0), s.radius += it(i && i._custom, o), s;
9461
9461
  }
9462
9462
  }
9463
- function dT(e, t, n) {
9463
+ function dM(e, t, n) {
9464
9464
  let i = 1, s = 1, o = 0, a = 0;
9465
- if (t < Tt) {
9465
+ if (t < Mt) {
9466
9466
  const r = e, l = r + t, c = Math.cos(r), u = Math.sin(r), d = Math.cos(l), h = Math.sin(l), f = (x, S, v) => Ji(x, r, l, !0) ? 1 : Math.max(S, S * n, v, v * n), m = (x, S, v) => Ji(x, r, l, !0) ? -1 : Math.min(S, S * n, v, v * n), g = f(0, c, d), p = f(kt, u, h), b = m(at, c, d), _ = m(at + kt, u, h);
9467
9467
  i = (g - b) / 2, s = (p - _) / 2, o = -(g + b) / 2, a = -(p + _) / 2;
9468
9468
  }
@@ -9570,7 +9570,7 @@ class hs extends pn {
9570
9570
  return $t(this.options.circumference);
9571
9571
  }
9572
9572
  _getRotationExtents() {
9573
- let t = Tt, n = -Tt;
9573
+ let t = Mt, n = -Mt;
9574
9574
  for (let i = 0; i < this.chart.data.datasets.length; ++i)
9575
9575
  if (this.chart.isDatasetVisible(i) && this.chart.getDatasetMeta(i).type === this._type) {
9576
9576
  const s = this.chart.getDatasetMeta(i).controller, o = s._getRotation(), a = s._getCircumference();
@@ -9582,12 +9582,12 @@ class hs extends pn {
9582
9582
  };
9583
9583
  }
9584
9584
  update(t) {
9585
- const n = this.chart, { chartArea: i } = n, s = this._cachedMeta, o = s.data, a = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, r = Math.max((Math.min(i.width, i.height) - a) / 2, 0), l = Math.min(Mw(this.options.cutout, r), 1), c = this._getRingWeight(this.index), { circumference: u, rotation: d } = this._getRotationExtents(), { ratioX: h, ratioY: f, offsetX: m, offsetY: g } = dT(d, u, l), p = (i.width - a) / h, b = (i.height - a) / f, _ = Math.max(Math.min(p, b) / 2, 0), x = oh(this.options.radius, _), S = Math.max(x * l, 0), v = (x - S) / this._getVisibleDatasetWeightTotal();
9585
+ const n = this.chart, { chartArea: i } = n, s = this._cachedMeta, o = s.data, a = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, r = Math.max((Math.min(i.width, i.height) - a) / 2, 0), l = Math.min(Tw(this.options.cutout, r), 1), c = this._getRingWeight(this.index), { circumference: u, rotation: d } = this._getRotationExtents(), { ratioX: h, ratioY: f, offsetX: m, offsetY: g } = dM(d, u, l), p = (i.width - a) / h, b = (i.height - a) / f, _ = Math.max(Math.min(p, b) / 2, 0), x = oh(this.options.radius, _), S = Math.max(x * l, 0), v = (x - S) / this._getVisibleDatasetWeightTotal();
9586
9586
  this.offsetX = m * x, this.offsetY = g * x, s.total = this.calculateTotal(), this.outerRadius = x - v * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - v * c, 0), this.updateElements(o, 0, o.length, t);
9587
9587
  }
9588
9588
  _circumference(t, n) {
9589
9589
  const i = this.options, s = this._cachedMeta, o = this._getCircumference();
9590
- return n && i.animation.animateRotate || !this.chart.getDataVisibility(t) || s._parsed[t] === null || s.data[t].hidden ? 0 : this.calculateCircumference(s._parsed[t] * o / Tt);
9590
+ return n && i.animation.animateRotate || !this.chart.getDataVisibility(t) || s._parsed[t] === null || s.data[t].hidden ? 0 : this.calculateCircumference(s._parsed[t] * o / Mt);
9591
9591
  }
9592
9592
  updateElements(t, n, i, s) {
9593
9593
  const o = s === "reset", a = this.chart, r = a.chartArea, c = a.options.animation, u = (r.left + r.right) / 2, d = (r.top + r.bottom) / 2, h = o && c.animateScale, f = h ? 0 : this.innerRadius, m = h ? 0 : this.outerRadius, { sharedOptions: g, includeOptions: p } = this._getSharedOptions(n, s);
@@ -9618,7 +9618,7 @@ class hs extends pn {
9618
9618
  }
9619
9619
  calculateCircumference(t) {
9620
9620
  const n = this._cachedMeta.total;
9621
- return n > 0 && !isNaN(t) ? Tt * (Math.abs(t) / n) : 0;
9621
+ return n > 0 && !isNaN(t) ? Mt * (Math.abs(t) / n) : 0;
9622
9622
  }
9623
9623
  getLabelAndValue(t) {
9624
9624
  const n = this._cachedMeta, i = this.chart, s = i.data.labels || [], o = cs(n._parsed[t], i.options.locale);
@@ -9700,13 +9700,13 @@ class Rh extends pn {
9700
9700
  const o = s === "reset", { iScale: a, vScale: r, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: u, includeOptions: d } = this._getSharedOptions(n, s), h = a.axis, f = r.axis, { spanGaps: m, segment: g } = this.options, p = dn(m) ? m : Number.POSITIVE_INFINITY, b = this.chart._animationsDisabled || o || s === "none", _ = n + i, x = t.length;
9701
9701
  let S = n > 0 && this.getParsed(n - 1);
9702
9702
  for (let v = 0; v < x; ++v) {
9703
- const k = t[v], T = b ? k : {};
9703
+ const k = t[v], M = b ? k : {};
9704
9704
  if (v < n || v >= _) {
9705
- T.skip = !0;
9705
+ M.skip = !0;
9706
9706
  continue;
9707
9707
  }
9708
- const P = this.getParsed(v), I = nt(P[f]), R = T[h] = a.getPixelForValue(P[h], v), w = T[f] = o || I ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, P, l) : P[f], v);
9709
- T.skip = isNaN(R) || isNaN(w) || I, T.stop = v > 0 && Math.abs(P[h] - S[h]) > p, g && (T.parsed = P, T.raw = c.data[v]), d && (T.options = u || this.resolveDataElementOptions(v, k.active ? "active" : s)), b || this.updateElement(k, v, T, s), S = P;
9708
+ const P = this.getParsed(v), I = nt(P[f]), R = M[h] = a.getPixelForValue(P[h], v), w = M[f] = o || I ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, P, l) : P[f], v);
9709
+ M.skip = isNaN(R) || isNaN(w) || I, M.stop = v > 0 && Math.abs(P[h] - S[h]) > p, g && (M.parsed = P, M.raw = c.data[v]), d && (M.options = u || this.resolveDataElementOptions(v, k.active ? "active" : s)), b || this.updateElement(k, v, M, s), S = P;
9710
9710
  }
9711
9711
  }
9712
9712
  getMaxOverflow() {
@@ -9857,7 +9857,7 @@ class Ih extends pn {
9857
9857
  return this.chart.getDataVisibility(t) ? $t(this.resolveDataElementOptions(t, n).angle || i) : 0;
9858
9858
  }
9859
9859
  }
9860
- class hT extends hs {
9860
+ class hM extends hs {
9861
9861
  static id = "pie";
9862
9862
  static defaults = {
9863
9863
  cutout: 0,
@@ -9866,7 +9866,7 @@ class hT extends hs {
9866
9866
  radius: "100%"
9867
9867
  };
9868
9868
  }
9869
- class fT extends pn {
9869
+ class fM extends pn {
9870
9870
  static id = "radar";
9871
9871
  static defaults = {
9872
9872
  datasetElementType: "line",
@@ -9976,8 +9976,8 @@ class Eh extends pn {
9976
9976
  const o = s === "reset", { iScale: a, vScale: r, _stacked: l, _dataset: c } = this._cachedMeta, u = this.resolveDataElementOptions(n, s), d = this.getSharedOptions(u), h = this.includeOptions(s, d), f = a.axis, m = r.axis, { spanGaps: g, segment: p } = this.options, b = dn(g) ? g : Number.POSITIVE_INFINITY, _ = this.chart._animationsDisabled || o || s === "none";
9977
9977
  let x = n > 0 && this.getParsed(n - 1);
9978
9978
  for (let S = n; S < n + i; ++S) {
9979
- const v = t[S], k = this.getParsed(S), T = _ ? v : {}, P = nt(k[m]), I = T[f] = a.getPixelForValue(k[f], S), R = T[m] = o || P ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, k, l) : k[m], S);
9980
- T.skip = isNaN(I) || isNaN(R) || P, T.stop = S > 0 && Math.abs(k[f] - x[f]) > b, p && (T.parsed = k, T.raw = c.data[S]), h && (T.options = d || this.resolveDataElementOptions(S, v.active ? "active" : s)), _ || this.updateElement(v, S, T, s), x = k;
9979
+ const v = t[S], k = this.getParsed(S), M = _ ? v : {}, P = nt(k[m]), I = M[f] = a.getPixelForValue(k[f], S), R = M[m] = o || P ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, k, l) : k[m], S);
9980
+ M.skip = isNaN(I) || isNaN(R) || P, M.stop = S > 0 && Math.abs(k[f] - x[f]) > b, p && (M.parsed = k, M.raw = c.data[S]), h && (M.options = d || this.resolveDataElementOptions(S, v.active ? "active" : s)), _ || this.updateElement(v, S, M, s), x = k;
9981
9981
  }
9982
9982
  this.updateSharedOptions(d, s, u);
9983
9983
  }
@@ -9996,15 +9996,15 @@ class Eh extends pn {
9996
9996
  return Math.max(s, o, a) / 2;
9997
9997
  }
9998
9998
  }
9999
- var mT = /* @__PURE__ */ Object.freeze({
9999
+ var mM = /* @__PURE__ */ Object.freeze({
10000
10000
  __proto__: null,
10001
10001
  BarController: Ah,
10002
- BubbleController: uT,
10002
+ BubbleController: uM,
10003
10003
  DoughnutController: hs,
10004
10004
  LineController: Rh,
10005
- PieController: hT,
10005
+ PieController: hM,
10006
10006
  PolarAreaController: Ih,
10007
- RadarController: fT,
10007
+ RadarController: fM,
10008
10008
  ScatterController: Eh
10009
10009
  });
10010
10010
  function wn() {
@@ -10056,7 +10056,7 @@ class Er {
10056
10056
  var Lh = {
10057
10057
  _date: Er
10058
10058
  };
10059
- function gT(e, t, n, i) {
10059
+ function gM(e, t, n, i) {
10060
10060
  const { controller: s, data: o, _sorted: a } = e, r = s._cachedMeta.iScale, l = e.dataset && e.dataset.options ? e.dataset.options.spanGaps : null;
10061
10061
  if (r && t === r.axis && t !== "r" && a && o.length) {
10062
10062
  const c = r._reversePixels ? Lw : He;
@@ -10090,14 +10090,14 @@ function gT(e, t, n, i) {
10090
10090
  function fs(e, t, n, i, s) {
10091
10091
  const o = e.getSortedVisibleDatasetMetas(), a = n[t];
10092
10092
  for (let r = 0, l = o.length; r < l; ++r) {
10093
- const { index: c, data: u } = o[r], { lo: d, hi: h } = gT(o[r], t, a, s);
10093
+ const { index: c, data: u } = o[r], { lo: d, hi: h } = gM(o[r], t, a, s);
10094
10094
  for (let f = d; f <= h; ++f) {
10095
10095
  const m = u[f];
10096
10096
  m.skip || i(m, c, f);
10097
10097
  }
10098
10098
  }
10099
10099
  }
10100
- function pT(e) {
10100
+ function pM(e) {
10101
10101
  const t = e.indexOf("x") !== -1, n = e.indexOf("y") !== -1;
10102
10102
  return function(i, s) {
10103
10103
  const o = t ? Math.abs(i.x - s.x) : 0, a = n ? Math.abs(i.y - s.y) : 0;
@@ -10114,7 +10114,7 @@ function aa(e, t, n, i, s) {
10114
10114
  });
10115
10115
  }, !0), o;
10116
10116
  }
10117
- function yT(e, t, n, i) {
10117
+ function yM(e, t, n, i) {
10118
10118
  let s = [];
10119
10119
  function o(a, r, l) {
10120
10120
  const { startAngle: c, endAngle: u } = a.getProps([
@@ -10132,9 +10132,9 @@ function yT(e, t, n, i) {
10132
10132
  }
10133
10133
  return fs(e, n, t, o), s;
10134
10134
  }
10135
- function bT(e, t, n, i, s, o) {
10135
+ function bM(e, t, n, i, s, o) {
10136
10136
  let a = [];
10137
- const r = pT(n);
10137
+ const r = pM(n);
10138
10138
  let l = Number.POSITIVE_INFINITY;
10139
10139
  function c(u, d, h) {
10140
10140
  const f = u.inRange(t.x, t.y, s);
@@ -10159,7 +10159,7 @@ function bT(e, t, n, i, s, o) {
10159
10159
  return fs(e, n, t, c), a;
10160
10160
  }
10161
10161
  function ra(e, t, n, i, s, o) {
10162
- return !o && !e.isPointInArea(t) ? [] : n === "r" && !i ? yT(e, t, n, s) : bT(e, t, n, i, s, o);
10162
+ return !o && !e.isPointInArea(t) ? [] : n === "r" && !i ? yM(e, t, n, s) : bM(e, t, n, i, s, o);
10163
10163
  }
10164
10164
  function kc(e, t, n, i, s) {
10165
10165
  const o = [], a = n === "x" ? "inXRange" : "inYRange";
@@ -10237,7 +10237,7 @@ function Pi(e, t) {
10237
10237
  return s.weight === o.weight ? s.index - o.index : s.weight - o.weight;
10238
10238
  });
10239
10239
  }
10240
- function _T(e) {
10240
+ function _M(e) {
10241
10241
  const t = [];
10242
10242
  let n, i, s, o, a, r;
10243
10243
  for (n = 0, i = (e || []).length; n < i; ++n)
@@ -10252,7 +10252,7 @@ function _T(e) {
10252
10252
  });
10253
10253
  return t;
10254
10254
  }
10255
- function vT(e) {
10255
+ function vM(e) {
10256
10256
  const t = {};
10257
10257
  for (const n of e) {
10258
10258
  const { stack: i, pos: s, stackWeight: o } = n;
@@ -10268,8 +10268,8 @@ function vT(e) {
10268
10268
  }
10269
10269
  return t;
10270
10270
  }
10271
- function xT(e, t) {
10272
- const n = vT(e), { vBoxMaxWidth: i, hBoxMaxHeight: s } = t;
10271
+ function xM(e, t) {
10272
+ const n = vM(e), { vBoxMaxWidth: i, hBoxMaxHeight: s } = t;
10273
10273
  let o, a, r;
10274
10274
  for (o = 0, a = e.length; o < a; ++o) {
10275
10275
  r = e[o];
@@ -10278,8 +10278,8 @@ function xT(e, t) {
10278
10278
  }
10279
10279
  return n;
10280
10280
  }
10281
- function wT(e) {
10282
- const t = _T(e), n = Pi(t.filter((c) => c.box.fullSize), !0), i = Pi(Oi(t, "left"), !0), s = Pi(Oi(t, "right")), o = Pi(Oi(t, "top"), !0), a = Pi(Oi(t, "bottom")), r = Dc(t, "x"), l = Dc(t, "y");
10281
+ function wM(e) {
10282
+ const t = _M(e), n = Pi(t.filter((c) => c.box.fullSize), !0), i = Pi(Oi(t, "left"), !0), s = Pi(Oi(t, "right")), o = Pi(Oi(t, "top"), !0), a = Pi(Oi(t, "bottom")), r = Dc(t, "x"), l = Dc(t, "y");
10283
10283
  return {
10284
10284
  fullSize: n,
10285
10285
  leftAndTop: i.concat(o),
@@ -10295,7 +10295,7 @@ function Cc(e, t, n, i) {
10295
10295
  function Fh(e, t) {
10296
10296
  e.top = Math.max(e.top, t.top), e.left = Math.max(e.left, t.left), e.bottom = Math.max(e.bottom, t.bottom), e.right = Math.max(e.right, t.right);
10297
10297
  }
10298
- function MT(e, t, n, i) {
10298
+ function TM(e, t, n, i) {
10299
10299
  const { pos: s, box: o } = n, a = e.maxPadding;
10300
10300
  if (!rt(s)) {
10301
10301
  n.size && (e[s] -= n.size);
@@ -10315,7 +10315,7 @@ function MT(e, t, n, i) {
10315
10315
  other: c
10316
10316
  };
10317
10317
  }
10318
- function TT(e) {
10318
+ function MM(e) {
10319
10319
  const t = e.maxPadding;
10320
10320
  function n(i) {
10321
10321
  const s = Math.max(t[i] - e[i], 0);
@@ -10323,7 +10323,7 @@ function TT(e) {
10323
10323
  }
10324
10324
  e.y += n("top"), e.x += n("left"), n("right"), n("bottom");
10325
10325
  }
10326
- function ST(e, t) {
10326
+ function SM(e, t) {
10327
10327
  const n = t.maxPadding;
10328
10328
  function i(s) {
10329
10329
  const o = {
@@ -10348,8 +10348,8 @@ function Fi(e, t, n, i) {
10348
10348
  const s = [];
10349
10349
  let o, a, r, l, c, u;
10350
10350
  for (o = 0, a = e.length, c = 0; o < a; ++o) {
10351
- r = e[o], l = r.box, l.update(r.width || t.w, r.height || t.h, ST(r.horizontal, t));
10352
- const { same: d, other: h } = MT(t, n, r, i);
10351
+ r = e[o], l = r.box, l.update(r.width || t.w, r.height || t.h, SM(r.horizontal, t));
10352
+ const { same: d, other: h } = TM(t, n, r, i);
10353
10353
  c |= d && s.length, u = u || h, l.fullSize || s.push(r);
10354
10354
  }
10355
10355
  return c && Fi(s, t, n, i) || u;
@@ -10398,7 +10398,7 @@ var te = {
10398
10398
  update(e, t, n, i) {
10399
10399
  if (!e)
10400
10400
  return;
10401
- const s = Yt(e.options.layout.padding), o = Math.max(t - s.width, 0), a = Math.max(n - s.height, 0), r = wT(e.boxes), l = r.vertical, c = r.horizontal;
10401
+ const s = Yt(e.options.layout.padding), o = Math.max(t - s.width, 0), a = Math.max(n - s.height, 0), r = wM(e.boxes), l = r.vertical, c = r.horizontal;
10402
10402
  wt(e.boxes, (g) => {
10403
10403
  typeof g.beforeLayout == "function" && g.beforeLayout();
10404
10404
  });
@@ -10418,8 +10418,8 @@ var te = {
10418
10418
  h: a,
10419
10419
  x: s.left,
10420
10420
  y: s.top
10421
- }, s), m = xT(l.concat(c), d);
10422
- Fi(r.fullSize, f, d, m), Fi(l, f, d, m), Fi(c, f, d, m) && Fi(l, f, d, m), TT(f), Oc(r.leftAndTop, f, d, m), f.x += f.w, f.y += f.h, Oc(r.rightAndBottom, f, d, m), e.chartArea = {
10421
+ }, s), m = xM(l.concat(c), d);
10422
+ Fi(r.fullSize, f, d, m), Fi(l, f, d, m), Fi(c, f, d, m) && Fi(l, f, d, m), MM(f), Oc(r.leftAndTop, f, d, m), f.x += f.w, f.y += f.h, Oc(r.rightAndBottom, f, d, m), e.chartArea = {
10423
10423
  left: f.left,
10424
10424
  top: f.top,
10425
10425
  right: f.left + f.w,
@@ -10462,7 +10462,7 @@ class zh {
10462
10462
  updateConfig(t) {
10463
10463
  }
10464
10464
  }
10465
- class kT extends zh {
10465
+ class kM extends zh {
10466
10466
  acquireContext(t) {
10467
10467
  return t && t.getContext && t.getContext("2d") || null;
10468
10468
  }
@@ -10470,7 +10470,7 @@ class kT extends zh {
10470
10470
  t.options.animation = !1;
10471
10471
  }
10472
10472
  }
10473
- const Vs = "$chartjs", DT = {
10473
+ const Vs = "$chartjs", DM = {
10474
10474
  touchstart: "mousedown",
10475
10475
  touchmove: "mousemove",
10476
10476
  touchend: "mouseup",
@@ -10481,7 +10481,7 @@ const Vs = "$chartjs", DT = {
10481
10481
  pointerleave: "mouseout",
10482
10482
  pointerout: "mouseout"
10483
10483
  }, Pc = (e) => e === null || e === "";
10484
- function CT(e, t) {
10484
+ function CM(e, t) {
10485
10485
  const n = e.style, i = e.getAttribute("height"), s = e.getAttribute("width");
10486
10486
  if (e[Vs] = {
10487
10487
  initial: {
@@ -10506,17 +10506,17 @@ function CT(e, t) {
10506
10506
  }
10507
10507
  return e;
10508
10508
  }
10509
- const Uh = CM ? {
10509
+ const Uh = CT ? {
10510
10510
  passive: !0
10511
10511
  } : !1;
10512
- function OT(e, t, n) {
10512
+ function OM(e, t, n) {
10513
10513
  e && e.addEventListener(t, n, Uh);
10514
10514
  }
10515
- function PT(e, t, n) {
10515
+ function PM(e, t, n) {
10516
10516
  e && e.canvas && e.canvas.removeEventListener(t, n, Uh);
10517
10517
  }
10518
- function AT(e, t) {
10519
- const n = DT[e.type] || e.type, { x: i, y: s } = Je(e, t);
10518
+ function AM(e, t) {
10519
+ const n = DM[e.type] || e.type, { x: i, y: s } = Je(e, t);
10520
10520
  return {
10521
10521
  type: n,
10522
10522
  chart: t,
@@ -10530,7 +10530,7 @@ function uo(e, t) {
10530
10530
  if (n === t || n.contains(t))
10531
10531
  return !0;
10532
10532
  }
10533
- function RT(e, t, n) {
10533
+ function RM(e, t, n) {
10534
10534
  const i = e.canvas, s = new MutationObserver((o) => {
10535
10535
  let a = !1;
10536
10536
  for (const r of o)
@@ -10542,7 +10542,7 @@ function RT(e, t, n) {
10542
10542
  subtree: !0
10543
10543
  }), s;
10544
10544
  }
10545
- function IT(e, t, n) {
10545
+ function IM(e, t, n) {
10546
10546
  const i = e.canvas, s = new MutationObserver((o) => {
10547
10547
  let a = !1;
10548
10548
  for (const r of o)
@@ -10562,13 +10562,13 @@ function Bh() {
10562
10562
  n.currentDevicePixelRatio !== e && t();
10563
10563
  }));
10564
10564
  }
10565
- function ET(e, t) {
10565
+ function EM(e, t) {
10566
10566
  ts.size || window.addEventListener("resize", Bh), ts.set(e, t);
10567
10567
  }
10568
- function LT(e) {
10568
+ function LM(e) {
10569
10569
  ts.delete(e), ts.size || window.removeEventListener("resize", Bh);
10570
10570
  }
10571
- function NT(e, t, n) {
10571
+ function NM(e, t, n) {
10572
10572
  const i = e.canvas, s = i && Rr(i);
10573
10573
  if (!s)
10574
10574
  return;
@@ -10579,21 +10579,21 @@ function NT(e, t, n) {
10579
10579
  const l = r[0], c = l.contentRect.width, u = l.contentRect.height;
10580
10580
  c === 0 && u === 0 || o(c, u);
10581
10581
  });
10582
- return a.observe(s), ET(e, o), a;
10582
+ return a.observe(s), EM(e, o), a;
10583
10583
  }
10584
10584
  function la(e, t, n) {
10585
- n && n.disconnect(), t === "resize" && LT(e);
10585
+ n && n.disconnect(), t === "resize" && LM(e);
10586
10586
  }
10587
- function FT(e, t, n) {
10587
+ function FM(e, t, n) {
10588
10588
  const i = e.canvas, s = dh((o) => {
10589
- e.ctx !== null && n(AT(o, e));
10589
+ e.ctx !== null && n(AM(o, e));
10590
10590
  }, e);
10591
- return OT(i, t, s), s;
10591
+ return OM(i, t, s), s;
10592
10592
  }
10593
- class zT extends zh {
10593
+ class zM extends zh {
10594
10594
  acquireContext(t, n) {
10595
10595
  const i = t && t.getContext && t.getContext("2d");
10596
- return i && i.canvas === t ? (CT(t, n), i) : null;
10596
+ return i && i.canvas === t ? (CM(t, n), i) : null;
10597
10597
  }
10598
10598
  releaseContext(t) {
10599
10599
  const n = t.canvas;
@@ -10615,10 +10615,10 @@ class zT extends zh {
10615
10615
  addEventListener(t, n, i) {
10616
10616
  this.removeEventListener(t, n);
10617
10617
  const s = t.$proxies || (t.$proxies = {}), a = {
10618
- attach: RT,
10619
- detach: IT,
10620
- resize: NT
10621
- }[n] || FT;
10618
+ attach: RM,
10619
+ detach: IM,
10620
+ resize: NM
10621
+ }[n] || FM;
10622
10622
  s[n] = a(t, n, i);
10623
10623
  }
10624
10624
  removeEventListener(t, n) {
@@ -10629,21 +10629,21 @@ class zT extends zh {
10629
10629
  attach: la,
10630
10630
  detach: la,
10631
10631
  resize: la
10632
- }[n] || PT)(t, n, s), i[n] = void 0;
10632
+ }[n] || PM)(t, n, s), i[n] = void 0;
10633
10633
  }
10634
10634
  getDevicePixelRatio() {
10635
10635
  return window.devicePixelRatio;
10636
10636
  }
10637
10637
  getMaximumSize(t, n, i, s) {
10638
- return DM(t, n, i, s);
10638
+ return DT(t, n, i, s);
10639
10639
  }
10640
10640
  isAttached(t) {
10641
10641
  const n = t && Rr(t);
10642
10642
  return !!(n && n.isConnected);
10643
10643
  }
10644
10644
  }
10645
- function UT(e) {
10646
- return !Ar() || typeof OffscreenCanvas < "u" && e instanceof OffscreenCanvas ? kT : zT;
10645
+ function UM(e) {
10646
+ return !Ar() || typeof OffscreenCanvas < "u" && e instanceof OffscreenCanvas ? kM : zM;
10647
10647
  }
10648
10648
  class se {
10649
10649
  static defaults = {};
@@ -10676,11 +10676,11 @@ class se {
10676
10676
  }), s;
10677
10677
  }
10678
10678
  }
10679
- function BT(e, t) {
10680
- const n = e.options.ticks, i = HT(e), s = Math.min(n.maxTicksLimit || i, i), o = n.major.enabled ? YT(t) : [], a = o.length, r = o[0], l = o[a - 1], c = [];
10679
+ function BM(e, t) {
10680
+ const n = e.options.ticks, i = HM(e), s = Math.min(n.maxTicksLimit || i, i), o = n.major.enabled ? YM(t) : [], a = o.length, r = o[0], l = o[a - 1], c = [];
10681
10681
  if (a > s)
10682
- return WT(t, c, o, a / s), c;
10683
- const u = $T(o, t, s);
10682
+ return WM(t, c, o, a / s), c;
10683
+ const u = $M(o, t, s);
10684
10684
  if (a > 0) {
10685
10685
  let d, h;
10686
10686
  const f = a > 1 ? Math.round((l - r) / (a - 1)) : null;
@@ -10690,12 +10690,12 @@ function BT(e, t) {
10690
10690
  }
10691
10691
  return Es(t, c, u), c;
10692
10692
  }
10693
- function HT(e) {
10693
+ function HM(e) {
10694
10694
  const t = e.options.offset, n = e._tickSize(), i = e._length / n + (t ? 0 : 1), s = e._maxLength / n;
10695
10695
  return Math.floor(Math.min(i, s));
10696
10696
  }
10697
- function $T(e, t, n) {
10698
- const i = VT(e), s = t.length / n;
10697
+ function $M(e, t, n) {
10698
+ const i = VM(e), s = t.length / n;
10699
10699
  if (!i)
10700
10700
  return Math.max(s, 1);
10701
10701
  const o = Pw(i);
@@ -10706,14 +10706,14 @@ function $T(e, t, n) {
10706
10706
  }
10707
10707
  return Math.max(s, 1);
10708
10708
  }
10709
- function YT(e) {
10709
+ function YM(e) {
10710
10710
  const t = [];
10711
10711
  let n, i;
10712
10712
  for (n = 0, i = e.length; n < i; n++)
10713
10713
  e[n].major && t.push(n);
10714
10714
  return t;
10715
10715
  }
10716
- function WT(e, t, n, i) {
10716
+ function WM(e, t, n, i) {
10717
10717
  let s = 0, o = n[0], a;
10718
10718
  for (i = Math.ceil(i), a = 0; a < e.length; a++)
10719
10719
  a === o && (t.push(e[a]), s++, o = n[s * i]);
@@ -10726,7 +10726,7 @@ function Es(e, t, n, i, s) {
10726
10726
  for (c = Math.max(o, 0); c < a; c++)
10727
10727
  c === u && (t.push(e[c]), r++, u = Math.round(o + r * n));
10728
10728
  }
10729
- function VT(e) {
10729
+ function VM(e) {
10730
10730
  const t = e.length;
10731
10731
  let n, i;
10732
10732
  if (t < 2)
@@ -10736,7 +10736,7 @@ function VT(e) {
10736
10736
  return !1;
10737
10737
  return i;
10738
10738
  }
10739
- const jT = (e) => e === "left" ? "right" : e === "right" ? "left" : e, Rc = (e, t, n) => t === "top" || t === "left" ? e[t] + n : e[t] - n, Ic = (e, t) => Math.min(t || e, e);
10739
+ const jM = (e) => e === "left" ? "right" : e === "right" ? "left" : e, Rc = (e, t, n) => t === "top" || t === "left" ? e[t] + n : e[t] - n, Ic = (e, t) => Math.min(t || e, e);
10740
10740
  function Ec(e, t) {
10741
10741
  const n = [], i = e.length / t, s = e.length;
10742
10742
  let o = 0;
@@ -10744,13 +10744,13 @@ function Ec(e, t) {
10744
10744
  n.push(e[Math.floor(o)]);
10745
10745
  return n;
10746
10746
  }
10747
- function qT(e, t, n) {
10747
+ function qM(e, t, n) {
10748
10748
  const i = e.ticks.length, s = Math.min(t, i - 1), o = e._startPixel, a = e._endPixel, r = 1e-6;
10749
10749
  let l = e.getPixelForTick(s), c;
10750
10750
  if (!(n && (i === 1 ? c = Math.max(l - o, a - l) : t === 0 ? c = (e.getPixelForTick(1) - l) / 2 : c = (l - e.getPixelForTick(s - 1)) / 2, l += s < t ? c : -c, l < o - r || l > a + r)))
10751
10751
  return l;
10752
10752
  }
10753
- function GT(e, t) {
10753
+ function GM(e, t) {
10754
10754
  wt(e, (n) => {
10755
10755
  const i = n.gc, s = i.length / 2;
10756
10756
  let o;
@@ -10770,24 +10770,24 @@ function Lc(e, t) {
10770
10770
  const n = Pt(e.font, t), i = Yt(e.padding);
10771
10771
  return (bt(e.text) ? e.text.length : 1) * n.lineHeight + i.height;
10772
10772
  }
10773
- function XT(e, t) {
10773
+ function XM(e, t) {
10774
10774
  return gn(e, {
10775
10775
  scale: t,
10776
10776
  type: "scale"
10777
10777
  });
10778
10778
  }
10779
- function KT(e, t, n) {
10779
+ function KM(e, t, n) {
10780
10780
  return gn(e, {
10781
10781
  tick: n,
10782
10782
  index: t,
10783
10783
  type: "tick"
10784
10784
  });
10785
10785
  }
10786
- function ZT(e, t, n) {
10786
+ function ZM(e, t, n) {
10787
10787
  let i = Sr(e);
10788
- return (n && t !== "right" || !n && t === "right") && (i = jT(i)), i;
10788
+ return (n && t !== "right" || !n && t === "right") && (i = jM(i)), i;
10789
10789
  }
10790
- function QT(e, t, n, i) {
10790
+ function QM(e, t, n, i) {
10791
10791
  const { top: s, left: o, bottom: a, right: r, chart: l } = e, { chartArea: c, scales: u } = l;
10792
10792
  let d = 0, h, f, m;
10793
10793
  const g = a - s, p = r - o;
@@ -10883,9 +10883,9 @@ class Fn extends se {
10883
10883
  right: 0,
10884
10884
  top: 0,
10885
10885
  bottom: 0
10886
- }, i), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + i.left + i.right : this.height + i.top + i.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range = oM(this, o, s), this._dataLimitsCached = !0), this.beforeBuildTicks(), this.ticks = this.buildTicks() || [], this.afterBuildTicks();
10886
+ }, i), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + i.left + i.right : this.height + i.top + i.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range = oT(this, o, s), this._dataLimitsCached = !0), this.beforeBuildTicks(), this.ticks = this.buildTicks() || [], this.afterBuildTicks();
10887
10887
  const l = r < this.ticks.length;
10888
- this._convertTicksToLabels(l ? Ec(this.ticks, r) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), a.display && (a.autoSkip || a.source === "auto") && (this.ticks = BT(this, this.ticks), this._labelSizes = null, this.afterAutoSkip()), l && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate();
10888
+ this._convertTicksToLabels(l ? Ec(this.ticks, r) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), a.display && (a.autoSkip || a.source === "auto") && (this.ticks = BM(this, this.ticks), this._labelSizes = null, this.afterAutoSkip()), l && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate();
10889
10889
  }
10890
10890
  configure() {
10891
10891
  let t = this.options.reverse, n, i;
@@ -11055,8 +11055,8 @@ class Fn extends se {
11055
11055
  v = m[h], !nt(v) && !bt(v) && (x = lo(s, b.data, b.gc, x, v), S += _);
11056
11056
  a.push(x), r.push(S), c = Math.max(x, c), u = Math.max(S, u);
11057
11057
  }
11058
- GT(o, n);
11059
- const k = a.indexOf(c), T = r.indexOf(u), P = (I) => ({
11058
+ GM(o, n);
11059
+ const k = a.indexOf(c), M = r.indexOf(u), P = (I) => ({
11060
11060
  width: a[I] || 0,
11061
11061
  height: r[I] || 0
11062
11062
  });
@@ -11064,7 +11064,7 @@ class Fn extends se {
11064
11064
  first: P(0),
11065
11065
  last: P(n - 1),
11066
11066
  widest: P(k),
11067
- highest: P(T),
11067
+ highest: P(M),
11068
11068
  widths: a,
11069
11069
  heights: r
11070
11070
  };
@@ -11101,9 +11101,9 @@ class Fn extends se {
11101
11101
  const n = this.ticks || [];
11102
11102
  if (t >= 0 && t < n.length) {
11103
11103
  const i = n[t];
11104
- return i.$context || (i.$context = KT(this.getContext(), t, i));
11104
+ return i.$context || (i.$context = KM(this.getContext(), t, i));
11105
11105
  }
11106
- return this.$context || (this.$context = XT(this.chart.getContext(), this));
11106
+ return this.$context || (this.$context = XM(this.chart.getContext(), this));
11107
11107
  }
11108
11108
  _tickSize() {
11109
11109
  const t = this.options.ticks, n = $t(this.labelRotation), i = Math.abs(Math.cos(n)), s = Math.abs(Math.sin(n)), o = this._getLabelSizes(), a = t.autoSkipPadding || 0, r = o ? o.widest.width + a : 0, l = o ? o.highest.height + a : 0;
@@ -11117,11 +11117,11 @@ class Fn extends se {
11117
11117
  const n = this.axis, i = 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), h = Ai(o), f = [], m = r.setContext(this.getContext()), g = m.display ? m.width : 0, p = g / 2, b = function(q) {
11118
11118
  return xn(i, q, g);
11119
11119
  };
11120
- let _, x, S, v, k, T, P, I, R, w, C, H;
11120
+ let _, x, S, v, k, M, P, I, R, w, C, H;
11121
11121
  if (a === "top")
11122
- _ = b(this.bottom), T = this.bottom - h, I = _ - p, w = b(t.top) + p, H = t.bottom;
11122
+ _ = b(this.bottom), M = this.bottom - h, I = _ - p, w = b(t.top) + p, H = t.bottom;
11123
11123
  else if (a === "bottom")
11124
- _ = b(this.top), w = t.top, H = b(t.bottom) - p, T = _ + p, I = this.top + h;
11124
+ _ = b(this.top), w = t.top, H = b(t.bottom) - p, M = _ + p, I = this.top + h;
11125
11125
  else if (a === "left")
11126
11126
  _ = b(this.right), k = this.right - h, P = _ - p, R = b(t.left) + p, C = t.right;
11127
11127
  else if (a === "right")
@@ -11133,7 +11133,7 @@ class Fn extends se {
11133
11133
  const q = Object.keys(a)[0], Z = a[q];
11134
11134
  _ = b(this.chart.scales[q].getPixelForValue(Z));
11135
11135
  }
11136
- w = t.top, H = t.bottom, T = _ + p, I = T + h;
11136
+ w = t.top, H = t.bottom, M = _ + p, I = M + h;
11137
11137
  } else if (n === "y") {
11138
11138
  if (a === "center")
11139
11139
  _ = b((t.left + t.right) / 2);
@@ -11146,9 +11146,9 @@ class Fn extends se {
11146
11146
  const F = it(s.ticks.maxTicksLimit, d), Y = Math.max(1, Math.ceil(d / F));
11147
11147
  for (x = 0; x < d; x += Y) {
11148
11148
  const q = this.getContext(x), Z = o.setContext(q), ct = r.setContext(q), ut = Z.lineWidth, et = Z.color, $ = ct.dash || [], D = ct.dashOffset, A = Z.tickWidth, B = Z.tickColor, V = Z.tickBorderDash || [], lt = Z.tickBorderDashOffset;
11149
- S = qT(this, x, l), S !== void 0 && (v = xn(i, S, ut), c ? k = P = R = C = v : T = I = w = H = v, f.push({
11149
+ S = qM(this, x, l), S !== void 0 && (v = xn(i, S, ut), c ? k = P = R = C = v : M = I = w = H = v, f.push({
11150
11150
  tx1: k,
11151
- ty1: T,
11151
+ ty1: M,
11152
11152
  tx2: P,
11153
11153
  ty2: I,
11154
11154
  x1: R,
@@ -11169,17 +11169,17 @@ class Fn extends se {
11169
11169
  }
11170
11170
  _computeLabelItems(t) {
11171
11171
  const n = this.axis, i = this.options, { position: s, ticks: o } = i, a = this.isHorizontal(), r = this.ticks, { align: l, crossAlign: c, padding: u, mirror: d } = o, h = Ai(i.grid), f = h + u, m = d ? -u : f, g = -$t(this.labelRotation), p = [];
11172
- let b, _, x, S, v, k, T, P, I, R, w, C, H = "middle";
11172
+ let b, _, x, S, v, k, M, P, I, R, w, C, H = "middle";
11173
11173
  if (s === "top")
11174
- k = this.bottom - m, T = this._getXAxisLabelAlignment();
11174
+ k = this.bottom - m, M = this._getXAxisLabelAlignment();
11175
11175
  else if (s === "bottom")
11176
- k = this.top + m, T = this._getXAxisLabelAlignment();
11176
+ k = this.top + m, M = this._getXAxisLabelAlignment();
11177
11177
  else if (s === "left") {
11178
11178
  const Y = this._getYAxisLabelAlignment(h);
11179
- T = Y.textAlign, v = Y.x;
11179
+ M = Y.textAlign, v = Y.x;
11180
11180
  } else if (s === "right") {
11181
11181
  const Y = this._getYAxisLabelAlignment(h);
11182
- T = Y.textAlign, v = Y.x;
11182
+ M = Y.textAlign, v = Y.x;
11183
11183
  } else if (n === "x") {
11184
11184
  if (s === "center")
11185
11185
  k = (t.top + t.bottom) / 2 + f;
@@ -11187,7 +11187,7 @@ class Fn extends se {
11187
11187
  const Y = Object.keys(s)[0], q = s[Y];
11188
11188
  k = this.chart.scales[Y].getPixelForValue(q) + f;
11189
11189
  }
11190
- T = this._getXAxisLabelAlignment();
11190
+ M = this._getXAxisLabelAlignment();
11191
11191
  } else if (n === "y") {
11192
11192
  if (s === "center")
11193
11193
  v = (t.left + t.right) / 2 - f;
@@ -11195,7 +11195,7 @@ class Fn extends se {
11195
11195
  const Y = Object.keys(s)[0], q = s[Y];
11196
11196
  v = this.chart.scales[Y].getPixelForValue(q);
11197
11197
  }
11198
- T = this._getYAxisLabelAlignment(h).textAlign;
11198
+ M = this._getYAxisLabelAlignment(h).textAlign;
11199
11199
  }
11200
11200
  n === "y" && (l === "start" ? H = "top" : l === "end" && (H = "bottom"));
11201
11201
  const F = this._getLabelSizes();
@@ -11204,8 +11204,8 @@ class Fn extends se {
11204
11204
  const Y = o.setContext(this.getContext(b));
11205
11205
  P = this.getPixelForTick(b) + o.labelOffset, I = this._resolveTickFontOptions(b), R = I.lineHeight, w = bt(S) ? S.length : 1;
11206
11206
  const q = w / 2, Z = Y.color, ct = Y.textStrokeColor, ut = Y.textStrokeWidth;
11207
- let et = T;
11208
- a ? (v = P, T === "inner" && (b === _ - 1 ? et = this.options.reverse ? "left" : "right" : b === 0 ? et = this.options.reverse ? "right" : "left" : et = "center"), s === "top" ? c === "near" || g !== 0 ? C = -w * R + R / 2 : c === "center" ? C = -F.highest.height / 2 - q * R + R : C = -F.highest.height + R / 2 : c === "near" || g !== 0 ? C = R / 2 : c === "center" ? C = F.highest.height / 2 - q * R : C = F.highest.height - w * R, d && (C *= -1), g !== 0 && !Y.showLabelBackdrop && (v += R / 2 * Math.sin(g))) : (k = P, C = (1 - w) * R / 2);
11207
+ let et = M;
11208
+ a ? (v = P, M === "inner" && (b === _ - 1 ? et = this.options.reverse ? "left" : "right" : b === 0 ? et = this.options.reverse ? "right" : "left" : et = "center"), s === "top" ? c === "near" || g !== 0 ? C = -w * R + R / 2 : c === "center" ? C = -F.highest.height / 2 - q * R + R : C = -F.highest.height + R / 2 : c === "near" || g !== 0 ? C = R / 2 : c === "center" ? C = F.highest.height / 2 - q * R : C = F.highest.height - w * R, d && (C *= -1), g !== 0 && !Y.showLabelBackdrop && (v += R / 2 * Math.sin(g))) : (k = P, C = (1 - w) * R / 2);
11209
11209
  let $;
11210
11210
  if (Y.showLabelBackdrop) {
11211
11211
  const D = Yt(Y.backdropPadding), A = F.heights[b], B = F.widths[b];
@@ -11218,7 +11218,7 @@ class Fn extends se {
11218
11218
  V -= A;
11219
11219
  break;
11220
11220
  }
11221
- switch (T) {
11221
+ switch (M) {
11222
11222
  case "center":
11223
11223
  lt -= B / 2;
11224
11224
  break;
@@ -11359,12 +11359,12 @@ class Fn extends se {
11359
11359
  const o = Pt(i.font), a = Yt(i.padding), r = i.align;
11360
11360
  let l = o.lineHeight / 2;
11361
11361
  n === "bottom" || n === "center" || rt(n) ? (l += a.bottom, bt(i.text) && (l += o.lineHeight * (i.text.length - 1))) : l += a.top;
11362
- const { titleX: c, titleY: u, maxWidth: d, rotation: h } = QT(this, l, n, r);
11362
+ const { titleX: c, titleY: u, maxWidth: d, rotation: h } = QM(this, l, n, r);
11363
11363
  Rn(t, i.text, 0, 0, o, {
11364
11364
  color: i.color,
11365
11365
  maxWidth: d,
11366
11366
  rotation: h,
11367
- textAlign: ZT(r, n, s),
11367
+ textAlign: ZM(r, n, s),
11368
11368
  textBaseline: "middle",
11369
11369
  translation: [
11370
11370
  c,
@@ -11437,7 +11437,7 @@ class Ls {
11437
11437
  const s = this.items, o = t.id, a = this.scope + "." + o;
11438
11438
  if (!o)
11439
11439
  throw new Error("class does not have id: " + t);
11440
- return o in s || (s[o] = t, JT(t, a, i), this.override && Dt.override(t.id, t.overrides)), a;
11440
+ return o in s || (s[o] = t, JM(t, a, i), this.override && Dt.override(t.id, t.overrides)), a;
11441
11441
  }
11442
11442
  get(t) {
11443
11443
  return this.items[t];
@@ -11447,7 +11447,7 @@ class Ls {
11447
11447
  i in n && delete n[i], s && i in Dt[s] && (delete Dt[s][i], this.override && delete An[i]);
11448
11448
  }
11449
11449
  }
11450
- function JT(e, t, n) {
11450
+ function JM(e, t, n) {
11451
11451
  const i = Qi(/* @__PURE__ */ Object.create(null), [
11452
11452
  n ? Dt.get(n) : {},
11453
11453
  Dt.get(t),
@@ -11944,7 +11944,7 @@ let ge = class {
11944
11944
  if (o)
11945
11945
  throw new Error("Canvas is already in use. Chart with ID '" + o.id + "' must be destroyed before the canvas with ID '" + o.canvas.id + "' can be reused.");
11946
11946
  const a = i.createResolver(i.chartOptionScopes(), this.getContext());
11947
- this.platform = new (i.platform || UT(s))(), this.platform.updateConfig(i);
11947
+ this.platform = new (i.platform || UM(s))(), this.platform.updateConfig(i);
11948
11948
  const r = this.platform.acquireContext(s, a.aspectRatio), l = r && r.canvas, c = l && l.height, u = l && l.width;
11949
11949
  if (this.id = ww(), this.ctx = r, this.canvas = l, this.width = u, this.height = c, this._options = a, this._aspectRatio = this.aspectRatio, this._layers = [], this._metasets = [], this._stacks = void 0, this.boxes = [], this.currentDevicePixelRatio = void 0, this.chartArea = void 0, this._active = [], this._lastEvent = void 0, this._listeners = {}, this._responsiveListeners = void 0, this._sortedMetasets = [], this.scales = {}, this._plugins = new i1(), this.$proxies = {}, this._hiddenIndices = {}, this.attached = !1, this._animationsDisabled = void 0, this.$context = void 0, this._doResize = zw((d) => this.update(d), a.resizeDelay || 0), this._dataChanges = [], js[this.id] = this, !r || !l) {
11950
11950
  console.error("Failed to create chart: can't acquire context from the given item");
@@ -12426,12 +12426,12 @@ function w1(e, t, n) {
12426
12426
  }
12427
12427
  e.closePath(), e.moveTo(0, 0), e.rect(0, 0, e.canvas.width, e.canvas.height), e.clip("evenodd");
12428
12428
  }
12429
- function M1(e, t, n) {
12429
+ function T1(e, t, n) {
12430
12430
  const { startAngle: i, pixelMargin: s, x: o, y: a, outerRadius: r, innerRadius: l } = t;
12431
12431
  let c = s / r;
12432
12432
  e.beginPath(), e.arc(o, a, r, i - c, n + c), l > s ? (c = s / l, e.arc(o, a, l, n + c, i - c, !0)) : e.arc(o, a, s, n + kt, i - kt), e.closePath(), e.clip();
12433
12433
  }
12434
- function T1(e) {
12434
+ function M1(e) {
12435
12435
  return Dr(e, [
12436
12436
  "outerStart",
12437
12437
  "outerEnd",
@@ -12440,7 +12440,7 @@ function T1(e) {
12440
12440
  ]);
12441
12441
  }
12442
12442
  function S1(e, t, n, i) {
12443
- const s = T1(e.options.borderRadius), o = (n - t) / 2, a = Math.min(o, i * t / 2), r = (l) => {
12443
+ const s = M1(e.options.borderRadius), o = (n - t) / 2, a = Math.min(o, i * t / 2), r = (l) => {
12444
12444
  const c = (n - Math.min(o, l)) * i / 2;
12445
12445
  return Gt(l, 0, Math.min(o, c));
12446
12446
  };
@@ -12465,7 +12465,7 @@ function ho(e, t, n, i, s, o) {
12465
12465
  const Y = u > 0 ? u - i : 0, q = d > 0 ? d - i : 0, Z = (Y + q) / 2, ct = Z !== 0 ? m * Z / (Z + i) : m;
12466
12466
  f = (m - ct) / 2;
12467
12467
  }
12468
- const g = Math.max(1e-3, m * d - n / at) / d, p = (m - g) / 2, b = l + p + f, _ = s - p - f, { outerStart: x, outerEnd: S, innerStart: v, innerEnd: k } = S1(t, h, d, _ - b), T = d - x, P = d - S, I = b + x / T, R = _ - S / P, w = h + v, C = h + k, H = b + v / w, F = _ - k / C;
12468
+ const g = Math.max(1e-3, m * d - n / at) / d, p = (m - g) / 2, b = l + p + f, _ = s - p - f, { outerStart: x, outerEnd: S, innerStart: v, innerEnd: k } = S1(t, h, d, _ - b), M = d - x, P = d - S, I = b + x / M, R = _ - S / P, w = h + v, C = h + k, H = b + v / w, F = _ - k / C;
12469
12469
  if (e.beginPath(), o) {
12470
12470
  const Y = (I + R) / 2;
12471
12471
  if (e.arc(a, r, d, I, Y), e.arc(a, r, d, Y, R), S > 0) {
@@ -12482,9 +12482,9 @@ function ho(e, t, n, i, s, o) {
12482
12482
  const ut = Gn(w, H, a, r);
12483
12483
  e.arc(ut.x, ut.y, v, H + Math.PI, b - kt);
12484
12484
  }
12485
- const ct = Gn(T, b, a, r);
12485
+ const ct = Gn(M, b, a, r);
12486
12486
  if (e.lineTo(ct.x, ct.y), x > 0) {
12487
- const ut = Gn(T, I, a, r);
12487
+ const ut = Gn(M, I, a, r);
12488
12488
  e.arc(ut.x, ut.y, x, b - kt, I);
12489
12489
  }
12490
12490
  } else {
@@ -12503,7 +12503,7 @@ function k1(e, t, n, i, s) {
12503
12503
  ho(e, t, n, i, l, s);
12504
12504
  for (let c = 0; c < o; ++c)
12505
12505
  e.fill();
12506
- isNaN(r) || (l = a + (r % Tt || Tt));
12506
+ isNaN(r) || (l = a + (r % Mt || Mt));
12507
12507
  }
12508
12508
  return ho(e, t, n, i, l, s), e.fill(), l;
12509
12509
  }
@@ -12517,9 +12517,9 @@ function D1(e, t, n, i, s) {
12517
12517
  ho(e, t, n, i, g, s);
12518
12518
  for (let p = 0; p < o; ++p)
12519
12519
  e.stroke();
12520
- isNaN(r) || (g = a + (r % Tt || Tt));
12520
+ isNaN(r) || (g = a + (r % Mt || Mt));
12521
12521
  }
12522
- m && M1(e, t, g), l.selfJoin && g - a >= at && f === 0 && u !== "miter" && w1(e, t, g), o || (ho(e, t, n, i, g, s), e.stroke());
12522
+ m && T1(e, t, g), l.selfJoin && g - a >= at && f === 0 && u !== "miter" && w1(e, t, g), o || (ho(e, t, n, i, g, s), e.stroke());
12523
12523
  }
12524
12524
  class C1 extends se {
12525
12525
  static id = "arc";
@@ -12567,7 +12567,7 @@ class C1 extends se {
12567
12567
  "innerRadius",
12568
12568
  "outerRadius",
12569
12569
  "circumference"
12570
- ], i), h = (this.options.spacing + this.options.borderWidth) / 2, f = it(d, l - r), m = Ji(o, r, l) && r !== l, g = f >= Tt || m, p = Be(a, c + h, u + h);
12570
+ ], i), h = (this.options.spacing + this.options.borderWidth) / 2, f = it(d, l - r), m = Ji(o, r, l) && r !== l, g = f >= Mt || m, p = Be(a, c + h, u + h);
12571
12571
  return g && p;
12572
12572
  }
12573
12573
  getCenterPoint(t) {
@@ -12589,7 +12589,7 @@ class C1 extends se {
12589
12589
  }
12590
12590
  draw(t) {
12591
12591
  const { options: n, circumference: i } = this, s = (n.offset || 0) / 4, o = (n.spacing || 0) / 2, a = n.circular;
12592
- if (this.pixelMargin = n.borderAlign === "inner" ? 0.33 : 0, this.fullCircles = i > Tt ? Math.floor(i / Tt) : 0, i === 0 || this.innerRadius < 0 || this.outerRadius < 0)
12592
+ if (this.pixelMargin = n.borderAlign === "inner" ? 0.33 : 0, this.fullCircles = i > Mt ? Math.floor(i / Mt) : 0, i === 0 || this.innerRadius < 0 || this.outerRadius < 0)
12593
12593
  return;
12594
12594
  t.save();
12595
12595
  const r = (this.startAngle + this.endAngle) / 2;
@@ -12642,7 +12642,7 @@ function Ua(e) {
12642
12642
  return !e._decimated && !e._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !n ? R1 : A1;
12643
12643
  }
12644
12644
  function I1(e) {
12645
- return e.stepped ? OM : e.tension || e.cubicInterpolationMode === "monotone" ? PM : Dn;
12645
+ return e.stepped ? OT : e.tension || e.cubicInterpolationMode === "monotone" ? PT : Dn;
12646
12646
  }
12647
12647
  function E1(e, t, n, i) {
12648
12648
  let s = t._path;
@@ -12690,7 +12690,7 @@ class xo extends se {
12690
12690
  const i = this.options;
12691
12691
  if ((i.tension || i.cubicInterpolationMode === "monotone") && !i.stepped && !this._pointsUpdated) {
12692
12692
  const s = i.spanGaps ? this._loop : this._fullLoop;
12693
- xM(this._points, i, t, s, n), this._pointsUpdated = !0;
12693
+ xT(this._points, i, t, s, n), this._pointsUpdated = !0;
12694
12694
  }
12695
12695
  }
12696
12696
  set points(t) {
@@ -12700,7 +12700,7 @@ class xo extends se {
12700
12700
  return this._points;
12701
12701
  }
12702
12702
  get segments() {
12703
- return this._segments || (this._segments = NM(this, this.options.segment));
12703
+ return this._segments || (this._segments = NT(this, this.options.segment));
12704
12704
  }
12705
12705
  first() {
12706
12706
  const t = this.segments, n = this.points;
@@ -13032,8 +13032,8 @@ function J1(e, t, n, i, s) {
13032
13032
  for (_ = x; _ < S; _++)
13033
13033
  p += e[_].x, b += e[_].y;
13034
13034
  p /= v, b /= v;
13035
- const k = Math.floor(d * r) + 1 + t, T = Math.min(Math.floor((d + 1) * r) + 1, n) + t, { x: P, y: I } = e[u];
13036
- for (f = m = -1, _ = k; _ < T; _++)
13035
+ const k = Math.floor(d * r) + 1 + t, M = Math.min(Math.floor((d + 1) * r) + 1, n) + t, { x: P, y: I } = e[u];
13036
+ for (f = m = -1, _ = k; _ < M; _++)
13037
13037
  m = 0.5 * Math.abs((P - p) * (e[_].y - I) - (P - e[_].x) * (b - I)), m > f && (f = m, h = e[_], g = _);
13038
13038
  a[l++] = h, u = g;
13039
13039
  }
@@ -13050,9 +13050,9 @@ function tS(e, t, n, i) {
13050
13050
  else {
13051
13051
  const k = a - 1;
13052
13052
  if (!nt(d) && !nt(h)) {
13053
- const T = Math.min(d, h), P = Math.max(d, h);
13054
- T !== f && T !== k && p.push({
13055
- ...e[T],
13053
+ const M = Math.min(d, h), P = Math.max(d, h);
13054
+ M !== f && M !== k && p.push({
13055
+ ...e[M],
13056
13056
  x: s
13057
13057
  }), P !== f && P !== k && p.push({
13058
13058
  ...e[P],
@@ -13347,7 +13347,7 @@ class Qh {
13347
13347
  const { x: s, y: o, radius: a } = this;
13348
13348
  return n = n || {
13349
13349
  start: 0,
13350
- end: Tt
13350
+ end: Mt
13351
13351
  }, t.arc(s, o, a, n.end, n.start, !0), !i.bounds;
13352
13352
  }
13353
13353
  interpolate(t) {
@@ -13545,7 +13545,7 @@ const tu = (e, t) => {
13545
13545
  boxHeight: n,
13546
13546
  itemHeight: Math.max(t, n)
13547
13547
  };
13548
- }, MS = (e, t) => e !== null && t !== null && e.datasetIndex === t.datasetIndex && e.index === t.index;
13548
+ }, TS = (e, t) => e !== null && t !== null && e.datasetIndex === t.datasetIndex && e.index === t.index;
13549
13549
  class eu extends se {
13550
13550
  constructor(t) {
13551
13551
  super(), this._added = !1, this.legendHitBoxes = [], this._hoveredItem = null, this.doughnutMode = !1, this.chart = t.chart, this.options = t.options, this.ctx = t.ctx, this.legendItems = void 0, this.columnSizes = void 0, this.lineWidths = void 0, this.maxHeight = void 0, this.maxWidth = void 0, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.height = void 0, this.width = void 0, this._margins = void 0, this.position = void 0, this.weight = void 0, this.fullSize = void 0;
@@ -13595,7 +13595,7 @@ class eu extends se {
13595
13595
  const { ctx: o, maxHeight: a, options: { labels: { padding: r } } } = this, l = this.legendHitBoxes = [], c = this.columnSizes = [], u = a - t;
13596
13596
  let d = r, h = 0, f = 0, m = 0, g = 0;
13597
13597
  return this.legendItems.forEach((p, b) => {
13598
- const { itemWidth: _, itemHeight: x } = TS(i, n, o, p, s);
13598
+ const { itemWidth: _, itemHeight: x } = MS(i, n, o, p, s);
13599
13599
  b > 0 && f + x + 2 * r > u && (d += h + r, c.push({
13600
13600
  width: h,
13601
13601
  height: f
@@ -13638,7 +13638,7 @@ class eu extends se {
13638
13638
  const { options: t, columnSizes: n, lineWidths: i, ctx: s } = this, { align: o, labels: a } = t, r = Dt.color, l = oi(t.rtl, this.left, this.width), c = Pt(a.font), { padding: u } = a, d = c.size, h = d / 2;
13639
13639
  let f;
13640
13640
  this.drawTitle(), s.textAlign = l.textAlign("left"), s.textBaseline = "middle", s.lineWidth = 0.5, s.font = c.string;
13641
- const { boxWidth: m, boxHeight: g, itemHeight: p } = tu(a, d), b = function(k, T, P) {
13641
+ const { boxWidth: m, boxHeight: g, itemHeight: p } = tu(a, d), b = function(k, M, P) {
13642
13642
  if (isNaN(m) || m <= 0 || isNaN(g) || g < 0)
13643
13643
  return;
13644
13644
  s.save();
@@ -13649,10 +13649,10 @@ class eu extends se {
13649
13649
  pointStyle: P.pointStyle,
13650
13650
  rotation: P.rotation,
13651
13651
  borderWidth: I
13652
- }, w = l.xPlus(k, m / 2), C = T + h;
13652
+ }, w = l.xPlus(k, m / 2), C = M + h;
13653
13653
  gh(s, R, w, C, a.pointStyleWidth && m);
13654
13654
  } else {
13655
- const R = T + Math.max((d - g) / 2, 0), w = l.leftForLtr(k, m), C = ln(P.borderRadius);
13655
+ const R = M + Math.max((d - g) / 2, 0), w = l.leftForLtr(k, m), C = ln(P.borderRadius);
13656
13656
  s.beginPath(), Object.values(C).some((H) => H !== 0) ? di(s, {
13657
13657
  x: w,
13658
13658
  y: R,
@@ -13662,8 +13662,8 @@ class eu extends se {
13662
13662
  }) : s.rect(w, R, m, g), s.fill(), I !== 0 && s.stroke();
13663
13663
  }
13664
13664
  s.restore();
13665
- }, _ = function(k, T, P) {
13666
- Rn(s, P.text, k, T + p / 2, c, {
13665
+ }, _ = function(k, M, P) {
13666
+ Rn(s, P.text, k, M + p / 2, c, {
13667
13667
  strikethrough: P.hidden,
13668
13668
  textAlign: l.textAlign(P.textAlign)
13669
13669
  });
@@ -13676,13 +13676,13 @@ class eu extends se {
13676
13676
  x: this.left + u,
13677
13677
  y: Qt(o, this.top + S + u, this.bottom - n[0].height),
13678
13678
  line: 0
13679
- }, Mh(this.ctx, t.textDirection);
13679
+ }, Th(this.ctx, t.textDirection);
13680
13680
  const v = p + u;
13681
- this.legendItems.forEach((k, T) => {
13681
+ this.legendItems.forEach((k, M) => {
13682
13682
  s.strokeStyle = k.fontColor, s.fillStyle = k.fontColor;
13683
13683
  const P = s.measureText(k.text).width, I = l.textAlign(k.textAlign || (k.textAlign = a.textAlign)), R = m + h + P;
13684
13684
  let w = f.x, C = f.y;
13685
- l.setWidth(this.width), x ? T > 0 && w + R + u > this.right && (C = f.y += v, f.line++, w = f.x = Qt(o, this.left + u, this.right - i[f.line])) : T > 0 && C + v > this.bottom && (w = f.x = w + n[f.line].width + u, f.line++, C = f.y = Qt(o, this.top + S + u, this.bottom - n[f.line].height));
13685
+ l.setWidth(this.width), x ? M > 0 && w + R + u > this.right && (C = f.y += v, f.line++, w = f.x = Qt(o, this.left + u, this.right - i[f.line])) : M > 0 && C + v > this.bottom && (w = f.x = w + n[f.line].width + u, f.line++, C = f.y = Qt(o, this.top + S + u, this.bottom - n[f.line].height));
13686
13686
  const H = l.x(w);
13687
13687
  if (b(H, C, k), w = Uw(I, w + m + h, x ? w + R : this.right, t.rtl), _(l.x(w), C, k), x)
13688
13688
  f.x += R + u;
@@ -13691,7 +13691,7 @@ class eu extends se {
13691
13691
  f.y += Jh(k, F) + u;
13692
13692
  } else
13693
13693
  f.y += v;
13694
- }), Th(this.ctx, t.textDirection);
13694
+ }), Mh(this.ctx, t.textDirection);
13695
13695
  }
13696
13696
  drawTitle() {
13697
13697
  const t = this.options, n = t.title, i = Pt(n.font), s = Yt(n.padding);
@@ -13727,7 +13727,7 @@ class eu extends se {
13727
13727
  return;
13728
13728
  const i = this._getLegendItemAt(t.x, t.y);
13729
13729
  if (t.type === "mousemove" || t.type === "mouseout") {
13730
- const s = this._hoveredItem, o = MS(s, i);
13730
+ const s = this._hoveredItem, o = TS(s, i);
13731
13731
  s && !o && xt(n.onLeave, [
13732
13732
  t,
13733
13733
  s,
@@ -13744,7 +13744,7 @@ class eu extends se {
13744
13744
  ], this);
13745
13745
  }
13746
13746
  }
13747
- function TS(e, t, n, i, s) {
13747
+ function MS(e, t, n, i, s) {
13748
13748
  const o = SS(i, e, t, n), a = kS(s, i, t.lineHeight);
13749
13749
  return {
13750
13750
  itemWidth: o,
@@ -14313,9 +14313,9 @@ class ru extends se {
14313
14313
  const m = oi(i.rtl, this.x, this.width), g = function(P) {
14314
14314
  n.fillText(P, m.x(t.x + f), t.y + h / 2), t.y += h + o;
14315
14315
  }, p = m.textAlign(a);
14316
- let b, _, x, S, v, k, T;
14316
+ let b, _, x, S, v, k, M;
14317
14317
  for (n.textAlign = a, n.textBaseline = "middle", n.font = d.string, t.x = zs(this, p, i), n.fillStyle = i.bodyColor, wt(this.beforeBody, g), f = r && p !== "right" ? a === "center" ? c / 2 + u : c + 2 + u : 0, S = 0, k = s.length; S < k; ++S) {
14318
- for (b = s[S], _ = this.labelTextColors[S], n.fillStyle = _, wt(b.before, g), x = b.lines, r && x.length && (this._drawColorBox(n, t, S, m, i), h = Math.max(d.lineHeight, l)), v = 0, T = x.length; v < T; ++v)
14318
+ for (b = s[S], _ = this.labelTextColors[S], n.fillStyle = _, wt(b.before, g), x = b.lines, r && x.length && (this._drawColorBox(n, t, S, m, i), h = Math.max(d.lineHeight, l)), v = 0, M = x.length; v < M; ++v)
14319
14319
  g(x[v]), h = d.lineHeight;
14320
14320
  wt(b.after, g);
14321
14321
  }
@@ -14362,7 +14362,7 @@ class ru extends se {
14362
14362
  };
14363
14363
  i = Math.abs(i) < 1e-3 ? 0 : i;
14364
14364
  const a = Yt(n.padding), r = this.title.length || this.beforeBody.length || this.body.length || this.afterBody.length || this.footer.length;
14365
- n.enabled && r && (t.save(), t.globalAlpha = i, this.drawBackground(o, t, s, n), Mh(t, n.textDirection), o.y += a.top, this.drawTitle(o, t, n), this.drawBody(o, t, n), this.drawFooter(o, t, n), Th(t, n.textDirection), t.restore());
14365
+ n.enabled && r && (t.save(), t.globalAlpha = i, this.drawBackground(o, t, s, n), Th(t, n.textDirection), o.y += a.top, this.drawTitle(o, t, n), this.drawBody(o, t, n), this.drawFooter(o, t, n), Mh(t, n.textDirection), t.restore());
14366
14366
  }
14367
14367
  getActiveElements() {
14368
14368
  return this._active || [];
@@ -14608,7 +14608,7 @@ class YS extends Fn {
14608
14608
  }
14609
14609
  function WS(e, t) {
14610
14610
  const n = [], { bounds: s, step: o, min: a, max: r, precision: l, count: c, maxTicks: u, maxDigits: d, includeBounds: h } = e, f = o || 1, m = u - 1, { min: g, max: p } = t, b = !nt(a), _ = !nt(r), x = !nt(c), S = (p - g) / (d + 1);
14611
- let v = ic((p - g) / m / f) * f, k, T, P, I;
14611
+ let v = ic((p - g) / m / f) * f, k, M, P, I;
14612
14612
  if (v < 1e-14 && !b && !_)
14613
14613
  return [
14614
14614
  {
@@ -14618,14 +14618,14 @@ function WS(e, t) {
14618
14618
  value: p
14619
14619
  }
14620
14620
  ];
14621
- I = Math.ceil(p / v) - Math.floor(g / v), I > m && (v = ic(I * v / m / f) * f), nt(l) || (k = Math.pow(10, l), v = Math.ceil(v * k) / k), s === "ticks" ? (T = Math.floor(g / v) * v, P = Math.ceil(p / v) * v) : (T = g, P = p), b && _ && o && Rw((r - a) / o, v / 1e3) ? (I = Math.round(Math.min((r - a) / v, u)), v = (r - a) / I, T = a, P = r) : x ? (T = b ? a : T, P = _ ? r : P, I = c - 1, v = (P - T) / I) : (I = (P - T) / v, Yi(I, Math.round(I), v / 1e3) ? I = Math.round(I) : I = Math.ceil(I));
14622
- const R = Math.max(sc(v), sc(T));
14623
- k = Math.pow(10, nt(l) ? R : l), T = Math.round(T * k) / k, P = Math.round(P * k) / k;
14621
+ I = Math.ceil(p / v) - Math.floor(g / v), I > m && (v = ic(I * v / m / f) * f), nt(l) || (k = Math.pow(10, l), v = Math.ceil(v * k) / k), s === "ticks" ? (M = Math.floor(g / v) * v, P = Math.ceil(p / v) * v) : (M = g, P = p), b && _ && o && Rw((r - a) / o, v / 1e3) ? (I = Math.round(Math.min((r - a) / v, u)), v = (r - a) / I, M = a, P = r) : x ? (M = b ? a : M, P = _ ? r : P, I = c - 1, v = (P - M) / I) : (I = (P - M) / v, Yi(I, Math.round(I), v / 1e3) ? I = Math.round(I) : I = Math.ceil(I));
14622
+ const R = Math.max(sc(v), sc(M));
14623
+ k = Math.pow(10, nt(l) ? R : l), M = Math.round(M * k) / k, P = Math.round(P * k) / k;
14624
14624
  let w = 0;
14625
- for (b && (h && T !== a ? (n.push({
14625
+ for (b && (h && M !== a ? (n.push({
14626
14626
  value: a
14627
- }), T < a && w++, Yi(Math.round((T + w * v) * k) / k, a, cu(a, S, e)) && w++) : T < a && w++); w < I; ++w) {
14628
- const C = Math.round((T + w * v) * k) / k;
14627
+ }), M < a && w++, Yi(Math.round((M + w * v) * k) / k, a, cu(a, S, e)) && w++) : M < a && w++); w < I; ++w) {
14628
+ const C = Math.round((M + w * v) * k) / k;
14629
14629
  if (_ && C > r)
14630
14630
  break;
14631
14631
  n.push({
@@ -14725,7 +14725,7 @@ class VS extends fo {
14725
14725
  return this._startValue + this.getDecimalForPixel(t) * this._valueRange;
14726
14726
  }
14727
14727
  }
14728
- const es = (e) => Math.floor(nn(e)), Mn = (e, t) => Math.pow(10, es(e) + t);
14728
+ const es = (e) => Math.floor(nn(e)), Tn = (e, t) => Math.pow(10, es(e) + t);
14729
14729
  function uu(e) {
14730
14730
  return e / Math.pow(10, es(e)) === 1;
14731
14731
  }
@@ -14787,13 +14787,13 @@ class GS extends Fn {
14787
14787
  }
14788
14788
  determineDataLimits() {
14789
14789
  const { min: t, max: n } = this.getMinMax(!0);
14790
- this.min = Ot(t) ? Math.max(0, t) : null, this.max = Ot(n) ? Math.max(0, n) : null, this.options.beginAtZero && (this._zero = !0), this._zero && this.min !== this._suggestedMin && !Ot(this._userMin) && (this.min = t === Mn(this.min, 0) ? Mn(this.min, -1) : Mn(this.min, 0)), this.handleTickRangeOptions();
14790
+ this.min = Ot(t) ? Math.max(0, t) : null, this.max = Ot(n) ? Math.max(0, n) : null, this.options.beginAtZero && (this._zero = !0), this._zero && this.min !== this._suggestedMin && !Ot(this._userMin) && (this.min = t === Tn(this.min, 0) ? Tn(this.min, -1) : Tn(this.min, 0)), this.handleTickRangeOptions();
14791
14791
  }
14792
14792
  handleTickRangeOptions() {
14793
14793
  const { minDefined: t, maxDefined: n } = this.getUserBounds();
14794
14794
  let i = this.min, s = this.max;
14795
14795
  const o = (r) => i = t ? i : r, a = (r) => s = n ? s : r;
14796
- i === s && (i <= 0 ? (o(1), a(10)) : (o(Mn(i, -1)), a(Mn(s, 1)))), i <= 0 && o(Mn(s, -1)), s <= 0 && a(Mn(i, 1)), this.min = i, this.max = s;
14796
+ i === s && (i <= 0 ? (o(1), a(10)) : (o(Tn(i, -1)), a(Tn(s, 1)))), i <= 0 && o(Tn(s, -1)), s <= 0 && a(Tn(i, 1)), this.min = i, this.max = s;
14797
14797
  }
14798
14798
  buildTicks() {
14799
14799
  const t = this.options, n = {
@@ -14954,7 +14954,7 @@ function ok(e, t) {
14954
14954
  function ef(e, t, n, i) {
14955
14955
  const { ctx: s } = e;
14956
14956
  if (n)
14957
- s.arc(e.xCenter, e.yCenter, t, 0, Tt);
14957
+ s.arc(e.xCenter, e.yCenter, t, 0, Mt);
14958
14958
  else {
14959
14959
  let o = e.getPointPosition(0, t);
14960
14960
  s.moveTo(o.x, o.y);
@@ -15048,7 +15048,7 @@ class lk extends fo {
15048
15048
  this.xCenter += Math.floor((t - n) / 2), this.yCenter += Math.floor((i - s) / 2), this.drawingArea -= Math.min(this.drawingArea / 2, Math.max(t, n, i, s));
15049
15049
  }
15050
15050
  getIndexAngle(t) {
15051
- const n = Tt / (this._pointLabels.length || 1), i = this.options.startAngle || 0;
15051
+ const n = Mt / (this._pointLabels.length || 1), i = this.options.startAngle || 0;
15052
15052
  return Jt(t * n + $t(i));
15053
15053
  }
15054
15054
  getDistanceFromCenterForValue(t) {
@@ -15144,7 +15144,7 @@ class lk extends fo {
15144
15144
  drawTitle() {
15145
15145
  }
15146
15146
  }
15147
- const Mo = {
15147
+ const To = {
15148
15148
  millisecond: {
15149
15149
  common: !0,
15150
15150
  size: 1,
@@ -15189,7 +15189,7 @@ const Mo = {
15189
15189
  common: !0,
15190
15190
  size: 3154e7
15191
15191
  }
15192
- }, fe = /* @__PURE__ */ Object.keys(Mo);
15192
+ }, fe = /* @__PURE__ */ Object.keys(To);
15193
15193
  function fu(e, t) {
15194
15194
  return e - t;
15195
15195
  }
@@ -15203,7 +15203,7 @@ function mu(e, t) {
15203
15203
  function gu(e, t, n, i) {
15204
15204
  const s = fe.length;
15205
15205
  for (let o = fe.indexOf(e); o < s - 1; ++o) {
15206
- const a = Mo[fe[o]], r = a.steps ? a.steps : Number.MAX_SAFE_INTEGER;
15206
+ const a = To[fe[o]], r = a.steps ? a.steps : Number.MAX_SAFE_INTEGER;
15207
15207
  if (a.common && Math.ceil((n - t) / (r * a.size)) <= i)
15208
15208
  return fe[o];
15209
15209
  }
@@ -15212,21 +15212,21 @@ function gu(e, t, n, i) {
15212
15212
  function ck(e, t, n, i, s) {
15213
15213
  for (let o = fe.length - 1; o >= fe.indexOf(n); o--) {
15214
15214
  const a = fe[o];
15215
- if (Mo[a].common && e._adapter.diff(s, i, a) >= t - 1)
15215
+ if (To[a].common && e._adapter.diff(s, i, a) >= t - 1)
15216
15216
  return a;
15217
15217
  }
15218
15218
  return fe[n ? fe.indexOf(n) : 0];
15219
15219
  }
15220
15220
  function uk(e) {
15221
15221
  for (let t = fe.indexOf(e) + 1, n = fe.length; t < n; ++t)
15222
- if (Mo[fe[t]].common)
15222
+ if (To[fe[t]].common)
15223
15223
  return fe[t];
15224
15224
  }
15225
15225
  function pu(e, t, n) {
15226
15226
  if (!n)
15227
15227
  e[t] = !0;
15228
15228
  else if (n.length) {
15229
- const { lo: i, hi: s } = Tr(n, t), o = n[i] >= t ? n[i] : n[s];
15229
+ const { lo: i, hi: s } = Mr(n, t), o = n[i] >= t ? n[i] : n[s];
15230
15230
  e[o] = !0;
15231
15231
  }
15232
15232
  }
@@ -15480,7 +15480,7 @@ var fk = /* @__PURE__ */ Object.freeze({
15480
15480
  TimeSeriesScale: hk
15481
15481
  });
15482
15482
  const mk = [
15483
- mT,
15483
+ mM,
15484
15484
  V1,
15485
15485
  US,
15486
15486
  fk
@@ -15517,7 +15517,7 @@ function gk(e) {
15517
15517
  size: s,
15518
15518
  style: u?.isLabelEmpty?.[c] ? "italic" : "normal"
15519
15519
  };
15520
- }, a = (l, c, u) => l.chart.options.indexAxis === l.axis ? (c = l.getLabelForValue(u), c && c.length > Wa ? c.slice(0, Wa) + "..." : c) : l.getLabelForValue(Number(c)), r = M(() => ({
15520
+ }, a = (l, c, u) => l.chart.options.indexAxis === l.axis ? (c = l.getLabelForValue(u), c && c.length > Wa ? c.slice(0, Wa) + "..." : c) : l.getLabelForValue(Number(c)), r = T(() => ({
15521
15521
  indexAxis: e.indexAxis,
15522
15522
  skipNull: !0,
15523
15523
  scales: {
@@ -15665,7 +15665,7 @@ function ns(e, t = {}) {
15665
15665
  ns.addCommas = Ui;
15666
15666
  function _k(e, t, n) {
15667
15667
  const { i18n: i } = J.useI18n(), { formatBytes: s } = Ie({ i18n: i }), { translateUnit: o } = J.useTranslatedUnits();
15668
- return { legendValues: M(() => e.value.datasets.reduce((r, l) => {
15668
+ return { legendValues: T(() => e.value.datasets.reduce((r, l) => {
15669
15669
  const c = l.total ? l.total : l.data.reduce((h, f) => h + (typeof f == "number" ? Number(f) || 0 : Number(f && f.y) || 0), 0);
15670
15670
  let u;
15671
15671
  const d = l.unit ?? n.value;
@@ -15709,7 +15709,7 @@ function vk(e) {
15709
15709
  xAlign: h
15710
15710
  };
15711
15711
  };
15712
- const s = M(() => ({
15712
+ const s = T(() => ({
15713
15713
  cutout: "65%",
15714
15714
  responsive: !0,
15715
15715
  maintainAspectRatio: !1,
@@ -15744,7 +15744,7 @@ function vk(e) {
15744
15744
  };
15745
15745
  }
15746
15746
  function xk(e) {
15747
- const t = M(() => ({
15747
+ const t = T(() => ({
15748
15748
  type: "timeseries",
15749
15749
  display: !0,
15750
15750
  grid: {
@@ -15775,7 +15775,7 @@ function xk(e) {
15775
15775
  display: !1
15776
15776
  },
15777
15777
  stacked: e.stacked.value
15778
- })), n = M(() => !!e.rightYAxis?.value), i = M(() => ({
15778
+ })), n = T(() => !!e.rightYAxis?.value), i = T(() => ({
15779
15779
  title: {
15780
15780
  display: !nt(e.metricAxesTitle?.value),
15781
15781
  text: e.metricAxesTitle?.value,
@@ -15798,7 +15798,7 @@ function xk(e) {
15798
15798
  },
15799
15799
  stacked: e.stacked.value,
15800
15800
  ...n.value ? { display: "auto" } : {}
15801
- })), s = M(() => {
15801
+ })), s = T(() => {
15802
15802
  const u = e.rightYAxis?.value;
15803
15803
  if (u)
15804
15804
  return {
@@ -15843,10 +15843,10 @@ function xk(e) {
15843
15843
  yAlign: x
15844
15844
  };
15845
15845
  };
15846
- const l = M(() => {
15846
+ const l = T(() => {
15847
15847
  const u = Number(e.timeRangeMs.value), d = /* @__PURE__ */ new Date(), h = new Date(d.getTime() - u);
15848
15848
  return Jd(u) > 24 || h.getDate() !== d.getDate();
15849
- }), c = M(() => ({
15849
+ }), c = T(() => ({
15850
15850
  hover: {
15851
15851
  mode: "index",
15852
15852
  intersect: !1
@@ -15906,19 +15906,19 @@ function xk(e) {
15906
15906
  options: c
15907
15907
  };
15908
15908
  }
15909
- const wk = ["usd", "bytes"], Mk = "usd";
15910
- function Tk(e) {
15911
- const { i18n: t } = J.useI18n(), { formatUnit: n } = Ie({ i18n: t }), i = (f, m) => !m || !wk.includes(m) ? f : f === 0 && m === Mk ? t.formatNumber(0, { style: "currency", currency: "USD" }) : n(f, m), s = M(() => {
15909
+ const wk = ["usd", "bytes"], Tk = "usd";
15910
+ function Mk(e) {
15911
+ const { i18n: t } = J.useI18n(), { formatUnit: n } = Ie({ i18n: t }), i = (f, m) => !m || !wk.includes(m) ? f : f === 0 && m === Tk ? t.formatNumber(0, { style: "currency", currency: "USD" }) : n(f, m), s = T(() => {
15912
15912
  const f = Number(e.timeRangeMs.value), m = /* @__PURE__ */ new Date(), g = new Date(m.getTime() - f);
15913
15913
  return Jd(f) > 24 || g.getDate() !== m.getDate();
15914
- }), o = M(() => ({
15914
+ }), o = T(() => ({
15915
15915
  display: !nt(e.dimensionAxesTitle?.value),
15916
15916
  text: e.dimensionAxesTitle?.value,
15917
15917
  padding: { top: 3 },
15918
15918
  font: {
15919
15919
  weight: "bold"
15920
15920
  }
15921
- })), a = M(() => ({
15921
+ })), a = T(() => ({
15922
15922
  type: "linear",
15923
15923
  display: !0,
15924
15924
  beginAtZero: !0,
@@ -15937,7 +15937,7 @@ function Tk(e) {
15937
15937
  border: {
15938
15938
  display: !1
15939
15939
  }
15940
- })), r = M(() => ({
15940
+ })), r = T(() => ({
15941
15941
  // `time`, **NOT** `timeseries`: a scatter plots raw records at irregular timestamps, and
15942
15942
  // the `timeseries` scale spaces data points evenly regardless of when they occurred
15943
15943
  type: "time",
@@ -15965,7 +15965,7 @@ function Tk(e) {
15965
15965
  border: {
15966
15966
  display: !1
15967
15967
  }
15968
- })), l = M(() => ({
15968
+ })), l = T(() => ({
15969
15969
  title: {
15970
15970
  display: !nt(e.metricAxesTitle?.value),
15971
15971
  text: e.metricAxesTitle?.value,
@@ -15995,15 +15995,15 @@ function Tk(e) {
15995
15995
  return !1;
15996
15996
  const g = this.chart.canvas.getBoundingClientRect(), p = e.tooltipState.width || this.width, b = e.tooltipState.height || this.height, _ = g.width / 2, x = g.height / 2, S = So(m, p, _);
15997
15997
  let v = hf(m, b, x);
15998
- const k = m.y < x ? "top" : "bottom", T = m.x < _ ? "left" : "center";
15998
+ const k = m.y < x ? "top" : "bottom", M = m.x < _ ? "left" : "center";
15999
15999
  return b > g.height && (v = 0), {
16000
16000
  x: S,
16001
16001
  y: v,
16002
- xAlign: T,
16002
+ xAlign: M,
16003
16003
  yAlign: k
16004
16004
  };
16005
16005
  };
16006
- const h = M(() => ({
16006
+ const h = T(() => ({
16007
16007
  // `intersect: false` is what makes hover usable. Data points with the pointRadius (default of 2)
16008
16008
  // will give a wider target
16009
16009
  hover: {
@@ -16068,7 +16068,7 @@ const Sk = (e) => {
16068
16068
  for (let i = 0; i < t; i++)
16069
16069
  n = n * 33 ^ e.charCodeAt(i);
16070
16070
  return n >>> 0;
16071
- }, kk = "#0044f4", nf = "#6c7489", Dk = "#d60027", Ck = "#ffc400", Ok = "#bee2ff", Pk = "#8fc1ff", Ak = "#5f9aff", Rk = "#306fff", Ik = "#b5ffee", Ek = "#00fabe", Lk = "#00d6a4", Nk = "#00a17b", Fk = "#007d60", zk = "#005944", Uk = "#b5ffee", Bk = "#00fabe", Hk = "#b5ffee", $k = "#00a17b", Yk = "#fff296", Wk = "#ffe04b", Vk = "#ffc400", jk = "#b37600", qk = "#995c00", Gk = "#804400", Xk = "#fff296", Kk = "#ffe04b", Zk = "#ffc2b3", Qk = "#ff9877", Jk = "#ff723c", tD = "#f75008", eD = "#d13500", nD = "#a31f00", iD = "#ffc2b3", sD = "#ff9877", oD = "#ff723c", aD = "#f75008", rD = "#d13500", lD = "#a31f00", cD = "#ffc2b3", uD = "#ff9877", dD = "#ff723c", hD = "#f75008", fD = "#d13500", mD = "#a31f00", gD = "#ffc2b3", pD = "#ff9877", yD = "#ff723c", bD = "#f75008", _D = "#d13500", vD = "#a31f00", xD = "#ffc2b3", wD = "#ff9877", MD = "#ff723c", TD = "#f75008", SD = "#d13500", kD = "#ffabab", DD = "#ff7272", CD = "#ff3954", OD = "#f50045", PD = "#d60027", AD = "#ad000e", RD = "#ffabab", ID = "#ff7272", ED = "#ff3954", LD = "#f50045", ND = "#d60027", FD = "#eefaff", zD = "#ecfffb", UD = "#fffce0", BD = "#fff1ef", HD = "#ffe5e5", $D = "#5f9aff", YD = "#00d6a4", WD = "#ffc400", VD = "#ff723c", jD = "#ff3954", qD = {
16071
+ }, kk = "#0044f4", nf = "#6c7489", Dk = "#d60027", Ck = "#ffc400", Ok = "#bee2ff", Pk = "#8fc1ff", Ak = "#5f9aff", Rk = "#306fff", Ik = "#b5ffee", Ek = "#00fabe", Lk = "#00d6a4", Nk = "#00a17b", Fk = "#007d60", zk = "#005944", Uk = "#b5ffee", Bk = "#00fabe", Hk = "#b5ffee", $k = "#00a17b", Yk = "#fff296", Wk = "#ffe04b", Vk = "#ffc400", jk = "#b37600", qk = "#995c00", Gk = "#804400", Xk = "#fff296", Kk = "#ffe04b", Zk = "#ffc2b3", Qk = "#ff9877", Jk = "#ff723c", tD = "#f75008", eD = "#d13500", nD = "#a31f00", iD = "#ffc2b3", sD = "#ff9877", oD = "#ff723c", aD = "#f75008", rD = "#d13500", lD = "#a31f00", cD = "#ffc2b3", uD = "#ff9877", dD = "#ff723c", hD = "#f75008", fD = "#d13500", mD = "#a31f00", gD = "#ffc2b3", pD = "#ff9877", yD = "#ff723c", bD = "#f75008", _D = "#d13500", vD = "#a31f00", xD = "#ffc2b3", wD = "#ff9877", TD = "#ff723c", MD = "#f75008", SD = "#d13500", kD = "#ffabab", DD = "#ff7272", CD = "#ff3954", OD = "#f50045", PD = "#d60027", AD = "#ad000e", RD = "#ffabab", ID = "#ff7272", ED = "#ff3954", LD = "#f50045", ND = "#d60027", FD = "#eefaff", zD = "#ecfffb", UD = "#fffce0", BD = "#fff1ef", HD = "#ffe5e5", $D = "#5f9aff", YD = "#00d6a4", WD = "#ffc400", VD = "#ff723c", jD = "#ff3954", qD = {
16072
16072
  100: Ok,
16073
16073
  101: Pk,
16074
16074
  102: Ak,
@@ -16117,8 +16117,8 @@ const Sk = (e) => {
16117
16117
  425: vD,
16118
16118
  426: xD,
16119
16119
  428: wD,
16120
- 429: MD,
16121
- 431: TD,
16120
+ 429: TD,
16121
+ 431: MD,
16122
16122
  451: SD,
16123
16123
  500: kD,
16124
16124
  501: DD,
@@ -16150,7 +16150,7 @@ const Sk = (e) => {
16150
16150
  // chart.series.9
16151
16151
  neutral: nf,
16152
16152
  ____OTHER____: kk
16153
- }, Mu = [
16153
+ }, Tu = [
16154
16154
  "#0076F4",
16155
16155
  "#00819D",
16156
16156
  "#00A17B",
@@ -16158,7 +16158,7 @@ const Sk = (e) => {
16158
16158
  "#FF3C99",
16159
16159
  "#FF6D3C",
16160
16160
  "#B3A100"
16161
- ], Tu = [
16161
+ ], Mu = [
16162
16162
  "#5485BA",
16163
16163
  "#087D96",
16164
16164
  "#3D8776",
@@ -16171,7 +16171,7 @@ const Sk = (e) => {
16171
16171
  theme: t = "light"
16172
16172
  }) => {
16173
16173
  const n = Math.abs(Math.floor(e));
16174
- return t === "dark" ? Tu[n % Tu.length] : Mu[n % Mu.length];
16174
+ return t === "dark" ? Mu[n % Mu.length] : Tu[n % Tu.length];
16175
16175
  }, ji = ({
16176
16176
  state: e
16177
16177
  }) => XD[e] ?? nf, ZD = ({
@@ -16193,7 +16193,7 @@ const Sk = (e) => {
16193
16193
  customDimensionColors: l = void 0
16194
16194
  }) => {
16195
16195
  let c = "light";
16196
- if (dg() && (c = Ye("app:konnectColorMode", M(() => "light")).value), t !== void 0)
16196
+ if (dg() && (c = Ye("app:konnectColorMode", T(() => "light")).value), t !== void 0)
16197
16197
  return ji({ state: t });
16198
16198
  if (i !== void 0 && l !== void 0 && l[i])
16199
16199
  return l[i];
@@ -16259,7 +16259,7 @@ function JD({
16259
16259
  }
16260
16260
  function tC(e, t, n, i) {
16261
16261
  const s = J.useFieldLabel();
16262
- return M(() => {
16262
+ return T(() => {
16263
16263
  try {
16264
16264
  if (t.value && "meta" in t.value && "data" in t.value) {
16265
16265
  const a = t.value.data, { display: r, metric_names: l } = t.value.meta, c = r && Object.keys(r), u = l && l.length > 1, d = r && c && c.length > 0, h = d && c.length > 1;
@@ -16284,7 +16284,7 @@ function tC(e, t, n, i) {
16284
16284
  name: Oa(w.id) || w.name
16285
16285
  }))), m !== "status_code" && m !== "status_code_grouped" && (v.sort((w, C) => _.indexOf(w.id) - _.indexOf(C.id)), k.sort((w, C) => _.indexOf(w.id) - _.indexOf(C.id))), !v || !k)
16286
16286
  return { labels: [], datasets: [] };
16287
- const T = JD({
16287
+ const M = JD({
16288
16288
  barSegmentLabels: k,
16289
16289
  coordinator: i,
16290
16290
  customColors: e.colorPalette,
@@ -16298,7 +16298,7 @@ function tC(e, t, n, i) {
16298
16298
  }), P = d ? v.map((w) => s(w.name)) : l.map((w) => s(w)), I = v.map((w) => w.id === "empty");
16299
16299
  return {
16300
16300
  labels: P,
16301
- datasets: T,
16301
+ datasets: M,
16302
16302
  isLabelEmpty: I,
16303
16303
  isMultiDimension: h
16304
16304
  };
@@ -16332,7 +16332,7 @@ const eC = (e, t, n = 1) => Array(Math.ceil((t - e) / n)).fill(e).map((i, s) =>
16332
16332
  };
16333
16333
  function sC(e, t, n, i) {
16334
16334
  const s = J.useFieldLabel();
16335
- return M(() => {
16335
+ return T(() => {
16336
16336
  try {
16337
16337
  if (t.value && "meta" in t.value && "data" in t.value) {
16338
16338
  const a = t.value.data, { display: r, metric_names: l, metric_units: c, start: u, end: d } = t.value.meta, h = new Date(u).getTime(), f = new Date(d).getTime();
@@ -16349,7 +16349,7 @@ function sC(e, t, n, i) {
16349
16349
  return console.error("Invalid step value:", x), { datasets: [], labels: [] };
16350
16350
  if (!a.length)
16351
16351
  return { datasets: [], labels: [] };
16352
- const S = nC(h), v = iC(h, f, x, S, a), k = !m.length, T = a?.length ? a.reduce((C, H) => {
16352
+ const S = nC(h), v = iC(h, f, x, S, a), k = !m.length, M = a?.length ? a.reduce((C, H) => {
16353
16353
  const F = new Date(H.timestamp).valueOf(), Y = H.event;
16354
16354
  for (const q of l)
16355
16355
  F in C || (C[F] = {}), q in C[F] || (C[F][q] = {});
@@ -16359,7 +16359,7 @@ function sC(e, t, n, i) {
16359
16359
  });
16360
16360
  return C;
16361
16361
  }, {}) : {}, P = p || l.length === 1 ? l.flatMap((C) => _.map((H) => [C, H.id, H.name, H.id === "empty"])) : _.map((C) => [C.name, C.id, C.name, C.id === "empty"]), I = e.colorPalette && !Array.isArray(e.colorPalette) ? e.colorPalette : void 0, R = k || !i?.color, w = [...P].map(([C, H, F, Y], q) => {
16362
- const Z = v.map((A) => A in T && C in T[A] ? { x: A, y: T[A][C][H] || 0 } : { x: A, y: 0 }), ct = Ae({
16362
+ const Z = v.map((A) => A in M && C in M[A] ? { x: A, y: M[A][C][H] || 0 } : { x: A, y: 0 }), ct = Ae({
16363
16363
  ...R === !0 && { discriminator: q },
16364
16364
  dimension: g,
16365
16365
  dimensionValue: H,
@@ -16406,7 +16406,7 @@ const oC = 3, aC = 0.6, ku = 2, rC = 2, Du = 50, lC = [6, 4], cC = [2, 3], uC =
16406
16406
  };
16407
16407
  function dC(e, t, n, i) {
16408
16408
  const { i18n: s } = J.useI18n(), o = J.useFieldLabel(), a = (r, l) => l || (r === Du ? s.t("scatter.median") : s.t("scatter.percentile", { value: r }));
16409
- return M(() => {
16409
+ return T(() => {
16410
16410
  try {
16411
16411
  const r = t.value;
16412
16412
  if (!r?.points?.length)
@@ -16431,9 +16431,9 @@ function dC(e, t, n, i) {
16431
16431
  const S = m.percentileLines || [], v = [
16432
16432
  ...S.map((F) => F.percentile),
16433
16433
  ...m.outlierPercentile !== void 0 ? [m.outlierPercentile] : []
16434
- ], k = v.length ? BO(x, v) : /* @__PURE__ */ new Map(), T = m.outlierPercentile !== void 0 ? k.get(m.outlierPercentile) : void 0, P = T !== void 0 && Number.isFinite(T), I = e.themeColors?.value ?? Br(), R = [], w = (F) => {
16434
+ ], k = v.length ? BO(x, v) : /* @__PURE__ */ new Map(), M = m.outlierPercentile !== void 0 ? k.get(m.outlierPercentile) : void 0, P = M !== void 0 && Number.isFinite(M), I = e.themeColors?.value ?? Br(), R = [], w = (F) => {
16435
16435
  const Y = F?.y;
16436
- return P && Number.isFinite(Y) && Y > T;
16436
+ return P && Number.isFinite(Y) && Y > M;
16437
16437
  }, C = e.colorPalette && !Array.isArray(e.colorPalette) ? e.colorPalette : void 0;
16438
16438
  Array.from(_.entries()).forEach(([F, Y], q) => {
16439
16439
  const Z = c && u?.[F]?.name || F, ct = F === "empty", ut = Ae({
@@ -16480,7 +16480,7 @@ function dC(e, t, n, i) {
16480
16480
  datasets: R,
16481
16481
  ...P ? {
16482
16482
  outlier: {
16483
- value: T,
16483
+ value: M,
16484
16484
  label: s.t("scatter.outlier", { label: a(m.outlierPercentile) }),
16485
16485
  color: I.outlier
16486
16486
  }
@@ -16565,21 +16565,21 @@ function xC(e, t, n) {
16565
16565
  immediate: !0
16566
16566
  });
16567
16567
  }
16568
- const To = of ? window : void 0;
16568
+ const Mo = of ? window : void 0;
16569
16569
  function mi(e) {
16570
16570
  var t;
16571
16571
  const n = gt(e);
16572
16572
  return (t = n?.$el) !== null && t !== void 0 ? t : n;
16573
16573
  }
16574
16574
  function qi(...e) {
16575
- const t = (i, s, o, a) => (i.addEventListener(s, o, a), () => i.removeEventListener(s, o, a)), n = M(() => {
16575
+ const t = (i, s, o, a) => (i.addEventListener(s, o, a), () => i.removeEventListener(s, o, a)), n = T(() => {
16576
16576
  const i = qs(gt(e[0])).filter((s) => s != null);
16577
16577
  return i.every((s) => typeof s != "string") ? i : void 0;
16578
16578
  });
16579
16579
  return xC(() => {
16580
16580
  var i, s;
16581
16581
  return [
16582
- (i = (s = n.value) === null || s === void 0 ? void 0 : s.map((o) => mi(o))) !== null && i !== void 0 ? i : [To].filter((o) => o != null),
16582
+ (i = (s = n.value) === null || s === void 0 ? void 0 : s.map((o) => mi(o))) !== null && i !== void 0 ? i : [Mo].filter((o) => o != null),
16583
16583
  qs(gt(n.value ? e[1] : e[0])),
16584
16584
  qs(U(n.value ? e[2] : e[1])),
16585
16585
  gt(n.value ? e[3] : e[2])
@@ -16602,14 +16602,14 @@ function wC() {
16602
16602
  // @__NO_SIDE_EFFECTS__
16603
16603
  function af(e) {
16604
16604
  const t = /* @__PURE__ */ wC();
16605
- return M(() => (t.value, !!e()));
16605
+ return T(() => (t.value, !!e()));
16606
16606
  }
16607
- function MC(e, t, n = {}) {
16608
- const { window: i = To, ...s } = n;
16607
+ function TC(e, t, n = {}) {
16608
+ const { window: i = Mo, ...s } = n;
16609
16609
  let o;
16610
16610
  const a = /* @__PURE__ */ af(() => i && "MutationObserver" in i), r = () => {
16611
16611
  o && (o.disconnect(), o = void 0);
16612
- }, l = At(M(() => {
16612
+ }, l = At(T(() => {
16613
16613
  const d = qs(gt(e)).map(mi).filter(gC);
16614
16614
  return new Set(d);
16615
16615
  }), (d) => {
@@ -16631,24 +16631,24 @@ const Bs = {
16631
16631
  margin: 30,
16632
16632
  direction: "both"
16633
16633
  };
16634
- function TC(e) {
16634
+ function MC(e) {
16635
16635
  e.scrollLeft > e.scrollWidth - e.clientWidth && (e.scrollLeft = Math.max(0, e.scrollWidth - e.clientWidth)), e.scrollTop > e.scrollHeight - e.clientHeight && (e.scrollTop = Math.max(0, e.scrollHeight - e.clientHeight));
16636
16636
  }
16637
16637
  function SC(e, t = {}) {
16638
16638
  var n, i, s, o;
16639
- const { pointerTypes: a, preventDefault: r, stopPropagation: l, exact: c, onMove: u, onEnd: d, onStart: h, initialValue: f, axis: m = "both", draggingElement: g = To, containerElement: p, handle: b = e, buttons: _ = [0], restrictInView: x, autoScroll: S = !1 } = t, v = St((n = gt(f)) !== null && n !== void 0 ? n : {
16639
+ const { pointerTypes: a, preventDefault: r, stopPropagation: l, exact: c, onMove: u, onEnd: d, onStart: h, initialValue: f, axis: m = "both", draggingElement: g = Mo, containerElement: p, handle: b = e, buttons: _ = [0], restrictInView: x, autoScroll: S = !1 } = t, v = St((n = gt(f)) !== null && n !== void 0 ? n : {
16640
16640
  x: 0,
16641
16641
  y: 0
16642
- }), k = St(), T = ($) => a ? a.includes($.pointerType) : !0, P = ($) => {
16642
+ }), k = St(), M = ($) => a ? a.includes($.pointerType) : !0, P = ($) => {
16643
16643
  gt(r) && $.preventDefault(), gt(l) && $.stopPropagation();
16644
16644
  }, I = gt(S), R = typeof I == "object" ? {
16645
16645
  speed: (i = gt(I.speed)) !== null && i !== void 0 ? i : Bs.speed,
16646
16646
  margin: (s = gt(I.margin)) !== null && s !== void 0 ? s : Bs.margin,
16647
16647
  direction: (o = I.direction) !== null && o !== void 0 ? o : Bs.direction
16648
16648
  } : Bs, w = ($) => typeof $ == "number" ? [$, $] : [$.x, $.y], C = ($, D, A) => {
16649
- const { clientWidth: B, clientHeight: V, scrollLeft: lt, scrollTop: N, scrollWidth: W, scrollHeight: Mt } = $, [yt, ft] = w(R.margin), [Lt, Zt] = w(R.speed);
16649
+ const { clientWidth: B, clientHeight: V, scrollLeft: lt, scrollTop: N, scrollWidth: W, scrollHeight: Tt } = $, [yt, ft] = w(R.margin), [Lt, Zt] = w(R.speed);
16650
16650
  let jt = 0, Rt = 0;
16651
- (R.direction === "x" || R.direction === "both") && (A.x < yt && lt > 0 ? jt = -Lt : A.x + D.width > B - yt && lt < W - B && (jt = Lt)), (R.direction === "y" || R.direction === "both") && (A.y < ft && N > 0 ? Rt = -Zt : A.y + D.height > V - ft && N < Mt - V && (Rt = Zt)), (jt || Rt) && $.scrollBy({
16651
+ (R.direction === "x" || R.direction === "both") && (A.x < yt && lt > 0 ? jt = -Lt : A.x + D.width > B - yt && lt < W - B && (jt = Lt)), (R.direction === "y" || R.direction === "both") && (A.y < ft && N > 0 ? Rt = -Zt : A.y + D.height > V - ft && N < Tt - V && (Rt = Zt)), (jt || Rt) && $.scrollBy({
16652
16652
  left: jt,
16653
16653
  top: Rt,
16654
16654
  behavior: "auto"
@@ -16682,16 +16682,16 @@ function SC(e, t = {}) {
16682
16682
  gt(S) && At(v, Z);
16683
16683
  const ct = ($) => {
16684
16684
  var D;
16685
- if (!gt(_).includes($.button) || gt(t.disabled) || !T($) || gt(c) && $.target !== gt(e)) return;
16685
+ if (!gt(_).includes($.button) || gt(t.disabled) || !M($) || gt(c) && $.target !== gt(e)) return;
16686
16686
  const A = gt(p), B = A == null || (D = A.getBoundingClientRect) === null || D === void 0 ? void 0 : D.call(A), V = gt(e).getBoundingClientRect(), lt = {
16687
16687
  x: $.clientX - (A ? V.left - B.left + (S ? 0 : A.scrollLeft) : V.left),
16688
16688
  y: $.clientY - (A ? V.top - B.top + (S ? 0 : A.scrollTop) : V.top)
16689
16689
  };
16690
16690
  h?.(lt, $) !== !1 && (k.value = lt, P($));
16691
16691
  }, ut = ($) => {
16692
- if (gt(t.disabled) || !T($) || !k.value) return;
16692
+ if (gt(t.disabled) || !M($) || !k.value) return;
16693
16693
  const D = gt(p);
16694
- D instanceof HTMLElement && TC(D);
16694
+ D instanceof HTMLElement && MC(D);
16695
16695
  const A = gt(e).getBoundingClientRect();
16696
16696
  let { x: B, y: V } = v.value;
16697
16697
  if ((m === "x" || m === "both") && (B = $.clientX - k.value.x, D && (B = Math.min(Math.max(0, B), D.scrollWidth - A.width))), (m === "y" || m === "both") && (V = $.clientY - k.value.y, D && (V = Math.min(Math.max(0, V), D.scrollHeight - A.height))), gt(S) && D && (H === null && C(D, A, {
@@ -16712,7 +16712,7 @@ function SC(e, t = {}) {
16712
16712
  y: V
16713
16713
  }, u?.(v.value, $), P($);
16714
16714
  }, et = ($) => {
16715
- gt(t.disabled) || !T($) || k.value && (k.value = void 0, S && Y(), d?.(v.value, $), P($));
16715
+ gt(t.disabled) || !M($) || k.value && (k.value = void 0, S && Y(), d?.(v.value, $), P($));
16716
16716
  };
16717
16717
  if (of) {
16718
16718
  const $ = () => {
@@ -16727,8 +16727,8 @@ function SC(e, t = {}) {
16727
16727
  return {
16728
16728
  ..._C(v),
16729
16729
  position: v,
16730
- isDragging: M(() => !!k.value),
16731
- style: M(() => `
16730
+ isDragging: T(() => !!k.value),
16731
+ style: T(() => `
16732
16732
  left: ${v.value.x}px;
16733
16733
  top: ${v.value.y}px;
16734
16734
  ${S ? "text-wrap: nowrap;" : ""}
@@ -16736,11 +16736,11 @@ function SC(e, t = {}) {
16736
16736
  };
16737
16737
  }
16738
16738
  function kC(e, t, n = {}) {
16739
- const { window: i = To, ...s } = n;
16739
+ const { window: i = Mo, ...s } = n;
16740
16740
  let o;
16741
16741
  const a = /* @__PURE__ */ af(() => i && "ResizeObserver" in i), r = () => {
16742
16742
  o && (o.disconnect(), o = void 0);
16743
- }, l = At(M(() => {
16743
+ }, l = At(T(() => {
16744
16744
  const u = gt(e);
16745
16745
  return Array.isArray(u) ? u.map((d) => mi(d)) : [mi(u)];
16746
16746
  }), (u) => {
@@ -16773,7 +16773,7 @@ function DC(e, t = {}) {
16773
16773
  function p() {
16774
16774
  a === "sync" ? g() : a === "next-frame" && requestAnimationFrame(() => g());
16775
16775
  }
16776
- return kC(e, p), At(() => mi(e), (b) => !b && p()), MC(e, p, { attributeFilter: ["style", "class"] }), s && qi("scroll", p, {
16776
+ return kC(e, p), At(() => mi(e), (b) => !b && p()), TC(e, p, { attributeFilter: ["style", "class"] }), s && qi("scroll", p, {
16777
16777
  capture: !0,
16778
16778
  passive: !0
16779
16779
  }), i && qi("resize", p, { passive: !0 }), vC(() => {
@@ -16791,7 +16791,7 @@ function DC(e, t = {}) {
16791
16791
  };
16792
16792
  }
16793
16793
  function CC(e, t) {
16794
- const { top: n, left: i } = DC(e), s = M(() => e.value ? `${parseFloat(t.left) + i.value}px` : t.left), o = M(() => e.value ? `${parseFloat(t.top) + n.value}px` : t.top);
16794
+ const { top: n, left: i } = DC(e), s = T(() => e.value ? `${parseFloat(t.left) + i.value}px` : t.left), o = T(() => e.value ? `${parseFloat(t.top) + n.value}px` : t.top);
16795
16795
  return {
16796
16796
  tooltipAbsoluteLeft: s,
16797
16797
  tooltipAbsoluteTop: o
@@ -16839,17 +16839,17 @@ function RC({
16839
16839
  renderPoints: r = void 0,
16840
16840
  type: l
16841
16841
  }) {
16842
- const u = n !== void 0 && e !== void 0 ? PC(n) : rf(), d = e !== void 0 ? e : "static-chart-key", h = M(() => t.reduce((R, { timestamps: w }) => [...R, ...w], [])), f = M(() => i || h.value.reduce((R, w) => R === 0 ? w : Math.min(R, w), 0)), m = M(() => s || h.value.reduce((R, w) => Math.max(R, w), 0));
16842
+ const u = n !== void 0 && e !== void 0 ? PC(n) : rf(), d = e !== void 0 ? e : "static-chart-key", h = T(() => t.reduce((R, { timestamps: w }) => [...R, ...w], [])), f = T(() => i || h.value.reduce((R, w) => R === 0 ? w : Math.min(R, w), 0)), m = T(() => s || h.value.reduce((R, w) => Math.max(R, w), 0));
16843
16843
  dl(() => {
16844
16844
  u.minStamps[d] = f.value, u.maxStamps[d] = m.value, r !== void 0 && (u.renderPoints[d] = r);
16845
16845
  });
16846
- const g = M(() => Object.values(u.minStamps).reduce((R, w) => R === 0 ? w : Math.min(R, w), 0)), p = M(() => Object.values(u.maxStamps).reduce((R, w) => Math.max(R, w), 0)), b = M(() => {
16846
+ const g = T(() => Object.values(u.minStamps).reduce((R, w) => R === 0 ? w : Math.min(R, w), 0)), p = T(() => Object.values(u.maxStamps).reduce((R, w) => Math.max(R, w), 0)), b = T(() => {
16847
16847
  const R = Object.values(u.renderPoints);
16848
16848
  return R.length === 0 ? 24 : R.reduce((w, C) => Math.max(w, C), 2);
16849
- }), _ = M(() => {
16849
+ }), _ = T(() => {
16850
16850
  const R = p.value - g.value;
16851
16851
  return Math.ceil(R / b.value);
16852
- }), x = M(() => t.length > 1), S = M(() => t.map(({ timestamps: R, color: w, label: C }) => ({
16852
+ }), x = T(() => t.length > 1), S = T(() => t.map(({ timestamps: R, color: w, label: C }) => ({
16853
16853
  data: OC({
16854
16854
  bucketCount: b.value,
16855
16855
  minStamp: g.value,
@@ -16863,7 +16863,7 @@ function RC({
16863
16863
  ...(l === "sparkline_bar" || x.value) && w && { backgroundColor: w },
16864
16864
  ...l !== "sparkline_bar" && w && { borderColor: w },
16865
16865
  ...x.value && l !== "sparkline_bar" && { fill: !0 }
16866
- }))), v = M(() => {
16866
+ }))), v = T(() => {
16867
16867
  const R = S.value[0]?.data?.length ?? 0, w = [];
16868
16868
  for (let C = 0; C < R; C++) {
16869
16869
  let H = 0;
@@ -16872,20 +16872,20 @@ function RC({
16872
16872
  w.push(H);
16873
16873
  }
16874
16874
  return w;
16875
- }), k = M(() => {
16875
+ }), k = T(() => {
16876
16876
  const R = v.value.reduce((w, C) => Math.max(w, C), 0);
16877
16877
  return Math.max(R, a ?? 0);
16878
- }), T = M(() => {
16878
+ }), M = T(() => {
16879
16879
  const R = S.value.reduce((H, { data: F }) => [...H, ...F.map(({ y: Y }) => Y)], []), w = R.length ? R[0] : 0, C = R.reduce((H, F) => Math.min(H, F), w);
16880
16880
  return o === void 0 ? C : Math.min(C, o);
16881
16881
  });
16882
16882
  dl(() => {
16883
- u.maxCounts[d] = k.value, u.minCounts[d] = T.value;
16883
+ u.maxCounts[d] = k.value, u.minCounts[d] = M.value;
16884
16884
  });
16885
- const P = M(() => {
16885
+ const P = T(() => {
16886
16886
  const R = Object.values(u.minCounts), w = R.length ? R[0] : 0;
16887
16887
  return R.reduce((C, H) => Math.min(C, H), w);
16888
- }), I = M(() => Object.values(u.maxCounts).reduce((R, w) => Math.max(R, w), 0));
16888
+ }), I = T(() => Object.values(u.maxCounts).reduce((R, w) => Math.max(R, w), 0));
16889
16889
  return qe(() => {
16890
16890
  e !== void 0 && n !== void 0 && AC(e, n);
16891
16891
  }), {
@@ -16923,40 +16923,40 @@ const ei = (e, t) => {
16923
16923
  }, Cu = 18, EC = 85;
16924
16924
  function LC(e, t, n, i) {
16925
16925
  const { i18n: s } = br(), { formatUnit: o } = Ie({ i18n: s }), a = J.useFieldLabel(), r = (v) => v.map((k) => {
16926
- const T = Math.min(k.ratio, 0.5) / 0.5;
16927
- return { ...k, color: Ae({ discriminator: 0 }), tint: `${Cu + T * (EC - Cu)}%` };
16928
- }), l = M(() => e.value?.data ?? []), c = M(() => e.value?.meta?.metric_names ?? []), u = M(() => {
16926
+ const M = Math.min(k.ratio, 0.5) / 0.5;
16927
+ return { ...k, color: Ae({ discriminator: 0 }), tint: `${Cu + M * (EC - Cu)}%` };
16928
+ }), l = T(() => e.value?.data ?? []), c = T(() => e.value?.meta?.metric_names ?? []), u = T(() => {
16929
16929
  const v = n.value;
16930
16930
  return v && c.value.includes(v) ? v : c.value[0];
16931
- }), d = M(() => c.value.filter((v) => v !== u.value)), h = M(() => e.value?.meta?.display?.[t.value] ?? {}), f = (v, k) => {
16931
+ }), d = T(() => c.value.filter((v) => v !== u.value)), h = T(() => e.value?.meta?.display?.[t.value] ?? {}), f = (v, k) => {
16932
16932
  if (is(v) || v === "count" || v === "requests")
16933
16933
  return "";
16934
- const T = k === 1 ? "" : "s";
16935
- return s.te(`chartUnits.${v}`) ? s.t(`chartUnits.${v}`, { plural: T }) : v;
16934
+ const M = k === 1 ? "" : "s";
16935
+ return s.te(`chartUnits.${v}`) ? s.t(`chartUnits.${v}`, { plural: M }) : v;
16936
16936
  }, m = (v) => {
16937
- const k = (T) => o(T, "%", {
16938
- translateUnit: (P) => f(P, T)
16937
+ const k = (M) => o(M, "%", {
16938
+ translateUnit: (P) => f(P, M)
16939
16939
  });
16940
16940
  return v > 0 && v < 0.01 ? `< ${k(0.01)}` : k(v);
16941
16941
  }, g = (v, k) => {
16942
16942
  if (v === null)
16943
16943
  return "–";
16944
- const T = e.value?.meta?.metric_units?.[k] || "count";
16945
- return T === "%" ? m(v) : o(v, T, {
16944
+ const M = e.value?.meta?.metric_units?.[k] || "count";
16945
+ return M === "%" ? m(v) : o(v, M, {
16946
16946
  isBytes1024: !0,
16947
16947
  translateUnit: (P) => f(P, v)
16948
16948
  });
16949
- }, p = (v) => ei(i.value, v)?.label || a(v), b = M(() => lf(l.value.map((v) => u.value ? Xi(v.event[u.value]) : null))), _ = (v) => d.value.flatMap((k) => {
16950
- const T = Xi(v[k]);
16951
- if (T === null)
16949
+ }, p = (v) => ei(i.value, v)?.label || a(v), b = T(() => lf(l.value.map((v) => u.value ? Xi(v.event[u.value]) : null))), _ = (v) => d.value.flatMap((k) => {
16950
+ const M = Xi(v[k]);
16951
+ if (M === null)
16952
16952
  return [];
16953
- const P = uf(T, ei(i.value, k)?.thresholds);
16954
- return [{ key: k, label: p(k), value: g(T, k), threshold: P }];
16955
- }), x = M(() => {
16953
+ const P = uf(M, ei(i.value, k)?.thresholds);
16954
+ return [{ key: k, label: p(k), value: g(M, k), threshold: P }];
16955
+ }), x = T(() => {
16956
16956
  if (!u.value)
16957
16957
  return [];
16958
16958
  const v = l.value.map((k) => {
16959
- const T = k.event, P = String(T[t.value]), I = Xi(T[u.value]) ?? 0, R = cf(I, b.value), w = R ?? 0, C = P === pl;
16959
+ const M = k.event, P = String(M[t.value]), I = Xi(M[u.value]) ?? 0, R = cf(I, b.value), w = R ?? 0, C = P === pl;
16960
16960
  return {
16961
16961
  id: P,
16962
16962
  name: C ? s.t(`chartLabels.${pl}`) : h.value[P]?.name || P,
@@ -16967,12 +16967,12 @@ function LC(e, t, n, i) {
16967
16967
  ratio: w,
16968
16968
  display: g(I, u.value),
16969
16969
  relative: R === null ? "" : m(R * 100),
16970
- tooltipRows: _(T)
16970
+ tooltipRows: _(M)
16971
16971
  };
16972
- }).sort((k, T) => Number(k.isOther) - Number(T.isOther) || T.value - k.value);
16972
+ }).sort((k, M) => Number(k.isOther) - Number(M.isOther) || M.value - k.value);
16973
16973
  return r(v);
16974
16974
  });
16975
- return { column: M(() => ({
16975
+ return { column: T(() => ({
16976
16976
  dimension: t.value,
16977
16977
  label: p(t.value),
16978
16978
  total: g(b.value.sum, u.value ?? "count"),
@@ -16996,7 +16996,7 @@ const J = {
16996
16996
  useScatterDatasets: dC,
16997
16997
  useDonutChartOptions: vk,
16998
16998
  useLineChartOptions: xk,
16999
- useScatterChartOptions: Tk,
16999
+ useScatterChartOptions: Mk,
17000
17000
  useI18n: br,
17001
17001
  useFieldLabel: FC,
17002
17002
  useReportChartDataForSynthetics: hC,
@@ -17102,7 +17102,7 @@ const Fr = (e, t, n) => {
17102
17102
  fa.set(e, t.lineHeight);
17103
17103
  }
17104
17104
  return fa.get(e);
17105
- }, KC = (e, t) => t.datasets.reduce((n, i, s) => e.isDatasetVisible(s) ? n + i.data.reduce((o, a) => isNaN(a) ? o : o + a, 0) : n, 0), ZC = (e, t) => t === 0 ? " (0.0%)" : ` (${(e / t * 100).toFixed(1)}%)`, QC = T0, JC = {
17105
+ }, KC = (e, t) => t.datasets.reduce((n, i, s) => e.isDatasetVisible(s) ? n + i.data.reduce((o, a) => isNaN(a) ? o : o + a, 0) : n, 0), ZC = (e, t) => t === 0 ? " (0.0%)" : ` (${(e / t * 100).toFixed(1)}%)`, QC = M0, JC = {
17106
17106
  100: A0,
17107
17107
  101: R0,
17108
17108
  102: I0,
@@ -17149,8 +17149,8 @@ const Fr = (e, t, n) => {
17149
17149
  423: vb,
17150
17150
  424: xb,
17151
17151
  425: wb,
17152
- 426: Mb,
17153
- 428: Tb,
17152
+ 426: Tb,
17153
+ 428: Mb,
17154
17154
  429: Sb,
17155
17155
  431: kb,
17156
17156
  451: Db,
@@ -17182,7 +17182,7 @@ const Fr = (e, t, n) => {
17182
17182
  return JC[t] ?? tO[n] ?? QC;
17183
17183
  }, iO = Array.from({ length: 500 }, (e, t) => 100 + t), sO = {
17184
17184
  ...iO.reduce((e, t) => (e[`${t}`] = nO(`${t}`), e), {}),
17185
- ____OTHER____: M0,
17185
+ ____OTHER____: T0,
17186
17186
  ...eO
17187
17187
  };
17188
17188
  function Pu(e, t, n) {
@@ -17475,7 +17475,7 @@ function pf(e, t = {}) {
17475
17475
  return new Date(e);
17476
17476
  if (Object.prototype.toString.call(e) !== "[object String]")
17477
17477
  return /* @__PURE__ */ new Date(NaN);
17478
- const i = MO(e), { year: s, restDateString: o } = TO(i.date, n), a = SO(o, s);
17478
+ const i = TO(e), { year: s, restDateString: o } = MO(i.date, n), a = SO(o, s);
17479
17479
  if (a === null || isNaN(a.getTime()))
17480
17480
  return /* @__PURE__ */ new Date(NaN);
17481
17481
  if (a) {
@@ -17492,7 +17492,7 @@ function pf(e, t = {}) {
17492
17492
  } else
17493
17493
  return /* @__PURE__ */ new Date(NaN);
17494
17494
  }
17495
- function MO(e) {
17495
+ function TO(e) {
17496
17496
  const t = {};
17497
17497
  let n = re.dateTimePattern.exec(e), i;
17498
17498
  if (n ? (t.date = n[1], i = n[3]) : (n = re.datePattern.exec(e), n ? (t.date = n[1], i = n[2]) : (t.date = null, i = e)), i) {
@@ -17501,7 +17501,7 @@ function MO(e) {
17501
17501
  }
17502
17502
  return t;
17503
17503
  }
17504
- function TO(e, t) {
17504
+ function MO(e, t) {
17505
17505
  if (e) {
17506
17506
  const n = re.YYY[t], i = re.YYYYY[t];
17507
17507
  let s = re.YYYY.exec(e) || i.exec(e);
@@ -17627,17 +17627,17 @@ function Ki(e, t, n, i) {
17627
17627
  originalDate: e
17628
17628
  }, AO(RO(e, t, { timeZone: i.timeZone }), n, i);
17629
17629
  }
17630
- const IO = (e, t) => `${Ki(e, t, "yyyy")} W${Ki(e, t, "II")}`, _a = "MMM dd, h:mm:ss a", va = "h:mm:ss a", Tn = "MMM dd, h:mm a", Kn = "h:mm a", EO = "MMM dd", xa = "MMM dd, h:mm:ss a", Ze = "MMM dd, h:mm a", LO = {
17630
+ const IO = (e, t) => `${Ki(e, t, "yyyy")} W${Ki(e, t, "II")}`, _a = "MMM dd, h:mm:ss a", va = "h:mm:ss a", Mn = "MMM dd, h:mm a", Kn = "h:mm a", EO = "MMM dd", xa = "MMM dd, h:mm:ss a", Ze = "MMM dd, h:mm a", LO = {
17631
17631
  secondly: (e) => e ? _a : va,
17632
17632
  tenSecondly: (e) => e ? _a : va,
17633
17633
  thirtySecondly: (e) => e ? _a : va,
17634
- minutely: (e) => e ? Tn : Kn,
17635
- fiveMinutely: (e) => e ? Tn : Kn,
17636
- tenMinutely: (e) => e ? Tn : Kn,
17637
- thirtyMinutely: (e) => e ? Tn : Kn,
17638
- hourly: (e) => e ? Tn : Kn,
17639
- twoHourly: (e) => e ? Tn : Kn,
17640
- twelveHourly: () => Tn,
17634
+ minutely: (e) => e ? Mn : Kn,
17635
+ fiveMinutely: (e) => e ? Mn : Kn,
17636
+ tenMinutely: (e) => e ? Mn : Kn,
17637
+ thirtyMinutely: (e) => e ? Mn : Kn,
17638
+ hourly: (e) => e ? Mn : Kn,
17639
+ twoHourly: (e) => e ? Mn : Kn,
17640
+ twelveHourly: () => Mn,
17641
17641
  daily: () => EO
17642
17642
  }, NO = {
17643
17643
  secondly: () => xa,
@@ -17696,7 +17696,7 @@ const _f = ({
17696
17696
  timezone: n,
17697
17697
  tooltipMap: NO,
17698
17698
  defaultFormat: "MMM dd, yyyy h:mm:ss a"
17699
- }), FO = (e) => e?.code === "ERR_CANCELED" || e?.name === "CanceledError" || e?.name === "AbortError", MI = (e) => {
17699
+ }), FO = (e) => e?.code === "ERR_CANCELED" || e?.name === "CanceledError" || e?.name === "AbortError", TI = (e) => {
17700
17700
  const { i18n: t } = J.useI18n();
17701
17701
  return FO(e) ? {
17702
17702
  type: "canceled",
@@ -17830,7 +17830,7 @@ const _f = ({
17830
17830
  });
17831
17831
  }
17832
17832
  return i.length ? i : void 0;
17833
- }, TI = (e, t) => {
17833
+ }, MI = (e, t) => {
17834
17834
  if (!e || !("meta" in e))
17835
17835
  return;
17836
17836
  const { metric: n, dimension: i, unroll: s, display: o, extraFields: a, metricUnit: r } = t, l = t.timestamp ?? "request_start";
@@ -17967,13 +17967,13 @@ function XO(e, t, n) {
17967
17967
  function KO(e, t, n, i) {
17968
17968
  return !e || !t || n <= 0 ? !1 : Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2) <= Math.pow(n + i, 2);
17969
17969
  }
17970
- function Mf(e, { x: t, y: n, x2: i, y2: s }, o, { borderWidth: a, hitTolerance: r }) {
17970
+ function Tf(e, { x: t, y: n, x2: i, y2: s }, o, { borderWidth: a, hitTolerance: r }) {
17971
17971
  const l = (a + r) / 2, c = e.x >= t - l - On && e.x <= i + l + On, u = e.y >= n - l - On && e.y <= s + l + On;
17972
17972
  return o === "x" ? c : (o === "y" || c) && u;
17973
17973
  }
17974
- function Tf(e, { rect: t, center: n }, i, { rotation: s, borderWidth: o, hitTolerance: a }) {
17974
+ function Mf(e, { rect: t, center: n }, i, { rotation: s, borderWidth: o, hitTolerance: a }) {
17975
17975
  const r = zn(e, n, $t(-s));
17976
- return Mf(r, t, i, { borderWidth: o, hitTolerance: a });
17976
+ return Tf(r, t, i, { borderWidth: o, hitTolerance: a });
17977
17977
  }
17978
17978
  function Un(e, t) {
17979
17979
  const { centerX: n, centerY: i } = e.getProps(["centerX", "centerY"], t);
@@ -18130,7 +18130,7 @@ function iP(e, t) {
18130
18130
  }
18131
18131
  function sP(e, t, n, i) {
18132
18132
  const { radius: s, options: o } = t, a = o.pointStyle, r = o.rotation;
18133
- let l = (r || 0) * Mr;
18133
+ let l = (r || 0) * Tr;
18134
18134
  if (Do(a)) {
18135
18135
  e.save(), e.translate(n, i), e.rotate(l), e.drawImage(a, -a.width / 2, -a.height / 2, a.width, a.height), e.restore();
18136
18136
  return;
@@ -18142,7 +18142,7 @@ function oP(e, { x: t, y: n, radius: i, rotation: s, style: o, rad: a }) {
18142
18142
  switch (e.beginPath(), o) {
18143
18143
  // Default includes circle
18144
18144
  default:
18145
- e.arc(t, n, i, 0, Tt), e.closePath();
18145
+ e.arc(t, n, i, 0, Mt), e.closePath();
18146
18146
  break;
18147
18147
  case "triangle":
18148
18148
  e.moveTo(t + Math.sin(a) * i, n - Math.cos(a) * i), a += oo, e.lineTo(t + Math.sin(a) * i, n - Math.cos(a) * i), a += oo, e.lineTo(t + Math.sin(a) * i, n - Math.cos(a) * i), e.closePath();
@@ -18335,7 +18335,7 @@ function Bf(e, t) {
18335
18335
  return n.initProperties = yi(e, n, t), n.elements = [{
18336
18336
  type: "label",
18337
18337
  optionScope: "label",
18338
- properties: TP(e, n, t),
18338
+ properties: MP(e, n, t),
18339
18339
  initProperties: n.initProperties
18340
18340
  }], n;
18341
18341
  }
@@ -18382,7 +18382,7 @@ function wP({ properties: e, options: t }, n, i, s) {
18382
18382
  size: n.width
18383
18383
  });
18384
18384
  }
18385
- function MP({ properties: e, options: t }, n, i, s) {
18385
+ function TP({ properties: e, options: t }, n, i, s) {
18386
18386
  const { y: o, y2: a, height: r } = e;
18387
18387
  return Hf({ start: o, end: a, borderWidth: t.borderWidth }, {
18388
18388
  position: i.y,
@@ -18395,10 +18395,10 @@ function Hf(e, t) {
18395
18395
  const { start: n, end: i, borderWidth: s } = e, { position: o, padding: { start: a, end: r }, adjust: l } = t, c = i - s - n - a - r - t.size;
18396
18396
  return n + s / 2 + l + $r(c, o);
18397
18397
  }
18398
- function TP(e, t, n) {
18398
+ function MP(e, t, n) {
18399
18399
  const i = n.label;
18400
18400
  i.backgroundColor = "transparent", i.callout.display = !1;
18401
- const s = Yr(i.position), o = Yt(i.padding), a = Oo(e.ctx, i), r = wP({ properties: t, options: n }, a, s, o), l = MP({ properties: t, options: n }, a, s, o), c = a.width + o.width, u = a.height + o.height;
18401
+ const s = Yr(i.position), o = Yt(i.padding), a = Oo(e.ctx, i), r = wP({ properties: t, options: n }, a, s, o), l = TP({ properties: t, options: n }, a, s, o), c = a.width + o.width, u = a.height + o.height;
18402
18402
  return {
18403
18403
  x: r,
18404
18404
  y: l,
@@ -18527,7 +18527,7 @@ function Ku(e, t, n, i) {
18527
18527
  class _i extends se {
18528
18528
  inRange(t, n, i, s) {
18529
18529
  const { x: o, y: a } = zn({ x: t, y: n }, this.getCenterPoint(s), $t(-this.options.rotation));
18530
- return Mf({ x: o, y: a }, this.getProps(["x", "y", "x2", "y2"], s), i, this.options);
18530
+ return Tf({ x: o, y: a }, this.getProps(["x", "y", "x2", "y2"], s), i, this.options);
18531
18531
  }
18532
18532
  getCenterPoint(t) {
18533
18533
  return Un(this, t);
@@ -18610,7 +18610,7 @@ _i.descriptors = {
18610
18610
  };
18611
18611
  class Po extends se {
18612
18612
  inRange(t, n, i, s) {
18613
- return Tf(
18613
+ return Mf(
18614
18614
  { x: t, y: n },
18615
18615
  { rect: this.getProps(["x", "y", "x2", "y2"], s), center: this.getCenterPoint(s) },
18616
18616
  i,
@@ -18726,7 +18726,7 @@ function BP(e, t, n, i) {
18726
18726
  if (l <= 0)
18727
18727
  return {
18728
18728
  _startAngle: 0,
18729
- _endAngle: Tt
18729
+ _endAngle: Mt
18730
18730
  };
18731
18731
  const c = (-a - Math.sqrt(l)) / 2, u = (-a + Math.sqrt(l)) / 2;
18732
18732
  return {
@@ -18742,7 +18742,7 @@ function HP(e, t) {
18742
18742
  }
18743
18743
  class ms extends se {
18744
18744
  inRange(t, n, i, s) {
18745
- return Tf(
18745
+ return Mf(
18746
18746
  { x: t, y: n },
18747
18747
  { rect: this.getProps(["x", "y", "x2", "y2"], s), center: this.getCenterPoint(s) },
18748
18748
  i,
@@ -19251,7 +19251,7 @@ class Ro extends se {
19251
19251
  }
19252
19252
  resolveElementProperties(t, n) {
19253
19253
  const i = Uf(t, n), { sides: s, rotation: o } = n, a = [], r = 2 * at / s;
19254
- let l = o * Mr;
19254
+ let l = o * Tr;
19255
19255
  for (let c = 0; c < s; c++, l += r) {
19256
19256
  const u = iA(i, n, l);
19257
19257
  u.initProperties = yi(t, i, n), a.push(u);
@@ -19586,7 +19586,7 @@ const yA = { class: "zoom-timerange-container" }, bA = { class: "zoom-timerange-
19586
19586
  for (const [i, s] of t)
19587
19587
  n[i] = s;
19588
19588
  return n;
19589
- }, jf = /* @__PURE__ */ Wt(xA, [["__scopeId", "data-v-4fa681cf"]]), wA = { class: "zoom-actions-container" }, MA = { class: "zoom-actions-heading" }, TA = { class: "zoom-action-select" }, SA = ["data-testid"], kA = ["aria-disabled", "href"], DA = ["onClick"], CA = /* @__PURE__ */ Ut({
19589
+ }, jf = /* @__PURE__ */ Wt(xA, [["__scopeId", "data-v-4fa681cf"]]), wA = { class: "zoom-actions-container" }, TA = { class: "zoom-actions-heading" }, MA = { class: "zoom-action-select" }, SA = ["data-testid"], kA = ["aria-disabled", "href"], DA = ["onClick"], CA = /* @__PURE__ */ Ut({
19590
19590
  __name: "ZoomActions",
19591
19591
  props: {
19592
19592
  zoomActionItems: {},
@@ -19599,7 +19599,7 @@ const yA = { class: "zoom-timerange-container" }, bA = { class: "zoom-timerange-
19599
19599
  o.action && (o.action(n.newTimeRange), i("onAction"));
19600
19600
  };
19601
19601
  return (o, a) => (L(), j("div", wA, [
19602
- G("div", MA, [
19602
+ G("div", TA, [
19603
19603
  Vt(jf, {
19604
19604
  end: e.newTimeRange.end,
19605
19605
  granularity: e.granularity,
@@ -19613,7 +19613,7 @@ const yA = { class: "zoom-timerange-container" }, bA = { class: "zoom-timerange-
19613
19613
  }, null, 8, ["color", "size"])
19614
19614
  ]),
19615
19615
  a[2] || (a[2] = G("div", { class: "zoom-actions-heading-divider" }, null, -1)),
19616
- G("div", TA, [
19616
+ G("div", MA, [
19617
19617
  (L(!0), j(_e, null, Oe(e.zoomActionItems, (r) => (L(), j("div", {
19618
19618
  key: r.key,
19619
19619
  class: Ct(["zoom-action-item", { disabled: r.disabled }]),
@@ -19657,21 +19657,21 @@ const yA = { class: "zoom-timerange-container" }, bA = { class: "zoom-timerange-
19657
19657
  x: parseFloat(i.absoluteLeft),
19658
19658
  y: parseFloat(i.absoluteTop)
19659
19659
  }
19660
- }), l = M(() => `${a.value}px`), c = M(() => `${o.value}px`), u = M(() => i.state.tooltipContext), d = M(() => i.state.metricDisplay), h = M(() => ["interactive", "zoom-interactive"].includes(i.state.interactionMode));
19661
- return At(() => [i.absoluteLeft, i.absoluteTop], ([f, m]) => {
19662
- r.value || (o.value = parseFloat(f), a.value = parseFloat(m));
19663
- }), At(r, (f) => {
19664
- f ? document.body.classList.add("no-select") : document.body.classList.remove("no-select");
19665
- }), At(s, (f) => {
19666
- if (f) {
19667
- const { width: m, height: g } = f.getBoundingClientRect();
19668
- n("dimensions", { width: m, height: g });
19660
+ }), l = T(() => `${a.value}px`), c = T(() => `${o.value}px`), u = T(() => i.state.tooltipContext), d = T(() => i.state.metricDisplay), h = T(() => ["interactive", "zoom-interactive"].includes(i.state.interactionMode)), f = T(() => h.value || Number.isFinite(parseFloat(i.absoluteLeft)) && Number.isFinite(parseFloat(i.absoluteTop)));
19661
+ return At(() => [i.absoluteLeft, i.absoluteTop], ([m, g]) => {
19662
+ r.value || (o.value = parseFloat(m), a.value = parseFloat(g));
19663
+ }), At(r, (m) => {
19664
+ m ? document.body.classList.add("no-select") : document.body.classList.remove("no-select");
19665
+ }), At(s, (m) => {
19666
+ if (m) {
19667
+ const { width: g, height: p } = m.getBoundingClientRect();
19668
+ n("dimensions", { width: g, height: p });
19669
19669
  }
19670
- }), (f, m) => e.state.showTooltip ? (L(), j("div", {
19671
- key: 0,
19670
+ }), (m, g) => e.state.showTooltip ? (L(), j("div", {
19671
+ key: f.value ? "positioned" : "measuring",
19672
19672
  ref_key: "tooltipEl",
19673
19673
  ref: s,
19674
- class: Ct(["tooltip-container", { locked: e.state.interactionMode === "interactive" }]),
19674
+ class: Ct(["tooltip-container", { locked: e.state.interactionMode === "interactive", measuring: !f.value }]),
19675
19675
  style: We({
19676
19676
  transform: h.value ? `translate(${c.value}, ${l.value})` : `translate(${e.absoluteLeft}, ${e.absoluteTop})`,
19677
19677
  left: "0",
@@ -19689,7 +19689,7 @@ const yA = { class: "zoom-timerange-container" }, bA = { class: "zoom-timerange-
19689
19689
  granularity: e.granularity,
19690
19690
  "new-time-range": e.zoomTimeRange,
19691
19691
  "zoom-action-items": e.zoomActionItems,
19692
- onOnAction: m[0] || (m[0] = (g) => n("onAction"))
19692
+ onOnAction: g[0] || (g[0] = (p) => n("onAction"))
19693
19693
  }, null, 8, ["granularity", "new-time-range", "zoom-action-items"])) : (L(), j("div", PA, [
19694
19694
  G("div", AA, [
19695
19695
  G("div", RA, [
@@ -19707,29 +19707,29 @@ const yA = { class: "zoom-timerange-container" }, bA = { class: "zoom-timerange-
19707
19707
  ])) : mt("", !0)
19708
19708
  ]),
19709
19709
  G("ul", NA, [
19710
- (L(!0), j(_e, null, Oe(e.state.tooltipSeries, ({ backgroundColor: g, borderColor: p, label: b, value: _, isSegmentEmpty: x, isExtra: S }, v) => (L(), j(_e, {
19711
- key: b + v
19710
+ (L(!0), j(_e, null, Oe(e.state.tooltipSeries, ({ backgroundColor: p, borderColor: b, label: _, value: x, isSegmentEmpty: S, isExtra: v }, k) => (L(), j(_e, {
19711
+ key: _ + k
19712
19712
  }, [
19713
19713
  e.state.tooltipSeries.length ? (L(), j("li", {
19714
19714
  key: 0,
19715
- class: Ct({ "extra-row": S })
19715
+ class: Ct({ "extra-row": v })
19716
19716
  }, [
19717
- S ? (L(), j("div", FA)) : (L(), j("div", {
19717
+ v ? (L(), j("div", FA)) : (L(), j("div", {
19718
19718
  key: 1,
19719
19719
  class: "square-marker",
19720
- style: We({ background: String(g), borderColor: String(p) })
19720
+ style: We({ background: String(p), borderColor: String(b) })
19721
19721
  }, null, 4)),
19722
19722
  G("span", {
19723
- class: Ct(["display-label", { empty: x }])
19724
- }, tt(b), 3),
19725
- G("span", zA, tt(_), 1)
19723
+ class: Ct(["display-label", { empty: S }])
19724
+ }, tt(_), 3),
19725
+ G("span", zA, tt(x), 1)
19726
19726
  ], 2)) : mt("", !0)
19727
19727
  ], 64))), 128))
19728
19728
  ])
19729
19729
  ]))
19730
19730
  ], 6)) : mt("", !0);
19731
19731
  }
19732
- }), ys = /* @__PURE__ */ Wt(UA, [["__scopeId", "data-v-84038ef6"]]), BA = {
19732
+ }), ys = /* @__PURE__ */ Wt(UA, [["__scopeId", "data-v-183403c6"]]), BA = {
19733
19733
  key: 0,
19734
19734
  class: "legend-container",
19735
19735
  "data-testid": "legend"
@@ -19770,7 +19770,7 @@ const yA = { class: "zoom-timerange-container" }, bA = { class: "zoom-timerange-
19770
19770
  return !0;
19771
19771
  const d = t.chartInstance instanceof ge ? t.chartInstance : t.chartInstance.chart;
19772
19772
  return d.getDatasetMeta(c).dataset || u === void 0 ? d.isDatasetVisible(c) : d.getDataVisibility(u);
19773
- }, l = M(() => t.items.map((c) => ({
19773
+ }, l = T(() => t.items.map((c) => ({
19774
19774
  ...c,
19775
19775
  isVisible: c.isKey || r(c.datasetIndex, c.index)
19776
19776
  })));
@@ -19780,7 +19780,7 @@ const yA = { class: "zoom-timerange-container" }, bA = { class: "zoom-timerange-
19780
19780
  (L(!0), j(_e, null, Oe(l.value, ({ fillStyle: h, strokeStyle: f, text: m, datasetIndex: g, index: p, value: b, isSegmentEmpty: _, isKey: x, lineDash: S, isVisible: v }, k) => (L(), j("li", {
19781
19781
  key: o({ datasetIndex: g, index: p, isKey: x }, k),
19782
19782
  class: Ct({ "legend-key": x }),
19783
- onClick: (T) => x ? void 0 : a(g, p)
19783
+ onClick: (M) => x ? void 0 : a(g, p)
19784
19784
  }, [
19785
19785
  (L(), ht(Xs(x ? "div" : "button"), {
19786
19786
  "aria-pressed": x ? void 0 : v,
@@ -20053,15 +20053,15 @@ const e2 = ["id"], n2 = ["id"], i2 = { class: "axis-tooltip-content" }, s2 = "10
20053
20053
  watchTimestamp: !1,
20054
20054
  watchDimension: !0
20055
20055
  }), l = tn("chartContainer"), c = tn("chartParent"), u = ({ chart: N }, W) => {
20056
- const Mt = N.data, yt = Mt.labels?.indexOf(W);
20057
- return Mt.datasets.reduce((ft, Lt, Zt) => {
20056
+ const Tt = N.data, yt = Tt.labels?.indexOf(W);
20057
+ return Tt.datasets.reduce((ft, Lt, Zt) => {
20058
20058
  if (N.isDatasetVisible(Zt)) {
20059
20059
  const jt = Lt.data[yt];
20060
20060
  return isNaN(jt) ? ft : ft + jt;
20061
20061
  } else
20062
20062
  return ft;
20063
20063
  }, 0);
20064
- }, d = (N, W, Mt, yt) => {
20064
+ }, d = (N, W, Tt, yt) => {
20065
20065
  const ft = yt === "horizontal";
20066
20066
  W === null && (W = n.t("entityNoName"));
20067
20067
  const Lt = {
@@ -20072,12 +20072,12 @@ const e2 = ["id"], n2 = ["id"], i2 = { class: "axis-tooltip-content" }, s2 = "10
20072
20072
  ...Lt,
20073
20073
  position: ft ? { x: "start", y: "center" } : { x: "center", y: "end" },
20074
20074
  yAdjust: () => ft ? 0 : -Math.abs(XC()),
20075
- content: (Rt) => Ou(u(Rt, W), Mt)
20075
+ content: (Rt) => Ou(u(Rt, W), Tt)
20076
20076
  }, jt = {
20077
20077
  ...Lt,
20078
20078
  content: (Rt) => ZC(u(Rt, W), KC(Rt.chart, N)),
20079
20079
  position: ft ? { x: "start", y: "center" } : { x: "center", y: "end" },
20080
- xAdjust: (Rt) => ft ? GC(Ou(u(Rt, W), Mt)) : 0,
20080
+ xAdjust: (Rt) => ft ? GC(Ou(u(Rt, W), Tt)) : 0,
20081
20081
  color: Ae({ state: "neutral" })
20082
20082
  };
20083
20083
  return {
@@ -20091,7 +20091,7 @@ const e2 = ["id"], n2 = ["id"], i2 = { class: "axis-tooltip-content" }, s2 = "10
20091
20091
  text: "",
20092
20092
  offset: -50
20093
20093
  // Avoids App Shell obstruction
20094
- }), x = st(t, "metricUnit"), S = M(() => t.orientation === "horizontal"), v = ai({
20094
+ }), x = st(t, "metricUnit"), S = T(() => t.orientation === "horizontal"), v = ai({
20095
20095
  showTooltip: !1,
20096
20096
  tooltipContext: "",
20097
20097
  // set in tooltipBehaviour
@@ -20110,7 +20110,7 @@ const e2 = ["id"], n2 = ["id"], i2 = { class: "axis-tooltip-content" }, s2 = "10
20110
20110
  chartType: S.value ? "horizontal_bar" : "vertical_bar",
20111
20111
  chartID: o,
20112
20112
  chartTooltipSortFn: t.chartTooltipSortFn
20113
- }), { tooltipAbsoluteLeft: k, tooltipAbsoluteTop: T } = J.useTooltipAbsolutePosition(
20113
+ }), { tooltipAbsoluteLeft: k, tooltipAbsoluteTop: M } = J.useTooltipAbsolutePosition(
20114
20114
  c,
20115
20115
  v
20116
20116
  ), P = St(0), I = () => t.annotations && t.chartData.labels?.reduce(
@@ -20134,11 +20134,11 @@ const e2 = ["id"], n2 = ["id"], i2 = { class: "axis-tooltip-content" }, s2 = "10
20134
20134
  // https://www.chartjs.org/docs/latest/api/interfaces/Plugin.html#parameters
20135
20135
  afterEvent(N, W) {
20136
20136
  if (_.show = !1, W.event.type === "mousemove") {
20137
- const Mt = W.event, yt = N.options.indexAxis, ft = N.scales, Lt = N.scales[yt].getLabelForValue(Number(N.scales[yt].getValueForPixel(Mt[yt]))), jt = N.scales[yt].getLabels().indexOf(Lt), Rt = t.chartData.isLabelEmpty?.[jt];
20138
- if (((yn) => yn === "x" ? Mt.y > ft.x.top : Mt.x < ft.y.right)(yt)) {
20137
+ const Tt = W.event, yt = N.options.indexAxis, ft = N.scales, Lt = N.scales[yt].getLabelForValue(Number(N.scales[yt].getValueForPixel(Tt[yt]))), jt = N.scales[yt].getLabels().indexOf(Lt), Rt = t.chartData.isLabelEmpty?.[jt];
20138
+ if (((yn) => yn === "x" ? Tt.y > ft.x.top : Tt.x < ft.y.right)(yt)) {
20139
20139
  v.interactionMode !== "interactive" && (v.showTooltip = !1);
20140
- const z = N.canvas.getContext("2d").measureText(Lt).width, Q = Math.abs(Math.round(Mt.x - z * 0.5)), dt = Math.round(Mt.x + z * 0.5), It = N.canvas.getBoundingClientRect(), le = 40;
20141
- _.left = yt === "x" ? `${(Q > 0 ? Q : dt) - _.offset + It.left}px` : `${Mt.x - z * 0.5 - _.offset + It.left}px`, _.top = `${Mt.y - le + It.top}px`, Lt.length > Wa ? (_.show = !0, _.text = Lt) : Rt ? (_.text = n.t("emptyEntityInfo"), _.show = !0) : _.show = !1;
20140
+ const z = N.canvas.getContext("2d").measureText(Lt).width, Q = Math.abs(Math.round(Tt.x - z * 0.5)), dt = Math.round(Tt.x + z * 0.5), It = N.canvas.getBoundingClientRect(), le = 40;
20141
+ _.left = yt === "x" ? `${(Q > 0 ? Q : dt) - _.offset + It.left}px` : `${Tt.x - z * 0.5 - _.offset + It.left}px`, _.top = `${Tt.y - le + It.top}px`, Lt.length > Wa ? (_.show = !0, _.text = Lt) : Rt ? (_.text = n.t("emptyEntityInfo"), _.show = !0) : _.show = !1;
20142
20142
  } else
20143
20143
  _.show = !1;
20144
20144
  }
@@ -20147,12 +20147,12 @@ const e2 = ["id"], n2 = ["id"], i2 = { class: "axis-tooltip-content" }, s2 = "10
20147
20147
  a,
20148
20148
  r,
20149
20149
  ...t.annotations ? [w] : []
20150
- ], F = M(() => t.chartData.labels && t.chartData.labels.length || 0), Y = St(0), q = St(0), Z = new ResizeObserver(ff((N) => {
20150
+ ], F = T(() => t.chartData.labels && t.chartData.labels.length || 0), Y = St(0), q = St(0), Z = new ResizeObserver(ff((N) => {
20151
20151
  Y.value = N[0].contentRect.width, q.value = N[0].contentRect.height;
20152
- }, 100)), ct = M(() => {
20152
+ }, 100)), ct = T(() => {
20153
20153
  const N = t.chartData?.labels?.length;
20154
20154
  return h.value && N && !S.value ? `${Math.max(N * (a2 + dd), Y.value)}px` : s2;
20155
- }), ut = M(() => {
20155
+ }), ut = T(() => {
20156
20156
  const N = t.chartData?.labels?.length;
20157
20157
  return h.value && N && S.value ? `${Math.max(N * (r2 + dd), q.value)}px` : o2;
20158
20158
  });
@@ -20161,7 +20161,7 @@ const e2 = ["id"], n2 = ["id"], i2 = { class: "axis-tooltip-content" }, s2 = "10
20161
20161
  }), qe(() => {
20162
20162
  l.value && Z.unobserve(l.value);
20163
20163
  });
20164
- const et = M(() => {
20164
+ const et = T(() => {
20165
20165
  const N = J.useBarChartOptions({
20166
20166
  tooltipState: v,
20167
20167
  legendID: m,
@@ -20193,12 +20193,12 @@ const e2 = ["id"], n2 = ["id"], i2 = { class: "axis-tooltip-content" }, s2 = "10
20193
20193
  });
20194
20194
  const D = {
20195
20195
  [ne.Bottom]: "column"
20196
- }, A = M(() => {
20196
+ }, A = T(() => {
20197
20197
  if (f.value && $.value) {
20198
- const N = window.devicePixelRatio, W = $.value, Mt = W.scales.y.width * N + d2, yt = (W.scales.y.height + W.scales.y.top + W.scales.x.height) * N, ft = f.value.getContext("2d");
20199
- return ft.scale(N, N), ft.canvas.width = Mt, ft.canvas.height = yt, ft.canvas.style.width = `${Mt / N}px`, ft.canvas.style.height = `${yt / N}px`, {
20198
+ const N = window.devicePixelRatio, W = $.value, Tt = W.scales.y.width * N + d2, yt = (W.scales.y.height + W.scales.y.top + W.scales.x.height) * N, ft = f.value.getContext("2d");
20199
+ return ft.scale(N, N), ft.canvas.width = Tt, ft.canvas.height = yt, ft.canvas.style.width = `${Tt / N}px`, ft.canvas.style.height = `${yt / N}px`, {
20200
20200
  scale: N,
20201
- width: Mt * N,
20201
+ width: Tt * N,
20202
20202
  height: yt * N,
20203
20203
  targetCtx: ft
20204
20204
  };
@@ -20207,8 +20207,8 @@ const e2 = ["id"], n2 = ["id"], i2 = { class: "axis-tooltip-content" }, s2 = "10
20207
20207
  }), B = (N) => {
20208
20208
  const W = N.target;
20209
20209
  if (A.value && $.value && !S.value) {
20210
- const Mt = A.value.scale, yt = A.value.targetCtx, ft = A.value.width, Lt = A.value.height, Zt = $.value, jt = Zt.canvas;
20211
- yt.fillStyle = "white", W.scrollLeft >= l2 && W.scrollLeft <= c2 ? (yt.globalCompositeOperation = "source-over", yt.clearRect(0, 0, ft, Lt), yt.drawImage(jt, 0, 0, ft, Lt, 0, 0, ft, Lt), yt.globalCompositeOperation = "destination-over", yt.fillRect(0, 0, ft, Lt)) : (yt.globalCompositeOperation = "source-over", yt.fillRect(0, (Zt.scales.y.height + Zt.scales.y.top + u2) * Mt, ft, Zt.scales.x.height * Mt));
20210
+ const Tt = A.value.scale, yt = A.value.targetCtx, ft = A.value.width, Lt = A.value.height, Zt = $.value, jt = Zt.canvas;
20211
+ yt.fillStyle = "white", W.scrollLeft >= l2 && W.scrollLeft <= c2 ? (yt.globalCompositeOperation = "source-over", yt.clearRect(0, 0, ft, Lt), yt.drawImage(jt, 0, 0, ft, Lt, 0, 0, ft, Lt), yt.globalCompositeOperation = "destination-over", yt.fillRect(0, 0, ft, Lt)) : (yt.globalCompositeOperation = "source-over", yt.fillRect(0, (Zt.scales.y.height + Zt.scales.y.top + u2) * Tt, ft, Zt.scales.x.height * Tt));
20212
20212
  }
20213
20213
  v.offsetY = W.scrollTop, v.offsetX = W.scrollLeft, _.offset = W.scrollLeft;
20214
20214
  }, V = ({ width: N, height: W }) => {
@@ -20238,7 +20238,7 @@ const e2 = ["id"], n2 = ["id"], i2 = { class: "axis-tooltip-content" }, s2 = "10
20238
20238
  G("div", {
20239
20239
  ref: "chartContainer",
20240
20240
  class: "chart-container",
20241
- onClick: W[0] || (W[0] = (Mt) => lt()),
20241
+ onClick: W[0] || (W[0] = (Tt) => lt()),
20242
20242
  onScroll: B
20243
20243
  }, [
20244
20244
  G("div", {
@@ -20263,7 +20263,7 @@ const e2 = ["id"], n2 = ["id"], i2 = { class: "axis-tooltip-content" }, s2 = "10
20263
20263
  ], 4)) : mt("", !0),
20264
20264
  Vt(ys, {
20265
20265
  "absolute-left": U(k),
20266
- "absolute-top": U(T),
20266
+ "absolute-top": U(M),
20267
20267
  "chart-parent-ref": c.value,
20268
20268
  state: v,
20269
20269
  "tooltip-title": e.tooltipTitle,
@@ -20559,7 +20559,7 @@ function Lo(e, t) {
20559
20559
  }
20560
20560
  });
20561
20561
  }
20562
- const Zf = /* @__PURE__ */ Lo("bar", Ah), Qf = /* @__PURE__ */ Lo("doughnut", hs), Jf = /* @__PURE__ */ Lo("line", Rh), w2 = /* @__PURE__ */ Lo("scatter", Eh), M2 = { class: "chart-container" }, T2 = {
20562
+ const Zf = /* @__PURE__ */ Lo("bar", Ah), Qf = /* @__PURE__ */ Lo("doughnut", hs), Jf = /* @__PURE__ */ Lo("line", Rh), w2 = /* @__PURE__ */ Lo("scatter", Eh), T2 = { class: "chart-container" }, M2 = {
20563
20563
  key: 0,
20564
20564
  class: "chart-center-metric"
20565
20565
  }, S2 = { class: "chart-center-total" }, k2 = {
@@ -20612,10 +20612,10 @@ const Zf = /* @__PURE__ */ Lo("bar", Ah), Qf = /* @__PURE__ */ Lo("doughnut", hs
20612
20612
  afterUpdate(P) {
20613
20613
  a.value = P.options.plugins.legend.labels.generateLabels(P).map((I) => ({ ...I, value: t.legendValues && t.legendValues[I.text], hidden: !1 }));
20614
20614
  }
20615
- }, f = M(() => [
20615
+ }, f = T(() => [
20616
20616
  l,
20617
20617
  h
20618
- ]), m = M(() => [t.chartData.datasets.reduce((I, R) => (I.dimension = R.dimension, I.dimensionValue.push(R.dimensionValue), I.labels.push(R.label), I.backgroundColor.push(R.backgroundColor), I.hoverBorderColor.push(ro(R.backgroundColor).saturate(0.5).darken(0.15).hexString()), I.data.push(R.data.reduce((w, C) => w + C, 0)), I), {
20618
+ ]), m = T(() => [t.chartData.datasets.reduce((I, R) => (I.dimension = R.dimension, I.dimensionValue.push(R.dimensionValue), I.labels.push(R.label), I.backgroundColor.push(R.backgroundColor), I.hoverBorderColor.push(ro(R.backgroundColor).saturate(0.5).darken(0.15).hexString()), I.data.push(R.data.reduce((w, C) => w + C, 0)), I), {
20619
20619
  dimension: "",
20620
20620
  dimensionValue: [],
20621
20621
  labels: [],
@@ -20626,13 +20626,13 @@ const Zf = /* @__PURE__ */ Lo("bar", Ah), Qf = /* @__PURE__ */ Lo("doughnut", hs
20626
20626
  hoverBorderWidth: 1,
20627
20627
  data: [],
20628
20628
  hoverOffset: 10
20629
- })]), { formatUnit: g } = Ie({ i18n: i }), p = M(() => zO(t.metricName ?? "")), b = M(() => {
20629
+ })]), { formatUnit: g } = Ie({ i18n: i }), p = T(() => zO(t.metricName ?? "")), b = T(() => {
20630
20630
  const P = m.value[0]?.data.reduce((I, R) => I + R, 0) ?? 0;
20631
20631
  return g(P, t.metricUnit, {
20632
20632
  approximate: !0,
20633
20633
  translateUnit: (I, R) => n(I, R)
20634
20634
  }).trim();
20635
- }), _ = M(() => t.tooltipMetricDisplay || ""), x = M(() => ({
20635
+ }), _ = T(() => t.tooltipMetricDisplay || ""), x = T(() => ({
20636
20636
  ...t.chartData,
20637
20637
  datasets: m.value
20638
20638
  }));
@@ -20643,7 +20643,7 @@ const Zf = /* @__PURE__ */ Lo("bar", Ah), Qf = /* @__PURE__ */ Lo("doughnut", hs
20643
20643
  }), v = St(), k = (P) => ({
20644
20644
  [ne.Bottom]: "column",
20645
20645
  [ne.Hidden]: "hidden"
20646
- })[P], T = ({ width: P, height: I }) => {
20646
+ })[P], M = ({ width: P, height: I }) => {
20647
20647
  c.width = P, c.height = I;
20648
20648
  };
20649
20649
  return (P, I) => (L(), j("div", {
@@ -20651,7 +20651,7 @@ const Zf = /* @__PURE__ */ Lo("bar", Ah), Qf = /* @__PURE__ */ Lo("doughnut", hs
20651
20651
  class: Ct(["chart-parent", k(e.legendPosition)]),
20652
20652
  "data-testid": "donut-chart-parent"
20653
20653
  }, [
20654
- G("div", M2, [
20654
+ G("div", T2, [
20655
20655
  Vt(U(Qf), {
20656
20656
  ref_key: "chartInstance",
20657
20657
  ref: v,
@@ -20660,7 +20660,7 @@ const Zf = /* @__PURE__ */ Lo("bar", Ah), Qf = /* @__PURE__ */ Lo("doughnut", hs
20660
20660
  options: U(S),
20661
20661
  plugins: f.value
20662
20662
  }, null, 8, ["chart-id", "data", "options", "plugins"]),
20663
- e.showCenterMetric && p.value ? (L(), j("div", T2, [
20663
+ e.showCenterMetric && p.value ? (L(), j("div", M2, [
20664
20664
  G("span", S2, tt(b.value), 1),
20665
20665
  _.value ? (L(), j("span", k2, tt(_.value), 1)) : mt("", !0)
20666
20666
  ])) : mt("", !0),
@@ -20671,7 +20671,7 @@ const Zf = /* @__PURE__ */ Lo("bar", Ah), Qf = /* @__PURE__ */ Lo("doughnut", hs
20671
20671
  state: c,
20672
20672
  "tooltip-title": e.tooltipTitle,
20673
20673
  unit: e.metricUnit,
20674
- onDimensions: T
20674
+ onDimensions: M
20675
20675
  }, null, 8, ["absolute-left", "absolute-top", "state", "tooltip-title", "unit"])
20676
20676
  ]))
20677
20677
  ]),
@@ -20771,12 +20771,12 @@ const R2 = { class: "chart-container" }, I2 = /* @__PURE__ */ Ut({
20771
20771
  f
20772
20772
  );
20773
20773
  J.useReportChartDataForSynthetics(st(t, "chartData"), st(t, "syntheticsDataKey"));
20774
- const p = M(() => t.chartData?.outlier), b = M(() => t.chartData?.referenceLines ?? []), _ = St([]), x = {
20774
+ const p = T(() => t.chartData?.outlier), b = T(() => t.chartData?.referenceLines ?? []), _ = St([]), x = {
20775
20775
  id: c,
20776
20776
  afterUpdate(w) {
20777
20777
  _.value = Fr(w, void 0, t.chartLegendSortFn);
20778
20778
  }
20779
- }, S = M(() => {
20779
+ }, S = T(() => {
20780
20780
  const w = [];
20781
20781
  p.value && w.push({
20782
20782
  text: p.value.label,
@@ -20797,12 +20797,12 @@ const R2 = { class: "chart-container" }, I2 = /* @__PURE__ */ Ut({
20797
20797
  }
20798
20798
  });
20799
20799
  return w;
20800
- }), v = M(() => [..._.value, ...S.value]), k = M(() => t.shadeOutlierRegion ? p.value?.value : void 0), T = M(() => [
20800
+ }), v = T(() => [..._.value, ...S.value]), k = T(() => t.shadeOutlierRegion ? p.value?.value : void 0), M = T(() => [
20801
20801
  d,
20802
20802
  x,
20803
20803
  ...k.value !== void 0 ? [r] : [],
20804
20804
  ...b.value.length ? [l] : []
20805
- ]), P = M(() => `scatter-${T.value.map((w) => w.id).join("-")}`), { options: I } = J.useScatterChartOptions({
20805
+ ]), P = T(() => `scatter-${M.value.map((w) => w.id).join("-")}`), { options: I } = J.useScatterChartOptions({
20806
20806
  tooltipState: f,
20807
20807
  legendID: c,
20808
20808
  granularity: st(t, "granularity"),
@@ -20834,7 +20834,7 @@ const R2 = { class: "chart-container" }, I2 = /* @__PURE__ */ Ut({
20834
20834
  data: e.chartData,
20835
20835
  "data-testid": "scatter-chart",
20836
20836
  options: U(I),
20837
- plugins: T.value
20837
+ plugins: M.value
20838
20838
  }, null, 8, ["chart-id", "data", "options", "plugins"]))
20839
20839
  ]),
20840
20840
  Vt(ys, {
@@ -20853,7 +20853,7 @@ const R2 = { class: "chart-container" }, I2 = /* @__PURE__ */ Ut({
20853
20853
  }, null, 8, ["id", "chart-instance", "items"])
20854
20854
  ], 2));
20855
20855
  }
20856
- }), E2 = /* @__PURE__ */ Wt(I2, [["__scopeId", "data-v-34d55736"]]), Ma = (e, t, n, i, s = "#0275d8") => {
20856
+ }), E2 = /* @__PURE__ */ Wt(I2, [["__scopeId", "data-v-34d55736"]]), Ta = (e, t, n, i, s = "#0275d8") => {
20857
20857
  e.save(), e.beginPath(), e.moveTo(t, n), e.lineTo(t, i), e.lineWidth = 1, e.strokeStyle = s, e.stroke(), e.restore();
20858
20858
  }, oe = {}, L2 = () => {
20859
20859
  oe.x = void 0, oe.chart = void 0, oe.strategy = void 0, oe.group = void 0;
@@ -20896,18 +20896,18 @@ class tm {
20896
20896
  const n = t.tooltip && t.tooltip.getActiveElements() && t.tooltip.getActiveElements().length, i = t.ctx;
20897
20897
  if (this._clickedSegment) {
20898
20898
  const { x: s } = this._clickedSegment.element;
20899
- Ma(i, s, t.scales.y.top, t.scales.y.bottom);
20899
+ Ta(i, s, t.scales.y.top, t.scales.y.bottom);
20900
20900
  } else if (this._useBrushingState)
20901
20901
  this.drawByBrush(t);
20902
20902
  else if (n) {
20903
20903
  const { x: s } = t.tooltip.dataPoints[0].element;
20904
- Ma(i, s, t.scales.y.top, t.scales.y.bottom);
20904
+ Ta(i, s, t.scales.y.top, t.scales.y.bottom);
20905
20905
  }
20906
20906
  }
20907
20907
  drawByBrush(t) {
20908
20908
  if (oe.x === void 0) return;
20909
20909
  const n = oe.chart === t ? "#0275d8" : "rgba(2, 117, 216, 0.3)";
20910
- this._brushStrategy === "group" && oe.group === this._brushGroup && Ma(t.ctx, oe.x, t.scales.y.top, t.scales.y.bottom, n);
20910
+ this._brushStrategy === "group" && oe.group === this._brushGroup && Ta(t.ctx, oe.x, t.scales.y.top, t.scales.y.bottom, n);
20911
20911
  }
20912
20912
  pause() {
20913
20913
  this._pause = !0;
@@ -21191,14 +21191,14 @@ const j2 = /* @__PURE__ */ Ut({
21191
21191
  afterUpdate(D) {
21192
21192
  f.value = Fr(D, n.legendValues, n.chartLegendSortFn);
21193
21193
  }
21194
- }, T = M(() => [
21194
+ }, M = T(() => [
21195
21195
  _,
21196
21196
  k,
21197
21197
  a,
21198
21198
  ...n.brush ? [r] : [],
21199
21199
  ...n.type === "timeseries_line" ? [o] : [],
21200
21200
  ...n.threshold ? [l] : []
21201
- ]), P = M(() => `line-${T.value.map((D) => D.id).join("-")}`), I = M(() => `bar-${T.value.map((D) => D.id).join("-")}`), R = M(() => n.chartData && HC(n.chartData)), { options: w } = J.useLineChartOptions({
21201
+ ]), P = T(() => `line-${M.value.map((D) => D.id).join("-")}`), I = T(() => `bar-${M.value.map((D) => D.id).join("-")}`), R = T(() => n.chartData && HC(n.chartData)), { options: w } = J.useLineChartOptions({
21202
21202
  tooltipState: x,
21203
21203
  timeRangeMs: st(n, "timeRangeMs"),
21204
21204
  granularity: st(n, "granularity"),
@@ -21283,7 +21283,7 @@ const j2 = /* @__PURE__ */ Ut({
21283
21283
  data: e.chartData,
21284
21284
  "data-testid": "time-series-line-chart",
21285
21285
  options: U(w),
21286
- plugins: T.value
21286
+ plugins: M.value
21287
21287
  }, null, 8, ["chart-id", "data", "options", "plugins"])) : e.type === "timeseries_bar" ? (L(), ht(U(Zf), {
21288
21288
  key: I.value,
21289
21289
  ref_key: "chartInstance",
@@ -21293,7 +21293,7 @@ const j2 = /* @__PURE__ */ Ut({
21293
21293
  data: e.chartData,
21294
21294
  "data-testid": "time-series-bar-chart",
21295
21295
  options: U(w),
21296
- plugins: T.value
21296
+ plugins: M.value
21297
21297
  }, null, 8, ["chart-id", "data", "options", "plugins"])) : mt("", !0)
21298
21298
  ]),
21299
21299
  Vt(ys, {
@@ -21387,38 +21387,38 @@ const j2 = /* @__PURE__ */ Ut({
21387
21387
  At(() => s.chartOptions.type, () => {
21388
21388
  l.value = crypto.randomUUID();
21389
21389
  }, { immediate: !0 });
21390
- const c = M(() => $u(s.chartData) ? void 0 : s.chartData), u = M(() => {
21390
+ const c = T(() => $u(s.chartData) ? void 0 : s.chartData), u = T(() => {
21391
21391
  const z = s.chartOptions.metricAxisMap, Q = c.value?.meta?.metric_names ?? [];
21392
21392
  if (!(s.chartOptions.type !== "timeseries_line" || !z || !Q.some((dt) => z[dt] === "right")))
21393
21393
  return z;
21394
- }), d = M(() => !!u.value), h = (z, Q) => u.value ? z.filter((dt) => (u.value?.[dt] ?? "left") === Q) : z, f = M(() => {
21394
+ }), d = T(() => !!u.value), h = (z, Q) => u.value ? z.filter((dt) => (u.value?.[dt] ?? "left") === Q) : z, f = T(() => {
21395
21395
  const z = c.value?.meta, Q = z?.metric_names ?? [];
21396
21396
  return ["timeseries_line", "timeseries_bar"].includes(s.chartOptions.type) && !d.value && Q.length > 1 && Object.keys(z?.display ?? {}).length > 0 ? Q : [];
21397
- }), m = M(() => f.value.length > 1), g = M(() => s.activeMetric && f.value.includes(s.activeMetric) ? s.activeMetric : f.value[0]), p = M(() => {
21397
+ }), m = T(() => f.value.length > 1), g = T(() => s.activeMetric && f.value.includes(s.activeMetric) ? s.activeMetric : f.value[0]), p = T(() => {
21398
21398
  const z = c.value;
21399
21399
  return !z || !m.value || !g.value ? z : {
21400
21400
  ...z,
21401
21401
  meta: { ...z.meta, metric_names: [g.value] }
21402
21402
  };
21403
- }), b = M(() => {
21403
+ }), b = T(() => {
21404
21404
  const z = s.chartOptions.threshold;
21405
21405
  return !m.value || !z ? z : {
21406
21406
  ...z,
21407
21407
  ...Object.fromEntries(Object.keys(z).filter((Q) => Q !== g.value).map((Q) => [Q, []]))
21408
21408
  };
21409
- }), _ = M(() => {
21409
+ }), _ = T(() => {
21410
21410
  if (et.value)
21411
21411
  return $u(s.chartData) ? s.chartData : $O(s.chartData);
21412
- }), x = Ye("app:konnectColorMode", M(() => "light")), S = tn("chartShell"), v = M(() => (x.value, Br(S.value))), k = M(() => {
21412
+ }), x = Ye("app:konnectColorMode", T(() => "light")), S = tn("chartShell"), v = T(() => (x.value, Br(S.value))), k = T(() => {
21413
21413
  if (_.value) {
21414
- const { start: Q, end: dt, metric: It, metricUnit: le, truncated: bs, limit: Te, datasource: Bn } = _.value;
21414
+ const { start: Q, end: dt, metric: It, metricUnit: le, truncated: bs, limit: Me, datasource: Bn } = _.value;
21415
21415
  return {
21416
21416
  start: Q,
21417
21417
  end: dt,
21418
21418
  metricNames: [It],
21419
21419
  metricUnits: { [It]: le ?? "" },
21420
21420
  truncated: bs,
21421
- limit: Te,
21421
+ limit: Me,
21422
21422
  datasource: Bn
21423
21423
  };
21424
21424
  }
@@ -21432,7 +21432,7 @@ const j2 = /* @__PURE__ */ Ut({
21432
21432
  limit: z?.limit,
21433
21433
  datasource: z?.datasource
21434
21434
  };
21435
- }), T = M(() => et.value ? J.useScatterDatasets(
21435
+ }), M = T(() => et.value ? J.useScatterDatasets(
21436
21436
  {
21437
21437
  colorPalette: s.chartOptions.chartDatasetColors,
21438
21438
  scatter: s.chartOptions.scatter,
@@ -21458,16 +21458,16 @@ const j2 = /* @__PURE__ */ Ut({
21458
21458
  c,
21459
21459
  l.value,
21460
21460
  n
21461
- ).value : { datasets: [] }), P = M(() => s.timeseriesZoom || !!s.exploreLink || !!s.requestsLink), I = M(() => {
21461
+ ).value : { datasets: [] }), P = T(() => s.timeseriesZoom || !!s.exploreLink || !!s.requestsLink), I = T(() => {
21462
21462
  if (!s.chartData || c.value && !c.value.meta)
21463
21463
  return 0;
21464
21464
  const { start: z, end: Q } = k.value;
21465
21465
  if (z && Q)
21466
21466
  return new Date(Q).getTime() - new Date(z).getTime();
21467
- }), R = M(() => k.value.metricUnits ? m.value && g.value ? k.value.metricUnits[g.value] ?? "" : Object.values(k.value.metricUnits)[0] ?? "" : ""), w = M(() => k.value.metricUnits ? m.value && g.value ? g.value : Object.keys(k.value.metricUnits)[0] ?? "" : ""), C = M(() => s.showLegendValues && s.legendPosition !== ne.Hidden), { legendValues: H } = J.useChartLegendValues(T, s.chartOptions.type, R), F = M(() => k.value.limit?.toString() || null), Y = M(() => s.chartOptions.hideTruncationWarning ? !1 : k.value.truncated || !1), q = M(() => o.t("limitedResultsShown", { maxReturned: F.value })), Z = M(() => [
21467
+ }), R = T(() => k.value.metricUnits ? m.value && g.value ? k.value.metricUnits[g.value] ?? "" : Object.values(k.value.metricUnits)[0] ?? "" : ""), w = T(() => k.value.metricUnits ? m.value && g.value ? g.value : Object.keys(k.value.metricUnits)[0] ?? "" : ""), C = T(() => s.showLegendValues && s.legendPosition !== ne.Hidden), { legendValues: H } = J.useChartLegendValues(M, s.chartOptions.type, R), F = T(() => k.value.limit?.toString() || null), Y = T(() => s.chartOptions.hideTruncationWarning ? !1 : k.value.truncated || !1), q = T(() => o.t("limitedResultsShown", { maxReturned: F.value })), Z = T(() => [
21468
21468
  "vertical_bar",
21469
21469
  "horizontal_bar"
21470
- ].includes(s.chartOptions.type)), ct = M(() => ["timeseries_bar", "timeseries_line"].some((z) => z === s.chartOptions.type)), ut = M(() => s.chartOptions.type === "donut"), et = M(() => s.chartOptions.type === "scatter"), $ = M(() => s.chartOptions.type.includes("vertical") ? "vertical" : "horizontal"), D = M(() => {
21470
+ ].includes(s.chartOptions.type)), ct = T(() => ["timeseries_bar", "timeseries_line"].some((z) => z === s.chartOptions.type)), ut = T(() => s.chartOptions.type === "donut"), et = T(() => s.chartOptions.type === "scatter"), $ = T(() => s.chartOptions.type.includes("vertical") ? "vertical" : "horizontal"), D = T(() => {
21471
21471
  const { metricNames: z, metricUnits: Q } = k.value;
21472
21472
  if (d.value || !z || !Q)
21473
21473
  return;
@@ -21486,14 +21486,14 @@ const j2 = /* @__PURE__ */ Ut({
21486
21486
  }
21487
21487
  return a(dt);
21488
21488
  }
21489
- }), A = M(() => {
21489
+ }), A = T(() => {
21490
21490
  const z = s.chartOptions.yAxes?.left?.title ?? s.chartOptions?.metricAxesTitle;
21491
21491
  if (z)
21492
21492
  return z;
21493
21493
  const { metricNames: Q, metricUnits: dt } = k.value;
21494
21494
  if (!(!Q || !dt))
21495
21495
  return V(h(Q, "left"), dt);
21496
- }), B = M(() => {
21496
+ }), B = T(() => {
21497
21497
  if (!d.value)
21498
21498
  return;
21499
21499
  const { metricNames: z, metricUnits: Q } = k.value, dt = z && Q ? V(h(z, "right"), Q) : void 0;
@@ -21518,27 +21518,27 @@ const j2 = /* @__PURE__ */ Ut({
21518
21518
  return a(z, { prefix: "metricAxisTitles" }) || void 0;
21519
21519
  const dt = o.te(`chartUnits.${Q}`) ? o.t(`chartUnits.${Q}`, { plural: "s" }) : Q, It = r.fieldTranslationMap.get(z);
21520
21520
  return It ? `${It} (${dt})` : o.te(`metricAxisTitles.${z}`) ? o.t(`metricAxisTitles.${z}`, { unit: dt }) || void 0 : z || void 0;
21521
- }, N = M(() => {
21521
+ }, N = T(() => {
21522
21522
  if (s.chartOptions?.dimensionAxesTitle)
21523
21523
  return s.chartOptions.dimensionAxesTitle;
21524
21524
  const z = c.value?.meta, Q = ct.value ? "Time" : Object.keys(z?.display || z?.metric_names || {})[0];
21525
21525
  if (Q)
21526
21526
  return a(Q);
21527
- }), W = M(() => {
21527
+ }), W = T(() => {
21528
21528
  if (gp(k.value.datasource))
21529
21529
  return o.t("timestampAxisTitles.platform");
21530
- const z = Ts(c.value?.meta?.granularity_ms);
21530
+ const z = Ms(c.value?.meta?.granularity_ms);
21531
21531
  if (z)
21532
21532
  return o.te(`granularityAxisTitles.${z}`) ? o.t(`granularityAxisTitles.${z}`) : z;
21533
- }), Mt = M(() => {
21533
+ }), Tt = T(() => {
21534
21534
  const z = _.value?.xMetric;
21535
21535
  return z ? lt(z, _.value?.xMetricUnit ?? "") : W.value;
21536
- }), yt = M(() => s.emptyStateTitle || o.t("noDataAvailableTitle")), ft = M(() => s.emptyStateDescription || o.t("noDataAvailableDescription")), Lt = M(() => et.value ? !!_.value?.points.length : ct.value ? $C(T.value) : !!(c.value && c.value.meta && c.value.data.length)), Zt = M(() => {
21536
+ }), yt = T(() => s.emptyStateTitle || o.t("noDataAvailableTitle")), ft = T(() => s.emptyStateDescription || o.t("noDataAvailableDescription")), Lt = T(() => et.value ? !!_.value?.points.length : ct.value ? $C(M.value) : !!(c.value && c.value.meta && c.value.data.length)), Zt = T(() => {
21537
21537
  const z = c.value;
21538
- return z ? z.meta.granularity_ms ? Ts(z.meta.granularity_ms) || "hourly" : Ts(
21538
+ return z ? z.meta.granularity_ms ? Ms(z.meta.granularity_ms) || "hourly" : Ms(
21539
21539
  new Date(z.data[1].timestamp).getTime() - new Date(z.data[0].timestamp).getTime()
21540
21540
  ) || "hourly" : "hourly";
21541
- }), jt = M(() => Ts(c.value?.meta?.granularity_ms) || "secondly"), Rt = M(() => s.chartOptions.chartLegendSortFn ? s.chartOptions.chartLegendSortFn : (z, Q) => z.text === o.t("chartLabels.____OTHER____") ? 1 : Q.text === o.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(z.text, 10)) && !isNaN(parseInt(Q.text, 10)) ? z.text < Q.text ? -1 : 1 : z.value && Q.value ? Q.value.raw - z.value.raw : 0), Ge = M(() => s.chartOptions.chartTooltipSortFn ? s.chartOptions.chartTooltipSortFn : (z, Q) => z.label === o.t("chartLabels.____OTHER____") ? 1 : Q.label === o.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(z.label, 10)) && !isNaN(parseInt(Q.label, 10)) ? z.label < Q.label ? -1 : 1 : z.value && Q.value ? Q.rawValue - z.rawValue : 0), yn = M(() => [
21541
+ }), jt = T(() => Ms(c.value?.meta?.granularity_ms) || "secondly"), Rt = T(() => s.chartOptions.chartLegendSortFn ? s.chartOptions.chartLegendSortFn : (z, Q) => z.text === o.t("chartLabels.____OTHER____") ? 1 : Q.text === o.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(z.text, 10)) && !isNaN(parseInt(Q.text, 10)) ? z.text < Q.text ? -1 : 1 : z.value && Q.value ? Q.value.raw - z.value.raw : 0), Ge = T(() => s.chartOptions.chartTooltipSortFn ? s.chartOptions.chartTooltipSortFn : (z, Q) => z.label === o.t("chartLabels.____OTHER____") ? 1 : Q.label === o.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(z.label, 10)) && !isNaN(parseInt(Q.label, 10)) ? z.label < Q.label ? -1 : 1 : z.value && Q.value ? Q.rawValue - z.rawValue : 0), yn = T(() => [
21542
21542
  ...s.timeseriesZoom ? [{
21543
21543
  label: o.t("zoom_action_items.zoom"),
21544
21544
  key: "zoom-in",
@@ -21573,7 +21573,7 @@ const j2 = /* @__PURE__ */ Ut({
21573
21573
  G("div", tR, tt(q.value), 1)
21574
21574
  ]),
21575
21575
  default: Nt(() => [
21576
- Vt(U(Mg), {
21576
+ Vt(U(Tg), {
21577
21577
  color: `var(--kui-color-text-warning, ${U(D0)})`,
21578
21578
  size: `var(--kui-icon-size-40, ${U(O0)})`
21579
21579
  }, null, 8, ["color", "size"])
@@ -21590,7 +21590,7 @@ const j2 = /* @__PURE__ */ Ut({
21590
21590
  ct.value ? (L(), ht(q2, {
21591
21591
  key: 0,
21592
21592
  brush: P.value,
21593
- "chart-data": T.value,
21593
+ "chart-data": M.value,
21594
21594
  "chart-legend-sort-fn": Rt.value,
21595
21595
  "chart-tooltip-sort-fn": Ge.value,
21596
21596
  coordinator: U(n),
@@ -21615,7 +21615,7 @@ const j2 = /* @__PURE__ */ Ut({
21615
21615
  }, null, 8, ["brush", "chart-data", "chart-legend-sort-fn", "chart-tooltip-sort-fn", "coordinator", "dimension-axes-title", "fill", "granularity", "left-y-axis-grid", "legend-values", "metric-axes-title", "metric-unit", "right-y-axis", "stacked", "synthetics-data-key", "threshold", "time-range-ms", "tooltip-metric-display", "tooltip-title", "type", "zoom-action-items"])) : Z.value ? (L(), ht(f2, {
21616
21616
  key: 1,
21617
21617
  annotations: e.showAnnotations,
21618
- "chart-data": T.value,
21618
+ "chart-data": M.value,
21619
21619
  "chart-legend-sort-fn": Rt.value,
21620
21620
  "chart-tooltip-sort-fn": Ge.value,
21621
21621
  coordinator: U(n),
@@ -21631,7 +21631,7 @@ const j2 = /* @__PURE__ */ Ut({
21631
21631
  "tooltip-title": e.tooltipTitle
21632
21632
  }, null, 8, ["annotations", "chart-data", "chart-legend-sort-fn", "chart-tooltip-sort-fn", "coordinator", "dimension-axes-title", "legend-values", "metric-axes-title", "metric-unit", "orientation", "stacked", "synthetics-data-key", "tooltip-metric-display", "tooltip-title"])) : ut.value ? (L(), ht(C2, {
21633
21633
  key: 2,
21634
- "chart-data": T.value,
21634
+ "chart-data": M.value,
21635
21635
  coordinator: U(n),
21636
21636
  "dataset-colors": e.chartOptions.chartDatasetColors || U(sO),
21637
21637
  "legend-position": e.legendPosition,
@@ -21645,12 +21645,12 @@ const j2 = /* @__PURE__ */ Ut({
21645
21645
  "tooltip-title": e.tooltipTitle
21646
21646
  }, null, 8, ["chart-data", "coordinator", "dataset-colors", "legend-position", "legend-values", "metric-name", "metric-unit", "show-center-metric", "synthetics-data-key", "tooltip-dimension-display", "tooltip-metric-display", "tooltip-title"])) : et.value ? (L(), ht(E2, {
21647
21647
  key: 3,
21648
- "chart-data": T.value,
21648
+ "chart-data": M.value,
21649
21649
  "chart-legend-sort-fn": e.chartOptions.chartLegendSortFn,
21650
21650
  "chart-tooltip-sort-fn": Ge.value,
21651
21651
  coordinator: U(n),
21652
21652
  "data-testid": "scatter-chart-container",
21653
- "dimension-axes-title": Mt.value,
21653
+ "dimension-axes-title": Tt.value,
21654
21654
  granularity: jt.value,
21655
21655
  "metric-axes-title": A.value,
21656
21656
  "metric-unit": R.value,
@@ -21731,7 +21731,7 @@ const j2 = /* @__PURE__ */ Ut({
21731
21731
  }
21732
21732
  },
21733
21733
  setup(e) {
21734
- const t = e, { i18n: n } = J.useI18n(), i = St(tr()), s = M(() => [t.chartData.datasets.reduce((f, m) => (f.labels.push(m.label), f.borderColor.push(m.backgroundColor), f.backgroundColor.push(m.backgroundColor), f.data.push(m.data.reduce((g, p) => g + p, 0)), f), { labels: [], backgroundColor: [], borderColor: [], data: [] })]), o = M(() => ({
21734
+ const t = e, { i18n: n } = J.useI18n(), i = St(tr()), s = T(() => [t.chartData.datasets.reduce((f, m) => (f.labels.push(m.label), f.borderColor.push(m.backgroundColor), f.backgroundColor.push(m.backgroundColor), f.data.push(m.data.reduce((g, p) => g + p, 0)), f), { labels: [], backgroundColor: [], borderColor: [], data: [] })]), o = T(() => ({
21735
21735
  ...t.chartData,
21736
21736
  datasets: s.value
21737
21737
  }));
@@ -21749,7 +21749,7 @@ const j2 = /* @__PURE__ */ Ut({
21749
21749
  display: !1
21750
21750
  }
21751
21751
  }
21752
- }, r = M(() => ns(s?.value[0]?.data[t.numerator], { capital: !0 })), l = M(() => ns(s?.value[0]?.data[0] + s?.value[0]?.data[1], { capital: !0 })), c = M(() => `color: ${s?.value[0]?.backgroundColor[t.numerator]}`), u = M(() => ["full", "single"].includes(t.metricDisplay)), d = M(() => t.metricDisplay === "full");
21752
+ }, r = T(() => ns(s?.value[0]?.data[t.numerator], { capital: !0 })), l = T(() => ns(s?.value[0]?.data[0] + s?.value[0]?.data[1], { capital: !0 })), c = T(() => `color: ${s?.value[0]?.backgroundColor[t.numerator]}`), u = T(() => ["full", "single"].includes(t.metricDisplay)), d = T(() => t.metricDisplay === "full");
21753
21753
  return (h, f) => (L(), j("div", nR, [
21754
21754
  G("div", iR, [
21755
21755
  u.value ? (L(), j("div", {
@@ -21788,7 +21788,7 @@ const j2 = /* @__PURE__ */ Ut({
21788
21788
  key: 0,
21789
21789
  class: "single-value-trend-range",
21790
21790
  "data-testid": "single-value-trend-range"
21791
- }, Ta = "t1", Sa = "t2", mR = /* @__PURE__ */ Ut({
21791
+ }, Ma = "t1", Sa = "t2", mR = /* @__PURE__ */ Ut({
21792
21792
  __name: "SingleValue",
21793
21793
  props: {
21794
21794
  data: {
@@ -21830,22 +21830,22 @@ const j2 = /* @__PURE__ */ Ut({
21830
21830
  }
21831
21831
  },
21832
21832
  setup(e) {
21833
- const t = J.useFieldLabel(), { i18n: n } = J.useI18n(), { formatBytes: i, formatCost: s } = Ie({ i18n: n }), o = e, a = M(() => `align-${o.leftAlign ? "left" : o.alignX}`), r = M(() => Vg(o.data, o.showTrend, { topLevelKey: Ta, secondLevelKey: Sa })), l = M(() => r.value?.previous?.[Ta]?.[Sa]), c = M(() => r.value?.current?.[Ta]?.[Sa]), u = M(() => o.data.data), d = M(() => o.data.meta?.metric_names?.[0]), h = M(() => d.value ? t(d.value, { fallback: "" }) : ""), f = M(() => {
21833
+ const t = J.useFieldLabel(), { i18n: n } = J.useI18n(), { formatBytes: i, formatCost: s } = Ie({ i18n: n }), o = e, a = T(() => `align-${o.leftAlign ? "left" : o.alignX}`), r = T(() => Vg(o.data, o.showTrend, { topLevelKey: Ma, secondLevelKey: Sa })), l = T(() => r.value?.previous?.[Ma]?.[Sa]), c = T(() => r.value?.current?.[Ma]?.[Sa]), u = T(() => o.data.data), d = T(() => o.data.meta?.metric_names?.[0]), h = T(() => d.value ? t(d.value, { fallback: "" }) : ""), f = T(() => {
21834
21834
  const w = d.value ? o.data.meta?.metric_units?.[d.value] : void 0;
21835
21835
  if (w) {
21836
21836
  const C = `chartUnits.${w}`;
21837
21837
  return n.te(C) ? n.t(C, { plural: "" }) : "";
21838
21838
  }
21839
- }), m = M(
21839
+ }), m = T(
21840
21840
  () => !!d.value && (d.value.includes("_per_minute") || d.value.includes("_latency_") || d.value === "error_rate")
21841
- ), g = M(() => o.showTrend && l.value !== void 0 ? l.value : null), p = M(() => {
21841
+ ), g = T(() => o.showTrend && l.value !== void 0 ? l.value : null), p = T(() => {
21842
21842
  if (o.showTrend)
21843
21843
  return c.value ?? null;
21844
21844
  if (u.value.length < 1 || !d.value)
21845
21845
  return null;
21846
21846
  const w = u.value[0].event[d.value];
21847
21847
  return typeof w != "number" || isNaN(w) ? null : w;
21848
- }), b = M(() => o.data?.data?.length === void 0 || o.data?.data?.length === 0 || !o.showTrend && p.value === null || o.showTrend && g.value === null && p.value === null), _ = M(() => {
21848
+ }), b = T(() => o.data?.data?.length === void 0 || o.data?.data?.length === 0 || !o.showTrend && p.value === null || o.showTrend && g.value === null && p.value === null), _ = T(() => {
21849
21849
  const w = p.value;
21850
21850
  if (w === null)
21851
21851
  return "-";
@@ -21864,7 +21864,7 @@ const j2 = /* @__PURE__ */ Ut({
21864
21864
  }
21865
21865
  const H = o.decimalPoints && typeof o.decimalPoints == "number" ? o.decimalPoints : gl;
21866
21866
  return w.toLocaleString("en-US", { maximumFractionDigits: H });
21867
- }), x = M(() => o.showTrend && o.data?.data?.length < 2), S = M(() => jg(p.value ?? 0, g.value ?? 0) || 0), v = M(() => {
21867
+ }), x = T(() => o.showTrend && o.data?.data?.length < 2), S = T(() => jg(p.value ?? 0, g.value ?? 0) || 0), v = T(() => {
21868
21868
  if (!o.showTrend)
21869
21869
  return 0;
21870
21870
  if (o.data?.data?.length < 2) {
@@ -21874,7 +21874,7 @@ const j2 = /* @__PURE__ */ Ut({
21874
21874
  return o.increaseIsBad ? 1 : -1;
21875
21875
  }
21876
21876
  return qg(S.value, !0, o.increaseIsBad);
21877
- }), k = M(() => Gg(v.value, o.increaseIsBad)), T = M(() => {
21877
+ }), k = T(() => Gg(v.value, o.increaseIsBad)), M = T(() => {
21878
21878
  if (o.showTrend && o.data?.data?.length < 2) {
21879
21879
  if (l.value === void 0)
21880
21880
  return n.t("singleValue.trend.not_available");
@@ -21882,7 +21882,7 @@ const j2 = /* @__PURE__ */ Ut({
21882
21882
  return fl(-1, !0, n.t("singleValue.trend.not_available"));
21883
21883
  }
21884
21884
  return fl(S.value, o.data?.data?.length === 2, n.t("singleValue.trend.not_available"));
21885
- }), P = Xg(M(() => o.showTrend), void 0, M(() => o.data.meta)), I = (w) => w > 0 ? "positive" : w < 0 ? "negative" : "neutral", R = (w) => w > 0 ? k0 : w < 0 ? S0 : Wl;
21885
+ }), P = Xg(T(() => o.showTrend), void 0, T(() => o.data.meta)), I = (w) => w > 0 ? "positive" : w < 0 ? "negative" : "neutral", R = (w) => w > 0 ? k0 : w < 0 ? S0 : Wl;
21886
21886
  return fn(() => {
21887
21887
  !o.showTrend && o.data?.data?.length > 1 ? console.warn("SingleValue chart should only be used with a single data point. Data length:", o.data.data.length) : o.showTrend && o.data?.data?.length > 2 && console.warn("SingleValue with trend expects 2 or fewer data points. Instead got:", o.data.data.length);
21888
21888
  }), (w, C) => {
@@ -21917,12 +21917,12 @@ const j2 = /* @__PURE__ */ Ut({
21917
21917
  key: 0,
21918
21918
  color: R(v.value),
21919
21919
  size: `var(--kui-icon-size-30, ${U(li)})`
21920
- }, null, 8, ["color", "size"])) : (L(), ht(U(Tg), {
21920
+ }, null, 8, ["color", "size"])) : (L(), ht(U(Mg), {
21921
21921
  key: 1,
21922
21922
  color: `var(--kui-color-text-neutral-strong, ${U(Wl)})`,
21923
21923
  size: `var(--kui-icon-size-30, ${U(li)})`
21924
21924
  }, null, 8, ["color", "size"])),
21925
- G("div", null, tt(T.value), 1)
21925
+ G("div", null, tt(M.value), 1)
21926
21926
  ], 2),
21927
21927
  U(P) ? (L(), j("div", fR, tt(U(P)), 1)) : mt("", !0)
21928
21928
  ], 2)) : mt("", !0)
@@ -21972,7 +21972,7 @@ const j2 = /* @__PURE__ */ Ut({
21972
21972
  At(() => t.chartOptions.type, () => {
21973
21973
  i.value = crypto.randomUUID();
21974
21974
  }, { immediate: !0 });
21975
- const s = M(() => {
21975
+ const s = T(() => {
21976
21976
  const u = J.useExploreResultToDatasets(
21977
21977
  {
21978
21978
  colorPalette: t.chartOptions.chartDatasetColors
@@ -21981,7 +21981,7 @@ const j2 = /* @__PURE__ */ Ut({
21981
21981
  i.value
21982
21982
  ).value;
21983
21983
  return t.chartOptions?.reverseDataset && u?.datasets.reverse(), u;
21984
- }), o = M(() => t.chartData.meta?.metric_units ? Object.values(t.chartData.meta.metric_units)[0] : ""), a = M(() => t.chartOptions.type === "gauge"), r = M(() => t.chartOptions.type === "single_value"), l = M(() => t.emptyStateTitle || n.t("noDataAvailableTitle")), c = M(() => {
21984
+ }), o = T(() => t.chartData.meta?.metric_units ? Object.values(t.chartData.meta.metric_units)[0] : ""), a = T(() => t.chartOptions.type === "gauge"), r = T(() => t.chartOptions.type === "single_value"), l = T(() => t.emptyStateTitle || n.t("noDataAvailableTitle")), c = T(() => {
21985
21985
  const u = t.chartData && t.chartData.meta && t.chartData.data.length;
21986
21986
  if (r.value) {
21987
21987
  const d = t.chartData.meta?.metric_names?.[0];
@@ -22092,25 +22092,25 @@ const j2 = /* @__PURE__ */ Ut({
22092
22092
  chartType: e.type === "sparkline_bar" ? "timeseries_bar" : "timeseries_line",
22093
22093
  chartID: t,
22094
22094
  interactionMode: "idle"
22095
- }), d = ({ width: T, height: P }) => {
22096
- u.width = T, u.height = P;
22097
- }, h = M(() => e.disableTooltip ? [] : [new tm({
22095
+ }), d = ({ width: M, height: P }) => {
22096
+ u.width = M, u.height = P;
22097
+ }, h = T(() => e.disableTooltip ? [] : [new tm({
22098
22098
  // if either groupKey or chartKey is undefined then brushing doesn't make any
22099
22099
  // sense as the data in this chart isn't related to any other data.
22100
22100
  enableBrushing: e.groupKey !== void 0 && e.chartKey !== void 0 && e.enableBrushing,
22101
22101
  brushStrategy: "group",
22102
22102
  brushGroup: e.groupKey
22103
- })]), f = M(() => c.value.reduce((T, { data: P, label: I }) => ({
22104
- ...T,
22103
+ })]), f = T(() => c.value.reduce((M, { data: P, label: I }) => ({
22104
+ ...M,
22105
22105
  [I]: P.reduce((R, { y: w }) => R + w, 0)
22106
- }), {})), m = M(() => c.value.map(({ label: T }) => [
22107
- f.value[T],
22108
- `${T}: ${f.value[T]}`
22109
- ]).sort(([T], [P]) => P - T).map(([, T]) => T).join(", ")), g = M(() => Object.keys(f.value).map((T) => f.value[T]).reduce((T, P) => T + P, 0)), p = M(() => g.value > 0), b = M(() => ({
22106
+ }), {})), m = T(() => c.value.map(({ label: M }) => [
22107
+ f.value[M],
22108
+ `${M}: ${f.value[M]}`
22109
+ ]).sort(([M], [P]) => P - M).map(([, M]) => M).join(", ")), g = T(() => Object.keys(f.value).map((M) => f.value[M]).reduce((M, P) => M + P, 0)), p = T(() => g.value > 0), b = T(() => ({
22110
22110
  labels: new Array(l.value).fill(""),
22111
22111
  datasets: c.value
22112
- })), _ = M(() => e.datasets.length > 1), x = `SparklineTooltipPosition-${t}`, S = M(() => {
22113
- const T = e.type === "sparkline_bar", P = T ? s.value - 1 : s.value, I = T ? o.value : o.value - i.value;
22112
+ })), _ = T(() => e.datasets.length > 1), x = `SparklineTooltipPosition-${t}`, S = T(() => {
22113
+ const M = e.type === "sparkline_bar", P = M ? s.value - 1 : s.value, I = M ? o.value : o.value - i.value;
22114
22114
  return {
22115
22115
  maintainAspectRatio: !1,
22116
22116
  elements: {
@@ -22133,8 +22133,8 @@ const j2 = /* @__PURE__ */ Ut({
22133
22133
  },
22134
22134
  layout: {
22135
22135
  padding: {
22136
- left: T ? 0 : 2,
22137
- right: T ? 0 : 2,
22136
+ left: M ? 0 : 2,
22137
+ right: M ? 0 : 2,
22138
22138
  top: 2
22139
22139
  }
22140
22140
  },
@@ -22181,8 +22181,8 @@ const j2 = /* @__PURE__ */ Ut({
22181
22181
  };
22182
22182
  }), v = St("0"), k = St("0");
22183
22183
  return fn(() => {
22184
- ee.positioners[x] = function(T, P) {
22185
- if (!T.length || u.interactionMode === "interactive" || P.x === null)
22184
+ ee.positioners[x] = function(M, P) {
22185
+ if (!M.length || u.interactionMode === "interactive" || P.x === null)
22186
22186
  return !1;
22187
22187
  const I = 10, R = this.chart.canvas.getBoundingClientRect(), w = u.width || this.width, C = u.height || this.height, H = R.top - C > 0, F = H ? R.top - C - I : R.top + R.height + I, Y = R.left > w / 2 - P.x, q = Math.max(I, window.innerWidth - I - w), Z = Math.min(q, Y ? Math.floor(R.left - w / 2) + P.x : 0 + I);
22188
22188
  return v.value = `${F}px`, k.value = `${Z}px`, {
@@ -22194,7 +22194,7 @@ const j2 = /* @__PURE__ */ Ut({
22194
22194
  };
22195
22195
  }), qe(() => {
22196
22196
  ee.positioners[x] && delete ee.positioners[x];
22197
- }), (T, P) => (L(), j("div", _R, [
22197
+ }), (M, P) => (L(), j("div", _R, [
22198
22198
  p.value ? e.type === "sparkline_bar" ? (L(), ht(U(Zf), {
22199
22199
  key: 1,
22200
22200
  "chart-id": U(t),
@@ -22210,7 +22210,7 @@ const j2 = /* @__PURE__ */ Ut({
22210
22210
  options: S.value,
22211
22211
  plugins: h.value
22212
22212
  }, null, 8, ["chart-id", "data", "data-testid", "options", "plugins"])) : mt("", !0) : (L(), j("div", vR, [
22213
- ri(T.$slots, "empty", {}, () => [
22213
+ ri(M.$slots, "empty", {}, () => [
22214
22214
  he(tt(U(n).t("sparkline_no_data")), 1)
22215
22215
  ], !0)
22216
22216
  ])),
@@ -22227,9 +22227,9 @@ const j2 = /* @__PURE__ */ Ut({
22227
22227
  p.value && e.showLabel ? (L(), j("div", {
22228
22228
  key: 4,
22229
22229
  class: "label",
22230
- title: T.$slots.label ? "" : m.value
22230
+ title: M.$slots.label ? "" : m.value
22231
22231
  }, [
22232
- ri(T.$slots, "label", {
22232
+ ri(M.$slots, "label", {
22233
22233
  total: g.value,
22234
22234
  totalByDataset: f.value
22235
22235
  }, () => [
@@ -22238,7 +22238,7 @@ const j2 = /* @__PURE__ */ Ut({
22238
22238
  ], 8, xR)) : mt("", !0)
22239
22239
  ]));
22240
22240
  }
22241
- }), PI = /* @__PURE__ */ Wt(wR, [["__scopeId", "data-v-ae8259b6"]]), MR = ["data-value"], TR = ["title"], SR = { class: "top-talkers-cell-metric" }, kR = {
22241
+ }), PI = /* @__PURE__ */ Wt(wR, [["__scopeId", "data-v-ae8259b6"]]), TR = ["data-value"], MR = ["title"], SR = { class: "top-talkers-cell-metric" }, kR = {
22242
22242
  class: "top-talkers-cell-value",
22243
22243
  "data-testid": "top-talkers-cell-value"
22244
22244
  }, DR = {
@@ -22297,12 +22297,12 @@ const j2 = /* @__PURE__ */ Ut({
22297
22297
  class: "top-talkers-cell-name",
22298
22298
  "data-testid": "top-talkers-cell-name",
22299
22299
  title: e.cell.name
22300
- }, tt(e.cell.name), 9, TR),
22300
+ }, tt(e.cell.name), 9, MR),
22301
22301
  G("span", SR, [
22302
22302
  G("span", kR, tt(e.cell.display), 1),
22303
22303
  e.cell.relative ? (L(), j("span", DR, "(" + tt(e.cell.relative) + ")", 1)) : mt("", !0)
22304
22304
  ])
22305
- ], 10, MR)
22305
+ ], 10, TR)
22306
22306
  ]),
22307
22307
  _: 1
22308
22308
  }, 8, ["disabled", "style"]));
@@ -22337,7 +22337,7 @@ const j2 = /* @__PURE__ */ Ut({
22337
22337
  st(() => e.dimension),
22338
22338
  st(() => e.sizeMetric),
22339
22339
  st(() => e.columnOptions)
22340
- ), i = M(() => e.label || n.value.label), s = M(() => t.t("topTalkers.total", { value: n.value.total }));
22340
+ ), i = T(() => e.label || n.value.label), s = T(() => t.t("topTalkers.total", { value: n.value.total }));
22341
22341
  return (o, a) => (L(), j("div", {
22342
22342
  class: "top-talkers-column",
22343
22343
  "data-dimension": e.dimension,
@@ -22379,7 +22379,7 @@ const j2 = /* @__PURE__ */ Ut({
22379
22379
  titleTag: { default: "h2" }
22380
22380
  },
22381
22381
  setup(e) {
22382
- const t = e, { i18n: n } = J.useI18n(), i = _g(), s = M(() => !!i.column), o = M(() => s.value || t.columns.some((a) => !!a.data?.data?.length || a.isLoading));
22382
+ const t = e, { i18n: n } = J.useI18n(), i = _g(), s = T(() => !!i.column), o = T(() => s.value || t.columns.some((a) => !!a.data?.data?.length || a.isLoading));
22383
22383
  return (a, r) => (L(), ht(U(Qg), {
22384
22384
  class: "kong-ui-public-top-talkers",
22385
22385
  "title-tag": e.titleTag
@@ -22529,7 +22529,7 @@ const j2 = /* @__PURE__ */ Ut({
22529
22529
  columnOptions: { default: void 0 }
22530
22530
  },
22531
22531
  setup(e) {
22532
- const t = e, { i18n: n } = J.useI18n(), { formatUnit: i } = Ie({ i18n: n }), s = J.useFieldLabel(), o = M(() => t.data.data), a = M(() => !!o.value?.length), r = M(() => t.data.meta?.display ? Object.keys(t.data.meta.display).slice(0, fI) : []), l = M(() => r.value[0] || ""), c = M(() => r.value.length > 1), u = M(() => r.value[r.value.length - 1] || ""), d = M(() => l.value ? t.data.meta.display[l.value] : {}), h = M(() => t.data.meta?.metric_names?.length ? t.data.meta.metric_names : []), f = M(() => h.value[0]), m = M(() => f.value ? s(f.value) : ""), g = M(() => {
22532
+ const t = e, { i18n: n } = J.useI18n(), { formatUnit: i } = Ie({ i18n: n }), s = J.useFieldLabel(), o = T(() => t.data.data), a = T(() => !!o.value?.length), r = T(() => t.data.meta?.display ? Object.keys(t.data.meta.display).slice(0, fI) : []), l = T(() => r.value[0] || ""), c = T(() => r.value.length > 1), u = T(() => r.value[r.value.length - 1] || ""), d = T(() => l.value ? t.data.meta.display[l.value] : {}), h = T(() => t.data.meta?.metric_names?.length ? t.data.meta.metric_names : []), f = T(() => h.value[0]), m = T(() => f.value ? s(f.value) : ""), g = T(() => {
22533
22533
  const D = r.value.map((A) => ({
22534
22534
  key: A,
22535
22535
  columnKey: A,
@@ -22549,7 +22549,7 @@ const j2 = /* @__PURE__ */ Ut({
22549
22549
  type: "metric"
22550
22550
  });
22551
22551
  }), D;
22552
- }), p = M(() => g.value.filter((D) => D.type === "metric")), b = M(() => g.value.filter((D) => D.type === "dimension").slice(1)), _ = (D) => D.type === "dimension" && D.key === u.value, x = (D) => D.type === "metric" && !!ei(t.columnOptions, D.columnKey)?.bar, S = (D) => c.value && D.type === "dimension" && !_(D), v = (D) => {
22552
+ }), p = T(() => g.value.filter((D) => D.type === "metric")), b = T(() => g.value.filter((D) => D.type === "dimension").slice(1)), _ = (D) => D.type === "dimension" && D.key === u.value, x = (D) => D.type === "metric" && !!ei(t.columnOptions, D.columnKey)?.bar, S = (D) => c.value && D.type === "dimension" && !_(D), v = (D) => {
22553
22553
  const A = D.event;
22554
22554
  return String(A[l.value]);
22555
22555
  }, k = (D, A) => {
@@ -22560,7 +22560,7 @@ const j2 = /* @__PURE__ */ Ut({
22560
22560
  name: V?.name || "-",
22561
22561
  deleted: !!V?.deleted
22562
22562
  };
22563
- }, T = (D) => {
22563
+ }, M = (D) => {
22564
22564
  const A = v(D), B = d.value && d.value[A];
22565
22565
  return B ? B.name : "-";
22566
22566
  }, P = (D) => {
@@ -22587,7 +22587,7 @@ const j2 = /* @__PURE__ */ Ut({
22587
22587
  isBytes1024: !0,
22588
22588
  translateUnit: (W) => $(W, V)
22589
22589
  });
22590
- }, w = M(() => Object.fromEntries(h.value.map((D) => [
22590
+ }, w = T(() => Object.fromEntries(h.value.map((D) => [
22591
22591
  D,
22592
22592
  lf(o.value.map((A) => Xi(A.event[D])))
22593
22593
  ]))), C = (D, A) => {
@@ -22601,11 +22601,11 @@ const j2 = /* @__PURE__ */ Ut({
22601
22601
  barRatio: B.bar ? IC(V, lt, B.bar) : void 0,
22602
22602
  threshold: uf(V, B.thresholds)
22603
22603
  };
22604
- }, H = M(() => o.value?.length ? o.value.map((D) => {
22604
+ }, H = T(() => o.value?.length ? o.value.map((D) => {
22605
22605
  const A = r.value.map((N) => k(D, N)), B = A[0], V = B?.id || v(D), lt = {
22606
22606
  id: V,
22607
22607
  rowKey: A.map((N) => `${N.dimension}:${N.id}`).join("|") || V,
22608
- name: B?.name || T(D),
22608
+ name: B?.name || M(D),
22609
22609
  deleted: P(D),
22610
22610
  dimensions: A,
22611
22611
  metrics: {},
@@ -22614,7 +22614,7 @@ const j2 = /* @__PURE__ */ Ut({
22614
22614
  return h.value.forEach((N, W) => {
22615
22615
  lt.metrics[W === 0 ? "value" : N] = C(D, N);
22616
22616
  }), lt;
22617
- }) : []), F = M(() => {
22617
+ }) : []), F = T(() => {
22618
22618
  if (!a.value)
22619
22619
  return "";
22620
22620
  if (t.data.meta) {
@@ -22816,11 +22816,11 @@ export {
22816
22816
  lf as getColumnStats,
22817
22817
  cf as getRelativeValue,
22818
22818
  uf as getThresholdType,
22819
- MI as handleQueryError,
22819
+ TI as handleQueryError,
22820
22820
  FO as isCancellationError,
22821
22821
  $u as isScatterChartData,
22822
22822
  nO as lookupStatusCodeColor,
22823
- TI as requestsToScatterData,
22823
+ MI as requestsToScatterData,
22824
22824
  SI as simpleChartMetricDisplay,
22825
22825
  DI as simpleChartTypes,
22826
22826
  Xi as toNumber