@kong-ui-public/analytics-geo-map 1.5.47 → 1.5.48

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 { computed as A, defineComponent as Et, openBlock as K, createElementBlock as ae, toDisplayString as xe, createCommentVNode as Re, Fragment as ra, renderList as aa, createElementVNode as X, normalizeStyle as ia, useCssVars as oa, toRef as ze, ref as Ne, useId as sa, onMounted as la, watch as _t, renderSlot as gt, createVNode as ua, unref as ue, createTextVNode as ca, createBlock as on } from "vue";
1
+ import { computed as C, defineComponent as Rt, openBlock as K, createElementBlock as ae, toDisplayString as xe, createCommentVNode as Ee, Fragment as ra, renderList as aa, createElementVNode as X, normalizeStyle as ia, useCssVars as oa, toRef as ze, ref as Ne, useId as sa, onMounted as la, watch as _t, renderSlot as gt, createVNode as ua, unref as ue, createTextVNode as ca, createBlock as on } from "vue";
2
2
  import { Map as da } from "maplibre-gl";
3
3
  import { createI18n as ma, i18nTComponent as fa } from "@kong-ui-public/i18n";
4
4
  import { AnalyticsIcon as pa } from "@kong/icons";
@@ -53,8 +53,8 @@ function xa() {
53
53
  // Translation component <i18n-t>
54
54
  };
55
55
  }
56
- var Ta = Object.defineProperty, Fa = (e, t, n) => t in e ? Ta(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, U = (e, t, n) => Fa(e, typeof t != "symbol" ? t + "" : t, n), f = /* @__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.NINETY_DAY = "90d", e.ONE_HUNDRED_EIGHTY_DAY = "180d", e.ONE_YEAR = "365d", e.CURRENT_WEEK = "current_week", e.CURRENT_MONTH = "current_month", e.CURRENT_QUARTER = "current_quarter", e.CURRENT_YEAR = "current_year", e.PREVIOUS_WEEK = "previous_week", e.PREVIOUS_MONTH = "previous_month", e.PREVIOUS_QUARTER = "previous_quarter", e.PREVIOUS_YEAR = "previous_year", e))(f || {});
57
- const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"], Fe = (e) => e.filter((t) => t !== "time"), Rn = [
56
+ var Ta = Object.defineProperty, Fa = (e, t, n) => t in e ? Ta(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, A = (e, t, n) => Fa(e, typeof t != "symbol" ? t + "" : t, n), f = /* @__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.NINETY_DAY = "90d", e.ONE_HUNDRED_EIGHTY_DAY = "180d", e.ONE_YEAR = "365d", e.CURRENT_WEEK = "current_week", e.CURRENT_MONTH = "current_month", e.CURRENT_QUARTER = "current_quarter", e.CURRENT_YEAR = "current_year", e.PREVIOUS_WEEK = "previous_week", e.PREVIOUS_MONTH = "previous_month", e.PREVIOUS_QUARTER = "previous_quarter", e.PREVIOUS_YEAR = "previous_year", e))(f || {});
57
+ const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"], Fe = (e) => e.filter((t) => t !== "time"), En = [
58
58
  "api",
59
59
  "api_package",
60
60
  "api_product",
@@ -68,14 +68,14 @@ const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"], Fe = (e) =
68
68
  "status_code",
69
69
  "status_code_grouped",
70
70
  "time"
71
- ], bn = Fe(Rn), Da = [
71
+ ], bn = Fe(En), Da = [
72
72
  "active_services",
73
73
  "error_rate",
74
74
  "request_count",
75
75
  "request_per_minute",
76
76
  "response_latency_average"
77
77
  ], On = [
78
- ...Rn,
78
+ ...En,
79
79
  "application",
80
80
  "bot_info_action",
81
81
  "bot_info_detection_reason",
@@ -135,7 +135,7 @@ const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"], Fe = (e) =
135
135
  "status_code_grouped",
136
136
  "ai_plugin",
137
137
  "principal"
138
- ], Ln = Fe(Na), Ea = [
138
+ ], Ln = Fe(Na), Ra = [
139
139
  "a2a_context_id",
140
140
  "a2a_error",
141
141
  "a2a_method",
@@ -185,8 +185,8 @@ const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"], Fe = (e) =
185
185
  "upstream_status_code_grouped",
186
186
  "websocket"
187
187
  ];
188
- Fe(Ea);
189
- const Ra = [
188
+ Fe(Ra);
189
+ const Ea = [
190
190
  "ai_count",
191
191
  "latencies_response_ms",
192
192
  "latencies_upstream_ms",
@@ -198,7 +198,7 @@ const Ra = [
198
198
  "status_code",
199
199
  "upstream_status_code"
200
200
  ];
201
- Fe(Ra);
201
+ Fe(Ea);
202
202
  const ba = [
203
203
  ...On,
204
204
  "a2a_context_id",
@@ -209,12 +209,12 @@ const ba = [
209
209
  "mcp_method",
210
210
  "mcp_session_id",
211
211
  "mcp_tool_name"
212
- ], In = Fe(ba);
212
+ ], Un = Fe(ba);
213
213
  [
214
214
  ...ka
215
215
  ];
216
- new Set(bn), new Set(Gn), new Set(Ln), new Set(In);
217
- const Rt = [
216
+ new Set(bn), new Set(Gn), new Set(Ln), new Set(Un);
217
+ const Et = [
218
218
  { code: "AF", name: "Afghanistan" },
219
219
  { code: "AX", name: "Aland Islands" },
220
220
  { code: "AL", name: "Albania" },
@@ -462,7 +462,7 @@ const Rt = [
462
462
  { code: "ZM", name: "Zambia" },
463
463
  { code: "ZW", name: "Zimbabwe" }
464
464
  ];
465
- Rt.map((e) => e.code);
465
+ Et.map((e) => e.code);
466
466
  const Oa = (e) => ({
467
467
  type: "array",
468
468
  description: "A list of filters to apply to the query",
@@ -534,15 +534,15 @@ Oa([
534
534
  ...Gn,
535
535
  ...bn,
536
536
  ...Ln,
537
- ...In,
537
+ ...Un,
538
538
  ...Ga
539
539
  ])
540
540
  ]);
541
541
  let La = {};
542
- function Ia() {
542
+ function Ua() {
543
543
  return La;
544
544
  }
545
- const Ua = 60, Aa = 3600, sn = Symbol.for("constructDateFrom");
545
+ const Aa = 60, Ca = 3600, sn = Symbol.for("constructDateFrom");
546
546
  function Ge(e, t) {
547
547
  return typeof e == "function" ? e(t) : e && typeof e == "object" && sn in e ? e[sn](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
548
548
  }
@@ -555,14 +555,14 @@ function Ve(e, t) {
555
555
  }
556
556
  function qe(e, t) {
557
557
  var n, a, i, o;
558
- const l = Ia(), d = (t == null ? void 0 : t.weekStartsOn) ?? ((a = (n = t == null ? void 0 : t.locale) == null ? void 0 : n.options) == null ? void 0 : a.weekStartsOn) ?? l.weekStartsOn ?? ((o = (i = l.locale) == null ? void 0 : i.options) == null ? void 0 : o.weekStartsOn) ?? 0, m = ce(e, t == null ? void 0 : t.in), y = m.getDay(), c = (y < d ? 7 : 0) + y - d;
558
+ const l = Ua(), d = (t == null ? void 0 : t.weekStartsOn) ?? ((a = (n = t == null ? void 0 : t.locale) == null ? void 0 : n.options) == null ? void 0 : a.weekStartsOn) ?? l.weekStartsOn ?? ((o = (i = l.locale) == null ? void 0 : i.options) == null ? void 0 : o.weekStartsOn) ?? 0, m = ce(e, t == null ? void 0 : t.in), y = m.getDay(), c = (y < d ? 7 : 0) + y - d;
559
559
  return m.setDate(m.getDate() - c), m.setHours(0, 0, 0, 0), m;
560
560
  }
561
561
  function Ye(e, t, n) {
562
562
  const a = ce(e, void 0);
563
563
  return isNaN(t) ? Ge(e, NaN) : (a.setDate(a.getDate() + t), a);
564
564
  }
565
- function Un(e, t, n) {
565
+ function An(e, t, n) {
566
566
  const a = ce(e, void 0);
567
567
  if (isNaN(t)) return Ge(e, NaN);
568
568
  if (!t)
@@ -576,8 +576,8 @@ function Un(e, t, n) {
576
576
  i
577
577
  ), a);
578
578
  }
579
- function Ca(e, t, n) {
580
- return Un(e, t * 3);
579
+ function Ia(e, t, n) {
580
+ return An(e, t * 3);
581
581
  }
582
582
  function we(e, t) {
583
583
  const n = ce(e, void 0), a = n.getMonth(), i = a - a % 3;
@@ -592,17 +592,17 @@ function Pa(e, t) {
592
592
  return o.setFullYear(a, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
593
593
  }
594
594
  function ln(e) {
595
- return Math.trunc(e * Aa);
595
+ return Math.trunc(e * Ca);
596
596
  }
597
597
  function Ba(e) {
598
- const t = e / Ua;
598
+ const t = e / Aa;
599
599
  return Math.trunc(t);
600
600
  }
601
- function An(e, t, n) {
602
- return Un(e, -1);
603
- }
604
601
  function Cn(e, t, n) {
605
- return Ca(e, -1);
602
+ return An(e, -1);
603
+ }
604
+ function In(e, t, n) {
605
+ return Ia(e, -1);
606
606
  }
607
607
  function Ha(e, t) {
608
608
  const n = ja(t);
@@ -737,7 +737,7 @@ function fn(e) {
737
737
  const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
738
738
  return t.setUTCFullYear(e.getFullYear()), +e - +t;
739
739
  }
740
- const Pn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, xt = 36e5, pn = 6e4, Qa = 2, R = {
740
+ const Pn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, xt = 36e5, pn = 6e4, Qa = 2, E = {
741
741
  dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
742
742
  datePattern: /^([0-9W+-]+)(.*)/,
743
743
  // year tokens
@@ -804,17 +804,17 @@ function kt(e, t = {}) {
804
804
  }
805
805
  function Ja(e) {
806
806
  const t = {};
807
- let n = R.dateTimePattern.exec(e), a;
808
- if (n ? (t.date = n[1], a = n[3]) : (n = R.datePattern.exec(e), n ? (t.date = n[1], a = n[2]) : (t.date = null, a = e)), a) {
809
- const i = R.timeZone.exec(a);
807
+ let n = E.dateTimePattern.exec(e), a;
808
+ if (n ? (t.date = n[1], a = n[3]) : (n = E.datePattern.exec(e), n ? (t.date = n[1], a = n[2]) : (t.date = null, a = e)), a) {
809
+ const i = E.timeZone.exec(a);
810
810
  i ? (t.time = a.replace(i[1], ""), t.timeZone = i[1].trim()) : t.time = a;
811
811
  }
812
812
  return t;
813
813
  }
814
814
  function Xa(e, t) {
815
815
  if (e) {
816
- const n = R.YYY[t], a = R.YYYYY[t];
817
- let i = R.YYYY.exec(e) || a.exec(e);
816
+ const n = E.YYY[t], a = E.YYYYY[t];
817
+ let i = E.YYYY.exec(e) || a.exec(e);
818
818
  if (i) {
819
819
  const o = i[1];
820
820
  return {
@@ -822,7 +822,7 @@ function Xa(e, t) {
822
822
  restDateString: e.slice(o.length)
823
823
  };
824
824
  }
825
- if (i = R.YY.exec(e) || n.exec(e), i) {
825
+ if (i = E.YY.exec(e) || n.exec(e), i) {
826
826
  const o = i[1];
827
827
  return {
828
828
  year: parseInt(o, 10) * 100,
@@ -840,22 +840,22 @@ function ei(e, t) {
840
840
  let n, a, i;
841
841
  if (!e || !e.length)
842
842
  return n = /* @__PURE__ */ new Date(0), n.setUTCFullYear(t), n;
843
- let o = R.MM.exec(e);
843
+ let o = E.MM.exec(e);
844
844
  if (o)
845
845
  return n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1, hn(t, a) ? (n.setUTCFullYear(t, a), n) : /* @__PURE__ */ new Date(NaN);
846
- if (o = R.DDD.exec(e), o) {
846
+ if (o = E.DDD.exec(e), o) {
847
847
  n = /* @__PURE__ */ new Date(0);
848
848
  const l = parseInt(o[1], 10);
849
849
  return ai(t, l) ? (n.setUTCFullYear(t, 0, l), n) : /* @__PURE__ */ new Date(NaN);
850
850
  }
851
- if (o = R.MMDD.exec(e), o) {
851
+ if (o = E.MMDD.exec(e), o) {
852
852
  n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1;
853
853
  const l = parseInt(o[2], 10);
854
854
  return hn(t, a, l) ? (n.setUTCFullYear(t, a, l), n) : /* @__PURE__ */ new Date(NaN);
855
855
  }
856
- if (o = R.Www.exec(e), o)
856
+ if (o = E.Www.exec(e), o)
857
857
  return i = parseInt(o[1], 10) - 1, _n(i) ? yn(t, i) : /* @__PURE__ */ new Date(NaN);
858
- if (o = R.WwwD.exec(e), o) {
858
+ if (o = E.WwwD.exec(e), o) {
859
859
  i = parseInt(o[1], 10) - 1;
860
860
  const l = parseInt(o[2], 10) - 1;
861
861
  return _n(i, l) ? yn(t, i, l) : /* @__PURE__ */ new Date(NaN);
@@ -863,12 +863,12 @@ function ei(e, t) {
863
863
  return null;
864
864
  }
865
865
  function ti(e) {
866
- let t, n, a = R.HH.exec(e);
866
+ let t, n, a = E.HH.exec(e);
867
867
  if (a)
868
868
  return t = parseFloat(a[1].replace(",", ".")), Tt(t) ? t % 24 * xt : NaN;
869
- if (a = R.HHMM.exec(e), a)
869
+ if (a = E.HHMM.exec(e), a)
870
870
  return t = parseInt(a[1], 10), n = parseFloat(a[2].replace(",", ".")), Tt(t, n) ? t % 24 * xt + n * pn : NaN;
871
- if (a = R.HHMMSS.exec(e), a) {
871
+ if (a = E.HHMMSS.exec(e), a) {
872
872
  t = parseInt(a[1], 10), n = parseInt(a[2], 10);
873
873
  const i = parseFloat(a[3].replace(",", "."));
874
874
  return Tt(t, n, i) ? t % 24 * xt + n * pn + i * 1e3 : NaN;
@@ -928,9 +928,9 @@ function si(e, t) {
928
928
  var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Qe = { exports: {} };
929
929
  Qe.exports;
930
930
  (function(e, t) {
931
- var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", l = "[object Array]", d = "[object Boolean]", m = "[object Date]", y = "[object Error]", c = "[object Function]", x = "[object GeneratorFunction]", F = "[object Map]", g = "[object Number]", T = "[object Object]", N = "[object Promise]", H = "[object RegExp]", B = "[object Set]", I = "[object String]", ie = "[object Symbol]", D = "[object WeakMap]", Me = "[object ArrayBuffer]", de = "[object DataView]", h = "[object Float32Array]", v = "[object Float64Array]", M = "[object Int8Array]", E = "[object Int16Array]", ee = "[object Int32Array]", W = "[object Uint8Array]", z = "[object Uint8ClampedArray]", te = "[object Uint16Array]", ne = "[object Uint32Array]", L = /[\\^$.*+?()[\]{}|]/g, V = /\w*$/, Y = /^\[object .+?Constructor\]$/, $ = /^(?:0|[1-9]\d*)$/, _ = {};
932
- _[o] = _[l] = _[Me] = _[de] = _[d] = _[m] = _[h] = _[v] = _[M] = _[E] = _[ee] = _[F] = _[g] = _[T] = _[H] = _[B] = _[I] = _[ie] = _[W] = _[z] = _[te] = _[ne] = !0, _[y] = _[c] = _[D] = !1;
933
- var j = typeof $e == "object" && $e && $e.Object === Object && $e, me = typeof self == "object" && self && self.Object === Object && self, b = j || me || Function("return this")(), Z = t && !t.nodeType && t, Ie = Z && !0 && e && !e.nodeType && e, rt = Ie && Ie.exports === Z;
931
+ var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", l = "[object Array]", d = "[object Boolean]", m = "[object Date]", y = "[object Error]", c = "[object Function]", x = "[object GeneratorFunction]", F = "[object Map]", g = "[object Number]", T = "[object Object]", N = "[object Promise]", H = "[object RegExp]", B = "[object Set]", U = "[object String]", ie = "[object Symbol]", D = "[object WeakMap]", Me = "[object ArrayBuffer]", de = "[object DataView]", h = "[object Float32Array]", v = "[object Float64Array]", M = "[object Int8Array]", R = "[object Int16Array]", ee = "[object Int32Array]", W = "[object Uint8Array]", z = "[object Uint8ClampedArray]", te = "[object Uint16Array]", ne = "[object Uint32Array]", L = /[\\^$.*+?()[\]{}|]/g, V = /\w*$/, Y = /^\[object .+?Constructor\]$/, $ = /^(?:0|[1-9]\d*)$/, _ = {};
932
+ _[o] = _[l] = _[Me] = _[de] = _[d] = _[m] = _[h] = _[v] = _[M] = _[R] = _[ee] = _[F] = _[g] = _[T] = _[H] = _[B] = _[U] = _[ie] = _[W] = _[z] = _[te] = _[ne] = !0, _[y] = _[c] = _[D] = !1;
933
+ var j = typeof $e == "object" && $e && $e.Object === Object && $e, me = typeof self == "object" && self && self.Object === Object && self, b = j || me || Function("return this")(), Z = t && !t.nodeType && t, Ue = Z && !0 && e && !e.nodeType && e, rt = Ue && Ue.exports === Z;
934
934
  function at(r, s) {
935
935
  return r.set(s[0], s[1]), r;
936
936
  }
@@ -947,7 +947,7 @@ Qe.exports;
947
947
  r[k + u] = s[u];
948
948
  return r;
949
949
  }
950
- function Ut(r, s, u, p) {
950
+ function At(r, s, u, p) {
951
951
  for (var k = -1, O = r ? r.length : 0; ++k < O; )
952
952
  u = s(u, r[k], k, r);
953
953
  return u;
@@ -960,7 +960,7 @@ Qe.exports;
960
960
  function $n(r, s) {
961
961
  return r == null ? void 0 : r[s];
962
962
  }
963
- function At(r) {
963
+ function Ct(r) {
964
964
  var s = !1;
965
965
  if (r != null && typeof r.toString != "function")
966
966
  try {
@@ -969,7 +969,7 @@ Qe.exports;
969
969
  }
970
970
  return s;
971
971
  }
972
- function Ct(r) {
972
+ function It(r) {
973
973
  var s = -1, u = Array(r.size);
974
974
  return r.forEach(function(p, k) {
975
975
  u[++s] = [k, p];
@@ -986,12 +986,12 @@ Qe.exports;
986
986
  u[++s] = p;
987
987
  }), u;
988
988
  }
989
- var jn = Array.prototype, Kn = Function.prototype, Ue = Object.prototype, st = b["__core-js_shared__"], Bt = function() {
989
+ var jn = Array.prototype, Kn = Function.prototype, Ae = Object.prototype, st = b["__core-js_shared__"], Bt = function() {
990
990
  var r = /[^.]+$/.exec(st && st.keys && st.keys.IE_PROTO || "");
991
991
  return r ? "Symbol(src)_1." + r : "";
992
- }(), Ht = Kn.toString, re = Ue.hasOwnProperty, Ae = Ue.toString, Wn = RegExp(
992
+ }(), Ht = Kn.toString, re = Ae.hasOwnProperty, Ce = Ae.toString, Wn = RegExp(
993
993
  "^" + Ht.call(re).replace(L, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
994
- ), zt = rt ? b.Buffer : void 0, Vt = b.Symbol, Yt = b.Uint8Array, Zn = ot(Object.getPrototypeOf, Object), qn = Object.create, Qn = Ue.propertyIsEnumerable, Jn = jn.splice, $t = Object.getOwnPropertySymbols, Xn = zt ? zt.isBuffer : void 0, er = ot(Object.keys, Object), lt = ye(b, "DataView"), De = ye(b, "Map"), ut = ye(b, "Promise"), ct = ye(b, "Set"), dt = ye(b, "WeakMap"), ke = ye(Object, "create"), tr = le(lt), nr = le(De), rr = le(ut), ar = le(ct), ir = le(dt), jt = Vt ? Vt.prototype : void 0, Kt = jt ? jt.valueOf : void 0;
994
+ ), zt = rt ? b.Buffer : void 0, Vt = b.Symbol, Yt = b.Uint8Array, Zn = ot(Object.getPrototypeOf, Object), qn = Object.create, Qn = Ae.propertyIsEnumerable, Jn = jn.splice, $t = Object.getOwnPropertySymbols, Xn = zt ? zt.isBuffer : void 0, er = ot(Object.keys, Object), lt = ye(b, "DataView"), De = ye(b, "Map"), ut = ye(b, "Promise"), ct = ye(b, "Set"), dt = ye(b, "WeakMap"), ke = ye(Object, "create"), tr = le(lt), nr = le(De), rr = le(ut), ar = le(ct), ir = le(dt), jt = Vt ? Vt.prototype : void 0, Kt = jt ? jt.valueOf : void 0;
995
995
  function oe(r) {
996
996
  var s = -1, u = r ? r.length : 0;
997
997
  for (this.clear(); ++s < u; ) {
@@ -1033,21 +1033,21 @@ Qe.exports;
1033
1033
  this.__data__ = [];
1034
1034
  }
1035
1035
  function mr(r) {
1036
- var s = this.__data__, u = Ce(s, r);
1036
+ var s = this.__data__, u = Ie(s, r);
1037
1037
  if (u < 0)
1038
1038
  return !1;
1039
1039
  var p = s.length - 1;
1040
1040
  return u == p ? s.pop() : Jn.call(s, u, 1), !0;
1041
1041
  }
1042
1042
  function fr(r) {
1043
- var s = this.__data__, u = Ce(s, r);
1043
+ var s = this.__data__, u = Ie(s, r);
1044
1044
  return u < 0 ? void 0 : s[u][1];
1045
1045
  }
1046
1046
  function pr(r) {
1047
- return Ce(this.__data__, r) > -1;
1047
+ return Ie(this.__data__, r) > -1;
1048
1048
  }
1049
1049
  function yr(r, s) {
1050
- var u = this.__data__, p = Ce(u, r);
1050
+ var u = this.__data__, p = Ie(u, r);
1051
1051
  return p < 0 ? u.push([r, s]) : u[p][1] = s, this;
1052
1052
  }
1053
1053
  q.prototype.clear = dr, q.prototype.delete = mr, q.prototype.get = fr, q.prototype.has = pr, q.prototype.set = yr;
@@ -1114,7 +1114,7 @@ Qe.exports;
1114
1114
  var p = r[s];
1115
1115
  (!(re.call(r, s) && Jt(p, u)) || u === void 0 && !(s in r)) && (r[s] = u);
1116
1116
  }
1117
- function Ce(r, s) {
1117
+ function Ie(r, s) {
1118
1118
  for (var u = r.length; u--; )
1119
1119
  if (Jt(r[u][0], s))
1120
1120
  return u;
@@ -1138,7 +1138,7 @@ Qe.exports;
1138
1138
  if (Jr(r))
1139
1139
  return Gr(r, s);
1140
1140
  if (he == T || he == o || nn && !O) {
1141
- if (At(r))
1141
+ if (Ct(r))
1142
1142
  return O ? r : {};
1143
1143
  if (G = Yr(nn ? {} : r), !s)
1144
1144
  return Hr(r, kr(G, r));
@@ -1161,17 +1161,17 @@ Qe.exports;
1161
1161
  function Nr(r) {
1162
1162
  return Be(r) ? qn(r) : {};
1163
1163
  }
1164
- function Er(r, s, u) {
1164
+ function Rr(r, s, u) {
1165
1165
  var p = s(r);
1166
1166
  return pt(r) ? p : Vn(p, u(r));
1167
1167
  }
1168
- function Rr(r) {
1169
- return Ae.call(r);
1168
+ function Er(r) {
1169
+ return Ce.call(r);
1170
1170
  }
1171
1171
  function br(r) {
1172
1172
  if (!Be(r) || Wr(r))
1173
1173
  return !1;
1174
- var s = en(r) || At(r) ? Wn : Y;
1174
+ var s = en(r) || Ct(r) ? Wn : Y;
1175
1175
  return s.test(le(r));
1176
1176
  }
1177
1177
  function Or(r) {
@@ -1196,19 +1196,19 @@ Qe.exports;
1196
1196
  var u = s ? ft(r.buffer) : r.buffer;
1197
1197
  return new r.constructor(u, r.byteOffset, r.byteLength);
1198
1198
  }
1199
- function Ir(r, s, u) {
1200
- var p = s ? u(Ct(r), !0) : Ct(r);
1201
- return Ut(p, at, new r.constructor());
1199
+ function Ur(r, s, u) {
1200
+ var p = s ? u(It(r), !0) : It(r);
1201
+ return At(p, at, new r.constructor());
1202
1202
  }
1203
- function Ur(r) {
1203
+ function Ar(r) {
1204
1204
  var s = new r.constructor(r.source, V.exec(r));
1205
1205
  return s.lastIndex = r.lastIndex, s;
1206
1206
  }
1207
- function Ar(r, s, u) {
1207
+ function Cr(r, s, u) {
1208
1208
  var p = s ? u(Pt(r), !0) : Pt(r);
1209
- return Ut(p, it, new r.constructor());
1209
+ return At(p, it, new r.constructor());
1210
1210
  }
1211
- function Cr(r) {
1211
+ function Ir(r) {
1212
1212
  return Kt ? Object(Kt.call(r)) : {};
1213
1213
  }
1214
1214
  function Pr(r, s) {
@@ -1233,7 +1233,7 @@ Qe.exports;
1233
1233
  return Zt(r, qt(r), s);
1234
1234
  }
1235
1235
  function zr(r) {
1236
- return Er(r, yt, qt);
1236
+ return Rr(r, yt, qt);
1237
1237
  }
1238
1238
  function Pe(r, s) {
1239
1239
  var u = r.__data__;
@@ -1243,9 +1243,9 @@ Qe.exports;
1243
1243
  var u = $n(r, s);
1244
1244
  return br(u) ? u : void 0;
1245
1245
  }
1246
- var qt = $t ? ot($t, Object) : ta, se = Rr;
1246
+ var qt = $t ? ot($t, Object) : ta, se = Er;
1247
1247
  (lt && se(new lt(new ArrayBuffer(1))) != de || De && se(new De()) != F || ut && se(ut.resolve()) != N || ct && se(new ct()) != B || dt && se(new dt()) != D) && (se = function(r) {
1248
- var s = Ae.call(r), u = s == T ? r.constructor : void 0, p = u ? le(u) : void 0;
1248
+ var s = Ce.call(r), u = s == T ? r.constructor : void 0, p = u ? le(u) : void 0;
1249
1249
  if (p)
1250
1250
  switch (p) {
1251
1251
  case tr:
@@ -1281,7 +1281,7 @@ Qe.exports;
1281
1281
  case h:
1282
1282
  case v:
1283
1283
  case M:
1284
- case E:
1284
+ case R:
1285
1285
  case ee:
1286
1286
  case W:
1287
1287
  case z:
@@ -1289,16 +1289,16 @@ Qe.exports;
1289
1289
  case ne:
1290
1290
  return Pr(r, p);
1291
1291
  case F:
1292
- return Ir(r, p, u);
1292
+ return Ur(r, p, u);
1293
1293
  case g:
1294
- case I:
1294
+ case U:
1295
1295
  return new k(r);
1296
1296
  case H:
1297
- return Ur(r);
1297
+ return Ar(r);
1298
1298
  case B:
1299
- return Ar(r, p, u);
1299
+ return Cr(r, p, u);
1300
1300
  case ie:
1301
- return Cr(r);
1301
+ return Ir(r);
1302
1302
  }
1303
1303
  }
1304
1304
  function jr(r, s) {
@@ -1312,7 +1312,7 @@ Qe.exports;
1312
1312
  return !!Bt && Bt in r;
1313
1313
  }
1314
1314
  function Qt(r) {
1315
- var s = r && r.constructor, u = typeof s == "function" && s.prototype || Ue;
1315
+ var s = r && r.constructor, u = typeof s == "function" && s.prototype || Ae;
1316
1316
  return r === u;
1317
1317
  }
1318
1318
  function le(r) {
@@ -1335,7 +1335,7 @@ Qe.exports;
1335
1335
  return r === s || r !== r && s !== s;
1336
1336
  }
1337
1337
  function qr(r) {
1338
- return Qr(r) && re.call(r, "callee") && (!Qn.call(r, "callee") || Ae.call(r) == o);
1338
+ return Qr(r) && re.call(r, "callee") && (!Qn.call(r, "callee") || Ce.call(r) == o);
1339
1339
  }
1340
1340
  var pt = Array.isArray;
1341
1341
  function Xt(r) {
@@ -1346,7 +1346,7 @@ Qe.exports;
1346
1346
  }
1347
1347
  var Jr = Xn || na;
1348
1348
  function en(r) {
1349
- var s = Be(r) ? Ae.call(r) : "";
1349
+ var s = Be(r) ? Ce.call(r) : "";
1350
1350
  return s == c || s == x;
1351
1351
  }
1352
1352
  function Xr(r) {
@@ -1374,7 +1374,7 @@ Qe.exports;
1374
1374
  const P = (e, t) => new Date(e.getTime() - si(t, e));
1375
1375
  class S {
1376
1376
  constructor(t) {
1377
- U(this, "timeframeText"), U(this, "key"), U(this, "display"), U(this, "timeframeLength"), U(this, "allowedTiers"), U(this, "defaultResponseGranularity"), U(this, "dataGranularity"), U(this, "isRelative"), U(this, "fineGrainedDefaultGranularity"), U(this, "_startCustom"), U(this, "_endCustom"), U(this, "_allowedGranularitiesOverride"), this.display = t.display, this.timeframeText = t.timeframeText, this.key = t.key, this.timeframeLength = t.timeframeLength, this.allowedTiers = t.allowedTiers, this.defaultResponseGranularity = t.defaultResponseGranularity, this.dataGranularity = t.dataGranularity, this.isRelative = t.isRelative, this._startCustom = t.startCustom, this._endCustom = t.endCustom, this._allowedGranularitiesOverride = t.allowedGranularitiesOverride, this.fineGrainedDefaultGranularity = t.fineGrainedDefaultGranularity;
1377
+ A(this, "timeframeText"), A(this, "key"), A(this, "display"), A(this, "timeframeLength"), A(this, "allowedTiers"), A(this, "defaultResponseGranularity"), A(this, "dataGranularity"), A(this, "isRelative"), A(this, "fineGrainedDefaultGranularity"), A(this, "_startCustom"), A(this, "_endCustom"), A(this, "_allowedGranularitiesOverride"), this.display = t.display, this.timeframeText = t.timeframeText, this.key = t.key, this.timeframeLength = t.timeframeLength, this.allowedTiers = t.allowedTiers, this.defaultResponseGranularity = t.defaultResponseGranularity, this.dataGranularity = t.dataGranularity, this.isRelative = t.isRelative, this._startCustom = t.startCustom, this._endCustom = t.endCustom, this._allowedGranularitiesOverride = t.allowedGranularitiesOverride, this.fineGrainedDefaultGranularity = t.fineGrainedDefaultGranularity;
1378
1378
  }
1379
1379
  // rawEnd does not consider granularity and should not be used directly in queries.
1380
1380
  // Use `new QueryTime(timeframe, granularity?).queryEndSeconds()` instead.
@@ -1478,7 +1478,7 @@ class fi extends S {
1478
1478
  return t && (n = P(n, t)), n;
1479
1479
  }
1480
1480
  rawStart(t) {
1481
- let n = we(Cn(this.tzAdjustedDate(t)));
1481
+ let n = we(In(this.tzAdjustedDate(t)));
1482
1482
  return t && (n = P(n, t)), n;
1483
1483
  }
1484
1484
  }
@@ -1488,7 +1488,7 @@ class pi extends S {
1488
1488
  return t && (n = P(n, t)), n;
1489
1489
  }
1490
1490
  rawStart(t) {
1491
- let n = ve(An(this.tzAdjustedDate(t)));
1491
+ let n = ve(Cn(this.tzAdjustedDate(t)));
1492
1492
  return t && (n = P(n, t)), n;
1493
1493
  }
1494
1494
  }
@@ -1679,7 +1679,7 @@ f.FIFTEEN_MIN, new S({
1679
1679
  timeframeText: "Month",
1680
1680
  timeframeLength: () => {
1681
1681
  let e = 0;
1682
- const t = ve(/* @__PURE__ */ new Date()), n = ve(An(/* @__PURE__ */ new Date()));
1682
+ const t = ve(/* @__PURE__ */ new Date()), n = ve(Cn(/* @__PURE__ */ new Date()));
1683
1683
  return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = gn(t, n)), 60 * 60 * 24 * Pa((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + ln(e);
1684
1684
  },
1685
1685
  defaultResponseGranularity: "daily",
@@ -1691,7 +1691,7 @@ f.FIFTEEN_MIN, new S({
1691
1691
  display: "Previous quarter",
1692
1692
  timeframeText: "Quarter",
1693
1693
  timeframeLength: () => {
1694
- const e = we(/* @__PURE__ */ new Date()), t = we(Cn(/* @__PURE__ */ new Date()));
1694
+ const e = we(/* @__PURE__ */ new Date()), t = we(In(/* @__PURE__ */ new Date()));
1695
1695
  return (e.getTime() - t.getTime()) / 1e3;
1696
1696
  },
1697
1697
  defaultResponseGranularity: "daily",
@@ -1716,7 +1716,7 @@ function gn(e, t) {
1716
1716
  return Ba(e.getTimezoneOffset() - t.getTimezoneOffset());
1717
1717
  }
1718
1718
  f.FIFTEEN_MIN, f.ONE_HOUR, f.SIX_HOUR, f.TWELVE_HOUR, f.ONE_DAY, f.SEVEN_DAY, f.FIFTEEN_MIN, f.ONE_HOUR, f.SIX_HOUR, f.TWELVE_HOUR, f.ONE_DAY, f.SEVEN_DAY, f.THIRTY_DAY, f.NINETY_DAY, f.ONE_HUNDRED_EIGHTY_DAY, f.ONE_YEAR, f.CURRENT_WEEK, f.CURRENT_MONTH, f.CURRENT_QUARTER, f.CURRENT_YEAR, f.PREVIOUS_WEEK, f.PREVIOUS_MONTH, f.PREVIOUS_QUARTER, f.PREVIOUS_YEAR;
1719
- new Map(Rt.map((e) => [e.code, { code: e.code, name: e.name }]));
1719
+ new Map(Et.map((e) => [e.code, { code: e.code, name: e.name }]));
1720
1720
  const wn = 1e3, hi = 1e4, vn = 1e6, xn = 1e9, Tn = 1e12, We = (e, t) => {
1721
1721
  if (t.separator === !1 || e < 1e3)
1722
1722
  return e.toString();
@@ -1724,7 +1724,7 @@ const wn = 1e3, hi = 1e4, vn = 1e6, xn = 1e9, Tn = 1e12, We = (e, t) => {
1724
1724
  return Math.round(e).toString().split("").reverse().forEach((i, o) => {
1725
1725
  o && o % 3 === 0 && a.push(n), a.push(i);
1726
1726
  }), a.reverse().join("");
1727
- }, Ee = (e, t, n) => {
1727
+ }, Re = (e, t, n) => {
1728
1728
  const a = e / t, i = n.round ? "round" : "floor";
1729
1729
  if (n.decimal === !1)
1730
1730
  return Math[i](a).toString();
@@ -1738,7 +1738,7 @@ function Ze(e, t = {}) {
1738
1738
  const a = e < 0;
1739
1739
  a && (e = Math.abs(e)), t.precision && (e = parseFloat(e.toPrecision(t.precision)));
1740
1740
  const i = t.min10k ? hi : wn;
1741
- return e < i || t.precision && t.precision > Math.log10(e) ? n = We(Ee(e, 1, t), t) : e < vn ? n = `${Ee(e, wn, t)}k` : e < xn ? n = `${Ee(e, vn, t)}m` : e < Tn ? n = `${We(Ee(e, xn, t), t)}b` : n = `${We(Ee(e, Tn, t), t)}t`, a && (n = `-${n}`), t.capital && (n = n.toUpperCase()), t.prefix && (n = `${t.prefix}${n}`), t.suffix && (n = `${n}${t.suffix}`), n;
1741
+ return e < i || t.precision && t.precision > Math.log10(e) ? n = We(Re(e, 1, t), t) : e < vn ? n = `${Re(e, wn, t)}k` : e < xn ? n = `${Re(e, vn, t)}m` : e < Tn ? n = `${We(Re(e, xn, t), t)}b` : n = `${We(Re(e, Tn, t), t)}t`, a && (n = `-${n}`), t.capital && (n = n.toUpperCase()), t.prefix && (n = `${t.prefix}${n}`), t.suffix && (n = `${n}${t.suffix}`), n;
1742
1742
  }
1743
1743
  Ze.addCommas = We;
1744
1744
  var Fn;
@@ -1839,22 +1839,22 @@ function Ti({
1839
1839
  metric: t,
1840
1840
  unit: n
1841
1841
  }) {
1842
- const { formatMetric: a, formatMetricRange: i } = Oe.useMetricFormat({ unit: n }), o = A(() => {
1842
+ const { formatMetric: a, formatMetricRange: i } = Oe.useMetricFormat({ unit: n }), o = C(() => {
1843
1843
  const g = { ...e.value };
1844
1844
  for (const T of Object.keys(g))
1845
- Rt.find((N) => N.code === T) || delete g[T];
1845
+ Et.find((N) => N.code === T) || delete g[T];
1846
1846
  return g;
1847
- }), l = A(() => Object.values(o.value)), d = A(() => Object.keys(o.value).length), m = A(() => d.value < Mn - 1 ? d.value : Mn), y = A(() => {
1847
+ }), l = C(() => Object.values(o.value)), d = C(() => Object.keys(o.value).length), m = C(() => d.value < Mn - 1 ? d.value : Mn), y = C(() => {
1848
1848
  var g;
1849
1849
  return !((g = t.value) != null && g.includes("latency"));
1850
- }), c = A(() => {
1850
+ }), c = C(() => {
1851
1851
  const g = [];
1852
1852
  if (l.value.length > 10) {
1853
- const T = [...l.value].sort((D, Me) => D - Me), N = xi(T, 0.75), H = l.value.filter((D) => D >= N), B = l.value.filter((D) => D < N), I = St(H, 3), ie = St(B, 2);
1854
- return g.push(...I, ...ie), g;
1853
+ const T = [...l.value].sort((D, Me) => D - Me), N = xi(T, 0.75), H = l.value.filter((D) => D >= N), B = l.value.filter((D) => D < N), U = St(H, 3), ie = St(B, 2);
1854
+ return g.push(...U, ...ie), g;
1855
1855
  }
1856
1856
  return St(l.value, m.value);
1857
- }), x = A(() => l.value.length === 1 ? [{
1857
+ }), x = C(() => l.value.length === 1 ? [{
1858
1858
  color: F(l.value[0]),
1859
1859
  range: a(l.value[0], {
1860
1860
  approximate: y.value,
@@ -1862,19 +1862,19 @@ function Ti({
1862
1862
  }).trim()
1863
1863
  }] : c.value.map((g, T) => {
1864
1864
  const N = T === 0 ? Math.max(...c.value) : c.value[T - 1], H = g, B = N;
1865
- let I = "";
1866
- return T === 0 ? I = `> ${a(H, {
1865
+ let U = "";
1866
+ return T === 0 ? U = `> ${a(H, {
1867
1867
  showUnit: !n.value.includes("count"),
1868
1868
  approximate: y.value
1869
- })}`.trim() : T === c.value.length - 1 ? I = `< ${a(B, {
1869
+ })}`.trim() : T === c.value.length - 1 ? U = `< ${a(B, {
1870
1870
  showUnit: !n.value.includes("count"),
1871
1871
  approximate: y.value
1872
- })}`.trim() : I = i(H, B, {
1872
+ })}`.trim() : U = i(H, B, {
1873
1873
  showUnit: !n.value.includes("count"),
1874
1874
  approximate: y.value
1875
1875
  }).trim(), {
1876
1876
  color: F(H),
1877
- range: I
1877
+ range: U
1878
1878
  };
1879
1879
  })), F = (g) => {
1880
1880
  if (g === 0)
@@ -4352,7 +4352,7 @@ const Oe = {
4352
4352
  function ki(e) {
4353
4353
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4354
4354
  }
4355
- var Ni = Ri, Je, Te, C, Xe, nt, Ei = [
4355
+ var Ni = Ei, Je, Te, I, Xe, nt, Ri = [
4356
4356
  "Point",
4357
4357
  "MultiPoint",
4358
4358
  "LineString",
@@ -4361,8 +4361,8 @@ var Ni = Ri, Je, Te, C, Xe, nt, Ei = [
4361
4361
  "MultiPolygon",
4362
4362
  "GeometryCollection"
4363
4363
  ];
4364
- function Ri(e) {
4365
- Xe = 2, nt = Math.pow(10, 6), C = null, Je = [], Te = [];
4364
+ function Ei(e) {
4365
+ Xe = 2, nt = Math.pow(10, 6), I = null, Je = [], Te = [];
4366
4366
  var t = e.readFields(bi, {});
4367
4367
  return Je = null, t;
4368
4368
  }
@@ -4378,7 +4378,7 @@ function Hn(e, t) {
4378
4378
  return "geometry" in n || (n.geometry = null), n;
4379
4379
  }
4380
4380
  function Ot(e, t) {
4381
- return t.type = "Point", e.readMessage(Ii, t);
4381
+ return t.type = "Point", e.readMessage(Ui, t);
4382
4382
  }
4383
4383
  function Gi(e, t, n) {
4384
4384
  e === 1 ? t.features.push(Hn(n, {})) : e === 13 ? Te.push(Gt(n)) : e === 15 && et(n, t);
@@ -4386,11 +4386,11 @@ function Gi(e, t, n) {
4386
4386
  function Li(e, t, n) {
4387
4387
  e === 1 ? t.geometry = Ot(n, {}) : e === 11 ? t.id = n.readString() : e === 12 ? t.id = n.readSVarint() : e === 13 ? Te.push(Gt(n)) : e === 14 ? t.properties = et(n, {}) : e === 15 && et(n, t);
4388
4388
  }
4389
- function Ii(e, t, n) {
4390
- e === 1 ? t.type = Ei[n.readVarint()] : e === 2 ? C = n.readPackedVarint() : e === 3 ? Ui(t, n, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(Ot(n, {}))) : e === 13 ? Te.push(Gt(n)) : e === 15 && et(n, t);
4391
- }
4392
4389
  function Ui(e, t, n) {
4393
- n === "Point" ? e.coordinates = Ai(t) : n === "MultiPoint" || n === "LineString" ? e.coordinates = Sn(t) : n === "MultiLineString" ? e.coordinates = Dn(t) : n === "Polygon" ? e.coordinates = Dn(t, !0) : n === "MultiPolygon" && (e.coordinates = Ci(t));
4390
+ e === 1 ? t.type = Ri[n.readVarint()] : e === 2 ? I = n.readPackedVarint() : e === 3 ? Ai(t, n, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(Ot(n, {}))) : e === 13 ? Te.push(Gt(n)) : e === 15 && et(n, t);
4391
+ }
4392
+ function Ai(e, t, n) {
4393
+ n === "Point" ? e.coordinates = Ci(t) : n === "MultiPoint" || n === "LineString" ? e.coordinates = Sn(t) : n === "MultiLineString" ? e.coordinates = Dn(t) : n === "Polygon" ? e.coordinates = Dn(t, !0) : n === "MultiPolygon" && (e.coordinates = Ii(t));
4394
4394
  }
4395
4395
  function Gt(e) {
4396
4396
  for (var t = e.readVarint() + e.pos, n = null; e.pos < t; ) {
@@ -4403,7 +4403,7 @@ function et(e, t) {
4403
4403
  for (var n = e.readVarint() + e.pos; e.pos < n; ) t[Je[e.readVarint()]] = Te[e.readVarint()];
4404
4404
  return Te = [], t;
4405
4405
  }
4406
- function Ai(e) {
4406
+ function Ci(e) {
4407
4407
  for (var t = e.readVarint() + e.pos, n = []; e.pos < t; ) n.push(e.readSVarint() / nt);
4408
4408
  return n;
4409
4409
  }
@@ -4422,18 +4422,18 @@ function Sn(e) {
4422
4422
  }
4423
4423
  function Dn(e, t) {
4424
4424
  var n = e.readVarint() + e.pos;
4425
- if (!C) return [Le(e, n, null, t)];
4426
- for (var a = [], i = 0; i < C.length; i++) a.push(Le(e, n, C[i], t));
4427
- return C = null, a;
4425
+ if (!I) return [Le(e, n, null, t)];
4426
+ for (var a = [], i = 0; i < I.length; i++) a.push(Le(e, n, I[i], t));
4427
+ return I = null, a;
4428
4428
  }
4429
- function Ci(e) {
4429
+ function Ii(e) {
4430
4430
  var t = e.readVarint() + e.pos;
4431
- if (!C) return [[Le(e, t, null, !0)]];
4432
- for (var n = [], a = 1, i = 0; i < C[0]; i++) {
4433
- for (var o = [], l = 0; l < C[a]; l++) o.push(Le(e, t, C[a + 1 + l], !0));
4434
- a += C[a] + 1, n.push(o);
4431
+ if (!I) return [[Le(e, t, null, !0)]];
4432
+ for (var n = [], a = 1, i = 0; i < I[0]; i++) {
4433
+ for (var o = [], l = 0; l < I[a]; l++) o.push(Le(e, t, I[a + 1 + l], !0));
4434
+ a += I[a] + 1, n.push(o);
4435
4435
  }
4436
- return C = null, n;
4436
+ return I = null, n;
4437
4437
  }
4438
4438
  var Pi = Ni, Lt = {};
4439
4439
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
@@ -4489,7 +4489,7 @@ w.prototype = {
4489
4489
  return this.pos += 4, e;
4490
4490
  },
4491
4491
  readSFixed32: function() {
4492
- var e = En(this.buf, this.pos);
4492
+ var e = Rn(this.buf, this.pos);
4493
4493
  return this.pos += 4, e;
4494
4494
  },
4495
4495
  // 64-bit int handling is based on github.com/dpw/node-buffer-more-ints (MIT-licensed)
@@ -4498,7 +4498,7 @@ w.prototype = {
4498
4498
  return this.pos += 8, e;
4499
4499
  },
4500
4500
  readSFixed64: function() {
4501
- var e = Ke(this.buf, this.pos) + En(this.buf, this.pos + 4) * Nt;
4501
+ var e = Ke(this.buf, this.pos) + Rn(this.buf, this.pos + 4) * Nt;
4502
4502
  return this.pos += 8, e;
4503
4503
  },
4504
4504
  readFloat: function() {
@@ -4785,7 +4785,7 @@ function Ke(e, t) {
4785
4785
  function ge(e, t, n) {
4786
4786
  e[n] = t, e[n + 1] = t >>> 8, e[n + 2] = t >>> 16, e[n + 3] = t >>> 24;
4787
4787
  }
4788
- function En(e, t) {
4788
+ function Rn(e, t) {
4789
4789
  return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + (e[t + 3] << 24);
4790
4790
  }
4791
4791
  function to(e, t, n) {
@@ -4839,7 +4839,7 @@ function io(e, t = 0) {
4839
4839
  const oo = { class: "legend" }, so = {
4840
4840
  key: 0,
4841
4841
  class: "legend-title"
4842
- }, lo = { class: "legend-text" }, uo = /* @__PURE__ */ Et({
4842
+ }, lo = { class: "legend-text" }, uo = /* @__PURE__ */ Rt({
4843
4843
  __name: "MapLegend",
4844
4844
  props: {
4845
4845
  metric: {},
@@ -4848,7 +4848,7 @@ const oo = { class: "legend" }, so = {
4848
4848
  },
4849
4849
  setup(e) {
4850
4850
  return (t, n) => (K(), ae("div", oo, [
4851
- e.metric ? (K(), ae("div", so, xe(e.title), 1)) : Re("", !0),
4851
+ e.metric ? (K(), ae("div", so, xe(e.title), 1)) : Ee("", !0),
4852
4852
  (K(!0), ae(ra, null, aa(e.data, (a, i) => (K(), ae("div", {
4853
4853
  key: i,
4854
4854
  class: "legend-item"
@@ -4861,12 +4861,12 @@ const oo = { class: "legend" }, so = {
4861
4861
  ]))), 128))
4862
4862
  ]));
4863
4863
  }
4864
- }), It = (e, t) => {
4864
+ }), Ut = (e, t) => {
4865
4865
  const n = e.__vccOpts || e;
4866
4866
  for (const [a, i] of t)
4867
4867
  n[a] = i;
4868
4868
  return n;
4869
- }, co = /* @__PURE__ */ It(uo, [["__scopeId", "data-v-2858aa0d"]]), mo = { class: "map-tooltip" }, fo = { class: "map-tooltip-text" }, po = { key: 0 }, yo = /* @__PURE__ */ Et({
4869
+ }, co = /* @__PURE__ */ Ut(uo, [["__scopeId", "data-v-2858aa0d"]]), mo = { class: "map-tooltip" }, fo = { class: "map-tooltip-text" }, po = { key: 0 }, yo = /* @__PURE__ */ Rt({
4870
4870
  __name: "MapTooltip",
4871
4871
  props: {
4872
4872
  data: {},
@@ -4883,14 +4883,14 @@ const oo = { class: "legend" }, so = {
4883
4883
  n[0] || (n[0] = X("div", { class: "map-tooltip-color" }, null, -1)),
4884
4884
  X("div", fo, [
4885
4885
  X("div", null, xe(e.data.label), 1),
4886
- e.showValue ? (K(), ae("span", po, xe(e.data.value), 1)) : Re("", !0)
4886
+ e.showValue ? (K(), ae("span", po, xe(e.data.value), 1)) : Ee("", !0)
4887
4887
  ])
4888
4888
  ]));
4889
4889
  }
4890
- }), ho = /* @__PURE__ */ It(yo, [["__scopeId", "data-v-6bea2641"]]), _o = { class: "kong-ui-public-analytics-geo-map" }, go = {
4890
+ }), ho = /* @__PURE__ */ Ut(yo, [["__scopeId", "data-v-6bea2641"]]), _o = { class: "kong-ui-public-analytics-geo-map" }, go = {
4891
4891
  key: 0,
4892
4892
  class: "no-location-overlay"
4893
- }, wo = { class: "no-location-overlay-title" }, vo = { class: "no-location-overlay-description" }, xo = ["id"], To = /* @__PURE__ */ Et({
4893
+ }, wo = { class: "no-location-overlay-title" }, vo = { class: "no-location-overlay-description" }, xo = ["id"], To = /* @__PURE__ */ Rt({
4894
4894
  __name: "AnalyticsGeoMap",
4895
4895
  props: {
4896
4896
  countryMetrics: {},
@@ -4909,7 +4909,7 @@ const oo = { class: "legend" }, so = {
4909
4909
  countryMetrics: ze(() => e.countryMetrics),
4910
4910
  metric: ze(() => e.metric),
4911
4911
  unit: ze(() => e.metricUnit)
4912
- }), { formatMetric: d } = Oe.useMetricFormat({ unit: ze(() => e.metricUnit) }), m = Ne(), y = sa(), c = Ne(), x = Ne(null), F = Ne({ left: "0px", top: "0px" }), g = Ne(!1), T = A(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), N = A(() => ({
4912
+ }), { formatMetric: d } = Oe.useMetricFormat({ unit: ze(() => e.metricUnit) }), m = Ne(), y = sa(), c = Ne(), x = Ne(null), F = Ne({ left: "0px", top: "0px" }), g = Ne(!1), T = C(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), N = C(() => ({
4913
4913
  "fill-color": [
4914
4914
  "match",
4915
4915
  [
@@ -4930,11 +4930,11 @@ const oo = { class: "legend" }, so = {
4930
4930
  // default color if no match
4931
4931
  ],
4932
4932
  "fill-opacity": 0.7
4933
- })), H = A(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), B = A(() => e.metric && i.t(`metrics.${e.metric}`) || ""), I = (h) => {
4933
+ })), H = C(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), B = C(() => e.metric && i.t(`metrics.${e.metric}`) || ""), U = (h) => {
4934
4934
  const v = h.flat(1);
4935
- return Array.isArray(v[0]) && Array.isArray(v[0][0]) ? I(v) : v;
4935
+ return Array.isArray(v[0]) && Array.isArray(v[0][0]) ? U(v) : v;
4936
4936
  }, ie = (h) => {
4937
- var M, E, ee, W, z, te, ne;
4937
+ var M, R, ee, W, z, te, ne;
4938
4938
  if (h === "RU") {
4939
4939
  (M = c.value) == null || M.fitBounds([
4940
4940
  [20, 40],
@@ -4942,7 +4942,7 @@ const oo = { class: "legend" }, so = {
4942
4942
  ]);
4943
4943
  return;
4944
4944
  } else if (h === "US") {
4945
- (E = c.value) == null || E.fitBounds([
4945
+ (R = c.value) == null || R.fitBounds([
4946
4946
  [-130, 20],
4947
4947
  [-60, 50]
4948
4948
  ]);
@@ -4967,13 +4967,13 @@ const oo = { class: "legend" }, so = {
4967
4967
  if (v) {
4968
4968
  const L = (te = v.geometry) == null ? void 0 : te.coordinates;
4969
4969
  if (!L) return;
4970
- const V = I(L), Y = V.map((Z) => Z[1]), $ = V.map((Z) => Z[0]), _ = Math.min(...Y), j = Math.max(...Y), me = Math.min(...$), b = Math.max(...$);
4970
+ const V = U(L), Y = V.map((Z) => Z[1]), $ = V.map((Z) => Z[0]), _ = Math.min(...Y), j = Math.max(...Y), me = Math.min(...$), b = Math.max(...$);
4971
4971
  (ne = c.value) == null || ne.fitBounds([
4972
4972
  [me, _],
4973
4973
  [b, j]
4974
4974
  ]);
4975
4975
  }
4976
- }, D = A(() => {
4976
+ }, D = C(() => {
4977
4977
  const h = {
4978
4978
  container: y,
4979
4979
  style: { version: 8, sources: {}, layers: [] },
@@ -5003,7 +5003,7 @@ const oo = { class: "legend" }, so = {
5003
5003
  return la(async () => {
5004
5004
  var h, v, M;
5005
5005
  try {
5006
- const E = await n, ee = await fetch(E), W = new Uint8Array(await ee.arrayBuffer()), z = Pi(new ao(W));
5006
+ const R = await n, ee = await fetch(R), W = new Uint8Array(await ee.arrayBuffer()), z = Pi(new ao(W));
5007
5007
  x.value = z, c.value = new da(D.value), c.value.on("load", () => {
5008
5008
  var te, ne, L, V, Y, $, _;
5009
5009
  (te = c.value) == null || te.addSource("countries", {
@@ -5028,7 +5028,7 @@ const oo = { class: "legend" }, so = {
5028
5028
  var b;
5029
5029
  const me = (b = j.features) == null ? void 0 : b[0];
5030
5030
  if (me) {
5031
- const { iso_a2: Z, iso_a2_eh: Ie, ISO_A2: rt, admin: at } = me.properties, it = rt ?? Z === "-99" ? Ie : Z, Se = e.countryMetrics[it];
5031
+ const { iso_a2: Z, iso_a2_eh: Ue, ISO_A2: rt, admin: at } = me.properties, it = rt ?? Z === "-99" ? Ue : Z, Se = e.countryMetrics[it];
5032
5032
  Se !== void 0 && (m.value = {
5033
5033
  label: at,
5034
5034
  color: o(Se),
@@ -5042,8 +5042,8 @@ const oo = { class: "legend" }, so = {
5042
5042
  g.value = !1;
5043
5043
  }), (_ = c.value) == null || _.on("move", de), e.fitToCountry && ie(e.fitToCountry);
5044
5044
  }), (h = c.value) == null || h.dragRotate.disable(), (v = c.value) == null || v.keyboard.disable(), (M = c.value) == null || M.touchZoomRotate.disableRotation();
5045
- } catch (E) {
5046
- console.error(E);
5045
+ } catch (R) {
5046
+ console.error(R);
5047
5047
  }
5048
5048
  }), _t(() => e.countryMetrics, () => {
5049
5049
  var h;
@@ -5061,15 +5061,15 @@ const oo = { class: "legend" }, so = {
5061
5061
  }
5062
5062
  }));
5063
5063
  }), _t(() => e.fitToCountry, (h) => {
5064
- var v, M, E;
5064
+ var v, M, R;
5065
5065
  c.value && h ? ie(h) : !D.value.center && !D.value.zoom ? (v = c.value) == null || v.fitBounds([
5066
5066
  [-180, -90],
5067
5067
  [180, 90]
5068
- ]) : (D.value.zoom && ((M = c.value) == null || M.setZoom(D.value.zoom)), D.value.center && ((E = c.value) == null || E.flyTo({ center: D.value.center })));
5068
+ ]) : (D.value.zoom && ((M = c.value) == null || M.setZoom(D.value.zoom)), D.value.center && ((R = c.value) == null || R.flyTo({ center: D.value.center })));
5069
5069
  }), _t(() => e.bounds, (h, v) => {
5070
5070
  if (!h) return;
5071
- const M = h == null ? void 0 : h.flat(), E = v == null ? void 0 : v.flat();
5072
- !(M && E && M.length === E.length && M.every((W, z) => Math.round(W * 100) / 100 === Math.round(E[z] * 100) / 100)) && c.value && c.value.fitBounds(h);
5071
+ const M = h == null ? void 0 : h.flat(), R = v == null ? void 0 : v.flat();
5072
+ !(M && R && M.length === R.length && M.every((W, z) => Math.round(W * 100) / 100 === Math.round(R[z] * 100) / 100)) && c.value && c.value.fitBounds(h);
5073
5073
  }), (h, v) => (K(), ae("div", _o, [
5074
5074
  T.value ? (K(), ae("div", go, [
5075
5075
  gt(h.$slots, "no-location-icon", {}, () => [
@@ -5088,7 +5088,7 @@ const oo = { class: "legend" }, so = {
5088
5088
  X("p", null, xe(ue(i).t("no_location_data_description")), 1)
5089
5089
  ], !0)
5090
5090
  ])
5091
- ])) : Re("", !0),
5091
+ ])) : Ee("", !0),
5092
5092
  X("div", {
5093
5093
  id: ue(y),
5094
5094
  class: "analytics-geo-map-container"
@@ -5099,17 +5099,17 @@ const oo = { class: "legend" }, so = {
5099
5099
  data: ue(l),
5100
5100
  metric: e.metric,
5101
5101
  title: B.value
5102
- }, null, 8, ["data", "metric", "title"])) : Re("", !0),
5102
+ }, null, 8, ["data", "metric", "title"])) : Ee("", !0),
5103
5103
  g.value && m.value ? (K(), on(ho, {
5104
5104
  key: 2,
5105
5105
  data: m.value,
5106
5106
  left: F.value.left,
5107
5107
  "show-value": e.showTooltipValue,
5108
5108
  top: F.value.top
5109
- }, null, 8, ["data", "left", "show-value", "top"])) : Re("", !0)
5109
+ }, null, 8, ["data", "left", "show-value", "top"])) : Ee("", !0)
5110
5110
  ]));
5111
5111
  }
5112
- }), No = /* @__PURE__ */ It(To, [["__scopeId", "data-v-e51ee0d4"]]);
5112
+ }), No = /* @__PURE__ */ Ut(To, [["__scopeId", "data-v-e51ee0d4"]]);
5113
5113
  export {
5114
5114
  No as AnalyticsGeoMap,
5115
5115
  io as debounce,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/analytics-geo-map",
3
- "version": "1.5.47",
3
+ "version": "1.5.48",
4
4
  "type": "module",
5
5
  "main": "./dist/vitals-geo-map.umd.js",
6
6
  "module": "./dist/vitals-geo-map.es.js",
@@ -55,7 +55,7 @@
55
55
  "dependencies": {
56
56
  "@kong/icons": "^1.60.0",
57
57
  "geobuf": "^3.0.2",
58
- "@kong-ui-public/analytics-utilities": "^12.19.4"
58
+ "@kong-ui-public/analytics-utilities": "^12.19.5"
59
59
  },
60
60
  "scripts": {
61
61
  "dev": "cross-env USE_SANDBOX=true vite",