@kong-ui-public/analytics-geo-map 1.4.25 → 1.4.26-pr.2701.86bca6224.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1620,8 +1620,8 @@ var Rn = { exports: {} };
1620
1620
  var ri = Rn.exports;
1621
1621
  const wt = /* @__PURE__ */ qa(ri);
1622
1622
  var yn;
1623
- const vt = new Intl.NumberFormat(((yn = document == null ? void 0 : document.documentElement) == null ? void 0 : yn.lang) || "en-US");
1624
- function ai({
1623
+ const ai = typeof document < "u" && ((yn = document.documentElement) == null ? void 0 : yn.lang) || "en-US", vt = new Intl.NumberFormat(ai);
1624
+ function ii({
1625
1625
  i18n: e
1626
1626
  }) {
1627
1627
  const t = (a, i) => {
@@ -1694,13 +1694,13 @@ function ai({
1694
1694
  return `${y} - ${w} ${c}`;
1695
1695
  } };
1696
1696
  }
1697
- const ke = "#e0e4ea", ii = "#828a9e", oi = "32px", _n = 5, xt = [
1697
+ const ke = "#e0e4ea", oi = "#828a9e", si = "32px", _n = 5, xt = [
1698
1698
  "#00819d",
1699
1699
  "#00abd2",
1700
1700
  "#00c8f4",
1701
1701
  "#67e3ff",
1702
1702
  "#b3f1ff"
1703
- ], si = (e, t) => {
1703
+ ], li = (e, t) => {
1704
1704
  const n = e.length;
1705
1705
  if (!n)
1706
1706
  return NaN;
@@ -1712,7 +1712,7 @@ const ke = "#e0e4ea", ii = "#828a9e", oi = "32px", _n = 5, xt = [
1712
1712
  const n = e.filter((m) => m > 0).map(Math.log).sort((m, f) => m - f), a = Math.min(...n), o = (Math.max(...n) - a) / t;
1713
1713
  return Array.from({ length: t }, (m, f) => a + f * o).map((m) => Math.exp(m)).reverse();
1714
1714
  };
1715
- function li({
1715
+ function ui({
1716
1716
  countryMetrics: e,
1717
1717
  metric: t,
1718
1718
  unit: n
@@ -1728,7 +1728,7 @@ function li({
1728
1728
  }), c = U(() => {
1729
1729
  const g = [];
1730
1730
  if (l.value.length > 10) {
1731
- const M = [...l.value].sort((D, Fe) => D - Fe), T = si(M, 0.75), B = l.value.filter((D) => D >= T), A = l.value.filter((D) => D < T), I = Ft(B, 3), ie = Ft(A, 2);
1731
+ const M = [...l.value].sort((D, Fe) => D - Fe), T = li(M, 0.75), B = l.value.filter((D) => D >= T), A = l.value.filter((D) => D < T), I = Ft(B, 3), ie = Ft(A, 2);
1732
1732
  return g.push(...I, ...ie), g;
1733
1733
  }
1734
1734
  return Ft(l.value, f.value);
@@ -1766,10 +1766,10 @@ function li({
1766
1766
  scale: c
1767
1767
  };
1768
1768
  }
1769
- function ui({
1769
+ function ci({
1770
1770
  unit: e
1771
1771
  }) {
1772
- const { i18n: t } = Ee.useI18n(), { formatUnit: n, formatRange: a } = ai({ i18n: t });
1772
+ const { i18n: t } = Ee.useI18n(), { formatUnit: n, formatRange: a } = ii({ i18n: t });
1773
1773
  return {
1774
1774
  formatMetric: (l, {
1775
1775
  showUnit: m = !0,
@@ -1789,9 +1789,9 @@ function ui({
1789
1789
  }
1790
1790
  const Ee = {
1791
1791
  useI18n: da,
1792
- useLegendScale: li,
1793
- useMetricFormat: ui
1794
- }, ci = "FeatureCollection", di = [
1792
+ useLegendScale: ui,
1793
+ useMetricFormat: ci
1794
+ }, di = "FeatureCollection", mi = [
1795
1795
  {
1796
1796
  type: "Feature",
1797
1797
  properties: {
@@ -4223,14 +4223,14 @@ const Ee = {
4223
4223
  ]
4224
4224
  }
4225
4225
  }
4226
- ], mi = {
4227
- type: ci,
4228
- features: di
4226
+ ], fi = {
4227
+ type: di,
4228
+ features: mi
4229
4229
  };
4230
- function fi(e) {
4230
+ function pi(e) {
4231
4231
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4232
4232
  }
4233
- var pi = yi, $e, ve, C, Ke, qe, hi = [
4233
+ var hi = _i, $e, ve, C, Ke, qe, yi = [
4234
4234
  "Point",
4235
4235
  "MultiPoint",
4236
4236
  "LineString",
@@ -4239,36 +4239,36 @@ var pi = yi, $e, ve, C, Ke, qe, hi = [
4239
4239
  "MultiPolygon",
4240
4240
  "GeometryCollection"
4241
4241
  ];
4242
- function yi(e) {
4242
+ function _i(e) {
4243
4243
  Ke = 2, qe = Math.pow(10, 6), C = null, $e = [], ve = [];
4244
- var t = e.readFields(_i, {});
4244
+ var t = e.readFields(gi, {});
4245
4245
  return $e = null, t;
4246
4246
  }
4247
- function _i(e, t, n) {
4248
- e === 1 ? $e.push(n.readString()) : e === 2 ? Ke = n.readVarint() : e === 3 ? qe = Math.pow(10, n.readVarint()) : e === 4 ? gi(n, t) : e === 5 ? On(n, t) : e === 6 && Et(n, t);
4247
+ function gi(e, t, n) {
4248
+ e === 1 ? $e.push(n.readString()) : e === 2 ? Ke = n.readVarint() : e === 3 ? qe = Math.pow(10, n.readVarint()) : e === 4 ? wi(n, t) : e === 5 ? On(n, t) : e === 6 && Et(n, t);
4249
4249
  }
4250
- function gi(e, t) {
4251
- return t.type = "FeatureCollection", t.features = [], e.readMessage(wi, t);
4250
+ function wi(e, t) {
4251
+ return t.type = "FeatureCollection", t.features = [], e.readMessage(vi, t);
4252
4252
  }
4253
4253
  function On(e, t) {
4254
4254
  t.type = "Feature";
4255
- var n = e.readMessage(vi, t);
4255
+ var n = e.readMessage(xi, t);
4256
4256
  return "geometry" in n || (n.geometry = null), n;
4257
4257
  }
4258
4258
  function Et(e, t) {
4259
- return t.type = "Point", e.readMessage(xi, t);
4260
- }
4261
- function wi(e, t, n) {
4262
- e === 1 ? t.features.push(On(n, {})) : e === 13 ? ve.push(Rt(n)) : e === 15 && We(n, t);
4259
+ return t.type = "Point", e.readMessage(Fi, t);
4263
4260
  }
4264
4261
  function vi(e, t, n) {
4265
- e === 1 ? t.geometry = Et(n, {}) : e === 11 ? t.id = n.readString() : e === 12 ? t.id = n.readSVarint() : e === 13 ? ve.push(Rt(n)) : e === 14 ? t.properties = We(n, {}) : e === 15 && We(n, t);
4262
+ e === 1 ? t.features.push(On(n, {})) : e === 13 ? ve.push(Rt(n)) : e === 15 && We(n, t);
4266
4263
  }
4267
4264
  function xi(e, t, n) {
4268
- e === 1 ? t.type = hi[n.readVarint()] : e === 2 ? C = n.readPackedVarint() : e === 3 ? Fi(t, n, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(Et(n, {}))) : e === 13 ? ve.push(Rt(n)) : e === 15 && We(n, t);
4265
+ e === 1 ? t.geometry = Et(n, {}) : e === 11 ? t.id = n.readString() : e === 12 ? t.id = n.readSVarint() : e === 13 ? ve.push(Rt(n)) : e === 14 ? t.properties = We(n, {}) : e === 15 && We(n, t);
4269
4266
  }
4270
4267
  function Fi(e, t, n) {
4271
- n === "Point" ? e.coordinates = Mi(t) : n === "MultiPoint" || n === "LineString" ? e.coordinates = gn(t) : n === "MultiLineString" ? e.coordinates = wn(t) : n === "Polygon" ? e.coordinates = wn(t, !0) : n === "MultiPolygon" && (e.coordinates = Ti(t));
4268
+ e === 1 ? t.type = yi[n.readVarint()] : e === 2 ? C = n.readPackedVarint() : e === 3 ? Mi(t, n, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(Et(n, {}))) : e === 13 ? ve.push(Rt(n)) : e === 15 && We(n, t);
4269
+ }
4270
+ function Mi(e, t, n) {
4271
+ n === "Point" ? e.coordinates = Ti(t) : n === "MultiPoint" || n === "LineString" ? e.coordinates = gn(t) : n === "MultiLineString" ? e.coordinates = wn(t) : n === "Polygon" ? e.coordinates = wn(t, !0) : n === "MultiPolygon" && (e.coordinates = Si(t));
4272
4272
  }
4273
4273
  function Rt(e) {
4274
4274
  for (var t = e.readVarint() + e.pos, n = null; e.pos < t; ) {
@@ -4281,7 +4281,7 @@ function We(e, t) {
4281
4281
  for (var n = e.readVarint() + e.pos; e.pos < n; ) t[$e[e.readVarint()]] = ve[e.readVarint()];
4282
4282
  return ve = [], t;
4283
4283
  }
4284
- function Mi(e) {
4284
+ function Ti(e) {
4285
4285
  for (var t = e.readVarint() + e.pos, n = []; e.pos < t; ) n.push(e.readSVarint() / qe);
4286
4286
  return n;
4287
4287
  }
@@ -4304,7 +4304,7 @@ function wn(e, t) {
4304
4304
  for (var a = [], i = 0; i < C.length; i++) a.push(Oe(e, n, C[i], t));
4305
4305
  return C = null, a;
4306
4306
  }
4307
- function Ti(e) {
4307
+ function Si(e) {
4308
4308
  var t = e.readVarint() + e.pos;
4309
4309
  if (!C) return [[Oe(e, t, null, !0)]];
4310
4310
  for (var n = [], a = 1, i = 0; i < C[0]; i++) {
@@ -4313,7 +4313,7 @@ function Ti(e) {
4313
4313
  }
4314
4314
  return C = null, n;
4315
4315
  }
4316
- var Si = pi, Ot = {};
4316
+ var Di = hi, Ot = {};
4317
4317
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
4318
4318
  Ot.read = function(e, t, n, a, i) {
4319
4319
  var o, l, m = i * 8 - a - 1, f = (1 << m) - 1, d = f >> 1, c = -7, y = n ? i - 1 : 0, w = n ? -1 : 1, g = e[t + y];
@@ -4338,7 +4338,7 @@ Ot.write = function(e, t, n, a, i, o) {
4338
4338
  ;
4339
4339
  e[n + g - M] |= T * 128;
4340
4340
  };
4341
- var Di = x, Ve = Ot;
4341
+ var Ni = x, Ve = Ot;
4342
4342
  function x(e) {
4343
4343
  this.buf = ArrayBuffer.isView && ArrayBuffer.isView(e) ? e : new Uint8Array(e || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
4344
4344
  }
@@ -4346,7 +4346,7 @@ x.Varint = 0;
4346
4346
  x.Fixed64 = 1;
4347
4347
  x.Bytes = 2;
4348
4348
  x.Fixed32 = 5;
4349
- var St = 65536 * 65536, vn = 1 / St, Ni = 12, bn = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
4349
+ var St = 65536 * 65536, vn = 1 / St, ki = 12, bn = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
4350
4350
  x.prototype = {
4351
4351
  destroy: function() {
4352
4352
  this.buf = null;
@@ -4389,7 +4389,7 @@ x.prototype = {
4389
4389
  },
4390
4390
  readVarint: function(e) {
4391
4391
  var t = this.buf, n, a;
4392
- return a = t[this.pos++], n = a & 127, a < 128 || (a = t[this.pos++], n |= (a & 127) << 7, a < 128) || (a = t[this.pos++], n |= (a & 127) << 14, a < 128) || (a = t[this.pos++], n |= (a & 127) << 21, a < 128) ? n : (a = t[this.pos], n |= (a & 15) << 28, ki(n, e, this));
4392
+ return a = t[this.pos++], n = a & 127, a < 128 || (a = t[this.pos++], n |= (a & 127) << 7, a < 128) || (a = t[this.pos++], n |= (a & 127) << 14, a < 128) || (a = t[this.pos++], n |= (a & 127) << 21, a < 128) ? n : (a = t[this.pos], n |= (a & 15) << 28, Ei(n, e, this));
4393
4393
  },
4394
4394
  readVarint64: function() {
4395
4395
  return this.readVarint(!0);
@@ -4403,7 +4403,7 @@ x.prototype = {
4403
4403
  },
4404
4404
  readString: function() {
4405
4405
  var e = this.readVarint() + this.pos, t = this.pos;
4406
- return this.pos = e, e - t >= Ni && bn ? Vi(this.buf, t, e) : Hi(this.buf, t, e);
4406
+ return this.pos = e, e - t >= ki && bn ? Yi(this.buf, t, e) : Vi(this.buf, t, e);
4407
4407
  },
4408
4408
  readBytes: function() {
4409
4409
  var e = this.readVarint() + this.pos, t = this.buf.subarray(this.pos, e);
@@ -4501,7 +4501,7 @@ x.prototype = {
4501
4501
  },
4502
4502
  writeVarint: function(e) {
4503
4503
  if (e = +e || 0, e > 268435455 || e < 0) {
4504
- Ei(e, this);
4504
+ Ri(e, this);
4505
4505
  return;
4506
4506
  }
4507
4507
  this.realloc(4), this.buf[this.pos++] = e & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = (e >>>= 7) & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = (e >>>= 7) & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = e >>> 7 & 127)));
@@ -4515,7 +4515,7 @@ x.prototype = {
4515
4515
  writeString: function(e) {
4516
4516
  e = String(e), this.realloc(e.length * 4), this.pos++;
4517
4517
  var t = this.pos;
4518
- this.pos = Yi(this.buf, e, this.pos);
4518
+ this.pos = zi(this.buf, e, this.pos);
4519
4519
  var n = this.pos - t;
4520
4520
  n >= 128 && xn(t, n, this), this.pos = t - 1, this.writeVarint(n), this.pos += n;
4521
4521
  },
@@ -4541,31 +4541,31 @@ x.prototype = {
4541
4541
  this.writeTag(e, x.Bytes), this.writeRawMessage(t, n);
4542
4542
  },
4543
4543
  writePackedVarint: function(e, t) {
4544
- t.length && this.writeMessage(e, bi, t);
4544
+ t.length && this.writeMessage(e, Gi, t);
4545
4545
  },
4546
4546
  writePackedSVarint: function(e, t) {
4547
- t.length && this.writeMessage(e, Gi, t);
4547
+ t.length && this.writeMessage(e, Li, t);
4548
4548
  },
4549
4549
  writePackedBoolean: function(e, t) {
4550
- t.length && this.writeMessage(e, Pi, t);
4550
+ t.length && this.writeMessage(e, Ui, t);
4551
4551
  },
4552
4552
  writePackedFloat: function(e, t) {
4553
- t.length && this.writeMessage(e, Li, t);
4553
+ t.length && this.writeMessage(e, Ii, t);
4554
4554
  },
4555
4555
  writePackedDouble: function(e, t) {
4556
- t.length && this.writeMessage(e, Ii, t);
4556
+ t.length && this.writeMessage(e, Pi, t);
4557
4557
  },
4558
4558
  writePackedFixed32: function(e, t) {
4559
- t.length && this.writeMessage(e, Ui, t);
4559
+ t.length && this.writeMessage(e, Ci, t);
4560
4560
  },
4561
4561
  writePackedSFixed32: function(e, t) {
4562
- t.length && this.writeMessage(e, Ci, t);
4562
+ t.length && this.writeMessage(e, Ai, t);
4563
4563
  },
4564
4564
  writePackedFixed64: function(e, t) {
4565
- t.length && this.writeMessage(e, Ai, t);
4565
+ t.length && this.writeMessage(e, Bi, t);
4566
4566
  },
4567
4567
  writePackedSFixed64: function(e, t) {
4568
- t.length && this.writeMessage(e, Bi, t);
4568
+ t.length && this.writeMessage(e, Hi, t);
4569
4569
  },
4570
4570
  writeBytesField: function(e, t) {
4571
4571
  this.writeTag(e, x.Bytes), this.writeBytes(t);
@@ -4601,7 +4601,7 @@ x.prototype = {
4601
4601
  this.writeVarintField(e, !!t);
4602
4602
  }
4603
4603
  };
4604
- function ki(e, t, n) {
4604
+ function Ei(e, t, n) {
4605
4605
  var a = n.buf, i, o;
4606
4606
  if (o = a[n.pos++], i = (o & 112) >> 4, o < 128 || (o = a[n.pos++], i |= (o & 127) << 3, o < 128) || (o = a[n.pos++], i |= (o & 127) << 10, o < 128) || (o = a[n.pos++], i |= (o & 127) << 17, o < 128) || (o = a[n.pos++], i |= (o & 127) << 24, o < 128) || (o = a[n.pos++], i |= (o & 1) << 31, o < 128)) return ye(e, i, t);
4607
4607
  throw new Error("Expected varint not more than 10 bytes");
@@ -4612,16 +4612,16 @@ function J(e) {
4612
4612
  function ye(e, t, n) {
4613
4613
  return n ? t * 4294967296 + (e >>> 0) : (t >>> 0) * 4294967296 + (e >>> 0);
4614
4614
  }
4615
- function Ei(e, t) {
4615
+ function Ri(e, t) {
4616
4616
  var n, a;
4617
4617
  if (e >= 0 ? (n = e % 4294967296 | 0, a = e / 4294967296 | 0) : (n = ~(-e % 4294967296), a = ~(-e / 4294967296), n ^ 4294967295 ? n = n + 1 | 0 : (n = 0, a = a + 1 | 0)), e >= 18446744073709552e3 || e < -18446744073709552e3)
4618
4618
  throw new Error("Given varint doesn't fit into 10 bytes");
4619
- t.realloc(10), Ri(n, a, t), Oi(a, t);
4619
+ t.realloc(10), Oi(n, a, t), bi(a, t);
4620
4620
  }
4621
- function Ri(e, t, n) {
4621
+ function Oi(e, t, n) {
4622
4622
  n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos] = e & 127;
4623
4623
  }
4624
- function Oi(e, t) {
4624
+ function bi(e, t) {
4625
4625
  var n = (e & 7) << 4;
4626
4626
  t.buf[t.pos++] |= n | ((e >>>= 3) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127)))));
4627
4627
  }
@@ -4630,31 +4630,31 @@ function xn(e, t, n) {
4630
4630
  n.realloc(a);
4631
4631
  for (var i = n.pos - 1; i >= e; i--) n.buf[i + a] = n.buf[i];
4632
4632
  }
4633
- function bi(e, t) {
4633
+ function Gi(e, t) {
4634
4634
  for (var n = 0; n < e.length; n++) t.writeVarint(e[n]);
4635
4635
  }
4636
- function Gi(e, t) {
4636
+ function Li(e, t) {
4637
4637
  for (var n = 0; n < e.length; n++) t.writeSVarint(e[n]);
4638
4638
  }
4639
- function Li(e, t) {
4639
+ function Ii(e, t) {
4640
4640
  for (var n = 0; n < e.length; n++) t.writeFloat(e[n]);
4641
4641
  }
4642
- function Ii(e, t) {
4642
+ function Pi(e, t) {
4643
4643
  for (var n = 0; n < e.length; n++) t.writeDouble(e[n]);
4644
4644
  }
4645
- function Pi(e, t) {
4645
+ function Ui(e, t) {
4646
4646
  for (var n = 0; n < e.length; n++) t.writeBoolean(e[n]);
4647
4647
  }
4648
- function Ui(e, t) {
4648
+ function Ci(e, t) {
4649
4649
  for (var n = 0; n < e.length; n++) t.writeFixed32(e[n]);
4650
4650
  }
4651
- function Ci(e, t) {
4651
+ function Ai(e, t) {
4652
4652
  for (var n = 0; n < e.length; n++) t.writeSFixed32(e[n]);
4653
4653
  }
4654
- function Ai(e, t) {
4654
+ function Bi(e, t) {
4655
4655
  for (var n = 0; n < e.length; n++) t.writeFixed64(e[n]);
4656
4656
  }
4657
- function Bi(e, t) {
4657
+ function Hi(e, t) {
4658
4658
  for (var n = 0; n < e.length; n++) t.writeSFixed64(e[n]);
4659
4659
  }
4660
4660
  function Ye(e, t) {
@@ -4666,7 +4666,7 @@ function _e(e, t, n) {
4666
4666
  function Fn(e, t) {
4667
4667
  return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + (e[t + 3] << 24);
4668
4668
  }
4669
- function Hi(e, t, n) {
4669
+ function Vi(e, t, n) {
4670
4670
  for (var a = "", i = t; i < n; ) {
4671
4671
  var o = e[i], l = null, m = o > 239 ? 4 : o > 223 ? 3 : o > 191 ? 2 : 1;
4672
4672
  if (i + m > n) break;
@@ -4675,10 +4675,10 @@ function Hi(e, t, n) {
4675
4675
  }
4676
4676
  return a;
4677
4677
  }
4678
- function Vi(e, t, n) {
4678
+ function Yi(e, t, n) {
4679
4679
  return bn.decode(e.subarray(t, n));
4680
4680
  }
4681
- function Yi(e, t, n) {
4681
+ function zi(e, t, n) {
4682
4682
  for (var a = 0, i, o; a < t.length; a++) {
4683
4683
  if (i = t.charCodeAt(a), i > 55295 && i < 57344)
4684
4684
  if (o)
@@ -4696,7 +4696,7 @@ function Yi(e, t, n) {
4696
4696
  }
4697
4697
  return n;
4698
4698
  }
4699
- const zi = /* @__PURE__ */ fi(Di), fo = (e) => {
4699
+ const ji = /* @__PURE__ */ pi(Ni), po = (e) => {
4700
4700
  var a, i;
4701
4701
  if (!e || !e.data)
4702
4702
  return {};
@@ -4708,16 +4708,16 @@ const zi = /* @__PURE__ */ fi(Di), fo = (e) => {
4708
4708
  }
4709
4709
  return t;
4710
4710
  };
4711
- function ji(e, t = 0) {
4711
+ function $i(e, t = 0) {
4712
4712
  let n = null;
4713
4713
  return (...a) => {
4714
4714
  n && clearTimeout(n), n = setTimeout(() => e(...a), t);
4715
4715
  };
4716
4716
  }
4717
- const $i = { class: "legend" }, Ki = {
4717
+ const Ki = { class: "legend" }, Wi = {
4718
4718
  key: 0,
4719
4719
  class: "legend-title"
4720
- }, Wi = { class: "legend-text" }, Zi = /* @__PURE__ */ Dt({
4720
+ }, Zi = { class: "legend-text" }, qi = /* @__PURE__ */ Dt({
4721
4721
  __name: "MapLegend",
4722
4722
  props: {
4723
4723
  metric: {},
@@ -4725,8 +4725,8 @@ const $i = { class: "legend" }, Ki = {
4725
4725
  data: {}
4726
4726
  },
4727
4727
  setup(e) {
4728
- return (t, n) => ($(), ae("div", $i, [
4729
- e.metric ? ($(), ae("div", Ki, we(e.title), 1)) : Ne("", !0),
4728
+ return (t, n) => ($(), ae("div", Ki, [
4729
+ e.metric ? ($(), ae("div", Wi, we(e.title), 1)) : Ne("", !0),
4730
4730
  ($(!0), ae(Kr, null, Wr(e.data, (a, i) => ($(), ae("div", {
4731
4731
  key: i,
4732
4732
  class: "legend-item"
@@ -4735,7 +4735,7 @@ const $i = { class: "legend" }, Ki = {
4735
4735
  class: "legend-color",
4736
4736
  style: Zr({ backgroundColor: a.color })
4737
4737
  }, null, 4),
4738
- X("span", Wi, we(a.range), 1)
4738
+ X("span", Zi, we(a.range), 1)
4739
4739
  ]))), 128))
4740
4740
  ]));
4741
4741
  }
@@ -4744,7 +4744,7 @@ const $i = { class: "legend" }, Ki = {
4744
4744
  for (const [a, i] of t)
4745
4745
  n[a] = i;
4746
4746
  return n;
4747
- }, qi = /* @__PURE__ */ bt(Zi, [["__scopeId", "data-v-5f034736"]]), Ji = { class: "map-tooltip" }, Xi = { class: "map-tooltip-text" }, Qi = { key: 0 }, eo = /* @__PURE__ */ Dt({
4747
+ }, Ji = /* @__PURE__ */ bt(qi, [["__scopeId", "data-v-5f034736"]]), Xi = { class: "map-tooltip" }, Qi = { class: "map-tooltip-text" }, eo = { key: 0 }, to = /* @__PURE__ */ Dt({
4748
4748
  __name: "MapTooltip",
4749
4749
  props: {
4750
4750
  data: {},
@@ -4757,18 +4757,18 @@ const $i = { class: "legend" }, Ki = {
4757
4757
  v75a0a274: t.left,
4758
4758
  v144f4294: t.top,
4759
4759
  v6e49e79e: t.data.color
4760
- })), (t, n) => ($(), ae("div", Ji, [
4760
+ })), (t, n) => ($(), ae("div", Xi, [
4761
4761
  n[0] || (n[0] = X("div", { class: "map-tooltip-color" }, null, -1)),
4762
- X("div", Xi, [
4762
+ X("div", Qi, [
4763
4763
  X("div", null, we(e.data.label), 1),
4764
- e.showValue ? ($(), ae("span", Qi, we(e.data.value), 1)) : Ne("", !0)
4764
+ e.showValue ? ($(), ae("span", eo, we(e.data.value), 1)) : Ne("", !0)
4765
4765
  ])
4766
4766
  ]));
4767
4767
  }
4768
- }), to = /* @__PURE__ */ bt(eo, [["__scopeId", "data-v-6bea2641"]]), no = { class: "kong-ui-public-analytics-geo-map" }, ro = {
4768
+ }), no = /* @__PURE__ */ bt(to, [["__scopeId", "data-v-6bea2641"]]), ro = { class: "kong-ui-public-analytics-geo-map" }, ao = {
4769
4769
  key: 0,
4770
4770
  class: "no-location-overlay"
4771
- }, ao = { class: "no-location-overlay-title" }, io = { class: "no-location-overlay-description" }, oo = ["id"], so = /* @__PURE__ */ Dt({
4771
+ }, io = { class: "no-location-overlay-title" }, oo = { class: "no-location-overlay-description" }, so = ["id"], lo = /* @__PURE__ */ Dt({
4772
4772
  __name: "AnalyticsGeoMap",
4773
4773
  props: {
4774
4774
  countryMetrics: {},
@@ -4870,7 +4870,7 @@ const $i = { class: "legend" }, Ki = {
4870
4870
  }
4871
4871
  };
4872
4872
  return e.bounds && (_.bounds = e.bounds), _;
4873
- }), ce = ji(() => {
4873
+ }), ce = $i(() => {
4874
4874
  if (!c.value) return;
4875
4875
  const _ = c.value.getBounds(), F = _.getSouthWest(), S = _.getNorthEast();
4876
4876
  a("boundsChange", [
@@ -4881,7 +4881,7 @@ const $i = { class: "legend" }, Ki = {
4881
4881
  return Xr(async () => {
4882
4882
  var _, F, S;
4883
4883
  try {
4884
- const k = await n, ee = await fetch(k), K = new Uint8Array(await ee.arrayBuffer()), H = Si(new zi(K));
4884
+ const k = await n, ee = await fetch(k), K = new Uint8Array(await ee.arrayBuffer()), H = Di(new ji(K));
4885
4885
  y.value = H, c.value = new ta(D.value), c.value.on("load", () => {
4886
4886
  var te, ne, L, V, Y, z, v;
4887
4887
  (te = c.value) == null || te.addSource("countries", {
@@ -4894,7 +4894,7 @@ const $i = { class: "legend" }, Ki = {
4894
4894
  paint: T.value
4895
4895
  }), (L = c.value) == null || L.addSource("lakes", {
4896
4896
  type: "geojson",
4897
- data: mi
4897
+ data: fi
4898
4898
  }), (V = c.value) == null || V.addLayer({
4899
4899
  id: "lakes-layer",
4900
4900
  type: "fill",
@@ -4948,20 +4948,20 @@ const $i = { class: "legend" }, Ki = {
4948
4948
  if (!_) return;
4949
4949
  const S = _ == null ? void 0 : _.flat(), k = F == null ? void 0 : F.flat();
4950
4950
  !(S && k && S.length === k.length && S.every((K, H) => Math.round(K * 100) / 100 === Math.round(k[H] * 100) / 100)) && c.value && c.value.fitBounds(_);
4951
- }), (_, F) => ($(), ae("div", no, [
4952
- M.value ? ($(), ae("div", ro, [
4951
+ }), (_, F) => ($(), ae("div", ro, [
4952
+ M.value ? ($(), ae("div", ao, [
4953
4953
  mt(_.$slots, "no-location-icon", {}, () => [
4954
4954
  Qr(ue(aa), {
4955
- color: ue(ii),
4956
- size: ue(oi)
4955
+ color: ue(oi),
4956
+ size: ue(si)
4957
4957
  }, null, 8, ["color", "size"])
4958
4958
  ], !0),
4959
- X("div", ao, [
4959
+ X("div", io, [
4960
4960
  mt(_.$slots, "no-location-title", {}, () => [
4961
4961
  ea(we(ue(i).t("no_location_data")), 1)
4962
4962
  ], !0)
4963
4963
  ]),
4964
- X("div", io, [
4964
+ X("div", oo, [
4965
4965
  mt(_.$slots, "no-location-description", {}, () => [
4966
4966
  X("p", null, we(ue(i).t("no_location_data_description")), 1)
4967
4967
  ], !0)
@@ -4970,15 +4970,15 @@ const $i = { class: "legend" }, Ki = {
4970
4970
  X("div", {
4971
4971
  id: ue(d),
4972
4972
  class: "analytics-geo-map-container"
4973
- }, null, 8, oo),
4974
- B.value ? ($(), nn(qi, {
4973
+ }, null, 8, so),
4974
+ B.value ? ($(), nn(Ji, {
4975
4975
  key: 1,
4976
4976
  class: "legend-container",
4977
4977
  data: ue(l),
4978
4978
  metric: e.metric,
4979
4979
  title: A.value
4980
4980
  }, null, 8, ["data", "metric", "title"])) : Ne("", !0),
4981
- g.value && f.value ? ($(), nn(to, {
4981
+ g.value && f.value ? ($(), nn(no, {
4982
4982
  key: 2,
4983
4983
  data: f.value,
4984
4984
  left: w.value.left,
@@ -4987,9 +4987,9 @@ const $i = { class: "legend" }, Ki = {
4987
4987
  }, null, 8, ["data", "left", "show-value", "top"])) : Ne("", !0)
4988
4988
  ]));
4989
4989
  }
4990
- }), po = /* @__PURE__ */ bt(so, [["__scopeId", "data-v-4e998083"]]);
4990
+ }), ho = /* @__PURE__ */ bt(lo, [["__scopeId", "data-v-4e998083"]]);
4991
4991
  export {
4992
- po as AnalyticsGeoMap,
4993
- ji as debounce,
4994
- fo as exploreResultToCountryMetrics
4992
+ ho as AnalyticsGeoMap,
4993
+ $i as debounce,
4994
+ po as exploreResultToCountryMetrics
4995
4995
  };