@kong-ui-public/analytics-metric-provider 1.2.10 → 1.2.11

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,4 +1,4 @@
1
- import { ref as xe, watchEffect as Mt, computed as v, getCurrentInstance as At, reactive as Lt, onMounted as kt, onUnmounted as Ot, watch as Ut, isReadonly as zt, toRefs as Yt, defineComponent as U, toRef as Ke, provide as Ht, renderSlot as gt, resolveComponent as ce, openBlock as m, createElementBlock as C, createElementVNode as R, normalizeClass as te, unref as _, createCommentVNode as I, createBlock as x, resolveDynamicComponent as H, toDisplayString as N, withCtx as F, createVNode as ie, normalizeStyle as P, Fragment as Qe, renderList as $t, mergeProps as qt, pushScopeId as Z, popScopeId as j, inject as Ft, normalizeProps as Pt, guardReactiveProps as Vt } from "vue";
1
+ import { ref as xe, watchEffect as At, computed as v, getCurrentInstance as Mt, reactive as Lt, onMounted as Ot, onUnmounted as kt, watch as Ut, isReadonly as zt, toRefs as Yt, defineComponent as U, toRef as Ke, provide as Ht, renderSlot as gt, resolveComponent as ce, openBlock as m, createElementBlock as C, createElementVNode as R, normalizeClass as te, unref as _, createCommentVNode as I, createBlock as x, resolveDynamicComponent as H, toDisplayString as D, withCtx as F, createVNode as ie, normalizeStyle as P, Fragment as Qe, renderList as $t, mergeProps as qt, pushScopeId as Z, popScopeId as j, inject as Ft, normalizeProps as Pt, guardReactiveProps as Vt } from "vue";
2
2
  import { createI18n as Zt, i18nTComponent as jt } from "@kong-ui-public/i18n";
3
3
  var Gt = Object.defineProperty, Bt = (e, t, r) => t in e ? Gt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, L = (e, t, r) => (Bt(e, typeof t != "symbol" ? t + "" : t, r), r), g = /* @__PURE__ */ ((e) => (e.MINUTELY = "Minutely", e.HOURLY = "Hourly", e.DAILY = "Daily", e.WEEKLY = "Weekly", e))(g || {}), w = /* @__PURE__ */ ((e) => (e.FIFTEEN_MIN = "15m", e.ONE_HOUR = "1h", e.SIX_HOUR = "6h", e.TWELVE_HOUR = "12h", e.ONE_DAY = "24h", e.SEVEN_DAY = "7d", e.THIRTY_DAY = "30d", e.CURRENT_WEEK = "current_week", e.CURRENT_MONTH = "current_month", e.CURRENT_QUARTER = "current_quarter", e.PREVIOUS_WEEK = "previous_week", e.PREVIOUS_MONTH = "previous_month", e.PREVIOUS_QUARTER = "previous_quarter", e))(w || {});
4
4
  function fe(e) {
@@ -9,29 +9,29 @@ function fe(e) {
9
9
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
10
10
  }, fe(e);
11
11
  }
12
- function O(e) {
12
+ function k(e) {
13
13
  if (e === null || e === !0 || e === !1)
14
14
  return NaN;
15
15
  var t = Number(e);
16
16
  return isNaN(t) ? t : t < 0 ? Math.ceil(t) : Math.floor(t);
17
17
  }
18
- function M(e, t) {
18
+ function A(e, t) {
19
19
  if (t.length < e)
20
20
  throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present");
21
21
  }
22
22
  function J(e) {
23
- M(1, arguments);
23
+ A(1, arguments);
24
24
  var t = Object.prototype.toString.call(e);
25
25
  return e instanceof Date || fe(e) === "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
26
26
  }
27
- function Me(e, t) {
28
- M(2, arguments);
29
- var r = J(e), i = O(t);
27
+ function Ae(e, t) {
28
+ A(2, arguments);
29
+ var r = J(e), i = k(t);
30
30
  return isNaN(i) ? /* @__PURE__ */ new Date(NaN) : (i && r.setDate(r.getDate() + i), r);
31
31
  }
32
32
  function Wt(e, t) {
33
- M(2, arguments);
34
- var r = J(e), i = O(t);
33
+ A(2, arguments);
34
+ var r = J(e), i = k(t);
35
35
  if (isNaN(i))
36
36
  return /* @__PURE__ */ new Date(NaN);
37
37
  if (!i)
@@ -47,59 +47,59 @@ function Qt() {
47
47
  }
48
48
  function pe(e, t) {
49
49
  var r, i, a, n, o, l, c, s;
50
- M(1, arguments);
51
- var u = Qt(), d = O((r = (i = (a = (n = t == null ? void 0 : t.weekStartsOn) !== null && n !== void 0 ? n : t == null || (o = t.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && a !== void 0 ? a : u.weekStartsOn) !== null && i !== void 0 ? i : (c = u.locale) === null || c === void 0 || (s = c.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && r !== void 0 ? r : 0);
50
+ A(1, arguments);
51
+ var u = Qt(), d = k((r = (i = (a = (n = t == null ? void 0 : t.weekStartsOn) !== null && n !== void 0 ? n : t == null || (o = t.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && a !== void 0 ? a : u.weekStartsOn) !== null && i !== void 0 ? i : (c = u.locale) === null || c === void 0 || (s = c.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && r !== void 0 ? r : 0);
52
52
  if (!(d >= 0 && d <= 6))
53
53
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
54
54
  var f = J(e), p = f.getDay(), h = (p < d ? 7 : 0) + p - d;
55
55
  return f.setDate(f.getDate() - h), f.setHours(0, 0, 0, 0), f;
56
56
  }
57
57
  function Je(e) {
58
- M(1, arguments);
58
+ A(1, arguments);
59
59
  var t = J(e);
60
60
  return t.setHours(0, 0, 0, 0), t;
61
61
  }
62
62
  var Jt = 60, Xt = 3600;
63
63
  function ne(e) {
64
- M(1, arguments);
64
+ A(1, arguments);
65
65
  var t = J(e);
66
66
  return t.setDate(1), t.setHours(0, 0, 0, 0), t;
67
67
  }
68
68
  function er(e) {
69
- M(1, arguments);
69
+ A(1, arguments);
70
70
  var t = J(e), r = t.getFullYear(), i = t.getMonth(), a = /* @__PURE__ */ new Date(0);
71
71
  return a.setFullYear(r, i + 1, 0), a.setHours(0, 0, 0, 0), a.getDate();
72
72
  }
73
- function Ae(e) {
74
- M(1, arguments);
73
+ function Me(e) {
74
+ A(1, arguments);
75
75
  var t = J(e), r = t.getTime();
76
76
  return r;
77
77
  }
78
78
  function Xe(e) {
79
- return M(1, arguments), Math.floor(Ae(e) / 1e3);
79
+ return A(1, arguments), Math.floor(Me(e) / 1e3);
80
80
  }
81
81
  function tr(e) {
82
- return M(1, arguments), Math.floor(e * Xt);
82
+ return A(1, arguments), Math.floor(e * Xt);
83
83
  }
84
84
  function rr(e, t) {
85
- M(2, arguments);
86
- var r = O(t);
87
- return Me(e, -r);
85
+ A(2, arguments);
86
+ var r = k(t);
87
+ return Ae(e, -r);
88
88
  }
89
89
  function nr(e) {
90
- M(1, arguments);
90
+ A(1, arguments);
91
91
  var t = e / Jt;
92
92
  return Math.floor(t);
93
93
  }
94
94
  function $e(e, t) {
95
- M(2, arguments);
96
- var r = O(t);
95
+ A(2, arguments);
96
+ var r = k(t);
97
97
  return Wt(e, -r);
98
98
  }
99
99
  function ir(e, t) {
100
- if (M(2, arguments), !t || fe(t) !== "object")
100
+ if (A(2, arguments), !t || fe(t) !== "object")
101
101
  return /* @__PURE__ */ new Date(NaN);
102
- var r = t.years ? O(t.years) : 0, i = t.months ? O(t.months) : 0, a = t.weeks ? O(t.weeks) : 0, n = t.days ? O(t.days) : 0, o = t.hours ? O(t.hours) : 0, l = t.minutes ? O(t.minutes) : 0, c = t.seconds ? O(t.seconds) : 0, s = $e(e, i + r * 12), u = rr(s, n + a * 7), d = l + o * 60, f = c + d * 60, p = f * 1e3, h = new Date(u.getTime() - p);
102
+ var r = t.years ? k(t.years) : 0, i = t.months ? k(t.months) : 0, a = t.weeks ? k(t.weeks) : 0, n = t.days ? k(t.days) : 0, o = t.hours ? k(t.hours) : 0, l = t.minutes ? k(t.minutes) : 0, c = t.seconds ? k(t.seconds) : 0, s = $e(e, i + r * 12), u = rr(s, n + a * 7), d = l + o * 60, f = c + d * 60, p = f * 1e3, h = new Date(u.getTime() - p);
103
103
  return h;
104
104
  }
105
105
  function qe(e) {
@@ -129,7 +129,7 @@ var ar = ht.exports, Le = { exports: {} };
129
129
  })(Le, Le.exports);
130
130
  var sr = Le.exports;
131
131
  const or = /* @__PURE__ */ qe(sr);
132
- var ke = { exports: {} };
132
+ var Oe = { exports: {} };
133
133
  (function(e, t) {
134
134
  Object.defineProperty(t, "__esModule", {
135
135
  value: !0
@@ -139,8 +139,8 @@ var ke = { exports: {} };
139
139
  return a.setUTCFullYear(i.getFullYear()), i.getTime() - a.getTime();
140
140
  }
141
141
  e.exports = t.default;
142
- })(ke, ke.exports);
143
- var ur = ke.exports;
142
+ })(Oe, Oe.exports);
143
+ var ur = Oe.exports;
144
144
  const et = /* @__PURE__ */ qe(ur);
145
145
  function lr(e, t) {
146
146
  var r = pr(t);
@@ -230,7 +230,7 @@ function ve(e, t, r) {
230
230
  }
231
231
  if (hr(e)) {
232
232
  t = new Date(t || Date.now());
233
- var l = r ? t : vr(t), c = Oe(l, e), s = r ? c : gr(t, c, e);
233
+ var l = r ? t : vr(t), c = ke(l, e), s = r ? c : gr(t, c, e);
234
234
  return -s;
235
235
  }
236
236
  return NaN;
@@ -246,7 +246,7 @@ function vr(e) {
246
246
  e.getMilliseconds()
247
247
  );
248
248
  }
249
- function Oe(e, t) {
249
+ function ke(e, t) {
250
250
  var r = lr(e, t), i = Fe(
251
251
  r[0],
252
252
  r[1] - 1,
@@ -259,11 +259,11 @@ function Oe(e, t) {
259
259
  return a -= n >= 0 ? n : 1e3 + n, i - a;
260
260
  }
261
261
  function gr(e, t, r) {
262
- var i = e.getTime(), a = i - t, n = Oe(new Date(a), r);
262
+ var i = e.getTime(), a = i - t, n = ke(new Date(a), r);
263
263
  if (t === n)
264
264
  return t;
265
265
  a -= n - t;
266
- var o = Oe(new Date(a), r);
266
+ var o = ke(new Date(a), r);
267
267
  return n === o ? n : Math.max(n, o);
268
268
  }
269
269
  function rt(e, t) {
@@ -385,7 +385,7 @@ function Sr(e, t) {
385
385
  if (r = b.DDD.exec(e), r) {
386
386
  i = /* @__PURE__ */ new Date(0);
387
387
  var o = parseInt(r[1], 10);
388
- return Nr(t, o) ? (i.setUTCFullYear(t, 0, o), i) : /* @__PURE__ */ new Date(NaN);
388
+ return Dr(t, o) ? (i.setUTCFullYear(t, 0, o), i) : /* @__PURE__ */ new Date(NaN);
389
389
  }
390
390
  if (r = b.MMDD.exec(e), r) {
391
391
  i = /* @__PURE__ */ new Date(0), a = parseInt(r[1], 10) - 1;
@@ -421,7 +421,7 @@ function at(e, t, r) {
421
421
  var a = i.getUTCDay() || 7, n = t * 7 + r + 1 - a;
422
422
  return i.setUTCDate(i.getUTCDate() + n), i;
423
423
  }
424
- var Dr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Rr = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
424
+ var Nr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Rr = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
425
425
  function Tt(e) {
426
426
  return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
427
427
  }
@@ -432,12 +432,12 @@ function st(e, t, r) {
432
432
  if (r < 1)
433
433
  return !1;
434
434
  var i = Tt(e);
435
- if (i && r > Rr[t] || !i && r > Dr[t])
435
+ if (i && r > Rr[t] || !i && r > Nr[t])
436
436
  return !1;
437
437
  }
438
438
  return !0;
439
439
  }
440
- function Nr(e, t) {
440
+ function Dr(e, t) {
441
441
  if (t < 1)
442
442
  return !1;
443
443
  var r = Tt(e);
@@ -484,7 +484,7 @@ function xr(e, t, r) {
484
484
  function Ct(e, t) {
485
485
  return -ve(e, t);
486
486
  }
487
- function Mr(e, t, r) {
487
+ function Ar(e, t, r) {
488
488
  if (typeof e == "string" && !e.match(yt)) {
489
489
  var i = Ir(r);
490
490
  return i.timeZone = t, Ue(e, i);
@@ -506,7 +506,7 @@ const ut = {
506
506
  [g.DAILY]: 60 * 60 * 24 * 1e3,
507
507
  [g.WEEKLY]: 60 * 60 * 24 * 7 * 1e3
508
508
  };
509
- function Ar(e, t) {
509
+ function Mr(e, t) {
510
510
  return e ? {
511
511
  duration: e,
512
512
  type: "duration",
@@ -524,7 +524,7 @@ function lt(e, t, r) {
524
524
  function Lr(e, t, r) {
525
525
  return wt(Math.ceil, e, t, r);
526
526
  }
527
- let kr = class St {
527
+ let Or = class St {
528
528
  constructor(t, r) {
529
529
  if (L(this, "timeframe"), L(this, "tz"), this.constructor === St)
530
530
  throw new Error("BaseQueryTime is not meant to be used directly.");
@@ -546,7 +546,7 @@ let kr = class St {
546
546
  return Math.floor(this.granularityMs() / 1e3);
547
547
  }
548
548
  granularityDruid() {
549
- return Ar(this.granularityMs(), this.startDate().toISOString());
549
+ return Mr(this.granularityMs(), this.startDate().toISOString());
550
550
  }
551
551
  // Return a UNIX timestamp suitable for use in the `start` query param.
552
552
  startSeconds() {
@@ -558,18 +558,18 @@ let kr = class St {
558
558
  }
559
559
  // Return epoch time in milliseconds, suitable for use in the `startMs` query param.
560
560
  startMs() {
561
- return Ae(this.startDate());
561
+ return Me(this.startDate());
562
562
  }
563
563
  // Return epoch time in milliseconds, suitable for use in the `endMs` query param.
564
564
  endMs() {
565
- return Ae(this.endDate());
565
+ return Me(this.endDate());
566
566
  }
567
567
  // Return whether the timeframe's bounds are within the allotment for a free tier user.
568
568
  withinFreeTier() {
569
569
  return this.startDate() >= ir(/* @__PURE__ */ new Date(), { days: 1 });
570
570
  }
571
571
  };
572
- class Et extends kr {
572
+ class Et extends Or {
573
573
  startDate() {
574
574
  return this.calculateStartDate(this.timeframe.isRelative, this.timeframe.dataGranularity);
575
575
  }
@@ -580,7 +580,7 @@ class Et extends kr {
580
580
  return this.endDate().getTime() - this.startDate().getTime();
581
581
  }
582
582
  }
583
- class Or extends Et {
583
+ class kr extends Et {
584
584
  startDate() {
585
585
  return this.calculateStartDate(this.timeframe.isRelative, this.timeframe.dataGranularity, 2);
586
586
  }
@@ -618,7 +618,7 @@ let z = class {
618
618
  tzAdjustedDate(t) {
619
619
  if (!t)
620
620
  return /* @__PURE__ */ new Date();
621
- const r = Mr(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
621
+ const r = Ar(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
622
622
  return xr(r, t);
623
623
  }
624
624
  };
@@ -663,7 +663,7 @@ class Hr extends z {
663
663
  return t && (r = ae(r, t)), r;
664
664
  }
665
665
  }
666
- const De = /* @__PURE__ */ new Map([
666
+ const Ne = /* @__PURE__ */ new Map([
667
667
  [
668
668
  w.FIFTEEN_MIN,
669
669
  new z({
@@ -763,7 +763,7 @@ const De = /* @__PURE__ */ new Map([
763
763
  timeframeText: "Week",
764
764
  timeframeLength: () => {
765
765
  const e = pe(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
766
- return (Je(Me(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
766
+ return (Je(Ae(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
767
767
  },
768
768
  defaultResponseGranularity: g.DAILY,
769
769
  dataGranularity: g.DAILY,
@@ -779,7 +779,7 @@ const De = /* @__PURE__ */ new Map([
779
779
  timeframeText: "Month",
780
780
  timeframeLength: () => {
781
781
  const e = ne(/* @__PURE__ */ new Date());
782
- return (Je(Me(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
782
+ return (Je(Ae(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
783
783
  },
784
784
  defaultResponseGranularity: g.DAILY,
785
785
  dataGranularity: g.DAILY,
@@ -862,7 +862,7 @@ function Zr() {
862
862
  // Translation component <i18n-t>
863
863
  };
864
864
  }
865
- var Q = /* @__PURE__ */ ((e) => (e.API_PRODUCT = "API_PRODUCT", e.API_PRODUCT_VERSION = "API_PRODUCT_VERSION", e.RUNTIME_GROUP = "RUNTIME_GROUP", e.GATEWAY_INSTANCE_ID = "GATEWAY_INSTANCE_ID", e.GATEWAY_SERVICE = "GATEWAY_SERVICE", e.ROUTE = "ROUTE", e.APPLICATION = "APPLICATION", e.STATUS_CODE = "STATUS_CODE", e.STATUS_CODE_GROUPED = "STATUS_CODE_GROUPED", e.TIME = "TIME", e.ORGANIZATION = "ORGANIZATION", e))(Q || {}), He = /* @__PURE__ */ ((e) => (e.REQUEST_COUNT = "REQUEST_COUNT", e.REQUEST_PER_MINUTE = "REQUEST_PER_MINUTE", e.RESPONSE_LATENCY_P99 = "RESPONSE_LATENCY_P99", e.RESPONSE_LATENCY_P95 = "RESPONSE_LATENCY_P95", e.RESPONSE_LATENCY_P50 = "RESPONSE_LATENCY_P50", e.RESPONSE_SIZE_P99 = "RESPONSE_SIZE_P99", e.RESPONSE_SIZE_P95 = "RESPONSE_SIZE_P95", e.RESPONSE_SIZE_P50 = "RESPONSE_SIZE_P50", e.REQUEST_SIZE_P99 = "REQUEST_SIZE_P99", e.REQUEST_SIZE_P95 = "REQUEST_SIZE_P95", e.REQUEST_SIZE_P50 = "REQUEST_SIZE_P50", e))(He || {}), Dt = /* @__PURE__ */ ((e) => (e.IN = "IN", e.NOT_IN = "NOT_IN", e))(Dt || {});
865
+ var Q = /* @__PURE__ */ ((e) => (e.API_PRODUCT = "API_PRODUCT", e.API_PRODUCT_VERSION = "API_PRODUCT_VERSION", e.RUNTIME_GROUP = "RUNTIME_GROUP", e.GATEWAY_INSTANCE_ID = "GATEWAY_INSTANCE_ID", e.GATEWAY_SERVICE = "GATEWAY_SERVICE", e.ROUTE = "ROUTE", e.APPLICATION = "APPLICATION", e.STATUS_CODE = "STATUS_CODE", e.STATUS_CODE_GROUPED = "STATUS_CODE_GROUPED", e.TIME = "TIME", e.ORGANIZATION = "ORGANIZATION", e.CONTROL_PLANE = "CONTROL_PLANE", e.CONTROL_PLANE_GROUP = "CONTROL_PLANE_GROUP", e.DATA_PLANE_NODE = "DATA_PLANE_NODE", e))(Q || {}), He = /* @__PURE__ */ ((e) => (e.REQUEST_COUNT = "REQUEST_COUNT", e.REQUEST_PER_MINUTE = "REQUEST_PER_MINUTE", e.RESPONSE_LATENCY_P99 = "RESPONSE_LATENCY_P99", e.RESPONSE_LATENCY_P95 = "RESPONSE_LATENCY_P95", e.RESPONSE_LATENCY_P50 = "RESPONSE_LATENCY_P50", e.RESPONSE_SIZE_P99 = "RESPONSE_SIZE_P99", e.RESPONSE_SIZE_P95 = "RESPONSE_SIZE_P95", e.RESPONSE_SIZE_P50 = "RESPONSE_SIZE_P50", e.REQUEST_SIZE_P99 = "REQUEST_SIZE_P99", e.REQUEST_SIZE_P95 = "REQUEST_SIZE_P95", e.REQUEST_SIZE_P50 = "REQUEST_SIZE_P50", e))(He || {}), Nt = /* @__PURE__ */ ((e) => (e.IN = "IN", e.NOT_IN = "NOT_IN", e))(Nt || {});
866
866
  const jr = 2, ue = ["1XX", "2XX", "3XX", "4XX", "5XX"], dt = ["4XX", "5XX"];
867
867
  var Rt = /* @__PURE__ */ ((e) => (e.VALIDATING = "VALIDATING", e.VALIDATING_HAS_DATA = "VALIDATING_HAS_DATA", e.PENDING = "PENDING", e.SUCCESS = "SUCCESS", e.SUCCESS_HAS_DATA = "SUCCESS_HAS_DATA", e.ERROR = "ERROR", e.STALE_IF_ERROR = "STALE_IF_ERROR", e))(Rt || {});
868
868
  const Gr = (e) => {
@@ -875,7 +875,7 @@ function Br(e = xe({}), t, r, i = Gr) {
875
875
  "PENDING"
876
876
  /* PENDING */
877
877
  );
878
- return Mt(() => {
878
+ return At(() => {
879
879
  const n = i(e.value);
880
880
  if (e.value && n && r.value) {
881
881
  a.value = "VALIDATING_HAS_DATA";
@@ -926,7 +926,7 @@ function Wr(e, t, r) {
926
926
  }
927
927
  function Kr(e) {
928
928
  e.queryReady === void 0 && (e.queryReady = v(() => !0));
929
- const t = v(() => e.withTrend ? new Or(e.timeframe.value) : new Et(e.timeframe.value)), r = v(() => {
929
+ const t = v(() => e.withTrend ? new kr(e.timeframe.value) : new Et(e.timeframe.value)), r = v(() => {
930
930
  var d, f;
931
931
  return {
932
932
  metrics: e.metrics,
@@ -1002,13 +1002,13 @@ function Qr(e) {
1002
1002
  };
1003
1003
  });
1004
1004
  }
1005
- var Ne = /* @__PURE__ */ new WeakMap(), ft = 0;
1005
+ var De = /* @__PURE__ */ new WeakMap(), ft = 0;
1006
1006
  function Jr(e) {
1007
1007
  if (!e.length)
1008
1008
  return "";
1009
1009
  for (var t = "arg", r = 0; r < e.length; ++r) {
1010
1010
  var i = void 0;
1011
- e[r] === null || typeof e[r] != "object" && typeof e[r] != "function" ? typeof e[r] == "string" ? i = '"' + e[r] + '"' : i = String(e[r]) : Ne.has(e[r]) ? i = Ne.get(e[r]) : (i = ft, Ne.set(e[r], ft++)), t += "@" + i;
1011
+ e[r] === null || typeof e[r] != "object" && typeof e[r] != "function" ? typeof e[r] == "string" ? i = '"' + e[r] + '"' : i = String(e[r]) : De.has(e[r]) ? i = De.get(e[r]) : (i = ft, De.set(e[r], ft++)), t += "@" + i;
1012
1012
  }
1013
1013
  return t;
1014
1014
  }
@@ -1189,8 +1189,8 @@ var $ = globalThis && globalThis.__assign || function() {
1189
1189
  for (var i = 0, a = t.length, n; i < a; i++)
1190
1190
  (n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
1191
1191
  return e.concat(n || Array.prototype.slice.call(t));
1192
- }, Nt = new Pe(), me = new Pe(), _e = new Pe(), bt = {
1193
- cache: Nt,
1192
+ }, Dt = new Pe(), me = new Pe(), _e = new Pe(), bt = {
1193
+ cache: Dt,
1194
1194
  refreshInterval: 0,
1195
1195
  ttl: 0,
1196
1196
  serverTTL: 1e3,
@@ -1222,7 +1222,7 @@ function on(e, t, r) {
1222
1222
  }
1223
1223
  }
1224
1224
  var pt = function(e, t, r, i) {
1225
- return r === void 0 && (r = Nt), i === void 0 && (i = bt.ttl), X(void 0, void 0, void 0, function() {
1225
+ return r === void 0 && (r = Dt), i === void 0 && (i = bt.ttl), X(void 0, void 0, void 0, function() {
1226
1226
  var a, n, o, l, c, s, u;
1227
1227
  return ee(this, function(d) {
1228
1228
  switch (d.label) {
@@ -1261,7 +1261,7 @@ var pt = function(e, t, r, i) {
1261
1261
  function un() {
1262
1262
  for (var e = this, t = [], r = 0; r < arguments.length; r++)
1263
1263
  t[r] = arguments[r];
1264
- var i, a, n = $({}, bt), o = !1, l = !1, c = At(), s = (c == null ? void 0 : c.proxy) || c;
1264
+ var i, a, n = $({}, bt), o = !1, l = !1, c = Mt(), s = (c == null ? void 0 : c.proxy) || c;
1265
1265
  if (!s)
1266
1266
  return console.error("Could not get current instance, check to make sure that `useSwrv` is declared in the top level of the setup function."), null;
1267
1267
  var u = (s == null ? void 0 : s.$isServer) || !1;
@@ -1277,11 +1277,11 @@ function un() {
1277
1277
  }));
1278
1278
  var h = function(S, T) {
1279
1279
  return X(e, void 0, void 0, function() {
1280
- var B, A, se, oe, ge, je, he, Ge = this;
1280
+ var B, M, se, oe, ge, je, he, Ge = this;
1281
1281
  return ee(this, function(ye) {
1282
1282
  switch (ye.label) {
1283
1283
  case 0:
1284
- return B = p.data === void 0, A = f.value, A ? (se = n.cache.get(A), oe = se && se.data, p.isValidating = !0, oe && (p.data = oe.data, p.error = oe.error), ge = S || a, !ge || !n.isDocumentVisible() && !B || (T == null ? void 0 : T.forceRevalidate) !== void 0 && !(T != null && T.forceRevalidate) ? (p.isValidating = !1, [
1284
+ return B = p.data === void 0, M = f.value, M ? (se = n.cache.get(M), oe = se && se.data, p.isValidating = !0, oe && (p.data = oe.data, p.error = oe.error), ge = S || a, !ge || !n.isDocumentVisible() && !B || (T == null ? void 0 : T.forceRevalidate) !== void 0 && !(T != null && T.forceRevalidate) ? (p.isValidating = !1, [
1285
1285
  2
1286
1286
  /*return*/
1287
1287
  ]) : se && (je = !!(Date.now() - se.createdAt >= n.dedupingInterval || T != null && T.forceRevalidate), !je) ? (p.isValidating = !1, [
@@ -1293,15 +1293,15 @@ function un() {
1293
1293
  return ee(this, function(le) {
1294
1294
  switch (le.label) {
1295
1295
  case 0:
1296
- return W = _e.get(A), W ? [3, 2] : (Be = Array.isArray(A) ? A : [A], Te = ge.apply(void 0, an([], nn(Be), !1)), _e.set(A, Te, n.dedupingInterval), [4, pt(A, Te, n.cache, d)]);
1296
+ return W = _e.get(M), W ? [3, 2] : (Be = Array.isArray(M) ? M : [M], Te = ge.apply(void 0, an([], nn(Be), !1)), _e.set(M, Te, n.dedupingInterval), [4, pt(M, Te, n.cache, d)]);
1297
1297
  case 1:
1298
1298
  return le.sent(), [3, 4];
1299
1299
  case 2:
1300
- return [4, pt(A, W.data, n.cache, d)];
1300
+ return [4, pt(M, W.data, n.cache, d)];
1301
1301
  case 3:
1302
1302
  le.sent(), le.label = 4;
1303
1303
  case 4:
1304
- return p.isValidating = !1, _e.delete(A), p.error !== void 0 && (We = !o && n.shouldRetryOnError && (T ? T.shouldRetryOnError : !0), We && on(h, T ? T.errorRetryCount : 1, n)), [
1304
+ return p.isValidating = !1, _e.delete(M), p.error !== void 0 && (We = !o && n.shouldRetryOnError && (T ? T.shouldRetryOnError : !0), We && on(h, T ? T.errorRetryCount : 1, n)), [
1305
1305
  2
1306
1306
  /*return*/
1307
1307
  ];
@@ -1347,7 +1347,7 @@ function un() {
1347
1347
  });
1348
1348
  });
1349
1349
  }, E = null;
1350
- kt(function() {
1350
+ Ot(function() {
1351
1351
  var S = function() {
1352
1352
  return X(e, void 0, void 0, function() {
1353
1353
  return ee(this, function(T) {
@@ -1368,7 +1368,7 @@ function un() {
1368
1368
  });
1369
1369
  };
1370
1370
  n.refreshInterval && (E = setTimeout(S, n.refreshInterval)), n.revalidateOnFocus && (document.addEventListener("visibilitychange", y, !1), window.addEventListener("focus", y, !1));
1371
- }), Ot(function() {
1371
+ }), kt(function() {
1372
1372
  o = !0, E && clearTimeout(E), n.revalidateOnFocus && (document.removeEventListener("visibilitychange", y, !1), window.removeEventListener("focus", y, !1));
1373
1373
  var S = me.get(f.value);
1374
1374
  S && (S.data = S.data.filter(function(T) {
@@ -1436,7 +1436,7 @@ const K = {
1436
1436
  const E = [];
1437
1437
  return s && E.push({
1438
1438
  dimension: t,
1439
- type: Dt.IN,
1439
+ type: Nt.IN,
1440
1440
  values: [r]
1441
1441
  }), i.value && E.push(...i.value), E;
1442
1442
  }), f = {
@@ -1497,13 +1497,13 @@ const K = {
1497
1497
  const i = v(() => {
1498
1498
  if (t.overrideTimeframe)
1499
1499
  return t.overrideTimeframe;
1500
- const l = t.hasTrendAccess ? De.get(t.maxTimeframe) : De.get(w.ONE_DAY);
1500
+ const l = t.hasTrendAccess ? Ne.get(t.maxTimeframe) : Ne.get(w.ONE_DAY);
1501
1501
  if (!l)
1502
1502
  throw new Error("Metrics provider failed to resolve fallback timeframe.");
1503
1503
  return l;
1504
1504
  }), a = v(() => {
1505
1505
  var l;
1506
- return i.value.key === "custom" ? r.t("trendRange.custom", { numDays: Math.ceil(i.value.timeframeLength() / (1e3 * 60 * 24)) }) : t.hasTrendAccess ? r.t(`trendRange.${i.value.key}`) : r.t(`trendRange.${(l = De.get(w.ONE_DAY)) == null ? void 0 : l.key}`);
1506
+ return i.value.key === "custom" ? r.t("trendRange.custom", { numDays: Math.ceil(i.value.timeframeLength() / (1e3 * 60 * 24)) }) : t.hasTrendAccess ? r.t(`trendRange.${i.value.key}`) : r.t(`trendRange.${(l = Ne.get(w.ONE_DAY)) == null ? void 0 : l.key}`);
1507
1507
  }), {
1508
1508
  trafficData: n,
1509
1509
  latencyData: o
@@ -1564,8 +1564,8 @@ var It = { exports: {} };
1564
1564
  })(It);
1565
1565
  var pn = It.exports;
1566
1566
  const mn = /* @__PURE__ */ fn(pn);
1567
- var k = /* @__PURE__ */ ((e) => (e.Small = "sm", e.Medium = "md", e.Large = "lg", e.LargeCompact = "lgc", e.ExtraLarge = "xl", e))(k || {});
1568
- const D = "24px", G = (e, t) => {
1567
+ var O = /* @__PURE__ */ ((e) => (e.Small = "sm", e.Medium = "md", e.Large = "lg", e.LargeCompact = "lgc", e.ExtraLarge = "xl", e))(O || {});
1568
+ const N = "24px", G = (e, t) => {
1569
1569
  const r = e.__vccOpts || e;
1570
1570
  for (const [i, a] of t)
1571
1571
  r[i] = a;
@@ -1607,7 +1607,7 @@ const D = "24px", G = (e, t) => {
1607
1607
  size: {
1608
1608
  type: [Number, String],
1609
1609
  required: !1,
1610
- default: D,
1610
+ default: N,
1611
1611
  // if setting to the imported const fails, just pass a number of 24 as the default.
1612
1612
  validator: (e) => {
1613
1613
  if (typeof e == "number" && e > 0)
@@ -1636,7 +1636,7 @@ const D = "24px", G = (e, t) => {
1636
1636
  if (n && !isNaN(n) && Number.isInteger(n) && n > 0)
1637
1637
  return `${n}px`;
1638
1638
  }
1639
- return D;
1639
+ return N;
1640
1640
  }), i = v(() => ({
1641
1641
  boxSizing: "border-box",
1642
1642
  color: t.color,
@@ -1662,7 +1662,7 @@ const D = "24px", G = (e, t) => {
1662
1662
  width: "100%",
1663
1663
  xmlns: "http://www.w3.org/2000/svg"
1664
1664
  }, [
1665
- e.title ? (m(), C("title", hn, N(e.title), 1)) : I("", !0),
1665
+ e.title ? (m(), C("title", hn, D(e.title), 1)) : I("", !0),
1666
1666
  yn
1667
1667
  ], 8, gn))
1668
1668
  ]),
@@ -1672,7 +1672,7 @@ const D = "24px", G = (e, t) => {
1672
1672
  }), Cn = /* @__PURE__ */ G(Tn, [["__scopeId", "data-v-f2dbb1b9"]]), wn = (e) => (Z("data-v-04327805"), e = e(), j(), e), Sn = ["aria-hidden"], En = {
1673
1673
  key: 0,
1674
1674
  "data-testid": "kui-icon-svg-title"
1675
- }, Dn = /* @__PURE__ */ wn(() => /* @__PURE__ */ R("path", {
1675
+ }, Nn = /* @__PURE__ */ wn(() => /* @__PURE__ */ R("path", {
1676
1676
  d: "M4 17V14H20V17H4ZM4 10V7H20V10H4Z",
1677
1677
  fill: "currentColor"
1678
1678
  }, null, -1)), Rn = /* @__PURE__ */ U({
@@ -1706,7 +1706,7 @@ const D = "24px", G = (e, t) => {
1706
1706
  size: {
1707
1707
  type: [Number, String],
1708
1708
  required: !1,
1709
- default: D,
1709
+ default: N,
1710
1710
  // if setting to the imported const fails, just pass a number of 24 as the default.
1711
1711
  validator: (e) => {
1712
1712
  if (typeof e == "number" && e > 0)
@@ -1735,7 +1735,7 @@ const D = "24px", G = (e, t) => {
1735
1735
  if (n && !isNaN(n) && Number.isInteger(n) && n > 0)
1736
1736
  return `${n}px`;
1737
1737
  }
1738
- return D;
1738
+ return N;
1739
1739
  }), i = v(() => ({
1740
1740
  boxSizing: "border-box",
1741
1741
  color: t.color,
@@ -1761,20 +1761,20 @@ const D = "24px", G = (e, t) => {
1761
1761
  width: "100%",
1762
1762
  xmlns: "http://www.w3.org/2000/svg"
1763
1763
  }, [
1764
- e.title ? (m(), C("title", En, N(e.title), 1)) : I("", !0),
1765
- Dn
1764
+ e.title ? (m(), C("title", En, D(e.title), 1)) : I("", !0),
1765
+ Nn
1766
1766
  ], 8, Sn))
1767
1767
  ]),
1768
1768
  _: 1
1769
1769
  }, 8, ["aria-hidden", "style"]));
1770
1770
  }
1771
- }), Nn = /* @__PURE__ */ G(Rn, [["__scopeId", "data-v-04327805"]]), bn = (e) => (Z("data-v-951e2d7d"), e = e(), j(), e), _n = ["aria-hidden"], In = {
1771
+ }), Dn = /* @__PURE__ */ G(Rn, [["__scopeId", "data-v-04327805"]]), bn = (e) => (Z("data-v-951e2d7d"), e = e(), j(), e), _n = ["aria-hidden"], In = {
1772
1772
  key: 0,
1773
1773
  "data-testid": "kui-icon-svg-title"
1774
1774
  }, xn = /* @__PURE__ */ bn(() => /* @__PURE__ */ R("path", {
1775
1775
  d: "M5 11V9H15V11H5Z",
1776
1776
  fill: "currentColor"
1777
- }, null, -1)), Mn = /* @__PURE__ */ U({
1777
+ }, null, -1)), An = /* @__PURE__ */ U({
1778
1778
  __name: "IndeterminateSmallIcon",
1779
1779
  props: {
1780
1780
  /** The accessibility text provided to screen readers */
@@ -1805,7 +1805,7 @@ const D = "24px", G = (e, t) => {
1805
1805
  size: {
1806
1806
  type: [Number, String],
1807
1807
  required: !1,
1808
- default: D,
1808
+ default: N,
1809
1809
  // if setting to the imported const fails, just pass a number of 24 as the default.
1810
1810
  validator: (e) => {
1811
1811
  if (typeof e == "number" && e > 0)
@@ -1834,7 +1834,7 @@ const D = "24px", G = (e, t) => {
1834
1834
  if (n && !isNaN(n) && Number.isInteger(n) && n > 0)
1835
1835
  return `${n}px`;
1836
1836
  }
1837
- return D;
1837
+ return N;
1838
1838
  }), i = v(() => ({
1839
1839
  boxSizing: "border-box",
1840
1840
  color: t.color,
@@ -1860,17 +1860,17 @@ const D = "24px", G = (e, t) => {
1860
1860
  width: "100%",
1861
1861
  xmlns: "http://www.w3.org/2000/svg"
1862
1862
  }, [
1863
- e.title ? (m(), C("title", In, N(e.title), 1)) : I("", !0),
1863
+ e.title ? (m(), C("title", In, D(e.title), 1)) : I("", !0),
1864
1864
  xn
1865
1865
  ], 8, _n))
1866
1866
  ]),
1867
1867
  _: 1
1868
1868
  }, 8, ["aria-hidden", "style"]));
1869
1869
  }
1870
- }), xt = /* @__PURE__ */ G(Mn, [["__scopeId", "data-v-951e2d7d"]]), An = (e) => (Z("data-v-6754ff4c"), e = e(), j(), e), Ln = ["aria-hidden"], kn = {
1870
+ }), xt = /* @__PURE__ */ G(An, [["__scopeId", "data-v-951e2d7d"]]), Mn = (e) => (Z("data-v-6754ff4c"), e = e(), j(), e), Ln = ["aria-hidden"], On = {
1871
1871
  key: 0,
1872
1872
  "data-testid": "kui-icon-svg-title"
1873
- }, On = /* @__PURE__ */ An(() => /* @__PURE__ */ R("path", {
1873
+ }, kn = /* @__PURE__ */ Mn(() => /* @__PURE__ */ R("path", {
1874
1874
  d: "M15.25 5C14.9 5 14.6042 4.87917 14.3625 4.6375C14.1208 4.39583 14 4.1 14 3.75C14 3.4 14.1208 3.10417 14.3625 2.8625C14.6042 2.62083 14.9 2.5 15.25 2.5C15.6 2.5 15.8958 2.62083 16.1375 2.8625C16.3792 3.10417 16.5 3.4 16.5 3.75C16.5 4.1 16.3792 4.39583 16.1375 4.6375C15.8958 4.87917 15.6 5 15.25 5ZM15.25 21.5C14.9 21.5 14.6042 21.3792 14.3625 21.1375C14.1208 20.8958 14 20.6 14 20.25C14 19.9 14.1208 19.6042 14.3625 19.3625C14.6042 19.1208 14.9 19 15.25 19C15.6 19 15.8958 19.1208 16.1375 19.3625C16.3792 19.6042 16.5 19.9 16.5 20.25C16.5 20.6 16.3792 20.8958 16.1375 21.1375C15.8958 21.3792 15.6 21.5 15.25 21.5ZM19.25 8.5C18.9 8.5 18.6042 8.37917 18.3625 8.1375C18.1208 7.89583 18 7.6 18 7.25C18 6.9 18.1208 6.60417 18.3625 6.3625C18.6042 6.12083 18.9 6 19.25 6C19.6 6 19.8958 6.12083 20.1375 6.3625C20.3792 6.60417 20.5 6.9 20.5 7.25C20.5 7.6 20.3792 7.89583 20.1375 8.1375C19.8958 8.37917 19.6 8.5 19.25 8.5ZM19.25 18C18.9 18 18.6042 17.8792 18.3625 17.6375C18.1208 17.3958 18 17.1 18 16.75C18 16.4 18.1208 16.1042 18.3625 15.8625C18.6042 15.6208 18.9 15.5 19.25 15.5C19.6 15.5 19.8958 15.6208 20.1375 15.8625C20.3792 16.1042 20.5 16.4 20.5 16.75C20.5 17.1 20.3792 17.3958 20.1375 17.6375C19.8958 17.8792 19.6 18 19.25 18ZM20.75 13.25C20.4 13.25 20.1042 13.1292 19.8625 12.8875C19.6208 12.6458 19.5 12.35 19.5 12C19.5 11.65 19.6208 11.3542 19.8625 11.1125C20.1042 10.8708 20.4 10.75 20.75 10.75C21.1 10.75 21.3958 10.8708 21.6375 11.1125C21.8792 11.3542 22 11.65 22 12C22 12.35 21.8792 12.6458 21.6375 12.8875C21.3958 13.1292 21.1 13.25 20.75 13.25ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2V4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20V22ZM12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.9167 10.0042 11.8292 10.0125 11.7375C10.0208 11.6458 10.0417 11.5583 10.075 11.475L8 9.4L9.4 8L11.475 10.075C11.5417 10.0583 11.7167 10.0333 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14Z",
1875
1875
  fill: "currentColor"
1876
1876
  }, null, -1)), Un = /* @__PURE__ */ U({
@@ -1904,7 +1904,7 @@ const D = "24px", G = (e, t) => {
1904
1904
  size: {
1905
1905
  type: [Number, String],
1906
1906
  required: !1,
1907
- default: D,
1907
+ default: N,
1908
1908
  // if setting to the imported const fails, just pass a number of 24 as the default.
1909
1909
  validator: (e) => {
1910
1910
  if (typeof e == "number" && e > 0)
@@ -1933,7 +1933,7 @@ const D = "24px", G = (e, t) => {
1933
1933
  if (n && !isNaN(n) && Number.isInteger(n) && n > 0)
1934
1934
  return `${n}px`;
1935
1935
  }
1936
- return D;
1936
+ return N;
1937
1937
  }), i = v(() => ({
1938
1938
  boxSizing: "border-box",
1939
1939
  color: t.color,
@@ -1959,8 +1959,8 @@ const D = "24px", G = (e, t) => {
1959
1959
  width: "100%",
1960
1960
  xmlns: "http://www.w3.org/2000/svg"
1961
1961
  }, [
1962
- e.title ? (m(), C("title", kn, N(e.title), 1)) : I("", !0),
1963
- On
1962
+ e.title ? (m(), C("title", On, D(e.title), 1)) : I("", !0),
1963
+ kn
1964
1964
  ], 8, Ln))
1965
1965
  ]),
1966
1966
  _: 1
@@ -2003,7 +2003,7 @@ const D = "24px", G = (e, t) => {
2003
2003
  size: {
2004
2004
  type: [Number, String],
2005
2005
  required: !1,
2006
- default: D,
2006
+ default: N,
2007
2007
  // if setting to the imported const fails, just pass a number of 24 as the default.
2008
2008
  validator: (e) => {
2009
2009
  if (typeof e == "number" && e > 0)
@@ -2032,7 +2032,7 @@ const D = "24px", G = (e, t) => {
2032
2032
  if (n && !isNaN(n) && Number.isInteger(n) && n > 0)
2033
2033
  return `${n}px`;
2034
2034
  }
2035
- return D;
2035
+ return N;
2036
2036
  }), i = v(() => ({
2037
2037
  boxSizing: "border-box",
2038
2038
  color: t.color,
@@ -2058,7 +2058,7 @@ const D = "24px", G = (e, t) => {
2058
2058
  width: "100%",
2059
2059
  xmlns: "http://www.w3.org/2000/svg"
2060
2060
  }, [
2061
- e.title ? (m(), C("title", $n, N(e.title), 1)) : I("", !0),
2061
+ e.title ? (m(), C("title", $n, D(e.title), 1)) : I("", !0),
2062
2062
  qn
2063
2063
  ], 8, Hn))
2064
2064
  ]),
@@ -2102,7 +2102,7 @@ const D = "24px", G = (e, t) => {
2102
2102
  size: {
2103
2103
  type: [Number, String],
2104
2104
  required: !1,
2105
- default: D,
2105
+ default: N,
2106
2106
  // if setting to the imported const fails, just pass a number of 24 as the default.
2107
2107
  validator: (e) => {
2108
2108
  if (typeof e == "number" && e > 0)
@@ -2131,7 +2131,7 @@ const D = "24px", G = (e, t) => {
2131
2131
  if (n && !isNaN(n) && Number.isInteger(n) && n > 0)
2132
2132
  return `${n}px`;
2133
2133
  }
2134
- return D;
2134
+ return N;
2135
2135
  }), i = v(() => ({
2136
2136
  boxSizing: "border-box",
2137
2137
  color: t.color,
@@ -2157,7 +2157,7 @@ const D = "24px", G = (e, t) => {
2157
2157
  width: "100%",
2158
2158
  xmlns: "http://www.w3.org/2000/svg"
2159
2159
  }, [
2160
- e.title ? (m(), C("title", jn, N(e.title), 1)) : I("", !0),
2160
+ e.title ? (m(), C("title", jn, D(e.title), 1)) : I("", !0),
2161
2161
  Gn
2162
2162
  ], 8, Zn))
2163
2163
  ]),
@@ -2201,7 +2201,7 @@ const D = "24px", G = (e, t) => {
2201
2201
  size: {
2202
2202
  type: [Number, String],
2203
2203
  required: !1,
2204
- default: D,
2204
+ default: N,
2205
2205
  // if setting to the imported const fails, just pass a number of 24 as the default.
2206
2206
  validator: (e) => {
2207
2207
  if (typeof e == "number" && e > 0)
@@ -2230,7 +2230,7 @@ const D = "24px", G = (e, t) => {
2230
2230
  if (n && !isNaN(n) && Number.isInteger(n) && n > 0)
2231
2231
  return `${n}px`;
2232
2232
  }
2233
- return D;
2233
+ return N;
2234
2234
  }), i = v(() => ({
2235
2235
  boxSizing: "border-box",
2236
2236
  color: t.color,
@@ -2256,7 +2256,7 @@ const D = "24px", G = (e, t) => {
2256
2256
  width: "100%",
2257
2257
  xmlns: "http://www.w3.org/2000/svg"
2258
2258
  }, [
2259
- e.title ? (m(), C("title", Jn, N(e.title), 1)) : I("", !0),
2259
+ e.title ? (m(), C("title", Jn, D(e.title), 1)) : I("", !0),
2260
2260
  Xn
2261
2261
  ], 8, Qn))
2262
2262
  ]),
@@ -2300,7 +2300,7 @@ const D = "24px", G = (e, t) => {
2300
2300
  size: {
2301
2301
  type: [Number, String],
2302
2302
  required: !1,
2303
- default: D,
2303
+ default: N,
2304
2304
  // if setting to the imported const fails, just pass a number of 24 as the default.
2305
2305
  validator: (e) => {
2306
2306
  if (typeof e == "number" && e > 0)
@@ -2329,7 +2329,7 @@ const D = "24px", G = (e, t) => {
2329
2329
  if (n && !isNaN(n) && Number.isInteger(n) && n > 0)
2330
2330
  return `${n}px`;
2331
2331
  }
2332
- return D;
2332
+ return N;
2333
2333
  }), i = v(() => ({
2334
2334
  boxSizing: "border-box",
2335
2335
  color: t.color,
@@ -2355,7 +2355,7 @@ const D = "24px", G = (e, t) => {
2355
2355
  width: "100%",
2356
2356
  xmlns: "http://www.w3.org/2000/svg"
2357
2357
  }, [
2358
- e.title ? (m(), C("title", ii, N(e.title), 1)) : I("", !0),
2358
+ e.title ? (m(), C("title", ii, D(e.title), 1)) : I("", !0),
2359
2359
  ai
2360
2360
  ], 8, ni))
2361
2361
  ]),
@@ -2454,7 +2454,7 @@ const hi = { class: "metricscard" }, yi = {
2454
2454
  grey: `var(--kong-ui-metric-card-trend-neutral, ${vt})`
2455
2455
  };
2456
2456
  return s > 0 ? u.green : s < 0 ? u.red : u.grey;
2457
- }, a = (s) => s > 0 ? "positive" : s < 0 ? "negative" : "neutral", n = [k.Medium, k.Large, k.LargeCompact].includes(t.cardSize), o = t.cardSize === k.ExtraLarge ? gi : n ? "22px" : vi, l = v(() => t.cardSize === k.LargeCompact), c = [k.Small, k.LargeCompact].includes(t.cardSize);
2457
+ }, a = (s) => s > 0 ? "positive" : s < 0 ? "negative" : "neutral", n = [O.Medium, O.Large, O.LargeCompact].includes(t.cardSize), o = t.cardSize === O.ExtraLarge ? gi : n ? "22px" : vi, l = v(() => t.cardSize === O.LargeCompact), c = [O.Small, O.LargeCompact].includes(t.cardSize);
2458
2458
  return (s, u) => {
2459
2459
  const d = ce("KIcon"), f = ce("KTooltip");
2460
2460
  return m(), C("div", hi, [
@@ -2467,7 +2467,7 @@ const hi = { class: "metricscard" }, yi = {
2467
2467
  color: _(pi),
2468
2468
  size: _(Ie)
2469
2469
  }, null, 8, ["color", "size"])),
2470
- R("span", null, N(e.title), 1),
2470
+ R("span", null, D(e.title), 1),
2471
2471
  e.tooltip ? (m(), x(f, {
2472
2472
  key: 1,
2473
2473
  class: "metricscard-tooltip",
@@ -2484,7 +2484,7 @@ const hi = { class: "metricscard" }, yi = {
2484
2484
  }, 8, ["label"])) : I("", !0)
2485
2485
  ], 2),
2486
2486
  e.description && _(n) && !l.value ? (m(), C("div", yi, [
2487
- R("span", null, N(e.description), 1)
2487
+ R("span", null, D(e.description), 1)
2488
2488
  ])) : I("", !0),
2489
2489
  R("div", {
2490
2490
  class: te(["metricscard-valuetrend", { "is-compact": l.value }])
@@ -2494,13 +2494,13 @@ const hi = { class: "metricscard" }, yi = {
2494
2494
  icon: "warning",
2495
2495
  size: "20"
2496
2496
  }),
2497
- R("div", null, N(e.errorMessage), 1)
2497
+ R("div", null, D(e.errorMessage), 1)
2498
2498
  ])) : (m(), C("div", {
2499
2499
  key: 1,
2500
2500
  class: te(["metricscard-value", e.cardSize]),
2501
2501
  "data-testid": "metric-value",
2502
2502
  style: P(`font-size:${_(o)}`)
2503
- }, N(e.metricValue), 7)),
2503
+ }, D(e.metricValue), 7)),
2504
2504
  _(n) ? (m(), C("div", Ci, [
2505
2505
  R("div", {
2506
2506
  class: te(["metricscard-trend-change", a(e.changePolarity)]),
@@ -2510,14 +2510,14 @@ const hi = { class: "metricscard" }, yi = {
2510
2510
  key: 0,
2511
2511
  color: i(e.changePolarity),
2512
2512
  size: _(Ie)
2513
- }, null, 8, ["color", "size"])) : (m(), x(_(Nn), {
2513
+ }, null, 8, ["color", "size"])) : (m(), x(_(Dn), {
2514
2514
  key: 1,
2515
2515
  color: _(vt),
2516
2516
  size: _(Ie)
2517
2517
  }, null, 8, ["color", "size"])),
2518
- R("div", wi, N(e.metricChange), 1)
2518
+ R("div", wi, D(e.metricChange), 1)
2519
2519
  ], 2),
2520
- e.trendRange && e.cardSize !== _(k).LargeCompact ? (m(), C("div", Si, N(e.trendRange), 1)) : I("", !0)
2520
+ e.trendRange && e.cardSize !== _(O).LargeCompact ? (m(), C("div", Si, D(e.trendRange), 1)) : I("", !0)
2521
2521
  ])) : I("", !0)
2522
2522
  ], 2)
2523
2523
  ]);
@@ -2528,10 +2528,10 @@ const hi = { class: "metricscard" }, yi = {
2528
2528
  for (const [i, a] of t)
2529
2529
  r[i] = a;
2530
2530
  return r;
2531
- }, Di = /* @__PURE__ */ Ze(Ei, [["__scopeId", "data-v-e3b3a4cb"]]), Ri = {}, Ni = { class: "loading-tabs" };
2531
+ }, Ni = /* @__PURE__ */ Ze(Ei, [["__scopeId", "data-v-e3b3a4cb"]]), Ri = {}, Di = { class: "loading-tabs" };
2532
2532
  function bi(e, t) {
2533
2533
  const r = ce("KSkeletonBox");
2534
- return m(), C("div", Ni, [
2534
+ return m(), C("div", Di, [
2535
2535
  ie(r, { width: "100" }),
2536
2536
  ie(r, { width: "75" })
2537
2537
  ]);
@@ -2542,7 +2542,7 @@ const _i = /* @__PURE__ */ Ze(Ri, [["render", bi], ["__scopeId", "data-v-f7eb9c4
2542
2542
  }, xi = {
2543
2543
  key: 0,
2544
2544
  class: "error-display-message"
2545
- }, Mi = /* @__PURE__ */ U({
2545
+ }, Ai = /* @__PURE__ */ U({
2546
2546
  __name: "MetricCardContainer",
2547
2547
  props: {
2548
2548
  fallbackDisplayText: {
@@ -2571,7 +2571,7 @@ const _i = /* @__PURE__ */ Ze(Ri, [["render", bi], ["__scopeId", "data-v-f7eb9c4
2571
2571
  cardSize: {
2572
2572
  type: String,
2573
2573
  required: !1,
2574
- default: () => k.Large
2574
+ default: () => O.Large
2575
2575
  }
2576
2576
  },
2577
2577
  setup(e) {
@@ -2596,12 +2596,12 @@ const _i = /* @__PURE__ */ Ze(Ri, [["render", bi], ["__scopeId", "data-v-f7eb9c4
2596
2596
  icon: "warning",
2597
2597
  size: "24"
2598
2598
  }),
2599
- e.errorMessage ? (m(), C("div", xi, N(e.errorMessage), 1)) : I("", !0)
2599
+ e.errorMessage ? (m(), C("div", xi, D(e.errorMessage), 1)) : I("", !0)
2600
2600
  ])) : (m(!0), C(Qe, { key: 1 }, $t(e.cards, (l, c) => (m(), C(Qe, null, [
2601
2601
  e.loading ? (m(), x(_i, {
2602
2602
  key: `skeleton-${c}`,
2603
- class: te(e.cardSize === _(k).Small ? "loading-tabs-small" : "loading-tabs-large")
2604
- }, null, 8, ["class"])) : (m(), x(Di, qt({ key: c }, i(l), {
2603
+ class: te(e.cardSize === _(O).Small ? "loading-tabs-small" : "loading-tabs-large")
2604
+ }, null, 8, ["class"])) : (m(), x(Ni, qt({ key: c }, i(l), {
2605
2605
  "card-size": e.cardSize,
2606
2606
  "card-type": l.cardType,
2607
2607
  description: l.description,
@@ -2615,12 +2615,12 @@ const _i = /* @__PURE__ */ Ze(Ri, [["render", bi], ["__scopeId", "data-v-f7eb9c4
2615
2615
  ], 2);
2616
2616
  };
2617
2617
  }
2618
- }), Ai = /* @__PURE__ */ Ze(Mi, [["__scopeId", "data-v-7c516677"]]);
2618
+ }), Mi = /* @__PURE__ */ Ze(Ai, [["__scopeId", "data-v-7c516677"]]);
2619
2619
  const Yi = /* @__PURE__ */ U({
2620
2620
  __name: "MetricsConsumer",
2621
2621
  props: {
2622
2622
  lookupKey: { default: void 0 },
2623
- cardSize: { default: k.Large },
2623
+ cardSize: { default: O.Large },
2624
2624
  cardToDisplay: { default: void 0 }
2625
2625
  },
2626
2626
  setup(e) {
@@ -2637,12 +2637,12 @@ const Yi = /* @__PURE__ */ U({
2637
2637
  sumGroupedValues: ue,
2638
2638
  trendRange: r.trendRange
2639
2639
  }), l = (y) => `${y.toFixed(Ve)}%`, c = v(() => {
2640
- const y = i.mapped.value, E = re(y, "current", t.lookupKey, dt), Y = re(y, "current", t.lookupKey, ue), S = E / Y * 100 || 0, T = re(y, "previous", t.lookupKey, dt), B = re(y, "previous", t.lookupKey, ue), A = T / B * 100 || 0;
2640
+ const y = i.mapped.value, E = re(y, "current", t.lookupKey, dt), Y = re(y, "current", t.lookupKey, ue), S = E / Y * 100 || 0, T = re(y, "previous", t.lookupKey, dt), B = re(y, "previous", t.lookupKey, ue), M = T / B * 100 || 0;
2641
2641
  return {
2642
2642
  cardType: q.ERROR_RATE,
2643
2643
  hasError: i.hasError.value,
2644
2644
  currentValue: S,
2645
- previousValue: A,
2645
+ previousValue: M,
2646
2646
  formatValueFn: l,
2647
2647
  title: r.longCardTitles ? n.t("metricCard.long.errorRate") : n.t("metricCard.short.errorRate"),
2648
2648
  description: r.description,
@@ -2676,7 +2676,7 @@ const Yi = /* @__PURE__ */ U({
2676
2676
  latencyFormatted: s(u.value.currentValue)
2677
2677
  }));
2678
2678
  return (y, E) => gt(y.$slots, "default", { cardValues: h.value }, () => [
2679
- ie(_(Ai), Pt(Vt(p.value)), null, 16)
2679
+ ie(_(Mi), Pt(Vt(p.value)), null, 16)
2680
2680
  ]);
2681
2681
  }
2682
2682
  }), de = (e) => new Date(e), Hi = (e, t) => {
@@ -2729,7 +2729,7 @@ const Yi = /* @__PURE__ */ U({
2729
2729
  export {
2730
2730
  He as EXPLORE_V2_AGGREGATIONS,
2731
2731
  Q as EXPLORE_V2_DIMENSIONS,
2732
- Dt as EXPLORE_V2_FILTER_TYPES,
2732
+ Nt as EXPLORE_V2_FILTER_TYPES,
2733
2733
  Yi as MetricsConsumer,
2734
2734
  zi as MetricsProviderInternal,
2735
2735
  Li as mockExploreResponse,