@kong-ui-public/analytics-geo-map 1.5.7 → 1.5.8
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 +554 -522
- package/dist/vitals-geo-map.umd.js +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { computed as A, defineComponent as Nt, openBlock as K, createElementBlock as ae, toDisplayString as xe, createCommentVNode as
|
|
1
|
+
import { computed as A, defineComponent as Nt, openBlock as K, createElementBlock as ae, toDisplayString as xe, createCommentVNode as ke, Fragment as Jr, renderList as Xr, createElementVNode as X, normalizeStyle as ea, useCssVars as ta, toRef as He, ref as Re, useId as na, onMounted as ra, watch as pt, renderSlot as yt, createVNode as aa, unref as le, createTextVNode as ia, createBlock as rn } from "vue";
|
|
2
2
|
import { Map as oa } from "maplibre-gl";
|
|
3
|
-
import { createI18n as sa, i18nTComponent as
|
|
4
|
-
import { AnalyticsIcon as
|
|
3
|
+
import { createI18n as sa, i18nTComponent as ua } from "@kong-ui-public/i18n";
|
|
4
|
+
import { AnalyticsIcon as la } from "@kong/icons";
|
|
5
5
|
const ca = {
|
|
6
6
|
ms: "ms",
|
|
7
7
|
bytes: "Byte{plural}",
|
|
@@ -38,18 +38,18 @@ const ca = {
|
|
|
38
38
|
windows_zoom_help_text: "Use Ctrl + Scroll to zoom the map",
|
|
39
39
|
mac_zoom_help_text: "Use ⌘ + Scroll to zoom the map",
|
|
40
40
|
mobile_zoom_help_text: "Use two fingers to zoom the map"
|
|
41
|
-
}, fa = "No data in the current time frame", pa = "Once there is traffic, it will display here",
|
|
41
|
+
}, fa = "No data in the current time frame", pa = "Once there is traffic, it will display here", ya = {
|
|
42
42
|
metricUnits: ca,
|
|
43
43
|
metrics: da,
|
|
44
44
|
cooperative_gestures: ma,
|
|
45
45
|
no_location_data: fa,
|
|
46
46
|
no_location_data_description: pa
|
|
47
47
|
};
|
|
48
|
-
function
|
|
49
|
-
const e = sa("en-us",
|
|
48
|
+
function ha() {
|
|
49
|
+
const e = sa("en-us", ya);
|
|
50
50
|
return {
|
|
51
51
|
i18n: e,
|
|
52
|
-
i18nT:
|
|
52
|
+
i18nT: ua(e)
|
|
53
53
|
// Translation component <i18n-t>
|
|
54
54
|
};
|
|
55
55
|
}
|
|
@@ -68,7 +68,13 @@ const wa = ["in", "not_in", "selector"], va = ["empty", "not_empty"], Te = (e) =
|
|
|
68
68
|
"status_code",
|
|
69
69
|
"status_code_grouped",
|
|
70
70
|
"time"
|
|
71
|
-
], Sn = Te(Mn),
|
|
71
|
+
], Sn = Te(Mn), xa = [
|
|
72
|
+
"active_services",
|
|
73
|
+
"error_rate",
|
|
74
|
+
"request_count",
|
|
75
|
+
"request_per_minute",
|
|
76
|
+
"response_latency_average"
|
|
77
|
+
], Dn = [
|
|
72
78
|
...Mn,
|
|
73
79
|
"application",
|
|
74
80
|
"consumer",
|
|
@@ -79,7 +85,30 @@ const wa = ["in", "not_in", "selector"], va = ["empty", "not_empty"], Te = (e) =
|
|
|
79
85
|
"data_plane_node_version",
|
|
80
86
|
"realm",
|
|
81
87
|
"portal_api"
|
|
82
|
-
], Nn = Te(Dn),
|
|
88
|
+
], Nn = Te(Dn), Fa = [
|
|
89
|
+
...xa,
|
|
90
|
+
"response_latency_p99",
|
|
91
|
+
"response_latency_p95",
|
|
92
|
+
"response_latency_p50",
|
|
93
|
+
"upstream_latency_p99",
|
|
94
|
+
"upstream_latency_p95",
|
|
95
|
+
"upstream_latency_p50",
|
|
96
|
+
"upstream_latency_average",
|
|
97
|
+
"kong_latency_p99",
|
|
98
|
+
"kong_latency_p95",
|
|
99
|
+
"kong_latency_p50",
|
|
100
|
+
"kong_latency_average",
|
|
101
|
+
"response_size_p99",
|
|
102
|
+
"response_size_p95",
|
|
103
|
+
"response_size_p50",
|
|
104
|
+
"response_size_average",
|
|
105
|
+
"response_size_sum",
|
|
106
|
+
"request_size_p99",
|
|
107
|
+
"request_size_p95",
|
|
108
|
+
"request_size_p50",
|
|
109
|
+
"request_size_average",
|
|
110
|
+
"request_size_sum"
|
|
111
|
+
], Ta = [
|
|
83
112
|
"control_plane",
|
|
84
113
|
"control_plane_group",
|
|
85
114
|
"gateway_service",
|
|
@@ -97,7 +126,7 @@ const wa = ["in", "not_in", "selector"], va = ["empty", "not_empty"], Te = (e) =
|
|
|
97
126
|
"status_code",
|
|
98
127
|
"status_code_grouped",
|
|
99
128
|
"ai_plugin"
|
|
100
|
-
], Rn = Te(
|
|
129
|
+
], Rn = Te(Ta), Ma = [
|
|
101
130
|
"api",
|
|
102
131
|
"api_package",
|
|
103
132
|
"api_product",
|
|
@@ -137,8 +166,8 @@ const wa = ["in", "not_in", "selector"], va = ["empty", "not_empty"], Te = (e) =
|
|
|
137
166
|
"upstream_status_code_grouped",
|
|
138
167
|
"websocket"
|
|
139
168
|
];
|
|
140
|
-
Te(
|
|
141
|
-
const
|
|
169
|
+
Te(Ma);
|
|
170
|
+
const Sa = [
|
|
142
171
|
"ai_count",
|
|
143
172
|
"latencies_response_ms",
|
|
144
173
|
"latencies_upstream_ms",
|
|
@@ -149,15 +178,18 @@ const Ta = [
|
|
|
149
178
|
"status_code",
|
|
150
179
|
"upstream_status_code"
|
|
151
180
|
];
|
|
152
|
-
Te(
|
|
153
|
-
const
|
|
181
|
+
Te(Sa);
|
|
182
|
+
const Da = [
|
|
154
183
|
...Dn,
|
|
155
184
|
"mcp_session_id",
|
|
156
185
|
"mcp_method",
|
|
157
186
|
"mcp_tool_name",
|
|
158
187
|
"mcp_error"
|
|
159
|
-
],
|
|
160
|
-
|
|
188
|
+
], kn = Te(Da);
|
|
189
|
+
[
|
|
190
|
+
...Fa
|
|
191
|
+
];
|
|
192
|
+
new Set(Sn), new Set(Nn), new Set(Rn), new Set(kn);
|
|
161
193
|
const Rt = [
|
|
162
194
|
{ code: "AF", name: "Afghanistan" },
|
|
163
195
|
{ code: "AX", name: "Aland Islands" },
|
|
@@ -407,7 +439,7 @@ const Rt = [
|
|
|
407
439
|
{ code: "ZW", name: "Zimbabwe" }
|
|
408
440
|
];
|
|
409
441
|
Rt.map((e) => e.code);
|
|
410
|
-
const
|
|
442
|
+
const Na = (e) => ({
|
|
411
443
|
type: "array",
|
|
412
444
|
description: "A list of filters to apply to the query",
|
|
413
445
|
items: {
|
|
@@ -418,7 +450,7 @@ const Sa = (e) => ({
|
|
|
418
450
|
properties: {
|
|
419
451
|
field: {
|
|
420
452
|
type: "string",
|
|
421
|
-
enum: e
|
|
453
|
+
...e ? { enum: e } : {}
|
|
422
454
|
},
|
|
423
455
|
operator: {
|
|
424
456
|
type: "string",
|
|
@@ -444,7 +476,7 @@ const Sa = (e) => ({
|
|
|
444
476
|
properties: {
|
|
445
477
|
field: {
|
|
446
478
|
type: "string",
|
|
447
|
-
enum: e
|
|
479
|
+
...e ? { enum: e } : {}
|
|
448
480
|
},
|
|
449
481
|
operator: {
|
|
450
482
|
type: "string",
|
|
@@ -460,54 +492,54 @@ const Sa = (e) => ({
|
|
|
460
492
|
]
|
|
461
493
|
}
|
|
462
494
|
});
|
|
463
|
-
|
|
495
|
+
Na([
|
|
464
496
|
.../* @__PURE__ */ new Set([
|
|
465
497
|
...Nn,
|
|
466
498
|
...Sn,
|
|
467
499
|
...Rn,
|
|
468
|
-
...
|
|
500
|
+
...kn
|
|
469
501
|
])
|
|
470
502
|
]);
|
|
471
|
-
let
|
|
472
|
-
function
|
|
473
|
-
return
|
|
503
|
+
let Ra = {};
|
|
504
|
+
function ka() {
|
|
505
|
+
return Ra;
|
|
474
506
|
}
|
|
475
|
-
const
|
|
476
|
-
function
|
|
507
|
+
const Ea = 60, Oa = 3600, an = Symbol.for("constructDateFrom");
|
|
508
|
+
function be(e, t) {
|
|
477
509
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && an in e ? e[an](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
478
510
|
}
|
|
479
511
|
function ce(e, t) {
|
|
480
|
-
return
|
|
512
|
+
return be(t || e, e);
|
|
481
513
|
}
|
|
482
|
-
function
|
|
514
|
+
function ze(e, t) {
|
|
483
515
|
const n = ce(e, void 0);
|
|
484
516
|
return n.setHours(0, 0, 0, 0), n;
|
|
485
517
|
}
|
|
486
518
|
function Ke(e, t) {
|
|
487
519
|
var n, a, i, o;
|
|
488
|
-
const
|
|
520
|
+
const u = ka(), m = (t == null ? void 0 : t.weekStartsOn) ?? ((a = (n = t == null ? void 0 : t.locale) == null ? void 0 : n.options) == null ? void 0 : a.weekStartsOn) ?? u.weekStartsOn ?? ((o = (i = u.locale) == null ? void 0 : i.options) == null ? void 0 : o.weekStartsOn) ?? 0, f = ce(e, t == null ? void 0 : t.in), d = f.getDay(), c = (d < m ? 7 : 0) + d - m;
|
|
489
521
|
return f.setDate(f.getDate() - c), f.setHours(0, 0, 0, 0), f;
|
|
490
522
|
}
|
|
491
|
-
function
|
|
523
|
+
function Ve(e, t, n) {
|
|
492
524
|
const a = ce(e, void 0);
|
|
493
|
-
return isNaN(t) ?
|
|
525
|
+
return isNaN(t) ? be(e, NaN) : (a.setDate(a.getDate() + t), a);
|
|
494
526
|
}
|
|
495
|
-
function
|
|
527
|
+
function En(e, t, n) {
|
|
496
528
|
const a = ce(e, void 0);
|
|
497
|
-
if (isNaN(t)) return
|
|
529
|
+
if (isNaN(t)) return be(e, NaN);
|
|
498
530
|
if (!t)
|
|
499
531
|
return a;
|
|
500
|
-
const i = a.getDate(), o =
|
|
532
|
+
const i = a.getDate(), o = be(e, a.getTime());
|
|
501
533
|
o.setMonth(a.getMonth() + t + 1, 0);
|
|
502
|
-
const
|
|
503
|
-
return i >=
|
|
534
|
+
const u = o.getDate();
|
|
535
|
+
return i >= u ? o : (a.setFullYear(
|
|
504
536
|
o.getFullYear(),
|
|
505
537
|
o.getMonth(),
|
|
506
538
|
i
|
|
507
539
|
), a);
|
|
508
540
|
}
|
|
509
|
-
function
|
|
510
|
-
return
|
|
541
|
+
function ba(e, t, n) {
|
|
542
|
+
return En(e, t * 3);
|
|
511
543
|
}
|
|
512
544
|
function we(e, t) {
|
|
513
545
|
const n = ce(e, void 0), a = n.getMonth(), i = a - a % 3;
|
|
@@ -517,28 +549,28 @@ function ve(e, t) {
|
|
|
517
549
|
const n = ce(e, void 0);
|
|
518
550
|
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
519
551
|
}
|
|
520
|
-
function
|
|
521
|
-
const n = ce(e, void 0), a = n.getFullYear(), i = n.getMonth(), o =
|
|
552
|
+
function Ga(e, t) {
|
|
553
|
+
const n = ce(e, void 0), a = n.getFullYear(), i = n.getMonth(), o = be(n, 0);
|
|
522
554
|
return o.setFullYear(a, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
523
555
|
}
|
|
524
556
|
function on(e) {
|
|
525
|
-
return Math.trunc(e *
|
|
557
|
+
return Math.trunc(e * Oa);
|
|
526
558
|
}
|
|
527
|
-
function
|
|
528
|
-
const t = e /
|
|
559
|
+
function La(e) {
|
|
560
|
+
const t = e / Ea;
|
|
529
561
|
return Math.trunc(t);
|
|
530
562
|
}
|
|
531
563
|
function On(e, t, n) {
|
|
532
|
-
return
|
|
564
|
+
return En(e, -1);
|
|
533
565
|
}
|
|
534
|
-
function
|
|
535
|
-
return
|
|
566
|
+
function bn(e, t, n) {
|
|
567
|
+
return ba(e, -1);
|
|
536
568
|
}
|
|
537
|
-
function
|
|
538
|
-
const n =
|
|
539
|
-
return "formatToParts" in n ?
|
|
569
|
+
function Ia(e, t) {
|
|
570
|
+
const n = Ba(t);
|
|
571
|
+
return "formatToParts" in n ? Aa(n, e) : Pa(n, e);
|
|
540
572
|
}
|
|
541
|
-
const
|
|
573
|
+
const Ua = {
|
|
542
574
|
year: 0,
|
|
543
575
|
month: 1,
|
|
544
576
|
day: 2,
|
|
@@ -546,11 +578,11 @@ const La = {
|
|
|
546
578
|
minute: 4,
|
|
547
579
|
second: 5
|
|
548
580
|
};
|
|
549
|
-
function
|
|
581
|
+
function Aa(e, t) {
|
|
550
582
|
try {
|
|
551
583
|
const n = e.formatToParts(t), a = [];
|
|
552
584
|
for (let i = 0; i < n.length; i++) {
|
|
553
|
-
const o =
|
|
585
|
+
const o = Ua[n[i].type];
|
|
554
586
|
o !== void 0 && (a[o] = parseInt(n[i].value, 10));
|
|
555
587
|
}
|
|
556
588
|
return a;
|
|
@@ -560,7 +592,7 @@ function Ia(e, t) {
|
|
|
560
592
|
throw n;
|
|
561
593
|
}
|
|
562
594
|
}
|
|
563
|
-
function
|
|
595
|
+
function Pa(e, t) {
|
|
564
596
|
const n = e.format(t), a = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
|
|
565
597
|
return [
|
|
566
598
|
parseInt(a[3], 10),
|
|
@@ -571,7 +603,7 @@ function Ua(e, t) {
|
|
|
571
603
|
parseInt(a[6], 10)
|
|
572
604
|
];
|
|
573
605
|
}
|
|
574
|
-
const
|
|
606
|
+
const ht = {}, sn = new Intl.DateTimeFormat("en-US", {
|
|
575
607
|
hourCycle: "h23",
|
|
576
608
|
timeZone: "America/New_York",
|
|
577
609
|
year: "numeric",
|
|
@@ -580,9 +612,9 @@ const yt = {}, sn = new Intl.DateTimeFormat("en-US", {
|
|
|
580
612
|
hour: "2-digit",
|
|
581
613
|
minute: "2-digit",
|
|
582
614
|
second: "2-digit"
|
|
583
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
584
|
-
function
|
|
585
|
-
return
|
|
615
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Ca = sn === "06/25/2014, 00:00:00" || sn === "06/25/2014 00:00:00";
|
|
616
|
+
function Ba(e) {
|
|
617
|
+
return ht[e] || (ht[e] = Ca ? new Intl.DateTimeFormat("en-US", {
|
|
586
618
|
hourCycle: "h23",
|
|
587
619
|
timeZone: e,
|
|
588
620
|
year: "numeric",
|
|
@@ -600,13 +632,13 @@ function Ca(e) {
|
|
|
600
632
|
hour: "2-digit",
|
|
601
633
|
minute: "2-digit",
|
|
602
634
|
second: "2-digit"
|
|
603
|
-
})),
|
|
635
|
+
})), ht[e];
|
|
604
636
|
}
|
|
605
|
-
function
|
|
637
|
+
function kt(e, t, n, a, i, o, u) {
|
|
606
638
|
const m = /* @__PURE__ */ new Date(0);
|
|
607
|
-
return m.setUTCFullYear(e, t, n), m.setUTCHours(a, i, o,
|
|
639
|
+
return m.setUTCFullYear(e, t, n), m.setUTCHours(a, i, o, u), m;
|
|
608
640
|
}
|
|
609
|
-
const
|
|
641
|
+
const un = 36e5, Ha = 6e4, _t = {
|
|
610
642
|
timezoneZ: /^(Z)$/,
|
|
611
643
|
timezoneHH: /^([+-]\d{2})$/,
|
|
612
644
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -619,29 +651,29 @@ function Je(e, t, n) {
|
|
|
619
651
|
return 0;
|
|
620
652
|
let i, o;
|
|
621
653
|
if (a = _t.timezoneHH.exec(e), a)
|
|
622
|
-
return i = parseInt(a[1], 10),
|
|
654
|
+
return i = parseInt(a[1], 10), ln(i) ? -(i * un) : NaN;
|
|
623
655
|
if (a = _t.timezoneHHMM.exec(e), a) {
|
|
624
656
|
i = parseInt(a[2], 10);
|
|
625
|
-
const
|
|
626
|
-
return
|
|
657
|
+
const u = parseInt(a[3], 10);
|
|
658
|
+
return ln(i, u) ? (o = Math.abs(i) * un + u * Ha, a[1] === "+" ? -o : o) : NaN;
|
|
627
659
|
}
|
|
628
|
-
if (
|
|
660
|
+
if (Ya(e)) {
|
|
629
661
|
t = new Date(t || Date.now());
|
|
630
|
-
const
|
|
631
|
-
return -(n ? m :
|
|
662
|
+
const u = n ? t : za(t), m = Mt(u, e);
|
|
663
|
+
return -(n ? m : Va(t, m, e));
|
|
632
664
|
}
|
|
633
665
|
return NaN;
|
|
634
666
|
}
|
|
635
|
-
function
|
|
636
|
-
return
|
|
667
|
+
function za(e) {
|
|
668
|
+
return kt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
637
669
|
}
|
|
638
670
|
function Mt(e, t) {
|
|
639
|
-
const n =
|
|
671
|
+
const n = Ia(e, t), a = kt(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
|
|
640
672
|
let i = e.getTime();
|
|
641
673
|
const o = i % 1e3;
|
|
642
674
|
return i -= o >= 0 ? o : 1e3 + o, a - i;
|
|
643
675
|
}
|
|
644
|
-
function
|
|
676
|
+
function Va(e, t, n) {
|
|
645
677
|
let a = e.getTime() - t;
|
|
646
678
|
const i = Mt(new Date(a), n);
|
|
647
679
|
if (t === i)
|
|
@@ -650,11 +682,11 @@ function Ha(e, t, n) {
|
|
|
650
682
|
const o = Mt(new Date(a), n);
|
|
651
683
|
return i === o ? i : Math.max(i, o);
|
|
652
684
|
}
|
|
653
|
-
function
|
|
685
|
+
function ln(e, t) {
|
|
654
686
|
return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
|
|
655
687
|
}
|
|
656
688
|
const cn = {};
|
|
657
|
-
function
|
|
689
|
+
function Ya(e) {
|
|
658
690
|
if (cn[e])
|
|
659
691
|
return !0;
|
|
660
692
|
try {
|
|
@@ -667,7 +699,7 @@ function dn(e) {
|
|
|
667
699
|
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
668
700
|
return t.setUTCFullYear(e.getFullYear()), +e - +t;
|
|
669
701
|
}
|
|
670
|
-
const
|
|
702
|
+
const Gn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, gt = 36e5, mn = 6e4, ja = 2, E = {
|
|
671
703
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
672
704
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
673
705
|
// year tokens
|
|
@@ -699,14 +731,14 @@ const bn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
|
|
|
699
731
|
HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
700
732
|
HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
701
733
|
// time zone tokens (to identify the presence of a tz)
|
|
702
|
-
timeZone:
|
|
734
|
+
timeZone: Gn
|
|
703
735
|
};
|
|
704
736
|
function St(e, t = {}) {
|
|
705
737
|
if (arguments.length < 1)
|
|
706
738
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
707
739
|
if (e === null)
|
|
708
740
|
return /* @__PURE__ */ new Date(NaN);
|
|
709
|
-
const n = t.additionalDigits == null ?
|
|
741
|
+
const n = t.additionalDigits == null ? ja : Number(t.additionalDigits);
|
|
710
742
|
if (n !== 2 && n !== 1 && n !== 0)
|
|
711
743
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
712
744
|
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
|
|
@@ -715,13 +747,13 @@ function St(e, t = {}) {
|
|
|
715
747
|
return new Date(e);
|
|
716
748
|
if (Object.prototype.toString.call(e) !== "[object String]")
|
|
717
749
|
return /* @__PURE__ */ new Date(NaN);
|
|
718
|
-
const a =
|
|
719
|
-
if (
|
|
750
|
+
const a = $a(e), { year: i, restDateString: o } = Ka(a.date, n), u = Wa(o, i);
|
|
751
|
+
if (u === null || isNaN(u.getTime()))
|
|
720
752
|
return /* @__PURE__ */ new Date(NaN);
|
|
721
|
-
if (
|
|
722
|
-
const m =
|
|
753
|
+
if (u) {
|
|
754
|
+
const m = u.getTime();
|
|
723
755
|
let f = 0, d;
|
|
724
|
-
if (a.time && (f =
|
|
756
|
+
if (a.time && (f = Za(a.time), f === null || isNaN(f)))
|
|
725
757
|
return /* @__PURE__ */ new Date(NaN);
|
|
726
758
|
if (a.timeZone || t.timeZone) {
|
|
727
759
|
if (d = Je(a.timeZone || t.timeZone, new Date(m + f)), isNaN(d))
|
|
@@ -732,19 +764,19 @@ function St(e, t = {}) {
|
|
|
732
764
|
} else
|
|
733
765
|
return /* @__PURE__ */ new Date(NaN);
|
|
734
766
|
}
|
|
735
|
-
function
|
|
767
|
+
function $a(e) {
|
|
736
768
|
const t = {};
|
|
737
|
-
let n =
|
|
738
|
-
if (n ? (t.date = n[1], a = n[3]) : (n =
|
|
739
|
-
const i =
|
|
769
|
+
let n = E.dateTimePattern.exec(e), a;
|
|
770
|
+
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) {
|
|
771
|
+
const i = E.timeZone.exec(a);
|
|
740
772
|
i ? (t.time = a.replace(i[1], ""), t.timeZone = i[1].trim()) : t.time = a;
|
|
741
773
|
}
|
|
742
774
|
return t;
|
|
743
775
|
}
|
|
744
|
-
function
|
|
776
|
+
function Ka(e, t) {
|
|
745
777
|
if (e) {
|
|
746
|
-
const n =
|
|
747
|
-
let i =
|
|
778
|
+
const n = E.YYY[t], a = E.YYYYY[t];
|
|
779
|
+
let i = E.YYYY.exec(e) || a.exec(e);
|
|
748
780
|
if (i) {
|
|
749
781
|
const o = i[1];
|
|
750
782
|
return {
|
|
@@ -752,7 +784,7 @@ function ja(e, t) {
|
|
|
752
784
|
restDateString: e.slice(o.length)
|
|
753
785
|
};
|
|
754
786
|
}
|
|
755
|
-
if (i =
|
|
787
|
+
if (i = E.YY.exec(e) || n.exec(e), i) {
|
|
756
788
|
const o = i[1];
|
|
757
789
|
return {
|
|
758
790
|
year: parseInt(o, 10) * 100,
|
|
@@ -764,41 +796,41 @@ function ja(e, t) {
|
|
|
764
796
|
year: null
|
|
765
797
|
};
|
|
766
798
|
}
|
|
767
|
-
function
|
|
799
|
+
function Wa(e, t) {
|
|
768
800
|
if (t === null)
|
|
769
801
|
return null;
|
|
770
802
|
let n, a, i;
|
|
771
803
|
if (!e || !e.length)
|
|
772
804
|
return n = /* @__PURE__ */ new Date(0), n.setUTCFullYear(t), n;
|
|
773
|
-
let o =
|
|
805
|
+
let o = E.MM.exec(e);
|
|
774
806
|
if (o)
|
|
775
807
|
return n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1, pn(t, a) ? (n.setUTCFullYear(t, a), n) : /* @__PURE__ */ new Date(NaN);
|
|
776
|
-
if (o =
|
|
808
|
+
if (o = E.DDD.exec(e), o) {
|
|
777
809
|
n = /* @__PURE__ */ new Date(0);
|
|
778
|
-
const
|
|
779
|
-
return
|
|
810
|
+
const u = parseInt(o[1], 10);
|
|
811
|
+
return Ja(t, u) ? (n.setUTCFullYear(t, 0, u), n) : /* @__PURE__ */ new Date(NaN);
|
|
780
812
|
}
|
|
781
|
-
if (o =
|
|
813
|
+
if (o = E.MMDD.exec(e), o) {
|
|
782
814
|
n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1;
|
|
783
|
-
const
|
|
784
|
-
return pn(t, a,
|
|
815
|
+
const u = parseInt(o[2], 10);
|
|
816
|
+
return pn(t, a, u) ? (n.setUTCFullYear(t, a, u), n) : /* @__PURE__ */ new Date(NaN);
|
|
785
817
|
}
|
|
786
|
-
if (o =
|
|
787
|
-
return i = parseInt(o[1], 10) - 1,
|
|
788
|
-
if (o =
|
|
818
|
+
if (o = E.Www.exec(e), o)
|
|
819
|
+
return i = parseInt(o[1], 10) - 1, yn(i) ? fn(t, i) : /* @__PURE__ */ new Date(NaN);
|
|
820
|
+
if (o = E.WwwD.exec(e), o) {
|
|
789
821
|
i = parseInt(o[1], 10) - 1;
|
|
790
|
-
const
|
|
791
|
-
return
|
|
822
|
+
const u = parseInt(o[2], 10) - 1;
|
|
823
|
+
return yn(i, u) ? fn(t, i, u) : /* @__PURE__ */ new Date(NaN);
|
|
792
824
|
}
|
|
793
825
|
return null;
|
|
794
826
|
}
|
|
795
|
-
function
|
|
796
|
-
let t, n, a =
|
|
827
|
+
function Za(e) {
|
|
828
|
+
let t, n, a = E.HH.exec(e);
|
|
797
829
|
if (a)
|
|
798
830
|
return t = parseFloat(a[1].replace(",", ".")), wt(t) ? t % 24 * gt : NaN;
|
|
799
|
-
if (a =
|
|
831
|
+
if (a = E.HHMM.exec(e), a)
|
|
800
832
|
return t = parseInt(a[1], 10), n = parseFloat(a[2].replace(",", ".")), wt(t, n) ? t % 24 * gt + n * mn : NaN;
|
|
801
|
-
if (a =
|
|
833
|
+
if (a = E.HHMMSS.exec(e), a) {
|
|
802
834
|
t = parseInt(a[1], 10), n = parseInt(a[2], 10);
|
|
803
835
|
const i = parseFloat(a[3].replace(",", "."));
|
|
804
836
|
return wt(t, n, i) ? t % 24 * gt + n * mn + i * 1e3 : NaN;
|
|
@@ -812,7 +844,7 @@ function fn(e, t, n) {
|
|
|
812
844
|
const i = a.getUTCDay() || 7, o = t * 7 + n + 1 - i;
|
|
813
845
|
return a.setUTCDate(a.getUTCDate() + o), a;
|
|
814
846
|
}
|
|
815
|
-
const
|
|
847
|
+
const qa = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Qa = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
816
848
|
function Ln(e) {
|
|
817
849
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
818
850
|
}
|
|
@@ -823,48 +855,48 @@ function pn(e, t, n) {
|
|
|
823
855
|
if (n < 1)
|
|
824
856
|
return !1;
|
|
825
857
|
const a = Ln(e);
|
|
826
|
-
if (a && n >
|
|
858
|
+
if (a && n > Qa[t] || !a && n > qa[t])
|
|
827
859
|
return !1;
|
|
828
860
|
}
|
|
829
861
|
return !0;
|
|
830
862
|
}
|
|
831
|
-
function
|
|
863
|
+
function Ja(e, t) {
|
|
832
864
|
if (t < 1)
|
|
833
865
|
return !1;
|
|
834
866
|
const n = Ln(e);
|
|
835
867
|
return !(n && t > 366 || !n && t > 365);
|
|
836
868
|
}
|
|
837
|
-
function
|
|
869
|
+
function yn(e, t) {
|
|
838
870
|
return !(e < 0 || e > 52 || t != null && (t < 0 || t > 6));
|
|
839
871
|
}
|
|
840
872
|
function wt(e, t, n) {
|
|
841
873
|
return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
|
|
842
874
|
}
|
|
843
|
-
function
|
|
875
|
+
function Xa(e, t, n) {
|
|
844
876
|
e = St(e, n);
|
|
845
877
|
const a = Je(t, e, !0), i = new Date(e.getTime() - a), o = /* @__PURE__ */ new Date(0);
|
|
846
878
|
return o.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), o.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), o;
|
|
847
879
|
}
|
|
848
|
-
function
|
|
849
|
-
if (typeof e == "string" && !e.match(
|
|
880
|
+
function ei(e, t, n) {
|
|
881
|
+
if (typeof e == "string" && !e.match(Gn))
|
|
850
882
|
return St(e, { ...n, timeZone: t });
|
|
851
883
|
e = St(e, n);
|
|
852
|
-
const a =
|
|
884
|
+
const a = kt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = Je(t, new Date(a));
|
|
853
885
|
return new Date(a + i);
|
|
854
886
|
}
|
|
855
|
-
function
|
|
887
|
+
function ti(e, t) {
|
|
856
888
|
return -Je(e, t);
|
|
857
889
|
}
|
|
858
|
-
var
|
|
859
|
-
function
|
|
890
|
+
var Ye = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
891
|
+
function ni(e) {
|
|
860
892
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
861
893
|
}
|
|
862
894
|
var We = { exports: {} };
|
|
863
895
|
We.exports;
|
|
864
896
|
(function(e, t) {
|
|
865
|
-
var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]",
|
|
866
|
-
v[o] = v[
|
|
867
|
-
var $ = typeof
|
|
897
|
+
var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", u = "[object Array]", m = "[object Boolean]", f = "[object Date]", d = "[object Error]", c = "[object Function]", h = "[object GeneratorFunction]", w = "[object Map]", g = "[object Number]", T = "[object Object]", M = "[object Promise]", H = "[object RegExp]", B = "[object Set]", I = "[object String]", ie = "[object Symbol]", N = "[object WeakMap]", Me = "[object ArrayBuffer]", de = "[object DataView]", _ = "[object Float32Array]", F = "[object Float64Array]", S = "[object Int8Array]", k = "[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*)$/, v = {};
|
|
898
|
+
v[o] = v[u] = v[Me] = v[de] = v[m] = v[f] = v[_] = v[F] = v[S] = v[k] = v[ee] = v[w] = v[g] = v[T] = v[H] = v[B] = v[I] = v[ie] = v[W] = v[z] = v[te] = v[ne] = !0, v[d] = v[c] = v[N] = !1;
|
|
899
|
+
var $ = typeof Ye == "object" && Ye && Ye.Object === Object && Ye, me = typeof self == "object" && self && self.Object === Object && self, O = $ || me || Function("return this")(), Z = t && !t.nodeType && t, Le = Z && !0 && e && !e.nodeType && e, et = Le && Le.exports === Z;
|
|
868
900
|
function tt(r, s) {
|
|
869
901
|
return r.set(s[0], s[1]), r;
|
|
870
902
|
}
|
|
@@ -872,24 +904,24 @@ We.exports;
|
|
|
872
904
|
return r.add(s), r;
|
|
873
905
|
}
|
|
874
906
|
function Se(r, s) {
|
|
875
|
-
for (var
|
|
907
|
+
for (var l = -1, y = r ? r.length : 0; ++l < y && s(r[l], l, r) !== !1; )
|
|
876
908
|
;
|
|
877
909
|
return r;
|
|
878
910
|
}
|
|
879
|
-
function
|
|
880
|
-
for (var
|
|
881
|
-
r[R +
|
|
911
|
+
function Pn(r, s) {
|
|
912
|
+
for (var l = -1, y = s.length, R = r.length; ++l < y; )
|
|
913
|
+
r[R + l] = s[l];
|
|
882
914
|
return r;
|
|
883
915
|
}
|
|
884
|
-
function Lt(r, s,
|
|
885
|
-
for (var R = -1,
|
|
886
|
-
|
|
887
|
-
return
|
|
916
|
+
function Lt(r, s, l, y) {
|
|
917
|
+
for (var R = -1, b = r ? r.length : 0; ++R < b; )
|
|
918
|
+
l = s(l, r[R], R, r);
|
|
919
|
+
return l;
|
|
888
920
|
}
|
|
889
|
-
function
|
|
890
|
-
for (var
|
|
891
|
-
|
|
892
|
-
return
|
|
921
|
+
function Cn(r, s) {
|
|
922
|
+
for (var l = -1, y = Array(r); ++l < r; )
|
|
923
|
+
y[l] = s(l);
|
|
924
|
+
return y;
|
|
893
925
|
}
|
|
894
926
|
function Bn(r, s) {
|
|
895
927
|
return r == null ? void 0 : r[s];
|
|
@@ -904,33 +936,33 @@ We.exports;
|
|
|
904
936
|
return s;
|
|
905
937
|
}
|
|
906
938
|
function Ut(r) {
|
|
907
|
-
var s = -1,
|
|
908
|
-
return r.forEach(function(
|
|
909
|
-
|
|
910
|
-
}),
|
|
939
|
+
var s = -1, l = Array(r.size);
|
|
940
|
+
return r.forEach(function(y, R) {
|
|
941
|
+
l[++s] = [R, y];
|
|
942
|
+
}), l;
|
|
911
943
|
}
|
|
912
944
|
function rt(r, s) {
|
|
913
|
-
return function(
|
|
914
|
-
return r(s(
|
|
945
|
+
return function(l) {
|
|
946
|
+
return r(s(l));
|
|
915
947
|
};
|
|
916
948
|
}
|
|
917
949
|
function At(r) {
|
|
918
|
-
var s = -1,
|
|
919
|
-
return r.forEach(function(
|
|
920
|
-
|
|
921
|
-
}),
|
|
950
|
+
var s = -1, l = Array(r.size);
|
|
951
|
+
return r.forEach(function(y) {
|
|
952
|
+
l[++s] = y;
|
|
953
|
+
}), l;
|
|
922
954
|
}
|
|
923
|
-
var Hn = Array.prototype,
|
|
955
|
+
var Hn = Array.prototype, zn = Function.prototype, Ie = Object.prototype, at = O["__core-js_shared__"], Pt = function() {
|
|
924
956
|
var r = /[^.]+$/.exec(at && at.keys && at.keys.IE_PROTO || "");
|
|
925
957
|
return r ? "Symbol(src)_1." + r : "";
|
|
926
|
-
}(),
|
|
927
|
-
"^" +
|
|
928
|
-
), Bt = et ? O.Buffer : void 0, Ht = O.Symbol,
|
|
958
|
+
}(), Ct = zn.toString, re = Ie.hasOwnProperty, Ue = Ie.toString, Vn = RegExp(
|
|
959
|
+
"^" + Ct.call(re).replace(L, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
960
|
+
), Bt = et ? O.Buffer : void 0, Ht = O.Symbol, zt = O.Uint8Array, Yn = rt(Object.getPrototypeOf, Object), jn = Object.create, $n = Ie.propertyIsEnumerable, Kn = Hn.splice, Vt = Object.getOwnPropertySymbols, Wn = Bt ? Bt.isBuffer : void 0, Zn = rt(Object.keys, Object), it = ye(O, "DataView"), De = ye(O, "Map"), ot = ye(O, "Promise"), st = ye(O, "Set"), ut = ye(O, "WeakMap"), Ne = ye(Object, "create"), qn = ue(it), Qn = ue(De), Jn = ue(ot), Xn = ue(st), er = ue(ut), Yt = Ht ? Ht.prototype : void 0, jt = Yt ? Yt.valueOf : void 0;
|
|
929
961
|
function oe(r) {
|
|
930
|
-
var s = -1,
|
|
931
|
-
for (this.clear(); ++s <
|
|
932
|
-
var
|
|
933
|
-
this.set(
|
|
962
|
+
var s = -1, l = r ? r.length : 0;
|
|
963
|
+
for (this.clear(); ++s < l; ) {
|
|
964
|
+
var y = r[s];
|
|
965
|
+
this.set(y[0], y[1]);
|
|
934
966
|
}
|
|
935
967
|
}
|
|
936
968
|
function tr() {
|
|
@@ -942,8 +974,8 @@ We.exports;
|
|
|
942
974
|
function rr(r) {
|
|
943
975
|
var s = this.__data__;
|
|
944
976
|
if (Ne) {
|
|
945
|
-
var
|
|
946
|
-
return
|
|
977
|
+
var l = s[r];
|
|
978
|
+
return l === a ? void 0 : l;
|
|
947
979
|
}
|
|
948
980
|
return re.call(s, r) ? s[r] : void 0;
|
|
949
981
|
}
|
|
@@ -952,44 +984,44 @@ We.exports;
|
|
|
952
984
|
return Ne ? s[r] !== void 0 : re.call(s, r);
|
|
953
985
|
}
|
|
954
986
|
function ir(r, s) {
|
|
955
|
-
var
|
|
956
|
-
return
|
|
987
|
+
var l = this.__data__;
|
|
988
|
+
return l[r] = Ne && s === void 0 ? a : s, this;
|
|
957
989
|
}
|
|
958
990
|
oe.prototype.clear = tr, oe.prototype.delete = nr, oe.prototype.get = rr, oe.prototype.has = ar, oe.prototype.set = ir;
|
|
959
991
|
function q(r) {
|
|
960
|
-
var s = -1,
|
|
961
|
-
for (this.clear(); ++s <
|
|
962
|
-
var
|
|
963
|
-
this.set(
|
|
992
|
+
var s = -1, l = r ? r.length : 0;
|
|
993
|
+
for (this.clear(); ++s < l; ) {
|
|
994
|
+
var y = r[s];
|
|
995
|
+
this.set(y[0], y[1]);
|
|
964
996
|
}
|
|
965
997
|
}
|
|
966
998
|
function or() {
|
|
967
999
|
this.__data__ = [];
|
|
968
1000
|
}
|
|
969
1001
|
function sr(r) {
|
|
970
|
-
var s = this.__data__,
|
|
971
|
-
if (
|
|
1002
|
+
var s = this.__data__, l = Ae(s, r);
|
|
1003
|
+
if (l < 0)
|
|
972
1004
|
return !1;
|
|
973
|
-
var
|
|
974
|
-
return
|
|
975
|
-
}
|
|
976
|
-
function lr(r) {
|
|
977
|
-
var s = this.__data__, u = Ae(s, r);
|
|
978
|
-
return u < 0 ? void 0 : s[u][1];
|
|
1005
|
+
var y = s.length - 1;
|
|
1006
|
+
return l == y ? s.pop() : Kn.call(s, l, 1), !0;
|
|
979
1007
|
}
|
|
980
1008
|
function ur(r) {
|
|
1009
|
+
var s = this.__data__, l = Ae(s, r);
|
|
1010
|
+
return l < 0 ? void 0 : s[l][1];
|
|
1011
|
+
}
|
|
1012
|
+
function lr(r) {
|
|
981
1013
|
return Ae(this.__data__, r) > -1;
|
|
982
1014
|
}
|
|
983
1015
|
function cr(r, s) {
|
|
984
|
-
var
|
|
985
|
-
return
|
|
1016
|
+
var l = this.__data__, y = Ae(l, r);
|
|
1017
|
+
return y < 0 ? l.push([r, s]) : l[y][1] = s, this;
|
|
986
1018
|
}
|
|
987
|
-
q.prototype.clear = or, q.prototype.delete = sr, q.prototype.get =
|
|
1019
|
+
q.prototype.clear = or, q.prototype.delete = sr, q.prototype.get = ur, q.prototype.has = lr, q.prototype.set = cr;
|
|
988
1020
|
function fe(r) {
|
|
989
|
-
var s = -1,
|
|
990
|
-
for (this.clear(); ++s <
|
|
991
|
-
var
|
|
992
|
-
this.set(
|
|
1021
|
+
var s = -1, l = r ? r.length : 0;
|
|
1022
|
+
for (this.clear(); ++s < l; ) {
|
|
1023
|
+
var y = r[s];
|
|
1024
|
+
this.set(y[0], y[1]);
|
|
993
1025
|
}
|
|
994
1026
|
}
|
|
995
1027
|
function dr() {
|
|
@@ -1000,22 +1032,22 @@ We.exports;
|
|
|
1000
1032
|
};
|
|
1001
1033
|
}
|
|
1002
1034
|
function mr(r) {
|
|
1003
|
-
return
|
|
1035
|
+
return Pe(this, r).delete(r);
|
|
1004
1036
|
}
|
|
1005
1037
|
function fr(r) {
|
|
1006
|
-
return
|
|
1038
|
+
return Pe(this, r).get(r);
|
|
1007
1039
|
}
|
|
1008
1040
|
function pr(r) {
|
|
1009
|
-
return
|
|
1041
|
+
return Pe(this, r).has(r);
|
|
1010
1042
|
}
|
|
1011
|
-
function
|
|
1012
|
-
return
|
|
1043
|
+
function yr(r, s) {
|
|
1044
|
+
return Pe(this, r).set(r, s), this;
|
|
1013
1045
|
}
|
|
1014
|
-
fe.prototype.clear = dr, fe.prototype.delete = mr, fe.prototype.get = fr, fe.prototype.has = pr, fe.prototype.set =
|
|
1046
|
+
fe.prototype.clear = dr, fe.prototype.delete = mr, fe.prototype.get = fr, fe.prototype.has = pr, fe.prototype.set = yr;
|
|
1015
1047
|
function pe(r) {
|
|
1016
1048
|
this.__data__ = new q(r);
|
|
1017
1049
|
}
|
|
1018
|
-
function
|
|
1050
|
+
function hr() {
|
|
1019
1051
|
this.__data__ = new q();
|
|
1020
1052
|
}
|
|
1021
1053
|
function _r(r) {
|
|
@@ -1028,140 +1060,140 @@ We.exports;
|
|
|
1028
1060
|
return this.__data__.has(r);
|
|
1029
1061
|
}
|
|
1030
1062
|
function vr(r, s) {
|
|
1031
|
-
var
|
|
1032
|
-
if (
|
|
1033
|
-
var
|
|
1034
|
-
if (!De ||
|
|
1035
|
-
return
|
|
1036
|
-
|
|
1063
|
+
var l = this.__data__;
|
|
1064
|
+
if (l instanceof q) {
|
|
1065
|
+
var y = l.__data__;
|
|
1066
|
+
if (!De || y.length < n - 1)
|
|
1067
|
+
return y.push([r, s]), this;
|
|
1068
|
+
l = this.__data__ = new fe(y);
|
|
1037
1069
|
}
|
|
1038
|
-
return
|
|
1070
|
+
return l.set(r, s), this;
|
|
1039
1071
|
}
|
|
1040
|
-
pe.prototype.clear =
|
|
1072
|
+
pe.prototype.clear = hr, pe.prototype.delete = _r, pe.prototype.get = gr, pe.prototype.has = wr, pe.prototype.set = vr;
|
|
1041
1073
|
function xr(r, s) {
|
|
1042
|
-
var
|
|
1043
|
-
for (var
|
|
1044
|
-
re.call(r,
|
|
1045
|
-
return
|
|
1074
|
+
var l = dt(r) || jr(r) ? Cn(r.length, String) : [], y = l.length, R = !!y;
|
|
1075
|
+
for (var b in r)
|
|
1076
|
+
re.call(r, b) && !(R && (b == "length" || Hr(b, y))) && l.push(b);
|
|
1077
|
+
return l;
|
|
1046
1078
|
}
|
|
1047
|
-
function $t(r, s,
|
|
1048
|
-
var
|
|
1049
|
-
(!(re.call(r, s) && qt(
|
|
1079
|
+
function $t(r, s, l) {
|
|
1080
|
+
var y = r[s];
|
|
1081
|
+
(!(re.call(r, s) && qt(y, l)) || l === void 0 && !(s in r)) && (r[s] = l);
|
|
1050
1082
|
}
|
|
1051
1083
|
function Ae(r, s) {
|
|
1052
|
-
for (var
|
|
1053
|
-
if (qt(r[
|
|
1054
|
-
return
|
|
1084
|
+
for (var l = r.length; l--; )
|
|
1085
|
+
if (qt(r[l][0], s))
|
|
1086
|
+
return l;
|
|
1055
1087
|
return -1;
|
|
1056
1088
|
}
|
|
1057
1089
|
function Fr(r, s) {
|
|
1058
1090
|
return r && Kt(s, mt(s), r);
|
|
1059
1091
|
}
|
|
1060
|
-
function
|
|
1061
|
-
var
|
|
1062
|
-
if (
|
|
1063
|
-
return
|
|
1064
|
-
if (!
|
|
1092
|
+
function lt(r, s, l, y, R, b, Q) {
|
|
1093
|
+
var G;
|
|
1094
|
+
if (y && (G = b ? y(r, R, b, Q) : y(r)), G !== void 0)
|
|
1095
|
+
return G;
|
|
1096
|
+
if (!Ce(r))
|
|
1065
1097
|
return r;
|
|
1066
1098
|
var Xt = dt(r);
|
|
1067
1099
|
if (Xt) {
|
|
1068
|
-
if (
|
|
1069
|
-
return Ir(r,
|
|
1100
|
+
if (G = Pr(r), !s)
|
|
1101
|
+
return Ir(r, G);
|
|
1070
1102
|
} else {
|
|
1071
|
-
var
|
|
1103
|
+
var he = se(r), en = he == c || he == h;
|
|
1072
1104
|
if (Kr(r))
|
|
1073
1105
|
return Rr(r, s);
|
|
1074
|
-
if (
|
|
1106
|
+
if (he == T || he == o || en && !b) {
|
|
1075
1107
|
if (It(r))
|
|
1076
|
-
return
|
|
1077
|
-
if (
|
|
1078
|
-
return Ur(r, Fr(
|
|
1108
|
+
return b ? r : {};
|
|
1109
|
+
if (G = Cr(en ? {} : r), !s)
|
|
1110
|
+
return Ur(r, Fr(G, r));
|
|
1079
1111
|
} else {
|
|
1080
|
-
if (!v[
|
|
1081
|
-
return
|
|
1082
|
-
|
|
1112
|
+
if (!v[he])
|
|
1113
|
+
return b ? r : {};
|
|
1114
|
+
G = Br(r, he, lt, s);
|
|
1083
1115
|
}
|
|
1084
1116
|
}
|
|
1085
1117
|
Q || (Q = new pe());
|
|
1086
1118
|
var tn = Q.get(r);
|
|
1087
1119
|
if (tn)
|
|
1088
1120
|
return tn;
|
|
1089
|
-
if (Q.set(r,
|
|
1090
|
-
var nn =
|
|
1121
|
+
if (Q.set(r, G), !Xt)
|
|
1122
|
+
var nn = l ? Ar(r) : mt(r);
|
|
1091
1123
|
return Se(nn || r, function(ft, Be) {
|
|
1092
|
-
nn && (Be = ft, ft = r[Be]), $t(
|
|
1093
|
-
}),
|
|
1124
|
+
nn && (Be = ft, ft = r[Be]), $t(G, Be, lt(ft, s, l, y, Be, r, Q));
|
|
1125
|
+
}), G;
|
|
1094
1126
|
}
|
|
1095
1127
|
function Tr(r) {
|
|
1096
|
-
return
|
|
1128
|
+
return Ce(r) ? jn(r) : {};
|
|
1097
1129
|
}
|
|
1098
|
-
function Mr(r, s,
|
|
1099
|
-
var
|
|
1100
|
-
return dt(r) ?
|
|
1130
|
+
function Mr(r, s, l) {
|
|
1131
|
+
var y = s(r);
|
|
1132
|
+
return dt(r) ? y : Pn(y, l(r));
|
|
1101
1133
|
}
|
|
1102
1134
|
function Sr(r) {
|
|
1103
1135
|
return Ue.call(r);
|
|
1104
1136
|
}
|
|
1105
1137
|
function Dr(r) {
|
|
1106
|
-
if (!
|
|
1138
|
+
if (!Ce(r) || Vr(r))
|
|
1107
1139
|
return !1;
|
|
1108
|
-
var s = Jt(r) || It(r) ?
|
|
1109
|
-
return s.test(
|
|
1140
|
+
var s = Jt(r) || It(r) ? Vn : Y;
|
|
1141
|
+
return s.test(ue(r));
|
|
1110
1142
|
}
|
|
1111
1143
|
function Nr(r) {
|
|
1112
1144
|
if (!Zt(r))
|
|
1113
1145
|
return Zn(r);
|
|
1114
1146
|
var s = [];
|
|
1115
|
-
for (var
|
|
1116
|
-
re.call(r,
|
|
1147
|
+
for (var l in Object(r))
|
|
1148
|
+
re.call(r, l) && l != "constructor" && s.push(l);
|
|
1117
1149
|
return s;
|
|
1118
1150
|
}
|
|
1119
1151
|
function Rr(r, s) {
|
|
1120
1152
|
if (s)
|
|
1121
1153
|
return r.slice();
|
|
1122
|
-
var
|
|
1123
|
-
return r.copy(
|
|
1154
|
+
var l = new r.constructor(r.length);
|
|
1155
|
+
return r.copy(l), l;
|
|
1124
1156
|
}
|
|
1125
1157
|
function ct(r) {
|
|
1126
1158
|
var s = new r.constructor(r.byteLength);
|
|
1127
|
-
return new
|
|
1159
|
+
return new zt(s).set(new zt(r)), s;
|
|
1128
1160
|
}
|
|
1129
|
-
function
|
|
1130
|
-
var
|
|
1131
|
-
return new r.constructor(
|
|
1161
|
+
function kr(r, s) {
|
|
1162
|
+
var l = s ? ct(r.buffer) : r.buffer;
|
|
1163
|
+
return new r.constructor(l, r.byteOffset, r.byteLength);
|
|
1132
1164
|
}
|
|
1133
|
-
function
|
|
1134
|
-
var
|
|
1135
|
-
return Lt(
|
|
1165
|
+
function Er(r, s, l) {
|
|
1166
|
+
var y = s ? l(Ut(r), !0) : Ut(r);
|
|
1167
|
+
return Lt(y, tt, new r.constructor());
|
|
1136
1168
|
}
|
|
1137
1169
|
function Or(r) {
|
|
1138
|
-
var s = new r.constructor(r.source,
|
|
1170
|
+
var s = new r.constructor(r.source, V.exec(r));
|
|
1139
1171
|
return s.lastIndex = r.lastIndex, s;
|
|
1140
1172
|
}
|
|
1141
|
-
function
|
|
1142
|
-
var
|
|
1143
|
-
return Lt(
|
|
1173
|
+
function br(r, s, l) {
|
|
1174
|
+
var y = s ? l(At(r), !0) : At(r);
|
|
1175
|
+
return Lt(y, nt, new r.constructor());
|
|
1144
1176
|
}
|
|
1145
|
-
function
|
|
1177
|
+
function Gr(r) {
|
|
1146
1178
|
return jt ? Object(jt.call(r)) : {};
|
|
1147
1179
|
}
|
|
1148
1180
|
function Lr(r, s) {
|
|
1149
|
-
var
|
|
1150
|
-
return new r.constructor(
|
|
1181
|
+
var l = s ? ct(r.buffer) : r.buffer;
|
|
1182
|
+
return new r.constructor(l, r.byteOffset, r.length);
|
|
1151
1183
|
}
|
|
1152
1184
|
function Ir(r, s) {
|
|
1153
|
-
var
|
|
1154
|
-
for (s || (s = Array(
|
|
1155
|
-
s[
|
|
1185
|
+
var l = -1, y = r.length;
|
|
1186
|
+
for (s || (s = Array(y)); ++l < y; )
|
|
1187
|
+
s[l] = r[l];
|
|
1156
1188
|
return s;
|
|
1157
1189
|
}
|
|
1158
|
-
function Kt(r, s,
|
|
1159
|
-
|
|
1160
|
-
for (var R = -1,
|
|
1161
|
-
var Q = s[R],
|
|
1162
|
-
$t(
|
|
1190
|
+
function Kt(r, s, l, y) {
|
|
1191
|
+
l || (l = {});
|
|
1192
|
+
for (var R = -1, b = s.length; ++R < b; ) {
|
|
1193
|
+
var Q = s[R], G = void 0;
|
|
1194
|
+
$t(l, Q, G === void 0 ? r[Q] : G);
|
|
1163
1195
|
}
|
|
1164
|
-
return
|
|
1196
|
+
return l;
|
|
1165
1197
|
}
|
|
1166
1198
|
function Ur(r, s) {
|
|
1167
1199
|
return Kt(r, Wt(r), s);
|
|
@@ -1169,19 +1201,19 @@ We.exports;
|
|
|
1169
1201
|
function Ar(r) {
|
|
1170
1202
|
return Mr(r, mt, Wt);
|
|
1171
1203
|
}
|
|
1172
|
-
function
|
|
1173
|
-
var
|
|
1174
|
-
return
|
|
1204
|
+
function Pe(r, s) {
|
|
1205
|
+
var l = r.__data__;
|
|
1206
|
+
return zr(s) ? l[typeof s == "string" ? "string" : "hash"] : l.map;
|
|
1175
1207
|
}
|
|
1176
|
-
function
|
|
1177
|
-
var
|
|
1178
|
-
return Dr(
|
|
1208
|
+
function ye(r, s) {
|
|
1209
|
+
var l = Bn(r, s);
|
|
1210
|
+
return Dr(l) ? l : void 0;
|
|
1179
1211
|
}
|
|
1180
|
-
var Wt =
|
|
1181
|
-
(it && se(new it(new ArrayBuffer(1))) != de || De && se(new De()) != w || ot && se(ot.resolve()) != M || st && se(new st()) != B ||
|
|
1182
|
-
var s = Ue.call(r),
|
|
1183
|
-
if (
|
|
1184
|
-
switch (
|
|
1212
|
+
var Wt = Vt ? rt(Vt, Object) : qr, se = Sr;
|
|
1213
|
+
(it && se(new it(new ArrayBuffer(1))) != de || De && se(new De()) != w || ot && se(ot.resolve()) != M || st && se(new st()) != B || ut && se(new ut()) != N) && (se = function(r) {
|
|
1214
|
+
var s = Ue.call(r), l = s == T ? r.constructor : void 0, y = l ? ue(l) : void 0;
|
|
1215
|
+
if (y)
|
|
1216
|
+
switch (y) {
|
|
1185
1217
|
case qn:
|
|
1186
1218
|
return de;
|
|
1187
1219
|
case Qn:
|
|
@@ -1195,14 +1227,14 @@ We.exports;
|
|
|
1195
1227
|
}
|
|
1196
1228
|
return s;
|
|
1197
1229
|
});
|
|
1198
|
-
function Cr(r) {
|
|
1199
|
-
var s = r.length, u = r.constructor(s);
|
|
1200
|
-
return s && typeof r[0] == "string" && re.call(r, "index") && (u.index = r.index, u.input = r.input), u;
|
|
1201
|
-
}
|
|
1202
1230
|
function Pr(r) {
|
|
1203
|
-
|
|
1231
|
+
var s = r.length, l = r.constructor(s);
|
|
1232
|
+
return s && typeof r[0] == "string" && re.call(r, "index") && (l.index = r.index, l.input = r.input), l;
|
|
1233
|
+
}
|
|
1234
|
+
function Cr(r) {
|
|
1235
|
+
return typeof r.constructor == "function" && !Zt(r) ? Tr(Yn(r)) : {};
|
|
1204
1236
|
}
|
|
1205
|
-
function Br(r, s,
|
|
1237
|
+
function Br(r, s, l, y) {
|
|
1206
1238
|
var R = r.constructor;
|
|
1207
1239
|
switch (s) {
|
|
1208
1240
|
case Me:
|
|
@@ -1211,48 +1243,48 @@ We.exports;
|
|
|
1211
1243
|
case f:
|
|
1212
1244
|
return new R(+r);
|
|
1213
1245
|
case de:
|
|
1214
|
-
return
|
|
1246
|
+
return kr(r, y);
|
|
1215
1247
|
case _:
|
|
1216
1248
|
case F:
|
|
1217
1249
|
case S:
|
|
1218
|
-
case
|
|
1250
|
+
case k:
|
|
1219
1251
|
case ee:
|
|
1220
1252
|
case W:
|
|
1221
|
-
case
|
|
1253
|
+
case z:
|
|
1222
1254
|
case te:
|
|
1223
1255
|
case ne:
|
|
1224
|
-
return Lr(r,
|
|
1256
|
+
return Lr(r, y);
|
|
1225
1257
|
case w:
|
|
1226
|
-
return
|
|
1258
|
+
return Er(r, y, l);
|
|
1227
1259
|
case g:
|
|
1228
1260
|
case I:
|
|
1229
1261
|
return new R(r);
|
|
1230
1262
|
case H:
|
|
1231
1263
|
return Or(r);
|
|
1232
1264
|
case B:
|
|
1233
|
-
return
|
|
1265
|
+
return br(r, y, l);
|
|
1234
1266
|
case ie:
|
|
1235
|
-
return
|
|
1267
|
+
return Gr(r);
|
|
1236
1268
|
}
|
|
1237
1269
|
}
|
|
1238
1270
|
function Hr(r, s) {
|
|
1239
1271
|
return s = s ?? i, !!s && (typeof r == "number" || j.test(r)) && r > -1 && r % 1 == 0 && r < s;
|
|
1240
1272
|
}
|
|
1241
|
-
function
|
|
1273
|
+
function zr(r) {
|
|
1242
1274
|
var s = typeof r;
|
|
1243
1275
|
return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? r !== "__proto__" : r === null;
|
|
1244
1276
|
}
|
|
1245
|
-
function
|
|
1246
|
-
return !!
|
|
1277
|
+
function Vr(r) {
|
|
1278
|
+
return !!Pt && Pt in r;
|
|
1247
1279
|
}
|
|
1248
1280
|
function Zt(r) {
|
|
1249
|
-
var s = r && r.constructor,
|
|
1250
|
-
return r ===
|
|
1281
|
+
var s = r && r.constructor, l = typeof s == "function" && s.prototype || Ie;
|
|
1282
|
+
return r === l;
|
|
1251
1283
|
}
|
|
1252
|
-
function
|
|
1284
|
+
function ue(r) {
|
|
1253
1285
|
if (r != null) {
|
|
1254
1286
|
try {
|
|
1255
|
-
return
|
|
1287
|
+
return Ct.call(r);
|
|
1256
1288
|
} catch {
|
|
1257
1289
|
}
|
|
1258
1290
|
try {
|
|
@@ -1262,8 +1294,8 @@ We.exports;
|
|
|
1262
1294
|
}
|
|
1263
1295
|
return "";
|
|
1264
1296
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return
|
|
1297
|
+
function Yr(r) {
|
|
1298
|
+
return lt(r, !0, !0);
|
|
1267
1299
|
}
|
|
1268
1300
|
function qt(r, s) {
|
|
1269
1301
|
return r === s || r !== r && s !== s;
|
|
@@ -1280,13 +1312,13 @@ We.exports;
|
|
|
1280
1312
|
}
|
|
1281
1313
|
var Kr = Wn || Qr;
|
|
1282
1314
|
function Jt(r) {
|
|
1283
|
-
var s =
|
|
1284
|
-
return s == c || s ==
|
|
1315
|
+
var s = Ce(r) ? Ue.call(r) : "";
|
|
1316
|
+
return s == c || s == h;
|
|
1285
1317
|
}
|
|
1286
1318
|
function Wr(r) {
|
|
1287
1319
|
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= i;
|
|
1288
1320
|
}
|
|
1289
|
-
function
|
|
1321
|
+
function Ce(r) {
|
|
1290
1322
|
var s = typeof r;
|
|
1291
1323
|
return !!r && (s == "object" || s == "function");
|
|
1292
1324
|
}
|
|
@@ -1302,10 +1334,10 @@ We.exports;
|
|
|
1302
1334
|
function Qr() {
|
|
1303
1335
|
return !1;
|
|
1304
1336
|
}
|
|
1305
|
-
e.exports =
|
|
1337
|
+
e.exports = Yr;
|
|
1306
1338
|
})(We, We.exports);
|
|
1307
1339
|
We.exports;
|
|
1308
|
-
const
|
|
1340
|
+
const C = (e, t) => new Date(e.getTime() - ti(t, e));
|
|
1309
1341
|
class D {
|
|
1310
1342
|
constructor(t) {
|
|
1311
1343
|
U(this, "timeframeText"), U(this, "key"), U(this, "display"), U(this, "timeframeLength"), U(this, "allowedTiers"), U(this, "defaultResponseGranularity"), U(this, "dataGranularity"), U(this, "isRelative"), U(this, "fineGrainedDefaultGranularity"), U(this, "_startCustom"), U(this, "_endCustom"), U(this, "_allowedGranularitiesOverride"), this.display = t.display, this.timeframeText = t.timeframeText, this.key = t.key, this.timeframeLength = t.timeframeLength, this.allowedTiers = t.allowedTiers, this.defaultResponseGranularity = t.defaultResponseGranularity, this.dataGranularity = t.dataGranularity, this.isRelative = t.isRelative, this._startCustom = t.startCustom, this._endCustom = t.endCustom, this._allowedGranularitiesOverride = t.allowedGranularitiesOverride, this.fineGrainedDefaultGranularity = t.fineGrainedDefaultGranularity;
|
|
@@ -1353,87 +1385,87 @@ class D {
|
|
|
1353
1385
|
tzAdjustedDate(t) {
|
|
1354
1386
|
if (!t)
|
|
1355
1387
|
return /* @__PURE__ */ new Date();
|
|
1356
|
-
const n =
|
|
1357
|
-
return
|
|
1388
|
+
const n = ei(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
1389
|
+
return Xa(n, t);
|
|
1358
1390
|
}
|
|
1359
1391
|
}
|
|
1360
|
-
class
|
|
1392
|
+
class ri extends D {
|
|
1361
1393
|
rawStart(t) {
|
|
1362
1394
|
let n = Ke(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
1363
|
-
return t && (n =
|
|
1395
|
+
return t && (n = C(n, t)), n;
|
|
1364
1396
|
}
|
|
1365
1397
|
maximumTimeframeLength() {
|
|
1366
1398
|
return 60 * 60 * 24 * 7;
|
|
1367
1399
|
}
|
|
1368
1400
|
}
|
|
1369
|
-
class
|
|
1401
|
+
class ai extends D {
|
|
1370
1402
|
rawStart(t) {
|
|
1371
1403
|
let n = ve(this.tzAdjustedDate(t));
|
|
1372
|
-
return t && (n =
|
|
1404
|
+
return t && (n = C(n, t)), n;
|
|
1373
1405
|
}
|
|
1374
1406
|
maximumTimeframeLength() {
|
|
1375
1407
|
return 60 * 60 * 24 * 31;
|
|
1376
1408
|
}
|
|
1377
1409
|
}
|
|
1378
|
-
class
|
|
1410
|
+
class ii extends D {
|
|
1379
1411
|
rawStart(t) {
|
|
1380
1412
|
let n = we(this.tzAdjustedDate(t));
|
|
1381
|
-
return t && (n =
|
|
1413
|
+
return t && (n = C(n, t)), n;
|
|
1382
1414
|
}
|
|
1383
1415
|
maximumTimeframeLength() {
|
|
1384
1416
|
return 60 * 60 * 24 * 92;
|
|
1385
1417
|
}
|
|
1386
1418
|
}
|
|
1387
|
-
class
|
|
1419
|
+
class oi extends D {
|
|
1388
1420
|
rawStart(t) {
|
|
1389
1421
|
let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
|
|
1390
|
-
return t && (n =
|
|
1422
|
+
return t && (n = C(n, t)), n;
|
|
1391
1423
|
}
|
|
1392
1424
|
maximumTimeframeLength() {
|
|
1393
1425
|
return 60 * 60 * 24 * 366;
|
|
1394
1426
|
}
|
|
1395
1427
|
}
|
|
1396
|
-
class
|
|
1428
|
+
class si extends D {
|
|
1397
1429
|
rawEnd(t) {
|
|
1398
1430
|
let n = Ke(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
1399
|
-
return t && (n =
|
|
1431
|
+
return t && (n = C(n, t)), n;
|
|
1400
1432
|
}
|
|
1401
1433
|
rawStart(t) {
|
|
1402
1434
|
const n = this.tzAdjustedDate(t);
|
|
1403
1435
|
let a = Ke(n.setDate(n.getDate() - 7), {
|
|
1404
1436
|
weekStartsOn: 1
|
|
1405
1437
|
});
|
|
1406
|
-
return t && (a =
|
|
1438
|
+
return t && (a = C(a, t)), a;
|
|
1407
1439
|
}
|
|
1408
1440
|
}
|
|
1409
|
-
class
|
|
1441
|
+
class ui extends D {
|
|
1410
1442
|
rawEnd(t) {
|
|
1411
1443
|
let n = we(this.tzAdjustedDate(t));
|
|
1412
|
-
return t && (n =
|
|
1444
|
+
return t && (n = C(n, t)), n;
|
|
1413
1445
|
}
|
|
1414
1446
|
rawStart(t) {
|
|
1415
|
-
let n = we(
|
|
1416
|
-
return t && (n =
|
|
1447
|
+
let n = we(bn(this.tzAdjustedDate(t)));
|
|
1448
|
+
return t && (n = C(n, t)), n;
|
|
1417
1449
|
}
|
|
1418
1450
|
}
|
|
1419
|
-
class
|
|
1451
|
+
class li extends D {
|
|
1420
1452
|
rawEnd(t) {
|
|
1421
1453
|
let n = ve(this.tzAdjustedDate(t));
|
|
1422
|
-
return t && (n =
|
|
1454
|
+
return t && (n = C(n, t)), n;
|
|
1423
1455
|
}
|
|
1424
1456
|
rawStart(t) {
|
|
1425
1457
|
let n = ve(On(this.tzAdjustedDate(t)));
|
|
1426
|
-
return t && (n =
|
|
1458
|
+
return t && (n = C(n, t)), n;
|
|
1427
1459
|
}
|
|
1428
1460
|
}
|
|
1429
|
-
class
|
|
1461
|
+
class ci extends D {
|
|
1430
1462
|
rawEnd(t) {
|
|
1431
1463
|
let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
|
|
1432
|
-
return t && (n =
|
|
1464
|
+
return t && (n = C(n, t)), n;
|
|
1433
1465
|
}
|
|
1434
1466
|
rawStart(t) {
|
|
1435
1467
|
let n = new Date(this.tzAdjustedDate(t).getFullYear() - 1, 0, 1);
|
|
1436
|
-
return t && (n =
|
|
1468
|
+
return t && (n = C(n, t)), n;
|
|
1437
1469
|
}
|
|
1438
1470
|
}
|
|
1439
1471
|
p.FIFTEEN_MIN, new D({
|
|
@@ -1546,13 +1578,13 @@ p.FIFTEEN_MIN, new D({
|
|
|
1546
1578
|
fineGrainedDefaultGranularity: "daily",
|
|
1547
1579
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
1548
1580
|
allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
|
|
1549
|
-
}), p.CURRENT_WEEK, new
|
|
1581
|
+
}), p.CURRENT_WEEK, new ri({
|
|
1550
1582
|
key: p.CURRENT_WEEK,
|
|
1551
1583
|
display: "This week",
|
|
1552
1584
|
timeframeText: "Week",
|
|
1553
1585
|
timeframeLength: () => {
|
|
1554
1586
|
const e = Ke(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
|
|
1555
|
-
return (Ve(
|
|
1587
|
+
return (ze(Ve(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
1556
1588
|
},
|
|
1557
1589
|
defaultResponseGranularity: "daily",
|
|
1558
1590
|
dataGranularity: "daily",
|
|
@@ -1560,43 +1592,43 @@ p.FIFTEEN_MIN, new D({
|
|
|
1560
1592
|
fineGrainedDefaultGranularity: "twoHourly",
|
|
1561
1593
|
allowedTiers: ["plus", "enterprise"],
|
|
1562
1594
|
allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
|
|
1563
|
-
}), p.CURRENT_MONTH, new
|
|
1595
|
+
}), p.CURRENT_MONTH, new ai({
|
|
1564
1596
|
key: p.CURRENT_MONTH,
|
|
1565
1597
|
display: "This month",
|
|
1566
1598
|
timeframeText: "Month",
|
|
1567
1599
|
timeframeLength: () => {
|
|
1568
1600
|
const e = ve(/* @__PURE__ */ new Date());
|
|
1569
|
-
return (Ve(
|
|
1601
|
+
return (ze(Ve(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
1570
1602
|
},
|
|
1571
1603
|
defaultResponseGranularity: "daily",
|
|
1572
1604
|
dataGranularity: "daily",
|
|
1573
1605
|
isRelative: !1,
|
|
1574
1606
|
allowedTiers: ["plus", "enterprise"]
|
|
1575
|
-
}), p.CURRENT_QUARTER, new
|
|
1607
|
+
}), p.CURRENT_QUARTER, new ii({
|
|
1576
1608
|
key: p.CURRENT_QUARTER,
|
|
1577
1609
|
display: "This quarter",
|
|
1578
1610
|
timeframeText: "Quarter",
|
|
1579
1611
|
timeframeLength: () => {
|
|
1580
1612
|
const e = we(/* @__PURE__ */ new Date());
|
|
1581
|
-
return (Ve(
|
|
1613
|
+
return (ze(Ve(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
1582
1614
|
},
|
|
1583
1615
|
defaultResponseGranularity: "daily",
|
|
1584
1616
|
dataGranularity: "daily",
|
|
1585
1617
|
isRelative: !1,
|
|
1586
1618
|
allowedTiers: ["plus", "enterprise"]
|
|
1587
|
-
}), p.CURRENT_YEAR, new
|
|
1619
|
+
}), p.CURRENT_YEAR, new oi({
|
|
1588
1620
|
key: p.CURRENT_YEAR,
|
|
1589
1621
|
display: "This year",
|
|
1590
1622
|
timeframeText: "Year",
|
|
1591
1623
|
timeframeLength: () => {
|
|
1592
1624
|
const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1);
|
|
1593
|
-
return (Ve(
|
|
1625
|
+
return (ze(Ve(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
1594
1626
|
},
|
|
1595
1627
|
defaultResponseGranularity: "daily",
|
|
1596
1628
|
dataGranularity: "daily",
|
|
1597
1629
|
isRelative: !1,
|
|
1598
1630
|
allowedTiers: ["plus", "enterprise"]
|
|
1599
|
-
}), p.PREVIOUS_WEEK, new
|
|
1631
|
+
}), p.PREVIOUS_WEEK, new si({
|
|
1600
1632
|
key: p.PREVIOUS_WEEK,
|
|
1601
1633
|
display: "Previous week",
|
|
1602
1634
|
timeframeText: "Week",
|
|
@@ -1607,47 +1639,47 @@ p.FIFTEEN_MIN, new D({
|
|
|
1607
1639
|
fineGrainedDefaultGranularity: "twoHourly",
|
|
1608
1640
|
allowedTiers: ["plus", "enterprise"],
|
|
1609
1641
|
allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
|
|
1610
|
-
}), p.PREVIOUS_MONTH, new
|
|
1642
|
+
}), p.PREVIOUS_MONTH, new li({
|
|
1611
1643
|
key: p.PREVIOUS_MONTH,
|
|
1612
1644
|
display: "Previous month",
|
|
1613
1645
|
timeframeText: "Month",
|
|
1614
1646
|
timeframeLength: () => {
|
|
1615
1647
|
let e = 0;
|
|
1616
1648
|
const t = ve(/* @__PURE__ */ new Date()), n = ve(On(/* @__PURE__ */ new Date()));
|
|
1617
|
-
return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e =
|
|
1649
|
+
return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = hn(t, n)), 60 * 60 * 24 * Ga((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + on(e);
|
|
1618
1650
|
},
|
|
1619
1651
|
defaultResponseGranularity: "daily",
|
|
1620
1652
|
dataGranularity: "daily",
|
|
1621
1653
|
isRelative: !1,
|
|
1622
1654
|
allowedTiers: ["plus", "enterprise"]
|
|
1623
|
-
}), p.PREVIOUS_QUARTER, new
|
|
1655
|
+
}), p.PREVIOUS_QUARTER, new ui({
|
|
1624
1656
|
key: p.PREVIOUS_QUARTER,
|
|
1625
1657
|
display: "Previous quarter",
|
|
1626
1658
|
timeframeText: "Quarter",
|
|
1627
1659
|
timeframeLength: () => {
|
|
1628
|
-
const e = we(/* @__PURE__ */ new Date()), t = we(
|
|
1660
|
+
const e = we(/* @__PURE__ */ new Date()), t = we(bn(/* @__PURE__ */ new Date()));
|
|
1629
1661
|
return (e.getTime() - t.getTime()) / 1e3;
|
|
1630
1662
|
},
|
|
1631
1663
|
defaultResponseGranularity: "daily",
|
|
1632
1664
|
dataGranularity: "daily",
|
|
1633
1665
|
isRelative: !1,
|
|
1634
1666
|
allowedTiers: ["plus", "enterprise"]
|
|
1635
|
-
}), p.PREVIOUS_YEAR, new
|
|
1667
|
+
}), p.PREVIOUS_YEAR, new ci({
|
|
1636
1668
|
key: p.PREVIOUS_YEAR,
|
|
1637
1669
|
display: "Previous year",
|
|
1638
1670
|
timeframeText: "Year",
|
|
1639
1671
|
timeframeLength: () => {
|
|
1640
1672
|
const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1), t = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1);
|
|
1641
1673
|
let n = 0;
|
|
1642
|
-
return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n =
|
|
1674
|
+
return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n = hn(e, t)), 60 * 60 * 24 * (365 + (t.getFullYear() % 4 === 0 ? 1 : 0)) + on(n);
|
|
1643
1675
|
},
|
|
1644
1676
|
defaultResponseGranularity: "daily",
|
|
1645
1677
|
dataGranularity: "daily",
|
|
1646
1678
|
isRelative: !1,
|
|
1647
1679
|
allowedTiers: ["plus", "enterprise"]
|
|
1648
1680
|
});
|
|
1649
|
-
function
|
|
1650
|
-
return
|
|
1681
|
+
function hn(e, t) {
|
|
1682
|
+
return La(e.getTimezoneOffset() - t.getTimezoneOffset());
|
|
1651
1683
|
}
|
|
1652
1684
|
p.FIFTEEN_MIN, p.ONE_HOUR, p.SIX_HOUR, p.TWELVE_HOUR, p.ONE_DAY, p.SEVEN_DAY, p.FIFTEEN_MIN, p.ONE_HOUR, p.SIX_HOUR, p.TWELVE_HOUR, p.ONE_DAY, p.SEVEN_DAY, p.THIRTY_DAY, p.NINETY_DAY, p.ONE_HUNDRED_EIGHTY_DAY, p.ONE_YEAR, p.CURRENT_WEEK, p.CURRENT_MONTH, p.CURRENT_QUARTER, p.CURRENT_YEAR, p.PREVIOUS_WEEK, p.PREVIOUS_MONTH, p.PREVIOUS_QUARTER, p.PREVIOUS_YEAR;
|
|
1653
1685
|
new Map(Rt.map((e) => [e.code, { code: e.code, name: e.name }]));
|
|
@@ -1657,44 +1689,44 @@ var In = { exports: {} };
|
|
|
1657
1689
|
function t(d, c) {
|
|
1658
1690
|
if (c.separator === !1 || d < 1e3)
|
|
1659
1691
|
return d.toString();
|
|
1660
|
-
var
|
|
1692
|
+
var h = typeof c.separator == "string" ? c.separator : ",", w = [], g = Math.round(d).toString().split("");
|
|
1661
1693
|
return g.reverse().forEach(function(T, M) {
|
|
1662
|
-
M && M % 3 === 0 && w.push(
|
|
1694
|
+
M && M % 3 === 0 && w.push(h), w.push(T);
|
|
1663
1695
|
}), w.reverse().join("");
|
|
1664
1696
|
}
|
|
1665
|
-
function n(d, c,
|
|
1666
|
-
var w = d / c, g =
|
|
1667
|
-
return
|
|
1697
|
+
function n(d, c, h) {
|
|
1698
|
+
var w = d / c, g = h.round ? "round" : "floor";
|
|
1699
|
+
return h.decimal === !1 ? (d = Math[g](w), d.toString()) : (h.precision ? d = w : d = w < 10 ? Math[g](w * 10) / 10 : Math[g](w), d = d.toString(), typeof h.decimal == "string" && (d = d.replace(".", h.decimal)), d);
|
|
1668
1700
|
}
|
|
1669
|
-
var a = 1e3, i = 1e4, o = 1e6,
|
|
1701
|
+
var a = 1e3, i = 1e4, o = 1e6, u = 1e9, m = 1e12;
|
|
1670
1702
|
function f(d, c) {
|
|
1671
|
-
var
|
|
1703
|
+
var h;
|
|
1672
1704
|
c = c || {};
|
|
1673
1705
|
var w = d < 0;
|
|
1674
1706
|
w && (d = Math.abs(d)), c.precision && (d = parseFloat(d.toPrecision(c.precision)));
|
|
1675
1707
|
var g = c.min10k ? i : a;
|
|
1676
|
-
return d < g || c.precision && c.precision > Math.log10(d) ?
|
|
1708
|
+
return d < g || c.precision && c.precision > Math.log10(d) ? h = t(n(d, 1, c), c) : d < o ? h = n(d, a, c) + "k" : d < u ? h = n(d, o, c) + "m" : d < m ? h = t(n(d, u, c), c) + "b" : h = t(n(d, m, c), c) + "t", w && (h = "-" + h), c.capital && (h = h.toUpperCase()), c.prefix && (h = c.prefix + h), c.suffix && (h = h + c.suffix), h;
|
|
1677
1709
|
}
|
|
1678
1710
|
f.addCommas = t, e.exports = f;
|
|
1679
1711
|
})();
|
|
1680
1712
|
})(In);
|
|
1681
|
-
var
|
|
1682
|
-
const vt = /* @__PURE__ */
|
|
1713
|
+
var di = In.exports;
|
|
1714
|
+
const vt = /* @__PURE__ */ ni(di);
|
|
1683
1715
|
var _n;
|
|
1684
|
-
const
|
|
1685
|
-
function
|
|
1716
|
+
const mi = typeof document < "u" && ((_n = document.documentElement) == null ? void 0 : _n.lang) || "en-US", xt = new Intl.NumberFormat(mi);
|
|
1717
|
+
function fi({
|
|
1686
1718
|
i18n: e
|
|
1687
1719
|
}) {
|
|
1688
1720
|
const t = (a, i) => {
|
|
1689
1721
|
if (isNaN(a))
|
|
1690
1722
|
return "0 B";
|
|
1691
|
-
const o = i ? Math.pow(2, 50) : 1e15,
|
|
1723
|
+
const o = i ? Math.pow(2, 50) : 1e15, u = i ? Math.pow(2, 40) : 1e12, m = i ? Math.pow(2, 30) : 1e9, f = i ? Math.pow(2, 20) : 1e6, d = i ? Math.pow(2, 10) : 1e3;
|
|
1692
1724
|
let c;
|
|
1693
1725
|
return a >= o ? c = e.formatNumber(
|
|
1694
1726
|
Number.parseFloat((a / o).toPrecision(3)),
|
|
1695
1727
|
{ style: "unit", unit: "petabyte", unitDisplay: "narrow" }
|
|
1696
|
-
) : a >=
|
|
1697
|
-
Number.parseFloat((a /
|
|
1728
|
+
) : a >= u ? c = e.formatNumber(
|
|
1729
|
+
Number.parseFloat((a / u).toPrecision(3)),
|
|
1698
1730
|
{ style: "unit", unit: "terabyte", unitDisplay: "narrow" }
|
|
1699
1731
|
) : a >= m ? c = e.formatNumber(
|
|
1700
1732
|
Number.parseFloat((a / m).toPrecision(3)),
|
|
@@ -1712,7 +1744,7 @@ function di({
|
|
|
1712
1744
|
}, n = (a, i = "USD") => isNaN(a) ? i === "USD" ? "$0.00" : `${a}` : a >= 0.01 || i !== "USD" ? e.formatNumber(a, { style: "currency", currency: i }) : a < 1e-4 ? "< $0.0001" : `$${Number.parseFloat(a.toPrecision(4))}`;
|
|
1713
1745
|
return { formatUnit: (a, i, {
|
|
1714
1746
|
isBytes1024: o = !1,
|
|
1715
|
-
currency:
|
|
1747
|
+
currency: u = "USD",
|
|
1716
1748
|
approximate: m = !1,
|
|
1717
1749
|
translateUnit: f = (d) => d
|
|
1718
1750
|
} = {}) => {
|
|
@@ -1721,7 +1753,7 @@ function di({
|
|
|
1721
1753
|
case "bytes":
|
|
1722
1754
|
return t(a, o);
|
|
1723
1755
|
case "usd":
|
|
1724
|
-
return n(a,
|
|
1756
|
+
return n(a, u);
|
|
1725
1757
|
case "ms":
|
|
1726
1758
|
case "count/minute":
|
|
1727
1759
|
case "token count":
|
|
@@ -1730,7 +1762,7 @@ function di({
|
|
|
1730
1762
|
return isNaN(a) ? `${a}` : m ? `${vt(a, { capital: !0 })} ${d}` : a >= 0.01 ? `${xt.format(Number.parseFloat(a.toFixed(2)))} ${d}` : `${Number.parseFloat(a.toPrecision(4))} ${d}`;
|
|
1731
1763
|
}
|
|
1732
1764
|
}, formatBytes: t, formatCost: n, formatRange: (a, i, o, {
|
|
1733
|
-
isBytes1024:
|
|
1765
|
+
isBytes1024: u = !1,
|
|
1734
1766
|
currency: m = "USD",
|
|
1735
1767
|
approximate: f = !1,
|
|
1736
1768
|
translateUnit: d = (c) => c
|
|
@@ -1738,7 +1770,7 @@ function di({
|
|
|
1738
1770
|
const c = d(o, i);
|
|
1739
1771
|
switch (o) {
|
|
1740
1772
|
case "bytes":
|
|
1741
|
-
return `${t(a,
|
|
1773
|
+
return `${t(a, u)} - ${t(i, u)}`;
|
|
1742
1774
|
case "usd":
|
|
1743
1775
|
return `${n(a, m)} - ${n(i, m)}`;
|
|
1744
1776
|
case "ms":
|
|
@@ -1751,17 +1783,17 @@ function di({
|
|
|
1751
1783
|
if (f)
|
|
1752
1784
|
return `${vt(a, { capital: !0 })} - ${vt(i, { capital: !0 })} ${c}`;
|
|
1753
1785
|
}
|
|
1754
|
-
const
|
|
1755
|
-
return `${
|
|
1786
|
+
const h = a >= 0.01 ? `${xt.format(Number.parseFloat(a.toFixed(2)))}` : `${Number.parseFloat(a.toPrecision(4))}`, w = i >= 0.01 ? `${xt.format(Number.parseFloat(i.toFixed(2)))}` : `${Number.parseFloat(i.toPrecision(4))}`;
|
|
1787
|
+
return `${h} - ${w} ${c}`;
|
|
1756
1788
|
} };
|
|
1757
1789
|
}
|
|
1758
|
-
const
|
|
1790
|
+
const Ee = "#e0e4ea", pi = "#828a9e", yi = "32px", gn = 5, Ft = [
|
|
1759
1791
|
"#00819d",
|
|
1760
1792
|
"#00abd2",
|
|
1761
1793
|
"#00c8f4",
|
|
1762
1794
|
"#67e3ff",
|
|
1763
1795
|
"#b3f1ff"
|
|
1764
|
-
],
|
|
1796
|
+
], hi = (e, t) => {
|
|
1765
1797
|
const n = e.length;
|
|
1766
1798
|
if (!n)
|
|
1767
1799
|
return NaN;
|
|
@@ -1773,7 +1805,7 @@ const ke = "#e0e4ea", mi = "#828a9e", fi = "32px", gn = 5, Ft = [
|
|
|
1773
1805
|
const n = e.filter((m) => m > 0).map(Math.log).sort((m, f) => m - f), a = Math.min(...n), o = (Math.max(...n) - a) / t;
|
|
1774
1806
|
return Array.from({ length: t }, (m, f) => a + f * o).map((m) => Math.exp(m)).reverse();
|
|
1775
1807
|
};
|
|
1776
|
-
function
|
|
1808
|
+
function _i({
|
|
1777
1809
|
countryMetrics: e,
|
|
1778
1810
|
metric: t,
|
|
1779
1811
|
unit: n
|
|
@@ -1783,19 +1815,19 @@ function hi({
|
|
|
1783
1815
|
for (const T of Object.keys(g))
|
|
1784
1816
|
Rt.find((M) => M.code === T) || delete g[T];
|
|
1785
1817
|
return g;
|
|
1786
|
-
}),
|
|
1818
|
+
}), u = A(() => Object.values(o.value)), m = A(() => Object.keys(o.value).length), f = A(() => m.value < gn - 1 ? m.value : gn), d = A(() => {
|
|
1787
1819
|
var g;
|
|
1788
1820
|
return !((g = t.value) != null && g.includes("latency"));
|
|
1789
1821
|
}), c = A(() => {
|
|
1790
1822
|
const g = [];
|
|
1791
|
-
if (
|
|
1792
|
-
const T = [...
|
|
1823
|
+
if (u.value.length > 10) {
|
|
1824
|
+
const T = [...u.value].sort((N, Me) => N - Me), M = hi(T, 0.75), H = u.value.filter((N) => N >= M), B = u.value.filter((N) => N < M), I = Tt(H, 3), ie = Tt(B, 2);
|
|
1793
1825
|
return g.push(...I, ...ie), g;
|
|
1794
1826
|
}
|
|
1795
|
-
return Tt(
|
|
1796
|
-
}),
|
|
1797
|
-
color: w(
|
|
1798
|
-
range: a(
|
|
1827
|
+
return Tt(u.value, f.value);
|
|
1828
|
+
}), h = A(() => u.value.length === 1 ? [{
|
|
1829
|
+
color: w(u.value[0]),
|
|
1830
|
+
range: a(u.value[0], {
|
|
1799
1831
|
approximate: d.value,
|
|
1800
1832
|
showUnit: !n.value.includes("count")
|
|
1801
1833
|
}).trim()
|
|
@@ -1817,42 +1849,42 @@ function hi({
|
|
|
1817
1849
|
};
|
|
1818
1850
|
})), w = (g) => {
|
|
1819
1851
|
if (g === 0)
|
|
1820
|
-
return
|
|
1852
|
+
return Ee;
|
|
1821
1853
|
const T = c.value.findIndex((M) => g >= M);
|
|
1822
|
-
return T === -1 ? Ft[Ft.length - 1] : Ft[T] ??
|
|
1854
|
+
return T === -1 ? Ft[Ft.length - 1] : Ft[T] ?? Ee;
|
|
1823
1855
|
};
|
|
1824
1856
|
return {
|
|
1825
1857
|
getColor: w,
|
|
1826
|
-
legendData:
|
|
1858
|
+
legendData: h,
|
|
1827
1859
|
scale: c
|
|
1828
1860
|
};
|
|
1829
1861
|
}
|
|
1830
|
-
function
|
|
1862
|
+
function gi({
|
|
1831
1863
|
unit: e
|
|
1832
1864
|
}) {
|
|
1833
|
-
const { i18n: t } = Oe.useI18n(), { formatUnit: n, formatRange: a } =
|
|
1865
|
+
const { i18n: t } = Oe.useI18n(), { formatUnit: n, formatRange: a } = fi({ i18n: t });
|
|
1834
1866
|
return {
|
|
1835
|
-
formatMetric: (
|
|
1867
|
+
formatMetric: (u, {
|
|
1836
1868
|
showUnit: m = !0,
|
|
1837
1869
|
approximate: f = !1
|
|
1838
|
-
} = {}) => n(
|
|
1870
|
+
} = {}) => n(u, e.value, {
|
|
1839
1871
|
approximate: f,
|
|
1840
|
-
translateUnit: (d) => m ? t.t(`metricUnits.${d}`, { plural:
|
|
1872
|
+
translateUnit: (d) => m ? t.t(`metricUnits.${d}`, { plural: u > 1 ? "s" : "" }) : ""
|
|
1841
1873
|
}),
|
|
1842
|
-
formatMetricRange: (
|
|
1874
|
+
formatMetricRange: (u, m, {
|
|
1843
1875
|
showUnit: f = !0,
|
|
1844
1876
|
approximate: d = !1
|
|
1845
|
-
} = {}) => a(
|
|
1877
|
+
} = {}) => a(u, m, e.value, {
|
|
1846
1878
|
approximate: d,
|
|
1847
1879
|
translateUnit: (c) => f ? t.t(`metricUnits.${c}`, { plural: m > 1 ? "s" : "" }) : ""
|
|
1848
1880
|
})
|
|
1849
1881
|
};
|
|
1850
1882
|
}
|
|
1851
1883
|
const Oe = {
|
|
1852
|
-
useI18n:
|
|
1853
|
-
useLegendScale:
|
|
1854
|
-
useMetricFormat:
|
|
1855
|
-
},
|
|
1884
|
+
useI18n: ha,
|
|
1885
|
+
useLegendScale: _i,
|
|
1886
|
+
useMetricFormat: gi
|
|
1887
|
+
}, wi = "FeatureCollection", vi = [
|
|
1856
1888
|
{
|
|
1857
1889
|
type: "Feature",
|
|
1858
1890
|
properties: {
|
|
@@ -4284,14 +4316,14 @@ const Oe = {
|
|
|
4284
4316
|
]
|
|
4285
4317
|
}
|
|
4286
4318
|
}
|
|
4287
|
-
],
|
|
4288
|
-
type:
|
|
4289
|
-
features:
|
|
4319
|
+
], xi = {
|
|
4320
|
+
type: wi,
|
|
4321
|
+
features: vi
|
|
4290
4322
|
};
|
|
4291
|
-
function
|
|
4323
|
+
function Fi(e) {
|
|
4292
4324
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4293
4325
|
}
|
|
4294
|
-
var
|
|
4326
|
+
var Ti = Si, Ze, Fe, P, qe, Xe, Mi = [
|
|
4295
4327
|
"Point",
|
|
4296
4328
|
"MultiPoint",
|
|
4297
4329
|
"LineString",
|
|
@@ -4300,36 +4332,36 @@ var xi = Ti, Ze, Fe, C, qe, Xe, Fi = [
|
|
|
4300
4332
|
"MultiPolygon",
|
|
4301
4333
|
"GeometryCollection"
|
|
4302
4334
|
];
|
|
4303
|
-
function
|
|
4304
|
-
qe = 2, Xe = Math.pow(10, 6),
|
|
4305
|
-
var t = e.readFields(
|
|
4335
|
+
function Si(e) {
|
|
4336
|
+
qe = 2, Xe = Math.pow(10, 6), P = null, Ze = [], Fe = [];
|
|
4337
|
+
var t = e.readFields(Di, {});
|
|
4306
4338
|
return Ze = null, t;
|
|
4307
4339
|
}
|
|
4308
|
-
function
|
|
4309
|
-
e === 1 ? Ze.push(n.readString()) : e === 2 ? qe = n.readVarint() : e === 3 ? Xe = Math.pow(10, n.readVarint()) : e === 4 ?
|
|
4340
|
+
function Di(e, t, n) {
|
|
4341
|
+
e === 1 ? Ze.push(n.readString()) : e === 2 ? qe = n.readVarint() : e === 3 ? Xe = Math.pow(10, n.readVarint()) : e === 4 ? Ni(n, t) : e === 5 ? Un(n, t) : e === 6 && Et(n, t);
|
|
4310
4342
|
}
|
|
4311
|
-
function
|
|
4312
|
-
return t.type = "FeatureCollection", t.features = [], e.readMessage(
|
|
4343
|
+
function Ni(e, t) {
|
|
4344
|
+
return t.type = "FeatureCollection", t.features = [], e.readMessage(Ri, t);
|
|
4313
4345
|
}
|
|
4314
4346
|
function Un(e, t) {
|
|
4315
4347
|
t.type = "Feature";
|
|
4316
|
-
var n = e.readMessage(
|
|
4348
|
+
var n = e.readMessage(ki, t);
|
|
4317
4349
|
return "geometry" in n || (n.geometry = null), n;
|
|
4318
4350
|
}
|
|
4319
|
-
function
|
|
4320
|
-
return t.type = "Point", e.readMessage(
|
|
4351
|
+
function Et(e, t) {
|
|
4352
|
+
return t.type = "Point", e.readMessage(Ei, t);
|
|
4321
4353
|
}
|
|
4322
|
-
function
|
|
4354
|
+
function Ri(e, t, n) {
|
|
4323
4355
|
e === 1 ? t.features.push(Un(n, {})) : e === 13 ? Fe.push(Ot(n)) : e === 15 && Qe(n, t);
|
|
4324
4356
|
}
|
|
4325
|
-
function
|
|
4326
|
-
e === 1 ? t.geometry =
|
|
4327
|
-
}
|
|
4328
|
-
function Ri(e, t, n) {
|
|
4329
|
-
e === 1 ? t.type = Fi[n.readVarint()] : e === 2 ? C = n.readPackedVarint() : e === 3 ? Ei(t, n, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(kt(n, {}))) : e === 13 ? Fe.push(Ot(n)) : e === 15 && Qe(n, t);
|
|
4357
|
+
function ki(e, t, n) {
|
|
4358
|
+
e === 1 ? t.geometry = Et(n, {}) : e === 11 ? t.id = n.readString() : e === 12 ? t.id = n.readSVarint() : e === 13 ? Fe.push(Ot(n)) : e === 14 ? t.properties = Qe(n, {}) : e === 15 && Qe(n, t);
|
|
4330
4359
|
}
|
|
4331
4360
|
function Ei(e, t, n) {
|
|
4332
|
-
|
|
4361
|
+
e === 1 ? t.type = Mi[n.readVarint()] : e === 2 ? P = n.readPackedVarint() : e === 3 ? Oi(t, n, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(Et(n, {}))) : e === 13 ? Fe.push(Ot(n)) : e === 15 && Qe(n, t);
|
|
4362
|
+
}
|
|
4363
|
+
function Oi(e, t, n) {
|
|
4364
|
+
n === "Point" ? e.coordinates = bi(t) : n === "MultiPoint" || n === "LineString" ? e.coordinates = wn(t) : n === "MultiLineString" ? e.coordinates = vn(t) : n === "Polygon" ? e.coordinates = vn(t, !0) : n === "MultiPolygon" && (e.coordinates = Gi(t));
|
|
4333
4365
|
}
|
|
4334
4366
|
function Ot(e) {
|
|
4335
4367
|
for (var t = e.readVarint() + e.pos, n = null; e.pos < t; ) {
|
|
@@ -4342,64 +4374,64 @@ function Qe(e, t) {
|
|
|
4342
4374
|
for (var n = e.readVarint() + e.pos; e.pos < n; ) t[Ze[e.readVarint()]] = Fe[e.readVarint()];
|
|
4343
4375
|
return Fe = [], t;
|
|
4344
4376
|
}
|
|
4345
|
-
function
|
|
4377
|
+
function bi(e) {
|
|
4346
4378
|
for (var t = e.readVarint() + e.pos, n = []; e.pos < t; ) n.push(e.readSVarint() / Xe);
|
|
4347
4379
|
return n;
|
|
4348
4380
|
}
|
|
4349
|
-
function
|
|
4350
|
-
var i = 0, o = [],
|
|
4381
|
+
function Ge(e, t, n, a) {
|
|
4382
|
+
var i = 0, o = [], u, m, f = [];
|
|
4351
4383
|
for (m = 0; m < qe; m++) f[m] = 0;
|
|
4352
4384
|
for (; n ? i < n : e.pos < t; ) {
|
|
4353
|
-
for (
|
|
4354
|
-
f[m] += e.readSVarint(),
|
|
4355
|
-
o.push(
|
|
4385
|
+
for (u = [], m = 0; m < qe; m++)
|
|
4386
|
+
f[m] += e.readSVarint(), u[m] = f[m] / Xe;
|
|
4387
|
+
o.push(u), i++;
|
|
4356
4388
|
}
|
|
4357
4389
|
return a && o.push(o[0]), o;
|
|
4358
4390
|
}
|
|
4359
4391
|
function wn(e) {
|
|
4360
|
-
return
|
|
4392
|
+
return Ge(e, e.readVarint() + e.pos);
|
|
4361
4393
|
}
|
|
4362
4394
|
function vn(e, t) {
|
|
4363
4395
|
var n = e.readVarint() + e.pos;
|
|
4364
|
-
if (!
|
|
4365
|
-
for (var a = [], i = 0; i <
|
|
4366
|
-
return
|
|
4396
|
+
if (!P) return [Ge(e, n, null, t)];
|
|
4397
|
+
for (var a = [], i = 0; i < P.length; i++) a.push(Ge(e, n, P[i], t));
|
|
4398
|
+
return P = null, a;
|
|
4367
4399
|
}
|
|
4368
|
-
function
|
|
4400
|
+
function Gi(e) {
|
|
4369
4401
|
var t = e.readVarint() + e.pos;
|
|
4370
|
-
if (!
|
|
4371
|
-
for (var n = [], a = 1, i = 0; i <
|
|
4372
|
-
for (var o = [],
|
|
4373
|
-
a +=
|
|
4402
|
+
if (!P) return [[Ge(e, t, null, !0)]];
|
|
4403
|
+
for (var n = [], a = 1, i = 0; i < P[0]; i++) {
|
|
4404
|
+
for (var o = [], u = 0; u < P[a]; u++) o.push(Ge(e, t, P[a + 1 + u], !0));
|
|
4405
|
+
a += P[a] + 1, n.push(o);
|
|
4374
4406
|
}
|
|
4375
|
-
return
|
|
4407
|
+
return P = null, n;
|
|
4376
4408
|
}
|
|
4377
|
-
var
|
|
4409
|
+
var Li = Ti, bt = {};
|
|
4378
4410
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4379
|
-
|
|
4380
|
-
var o,
|
|
4381
|
-
for (
|
|
4411
|
+
bt.read = function(e, t, n, a, i) {
|
|
4412
|
+
var o, u, m = i * 8 - a - 1, f = (1 << m) - 1, d = f >> 1, c = -7, h = n ? i - 1 : 0, w = n ? -1 : 1, g = e[t + h];
|
|
4413
|
+
for (h += w, o = g & (1 << -c) - 1, g >>= -c, c += m; c > 0; o = o * 256 + e[t + h], h += w, c -= 8)
|
|
4382
4414
|
;
|
|
4383
|
-
for (
|
|
4415
|
+
for (u = o & (1 << -c) - 1, o >>= -c, c += a; c > 0; u = u * 256 + e[t + h], h += w, c -= 8)
|
|
4384
4416
|
;
|
|
4385
4417
|
if (o === 0)
|
|
4386
4418
|
o = 1 - d;
|
|
4387
4419
|
else {
|
|
4388
4420
|
if (o === f)
|
|
4389
|
-
return
|
|
4390
|
-
|
|
4421
|
+
return u ? NaN : (g ? -1 : 1) * (1 / 0);
|
|
4422
|
+
u = u + Math.pow(2, a), o = o - d;
|
|
4391
4423
|
}
|
|
4392
|
-
return (g ? -1 : 1) *
|
|
4424
|
+
return (g ? -1 : 1) * u * Math.pow(2, o - a);
|
|
4393
4425
|
};
|
|
4394
|
-
|
|
4395
|
-
var
|
|
4396
|
-
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (m = isNaN(t) ? 1 : 0,
|
|
4426
|
+
bt.write = function(e, t, n, a, i, o) {
|
|
4427
|
+
var u, m, f, d = o * 8 - i - 1, c = (1 << d) - 1, h = c >> 1, w = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = a ? 0 : o - 1, T = a ? 1 : -1, M = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
|
|
4428
|
+
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (m = isNaN(t) ? 1 : 0, u = c) : (u = Math.floor(Math.log(t) / Math.LN2), t * (f = Math.pow(2, -u)) < 1 && (u--, f *= 2), u + h >= 1 ? t += w / f : t += w * Math.pow(2, 1 - h), t * f >= 2 && (u++, f /= 2), u + h >= c ? (m = 0, u = c) : u + h >= 1 ? (m = (t * f - 1) * Math.pow(2, i), u = u + h) : (m = t * Math.pow(2, h - 1) * Math.pow(2, i), u = 0)); i >= 8; e[n + g] = m & 255, g += T, m /= 256, i -= 8)
|
|
4397
4429
|
;
|
|
4398
|
-
for (
|
|
4430
|
+
for (u = u << i | m, d += i; d > 0; e[n + g] = u & 255, g += T, u /= 256, d -= 8)
|
|
4399
4431
|
;
|
|
4400
4432
|
e[n + g - T] |= M * 128;
|
|
4401
4433
|
};
|
|
4402
|
-
var
|
|
4434
|
+
var Ii = x, je = bt;
|
|
4403
4435
|
function x(e) {
|
|
4404
4436
|
this.buf = ArrayBuffer.isView && ArrayBuffer.isView(e) ? e : new Uint8Array(e || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
|
|
4405
4437
|
}
|
|
@@ -4407,7 +4439,7 @@ x.Varint = 0;
|
|
|
4407
4439
|
x.Fixed64 = 1;
|
|
4408
4440
|
x.Bytes = 2;
|
|
4409
4441
|
x.Fixed32 = 5;
|
|
4410
|
-
var Dt = 65536 * 65536, xn = 1 / Dt,
|
|
4442
|
+
var Dt = 65536 * 65536, xn = 1 / Dt, Ui = 12, An = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
|
|
4411
4443
|
x.prototype = {
|
|
4412
4444
|
destroy: function() {
|
|
4413
4445
|
this.buf = null;
|
|
@@ -4450,7 +4482,7 @@ x.prototype = {
|
|
|
4450
4482
|
},
|
|
4451
4483
|
readVarint: function(e) {
|
|
4452
4484
|
var t = this.buf, n, a;
|
|
4453
|
-
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,
|
|
4485
|
+
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, Ai(n, e, this));
|
|
4454
4486
|
},
|
|
4455
4487
|
readVarint64: function() {
|
|
4456
4488
|
return this.readVarint(!0);
|
|
@@ -4464,7 +4496,7 @@ x.prototype = {
|
|
|
4464
4496
|
},
|
|
4465
4497
|
readString: function() {
|
|
4466
4498
|
var e = this.readVarint() + this.pos, t = this.pos;
|
|
4467
|
-
return this.pos = e, e - t >=
|
|
4499
|
+
return this.pos = e, e - t >= Ui && An ? Qi(this.buf, t, e) : qi(this.buf, t, e);
|
|
4468
4500
|
},
|
|
4469
4501
|
readBytes: function() {
|
|
4470
4502
|
var e = this.readVarint() + this.pos, t = this.buf.subarray(this.pos, e);
|
|
@@ -4562,7 +4594,7 @@ x.prototype = {
|
|
|
4562
4594
|
},
|
|
4563
4595
|
writeVarint: function(e) {
|
|
4564
4596
|
if (e = +e || 0, e > 268435455 || e < 0) {
|
|
4565
|
-
|
|
4597
|
+
Pi(e, this);
|
|
4566
4598
|
return;
|
|
4567
4599
|
}
|
|
4568
4600
|
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)));
|
|
@@ -4576,7 +4608,7 @@ x.prototype = {
|
|
|
4576
4608
|
writeString: function(e) {
|
|
4577
4609
|
e = String(e), this.realloc(e.length * 4), this.pos++;
|
|
4578
4610
|
var t = this.pos;
|
|
4579
|
-
this.pos =
|
|
4611
|
+
this.pos = Ji(this.buf, e, this.pos);
|
|
4580
4612
|
var n = this.pos - t;
|
|
4581
4613
|
n >= 128 && Fn(t, n, this), this.pos = t - 1, this.writeVarint(n), this.pos += n;
|
|
4582
4614
|
},
|
|
@@ -4602,31 +4634,31 @@ x.prototype = {
|
|
|
4602
4634
|
this.writeTag(e, x.Bytes), this.writeRawMessage(t, n);
|
|
4603
4635
|
},
|
|
4604
4636
|
writePackedVarint: function(e, t) {
|
|
4605
|
-
t.length && this.writeMessage(e,
|
|
4637
|
+
t.length && this.writeMessage(e, Hi, t);
|
|
4606
4638
|
},
|
|
4607
4639
|
writePackedSVarint: function(e, t) {
|
|
4608
|
-
t.length && this.writeMessage(e,
|
|
4640
|
+
t.length && this.writeMessage(e, zi, t);
|
|
4609
4641
|
},
|
|
4610
4642
|
writePackedBoolean: function(e, t) {
|
|
4611
|
-
t.length && this.writeMessage(e,
|
|
4643
|
+
t.length && this.writeMessage(e, ji, t);
|
|
4612
4644
|
},
|
|
4613
4645
|
writePackedFloat: function(e, t) {
|
|
4614
|
-
t.length && this.writeMessage(e,
|
|
4646
|
+
t.length && this.writeMessage(e, Vi, t);
|
|
4615
4647
|
},
|
|
4616
4648
|
writePackedDouble: function(e, t) {
|
|
4617
|
-
t.length && this.writeMessage(e,
|
|
4649
|
+
t.length && this.writeMessage(e, Yi, t);
|
|
4618
4650
|
},
|
|
4619
4651
|
writePackedFixed32: function(e, t) {
|
|
4620
|
-
t.length && this.writeMessage(e,
|
|
4652
|
+
t.length && this.writeMessage(e, $i, t);
|
|
4621
4653
|
},
|
|
4622
4654
|
writePackedSFixed32: function(e, t) {
|
|
4623
|
-
t.length && this.writeMessage(e,
|
|
4655
|
+
t.length && this.writeMessage(e, Ki, t);
|
|
4624
4656
|
},
|
|
4625
4657
|
writePackedFixed64: function(e, t) {
|
|
4626
|
-
t.length && this.writeMessage(e,
|
|
4658
|
+
t.length && this.writeMessage(e, Wi, t);
|
|
4627
4659
|
},
|
|
4628
4660
|
writePackedSFixed64: function(e, t) {
|
|
4629
|
-
t.length && this.writeMessage(e,
|
|
4661
|
+
t.length && this.writeMessage(e, Zi, t);
|
|
4630
4662
|
},
|
|
4631
4663
|
writeBytesField: function(e, t) {
|
|
4632
4664
|
this.writeTag(e, x.Bytes), this.writeBytes(t);
|
|
@@ -4662,7 +4694,7 @@ x.prototype = {
|
|
|
4662
4694
|
this.writeVarintField(e, !!t);
|
|
4663
4695
|
}
|
|
4664
4696
|
};
|
|
4665
|
-
function
|
|
4697
|
+
function Ai(e, t, n) {
|
|
4666
4698
|
var a = n.buf, i, o;
|
|
4667
4699
|
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);
|
|
4668
4700
|
throw new Error("Expected varint not more than 10 bytes");
|
|
@@ -4673,16 +4705,16 @@ function J(e) {
|
|
|
4673
4705
|
function _e(e, t, n) {
|
|
4674
4706
|
return n ? t * 4294967296 + (e >>> 0) : (t >>> 0) * 4294967296 + (e >>> 0);
|
|
4675
4707
|
}
|
|
4676
|
-
function
|
|
4708
|
+
function Pi(e, t) {
|
|
4677
4709
|
var n, a;
|
|
4678
4710
|
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)
|
|
4679
4711
|
throw new Error("Given varint doesn't fit into 10 bytes");
|
|
4680
|
-
t.realloc(10),
|
|
4712
|
+
t.realloc(10), Ci(n, a, t), Bi(a, t);
|
|
4681
4713
|
}
|
|
4682
|
-
function
|
|
4714
|
+
function Ci(e, t, n) {
|
|
4683
4715
|
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;
|
|
4684
4716
|
}
|
|
4685
|
-
function
|
|
4717
|
+
function Bi(e, t) {
|
|
4686
4718
|
var n = (e & 7) << 4;
|
|
4687
4719
|
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)))));
|
|
4688
4720
|
}
|
|
@@ -4691,31 +4723,31 @@ function Fn(e, t, n) {
|
|
|
4691
4723
|
n.realloc(a);
|
|
4692
4724
|
for (var i = n.pos - 1; i >= e; i--) n.buf[i + a] = n.buf[i];
|
|
4693
4725
|
}
|
|
4694
|
-
function
|
|
4726
|
+
function Hi(e, t) {
|
|
4695
4727
|
for (var n = 0; n < e.length; n++) t.writeVarint(e[n]);
|
|
4696
4728
|
}
|
|
4697
|
-
function
|
|
4729
|
+
function zi(e, t) {
|
|
4698
4730
|
for (var n = 0; n < e.length; n++) t.writeSVarint(e[n]);
|
|
4699
4731
|
}
|
|
4700
|
-
function
|
|
4732
|
+
function Vi(e, t) {
|
|
4701
4733
|
for (var n = 0; n < e.length; n++) t.writeFloat(e[n]);
|
|
4702
4734
|
}
|
|
4703
|
-
function
|
|
4735
|
+
function Yi(e, t) {
|
|
4704
4736
|
for (var n = 0; n < e.length; n++) t.writeDouble(e[n]);
|
|
4705
4737
|
}
|
|
4706
|
-
function
|
|
4738
|
+
function ji(e, t) {
|
|
4707
4739
|
for (var n = 0; n < e.length; n++) t.writeBoolean(e[n]);
|
|
4708
4740
|
}
|
|
4709
|
-
function
|
|
4741
|
+
function $i(e, t) {
|
|
4710
4742
|
for (var n = 0; n < e.length; n++) t.writeFixed32(e[n]);
|
|
4711
4743
|
}
|
|
4712
|
-
function
|
|
4744
|
+
function Ki(e, t) {
|
|
4713
4745
|
for (var n = 0; n < e.length; n++) t.writeSFixed32(e[n]);
|
|
4714
4746
|
}
|
|
4715
|
-
function
|
|
4747
|
+
function Wi(e, t) {
|
|
4716
4748
|
for (var n = 0; n < e.length; n++) t.writeFixed64(e[n]);
|
|
4717
4749
|
}
|
|
4718
|
-
function
|
|
4750
|
+
function Zi(e, t) {
|
|
4719
4751
|
for (var n = 0; n < e.length; n++) t.writeSFixed64(e[n]);
|
|
4720
4752
|
}
|
|
4721
4753
|
function $e(e, t) {
|
|
@@ -4727,19 +4759,19 @@ function ge(e, t, n) {
|
|
|
4727
4759
|
function Tn(e, t) {
|
|
4728
4760
|
return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + (e[t + 3] << 24);
|
|
4729
4761
|
}
|
|
4730
|
-
function
|
|
4762
|
+
function qi(e, t, n) {
|
|
4731
4763
|
for (var a = "", i = t; i < n; ) {
|
|
4732
|
-
var o = e[i],
|
|
4764
|
+
var o = e[i], u = null, m = o > 239 ? 4 : o > 223 ? 3 : o > 191 ? 2 : 1;
|
|
4733
4765
|
if (i + m > n) break;
|
|
4734
4766
|
var f, d, c;
|
|
4735
|
-
m === 1 ? o < 128 && (
|
|
4767
|
+
m === 1 ? o < 128 && (u = o) : m === 2 ? (f = e[i + 1], (f & 192) === 128 && (u = (o & 31) << 6 | f & 63, u <= 127 && (u = null))) : m === 3 ? (f = e[i + 1], d = e[i + 2], (f & 192) === 128 && (d & 192) === 128 && (u = (o & 15) << 12 | (f & 63) << 6 | d & 63, (u <= 2047 || u >= 55296 && u <= 57343) && (u = null))) : m === 4 && (f = e[i + 1], d = e[i + 2], c = e[i + 3], (f & 192) === 128 && (d & 192) === 128 && (c & 192) === 128 && (u = (o & 15) << 18 | (f & 63) << 12 | (d & 63) << 6 | c & 63, (u <= 65535 || u >= 1114112) && (u = null))), u === null ? (u = 65533, m = 1) : u > 65535 && (u -= 65536, a += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), a += String.fromCharCode(u), i += m;
|
|
4736
4768
|
}
|
|
4737
4769
|
return a;
|
|
4738
4770
|
}
|
|
4739
|
-
function
|
|
4771
|
+
function Qi(e, t, n) {
|
|
4740
4772
|
return An.decode(e.subarray(t, n));
|
|
4741
4773
|
}
|
|
4742
|
-
function
|
|
4774
|
+
function Ji(e, t, n) {
|
|
4743
4775
|
for (var a = 0, i, o; a < t.length; a++) {
|
|
4744
4776
|
if (i = t.charCodeAt(a), i > 55295 && i < 57344)
|
|
4745
4777
|
if (o)
|
|
@@ -4757,28 +4789,28 @@ function qi(e, t, n) {
|
|
|
4757
4789
|
}
|
|
4758
4790
|
return n;
|
|
4759
4791
|
}
|
|
4760
|
-
const
|
|
4792
|
+
const Xi = /* @__PURE__ */ Fi(Ii), Fo = (e) => {
|
|
4761
4793
|
var a, i;
|
|
4762
4794
|
if (!e || !e.data)
|
|
4763
4795
|
return {};
|
|
4764
4796
|
const t = {}, n = e.data;
|
|
4765
4797
|
if (n)
|
|
4766
4798
|
for (const o of n) {
|
|
4767
|
-
const
|
|
4768
|
-
|
|
4799
|
+
const u = (a = o == null ? void 0 : o.event) == null ? void 0 : a.country_code, m = (i = e.meta.metric_names) == null ? void 0 : i[0];
|
|
4800
|
+
u && (t[u] = m ? o.event[m] : 0);
|
|
4769
4801
|
}
|
|
4770
4802
|
return t;
|
|
4771
4803
|
};
|
|
4772
|
-
function
|
|
4804
|
+
function eo(e, t = 0) {
|
|
4773
4805
|
let n = null;
|
|
4774
4806
|
return (...a) => {
|
|
4775
4807
|
n && clearTimeout(n), n = setTimeout(() => e(...a), t);
|
|
4776
4808
|
};
|
|
4777
4809
|
}
|
|
4778
|
-
const
|
|
4810
|
+
const to = { class: "legend" }, no = {
|
|
4779
4811
|
key: 0,
|
|
4780
4812
|
class: "legend-title"
|
|
4781
|
-
},
|
|
4813
|
+
}, ro = { class: "legend-text" }, ao = /* @__PURE__ */ Nt({
|
|
4782
4814
|
__name: "MapLegend",
|
|
4783
4815
|
props: {
|
|
4784
4816
|
metric: {},
|
|
@@ -4786,8 +4818,8 @@ const Xi = { class: "legend" }, eo = {
|
|
|
4786
4818
|
data: {}
|
|
4787
4819
|
},
|
|
4788
4820
|
setup(e) {
|
|
4789
|
-
return (t, n) => (K(), ae("div",
|
|
4790
|
-
e.metric ? (K(), ae("div",
|
|
4821
|
+
return (t, n) => (K(), ae("div", to, [
|
|
4822
|
+
e.metric ? (K(), ae("div", no, xe(e.title), 1)) : ke("", !0),
|
|
4791
4823
|
(K(!0), ae(Jr, null, Xr(e.data, (a, i) => (K(), ae("div", {
|
|
4792
4824
|
key: i,
|
|
4793
4825
|
class: "legend-item"
|
|
@@ -4796,16 +4828,16 @@ const Xi = { class: "legend" }, eo = {
|
|
|
4796
4828
|
class: "legend-color",
|
|
4797
4829
|
style: ea({ backgroundColor: a.color })
|
|
4798
4830
|
}, null, 4),
|
|
4799
|
-
X("span",
|
|
4831
|
+
X("span", ro, xe(a.range), 1)
|
|
4800
4832
|
]))), 128))
|
|
4801
4833
|
]));
|
|
4802
4834
|
}
|
|
4803
|
-
}),
|
|
4835
|
+
}), Gt = (e, t) => {
|
|
4804
4836
|
const n = e.__vccOpts || e;
|
|
4805
4837
|
for (const [a, i] of t)
|
|
4806
4838
|
n[a] = i;
|
|
4807
4839
|
return n;
|
|
4808
|
-
},
|
|
4840
|
+
}, io = /* @__PURE__ */ Gt(ao, [["__scopeId", "data-v-09205656"]]), oo = { class: "map-tooltip" }, so = { class: "map-tooltip-text" }, uo = { key: 0 }, lo = /* @__PURE__ */ Nt({
|
|
4809
4841
|
__name: "MapTooltip",
|
|
4810
4842
|
props: {
|
|
4811
4843
|
data: {},
|
|
@@ -4818,18 +4850,18 @@ const Xi = { class: "legend" }, eo = {
|
|
|
4818
4850
|
v75a0a274: t.left,
|
|
4819
4851
|
v144f4294: t.top,
|
|
4820
4852
|
v6e49e79e: t.data.color
|
|
4821
|
-
})), (t, n) => (K(), ae("div",
|
|
4853
|
+
})), (t, n) => (K(), ae("div", oo, [
|
|
4822
4854
|
n[0] || (n[0] = X("div", { class: "map-tooltip-color" }, null, -1)),
|
|
4823
|
-
X("div",
|
|
4855
|
+
X("div", so, [
|
|
4824
4856
|
X("div", null, xe(e.data.label), 1),
|
|
4825
|
-
e.showValue ? (K(), ae("span",
|
|
4857
|
+
e.showValue ? (K(), ae("span", uo, xe(e.data.value), 1)) : ke("", !0)
|
|
4826
4858
|
])
|
|
4827
4859
|
]));
|
|
4828
4860
|
}
|
|
4829
|
-
}),
|
|
4861
|
+
}), co = /* @__PURE__ */ Gt(lo, [["__scopeId", "data-v-6bea2641"]]), mo = { class: "kong-ui-public-analytics-geo-map" }, fo = {
|
|
4830
4862
|
key: 0,
|
|
4831
4863
|
class: "no-location-overlay"
|
|
4832
|
-
},
|
|
4864
|
+
}, po = { class: "no-location-overlay-title" }, yo = { class: "no-location-overlay-description" }, ho = ["id"], _o = /* @__PURE__ */ Nt({
|
|
4833
4865
|
__name: "AnalyticsGeoMap",
|
|
4834
4866
|
props: {
|
|
4835
4867
|
countryMetrics: {},
|
|
@@ -4844,11 +4876,11 @@ const Xi = { class: "legend" }, eo = {
|
|
|
4844
4876
|
},
|
|
4845
4877
|
emits: ["boundsChange"],
|
|
4846
4878
|
setup(e, { emit: t }) {
|
|
4847
|
-
const n = import("./countries-simple-geo-BFUDnSiE.js").then((_) => _.default), a = t, { i18n: i } = Oe.useI18n(), { getColor: o, legendData:
|
|
4879
|
+
const n = import("./countries-simple-geo-BFUDnSiE.js").then((_) => _.default), a = t, { i18n: i } = Oe.useI18n(), { getColor: o, legendData: u } = Oe.useLegendScale({
|
|
4848
4880
|
countryMetrics: He(() => e.countryMetrics),
|
|
4849
4881
|
metric: He(() => e.metric),
|
|
4850
4882
|
unit: He(() => e.metricUnit)
|
|
4851
|
-
}), { formatMetric: m } = Oe.useMetricFormat({ unit: He(() => e.metricUnit) }), f = Re(), d = na(), c = Re(),
|
|
4883
|
+
}), { formatMetric: m } = Oe.useMetricFormat({ unit: He(() => e.metricUnit) }), f = Re(), d = na(), c = Re(), h = Re(null), w = Re({ left: "0px", top: "0px" }), g = Re(!1), T = A(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), M = A(() => ({
|
|
4852
4884
|
"fill-color": [
|
|
4853
4885
|
"match",
|
|
4854
4886
|
[
|
|
@@ -4864,8 +4896,8 @@ const Xi = { class: "legend" }, eo = {
|
|
|
4864
4896
|
...Object.keys(e.countryMetrics).length ? Object.entries(e.countryMetrics).flatMap(([_, F]) => [
|
|
4865
4897
|
_,
|
|
4866
4898
|
o(F)
|
|
4867
|
-
]) : [
|
|
4868
|
-
|
|
4899
|
+
]) : [Ee, Ee],
|
|
4900
|
+
Ee
|
|
4869
4901
|
// default color if no match
|
|
4870
4902
|
],
|
|
4871
4903
|
"fill-opacity": 0.7
|
|
@@ -4873,7 +4905,7 @@ const Xi = { class: "legend" }, eo = {
|
|
|
4873
4905
|
const F = _.flat(1);
|
|
4874
4906
|
return Array.isArray(F[0]) && Array.isArray(F[0][0]) ? I(F) : F;
|
|
4875
4907
|
}, ie = (_) => {
|
|
4876
|
-
var S,
|
|
4908
|
+
var S, k, ee, W, z, te, ne;
|
|
4877
4909
|
if (_ === "RU") {
|
|
4878
4910
|
(S = c.value) == null || S.fitBounds([
|
|
4879
4911
|
[20, 40],
|
|
@@ -4881,7 +4913,7 @@ const Xi = { class: "legend" }, eo = {
|
|
|
4881
4913
|
]);
|
|
4882
4914
|
return;
|
|
4883
4915
|
} else if (_ === "US") {
|
|
4884
|
-
(
|
|
4916
|
+
(k = c.value) == null || k.fitBounds([
|
|
4885
4917
|
[-130, 20],
|
|
4886
4918
|
[-60, 50]
|
|
4887
4919
|
]);
|
|
@@ -4899,14 +4931,14 @@ const Xi = { class: "legend" }, eo = {
|
|
|
4899
4931
|
]);
|
|
4900
4932
|
return;
|
|
4901
4933
|
}
|
|
4902
|
-
const F = (
|
|
4903
|
-
var
|
|
4904
|
-
return (
|
|
4934
|
+
const F = (z = h.value) == null ? void 0 : z.features.find((L) => {
|
|
4935
|
+
var V, Y, j, v, $;
|
|
4936
|
+
return (V = L.properties) != null && V.ISO_A2 ? ((Y = L.properties) == null ? void 0 : Y.ISO_A2) === _ : ((j = L.properties) == null ? void 0 : j.iso_a2) === "-99" ? ((v = L.properties) == null ? void 0 : v.iso_a2_eh) === _ : (($ = L.properties) == null ? void 0 : $.iso_a2) === _;
|
|
4905
4937
|
});
|
|
4906
4938
|
if (F) {
|
|
4907
4939
|
const L = (te = F.geometry) == null ? void 0 : te.coordinates;
|
|
4908
4940
|
if (!L) return;
|
|
4909
|
-
const
|
|
4941
|
+
const V = I(L), Y = V.map((Z) => Z[1]), j = V.map((Z) => Z[0]), v = Math.min(...Y), $ = Math.max(...Y), me = Math.min(...j), O = Math.max(...j);
|
|
4910
4942
|
(ne = c.value) == null || ne.fitBounds([
|
|
4911
4943
|
[me, v],
|
|
4912
4944
|
[O, $]
|
|
@@ -4931,7 +4963,7 @@ const Xi = { class: "legend" }, eo = {
|
|
|
4931
4963
|
}
|
|
4932
4964
|
};
|
|
4933
4965
|
return e.bounds && (_.bounds = e.bounds), _;
|
|
4934
|
-
}), de =
|
|
4966
|
+
}), de = eo(() => {
|
|
4935
4967
|
if (!c.value) return;
|
|
4936
4968
|
const _ = c.value.getBounds(), F = _.getSouthWest(), S = _.getNorthEast();
|
|
4937
4969
|
a("boundsChange", [
|
|
@@ -4942,12 +4974,12 @@ const Xi = { class: "legend" }, eo = {
|
|
|
4942
4974
|
return ra(async () => {
|
|
4943
4975
|
var _, F, S;
|
|
4944
4976
|
try {
|
|
4945
|
-
const
|
|
4946
|
-
|
|
4947
|
-
var te, ne, L,
|
|
4977
|
+
const k = await n, ee = await fetch(k), W = new Uint8Array(await ee.arrayBuffer()), z = Li(new Xi(W));
|
|
4978
|
+
h.value = z, c.value = new oa(N.value), c.value.on("load", () => {
|
|
4979
|
+
var te, ne, L, V, Y, j, v;
|
|
4948
4980
|
(te = c.value) == null || te.addSource("countries", {
|
|
4949
4981
|
type: "geojson",
|
|
4950
|
-
data:
|
|
4982
|
+
data: z
|
|
4951
4983
|
}), (ne = c.value) == null || ne.addLayer({
|
|
4952
4984
|
id: "countries-layer",
|
|
4953
4985
|
type: "fill",
|
|
@@ -4955,15 +4987,15 @@ const Xi = { class: "legend" }, eo = {
|
|
|
4955
4987
|
paint: M.value
|
|
4956
4988
|
}), (L = c.value) == null || L.addSource("lakes", {
|
|
4957
4989
|
type: "geojson",
|
|
4958
|
-
data:
|
|
4959
|
-
}), (
|
|
4990
|
+
data: xi
|
|
4991
|
+
}), (V = c.value) == null || V.addLayer({
|
|
4960
4992
|
id: "lakes-layer",
|
|
4961
4993
|
type: "fill",
|
|
4962
4994
|
source: "lakes",
|
|
4963
4995
|
paint: {
|
|
4964
4996
|
"fill-color": "#FFFFFF"
|
|
4965
4997
|
}
|
|
4966
|
-
}), (
|
|
4998
|
+
}), (Y = c.value) == null || Y.on("mousemove", "countries-layer", ($) => {
|
|
4967
4999
|
var O;
|
|
4968
5000
|
const me = (O = $.features) == null ? void 0 : O[0];
|
|
4969
5001
|
if (me) {
|
|
@@ -4981,8 +5013,8 @@ const Xi = { class: "legend" }, eo = {
|
|
|
4981
5013
|
g.value = !1;
|
|
4982
5014
|
}), (v = c.value) == null || v.on("move", de), e.fitToCountry && ie(e.fitToCountry);
|
|
4983
5015
|
}), (_ = c.value) == null || _.dragRotate.disable(), (F = c.value) == null || F.keyboard.disable(), (S = c.value) == null || S.touchZoomRotate.disableRotation();
|
|
4984
|
-
} catch (
|
|
4985
|
-
console.error(
|
|
5016
|
+
} catch (k) {
|
|
5017
|
+
console.error(k);
|
|
4986
5018
|
}
|
|
4987
5019
|
}), pt(() => e.countryMetrics, () => {
|
|
4988
5020
|
var _;
|
|
@@ -5000,57 +5032,57 @@ const Xi = { class: "legend" }, eo = {
|
|
|
5000
5032
|
}
|
|
5001
5033
|
}));
|
|
5002
5034
|
}), pt(() => e.fitToCountry, (_) => {
|
|
5003
|
-
var F, S,
|
|
5035
|
+
var F, S, k;
|
|
5004
5036
|
c.value && _ ? ie(_) : !N.value.center && !N.value.zoom ? (F = c.value) == null || F.fitBounds([
|
|
5005
5037
|
[-180, -90],
|
|
5006
5038
|
[180, 90]
|
|
5007
|
-
]) : (N.value.zoom && ((S = c.value) == null || S.setZoom(N.value.zoom)), N.value.center && ((
|
|
5039
|
+
]) : (N.value.zoom && ((S = c.value) == null || S.setZoom(N.value.zoom)), N.value.center && ((k = c.value) == null || k.flyTo({ center: N.value.center })));
|
|
5008
5040
|
}), pt(() => e.bounds, (_, F) => {
|
|
5009
5041
|
if (!_) return;
|
|
5010
|
-
const S = _ == null ? void 0 : _.flat(),
|
|
5011
|
-
!(S &&
|
|
5012
|
-
}), (_, F) => (K(), ae("div",
|
|
5013
|
-
T.value ? (K(), ae("div",
|
|
5014
|
-
|
|
5015
|
-
aa(
|
|
5016
|
-
color:
|
|
5017
|
-
size:
|
|
5042
|
+
const S = _ == null ? void 0 : _.flat(), k = F == null ? void 0 : F.flat();
|
|
5043
|
+
!(S && k && S.length === k.length && S.every((W, z) => Math.round(W * 100) / 100 === Math.round(k[z] * 100) / 100)) && c.value && c.value.fitBounds(_);
|
|
5044
|
+
}), (_, F) => (K(), ae("div", mo, [
|
|
5045
|
+
T.value ? (K(), ae("div", fo, [
|
|
5046
|
+
yt(_.$slots, "no-location-icon", {}, () => [
|
|
5047
|
+
aa(le(la), {
|
|
5048
|
+
color: le(pi),
|
|
5049
|
+
size: le(yi)
|
|
5018
5050
|
}, null, 8, ["color", "size"])
|
|
5019
5051
|
], !0),
|
|
5020
|
-
X("div",
|
|
5021
|
-
|
|
5022
|
-
ia(xe(
|
|
5052
|
+
X("div", po, [
|
|
5053
|
+
yt(_.$slots, "no-location-title", {}, () => [
|
|
5054
|
+
ia(xe(le(i).t("no_location_data")), 1)
|
|
5023
5055
|
], !0)
|
|
5024
5056
|
]),
|
|
5025
|
-
X("div",
|
|
5026
|
-
|
|
5027
|
-
X("p", null, xe(
|
|
5057
|
+
X("div", yo, [
|
|
5058
|
+
yt(_.$slots, "no-location-description", {}, () => [
|
|
5059
|
+
X("p", null, xe(le(i).t("no_location_data_description")), 1)
|
|
5028
5060
|
], !0)
|
|
5029
5061
|
])
|
|
5030
|
-
])) :
|
|
5062
|
+
])) : ke("", !0),
|
|
5031
5063
|
X("div", {
|
|
5032
|
-
id:
|
|
5064
|
+
id: le(d),
|
|
5033
5065
|
class: "analytics-geo-map-container"
|
|
5034
|
-
}, null, 8,
|
|
5035
|
-
H.value ? (K(), rn(
|
|
5066
|
+
}, null, 8, ho),
|
|
5067
|
+
H.value ? (K(), rn(io, {
|
|
5036
5068
|
key: 1,
|
|
5037
5069
|
class: "legend-container",
|
|
5038
|
-
data:
|
|
5070
|
+
data: le(u),
|
|
5039
5071
|
metric: e.metric,
|
|
5040
5072
|
title: B.value
|
|
5041
|
-
}, null, 8, ["data", "metric", "title"])) :
|
|
5042
|
-
g.value && f.value ? (K(), rn(
|
|
5073
|
+
}, null, 8, ["data", "metric", "title"])) : ke("", !0),
|
|
5074
|
+
g.value && f.value ? (K(), rn(co, {
|
|
5043
5075
|
key: 2,
|
|
5044
5076
|
data: f.value,
|
|
5045
5077
|
left: w.value.left,
|
|
5046
5078
|
"show-value": e.showTooltipValue,
|
|
5047
5079
|
top: w.value.top
|
|
5048
|
-
}, null, 8, ["data", "left", "show-value", "top"])) :
|
|
5080
|
+
}, null, 8, ["data", "left", "show-value", "top"])) : ke("", !0)
|
|
5049
5081
|
]));
|
|
5050
5082
|
}
|
|
5051
|
-
}),
|
|
5083
|
+
}), To = /* @__PURE__ */ Gt(_o, [["__scopeId", "data-v-4e998083"]]);
|
|
5052
5084
|
export {
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5085
|
+
To as AnalyticsGeoMap,
|
|
5086
|
+
eo as debounce,
|
|
5087
|
+
Fo as exploreResultToCountryMetrics
|
|
5056
5088
|
};
|