@kong-ui-public/analytics-geo-map 1.4.17-pr.2588.5db93a42d.0 → 1.4.17-pr.2589.bc8905230.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/types/components/MapTooltip.vue.d.ts +1 -0
- package/dist/types/components/MapTooltip.vue.d.ts.map +1 -1
- package/dist/types/composables/useMetricUtils.d.ts +3 -10
- package/dist/types/composables/useMetricUtils.d.ts.map +1 -1
- package/dist/vitals-geo-map.es.js +899 -986
- package/dist/vitals-geo-map.umd.js +1 -1
- package/package.json +3 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { Map as
|
|
3
|
-
import { createI18n as
|
|
4
|
-
import { AnalyticsIcon as
|
|
5
|
-
const
|
|
1
|
+
import { computed as C, defineComponent as Tt, createElementBlock as ae, openBlock as j, createCommentVNode as De, toDisplayString as ce, Fragment as jr, renderList as Kr, createElementVNode as J, normalizeStyle as $r, useCssVars as Wr, toRef as Xt, ref as Se, useId as Zr, onMounted as qr, watch as ut, createBlock as Qt, renderSlot as ct, createVNode as Jr, unref as ue, createTextVNode as Xr } from "vue";
|
|
2
|
+
import { Map as Qr } from "maplibre-gl";
|
|
3
|
+
import { createI18n as ea, i18nTComponent as ta } from "@kong-ui-public/i18n";
|
|
4
|
+
import { AnalyticsIcon as na } from "@kong/icons";
|
|
5
|
+
const ra = {
|
|
6
6
|
ms: "ms",
|
|
7
7
|
bytes: "Byte{plural}",
|
|
8
8
|
count: "request{plural}",
|
|
9
9
|
"count/minute": "rpm",
|
|
10
10
|
requests: "request{plural}"
|
|
11
|
-
},
|
|
11
|
+
}, aa = {
|
|
12
12
|
request_count: "Request count",
|
|
13
13
|
request_per_minute: "Requests per minute",
|
|
14
14
|
response_latency_average: "Response latency (avg)",
|
|
@@ -33,27 +33,59 @@ const ia = {
|
|
|
33
33
|
request_size_p95: "Request size (p95)",
|
|
34
34
|
request_size_p50: "Request size (p50)",
|
|
35
35
|
request_size_sum: "Request size (sum)"
|
|
36
|
-
},
|
|
36
|
+
}, ia = {
|
|
37
37
|
windows_zoom_help_text: "Use Ctrl + Scroll to zoom the map",
|
|
38
38
|
mac_zoom_help_text: "Use ⌘ + Scroll to zoom the map",
|
|
39
39
|
mobile_zoom_help_text: "Use two fingers to zoom the map"
|
|
40
|
-
},
|
|
41
|
-
metricUnits:
|
|
42
|
-
metrics:
|
|
43
|
-
cooperative_gestures:
|
|
44
|
-
no_location_data:
|
|
45
|
-
no_location_data_description:
|
|
40
|
+
}, oa = "No location", sa = "No location data found.", la = {
|
|
41
|
+
metricUnits: ra,
|
|
42
|
+
metrics: aa,
|
|
43
|
+
cooperative_gestures: ia,
|
|
44
|
+
no_location_data: oa,
|
|
45
|
+
no_location_data_description: sa
|
|
46
46
|
};
|
|
47
|
-
function
|
|
48
|
-
const e =
|
|
47
|
+
function ua() {
|
|
48
|
+
const e = ea("en-us", la);
|
|
49
49
|
return {
|
|
50
50
|
i18n: e,
|
|
51
|
-
i18nT:
|
|
51
|
+
i18nT: ta(e)
|
|
52
52
|
// Translation component <i18n-t>
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
function wn(e) {
|
|
56
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
57
|
+
}
|
|
58
|
+
var xn = { exports: {} };
|
|
59
|
+
(function(e) {
|
|
60
|
+
(function() {
|
|
61
|
+
function t(m, u) {
|
|
62
|
+
if (u.separator === !1 || m < 1e3)
|
|
63
|
+
return m.toString();
|
|
64
|
+
var f = typeof u.separator == "string" ? u.separator : ",", _ = [], v = Math.round(m).toString().split("");
|
|
65
|
+
return v.reverse().forEach(function(F, N) {
|
|
66
|
+
N && N % 3 === 0 && _.push(f), _.push(F);
|
|
67
|
+
}), _.reverse().join("");
|
|
68
|
+
}
|
|
69
|
+
function n(m, u, f) {
|
|
70
|
+
var _ = m / u, v = f.round ? "round" : "floor";
|
|
71
|
+
return f.decimal === !1 ? (m = Math[v](_), m.toString()) : (f.precision ? m = _ : m = _ < 10 ? Math[v](_ * 10) / 10 : Math[v](_), m = m.toString(), typeof f.decimal == "string" && (m = m.replace(".", f.decimal)), m);
|
|
72
|
+
}
|
|
73
|
+
var a = 1e3, i = 1e4, s = 1e6, c = 1e9, d = 1e12;
|
|
74
|
+
function y(m, u) {
|
|
75
|
+
var f;
|
|
76
|
+
u = u || {};
|
|
77
|
+
var _ = m < 0;
|
|
78
|
+
_ && (m = Math.abs(m)), u.precision && (m = parseFloat(m.toPrecision(u.precision)));
|
|
79
|
+
var v = u.min10k ? i : a;
|
|
80
|
+
return m < v || u.precision && u.precision > Math.log10(m) ? f = t(n(m, 1, u), u) : m < s ? f = n(m, a, u) + "k" : m < c ? f = n(m, s, u) + "m" : m < d ? f = t(n(m, c, u), u) + "b" : f = t(n(m, d, u), u) + "t", _ && (f = "-" + f), u.capital && (f = f.toUpperCase()), u.prefix && (f = u.prefix + f), u.suffix && (f = f + u.suffix), f;
|
|
81
|
+
}
|
|
82
|
+
y.addCommas = t, e.exports = y;
|
|
83
|
+
})();
|
|
84
|
+
})(xn);
|
|
85
|
+
var ca = xn.exports;
|
|
86
|
+
const da = /* @__PURE__ */ wn(ca);
|
|
87
|
+
var ma = Object.defineProperty, fa = (e, t, n) => t in e ? ma(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, G = (e, t, n) => fa(e, typeof t != "symbol" ? t + "" : t, n), p = /* @__PURE__ */ ((e) => (e.FIFTEEN_MIN = "15m", e.ONE_HOUR = "1h", e.SIX_HOUR = "6h", e.TWELVE_HOUR = "12h", e.ONE_DAY = "24h", e.SEVEN_DAY = "7d", e.THIRTY_DAY = "30d", e.NINETY_DAY = "90d", e.ONE_HUNDRED_EIGHTY_DAY = "180d", e.ONE_YEAR = "365d", e.CURRENT_WEEK = "current_week", e.CURRENT_MONTH = "current_month", e.CURRENT_QUARTER = "current_quarter", e.CURRENT_YEAR = "current_year", e.PREVIOUS_WEEK = "previous_week", e.PREVIOUS_MONTH = "previous_month", e.PREVIOUS_QUARTER = "previous_quarter", e.PREVIOUS_YEAR = "previous_year", e))(p || {});
|
|
88
|
+
const ha = ["in", "not_in", "selector"], pa = ["empty", "not_empty"], ya = [
|
|
57
89
|
"15m",
|
|
58
90
|
"1h",
|
|
59
91
|
"6h",
|
|
@@ -65,7 +97,7 @@ const pa = ["in", "not_in", "selector"], ha = ["empty", "not_empty"], ya = [
|
|
|
65
97
|
"30d",
|
|
66
98
|
"current_month",
|
|
67
99
|
"previous_month"
|
|
68
|
-
],
|
|
100
|
+
], Re = (e) => e.filter((t) => t !== "time"), Tn = [
|
|
69
101
|
"api",
|
|
70
102
|
"api_product",
|
|
71
103
|
"api_product_version",
|
|
@@ -78,8 +110,8 @@ const pa = ["in", "not_in", "selector"], ha = ["empty", "not_empty"], ya = [
|
|
|
78
110
|
"status_code",
|
|
79
111
|
"status_code_grouped",
|
|
80
112
|
"time"
|
|
81
|
-
],
|
|
82
|
-
...
|
|
113
|
+
], Mn = Re(Tn), _a = [
|
|
114
|
+
...Tn,
|
|
83
115
|
"application",
|
|
84
116
|
"consumer",
|
|
85
117
|
"country_code",
|
|
@@ -88,7 +120,7 @@ const pa = ["in", "not_in", "selector"], ha = ["empty", "not_empty"], ya = [
|
|
|
88
120
|
"response_source",
|
|
89
121
|
"data_plane_node_version",
|
|
90
122
|
"realm"
|
|
91
|
-
],
|
|
123
|
+
], Fn = Re(_a), ga = [
|
|
92
124
|
"control_plane",
|
|
93
125
|
"control_plane_group",
|
|
94
126
|
"gateway_service",
|
|
@@ -106,7 +138,7 @@ const pa = ["in", "not_in", "selector"], ha = ["empty", "not_empty"], ya = [
|
|
|
106
138
|
"status_code",
|
|
107
139
|
"status_code_grouped",
|
|
108
140
|
"ai_plugin"
|
|
109
|
-
],
|
|
141
|
+
], Sn = Re(ga), va = [
|
|
110
142
|
"api",
|
|
111
143
|
"api_product",
|
|
112
144
|
"api_product_version",
|
|
@@ -141,8 +173,8 @@ const pa = ["in", "not_in", "selector"], ha = ["empty", "not_empty"], ya = [
|
|
|
141
173
|
"upstream_status_code_grouped",
|
|
142
174
|
"websocket"
|
|
143
175
|
];
|
|
144
|
-
|
|
145
|
-
const
|
|
176
|
+
Re(va);
|
|
177
|
+
const wa = [
|
|
146
178
|
"ai_count",
|
|
147
179
|
"latencies_response_ms",
|
|
148
180
|
"latencies_upstream_ms",
|
|
@@ -153,9 +185,9 @@ const va = [
|
|
|
153
185
|
"status_code",
|
|
154
186
|
"upstream_status_code"
|
|
155
187
|
];
|
|
156
|
-
|
|
157
|
-
new Set(
|
|
158
|
-
const
|
|
188
|
+
Re(wa);
|
|
189
|
+
new Set(Mn), new Set(Fn), new Set(Sn);
|
|
190
|
+
const Mt = [
|
|
159
191
|
{ code: "AF", name: "Afghanistan" },
|
|
160
192
|
{ code: "AX", name: "Aland Islands" },
|
|
161
193
|
{ code: "AL", name: "Albania" },
|
|
@@ -403,7 +435,7 @@ const Nt = [
|
|
|
403
435
|
{ code: "ZM", name: "Zambia" },
|
|
404
436
|
{ code: "ZW", name: "Zimbabwe" }
|
|
405
437
|
];
|
|
406
|
-
|
|
438
|
+
Mt.map((e) => e.code);
|
|
407
439
|
const xa = (e) => ({
|
|
408
440
|
type: "array",
|
|
409
441
|
description: "A list of filters to apply to the query",
|
|
@@ -419,7 +451,7 @@ const xa = (e) => ({
|
|
|
419
451
|
},
|
|
420
452
|
operator: {
|
|
421
453
|
type: "string",
|
|
422
|
-
enum:
|
|
454
|
+
enum: ha
|
|
423
455
|
},
|
|
424
456
|
value: {
|
|
425
457
|
type: "array",
|
|
@@ -445,7 +477,7 @@ const xa = (e) => ({
|
|
|
445
477
|
},
|
|
446
478
|
operator: {
|
|
447
479
|
type: "string",
|
|
448
|
-
enum:
|
|
480
|
+
enum: pa
|
|
449
481
|
}
|
|
450
482
|
},
|
|
451
483
|
required: [
|
|
@@ -457,64 +489,64 @@ const xa = (e) => ({
|
|
|
457
489
|
]
|
|
458
490
|
}
|
|
459
491
|
});
|
|
460
|
-
xa([.../* @__PURE__ */ new Set([...
|
|
461
|
-
let
|
|
492
|
+
xa([.../* @__PURE__ */ new Set([...Fn, ...Mn, ...Sn])]);
|
|
493
|
+
let Ta = {};
|
|
462
494
|
function Ma() {
|
|
463
|
-
return
|
|
495
|
+
return Ta;
|
|
464
496
|
}
|
|
465
|
-
const
|
|
466
|
-
function
|
|
467
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
497
|
+
const Fa = 60, Sa = 3600, en = Symbol.for("constructDateFrom");
|
|
498
|
+
function Ne(e, t) {
|
|
499
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && en in e ? e[en](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
468
500
|
}
|
|
469
|
-
function
|
|
470
|
-
return
|
|
501
|
+
function Te(e, t) {
|
|
502
|
+
return Ne(t || e, e);
|
|
471
503
|
}
|
|
472
|
-
function
|
|
473
|
-
const n =
|
|
504
|
+
function dt(e, t) {
|
|
505
|
+
const n = Te(e, void 0);
|
|
474
506
|
return n.setHours(0, 0, 0, 0), n;
|
|
475
507
|
}
|
|
476
|
-
function
|
|
477
|
-
var n, a, i,
|
|
478
|
-
const
|
|
479
|
-
return
|
|
508
|
+
function He(e, t) {
|
|
509
|
+
var n, a, i, s;
|
|
510
|
+
const c = Ma(), d = (t == null ? void 0 : t.weekStartsOn) ?? ((a = (n = t == null ? void 0 : t.locale) == null ? void 0 : n.options) == null ? void 0 : a.weekStartsOn) ?? c.weekStartsOn ?? ((s = (i = c.locale) == null ? void 0 : i.options) == null ? void 0 : s.weekStartsOn) ?? 0, y = Te(e, t == null ? void 0 : t.in), m = y.getDay(), u = (m < d ? 7 : 0) + m - d;
|
|
511
|
+
return y.setDate(y.getDate() - u), y.setHours(0, 0, 0, 0), y;
|
|
480
512
|
}
|
|
481
|
-
function
|
|
482
|
-
const a =
|
|
483
|
-
return isNaN(t) ?
|
|
513
|
+
function mt(e, t, n) {
|
|
514
|
+
const a = Te(e, void 0);
|
|
515
|
+
return isNaN(t) ? Ne(e, NaN) : (a.setDate(a.getDate() + t), a);
|
|
484
516
|
}
|
|
485
517
|
function Da(e, t, n) {
|
|
486
|
-
const a =
|
|
487
|
-
if (isNaN(t)) return
|
|
488
|
-
const i = a.getDate(),
|
|
489
|
-
|
|
490
|
-
const
|
|
491
|
-
return i >=
|
|
492
|
-
|
|
493
|
-
|
|
518
|
+
const a = Te(e, void 0);
|
|
519
|
+
if (isNaN(t)) return Ne(e, NaN);
|
|
520
|
+
const i = a.getDate(), s = Ne(e, a.getTime());
|
|
521
|
+
s.setMonth(a.getMonth() + t + 1, 0);
|
|
522
|
+
const c = s.getDate();
|
|
523
|
+
return i >= c ? s : (a.setFullYear(
|
|
524
|
+
s.getFullYear(),
|
|
525
|
+
s.getMonth(),
|
|
494
526
|
i
|
|
495
527
|
), a);
|
|
496
528
|
}
|
|
497
529
|
function we(e, t) {
|
|
498
|
-
const n =
|
|
530
|
+
const n = Te(e, void 0);
|
|
499
531
|
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
500
532
|
}
|
|
501
|
-
function
|
|
502
|
-
const n =
|
|
503
|
-
return
|
|
533
|
+
function ka(e, t) {
|
|
534
|
+
const n = Te(e, void 0), a = n.getFullYear(), i = n.getMonth(), s = Ne(n, 0);
|
|
535
|
+
return s.setFullYear(a, i + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
|
|
504
536
|
}
|
|
505
|
-
function
|
|
537
|
+
function tn(e) {
|
|
506
538
|
return Math.trunc(e * Sa);
|
|
507
539
|
}
|
|
508
|
-
function
|
|
509
|
-
const t = e /
|
|
540
|
+
function Na(e) {
|
|
541
|
+
const t = e / Fa;
|
|
510
542
|
return Math.trunc(t);
|
|
511
543
|
}
|
|
512
|
-
function
|
|
544
|
+
function Dn(e, t, n) {
|
|
513
545
|
return Da(e, -1);
|
|
514
546
|
}
|
|
515
547
|
function Ea(e, t) {
|
|
516
|
-
const n =
|
|
517
|
-
return "formatToParts" in n ? Oa(n, e) :
|
|
548
|
+
const n = Ga(t);
|
|
549
|
+
return "formatToParts" in n ? Oa(n, e) : Ia(n, e);
|
|
518
550
|
}
|
|
519
551
|
const Ra = {
|
|
520
552
|
year: 0,
|
|
@@ -528,8 +560,8 @@ function Oa(e, t) {
|
|
|
528
560
|
try {
|
|
529
561
|
const n = e.formatToParts(t), a = [];
|
|
530
562
|
for (let i = 0; i < n.length; i++) {
|
|
531
|
-
const
|
|
532
|
-
|
|
563
|
+
const s = Ra[n[i].type];
|
|
564
|
+
s !== void 0 && (a[s] = parseInt(n[i].value, 10));
|
|
533
565
|
}
|
|
534
566
|
return a;
|
|
535
567
|
} catch (n) {
|
|
@@ -538,7 +570,7 @@ function Oa(e, t) {
|
|
|
538
570
|
throw n;
|
|
539
571
|
}
|
|
540
572
|
}
|
|
541
|
-
function
|
|
573
|
+
function Ia(e, t) {
|
|
542
574
|
const n = e.format(t), a = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
|
|
543
575
|
return [
|
|
544
576
|
parseInt(a[3], 10),
|
|
@@ -549,7 +581,7 @@ function ba(e, t) {
|
|
|
549
581
|
parseInt(a[6], 10)
|
|
550
582
|
];
|
|
551
583
|
}
|
|
552
|
-
const
|
|
584
|
+
const ft = {}, nn = new Intl.DateTimeFormat("en-US", {
|
|
553
585
|
hourCycle: "h23",
|
|
554
586
|
timeZone: "America/New_York",
|
|
555
587
|
year: "numeric",
|
|
@@ -558,9 +590,9 @@ const pt = {}, on = new Intl.DateTimeFormat("en-US", {
|
|
|
558
590
|
hour: "2-digit",
|
|
559
591
|
minute: "2-digit",
|
|
560
592
|
second: "2-digit"
|
|
561
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
562
|
-
function
|
|
563
|
-
return
|
|
593
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), La = nn === "06/25/2014, 00:00:00" || nn === "06/25/2014 00:00:00";
|
|
594
|
+
function Ga(e) {
|
|
595
|
+
return ft[e] || (ft[e] = La ? new Intl.DateTimeFormat("en-US", {
|
|
564
596
|
hourCycle: "h23",
|
|
565
597
|
timeZone: e,
|
|
566
598
|
year: "numeric",
|
|
@@ -578,13 +610,13 @@ function Ia(e) {
|
|
|
578
610
|
hour: "2-digit",
|
|
579
611
|
minute: "2-digit",
|
|
580
612
|
second: "2-digit"
|
|
581
|
-
})),
|
|
613
|
+
})), ft[e];
|
|
582
614
|
}
|
|
583
|
-
function
|
|
615
|
+
function Ft(e, t, n, a, i, s, c) {
|
|
584
616
|
const d = /* @__PURE__ */ new Date(0);
|
|
585
|
-
return d.setUTCFullYear(e, t, n), d.setUTCHours(a, i,
|
|
617
|
+
return d.setUTCFullYear(e, t, n), d.setUTCHours(a, i, s, c), d;
|
|
586
618
|
}
|
|
587
|
-
const
|
|
619
|
+
const rn = 36e5, Ca = 6e4, ht = {
|
|
588
620
|
timezoneZ: /^(Z)$/,
|
|
589
621
|
timezoneHH: /^([+-]\d{2})$/,
|
|
590
622
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -595,57 +627,57 @@ function Ke(e, t, n) {
|
|
|
595
627
|
let a = ht.timezoneZ.exec(e);
|
|
596
628
|
if (a)
|
|
597
629
|
return 0;
|
|
598
|
-
let i,
|
|
630
|
+
let i, s;
|
|
599
631
|
if (a = ht.timezoneHH.exec(e), a)
|
|
600
|
-
return i = parseInt(a[1], 10),
|
|
632
|
+
return i = parseInt(a[1], 10), an(i) ? -(i * rn) : NaN;
|
|
601
633
|
if (a = ht.timezoneHHMM.exec(e), a) {
|
|
602
634
|
i = parseInt(a[2], 10);
|
|
603
|
-
const
|
|
604
|
-
return
|
|
635
|
+
const c = parseInt(a[3], 10);
|
|
636
|
+
return an(i, c) ? (s = Math.abs(i) * rn + c * Ca, a[1] === "+" ? -s : s) : NaN;
|
|
605
637
|
}
|
|
606
|
-
if (
|
|
638
|
+
if (Ua(e)) {
|
|
607
639
|
t = new Date(t || Date.now());
|
|
608
|
-
const
|
|
609
|
-
return -(n ? d :
|
|
640
|
+
const c = n ? t : Aa(t), d = vt(c, e);
|
|
641
|
+
return -(n ? d : Pa(t, d, e));
|
|
610
642
|
}
|
|
611
643
|
return NaN;
|
|
612
644
|
}
|
|
613
|
-
function
|
|
614
|
-
return
|
|
645
|
+
function Aa(e) {
|
|
646
|
+
return Ft(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
615
647
|
}
|
|
616
|
-
function
|
|
617
|
-
const n = Ea(e, t), a =
|
|
648
|
+
function vt(e, t) {
|
|
649
|
+
const n = Ea(e, t), a = Ft(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
|
|
618
650
|
let i = e.getTime();
|
|
619
|
-
const
|
|
620
|
-
return i -=
|
|
651
|
+
const s = i % 1e3;
|
|
652
|
+
return i -= s >= 0 ? s : 1e3 + s, a - i;
|
|
621
653
|
}
|
|
622
|
-
function
|
|
654
|
+
function Pa(e, t, n) {
|
|
623
655
|
let a = e.getTime() - t;
|
|
624
|
-
const i =
|
|
656
|
+
const i = vt(new Date(a), n);
|
|
625
657
|
if (t === i)
|
|
626
658
|
return t;
|
|
627
659
|
a -= i - t;
|
|
628
|
-
const
|
|
629
|
-
return i ===
|
|
660
|
+
const s = vt(new Date(a), n);
|
|
661
|
+
return i === s ? i : Math.max(i, s);
|
|
630
662
|
}
|
|
631
|
-
function
|
|
663
|
+
function an(e, t) {
|
|
632
664
|
return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
|
|
633
665
|
}
|
|
634
|
-
const
|
|
635
|
-
function
|
|
636
|
-
if (
|
|
666
|
+
const on = {};
|
|
667
|
+
function Ua(e) {
|
|
668
|
+
if (on[e])
|
|
637
669
|
return !0;
|
|
638
670
|
try {
|
|
639
|
-
return new Intl.DateTimeFormat(void 0, { timeZone: e }),
|
|
671
|
+
return new Intl.DateTimeFormat(void 0, { timeZone: e }), on[e] = !0, !0;
|
|
640
672
|
} catch {
|
|
641
673
|
return !1;
|
|
642
674
|
}
|
|
643
675
|
}
|
|
644
|
-
function
|
|
676
|
+
function sn(e) {
|
|
645
677
|
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
646
678
|
return t.setUTCFullYear(e.getFullYear()), +e - +t;
|
|
647
679
|
}
|
|
648
|
-
const kn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,
|
|
680
|
+
const kn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, pt = 36e5, ln = 6e4, ba = 2, E = {
|
|
649
681
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
650
682
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
651
683
|
// year tokens
|
|
@@ -679,12 +711,12 @@ const kn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
|
|
|
679
711
|
// time zone tokens (to identify the presence of a tz)
|
|
680
712
|
timeZone: kn
|
|
681
713
|
};
|
|
682
|
-
function
|
|
714
|
+
function wt(e, t = {}) {
|
|
683
715
|
if (arguments.length < 1)
|
|
684
716
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
685
717
|
if (e === null)
|
|
686
718
|
return /* @__PURE__ */ new Date(NaN);
|
|
687
|
-
const n = t.additionalDigits == null ?
|
|
719
|
+
const n = t.additionalDigits == null ? ba : Number(t.additionalDigits);
|
|
688
720
|
if (n !== 2 && n !== 1 && n !== 0)
|
|
689
721
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
690
722
|
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
|
|
@@ -693,48 +725,48 @@ function Mt(e, t = {}) {
|
|
|
693
725
|
return new Date(e);
|
|
694
726
|
if (Object.prototype.toString.call(e) !== "[object String]")
|
|
695
727
|
return /* @__PURE__ */ new Date(NaN);
|
|
696
|
-
const a = Ba(e), { year: i, restDateString:
|
|
697
|
-
if (
|
|
728
|
+
const a = Ba(e), { year: i, restDateString: s } = Ha(a.date, n), c = Ya(s, i);
|
|
729
|
+
if (c === null || isNaN(c.getTime()))
|
|
698
730
|
return /* @__PURE__ */ new Date(NaN);
|
|
699
|
-
if (
|
|
700
|
-
const d =
|
|
701
|
-
let
|
|
702
|
-
if (a.time && (
|
|
731
|
+
if (c) {
|
|
732
|
+
const d = c.getTime();
|
|
733
|
+
let y = 0, m;
|
|
734
|
+
if (a.time && (y = Va(a.time), y === null || isNaN(y)))
|
|
703
735
|
return /* @__PURE__ */ new Date(NaN);
|
|
704
736
|
if (a.timeZone || t.timeZone) {
|
|
705
|
-
if (m = Ke(a.timeZone || t.timeZone, new Date(d +
|
|
737
|
+
if (m = Ke(a.timeZone || t.timeZone, new Date(d + y)), isNaN(m))
|
|
706
738
|
return /* @__PURE__ */ new Date(NaN);
|
|
707
739
|
} else
|
|
708
|
-
m =
|
|
709
|
-
return new Date(d +
|
|
740
|
+
m = sn(new Date(d + y)), m = sn(new Date(d + y + m));
|
|
741
|
+
return new Date(d + y + m);
|
|
710
742
|
} else
|
|
711
743
|
return /* @__PURE__ */ new Date(NaN);
|
|
712
744
|
}
|
|
713
745
|
function Ba(e) {
|
|
714
746
|
const t = {};
|
|
715
|
-
let n =
|
|
716
|
-
if (n ? (t.date = n[1], a = n[3]) : (n =
|
|
717
|
-
const i =
|
|
747
|
+
let n = E.dateTimePattern.exec(e), a;
|
|
748
|
+
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) {
|
|
749
|
+
const i = E.timeZone.exec(a);
|
|
718
750
|
i ? (t.time = a.replace(i[1], ""), t.timeZone = i[1].trim()) : t.time = a;
|
|
719
751
|
}
|
|
720
752
|
return t;
|
|
721
753
|
}
|
|
722
754
|
function Ha(e, t) {
|
|
723
755
|
if (e) {
|
|
724
|
-
const n =
|
|
725
|
-
let i =
|
|
756
|
+
const n = E.YYY[t], a = E.YYYYY[t];
|
|
757
|
+
let i = E.YYYY.exec(e) || a.exec(e);
|
|
726
758
|
if (i) {
|
|
727
|
-
const
|
|
759
|
+
const s = i[1];
|
|
728
760
|
return {
|
|
729
|
-
year: parseInt(
|
|
730
|
-
restDateString: e.slice(
|
|
761
|
+
year: parseInt(s, 10),
|
|
762
|
+
restDateString: e.slice(s.length)
|
|
731
763
|
};
|
|
732
764
|
}
|
|
733
|
-
if (i =
|
|
734
|
-
const
|
|
765
|
+
if (i = E.YY.exec(e) || n.exec(e), i) {
|
|
766
|
+
const s = i[1];
|
|
735
767
|
return {
|
|
736
|
-
year: parseInt(
|
|
737
|
-
restDateString: e.slice(
|
|
768
|
+
year: parseInt(s, 10) * 100,
|
|
769
|
+
restDateString: e.slice(s.length)
|
|
738
770
|
};
|
|
739
771
|
}
|
|
740
772
|
}
|
|
@@ -742,495 +774,491 @@ function Ha(e, t) {
|
|
|
742
774
|
year: null
|
|
743
775
|
};
|
|
744
776
|
}
|
|
745
|
-
function
|
|
777
|
+
function Ya(e, t) {
|
|
746
778
|
if (t === null)
|
|
747
779
|
return null;
|
|
748
780
|
let n, a, i;
|
|
749
781
|
if (!e || !e.length)
|
|
750
782
|
return n = /* @__PURE__ */ new Date(0), n.setUTCFullYear(t), n;
|
|
751
|
-
let
|
|
752
|
-
if (
|
|
753
|
-
return n = /* @__PURE__ */ new Date(0), a = parseInt(
|
|
754
|
-
if (
|
|
783
|
+
let s = E.MM.exec(e);
|
|
784
|
+
if (s)
|
|
785
|
+
return n = /* @__PURE__ */ new Date(0), a = parseInt(s[1], 10) - 1, cn(t, a) ? (n.setUTCFullYear(t, a), n) : /* @__PURE__ */ new Date(NaN);
|
|
786
|
+
if (s = E.DDD.exec(e), s) {
|
|
755
787
|
n = /* @__PURE__ */ new Date(0);
|
|
756
|
-
const
|
|
757
|
-
return
|
|
788
|
+
const c = parseInt(s[1], 10);
|
|
789
|
+
return Ka(t, c) ? (n.setUTCFullYear(t, 0, c), n) : /* @__PURE__ */ new Date(NaN);
|
|
758
790
|
}
|
|
759
|
-
if (
|
|
760
|
-
n = /* @__PURE__ */ new Date(0), a = parseInt(
|
|
761
|
-
const
|
|
762
|
-
return
|
|
791
|
+
if (s = E.MMDD.exec(e), s) {
|
|
792
|
+
n = /* @__PURE__ */ new Date(0), a = parseInt(s[1], 10) - 1;
|
|
793
|
+
const c = parseInt(s[2], 10);
|
|
794
|
+
return cn(t, a, c) ? (n.setUTCFullYear(t, a, c), n) : /* @__PURE__ */ new Date(NaN);
|
|
763
795
|
}
|
|
764
|
-
if (
|
|
765
|
-
return i = parseInt(
|
|
766
|
-
if (
|
|
767
|
-
i = parseInt(
|
|
768
|
-
const
|
|
769
|
-
return
|
|
796
|
+
if (s = E.Www.exec(e), s)
|
|
797
|
+
return i = parseInt(s[1], 10) - 1, dn(i) ? un(t, i) : /* @__PURE__ */ new Date(NaN);
|
|
798
|
+
if (s = E.WwwD.exec(e), s) {
|
|
799
|
+
i = parseInt(s[1], 10) - 1;
|
|
800
|
+
const c = parseInt(s[2], 10) - 1;
|
|
801
|
+
return dn(i, c) ? un(t, i, c) : /* @__PURE__ */ new Date(NaN);
|
|
770
802
|
}
|
|
771
803
|
return null;
|
|
772
804
|
}
|
|
773
|
-
function
|
|
774
|
-
let t, n, a =
|
|
805
|
+
function Va(e) {
|
|
806
|
+
let t, n, a = E.HH.exec(e);
|
|
775
807
|
if (a)
|
|
776
|
-
return t = parseFloat(a[1].replace(",", ".")),
|
|
777
|
-
if (a =
|
|
778
|
-
return t = parseInt(a[1], 10), n = parseFloat(a[2].replace(",", ".")),
|
|
779
|
-
if (a =
|
|
808
|
+
return t = parseFloat(a[1].replace(",", ".")), yt(t) ? t % 24 * pt : NaN;
|
|
809
|
+
if (a = E.HHMM.exec(e), a)
|
|
810
|
+
return t = parseInt(a[1], 10), n = parseFloat(a[2].replace(",", ".")), yt(t, n) ? t % 24 * pt + n * ln : NaN;
|
|
811
|
+
if (a = E.HHMMSS.exec(e), a) {
|
|
780
812
|
t = parseInt(a[1], 10), n = parseInt(a[2], 10);
|
|
781
813
|
const i = parseFloat(a[3].replace(",", "."));
|
|
782
|
-
return
|
|
814
|
+
return yt(t, n, i) ? t % 24 * pt + n * ln + i * 1e3 : NaN;
|
|
783
815
|
}
|
|
784
816
|
return null;
|
|
785
817
|
}
|
|
786
|
-
function
|
|
818
|
+
function un(e, t, n) {
|
|
787
819
|
t = t || 0, n = n || 0;
|
|
788
820
|
const a = /* @__PURE__ */ new Date(0);
|
|
789
821
|
a.setUTCFullYear(e, 0, 4);
|
|
790
|
-
const i = a.getUTCDay() || 7,
|
|
791
|
-
return a.setUTCDate(a.getUTCDate() +
|
|
822
|
+
const i = a.getUTCDay() || 7, s = t * 7 + n + 1 - i;
|
|
823
|
+
return a.setUTCDate(a.getUTCDate() + s), a;
|
|
792
824
|
}
|
|
793
825
|
const za = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ja = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
794
|
-
function
|
|
826
|
+
function Nn(e) {
|
|
795
827
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
796
828
|
}
|
|
797
|
-
function
|
|
829
|
+
function cn(e, t, n) {
|
|
798
830
|
if (t < 0 || t > 11)
|
|
799
831
|
return !1;
|
|
800
832
|
if (n != null) {
|
|
801
833
|
if (n < 1)
|
|
802
834
|
return !1;
|
|
803
|
-
const a =
|
|
835
|
+
const a = Nn(e);
|
|
804
836
|
if (a && n > ja[t] || !a && n > za[t])
|
|
805
837
|
return !1;
|
|
806
838
|
}
|
|
807
839
|
return !0;
|
|
808
840
|
}
|
|
809
|
-
function
|
|
841
|
+
function Ka(e, t) {
|
|
810
842
|
if (t < 1)
|
|
811
843
|
return !1;
|
|
812
|
-
const n =
|
|
844
|
+
const n = Nn(e);
|
|
813
845
|
return !(n && t > 366 || !n && t > 365);
|
|
814
846
|
}
|
|
815
|
-
function
|
|
847
|
+
function dn(e, t) {
|
|
816
848
|
return !(e < 0 || e > 52 || t != null && (t < 0 || t > 6));
|
|
817
849
|
}
|
|
818
|
-
function
|
|
850
|
+
function yt(e, t, n) {
|
|
819
851
|
return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
|
|
820
852
|
}
|
|
821
|
-
function
|
|
822
|
-
e =
|
|
823
|
-
const a = Ke(t, e, !0), i = new Date(e.getTime() - a),
|
|
824
|
-
return
|
|
853
|
+
function $a(e, t, n) {
|
|
854
|
+
e = wt(e, n);
|
|
855
|
+
const a = Ke(t, e, !0), i = new Date(e.getTime() - a), s = /* @__PURE__ */ new Date(0);
|
|
856
|
+
return s.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), s.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), s;
|
|
825
857
|
}
|
|
826
858
|
function Wa(e, t, n) {
|
|
827
859
|
if (typeof e == "string" && !e.match(kn))
|
|
828
|
-
return
|
|
829
|
-
e =
|
|
830
|
-
const a =
|
|
860
|
+
return wt(e, { ...n, timeZone: t });
|
|
861
|
+
e = wt(e, n);
|
|
862
|
+
const a = Ft(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = Ke(t, new Date(a));
|
|
831
863
|
return new Date(a + i);
|
|
832
864
|
}
|
|
833
865
|
function Za(e, t) {
|
|
834
866
|
return -Ke(e, t);
|
|
835
867
|
}
|
|
836
|
-
var
|
|
837
|
-
function qa(e) {
|
|
838
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
839
|
-
}
|
|
840
|
-
var Ye = { exports: {} };
|
|
868
|
+
var Ue = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ye = { exports: {} };
|
|
841
869
|
Ye.exports;
|
|
842
870
|
(function(e, t) {
|
|
843
|
-
var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991,
|
|
844
|
-
|
|
845
|
-
var
|
|
846
|
-
function qe(r,
|
|
847
|
-
return r.set(
|
|
871
|
+
var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, s = "[object Arguments]", c = "[object Array]", d = "[object Boolean]", y = "[object Date]", m = "[object Error]", u = "[object Function]", f = "[object GeneratorFunction]", _ = "[object Map]", v = "[object Number]", F = "[object Object]", N = "[object Promise]", P = "[object RegExp]", Q = "[object Set]", U = "[object String]", ie = "[object Symbol]", b = "[object WeakMap]", We = "[object ArrayBuffer]", de = "[object DataView]", g = "[object Float32Array]", T = "[object Float64Array]", M = "[object Int8Array]", D = "[object Int16Array]", ee = "[object Int32Array]", K = "[object Uint8Array]", B = "[object Uint8ClampedArray]", te = "[object Uint16Array]", ne = "[object Uint32Array]", L = /[\\^$.*+?()[\]{}|]/g, H = /\w*$/, Y = /^\[object .+?Constructor\]$/, V = /^(?:0|[1-9]\d*)$/, w = {};
|
|
872
|
+
w[s] = w[c] = w[We] = w[de] = w[d] = w[y] = w[g] = w[T] = w[M] = w[D] = w[ee] = w[_] = w[v] = w[F] = w[P] = w[Q] = w[U] = w[ie] = w[K] = w[B] = w[te] = w[ne] = !0, w[m] = w[u] = w[b] = !1;
|
|
873
|
+
var z = typeof Ue == "object" && Ue && Ue.Object === Object && Ue, me = typeof self == "object" && self && self.Object === Object && self, R = z || me || Function("return this")(), $ = t && !t.nodeType && t, Oe = $ && !0 && e && !e.nodeType && e, Ze = Oe && Oe.exports === $;
|
|
874
|
+
function qe(r, o) {
|
|
875
|
+
return r.set(o[0], o[1]), r;
|
|
848
876
|
}
|
|
849
|
-
function Je(r,
|
|
850
|
-
return r.add(
|
|
877
|
+
function Je(r, o) {
|
|
878
|
+
return r.add(o), r;
|
|
851
879
|
}
|
|
852
|
-
function
|
|
853
|
-
for (var l = -1,
|
|
880
|
+
function fe(r, o) {
|
|
881
|
+
for (var l = -1, h = r ? r.length : 0; ++l < h && o(r[l], l, r) !== !1; )
|
|
854
882
|
;
|
|
855
883
|
return r;
|
|
856
884
|
}
|
|
857
|
-
function
|
|
858
|
-
for (var l = -1,
|
|
859
|
-
r[
|
|
885
|
+
function On(r, o) {
|
|
886
|
+
for (var l = -1, h = o.length, S = r.length; ++l < h; )
|
|
887
|
+
r[S + l] = o[l];
|
|
860
888
|
return r;
|
|
861
889
|
}
|
|
862
|
-
function
|
|
863
|
-
for (var
|
|
864
|
-
l =
|
|
890
|
+
function Et(r, o, l, h) {
|
|
891
|
+
for (var S = -1, O = r ? r.length : 0; ++S < O; )
|
|
892
|
+
l = o(l, r[S], S, r);
|
|
865
893
|
return l;
|
|
866
894
|
}
|
|
867
|
-
function In(r,
|
|
868
|
-
for (var l = -1,
|
|
869
|
-
|
|
870
|
-
return
|
|
895
|
+
function In(r, o) {
|
|
896
|
+
for (var l = -1, h = Array(r); ++l < r; )
|
|
897
|
+
h[l] = o(l);
|
|
898
|
+
return h;
|
|
871
899
|
}
|
|
872
|
-
function Ln(r,
|
|
873
|
-
return r == null ? void 0 : r[
|
|
900
|
+
function Ln(r, o) {
|
|
901
|
+
return r == null ? void 0 : r[o];
|
|
874
902
|
}
|
|
875
|
-
function
|
|
876
|
-
var
|
|
903
|
+
function Rt(r) {
|
|
904
|
+
var o = !1;
|
|
877
905
|
if (r != null && typeof r.toString != "function")
|
|
878
906
|
try {
|
|
879
|
-
|
|
907
|
+
o = !!(r + "");
|
|
880
908
|
} catch {
|
|
881
909
|
}
|
|
882
|
-
return
|
|
910
|
+
return o;
|
|
883
911
|
}
|
|
884
|
-
function
|
|
885
|
-
var
|
|
886
|
-
return r.forEach(function(
|
|
887
|
-
l[++
|
|
912
|
+
function Ot(r) {
|
|
913
|
+
var o = -1, l = Array(r.size);
|
|
914
|
+
return r.forEach(function(h, S) {
|
|
915
|
+
l[++o] = [S, h];
|
|
888
916
|
}), l;
|
|
889
917
|
}
|
|
890
|
-
function Xe(r,
|
|
918
|
+
function Xe(r, o) {
|
|
891
919
|
return function(l) {
|
|
892
|
-
return r(
|
|
920
|
+
return r(o(l));
|
|
893
921
|
};
|
|
894
922
|
}
|
|
895
|
-
function
|
|
896
|
-
var
|
|
897
|
-
return r.forEach(function(
|
|
898
|
-
l[++
|
|
923
|
+
function It(r) {
|
|
924
|
+
var o = -1, l = Array(r.size);
|
|
925
|
+
return r.forEach(function(h) {
|
|
926
|
+
l[++o] = h;
|
|
899
927
|
}), l;
|
|
900
928
|
}
|
|
901
|
-
var
|
|
929
|
+
var Gn = Array.prototype, Cn = Function.prototype, Ie = Object.prototype, Qe = R["__core-js_shared__"], Lt = function() {
|
|
902
930
|
var r = /[^.]+$/.exec(Qe && Qe.keys && Qe.keys.IE_PROTO || "");
|
|
903
931
|
return r ? "Symbol(src)_1." + r : "";
|
|
904
|
-
}(),
|
|
905
|
-
"^" +
|
|
906
|
-
),
|
|
907
|
-
function
|
|
908
|
-
var
|
|
909
|
-
for (this.clear(); ++
|
|
910
|
-
var
|
|
911
|
-
this.set(
|
|
932
|
+
}(), Gt = Cn.toString, re = Ie.hasOwnProperty, Le = Ie.toString, An = RegExp(
|
|
933
|
+
"^" + Gt.call(re).replace(L, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
934
|
+
), Ct = Ze ? R.Buffer : void 0, At = R.Symbol, Pt = R.Uint8Array, Pn = Xe(Object.getPrototypeOf, Object), Un = Object.create, bn = Ie.propertyIsEnumerable, Bn = Gn.splice, Ut = Object.getOwnPropertySymbols, Hn = Ct ? Ct.isBuffer : void 0, Yn = Xe(Object.keys, Object), et = ye(R, "DataView"), Me = ye(R, "Map"), tt = ye(R, "Promise"), nt = ye(R, "Set"), rt = ye(R, "WeakMap"), Fe = ye(Object, "create"), Vn = le(et), zn = le(Me), jn = le(tt), Kn = le(nt), $n = le(rt), bt = At ? At.prototype : void 0, Bt = bt ? bt.valueOf : void 0;
|
|
935
|
+
function oe(r) {
|
|
936
|
+
var o = -1, l = r ? r.length : 0;
|
|
937
|
+
for (this.clear(); ++o < l; ) {
|
|
938
|
+
var h = r[o];
|
|
939
|
+
this.set(h[0], h[1]);
|
|
912
940
|
}
|
|
913
941
|
}
|
|
914
|
-
function
|
|
915
|
-
this.__data__ =
|
|
942
|
+
function Wn() {
|
|
943
|
+
this.__data__ = Fe ? Fe(null) : {};
|
|
916
944
|
}
|
|
917
|
-
function
|
|
945
|
+
function Zn(r) {
|
|
918
946
|
return this.has(r) && delete this.__data__[r];
|
|
919
947
|
}
|
|
920
|
-
function
|
|
921
|
-
var
|
|
922
|
-
if (
|
|
923
|
-
var l =
|
|
948
|
+
function qn(r) {
|
|
949
|
+
var o = this.__data__;
|
|
950
|
+
if (Fe) {
|
|
951
|
+
var l = o[r];
|
|
924
952
|
return l === a ? void 0 : l;
|
|
925
953
|
}
|
|
926
|
-
return
|
|
954
|
+
return re.call(o, r) ? o[r] : void 0;
|
|
927
955
|
}
|
|
928
|
-
function
|
|
929
|
-
var
|
|
930
|
-
return
|
|
956
|
+
function Jn(r) {
|
|
957
|
+
var o = this.__data__;
|
|
958
|
+
return Fe ? o[r] !== void 0 : re.call(o, r);
|
|
931
959
|
}
|
|
932
|
-
function
|
|
960
|
+
function Xn(r, o) {
|
|
933
961
|
var l = this.__data__;
|
|
934
|
-
return l[r] =
|
|
962
|
+
return l[r] = Fe && o === void 0 ? a : o, this;
|
|
935
963
|
}
|
|
936
|
-
|
|
937
|
-
function
|
|
938
|
-
var
|
|
939
|
-
for (this.clear(); ++
|
|
940
|
-
var
|
|
941
|
-
this.set(
|
|
964
|
+
oe.prototype.clear = Wn, oe.prototype.delete = Zn, oe.prototype.get = qn, oe.prototype.has = Jn, oe.prototype.set = Xn;
|
|
965
|
+
function W(r) {
|
|
966
|
+
var o = -1, l = r ? r.length : 0;
|
|
967
|
+
for (this.clear(); ++o < l; ) {
|
|
968
|
+
var h = r[o];
|
|
969
|
+
this.set(h[0], h[1]);
|
|
942
970
|
}
|
|
943
971
|
}
|
|
944
|
-
function
|
|
972
|
+
function Qn() {
|
|
945
973
|
this.__data__ = [];
|
|
946
974
|
}
|
|
947
|
-
function
|
|
948
|
-
var
|
|
975
|
+
function er(r) {
|
|
976
|
+
var o = this.__data__, l = Ge(o, r);
|
|
949
977
|
if (l < 0)
|
|
950
978
|
return !1;
|
|
951
|
-
var
|
|
952
|
-
return l ==
|
|
979
|
+
var h = o.length - 1;
|
|
980
|
+
return l == h ? o.pop() : Bn.call(o, l, 1), !0;
|
|
953
981
|
}
|
|
954
|
-
function
|
|
955
|
-
var
|
|
956
|
-
return l < 0 ? void 0 :
|
|
982
|
+
function tr(r) {
|
|
983
|
+
var o = this.__data__, l = Ge(o, r);
|
|
984
|
+
return l < 0 ? void 0 : o[l][1];
|
|
957
985
|
}
|
|
958
|
-
function
|
|
959
|
-
return
|
|
986
|
+
function nr(r) {
|
|
987
|
+
return Ge(this.__data__, r) > -1;
|
|
960
988
|
}
|
|
961
|
-
function
|
|
962
|
-
var l = this.__data__,
|
|
963
|
-
return
|
|
989
|
+
function rr(r, o) {
|
|
990
|
+
var l = this.__data__, h = Ge(l, r);
|
|
991
|
+
return h < 0 ? l.push([r, o]) : l[h][1] = o, this;
|
|
964
992
|
}
|
|
965
|
-
|
|
966
|
-
function
|
|
967
|
-
var
|
|
968
|
-
for (this.clear(); ++
|
|
969
|
-
var
|
|
970
|
-
this.set(
|
|
993
|
+
W.prototype.clear = Qn, W.prototype.delete = er, W.prototype.get = tr, W.prototype.has = nr, W.prototype.set = rr;
|
|
994
|
+
function he(r) {
|
|
995
|
+
var o = -1, l = r ? r.length : 0;
|
|
996
|
+
for (this.clear(); ++o < l; ) {
|
|
997
|
+
var h = r[o];
|
|
998
|
+
this.set(h[0], h[1]);
|
|
971
999
|
}
|
|
972
1000
|
}
|
|
973
|
-
function
|
|
1001
|
+
function ar() {
|
|
974
1002
|
this.__data__ = {
|
|
975
|
-
hash: new
|
|
976
|
-
map: new (
|
|
977
|
-
string: new
|
|
1003
|
+
hash: new oe(),
|
|
1004
|
+
map: new (Me || W)(),
|
|
1005
|
+
string: new oe()
|
|
978
1006
|
};
|
|
979
1007
|
}
|
|
980
|
-
function
|
|
981
|
-
return
|
|
1008
|
+
function ir(r) {
|
|
1009
|
+
return Ce(this, r).delete(r);
|
|
982
1010
|
}
|
|
983
|
-
function
|
|
984
|
-
return
|
|
1011
|
+
function or(r) {
|
|
1012
|
+
return Ce(this, r).get(r);
|
|
985
1013
|
}
|
|
986
|
-
function
|
|
987
|
-
return
|
|
1014
|
+
function sr(r) {
|
|
1015
|
+
return Ce(this, r).has(r);
|
|
988
1016
|
}
|
|
989
|
-
function
|
|
990
|
-
return
|
|
1017
|
+
function lr(r, o) {
|
|
1018
|
+
return Ce(this, r).set(r, o), this;
|
|
991
1019
|
}
|
|
992
|
-
|
|
1020
|
+
he.prototype.clear = ar, he.prototype.delete = ir, he.prototype.get = or, he.prototype.has = sr, he.prototype.set = lr;
|
|
993
1021
|
function pe(r) {
|
|
994
|
-
this.__data__ = new
|
|
1022
|
+
this.__data__ = new W(r);
|
|
995
1023
|
}
|
|
996
|
-
function
|
|
997
|
-
this.__data__ = new
|
|
1024
|
+
function ur() {
|
|
1025
|
+
this.__data__ = new W();
|
|
998
1026
|
}
|
|
999
|
-
function
|
|
1027
|
+
function cr(r) {
|
|
1000
1028
|
return this.__data__.delete(r);
|
|
1001
1029
|
}
|
|
1002
|
-
function
|
|
1030
|
+
function dr(r) {
|
|
1003
1031
|
return this.__data__.get(r);
|
|
1004
1032
|
}
|
|
1005
|
-
function
|
|
1033
|
+
function mr(r) {
|
|
1006
1034
|
return this.__data__.has(r);
|
|
1007
1035
|
}
|
|
1008
|
-
function
|
|
1036
|
+
function fr(r, o) {
|
|
1009
1037
|
var l = this.__data__;
|
|
1010
|
-
if (l instanceof
|
|
1011
|
-
var
|
|
1012
|
-
if (!
|
|
1013
|
-
return
|
|
1014
|
-
l = this.__data__ = new
|
|
1038
|
+
if (l instanceof W) {
|
|
1039
|
+
var h = l.__data__;
|
|
1040
|
+
if (!Me || h.length < n - 1)
|
|
1041
|
+
return h.push([r, o]), this;
|
|
1042
|
+
l = this.__data__ = new he(h);
|
|
1015
1043
|
}
|
|
1016
|
-
return l.set(r,
|
|
1044
|
+
return l.set(r, o), this;
|
|
1017
1045
|
}
|
|
1018
|
-
pe.prototype.clear =
|
|
1019
|
-
function
|
|
1020
|
-
var l = ot(r) ||
|
|
1021
|
-
for (var
|
|
1022
|
-
|
|
1046
|
+
pe.prototype.clear = ur, pe.prototype.delete = cr, pe.prototype.get = dr, pe.prototype.has = mr, pe.prototype.set = fr;
|
|
1047
|
+
function hr(r, o) {
|
|
1048
|
+
var l = ot(r) || Ur(r) ? In(r.length, String) : [], h = l.length, S = !!h;
|
|
1049
|
+
for (var O in r)
|
|
1050
|
+
re.call(r, O) && !(S && (O == "length" || Gr(O, h))) && l.push(O);
|
|
1023
1051
|
return l;
|
|
1024
1052
|
}
|
|
1025
|
-
function
|
|
1026
|
-
var
|
|
1027
|
-
(!(
|
|
1053
|
+
function Ht(r, o, l) {
|
|
1054
|
+
var h = r[o];
|
|
1055
|
+
(!(re.call(r, o) && jt(h, l)) || l === void 0 && !(o in r)) && (r[o] = l);
|
|
1028
1056
|
}
|
|
1029
|
-
function
|
|
1057
|
+
function Ge(r, o) {
|
|
1030
1058
|
for (var l = r.length; l--; )
|
|
1031
|
-
if (
|
|
1059
|
+
if (jt(r[l][0], o))
|
|
1032
1060
|
return l;
|
|
1033
1061
|
return -1;
|
|
1034
1062
|
}
|
|
1035
|
-
function
|
|
1036
|
-
return r &&
|
|
1063
|
+
function pr(r, o) {
|
|
1064
|
+
return r && Yt(o, st(o), r);
|
|
1037
1065
|
}
|
|
1038
|
-
function at(r,
|
|
1039
|
-
var
|
|
1040
|
-
if (
|
|
1041
|
-
return
|
|
1042
|
-
if (!
|
|
1066
|
+
function at(r, o, l, h, S, O, Z) {
|
|
1067
|
+
var I;
|
|
1068
|
+
if (h && (I = O ? h(r, S, O, Z) : h(r)), I !== void 0)
|
|
1069
|
+
return I;
|
|
1070
|
+
if (!Ae(r))
|
|
1043
1071
|
return r;
|
|
1044
|
-
var
|
|
1045
|
-
if (
|
|
1046
|
-
if (
|
|
1047
|
-
return
|
|
1072
|
+
var Wt = ot(r);
|
|
1073
|
+
if (Wt) {
|
|
1074
|
+
if (I = Or(r), !o)
|
|
1075
|
+
return Nr(r, I);
|
|
1048
1076
|
} else {
|
|
1049
|
-
var
|
|
1050
|
-
if (
|
|
1051
|
-
return
|
|
1052
|
-
if (
|
|
1053
|
-
if (
|
|
1054
|
-
return
|
|
1055
|
-
if (
|
|
1056
|
-
return
|
|
1077
|
+
var _e = se(r), Zt = _e == u || _e == f;
|
|
1078
|
+
if (Br(r))
|
|
1079
|
+
return xr(r, o);
|
|
1080
|
+
if (_e == F || _e == s || Zt && !O) {
|
|
1081
|
+
if (Rt(r))
|
|
1082
|
+
return O ? r : {};
|
|
1083
|
+
if (I = Ir(Zt ? {} : r), !o)
|
|
1084
|
+
return Er(r, pr(I, r));
|
|
1057
1085
|
} else {
|
|
1058
|
-
if (!
|
|
1059
|
-
return
|
|
1060
|
-
|
|
1086
|
+
if (!w[_e])
|
|
1087
|
+
return O ? r : {};
|
|
1088
|
+
I = Lr(r, _e, at, o);
|
|
1061
1089
|
}
|
|
1062
1090
|
}
|
|
1063
|
-
|
|
1064
|
-
var
|
|
1065
|
-
if (
|
|
1066
|
-
return
|
|
1067
|
-
if (
|
|
1068
|
-
var
|
|
1069
|
-
return
|
|
1070
|
-
|
|
1071
|
-
}),
|
|
1091
|
+
Z || (Z = new pe());
|
|
1092
|
+
var qt = Z.get(r);
|
|
1093
|
+
if (qt)
|
|
1094
|
+
return qt;
|
|
1095
|
+
if (Z.set(r, I), !Wt)
|
|
1096
|
+
var Jt = l ? Rr(r) : st(r);
|
|
1097
|
+
return fe(Jt || r, function(lt, Pe) {
|
|
1098
|
+
Jt && (Pe = lt, lt = r[Pe]), Ht(I, Pe, at(lt, o, l, h, Pe, r, Z));
|
|
1099
|
+
}), I;
|
|
1072
1100
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return
|
|
1101
|
+
function yr(r) {
|
|
1102
|
+
return Ae(r) ? Un(r) : {};
|
|
1075
1103
|
}
|
|
1076
|
-
function
|
|
1077
|
-
var
|
|
1078
|
-
return ot(r) ?
|
|
1104
|
+
function _r(r, o, l) {
|
|
1105
|
+
var h = o(r);
|
|
1106
|
+
return ot(r) ? h : On(h, l(r));
|
|
1079
1107
|
}
|
|
1080
|
-
function
|
|
1081
|
-
return
|
|
1108
|
+
function gr(r) {
|
|
1109
|
+
return Le.call(r);
|
|
1082
1110
|
}
|
|
1083
|
-
function
|
|
1084
|
-
if (!
|
|
1111
|
+
function vr(r) {
|
|
1112
|
+
if (!Ae(r) || Ar(r))
|
|
1085
1113
|
return !1;
|
|
1086
|
-
var
|
|
1087
|
-
return
|
|
1114
|
+
var o = $t(r) || Rt(r) ? An : Y;
|
|
1115
|
+
return o.test(le(r));
|
|
1088
1116
|
}
|
|
1089
|
-
function
|
|
1090
|
-
if (!
|
|
1091
|
-
return
|
|
1092
|
-
var
|
|
1117
|
+
function wr(r) {
|
|
1118
|
+
if (!zt(r))
|
|
1119
|
+
return Yn(r);
|
|
1120
|
+
var o = [];
|
|
1093
1121
|
for (var l in Object(r))
|
|
1094
|
-
|
|
1095
|
-
return
|
|
1122
|
+
re.call(r, l) && l != "constructor" && o.push(l);
|
|
1123
|
+
return o;
|
|
1096
1124
|
}
|
|
1097
|
-
function
|
|
1098
|
-
if (
|
|
1125
|
+
function xr(r, o) {
|
|
1126
|
+
if (o)
|
|
1099
1127
|
return r.slice();
|
|
1100
1128
|
var l = new r.constructor(r.length);
|
|
1101
1129
|
return r.copy(l), l;
|
|
1102
1130
|
}
|
|
1103
1131
|
function it(r) {
|
|
1104
|
-
var
|
|
1105
|
-
return new
|
|
1132
|
+
var o = new r.constructor(r.byteLength);
|
|
1133
|
+
return new Pt(o).set(new Pt(r)), o;
|
|
1106
1134
|
}
|
|
1107
|
-
function Tr(r,
|
|
1108
|
-
var l =
|
|
1135
|
+
function Tr(r, o) {
|
|
1136
|
+
var l = o ? it(r.buffer) : r.buffer;
|
|
1109
1137
|
return new r.constructor(l, r.byteOffset, r.byteLength);
|
|
1110
1138
|
}
|
|
1111
|
-
function
|
|
1112
|
-
var
|
|
1113
|
-
return
|
|
1139
|
+
function Mr(r, o, l) {
|
|
1140
|
+
var h = o ? l(Ot(r), !0) : Ot(r);
|
|
1141
|
+
return Et(h, qe, new r.constructor());
|
|
1114
1142
|
}
|
|
1115
|
-
function
|
|
1116
|
-
var
|
|
1117
|
-
return
|
|
1143
|
+
function Fr(r) {
|
|
1144
|
+
var o = new r.constructor(r.source, H.exec(r));
|
|
1145
|
+
return o.lastIndex = r.lastIndex, o;
|
|
1118
1146
|
}
|
|
1119
|
-
function
|
|
1120
|
-
var
|
|
1121
|
-
return
|
|
1147
|
+
function Sr(r, o, l) {
|
|
1148
|
+
var h = o ? l(It(r), !0) : It(r);
|
|
1149
|
+
return Et(h, Je, new r.constructor());
|
|
1122
1150
|
}
|
|
1123
|
-
function
|
|
1124
|
-
return
|
|
1151
|
+
function Dr(r) {
|
|
1152
|
+
return Bt ? Object(Bt.call(r)) : {};
|
|
1125
1153
|
}
|
|
1126
|
-
function
|
|
1127
|
-
var l =
|
|
1154
|
+
function kr(r, o) {
|
|
1155
|
+
var l = o ? it(r.buffer) : r.buffer;
|
|
1128
1156
|
return new r.constructor(l, r.byteOffset, r.length);
|
|
1129
1157
|
}
|
|
1130
|
-
function
|
|
1131
|
-
var l = -1,
|
|
1132
|
-
for (
|
|
1133
|
-
|
|
1134
|
-
return
|
|
1158
|
+
function Nr(r, o) {
|
|
1159
|
+
var l = -1, h = r.length;
|
|
1160
|
+
for (o || (o = Array(h)); ++l < h; )
|
|
1161
|
+
o[l] = r[l];
|
|
1162
|
+
return o;
|
|
1135
1163
|
}
|
|
1136
|
-
function
|
|
1164
|
+
function Yt(r, o, l, h) {
|
|
1137
1165
|
l || (l = {});
|
|
1138
|
-
for (var
|
|
1139
|
-
var
|
|
1140
|
-
|
|
1166
|
+
for (var S = -1, O = o.length; ++S < O; ) {
|
|
1167
|
+
var Z = o[S], I = void 0;
|
|
1168
|
+
Ht(l, Z, I === void 0 ? r[Z] : I);
|
|
1141
1169
|
}
|
|
1142
1170
|
return l;
|
|
1143
1171
|
}
|
|
1144
|
-
function
|
|
1145
|
-
return
|
|
1172
|
+
function Er(r, o) {
|
|
1173
|
+
return Yt(r, Vt(r), o);
|
|
1146
1174
|
}
|
|
1147
|
-
function
|
|
1148
|
-
return
|
|
1175
|
+
function Rr(r) {
|
|
1176
|
+
return _r(r, st, Vt);
|
|
1149
1177
|
}
|
|
1150
|
-
function
|
|
1178
|
+
function Ce(r, o) {
|
|
1151
1179
|
var l = r.__data__;
|
|
1152
|
-
return
|
|
1180
|
+
return Cr(o) ? l[typeof o == "string" ? "string" : "hash"] : l.map;
|
|
1153
1181
|
}
|
|
1154
|
-
function
|
|
1155
|
-
var l = Ln(r,
|
|
1156
|
-
return
|
|
1182
|
+
function ye(r, o) {
|
|
1183
|
+
var l = Ln(r, o);
|
|
1184
|
+
return vr(l) ? l : void 0;
|
|
1157
1185
|
}
|
|
1158
|
-
var
|
|
1159
|
-
(et &&
|
|
1160
|
-
var
|
|
1161
|
-
if (
|
|
1162
|
-
switch (
|
|
1186
|
+
var Vt = Ut ? Xe(Ut, Object) : Vr, se = gr;
|
|
1187
|
+
(et && se(new et(new ArrayBuffer(1))) != de || Me && se(new Me()) != _ || tt && se(tt.resolve()) != N || nt && se(new nt()) != Q || rt && se(new rt()) != b) && (se = function(r) {
|
|
1188
|
+
var o = Le.call(r), l = o == F ? r.constructor : void 0, h = l ? le(l) : void 0;
|
|
1189
|
+
if (h)
|
|
1190
|
+
switch (h) {
|
|
1191
|
+
case Vn:
|
|
1192
|
+
return de;
|
|
1193
|
+
case zn:
|
|
1194
|
+
return _;
|
|
1163
1195
|
case jn:
|
|
1164
|
-
return
|
|
1165
|
-
case $n:
|
|
1166
|
-
return w;
|
|
1196
|
+
return N;
|
|
1167
1197
|
case Kn:
|
|
1168
|
-
return
|
|
1169
|
-
case
|
|
1170
|
-
return
|
|
1171
|
-
case Zn:
|
|
1172
|
-
return E;
|
|
1198
|
+
return Q;
|
|
1199
|
+
case $n:
|
|
1200
|
+
return b;
|
|
1173
1201
|
}
|
|
1174
|
-
return
|
|
1202
|
+
return o;
|
|
1175
1203
|
});
|
|
1176
|
-
function
|
|
1177
|
-
var
|
|
1178
|
-
return
|
|
1204
|
+
function Or(r) {
|
|
1205
|
+
var o = r.length, l = r.constructor(o);
|
|
1206
|
+
return o && typeof r[0] == "string" && re.call(r, "index") && (l.index = r.index, l.input = r.input), l;
|
|
1179
1207
|
}
|
|
1180
1208
|
function Ir(r) {
|
|
1181
|
-
return typeof r.constructor == "function" && !
|
|
1209
|
+
return typeof r.constructor == "function" && !zt(r) ? yr(Pn(r)) : {};
|
|
1182
1210
|
}
|
|
1183
|
-
function Lr(r,
|
|
1184
|
-
var
|
|
1185
|
-
switch (
|
|
1186
|
-
case
|
|
1211
|
+
function Lr(r, o, l, h) {
|
|
1212
|
+
var S = r.constructor;
|
|
1213
|
+
switch (o) {
|
|
1214
|
+
case We:
|
|
1187
1215
|
return it(r);
|
|
1188
1216
|
case d:
|
|
1189
|
-
case
|
|
1190
|
-
return new
|
|
1217
|
+
case y:
|
|
1218
|
+
return new S(+r);
|
|
1219
|
+
case de:
|
|
1220
|
+
return Tr(r, h);
|
|
1221
|
+
case g:
|
|
1222
|
+
case T:
|
|
1223
|
+
case M:
|
|
1224
|
+
case D:
|
|
1225
|
+
case ee:
|
|
1226
|
+
case K:
|
|
1227
|
+
case B:
|
|
1228
|
+
case te:
|
|
1191
1229
|
case ne:
|
|
1192
|
-
return
|
|
1230
|
+
return kr(r, h);
|
|
1193
1231
|
case _:
|
|
1194
|
-
|
|
1195
|
-
case
|
|
1196
|
-
case
|
|
1197
|
-
|
|
1198
|
-
case
|
|
1199
|
-
|
|
1200
|
-
case
|
|
1232
|
+
return Mr(r, h, l);
|
|
1233
|
+
case v:
|
|
1234
|
+
case U:
|
|
1235
|
+
return new S(r);
|
|
1236
|
+
case P:
|
|
1237
|
+
return Fr(r);
|
|
1238
|
+
case Q:
|
|
1239
|
+
return Sr(r, h, l);
|
|
1201
1240
|
case ie:
|
|
1202
|
-
return Er(r, p);
|
|
1203
|
-
case w:
|
|
1204
|
-
return Sr(r, p, l);
|
|
1205
|
-
case x:
|
|
1206
|
-
case S:
|
|
1207
|
-
return new N(r);
|
|
1208
|
-
case M:
|
|
1209
1241
|
return Dr(r);
|
|
1210
|
-
case T:
|
|
1211
|
-
return Nr(r, p, l);
|
|
1212
|
-
case U:
|
|
1213
|
-
return kr(r);
|
|
1214
1242
|
}
|
|
1215
1243
|
}
|
|
1216
|
-
function
|
|
1217
|
-
return
|
|
1218
|
-
}
|
|
1219
|
-
function Ur(r) {
|
|
1220
|
-
var s = typeof r;
|
|
1221
|
-
return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? r !== "__proto__" : r === null;
|
|
1244
|
+
function Gr(r, o) {
|
|
1245
|
+
return o = o ?? i, !!o && (typeof r == "number" || V.test(r)) && r > -1 && r % 1 == 0 && r < o;
|
|
1222
1246
|
}
|
|
1223
1247
|
function Cr(r) {
|
|
1224
|
-
|
|
1248
|
+
var o = typeof r;
|
|
1249
|
+
return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? r !== "__proto__" : r === null;
|
|
1225
1250
|
}
|
|
1226
|
-
function
|
|
1227
|
-
|
|
1251
|
+
function Ar(r) {
|
|
1252
|
+
return !!Lt && Lt in r;
|
|
1253
|
+
}
|
|
1254
|
+
function zt(r) {
|
|
1255
|
+
var o = r && r.constructor, l = typeof o == "function" && o.prototype || Ie;
|
|
1228
1256
|
return r === l;
|
|
1229
1257
|
}
|
|
1230
|
-
function
|
|
1258
|
+
function le(r) {
|
|
1231
1259
|
if (r != null) {
|
|
1232
1260
|
try {
|
|
1233
|
-
return
|
|
1261
|
+
return Gt.call(r);
|
|
1234
1262
|
} catch {
|
|
1235
1263
|
}
|
|
1236
1264
|
try {
|
|
@@ -1240,53 +1268,53 @@ Ye.exports;
|
|
|
1240
1268
|
}
|
|
1241
1269
|
return "";
|
|
1242
1270
|
}
|
|
1243
|
-
function
|
|
1271
|
+
function Pr(r) {
|
|
1244
1272
|
return at(r, !0, !0);
|
|
1245
1273
|
}
|
|
1246
|
-
function
|
|
1247
|
-
return r ===
|
|
1274
|
+
function jt(r, o) {
|
|
1275
|
+
return r === o || r !== r && o !== o;
|
|
1248
1276
|
}
|
|
1249
|
-
function
|
|
1250
|
-
return
|
|
1277
|
+
function Ur(r) {
|
|
1278
|
+
return br(r) && re.call(r, "callee") && (!bn.call(r, "callee") || Le.call(r) == s);
|
|
1251
1279
|
}
|
|
1252
1280
|
var ot = Array.isArray;
|
|
1253
|
-
function
|
|
1254
|
-
return r != null &&
|
|
1281
|
+
function Kt(r) {
|
|
1282
|
+
return r != null && Hr(r.length) && !$t(r);
|
|
1255
1283
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return
|
|
1284
|
+
function br(r) {
|
|
1285
|
+
return Yr(r) && Kt(r);
|
|
1258
1286
|
}
|
|
1259
|
-
var
|
|
1260
|
-
function
|
|
1261
|
-
var
|
|
1262
|
-
return
|
|
1287
|
+
var Br = Hn || zr;
|
|
1288
|
+
function $t(r) {
|
|
1289
|
+
var o = Ae(r) ? Le.call(r) : "";
|
|
1290
|
+
return o == u || o == f;
|
|
1263
1291
|
}
|
|
1264
|
-
function
|
|
1292
|
+
function Hr(r) {
|
|
1265
1293
|
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= i;
|
|
1266
1294
|
}
|
|
1267
|
-
function
|
|
1268
|
-
var
|
|
1269
|
-
return !!r && (
|
|
1295
|
+
function Ae(r) {
|
|
1296
|
+
var o = typeof r;
|
|
1297
|
+
return !!r && (o == "object" || o == "function");
|
|
1270
1298
|
}
|
|
1271
|
-
function
|
|
1299
|
+
function Yr(r) {
|
|
1272
1300
|
return !!r && typeof r == "object";
|
|
1273
1301
|
}
|
|
1274
1302
|
function st(r) {
|
|
1275
|
-
return
|
|
1303
|
+
return Kt(r) ? hr(r) : wr(r);
|
|
1276
1304
|
}
|
|
1277
|
-
function
|
|
1305
|
+
function Vr() {
|
|
1278
1306
|
return [];
|
|
1279
1307
|
}
|
|
1280
|
-
function
|
|
1308
|
+
function zr() {
|
|
1281
1309
|
return !1;
|
|
1282
1310
|
}
|
|
1283
|
-
e.exports =
|
|
1311
|
+
e.exports = Pr;
|
|
1284
1312
|
})(Ye, Ye.exports);
|
|
1285
1313
|
Ye.exports;
|
|
1286
|
-
const
|
|
1287
|
-
class
|
|
1314
|
+
const X = (e, t) => new Date(e.getTime() - Za(t, e));
|
|
1315
|
+
class k {
|
|
1288
1316
|
constructor(t) {
|
|
1289
|
-
|
|
1317
|
+
G(this, "timeframeText"), G(this, "key"), G(this, "display"), G(this, "timeframeLength"), G(this, "allowedTiers"), G(this, "defaultResponseGranularity"), G(this, "dataGranularity"), G(this, "isRelative"), G(this, "fineGrainedDefaultGranularity"), G(this, "_startCustom"), G(this, "_endCustom"), G(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;
|
|
1290
1318
|
}
|
|
1291
1319
|
// rawEnd does not consider granularity and should not be used directly in queries.
|
|
1292
1320
|
// Use `new QueryTime(timeframe, granularity?).queryEndSeconds()` instead.
|
|
@@ -1336,71 +1364,71 @@ class O {
|
|
|
1336
1364
|
if (!t)
|
|
1337
1365
|
return /* @__PURE__ */ new Date();
|
|
1338
1366
|
const n = Wa(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
1339
|
-
return
|
|
1367
|
+
return $a(n, t);
|
|
1340
1368
|
}
|
|
1341
1369
|
}
|
|
1342
|
-
class
|
|
1370
|
+
class qa extends k {
|
|
1343
1371
|
rawStart(t) {
|
|
1344
|
-
let n =
|
|
1345
|
-
return t && (n =
|
|
1372
|
+
let n = He(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
1373
|
+
return t && (n = X(n, t)), n;
|
|
1346
1374
|
}
|
|
1347
1375
|
maximumTimeframeLength() {
|
|
1348
1376
|
return 60 * 60 * 24 * 7;
|
|
1349
1377
|
}
|
|
1350
1378
|
}
|
|
1351
|
-
class
|
|
1379
|
+
class Ja extends k {
|
|
1352
1380
|
rawStart(t) {
|
|
1353
1381
|
let n = we(this.tzAdjustedDate(t));
|
|
1354
|
-
return t && (n =
|
|
1382
|
+
return t && (n = X(n, t)), n;
|
|
1355
1383
|
}
|
|
1356
1384
|
maximumTimeframeLength() {
|
|
1357
1385
|
return 60 * 60 * 24 * 31;
|
|
1358
1386
|
}
|
|
1359
1387
|
}
|
|
1360
|
-
class
|
|
1388
|
+
class Xa extends k {
|
|
1361
1389
|
rawStart(t) {
|
|
1362
1390
|
let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
|
|
1363
|
-
return t && (n =
|
|
1391
|
+
return t && (n = X(n, t)), n;
|
|
1364
1392
|
}
|
|
1365
1393
|
maximumTimeframeLength() {
|
|
1366
1394
|
return 60 * 60 * 24 * 366;
|
|
1367
1395
|
}
|
|
1368
1396
|
}
|
|
1369
|
-
class
|
|
1397
|
+
class Qa extends k {
|
|
1370
1398
|
rawEnd(t) {
|
|
1371
|
-
let n =
|
|
1372
|
-
return t && (n =
|
|
1399
|
+
let n = He(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
1400
|
+
return t && (n = X(n, t)), n;
|
|
1373
1401
|
}
|
|
1374
1402
|
rawStart(t) {
|
|
1375
1403
|
const n = this.tzAdjustedDate(t);
|
|
1376
|
-
let a =
|
|
1404
|
+
let a = He(n.setDate(n.getDate() - 7), {
|
|
1377
1405
|
weekStartsOn: 1
|
|
1378
1406
|
});
|
|
1379
|
-
return t && (a =
|
|
1407
|
+
return t && (a = X(a, t)), a;
|
|
1380
1408
|
}
|
|
1381
1409
|
}
|
|
1382
|
-
class
|
|
1410
|
+
class ei extends k {
|
|
1383
1411
|
rawEnd(t) {
|
|
1384
1412
|
let n = we(this.tzAdjustedDate(t));
|
|
1385
|
-
return t && (n =
|
|
1413
|
+
return t && (n = X(n, t)), n;
|
|
1386
1414
|
}
|
|
1387
1415
|
rawStart(t) {
|
|
1388
|
-
let n = we(
|
|
1389
|
-
return t && (n =
|
|
1416
|
+
let n = we(Dn(this.tzAdjustedDate(t)));
|
|
1417
|
+
return t && (n = X(n, t)), n;
|
|
1390
1418
|
}
|
|
1391
1419
|
}
|
|
1392
|
-
class
|
|
1420
|
+
class ti extends k {
|
|
1393
1421
|
rawEnd(t) {
|
|
1394
1422
|
let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
|
|
1395
|
-
return t && (n =
|
|
1423
|
+
return t && (n = X(n, t)), n;
|
|
1396
1424
|
}
|
|
1397
1425
|
rawStart(t) {
|
|
1398
1426
|
let n = new Date(this.tzAdjustedDate(t).getFullYear() - 1, 0, 1);
|
|
1399
|
-
return t && (n =
|
|
1427
|
+
return t && (n = X(n, t)), n;
|
|
1400
1428
|
}
|
|
1401
1429
|
}
|
|
1402
|
-
|
|
1403
|
-
key:
|
|
1430
|
+
p.FIFTEEN_MIN, new k({
|
|
1431
|
+
key: p.FIFTEEN_MIN,
|
|
1404
1432
|
display: "Last 15 minutes",
|
|
1405
1433
|
timeframeText: "15 minutes",
|
|
1406
1434
|
timeframeLength: () => 60 * 15,
|
|
@@ -1410,8 +1438,8 @@ h.FIFTEEN_MIN, new O({
|
|
|
1410
1438
|
fineGrainedDefaultGranularity: "thirtySecondly",
|
|
1411
1439
|
allowedTiers: ["free", "trial", "plus", "enterprise"],
|
|
1412
1440
|
allowedGranularitiesOverride: ["tenSecondly", "thirtySecondly", "minutely"]
|
|
1413
|
-
}),
|
|
1414
|
-
key:
|
|
1441
|
+
}), p.ONE_HOUR, new k({
|
|
1442
|
+
key: p.ONE_HOUR,
|
|
1415
1443
|
display: "Last hour",
|
|
1416
1444
|
timeframeText: "One hour",
|
|
1417
1445
|
timeframeLength: () => 60 * 60 * 1,
|
|
@@ -1421,8 +1449,8 @@ h.FIFTEEN_MIN, new O({
|
|
|
1421
1449
|
fineGrainedDefaultGranularity: "minutely",
|
|
1422
1450
|
allowedTiers: ["free", "trial", "plus", "enterprise"],
|
|
1423
1451
|
allowedGranularitiesOverride: ["tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely"]
|
|
1424
|
-
}),
|
|
1425
|
-
key:
|
|
1452
|
+
}), p.SIX_HOUR, new k({
|
|
1453
|
+
key: p.SIX_HOUR,
|
|
1426
1454
|
display: "Last 6 hours",
|
|
1427
1455
|
timeframeText: "6 hours",
|
|
1428
1456
|
timeframeLength: () => 60 * 60 * 6,
|
|
@@ -1432,8 +1460,8 @@ h.FIFTEEN_MIN, new O({
|
|
|
1432
1460
|
fineGrainedDefaultGranularity: "fiveMinutely",
|
|
1433
1461
|
allowedTiers: ["free", "trial", "plus", "enterprise"],
|
|
1434
1462
|
allowedGranularitiesOverride: ["thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
|
|
1435
|
-
}),
|
|
1436
|
-
key:
|
|
1463
|
+
}), p.TWELVE_HOUR, new k({
|
|
1464
|
+
key: p.TWELVE_HOUR,
|
|
1437
1465
|
display: "Last 12 hours",
|
|
1438
1466
|
timeframeText: "12 hours",
|
|
1439
1467
|
timeframeLength: () => 60 * 60 * 12,
|
|
@@ -1443,8 +1471,8 @@ h.FIFTEEN_MIN, new O({
|
|
|
1443
1471
|
fineGrainedDefaultGranularity: "tenMinutely",
|
|
1444
1472
|
allowedTiers: ["free", "trial", "plus", "enterprise"],
|
|
1445
1473
|
allowedGranularitiesOverride: ["minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
|
|
1446
|
-
}),
|
|
1447
|
-
key:
|
|
1474
|
+
}), p.ONE_DAY, new k({
|
|
1475
|
+
key: p.ONE_DAY,
|
|
1448
1476
|
display: "Last 24 hours",
|
|
1449
1477
|
timeframeText: "24 hours",
|
|
1450
1478
|
timeframeLength: () => 60 * 60 * 24,
|
|
@@ -1454,8 +1482,8 @@ h.FIFTEEN_MIN, new O({
|
|
|
1454
1482
|
fineGrainedDefaultGranularity: "thirtyMinutely",
|
|
1455
1483
|
allowedTiers: ["free", "trial", "plus", "enterprise"],
|
|
1456
1484
|
allowedGranularitiesOverride: ["fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
|
|
1457
|
-
}),
|
|
1458
|
-
key:
|
|
1485
|
+
}), p.SEVEN_DAY, new k({
|
|
1486
|
+
key: p.SEVEN_DAY,
|
|
1459
1487
|
display: "Last 7 days",
|
|
1460
1488
|
timeframeText: "7 days",
|
|
1461
1489
|
timeframeLength: () => 60 * 60 * 24 * 7,
|
|
@@ -1465,8 +1493,8 @@ h.FIFTEEN_MIN, new O({
|
|
|
1465
1493
|
fineGrainedDefaultGranularity: "twoHourly",
|
|
1466
1494
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
1467
1495
|
allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
|
|
1468
|
-
}),
|
|
1469
|
-
key:
|
|
1496
|
+
}), p.THIRTY_DAY, new k({
|
|
1497
|
+
key: p.THIRTY_DAY,
|
|
1470
1498
|
display: "Last 30 days",
|
|
1471
1499
|
timeframeText: "30 days",
|
|
1472
1500
|
timeframeLength: () => 60 * 60 * 24 * 30,
|
|
@@ -1476,8 +1504,8 @@ h.FIFTEEN_MIN, new O({
|
|
|
1476
1504
|
fineGrainedDefaultGranularity: "twelveHourly",
|
|
1477
1505
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
1478
1506
|
allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
|
|
1479
|
-
}),
|
|
1480
|
-
key:
|
|
1507
|
+
}), p.NINETY_DAY, new k({
|
|
1508
|
+
key: p.NINETY_DAY,
|
|
1481
1509
|
display: "Last 90 days",
|
|
1482
1510
|
timeframeText: "90 days",
|
|
1483
1511
|
timeframeLength: () => 60 * 60 * 24 * 90,
|
|
@@ -1487,8 +1515,8 @@ h.FIFTEEN_MIN, new O({
|
|
|
1487
1515
|
fineGrainedDefaultGranularity: "daily",
|
|
1488
1516
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
1489
1517
|
allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
|
|
1490
|
-
}),
|
|
1491
|
-
key:
|
|
1518
|
+
}), p.ONE_HUNDRED_EIGHTY_DAY, new k({
|
|
1519
|
+
key: p.ONE_HUNDRED_EIGHTY_DAY,
|
|
1492
1520
|
display: "Last 180 days",
|
|
1493
1521
|
timeframeText: "180 days",
|
|
1494
1522
|
timeframeLength: () => 60 * 60 * 24 * 180,
|
|
@@ -1498,8 +1526,8 @@ h.FIFTEEN_MIN, new O({
|
|
|
1498
1526
|
fineGrainedDefaultGranularity: "daily",
|
|
1499
1527
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
1500
1528
|
allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
|
|
1501
|
-
}),
|
|
1502
|
-
key:
|
|
1529
|
+
}), p.ONE_YEAR, new k({
|
|
1530
|
+
key: p.ONE_YEAR,
|
|
1503
1531
|
display: "Last 365 days",
|
|
1504
1532
|
timeframeText: "365 days",
|
|
1505
1533
|
timeframeLength: () => 60 * 60 * 24 * 365,
|
|
@@ -1509,13 +1537,13 @@ h.FIFTEEN_MIN, new O({
|
|
|
1509
1537
|
fineGrainedDefaultGranularity: "daily",
|
|
1510
1538
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
1511
1539
|
allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
|
|
1512
|
-
}),
|
|
1513
|
-
key:
|
|
1540
|
+
}), p.CURRENT_WEEK, new qa({
|
|
1541
|
+
key: p.CURRENT_WEEK,
|
|
1514
1542
|
display: "This week",
|
|
1515
1543
|
timeframeText: "Week",
|
|
1516
1544
|
timeframeLength: () => {
|
|
1517
|
-
const e =
|
|
1518
|
-
return (mt(
|
|
1545
|
+
const e = He(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
|
|
1546
|
+
return (dt(mt(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
1519
1547
|
},
|
|
1520
1548
|
defaultResponseGranularity: "daily",
|
|
1521
1549
|
dataGranularity: "daily",
|
|
@@ -1523,32 +1551,32 @@ h.FIFTEEN_MIN, new O({
|
|
|
1523
1551
|
fineGrainedDefaultGranularity: "twoHourly",
|
|
1524
1552
|
allowedTiers: ["plus", "enterprise"],
|
|
1525
1553
|
allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
|
|
1526
|
-
}),
|
|
1527
|
-
key:
|
|
1554
|
+
}), p.CURRENT_MONTH, new Ja({
|
|
1555
|
+
key: p.CURRENT_MONTH,
|
|
1528
1556
|
display: "This month",
|
|
1529
1557
|
timeframeText: "Month",
|
|
1530
1558
|
timeframeLength: () => {
|
|
1531
1559
|
const e = we(/* @__PURE__ */ new Date());
|
|
1532
|
-
return (mt(
|
|
1560
|
+
return (dt(mt(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
1533
1561
|
},
|
|
1534
1562
|
defaultResponseGranularity: "daily",
|
|
1535
1563
|
dataGranularity: "daily",
|
|
1536
1564
|
isRelative: !1,
|
|
1537
1565
|
allowedTiers: ["plus", "enterprise"]
|
|
1538
|
-
}),
|
|
1539
|
-
key:
|
|
1566
|
+
}), p.CURRENT_YEAR, new Xa({
|
|
1567
|
+
key: p.CURRENT_YEAR,
|
|
1540
1568
|
display: "This year",
|
|
1541
1569
|
timeframeText: "Year",
|
|
1542
1570
|
timeframeLength: () => {
|
|
1543
1571
|
const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1);
|
|
1544
|
-
return (mt(
|
|
1572
|
+
return (dt(mt(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
1545
1573
|
},
|
|
1546
1574
|
defaultResponseGranularity: "daily",
|
|
1547
1575
|
dataGranularity: "daily",
|
|
1548
1576
|
isRelative: !1,
|
|
1549
1577
|
allowedTiers: ["plus", "enterprise"]
|
|
1550
|
-
}),
|
|
1551
|
-
key:
|
|
1578
|
+
}), p.PREVIOUS_WEEK, new Qa({
|
|
1579
|
+
key: p.PREVIOUS_WEEK,
|
|
1552
1580
|
display: "Previous week",
|
|
1553
1581
|
timeframeText: "Week",
|
|
1554
1582
|
timeframeLength: () => 60 * 60 * 24 * 7,
|
|
@@ -1558,218 +1586,106 @@ h.FIFTEEN_MIN, new O({
|
|
|
1558
1586
|
fineGrainedDefaultGranularity: "twoHourly",
|
|
1559
1587
|
allowedTiers: ["plus", "enterprise"],
|
|
1560
1588
|
allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
|
|
1561
|
-
}),
|
|
1562
|
-
key:
|
|
1589
|
+
}), p.PREVIOUS_MONTH, new ei({
|
|
1590
|
+
key: p.PREVIOUS_MONTH,
|
|
1563
1591
|
display: "Previous month",
|
|
1564
1592
|
timeframeText: "Month",
|
|
1565
1593
|
timeframeLength: () => {
|
|
1566
1594
|
let e = 0;
|
|
1567
|
-
const t = we(/* @__PURE__ */ new Date()), n = we(
|
|
1568
|
-
return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e =
|
|
1595
|
+
const t = we(/* @__PURE__ */ new Date()), n = we(Dn(/* @__PURE__ */ new Date()));
|
|
1596
|
+
return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = mn(t, n)), 60 * 60 * 24 * ka((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + tn(e);
|
|
1569
1597
|
},
|
|
1570
1598
|
defaultResponseGranularity: "daily",
|
|
1571
1599
|
dataGranularity: "daily",
|
|
1572
1600
|
isRelative: !1,
|
|
1573
1601
|
allowedTiers: ["plus", "enterprise"]
|
|
1574
|
-
}),
|
|
1575
|
-
key:
|
|
1602
|
+
}), p.PREVIOUS_YEAR, new ti({
|
|
1603
|
+
key: p.PREVIOUS_YEAR,
|
|
1576
1604
|
display: "Previous year",
|
|
1577
1605
|
timeframeText: "Year",
|
|
1578
1606
|
timeframeLength: () => {
|
|
1579
1607
|
const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1), t = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1);
|
|
1580
1608
|
let n = 0;
|
|
1581
|
-
return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n =
|
|
1609
|
+
return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n = mn(e, t)), 60 * 60 * 24 * (365 + (t.getFullYear() % 4 === 0 ? 1 : 0)) + tn(n);
|
|
1582
1610
|
},
|
|
1583
1611
|
defaultResponseGranularity: "daily",
|
|
1584
1612
|
dataGranularity: "daily",
|
|
1585
1613
|
isRelative: !1,
|
|
1586
1614
|
allowedTiers: ["plus", "enterprise"]
|
|
1587
1615
|
});
|
|
1588
|
-
function
|
|
1589
|
-
return
|
|
1590
|
-
}
|
|
1591
|
-
h.FIFTEEN_MIN, h.ONE_HOUR, h.SIX_HOUR, h.TWELVE_HOUR, h.ONE_DAY, h.SEVEN_DAY, h.FIFTEEN_MIN, h.ONE_HOUR, h.SIX_HOUR, h.TWELVE_HOUR, h.ONE_DAY, h.SEVEN_DAY, h.THIRTY_DAY, h.NINETY_DAY, h.ONE_HUNDRED_EIGHTY_DAY, h.ONE_YEAR, h.CURRENT_WEEK, h.CURRENT_MONTH, h.CURRENT_YEAR, h.PREVIOUS_WEEK, h.PREVIOUS_MONTH, h.PREVIOUS_YEAR;
|
|
1592
|
-
new Map(Nt.map((e) => [e.code, { code: e.code, name: e.name }]));
|
|
1593
|
-
var Rn = { exports: {} };
|
|
1594
|
-
(function(e) {
|
|
1595
|
-
(function() {
|
|
1596
|
-
function t(m, c) {
|
|
1597
|
-
if (c.separator === !1 || m < 1e3)
|
|
1598
|
-
return m.toString();
|
|
1599
|
-
var y = typeof c.separator == "string" ? c.separator : ",", w = [], x = Math.round(m).toString().split("");
|
|
1600
|
-
return x.reverse().forEach(function(k, P) {
|
|
1601
|
-
P && P % 3 === 0 && w.push(y), w.push(k);
|
|
1602
|
-
}), w.reverse().join("");
|
|
1603
|
-
}
|
|
1604
|
-
function n(m, c, y) {
|
|
1605
|
-
var w = m / c, x = y.round ? "round" : "floor";
|
|
1606
|
-
return y.decimal === !1 ? (m = Math[x](w), m.toString()) : (y.precision ? m = w : m = w < 10 ? Math[x](w * 10) / 10 : Math[x](w), m = m.toString(), typeof y.decimal == "string" && (m = m.replace(".", y.decimal)), m);
|
|
1607
|
-
}
|
|
1608
|
-
var a = 1e3, i = 1e4, o = 1e6, u = 1e9, d = 1e12;
|
|
1609
|
-
function f(m, c) {
|
|
1610
|
-
var y;
|
|
1611
|
-
c = c || {};
|
|
1612
|
-
var w = m < 0;
|
|
1613
|
-
w && (m = Math.abs(m)), c.precision && (m = parseFloat(m.toPrecision(c.precision)));
|
|
1614
|
-
var x = c.min10k ? i : a;
|
|
1615
|
-
return m < x || c.precision && c.precision > Math.log10(m) ? y = t(n(m, 1, c), c) : m < o ? y = n(m, a, c) + "k" : m < u ? y = n(m, o, c) + "m" : m < d ? y = t(n(m, u, c), c) + "b" : y = t(n(m, d, c), c) + "t", w && (y = "-" + y), c.capital && (y = y.toUpperCase()), c.prefix && (y = c.prefix + y), c.suffix && (y = y + c.suffix), y;
|
|
1616
|
-
}
|
|
1617
|
-
f.addCommas = t, e.exports = f;
|
|
1618
|
-
})();
|
|
1619
|
-
})(Rn);
|
|
1620
|
-
var ri = Rn.exports;
|
|
1621
|
-
const gt = /* @__PURE__ */ qa(ri);
|
|
1622
|
-
var yn;
|
|
1623
|
-
const wt = new Intl.NumberFormat(((yn = document == null ? void 0 : document.documentElement) == null ? void 0 : yn.lang) || "en-US");
|
|
1624
|
-
function ai({
|
|
1625
|
-
i18n: e
|
|
1626
|
-
}) {
|
|
1627
|
-
const t = (a, i) => {
|
|
1628
|
-
if (isNaN(a))
|
|
1629
|
-
return "0 B";
|
|
1630
|
-
const o = i ? Math.pow(2, 50) : 1e15, u = i ? Math.pow(2, 40) : 1e12, d = i ? Math.pow(2, 30) : 1e9, f = i ? Math.pow(2, 20) : 1e6, m = i ? Math.pow(2, 10) : 1e3;
|
|
1631
|
-
let c;
|
|
1632
|
-
return a >= o ? c = e.formatNumber(
|
|
1633
|
-
Number.parseFloat((a / o).toPrecision(3)),
|
|
1634
|
-
{ style: "unit", unit: "petabyte", unitDisplay: "narrow" }
|
|
1635
|
-
) : a >= u ? c = e.formatNumber(
|
|
1636
|
-
Number.parseFloat((a / u).toPrecision(3)),
|
|
1637
|
-
{ style: "unit", unit: "terabyte", unitDisplay: "narrow" }
|
|
1638
|
-
) : a >= d ? c = e.formatNumber(
|
|
1639
|
-
Number.parseFloat((a / d).toPrecision(3)),
|
|
1640
|
-
{ style: "unit", unit: "gigabyte", unitDisplay: "narrow" }
|
|
1641
|
-
) : a >= f ? c = e.formatNumber(
|
|
1642
|
-
Number.parseFloat((a / f).toPrecision(3)),
|
|
1643
|
-
{ style: "unit", unit: "megabyte", unitDisplay: "narrow" }
|
|
1644
|
-
) : a >= m ? c = e.formatNumber(
|
|
1645
|
-
Number.parseFloat((a / m).toPrecision(3)),
|
|
1646
|
-
{ style: "unit", unit: "kilobyte", unitDisplay: "narrow" }
|
|
1647
|
-
) : c = e.formatNumber(
|
|
1648
|
-
Number.parseFloat(a.toPrecision(3)),
|
|
1649
|
-
{ style: "unit", unit: "byte", unitDisplay: "narrow" }
|
|
1650
|
-
), c.replace(/([a-zA-Z]*)$/, " $1");
|
|
1651
|
-
}, 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))}`;
|
|
1652
|
-
return { formatUnit: (a, i, {
|
|
1653
|
-
isBytes1024: o = !1,
|
|
1654
|
-
currency: u = "USD",
|
|
1655
|
-
approximate: d = !1,
|
|
1656
|
-
translateUnit: f = (m) => m
|
|
1657
|
-
} = {}) => {
|
|
1658
|
-
const m = f(i, a);
|
|
1659
|
-
switch (i) {
|
|
1660
|
-
case "bytes":
|
|
1661
|
-
return t(a, o);
|
|
1662
|
-
case "usd":
|
|
1663
|
-
return n(a, u);
|
|
1664
|
-
case "ms":
|
|
1665
|
-
case "count/minute":
|
|
1666
|
-
case "token count":
|
|
1667
|
-
case "count":
|
|
1668
|
-
default:
|
|
1669
|
-
return isNaN(a) ? `${a}` : d ? `${gt(a, { capital: !0 })} ${m}` : a >= 0.01 ? `${wt.format(Number.parseFloat(a.toFixed(2)))} ${m}` : `${Number.parseFloat(a.toPrecision(4))} ${m}`;
|
|
1670
|
-
}
|
|
1671
|
-
}, formatBytes: t, formatCost: n, formatRange: (a, i, o, {
|
|
1672
|
-
isBytes1024: u = !1,
|
|
1673
|
-
currency: d = "USD",
|
|
1674
|
-
approximate: f = !1,
|
|
1675
|
-
translateUnit: m = (c) => c
|
|
1676
|
-
} = {}) => {
|
|
1677
|
-
const c = m(o, i);
|
|
1678
|
-
switch (o) {
|
|
1679
|
-
case "bytes":
|
|
1680
|
-
return `${t(a, u)} - ${t(i, u)}`;
|
|
1681
|
-
case "usd":
|
|
1682
|
-
return `${n(a, d)} - ${n(i, d)}`;
|
|
1683
|
-
case "ms":
|
|
1684
|
-
case "count/minute":
|
|
1685
|
-
case "token count":
|
|
1686
|
-
case "count":
|
|
1687
|
-
default:
|
|
1688
|
-
if (isNaN(a) || isNaN(i))
|
|
1689
|
-
return `${a} - ${i}`;
|
|
1690
|
-
if (f)
|
|
1691
|
-
return `${gt(a, { capital: !0 })} - ${gt(i, { capital: !0 })} ${c}`;
|
|
1692
|
-
}
|
|
1693
|
-
const y = a >= 0.01 ? `${wt.format(Number.parseFloat(a.toFixed(2)))}` : `${Number.parseFloat(a.toPrecision(4))}`, w = i >= 0.01 ? `${wt.format(Number.parseFloat(i.toFixed(2)))}` : `${Number.parseFloat(i.toPrecision(4))}`;
|
|
1694
|
-
return `${y} - ${w} ${c}`;
|
|
1695
|
-
} };
|
|
1616
|
+
function mn(e, t) {
|
|
1617
|
+
return Na(e.getTimezoneOffset() - t.getTimezoneOffset());
|
|
1696
1618
|
}
|
|
1697
|
-
|
|
1619
|
+
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_YEAR, p.PREVIOUS_WEEK, p.PREVIOUS_MONTH, p.PREVIOUS_YEAR;
|
|
1620
|
+
new Map(Mt.map((e) => [e.code, { code: e.code, name: e.name }]));
|
|
1621
|
+
const ke = "#e0e4ea", ni = "#828a9e", ri = "32px", fn = 5, _t = [
|
|
1698
1622
|
"#00819d",
|
|
1699
1623
|
"#00abd2",
|
|
1700
1624
|
"#00c8f4",
|
|
1701
1625
|
"#67e3ff",
|
|
1702
1626
|
"#b3f1ff"
|
|
1703
|
-
],
|
|
1627
|
+
], ai = (e, t) => {
|
|
1704
1628
|
const n = e.length;
|
|
1705
1629
|
if (!n)
|
|
1706
1630
|
return NaN;
|
|
1707
|
-
const a = (n - 1) * t, i = Math.floor(a),
|
|
1708
|
-
return i ===
|
|
1709
|
-
},
|
|
1631
|
+
const a = (n - 1) * t, i = Math.floor(a), s = Math.ceil(a);
|
|
1632
|
+
return i === s ? e[i] : e[i] + (a - i) * (e[s] - e[i]);
|
|
1633
|
+
}, gt = (e, t) => {
|
|
1710
1634
|
if (e.length === 0)
|
|
1711
1635
|
return [];
|
|
1712
|
-
const n = e.filter((d) => d > 0).map(Math.log).sort((d,
|
|
1713
|
-
return Array.from({ length: t }, (d,
|
|
1636
|
+
const n = e.filter((d) => d > 0).map(Math.log).sort((d, y) => d - y), a = Math.min(...n), s = (Math.max(...n) - a) / t;
|
|
1637
|
+
return Array.from({ length: t }, (d, y) => a + y * s).map((d) => Math.exp(d)).reverse();
|
|
1714
1638
|
};
|
|
1715
|
-
function
|
|
1639
|
+
function ii({
|
|
1716
1640
|
countryMetrics: e,
|
|
1717
|
-
metric: t
|
|
1718
|
-
unit: n
|
|
1641
|
+
metric: t
|
|
1719
1642
|
}) {
|
|
1720
|
-
const
|
|
1721
|
-
const
|
|
1722
|
-
for (const
|
|
1723
|
-
|
|
1724
|
-
return
|
|
1725
|
-
}),
|
|
1726
|
-
var
|
|
1727
|
-
return !((
|
|
1728
|
-
}),
|
|
1729
|
-
const
|
|
1730
|
-
if (
|
|
1731
|
-
const
|
|
1732
|
-
return
|
|
1643
|
+
const n = C(() => {
|
|
1644
|
+
const f = { ...e.value };
|
|
1645
|
+
for (const _ of Object.keys(f))
|
|
1646
|
+
Mt.find((v) => v.code === _) || delete f[_];
|
|
1647
|
+
return f;
|
|
1648
|
+
}), a = C(() => Object.values(n.value)), i = C(() => Object.keys(n.value).length), s = C(() => i.value < fn - 1 ? i.value : fn), c = C(() => {
|
|
1649
|
+
var f;
|
|
1650
|
+
return !((f = t.value) != null && f.includes("latency"));
|
|
1651
|
+
}), d = C(() => {
|
|
1652
|
+
const f = [];
|
|
1653
|
+
if (a.value.length > 10) {
|
|
1654
|
+
const _ = [...a.value].sort((U, ie) => U - ie), v = ai(_, 0.75), F = a.value.filter((U) => U >= v), N = a.value.filter((U) => U < v), P = gt(F, 3), Q = gt(N, 2);
|
|
1655
|
+
return f.push(...P, ...Q), f;
|
|
1733
1656
|
}
|
|
1734
|
-
return
|
|
1735
|
-
}),
|
|
1736
|
-
color:
|
|
1737
|
-
range:
|
|
1738
|
-
}] :
|
|
1739
|
-
const
|
|
1740
|
-
let
|
|
1741
|
-
return
|
|
1742
|
-
color:
|
|
1743
|
-
range:
|
|
1657
|
+
return gt(a.value, s.value);
|
|
1658
|
+
}), y = C(() => a.value.length === 1 ? [{
|
|
1659
|
+
color: m(a.value[0]),
|
|
1660
|
+
range: u(a.value[0])
|
|
1661
|
+
}] : d.value.map((f, _) => {
|
|
1662
|
+
const v = _ === 0 ? Math.max(...d.value) : d.value[_ - 1], F = f, N = v;
|
|
1663
|
+
let P = "";
|
|
1664
|
+
return _ === 0 ? P = `> ${u(F)}` : _ === d.value.length - 1 ? P = `< ${u(N)}` : P = `${u(F)} - ${u(N)}`, {
|
|
1665
|
+
color: m(F),
|
|
1666
|
+
range: P
|
|
1744
1667
|
};
|
|
1745
|
-
})),
|
|
1746
|
-
if (
|
|
1668
|
+
})), m = (f) => {
|
|
1669
|
+
if (f === 0)
|
|
1747
1670
|
return ke;
|
|
1748
|
-
const
|
|
1749
|
-
return
|
|
1750
|
-
},
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
}), P = (M, T, {
|
|
1756
|
-
showUnit: S = !0
|
|
1757
|
-
} = {}) => o(M, T, n.value, {
|
|
1758
|
-
approximate: c.value,
|
|
1759
|
-
translateUnit: (U) => S ? a.t(`metricUnits.${U}`, { plural: T > 1 ? "s" : "" }) : ""
|
|
1760
|
-
});
|
|
1671
|
+
const _ = d.value.findIndex((v) => f >= v);
|
|
1672
|
+
return _ === -1 ? _t[_t.length - 1] : _t[_] ?? ke;
|
|
1673
|
+
}, u = (f) => {
|
|
1674
|
+
var v;
|
|
1675
|
+
const _ = Math.trunc(f);
|
|
1676
|
+
return c.value ? da(_, { capital: !0 }) : new Intl.NumberFormat(((v = document == null ? void 0 : document.documentElement) == null ? void 0 : v.lang) || "en-US").format(_);
|
|
1677
|
+
};
|
|
1761
1678
|
return {
|
|
1762
|
-
getColor:
|
|
1763
|
-
formatMetric:
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
scale: y
|
|
1679
|
+
getColor: m,
|
|
1680
|
+
formatMetric: u,
|
|
1681
|
+
legendData: y,
|
|
1682
|
+
scale: d
|
|
1767
1683
|
};
|
|
1768
1684
|
}
|
|
1769
|
-
const
|
|
1770
|
-
useI18n:
|
|
1771
|
-
useMetricUtils:
|
|
1772
|
-
},
|
|
1685
|
+
const hn = {
|
|
1686
|
+
useI18n: ua,
|
|
1687
|
+
useMetricUtils: ii
|
|
1688
|
+
}, oi = "FeatureCollection", si = [
|
|
1773
1689
|
{
|
|
1774
1690
|
type: "Feature",
|
|
1775
1691
|
properties: {
|
|
@@ -4201,14 +4117,11 @@ const Tt = {
|
|
|
4201
4117
|
]
|
|
4202
4118
|
}
|
|
4203
4119
|
}
|
|
4204
|
-
],
|
|
4205
|
-
type:
|
|
4206
|
-
features:
|
|
4120
|
+
], li = {
|
|
4121
|
+
type: oi,
|
|
4122
|
+
features: si
|
|
4207
4123
|
};
|
|
4208
|
-
|
|
4209
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4210
|
-
}
|
|
4211
|
-
var fi = hi, ze, xe, H, je, We, pi = [
|
|
4124
|
+
var ui = di, Ve, xe, A, ze, $e, ci = [
|
|
4212
4125
|
"Point",
|
|
4213
4126
|
"MultiPoint",
|
|
4214
4127
|
"LineString",
|
|
@@ -4217,123 +4130,123 @@ var fi = hi, ze, xe, H, je, We, pi = [
|
|
|
4217
4130
|
"MultiPolygon",
|
|
4218
4131
|
"GeometryCollection"
|
|
4219
4132
|
];
|
|
4220
|
-
function
|
|
4221
|
-
|
|
4222
|
-
var t = e.readFields(
|
|
4223
|
-
return
|
|
4133
|
+
function di(e) {
|
|
4134
|
+
ze = 2, $e = Math.pow(10, 6), A = null, Ve = [], xe = [];
|
|
4135
|
+
var t = e.readFields(mi, {});
|
|
4136
|
+
return Ve = null, t;
|
|
4224
4137
|
}
|
|
4225
|
-
function
|
|
4226
|
-
e === 1 ?
|
|
4138
|
+
function mi(e, t, n) {
|
|
4139
|
+
e === 1 ? Ve.push(n.readString()) : e === 2 ? ze = n.readVarint() : e === 3 ? $e = Math.pow(10, n.readVarint()) : e === 4 ? fi(n, t) : e === 5 ? En(n, t) : e === 6 && St(n, t);
|
|
4227
4140
|
}
|
|
4228
|
-
function
|
|
4229
|
-
return t.type = "FeatureCollection", t.features = [], e.readMessage(
|
|
4141
|
+
function fi(e, t) {
|
|
4142
|
+
return t.type = "FeatureCollection", t.features = [], e.readMessage(hi, t);
|
|
4230
4143
|
}
|
|
4231
|
-
function
|
|
4144
|
+
function En(e, t) {
|
|
4232
4145
|
t.type = "Feature";
|
|
4233
|
-
var n = e.readMessage(
|
|
4146
|
+
var n = e.readMessage(pi, t);
|
|
4234
4147
|
return "geometry" in n || (n.geometry = null), n;
|
|
4235
4148
|
}
|
|
4236
|
-
function
|
|
4237
|
-
return t.type = "Point", e.readMessage(
|
|
4149
|
+
function St(e, t) {
|
|
4150
|
+
return t.type = "Point", e.readMessage(yi, t);
|
|
4238
4151
|
}
|
|
4239
|
-
function
|
|
4240
|
-
e === 1 ? t.features.push(
|
|
4152
|
+
function hi(e, t, n) {
|
|
4153
|
+
e === 1 ? t.features.push(En(n, {})) : e === 13 ? xe.push(Dt(n)) : e === 15 && je(n, t);
|
|
4241
4154
|
}
|
|
4242
|
-
function
|
|
4243
|
-
e === 1 ? t.geometry =
|
|
4155
|
+
function pi(e, t, n) {
|
|
4156
|
+
e === 1 ? t.geometry = St(n, {}) : e === 11 ? t.id = n.readString() : e === 12 ? t.id = n.readSVarint() : e === 13 ? xe.push(Dt(n)) : e === 14 ? t.properties = je(n, {}) : e === 15 && je(n, t);
|
|
4244
4157
|
}
|
|
4245
|
-
function
|
|
4246
|
-
e === 1 ? t.type =
|
|
4158
|
+
function yi(e, t, n) {
|
|
4159
|
+
e === 1 ? t.type = ci[n.readVarint()] : e === 2 ? A = n.readPackedVarint() : e === 3 ? _i(t, n, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(St(n, {}))) : e === 13 ? xe.push(Dt(n)) : e === 15 && je(n, t);
|
|
4247
4160
|
}
|
|
4248
|
-
function
|
|
4249
|
-
n === "Point" ? e.coordinates =
|
|
4161
|
+
function _i(e, t, n) {
|
|
4162
|
+
n === "Point" ? e.coordinates = gi(t) : n === "MultiPoint" || n === "LineString" ? e.coordinates = pn(t) : n === "MultiLineString" ? e.coordinates = yn(t) : n === "Polygon" ? e.coordinates = yn(t, !0) : n === "MultiPolygon" && (e.coordinates = vi(t));
|
|
4250
4163
|
}
|
|
4251
|
-
function
|
|
4164
|
+
function Dt(e) {
|
|
4252
4165
|
for (var t = e.readVarint() + e.pos, n = null; e.pos < t; ) {
|
|
4253
4166
|
var a = e.readVarint(), i = a >> 3;
|
|
4254
4167
|
i === 1 ? n = e.readString() : i === 2 ? n = e.readDouble() : i === 3 ? n = e.readVarint() : i === 4 ? n = -e.readVarint() : i === 5 ? n = e.readBoolean() : i === 6 && (n = JSON.parse(e.readString()));
|
|
4255
4168
|
}
|
|
4256
4169
|
return n;
|
|
4257
4170
|
}
|
|
4258
|
-
function
|
|
4259
|
-
for (var n = e.readVarint() + e.pos; e.pos < n; ) t[
|
|
4171
|
+
function je(e, t) {
|
|
4172
|
+
for (var n = e.readVarint() + e.pos; e.pos < n; ) t[Ve[e.readVarint()]] = xe[e.readVarint()];
|
|
4260
4173
|
return xe = [], t;
|
|
4261
4174
|
}
|
|
4262
|
-
function
|
|
4263
|
-
for (var t = e.readVarint() + e.pos, n = []; e.pos < t; ) n.push(e.readSVarint() /
|
|
4175
|
+
function gi(e) {
|
|
4176
|
+
for (var t = e.readVarint() + e.pos, n = []; e.pos < t; ) n.push(e.readSVarint() / $e);
|
|
4264
4177
|
return n;
|
|
4265
4178
|
}
|
|
4266
|
-
function
|
|
4267
|
-
var i = 0,
|
|
4268
|
-
for (d = 0; d <
|
|
4179
|
+
function Ee(e, t, n, a) {
|
|
4180
|
+
var i = 0, s = [], c, d, y = [];
|
|
4181
|
+
for (d = 0; d < ze; d++) y[d] = 0;
|
|
4269
4182
|
for (; n ? i < n : e.pos < t; ) {
|
|
4270
|
-
for (
|
|
4271
|
-
|
|
4272
|
-
|
|
4183
|
+
for (c = [], d = 0; d < ze; d++)
|
|
4184
|
+
y[d] += e.readSVarint(), c[d] = y[d] / $e;
|
|
4185
|
+
s.push(c), i++;
|
|
4273
4186
|
}
|
|
4274
|
-
return a &&
|
|
4187
|
+
return a && s.push(s[0]), s;
|
|
4275
4188
|
}
|
|
4276
|
-
function
|
|
4277
|
-
return
|
|
4189
|
+
function pn(e) {
|
|
4190
|
+
return Ee(e, e.readVarint() + e.pos);
|
|
4278
4191
|
}
|
|
4279
|
-
function
|
|
4192
|
+
function yn(e, t) {
|
|
4280
4193
|
var n = e.readVarint() + e.pos;
|
|
4281
|
-
if (!
|
|
4282
|
-
for (var a = [], i = 0; i <
|
|
4283
|
-
return
|
|
4194
|
+
if (!A) return [Ee(e, n, null, t)];
|
|
4195
|
+
for (var a = [], i = 0; i < A.length; i++) a.push(Ee(e, n, A[i], t));
|
|
4196
|
+
return A = null, a;
|
|
4284
4197
|
}
|
|
4285
|
-
function
|
|
4198
|
+
function vi(e) {
|
|
4286
4199
|
var t = e.readVarint() + e.pos;
|
|
4287
|
-
if (!
|
|
4288
|
-
for (var n = [], a = 1, i = 0; i <
|
|
4289
|
-
for (var
|
|
4290
|
-
a +=
|
|
4200
|
+
if (!A) return [[Ee(e, t, null, !0)]];
|
|
4201
|
+
for (var n = [], a = 1, i = 0; i < A[0]; i++) {
|
|
4202
|
+
for (var s = [], c = 0; c < A[a]; c++) s.push(Ee(e, t, A[a + 1 + c], !0));
|
|
4203
|
+
a += A[a] + 1, n.push(s);
|
|
4291
4204
|
}
|
|
4292
|
-
return
|
|
4205
|
+
return A = null, n;
|
|
4293
4206
|
}
|
|
4294
|
-
var
|
|
4207
|
+
var wi = ui, kt = {};
|
|
4295
4208
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4296
|
-
|
|
4297
|
-
var
|
|
4298
|
-
for (
|
|
4209
|
+
kt.read = function(e, t, n, a, i) {
|
|
4210
|
+
var s, c, d = i * 8 - a - 1, y = (1 << d) - 1, m = y >> 1, u = -7, f = n ? i - 1 : 0, _ = n ? -1 : 1, v = e[t + f];
|
|
4211
|
+
for (f += _, s = v & (1 << -u) - 1, v >>= -u, u += d; u > 0; s = s * 256 + e[t + f], f += _, u -= 8)
|
|
4299
4212
|
;
|
|
4300
|
-
for (
|
|
4213
|
+
for (c = s & (1 << -u) - 1, s >>= -u, u += a; u > 0; c = c * 256 + e[t + f], f += _, u -= 8)
|
|
4301
4214
|
;
|
|
4302
|
-
if (
|
|
4303
|
-
|
|
4215
|
+
if (s === 0)
|
|
4216
|
+
s = 1 - m;
|
|
4304
4217
|
else {
|
|
4305
|
-
if (
|
|
4306
|
-
return
|
|
4307
|
-
|
|
4218
|
+
if (s === y)
|
|
4219
|
+
return c ? NaN : (v ? -1 : 1) * (1 / 0);
|
|
4220
|
+
c = c + Math.pow(2, a), s = s - m;
|
|
4308
4221
|
}
|
|
4309
|
-
return (
|
|
4222
|
+
return (v ? -1 : 1) * c * Math.pow(2, s - a);
|
|
4310
4223
|
};
|
|
4311
|
-
|
|
4312
|
-
var
|
|
4313
|
-
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (d = isNaN(t) ? 1 : 0,
|
|
4224
|
+
kt.write = function(e, t, n, a, i, s) {
|
|
4225
|
+
var c, d, y, m = s * 8 - i - 1, u = (1 << m) - 1, f = u >> 1, _ = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, v = a ? 0 : s - 1, F = a ? 1 : -1, N = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
|
|
4226
|
+
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (d = isNaN(t) ? 1 : 0, c = u) : (c = Math.floor(Math.log(t) / Math.LN2), t * (y = Math.pow(2, -c)) < 1 && (c--, y *= 2), c + f >= 1 ? t += _ / y : t += _ * Math.pow(2, 1 - f), t * y >= 2 && (c++, y /= 2), c + f >= u ? (d = 0, c = u) : c + f >= 1 ? (d = (t * y - 1) * Math.pow(2, i), c = c + f) : (d = t * Math.pow(2, f - 1) * Math.pow(2, i), c = 0)); i >= 8; e[n + v] = d & 255, v += F, d /= 256, i -= 8)
|
|
4314
4227
|
;
|
|
4315
|
-
for (
|
|
4228
|
+
for (c = c << i | d, m += i; m > 0; e[n + v] = c & 255, v += F, c /= 256, m -= 8)
|
|
4316
4229
|
;
|
|
4317
|
-
e[n +
|
|
4230
|
+
e[n + v - F] |= N * 128;
|
|
4318
4231
|
};
|
|
4319
|
-
var
|
|
4320
|
-
function
|
|
4232
|
+
var xi = x, be = kt;
|
|
4233
|
+
function x(e) {
|
|
4321
4234
|
this.buf = ArrayBuffer.isView && ArrayBuffer.isView(e) ? e : new Uint8Array(e || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
|
|
4322
4235
|
}
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
var
|
|
4328
|
-
|
|
4236
|
+
x.Varint = 0;
|
|
4237
|
+
x.Fixed64 = 1;
|
|
4238
|
+
x.Bytes = 2;
|
|
4239
|
+
x.Fixed32 = 5;
|
|
4240
|
+
var xt = 65536 * 65536, _n = 1 / xt, Ti = 12, Rn = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
|
|
4241
|
+
x.prototype = {
|
|
4329
4242
|
destroy: function() {
|
|
4330
4243
|
this.buf = null;
|
|
4331
4244
|
},
|
|
4332
4245
|
// === READING =================================================================
|
|
4333
4246
|
readFields: function(e, t, n) {
|
|
4334
4247
|
for (n = n || this.length; this.pos < n; ) {
|
|
4335
|
-
var a = this.readVarint(), i = a >> 3,
|
|
4336
|
-
this.type = a & 7, e(i, t, this), this.pos ===
|
|
4248
|
+
var a = this.readVarint(), i = a >> 3, s = this.pos;
|
|
4249
|
+
this.type = a & 7, e(i, t, this), this.pos === s && this.skip(a);
|
|
4337
4250
|
}
|
|
4338
4251
|
return t;
|
|
4339
4252
|
},
|
|
@@ -4341,33 +4254,33 @@ v.prototype = {
|
|
|
4341
4254
|
return this.readFields(e, t, this.readVarint() + this.pos);
|
|
4342
4255
|
},
|
|
4343
4256
|
readFixed32: function() {
|
|
4344
|
-
var e =
|
|
4257
|
+
var e = Be(this.buf, this.pos);
|
|
4345
4258
|
return this.pos += 4, e;
|
|
4346
4259
|
},
|
|
4347
4260
|
readSFixed32: function() {
|
|
4348
|
-
var e =
|
|
4261
|
+
var e = vn(this.buf, this.pos);
|
|
4349
4262
|
return this.pos += 4, e;
|
|
4350
4263
|
},
|
|
4351
4264
|
// 64-bit int handling is based on github.com/dpw/node-buffer-more-ints (MIT-licensed)
|
|
4352
4265
|
readFixed64: function() {
|
|
4353
|
-
var e =
|
|
4266
|
+
var e = Be(this.buf, this.pos) + Be(this.buf, this.pos + 4) * xt;
|
|
4354
4267
|
return this.pos += 8, e;
|
|
4355
4268
|
},
|
|
4356
4269
|
readSFixed64: function() {
|
|
4357
|
-
var e =
|
|
4270
|
+
var e = Be(this.buf, this.pos) + vn(this.buf, this.pos + 4) * xt;
|
|
4358
4271
|
return this.pos += 8, e;
|
|
4359
4272
|
},
|
|
4360
4273
|
readFloat: function() {
|
|
4361
|
-
var e =
|
|
4274
|
+
var e = be.read(this.buf, this.pos, !0, 23, 4);
|
|
4362
4275
|
return this.pos += 4, e;
|
|
4363
4276
|
},
|
|
4364
4277
|
readDouble: function() {
|
|
4365
|
-
var e =
|
|
4278
|
+
var e = be.read(this.buf, this.pos, !0, 52, 8);
|
|
4366
4279
|
return this.pos += 8, e;
|
|
4367
4280
|
},
|
|
4368
4281
|
readVarint: function(e) {
|
|
4369
4282
|
var t = this.buf, n, a;
|
|
4370
|
-
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,
|
|
4283
|
+
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, Mi(n, e, this));
|
|
4371
4284
|
},
|
|
4372
4285
|
readVarint64: function() {
|
|
4373
4286
|
return this.readVarint(!0);
|
|
@@ -4381,7 +4294,7 @@ v.prototype = {
|
|
|
4381
4294
|
},
|
|
4382
4295
|
readString: function() {
|
|
4383
4296
|
var e = this.readVarint() + this.pos, t = this.pos;
|
|
4384
|
-
return this.pos = e, e - t >=
|
|
4297
|
+
return this.pos = e, e - t >= Ti && Rn ? Pi(this.buf, t, e) : Ai(this.buf, t, e);
|
|
4385
4298
|
},
|
|
4386
4299
|
readBytes: function() {
|
|
4387
4300
|
var e = this.readVarint() + this.pos, t = this.buf.subarray(this.pos, e);
|
|
@@ -4389,66 +4302,66 @@ v.prototype = {
|
|
|
4389
4302
|
},
|
|
4390
4303
|
// verbose for performance reasons; doesn't affect gzipped size
|
|
4391
4304
|
readPackedVarint: function(e, t) {
|
|
4392
|
-
if (this.type !==
|
|
4393
|
-
var n =
|
|
4305
|
+
if (this.type !== x.Bytes) return e.push(this.readVarint(t));
|
|
4306
|
+
var n = q(this);
|
|
4394
4307
|
for (e = e || []; this.pos < n; ) e.push(this.readVarint(t));
|
|
4395
4308
|
return e;
|
|
4396
4309
|
},
|
|
4397
4310
|
readPackedSVarint: function(e) {
|
|
4398
|
-
if (this.type !==
|
|
4399
|
-
var t =
|
|
4311
|
+
if (this.type !== x.Bytes) return e.push(this.readSVarint());
|
|
4312
|
+
var t = q(this);
|
|
4400
4313
|
for (e = e || []; this.pos < t; ) e.push(this.readSVarint());
|
|
4401
4314
|
return e;
|
|
4402
4315
|
},
|
|
4403
4316
|
readPackedBoolean: function(e) {
|
|
4404
|
-
if (this.type !==
|
|
4405
|
-
var t =
|
|
4317
|
+
if (this.type !== x.Bytes) return e.push(this.readBoolean());
|
|
4318
|
+
var t = q(this);
|
|
4406
4319
|
for (e = e || []; this.pos < t; ) e.push(this.readBoolean());
|
|
4407
4320
|
return e;
|
|
4408
4321
|
},
|
|
4409
4322
|
readPackedFloat: function(e) {
|
|
4410
|
-
if (this.type !==
|
|
4411
|
-
var t =
|
|
4323
|
+
if (this.type !== x.Bytes) return e.push(this.readFloat());
|
|
4324
|
+
var t = q(this);
|
|
4412
4325
|
for (e = e || []; this.pos < t; ) e.push(this.readFloat());
|
|
4413
4326
|
return e;
|
|
4414
4327
|
},
|
|
4415
4328
|
readPackedDouble: function(e) {
|
|
4416
|
-
if (this.type !==
|
|
4417
|
-
var t =
|
|
4329
|
+
if (this.type !== x.Bytes) return e.push(this.readDouble());
|
|
4330
|
+
var t = q(this);
|
|
4418
4331
|
for (e = e || []; this.pos < t; ) e.push(this.readDouble());
|
|
4419
4332
|
return e;
|
|
4420
4333
|
},
|
|
4421
4334
|
readPackedFixed32: function(e) {
|
|
4422
|
-
if (this.type !==
|
|
4423
|
-
var t =
|
|
4335
|
+
if (this.type !== x.Bytes) return e.push(this.readFixed32());
|
|
4336
|
+
var t = q(this);
|
|
4424
4337
|
for (e = e || []; this.pos < t; ) e.push(this.readFixed32());
|
|
4425
4338
|
return e;
|
|
4426
4339
|
},
|
|
4427
4340
|
readPackedSFixed32: function(e) {
|
|
4428
|
-
if (this.type !==
|
|
4429
|
-
var t =
|
|
4341
|
+
if (this.type !== x.Bytes) return e.push(this.readSFixed32());
|
|
4342
|
+
var t = q(this);
|
|
4430
4343
|
for (e = e || []; this.pos < t; ) e.push(this.readSFixed32());
|
|
4431
4344
|
return e;
|
|
4432
4345
|
},
|
|
4433
4346
|
readPackedFixed64: function(e) {
|
|
4434
|
-
if (this.type !==
|
|
4435
|
-
var t =
|
|
4347
|
+
if (this.type !== x.Bytes) return e.push(this.readFixed64());
|
|
4348
|
+
var t = q(this);
|
|
4436
4349
|
for (e = e || []; this.pos < t; ) e.push(this.readFixed64());
|
|
4437
4350
|
return e;
|
|
4438
4351
|
},
|
|
4439
4352
|
readPackedSFixed64: function(e) {
|
|
4440
|
-
if (this.type !==
|
|
4441
|
-
var t =
|
|
4353
|
+
if (this.type !== x.Bytes) return e.push(this.readSFixed64());
|
|
4354
|
+
var t = q(this);
|
|
4442
4355
|
for (e = e || []; this.pos < t; ) e.push(this.readSFixed64());
|
|
4443
4356
|
return e;
|
|
4444
4357
|
},
|
|
4445
4358
|
skip: function(e) {
|
|
4446
4359
|
var t = e & 7;
|
|
4447
|
-
if (t ===
|
|
4360
|
+
if (t === x.Varint) for (; this.buf[this.pos++] > 127; )
|
|
4448
4361
|
;
|
|
4449
|
-
else if (t ===
|
|
4450
|
-
else if (t ===
|
|
4451
|
-
else if (t ===
|
|
4362
|
+
else if (t === x.Bytes) this.pos = this.readVarint() + this.pos;
|
|
4363
|
+
else if (t === x.Fixed32) this.pos += 4;
|
|
4364
|
+
else if (t === x.Fixed64) this.pos += 8;
|
|
4452
4365
|
else throw new Error("Unimplemented type: " + t);
|
|
4453
4366
|
},
|
|
4454
4367
|
// === WRITING =================================================================
|
|
@@ -4466,20 +4379,20 @@ v.prototype = {
|
|
|
4466
4379
|
return this.length = this.pos, this.pos = 0, this.buf.subarray(0, this.length);
|
|
4467
4380
|
},
|
|
4468
4381
|
writeFixed32: function(e) {
|
|
4469
|
-
this.realloc(4),
|
|
4382
|
+
this.realloc(4), ve(this.buf, e, this.pos), this.pos += 4;
|
|
4470
4383
|
},
|
|
4471
4384
|
writeSFixed32: function(e) {
|
|
4472
|
-
this.realloc(4),
|
|
4385
|
+
this.realloc(4), ve(this.buf, e, this.pos), this.pos += 4;
|
|
4473
4386
|
},
|
|
4474
4387
|
writeFixed64: function(e) {
|
|
4475
|
-
this.realloc(8),
|
|
4388
|
+
this.realloc(8), ve(this.buf, e & -1, this.pos), ve(this.buf, Math.floor(e * _n), this.pos + 4), this.pos += 8;
|
|
4476
4389
|
},
|
|
4477
4390
|
writeSFixed64: function(e) {
|
|
4478
|
-
this.realloc(8),
|
|
4391
|
+
this.realloc(8), ve(this.buf, e & -1, this.pos), ve(this.buf, Math.floor(e * _n), this.pos + 4), this.pos += 8;
|
|
4479
4392
|
},
|
|
4480
4393
|
writeVarint: function(e) {
|
|
4481
4394
|
if (e = +e || 0, e > 268435455 || e < 0) {
|
|
4482
|
-
|
|
4395
|
+
Fi(e, this);
|
|
4483
4396
|
return;
|
|
4484
4397
|
}
|
|
4485
4398
|
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)));
|
|
@@ -4493,15 +4406,15 @@ v.prototype = {
|
|
|
4493
4406
|
writeString: function(e) {
|
|
4494
4407
|
e = String(e), this.realloc(e.length * 4), this.pos++;
|
|
4495
4408
|
var t = this.pos;
|
|
4496
|
-
this.pos =
|
|
4409
|
+
this.pos = Ui(this.buf, e, this.pos);
|
|
4497
4410
|
var n = this.pos - t;
|
|
4498
|
-
n >= 128 &&
|
|
4411
|
+
n >= 128 && gn(t, n, this), this.pos = t - 1, this.writeVarint(n), this.pos += n;
|
|
4499
4412
|
},
|
|
4500
4413
|
writeFloat: function(e) {
|
|
4501
|
-
this.realloc(4),
|
|
4414
|
+
this.realloc(4), be.write(this.buf, e, this.pos, !0, 23, 4), this.pos += 4;
|
|
4502
4415
|
},
|
|
4503
4416
|
writeDouble: function(e) {
|
|
4504
|
-
this.realloc(8),
|
|
4417
|
+
this.realloc(8), be.write(this.buf, e, this.pos, !0, 52, 8), this.pos += 8;
|
|
4505
4418
|
},
|
|
4506
4419
|
writeBytes: function(e) {
|
|
4507
4420
|
var t = e.length;
|
|
@@ -4513,189 +4426,189 @@ v.prototype = {
|
|
|
4513
4426
|
var n = this.pos;
|
|
4514
4427
|
e(t, this);
|
|
4515
4428
|
var a = this.pos - n;
|
|
4516
|
-
a >= 128 &&
|
|
4429
|
+
a >= 128 && gn(n, a, this), this.pos = n - 1, this.writeVarint(a), this.pos += a;
|
|
4517
4430
|
},
|
|
4518
4431
|
writeMessage: function(e, t, n) {
|
|
4519
|
-
this.writeTag(e,
|
|
4432
|
+
this.writeTag(e, x.Bytes), this.writeRawMessage(t, n);
|
|
4520
4433
|
},
|
|
4521
4434
|
writePackedVarint: function(e, t) {
|
|
4522
|
-
t.length && this.writeMessage(e,
|
|
4435
|
+
t.length && this.writeMessage(e, ki, t);
|
|
4523
4436
|
},
|
|
4524
4437
|
writePackedSVarint: function(e, t) {
|
|
4525
|
-
t.length && this.writeMessage(e,
|
|
4438
|
+
t.length && this.writeMessage(e, Ni, t);
|
|
4526
4439
|
},
|
|
4527
4440
|
writePackedBoolean: function(e, t) {
|
|
4528
|
-
t.length && this.writeMessage(e,
|
|
4441
|
+
t.length && this.writeMessage(e, Oi, t);
|
|
4529
4442
|
},
|
|
4530
4443
|
writePackedFloat: function(e, t) {
|
|
4531
|
-
t.length && this.writeMessage(e,
|
|
4444
|
+
t.length && this.writeMessage(e, Ei, t);
|
|
4532
4445
|
},
|
|
4533
4446
|
writePackedDouble: function(e, t) {
|
|
4534
|
-
t.length && this.writeMessage(e,
|
|
4447
|
+
t.length && this.writeMessage(e, Ri, t);
|
|
4535
4448
|
},
|
|
4536
4449
|
writePackedFixed32: function(e, t) {
|
|
4537
|
-
t.length && this.writeMessage(e,
|
|
4450
|
+
t.length && this.writeMessage(e, Ii, t);
|
|
4538
4451
|
},
|
|
4539
4452
|
writePackedSFixed32: function(e, t) {
|
|
4540
|
-
t.length && this.writeMessage(e,
|
|
4453
|
+
t.length && this.writeMessage(e, Li, t);
|
|
4541
4454
|
},
|
|
4542
4455
|
writePackedFixed64: function(e, t) {
|
|
4543
|
-
t.length && this.writeMessage(e,
|
|
4456
|
+
t.length && this.writeMessage(e, Gi, t);
|
|
4544
4457
|
},
|
|
4545
4458
|
writePackedSFixed64: function(e, t) {
|
|
4546
|
-
t.length && this.writeMessage(e,
|
|
4459
|
+
t.length && this.writeMessage(e, Ci, t);
|
|
4547
4460
|
},
|
|
4548
4461
|
writeBytesField: function(e, t) {
|
|
4549
|
-
this.writeTag(e,
|
|
4462
|
+
this.writeTag(e, x.Bytes), this.writeBytes(t);
|
|
4550
4463
|
},
|
|
4551
4464
|
writeFixed32Field: function(e, t) {
|
|
4552
|
-
this.writeTag(e,
|
|
4465
|
+
this.writeTag(e, x.Fixed32), this.writeFixed32(t);
|
|
4553
4466
|
},
|
|
4554
4467
|
writeSFixed32Field: function(e, t) {
|
|
4555
|
-
this.writeTag(e,
|
|
4468
|
+
this.writeTag(e, x.Fixed32), this.writeSFixed32(t);
|
|
4556
4469
|
},
|
|
4557
4470
|
writeFixed64Field: function(e, t) {
|
|
4558
|
-
this.writeTag(e,
|
|
4471
|
+
this.writeTag(e, x.Fixed64), this.writeFixed64(t);
|
|
4559
4472
|
},
|
|
4560
4473
|
writeSFixed64Field: function(e, t) {
|
|
4561
|
-
this.writeTag(e,
|
|
4474
|
+
this.writeTag(e, x.Fixed64), this.writeSFixed64(t);
|
|
4562
4475
|
},
|
|
4563
4476
|
writeVarintField: function(e, t) {
|
|
4564
|
-
this.writeTag(e,
|
|
4477
|
+
this.writeTag(e, x.Varint), this.writeVarint(t);
|
|
4565
4478
|
},
|
|
4566
4479
|
writeSVarintField: function(e, t) {
|
|
4567
|
-
this.writeTag(e,
|
|
4480
|
+
this.writeTag(e, x.Varint), this.writeSVarint(t);
|
|
4568
4481
|
},
|
|
4569
4482
|
writeStringField: function(e, t) {
|
|
4570
|
-
this.writeTag(e,
|
|
4483
|
+
this.writeTag(e, x.Bytes), this.writeString(t);
|
|
4571
4484
|
},
|
|
4572
4485
|
writeFloatField: function(e, t) {
|
|
4573
|
-
this.writeTag(e,
|
|
4486
|
+
this.writeTag(e, x.Fixed32), this.writeFloat(t);
|
|
4574
4487
|
},
|
|
4575
4488
|
writeDoubleField: function(e, t) {
|
|
4576
|
-
this.writeTag(e,
|
|
4489
|
+
this.writeTag(e, x.Fixed64), this.writeDouble(t);
|
|
4577
4490
|
},
|
|
4578
4491
|
writeBooleanField: function(e, t) {
|
|
4579
4492
|
this.writeVarintField(e, !!t);
|
|
4580
4493
|
}
|
|
4581
4494
|
};
|
|
4582
|
-
function
|
|
4583
|
-
var a = n.buf, i,
|
|
4584
|
-
if (
|
|
4495
|
+
function Mi(e, t, n) {
|
|
4496
|
+
var a = n.buf, i, s;
|
|
4497
|
+
if (s = a[n.pos++], i = (s & 112) >> 4, s < 128 || (s = a[n.pos++], i |= (s & 127) << 3, s < 128) || (s = a[n.pos++], i |= (s & 127) << 10, s < 128) || (s = a[n.pos++], i |= (s & 127) << 17, s < 128) || (s = a[n.pos++], i |= (s & 127) << 24, s < 128) || (s = a[n.pos++], i |= (s & 1) << 31, s < 128)) return ge(e, i, t);
|
|
4585
4498
|
throw new Error("Expected varint not more than 10 bytes");
|
|
4586
4499
|
}
|
|
4587
|
-
function
|
|
4588
|
-
return e.type ===
|
|
4500
|
+
function q(e) {
|
|
4501
|
+
return e.type === x.Bytes ? e.readVarint() + e.pos : e.pos + 1;
|
|
4589
4502
|
}
|
|
4590
|
-
function
|
|
4503
|
+
function ge(e, t, n) {
|
|
4591
4504
|
return n ? t * 4294967296 + (e >>> 0) : (t >>> 0) * 4294967296 + (e >>> 0);
|
|
4592
4505
|
}
|
|
4593
|
-
function
|
|
4506
|
+
function Fi(e, t) {
|
|
4594
4507
|
var n, a;
|
|
4595
4508
|
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)
|
|
4596
4509
|
throw new Error("Given varint doesn't fit into 10 bytes");
|
|
4597
|
-
t.realloc(10),
|
|
4510
|
+
t.realloc(10), Si(n, a, t), Di(a, t);
|
|
4598
4511
|
}
|
|
4599
|
-
function
|
|
4512
|
+
function Si(e, t, n) {
|
|
4600
4513
|
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;
|
|
4601
4514
|
}
|
|
4602
|
-
function
|
|
4515
|
+
function Di(e, t) {
|
|
4603
4516
|
var n = (e & 7) << 4;
|
|
4604
4517
|
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)))));
|
|
4605
4518
|
}
|
|
4606
|
-
function
|
|
4519
|
+
function gn(e, t, n) {
|
|
4607
4520
|
var a = t <= 16383 ? 1 : t <= 2097151 ? 2 : t <= 268435455 ? 3 : Math.floor(Math.log(t) / (Math.LN2 * 7));
|
|
4608
4521
|
n.realloc(a);
|
|
4609
4522
|
for (var i = n.pos - 1; i >= e; i--) n.buf[i + a] = n.buf[i];
|
|
4610
4523
|
}
|
|
4611
|
-
function
|
|
4524
|
+
function ki(e, t) {
|
|
4612
4525
|
for (var n = 0; n < e.length; n++) t.writeVarint(e[n]);
|
|
4613
4526
|
}
|
|
4614
|
-
function
|
|
4527
|
+
function Ni(e, t) {
|
|
4615
4528
|
for (var n = 0; n < e.length; n++) t.writeSVarint(e[n]);
|
|
4616
4529
|
}
|
|
4617
|
-
function
|
|
4530
|
+
function Ei(e, t) {
|
|
4618
4531
|
for (var n = 0; n < e.length; n++) t.writeFloat(e[n]);
|
|
4619
4532
|
}
|
|
4620
|
-
function
|
|
4533
|
+
function Ri(e, t) {
|
|
4621
4534
|
for (var n = 0; n < e.length; n++) t.writeDouble(e[n]);
|
|
4622
4535
|
}
|
|
4623
|
-
function
|
|
4536
|
+
function Oi(e, t) {
|
|
4624
4537
|
for (var n = 0; n < e.length; n++) t.writeBoolean(e[n]);
|
|
4625
4538
|
}
|
|
4626
|
-
function
|
|
4539
|
+
function Ii(e, t) {
|
|
4627
4540
|
for (var n = 0; n < e.length; n++) t.writeFixed32(e[n]);
|
|
4628
4541
|
}
|
|
4629
|
-
function
|
|
4542
|
+
function Li(e, t) {
|
|
4630
4543
|
for (var n = 0; n < e.length; n++) t.writeSFixed32(e[n]);
|
|
4631
4544
|
}
|
|
4632
|
-
function
|
|
4545
|
+
function Gi(e, t) {
|
|
4633
4546
|
for (var n = 0; n < e.length; n++) t.writeFixed64(e[n]);
|
|
4634
4547
|
}
|
|
4635
|
-
function
|
|
4548
|
+
function Ci(e, t) {
|
|
4636
4549
|
for (var n = 0; n < e.length; n++) t.writeSFixed64(e[n]);
|
|
4637
4550
|
}
|
|
4638
|
-
function
|
|
4551
|
+
function Be(e, t) {
|
|
4639
4552
|
return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + e[t + 3] * 16777216;
|
|
4640
4553
|
}
|
|
4641
|
-
function
|
|
4554
|
+
function ve(e, t, n) {
|
|
4642
4555
|
e[n] = t, e[n + 1] = t >>> 8, e[n + 2] = t >>> 16, e[n + 3] = t >>> 24;
|
|
4643
4556
|
}
|
|
4644
|
-
function
|
|
4557
|
+
function vn(e, t) {
|
|
4645
4558
|
return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + (e[t + 3] << 24);
|
|
4646
4559
|
}
|
|
4647
|
-
function
|
|
4560
|
+
function Ai(e, t, n) {
|
|
4648
4561
|
for (var a = "", i = t; i < n; ) {
|
|
4649
|
-
var
|
|
4562
|
+
var s = e[i], c = null, d = s > 239 ? 4 : s > 223 ? 3 : s > 191 ? 2 : 1;
|
|
4650
4563
|
if (i + d > n) break;
|
|
4651
|
-
var
|
|
4652
|
-
d === 1 ?
|
|
4564
|
+
var y, m, u;
|
|
4565
|
+
d === 1 ? s < 128 && (c = s) : d === 2 ? (y = e[i + 1], (y & 192) === 128 && (c = (s & 31) << 6 | y & 63, c <= 127 && (c = null))) : d === 3 ? (y = e[i + 1], m = e[i + 2], (y & 192) === 128 && (m & 192) === 128 && (c = (s & 15) << 12 | (y & 63) << 6 | m & 63, (c <= 2047 || c >= 55296 && c <= 57343) && (c = null))) : d === 4 && (y = e[i + 1], m = e[i + 2], u = e[i + 3], (y & 192) === 128 && (m & 192) === 128 && (u & 192) === 128 && (c = (s & 15) << 18 | (y & 63) << 12 | (m & 63) << 6 | u & 63, (c <= 65535 || c >= 1114112) && (c = null))), c === null ? (c = 65533, d = 1) : c > 65535 && (c -= 65536, a += String.fromCharCode(c >>> 10 & 1023 | 55296), c = 56320 | c & 1023), a += String.fromCharCode(c), i += d;
|
|
4653
4566
|
}
|
|
4654
4567
|
return a;
|
|
4655
4568
|
}
|
|
4656
|
-
function
|
|
4657
|
-
return
|
|
4569
|
+
function Pi(e, t, n) {
|
|
4570
|
+
return Rn.decode(e.subarray(t, n));
|
|
4658
4571
|
}
|
|
4659
|
-
function
|
|
4660
|
-
for (var a = 0, i,
|
|
4572
|
+
function Ui(e, t, n) {
|
|
4573
|
+
for (var a = 0, i, s; a < t.length; a++) {
|
|
4661
4574
|
if (i = t.charCodeAt(a), i > 55295 && i < 57344)
|
|
4662
|
-
if (
|
|
4575
|
+
if (s)
|
|
4663
4576
|
if (i < 56320) {
|
|
4664
|
-
e[n++] = 239, e[n++] = 191, e[n++] = 189,
|
|
4577
|
+
e[n++] = 239, e[n++] = 191, e[n++] = 189, s = i;
|
|
4665
4578
|
continue;
|
|
4666
4579
|
} else
|
|
4667
|
-
i =
|
|
4580
|
+
i = s - 55296 << 10 | i - 56320 | 65536, s = null;
|
|
4668
4581
|
else {
|
|
4669
|
-
i > 56319 || a + 1 === t.length ? (e[n++] = 239, e[n++] = 191, e[n++] = 189) :
|
|
4582
|
+
i > 56319 || a + 1 === t.length ? (e[n++] = 239, e[n++] = 191, e[n++] = 189) : s = i;
|
|
4670
4583
|
continue;
|
|
4671
4584
|
}
|
|
4672
|
-
else
|
|
4585
|
+
else s && (e[n++] = 239, e[n++] = 191, e[n++] = 189, s = null);
|
|
4673
4586
|
i < 128 ? e[n++] = i : (i < 2048 ? e[n++] = i >> 6 | 192 : (i < 65536 ? e[n++] = i >> 12 | 224 : (e[n++] = i >> 18 | 240, e[n++] = i >> 12 & 63 | 128), e[n++] = i >> 6 & 63 | 128), e[n++] = i & 63 | 128);
|
|
4674
4587
|
}
|
|
4675
4588
|
return n;
|
|
4676
4589
|
}
|
|
4677
|
-
const
|
|
4590
|
+
const bi = /* @__PURE__ */ wn(xi), s0 = (e) => {
|
|
4678
4591
|
var a, i;
|
|
4679
4592
|
if (!e || !e.data)
|
|
4680
4593
|
return {};
|
|
4681
4594
|
const t = {}, n = e.data;
|
|
4682
4595
|
if (n)
|
|
4683
|
-
for (const
|
|
4684
|
-
const
|
|
4685
|
-
|
|
4596
|
+
for (const s of n) {
|
|
4597
|
+
const c = (a = s == null ? void 0 : s.event) == null ? void 0 : a.country_code, d = (i = e.meta.metric_names) == null ? void 0 : i[0];
|
|
4598
|
+
c && (t[c] = d ? s.event[d] : 0);
|
|
4686
4599
|
}
|
|
4687
4600
|
return t;
|
|
4688
4601
|
};
|
|
4689
|
-
function
|
|
4602
|
+
function Bi(e, t = 0) {
|
|
4690
4603
|
let n = null;
|
|
4691
4604
|
return (...a) => {
|
|
4692
4605
|
n && clearTimeout(n), n = setTimeout(() => e(...a), t);
|
|
4693
4606
|
};
|
|
4694
4607
|
}
|
|
4695
|
-
const
|
|
4608
|
+
const Hi = { class: "legend" }, Yi = {
|
|
4696
4609
|
key: 0,
|
|
4697
4610
|
class: "legend-title"
|
|
4698
|
-
},
|
|
4611
|
+
}, Vi = { class: "legend-text" }, zi = /* @__PURE__ */ Tt({
|
|
4699
4612
|
__name: "MapLegend",
|
|
4700
4613
|
props: {
|
|
4701
4614
|
metric: {},
|
|
@@ -4703,26 +4616,26 @@ const ji = { class: "legend" }, $i = {
|
|
|
4703
4616
|
data: {}
|
|
4704
4617
|
},
|
|
4705
4618
|
setup(e) {
|
|
4706
|
-
return (t, n) => (
|
|
4707
|
-
t.metric ? (
|
|
4708
|
-
(
|
|
4619
|
+
return (t, n) => (j(), ae("div", Hi, [
|
|
4620
|
+
t.metric ? (j(), ae("div", Yi, ce(t.title), 1)) : De("", !0),
|
|
4621
|
+
(j(!0), ae(jr, null, Kr(t.data, (a, i) => (j(), ae("div", {
|
|
4709
4622
|
key: i,
|
|
4710
4623
|
class: "legend-item"
|
|
4711
4624
|
}, [
|
|
4712
|
-
|
|
4625
|
+
J("span", {
|
|
4713
4626
|
class: "legend-color",
|
|
4714
|
-
style:
|
|
4627
|
+
style: $r({ backgroundColor: a.color })
|
|
4715
4628
|
}, null, 4),
|
|
4716
|
-
|
|
4629
|
+
J("span", Vi, ce(a.range), 1)
|
|
4717
4630
|
]))), 128))
|
|
4718
4631
|
]));
|
|
4719
4632
|
}
|
|
4720
|
-
}),
|
|
4633
|
+
}), Nt = (e, t) => {
|
|
4721
4634
|
const n = e.__vccOpts || e;
|
|
4722
4635
|
for (const [a, i] of t)
|
|
4723
4636
|
n[a] = i;
|
|
4724
4637
|
return n;
|
|
4725
|
-
},
|
|
4638
|
+
}, ji = /* @__PURE__ */ Nt(zi, [["__scopeId", "data-v-5f034736"]]), Ki = { class: "map-tooltip" }, $i = { class: "map-tooltip-text" }, Wi = { key: 0 }, Zi = /* @__PURE__ */ Tt({
|
|
4726
4639
|
__name: "MapTooltip",
|
|
4727
4640
|
props: {
|
|
4728
4641
|
data: {},
|
|
@@ -4731,22 +4644,22 @@ const ji = { class: "legend" }, $i = {
|
|
|
4731
4644
|
left: {}
|
|
4732
4645
|
},
|
|
4733
4646
|
setup(e) {
|
|
4734
|
-
return
|
|
4735
|
-
"
|
|
4736
|
-
"
|
|
4737
|
-
"
|
|
4738
|
-
})), (t, n) => (
|
|
4739
|
-
n[0] || (n[0] =
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
t.showValue ? (
|
|
4647
|
+
return Wr((t) => ({
|
|
4648
|
+
"55ff282a": t.left,
|
|
4649
|
+
"23ce2e1e": t.top,
|
|
4650
|
+
"011f7503": t.data.color
|
|
4651
|
+
})), (t, n) => (j(), ae("div", Ki, [
|
|
4652
|
+
n[0] || (n[0] = J("div", { class: "map-tooltip-color" }, null, -1)),
|
|
4653
|
+
J("div", $i, [
|
|
4654
|
+
J("div", null, ce(t.data.label), 1),
|
|
4655
|
+
t.showValue ? (j(), ae("span", Wi, ce(t.data.value) + " " + ce(t.data.unit), 1)) : De("", !0)
|
|
4743
4656
|
])
|
|
4744
4657
|
]));
|
|
4745
4658
|
}
|
|
4746
|
-
}),
|
|
4659
|
+
}), qi = /* @__PURE__ */ Nt(Zi, [["__scopeId", "data-v-5e8af715"]]), Ji = { class: "kong-ui-public-analytics-geo-map" }, Xi = {
|
|
4747
4660
|
key: 0,
|
|
4748
4661
|
class: "no-location-overlay"
|
|
4749
|
-
},
|
|
4662
|
+
}, Qi = { class: "no-location-overlay-title" }, e0 = { class: "no-location-overlay-description" }, t0 = ["id"], n0 = /* @__PURE__ */ Tt({
|
|
4750
4663
|
__name: "AnalyticsGeoMap",
|
|
4751
4664
|
props: {
|
|
4752
4665
|
countryMetrics: {},
|
|
@@ -4761,11 +4674,10 @@ const ji = { class: "legend" }, $i = {
|
|
|
4761
4674
|
},
|
|
4762
4675
|
emits: ["boundsChange"],
|
|
4763
4676
|
setup(e, { emit: t }) {
|
|
4764
|
-
const n = import("./countries-simple-geo-BFUDnSiE.js").then((
|
|
4765
|
-
countryMetrics:
|
|
4766
|
-
metric:
|
|
4767
|
-
|
|
4768
|
-
}), f = De(), m = Jr(), c = De(), y = De(null), w = De({ left: "0px", top: "0px" }), x = De(!1), k = B(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), P = B(() => ({
|
|
4677
|
+
const n = import("./countries-simple-geo-BFUDnSiE.js").then((g) => g.default), a = t, { i18n: i } = hn.useI18n(), { getColor: s, formatMetric: c, legendData: d } = hn.useMetricUtils({
|
|
4678
|
+
countryMetrics: Xt(() => e.countryMetrics),
|
|
4679
|
+
metric: Xt(() => e.metric)
|
|
4680
|
+
}), y = Se(), m = Zr(), u = Se(), f = Se(null), _ = Se({ left: "0px", top: "0px" }), v = Se(!1), F = C(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), N = C(() => ({
|
|
4769
4681
|
"fill-color": [
|
|
4770
4682
|
"match",
|
|
4771
4683
|
[
|
|
@@ -4778,59 +4690,59 @@ const ji = { class: "legend" }, $i = {
|
|
|
4778
4690
|
],
|
|
4779
4691
|
["get", "ISO_A2"]
|
|
4780
4692
|
],
|
|
4781
|
-
...Object.keys(e.countryMetrics).length ? Object.entries(e.countryMetrics).flatMap(([
|
|
4782
|
-
|
|
4783
|
-
|
|
4693
|
+
...Object.keys(e.countryMetrics).length ? Object.entries(e.countryMetrics).flatMap(([g, T]) => [
|
|
4694
|
+
g,
|
|
4695
|
+
s(T)
|
|
4784
4696
|
]) : [ke, ke],
|
|
4785
4697
|
ke
|
|
4786
4698
|
// default color if no match
|
|
4787
4699
|
],
|
|
4788
4700
|
"fill-opacity": 0.7
|
|
4789
|
-
})),
|
|
4790
|
-
const
|
|
4791
|
-
return Array.isArray(
|
|
4792
|
-
},
|
|
4793
|
-
var
|
|
4794
|
-
if (
|
|
4795
|
-
(
|
|
4701
|
+
})), P = C(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), Q = C(() => e.metric && i.t(`metrics.${e.metric}`) || ""), U = (g) => {
|
|
4702
|
+
const T = g.flat(1);
|
|
4703
|
+
return Array.isArray(T[0]) && Array.isArray(T[0][0]) ? U(T) : T;
|
|
4704
|
+
}, ie = (g) => {
|
|
4705
|
+
var M, D, ee, K, B, te, ne;
|
|
4706
|
+
if (g === "RU") {
|
|
4707
|
+
(M = u.value) == null || M.fitBounds([
|
|
4796
4708
|
[20, 40],
|
|
4797
4709
|
[180, 80]
|
|
4798
4710
|
]);
|
|
4799
4711
|
return;
|
|
4800
|
-
} else if (
|
|
4801
|
-
(
|
|
4712
|
+
} else if (g === "US") {
|
|
4713
|
+
(D = u.value) == null || D.fitBounds([
|
|
4802
4714
|
[-130, 20],
|
|
4803
4715
|
[-60, 50]
|
|
4804
4716
|
]);
|
|
4805
4717
|
return;
|
|
4806
|
-
} else if (
|
|
4807
|
-
(
|
|
4718
|
+
} else if (g === "FR") {
|
|
4719
|
+
(ee = u.value) == null || ee.fitBounds([
|
|
4808
4720
|
[-5, 42],
|
|
4809
4721
|
[9, 51]
|
|
4810
4722
|
]);
|
|
4811
4723
|
return;
|
|
4812
|
-
} else if (
|
|
4813
|
-
(
|
|
4724
|
+
} else if (g === "NO") {
|
|
4725
|
+
(K = u.value) == null || K.fitBounds([
|
|
4814
4726
|
[4, 57],
|
|
4815
4727
|
[32, 71]
|
|
4816
4728
|
]);
|
|
4817
4729
|
return;
|
|
4818
4730
|
}
|
|
4819
|
-
const
|
|
4820
|
-
var
|
|
4821
|
-
return (
|
|
4731
|
+
const T = (B = f.value) == null ? void 0 : B.features.find((L) => {
|
|
4732
|
+
var H, Y, V, w, z;
|
|
4733
|
+
return (H = L.properties) != null && H.ISO_A2 ? ((Y = L.properties) == null ? void 0 : Y.ISO_A2) === g : ((V = L.properties) == null ? void 0 : V.iso_a2) === "-99" ? ((w = L.properties) == null ? void 0 : w.iso_a2_eh) === g : ((z = L.properties) == null ? void 0 : z.iso_a2) === g;
|
|
4822
4734
|
});
|
|
4823
|
-
if (
|
|
4824
|
-
const
|
|
4825
|
-
if (!
|
|
4826
|
-
const
|
|
4827
|
-
(
|
|
4828
|
-
[me,
|
|
4829
|
-
[
|
|
4735
|
+
if (T) {
|
|
4736
|
+
const L = (te = T.geometry) == null ? void 0 : te.coordinates;
|
|
4737
|
+
if (!L) return;
|
|
4738
|
+
const H = U(L), Y = H.map(($) => $[1]), V = H.map(($) => $[0]), w = Math.min(...Y), z = Math.max(...Y), me = Math.min(...V), R = Math.max(...V);
|
|
4739
|
+
(ne = u.value) == null || ne.fitBounds([
|
|
4740
|
+
[me, w],
|
|
4741
|
+
[R, z]
|
|
4830
4742
|
]);
|
|
4831
4743
|
}
|
|
4832
|
-
},
|
|
4833
|
-
const
|
|
4744
|
+
}, b = C(() => {
|
|
4745
|
+
const g = {
|
|
4834
4746
|
container: m,
|
|
4835
4747
|
style: { version: 8, sources: {}, layers: [] },
|
|
4836
4748
|
attributionControl: !1,
|
|
@@ -4847,68 +4759,69 @@ const ji = { class: "legend" }, $i = {
|
|
|
4847
4759
|
"CooperativeGesturesHandler.MobileHelpText": i.t("cooperative_gestures.mobile_zoom_help_text")
|
|
4848
4760
|
}
|
|
4849
4761
|
};
|
|
4850
|
-
return e.bounds && (
|
|
4851
|
-
}),
|
|
4852
|
-
if (!
|
|
4853
|
-
const
|
|
4762
|
+
return e.bounds && (g.bounds = e.bounds), g;
|
|
4763
|
+
}), de = Bi(() => {
|
|
4764
|
+
if (!u.value) return;
|
|
4765
|
+
const g = u.value.getBounds(), T = g.getSouthWest(), M = g.getNorthEast();
|
|
4854
4766
|
a("boundsChange", [
|
|
4855
|
-
[
|
|
4856
|
-
[
|
|
4767
|
+
[T.lng, T.lat],
|
|
4768
|
+
[M.lng, M.lat]
|
|
4857
4769
|
]);
|
|
4858
4770
|
}, 300);
|
|
4859
|
-
return
|
|
4860
|
-
var
|
|
4771
|
+
return qr(async () => {
|
|
4772
|
+
var g, T, M;
|
|
4861
4773
|
try {
|
|
4862
|
-
const
|
|
4863
|
-
|
|
4864
|
-
var
|
|
4865
|
-
(
|
|
4774
|
+
const D = await n, ee = await fetch(D), K = new Uint8Array(await ee.arrayBuffer()), B = wi(new bi(K));
|
|
4775
|
+
f.value = B, u.value = new Qr(b.value), u.value.on("load", () => {
|
|
4776
|
+
var te, ne, L, H, Y, V, w;
|
|
4777
|
+
(te = u.value) == null || te.addSource("countries", {
|
|
4866
4778
|
type: "geojson",
|
|
4867
|
-
data:
|
|
4868
|
-
}), (
|
|
4779
|
+
data: B
|
|
4780
|
+
}), (ne = u.value) == null || ne.addLayer({
|
|
4869
4781
|
id: "countries-layer",
|
|
4870
4782
|
type: "fill",
|
|
4871
4783
|
source: "countries",
|
|
4872
|
-
paint:
|
|
4873
|
-
}), (
|
|
4784
|
+
paint: N.value
|
|
4785
|
+
}), (L = u.value) == null || L.addSource("lakes", {
|
|
4874
4786
|
type: "geojson",
|
|
4875
|
-
data:
|
|
4876
|
-
}), (
|
|
4787
|
+
data: li
|
|
4788
|
+
}), (H = u.value) == null || H.addLayer({
|
|
4877
4789
|
id: "lakes-layer",
|
|
4878
4790
|
type: "fill",
|
|
4879
4791
|
source: "lakes",
|
|
4880
4792
|
paint: {
|
|
4881
4793
|
"fill-color": "#FFFFFF"
|
|
4882
4794
|
}
|
|
4883
|
-
}), (
|
|
4884
|
-
var
|
|
4885
|
-
const me = (
|
|
4795
|
+
}), (Y = u.value) == null || Y.on("mousemove", "countries-layer", (z) => {
|
|
4796
|
+
var R;
|
|
4797
|
+
const me = (R = z.features) == null ? void 0 : R[0];
|
|
4886
4798
|
if (me) {
|
|
4887
|
-
const { iso_a2:
|
|
4888
|
-
|
|
4799
|
+
const { iso_a2: $, iso_a2_eh: Oe, ISO_A2: Ze, admin: qe } = me.properties, Je = Ze ?? $ === "-99" ? Oe : $, fe = e.countryMetrics[Je];
|
|
4800
|
+
fe !== void 0 && (y.value = {
|
|
4889
4801
|
label: qe,
|
|
4890
|
-
color:
|
|
4891
|
-
value:
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4802
|
+
color: s(fe),
|
|
4803
|
+
value: c(fe),
|
|
4804
|
+
unit: i.t(`metricUnits.${e.metricUnit}`, { plural: fe > 1 ? "s" : "" })
|
|
4805
|
+
}, v.value = !0, _.value = {
|
|
4806
|
+
left: `${z.point.x}px`,
|
|
4807
|
+
top: `${z.point.y}px`
|
|
4895
4808
|
});
|
|
4896
4809
|
}
|
|
4897
|
-
}), (
|
|
4898
|
-
|
|
4899
|
-
}), (
|
|
4900
|
-
}), (
|
|
4901
|
-
} catch (
|
|
4902
|
-
console.error(
|
|
4810
|
+
}), (V = u.value) == null || V.on("mouseleave", "countries-layer", () => {
|
|
4811
|
+
v.value = !1;
|
|
4812
|
+
}), (w = u.value) == null || w.on("move", de), e.fitToCountry && ie(e.fitToCountry);
|
|
4813
|
+
}), (g = u.value) == null || g.dragRotate.disable(), (T = u.value) == null || T.keyboard.disable(), (M = u.value) == null || M.touchZoomRotate.disableRotation();
|
|
4814
|
+
} catch (D) {
|
|
4815
|
+
console.error(D);
|
|
4903
4816
|
}
|
|
4904
|
-
}),
|
|
4905
|
-
var
|
|
4906
|
-
|
|
4817
|
+
}), ut(() => e.countryMetrics, () => {
|
|
4818
|
+
var g;
|
|
4819
|
+
u.value && u.value.isStyleLoaded() && (u.value.getLayer("countries-layer") && u.value.removeLayer("countries-layer"), u.value.addLayer({
|
|
4907
4820
|
id: "countries-layer",
|
|
4908
4821
|
type: "fill",
|
|
4909
4822
|
source: "countries",
|
|
4910
|
-
paint:
|
|
4911
|
-
}),
|
|
4823
|
+
paint: N.value
|
|
4824
|
+
}), u.value.removeLayer("lakes-layer"), (g = u.value) == null || g.addLayer({
|
|
4912
4825
|
id: "lakes-layer",
|
|
4913
4826
|
type: "fill",
|
|
4914
4827
|
source: "lakes",
|
|
@@ -4916,58 +4829,58 @@ const ji = { class: "legend" }, $i = {
|
|
|
4916
4829
|
"fill-color": "#FFFFFF"
|
|
4917
4830
|
}
|
|
4918
4831
|
}));
|
|
4919
|
-
}),
|
|
4920
|
-
var
|
|
4921
|
-
|
|
4832
|
+
}), ut(() => e.fitToCountry, (g) => {
|
|
4833
|
+
var T, M, D;
|
|
4834
|
+
u.value && g ? ie(g) : !b.value.center && !b.value.zoom ? (T = u.value) == null || T.fitBounds([
|
|
4922
4835
|
[-180, -90],
|
|
4923
4836
|
[180, 90]
|
|
4924
|
-
]) : (
|
|
4925
|
-
}),
|
|
4926
|
-
if (!
|
|
4927
|
-
const
|
|
4928
|
-
!(
|
|
4929
|
-
}), (
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
color:
|
|
4934
|
-
size:
|
|
4837
|
+
]) : (b.value.zoom && ((M = u.value) == null || M.setZoom(b.value.zoom)), b.value.center && ((D = u.value) == null || D.flyTo({ center: b.value.center })));
|
|
4838
|
+
}), ut(() => e.bounds, (g, T) => {
|
|
4839
|
+
if (!g) return;
|
|
4840
|
+
const M = g == null ? void 0 : g.flat(), D = T == null ? void 0 : T.flat();
|
|
4841
|
+
!(M && D && M.length === D.length && M.every((K, B) => Math.round(K * 100) / 100 === Math.round(D[B] * 100) / 100)) && u.value && u.value.fitBounds(g);
|
|
4842
|
+
}), (g, T) => (j(), ae("div", Ji, [
|
|
4843
|
+
F.value ? (j(), ae("div", Xi, [
|
|
4844
|
+
ct(g.$slots, "no-location-icon", {}, () => [
|
|
4845
|
+
Jr(ue(na), {
|
|
4846
|
+
color: ue(ni),
|
|
4847
|
+
size: ue(ri)
|
|
4935
4848
|
}, null, 8, ["color", "size"])
|
|
4936
4849
|
], !0),
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4850
|
+
J("div", Qi, [
|
|
4851
|
+
ct(g.$slots, "no-location-title", {}, () => [
|
|
4852
|
+
Xr(ce(ue(i).t("no_location_data")), 1)
|
|
4940
4853
|
], !0)
|
|
4941
4854
|
]),
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4855
|
+
J("div", e0, [
|
|
4856
|
+
ct(g.$slots, "no-location-description", {}, () => [
|
|
4857
|
+
J("p", null, ce(ue(i).t("no_location_data_description")), 1)
|
|
4945
4858
|
], !0)
|
|
4946
4859
|
])
|
|
4947
|
-
])) :
|
|
4948
|
-
|
|
4949
|
-
id:
|
|
4860
|
+
])) : De("", !0),
|
|
4861
|
+
J("div", {
|
|
4862
|
+
id: ue(m),
|
|
4950
4863
|
class: "analytics-geo-map-container"
|
|
4951
|
-
}, null, 8,
|
|
4952
|
-
|
|
4864
|
+
}, null, 8, t0),
|
|
4865
|
+
P.value ? (j(), Qt(ji, {
|
|
4953
4866
|
key: 1,
|
|
4954
4867
|
class: "legend-container",
|
|
4955
|
-
data:
|
|
4956
|
-
metric:
|
|
4957
|
-
title:
|
|
4958
|
-
}, null, 8, ["data", "metric", "title"])) :
|
|
4959
|
-
|
|
4868
|
+
data: ue(d),
|
|
4869
|
+
metric: g.metric,
|
|
4870
|
+
title: Q.value
|
|
4871
|
+
}, null, 8, ["data", "metric", "title"])) : De("", !0),
|
|
4872
|
+
v.value && y.value ? (j(), Qt(qi, {
|
|
4960
4873
|
key: 2,
|
|
4961
|
-
data:
|
|
4962
|
-
left:
|
|
4963
|
-
"show-value":
|
|
4964
|
-
top:
|
|
4965
|
-
}, null, 8, ["data", "left", "show-value", "top"])) :
|
|
4874
|
+
data: y.value,
|
|
4875
|
+
left: _.value.left,
|
|
4876
|
+
"show-value": g.showTooltipValue,
|
|
4877
|
+
top: _.value.top
|
|
4878
|
+
}, null, 8, ["data", "left", "show-value", "top"])) : De("", !0)
|
|
4966
4879
|
]));
|
|
4967
4880
|
}
|
|
4968
|
-
}),
|
|
4881
|
+
}), l0 = /* @__PURE__ */ Nt(n0, [["__scopeId", "data-v-f8b9de28"]]);
|
|
4969
4882
|
export {
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4883
|
+
l0 as AnalyticsGeoMap,
|
|
4884
|
+
Bi as debounce,
|
|
4885
|
+
s0 as exploreResultToCountryMetrics
|
|
4973
4886
|
};
|