@kong-ui-public/analytics-geo-map 1.5.26-pr.3256.fab9658e5.0 → 1.5.26
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 +425 -435
- package/dist/vitals-geo-map.umd.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as
|
|
1
|
+
import { computed as I, defineComponent as Rt, openBlock as K, createElementBlock as ae, toDisplayString as xe, createCommentVNode as Ee, Fragment as ra, renderList as aa, createElementVNode as X, normalizeStyle as ia, useCssVars as oa, toRef as ze, ref as ke, useId as sa, onMounted as la, watch as _t, renderSlot as gt, createVNode as ua, unref as ue, createTextVNode as ca, createBlock as on } from "vue";
|
|
2
2
|
import { Map as da } from "maplibre-gl";
|
|
3
3
|
import { createI18n as ma, i18nTComponent as fa } from "@kong-ui-public/i18n";
|
|
4
4
|
import { AnalyticsIcon as pa } from "@kong/icons";
|
|
@@ -53,8 +53,8 @@ function xa() {
|
|
|
53
53
|
// Translation component <i18n-t>
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
var Ta = Object.defineProperty, Fa = (e, t, n) => t in e ? Ta(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
57
|
-
const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"],
|
|
56
|
+
var Ta = Object.defineProperty, Fa = (e, t, n) => t in e ? Ta(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, A = (e, t, n) => Fa(e, typeof t != "symbol" ? t + "" : t, n), f = /* @__PURE__ */ ((e) => (e.FIFTEEN_MIN = "15m", e.ONE_HOUR = "1h", e.SIX_HOUR = "6h", e.TWELVE_HOUR = "12h", e.ONE_DAY = "24h", e.SEVEN_DAY = "7d", e.THIRTY_DAY = "30d", e.NINETY_DAY = "90d", e.ONE_HUNDRED_EIGHTY_DAY = "180d", e.ONE_YEAR = "365d", e.CURRENT_WEEK = "current_week", e.CURRENT_MONTH = "current_month", e.CURRENT_QUARTER = "current_quarter", e.CURRENT_YEAR = "current_year", e.PREVIOUS_WEEK = "previous_week", e.PREVIOUS_MONTH = "previous_month", e.PREVIOUS_QUARTER = "previous_quarter", e.PREVIOUS_YEAR = "previous_year", e))(f || {});
|
|
57
|
+
const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"], Fe = (e) => e.filter((t) => t !== "time"), En = [
|
|
58
58
|
"api",
|
|
59
59
|
"api_package",
|
|
60
60
|
"api_product",
|
|
@@ -68,14 +68,14 @@ const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"], ce = (e) =
|
|
|
68
68
|
"status_code",
|
|
69
69
|
"status_code_grouped",
|
|
70
70
|
"time"
|
|
71
|
-
],
|
|
71
|
+
], bn = Fe(En), Da = [
|
|
72
72
|
"active_services",
|
|
73
73
|
"error_rate",
|
|
74
74
|
"request_count",
|
|
75
75
|
"request_per_minute",
|
|
76
76
|
"response_latency_average"
|
|
77
|
-
],
|
|
78
|
-
...
|
|
77
|
+
], On = [
|
|
78
|
+
...En,
|
|
79
79
|
"application",
|
|
80
80
|
"bot_info_action",
|
|
81
81
|
"bot_info_detection_reason",
|
|
@@ -88,7 +88,7 @@ const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"], ce = (e) =
|
|
|
88
88
|
"data_plane_node_version",
|
|
89
89
|
"realm",
|
|
90
90
|
"portal_api"
|
|
91
|
-
],
|
|
91
|
+
], Gn = Fe(On), Na = [
|
|
92
92
|
...Da,
|
|
93
93
|
"response_latency_p99",
|
|
94
94
|
"response_latency_p95",
|
|
@@ -111,7 +111,7 @@ const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"], ce = (e) =
|
|
|
111
111
|
"request_size_p50",
|
|
112
112
|
"request_size_average",
|
|
113
113
|
"request_size_sum"
|
|
114
|
-
],
|
|
114
|
+
], ka = [
|
|
115
115
|
"control_plane",
|
|
116
116
|
"control_plane_group",
|
|
117
117
|
"gateway_service",
|
|
@@ -129,7 +129,7 @@ const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"], ce = (e) =
|
|
|
129
129
|
"status_code",
|
|
130
130
|
"status_code_grouped",
|
|
131
131
|
"ai_plugin"
|
|
132
|
-
],
|
|
132
|
+
], Ln = Fe(ka), Ra = [
|
|
133
133
|
"a2a_context_id",
|
|
134
134
|
"a2a_error",
|
|
135
135
|
"a2a_method",
|
|
@@ -178,8 +178,8 @@ const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"], ce = (e) =
|
|
|
178
178
|
"upstream_status_code_grouped",
|
|
179
179
|
"websocket"
|
|
180
180
|
];
|
|
181
|
-
|
|
182
|
-
const
|
|
181
|
+
Fe(Ra);
|
|
182
|
+
const Ea = [
|
|
183
183
|
"ai_count",
|
|
184
184
|
"latencies_response_ms",
|
|
185
185
|
"latencies_upstream_ms",
|
|
@@ -190,20 +190,9 @@ const Ra = [
|
|
|
190
190
|
"status_code",
|
|
191
191
|
"upstream_status_code"
|
|
192
192
|
];
|
|
193
|
-
|
|
194
|
-
const
|
|
195
|
-
...
|
|
196
|
-
"mcp_session_id",
|
|
197
|
-
"mcp_method",
|
|
198
|
-
"mcp_tool_name",
|
|
199
|
-
"mcp_error"
|
|
200
|
-
], ba = ce(Ea);
|
|
201
|
-
[
|
|
202
|
-
...Gn
|
|
203
|
-
];
|
|
204
|
-
new Set(On), new Set(Ln), new Set(Un), new Set(ba);
|
|
205
|
-
const Oa = [
|
|
206
|
-
...Et,
|
|
193
|
+
Fe(Ea);
|
|
194
|
+
const ba = [
|
|
195
|
+
...On,
|
|
207
196
|
"a2a_context_id",
|
|
208
197
|
"a2a_error",
|
|
209
198
|
"a2a_method",
|
|
@@ -212,11 +201,12 @@ const Oa = [
|
|
|
212
201
|
"mcp_method",
|
|
213
202
|
"mcp_session_id",
|
|
214
203
|
"mcp_tool_name"
|
|
215
|
-
],
|
|
204
|
+
], Un = Fe(ba);
|
|
216
205
|
[
|
|
217
|
-
...
|
|
206
|
+
...Na
|
|
218
207
|
];
|
|
219
|
-
|
|
208
|
+
new Set(bn), new Set(Gn), new Set(Ln), new Set(Un);
|
|
209
|
+
const Et = [
|
|
220
210
|
{ code: "AF", name: "Afghanistan" },
|
|
221
211
|
{ code: "AX", name: "Aland Islands" },
|
|
222
212
|
{ code: "AL", name: "Albania" },
|
|
@@ -464,8 +454,8 @@ const bt = [
|
|
|
464
454
|
{ code: "ZM", name: "Zambia" },
|
|
465
455
|
{ code: "ZW", name: "Zimbabwe" }
|
|
466
456
|
];
|
|
467
|
-
|
|
468
|
-
const
|
|
457
|
+
Et.map((e) => e.code);
|
|
458
|
+
const Oa = (e) => ({
|
|
469
459
|
type: "array",
|
|
470
460
|
description: "A list of filters to apply to the query",
|
|
471
461
|
items: {
|
|
@@ -518,44 +508,44 @@ const Ga = (e) => ({
|
|
|
518
508
|
]
|
|
519
509
|
}
|
|
520
510
|
});
|
|
521
|
-
|
|
511
|
+
Oa([
|
|
522
512
|
.../* @__PURE__ */ new Set([
|
|
513
|
+
...Gn,
|
|
514
|
+
...bn,
|
|
523
515
|
...Ln,
|
|
524
|
-
...
|
|
525
|
-
...Un,
|
|
526
|
-
...La
|
|
516
|
+
...Un
|
|
527
517
|
])
|
|
528
518
|
]);
|
|
529
|
-
let
|
|
530
|
-
function
|
|
531
|
-
return
|
|
519
|
+
let Ga = {};
|
|
520
|
+
function La() {
|
|
521
|
+
return Ga;
|
|
532
522
|
}
|
|
533
|
-
const
|
|
534
|
-
function
|
|
535
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
523
|
+
const Ua = 60, Aa = 3600, sn = Symbol.for("constructDateFrom");
|
|
524
|
+
function Ge(e, t) {
|
|
525
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && sn in e ? e[sn](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
536
526
|
}
|
|
537
|
-
function
|
|
538
|
-
return
|
|
527
|
+
function ce(e, t) {
|
|
528
|
+
return Ge(t || e, e);
|
|
539
529
|
}
|
|
540
530
|
function Ve(e, t) {
|
|
541
|
-
const n =
|
|
531
|
+
const n = ce(e, void 0);
|
|
542
532
|
return n.setHours(0, 0, 0, 0), n;
|
|
543
533
|
}
|
|
544
|
-
function
|
|
534
|
+
function Ze(e, t) {
|
|
545
535
|
var n, a, i, o;
|
|
546
|
-
const l =
|
|
536
|
+
const l = La(), d = (t == null ? void 0 : t.weekStartsOn) ?? ((a = (n = t == null ? void 0 : t.locale) == null ? void 0 : n.options) == null ? void 0 : a.weekStartsOn) ?? l.weekStartsOn ?? ((o = (i = l.locale) == null ? void 0 : i.options) == null ? void 0 : o.weekStartsOn) ?? 0, m = ce(e, t == null ? void 0 : t.in), h = m.getDay(), c = (h < d ? 7 : 0) + h - d;
|
|
547
537
|
return m.setDate(m.getDate() - c), m.setHours(0, 0, 0, 0), m;
|
|
548
538
|
}
|
|
549
539
|
function Ye(e, t, n) {
|
|
550
|
-
const a =
|
|
551
|
-
return isNaN(t) ?
|
|
540
|
+
const a = ce(e, void 0);
|
|
541
|
+
return isNaN(t) ? Ge(e, NaN) : (a.setDate(a.getDate() + t), a);
|
|
552
542
|
}
|
|
553
|
-
function
|
|
554
|
-
const a =
|
|
555
|
-
if (isNaN(t)) return
|
|
543
|
+
function An(e, t, n) {
|
|
544
|
+
const a = ce(e, void 0);
|
|
545
|
+
if (isNaN(t)) return Ge(e, NaN);
|
|
556
546
|
if (!t)
|
|
557
547
|
return a;
|
|
558
|
-
const i = a.getDate(), o =
|
|
548
|
+
const i = a.getDate(), o = Ge(e, a.getTime());
|
|
559
549
|
o.setMonth(a.getMonth() + t + 1, 0);
|
|
560
550
|
const l = o.getDate();
|
|
561
551
|
return i >= l ? o : (a.setFullYear(
|
|
@@ -564,39 +554,39 @@ function In(e, t, n) {
|
|
|
564
554
|
i
|
|
565
555
|
), a);
|
|
566
556
|
}
|
|
567
|
-
function
|
|
568
|
-
return
|
|
557
|
+
function Ia(e, t, n) {
|
|
558
|
+
return An(e, t * 3);
|
|
569
559
|
}
|
|
570
|
-
function
|
|
571
|
-
const n =
|
|
560
|
+
function we(e, t) {
|
|
561
|
+
const n = ce(e, void 0), a = n.getMonth(), i = a - a % 3;
|
|
572
562
|
return n.setMonth(i, 1), n.setHours(0, 0, 0, 0), n;
|
|
573
563
|
}
|
|
574
|
-
function
|
|
575
|
-
const n =
|
|
564
|
+
function ve(e, t) {
|
|
565
|
+
const n = ce(e, void 0);
|
|
576
566
|
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
577
567
|
}
|
|
578
|
-
function
|
|
579
|
-
const n =
|
|
568
|
+
function Pa(e, t) {
|
|
569
|
+
const n = ce(e, void 0), a = n.getFullYear(), i = n.getMonth(), o = Ge(n, 0);
|
|
580
570
|
return o.setFullYear(a, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
581
571
|
}
|
|
582
|
-
function
|
|
583
|
-
return Math.trunc(e *
|
|
572
|
+
function ln(e) {
|
|
573
|
+
return Math.trunc(e * Aa);
|
|
584
574
|
}
|
|
585
|
-
function
|
|
586
|
-
const t = e /
|
|
575
|
+
function Ca(e) {
|
|
576
|
+
const t = e / Ua;
|
|
587
577
|
return Math.trunc(t);
|
|
588
578
|
}
|
|
589
|
-
function
|
|
590
|
-
return
|
|
579
|
+
function In(e, t, n) {
|
|
580
|
+
return An(e, -1);
|
|
591
581
|
}
|
|
592
|
-
function
|
|
593
|
-
return
|
|
582
|
+
function Pn(e, t, n) {
|
|
583
|
+
return Ia(e, -1);
|
|
594
584
|
}
|
|
595
|
-
function
|
|
596
|
-
const n =
|
|
597
|
-
return "formatToParts" in n ?
|
|
585
|
+
function Ba(e, t) {
|
|
586
|
+
const n = ja(t);
|
|
587
|
+
return "formatToParts" in n ? za(n, e) : Va(n, e);
|
|
598
588
|
}
|
|
599
|
-
const
|
|
589
|
+
const Ha = {
|
|
600
590
|
year: 0,
|
|
601
591
|
month: 1,
|
|
602
592
|
day: 2,
|
|
@@ -604,11 +594,11 @@ const Va = {
|
|
|
604
594
|
minute: 4,
|
|
605
595
|
second: 5
|
|
606
596
|
};
|
|
607
|
-
function
|
|
597
|
+
function za(e, t) {
|
|
608
598
|
try {
|
|
609
599
|
const n = e.formatToParts(t), a = [];
|
|
610
600
|
for (let i = 0; i < n.length; i++) {
|
|
611
|
-
const o =
|
|
601
|
+
const o = Ha[n[i].type];
|
|
612
602
|
o !== void 0 && (a[o] = parseInt(n[i].value, 10));
|
|
613
603
|
}
|
|
614
604
|
return a;
|
|
@@ -618,7 +608,7 @@ function Ya(e, t) {
|
|
|
618
608
|
throw n;
|
|
619
609
|
}
|
|
620
610
|
}
|
|
621
|
-
function
|
|
611
|
+
function Va(e, t) {
|
|
622
612
|
const n = e.format(t), a = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
|
|
623
613
|
return [
|
|
624
614
|
parseInt(a[3], 10),
|
|
@@ -629,7 +619,7 @@ function ja(e, t) {
|
|
|
629
619
|
parseInt(a[6], 10)
|
|
630
620
|
];
|
|
631
621
|
}
|
|
632
|
-
const wt = {},
|
|
622
|
+
const wt = {}, un = new Intl.DateTimeFormat("en-US", {
|
|
633
623
|
hourCycle: "h23",
|
|
634
624
|
timeZone: "America/New_York",
|
|
635
625
|
year: "numeric",
|
|
@@ -638,9 +628,9 @@ const wt = {}, cn = new Intl.DateTimeFormat("en-US", {
|
|
|
638
628
|
hour: "2-digit",
|
|
639
629
|
minute: "2-digit",
|
|
640
630
|
second: "2-digit"
|
|
641
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
642
|
-
function
|
|
643
|
-
return wt[e] || (wt[e] =
|
|
631
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Ya = un === "06/25/2014, 00:00:00" || un === "06/25/2014 00:00:00";
|
|
632
|
+
function ja(e) {
|
|
633
|
+
return wt[e] || (wt[e] = Ya ? new Intl.DateTimeFormat("en-US", {
|
|
644
634
|
hourCycle: "h23",
|
|
645
635
|
timeZone: e,
|
|
646
636
|
year: "numeric",
|
|
@@ -660,11 +650,11 @@ function Ka(e) {
|
|
|
660
650
|
second: "2-digit"
|
|
661
651
|
})), wt[e];
|
|
662
652
|
}
|
|
663
|
-
function
|
|
653
|
+
function bt(e, t, n, a, i, o, l) {
|
|
664
654
|
const d = /* @__PURE__ */ new Date(0);
|
|
665
655
|
return d.setUTCFullYear(e, t, n), d.setUTCHours(a, i, o, l), d;
|
|
666
656
|
}
|
|
667
|
-
const
|
|
657
|
+
const cn = 36e5, $a = 6e4, vt = {
|
|
668
658
|
timezoneZ: /^(Z)$/,
|
|
669
659
|
timezoneHH: /^([+-]\d{2})$/,
|
|
670
660
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -677,29 +667,29 @@ function tt(e, t, n) {
|
|
|
677
667
|
return 0;
|
|
678
668
|
let i, o;
|
|
679
669
|
if (a = vt.timezoneHH.exec(e), a)
|
|
680
|
-
return i = parseInt(a[1], 10),
|
|
670
|
+
return i = parseInt(a[1], 10), dn(i) ? -(i * cn) : NaN;
|
|
681
671
|
if (a = vt.timezoneHHMM.exec(e), a) {
|
|
682
672
|
i = parseInt(a[2], 10);
|
|
683
673
|
const l = parseInt(a[3], 10);
|
|
684
|
-
return
|
|
674
|
+
return dn(i, l) ? (o = Math.abs(i) * cn + l * $a, a[1] === "+" ? -o : o) : NaN;
|
|
685
675
|
}
|
|
686
|
-
if (
|
|
676
|
+
if (qa(e)) {
|
|
687
677
|
t = new Date(t || Date.now());
|
|
688
|
-
const l = n ? t :
|
|
689
|
-
return -(n ? d :
|
|
678
|
+
const l = n ? t : Ka(t), d = Dt(l, e);
|
|
679
|
+
return -(n ? d : Wa(t, d, e));
|
|
690
680
|
}
|
|
691
681
|
return NaN;
|
|
692
682
|
}
|
|
693
|
-
function
|
|
694
|
-
return
|
|
683
|
+
function Ka(e) {
|
|
684
|
+
return bt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
695
685
|
}
|
|
696
686
|
function Dt(e, t) {
|
|
697
|
-
const n =
|
|
687
|
+
const n = Ba(e, t), a = bt(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
|
|
698
688
|
let i = e.getTime();
|
|
699
689
|
const o = i % 1e3;
|
|
700
690
|
return i -= o >= 0 ? o : 1e3 + o, a - i;
|
|
701
691
|
}
|
|
702
|
-
function
|
|
692
|
+
function Wa(e, t, n) {
|
|
703
693
|
let a = e.getTime() - t;
|
|
704
694
|
const i = Dt(new Date(a), n);
|
|
705
695
|
if (t === i)
|
|
@@ -708,24 +698,24 @@ function qa(e, t, n) {
|
|
|
708
698
|
const o = Dt(new Date(a), n);
|
|
709
699
|
return i === o ? i : Math.max(i, o);
|
|
710
700
|
}
|
|
711
|
-
function
|
|
701
|
+
function dn(e, t) {
|
|
712
702
|
return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
|
|
713
703
|
}
|
|
714
|
-
const
|
|
715
|
-
function
|
|
716
|
-
if (
|
|
704
|
+
const mn = {};
|
|
705
|
+
function qa(e) {
|
|
706
|
+
if (mn[e])
|
|
717
707
|
return !0;
|
|
718
708
|
try {
|
|
719
|
-
return new Intl.DateTimeFormat(void 0, { timeZone: e }),
|
|
709
|
+
return new Intl.DateTimeFormat(void 0, { timeZone: e }), mn[e] = !0, !0;
|
|
720
710
|
} catch {
|
|
721
711
|
return !1;
|
|
722
712
|
}
|
|
723
713
|
}
|
|
724
|
-
function
|
|
714
|
+
function fn(e) {
|
|
725
715
|
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
726
716
|
return t.setUTCFullYear(e.getFullYear()), +e - +t;
|
|
727
717
|
}
|
|
728
|
-
const
|
|
718
|
+
const Cn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, xt = 36e5, pn = 6e4, Za = 2, E = {
|
|
729
719
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
730
720
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
731
721
|
// year tokens
|
|
@@ -757,14 +747,14 @@ const Pn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
|
|
|
757
747
|
HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
758
748
|
HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
759
749
|
// time zone tokens (to identify the presence of a tz)
|
|
760
|
-
timeZone:
|
|
750
|
+
timeZone: Cn
|
|
761
751
|
};
|
|
762
752
|
function Nt(e, t = {}) {
|
|
763
753
|
if (arguments.length < 1)
|
|
764
754
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
765
755
|
if (e === null)
|
|
766
756
|
return /* @__PURE__ */ new Date(NaN);
|
|
767
|
-
const n = t.additionalDigits == null ?
|
|
757
|
+
const n = t.additionalDigits == null ? Za : Number(t.additionalDigits);
|
|
768
758
|
if (n !== 2 && n !== 1 && n !== 0)
|
|
769
759
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
770
760
|
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
|
|
@@ -773,24 +763,24 @@ function Nt(e, t = {}) {
|
|
|
773
763
|
return new Date(e);
|
|
774
764
|
if (Object.prototype.toString.call(e) !== "[object String]")
|
|
775
765
|
return /* @__PURE__ */ new Date(NaN);
|
|
776
|
-
const a =
|
|
766
|
+
const a = Qa(e), { year: i, restDateString: o } = Ja(a.date, n), l = Xa(o, i);
|
|
777
767
|
if (l === null || isNaN(l.getTime()))
|
|
778
768
|
return /* @__PURE__ */ new Date(NaN);
|
|
779
769
|
if (l) {
|
|
780
770
|
const d = l.getTime();
|
|
781
771
|
let m = 0, h;
|
|
782
|
-
if (a.time && (m =
|
|
772
|
+
if (a.time && (m = ei(a.time), m === null || isNaN(m)))
|
|
783
773
|
return /* @__PURE__ */ new Date(NaN);
|
|
784
774
|
if (a.timeZone || t.timeZone) {
|
|
785
775
|
if (h = tt(a.timeZone || t.timeZone, new Date(d + m)), isNaN(h))
|
|
786
776
|
return /* @__PURE__ */ new Date(NaN);
|
|
787
777
|
} else
|
|
788
|
-
h =
|
|
778
|
+
h = fn(new Date(d + m)), h = fn(new Date(d + m + h));
|
|
789
779
|
return new Date(d + m + h);
|
|
790
780
|
} else
|
|
791
781
|
return /* @__PURE__ */ new Date(NaN);
|
|
792
782
|
}
|
|
793
|
-
function
|
|
783
|
+
function Qa(e) {
|
|
794
784
|
const t = {};
|
|
795
785
|
let n = E.dateTimePattern.exec(e), a;
|
|
796
786
|
if (n ? (t.date = n[1], a = n[3]) : (n = E.datePattern.exec(e), n ? (t.date = n[1], a = n[2]) : (t.date = null, a = e)), a) {
|
|
@@ -799,7 +789,7 @@ function Xa(e) {
|
|
|
799
789
|
}
|
|
800
790
|
return t;
|
|
801
791
|
}
|
|
802
|
-
function
|
|
792
|
+
function Ja(e, t) {
|
|
803
793
|
if (e) {
|
|
804
794
|
const n = E.YYY[t], a = E.YYYYY[t];
|
|
805
795
|
let i = E.YYYY.exec(e) || a.exec(e);
|
|
@@ -822,7 +812,7 @@ function ei(e, t) {
|
|
|
822
812
|
year: null
|
|
823
813
|
};
|
|
824
814
|
}
|
|
825
|
-
function
|
|
815
|
+
function Xa(e, t) {
|
|
826
816
|
if (t === null)
|
|
827
817
|
return null;
|
|
828
818
|
let n, a, i;
|
|
@@ -830,95 +820,95 @@ function ti(e, t) {
|
|
|
830
820
|
return n = /* @__PURE__ */ new Date(0), n.setUTCFullYear(t), n;
|
|
831
821
|
let o = E.MM.exec(e);
|
|
832
822
|
if (o)
|
|
833
|
-
return n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1,
|
|
823
|
+
return n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1, yn(t, a) ? (n.setUTCFullYear(t, a), n) : /* @__PURE__ */ new Date(NaN);
|
|
834
824
|
if (o = E.DDD.exec(e), o) {
|
|
835
825
|
n = /* @__PURE__ */ new Date(0);
|
|
836
826
|
const l = parseInt(o[1], 10);
|
|
837
|
-
return
|
|
827
|
+
return ri(t, l) ? (n.setUTCFullYear(t, 0, l), n) : /* @__PURE__ */ new Date(NaN);
|
|
838
828
|
}
|
|
839
829
|
if (o = E.MMDD.exec(e), o) {
|
|
840
830
|
n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1;
|
|
841
831
|
const l = parseInt(o[2], 10);
|
|
842
|
-
return
|
|
832
|
+
return yn(t, a, l) ? (n.setUTCFullYear(t, a, l), n) : /* @__PURE__ */ new Date(NaN);
|
|
843
833
|
}
|
|
844
834
|
if (o = E.Www.exec(e), o)
|
|
845
|
-
return i = parseInt(o[1], 10) - 1,
|
|
835
|
+
return i = parseInt(o[1], 10) - 1, _n(i) ? hn(t, i) : /* @__PURE__ */ new Date(NaN);
|
|
846
836
|
if (o = E.WwwD.exec(e), o) {
|
|
847
837
|
i = parseInt(o[1], 10) - 1;
|
|
848
838
|
const l = parseInt(o[2], 10) - 1;
|
|
849
|
-
return
|
|
839
|
+
return _n(i, l) ? hn(t, i, l) : /* @__PURE__ */ new Date(NaN);
|
|
850
840
|
}
|
|
851
841
|
return null;
|
|
852
842
|
}
|
|
853
|
-
function
|
|
843
|
+
function ei(e) {
|
|
854
844
|
let t, n, a = E.HH.exec(e);
|
|
855
845
|
if (a)
|
|
856
846
|
return t = parseFloat(a[1].replace(",", ".")), Tt(t) ? t % 24 * xt : NaN;
|
|
857
847
|
if (a = E.HHMM.exec(e), a)
|
|
858
|
-
return t = parseInt(a[1], 10), n = parseFloat(a[2].replace(",", ".")), Tt(t, n) ? t % 24 * xt + n *
|
|
848
|
+
return t = parseInt(a[1], 10), n = parseFloat(a[2].replace(",", ".")), Tt(t, n) ? t % 24 * xt + n * pn : NaN;
|
|
859
849
|
if (a = E.HHMMSS.exec(e), a) {
|
|
860
850
|
t = parseInt(a[1], 10), n = parseInt(a[2], 10);
|
|
861
851
|
const i = parseFloat(a[3].replace(",", "."));
|
|
862
|
-
return Tt(t, n, i) ? t % 24 * xt + n *
|
|
852
|
+
return Tt(t, n, i) ? t % 24 * xt + n * pn + i * 1e3 : NaN;
|
|
863
853
|
}
|
|
864
854
|
return null;
|
|
865
855
|
}
|
|
866
|
-
function
|
|
856
|
+
function hn(e, t, n) {
|
|
867
857
|
t = t || 0, n = n || 0;
|
|
868
858
|
const a = /* @__PURE__ */ new Date(0);
|
|
869
859
|
a.setUTCFullYear(e, 0, 4);
|
|
870
860
|
const i = a.getUTCDay() || 7, o = t * 7 + n + 1 - i;
|
|
871
861
|
return a.setUTCDate(a.getUTCDate() + o), a;
|
|
872
862
|
}
|
|
873
|
-
const
|
|
863
|
+
const ti = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ni = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
874
864
|
function Bn(e) {
|
|
875
865
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
876
866
|
}
|
|
877
|
-
function
|
|
867
|
+
function yn(e, t, n) {
|
|
878
868
|
if (t < 0 || t > 11)
|
|
879
869
|
return !1;
|
|
880
870
|
if (n != null) {
|
|
881
871
|
if (n < 1)
|
|
882
872
|
return !1;
|
|
883
873
|
const a = Bn(e);
|
|
884
|
-
if (a && n >
|
|
874
|
+
if (a && n > ni[t] || !a && n > ti[t])
|
|
885
875
|
return !1;
|
|
886
876
|
}
|
|
887
877
|
return !0;
|
|
888
878
|
}
|
|
889
|
-
function
|
|
879
|
+
function ri(e, t) {
|
|
890
880
|
if (t < 1)
|
|
891
881
|
return !1;
|
|
892
882
|
const n = Bn(e);
|
|
893
883
|
return !(n && t > 366 || !n && t > 365);
|
|
894
884
|
}
|
|
895
|
-
function
|
|
885
|
+
function _n(e, t) {
|
|
896
886
|
return !(e < 0 || e > 52 || t != null && (t < 0 || t > 6));
|
|
897
887
|
}
|
|
898
888
|
function Tt(e, t, n) {
|
|
899
889
|
return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
|
|
900
890
|
}
|
|
901
|
-
function
|
|
891
|
+
function ai(e, t, n) {
|
|
902
892
|
e = Nt(e, n);
|
|
903
893
|
const a = tt(t, e, !0), i = new Date(e.getTime() - a), o = /* @__PURE__ */ new Date(0);
|
|
904
894
|
return o.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), o.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), o;
|
|
905
895
|
}
|
|
906
|
-
function
|
|
907
|
-
if (typeof e == "string" && !e.match(
|
|
896
|
+
function ii(e, t, n) {
|
|
897
|
+
if (typeof e == "string" && !e.match(Cn))
|
|
908
898
|
return Nt(e, { ...n, timeZone: t });
|
|
909
899
|
e = Nt(e, n);
|
|
910
|
-
const a =
|
|
900
|
+
const a = bt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = tt(t, new Date(a));
|
|
911
901
|
return new Date(a + i);
|
|
912
902
|
}
|
|
913
|
-
function
|
|
903
|
+
function oi(e, t) {
|
|
914
904
|
return -tt(e, t);
|
|
915
905
|
}
|
|
916
906
|
var je = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Qe = { exports: {} };
|
|
917
907
|
Qe.exports;
|
|
918
908
|
(function(e, t) {
|
|
919
|
-
var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", l = "[object Array]", d = "[object Boolean]", m = "[object Date]", h = "[object Error]", c = "[object Function]", x = "[object GeneratorFunction]", F = "[object Map]", g = "[object Number]", T = "[object Object]", k = "[object Promise]", H = "[object RegExp]", B = "[object Set]", U = "[object String]", ie = "[object Symbol]", D = "[object WeakMap]", Me = "[object ArrayBuffer]",
|
|
920
|
-
_[o] = _[l] = _[Me] = _[
|
|
921
|
-
var $ = typeof je == "object" && je && je.Object === Object && je,
|
|
909
|
+
var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", l = "[object Array]", d = "[object Boolean]", m = "[object Date]", h = "[object Error]", c = "[object Function]", x = "[object GeneratorFunction]", F = "[object Map]", g = "[object Number]", T = "[object Object]", k = "[object Promise]", H = "[object RegExp]", B = "[object Set]", U = "[object String]", ie = "[object Symbol]", D = "[object WeakMap]", Me = "[object ArrayBuffer]", de = "[object DataView]", y = "[object Float32Array]", v = "[object Float64Array]", M = "[object Int8Array]", R = "[object Int16Array]", ee = "[object Int32Array]", W = "[object Uint8Array]", z = "[object Uint8ClampedArray]", te = "[object Uint16Array]", ne = "[object Uint32Array]", L = /[\\^$.*+?()[\]{}|]/g, V = /\w*$/, Y = /^\[object .+?Constructor\]$/, j = /^(?:0|[1-9]\d*)$/, _ = {};
|
|
910
|
+
_[o] = _[l] = _[Me] = _[de] = _[d] = _[m] = _[y] = _[v] = _[M] = _[R] = _[ee] = _[F] = _[g] = _[T] = _[H] = _[B] = _[U] = _[ie] = _[W] = _[z] = _[te] = _[ne] = !0, _[h] = _[c] = _[D] = !1;
|
|
911
|
+
var $ = typeof je == "object" && je && je.Object === Object && je, me = typeof self == "object" && self && self.Object === Object && self, b = $ || me || Function("return this")(), q = t && !t.nodeType && t, Ue = q && !0 && e && !e.nodeType && e, rt = Ue && Ue.exports === q;
|
|
922
912
|
function at(r, s) {
|
|
923
913
|
return r.set(s[0], s[1]), r;
|
|
924
914
|
}
|
|
@@ -948,7 +938,7 @@ Qe.exports;
|
|
|
948
938
|
function jn(r, s) {
|
|
949
939
|
return r == null ? void 0 : r[s];
|
|
950
940
|
}
|
|
951
|
-
function
|
|
941
|
+
function It(r) {
|
|
952
942
|
var s = !1;
|
|
953
943
|
if (r != null && typeof r.toString != "function")
|
|
954
944
|
try {
|
|
@@ -968,18 +958,18 @@ Qe.exports;
|
|
|
968
958
|
return r(s(u));
|
|
969
959
|
};
|
|
970
960
|
}
|
|
971
|
-
function
|
|
961
|
+
function Ct(r) {
|
|
972
962
|
var s = -1, u = Array(r.size);
|
|
973
963
|
return r.forEach(function(p) {
|
|
974
964
|
u[++s] = p;
|
|
975
965
|
}), u;
|
|
976
966
|
}
|
|
977
|
-
var $n = Array.prototype, Kn = Function.prototype,
|
|
967
|
+
var $n = Array.prototype, Kn = Function.prototype, Ae = Object.prototype, st = b["__core-js_shared__"], Bt = function() {
|
|
978
968
|
var r = /[^.]+$/.exec(st && st.keys && st.keys.IE_PROTO || "");
|
|
979
969
|
return r ? "Symbol(src)_1." + r : "";
|
|
980
|
-
}(),
|
|
981
|
-
"^" +
|
|
982
|
-
),
|
|
970
|
+
}(), Ht = Kn.toString, re = Ae.hasOwnProperty, Ie = Ae.toString, Wn = RegExp(
|
|
971
|
+
"^" + Ht.call(re).replace(L, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
972
|
+
), zt = rt ? b.Buffer : void 0, Vt = b.Symbol, Yt = b.Uint8Array, qn = ot(Object.getPrototypeOf, Object), Zn = Object.create, Qn = Ae.propertyIsEnumerable, Jn = $n.splice, jt = Object.getOwnPropertySymbols, Xn = zt ? zt.isBuffer : void 0, er = ot(Object.keys, Object), lt = he(b, "DataView"), De = he(b, "Map"), ut = he(b, "Promise"), ct = he(b, "Set"), dt = he(b, "WeakMap"), Ne = he(Object, "create"), tr = le(lt), nr = le(De), rr = le(ut), ar = le(ct), ir = le(dt), $t = Vt ? Vt.prototype : void 0, Kt = $t ? $t.valueOf : void 0;
|
|
983
973
|
function oe(r) {
|
|
984
974
|
var s = -1, u = r ? r.length : 0;
|
|
985
975
|
for (this.clear(); ++s < u; ) {
|
|
@@ -1010,7 +1000,7 @@ Qe.exports;
|
|
|
1010
1000
|
return u[r] = Ne && s === void 0 ? a : s, this;
|
|
1011
1001
|
}
|
|
1012
1002
|
oe.prototype.clear = or, oe.prototype.delete = sr, oe.prototype.get = lr, oe.prototype.has = ur, oe.prototype.set = cr;
|
|
1013
|
-
function
|
|
1003
|
+
function Z(r) {
|
|
1014
1004
|
var s = -1, u = r ? r.length : 0;
|
|
1015
1005
|
for (this.clear(); ++s < u; ) {
|
|
1016
1006
|
var p = r[s];
|
|
@@ -1021,25 +1011,25 @@ Qe.exports;
|
|
|
1021
1011
|
this.__data__ = [];
|
|
1022
1012
|
}
|
|
1023
1013
|
function mr(r) {
|
|
1024
|
-
var s = this.__data__, u =
|
|
1014
|
+
var s = this.__data__, u = Pe(s, r);
|
|
1025
1015
|
if (u < 0)
|
|
1026
1016
|
return !1;
|
|
1027
1017
|
var p = s.length - 1;
|
|
1028
1018
|
return u == p ? s.pop() : Jn.call(s, u, 1), !0;
|
|
1029
1019
|
}
|
|
1030
1020
|
function fr(r) {
|
|
1031
|
-
var s = this.__data__, u =
|
|
1021
|
+
var s = this.__data__, u = Pe(s, r);
|
|
1032
1022
|
return u < 0 ? void 0 : s[u][1];
|
|
1033
1023
|
}
|
|
1034
1024
|
function pr(r) {
|
|
1035
|
-
return
|
|
1025
|
+
return Pe(this.__data__, r) > -1;
|
|
1036
1026
|
}
|
|
1037
1027
|
function hr(r, s) {
|
|
1038
|
-
var u = this.__data__, p =
|
|
1028
|
+
var u = this.__data__, p = Pe(u, r);
|
|
1039
1029
|
return p < 0 ? u.push([r, s]) : u[p][1] = s, this;
|
|
1040
1030
|
}
|
|
1041
|
-
|
|
1042
|
-
function
|
|
1031
|
+
Z.prototype.clear = dr, Z.prototype.delete = mr, Z.prototype.get = fr, Z.prototype.has = pr, Z.prototype.set = hr;
|
|
1032
|
+
function fe(r) {
|
|
1043
1033
|
var s = -1, u = r ? r.length : 0;
|
|
1044
1034
|
for (this.clear(); ++s < u; ) {
|
|
1045
1035
|
var p = r[s];
|
|
@@ -1049,28 +1039,28 @@ Qe.exports;
|
|
|
1049
1039
|
function yr() {
|
|
1050
1040
|
this.__data__ = {
|
|
1051
1041
|
hash: new oe(),
|
|
1052
|
-
map: new (De ||
|
|
1042
|
+
map: new (De || Z)(),
|
|
1053
1043
|
string: new oe()
|
|
1054
1044
|
};
|
|
1055
1045
|
}
|
|
1056
1046
|
function _r(r) {
|
|
1057
|
-
return
|
|
1047
|
+
return Ce(this, r).delete(r);
|
|
1058
1048
|
}
|
|
1059
1049
|
function gr(r) {
|
|
1060
|
-
return
|
|
1050
|
+
return Ce(this, r).get(r);
|
|
1061
1051
|
}
|
|
1062
1052
|
function wr(r) {
|
|
1063
|
-
return
|
|
1053
|
+
return Ce(this, r).has(r);
|
|
1064
1054
|
}
|
|
1065
1055
|
function vr(r, s) {
|
|
1066
|
-
return
|
|
1056
|
+
return Ce(this, r).set(r, s), this;
|
|
1067
1057
|
}
|
|
1068
|
-
|
|
1069
|
-
function
|
|
1070
|
-
this.__data__ = new
|
|
1058
|
+
fe.prototype.clear = yr, fe.prototype.delete = _r, fe.prototype.get = gr, fe.prototype.has = wr, fe.prototype.set = vr;
|
|
1059
|
+
function pe(r) {
|
|
1060
|
+
this.__data__ = new Z(r);
|
|
1071
1061
|
}
|
|
1072
1062
|
function xr() {
|
|
1073
|
-
this.__data__ = new
|
|
1063
|
+
this.__data__ = new Z();
|
|
1074
1064
|
}
|
|
1075
1065
|
function Tr(r) {
|
|
1076
1066
|
return this.__data__.delete(r);
|
|
@@ -1083,28 +1073,28 @@ Qe.exports;
|
|
|
1083
1073
|
}
|
|
1084
1074
|
function Sr(r, s) {
|
|
1085
1075
|
var u = this.__data__;
|
|
1086
|
-
if (u instanceof
|
|
1076
|
+
if (u instanceof Z) {
|
|
1087
1077
|
var p = u.__data__;
|
|
1088
1078
|
if (!De || p.length < n - 1)
|
|
1089
1079
|
return p.push([r, s]), this;
|
|
1090
|
-
u = this.__data__ = new
|
|
1080
|
+
u = this.__data__ = new fe(p);
|
|
1091
1081
|
}
|
|
1092
1082
|
return u.set(r, s), this;
|
|
1093
1083
|
}
|
|
1094
|
-
|
|
1084
|
+
pe.prototype.clear = xr, pe.prototype.delete = Tr, pe.prototype.get = Fr, pe.prototype.has = Mr, pe.prototype.set = Sr;
|
|
1095
1085
|
function Dr(r, s) {
|
|
1096
|
-
var u = pt(r) ||
|
|
1086
|
+
var u = pt(r) || Zr(r) ? Yn(r.length, String) : [], p = u.length, N = !!p;
|
|
1097
1087
|
for (var O in r)
|
|
1098
1088
|
re.call(r, O) && !(N && (O == "length" || $r(O, p))) && u.push(O);
|
|
1099
1089
|
return u;
|
|
1100
1090
|
}
|
|
1101
|
-
function
|
|
1091
|
+
function Wt(r, s, u) {
|
|
1102
1092
|
var p = r[s];
|
|
1103
|
-
(!(re.call(r, s) &&
|
|
1093
|
+
(!(re.call(r, s) && Jt(p, u)) || u === void 0 && !(s in r)) && (r[s] = u);
|
|
1104
1094
|
}
|
|
1105
|
-
function
|
|
1095
|
+
function Pe(r, s) {
|
|
1106
1096
|
for (var u = r.length; u--; )
|
|
1107
|
-
if (
|
|
1097
|
+
if (Jt(r[u][0], s))
|
|
1108
1098
|
return u;
|
|
1109
1099
|
return -1;
|
|
1110
1100
|
}
|
|
@@ -1112,65 +1102,65 @@ Qe.exports;
|
|
|
1112
1102
|
return r && qt(s, ht(s), r);
|
|
1113
1103
|
}
|
|
1114
1104
|
function mt(r, s, u, p, N, O, Q) {
|
|
1115
|
-
var
|
|
1116
|
-
if (p && (
|
|
1117
|
-
return
|
|
1105
|
+
var G;
|
|
1106
|
+
if (p && (G = O ? p(r, N, O, Q) : p(r)), G !== void 0)
|
|
1107
|
+
return G;
|
|
1118
1108
|
if (!Be(r))
|
|
1119
1109
|
return r;
|
|
1120
|
-
var
|
|
1121
|
-
if (
|
|
1122
|
-
if (
|
|
1123
|
-
return Br(r,
|
|
1110
|
+
var tn = pt(r);
|
|
1111
|
+
if (tn) {
|
|
1112
|
+
if (G = Vr(r), !s)
|
|
1113
|
+
return Br(r, G);
|
|
1124
1114
|
} else {
|
|
1125
|
-
var
|
|
1115
|
+
var ye = se(r), nn = ye == c || ye == x;
|
|
1126
1116
|
if (Jr(r))
|
|
1127
|
-
return
|
|
1128
|
-
if (
|
|
1129
|
-
if (
|
|
1117
|
+
return Gr(r, s);
|
|
1118
|
+
if (ye == T || ye == o || nn && !O) {
|
|
1119
|
+
if (It(r))
|
|
1130
1120
|
return O ? r : {};
|
|
1131
|
-
if (
|
|
1132
|
-
return Hr(r, Nr(
|
|
1121
|
+
if (G = Yr(nn ? {} : r), !s)
|
|
1122
|
+
return Hr(r, Nr(G, r));
|
|
1133
1123
|
} else {
|
|
1134
|
-
if (!_[
|
|
1124
|
+
if (!_[ye])
|
|
1135
1125
|
return O ? r : {};
|
|
1136
|
-
|
|
1126
|
+
G = jr(r, ye, mt, s);
|
|
1137
1127
|
}
|
|
1138
1128
|
}
|
|
1139
|
-
Q || (Q = new
|
|
1140
|
-
var
|
|
1141
|
-
if (
|
|
1142
|
-
return
|
|
1143
|
-
if (Q.set(r,
|
|
1144
|
-
var
|
|
1145
|
-
return Se(
|
|
1146
|
-
|
|
1147
|
-
}),
|
|
1129
|
+
Q || (Q = new pe());
|
|
1130
|
+
var rn = Q.get(r);
|
|
1131
|
+
if (rn)
|
|
1132
|
+
return rn;
|
|
1133
|
+
if (Q.set(r, G), !tn)
|
|
1134
|
+
var an = u ? zr(r) : ht(r);
|
|
1135
|
+
return Se(an || r, function(yt, He) {
|
|
1136
|
+
an && (He = yt, yt = r[He]), Wt(G, He, mt(yt, s, u, p, He, r, Q));
|
|
1137
|
+
}), G;
|
|
1148
1138
|
}
|
|
1149
1139
|
function kr(r) {
|
|
1150
|
-
return Be(r) ?
|
|
1140
|
+
return Be(r) ? Zn(r) : {};
|
|
1151
1141
|
}
|
|
1152
1142
|
function Rr(r, s, u) {
|
|
1153
1143
|
var p = s(r);
|
|
1154
1144
|
return pt(r) ? p : Vn(p, u(r));
|
|
1155
1145
|
}
|
|
1156
1146
|
function Er(r) {
|
|
1157
|
-
return
|
|
1147
|
+
return Ie.call(r);
|
|
1158
1148
|
}
|
|
1159
1149
|
function br(r) {
|
|
1160
1150
|
if (!Be(r) || Wr(r))
|
|
1161
1151
|
return !1;
|
|
1162
|
-
var s =
|
|
1152
|
+
var s = en(r) || It(r) ? Wn : Y;
|
|
1163
1153
|
return s.test(le(r));
|
|
1164
1154
|
}
|
|
1165
1155
|
function Or(r) {
|
|
1166
|
-
if (!
|
|
1156
|
+
if (!Qt(r))
|
|
1167
1157
|
return er(r);
|
|
1168
1158
|
var s = [];
|
|
1169
1159
|
for (var u in Object(r))
|
|
1170
1160
|
re.call(r, u) && u != "constructor" && s.push(u);
|
|
1171
1161
|
return s;
|
|
1172
1162
|
}
|
|
1173
|
-
function
|
|
1163
|
+
function Gr(r, s) {
|
|
1174
1164
|
if (s)
|
|
1175
1165
|
return r.slice();
|
|
1176
1166
|
var u = new r.constructor(r.length);
|
|
@@ -1178,9 +1168,9 @@ Qe.exports;
|
|
|
1178
1168
|
}
|
|
1179
1169
|
function ft(r) {
|
|
1180
1170
|
var s = new r.constructor(r.byteLength);
|
|
1181
|
-
return new
|
|
1171
|
+
return new Yt(s).set(new Yt(r)), s;
|
|
1182
1172
|
}
|
|
1183
|
-
function
|
|
1173
|
+
function Lr(r, s) {
|
|
1184
1174
|
var u = s ? ft(r.buffer) : r.buffer;
|
|
1185
1175
|
return new r.constructor(u, r.byteOffset, r.byteLength);
|
|
1186
1176
|
}
|
|
@@ -1188,18 +1178,18 @@ Qe.exports;
|
|
|
1188
1178
|
var p = s ? u(Pt(r), !0) : Pt(r);
|
|
1189
1179
|
return At(p, at, new r.constructor());
|
|
1190
1180
|
}
|
|
1191
|
-
function
|
|
1181
|
+
function Ar(r) {
|
|
1192
1182
|
var s = new r.constructor(r.source, V.exec(r));
|
|
1193
1183
|
return s.lastIndex = r.lastIndex, s;
|
|
1194
1184
|
}
|
|
1195
|
-
function
|
|
1196
|
-
var p = s ? u(
|
|
1185
|
+
function Ir(r, s, u) {
|
|
1186
|
+
var p = s ? u(Ct(r), !0) : Ct(r);
|
|
1197
1187
|
return At(p, it, new r.constructor());
|
|
1198
1188
|
}
|
|
1199
|
-
function
|
|
1200
|
-
return
|
|
1189
|
+
function Pr(r) {
|
|
1190
|
+
return Kt ? Object(Kt.call(r)) : {};
|
|
1201
1191
|
}
|
|
1202
|
-
function
|
|
1192
|
+
function Cr(r, s) {
|
|
1203
1193
|
var u = s ? ft(r.buffer) : r.buffer;
|
|
1204
1194
|
return new r.constructor(u, r.byteOffset, r.length);
|
|
1205
1195
|
}
|
|
@@ -1212,32 +1202,32 @@ Qe.exports;
|
|
|
1212
1202
|
function qt(r, s, u, p) {
|
|
1213
1203
|
u || (u = {});
|
|
1214
1204
|
for (var N = -1, O = s.length; ++N < O; ) {
|
|
1215
|
-
var Q = s[N],
|
|
1216
|
-
|
|
1205
|
+
var Q = s[N], G = void 0;
|
|
1206
|
+
Wt(u, Q, G === void 0 ? r[Q] : G);
|
|
1217
1207
|
}
|
|
1218
1208
|
return u;
|
|
1219
1209
|
}
|
|
1220
1210
|
function Hr(r, s) {
|
|
1221
|
-
return qt(r,
|
|
1211
|
+
return qt(r, Zt(r), s);
|
|
1222
1212
|
}
|
|
1223
1213
|
function zr(r) {
|
|
1224
|
-
return Rr(r, ht,
|
|
1214
|
+
return Rr(r, ht, Zt);
|
|
1225
1215
|
}
|
|
1226
|
-
function
|
|
1216
|
+
function Ce(r, s) {
|
|
1227
1217
|
var u = r.__data__;
|
|
1228
1218
|
return Kr(s) ? u[typeof s == "string" ? "string" : "hash"] : u.map;
|
|
1229
1219
|
}
|
|
1230
|
-
function
|
|
1220
|
+
function he(r, s) {
|
|
1231
1221
|
var u = jn(r, s);
|
|
1232
1222
|
return br(u) ? u : void 0;
|
|
1233
1223
|
}
|
|
1234
|
-
var
|
|
1235
|
-
(lt && se(new lt(new ArrayBuffer(1))) !=
|
|
1236
|
-
var s =
|
|
1224
|
+
var Zt = jt ? ot(jt, Object) : ta, se = Er;
|
|
1225
|
+
(lt && se(new lt(new ArrayBuffer(1))) != de || De && se(new De()) != F || ut && se(ut.resolve()) != k || ct && se(new ct()) != B || dt && se(new dt()) != D) && (se = function(r) {
|
|
1226
|
+
var s = Ie.call(r), u = s == T ? r.constructor : void 0, p = u ? le(u) : void 0;
|
|
1237
1227
|
if (p)
|
|
1238
1228
|
switch (p) {
|
|
1239
1229
|
case tr:
|
|
1240
|
-
return
|
|
1230
|
+
return de;
|
|
1241
1231
|
case nr:
|
|
1242
1232
|
return F;
|
|
1243
1233
|
case rr:
|
|
@@ -1254,7 +1244,7 @@ Qe.exports;
|
|
|
1254
1244
|
return s && typeof r[0] == "string" && re.call(r, "index") && (u.index = r.index, u.input = r.input), u;
|
|
1255
1245
|
}
|
|
1256
1246
|
function Yr(r) {
|
|
1257
|
-
return typeof r.constructor == "function" && !
|
|
1247
|
+
return typeof r.constructor == "function" && !Qt(r) ? kr(qn(r)) : {};
|
|
1258
1248
|
}
|
|
1259
1249
|
function jr(r, s, u, p) {
|
|
1260
1250
|
var N = r.constructor;
|
|
@@ -1264,8 +1254,8 @@ Qe.exports;
|
|
|
1264
1254
|
case d:
|
|
1265
1255
|
case m:
|
|
1266
1256
|
return new N(+r);
|
|
1267
|
-
case
|
|
1268
|
-
return
|
|
1257
|
+
case de:
|
|
1258
|
+
return Lr(r, p);
|
|
1269
1259
|
case y:
|
|
1270
1260
|
case v:
|
|
1271
1261
|
case M:
|
|
@@ -1275,18 +1265,18 @@ Qe.exports;
|
|
|
1275
1265
|
case z:
|
|
1276
1266
|
case te:
|
|
1277
1267
|
case ne:
|
|
1278
|
-
return
|
|
1268
|
+
return Cr(r, p);
|
|
1279
1269
|
case F:
|
|
1280
1270
|
return Ur(r, p, u);
|
|
1281
1271
|
case g:
|
|
1282
1272
|
case U:
|
|
1283
1273
|
return new N(r);
|
|
1284
1274
|
case H:
|
|
1285
|
-
return
|
|
1275
|
+
return Ar(r);
|
|
1286
1276
|
case B:
|
|
1287
|
-
return
|
|
1277
|
+
return Ir(r, p, u);
|
|
1288
1278
|
case ie:
|
|
1289
|
-
return
|
|
1279
|
+
return Pr(r);
|
|
1290
1280
|
}
|
|
1291
1281
|
}
|
|
1292
1282
|
function $r(r, s) {
|
|
@@ -1297,16 +1287,16 @@ Qe.exports;
|
|
|
1297
1287
|
return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? r !== "__proto__" : r === null;
|
|
1298
1288
|
}
|
|
1299
1289
|
function Wr(r) {
|
|
1300
|
-
return !!
|
|
1290
|
+
return !!Bt && Bt in r;
|
|
1301
1291
|
}
|
|
1302
|
-
function
|
|
1303
|
-
var s = r && r.constructor, u = typeof s == "function" && s.prototype ||
|
|
1292
|
+
function Qt(r) {
|
|
1293
|
+
var s = r && r.constructor, u = typeof s == "function" && s.prototype || Ae;
|
|
1304
1294
|
return r === u;
|
|
1305
1295
|
}
|
|
1306
1296
|
function le(r) {
|
|
1307
1297
|
if (r != null) {
|
|
1308
1298
|
try {
|
|
1309
|
-
return
|
|
1299
|
+
return Ht.call(r);
|
|
1310
1300
|
} catch {
|
|
1311
1301
|
}
|
|
1312
1302
|
try {
|
|
@@ -1316,25 +1306,25 @@ Qe.exports;
|
|
|
1316
1306
|
}
|
|
1317
1307
|
return "";
|
|
1318
1308
|
}
|
|
1319
|
-
function
|
|
1309
|
+
function qr(r) {
|
|
1320
1310
|
return mt(r, !0, !0);
|
|
1321
1311
|
}
|
|
1322
|
-
function
|
|
1312
|
+
function Jt(r, s) {
|
|
1323
1313
|
return r === s || r !== r && s !== s;
|
|
1324
1314
|
}
|
|
1325
|
-
function
|
|
1326
|
-
return Qr(r) && re.call(r, "callee") && (!Qn.call(r, "callee") ||
|
|
1315
|
+
function Zr(r) {
|
|
1316
|
+
return Qr(r) && re.call(r, "callee") && (!Qn.call(r, "callee") || Ie.call(r) == o);
|
|
1327
1317
|
}
|
|
1328
1318
|
var pt = Array.isArray;
|
|
1329
|
-
function
|
|
1330
|
-
return r != null && Xr(r.length) && !
|
|
1319
|
+
function Xt(r) {
|
|
1320
|
+
return r != null && Xr(r.length) && !en(r);
|
|
1331
1321
|
}
|
|
1332
1322
|
function Qr(r) {
|
|
1333
|
-
return ea(r) &&
|
|
1323
|
+
return ea(r) && Xt(r);
|
|
1334
1324
|
}
|
|
1335
1325
|
var Jr = Xn || na;
|
|
1336
|
-
function
|
|
1337
|
-
var s = Be(r) ?
|
|
1326
|
+
function en(r) {
|
|
1327
|
+
var s = Be(r) ? Ie.call(r) : "";
|
|
1338
1328
|
return s == c || s == x;
|
|
1339
1329
|
}
|
|
1340
1330
|
function Xr(r) {
|
|
@@ -1348,7 +1338,7 @@ Qe.exports;
|
|
|
1348
1338
|
return !!r && typeof r == "object";
|
|
1349
1339
|
}
|
|
1350
1340
|
function ht(r) {
|
|
1351
|
-
return
|
|
1341
|
+
return Xt(r) ? Dr(r) : Or(r);
|
|
1352
1342
|
}
|
|
1353
1343
|
function ta() {
|
|
1354
1344
|
return [];
|
|
@@ -1356,13 +1346,13 @@ Qe.exports;
|
|
|
1356
1346
|
function na() {
|
|
1357
1347
|
return !1;
|
|
1358
1348
|
}
|
|
1359
|
-
e.exports =
|
|
1349
|
+
e.exports = qr;
|
|
1360
1350
|
})(Qe, Qe.exports);
|
|
1361
1351
|
Qe.exports;
|
|
1362
|
-
const
|
|
1352
|
+
const C = (e, t) => new Date(e.getTime() - oi(t, e));
|
|
1363
1353
|
class S {
|
|
1364
1354
|
constructor(t) {
|
|
1365
|
-
|
|
1355
|
+
A(this, "timeframeText"), A(this, "key"), A(this, "display"), A(this, "timeframeLength"), A(this, "allowedTiers"), A(this, "defaultResponseGranularity"), A(this, "dataGranularity"), A(this, "isRelative"), A(this, "fineGrainedDefaultGranularity"), A(this, "_startCustom"), A(this, "_endCustom"), A(this, "_allowedGranularitiesOverride"), this.display = t.display, this.timeframeText = t.timeframeText, this.key = t.key, this.timeframeLength = t.timeframeLength, this.allowedTiers = t.allowedTiers, this.defaultResponseGranularity = t.defaultResponseGranularity, this.dataGranularity = t.dataGranularity, this.isRelative = t.isRelative, this._startCustom = t.startCustom, this._endCustom = t.endCustom, this._allowedGranularitiesOverride = t.allowedGranularitiesOverride, this.fineGrainedDefaultGranularity = t.fineGrainedDefaultGranularity;
|
|
1366
1356
|
}
|
|
1367
1357
|
// rawEnd does not consider granularity and should not be used directly in queries.
|
|
1368
1358
|
// Use `new QueryTime(timeframe, granularity?).queryEndSeconds()` instead.
|
|
@@ -1407,87 +1397,87 @@ class S {
|
|
|
1407
1397
|
tzAdjustedDate(t) {
|
|
1408
1398
|
if (!t)
|
|
1409
1399
|
return /* @__PURE__ */ new Date();
|
|
1410
|
-
const n =
|
|
1411
|
-
return
|
|
1400
|
+
const n = ii(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
1401
|
+
return ai(n, t);
|
|
1412
1402
|
}
|
|
1413
1403
|
}
|
|
1414
|
-
class
|
|
1404
|
+
class si extends S {
|
|
1415
1405
|
rawStart(t) {
|
|
1416
|
-
let n =
|
|
1417
|
-
return t && (n =
|
|
1406
|
+
let n = Ze(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
1407
|
+
return t && (n = C(n, t)), n;
|
|
1418
1408
|
}
|
|
1419
1409
|
maximumTimeframeLength() {
|
|
1420
1410
|
return 60 * 60 * 24 * 7;
|
|
1421
1411
|
}
|
|
1422
1412
|
}
|
|
1423
|
-
class
|
|
1413
|
+
class li extends S {
|
|
1424
1414
|
rawStart(t) {
|
|
1425
|
-
let n =
|
|
1426
|
-
return t && (n =
|
|
1415
|
+
let n = ve(this.tzAdjustedDate(t));
|
|
1416
|
+
return t && (n = C(n, t)), n;
|
|
1427
1417
|
}
|
|
1428
1418
|
maximumTimeframeLength() {
|
|
1429
1419
|
return 60 * 60 * 24 * 31;
|
|
1430
1420
|
}
|
|
1431
1421
|
}
|
|
1432
|
-
class
|
|
1422
|
+
class ui extends S {
|
|
1433
1423
|
rawStart(t) {
|
|
1434
|
-
let n =
|
|
1435
|
-
return t && (n =
|
|
1424
|
+
let n = we(this.tzAdjustedDate(t));
|
|
1425
|
+
return t && (n = C(n, t)), n;
|
|
1436
1426
|
}
|
|
1437
1427
|
maximumTimeframeLength() {
|
|
1438
1428
|
return 60 * 60 * 24 * 92;
|
|
1439
1429
|
}
|
|
1440
1430
|
}
|
|
1441
|
-
class
|
|
1431
|
+
class ci extends S {
|
|
1442
1432
|
rawStart(t) {
|
|
1443
1433
|
let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
|
|
1444
|
-
return t && (n =
|
|
1434
|
+
return t && (n = C(n, t)), n;
|
|
1445
1435
|
}
|
|
1446
1436
|
maximumTimeframeLength() {
|
|
1447
1437
|
return 60 * 60 * 24 * 366;
|
|
1448
1438
|
}
|
|
1449
1439
|
}
|
|
1450
|
-
class
|
|
1440
|
+
class di extends S {
|
|
1451
1441
|
rawEnd(t) {
|
|
1452
|
-
let n =
|
|
1453
|
-
return t && (n =
|
|
1442
|
+
let n = Ze(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
1443
|
+
return t && (n = C(n, t)), n;
|
|
1454
1444
|
}
|
|
1455
1445
|
rawStart(t) {
|
|
1456
1446
|
const n = this.tzAdjustedDate(t);
|
|
1457
|
-
let a =
|
|
1447
|
+
let a = Ze(n.setDate(n.getDate() - 7), {
|
|
1458
1448
|
weekStartsOn: 1
|
|
1459
1449
|
});
|
|
1460
|
-
return t && (a =
|
|
1450
|
+
return t && (a = C(a, t)), a;
|
|
1461
1451
|
}
|
|
1462
1452
|
}
|
|
1463
|
-
class
|
|
1453
|
+
class mi extends S {
|
|
1464
1454
|
rawEnd(t) {
|
|
1465
|
-
let n =
|
|
1466
|
-
return t && (n =
|
|
1455
|
+
let n = we(this.tzAdjustedDate(t));
|
|
1456
|
+
return t && (n = C(n, t)), n;
|
|
1467
1457
|
}
|
|
1468
1458
|
rawStart(t) {
|
|
1469
|
-
let n =
|
|
1470
|
-
return t && (n =
|
|
1459
|
+
let n = we(Pn(this.tzAdjustedDate(t)));
|
|
1460
|
+
return t && (n = C(n, t)), n;
|
|
1471
1461
|
}
|
|
1472
1462
|
}
|
|
1473
|
-
class
|
|
1463
|
+
class fi extends S {
|
|
1474
1464
|
rawEnd(t) {
|
|
1475
|
-
let n =
|
|
1476
|
-
return t && (n =
|
|
1465
|
+
let n = ve(this.tzAdjustedDate(t));
|
|
1466
|
+
return t && (n = C(n, t)), n;
|
|
1477
1467
|
}
|
|
1478
1468
|
rawStart(t) {
|
|
1479
|
-
let n =
|
|
1480
|
-
return t && (n =
|
|
1469
|
+
let n = ve(In(this.tzAdjustedDate(t)));
|
|
1470
|
+
return t && (n = C(n, t)), n;
|
|
1481
1471
|
}
|
|
1482
1472
|
}
|
|
1483
|
-
class
|
|
1473
|
+
class pi extends S {
|
|
1484
1474
|
rawEnd(t) {
|
|
1485
1475
|
let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
|
|
1486
|
-
return t && (n =
|
|
1476
|
+
return t && (n = C(n, t)), n;
|
|
1487
1477
|
}
|
|
1488
1478
|
rawStart(t) {
|
|
1489
1479
|
let n = new Date(this.tzAdjustedDate(t).getFullYear() - 1, 0, 1);
|
|
1490
|
-
return t && (n =
|
|
1480
|
+
return t && (n = C(n, t)), n;
|
|
1491
1481
|
}
|
|
1492
1482
|
}
|
|
1493
1483
|
f.FIFTEEN_MIN, new S({
|
|
@@ -1600,12 +1590,12 @@ f.FIFTEEN_MIN, new S({
|
|
|
1600
1590
|
fineGrainedDefaultGranularity: "daily",
|
|
1601
1591
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
1602
1592
|
allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
|
|
1603
|
-
}), f.CURRENT_WEEK, new
|
|
1593
|
+
}), f.CURRENT_WEEK, new si({
|
|
1604
1594
|
key: f.CURRENT_WEEK,
|
|
1605
1595
|
display: "This week",
|
|
1606
1596
|
timeframeText: "Week",
|
|
1607
1597
|
timeframeLength: () => {
|
|
1608
|
-
const e =
|
|
1598
|
+
const e = Ze(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
|
|
1609
1599
|
return (Ve(Ye(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
1610
1600
|
},
|
|
1611
1601
|
defaultResponseGranularity: "daily",
|
|
@@ -1614,31 +1604,31 @@ f.FIFTEEN_MIN, new S({
|
|
|
1614
1604
|
fineGrainedDefaultGranularity: "twoHourly",
|
|
1615
1605
|
allowedTiers: ["plus", "enterprise"],
|
|
1616
1606
|
allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
|
|
1617
|
-
}), f.CURRENT_MONTH, new
|
|
1607
|
+
}), f.CURRENT_MONTH, new li({
|
|
1618
1608
|
key: f.CURRENT_MONTH,
|
|
1619
1609
|
display: "This month",
|
|
1620
1610
|
timeframeText: "Month",
|
|
1621
1611
|
timeframeLength: () => {
|
|
1622
|
-
const e =
|
|
1612
|
+
const e = ve(/* @__PURE__ */ new Date());
|
|
1623
1613
|
return (Ve(Ye(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
1624
1614
|
},
|
|
1625
1615
|
defaultResponseGranularity: "daily",
|
|
1626
1616
|
dataGranularity: "daily",
|
|
1627
1617
|
isRelative: !1,
|
|
1628
1618
|
allowedTiers: ["plus", "enterprise"]
|
|
1629
|
-
}), f.CURRENT_QUARTER, new
|
|
1619
|
+
}), f.CURRENT_QUARTER, new ui({
|
|
1630
1620
|
key: f.CURRENT_QUARTER,
|
|
1631
1621
|
display: "This quarter",
|
|
1632
1622
|
timeframeText: "Quarter",
|
|
1633
1623
|
timeframeLength: () => {
|
|
1634
|
-
const e =
|
|
1624
|
+
const e = we(/* @__PURE__ */ new Date());
|
|
1635
1625
|
return (Ve(Ye(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
1636
1626
|
},
|
|
1637
1627
|
defaultResponseGranularity: "daily",
|
|
1638
1628
|
dataGranularity: "daily",
|
|
1639
1629
|
isRelative: !1,
|
|
1640
1630
|
allowedTiers: ["plus", "enterprise"]
|
|
1641
|
-
}), f.CURRENT_YEAR, new
|
|
1631
|
+
}), f.CURRENT_YEAR, new ci({
|
|
1642
1632
|
key: f.CURRENT_YEAR,
|
|
1643
1633
|
display: "This year",
|
|
1644
1634
|
timeframeText: "Year",
|
|
@@ -1650,7 +1640,7 @@ f.FIFTEEN_MIN, new S({
|
|
|
1650
1640
|
dataGranularity: "daily",
|
|
1651
1641
|
isRelative: !1,
|
|
1652
1642
|
allowedTiers: ["plus", "enterprise"]
|
|
1653
|
-
}), f.PREVIOUS_WEEK, new
|
|
1643
|
+
}), f.PREVIOUS_WEEK, new di({
|
|
1654
1644
|
key: f.PREVIOUS_WEEK,
|
|
1655
1645
|
display: "Previous week",
|
|
1656
1646
|
timeframeText: "Week",
|
|
@@ -1661,51 +1651,51 @@ f.FIFTEEN_MIN, new S({
|
|
|
1661
1651
|
fineGrainedDefaultGranularity: "twoHourly",
|
|
1662
1652
|
allowedTiers: ["plus", "enterprise"],
|
|
1663
1653
|
allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
|
|
1664
|
-
}), f.PREVIOUS_MONTH, new
|
|
1654
|
+
}), f.PREVIOUS_MONTH, new fi({
|
|
1665
1655
|
key: f.PREVIOUS_MONTH,
|
|
1666
1656
|
display: "Previous month",
|
|
1667
1657
|
timeframeText: "Month",
|
|
1668
1658
|
timeframeLength: () => {
|
|
1669
1659
|
let e = 0;
|
|
1670
|
-
const t =
|
|
1671
|
-
return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e =
|
|
1660
|
+
const t = ve(/* @__PURE__ */ new Date()), n = ve(In(/* @__PURE__ */ new Date()));
|
|
1661
|
+
return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = gn(t, n)), 60 * 60 * 24 * Pa((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + ln(e);
|
|
1672
1662
|
},
|
|
1673
1663
|
defaultResponseGranularity: "daily",
|
|
1674
1664
|
dataGranularity: "daily",
|
|
1675
1665
|
isRelative: !1,
|
|
1676
1666
|
allowedTiers: ["plus", "enterprise"]
|
|
1677
|
-
}), f.PREVIOUS_QUARTER, new
|
|
1667
|
+
}), f.PREVIOUS_QUARTER, new mi({
|
|
1678
1668
|
key: f.PREVIOUS_QUARTER,
|
|
1679
1669
|
display: "Previous quarter",
|
|
1680
1670
|
timeframeText: "Quarter",
|
|
1681
1671
|
timeframeLength: () => {
|
|
1682
|
-
const e =
|
|
1672
|
+
const e = we(/* @__PURE__ */ new Date()), t = we(Pn(/* @__PURE__ */ new Date()));
|
|
1683
1673
|
return (e.getTime() - t.getTime()) / 1e3;
|
|
1684
1674
|
},
|
|
1685
1675
|
defaultResponseGranularity: "daily",
|
|
1686
1676
|
dataGranularity: "daily",
|
|
1687
1677
|
isRelative: !1,
|
|
1688
1678
|
allowedTiers: ["plus", "enterprise"]
|
|
1689
|
-
}), f.PREVIOUS_YEAR, new
|
|
1679
|
+
}), f.PREVIOUS_YEAR, new pi({
|
|
1690
1680
|
key: f.PREVIOUS_YEAR,
|
|
1691
1681
|
display: "Previous year",
|
|
1692
1682
|
timeframeText: "Year",
|
|
1693
1683
|
timeframeLength: () => {
|
|
1694
1684
|
const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1), t = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1);
|
|
1695
1685
|
let n = 0;
|
|
1696
|
-
return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n =
|
|
1686
|
+
return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n = gn(e, t)), 60 * 60 * 24 * (365 + (t.getFullYear() % 4 === 0 ? 1 : 0)) + ln(n);
|
|
1697
1687
|
},
|
|
1698
1688
|
defaultResponseGranularity: "daily",
|
|
1699
1689
|
dataGranularity: "daily",
|
|
1700
1690
|
isRelative: !1,
|
|
1701
1691
|
allowedTiers: ["plus", "enterprise"]
|
|
1702
1692
|
});
|
|
1703
|
-
function
|
|
1704
|
-
return
|
|
1693
|
+
function gn(e, t) {
|
|
1694
|
+
return Ca(e.getTimezoneOffset() - t.getTimezoneOffset());
|
|
1705
1695
|
}
|
|
1706
1696
|
f.FIFTEEN_MIN, f.ONE_HOUR, f.SIX_HOUR, f.TWELVE_HOUR, f.ONE_DAY, f.SEVEN_DAY, f.FIFTEEN_MIN, f.ONE_HOUR, f.SIX_HOUR, f.TWELVE_HOUR, f.ONE_DAY, f.SEVEN_DAY, f.THIRTY_DAY, f.NINETY_DAY, f.ONE_HUNDRED_EIGHTY_DAY, f.ONE_YEAR, f.CURRENT_WEEK, f.CURRENT_MONTH, f.CURRENT_QUARTER, f.CURRENT_YEAR, f.PREVIOUS_WEEK, f.PREVIOUS_MONTH, f.PREVIOUS_QUARTER, f.PREVIOUS_YEAR;
|
|
1707
|
-
new Map(
|
|
1708
|
-
const
|
|
1697
|
+
new Map(Et.map((e) => [e.code, { code: e.code, name: e.name }]));
|
|
1698
|
+
const wn = 1e3, hi = 1e4, vn = 1e6, xn = 1e9, Tn = 1e12, We = (e, t) => {
|
|
1709
1699
|
if (t.separator === !1 || e < 1e3)
|
|
1710
1700
|
return e.toString();
|
|
1711
1701
|
const n = typeof t.separator == "string" ? t.separator : ",", a = [];
|
|
@@ -1721,17 +1711,17 @@ const vn = 1e3, _i = 1e4, xn = 1e6, Tn = 1e9, Fn = 1e12, We = (e, t) => {
|
|
|
1721
1711
|
let l = o.toString();
|
|
1722
1712
|
return typeof n.decimal == "string" && (l = l.replace(".", n.decimal)), l;
|
|
1723
1713
|
};
|
|
1724
|
-
function
|
|
1714
|
+
function qe(e, t = {}) {
|
|
1725
1715
|
let n;
|
|
1726
1716
|
const a = e < 0;
|
|
1727
1717
|
a && (e = Math.abs(e)), t.precision && (e = parseFloat(e.toPrecision(t.precision)));
|
|
1728
|
-
const i = t.min10k ?
|
|
1729
|
-
return e < i || t.precision && t.precision > Math.log10(e) ? n = We(Re(e, 1, t), t) : e <
|
|
1718
|
+
const i = t.min10k ? hi : wn;
|
|
1719
|
+
return e < i || t.precision && t.precision > Math.log10(e) ? n = We(Re(e, 1, t), t) : e < vn ? n = `${Re(e, wn, t)}k` : e < xn ? n = `${Re(e, vn, t)}m` : e < Tn ? n = `${We(Re(e, xn, t), t)}b` : n = `${We(Re(e, Tn, t), t)}t`, a && (n = `-${n}`), t.capital && (n = n.toUpperCase()), t.prefix && (n = `${t.prefix}${n}`), t.suffix && (n = `${n}${t.suffix}`), n;
|
|
1730
1720
|
}
|
|
1731
|
-
|
|
1732
|
-
var
|
|
1733
|
-
const
|
|
1734
|
-
function
|
|
1721
|
+
qe.addCommas = We;
|
|
1722
|
+
var Fn;
|
|
1723
|
+
const yi = typeof document < "u" && ((Fn = document.documentElement) == null ? void 0 : Fn.lang) || "en-US", Ft = new Intl.NumberFormat(yi);
|
|
1724
|
+
function _i({
|
|
1735
1725
|
i18n: e
|
|
1736
1726
|
}) {
|
|
1737
1727
|
const t = (a, i) => {
|
|
@@ -1776,7 +1766,7 @@ function wi({
|
|
|
1776
1766
|
case "token count":
|
|
1777
1767
|
case "count":
|
|
1778
1768
|
default:
|
|
1779
|
-
return isNaN(a) ? `${a}` : d ? `${
|
|
1769
|
+
return isNaN(a) ? `${a}` : d ? `${qe(a, { capital: !0 })} ${h}` : a >= 0.01 ? `${Ft.format(Number.parseFloat(a.toFixed(2)))} ${h}` : `${Number.parseFloat(a.toPrecision(4))} ${h}`;
|
|
1780
1770
|
}
|
|
1781
1771
|
}, formatBytes: t, formatCost: n, formatRange: (a, i, o, {
|
|
1782
1772
|
isBytes1024: l = !1,
|
|
@@ -1798,19 +1788,19 @@ function wi({
|
|
|
1798
1788
|
if (isNaN(a) || isNaN(i))
|
|
1799
1789
|
return `${a} - ${i}`;
|
|
1800
1790
|
if (m)
|
|
1801
|
-
return `${
|
|
1791
|
+
return `${qe(a, { capital: !0 })} - ${qe(i, { capital: !0 })} ${c}`;
|
|
1802
1792
|
}
|
|
1803
1793
|
const x = a >= 0.01 ? `${Ft.format(Number.parseFloat(a.toFixed(2)))}` : `${Number.parseFloat(a.toPrecision(4))}`, F = i >= 0.01 ? `${Ft.format(Number.parseFloat(i.toFixed(2)))}` : `${Number.parseFloat(i.toPrecision(4))}`;
|
|
1804
1794
|
return `${x} - ${F} ${c}`;
|
|
1805
1795
|
} };
|
|
1806
1796
|
}
|
|
1807
|
-
const be = "#e0e4ea",
|
|
1797
|
+
const be = "#e0e4ea", gi = "#828a9e", wi = "32px", Mn = 5, Mt = [
|
|
1808
1798
|
"#00819d",
|
|
1809
1799
|
"#00abd2",
|
|
1810
1800
|
"#00c8f4",
|
|
1811
1801
|
"#67e3ff",
|
|
1812
1802
|
"#b3f1ff"
|
|
1813
|
-
],
|
|
1803
|
+
], vi = (e, t) => {
|
|
1814
1804
|
const n = e.length;
|
|
1815
1805
|
if (!n)
|
|
1816
1806
|
return NaN;
|
|
@@ -1822,27 +1812,27 @@ const be = "#e0e4ea", vi = "#828a9e", xi = "32px", Sn = 5, Mt = [
|
|
|
1822
1812
|
const n = e.filter((d) => d > 0).map(Math.log).sort((d, m) => d - m), a = Math.min(...n), o = (Math.max(...n) - a) / t;
|
|
1823
1813
|
return Array.from({ length: t }, (d, m) => a + m * o).map((d) => Math.exp(d)).reverse();
|
|
1824
1814
|
};
|
|
1825
|
-
function
|
|
1815
|
+
function xi({
|
|
1826
1816
|
countryMetrics: e,
|
|
1827
1817
|
metric: t,
|
|
1828
1818
|
unit: n
|
|
1829
1819
|
}) {
|
|
1830
|
-
const { formatMetric: a, formatMetricRange: i } = Oe.useMetricFormat({ unit: n }), o =
|
|
1820
|
+
const { formatMetric: a, formatMetricRange: i } = Oe.useMetricFormat({ unit: n }), o = I(() => {
|
|
1831
1821
|
const g = { ...e.value };
|
|
1832
1822
|
for (const T of Object.keys(g))
|
|
1833
|
-
|
|
1823
|
+
Et.find((k) => k.code === T) || delete g[T];
|
|
1834
1824
|
return g;
|
|
1835
|
-
}), l =
|
|
1825
|
+
}), l = I(() => Object.values(o.value)), d = I(() => Object.keys(o.value).length), m = I(() => d.value < Mn - 1 ? d.value : Mn), h = I(() => {
|
|
1836
1826
|
var g;
|
|
1837
1827
|
return !((g = t.value) != null && g.includes("latency"));
|
|
1838
|
-
}), c =
|
|
1828
|
+
}), c = I(() => {
|
|
1839
1829
|
const g = [];
|
|
1840
1830
|
if (l.value.length > 10) {
|
|
1841
|
-
const T = [...l.value].sort((D, Me) => D - Me), k =
|
|
1831
|
+
const T = [...l.value].sort((D, Me) => D - Me), k = vi(T, 0.75), H = l.value.filter((D) => D >= k), B = l.value.filter((D) => D < k), U = St(H, 3), ie = St(B, 2);
|
|
1842
1832
|
return g.push(...U, ...ie), g;
|
|
1843
1833
|
}
|
|
1844
1834
|
return St(l.value, m.value);
|
|
1845
|
-
}), x =
|
|
1835
|
+
}), x = I(() => l.value.length === 1 ? [{
|
|
1846
1836
|
color: F(l.value[0]),
|
|
1847
1837
|
range: a(l.value[0], {
|
|
1848
1838
|
approximate: h.value,
|
|
@@ -1876,10 +1866,10 @@ function Fi({
|
|
|
1876
1866
|
scale: c
|
|
1877
1867
|
};
|
|
1878
1868
|
}
|
|
1879
|
-
function
|
|
1869
|
+
function Ti({
|
|
1880
1870
|
unit: e
|
|
1881
1871
|
}) {
|
|
1882
|
-
const { i18n: t } = Oe.useI18n(), { formatUnit: n, formatRange: a } =
|
|
1872
|
+
const { i18n: t } = Oe.useI18n(), { formatUnit: n, formatRange: a } = _i({ i18n: t });
|
|
1883
1873
|
return {
|
|
1884
1874
|
formatMetric: (l, {
|
|
1885
1875
|
showUnit: d = !0,
|
|
@@ -1899,9 +1889,9 @@ function Mi({
|
|
|
1899
1889
|
}
|
|
1900
1890
|
const Oe = {
|
|
1901
1891
|
useI18n: xa,
|
|
1902
|
-
useLegendScale:
|
|
1903
|
-
useMetricFormat:
|
|
1904
|
-
},
|
|
1892
|
+
useLegendScale: xi,
|
|
1893
|
+
useMetricFormat: Ti
|
|
1894
|
+
}, Fi = "FeatureCollection", Mi = [
|
|
1905
1895
|
{
|
|
1906
1896
|
type: "Feature",
|
|
1907
1897
|
properties: {
|
|
@@ -4333,14 +4323,14 @@ const Oe = {
|
|
|
4333
4323
|
]
|
|
4334
4324
|
}
|
|
4335
4325
|
}
|
|
4336
|
-
],
|
|
4337
|
-
type:
|
|
4338
|
-
features:
|
|
4326
|
+
], Si = {
|
|
4327
|
+
type: Fi,
|
|
4328
|
+
features: Mi
|
|
4339
4329
|
};
|
|
4340
|
-
function
|
|
4330
|
+
function Di(e) {
|
|
4341
4331
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4342
4332
|
}
|
|
4343
|
-
var
|
|
4333
|
+
var Ni = Ri, Je, Te, P, Xe, nt, ki = [
|
|
4344
4334
|
"Point",
|
|
4345
4335
|
"MultiPoint",
|
|
4346
4336
|
"LineString",
|
|
@@ -4349,36 +4339,36 @@ var Ri = bi, Je, Fe, C, Xe, nt, Ei = [
|
|
|
4349
4339
|
"MultiPolygon",
|
|
4350
4340
|
"GeometryCollection"
|
|
4351
4341
|
];
|
|
4352
|
-
function
|
|
4353
|
-
Xe = 2, nt = Math.pow(10, 6),
|
|
4354
|
-
var t = e.readFields(
|
|
4342
|
+
function Ri(e) {
|
|
4343
|
+
Xe = 2, nt = Math.pow(10, 6), P = null, Je = [], Te = [];
|
|
4344
|
+
var t = e.readFields(Ei, {});
|
|
4355
4345
|
return Je = null, t;
|
|
4356
4346
|
}
|
|
4357
|
-
function
|
|
4358
|
-
e === 1 ? Je.push(n.readString()) : e === 2 ? Xe = n.readVarint() : e === 3 ? nt = Math.pow(10, n.readVarint()) : e === 4 ?
|
|
4347
|
+
function Ei(e, t, n) {
|
|
4348
|
+
e === 1 ? Je.push(n.readString()) : e === 2 ? Xe = n.readVarint() : e === 3 ? nt = Math.pow(10, n.readVarint()) : e === 4 ? bi(n, t) : e === 5 ? Hn(n, t) : e === 6 && Ot(n, t);
|
|
4359
4349
|
}
|
|
4360
|
-
function
|
|
4361
|
-
return t.type = "FeatureCollection", t.features = [], e.readMessage(
|
|
4350
|
+
function bi(e, t) {
|
|
4351
|
+
return t.type = "FeatureCollection", t.features = [], e.readMessage(Oi, t);
|
|
4362
4352
|
}
|
|
4363
4353
|
function Hn(e, t) {
|
|
4364
4354
|
t.type = "Feature";
|
|
4365
|
-
var n = e.readMessage(
|
|
4355
|
+
var n = e.readMessage(Gi, t);
|
|
4366
4356
|
return "geometry" in n || (n.geometry = null), n;
|
|
4367
4357
|
}
|
|
4368
|
-
function
|
|
4369
|
-
return t.type = "Point", e.readMessage(
|
|
4358
|
+
function Ot(e, t) {
|
|
4359
|
+
return t.type = "Point", e.readMessage(Li, t);
|
|
4370
4360
|
}
|
|
4371
|
-
function
|
|
4372
|
-
e === 1 ? t.features.push(Hn(n, {})) : e === 13 ?
|
|
4361
|
+
function Oi(e, t, n) {
|
|
4362
|
+
e === 1 ? t.features.push(Hn(n, {})) : e === 13 ? Te.push(Gt(n)) : e === 15 && et(n, t);
|
|
4373
4363
|
}
|
|
4374
|
-
function
|
|
4375
|
-
e === 1 ? t.geometry =
|
|
4364
|
+
function Gi(e, t, n) {
|
|
4365
|
+
e === 1 ? t.geometry = Ot(n, {}) : e === 11 ? t.id = n.readString() : e === 12 ? t.id = n.readSVarint() : e === 13 ? Te.push(Gt(n)) : e === 14 ? t.properties = et(n, {}) : e === 15 && et(n, t);
|
|
4376
4366
|
}
|
|
4377
|
-
function
|
|
4378
|
-
e === 1 ? t.type =
|
|
4367
|
+
function Li(e, t, n) {
|
|
4368
|
+
e === 1 ? t.type = ki[n.readVarint()] : e === 2 ? P = n.readPackedVarint() : e === 3 ? Ui(t, n, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(Ot(n, {}))) : e === 13 ? Te.push(Gt(n)) : e === 15 && et(n, t);
|
|
4379
4369
|
}
|
|
4380
|
-
function
|
|
4381
|
-
n === "Point" ? e.coordinates =
|
|
4370
|
+
function Ui(e, t, n) {
|
|
4371
|
+
n === "Point" ? e.coordinates = Ai(t) : n === "MultiPoint" || n === "LineString" ? e.coordinates = Sn(t) : n === "MultiLineString" ? e.coordinates = Dn(t) : n === "Polygon" ? e.coordinates = Dn(t, !0) : n === "MultiPolygon" && (e.coordinates = Ii(t));
|
|
4382
4372
|
}
|
|
4383
4373
|
function Gt(e) {
|
|
4384
4374
|
for (var t = e.readVarint() + e.pos, n = null; e.pos < t; ) {
|
|
@@ -4388,14 +4378,14 @@ function Gt(e) {
|
|
|
4388
4378
|
return n;
|
|
4389
4379
|
}
|
|
4390
4380
|
function et(e, t) {
|
|
4391
|
-
for (var n = e.readVarint() + e.pos; e.pos < n; ) t[Je[e.readVarint()]] =
|
|
4392
|
-
return
|
|
4381
|
+
for (var n = e.readVarint() + e.pos; e.pos < n; ) t[Je[e.readVarint()]] = Te[e.readVarint()];
|
|
4382
|
+
return Te = [], t;
|
|
4393
4383
|
}
|
|
4394
|
-
function
|
|
4384
|
+
function Ai(e) {
|
|
4395
4385
|
for (var t = e.readVarint() + e.pos, n = []; e.pos < t; ) n.push(e.readSVarint() / nt);
|
|
4396
4386
|
return n;
|
|
4397
4387
|
}
|
|
4398
|
-
function
|
|
4388
|
+
function Le(e, t, n, a) {
|
|
4399
4389
|
var i = 0, o = [], l, d, m = [];
|
|
4400
4390
|
for (d = 0; d < Xe; d++) m[d] = 0;
|
|
4401
4391
|
for (; n ? i < n : e.pos < t; ) {
|
|
@@ -4405,27 +4395,27 @@ function Ge(e, t, n, a) {
|
|
|
4405
4395
|
}
|
|
4406
4396
|
return a && o.push(o[0]), o;
|
|
4407
4397
|
}
|
|
4408
|
-
function
|
|
4409
|
-
return
|
|
4398
|
+
function Sn(e) {
|
|
4399
|
+
return Le(e, e.readVarint() + e.pos);
|
|
4410
4400
|
}
|
|
4411
|
-
function
|
|
4401
|
+
function Dn(e, t) {
|
|
4412
4402
|
var n = e.readVarint() + e.pos;
|
|
4413
|
-
if (!
|
|
4414
|
-
for (var a = [], i = 0; i <
|
|
4415
|
-
return
|
|
4403
|
+
if (!P) return [Le(e, n, null, t)];
|
|
4404
|
+
for (var a = [], i = 0; i < P.length; i++) a.push(Le(e, n, P[i], t));
|
|
4405
|
+
return P = null, a;
|
|
4416
4406
|
}
|
|
4417
|
-
function
|
|
4407
|
+
function Ii(e) {
|
|
4418
4408
|
var t = e.readVarint() + e.pos;
|
|
4419
|
-
if (!
|
|
4420
|
-
for (var n = [], a = 1, i = 0; i <
|
|
4421
|
-
for (var o = [], l = 0; l <
|
|
4422
|
-
a +=
|
|
4409
|
+
if (!P) return [[Le(e, t, null, !0)]];
|
|
4410
|
+
for (var n = [], a = 1, i = 0; i < P[0]; i++) {
|
|
4411
|
+
for (var o = [], l = 0; l < P[a]; l++) o.push(Le(e, t, P[a + 1 + l], !0));
|
|
4412
|
+
a += P[a] + 1, n.push(o);
|
|
4423
4413
|
}
|
|
4424
|
-
return
|
|
4414
|
+
return P = null, n;
|
|
4425
4415
|
}
|
|
4426
|
-
var
|
|
4416
|
+
var Pi = Ni, Lt = {};
|
|
4427
4417
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4428
|
-
|
|
4418
|
+
Lt.read = function(e, t, n, a, i) {
|
|
4429
4419
|
var o, l, d = i * 8 - a - 1, m = (1 << d) - 1, h = m >> 1, c = -7, x = n ? i - 1 : 0, F = n ? -1 : 1, g = e[t + x];
|
|
4430
4420
|
for (x += F, o = g & (1 << -c) - 1, g >>= -c, c += d; c > 0; o = o * 256 + e[t + x], x += F, c -= 8)
|
|
4431
4421
|
;
|
|
@@ -4440,7 +4430,7 @@ Ut.read = function(e, t, n, a, i) {
|
|
|
4440
4430
|
}
|
|
4441
4431
|
return (g ? -1 : 1) * l * Math.pow(2, o - a);
|
|
4442
4432
|
};
|
|
4443
|
-
|
|
4433
|
+
Lt.write = function(e, t, n, a, i, o) {
|
|
4444
4434
|
var l, d, m, h = o * 8 - i - 1, c = (1 << h) - 1, x = c >> 1, F = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = a ? 0 : o - 1, T = a ? 1 : -1, k = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
|
|
4445
4435
|
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (d = isNaN(t) ? 1 : 0, l = c) : (l = Math.floor(Math.log(t) / Math.LN2), t * (m = Math.pow(2, -l)) < 1 && (l--, m *= 2), l + x >= 1 ? t += F / m : t += F * Math.pow(2, 1 - x), t * m >= 2 && (l++, m /= 2), l + x >= c ? (d = 0, l = c) : l + x >= 1 ? (d = (t * m - 1) * Math.pow(2, i), l = l + x) : (d = t * Math.pow(2, x - 1) * Math.pow(2, i), l = 0)); i >= 8; e[n + g] = d & 255, g += T, d /= 256, i -= 8)
|
|
4446
4436
|
;
|
|
@@ -4448,7 +4438,7 @@ Ut.write = function(e, t, n, a, i, o) {
|
|
|
4448
4438
|
;
|
|
4449
4439
|
e[n + g - T] |= k * 128;
|
|
4450
4440
|
};
|
|
4451
|
-
var
|
|
4441
|
+
var Ci = w, $e = Lt;
|
|
4452
4442
|
function w(e) {
|
|
4453
4443
|
this.buf = ArrayBuffer.isView && ArrayBuffer.isView(e) ? e : new Uint8Array(e || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
|
|
4454
4444
|
}
|
|
@@ -4456,7 +4446,7 @@ w.Varint = 0;
|
|
|
4456
4446
|
w.Fixed64 = 1;
|
|
4457
4447
|
w.Bytes = 2;
|
|
4458
4448
|
w.Fixed32 = 5;
|
|
4459
|
-
var kt = 65536 * 65536,
|
|
4449
|
+
var kt = 65536 * 65536, Nn = 1 / kt, Bi = 12, zn = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
|
|
4460
4450
|
w.prototype = {
|
|
4461
4451
|
destroy: function() {
|
|
4462
4452
|
this.buf = null;
|
|
@@ -4477,7 +4467,7 @@ w.prototype = {
|
|
|
4477
4467
|
return this.pos += 4, e;
|
|
4478
4468
|
},
|
|
4479
4469
|
readSFixed32: function() {
|
|
4480
|
-
var e =
|
|
4470
|
+
var e = Rn(this.buf, this.pos);
|
|
4481
4471
|
return this.pos += 4, e;
|
|
4482
4472
|
},
|
|
4483
4473
|
// 64-bit int handling is based on github.com/dpw/node-buffer-more-ints (MIT-licensed)
|
|
@@ -4486,7 +4476,7 @@ w.prototype = {
|
|
|
4486
4476
|
return this.pos += 8, e;
|
|
4487
4477
|
},
|
|
4488
4478
|
readSFixed64: function() {
|
|
4489
|
-
var e = Ke(this.buf, this.pos) +
|
|
4479
|
+
var e = Ke(this.buf, this.pos) + Rn(this.buf, this.pos + 4) * kt;
|
|
4490
4480
|
return this.pos += 8, e;
|
|
4491
4481
|
},
|
|
4492
4482
|
readFloat: function() {
|
|
@@ -4499,7 +4489,7 @@ w.prototype = {
|
|
|
4499
4489
|
},
|
|
4500
4490
|
readVarint: function(e) {
|
|
4501
4491
|
var t = this.buf, n, a;
|
|
4502
|
-
return a = t[this.pos++], n = a & 127, a < 128 || (a = t[this.pos++], n |= (a & 127) << 7, a < 128) || (a = t[this.pos++], n |= (a & 127) << 14, a < 128) || (a = t[this.pos++], n |= (a & 127) << 21, a < 128) ? n : (a = t[this.pos], n |= (a & 15) << 28,
|
|
4492
|
+
return a = t[this.pos++], n = a & 127, a < 128 || (a = t[this.pos++], n |= (a & 127) << 7, a < 128) || (a = t[this.pos++], n |= (a & 127) << 14, a < 128) || (a = t[this.pos++], n |= (a & 127) << 21, a < 128) ? n : (a = t[this.pos], n |= (a & 15) << 28, Hi(n, e, this));
|
|
4503
4493
|
},
|
|
4504
4494
|
readVarint64: function() {
|
|
4505
4495
|
return this.readVarint(!0);
|
|
@@ -4513,7 +4503,7 @@ w.prototype = {
|
|
|
4513
4503
|
},
|
|
4514
4504
|
readString: function() {
|
|
4515
4505
|
var e = this.readVarint() + this.pos, t = this.pos;
|
|
4516
|
-
return this.pos = e, e - t >=
|
|
4506
|
+
return this.pos = e, e - t >= Bi && zn ? to(this.buf, t, e) : eo(this.buf, t, e);
|
|
4517
4507
|
},
|
|
4518
4508
|
readBytes: function() {
|
|
4519
4509
|
var e = this.readVarint() + this.pos, t = this.buf.subarray(this.pos, e);
|
|
@@ -4598,20 +4588,20 @@ w.prototype = {
|
|
|
4598
4588
|
return this.length = this.pos, this.pos = 0, this.buf.subarray(0, this.length);
|
|
4599
4589
|
},
|
|
4600
4590
|
writeFixed32: function(e) {
|
|
4601
|
-
this.realloc(4),
|
|
4591
|
+
this.realloc(4), ge(this.buf, e, this.pos), this.pos += 4;
|
|
4602
4592
|
},
|
|
4603
4593
|
writeSFixed32: function(e) {
|
|
4604
|
-
this.realloc(4),
|
|
4594
|
+
this.realloc(4), ge(this.buf, e, this.pos), this.pos += 4;
|
|
4605
4595
|
},
|
|
4606
4596
|
writeFixed64: function(e) {
|
|
4607
|
-
this.realloc(8),
|
|
4597
|
+
this.realloc(8), ge(this.buf, e & -1, this.pos), ge(this.buf, Math.floor(e * Nn), this.pos + 4), this.pos += 8;
|
|
4608
4598
|
},
|
|
4609
4599
|
writeSFixed64: function(e) {
|
|
4610
|
-
this.realloc(8),
|
|
4600
|
+
this.realloc(8), ge(this.buf, e & -1, this.pos), ge(this.buf, Math.floor(e * Nn), this.pos + 4), this.pos += 8;
|
|
4611
4601
|
},
|
|
4612
4602
|
writeVarint: function(e) {
|
|
4613
4603
|
if (e = +e || 0, e > 268435455 || e < 0) {
|
|
4614
|
-
|
|
4604
|
+
zi(e, this);
|
|
4615
4605
|
return;
|
|
4616
4606
|
}
|
|
4617
4607
|
this.realloc(4), this.buf[this.pos++] = e & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = (e >>>= 7) & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = (e >>>= 7) & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = e >>> 7 & 127)));
|
|
@@ -4625,9 +4615,9 @@ w.prototype = {
|
|
|
4625
4615
|
writeString: function(e) {
|
|
4626
4616
|
e = String(e), this.realloc(e.length * 4), this.pos++;
|
|
4627
4617
|
var t = this.pos;
|
|
4628
|
-
this.pos =
|
|
4618
|
+
this.pos = no(this.buf, e, this.pos);
|
|
4629
4619
|
var n = this.pos - t;
|
|
4630
|
-
n >= 128 &&
|
|
4620
|
+
n >= 128 && kn(t, n, this), this.pos = t - 1, this.writeVarint(n), this.pos += n;
|
|
4631
4621
|
},
|
|
4632
4622
|
writeFloat: function(e) {
|
|
4633
4623
|
this.realloc(4), $e.write(this.buf, e, this.pos, !0, 23, 4), this.pos += 4;
|
|
@@ -4645,37 +4635,37 @@ w.prototype = {
|
|
|
4645
4635
|
var n = this.pos;
|
|
4646
4636
|
e(t, this);
|
|
4647
4637
|
var a = this.pos - n;
|
|
4648
|
-
a >= 128 &&
|
|
4638
|
+
a >= 128 && kn(n, a, this), this.pos = n - 1, this.writeVarint(a), this.pos += a;
|
|
4649
4639
|
},
|
|
4650
4640
|
writeMessage: function(e, t, n) {
|
|
4651
4641
|
this.writeTag(e, w.Bytes), this.writeRawMessage(t, n);
|
|
4652
4642
|
},
|
|
4653
4643
|
writePackedVarint: function(e, t) {
|
|
4654
|
-
t.length && this.writeMessage(e,
|
|
4644
|
+
t.length && this.writeMessage(e, ji, t);
|
|
4655
4645
|
},
|
|
4656
4646
|
writePackedSVarint: function(e, t) {
|
|
4657
|
-
t.length && this.writeMessage(e,
|
|
4647
|
+
t.length && this.writeMessage(e, $i, t);
|
|
4658
4648
|
},
|
|
4659
4649
|
writePackedBoolean: function(e, t) {
|
|
4660
|
-
t.length && this.writeMessage(e,
|
|
4650
|
+
t.length && this.writeMessage(e, qi, t);
|
|
4661
4651
|
},
|
|
4662
4652
|
writePackedFloat: function(e, t) {
|
|
4663
|
-
t.length && this.writeMessage(e,
|
|
4653
|
+
t.length && this.writeMessage(e, Ki, t);
|
|
4664
4654
|
},
|
|
4665
4655
|
writePackedDouble: function(e, t) {
|
|
4666
|
-
t.length && this.writeMessage(e,
|
|
4656
|
+
t.length && this.writeMessage(e, Wi, t);
|
|
4667
4657
|
},
|
|
4668
4658
|
writePackedFixed32: function(e, t) {
|
|
4669
|
-
t.length && this.writeMessage(e,
|
|
4659
|
+
t.length && this.writeMessage(e, Zi, t);
|
|
4670
4660
|
},
|
|
4671
4661
|
writePackedSFixed32: function(e, t) {
|
|
4672
|
-
t.length && this.writeMessage(e,
|
|
4662
|
+
t.length && this.writeMessage(e, Qi, t);
|
|
4673
4663
|
},
|
|
4674
4664
|
writePackedFixed64: function(e, t) {
|
|
4675
|
-
t.length && this.writeMessage(e,
|
|
4665
|
+
t.length && this.writeMessage(e, Ji, t);
|
|
4676
4666
|
},
|
|
4677
4667
|
writePackedSFixed64: function(e, t) {
|
|
4678
|
-
t.length && this.writeMessage(e,
|
|
4668
|
+
t.length && this.writeMessage(e, Xi, t);
|
|
4679
4669
|
},
|
|
4680
4670
|
writeBytesField: function(e, t) {
|
|
4681
4671
|
this.writeTag(e, w.Bytes), this.writeBytes(t);
|
|
@@ -4711,72 +4701,72 @@ w.prototype = {
|
|
|
4711
4701
|
this.writeVarintField(e, !!t);
|
|
4712
4702
|
}
|
|
4713
4703
|
};
|
|
4714
|
-
function
|
|
4704
|
+
function Hi(e, t, n) {
|
|
4715
4705
|
var a = n.buf, i, o;
|
|
4716
|
-
if (o = a[n.pos++], i = (o & 112) >> 4, o < 128 || (o = a[n.pos++], i |= (o & 127) << 3, o < 128) || (o = a[n.pos++], i |= (o & 127) << 10, o < 128) || (o = a[n.pos++], i |= (o & 127) << 17, o < 128) || (o = a[n.pos++], i |= (o & 127) << 24, o < 128) || (o = a[n.pos++], i |= (o & 1) << 31, o < 128)) return
|
|
4706
|
+
if (o = a[n.pos++], i = (o & 112) >> 4, o < 128 || (o = a[n.pos++], i |= (o & 127) << 3, o < 128) || (o = a[n.pos++], i |= (o & 127) << 10, o < 128) || (o = a[n.pos++], i |= (o & 127) << 17, o < 128) || (o = a[n.pos++], i |= (o & 127) << 24, o < 128) || (o = a[n.pos++], i |= (o & 1) << 31, o < 128)) return _e(e, i, t);
|
|
4717
4707
|
throw new Error("Expected varint not more than 10 bytes");
|
|
4718
4708
|
}
|
|
4719
4709
|
function J(e) {
|
|
4720
4710
|
return e.type === w.Bytes ? e.readVarint() + e.pos : e.pos + 1;
|
|
4721
4711
|
}
|
|
4722
|
-
function
|
|
4712
|
+
function _e(e, t, n) {
|
|
4723
4713
|
return n ? t * 4294967296 + (e >>> 0) : (t >>> 0) * 4294967296 + (e >>> 0);
|
|
4724
4714
|
}
|
|
4725
|
-
function
|
|
4715
|
+
function zi(e, t) {
|
|
4726
4716
|
var n, a;
|
|
4727
4717
|
if (e >= 0 ? (n = e % 4294967296 | 0, a = e / 4294967296 | 0) : (n = ~(-e % 4294967296), a = ~(-e / 4294967296), n ^ 4294967295 ? n = n + 1 | 0 : (n = 0, a = a + 1 | 0)), e >= 18446744073709552e3 || e < -18446744073709552e3)
|
|
4728
4718
|
throw new Error("Given varint doesn't fit into 10 bytes");
|
|
4729
|
-
t.realloc(10),
|
|
4719
|
+
t.realloc(10), Vi(n, a, t), Yi(a, t);
|
|
4730
4720
|
}
|
|
4731
|
-
function
|
|
4721
|
+
function Vi(e, t, n) {
|
|
4732
4722
|
n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos] = e & 127;
|
|
4733
4723
|
}
|
|
4734
|
-
function
|
|
4724
|
+
function Yi(e, t) {
|
|
4735
4725
|
var n = (e & 7) << 4;
|
|
4736
4726
|
t.buf[t.pos++] |= n | ((e >>>= 3) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127)))));
|
|
4737
4727
|
}
|
|
4738
|
-
function
|
|
4728
|
+
function kn(e, t, n) {
|
|
4739
4729
|
var a = t <= 16383 ? 1 : t <= 2097151 ? 2 : t <= 268435455 ? 3 : Math.floor(Math.log(t) / (Math.LN2 * 7));
|
|
4740
4730
|
n.realloc(a);
|
|
4741
4731
|
for (var i = n.pos - 1; i >= e; i--) n.buf[i + a] = n.buf[i];
|
|
4742
4732
|
}
|
|
4743
|
-
function
|
|
4733
|
+
function ji(e, t) {
|
|
4744
4734
|
for (var n = 0; n < e.length; n++) t.writeVarint(e[n]);
|
|
4745
4735
|
}
|
|
4746
|
-
function
|
|
4736
|
+
function $i(e, t) {
|
|
4747
4737
|
for (var n = 0; n < e.length; n++) t.writeSVarint(e[n]);
|
|
4748
4738
|
}
|
|
4749
|
-
function
|
|
4739
|
+
function Ki(e, t) {
|
|
4750
4740
|
for (var n = 0; n < e.length; n++) t.writeFloat(e[n]);
|
|
4751
4741
|
}
|
|
4752
|
-
function
|
|
4742
|
+
function Wi(e, t) {
|
|
4753
4743
|
for (var n = 0; n < e.length; n++) t.writeDouble(e[n]);
|
|
4754
4744
|
}
|
|
4755
|
-
function
|
|
4745
|
+
function qi(e, t) {
|
|
4756
4746
|
for (var n = 0; n < e.length; n++) t.writeBoolean(e[n]);
|
|
4757
4747
|
}
|
|
4758
|
-
function
|
|
4748
|
+
function Zi(e, t) {
|
|
4759
4749
|
for (var n = 0; n < e.length; n++) t.writeFixed32(e[n]);
|
|
4760
4750
|
}
|
|
4761
|
-
function
|
|
4751
|
+
function Qi(e, t) {
|
|
4762
4752
|
for (var n = 0; n < e.length; n++) t.writeSFixed32(e[n]);
|
|
4763
4753
|
}
|
|
4764
|
-
function
|
|
4754
|
+
function Ji(e, t) {
|
|
4765
4755
|
for (var n = 0; n < e.length; n++) t.writeFixed64(e[n]);
|
|
4766
4756
|
}
|
|
4767
|
-
function
|
|
4757
|
+
function Xi(e, t) {
|
|
4768
4758
|
for (var n = 0; n < e.length; n++) t.writeSFixed64(e[n]);
|
|
4769
4759
|
}
|
|
4770
4760
|
function Ke(e, t) {
|
|
4771
4761
|
return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + e[t + 3] * 16777216;
|
|
4772
4762
|
}
|
|
4773
|
-
function
|
|
4763
|
+
function ge(e, t, n) {
|
|
4774
4764
|
e[n] = t, e[n + 1] = t >>> 8, e[n + 2] = t >>> 16, e[n + 3] = t >>> 24;
|
|
4775
4765
|
}
|
|
4776
|
-
function
|
|
4766
|
+
function Rn(e, t) {
|
|
4777
4767
|
return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + (e[t + 3] << 24);
|
|
4778
4768
|
}
|
|
4779
|
-
function
|
|
4769
|
+
function eo(e, t, n) {
|
|
4780
4770
|
for (var a = "", i = t; i < n; ) {
|
|
4781
4771
|
var o = e[i], l = null, d = o > 239 ? 4 : o > 223 ? 3 : o > 191 ? 2 : 1;
|
|
4782
4772
|
if (i + d > n) break;
|
|
@@ -4785,10 +4775,10 @@ function no(e, t, n) {
|
|
|
4785
4775
|
}
|
|
4786
4776
|
return a;
|
|
4787
4777
|
}
|
|
4788
|
-
function
|
|
4778
|
+
function to(e, t, n) {
|
|
4789
4779
|
return zn.decode(e.subarray(t, n));
|
|
4790
4780
|
}
|
|
4791
|
-
function
|
|
4781
|
+
function no(e, t, n) {
|
|
4792
4782
|
for (var a = 0, i, o; a < t.length; a++) {
|
|
4793
4783
|
if (i = t.charCodeAt(a), i > 55295 && i < 57344)
|
|
4794
4784
|
if (o)
|
|
@@ -4806,7 +4796,7 @@ function ao(e, t, n) {
|
|
|
4806
4796
|
}
|
|
4807
4797
|
return n;
|
|
4808
4798
|
}
|
|
4809
|
-
const
|
|
4799
|
+
const ro = /* @__PURE__ */ Di(Ci), Do = (e) => {
|
|
4810
4800
|
var a, i;
|
|
4811
4801
|
if (!e || !e.data)
|
|
4812
4802
|
return {};
|
|
@@ -4818,16 +4808,16 @@ const io = /* @__PURE__ */ ki(Hi), ko = (e) => {
|
|
|
4818
4808
|
}
|
|
4819
4809
|
return t;
|
|
4820
4810
|
};
|
|
4821
|
-
function
|
|
4811
|
+
function ao(e, t = 0) {
|
|
4822
4812
|
let n = null;
|
|
4823
4813
|
return (...a) => {
|
|
4824
4814
|
n && clearTimeout(n), n = setTimeout(() => e(...a), t);
|
|
4825
4815
|
};
|
|
4826
4816
|
}
|
|
4827
|
-
const
|
|
4817
|
+
const io = { class: "legend" }, oo = {
|
|
4828
4818
|
key: 0,
|
|
4829
4819
|
class: "legend-title"
|
|
4830
|
-
},
|
|
4820
|
+
}, so = { class: "legend-text" }, lo = /* @__PURE__ */ Rt({
|
|
4831
4821
|
__name: "MapLegend",
|
|
4832
4822
|
props: {
|
|
4833
4823
|
metric: {},
|
|
@@ -4835,8 +4825,8 @@ const so = { class: "legend" }, lo = {
|
|
|
4835
4825
|
data: {}
|
|
4836
4826
|
},
|
|
4837
4827
|
setup(e) {
|
|
4838
|
-
return (t, n) => (K(), ae("div",
|
|
4839
|
-
e.metric ? (K(), ae("div",
|
|
4828
|
+
return (t, n) => (K(), ae("div", io, [
|
|
4829
|
+
e.metric ? (K(), ae("div", oo, xe(e.title), 1)) : Ee("", !0),
|
|
4840
4830
|
(K(!0), ae(ra, null, aa(e.data, (a, i) => (K(), ae("div", {
|
|
4841
4831
|
key: i,
|
|
4842
4832
|
class: "legend-item"
|
|
@@ -4845,16 +4835,16 @@ const so = { class: "legend" }, lo = {
|
|
|
4845
4835
|
class: "legend-color",
|
|
4846
4836
|
style: ia({ backgroundColor: a.color })
|
|
4847
4837
|
}, null, 4),
|
|
4848
|
-
X("span",
|
|
4838
|
+
X("span", so, xe(a.range), 1)
|
|
4849
4839
|
]))), 128))
|
|
4850
4840
|
]));
|
|
4851
4841
|
}
|
|
4852
|
-
}),
|
|
4842
|
+
}), Ut = (e, t) => {
|
|
4853
4843
|
const n = e.__vccOpts || e;
|
|
4854
4844
|
for (const [a, i] of t)
|
|
4855
4845
|
n[a] = i;
|
|
4856
4846
|
return n;
|
|
4857
|
-
},
|
|
4847
|
+
}, uo = /* @__PURE__ */ Ut(lo, [["__scopeId", "data-v-09205656"]]), co = { class: "map-tooltip" }, mo = { class: "map-tooltip-text" }, fo = { key: 0 }, po = /* @__PURE__ */ Rt({
|
|
4858
4848
|
__name: "MapTooltip",
|
|
4859
4849
|
props: {
|
|
4860
4850
|
data: {},
|
|
@@ -4867,18 +4857,18 @@ const so = { class: "legend" }, lo = {
|
|
|
4867
4857
|
v75a0a274: t.left,
|
|
4868
4858
|
v144f4294: t.top,
|
|
4869
4859
|
v6e49e79e: t.data.color
|
|
4870
|
-
})), (t, n) => (K(), ae("div",
|
|
4860
|
+
})), (t, n) => (K(), ae("div", co, [
|
|
4871
4861
|
n[0] || (n[0] = X("div", { class: "map-tooltip-color" }, null, -1)),
|
|
4872
|
-
X("div",
|
|
4873
|
-
X("div", null,
|
|
4874
|
-
e.showValue ? (K(), ae("span",
|
|
4862
|
+
X("div", mo, [
|
|
4863
|
+
X("div", null, xe(e.data.label), 1),
|
|
4864
|
+
e.showValue ? (K(), ae("span", fo, xe(e.data.value), 1)) : Ee("", !0)
|
|
4875
4865
|
])
|
|
4876
4866
|
]));
|
|
4877
4867
|
}
|
|
4878
|
-
}),
|
|
4868
|
+
}), ho = /* @__PURE__ */ Ut(po, [["__scopeId", "data-v-6bea2641"]]), yo = { class: "kong-ui-public-analytics-geo-map" }, _o = {
|
|
4879
4869
|
key: 0,
|
|
4880
4870
|
class: "no-location-overlay"
|
|
4881
|
-
},
|
|
4871
|
+
}, go = { class: "no-location-overlay-title" }, wo = { class: "no-location-overlay-description" }, vo = ["id"], xo = /* @__PURE__ */ Rt({
|
|
4882
4872
|
__name: "AnalyticsGeoMap",
|
|
4883
4873
|
props: {
|
|
4884
4874
|
countryMetrics: {},
|
|
@@ -4897,7 +4887,7 @@ const so = { class: "legend" }, lo = {
|
|
|
4897
4887
|
countryMetrics: ze(() => e.countryMetrics),
|
|
4898
4888
|
metric: ze(() => e.metric),
|
|
4899
4889
|
unit: ze(() => e.metricUnit)
|
|
4900
|
-
}), { formatMetric: d } = Oe.useMetricFormat({ unit: ze(() => e.metricUnit) }), m = ke(), h = sa(), c = ke(), x = ke(null), F = ke({ left: "0px", top: "0px" }), g = ke(!1), T =
|
|
4890
|
+
}), { formatMetric: d } = Oe.useMetricFormat({ unit: ze(() => e.metricUnit) }), m = ke(), h = sa(), c = ke(), x = ke(null), F = ke({ left: "0px", top: "0px" }), g = ke(!1), T = I(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), k = I(() => ({
|
|
4901
4891
|
"fill-color": [
|
|
4902
4892
|
"match",
|
|
4903
4893
|
[
|
|
@@ -4918,7 +4908,7 @@ const so = { class: "legend" }, lo = {
|
|
|
4918
4908
|
// default color if no match
|
|
4919
4909
|
],
|
|
4920
4910
|
"fill-opacity": 0.7
|
|
4921
|
-
})), H =
|
|
4911
|
+
})), H = I(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), B = I(() => e.metric && i.t(`metrics.${e.metric}`) || ""), U = (y) => {
|
|
4922
4912
|
const v = y.flat(1);
|
|
4923
4913
|
return Array.isArray(v[0]) && Array.isArray(v[0][0]) ? U(v) : v;
|
|
4924
4914
|
}, ie = (y) => {
|
|
@@ -4948,20 +4938,20 @@ const so = { class: "legend" }, lo = {
|
|
|
4948
4938
|
]);
|
|
4949
4939
|
return;
|
|
4950
4940
|
}
|
|
4951
|
-
const v = (z = x.value) == null ? void 0 : z.features.find((
|
|
4941
|
+
const v = (z = x.value) == null ? void 0 : z.features.find((L) => {
|
|
4952
4942
|
var V, Y, j, _, $;
|
|
4953
|
-
return (V =
|
|
4943
|
+
return (V = L.properties) != null && V.ISO_A2 ? ((Y = L.properties) == null ? void 0 : Y.ISO_A2) === y : ((j = L.properties) == null ? void 0 : j.iso_a2) === "-99" ? ((_ = L.properties) == null ? void 0 : _.iso_a2_eh) === y : (($ = L.properties) == null ? void 0 : $.iso_a2) === y;
|
|
4954
4944
|
});
|
|
4955
4945
|
if (v) {
|
|
4956
|
-
const
|
|
4957
|
-
if (!
|
|
4958
|
-
const V = U(
|
|
4946
|
+
const L = (te = v.geometry) == null ? void 0 : te.coordinates;
|
|
4947
|
+
if (!L) return;
|
|
4948
|
+
const V = U(L), Y = V.map((q) => q[1]), j = V.map((q) => q[0]), _ = Math.min(...Y), $ = Math.max(...Y), me = Math.min(...j), b = Math.max(...j);
|
|
4959
4949
|
(ne = c.value) == null || ne.fitBounds([
|
|
4960
|
-
[
|
|
4950
|
+
[me, _],
|
|
4961
4951
|
[b, $]
|
|
4962
4952
|
]);
|
|
4963
4953
|
}
|
|
4964
|
-
}, D =
|
|
4954
|
+
}, D = I(() => {
|
|
4965
4955
|
const y = {
|
|
4966
4956
|
container: h,
|
|
4967
4957
|
style: { version: 8, sources: {}, layers: [] },
|
|
@@ -4980,7 +4970,7 @@ const so = { class: "legend" }, lo = {
|
|
|
4980
4970
|
}
|
|
4981
4971
|
};
|
|
4982
4972
|
return e.bounds && (y.bounds = e.bounds), y;
|
|
4983
|
-
}),
|
|
4973
|
+
}), de = ao(() => {
|
|
4984
4974
|
if (!c.value) return;
|
|
4985
4975
|
const y = c.value.getBounds(), v = y.getSouthWest(), M = y.getNorthEast();
|
|
4986
4976
|
a("boundsChange", [
|
|
@@ -4991,9 +4981,9 @@ const so = { class: "legend" }, lo = {
|
|
|
4991
4981
|
return la(async () => {
|
|
4992
4982
|
var y, v, M;
|
|
4993
4983
|
try {
|
|
4994
|
-
const R = await n, ee = await fetch(R), W = new Uint8Array(await ee.arrayBuffer()), z =
|
|
4984
|
+
const R = await n, ee = await fetch(R), W = new Uint8Array(await ee.arrayBuffer()), z = Pi(new ro(W));
|
|
4995
4985
|
x.value = z, c.value = new da(D.value), c.value.on("load", () => {
|
|
4996
|
-
var te, ne,
|
|
4986
|
+
var te, ne, L, V, Y, j, _;
|
|
4997
4987
|
(te = c.value) == null || te.addSource("countries", {
|
|
4998
4988
|
type: "geojson",
|
|
4999
4989
|
data: z
|
|
@@ -5002,9 +4992,9 @@ const so = { class: "legend" }, lo = {
|
|
|
5002
4992
|
type: "fill",
|
|
5003
4993
|
source: "countries",
|
|
5004
4994
|
paint: k.value
|
|
5005
|
-
}), (
|
|
4995
|
+
}), (L = c.value) == null || L.addSource("lakes", {
|
|
5006
4996
|
type: "geojson",
|
|
5007
|
-
data:
|
|
4997
|
+
data: Si
|
|
5008
4998
|
}), (V = c.value) == null || V.addLayer({
|
|
5009
4999
|
id: "lakes-layer",
|
|
5010
5000
|
type: "fill",
|
|
@@ -5014,9 +5004,9 @@ const so = { class: "legend" }, lo = {
|
|
|
5014
5004
|
}
|
|
5015
5005
|
}), (Y = c.value) == null || Y.on("mousemove", "countries-layer", ($) => {
|
|
5016
5006
|
var b;
|
|
5017
|
-
const
|
|
5018
|
-
if (
|
|
5019
|
-
const { iso_a2:
|
|
5007
|
+
const me = (b = $.features) == null ? void 0 : b[0];
|
|
5008
|
+
if (me) {
|
|
5009
|
+
const { iso_a2: q, iso_a2_eh: Ue, ISO_A2: rt, admin: at } = me.properties, it = rt ?? q === "-99" ? Ue : q, Se = e.countryMetrics[it];
|
|
5020
5010
|
Se !== void 0 && (m.value = {
|
|
5021
5011
|
label: at,
|
|
5022
5012
|
color: o(Se),
|
|
@@ -5028,7 +5018,7 @@ const so = { class: "legend" }, lo = {
|
|
|
5028
5018
|
}
|
|
5029
5019
|
}), (j = c.value) == null || j.on("mouseleave", "countries-layer", () => {
|
|
5030
5020
|
g.value = !1;
|
|
5031
|
-
}), (_ = c.value) == null || _.on("move",
|
|
5021
|
+
}), (_ = c.value) == null || _.on("move", de), e.fitToCountry && ie(e.fitToCountry);
|
|
5032
5022
|
}), (y = c.value) == null || y.dragRotate.disable(), (v = c.value) == null || v.keyboard.disable(), (M = c.value) == null || M.touchZoomRotate.disableRotation();
|
|
5033
5023
|
} catch (R) {
|
|
5034
5024
|
console.error(R);
|
|
@@ -5058,37 +5048,37 @@ const so = { class: "legend" }, lo = {
|
|
|
5058
5048
|
if (!y) return;
|
|
5059
5049
|
const M = y == null ? void 0 : y.flat(), R = v == null ? void 0 : v.flat();
|
|
5060
5050
|
!(M && R && M.length === R.length && M.every((W, z) => Math.round(W * 100) / 100 === Math.round(R[z] * 100) / 100)) && c.value && c.value.fitBounds(y);
|
|
5061
|
-
}), (y, v) => (K(), ae("div",
|
|
5062
|
-
T.value ? (K(), ae("div",
|
|
5051
|
+
}), (y, v) => (K(), ae("div", yo, [
|
|
5052
|
+
T.value ? (K(), ae("div", _o, [
|
|
5063
5053
|
gt(y.$slots, "no-location-icon", {}, () => [
|
|
5064
5054
|
ua(ue(pa), {
|
|
5065
|
-
color: ue(
|
|
5066
|
-
size: ue(
|
|
5055
|
+
color: ue(gi),
|
|
5056
|
+
size: ue(wi)
|
|
5067
5057
|
}, null, 8, ["color", "size"])
|
|
5068
5058
|
], !0),
|
|
5069
|
-
X("div",
|
|
5059
|
+
X("div", go, [
|
|
5070
5060
|
gt(y.$slots, "no-location-title", {}, () => [
|
|
5071
|
-
ca(
|
|
5061
|
+
ca(xe(ue(i).t("no_location_data")), 1)
|
|
5072
5062
|
], !0)
|
|
5073
5063
|
]),
|
|
5074
|
-
X("div",
|
|
5064
|
+
X("div", wo, [
|
|
5075
5065
|
gt(y.$slots, "no-location-description", {}, () => [
|
|
5076
|
-
X("p", null,
|
|
5066
|
+
X("p", null, xe(ue(i).t("no_location_data_description")), 1)
|
|
5077
5067
|
], !0)
|
|
5078
5068
|
])
|
|
5079
5069
|
])) : Ee("", !0),
|
|
5080
5070
|
X("div", {
|
|
5081
5071
|
id: ue(h),
|
|
5082
5072
|
class: "analytics-geo-map-container"
|
|
5083
|
-
}, null, 8,
|
|
5084
|
-
H.value ? (K(),
|
|
5073
|
+
}, null, 8, vo),
|
|
5074
|
+
H.value ? (K(), on(uo, {
|
|
5085
5075
|
key: 1,
|
|
5086
5076
|
class: "legend-container",
|
|
5087
5077
|
data: ue(l),
|
|
5088
5078
|
metric: e.metric,
|
|
5089
5079
|
title: B.value
|
|
5090
5080
|
}, null, 8, ["data", "metric", "title"])) : Ee("", !0),
|
|
5091
|
-
g.value && m.value ? (K(),
|
|
5081
|
+
g.value && m.value ? (K(), on(ho, {
|
|
5092
5082
|
key: 2,
|
|
5093
5083
|
data: m.value,
|
|
5094
5084
|
left: F.value.left,
|
|
@@ -5097,9 +5087,9 @@ const so = { class: "legend" }, lo = {
|
|
|
5097
5087
|
}, null, 8, ["data", "left", "show-value", "top"])) : Ee("", !0)
|
|
5098
5088
|
]));
|
|
5099
5089
|
}
|
|
5100
|
-
}),
|
|
5090
|
+
}), No = /* @__PURE__ */ Ut(xo, [["__scopeId", "data-v-4e998083"]]);
|
|
5101
5091
|
export {
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5092
|
+
No as AnalyticsGeoMap,
|
|
5093
|
+
ao as debounce,
|
|
5094
|
+
Do as exploreResultToCountryMetrics
|
|
5105
5095
|
};
|