@kong-ui-public/analytics-geo-map 1.9.46-pr.3891.b0ff71fbe.0 → 1.9.46
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.
- package/dist/vitals-geo-map.es.js +143 -143
- package/package.json +2 -2
|
@@ -627,14 +627,14 @@ function _e(t, n) {
|
|
|
627
627
|
const a = de(t, n?.in);
|
|
628
628
|
return a.setDate(1), a.setHours(0, 0, 0, 0), a;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Ra(t, n) {
|
|
631
631
|
const a = de(t, n?.in), o = a.getFullYear(), u = a.getMonth(), d = Se(a, 0);
|
|
632
632
|
return d.setFullYear(o, u + 1, 0), d.setHours(0, 0, 0, 0), d.getDate();
|
|
633
633
|
}
|
|
634
634
|
function Xt(t) {
|
|
635
635
|
return Math.trunc(t * ka);
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function Ea(t) {
|
|
638
638
|
const n = t / Da;
|
|
639
639
|
return Math.trunc(n);
|
|
640
640
|
}
|
|
@@ -645,7 +645,7 @@ function kn(t, n, a) {
|
|
|
645
645
|
return Na(t, -1, a);
|
|
646
646
|
}
|
|
647
647
|
function Pa(t, n) {
|
|
648
|
-
const a =
|
|
648
|
+
const a = Ua(n);
|
|
649
649
|
return "formatToParts" in a ? La(a, t) : Oa(a, t);
|
|
650
650
|
}
|
|
651
651
|
const Ca = {
|
|
@@ -690,9 +690,9 @@ const tt = {}, Jt = new Intl.DateTimeFormat("en-US", {
|
|
|
690
690
|
hour: "2-digit",
|
|
691
691
|
minute: "2-digit",
|
|
692
692
|
second: "2-digit"
|
|
693
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
694
|
-
function
|
|
695
|
-
return tt[t] || (tt[t] =
|
|
693
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Ga = Jt === "06/25/2014, 00:00:00" || Jt === "06/25/2014 00:00:00";
|
|
694
|
+
function Ua(t) {
|
|
695
|
+
return tt[t] || (tt[t] = Ga ? new Intl.DateTimeFormat("en-US", {
|
|
696
696
|
hourCycle: "h23",
|
|
697
697
|
timeZone: t,
|
|
698
698
|
year: "numeric",
|
|
@@ -716,7 +716,7 @@ function xt(t, n, a, o, u, d, y) {
|
|
|
716
716
|
const h = /* @__PURE__ */ new Date(0);
|
|
717
717
|
return h.setUTCFullYear(t, n, a), h.setUTCHours(o, u, d, y), h;
|
|
718
718
|
}
|
|
719
|
-
const en = 36e5,
|
|
719
|
+
const en = 36e5, Ia = 6e4, nt = {
|
|
720
720
|
timezoneZ: /^(Z)$/,
|
|
721
721
|
timezoneHH: /^([+-]\d{2})$/,
|
|
722
722
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -733,7 +733,7 @@ function ze(t, n, a) {
|
|
|
733
733
|
if (o = nt.timezoneHHMM.exec(t), o) {
|
|
734
734
|
u = parseInt(o[2], 10);
|
|
735
735
|
const y = parseInt(o[3], 10);
|
|
736
|
-
return tn(u, y) ? (d = Math.abs(u) * en + y *
|
|
736
|
+
return tn(u, y) ? (d = Math.abs(u) * en + y * Ia, o[1] === "+" ? -d : d) : NaN;
|
|
737
737
|
}
|
|
738
738
|
if (Ba(t)) {
|
|
739
739
|
n = new Date(n || Date.now());
|
|
@@ -923,7 +923,7 @@ function on(t, n, a) {
|
|
|
923
923
|
return o.setUTCDate(o.getUTCDate() + d), o;
|
|
924
924
|
}
|
|
925
925
|
const ja = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ka = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
926
|
-
function
|
|
926
|
+
function Rn(t) {
|
|
927
927
|
return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
|
|
928
928
|
}
|
|
929
929
|
function sn(t, n, a) {
|
|
@@ -932,7 +932,7 @@ function sn(t, n, a) {
|
|
|
932
932
|
if (a != null) {
|
|
933
933
|
if (a < 1)
|
|
934
934
|
return !1;
|
|
935
|
-
const o =
|
|
935
|
+
const o = Rn(t);
|
|
936
936
|
if (o && a > Ka[n] || !o && a > ja[n])
|
|
937
937
|
return !1;
|
|
938
938
|
}
|
|
@@ -941,7 +941,7 @@ function sn(t, n, a) {
|
|
|
941
941
|
function qa(t, n) {
|
|
942
942
|
if (n < 1)
|
|
943
943
|
return !1;
|
|
944
|
-
const a =
|
|
944
|
+
const a = Rn(t);
|
|
945
945
|
return !(a && n > 366 || !a && n > 365);
|
|
946
946
|
}
|
|
947
947
|
function ln(t, n) {
|
|
@@ -965,14 +965,14 @@ function Za(t, n, a) {
|
|
|
965
965
|
function Qa(t, n) {
|
|
966
966
|
return -ze(t, n);
|
|
967
967
|
}
|
|
968
|
-
var
|
|
968
|
+
var Ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ae = { exports: {} };
|
|
969
969
|
Ae.exports;
|
|
970
970
|
var un;
|
|
971
971
|
function Xa() {
|
|
972
972
|
return un || (un = 1, (function(t, n) {
|
|
973
|
-
var a = 200, o = "__lodash_hash_undefined__", u = 9007199254740991, d = "[object Arguments]", y = "[object Array]", h = "[object Boolean]", T = "[object Date]", N = "[object Error]", S = "[object Function]",
|
|
974
|
-
|
|
975
|
-
var W = typeof
|
|
973
|
+
var a = 200, o = "__lodash_hash_undefined__", u = 9007199254740991, d = "[object Arguments]", y = "[object Array]", h = "[object Boolean]", T = "[object Date]", N = "[object Error]", S = "[object Function]", E = "[object GeneratorFunction]", F = "[object Map]", G = "[object Number]", L = "[object Object]", P = "[object Promise]", C = "[object RegExp]", A = "[object Set]", U = "[object String]", I = "[object Symbol]", z = "[object WeakMap]", b = "[object ArrayBuffer]", f = "[object DataView]", _ = "[object Float32Array]", s = "[object Float64Array]", p = "[object Int8Array]", g = "[object Int16Array]", D = "[object Int32Array]", e = "[object Uint8Array]", i = "[object Uint8ClampedArray]", l = "[object Uint16Array]", w = "[object Uint32Array]", x = /[\\^$.*+?()[\]{}|]/g, k = /\w*$/, O = /^\[object .+?Constructor\]$/, K = /^(?:0|[1-9]\d*)$/, R = {};
|
|
974
|
+
R[d] = R[y] = R[b] = R[f] = R[h] = R[T] = R[_] = R[s] = R[p] = R[g] = R[D] = R[F] = R[G] = R[L] = R[C] = R[A] = R[U] = R[I] = R[e] = R[i] = R[l] = R[w] = !0, R[N] = R[S] = R[z] = !1;
|
|
975
|
+
var W = typeof Ge == "object" && Ge && Ge.Object === Object && Ge, Q = typeof self == "object" && self && self.Object === Object && self, q = W || Q || Function("return this")(), Ft = n && !n.nodeType && n, Tt = Ft && !0 && t && !t.nodeType && t, En = Tt && Tt.exports === Ft;
|
|
976
976
|
function Pn(r, c) {
|
|
977
977
|
return r.set(c[0], c[1]), r;
|
|
978
978
|
}
|
|
@@ -994,12 +994,12 @@ function Xa() {
|
|
|
994
994
|
m = c(m, r[B], B, r);
|
|
995
995
|
return m;
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function Gn(r, c) {
|
|
998
998
|
for (var m = -1, M = Array(r); ++m < r; )
|
|
999
999
|
M[m] = c(m);
|
|
1000
1000
|
return M;
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1002
|
+
function Un(r, c) {
|
|
1003
1003
|
return r?.[c];
|
|
1004
1004
|
}
|
|
1005
1005
|
function Dt(r) {
|
|
@@ -1028,12 +1028,12 @@ function Xa() {
|
|
|
1028
1028
|
m[++c] = M;
|
|
1029
1029
|
}), m;
|
|
1030
1030
|
}
|
|
1031
|
-
var
|
|
1031
|
+
var In = Array.prototype, An = Function.prototype, De = Object.prototype, Ye = q["__core-js_shared__"], Rt = (function() {
|
|
1032
1032
|
var r = /[^.]+$/.exec(Ye && Ye.keys && Ye.keys.IE_PROTO || "");
|
|
1033
1033
|
return r ? "Symbol(src)_1." + r : "";
|
|
1034
|
-
})(),
|
|
1035
|
-
"^" +
|
|
1036
|
-
), Pt =
|
|
1034
|
+
})(), Et = An.toString, ne = De.hasOwnProperty, ke = De.toString, Vn = RegExp(
|
|
1035
|
+
"^" + Et.call(ne).replace(x, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1036
|
+
), Pt = En ? q.Buffer : void 0, Ct = q.Symbol, Lt = q.Uint8Array, Bn = He(Object.getPrototypeOf, Object), bn = Object.create, zn = De.propertyIsEnumerable, Hn = In.splice, Ot = Object.getOwnPropertySymbols, Yn = Pt ? Pt.isBuffer : void 0, $n = He(Object.keys, Object), $e = pe(q, "DataView"), we = pe(q, "Map"), je = pe(q, "Promise"), Ke = pe(q, "Set"), qe = pe(q, "WeakMap"), ve = pe(Object, "create"), jn = se($e), Kn = se(we), qn = se(je), Wn = se(Ke), Zn = se(qe), Gt = Ct ? Ct.prototype : void 0, Ut = Gt ? Gt.valueOf : void 0;
|
|
1037
1037
|
function ie(r) {
|
|
1038
1038
|
var c = -1, m = r ? r.length : 0;
|
|
1039
1039
|
for (this.clear(); ++c < m; ) {
|
|
@@ -1108,16 +1108,16 @@ function Xa() {
|
|
|
1108
1108
|
};
|
|
1109
1109
|
}
|
|
1110
1110
|
function lr(r) {
|
|
1111
|
-
return
|
|
1111
|
+
return Re(this, r).delete(r);
|
|
1112
1112
|
}
|
|
1113
1113
|
function ur(r) {
|
|
1114
|
-
return
|
|
1114
|
+
return Re(this, r).get(r);
|
|
1115
1115
|
}
|
|
1116
1116
|
function cr(r) {
|
|
1117
|
-
return
|
|
1117
|
+
return Re(this, r).has(r);
|
|
1118
1118
|
}
|
|
1119
1119
|
function dr(r, c) {
|
|
1120
|
-
return
|
|
1120
|
+
return Re(this, r).set(r, c), this;
|
|
1121
1121
|
}
|
|
1122
1122
|
me.prototype.clear = sr, me.prototype.delete = lr, me.prototype.get = ur, me.prototype.has = cr, me.prototype.set = dr;
|
|
1123
1123
|
function fe(r) {
|
|
@@ -1147,12 +1147,12 @@ function Xa() {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
fe.prototype.clear = mr, fe.prototype.delete = fr, fe.prototype.get = pr, fe.prototype.has = yr, fe.prototype.set = hr;
|
|
1149
1149
|
function _r(r, c) {
|
|
1150
|
-
var m = Qe(r) || br(r) ?
|
|
1150
|
+
var m = Qe(r) || br(r) ? Gn(r.length, String) : [], M = m.length, B = !!M;
|
|
1151
1151
|
for (var Y in r)
|
|
1152
|
-
ne.call(r, Y) && !(B && (Y == "length" ||
|
|
1152
|
+
ne.call(r, Y) && !(B && (Y == "length" || Ir(Y, M))) && m.push(Y);
|
|
1153
1153
|
return m;
|
|
1154
1154
|
}
|
|
1155
|
-
function
|
|
1155
|
+
function It(r, c, m) {
|
|
1156
1156
|
var M = r[c];
|
|
1157
1157
|
(!(ne.call(r, c) && bt(M, m)) || m === void 0 && !(c in r)) && (r[c] = m);
|
|
1158
1158
|
}
|
|
@@ -1169,25 +1169,25 @@ function Xa() {
|
|
|
1169
1169
|
var $;
|
|
1170
1170
|
if (M && ($ = Y ? M(r, B, Y, ee) : M(r)), $ !== void 0)
|
|
1171
1171
|
return $;
|
|
1172
|
-
if (!
|
|
1172
|
+
if (!Ee(r))
|
|
1173
1173
|
return r;
|
|
1174
1174
|
var Yt = Qe(r);
|
|
1175
1175
|
if (Yt) {
|
|
1176
1176
|
if ($ = Or(r), !c)
|
|
1177
1177
|
return Pr(r, $);
|
|
1178
1178
|
} else {
|
|
1179
|
-
var ye = oe(r), $t = ye == S || ye ==
|
|
1179
|
+
var ye = oe(r), $t = ye == S || ye == E;
|
|
1180
1180
|
if (Hr(r))
|
|
1181
1181
|
return Tr(r, c);
|
|
1182
1182
|
if (ye == L || ye == d || $t && !Y) {
|
|
1183
1183
|
if (Dt(r))
|
|
1184
1184
|
return Y ? r : {};
|
|
1185
|
-
if ($ =
|
|
1185
|
+
if ($ = Gr($t ? {} : r), !c)
|
|
1186
1186
|
return Cr(r, gr($, r));
|
|
1187
1187
|
} else {
|
|
1188
|
-
if (!
|
|
1188
|
+
if (!R[ye])
|
|
1189
1189
|
return Y ? r : {};
|
|
1190
|
-
$ =
|
|
1190
|
+
$ = Ur(r, ye, We, c);
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
1193
|
ee || (ee = new fe());
|
|
@@ -1197,11 +1197,11 @@ function Xa() {
|
|
|
1197
1197
|
if (ee.set(r, $), !Yt)
|
|
1198
1198
|
var Kt = m ? Lr(r) : Xe(r);
|
|
1199
1199
|
return Ln(Kt || r, function(Je, Pe) {
|
|
1200
|
-
Kt && (Pe = Je, Je = r[Pe]),
|
|
1200
|
+
Kt && (Pe = Je, Je = r[Pe]), It($, Pe, We(Je, c, m, M, Pe, r, ee));
|
|
1201
1201
|
}), $;
|
|
1202
1202
|
}
|
|
1203
1203
|
function wr(r) {
|
|
1204
|
-
return
|
|
1204
|
+
return Ee(r) ? bn(r) : {};
|
|
1205
1205
|
}
|
|
1206
1206
|
function vr(r, c, m) {
|
|
1207
1207
|
var M = c(r);
|
|
@@ -1211,7 +1211,7 @@ function Xa() {
|
|
|
1211
1211
|
return ke.call(r);
|
|
1212
1212
|
}
|
|
1213
1213
|
function Mr(r) {
|
|
1214
|
-
if (!
|
|
1214
|
+
if (!Ee(r) || Vr(r))
|
|
1215
1215
|
return !1;
|
|
1216
1216
|
var c = Ht(r) || Dt(r) ? Vn : O;
|
|
1217
1217
|
return c.test(se(r));
|
|
@@ -1250,10 +1250,10 @@ function Xa() {
|
|
|
1250
1250
|
var M = c ? m(Nt(r), !0) : Nt(r);
|
|
1251
1251
|
return St(M, Cn, new r.constructor());
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1254
|
-
return
|
|
1253
|
+
function Rr(r) {
|
|
1254
|
+
return Ut ? Object(Ut.call(r)) : {};
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1256
|
+
function Er(r, c) {
|
|
1257
1257
|
var m = c ? Ze(r.buffer) : r.buffer;
|
|
1258
1258
|
return new r.constructor(m, r.byteOffset, r.length);
|
|
1259
1259
|
}
|
|
@@ -1267,7 +1267,7 @@ function Xa() {
|
|
|
1267
1267
|
m || (m = {});
|
|
1268
1268
|
for (var B = -1, Y = c.length; ++B < Y; ) {
|
|
1269
1269
|
var ee = c[B], $ = void 0;
|
|
1270
|
-
|
|
1270
|
+
It(m, ee, $ === void 0 ? r[ee] : $);
|
|
1271
1271
|
}
|
|
1272
1272
|
return m;
|
|
1273
1273
|
}
|
|
@@ -1277,12 +1277,12 @@ function Xa() {
|
|
|
1277
1277
|
function Lr(r) {
|
|
1278
1278
|
return vr(r, Xe, Vt);
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function Re(r, c) {
|
|
1281
1281
|
var m = r.__data__;
|
|
1282
1282
|
return Ar(c) ? m[typeof c == "string" ? "string" : "hash"] : m.map;
|
|
1283
1283
|
}
|
|
1284
1284
|
function pe(r, c) {
|
|
1285
|
-
var m =
|
|
1285
|
+
var m = Un(r, c);
|
|
1286
1286
|
return Mr(m) ? m : void 0;
|
|
1287
1287
|
}
|
|
1288
1288
|
var Vt = Ot ? He(Ot, Object) : jr, oe = xr;
|
|
@@ -1307,10 +1307,10 @@ function Xa() {
|
|
|
1307
1307
|
var c = r.length, m = r.constructor(c);
|
|
1308
1308
|
return c && typeof r[0] == "string" && ne.call(r, "index") && (m.index = r.index, m.input = r.input), m;
|
|
1309
1309
|
}
|
|
1310
|
-
function
|
|
1310
|
+
function Gr(r) {
|
|
1311
1311
|
return typeof r.constructor == "function" && !Bt(r) ? wr(Bn(r)) : {};
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function Ur(r, c, m, M) {
|
|
1314
1314
|
var B = r.constructor;
|
|
1315
1315
|
switch (c) {
|
|
1316
1316
|
case b:
|
|
@@ -1329,21 +1329,21 @@ function Xa() {
|
|
|
1329
1329
|
case i:
|
|
1330
1330
|
case l:
|
|
1331
1331
|
case w:
|
|
1332
|
-
return
|
|
1332
|
+
return Er(r, M);
|
|
1333
1333
|
case F:
|
|
1334
1334
|
return Dr(r, M, m);
|
|
1335
|
-
case I:
|
|
1336
1335
|
case G:
|
|
1336
|
+
case U:
|
|
1337
1337
|
return new B(r);
|
|
1338
1338
|
case C:
|
|
1339
1339
|
return kr(r);
|
|
1340
1340
|
case A:
|
|
1341
1341
|
return Nr(r, M, m);
|
|
1342
|
-
case
|
|
1343
|
-
return
|
|
1342
|
+
case I:
|
|
1343
|
+
return Rr(r);
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1346
|
+
function Ir(r, c) {
|
|
1347
1347
|
return c = c ?? u, !!c && (typeof r == "number" || K.test(r)) && r > -1 && r % 1 == 0 && r < c;
|
|
1348
1348
|
}
|
|
1349
1349
|
function Ar(r) {
|
|
@@ -1351,7 +1351,7 @@ function Xa() {
|
|
|
1351
1351
|
return c == "string" || c == "number" || c == "symbol" || c == "boolean" ? r !== "__proto__" : r === null;
|
|
1352
1352
|
}
|
|
1353
1353
|
function Vr(r) {
|
|
1354
|
-
return !!
|
|
1354
|
+
return !!Rt && Rt in r;
|
|
1355
1355
|
}
|
|
1356
1356
|
function Bt(r) {
|
|
1357
1357
|
var c = r && r.constructor, m = typeof c == "function" && c.prototype || De;
|
|
@@ -1360,7 +1360,7 @@ function Xa() {
|
|
|
1360
1360
|
function se(r) {
|
|
1361
1361
|
if (r != null) {
|
|
1362
1362
|
try {
|
|
1363
|
-
return
|
|
1363
|
+
return Et.call(r);
|
|
1364
1364
|
} catch {
|
|
1365
1365
|
}
|
|
1366
1366
|
try {
|
|
@@ -1388,13 +1388,13 @@ function Xa() {
|
|
|
1388
1388
|
}
|
|
1389
1389
|
var Hr = Yn || Kr;
|
|
1390
1390
|
function Ht(r) {
|
|
1391
|
-
var c =
|
|
1392
|
-
return c == S || c ==
|
|
1391
|
+
var c = Ee(r) ? ke.call(r) : "";
|
|
1392
|
+
return c == S || c == E;
|
|
1393
1393
|
}
|
|
1394
1394
|
function Yr(r) {
|
|
1395
1395
|
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= u;
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function Ee(r) {
|
|
1398
1398
|
var c = typeof r;
|
|
1399
1399
|
return !!r && (c == "object" || c == "function");
|
|
1400
1400
|
}
|
|
@@ -1745,7 +1745,7 @@ v.FIFTEEN_MIN, new V({
|
|
|
1745
1745
|
timeframeLength: () => {
|
|
1746
1746
|
let t = 0;
|
|
1747
1747
|
const n = _e(/* @__PURE__ */ new Date()), a = _e(Dn(/* @__PURE__ */ new Date()));
|
|
1748
|
-
return n.getTimezoneOffset() !== a.getTimezoneOffset() && (t = cn(n, a)), 3600 * 24 *
|
|
1748
|
+
return n.getTimezoneOffset() !== a.getTimezoneOffset() && (t = cn(n, a)), 3600 * 24 * Ra((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + Xt(t);
|
|
1749
1749
|
},
|
|
1750
1750
|
defaultResponseGranularity: "daily",
|
|
1751
1751
|
dataGranularity: "daily",
|
|
@@ -1778,7 +1778,7 @@ v.FIFTEEN_MIN, new V({
|
|
|
1778
1778
|
allowedTiers: ["plus", "enterprise"]
|
|
1779
1779
|
});
|
|
1780
1780
|
function cn(t, n) {
|
|
1781
|
-
return
|
|
1781
|
+
return Ea(t.getTimezoneOffset() - n.getTimezoneOffset());
|
|
1782
1782
|
}
|
|
1783
1783
|
v.FIFTEEN_MIN, v.ONE_HOUR, v.SIX_HOUR, v.TWELVE_HOUR, v.ONE_DAY, v.SEVEN_DAY, v.FIFTEEN_MIN, v.ONE_HOUR, v.SIX_HOUR, v.TWELVE_HOUR, v.ONE_DAY, v.SEVEN_DAY, v.THIRTY_DAY, v.NINETY_DAY, v.ONE_HUNDRED_EIGHTY_DAY, v.ONE_YEAR, v.CURRENT_WEEK, v.CURRENT_MONTH, v.CURRENT_QUARTER, v.CURRENT_YEAR, v.PREVIOUS_WEEK, v.PREVIOUS_MONTH, v.PREVIOUS_QUARTER, v.PREVIOUS_YEAR;
|
|
1784
1784
|
new Map(vt.map((t) => [t.code, { code: t.code, name: t.name }]));
|
|
@@ -1868,14 +1868,14 @@ function ui({
|
|
|
1868
1868
|
if (T)
|
|
1869
1869
|
return `${Be(o, { capital: !0 })} - ${Be(u, { capital: !0 })} ${S}`;
|
|
1870
1870
|
}
|
|
1871
|
-
const
|
|
1872
|
-
return `${
|
|
1871
|
+
const E = o >= 0.01 ? `${it.format(Number.parseFloat(o.toFixed(2)))}` : `${Number.parseFloat(o.toPrecision(4))}`, F = u >= 0.01 ? `${it.format(Number.parseFloat(u.toFixed(2)))}` : `${Number.parseFloat(u.toPrecision(4))}`;
|
|
1872
|
+
return `${E} - ${F} ${S}`;
|
|
1873
1873
|
} };
|
|
1874
1874
|
}
|
|
1875
1875
|
function ci(t) {
|
|
1876
1876
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1877
1877
|
}
|
|
1878
|
-
var
|
|
1878
|
+
var Ue = {}, ot, yn;
|
|
1879
1879
|
function di() {
|
|
1880
1880
|
if (yn) return ot;
|
|
1881
1881
|
yn = 1, ot = h;
|
|
@@ -1891,7 +1891,7 @@ function di() {
|
|
|
1891
1891
|
function h(s, p) {
|
|
1892
1892
|
t = {}, a = [], n = 0, o = 0, u = 1, T(s), u = Math.min(u, d);
|
|
1893
1893
|
for (var g = Math.ceil(Math.log(u) / Math.LN10), D = 0; D < a.length; D++) p.writeStringField(1, a[D]);
|
|
1894
|
-
return o !== 2 && p.writeVarintField(2, o), g !== 6 && p.writeVarintField(3, g), s.type === "FeatureCollection" ? p.writeMessage(4,
|
|
1894
|
+
return o !== 2 && p.writeVarintField(2, o), g !== 6 && p.writeVarintField(3, g), s.type === "FeatureCollection" ? p.writeMessage(4, G, s) : s.type === "Feature" ? p.writeMessage(5, L, s) : p.writeMessage(6, P, s), t = null, p.finish();
|
|
1895
1895
|
}
|
|
1896
1896
|
function T(s) {
|
|
1897
1897
|
var p, g;
|
|
@@ -1900,7 +1900,7 @@ function di() {
|
|
|
1900
1900
|
else if (s.type === "Feature") {
|
|
1901
1901
|
s.geometry !== null && T(s.geometry);
|
|
1902
1902
|
for (g in s.properties) F(g);
|
|
1903
|
-
} else if (s.type === "Point")
|
|
1903
|
+
} else if (s.type === "Point") E(s.coordinates);
|
|
1904
1904
|
else if (s.type === "MultiPoint") S(s.coordinates);
|
|
1905
1905
|
else if (s.type === "GeometryCollection")
|
|
1906
1906
|
for (p = 0; p < s.geometries.length; p++) T(s.geometries[p]);
|
|
@@ -1915,9 +1915,9 @@ function di() {
|
|
|
1915
1915
|
for (var p = 0; p < s.length; p++) S(s[p]);
|
|
1916
1916
|
}
|
|
1917
1917
|
function S(s) {
|
|
1918
|
-
for (var p = 0; p < s.length; p++)
|
|
1918
|
+
for (var p = 0; p < s.length; p++) E(s[p]);
|
|
1919
1919
|
}
|
|
1920
|
-
function
|
|
1920
|
+
function E(s) {
|
|
1921
1921
|
o = Math.max(o, s.length);
|
|
1922
1922
|
for (var p = 0; p < s.length; p++)
|
|
1923
1923
|
for (; Math.round(s[p] * u) / u !== s[p] && u < d; ) u *= 10;
|
|
@@ -1925,7 +1925,7 @@ function di() {
|
|
|
1925
1925
|
function F(s) {
|
|
1926
1926
|
t[s] === void 0 && (a.push(s), t[s] = n++);
|
|
1927
1927
|
}
|
|
1928
|
-
function
|
|
1928
|
+
function G(s, p) {
|
|
1929
1929
|
for (var g = 0; g < s.features.length; g++)
|
|
1930
1930
|
p.writeMessage(1, L, s.features[g]);
|
|
1931
1931
|
C(s, p, !0);
|
|
@@ -1936,9 +1936,9 @@ function di() {
|
|
|
1936
1936
|
function P(s, p) {
|
|
1937
1937
|
p.writeVarintField(1, y[s.type]);
|
|
1938
1938
|
var g = s.coordinates;
|
|
1939
|
-
if (s.type === "Point")
|
|
1940
|
-
else if (s.type === "MultiPoint")
|
|
1941
|
-
else if (s.type === "LineString")
|
|
1939
|
+
if (s.type === "Point") U(g, p);
|
|
1940
|
+
else if (s.type === "MultiPoint") I(g, p);
|
|
1941
|
+
else if (s.type === "LineString") I(g, p);
|
|
1942
1942
|
else if (s.type === "MultiLineString") z(g, p);
|
|
1943
1943
|
else if (s.type === "Polygon") z(g, p, !0);
|
|
1944
1944
|
else if (s.type === "MultiPolygon") b(g, p);
|
|
@@ -1958,11 +1958,11 @@ function di() {
|
|
|
1958
1958
|
g === "string" ? p.writeStringField(1, s) : g === "boolean" ? p.writeBooleanField(5, s) : g === "object" ? p.writeStringField(6, JSON.stringify(s)) : g === "number" && (s % 1 !== 0 ? p.writeDoubleField(2, s) : s >= 0 ? p.writeVarintField(3, s) : p.writeVarintField(4, -s));
|
|
1959
1959
|
}
|
|
1960
1960
|
}
|
|
1961
|
-
function
|
|
1961
|
+
function U(s, p) {
|
|
1962
1962
|
for (var g = [], D = 0; D < o; D++) g.push(Math.round(s[D] * u));
|
|
1963
1963
|
p.writePackedSVarint(3, g);
|
|
1964
1964
|
}
|
|
1965
|
-
function
|
|
1965
|
+
function I(s, p) {
|
|
1966
1966
|
var g = [];
|
|
1967
1967
|
f(g, s), p.writePackedSVarint(3, g);
|
|
1968
1968
|
}
|
|
@@ -2034,7 +2034,7 @@ function mi() {
|
|
|
2034
2034
|
f === 1 ? t.push(s.readString()) : f === 2 ? o = s.readVarint() : f === 3 ? u = Math.pow(10, s.readVarint()) : f === 4 ? T(s, _) : f === 5 ? N(s, _) : f === 6 && S(s, _);
|
|
2035
2035
|
}
|
|
2036
2036
|
function T(f, _) {
|
|
2037
|
-
return _.type = "FeatureCollection", _.features = [], f.readMessage(
|
|
2037
|
+
return _.type = "FeatureCollection", _.features = [], f.readMessage(E, _);
|
|
2038
2038
|
}
|
|
2039
2039
|
function N(f, _) {
|
|
2040
2040
|
_.type = "Feature";
|
|
@@ -2042,19 +2042,19 @@ function mi() {
|
|
|
2042
2042
|
return "geometry" in s || (s.geometry = null), s;
|
|
2043
2043
|
}
|
|
2044
2044
|
function S(f, _) {
|
|
2045
|
-
return _.type = "Point", f.readMessage(
|
|
2045
|
+
return _.type = "Point", f.readMessage(G, _);
|
|
2046
2046
|
}
|
|
2047
|
-
function
|
|
2047
|
+
function E(f, _, s) {
|
|
2048
2048
|
f === 1 ? _.features.push(N(s, {})) : f === 13 ? n.push(P(s)) : f === 15 && C(s, _);
|
|
2049
2049
|
}
|
|
2050
2050
|
function F(f, _, s) {
|
|
2051
2051
|
f === 1 ? _.geometry = S(s, {}) : f === 11 ? _.id = s.readString() : f === 12 ? _.id = s.readSVarint() : f === 13 ? n.push(P(s)) : f === 14 ? _.properties = C(s, {}) : f === 15 && C(s, _);
|
|
2052
2052
|
}
|
|
2053
|
-
function
|
|
2053
|
+
function G(f, _, s) {
|
|
2054
2054
|
f === 1 ? _.type = d[s.readVarint()] : f === 2 ? a = s.readPackedVarint() : f === 3 ? L(_, s, _.type) : f === 4 ? (_.geometries = _.geometries || [], _.geometries.push(S(s, {}))) : f === 13 ? n.push(P(s)) : f === 15 && C(s, _);
|
|
2055
2055
|
}
|
|
2056
2056
|
function L(f, _, s) {
|
|
2057
|
-
s === "Point" ? f.coordinates = A(_) : s === "MultiPoint" || s === "LineString" ? f.coordinates =
|
|
2057
|
+
s === "Point" ? f.coordinates = A(_) : s === "MultiPoint" || s === "LineString" ? f.coordinates = I(_) : s === "MultiLineString" ? f.coordinates = z(_) : s === "Polygon" ? f.coordinates = z(_, !0) : s === "MultiPolygon" && (f.coordinates = b(_));
|
|
2058
2058
|
}
|
|
2059
2059
|
function P(f) {
|
|
2060
2060
|
for (var _ = f.readVarint() + f.pos, s = null; f.pos < _; ) {
|
|
@@ -2071,7 +2071,7 @@ function mi() {
|
|
|
2071
2071
|
for (var _ = f.readVarint() + f.pos, s = []; f.pos < _; ) s.push(f.readSVarint() / u);
|
|
2072
2072
|
return s;
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function U(f, _, s, p) {
|
|
2075
2075
|
var g = 0, D = [], e, i, l = [];
|
|
2076
2076
|
for (i = 0; i < o; i++) l[i] = 0;
|
|
2077
2077
|
for (; s ? g < s : f.pos < _; ) {
|
|
@@ -2081,20 +2081,20 @@ function mi() {
|
|
|
2081
2081
|
}
|
|
2082
2082
|
return p && D.push(D[0]), D;
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2085
|
-
return
|
|
2084
|
+
function I(f) {
|
|
2085
|
+
return U(f, f.readVarint() + f.pos);
|
|
2086
2086
|
}
|
|
2087
2087
|
function z(f, _) {
|
|
2088
2088
|
var s = f.readVarint() + f.pos;
|
|
2089
|
-
if (!a) return [
|
|
2090
|
-
for (var p = [], g = 0; g < a.length; g++) p.push(
|
|
2089
|
+
if (!a) return [U(f, s, null, _)];
|
|
2090
|
+
for (var p = [], g = 0; g < a.length; g++) p.push(U(f, s, a[g], _));
|
|
2091
2091
|
return a = null, p;
|
|
2092
2092
|
}
|
|
2093
2093
|
function b(f) {
|
|
2094
2094
|
var _ = f.readVarint() + f.pos;
|
|
2095
|
-
if (!a) return [[
|
|
2095
|
+
if (!a) return [[U(f, _, null, !0)]];
|
|
2096
2096
|
for (var s = [], p = 1, g = 0; g < a[0]; g++) {
|
|
2097
|
-
for (var D = [], e = 0; e < a[p]; e++) D.push(
|
|
2097
|
+
for (var D = [], e = 0; e < a[p]; e++) D.push(U(f, _, a[p + 1 + e], !0));
|
|
2098
2098
|
p += a[p] + 1, s.push(D);
|
|
2099
2099
|
}
|
|
2100
2100
|
return a = null, s;
|
|
@@ -2103,33 +2103,33 @@ function mi() {
|
|
|
2103
2103
|
}
|
|
2104
2104
|
var _n;
|
|
2105
2105
|
function fi() {
|
|
2106
|
-
return _n || (_n = 1,
|
|
2106
|
+
return _n || (_n = 1, Ue.encode = di(), Ue.decode = mi()), Ue;
|
|
2107
2107
|
}
|
|
2108
|
-
var pi = fi(),
|
|
2108
|
+
var pi = fi(), Ie = {};
|
|
2109
2109
|
var gn;
|
|
2110
2110
|
function yi() {
|
|
2111
|
-
return gn || (gn = 1,
|
|
2112
|
-
var d, y, h = u * 8 - o - 1, T = (1 << h) - 1, N = T >> 1, S = -7,
|
|
2113
|
-
for (
|
|
2111
|
+
return gn || (gn = 1, Ie.read = function(t, n, a, o, u) {
|
|
2112
|
+
var d, y, h = u * 8 - o - 1, T = (1 << h) - 1, N = T >> 1, S = -7, E = a ? u - 1 : 0, F = a ? -1 : 1, G = t[n + E];
|
|
2113
|
+
for (E += F, d = G & (1 << -S) - 1, G >>= -S, S += h; S > 0; d = d * 256 + t[n + E], E += F, S -= 8)
|
|
2114
2114
|
;
|
|
2115
|
-
for (y = d & (1 << -S) - 1, d >>= -S, S += o; S > 0; y = y * 256 + t[n +
|
|
2115
|
+
for (y = d & (1 << -S) - 1, d >>= -S, S += o; S > 0; y = y * 256 + t[n + E], E += F, S -= 8)
|
|
2116
2116
|
;
|
|
2117
2117
|
if (d === 0)
|
|
2118
2118
|
d = 1 - N;
|
|
2119
2119
|
else {
|
|
2120
2120
|
if (d === T)
|
|
2121
|
-
return y ? NaN : (
|
|
2121
|
+
return y ? NaN : (G ? -1 : 1) * (1 / 0);
|
|
2122
2122
|
y = y + Math.pow(2, o), d = d - N;
|
|
2123
2123
|
}
|
|
2124
|
-
return (
|
|
2125
|
-
},
|
|
2126
|
-
var y, h, T, N = d * 8 - u - 1, S = (1 << N) - 1,
|
|
2127
|
-
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (h = isNaN(n) ? 1 : 0, y = S) : (y = Math.floor(Math.log(n) / Math.LN2), n * (T = Math.pow(2, -y)) < 1 && (y--, T *= 2), y +
|
|
2124
|
+
return (G ? -1 : 1) * y * Math.pow(2, d - o);
|
|
2125
|
+
}, Ie.write = function(t, n, a, o, u, d) {
|
|
2126
|
+
var y, h, T, N = d * 8 - u - 1, S = (1 << N) - 1, E = S >> 1, F = u === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, G = o ? 0 : d - 1, L = o ? 1 : -1, P = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
|
|
2127
|
+
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (h = isNaN(n) ? 1 : 0, y = S) : (y = Math.floor(Math.log(n) / Math.LN2), n * (T = Math.pow(2, -y)) < 1 && (y--, T *= 2), y + E >= 1 ? n += F / T : n += F * Math.pow(2, 1 - E), n * T >= 2 && (y++, T /= 2), y + E >= S ? (h = 0, y = S) : y + E >= 1 ? (h = (n * T - 1) * Math.pow(2, u), y = y + E) : (h = n * Math.pow(2, E - 1) * Math.pow(2, u), y = 0)); u >= 8; t[a + G] = h & 255, G += L, h /= 256, u -= 8)
|
|
2128
2128
|
;
|
|
2129
|
-
for (y = y << u | h, N += u; N > 0; t[a +
|
|
2129
|
+
for (y = y << u | h, N += u; N > 0; t[a + G] = y & 255, G += L, y /= 256, N -= 8)
|
|
2130
2130
|
;
|
|
2131
|
-
t[a +
|
|
2132
|
-
}),
|
|
2131
|
+
t[a + G - L] |= P * 128;
|
|
2132
|
+
}), Ie;
|
|
2133
2133
|
}
|
|
2134
2134
|
var lt, wn;
|
|
2135
2135
|
function hi() {
|
|
@@ -2335,7 +2335,7 @@ function hi() {
|
|
|
2335
2335
|
this.writeTag(e, n.Bytes), this.writeRawMessage(i, l);
|
|
2336
2336
|
},
|
|
2337
2337
|
writePackedVarint: function(e, i) {
|
|
2338
|
-
i.length && this.writeMessage(e,
|
|
2338
|
+
i.length && this.writeMessage(e, G, i);
|
|
2339
2339
|
},
|
|
2340
2340
|
writePackedSVarint: function(e, i) {
|
|
2341
2341
|
i.length && this.writeMessage(e, L, i);
|
|
@@ -2350,10 +2350,10 @@ function hi() {
|
|
|
2350
2350
|
i.length && this.writeMessage(e, C, i);
|
|
2351
2351
|
},
|
|
2352
2352
|
writePackedFixed32: function(e, i) {
|
|
2353
|
-
i.length && this.writeMessage(e,
|
|
2353
|
+
i.length && this.writeMessage(e, U, i);
|
|
2354
2354
|
},
|
|
2355
2355
|
writePackedSFixed32: function(e, i) {
|
|
2356
|
-
i.length && this.writeMessage(e,
|
|
2356
|
+
i.length && this.writeMessage(e, I, i);
|
|
2357
2357
|
},
|
|
2358
2358
|
writePackedFixed64: function(e, i) {
|
|
2359
2359
|
i.length && this.writeMessage(e, z, i);
|
|
@@ -2410,12 +2410,12 @@ function hi() {
|
|
|
2410
2410
|
var l, w;
|
|
2411
2411
|
if (e >= 0 ? (l = e % 4294967296 | 0, w = e / 4294967296 | 0) : (l = ~(-e % 4294967296), w = ~(-e / 4294967296), l ^ 4294967295 ? l = l + 1 | 0 : (l = 0, w = w + 1 | 0)), e >= 18446744073709552e3 || e < -18446744073709552e3)
|
|
2412
2412
|
throw new Error("Given varint doesn't fit into 10 bytes");
|
|
2413
|
-
i.realloc(10), S(l, w, i),
|
|
2413
|
+
i.realloc(10), S(l, w, i), E(w, i);
|
|
2414
2414
|
}
|
|
2415
2415
|
function S(e, i, l) {
|
|
2416
2416
|
l.buf[l.pos++] = e & 127 | 128, e >>>= 7, l.buf[l.pos++] = e & 127 | 128, e >>>= 7, l.buf[l.pos++] = e & 127 | 128, e >>>= 7, l.buf[l.pos++] = e & 127 | 128, e >>>= 7, l.buf[l.pos] = e & 127;
|
|
2417
2417
|
}
|
|
2418
|
-
function
|
|
2418
|
+
function E(e, i) {
|
|
2419
2419
|
var l = (e & 7) << 4;
|
|
2420
2420
|
i.buf[i.pos++] |= l | ((e >>>= 3) ? 128 : 0), e && (i.buf[i.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (i.buf[i.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (i.buf[i.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (i.buf[i.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (i.buf[i.pos++] = e & 127)))));
|
|
2421
2421
|
}
|
|
@@ -2424,7 +2424,7 @@ function hi() {
|
|
|
2424
2424
|
l.realloc(w);
|
|
2425
2425
|
for (var x = l.pos - 1; x >= e; x--) l.buf[x + w] = l.buf[x];
|
|
2426
2426
|
}
|
|
2427
|
-
function
|
|
2427
|
+
function G(e, i) {
|
|
2428
2428
|
for (var l = 0; l < e.length; l++) i.writeVarint(e[l]);
|
|
2429
2429
|
}
|
|
2430
2430
|
function L(e, i) {
|
|
@@ -2439,10 +2439,10 @@ function hi() {
|
|
|
2439
2439
|
function A(e, i) {
|
|
2440
2440
|
for (var l = 0; l < e.length; l++) i.writeBoolean(e[l]);
|
|
2441
2441
|
}
|
|
2442
|
-
function
|
|
2442
|
+
function U(e, i) {
|
|
2443
2443
|
for (var l = 0; l < e.length; l++) i.writeFixed32(e[l]);
|
|
2444
2444
|
}
|
|
2445
|
-
function
|
|
2445
|
+
function I(e, i) {
|
|
2446
2446
|
for (var l = 0; l < e.length; l++) i.writeSFixed32(e[l]);
|
|
2447
2447
|
}
|
|
2448
2448
|
function z(e, i) {
|
|
@@ -2464,8 +2464,8 @@ function hi() {
|
|
|
2464
2464
|
for (var w = "", x = i; x < l; ) {
|
|
2465
2465
|
var k = e[x], O = null, K = k > 239 ? 4 : k > 223 ? 3 : k > 191 ? 2 : 1;
|
|
2466
2466
|
if (x + K > l) break;
|
|
2467
|
-
var
|
|
2468
|
-
K === 1 ? k < 128 && (O = k) : K === 2 ? (
|
|
2467
|
+
var R, W, Q;
|
|
2468
|
+
K === 1 ? k < 128 && (O = k) : K === 2 ? (R = e[x + 1], (R & 192) === 128 && (O = (k & 31) << 6 | R & 63, O <= 127 && (O = null))) : K === 3 ? (R = e[x + 1], W = e[x + 2], (R & 192) === 128 && (W & 192) === 128 && (O = (k & 15) << 12 | (R & 63) << 6 | W & 63, (O <= 2047 || O >= 55296 && O <= 57343) && (O = null))) : K === 4 && (R = e[x + 1], W = e[x + 2], Q = e[x + 3], (R & 192) === 128 && (W & 192) === 128 && (Q & 192) === 128 && (O = (k & 15) << 18 | (R & 63) << 12 | (W & 63) << 6 | Q & 63, (O <= 65535 || O >= 1114112) && (O = null))), O === null ? (O = 65533, K = 1) : O > 65535 && (O -= 65536, w += String.fromCharCode(O >>> 10 & 1023 | 55296), O = 56320 | O & 1023), w += String.fromCharCode(O), x += K;
|
|
2469
2469
|
}
|
|
2470
2470
|
return w;
|
|
2471
2471
|
}
|
|
@@ -2526,7 +2526,7 @@ const Mn = 5, ut = [
|
|
|
2526
2526
|
const a = t.filter((h) => h > 0).map(Math.log).sort((h, T) => h - T), o = Math.min(...a), d = (Math.max(...a) - o) / n;
|
|
2527
2527
|
return Array.from({ length: n }, (h, T) => o + T * d).map((h) => Math.exp(h)).reverse();
|
|
2528
2528
|
};
|
|
2529
|
-
function
|
|
2529
|
+
function Ri({
|
|
2530
2530
|
countryMetrics: t,
|
|
2531
2531
|
metric: n,
|
|
2532
2532
|
unit: a,
|
|
@@ -2537,48 +2537,48 @@ function Ei({
|
|
|
2537
2537
|
for (const P of Object.keys(L))
|
|
2538
2538
|
vt.find((C) => C.code === P) || delete L[P];
|
|
2539
2539
|
return L;
|
|
2540
|
-
}), h = j(() => Object.values(y.value)), T = j(() => Object.keys(y.value).length), N = j(() => T.value < Mn - 1 ? T.value : Mn), S = j(() => !n.value?.includes("latency")),
|
|
2540
|
+
}), h = j(() => Object.values(y.value)), T = j(() => Object.keys(y.value).length), N = j(() => T.value < Mn - 1 ? T.value : Mn), S = j(() => !n.value?.includes("latency")), E = j(() => {
|
|
2541
2541
|
const L = [];
|
|
2542
2542
|
if (h.value.length > 10) {
|
|
2543
|
-
const P = [...h.value].sort((b, f) => b - f), C = Ni(P, 0.75), A = h.value.filter((b) => b >= C),
|
|
2544
|
-
return L.push(...
|
|
2543
|
+
const P = [...h.value].sort((b, f) => b - f), C = Ni(P, 0.75), A = h.value.filter((b) => b >= C), U = h.value.filter((b) => b < C), I = ct(A, 3), z = ct(U, 2);
|
|
2544
|
+
return L.push(...I, ...z), L;
|
|
2545
2545
|
}
|
|
2546
2546
|
return ct(h.value, N.value);
|
|
2547
2547
|
}), F = j(() => h.value.length === 1 ? [{
|
|
2548
|
-
color:
|
|
2548
|
+
color: G(h.value[0]),
|
|
2549
2549
|
range: u(h.value[0], {
|
|
2550
2550
|
approximate: S.value,
|
|
2551
2551
|
showUnit: !a.value.includes("count")
|
|
2552
2552
|
}).trim()
|
|
2553
|
-
}] :
|
|
2554
|
-
const C = P === 0 ? Math.max(...
|
|
2555
|
-
let
|
|
2556
|
-
return P === 0 ?
|
|
2553
|
+
}] : E.value.map((L, P) => {
|
|
2554
|
+
const C = P === 0 ? Math.max(...E.value) : E.value[P - 1], A = L, U = C;
|
|
2555
|
+
let I = "";
|
|
2556
|
+
return P === 0 ? I = `> ${u(A, {
|
|
2557
2557
|
showUnit: !a.value.includes("count"),
|
|
2558
2558
|
approximate: S.value
|
|
2559
|
-
})}`.trim() : P ===
|
|
2559
|
+
})}`.trim() : P === E.value.length - 1 ? I = `< ${u(U, {
|
|
2560
2560
|
showUnit: !a.value.includes("count"),
|
|
2561
2561
|
approximate: S.value
|
|
2562
|
-
})}`.trim() :
|
|
2562
|
+
})}`.trim() : I = d(A, U, {
|
|
2563
2563
|
showUnit: !a.value.includes("count"),
|
|
2564
2564
|
approximate: S.value
|
|
2565
2565
|
}).trim(), {
|
|
2566
|
-
color:
|
|
2567
|
-
range:
|
|
2566
|
+
color: G(A),
|
|
2567
|
+
range: I
|
|
2568
2568
|
};
|
|
2569
|
-
})),
|
|
2569
|
+
})), G = (L) => {
|
|
2570
2570
|
if (L === 0)
|
|
2571
2571
|
return o.value;
|
|
2572
|
-
const P =
|
|
2572
|
+
const P = E.value.findIndex((C) => L >= C);
|
|
2573
2573
|
return P === -1 ? ut[ut.length - 1] : ut[P] ?? o.value;
|
|
2574
2574
|
};
|
|
2575
2575
|
return {
|
|
2576
|
-
getColor:
|
|
2576
|
+
getColor: G,
|
|
2577
2577
|
legendData: F,
|
|
2578
|
-
scale:
|
|
2578
|
+
scale: E
|
|
2579
2579
|
};
|
|
2580
2580
|
}
|
|
2581
|
-
function
|
|
2581
|
+
function Ei({
|
|
2582
2582
|
unit: t
|
|
2583
2583
|
}) {
|
|
2584
2584
|
const { i18n: n } = Te.useI18n(), { formatUnit: a, formatRange: o } = ui({ i18n: n });
|
|
@@ -2601,8 +2601,8 @@ function Ri({
|
|
|
2601
2601
|
}
|
|
2602
2602
|
const Te = {
|
|
2603
2603
|
useI18n: ki,
|
|
2604
|
-
useLegendScale:
|
|
2605
|
-
useMetricFormat:
|
|
2604
|
+
useLegendScale: Ri,
|
|
2605
|
+
useMetricFormat: Ei
|
|
2606
2606
|
}, to = (t) => {
|
|
2607
2607
|
if (!t || !t.data)
|
|
2608
2608
|
return {};
|
|
@@ -2635,7 +2635,7 @@ const dt = (t) => {
|
|
|
2635
2635
|
}, Ci = { class: "legend" }, Li = {
|
|
2636
2636
|
key: 0,
|
|
2637
2637
|
class: "legend-title"
|
|
2638
|
-
}, Oi = { class: "legend-text" },
|
|
2638
|
+
}, Oi = { class: "legend-text" }, Gi = /* @__PURE__ */ pt({
|
|
2639
2639
|
__name: "MapLegend",
|
|
2640
2640
|
props: {
|
|
2641
2641
|
metric: {},
|
|
@@ -2662,7 +2662,7 @@ const dt = (t) => {
|
|
|
2662
2662
|
for (const [o, u] of n)
|
|
2663
2663
|
a[o] = u;
|
|
2664
2664
|
return a;
|
|
2665
|
-
},
|
|
2665
|
+
}, Ui = /* @__PURE__ */ Mt(Gi, [["__scopeId", "data-v-2858aa0d"]]), Ii = { class: "map-tooltip" }, Ai = { class: "map-tooltip-text" }, Vi = { key: 0 }, Bi = /* @__PURE__ */ pt({
|
|
2666
2666
|
__name: "MapTooltip",
|
|
2667
2667
|
props: {
|
|
2668
2668
|
data: {},
|
|
@@ -2675,7 +2675,7 @@ const dt = (t) => {
|
|
|
2675
2675
|
v75a0a274: n.left,
|
|
2676
2676
|
v144f4294: n.top,
|
|
2677
2677
|
v6e49e79e: n.data.color
|
|
2678
|
-
})), (n, a) => (X(), re("div",
|
|
2678
|
+
})), (n, a) => (X(), re("div", Ii, [
|
|
2679
2679
|
a[0] || (a[0] = te("div", { class: "map-tooltip-color" }, null, -1)),
|
|
2680
2680
|
te("div", Ai, [
|
|
2681
2681
|
te("div", null, ge(t.data.label), 1),
|
|
@@ -2709,7 +2709,7 @@ const dt = (t) => {
|
|
|
2709
2709
|
metric: xe(() => t.metric),
|
|
2710
2710
|
unit: xe(() => t.metricUnit),
|
|
2711
2711
|
emptyCountryFill: xe(() => C.value.emptyCountryFill)
|
|
2712
|
-
}), { formatMetric: T } = Te.useMetricFormat({ unit: xe(() => t.metricUnit) }), N = le(), S = Jr(),
|
|
2712
|
+
}), { formatMetric: T } = Te.useMetricFormat({ unit: xe(() => t.metricUnit) }), N = le(), S = Jr(), E = le(), F = le(), G = le(null), L = le({ left: "0px", top: "0px" }), P = le(!1), C = le(dt()), A = j(() => Object.keys(t.countryMetrics).length === 0 && !t.fitToCountry), U = j(() => ({
|
|
2713
2713
|
"fill-color": [
|
|
2714
2714
|
"match",
|
|
2715
2715
|
[
|
|
@@ -2730,7 +2730,7 @@ const dt = (t) => {
|
|
|
2730
2730
|
// default color if no match
|
|
2731
2731
|
],
|
|
2732
2732
|
"fill-opacity": 0.7
|
|
2733
|
-
})),
|
|
2733
|
+
})), I = j(() => ({
|
|
2734
2734
|
"fill-color": C.value.waterFill
|
|
2735
2735
|
})), z = j(() => t.withLegend && Object.keys(t.countryMetrics).length > 0), b = j(() => t.metric && u.t(`metrics.${t.metric}`) || ""), f = (e) => {
|
|
2736
2736
|
const i = e.flat(1);
|
|
@@ -2761,13 +2761,13 @@ const dt = (t) => {
|
|
|
2761
2761
|
]);
|
|
2762
2762
|
return;
|
|
2763
2763
|
}
|
|
2764
|
-
const i =
|
|
2764
|
+
const i = G.value?.features.find((l) => l.properties?.ISO_A2 ? l.properties?.ISO_A2 === e : l.properties?.iso_a2 === "-99" ? l.properties?.iso_a2_eh === e : l.properties?.iso_a2 === e);
|
|
2765
2765
|
if (i) {
|
|
2766
2766
|
const l = i.geometry?.coordinates;
|
|
2767
2767
|
if (!l) return;
|
|
2768
|
-
const w = f(l), x = w.map((Q) => Q[1]), k = w.map((Q) => Q[0]), O = Math.min(...x), K = Math.max(...x),
|
|
2768
|
+
const w = f(l), x = w.map((Q) => Q[1]), k = w.map((Q) => Q[0]), O = Math.min(...x), K = Math.max(...x), R = Math.min(...k), W = Math.max(...k);
|
|
2769
2769
|
F.value?.fitBounds([
|
|
2770
|
-
[
|
|
2770
|
+
[R, O],
|
|
2771
2771
|
[W, K]
|
|
2772
2772
|
]);
|
|
2773
2773
|
}
|
|
@@ -2804,10 +2804,10 @@ const dt = (t) => {
|
|
|
2804
2804
|
return ea(() => {
|
|
2805
2805
|
D();
|
|
2806
2806
|
}), ta(async () => {
|
|
2807
|
-
C.value = dt(
|
|
2807
|
+
C.value = dt(E.value);
|
|
2808
2808
|
try {
|
|
2809
2809
|
const e = await a, i = await fetch(e), l = new Uint8Array(await i.arrayBuffer()), w = pi.decode(new gi(l));
|
|
2810
|
-
|
|
2810
|
+
G.value = w, F.value = new aa(s.value), F.value.on("load", () => {
|
|
2811
2811
|
F.value?.addSource("countries", {
|
|
2812
2812
|
type: "geojson",
|
|
2813
2813
|
data: w
|
|
@@ -2815,7 +2815,7 @@ const dt = (t) => {
|
|
|
2815
2815
|
id: "countries-layer",
|
|
2816
2816
|
type: "fill",
|
|
2817
2817
|
source: "countries",
|
|
2818
|
-
paint:
|
|
2818
|
+
paint: U.value
|
|
2819
2819
|
}), F.value?.addSource("lakes", {
|
|
2820
2820
|
type: "geojson",
|
|
2821
2821
|
data: Yi
|
|
@@ -2823,11 +2823,11 @@ const dt = (t) => {
|
|
|
2823
2823
|
id: "lakes-layer",
|
|
2824
2824
|
type: "fill",
|
|
2825
2825
|
source: "lakes",
|
|
2826
|
-
paint:
|
|
2826
|
+
paint: I.value
|
|
2827
2827
|
}), F.value?.on("mousemove", "countries-layer", (x) => {
|
|
2828
2828
|
const k = x.features?.[0];
|
|
2829
2829
|
if (k) {
|
|
2830
|
-
const { iso_a2: O, iso_a2_eh: K, ISO_A2:
|
|
2830
|
+
const { iso_a2: O, iso_a2_eh: K, ISO_A2: R, admin: W } = k.properties, Q = R ?? O === "-99" ? K : O, q = t.countryMetrics[Q];
|
|
2831
2831
|
q !== void 0 && (N.value = {
|
|
2832
2832
|
label: W,
|
|
2833
2833
|
color: y(q),
|
|
@@ -2845,9 +2845,9 @@ const dt = (t) => {
|
|
|
2845
2845
|
console.error(e);
|
|
2846
2846
|
}
|
|
2847
2847
|
}), Ce(d, () => {
|
|
2848
|
-
C.value = dt(
|
|
2849
|
-
}), Ce([
|
|
2850
|
-
F.value?.isStyleLoaded() && (F.value.getLayer("countries-layer") && F.value.setPaintProperty("countries-layer", "fill-color",
|
|
2848
|
+
C.value = dt(E.value);
|
|
2849
|
+
}), Ce([U, I], () => {
|
|
2850
|
+
F.value?.isStyleLoaded() && (F.value.getLayer("countries-layer") && F.value.setPaintProperty("countries-layer", "fill-color", U.value["fill-color"]), F.value.getLayer("lakes-layer") && F.value.setPaintProperty("lakes-layer", "fill-color", I.value["fill-color"]));
|
|
2851
2851
|
}), Ce(() => t.fitToCountry, (e) => {
|
|
2852
2852
|
F.value && e ? _(e) : !s.value.center && !s.value.zoom ? F.value?.fitBounds([
|
|
2853
2853
|
[-180, -90],
|
|
@@ -2879,10 +2879,10 @@ const dt = (t) => {
|
|
|
2879
2879
|
te("div", {
|
|
2880
2880
|
id: ue(S),
|
|
2881
2881
|
ref_key: "mapContainer",
|
|
2882
|
-
ref:
|
|
2882
|
+
ref: E,
|
|
2883
2883
|
class: "analytics-geo-map-container"
|
|
2884
2884
|
}, null, 8, Wi),
|
|
2885
|
-
z.value ? (X(), qt(
|
|
2885
|
+
z.value ? (X(), qt(Ui, {
|
|
2886
2886
|
key: 1,
|
|
2887
2887
|
class: "legend-container",
|
|
2888
2888
|
data: ue(h),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/analytics-geo-map",
|
|
3
|
-
"version": "1.9.46
|
|
3
|
+
"version": "1.9.46",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/vitals-geo-map.umd.js",
|
|
6
6
|
"module": "./dist/vitals-geo-map.es.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"vue": "^3.5.35"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@kong-ui-public/analytics-utilities": "^12.
|
|
56
|
+
"@kong-ui-public/analytics-utilities": "^12.50.0",
|
|
57
57
|
"@kong/icons": "^1.62.1",
|
|
58
58
|
"geobuf": "^3.0.2"
|
|
59
59
|
},
|