@kong-ui-public/analytics-geo-map 1.8.6 → 1.8.7
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 +239 -230
- package/dist/vitals-geo-map.umd.js +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as j, defineComponent as ft, openBlock as W, createElementBlock as ne, toDisplayString as
|
|
1
|
+
import { computed as j, defineComponent as ft, openBlock as W, createElementBlock as ne, toDisplayString as ye, createCommentVNode as xe, Fragment as Yr, renderList as $r, createElementVNode as X, normalizeStyle as jr, useCssVars as Kr, toRef as Le, ref as we, useId as qr, onUnmounted as Wr, onMounted as Zr, watch as Xe, renderSlot as et, createVNode as Jr, unref as oe, createTextVNode as Qr, createBlock as zt } from "vue";
|
|
2
2
|
import { Map as Xr } from "maplibre-gl";
|
|
3
3
|
import { createI18n as ea, i18nTComponent as ta } from "@kong-ui-public/i18n";
|
|
4
4
|
import { AnalyticsIcon as na } from "@kong/icons";
|
|
@@ -46,7 +46,7 @@ function da(e, n = {}) {
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
var v = /* @__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))(v || {});
|
|
49
|
-
const ma = ["in", "not_in", "selector"], fa = ["empty", "not_empty"],
|
|
49
|
+
const ma = ["in", "not_in", "selector"], fa = ["empty", "not_empty"], se = (e) => e.filter((n) => n !== "time"), yn = [
|
|
50
50
|
"api",
|
|
51
51
|
"api_package",
|
|
52
52
|
"api_product",
|
|
@@ -60,7 +60,7 @@ const ma = ["in", "not_in", "selector"], fa = ["empty", "not_empty"], ye = (e) =
|
|
|
60
60
|
"status_code",
|
|
61
61
|
"status_code_grouped",
|
|
62
62
|
"time"
|
|
63
|
-
], hn =
|
|
63
|
+
], hn = se(yn), pa = [
|
|
64
64
|
"active_services",
|
|
65
65
|
"error_rate",
|
|
66
66
|
"request_count",
|
|
@@ -82,7 +82,7 @@ const ma = ["in", "not_in", "selector"], fa = ["empty", "not_empty"], ye = (e) =
|
|
|
82
82
|
"realm",
|
|
83
83
|
"portal_api",
|
|
84
84
|
"principal"
|
|
85
|
-
], gn =
|
|
85
|
+
], gn = se(_n), ya = [
|
|
86
86
|
...pa,
|
|
87
87
|
"response_latency_p99",
|
|
88
88
|
"response_latency_p95",
|
|
@@ -128,7 +128,7 @@ const ma = ["in", "not_in", "selector"], fa = ["empty", "not_empty"], ye = (e) =
|
|
|
128
128
|
"status_code_grouped",
|
|
129
129
|
"ai_plugin",
|
|
130
130
|
"principal"
|
|
131
|
-
], wn =
|
|
131
|
+
], wn = se(ha), _a = [
|
|
132
132
|
"a2a_context_id",
|
|
133
133
|
"a2a_error",
|
|
134
134
|
"a2a_method",
|
|
@@ -178,7 +178,7 @@ const ma = ["in", "not_in", "selector"], fa = ["empty", "not_empty"], ye = (e) =
|
|
|
178
178
|
"upstream_status_code_grouped",
|
|
179
179
|
"websocket"
|
|
180
180
|
];
|
|
181
|
-
|
|
181
|
+
se(_a);
|
|
182
182
|
const ga = [
|
|
183
183
|
"ai_count",
|
|
184
184
|
"latencies_response_ms",
|
|
@@ -191,7 +191,7 @@ const ga = [
|
|
|
191
191
|
"status_code",
|
|
192
192
|
"upstream_status_code"
|
|
193
193
|
];
|
|
194
|
-
|
|
194
|
+
se(ga);
|
|
195
195
|
const wa = [
|
|
196
196
|
..._n,
|
|
197
197
|
"a2a_context_id",
|
|
@@ -202,11 +202,20 @@ const wa = [
|
|
|
202
202
|
"mcp_method",
|
|
203
203
|
"mcp_session_id",
|
|
204
204
|
"mcp_tool_name"
|
|
205
|
-
], vn =
|
|
205
|
+
], vn = se(wa);
|
|
206
206
|
[
|
|
207
207
|
...ya
|
|
208
208
|
];
|
|
209
|
-
|
|
209
|
+
const va = [
|
|
210
|
+
"control_plane",
|
|
211
|
+
"data_plane_group",
|
|
212
|
+
"managed_cache",
|
|
213
|
+
"network",
|
|
214
|
+
"provider",
|
|
215
|
+
"region",
|
|
216
|
+
"time"
|
|
217
|
+
], xa = se(va);
|
|
218
|
+
new Set(hn), new Set(gn), new Set(wn), new Set(vn), new Set(xa);
|
|
210
219
|
const pt = [
|
|
211
220
|
{ code: "AF", name: "Afghanistan" },
|
|
212
221
|
{ code: "AX", name: "Aland Islands" },
|
|
@@ -456,7 +465,7 @@ const pt = [
|
|
|
456
465
|
{ code: "ZW", name: "Zimbabwe" }
|
|
457
466
|
];
|
|
458
467
|
pt.map((e) => e.code);
|
|
459
|
-
const
|
|
468
|
+
const Fa = (e) => ({
|
|
460
469
|
type: "array",
|
|
461
470
|
description: "A list of filters to apply to the query",
|
|
462
471
|
items: {
|
|
@@ -508,7 +517,7 @@ const va = (e) => ({
|
|
|
508
517
|
}
|
|
509
518
|
]
|
|
510
519
|
}
|
|
511
|
-
}),
|
|
520
|
+
}), Ma = [
|
|
512
521
|
"control_plane",
|
|
513
522
|
"gateway_service",
|
|
514
523
|
"realm",
|
|
@@ -522,40 +531,40 @@ const va = (e) => ({
|
|
|
522
531
|
"region",
|
|
523
532
|
"hostname"
|
|
524
533
|
];
|
|
525
|
-
|
|
534
|
+
Fa([
|
|
526
535
|
.../* @__PURE__ */ new Set([
|
|
527
536
|
...gn,
|
|
528
537
|
...hn,
|
|
529
538
|
...wn,
|
|
530
539
|
...vn,
|
|
531
|
-
...
|
|
540
|
+
...Ma
|
|
532
541
|
])
|
|
533
542
|
]);
|
|
534
|
-
let
|
|
535
|
-
function
|
|
536
|
-
return
|
|
543
|
+
let Ta = {};
|
|
544
|
+
function Sa() {
|
|
545
|
+
return Ta;
|
|
537
546
|
}
|
|
538
|
-
const
|
|
547
|
+
const Da = 60, Na = 3600, $t = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
539
548
|
function Te(e, n) {
|
|
540
549
|
return typeof e == "function" ? e(n) : e && typeof e == "object" && $t in e ? e[$t](n) : e instanceof Date ? new e.constructor(n) : new Date(n);
|
|
541
550
|
}
|
|
542
|
-
function
|
|
551
|
+
function le(e, n) {
|
|
543
552
|
return Te(n || e, e);
|
|
544
553
|
}
|
|
545
554
|
function Pe(e, n) {
|
|
546
|
-
const a =
|
|
555
|
+
const a = le(e, n?.in);
|
|
547
556
|
return a.setHours(0, 0, 0, 0), a;
|
|
548
557
|
}
|
|
549
558
|
function Be(e, n) {
|
|
550
|
-
const a =
|
|
559
|
+
const a = Sa(), i = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, l = le(e, n?.in), d = l.getDay(), y = (d < i ? 7 : 0) + d - i;
|
|
551
560
|
return l.setDate(l.getDate() - y), l.setHours(0, 0, 0, 0), l;
|
|
552
561
|
}
|
|
553
562
|
function Ge(e, n, a) {
|
|
554
|
-
const i =
|
|
563
|
+
const i = le(e, a?.in);
|
|
555
564
|
return isNaN(n) ? Te(e, NaN) : (i.setDate(i.getDate() + n), i);
|
|
556
565
|
}
|
|
557
566
|
function xn(e, n, a) {
|
|
558
|
-
const i =
|
|
567
|
+
const i = le(e, a?.in);
|
|
559
568
|
if (isNaN(n)) return Te(e, NaN);
|
|
560
569
|
if (!n)
|
|
561
570
|
return i;
|
|
@@ -568,39 +577,39 @@ function xn(e, n, a) {
|
|
|
568
577
|
l
|
|
569
578
|
), i);
|
|
570
579
|
}
|
|
571
|
-
function
|
|
580
|
+
function ka(e, n, a) {
|
|
572
581
|
return xn(e, n * 3, a);
|
|
573
582
|
}
|
|
574
|
-
function
|
|
575
|
-
const a =
|
|
583
|
+
function fe(e, n) {
|
|
584
|
+
const a = le(e, n?.in), i = a.getMonth(), l = i - i % 3;
|
|
576
585
|
return a.setMonth(l, 1), a.setHours(0, 0, 0, 0), a;
|
|
577
586
|
}
|
|
578
|
-
function
|
|
579
|
-
const a =
|
|
587
|
+
function pe(e, n) {
|
|
588
|
+
const a = le(e, n?.in);
|
|
580
589
|
return a.setDate(1), a.setHours(0, 0, 0, 0), a;
|
|
581
590
|
}
|
|
582
|
-
function
|
|
583
|
-
const a =
|
|
591
|
+
function Ra(e, n) {
|
|
592
|
+
const a = le(e, n?.in), i = a.getFullYear(), l = a.getMonth(), d = Te(a, 0);
|
|
584
593
|
return d.setFullYear(i, l + 1, 0), d.setHours(0, 0, 0, 0), d.getDate();
|
|
585
594
|
}
|
|
586
595
|
function jt(e) {
|
|
587
|
-
return Math.trunc(e *
|
|
596
|
+
return Math.trunc(e * Na);
|
|
588
597
|
}
|
|
589
|
-
function
|
|
590
|
-
const n = e /
|
|
598
|
+
function Ea(e) {
|
|
599
|
+
const n = e / Da;
|
|
591
600
|
return Math.trunc(n);
|
|
592
601
|
}
|
|
593
602
|
function Fn(e, n, a) {
|
|
594
603
|
return xn(e, -1, a);
|
|
595
604
|
}
|
|
596
605
|
function Mn(e, n, a) {
|
|
597
|
-
return
|
|
606
|
+
return ka(e, -1, a);
|
|
598
607
|
}
|
|
599
|
-
function
|
|
600
|
-
const a =
|
|
601
|
-
return "formatToParts" in a ?
|
|
608
|
+
function La(e, n) {
|
|
609
|
+
const a = Ca(n);
|
|
610
|
+
return "formatToParts" in a ? Ga(a, e) : Oa(a, e);
|
|
602
611
|
}
|
|
603
|
-
const
|
|
612
|
+
const Pa = {
|
|
604
613
|
year: 0,
|
|
605
614
|
month: 1,
|
|
606
615
|
day: 2,
|
|
@@ -608,11 +617,11 @@ const Ra = {
|
|
|
608
617
|
minute: 4,
|
|
609
618
|
second: 5
|
|
610
619
|
};
|
|
611
|
-
function
|
|
620
|
+
function Ga(e, n) {
|
|
612
621
|
try {
|
|
613
622
|
const a = e.formatToParts(n), i = [];
|
|
614
623
|
for (let l = 0; l < a.length; l++) {
|
|
615
|
-
const d =
|
|
624
|
+
const d = Pa[a[l].type];
|
|
616
625
|
d !== void 0 && (i[d] = parseInt(a[l].value, 10));
|
|
617
626
|
}
|
|
618
627
|
return i;
|
|
@@ -622,7 +631,7 @@ function La(e, n) {
|
|
|
622
631
|
throw a;
|
|
623
632
|
}
|
|
624
633
|
}
|
|
625
|
-
function
|
|
634
|
+
function Oa(e, n) {
|
|
626
635
|
const a = e.format(n), i = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(a);
|
|
627
636
|
return [
|
|
628
637
|
parseInt(i[3], 10),
|
|
@@ -642,9 +651,9 @@ const tt = {}, Kt = new Intl.DateTimeFormat("en-US", {
|
|
|
642
651
|
hour: "2-digit",
|
|
643
652
|
minute: "2-digit",
|
|
644
653
|
second: "2-digit"
|
|
645
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
646
|
-
function
|
|
647
|
-
return tt[e] || (tt[e] =
|
|
654
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Ia = Kt === "06/25/2014, 00:00:00" || Kt === "06/25/2014 00:00:00";
|
|
655
|
+
function Ca(e) {
|
|
656
|
+
return tt[e] || (tt[e] = Ia ? new Intl.DateTimeFormat("en-US", {
|
|
648
657
|
hourCycle: "h23",
|
|
649
658
|
timeZone: e,
|
|
650
659
|
year: "numeric",
|
|
@@ -668,7 +677,7 @@ function yt(e, n, a, i, l, d, y) {
|
|
|
668
677
|
const w = /* @__PURE__ */ new Date(0);
|
|
669
678
|
return w.setUTCFullYear(e, n, a), w.setUTCHours(i, l, d, y), w;
|
|
670
679
|
}
|
|
671
|
-
const qt = 36e5,
|
|
680
|
+
const qt = 36e5, Ua = 6e4, nt = {
|
|
672
681
|
timezoneZ: /^(Z)$/,
|
|
673
682
|
timezoneHH: /^([+-]\d{2})$/,
|
|
674
683
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -685,25 +694,25 @@ function be(e, n, a) {
|
|
|
685
694
|
if (i = nt.timezoneHHMM.exec(e), i) {
|
|
686
695
|
l = parseInt(i[2], 10);
|
|
687
696
|
const y = parseInt(i[3], 10);
|
|
688
|
-
return Wt(l, y) ? (d = Math.abs(l) * qt + y *
|
|
697
|
+
return Wt(l, y) ? (d = Math.abs(l) * qt + y * Ua, i[1] === "+" ? -d : d) : NaN;
|
|
689
698
|
}
|
|
690
|
-
if (
|
|
699
|
+
if (Ba(e)) {
|
|
691
700
|
n = new Date(n || Date.now());
|
|
692
|
-
const y = a ? n :
|
|
693
|
-
return -(a ? w :
|
|
701
|
+
const y = a ? n : Aa(n), w = dt(y, e);
|
|
702
|
+
return -(a ? w : Va(n, w, e));
|
|
694
703
|
}
|
|
695
704
|
return NaN;
|
|
696
705
|
}
|
|
697
|
-
function
|
|
706
|
+
function Aa(e) {
|
|
698
707
|
return yt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
699
708
|
}
|
|
700
709
|
function dt(e, n) {
|
|
701
|
-
const a =
|
|
710
|
+
const a = La(e, n), i = yt(a[0], a[1] - 1, a[2], a[3] % 24, a[4], a[5], 0).getTime();
|
|
702
711
|
let l = e.getTime();
|
|
703
712
|
const d = l % 1e3;
|
|
704
713
|
return l -= d >= 0 ? d : 1e3 + d, i - l;
|
|
705
714
|
}
|
|
706
|
-
function
|
|
715
|
+
function Va(e, n, a) {
|
|
707
716
|
let i = e.getTime() - n;
|
|
708
717
|
const l = dt(new Date(i), a);
|
|
709
718
|
if (n === l)
|
|
@@ -716,7 +725,7 @@ function Wt(e, n) {
|
|
|
716
725
|
return -23 <= e && e <= 23 && (n == null || 0 <= n && n <= 59);
|
|
717
726
|
}
|
|
718
727
|
const Zt = {};
|
|
719
|
-
function
|
|
728
|
+
function Ba(e) {
|
|
720
729
|
if (Zt[e])
|
|
721
730
|
return !0;
|
|
722
731
|
try {
|
|
@@ -729,7 +738,7 @@ function Jt(e) {
|
|
|
729
738
|
const n = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
730
739
|
return n.setUTCFullYear(e.getFullYear()), +e - +n;
|
|
731
740
|
}
|
|
732
|
-
const Tn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, rt = 36e5, Qt = 6e4,
|
|
741
|
+
const Tn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, rt = 36e5, Qt = 6e4, ba = 2, z = {
|
|
733
742
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
734
743
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
735
744
|
// year tokens
|
|
@@ -768,7 +777,7 @@ function mt(e, n = {}) {
|
|
|
768
777
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
769
778
|
if (e === null)
|
|
770
779
|
return /* @__PURE__ */ new Date(NaN);
|
|
771
|
-
const a = n.additionalDigits == null ?
|
|
780
|
+
const a = n.additionalDigits == null ? ba : Number(n.additionalDigits);
|
|
772
781
|
if (a !== 2 && a !== 1 && a !== 0)
|
|
773
782
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
774
783
|
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
|
|
@@ -777,13 +786,13 @@ function mt(e, n = {}) {
|
|
|
777
786
|
return new Date(e);
|
|
778
787
|
if (Object.prototype.toString.call(e) !== "[object String]")
|
|
779
788
|
return /* @__PURE__ */ new Date(NaN);
|
|
780
|
-
const i =
|
|
789
|
+
const i = za(e), { year: l, restDateString: d } = Ha(i.date, a), y = Ya(d, l);
|
|
781
790
|
if (y === null || isNaN(y.getTime()))
|
|
782
791
|
return /* @__PURE__ */ new Date(NaN);
|
|
783
792
|
if (y) {
|
|
784
793
|
const w = y.getTime();
|
|
785
794
|
let S = 0, D;
|
|
786
|
-
if (i.time && (S =
|
|
795
|
+
if (i.time && (S = $a(i.time), S === null || isNaN(S)))
|
|
787
796
|
return /* @__PURE__ */ new Date(NaN);
|
|
788
797
|
if (i.timeZone || n.timeZone) {
|
|
789
798
|
if (D = be(i.timeZone || n.timeZone, new Date(w + S)), isNaN(D))
|
|
@@ -794,7 +803,7 @@ function mt(e, n = {}) {
|
|
|
794
803
|
} else
|
|
795
804
|
return /* @__PURE__ */ new Date(NaN);
|
|
796
805
|
}
|
|
797
|
-
function
|
|
806
|
+
function za(e) {
|
|
798
807
|
const n = {};
|
|
799
808
|
let a = z.dateTimePattern.exec(e), i;
|
|
800
809
|
if (a ? (n.date = a[1], i = a[3]) : (a = z.datePattern.exec(e), a ? (n.date = a[1], i = a[2]) : (n.date = null, i = e)), i) {
|
|
@@ -803,7 +812,7 @@ function Ba(e) {
|
|
|
803
812
|
}
|
|
804
813
|
return n;
|
|
805
814
|
}
|
|
806
|
-
function
|
|
815
|
+
function Ha(e, n) {
|
|
807
816
|
if (e) {
|
|
808
817
|
const a = z.YYY[n], i = z.YYYYY[n];
|
|
809
818
|
let l = z.YYYY.exec(e) || i.exec(e);
|
|
@@ -826,7 +835,7 @@ function ba(e, n) {
|
|
|
826
835
|
year: null
|
|
827
836
|
};
|
|
828
837
|
}
|
|
829
|
-
function
|
|
838
|
+
function Ya(e, n) {
|
|
830
839
|
if (n === null)
|
|
831
840
|
return null;
|
|
832
841
|
let a, i, l;
|
|
@@ -838,7 +847,7 @@ function za(e, n) {
|
|
|
838
847
|
if (d = z.DDD.exec(e), d) {
|
|
839
848
|
a = /* @__PURE__ */ new Date(0);
|
|
840
849
|
const y = parseInt(d[1], 10);
|
|
841
|
-
return
|
|
850
|
+
return qa(n, y) ? (a.setUTCFullYear(n, 0, y), a) : /* @__PURE__ */ new Date(NaN);
|
|
842
851
|
}
|
|
843
852
|
if (d = z.MMDD.exec(e), d) {
|
|
844
853
|
a = /* @__PURE__ */ new Date(0), i = parseInt(d[1], 10) - 1;
|
|
@@ -854,7 +863,7 @@ function za(e, n) {
|
|
|
854
863
|
}
|
|
855
864
|
return null;
|
|
856
865
|
}
|
|
857
|
-
function
|
|
866
|
+
function $a(e) {
|
|
858
867
|
let n, a, i = z.HH.exec(e);
|
|
859
868
|
if (i)
|
|
860
869
|
return n = parseFloat(i[1].replace(",", ".")), at(n) ? n % 24 * rt : NaN;
|
|
@@ -874,7 +883,7 @@ function Xt(e, n, a) {
|
|
|
874
883
|
const l = i.getUTCDay() || 7, d = n * 7 + a + 1 - l;
|
|
875
884
|
return i.setUTCDate(i.getUTCDate() + d), i;
|
|
876
885
|
}
|
|
877
|
-
const
|
|
886
|
+
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];
|
|
878
887
|
function Sn(e) {
|
|
879
888
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
880
889
|
}
|
|
@@ -885,12 +894,12 @@ function en(e, n, a) {
|
|
|
885
894
|
if (a < 1)
|
|
886
895
|
return !1;
|
|
887
896
|
const i = Sn(e);
|
|
888
|
-
if (i && a >
|
|
897
|
+
if (i && a > Ka[n] || !i && a > ja[n])
|
|
889
898
|
return !1;
|
|
890
899
|
}
|
|
891
900
|
return !0;
|
|
892
901
|
}
|
|
893
|
-
function
|
|
902
|
+
function qa(e, n) {
|
|
894
903
|
if (n < 1)
|
|
895
904
|
return !1;
|
|
896
905
|
const a = Sn(e);
|
|
@@ -902,28 +911,28 @@ function tn(e, n) {
|
|
|
902
911
|
function at(e, n, a) {
|
|
903
912
|
return !(e < 0 || e >= 25 || n != null && (n < 0 || n >= 60) || a != null && (a < 0 || a >= 60));
|
|
904
913
|
}
|
|
905
|
-
function
|
|
914
|
+
function Wa(e, n, a) {
|
|
906
915
|
e = mt(e, a);
|
|
907
916
|
const i = be(n, e, !0), l = new Date(e.getTime() - i), d = /* @__PURE__ */ new Date(0);
|
|
908
917
|
return d.setFullYear(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate()), d.setHours(l.getUTCHours(), l.getUTCMinutes(), l.getUTCSeconds(), l.getUTCMilliseconds()), d;
|
|
909
918
|
}
|
|
910
|
-
function
|
|
919
|
+
function Za(e, n, a) {
|
|
911
920
|
if (typeof e == "string" && !e.match(Tn))
|
|
912
921
|
return mt(e, { ...a, timeZone: n });
|
|
913
922
|
e = mt(e, a);
|
|
914
923
|
const i = yt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), l = be(n, new Date(i));
|
|
915
924
|
return new Date(i + l);
|
|
916
925
|
}
|
|
917
|
-
function
|
|
926
|
+
function Ja(e, n) {
|
|
918
927
|
return -be(e, n);
|
|
919
928
|
}
|
|
920
929
|
var Oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ue = { exports: {} };
|
|
921
930
|
Ue.exports;
|
|
922
931
|
var nn;
|
|
923
|
-
function
|
|
932
|
+
function Qa() {
|
|
924
933
|
return nn || (nn = 1, (function(e, n) {
|
|
925
|
-
var a = 200, i = "__lodash_hash_undefined__", l = 9007199254740991, d = "[object Arguments]", y = "[object Array]", w = "[object Boolean]", S = "[object Date]", D = "[object Error]", h = "[object Function]",
|
|
926
|
-
k[d] = k[y] = k[q] = k[p] = k[w] = k[S] = k[g] = k[s] = k[m] = k[_] = k[x] = k[L] = k[
|
|
934
|
+
var a = 200, i = "__lodash_hash_undefined__", l = 9007199254740991, d = "[object Arguments]", y = "[object Array]", w = "[object Boolean]", S = "[object Date]", D = "[object Error]", h = "[object Function]", E = "[object GeneratorFunction]", L = "[object Map]", R = "[object Number]", P = "[object Object]", O = "[object Promise]", C = "[object RegExp]", V = "[object Set]", U = "[object String]", b = "[object Symbol]", I = "[object WeakMap]", q = "[object ArrayBuffer]", p = "[object DataView]", g = "[object Float32Array]", s = "[object Float64Array]", m = "[object Int8Array]", _ = "[object Int16Array]", x = "[object Int32Array]", t = "[object Uint8Array]", o = "[object Uint8ClampedArray]", u = "[object Uint16Array]", F = "[object Uint32Array]", T = /[\\^$.*+?()[\]{}|]/g, N = /\w*$/, G = /^\[object .+?Constructor\]$/, $ = /^(?:0|[1-9]\d*)$/, k = {};
|
|
935
|
+
k[d] = k[y] = k[q] = k[p] = k[w] = k[S] = k[g] = k[s] = k[m] = k[_] = k[x] = k[L] = k[R] = k[P] = k[C] = k[V] = k[U] = k[b] = k[t] = k[o] = k[u] = k[F] = !0, k[D] = k[h] = k[I] = !1;
|
|
927
936
|
var ee = typeof Oe == "object" && Oe && Oe.Object === Object && Oe, he = typeof self == "object" && self && self.Object === Object && self, Z = ee || he || Function("return this")(), _t = n && !n.nodeType && n, gt = _t && !0 && e && !e.nodeType && e, Dn = gt && gt.exports === _t;
|
|
928
937
|
function Nn(r, c) {
|
|
929
938
|
return r.set(c[0], c[1]), r;
|
|
@@ -931,12 +940,12 @@ function Za() {
|
|
|
931
940
|
function kn(r, c) {
|
|
932
941
|
return r.add(c), r;
|
|
933
942
|
}
|
|
934
|
-
function
|
|
943
|
+
function Rn(r, c) {
|
|
935
944
|
for (var f = -1, M = r ? r.length : 0; ++f < M && c(r[f], f, r) !== !1; )
|
|
936
945
|
;
|
|
937
946
|
return r;
|
|
938
947
|
}
|
|
939
|
-
function
|
|
948
|
+
function En(r, c) {
|
|
940
949
|
for (var f = -1, M = c.length, B = r.length; ++f < M; )
|
|
941
950
|
r[B + f] = c[f];
|
|
942
951
|
return r;
|
|
@@ -985,7 +994,7 @@ function Za() {
|
|
|
985
994
|
return r ? "Symbol(src)_1." + r : "";
|
|
986
995
|
})(), Tt = On.toString, te = Se.hasOwnProperty, De = Se.toString, In = RegExp(
|
|
987
996
|
"^" + Tt.call(te).replace(T, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
988
|
-
), St = Dn ? Z.Buffer : void 0, Dt = Z.Symbol, Nt = Z.Uint8Array, Cn = ze(Object.getPrototypeOf, Object), Un = Object.create, An = Se.propertyIsEnumerable, Vn = Gn.splice, kt = Object.getOwnPropertySymbols, Bn = St ? St.isBuffer : void 0, bn = ze(Object.keys, Object), Ye =
|
|
997
|
+
), St = Dn ? Z.Buffer : void 0, Dt = Z.Symbol, Nt = Z.Uint8Array, Cn = ze(Object.getPrototypeOf, Object), Un = Object.create, An = Se.propertyIsEnumerable, Vn = Gn.splice, kt = Object.getOwnPropertySymbols, Bn = St ? St.isBuffer : void 0, bn = ze(Object.keys, Object), Ye = de(Z, "DataView"), _e = de(Z, "Map"), $e = de(Z, "Promise"), je = de(Z, "Set"), Ke = de(Z, "WeakMap"), ge = de(Object, "create"), zn = ie(Ye), Hn = ie(_e), Yn = ie($e), $n = ie(je), jn = ie(Ke), Rt = Dt ? Dt.prototype : void 0, Et = Rt ? Rt.valueOf : void 0;
|
|
989
998
|
function re(r) {
|
|
990
999
|
var c = -1, f = r ? r.length : 0;
|
|
991
1000
|
for (this.clear(); ++c < f; ) {
|
|
@@ -1045,7 +1054,7 @@ function Za() {
|
|
|
1045
1054
|
return M < 0 ? f.push([r, c]) : f[M][1] = c, this;
|
|
1046
1055
|
}
|
|
1047
1056
|
J.prototype.clear = Qn, J.prototype.delete = Xn, J.prototype.get = er, J.prototype.has = tr, J.prototype.set = nr;
|
|
1048
|
-
function
|
|
1057
|
+
function ue(r) {
|
|
1049
1058
|
var c = -1, f = r ? r.length : 0;
|
|
1050
1059
|
for (this.clear(); ++c < f; ) {
|
|
1051
1060
|
var M = r[c];
|
|
@@ -1071,8 +1080,8 @@ function Za() {
|
|
|
1071
1080
|
function sr(r, c) {
|
|
1072
1081
|
return ke(this, r).set(r, c), this;
|
|
1073
1082
|
}
|
|
1074
|
-
|
|
1075
|
-
function
|
|
1083
|
+
ue.prototype.clear = rr, ue.prototype.delete = ar, ue.prototype.get = ir, ue.prototype.has = or, ue.prototype.set = sr;
|
|
1084
|
+
function ce(r) {
|
|
1076
1085
|
this.__data__ = new J(r);
|
|
1077
1086
|
}
|
|
1078
1087
|
function lr() {
|
|
@@ -1093,11 +1102,11 @@ function Za() {
|
|
|
1093
1102
|
var M = f.__data__;
|
|
1094
1103
|
if (!_e || M.length < a - 1)
|
|
1095
1104
|
return M.push([r, c]), this;
|
|
1096
|
-
f = this.__data__ = new
|
|
1105
|
+
f = this.__data__ = new ue(M);
|
|
1097
1106
|
}
|
|
1098
1107
|
return f.set(r, c), this;
|
|
1099
1108
|
}
|
|
1100
|
-
|
|
1109
|
+
ce.prototype.clear = lr, ce.prototype.delete = ur, ce.prototype.get = cr, ce.prototype.has = dr, ce.prototype.set = mr;
|
|
1101
1110
|
function fr(r, c) {
|
|
1102
1111
|
var f = Ze(r) || Ur(r) ? Ln(r.length, String) : [], M = f.length, B = !!M;
|
|
1103
1112
|
for (var H in r)
|
|
@@ -1121,49 +1130,49 @@ function Za() {
|
|
|
1121
1130
|
var Y;
|
|
1122
1131
|
if (M && (Y = H ? M(r, B, H, Q) : M(r)), Y !== void 0)
|
|
1123
1132
|
return Y;
|
|
1124
|
-
if (!
|
|
1133
|
+
if (!Re(r))
|
|
1125
1134
|
return r;
|
|
1126
1135
|
var At = Ze(r);
|
|
1127
1136
|
if (At) {
|
|
1128
|
-
if (Y =
|
|
1137
|
+
if (Y = Er(r), !c)
|
|
1129
1138
|
return Nr(r, Y);
|
|
1130
1139
|
} else {
|
|
1131
|
-
var
|
|
1140
|
+
var me = ae(r), Vt = me == h || me == E;
|
|
1132
1141
|
if (Vr(r))
|
|
1133
1142
|
return vr(r, c);
|
|
1134
|
-
if (
|
|
1143
|
+
if (me == P || me == d || Vt && !H) {
|
|
1135
1144
|
if (vt(r))
|
|
1136
1145
|
return H ? r : {};
|
|
1137
1146
|
if (Y = Lr(Vt ? {} : r), !c)
|
|
1138
1147
|
return kr(r, pr(Y, r));
|
|
1139
1148
|
} else {
|
|
1140
|
-
if (!k[
|
|
1149
|
+
if (!k[me])
|
|
1141
1150
|
return H ? r : {};
|
|
1142
|
-
Y = Pr(r,
|
|
1151
|
+
Y = Pr(r, me, qe, c);
|
|
1143
1152
|
}
|
|
1144
1153
|
}
|
|
1145
|
-
Q || (Q = new
|
|
1154
|
+
Q || (Q = new ce());
|
|
1146
1155
|
var Bt = Q.get(r);
|
|
1147
1156
|
if (Bt)
|
|
1148
1157
|
return Bt;
|
|
1149
1158
|
if (Q.set(r, Y), !At)
|
|
1150
|
-
var bt = f ?
|
|
1151
|
-
return
|
|
1152
|
-
bt && (
|
|
1159
|
+
var bt = f ? Rr(r) : Je(r);
|
|
1160
|
+
return Rn(bt || r, function(Qe, Ee) {
|
|
1161
|
+
bt && (Ee = Qe, Qe = r[Ee]), Lt(Y, Ee, qe(Qe, c, f, M, Ee, r, Q));
|
|
1153
1162
|
}), Y;
|
|
1154
1163
|
}
|
|
1155
1164
|
function yr(r) {
|
|
1156
|
-
return
|
|
1165
|
+
return Re(r) ? Un(r) : {};
|
|
1157
1166
|
}
|
|
1158
1167
|
function hr(r, c, f) {
|
|
1159
1168
|
var M = c(r);
|
|
1160
|
-
return Ze(r) ? M :
|
|
1169
|
+
return Ze(r) ? M : En(M, f(r));
|
|
1161
1170
|
}
|
|
1162
1171
|
function _r(r) {
|
|
1163
1172
|
return De.call(r);
|
|
1164
1173
|
}
|
|
1165
1174
|
function gr(r) {
|
|
1166
|
-
if (!
|
|
1175
|
+
if (!Re(r) || Ir(r))
|
|
1167
1176
|
return !1;
|
|
1168
1177
|
var c = Ut(r) || vt(r) ? In : G;
|
|
1169
1178
|
return c.test(ie(r));
|
|
@@ -1203,7 +1212,7 @@ function Za() {
|
|
|
1203
1212
|
return wt(M, kn, new r.constructor());
|
|
1204
1213
|
}
|
|
1205
1214
|
function Sr(r) {
|
|
1206
|
-
return
|
|
1215
|
+
return Et ? Object(Et.call(r)) : {};
|
|
1207
1216
|
}
|
|
1208
1217
|
function Dr(r, c) {
|
|
1209
1218
|
var f = c ? We(r.buffer) : r.buffer;
|
|
@@ -1226,14 +1235,14 @@ function Za() {
|
|
|
1226
1235
|
function kr(r, c) {
|
|
1227
1236
|
return Pt(r, Gt(r), c);
|
|
1228
1237
|
}
|
|
1229
|
-
function
|
|
1238
|
+
function Rr(r) {
|
|
1230
1239
|
return hr(r, Je, Gt);
|
|
1231
1240
|
}
|
|
1232
1241
|
function ke(r, c) {
|
|
1233
1242
|
var f = r.__data__;
|
|
1234
1243
|
return Or(c) ? f[typeof c == "string" ? "string" : "hash"] : f.map;
|
|
1235
1244
|
}
|
|
1236
|
-
function
|
|
1245
|
+
function de(r, c) {
|
|
1237
1246
|
var f = Pn(r, c);
|
|
1238
1247
|
return gr(f) ? f : void 0;
|
|
1239
1248
|
}
|
|
@@ -1255,7 +1264,7 @@ function Za() {
|
|
|
1255
1264
|
}
|
|
1256
1265
|
return c;
|
|
1257
1266
|
});
|
|
1258
|
-
function
|
|
1267
|
+
function Er(r) {
|
|
1259
1268
|
var c = r.length, f = r.constructor(c);
|
|
1260
1269
|
return c && typeof r[0] == "string" && te.call(r, "index") && (f.index = r.index, f.input = r.input), f;
|
|
1261
1270
|
}
|
|
@@ -1284,7 +1293,7 @@ function Za() {
|
|
|
1284
1293
|
return Dr(r, M);
|
|
1285
1294
|
case L:
|
|
1286
1295
|
return Fr(r, M, f);
|
|
1287
|
-
case
|
|
1296
|
+
case R:
|
|
1288
1297
|
case U:
|
|
1289
1298
|
return new B(r);
|
|
1290
1299
|
case C:
|
|
@@ -1340,13 +1349,13 @@ function Za() {
|
|
|
1340
1349
|
}
|
|
1341
1350
|
var Vr = Bn || Hr;
|
|
1342
1351
|
function Ut(r) {
|
|
1343
|
-
var c =
|
|
1344
|
-
return c == h || c ==
|
|
1352
|
+
var c = Re(r) ? De.call(r) : "";
|
|
1353
|
+
return c == h || c == E;
|
|
1345
1354
|
}
|
|
1346
1355
|
function Br(r) {
|
|
1347
1356
|
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= l;
|
|
1348
1357
|
}
|
|
1349
|
-
function
|
|
1358
|
+
function Re(r) {
|
|
1350
1359
|
var c = typeof r;
|
|
1351
1360
|
return !!r && (c == "object" || c == "function");
|
|
1352
1361
|
}
|
|
@@ -1365,8 +1374,8 @@ function Za() {
|
|
|
1365
1374
|
e.exports = Cr;
|
|
1366
1375
|
})(Ue, Ue.exports)), Ue.exports;
|
|
1367
1376
|
}
|
|
1368
|
-
|
|
1369
|
-
const K = (e, n) => new Date(e.getTime() -
|
|
1377
|
+
Qa();
|
|
1378
|
+
const K = (e, n) => new Date(e.getTime() - Ja(n, e));
|
|
1370
1379
|
class A {
|
|
1371
1380
|
timeframeText;
|
|
1372
1381
|
key;
|
|
@@ -1436,11 +1445,11 @@ class A {
|
|
|
1436
1445
|
tzAdjustedDate(n) {
|
|
1437
1446
|
if (!n)
|
|
1438
1447
|
return /* @__PURE__ */ new Date();
|
|
1439
|
-
const a =
|
|
1440
|
-
return
|
|
1448
|
+
const a = Za(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
1449
|
+
return Wa(a, n);
|
|
1441
1450
|
}
|
|
1442
1451
|
}
|
|
1443
|
-
class
|
|
1452
|
+
class Xa extends A {
|
|
1444
1453
|
rawStart(n) {
|
|
1445
1454
|
let a = Be(this.tzAdjustedDate(n), { weekStartsOn: 1 });
|
|
1446
1455
|
return n && (a = K(a, n)), a;
|
|
@@ -1449,25 +1458,25 @@ class Ja extends A {
|
|
|
1449
1458
|
return 3600 * 24 * 7;
|
|
1450
1459
|
}
|
|
1451
1460
|
}
|
|
1452
|
-
class
|
|
1461
|
+
class ei extends A {
|
|
1453
1462
|
rawStart(n) {
|
|
1454
|
-
let a =
|
|
1463
|
+
let a = pe(this.tzAdjustedDate(n));
|
|
1455
1464
|
return n && (a = K(a, n)), a;
|
|
1456
1465
|
}
|
|
1457
1466
|
maximumTimeframeLength() {
|
|
1458
1467
|
return 3600 * 24 * 31;
|
|
1459
1468
|
}
|
|
1460
1469
|
}
|
|
1461
|
-
class
|
|
1470
|
+
class ti extends A {
|
|
1462
1471
|
rawStart(n) {
|
|
1463
|
-
let a =
|
|
1472
|
+
let a = fe(this.tzAdjustedDate(n));
|
|
1464
1473
|
return n && (a = K(a, n)), a;
|
|
1465
1474
|
}
|
|
1466
1475
|
maximumTimeframeLength() {
|
|
1467
1476
|
return 3600 * 24 * 92;
|
|
1468
1477
|
}
|
|
1469
1478
|
}
|
|
1470
|
-
class
|
|
1479
|
+
class ni extends A {
|
|
1471
1480
|
rawStart(n) {
|
|
1472
1481
|
let a = new Date(this.tzAdjustedDate(n).getFullYear(), 0, 1);
|
|
1473
1482
|
return n && (a = K(a, n)), a;
|
|
@@ -1476,7 +1485,7 @@ class ei extends A {
|
|
|
1476
1485
|
return 3600 * 24 * 366;
|
|
1477
1486
|
}
|
|
1478
1487
|
}
|
|
1479
|
-
class
|
|
1488
|
+
class ri extends A {
|
|
1480
1489
|
rawEnd(n) {
|
|
1481
1490
|
let a = Be(this.tzAdjustedDate(n), { weekStartsOn: 1 });
|
|
1482
1491
|
return n && (a = K(a, n)), a;
|
|
@@ -1489,27 +1498,27 @@ class ti extends A {
|
|
|
1489
1498
|
return n && (i = K(i, n)), i;
|
|
1490
1499
|
}
|
|
1491
1500
|
}
|
|
1492
|
-
class
|
|
1501
|
+
class ai extends A {
|
|
1493
1502
|
rawEnd(n) {
|
|
1494
|
-
let a =
|
|
1503
|
+
let a = fe(this.tzAdjustedDate(n));
|
|
1495
1504
|
return n && (a = K(a, n)), a;
|
|
1496
1505
|
}
|
|
1497
1506
|
rawStart(n) {
|
|
1498
|
-
let a =
|
|
1507
|
+
let a = fe(Mn(this.tzAdjustedDate(n)));
|
|
1499
1508
|
return n && (a = K(a, n)), a;
|
|
1500
1509
|
}
|
|
1501
1510
|
}
|
|
1502
|
-
class
|
|
1511
|
+
class ii extends A {
|
|
1503
1512
|
rawEnd(n) {
|
|
1504
|
-
let a =
|
|
1513
|
+
let a = pe(this.tzAdjustedDate(n));
|
|
1505
1514
|
return n && (a = K(a, n)), a;
|
|
1506
1515
|
}
|
|
1507
1516
|
rawStart(n) {
|
|
1508
|
-
let a =
|
|
1517
|
+
let a = pe(Fn(this.tzAdjustedDate(n)));
|
|
1509
1518
|
return n && (a = K(a, n)), a;
|
|
1510
1519
|
}
|
|
1511
1520
|
}
|
|
1512
|
-
class
|
|
1521
|
+
class oi extends A {
|
|
1513
1522
|
rawEnd(n) {
|
|
1514
1523
|
let a = new Date(this.tzAdjustedDate(n).getFullYear(), 0, 1);
|
|
1515
1524
|
return n && (a = K(a, n)), a;
|
|
@@ -1629,7 +1638,7 @@ v.FIFTEEN_MIN, new A({
|
|
|
1629
1638
|
fineGrainedDefaultGranularity: "daily",
|
|
1630
1639
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
1631
1640
|
allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
|
|
1632
|
-
}), v.CURRENT_WEEK, new
|
|
1641
|
+
}), v.CURRENT_WEEK, new Xa({
|
|
1633
1642
|
key: v.CURRENT_WEEK,
|
|
1634
1643
|
display: "This week",
|
|
1635
1644
|
timeframeText: "Week",
|
|
@@ -1643,31 +1652,31 @@ v.FIFTEEN_MIN, new A({
|
|
|
1643
1652
|
fineGrainedDefaultGranularity: "twoHourly",
|
|
1644
1653
|
allowedTiers: ["plus", "enterprise"],
|
|
1645
1654
|
allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
|
|
1646
|
-
}), v.CURRENT_MONTH, new
|
|
1655
|
+
}), v.CURRENT_MONTH, new ei({
|
|
1647
1656
|
key: v.CURRENT_MONTH,
|
|
1648
1657
|
display: "This month",
|
|
1649
1658
|
timeframeText: "Month",
|
|
1650
1659
|
timeframeLength: () => {
|
|
1651
|
-
const e =
|
|
1660
|
+
const e = pe(/* @__PURE__ */ new Date());
|
|
1652
1661
|
return (Pe(Ge(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
1653
1662
|
},
|
|
1654
1663
|
defaultResponseGranularity: "daily",
|
|
1655
1664
|
dataGranularity: "daily",
|
|
1656
1665
|
isRelative: !1,
|
|
1657
1666
|
allowedTiers: ["plus", "enterprise"]
|
|
1658
|
-
}), v.CURRENT_QUARTER, new
|
|
1667
|
+
}), v.CURRENT_QUARTER, new ti({
|
|
1659
1668
|
key: v.CURRENT_QUARTER,
|
|
1660
1669
|
display: "This quarter",
|
|
1661
1670
|
timeframeText: "Quarter",
|
|
1662
1671
|
timeframeLength: () => {
|
|
1663
|
-
const e =
|
|
1672
|
+
const e = fe(/* @__PURE__ */ new Date());
|
|
1664
1673
|
return (Pe(Ge(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
1665
1674
|
},
|
|
1666
1675
|
defaultResponseGranularity: "daily",
|
|
1667
1676
|
dataGranularity: "daily",
|
|
1668
1677
|
isRelative: !1,
|
|
1669
1678
|
allowedTiers: ["plus", "enterprise"]
|
|
1670
|
-
}), v.CURRENT_YEAR, new
|
|
1679
|
+
}), v.CURRENT_YEAR, new ni({
|
|
1671
1680
|
key: v.CURRENT_YEAR,
|
|
1672
1681
|
display: "This year",
|
|
1673
1682
|
timeframeText: "Year",
|
|
@@ -1679,7 +1688,7 @@ v.FIFTEEN_MIN, new A({
|
|
|
1679
1688
|
dataGranularity: "daily",
|
|
1680
1689
|
isRelative: !1,
|
|
1681
1690
|
allowedTiers: ["plus", "enterprise"]
|
|
1682
|
-
}), v.PREVIOUS_WEEK, new
|
|
1691
|
+
}), v.PREVIOUS_WEEK, new ri({
|
|
1683
1692
|
key: v.PREVIOUS_WEEK,
|
|
1684
1693
|
display: "Previous week",
|
|
1685
1694
|
timeframeText: "Week",
|
|
@@ -1690,32 +1699,32 @@ v.FIFTEEN_MIN, new A({
|
|
|
1690
1699
|
fineGrainedDefaultGranularity: "twoHourly",
|
|
1691
1700
|
allowedTiers: ["plus", "enterprise"],
|
|
1692
1701
|
allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
|
|
1693
|
-
}), v.PREVIOUS_MONTH, new
|
|
1702
|
+
}), v.PREVIOUS_MONTH, new ii({
|
|
1694
1703
|
key: v.PREVIOUS_MONTH,
|
|
1695
1704
|
display: "Previous month",
|
|
1696
1705
|
timeframeText: "Month",
|
|
1697
1706
|
timeframeLength: () => {
|
|
1698
1707
|
let e = 0;
|
|
1699
|
-
const n =
|
|
1700
|
-
return n.getTimezoneOffset() !== a.getTimezoneOffset() && (e = rn(n, a)), 3600 * 24 *
|
|
1708
|
+
const n = pe(/* @__PURE__ */ new Date()), a = pe(Fn(/* @__PURE__ */ new Date()));
|
|
1709
|
+
return n.getTimezoneOffset() !== a.getTimezoneOffset() && (e = rn(n, a)), 3600 * 24 * Ra((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + jt(e);
|
|
1701
1710
|
},
|
|
1702
1711
|
defaultResponseGranularity: "daily",
|
|
1703
1712
|
dataGranularity: "daily",
|
|
1704
1713
|
isRelative: !1,
|
|
1705
1714
|
allowedTiers: ["plus", "enterprise"]
|
|
1706
|
-
}), v.PREVIOUS_QUARTER, new
|
|
1715
|
+
}), v.PREVIOUS_QUARTER, new ai({
|
|
1707
1716
|
key: v.PREVIOUS_QUARTER,
|
|
1708
1717
|
display: "Previous quarter",
|
|
1709
1718
|
timeframeText: "Quarter",
|
|
1710
1719
|
timeframeLength: () => {
|
|
1711
|
-
const e =
|
|
1720
|
+
const e = fe(/* @__PURE__ */ new Date()), n = fe(Mn(/* @__PURE__ */ new Date()));
|
|
1712
1721
|
return (e.getTime() - n.getTime()) / 1e3;
|
|
1713
1722
|
},
|
|
1714
1723
|
defaultResponseGranularity: "daily",
|
|
1715
1724
|
dataGranularity: "daily",
|
|
1716
1725
|
isRelative: !1,
|
|
1717
1726
|
allowedTiers: ["plus", "enterprise"]
|
|
1718
|
-
}), v.PREVIOUS_YEAR, new
|
|
1727
|
+
}), v.PREVIOUS_YEAR, new oi({
|
|
1719
1728
|
key: v.PREVIOUS_YEAR,
|
|
1720
1729
|
display: "Previous year",
|
|
1721
1730
|
timeframeText: "Year",
|
|
@@ -1730,11 +1739,11 @@ v.FIFTEEN_MIN, new A({
|
|
|
1730
1739
|
allowedTiers: ["plus", "enterprise"]
|
|
1731
1740
|
});
|
|
1732
1741
|
function rn(e, n) {
|
|
1733
|
-
return
|
|
1742
|
+
return Ea(e.getTimezoneOffset() - n.getTimezoneOffset());
|
|
1734
1743
|
}
|
|
1735
1744
|
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;
|
|
1736
1745
|
new Map(pt.map((e) => [e.code, { code: e.code, name: e.name }]));
|
|
1737
|
-
const an = 1e3,
|
|
1746
|
+
const an = 1e3, si = 1e4, on = 1e6, sn = 1e9, ln = 1e12, Ae = (e, n) => {
|
|
1738
1747
|
if (n.separator === !1 || e < 1e3)
|
|
1739
1748
|
return e.toString();
|
|
1740
1749
|
const a = typeof n.separator == "string" ? n.separator : ",", i = [];
|
|
@@ -1754,12 +1763,12 @@ function Ve(e, n = {}) {
|
|
|
1754
1763
|
let a;
|
|
1755
1764
|
const i = e < 0;
|
|
1756
1765
|
i && (e = Math.abs(e)), n.precision && (e = parseFloat(e.toPrecision(n.precision)));
|
|
1757
|
-
const l = n.min10k ?
|
|
1766
|
+
const l = n.min10k ? si : an;
|
|
1758
1767
|
return e < l || n.precision && n.precision > Math.log10(e) ? a = Ae(ve(e, 1, n), n) : e < on ? a = `${ve(e, an, n)}k` : e < sn ? a = `${ve(e, on, n)}m` : e < ln ? a = `${Ae(ve(e, sn, n), n)}b` : a = `${Ae(ve(e, ln, n), n)}t`, i && (a = `-${a}`), n.capital && (a = a.toUpperCase()), n.prefix && (a = `${n.prefix}${a}`), n.suffix && (a = `${a}${n.suffix}`), a;
|
|
1759
1768
|
}
|
|
1760
1769
|
Ve.addCommas = Ae;
|
|
1761
|
-
const
|
|
1762
|
-
function
|
|
1770
|
+
const li = typeof document < "u" && document.documentElement?.lang || "en-US", it = new Intl.NumberFormat(li);
|
|
1771
|
+
function ui({
|
|
1763
1772
|
i18n: e
|
|
1764
1773
|
}) {
|
|
1765
1774
|
const n = (i, l) => {
|
|
@@ -1820,17 +1829,17 @@ function si({
|
|
|
1820
1829
|
if (S)
|
|
1821
1830
|
return `${Ve(i, { capital: !0 })} - ${Ve(l, { capital: !0 })} ${h}`;
|
|
1822
1831
|
}
|
|
1823
|
-
const
|
|
1824
|
-
return `${
|
|
1832
|
+
const E = i >= 0.01 ? `${it.format(Number.parseFloat(i.toFixed(2)))}` : `${Number.parseFloat(i.toPrecision(4))}`, L = l >= 0.01 ? `${it.format(Number.parseFloat(l.toFixed(2)))}` : `${Number.parseFloat(l.toPrecision(4))}`;
|
|
1833
|
+
return `${E} - ${L} ${h}`;
|
|
1825
1834
|
} };
|
|
1826
1835
|
}
|
|
1827
|
-
const Fe = "#e0e4ea",
|
|
1836
|
+
const Fe = "#e0e4ea", ci = "#828a9e", di = "32px", un = 5, ot = [
|
|
1828
1837
|
"#00819d",
|
|
1829
1838
|
"#00abd2",
|
|
1830
1839
|
"#00c8f4",
|
|
1831
1840
|
"#67e3ff",
|
|
1832
1841
|
"#b3f1ff"
|
|
1833
|
-
],
|
|
1842
|
+
], mi = (e, n) => {
|
|
1834
1843
|
const a = e.length;
|
|
1835
1844
|
if (!a)
|
|
1836
1845
|
return NaN;
|
|
@@ -1842,31 +1851,31 @@ const Fe = "#e0e4ea", li = "#828a9e", ui = "32px", un = 5, ot = [
|
|
|
1842
1851
|
const a = e.filter((w) => w > 0).map(Math.log).sort((w, S) => w - S), i = Math.min(...a), d = (Math.max(...a) - i) / n;
|
|
1843
1852
|
return Array.from({ length: n }, (w, S) => i + S * d).map((w) => Math.exp(w)).reverse();
|
|
1844
1853
|
};
|
|
1845
|
-
function
|
|
1854
|
+
function fi({
|
|
1846
1855
|
countryMetrics: e,
|
|
1847
1856
|
metric: n,
|
|
1848
1857
|
unit: a
|
|
1849
1858
|
}) {
|
|
1850
1859
|
const { formatMetric: i, formatMetricRange: l } = Me.useMetricFormat({ unit: a }), d = j(() => {
|
|
1851
|
-
const
|
|
1852
|
-
for (const P of Object.keys(
|
|
1853
|
-
pt.find((O) => O.code === P) || delete
|
|
1854
|
-
return
|
|
1860
|
+
const R = { ...e.value };
|
|
1861
|
+
for (const P of Object.keys(R))
|
|
1862
|
+
pt.find((O) => O.code === P) || delete R[P];
|
|
1863
|
+
return R;
|
|
1855
1864
|
}), y = j(() => Object.values(d.value)), w = j(() => Object.keys(d.value).length), S = j(() => w.value < un - 1 ? w.value : un), D = j(() => !n.value?.includes("latency")), h = j(() => {
|
|
1856
|
-
const
|
|
1865
|
+
const R = [];
|
|
1857
1866
|
if (y.value.length > 10) {
|
|
1858
|
-
const P = [...y.value].sort((I, q) => I - q), O =
|
|
1859
|
-
return
|
|
1867
|
+
const P = [...y.value].sort((I, q) => I - q), O = mi(P, 0.75), C = y.value.filter((I) => I >= O), V = y.value.filter((I) => I < O), U = st(C, 3), b = st(V, 2);
|
|
1868
|
+
return R.push(...U, ...b), R;
|
|
1860
1869
|
}
|
|
1861
1870
|
return st(y.value, S.value);
|
|
1862
|
-
}),
|
|
1871
|
+
}), E = j(() => y.value.length === 1 ? [{
|
|
1863
1872
|
color: L(y.value[0]),
|
|
1864
1873
|
range: i(y.value[0], {
|
|
1865
1874
|
approximate: D.value,
|
|
1866
1875
|
showUnit: !a.value.includes("count")
|
|
1867
1876
|
}).trim()
|
|
1868
|
-
}] : h.value.map((
|
|
1869
|
-
const O = P === 0 ? Math.max(...h.value) : h.value[P - 1], C =
|
|
1877
|
+
}] : h.value.map((R, P) => {
|
|
1878
|
+
const O = P === 0 ? Math.max(...h.value) : h.value[P - 1], C = R, V = O;
|
|
1870
1879
|
let U = "";
|
|
1871
1880
|
return P === 0 ? U = `> ${i(C, {
|
|
1872
1881
|
showUnit: !a.value.includes("count"),
|
|
@@ -1881,22 +1890,22 @@ function di({
|
|
|
1881
1890
|
color: L(C),
|
|
1882
1891
|
range: U
|
|
1883
1892
|
};
|
|
1884
|
-
})), L = (
|
|
1885
|
-
if (
|
|
1893
|
+
})), L = (R) => {
|
|
1894
|
+
if (R === 0)
|
|
1886
1895
|
return Fe;
|
|
1887
|
-
const P = h.value.findIndex((O) =>
|
|
1896
|
+
const P = h.value.findIndex((O) => R >= O);
|
|
1888
1897
|
return P === -1 ? ot[ot.length - 1] : ot[P] ?? Fe;
|
|
1889
1898
|
};
|
|
1890
1899
|
return {
|
|
1891
1900
|
getColor: L,
|
|
1892
|
-
legendData:
|
|
1901
|
+
legendData: E,
|
|
1893
1902
|
scale: h
|
|
1894
1903
|
};
|
|
1895
1904
|
}
|
|
1896
|
-
function
|
|
1905
|
+
function pi({
|
|
1897
1906
|
unit: e
|
|
1898
1907
|
}) {
|
|
1899
|
-
const { i18n: n } = Me.useI18n(), { formatUnit: a, formatRange: i } =
|
|
1908
|
+
const { i18n: n } = Me.useI18n(), { formatUnit: a, formatRange: i } = ui({ i18n: n });
|
|
1900
1909
|
return {
|
|
1901
1910
|
formatMetric: (y, {
|
|
1902
1911
|
showUnit: w = !0,
|
|
@@ -1916,17 +1925,17 @@ function mi({
|
|
|
1916
1925
|
}
|
|
1917
1926
|
const Me = {
|
|
1918
1927
|
useI18n: ua,
|
|
1919
|
-
useLegendScale:
|
|
1920
|
-
useMetricFormat:
|
|
1921
|
-
}, fi = "FeatureCollection", pi = /* @__PURE__ */ JSON.parse('[{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rBaikal","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[106.57998579307912,52.79998159444554],[106.53998823448521,52.93999888774037],[107.0800069519353,53.18001007751998],[107.2999935242018,53.37999787048953],[107.59997521365611,53.51998932556822],[108.03994835818912,53.859968573616456],[108.37997928266967,54.25999583598784],[109.05270307824526,55.027597561251326],[109.19346967980832,55.53560272889659],[109.50699059452313,55.73091380474372],[109.92980716353523,55.7129562445223],[109.70000206913326,54.980003567110515],[109.66000451053935,54.71999359803395],[109.47996382043448,54.33999095317566],[109.31997358605884,53.81999685323869],[109.22003136600637,53.619983222052994],[108.99999311730755,53.78002513286093],[108.60001753136845,53.4399942083804],[108.800005324338,53.37999787048953],[108.76000776574409,53.200008856816936],[108.45997439985749,53.14001251892607],[108.17999148970011,52.79998159444554],[107.79996300662566,52.579995022179034],[107.31999230349876,52.42000478780339],[106.64003380740229,52.32001089131862],[106.1000150899522,52.03997630472897],[105.740037062607,51.759993394571595],[105.24001590375084,51.52000804300813],[104.81998986208251,51.46001170511727],[104.30002160036167,51.50000926371118],[103.7600028829116,51.60000316019595],[103.6200114278329,51.73999461527464],[103.85999677939637,51.85998729105637],[104.39996382041414,51.85998729105637],[105.05997521364597,52.0000045843512],[105.4800012553143,52.28001333272471],[105.98002241417046,52.51999868428817],[106.26000532432784,52.619992580772944],[106.57998579307912,52.79998159444554]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rWinnipeg","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-98.95540137408423,53.92978343364277],[-97.95799455441879,54.337097072967325],[-97.8050064766187,54.05938792583079],[-97.64380184608419,53.42521474874492],[-96.39258622921722,51.39730235453108],[-96.23789282915149,50.6910147161819],[-96.72558915890605,50.448910630894474],[-96.92110694048235,50.75405996357799],[-97.23568722205913,51.49778717712263],[-98.20097713905517,52.18456696228162],[-99.23680538612963,53.21628693298888],[-98.95540137408423,53.92978343364277]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Great\\rSlave Lake","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-115.00000342492967,61.9723932969562],[-115.80669837122196,62.54171255151576],[-116.0585951404287,62.77880402287089],[-115.84279435917783,62.7503044704619],[-114.45259497766185,62.42820526798667],[-113.35341142459757,62.04448192000336],[-111.77890804731261,62.44360484480964],[-111.04001258018727,62.92000987410843],[-110.20001217328286,63.08000010848407],[-109.40000932497237,62.87817780216814],[-109.09010576051801,62.814099026126215],[-109.11651241741916,62.6928144395372],[-110.10089677614705,62.51561595320837],[-111.27599300824811,62.34911448836395],[-112.63050981326654,61.55991201440246],[-113.64000891808828,61.07999298770784],[-115.3409903634076,60.87659455020702],[-116.43999304895887,60.86000641544133],[-118.06110856817108,61.31196849226605],[-118.3474735177165,61.36137116153708],[-118.3849906075604,61.52110301375126],[-118.17960262741634,61.55629466414203],[-116.8028132800801,61.32589529076871],[-115.67879920129957,61.69179026961132],[-115.00000342492967,61.9723932969562]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"L. Ontario","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-79.05630591502026,43.25410431576152],[-79.36168779164908,43.20237620703736],[-79.76047481964547,43.29720246029295],[-79.46116492381094,43.639197089200565],[-79.1561706204243,43.75743276628437],[-78.45052893747877,43.9031861435636],[-77.60536088734519,44.039327704436545],[-77.16148617217414,43.850140285815996],[-76.88269181995948,44.0694550644627],[-76.56555355498425,44.20802541765336],[-76.35303422718391,44.134670722015045],[-76.23926856149336,43.979150499032656],[-76.17999569365458,43.5900011256587],[-76.9300015937227,43.2599954290428],[-77.74915056019732,43.342832750006664],[-78.53499406605984,43.379988104824534],[-79.05630591502026,43.25410431576152]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"L. Erie","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-83.12001135937246,42.08001577409016],[-82.57123348664891,42.01702220312636],[-81.82918575715374,42.33552989355732],[-81.39226152212595,42.61517690690481],[-81.09496700715081,42.66075552018623],[-80.54515560578142,42.560089830081665],[-80.27917700877515,42.71566172949635],[-79.79135148793986,42.84203644466612],[-78.92000932485044,42.96500051530464],[-78.90057898630869,42.8667119410855],[-79.76220598012725,42.269616604169045],[-80.51644934764329,41.980331936199136],[-81.03119828970264,41.845508124349635],[-81.62351355663209,41.568935858723535],[-82.34744869660895,41.435920722004255],[-82.84610043000939,41.48710622818935],[-83.46283281119673,41.69396698665372],[-83.12001135937246,42.08001577409016],[-83.12001135937246,42.08001577409016]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake Superior","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-89.60000342482806,48.00998973244721],[-89.19405921095924,48.40546946877693],[-88.62641944044917,48.56251414651193],[-88.40423661981026,48.80632355406499],[-88.17895321323383,48.93670319273738],[-87.24903581414156,48.73511343036678],[-86.56000810417788,48.71108388935106],[-86.32103044304411,48.57729360614741],[-85.98652889681881,48.01035146747326],[-84.8642201403039,47.86007640236849],[-85.04061764193222,47.575700995466306],[-84.64500871452178,47.28220469826462],[-84.81528255892351,46.90233124448706],[-84.39559241406505,46.77683502866624],[-84.60490780306328,46.439594631529474],[-84.9100054593145,46.48000560158172],[-85.11999264193253,46.76001434995524],[-86.1026200019625,46.67265534116582],[-86.99000769727856,46.45000743263628],[-87.69427995476835,46.83104360614041],[-88.2612220934425,46.958581041036766],[-87.93992387566777,47.485913194359185],[-88.82260901564527,47.154796454449],[-89.62498897984119,46.83083690041124],[-90.39703487828177,46.57648550067064],[-91.00999487991183,46.92000458433087],[-92.01192338740282,46.71167104754619],[-92.00877112503301,46.85843211525511],[-91.33000118687926,47.28000844989221],[-90.61999284540505,47.68000987404746],[-89.60000342482806,48.00998973244721]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rVictoria","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[33.85036827976734,0.128157863766091],[33.85036827976734,0.128157863766091],[34.13624230320599,-0.319308363449238],[34.0726286150547,-1.059831638191795],[33.579428745261055,-1.506005954599821],[33.251748488098286,-1.957968031424549],[33.64717654799571,-2.30089283611342],[33.07672041192572,-2.547131035984201],[32.95176679864397,-2.43044565186915],[32.37309410983957,-2.489925225437091],[31.926558058405476,-2.714511000177573],[31.648022088352292,-2.32921152100937],[31.836020949030114,-1.629305922048232],[31.866199985488578,-1.027378838712494],[31.815143670384202,-0.64042571371094],[32.27284183119332,-0.056120293786734],[32.906136508930246,0.0867650415003],[33.33184695815069,0.324993394365833],[33.85036827976734,0.128157863766091]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rLadoga","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[29.836711460089845,61.22608226179696],[29.836711460089845,61.22608226179696],[30.85199832532828,61.77504100203353],[32.52688317234018,61.11751007755173],[32.94432539239392,60.64260366478942],[32.81575442885176,60.481889960361684],[32.599901971168606,60.533514716221276],[32.583882277158125,60.20893504499601],[31.699440138482714,60.23565176049091],[31.50973595553924,59.92034800886205],[31.106246372204282,59.92768606224749],[31.10893354668346,60.14645823835514],[30.533878208139498,60.63009796817478],[30.502045525847706,60.843211574946466],[29.836711460089845,61.22608226179696]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rBalkhash","name_alt":"Balqash Köli","admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[78.99076541536459,46.748619696634876],[78.99076541536459,46.748619696634876],[79.2451684915375,46.64516347918655],[78.88989301953086,46.369934800800024],[78.44506229036242,46.29717438413307],[77.20606814973246,46.3955663112168],[75.61128177277294,46.50718740496724],[75.46333214712132,46.6706141220903],[75.40566124868357,46.47080719663377],[74.91122114451494,46.404661363300164],[74.77138471873312,46.107831936215646],[74.27802981964263,46.004065660173566],[74.0999528339648,44.98893382423201],[73.4367375019309,45.60946442319282],[73.4399931171653,45.80586070411809],[73.73713260284359,46.012747300798594],[73.67925499867667,46.18307282163262],[74.02068118682908,46.20490611427593],[74.09432010284502,46.42781240496693],[74.939384800114,46.81678091082786],[76.20313195181177,46.7800131292522],[77.18131513866464,46.64340648048862],[77.85993004752152,46.64785065366573],[78.29700931184618,46.46853343361292],[78.39710656119556,46.657669175801175],[78.99076541536459,46.748619696634876]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rTanganyika","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[30.806006300588507,-8.578339125201033],[30.46442508313922,-8.498188978716335],[30.566847771941724,-8.1150082332721],[30.27735639824263,-7.848357842646031],[30.14702843600253,-7.299244073112582],[29.536523064906334,-6.7541610652979],[29.19318484875913,-6.038029066597119],[29.371985304489016,-5.616452731960017],[29.101717563602506,-5.054006442895265],[29.281034783655315,-3.455499362810748],[29.652588331833897,-4.420143324403149],[29.600085076625334,-4.896393324405054],[29.79195966972506,-5.040880629093131],[29.758421665167646,-5.466901136907339],[29.951226434048635,-5.860985609565162],[29.722041456834177,-6.244114678577112],[30.52803877129051,-6.922729587433992],[30.604158156056457,-7.541916599155222],[31.189032016735865,-8.729906101113095],[31.022117140433124,-8.786543470904988],[30.806006300588507,-8.578339125201033],[30.806006300588507,-8.578339125201033]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake Malawi","name_alt":"Lake Nyasa","admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[35.2602047055542,-14.277474460510291],[35.236226840970915,-14.401291192281633],[34.881209751125766,-14.012012627826891],[34.706543409979076,-14.262023207255027],[34.54675988133266,-14.047669366108266],[34.55110070164528,-13.67208505621096],[34.3209338722171,-13.379389743709737],[34.32997724786827,-12.944584242405995],[34.032527703596315,-12.208556817272836],[34.322690870915096,-11.652983493702834],[34.25990400568048,-10.447579034062642],[33.906592238100984,-9.801726983278854],[33.99557905450757,-9.495440769084837],[34.52422895685345,-10.03013681400887],[34.60789310073403,-11.080511976773494],[34.93702029800096,-11.463434340056267],[34.69388268406766,-12.422393894096615],[34.86756717300062,-13.701127211159019],[35.05597944513687,-13.742933444883136],[35.2602047055542,-14.277474460510291]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Aral\\rSea","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[60.05285159692946,44.264636949229114],[59.77002648299603,44.15999217383806],[59.06288618351405,44.36928172462015],[59.34571129744745,44.99720205339871],[59.35930219914022,45.190006822279685],[58.96139367049281,45.37500844988459],[58.92144778833119,45.101846828789746],[58.92144778833119,44.73556427670495],[58.497132602782614,44.212340399749735],[58.285000848224456,44.473952338227335],[58.285000848224456,44.89255727800766],[58.689989048095896,45.50001373959863],[58.78000939314833,45.88673432065487],[59.20427290226462,45.93905670835039],[59.535002068932585,45.70501414650049],[59.55784305200561,46.30533926043519],[59.77002648299603,46.25299103452352],[60.12359663273702,46.096023871436955],[60.12359663273702,45.88673432065487],[59.94675988143425,45.808211981787366],[59.84071984237133,45.520477606786216],[60.12359663273702,45.572774156265595],[60.23997195825834,44.78403677019473],[60.05285159692946,44.264636949229114]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Vänern","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[13.979281447005576,59.20491364199721],[13.979281447005576,59.20491364199721],[13.984449090234762,59.086212877022774],[13.91892337408865,58.902503160225166],[13.28268313971111,58.608670966213566],[12.830100945698888,58.50903880475484],[12.460149366921371,58.50619660097878],[12.537767368223768,58.77594757754237],[12.522161085671598,58.880282294339665],[12.697085808979608,58.953843695707135],[13.027039829163215,58.993531195707305],[13.195298292705559,59.12900096296045],[13.59144982265505,59.336481838612315],[13.979281447005576,59.20491364199721]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Okeechobee","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-80.70643775096435,26.788959458924822],[-80.93244462759287,26.823272609966622],[-80.91970638703292,27.068916530866048],[-80.69369951040441,27.034629218040394],[-80.70643775096435,26.788959458924822],[-80.70643775096435,26.788959458924822]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lago de\\rNicaragua","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-84.85548682324658,11.147898667846633],[-85.29013729525353,11.176165676310276],[-85.79132117383625,11.509737046754324],[-85.8851655748783,11.900100816287136],[-85.5653401354239,11.940330918826362],[-85.03684526237491,11.5216484643976],[-84.85548682324658,11.147898667846633],[-84.85548682324658,11.147898667846633]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Tana","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[37.14370730972843,11.850594794151519],[37.01482628759251,12.035596421756424],[37.24401126480697,12.233878892460353],[37.518361443844526,12.160601711470477],[37.48187788264647,11.825092474815477],[37.33635704931254,11.713393866416595],[37.14370730972843,11.850594794151519],[37.14370730972843,11.850594794151519]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lago Titicaca","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-69.40673987494259,-16.126198825752063],[-69.7290974595793,-15.928794854397104],[-69.98365556504908,-15.73717864345884],[-69.8770212470148,-15.669844252182529],[-69.8679778713637,-15.546079196843493],[-69.88559953477524,-15.35425628017606],[-69.59675411647981,-15.410480238509614],[-68.98697221543571,-15.885903415594846],[-68.9596870591856,-15.91329192470954],[-68.74623755560401,-16.356003920154023],[-68.90524593776611,-16.506640720284835],[-69.00115739609983,-16.536406345284952],[-69.09084184434238,-16.461992282784657],[-69.18205074733753,-16.40116912197712],[-69.25098710801488,-16.227536309476427],[-69.40673987494259,-16.126198825752063],[-69.40673987494259,-16.126198825752063]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake\\rWinnipegosis","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-99.40377193886468,53.1258531764781],[-99.54846594928192,53.120427151087455],[-99.80498775917877,53.14290639913442],[-100.43146114785316,53.2841897650204],[-100.60685095905177,53.531616522833886],[-100.33487789589965,53.745246893928496],[-100.42673275429846,53.90740753846039],[-100.4044860501968,53.94507965760117],[-100.32629960813921,54.094011135466346],[-100.23586585162842,54.23033356385231],[-99.99549292682278,54.215864162810576],[-100.04778947630214,54.10013479269293],[-100.18356930214904,53.930351874397985],[-99.87128862180926,53.928465684619326],[-99.91066606321566,53.821314602262134],[-100.05649695514333,53.44332733826322],[-99.66551306842301,53.29581696228607],[-99.39317827024485,53.26791168884846],[-99.40377193886468,53.1258531764781],[-99.40377193886468,53.1258531764781]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake\\rOnega","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[35.71464725112901,62.2802298041189],[36.0541614112866,61.716310736733874],[36.391401808423325,61.27605337182331],[36.10945519383887,61.01508738874924],[35.35074181492962,60.948579820389625],[34.866843702948586,61.11637319604125],[35.207288038887384,61.114435329830485],[35.57832482274313,61.08634918887975],[35.16000410334027,61.39428904890701],[34.85733523940689,61.55179881453273],[34.48691857273877,61.86697337508076],[34.265019972477376,62.21914826114994],[34.289824659977455,62.29774811466581],[34.66561567560399,62.22979360620195],[34.62613488133297,62.45223480900245],[34.8356311378443,62.29676626245225],[35.080267368314026,62.1411943630377],[35.21658979669991,62.193284206787894],[35.463706495919666,62.2560193955901],[35.13969526544963,62.48776235620312],[34.614352654770414,62.762448432050576],[34.99541466649072,62.748469957115674],[35.23395307795005,62.675347805422575],[35.71464725112901,62.2802298041189]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Great Salt Lake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-112.18405127648089,41.34124949804567],[-112.13875688357706,41.142346910154174],[-112.17193315310845,40.851460272783186],[-112.67882727745939,41.130487168943205],[-112.70549231652205,41.16753917089636],[-112.87814327680917,41.62815705013003],[-112.58955624067522,41.43891795507716],[-112.40532975955472,41.33801972102742],[-112.21901038292629,41.42855683040267],[-112.18405127648089,41.34124949804567]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Great\\rBear Lake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-117.7592923653704,66.22368419052789],[-117.97374955938167,65.85489533147692],[-118.10710059291085,65.76691620550001],[-119.7200520432652,65.73479930283061],[-119.74568355368197,65.65436493596833],[-119.6648099371452,65.52742178004333],[-119.70219783590836,65.36794830999061],[-121.35509436098008,64.87999359807459],[-121.33610327211281,64.99461192489797],[-120.94527441468938,65.37774099390991],[-121.05728308168202,65.4463414577774],[-122.56450374412293,65.0310696478799],[-123.232705851873,65.18041453720339],[-123.17963415590926,65.31937246363624],[-122.32599117087979,65.79378795029179],[-122.35622188377054,65.90184337021411],[-124.95363440005697,66.04925039332666],[-124.89753963280414,66.15115631780624],[-119.48724971579031,66.96929759385118],[-119.35743771042887,66.87519481064767],[-120.1769492193738,66.46527151149239],[-117.60545162643749,66.55934845647975],[-117.61278967982294,66.41997711858856],[-117.7592923653704,66.22368419052789],[-117.7592923653704,66.22368419052789]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Athabasca","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-109.65330135785099,59.03763703066841],[-111.08626298708849,58.56017263450765],[-111.19948605023998,58.685565497463884],[-111.160005255969,58.75985036888345],[-109.09672034385136,59.55042226830068],[-106.54517066122398,59.31968699811746],[-106.54695349813804,59.292815253325685],[-109.65330135785099,59.03763703066841],[-109.65330135785099,59.03763703066841]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Reindeer\\rLake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-101.89514441608819,58.01403025983099],[-101.89514441608819,58.01403025983099],[-101.54384802936804,57.86809601503873],[-101.97090206582807,57.34867035585697],[-101.93403093138781,57.23066722271848],[-103.20416012247362,56.34539826112639],[-103.2825015938281,56.40994212505895],[-103.1487371488406,56.70411021588043],[-103.07832800984292,56.71080231386223],[-103.01440426309787,56.56510061301529],[-102.57680823445028,56.938281968811054],[-102.81322791218561,57.28714956321349],[-102.81369300007623,57.46434804954232],[-102.12874772826359,58.01914622662788],[-101.89514441608819,58.01403025983099]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rHuron","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-80.41056433787725,45.590137437515665],[-79.76292945017934,44.824602769543844],[-80.08500281443844,44.493925279308144],[-80.89769222687659,44.63164297136599],[-81.40233842642287,45.25005483660284],[-81.27567949087549,44.6201708033972],[-81.75265296092948,44.06464915625956],[-81.70017554393709,43.590052802090995],[-81.78272864452336,43.310845038417995],[-82.43000179719522,42.98001251888543],[-82.4799987454376,43.39001333268915],[-82.6599877591102,43.970003770516996],[-83.02999101432,44.06999766700177],[-83.6500048489579,43.62999868425261],[-83.84870073112015,43.63831858985161],[-83.89998959016984,43.88998281511303],[-83.34999732128743,44.29001007748441],[-83.25878841829228,44.74574453386644],[-83.33999793163895,45.200006211928155],[-84.08000444205858,45.58998240821879],[-84.93000423861146,45.789996039404485],[-84.75355506055087,45.924483954444085],[-84.71999121777729,45.91998810483469],[-83.83919226757845,46.010215155616294],[-84.33670711946846,46.40876963966737],[-84.14870825879063,46.55576325132161],[-83.95257036002683,46.334278062518635],[-83.20251278352643,46.21015127215355],[-82.44199072948692,46.19963511818216],[-81.63136837434045,46.09754832618957],[-80.73679765493583,45.90381338152733],[-80.41056433787725,45.590137437515665]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rMichigan","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-85.53999284538475,46.03000722918408],[-84.75355506055087,45.924483954444085],[-84.93000423861146,45.789996039404485],[-85.06999569369015,45.40999339454619],[-85.29044735384727,45.30824249936349],[-85.46710323763705,44.81457754167923],[-85.55999162468169,45.150009263685774],[-85.95983801954006,44.91059235287753],[-86.20935767286137,44.574798895844935],[-86.47027197950304,44.08423452409818],[-86.52001054558397,43.65999685319804],[-86.18842871778315,43.04140412044818],[-86.21604977084317,42.38170278581012],[-86.62191647006355,41.8944198675139],[-86.8244364082154,41.75618541113313],[-87.09444576694042,41.64616628678374],[-87.4342183092595,41.640714423176945],[-87.52617652052288,41.70851390234388],[-87.79569495314115,42.23411489518453],[-87.80344641798493,42.49399567318035],[-87.77672970249003,42.740853990238634],[-87.90214840366241,43.23051402442029],[-87.71221167677363,43.79650014909703],[-87.486359829442,44.49335683855294],[-86.9674767727993,45.26287059181122],[-87.11806189649782,45.25933075619923],[-87.85282324903983,44.61505483660031],[-87.98831885450912,44.73331635190026],[-87.5964306302237,45.093707790703775],[-87.00000708692704,45.73999909116209],[-86.31999691439827,45.829993597998396],[-85.53999284538475,46.03000722918408]]]}}]'), yi = {
|
|
1922
|
-
type:
|
|
1923
|
-
features:
|
|
1928
|
+
useLegendScale: fi,
|
|
1929
|
+
useMetricFormat: pi
|
|
1930
|
+
}, yi = "FeatureCollection", hi = /* @__PURE__ */ JSON.parse('[{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rBaikal","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[106.57998579307912,52.79998159444554],[106.53998823448521,52.93999888774037],[107.0800069519353,53.18001007751998],[107.2999935242018,53.37999787048953],[107.59997521365611,53.51998932556822],[108.03994835818912,53.859968573616456],[108.37997928266967,54.25999583598784],[109.05270307824526,55.027597561251326],[109.19346967980832,55.53560272889659],[109.50699059452313,55.73091380474372],[109.92980716353523,55.7129562445223],[109.70000206913326,54.980003567110515],[109.66000451053935,54.71999359803395],[109.47996382043448,54.33999095317566],[109.31997358605884,53.81999685323869],[109.22003136600637,53.619983222052994],[108.99999311730755,53.78002513286093],[108.60001753136845,53.4399942083804],[108.800005324338,53.37999787048953],[108.76000776574409,53.200008856816936],[108.45997439985749,53.14001251892607],[108.17999148970011,52.79998159444554],[107.79996300662566,52.579995022179034],[107.31999230349876,52.42000478780339],[106.64003380740229,52.32001089131862],[106.1000150899522,52.03997630472897],[105.740037062607,51.759993394571595],[105.24001590375084,51.52000804300813],[104.81998986208251,51.46001170511727],[104.30002160036167,51.50000926371118],[103.7600028829116,51.60000316019595],[103.6200114278329,51.73999461527464],[103.85999677939637,51.85998729105637],[104.39996382041414,51.85998729105637],[105.05997521364597,52.0000045843512],[105.4800012553143,52.28001333272471],[105.98002241417046,52.51999868428817],[106.26000532432784,52.619992580772944],[106.57998579307912,52.79998159444554]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rWinnipeg","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-98.95540137408423,53.92978343364277],[-97.95799455441879,54.337097072967325],[-97.8050064766187,54.05938792583079],[-97.64380184608419,53.42521474874492],[-96.39258622921722,51.39730235453108],[-96.23789282915149,50.6910147161819],[-96.72558915890605,50.448910630894474],[-96.92110694048235,50.75405996357799],[-97.23568722205913,51.49778717712263],[-98.20097713905517,52.18456696228162],[-99.23680538612963,53.21628693298888],[-98.95540137408423,53.92978343364277]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Great\\rSlave Lake","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-115.00000342492967,61.9723932969562],[-115.80669837122196,62.54171255151576],[-116.0585951404287,62.77880402287089],[-115.84279435917783,62.7503044704619],[-114.45259497766185,62.42820526798667],[-113.35341142459757,62.04448192000336],[-111.77890804731261,62.44360484480964],[-111.04001258018727,62.92000987410843],[-110.20001217328286,63.08000010848407],[-109.40000932497237,62.87817780216814],[-109.09010576051801,62.814099026126215],[-109.11651241741916,62.6928144395372],[-110.10089677614705,62.51561595320837],[-111.27599300824811,62.34911448836395],[-112.63050981326654,61.55991201440246],[-113.64000891808828,61.07999298770784],[-115.3409903634076,60.87659455020702],[-116.43999304895887,60.86000641544133],[-118.06110856817108,61.31196849226605],[-118.3474735177165,61.36137116153708],[-118.3849906075604,61.52110301375126],[-118.17960262741634,61.55629466414203],[-116.8028132800801,61.32589529076871],[-115.67879920129957,61.69179026961132],[-115.00000342492967,61.9723932969562]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"L. Ontario","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-79.05630591502026,43.25410431576152],[-79.36168779164908,43.20237620703736],[-79.76047481964547,43.29720246029295],[-79.46116492381094,43.639197089200565],[-79.1561706204243,43.75743276628437],[-78.45052893747877,43.9031861435636],[-77.60536088734519,44.039327704436545],[-77.16148617217414,43.850140285815996],[-76.88269181995948,44.0694550644627],[-76.56555355498425,44.20802541765336],[-76.35303422718391,44.134670722015045],[-76.23926856149336,43.979150499032656],[-76.17999569365458,43.5900011256587],[-76.9300015937227,43.2599954290428],[-77.74915056019732,43.342832750006664],[-78.53499406605984,43.379988104824534],[-79.05630591502026,43.25410431576152]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"L. Erie","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-83.12001135937246,42.08001577409016],[-82.57123348664891,42.01702220312636],[-81.82918575715374,42.33552989355732],[-81.39226152212595,42.61517690690481],[-81.09496700715081,42.66075552018623],[-80.54515560578142,42.560089830081665],[-80.27917700877515,42.71566172949635],[-79.79135148793986,42.84203644466612],[-78.92000932485044,42.96500051530464],[-78.90057898630869,42.8667119410855],[-79.76220598012725,42.269616604169045],[-80.51644934764329,41.980331936199136],[-81.03119828970264,41.845508124349635],[-81.62351355663209,41.568935858723535],[-82.34744869660895,41.435920722004255],[-82.84610043000939,41.48710622818935],[-83.46283281119673,41.69396698665372],[-83.12001135937246,42.08001577409016],[-83.12001135937246,42.08001577409016]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake Superior","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-89.60000342482806,48.00998973244721],[-89.19405921095924,48.40546946877693],[-88.62641944044917,48.56251414651193],[-88.40423661981026,48.80632355406499],[-88.17895321323383,48.93670319273738],[-87.24903581414156,48.73511343036678],[-86.56000810417788,48.71108388935106],[-86.32103044304411,48.57729360614741],[-85.98652889681881,48.01035146747326],[-84.8642201403039,47.86007640236849],[-85.04061764193222,47.575700995466306],[-84.64500871452178,47.28220469826462],[-84.81528255892351,46.90233124448706],[-84.39559241406505,46.77683502866624],[-84.60490780306328,46.439594631529474],[-84.9100054593145,46.48000560158172],[-85.11999264193253,46.76001434995524],[-86.1026200019625,46.67265534116582],[-86.99000769727856,46.45000743263628],[-87.69427995476835,46.83104360614041],[-88.2612220934425,46.958581041036766],[-87.93992387566777,47.485913194359185],[-88.82260901564527,47.154796454449],[-89.62498897984119,46.83083690041124],[-90.39703487828177,46.57648550067064],[-91.00999487991183,46.92000458433087],[-92.01192338740282,46.71167104754619],[-92.00877112503301,46.85843211525511],[-91.33000118687926,47.28000844989221],[-90.61999284540505,47.68000987404746],[-89.60000342482806,48.00998973244721]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rVictoria","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[33.85036827976734,0.128157863766091],[33.85036827976734,0.128157863766091],[34.13624230320599,-0.319308363449238],[34.0726286150547,-1.059831638191795],[33.579428745261055,-1.506005954599821],[33.251748488098286,-1.957968031424549],[33.64717654799571,-2.30089283611342],[33.07672041192572,-2.547131035984201],[32.95176679864397,-2.43044565186915],[32.37309410983957,-2.489925225437091],[31.926558058405476,-2.714511000177573],[31.648022088352292,-2.32921152100937],[31.836020949030114,-1.629305922048232],[31.866199985488578,-1.027378838712494],[31.815143670384202,-0.64042571371094],[32.27284183119332,-0.056120293786734],[32.906136508930246,0.0867650415003],[33.33184695815069,0.324993394365833],[33.85036827976734,0.128157863766091]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rLadoga","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[29.836711460089845,61.22608226179696],[29.836711460089845,61.22608226179696],[30.85199832532828,61.77504100203353],[32.52688317234018,61.11751007755173],[32.94432539239392,60.64260366478942],[32.81575442885176,60.481889960361684],[32.599901971168606,60.533514716221276],[32.583882277158125,60.20893504499601],[31.699440138482714,60.23565176049091],[31.50973595553924,59.92034800886205],[31.106246372204282,59.92768606224749],[31.10893354668346,60.14645823835514],[30.533878208139498,60.63009796817478],[30.502045525847706,60.843211574946466],[29.836711460089845,61.22608226179696]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rBalkhash","name_alt":"Balqash Köli","admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[78.99076541536459,46.748619696634876],[78.99076541536459,46.748619696634876],[79.2451684915375,46.64516347918655],[78.88989301953086,46.369934800800024],[78.44506229036242,46.29717438413307],[77.20606814973246,46.3955663112168],[75.61128177277294,46.50718740496724],[75.46333214712132,46.6706141220903],[75.40566124868357,46.47080719663377],[74.91122114451494,46.404661363300164],[74.77138471873312,46.107831936215646],[74.27802981964263,46.004065660173566],[74.0999528339648,44.98893382423201],[73.4367375019309,45.60946442319282],[73.4399931171653,45.80586070411809],[73.73713260284359,46.012747300798594],[73.67925499867667,46.18307282163262],[74.02068118682908,46.20490611427593],[74.09432010284502,46.42781240496693],[74.939384800114,46.81678091082786],[76.20313195181177,46.7800131292522],[77.18131513866464,46.64340648048862],[77.85993004752152,46.64785065366573],[78.29700931184618,46.46853343361292],[78.39710656119556,46.657669175801175],[78.99076541536459,46.748619696634876]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rTanganyika","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[30.806006300588507,-8.578339125201033],[30.46442508313922,-8.498188978716335],[30.566847771941724,-8.1150082332721],[30.27735639824263,-7.848357842646031],[30.14702843600253,-7.299244073112582],[29.536523064906334,-6.7541610652979],[29.19318484875913,-6.038029066597119],[29.371985304489016,-5.616452731960017],[29.101717563602506,-5.054006442895265],[29.281034783655315,-3.455499362810748],[29.652588331833897,-4.420143324403149],[29.600085076625334,-4.896393324405054],[29.79195966972506,-5.040880629093131],[29.758421665167646,-5.466901136907339],[29.951226434048635,-5.860985609565162],[29.722041456834177,-6.244114678577112],[30.52803877129051,-6.922729587433992],[30.604158156056457,-7.541916599155222],[31.189032016735865,-8.729906101113095],[31.022117140433124,-8.786543470904988],[30.806006300588507,-8.578339125201033],[30.806006300588507,-8.578339125201033]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake Malawi","name_alt":"Lake Nyasa","admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[35.2602047055542,-14.277474460510291],[35.236226840970915,-14.401291192281633],[34.881209751125766,-14.012012627826891],[34.706543409979076,-14.262023207255027],[34.54675988133266,-14.047669366108266],[34.55110070164528,-13.67208505621096],[34.3209338722171,-13.379389743709737],[34.32997724786827,-12.944584242405995],[34.032527703596315,-12.208556817272836],[34.322690870915096,-11.652983493702834],[34.25990400568048,-10.447579034062642],[33.906592238100984,-9.801726983278854],[33.99557905450757,-9.495440769084837],[34.52422895685345,-10.03013681400887],[34.60789310073403,-11.080511976773494],[34.93702029800096,-11.463434340056267],[34.69388268406766,-12.422393894096615],[34.86756717300062,-13.701127211159019],[35.05597944513687,-13.742933444883136],[35.2602047055542,-14.277474460510291]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Aral\\rSea","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[60.05285159692946,44.264636949229114],[59.77002648299603,44.15999217383806],[59.06288618351405,44.36928172462015],[59.34571129744745,44.99720205339871],[59.35930219914022,45.190006822279685],[58.96139367049281,45.37500844988459],[58.92144778833119,45.101846828789746],[58.92144778833119,44.73556427670495],[58.497132602782614,44.212340399749735],[58.285000848224456,44.473952338227335],[58.285000848224456,44.89255727800766],[58.689989048095896,45.50001373959863],[58.78000939314833,45.88673432065487],[59.20427290226462,45.93905670835039],[59.535002068932585,45.70501414650049],[59.55784305200561,46.30533926043519],[59.77002648299603,46.25299103452352],[60.12359663273702,46.096023871436955],[60.12359663273702,45.88673432065487],[59.94675988143425,45.808211981787366],[59.84071984237133,45.520477606786216],[60.12359663273702,45.572774156265595],[60.23997195825834,44.78403677019473],[60.05285159692946,44.264636949229114]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Vänern","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[13.979281447005576,59.20491364199721],[13.979281447005576,59.20491364199721],[13.984449090234762,59.086212877022774],[13.91892337408865,58.902503160225166],[13.28268313971111,58.608670966213566],[12.830100945698888,58.50903880475484],[12.460149366921371,58.50619660097878],[12.537767368223768,58.77594757754237],[12.522161085671598,58.880282294339665],[12.697085808979608,58.953843695707135],[13.027039829163215,58.993531195707305],[13.195298292705559,59.12900096296045],[13.59144982265505,59.336481838612315],[13.979281447005576,59.20491364199721]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Okeechobee","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-80.70643775096435,26.788959458924822],[-80.93244462759287,26.823272609966622],[-80.91970638703292,27.068916530866048],[-80.69369951040441,27.034629218040394],[-80.70643775096435,26.788959458924822],[-80.70643775096435,26.788959458924822]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lago de\\rNicaragua","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-84.85548682324658,11.147898667846633],[-85.29013729525353,11.176165676310276],[-85.79132117383625,11.509737046754324],[-85.8851655748783,11.900100816287136],[-85.5653401354239,11.940330918826362],[-85.03684526237491,11.5216484643976],[-84.85548682324658,11.147898667846633],[-84.85548682324658,11.147898667846633]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Tana","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[37.14370730972843,11.850594794151519],[37.01482628759251,12.035596421756424],[37.24401126480697,12.233878892460353],[37.518361443844526,12.160601711470477],[37.48187788264647,11.825092474815477],[37.33635704931254,11.713393866416595],[37.14370730972843,11.850594794151519],[37.14370730972843,11.850594794151519]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lago Titicaca","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-69.40673987494259,-16.126198825752063],[-69.7290974595793,-15.928794854397104],[-69.98365556504908,-15.73717864345884],[-69.8770212470148,-15.669844252182529],[-69.8679778713637,-15.546079196843493],[-69.88559953477524,-15.35425628017606],[-69.59675411647981,-15.410480238509614],[-68.98697221543571,-15.885903415594846],[-68.9596870591856,-15.91329192470954],[-68.74623755560401,-16.356003920154023],[-68.90524593776611,-16.506640720284835],[-69.00115739609983,-16.536406345284952],[-69.09084184434238,-16.461992282784657],[-69.18205074733753,-16.40116912197712],[-69.25098710801488,-16.227536309476427],[-69.40673987494259,-16.126198825752063],[-69.40673987494259,-16.126198825752063]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake\\rWinnipegosis","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-99.40377193886468,53.1258531764781],[-99.54846594928192,53.120427151087455],[-99.80498775917877,53.14290639913442],[-100.43146114785316,53.2841897650204],[-100.60685095905177,53.531616522833886],[-100.33487789589965,53.745246893928496],[-100.42673275429846,53.90740753846039],[-100.4044860501968,53.94507965760117],[-100.32629960813921,54.094011135466346],[-100.23586585162842,54.23033356385231],[-99.99549292682278,54.215864162810576],[-100.04778947630214,54.10013479269293],[-100.18356930214904,53.930351874397985],[-99.87128862180926,53.928465684619326],[-99.91066606321566,53.821314602262134],[-100.05649695514333,53.44332733826322],[-99.66551306842301,53.29581696228607],[-99.39317827024485,53.26791168884846],[-99.40377193886468,53.1258531764781],[-99.40377193886468,53.1258531764781]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake\\rOnega","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[35.71464725112901,62.2802298041189],[36.0541614112866,61.716310736733874],[36.391401808423325,61.27605337182331],[36.10945519383887,61.01508738874924],[35.35074181492962,60.948579820389625],[34.866843702948586,61.11637319604125],[35.207288038887384,61.114435329830485],[35.57832482274313,61.08634918887975],[35.16000410334027,61.39428904890701],[34.85733523940689,61.55179881453273],[34.48691857273877,61.86697337508076],[34.265019972477376,62.21914826114994],[34.289824659977455,62.29774811466581],[34.66561567560399,62.22979360620195],[34.62613488133297,62.45223480900245],[34.8356311378443,62.29676626245225],[35.080267368314026,62.1411943630377],[35.21658979669991,62.193284206787894],[35.463706495919666,62.2560193955901],[35.13969526544963,62.48776235620312],[34.614352654770414,62.762448432050576],[34.99541466649072,62.748469957115674],[35.23395307795005,62.675347805422575],[35.71464725112901,62.2802298041189]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Great Salt Lake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-112.18405127648089,41.34124949804567],[-112.13875688357706,41.142346910154174],[-112.17193315310845,40.851460272783186],[-112.67882727745939,41.130487168943205],[-112.70549231652205,41.16753917089636],[-112.87814327680917,41.62815705013003],[-112.58955624067522,41.43891795507716],[-112.40532975955472,41.33801972102742],[-112.21901038292629,41.42855683040267],[-112.18405127648089,41.34124949804567]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Great\\rBear Lake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-117.7592923653704,66.22368419052789],[-117.97374955938167,65.85489533147692],[-118.10710059291085,65.76691620550001],[-119.7200520432652,65.73479930283061],[-119.74568355368197,65.65436493596833],[-119.6648099371452,65.52742178004333],[-119.70219783590836,65.36794830999061],[-121.35509436098008,64.87999359807459],[-121.33610327211281,64.99461192489797],[-120.94527441468938,65.37774099390991],[-121.05728308168202,65.4463414577774],[-122.56450374412293,65.0310696478799],[-123.232705851873,65.18041453720339],[-123.17963415590926,65.31937246363624],[-122.32599117087979,65.79378795029179],[-122.35622188377054,65.90184337021411],[-124.95363440005697,66.04925039332666],[-124.89753963280414,66.15115631780624],[-119.48724971579031,66.96929759385118],[-119.35743771042887,66.87519481064767],[-120.1769492193738,66.46527151149239],[-117.60545162643749,66.55934845647975],[-117.61278967982294,66.41997711858856],[-117.7592923653704,66.22368419052789],[-117.7592923653704,66.22368419052789]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Athabasca","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-109.65330135785099,59.03763703066841],[-111.08626298708849,58.56017263450765],[-111.19948605023998,58.685565497463884],[-111.160005255969,58.75985036888345],[-109.09672034385136,59.55042226830068],[-106.54517066122398,59.31968699811746],[-106.54695349813804,59.292815253325685],[-109.65330135785099,59.03763703066841],[-109.65330135785099,59.03763703066841]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Reindeer\\rLake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-101.89514441608819,58.01403025983099],[-101.89514441608819,58.01403025983099],[-101.54384802936804,57.86809601503873],[-101.97090206582807,57.34867035585697],[-101.93403093138781,57.23066722271848],[-103.20416012247362,56.34539826112639],[-103.2825015938281,56.40994212505895],[-103.1487371488406,56.70411021588043],[-103.07832800984292,56.71080231386223],[-103.01440426309787,56.56510061301529],[-102.57680823445028,56.938281968811054],[-102.81322791218561,57.28714956321349],[-102.81369300007623,57.46434804954232],[-102.12874772826359,58.01914622662788],[-101.89514441608819,58.01403025983099]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rHuron","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-80.41056433787725,45.590137437515665],[-79.76292945017934,44.824602769543844],[-80.08500281443844,44.493925279308144],[-80.89769222687659,44.63164297136599],[-81.40233842642287,45.25005483660284],[-81.27567949087549,44.6201708033972],[-81.75265296092948,44.06464915625956],[-81.70017554393709,43.590052802090995],[-81.78272864452336,43.310845038417995],[-82.43000179719522,42.98001251888543],[-82.4799987454376,43.39001333268915],[-82.6599877591102,43.970003770516996],[-83.02999101432,44.06999766700177],[-83.6500048489579,43.62999868425261],[-83.84870073112015,43.63831858985161],[-83.89998959016984,43.88998281511303],[-83.34999732128743,44.29001007748441],[-83.25878841829228,44.74574453386644],[-83.33999793163895,45.200006211928155],[-84.08000444205858,45.58998240821879],[-84.93000423861146,45.789996039404485],[-84.75355506055087,45.924483954444085],[-84.71999121777729,45.91998810483469],[-83.83919226757845,46.010215155616294],[-84.33670711946846,46.40876963966737],[-84.14870825879063,46.55576325132161],[-83.95257036002683,46.334278062518635],[-83.20251278352643,46.21015127215355],[-82.44199072948692,46.19963511818216],[-81.63136837434045,46.09754832618957],[-80.73679765493583,45.90381338152733],[-80.41056433787725,45.590137437515665]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rMichigan","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-85.53999284538475,46.03000722918408],[-84.75355506055087,45.924483954444085],[-84.93000423861146,45.789996039404485],[-85.06999569369015,45.40999339454619],[-85.29044735384727,45.30824249936349],[-85.46710323763705,44.81457754167923],[-85.55999162468169,45.150009263685774],[-85.95983801954006,44.91059235287753],[-86.20935767286137,44.574798895844935],[-86.47027197950304,44.08423452409818],[-86.52001054558397,43.65999685319804],[-86.18842871778315,43.04140412044818],[-86.21604977084317,42.38170278581012],[-86.62191647006355,41.8944198675139],[-86.8244364082154,41.75618541113313],[-87.09444576694042,41.64616628678374],[-87.4342183092595,41.640714423176945],[-87.52617652052288,41.70851390234388],[-87.79569495314115,42.23411489518453],[-87.80344641798493,42.49399567318035],[-87.77672970249003,42.740853990238634],[-87.90214840366241,43.23051402442029],[-87.71221167677363,43.79650014909703],[-87.486359829442,44.49335683855294],[-86.9674767727993,45.26287059181122],[-87.11806189649782,45.25933075619923],[-87.85282324903983,44.61505483660031],[-87.98831885450912,44.73331635190026],[-87.5964306302237,45.093707790703775],[-87.00000708692704,45.73999909116209],[-86.31999691439827,45.829993597998396],[-85.53999284538475,46.03000722918408]]]}}]'), _i = {
|
|
1931
|
+
type: yi,
|
|
1932
|
+
features: hi
|
|
1924
1933
|
};
|
|
1925
|
-
function
|
|
1934
|
+
function gi(e) {
|
|
1926
1935
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1927
1936
|
}
|
|
1928
1937
|
var Ie = {}, lt, cn;
|
|
1929
|
-
function
|
|
1938
|
+
function wi() {
|
|
1930
1939
|
if (cn) return lt;
|
|
1931
1940
|
cn = 1, lt = w;
|
|
1932
1941
|
var e, n, a, i, l, d = 1e6, y = {
|
|
@@ -1941,7 +1950,7 @@ function _i() {
|
|
|
1941
1950
|
function w(s, m) {
|
|
1942
1951
|
e = {}, a = [], n = 0, i = 0, l = 1, S(s), l = Math.min(l, d);
|
|
1943
1952
|
for (var _ = Math.ceil(Math.log(l) / Math.LN10), x = 0; x < a.length; x++) m.writeStringField(1, a[x]);
|
|
1944
|
-
return i !== 2 && m.writeVarintField(2, i), _ !== 6 && m.writeVarintField(3, _), s.type === "FeatureCollection" ? m.writeMessage(4,
|
|
1953
|
+
return i !== 2 && m.writeVarintField(2, i), _ !== 6 && m.writeVarintField(3, _), s.type === "FeatureCollection" ? m.writeMessage(4, R, s) : s.type === "Feature" ? m.writeMessage(5, P, s) : m.writeMessage(6, O, s), e = null, m.finish();
|
|
1945
1954
|
}
|
|
1946
1955
|
function S(s) {
|
|
1947
1956
|
var m, _;
|
|
@@ -1950,7 +1959,7 @@ function _i() {
|
|
|
1950
1959
|
else if (s.type === "Feature") {
|
|
1951
1960
|
s.geometry !== null && S(s.geometry);
|
|
1952
1961
|
for (_ in s.properties) L(_);
|
|
1953
|
-
} else if (s.type === "Point")
|
|
1962
|
+
} else if (s.type === "Point") E(s.coordinates);
|
|
1954
1963
|
else if (s.type === "MultiPoint") h(s.coordinates);
|
|
1955
1964
|
else if (s.type === "GeometryCollection")
|
|
1956
1965
|
for (m = 0; m < s.geometries.length; m++) S(s.geometries[m]);
|
|
@@ -1965,9 +1974,9 @@ function _i() {
|
|
|
1965
1974
|
for (var m = 0; m < s.length; m++) h(s[m]);
|
|
1966
1975
|
}
|
|
1967
1976
|
function h(s) {
|
|
1968
|
-
for (var m = 0; m < s.length; m++)
|
|
1977
|
+
for (var m = 0; m < s.length; m++) E(s[m]);
|
|
1969
1978
|
}
|
|
1970
|
-
function
|
|
1979
|
+
function E(s) {
|
|
1971
1980
|
i = Math.max(i, s.length);
|
|
1972
1981
|
for (var m = 0; m < s.length; m++)
|
|
1973
1982
|
for (; Math.round(s[m] * l) / l !== s[m] && l < d; ) l *= 10;
|
|
@@ -1975,7 +1984,7 @@ function _i() {
|
|
|
1975
1984
|
function L(s) {
|
|
1976
1985
|
e[s] === void 0 && (a.push(s), e[s] = n++);
|
|
1977
1986
|
}
|
|
1978
|
-
function
|
|
1987
|
+
function R(s, m) {
|
|
1979
1988
|
for (var _ = 0; _ < s.features.length; _++)
|
|
1980
1989
|
m.writeMessage(1, P, s.features[_]);
|
|
1981
1990
|
C(s, m, !0);
|
|
@@ -2063,7 +2072,7 @@ function _i() {
|
|
|
2063
2072
|
return lt;
|
|
2064
2073
|
}
|
|
2065
2074
|
var ut, dn;
|
|
2066
|
-
function
|
|
2075
|
+
function vi() {
|
|
2067
2076
|
if (dn) return ut;
|
|
2068
2077
|
dn = 1, ut = y;
|
|
2069
2078
|
var e, n, a, i, l, d = [
|
|
@@ -2084,7 +2093,7 @@ function gi() {
|
|
|
2084
2093
|
p === 1 ? e.push(s.readString()) : p === 2 ? i = s.readVarint() : p === 3 ? l = Math.pow(10, s.readVarint()) : p === 4 ? S(s, g) : p === 5 ? D(s, g) : p === 6 && h(s, g);
|
|
2085
2094
|
}
|
|
2086
2095
|
function S(p, g) {
|
|
2087
|
-
return g.type = "FeatureCollection", g.features = [], p.readMessage(
|
|
2096
|
+
return g.type = "FeatureCollection", g.features = [], p.readMessage(E, g);
|
|
2088
2097
|
}
|
|
2089
2098
|
function D(p, g) {
|
|
2090
2099
|
g.type = "Feature";
|
|
@@ -2092,15 +2101,15 @@ function gi() {
|
|
|
2092
2101
|
return "geometry" in s || (s.geometry = null), s;
|
|
2093
2102
|
}
|
|
2094
2103
|
function h(p, g) {
|
|
2095
|
-
return g.type = "Point", p.readMessage(
|
|
2104
|
+
return g.type = "Point", p.readMessage(R, g);
|
|
2096
2105
|
}
|
|
2097
|
-
function
|
|
2106
|
+
function E(p, g, s) {
|
|
2098
2107
|
p === 1 ? g.features.push(D(s, {})) : p === 13 ? n.push(O(s)) : p === 15 && C(s, g);
|
|
2099
2108
|
}
|
|
2100
2109
|
function L(p, g, s) {
|
|
2101
2110
|
p === 1 ? g.geometry = h(s, {}) : p === 11 ? g.id = s.readString() : p === 12 ? g.id = s.readSVarint() : p === 13 ? n.push(O(s)) : p === 14 ? g.properties = C(s, {}) : p === 15 && C(s, g);
|
|
2102
2111
|
}
|
|
2103
|
-
function
|
|
2112
|
+
function R(p, g, s) {
|
|
2104
2113
|
p === 1 ? g.type = d[s.readVarint()] : p === 2 ? a = s.readPackedVarint() : p === 3 ? P(g, s, g.type) : p === 4 ? (g.geometries = g.geometries || [], g.geometries.push(h(s, {}))) : p === 13 ? n.push(O(s)) : p === 15 && C(s, g);
|
|
2105
2114
|
}
|
|
2106
2115
|
function P(p, g, s) {
|
|
@@ -2152,40 +2161,40 @@ function gi() {
|
|
|
2152
2161
|
return ut;
|
|
2153
2162
|
}
|
|
2154
2163
|
var mn;
|
|
2155
|
-
function
|
|
2156
|
-
return mn || (mn = 1, Ie.encode =
|
|
2164
|
+
function xi() {
|
|
2165
|
+
return mn || (mn = 1, Ie.encode = wi(), Ie.decode = vi()), Ie;
|
|
2157
2166
|
}
|
|
2158
|
-
var
|
|
2167
|
+
var Fi = xi(), Ce = {};
|
|
2159
2168
|
var fn;
|
|
2160
|
-
function
|
|
2169
|
+
function Mi() {
|
|
2161
2170
|
return fn || (fn = 1, Ce.read = function(e, n, a, i, l) {
|
|
2162
|
-
var d, y, w = l * 8 - i - 1, S = (1 << w) - 1, D = S >> 1, h = -7,
|
|
2163
|
-
for (
|
|
2171
|
+
var d, y, w = l * 8 - i - 1, S = (1 << w) - 1, D = S >> 1, h = -7, E = a ? l - 1 : 0, L = a ? -1 : 1, R = e[n + E];
|
|
2172
|
+
for (E += L, d = R & (1 << -h) - 1, R >>= -h, h += w; h > 0; d = d * 256 + e[n + E], E += L, h -= 8)
|
|
2164
2173
|
;
|
|
2165
|
-
for (y = d & (1 << -h) - 1, d >>= -h, h += i; h > 0; y = y * 256 + e[n +
|
|
2174
|
+
for (y = d & (1 << -h) - 1, d >>= -h, h += i; h > 0; y = y * 256 + e[n + E], E += L, h -= 8)
|
|
2166
2175
|
;
|
|
2167
2176
|
if (d === 0)
|
|
2168
2177
|
d = 1 - D;
|
|
2169
2178
|
else {
|
|
2170
2179
|
if (d === S)
|
|
2171
|
-
return y ? NaN : (
|
|
2180
|
+
return y ? NaN : (R ? -1 : 1) * (1 / 0);
|
|
2172
2181
|
y = y + Math.pow(2, i), d = d - D;
|
|
2173
2182
|
}
|
|
2174
|
-
return (
|
|
2183
|
+
return (R ? -1 : 1) * y * Math.pow(2, d - i);
|
|
2175
2184
|
}, Ce.write = function(e, n, a, i, l, d) {
|
|
2176
|
-
var y, w, S, D = d * 8 - l - 1, h = (1 << D) - 1,
|
|
2177
|
-
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (w = isNaN(n) ? 1 : 0, y = h) : (y = Math.floor(Math.log(n) / Math.LN2), n * (S = Math.pow(2, -y)) < 1 && (y--, S *= 2), y +
|
|
2185
|
+
var y, w, S, D = d * 8 - l - 1, h = (1 << D) - 1, E = h >> 1, L = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, R = i ? 0 : d - 1, P = i ? 1 : -1, O = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
|
|
2186
|
+
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (w = isNaN(n) ? 1 : 0, y = h) : (y = Math.floor(Math.log(n) / Math.LN2), n * (S = Math.pow(2, -y)) < 1 && (y--, S *= 2), y + E >= 1 ? n += L / S : n += L * Math.pow(2, 1 - E), n * S >= 2 && (y++, S /= 2), y + E >= h ? (w = 0, y = h) : y + E >= 1 ? (w = (n * S - 1) * Math.pow(2, l), y = y + E) : (w = n * Math.pow(2, E - 1) * Math.pow(2, l), y = 0)); l >= 8; e[a + R] = w & 255, R += P, w /= 256, l -= 8)
|
|
2178
2187
|
;
|
|
2179
|
-
for (y = y << l | w, D += l; D > 0; e[a +
|
|
2188
|
+
for (y = y << l | w, D += l; D > 0; e[a + R] = y & 255, R += P, y /= 256, D -= 8)
|
|
2180
2189
|
;
|
|
2181
|
-
e[a +
|
|
2190
|
+
e[a + R - P] |= O * 128;
|
|
2182
2191
|
}), Ce;
|
|
2183
2192
|
}
|
|
2184
2193
|
var ct, pn;
|
|
2185
|
-
function
|
|
2194
|
+
function Ti() {
|
|
2186
2195
|
if (pn) return ct;
|
|
2187
2196
|
pn = 1, ct = n;
|
|
2188
|
-
var e =
|
|
2197
|
+
var e = Mi();
|
|
2189
2198
|
function n(t) {
|
|
2190
2199
|
this.buf = ArrayBuffer.isView && ArrayBuffer.isView(t) ? t : new Uint8Array(t || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
|
|
2191
2200
|
}
|
|
@@ -2385,7 +2394,7 @@ function Fi() {
|
|
|
2385
2394
|
this.writeTag(t, n.Bytes), this.writeRawMessage(o, u);
|
|
2386
2395
|
},
|
|
2387
2396
|
writePackedVarint: function(t, o) {
|
|
2388
|
-
o.length && this.writeMessage(t,
|
|
2397
|
+
o.length && this.writeMessage(t, R, o);
|
|
2389
2398
|
},
|
|
2390
2399
|
writePackedSVarint: function(t, o) {
|
|
2391
2400
|
o.length && this.writeMessage(t, P, o);
|
|
@@ -2460,12 +2469,12 @@ function Fi() {
|
|
|
2460
2469
|
var u, F;
|
|
2461
2470
|
if (t >= 0 ? (u = t % 4294967296 | 0, F = t / 4294967296 | 0) : (u = ~(-t % 4294967296), F = ~(-t / 4294967296), u ^ 4294967295 ? u = u + 1 | 0 : (u = 0, F = F + 1 | 0)), t >= 18446744073709552e3 || t < -18446744073709552e3)
|
|
2462
2471
|
throw new Error("Given varint doesn't fit into 10 bytes");
|
|
2463
|
-
o.realloc(10), h(u, F, o),
|
|
2472
|
+
o.realloc(10), h(u, F, o), E(F, o);
|
|
2464
2473
|
}
|
|
2465
2474
|
function h(t, o, u) {
|
|
2466
2475
|
u.buf[u.pos++] = t & 127 | 128, t >>>= 7, u.buf[u.pos++] = t & 127 | 128, t >>>= 7, u.buf[u.pos++] = t & 127 | 128, t >>>= 7, u.buf[u.pos++] = t & 127 | 128, t >>>= 7, u.buf[u.pos] = t & 127;
|
|
2467
2476
|
}
|
|
2468
|
-
function
|
|
2477
|
+
function E(t, o) {
|
|
2469
2478
|
var u = (t & 7) << 4;
|
|
2470
2479
|
o.buf[o.pos++] |= u | ((t >>>= 3) ? 128 : 0), t && (o.buf[o.pos++] = t & 127 | ((t >>>= 7) ? 128 : 0), t && (o.buf[o.pos++] = t & 127 | ((t >>>= 7) ? 128 : 0), t && (o.buf[o.pos++] = t & 127 | ((t >>>= 7) ? 128 : 0), t && (o.buf[o.pos++] = t & 127 | ((t >>>= 7) ? 128 : 0), t && (o.buf[o.pos++] = t & 127)))));
|
|
2471
2480
|
}
|
|
@@ -2474,7 +2483,7 @@ function Fi() {
|
|
|
2474
2483
|
u.realloc(F);
|
|
2475
2484
|
for (var T = u.pos - 1; T >= t; T--) u.buf[T + F] = u.buf[T];
|
|
2476
2485
|
}
|
|
2477
|
-
function
|
|
2486
|
+
function R(t, o) {
|
|
2478
2487
|
for (var u = 0; u < t.length; u++) o.writeVarint(t[u]);
|
|
2479
2488
|
}
|
|
2480
2489
|
function P(t, o) {
|
|
@@ -2542,8 +2551,8 @@ function Fi() {
|
|
|
2542
2551
|
}
|
|
2543
2552
|
return ct;
|
|
2544
2553
|
}
|
|
2545
|
-
var
|
|
2546
|
-
const
|
|
2554
|
+
var Si = Ti();
|
|
2555
|
+
const Di = /* @__PURE__ */ gi(Si), qi = (e) => {
|
|
2547
2556
|
if (!e || !e.data)
|
|
2548
2557
|
return {};
|
|
2549
2558
|
const n = {}, a = e.data;
|
|
@@ -2554,16 +2563,16 @@ const Ti = /* @__PURE__ */ hi(Mi), ji = (e) => {
|
|
|
2554
2563
|
}
|
|
2555
2564
|
return n;
|
|
2556
2565
|
};
|
|
2557
|
-
function
|
|
2566
|
+
function Ni(e, n = 0) {
|
|
2558
2567
|
let a = null;
|
|
2559
2568
|
return (...i) => {
|
|
2560
2569
|
a && clearTimeout(a), a = setTimeout(() => e(...i), n);
|
|
2561
2570
|
};
|
|
2562
2571
|
}
|
|
2563
|
-
const
|
|
2572
|
+
const ki = { class: "legend" }, Ri = {
|
|
2564
2573
|
key: 0,
|
|
2565
2574
|
class: "legend-title"
|
|
2566
|
-
},
|
|
2575
|
+
}, Ei = { class: "legend-text" }, Li = /* @__PURE__ */ ft({
|
|
2567
2576
|
__name: "MapLegend",
|
|
2568
2577
|
props: {
|
|
2569
2578
|
metric: {},
|
|
@@ -2571,8 +2580,8 @@ const Di = { class: "legend" }, Ni = {
|
|
|
2571
2580
|
data: {}
|
|
2572
2581
|
},
|
|
2573
2582
|
setup(e) {
|
|
2574
|
-
return (n, a) => (W(), ne("div",
|
|
2575
|
-
e.metric ? (W(), ne("div",
|
|
2583
|
+
return (n, a) => (W(), ne("div", ki, [
|
|
2584
|
+
e.metric ? (W(), ne("div", Ri, ye(e.title), 1)) : xe("", !0),
|
|
2576
2585
|
(W(!0), ne(Yr, null, $r(e.data, (i, l) => (W(), ne("div", {
|
|
2577
2586
|
key: l,
|
|
2578
2587
|
class: "legend-item"
|
|
@@ -2581,7 +2590,7 @@ const Di = { class: "legend" }, Ni = {
|
|
|
2581
2590
|
class: "legend-color",
|
|
2582
2591
|
style: jr({ backgroundColor: i.color })
|
|
2583
2592
|
}, null, 4),
|
|
2584
|
-
X("span",
|
|
2593
|
+
X("span", Ei, ye(i.range), 1)
|
|
2585
2594
|
]))), 128))
|
|
2586
2595
|
]));
|
|
2587
2596
|
}
|
|
@@ -2590,7 +2599,7 @@ const Di = { class: "legend" }, Ni = {
|
|
|
2590
2599
|
for (const [i, l] of n)
|
|
2591
2600
|
a[i] = l;
|
|
2592
2601
|
return a;
|
|
2593
|
-
},
|
|
2602
|
+
}, Pi = /* @__PURE__ */ ht(Li, [["__scopeId", "data-v-2858aa0d"]]), Gi = { class: "map-tooltip" }, Oi = { class: "map-tooltip-text" }, Ii = { key: 0 }, Ci = /* @__PURE__ */ ft({
|
|
2594
2603
|
__name: "MapTooltip",
|
|
2595
2604
|
props: {
|
|
2596
2605
|
data: {},
|
|
@@ -2603,18 +2612,18 @@ const Di = { class: "legend" }, Ni = {
|
|
|
2603
2612
|
v75a0a274: n.left,
|
|
2604
2613
|
v144f4294: n.top,
|
|
2605
2614
|
v6e49e79e: n.data.color
|
|
2606
|
-
})), (n, a) => (W(), ne("div",
|
|
2615
|
+
})), (n, a) => (W(), ne("div", Gi, [
|
|
2607
2616
|
a[0] || (a[0] = X("div", { class: "map-tooltip-color" }, null, -1)),
|
|
2608
|
-
X("div",
|
|
2609
|
-
X("div", null,
|
|
2610
|
-
e.showValue ? (W(), ne("span",
|
|
2617
|
+
X("div", Oi, [
|
|
2618
|
+
X("div", null, ye(e.data.label), 1),
|
|
2619
|
+
e.showValue ? (W(), ne("span", Ii, ye(e.data.value), 1)) : xe("", !0)
|
|
2611
2620
|
])
|
|
2612
2621
|
]));
|
|
2613
2622
|
}
|
|
2614
|
-
}),
|
|
2623
|
+
}), Ui = /* @__PURE__ */ ht(Ci, [["__scopeId", "data-v-6bea2641"]]), Ai = { class: "kong-ui-public-analytics-geo-map" }, Vi = {
|
|
2615
2624
|
key: 0,
|
|
2616
2625
|
class: "no-location-overlay"
|
|
2617
|
-
},
|
|
2626
|
+
}, Bi = { class: "no-location-overlay-title" }, bi = { class: "no-location-overlay-description" }, zi = ["id"], Hi = /* @__PURE__ */ ft({
|
|
2618
2627
|
__name: "AnalyticsGeoMap",
|
|
2619
2628
|
props: {
|
|
2620
2629
|
countryMetrics: {},
|
|
@@ -2633,7 +2642,7 @@ const Di = { class: "legend" }, Ni = {
|
|
|
2633
2642
|
countryMetrics: Le(() => e.countryMetrics),
|
|
2634
2643
|
metric: Le(() => e.metric),
|
|
2635
2644
|
unit: Le(() => e.metricUnit)
|
|
2636
|
-
}), { formatMetric: w } = Me.useMetricFormat({ unit: Le(() => e.metricUnit) }), S = we(), D = qr(), h = we(),
|
|
2645
|
+
}), { formatMetric: w } = Me.useMetricFormat({ unit: Le(() => e.metricUnit) }), S = we(), D = qr(), h = we(), E = we(null), L = we({ left: "0px", top: "0px" }), R = we(!1), P = j(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), O = j(() => ({
|
|
2637
2646
|
"fill-color": [
|
|
2638
2647
|
"match",
|
|
2639
2648
|
[
|
|
@@ -2683,7 +2692,7 @@ const Di = { class: "legend" }, Ni = {
|
|
|
2683
2692
|
]);
|
|
2684
2693
|
return;
|
|
2685
2694
|
}
|
|
2686
|
-
const m =
|
|
2695
|
+
const m = E.value?.features.find((_) => _.properties?.ISO_A2 ? _.properties?.ISO_A2 === s : _.properties?.iso_a2 === "-99" ? _.properties?.iso_a2_eh === s : _.properties?.iso_a2 === s);
|
|
2687
2696
|
if (m) {
|
|
2688
2697
|
const _ = m.geometry?.coordinates;
|
|
2689
2698
|
if (!_) return;
|
|
@@ -2712,7 +2721,7 @@ const Di = { class: "legend" }, Ni = {
|
|
|
2712
2721
|
}
|
|
2713
2722
|
};
|
|
2714
2723
|
return e.bounds && (s.bounds = e.bounds), s;
|
|
2715
|
-
}), p =
|
|
2724
|
+
}), p = Ni(() => {
|
|
2716
2725
|
if (!h.value) return;
|
|
2717
2726
|
const s = h.value.getBounds(), m = s.getSouthWest(), _ = s.getNorthEast();
|
|
2718
2727
|
i("boundsChange", [
|
|
@@ -2727,8 +2736,8 @@ const Di = { class: "legend" }, Ni = {
|
|
|
2727
2736
|
g();
|
|
2728
2737
|
}), Zr(async () => {
|
|
2729
2738
|
try {
|
|
2730
|
-
const s = await a, m = await fetch(s), _ = new Uint8Array(await m.arrayBuffer()), x =
|
|
2731
|
-
|
|
2739
|
+
const s = await a, m = await fetch(s), _ = new Uint8Array(await m.arrayBuffer()), x = Fi.decode(new Di(_));
|
|
2740
|
+
E.value = x, h.value = new Xr(I.value), h.value.on("load", () => {
|
|
2732
2741
|
h.value?.addSource("countries", {
|
|
2733
2742
|
type: "geojson",
|
|
2734
2743
|
data: x
|
|
@@ -2739,7 +2748,7 @@ const Di = { class: "legend" }, Ni = {
|
|
|
2739
2748
|
paint: O.value
|
|
2740
2749
|
}), h.value?.addSource("lakes", {
|
|
2741
2750
|
type: "geojson",
|
|
2742
|
-
data:
|
|
2751
|
+
data: _i
|
|
2743
2752
|
}), h.value?.addLayer({
|
|
2744
2753
|
id: "lakes-layer",
|
|
2745
2754
|
type: "fill",
|
|
@@ -2755,13 +2764,13 @@ const Di = { class: "legend" }, Ni = {
|
|
|
2755
2764
|
label: N,
|
|
2756
2765
|
color: d($),
|
|
2757
2766
|
value: w($)
|
|
2758
|
-
},
|
|
2767
|
+
}, R.value = !0, L.value = {
|
|
2759
2768
|
left: `${t.point.x}px`,
|
|
2760
2769
|
top: `${t.point.y}px`
|
|
2761
2770
|
});
|
|
2762
2771
|
}
|
|
2763
2772
|
}), h.value?.on("mouseleave", "countries-layer", () => {
|
|
2764
|
-
|
|
2773
|
+
R.value = !1;
|
|
2765
2774
|
}), h.value?.on("move", p), e.fitToCountry && b(e.fitToCountry);
|
|
2766
2775
|
}), h.value?.dragRotate.disable(), h.value?.keyboard.disable(), h.value?.touchZoomRotate.disableRotation();
|
|
2767
2776
|
} catch (s) {
|
|
@@ -2790,37 +2799,37 @@ const Di = { class: "legend" }, Ni = {
|
|
|
2790
2799
|
if (!s) return;
|
|
2791
2800
|
const _ = s?.flat(), x = m?.flat();
|
|
2792
2801
|
!(_ && x && _.length === x.length && _.every((o, u) => Math.round(o * 100) / 100 === Math.round(x[u] * 100) / 100)) && h.value && h.value.fitBounds(s);
|
|
2793
|
-
}), (s, m) => (W(), ne("div",
|
|
2794
|
-
P.value ? (W(), ne("div",
|
|
2802
|
+
}), (s, m) => (W(), ne("div", Ai, [
|
|
2803
|
+
P.value ? (W(), ne("div", Vi, [
|
|
2795
2804
|
et(s.$slots, "no-location-icon", {}, () => [
|
|
2796
2805
|
Jr(oe(na), {
|
|
2797
|
-
color: `var(--kui-icon-color-neutral, ${oe(
|
|
2798
|
-
size: `var(--kui-icon-size-60, ${oe(
|
|
2806
|
+
color: `var(--kui-icon-color-neutral, ${oe(ci)})`,
|
|
2807
|
+
size: `var(--kui-icon-size-60, ${oe(di)})`
|
|
2799
2808
|
}, null, 8, ["color", "size"])
|
|
2800
2809
|
], !0),
|
|
2801
|
-
X("div",
|
|
2810
|
+
X("div", Bi, [
|
|
2802
2811
|
et(s.$slots, "no-location-title", {}, () => [
|
|
2803
|
-
Qr(
|
|
2812
|
+
Qr(ye(oe(l).t("no_location_data")), 1)
|
|
2804
2813
|
], !0)
|
|
2805
2814
|
]),
|
|
2806
|
-
X("div",
|
|
2815
|
+
X("div", bi, [
|
|
2807
2816
|
et(s.$slots, "no-location-description", {}, () => [
|
|
2808
|
-
X("p", null,
|
|
2817
|
+
X("p", null, ye(oe(l).t("no_location_data_description")), 1)
|
|
2809
2818
|
], !0)
|
|
2810
2819
|
])
|
|
2811
2820
|
])) : xe("", !0),
|
|
2812
2821
|
X("div", {
|
|
2813
2822
|
id: oe(D),
|
|
2814
2823
|
class: "analytics-geo-map-container"
|
|
2815
|
-
}, null, 8,
|
|
2816
|
-
C.value ? (W(), zt(
|
|
2824
|
+
}, null, 8, zi),
|
|
2825
|
+
C.value ? (W(), zt(Pi, {
|
|
2817
2826
|
key: 1,
|
|
2818
2827
|
class: "legend-container",
|
|
2819
2828
|
data: oe(y),
|
|
2820
2829
|
metric: e.metric,
|
|
2821
2830
|
title: V.value
|
|
2822
2831
|
}, null, 8, ["data", "metric", "title"])) : xe("", !0),
|
|
2823
|
-
|
|
2832
|
+
R.value && S.value ? (W(), zt(Ui, {
|
|
2824
2833
|
key: 2,
|
|
2825
2834
|
data: S.value,
|
|
2826
2835
|
left: L.value.left,
|
|
@@ -2829,9 +2838,9 @@ const Di = { class: "legend" }, Ni = {
|
|
|
2829
2838
|
}, null, 8, ["data", "left", "show-value", "top"])) : xe("", !0)
|
|
2830
2839
|
]));
|
|
2831
2840
|
}
|
|
2832
|
-
}),
|
|
2841
|
+
}), Wi = /* @__PURE__ */ ht(Hi, [["__scopeId", "data-v-71f48e24"]]);
|
|
2833
2842
|
export {
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2843
|
+
Wi as AnalyticsGeoMap,
|
|
2844
|
+
Ni as debounce,
|
|
2845
|
+
qi as exploreResultToCountryMetrics
|
|
2837
2846
|
};
|