@kong-ui-public/analytics-geo-map 1.9.10 → 1.9.11

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.
@@ -1,52 +1,37 @@
1
- import { computed as j, defineComponent as ft, openBlock as W, createElementBlock as ne, toDisplayString as ye, createCommentVNode as xe, Fragment as $r, renderList as jr, createElementVNode as X, normalizeStyle as Kr, useCssVars as qr, toRef as Le, ref as we, useId as Wr, onUnmounted as Zr, onMounted as Jr, watch as Xe, renderSlot as et, createVNode as Qr, unref as oe, createTextVNode as Xr, createBlock as bt } from "vue";
2
- import { Map as ea } from "maplibre-gl";
3
- import { createI18n as ta, i18nTComponent as na } from "@kong-ui-public/i18n";
4
- import { AnalyticsIcon as ra } from "@kong/icons";
5
- const aa = { ms: "ms", bytes: "Byte{plural}", count: "request{plural}", "count/minute": "rpm", requests: "request{plural}" }, ia = { error_rate: "Error rate", request_count: "Request count", request_per_minute: "Requests per minute", response_latency_average: "Response latency (avg)", response_latency_p99: "Response latency (p99)", response_latency_p95: "Response latency (p95)", response_latency_p50: "Response latency (p50)", kong_latency_average: "Kong latency (avg)", kong_latency_p99: "Kong latency (p99)", kong_latency_p95: "Kong latency (p95)", kong_latency_p50: "Kong latency (p50)", upstream_latency_average: "Upstream latency (avg)", upstream_latency_p99: "Upstream latency (p99)", upstream_latency_p95: "Upstream latency (p95)", upstream_latency_p50: "Upstream latency (p50)", response_size_average: "Response size (avg)", response_size_p99: "Response size (p99)", response_size_p95: "Response size (p95)", response_size_p50: "Response size (p50)", response_size_sum: "Response size (sum)", request_size_average: "Request size (avg)", request_size_p99: "Request size (p99)", request_size_p95: "Request size (p95)", request_size_p50: "Request size (p50)", request_size_sum: "Request size (sum)", cache_hit_rate: "Cache hit rate" }, oa = { windows_zoom_help_text: "Use Ctrl + Scroll to zoom the map", mac_zoom_help_text: "Use ⌘ + Scroll to zoom the map", mobile_zoom_help_text: "Use two fingers to zoom the map" }, sa = "No data in the current time frame", la = "Once there is traffic, it will display here", ua = {
6
- metricUnits: aa,
7
- metrics: ia,
8
- cooperative_gestures: oa,
9
- no_location_data: sa,
10
- no_location_data_description: la
11
- };
12
- function ca() {
13
- const e = ta("en-us", ua);
14
- return {
15
- i18n: e,
16
- i18nT: na(e)
17
- // Translation component <i18n-t>
18
- };
19
- }
1
+ import { computed as j, defineComponent as ft, openBlock as Q, createElementBlock as re, toDisplayString as _e, createCommentVNode as Me, Fragment as Kr, renderList as qr, createElementVNode as te, normalizeStyle as Wr, useCssVars as Zr, inject as Jr, toRef as ve, ref as se, useId as Qr, onUnmounted as Xr, onMounted as ea, watch as Pe, renderSlot as Xe, createVNode as ta, unref as le, createTextVNode as na, createBlock as zt } from "vue";
2
+ import { Map as ra } from "maplibre-gl";
3
+ import { AnalyticsIcon as aa } from "@kong/icons";
4
+ import { createI18n as ia, i18nTComponent as oa } from "@kong-ui-public/i18n";
20
5
  const Ht = "kapture:prepare", Yt = "kapture:restore";
21
- function da(e) {
6
+ function sa(t) {
22
7
  let n;
23
8
  const a = () => {
24
9
  n?.(), n = void 0;
25
- }, i = (l) => {
26
- l.detail?.waitUntil(
10
+ }, o = (u) => {
11
+ u.detail?.waitUntil(
27
12
  (async () => {
28
- n = await e();
13
+ n = await t();
29
14
  })()
30
15
  );
31
16
  };
32
- return window.addEventListener(Ht, i), window.addEventListener(Yt, a), () => {
33
- window.removeEventListener(Ht, i), window.removeEventListener(Yt, a), a();
17
+ return window.addEventListener(Ht, o), window.addEventListener(Yt, a), () => {
18
+ window.removeEventListener(Ht, o), window.removeEventListener(Yt, a), a();
34
19
  };
35
20
  }
36
- function ma(e, n = {}) {
37
- return da(async () => {
38
- const a = e();
21
+ function la(t, n = {}) {
22
+ return sa(async () => {
23
+ const a = t();
39
24
  if (!a)
40
25
  return;
41
26
  n.redraw?.();
42
- const i = new Image();
43
- return i.src = a.toDataURL("image/png"), await i.decode(), i.style.cssText = `position:absolute;top:0;left:0;width:${a.clientWidth}px;height:${a.clientHeight}px;`, a.parentElement?.appendChild(i), a.style.visibility = "hidden", () => {
44
- i.remove(), a.style.visibility = "";
27
+ const o = new Image();
28
+ return o.src = a.toDataURL("image/png"), await o.decode(), o.style.cssText = `position:absolute;top:0;left:0;width:${a.clientWidth}px;height:${a.clientHeight}px;`, a.parentElement?.appendChild(o), a.style.visibility = "hidden", () => {
29
+ o.remove(), a.style.visibility = "";
45
30
  };
46
31
  });
47
32
  }
48
- var v = /* @__PURE__ */ ((e) => (e.FIFTEEN_MIN = "15m", e.ONE_HOUR = "1h", e.SIX_HOUR = "6h", e.TWELVE_HOUR = "12h", e.ONE_DAY = "24h", e.SEVEN_DAY = "7d", e.THIRTY_DAY = "30d", e.NINETY_DAY = "90d", e.ONE_HUNDRED_EIGHTY_DAY = "180d", e.ONE_YEAR = "365d", e.CURRENT_WEEK = "current_week", e.CURRENT_MONTH = "current_month", e.CURRENT_QUARTER = "current_quarter", e.CURRENT_YEAR = "current_year", e.PREVIOUS_WEEK = "previous_week", e.PREVIOUS_MONTH = "previous_month", e.PREVIOUS_QUARTER = "previous_quarter", e.PREVIOUS_YEAR = "previous_year", e))(v || {});
49
- const fa = ["in", "not_in", "selector"], pa = ["empty", "not_empty"], se = (e) => e.filter((n) => n !== "time"), yn = [
33
+ var v = /* @__PURE__ */ ((t) => (t.FIFTEEN_MIN = "15m", t.ONE_HOUR = "1h", t.SIX_HOUR = "6h", t.TWELVE_HOUR = "12h", t.ONE_DAY = "24h", t.SEVEN_DAY = "7d", t.THIRTY_DAY = "30d", t.NINETY_DAY = "90d", t.ONE_HUNDRED_EIGHTY_DAY = "180d", t.ONE_YEAR = "365d", t.CURRENT_WEEK = "current_week", t.CURRENT_MONTH = "current_month", t.CURRENT_QUARTER = "current_quarter", t.CURRENT_YEAR = "current_year", t.PREVIOUS_WEEK = "previous_week", t.PREVIOUS_MONTH = "previous_month", t.PREVIOUS_QUARTER = "previous_quarter", t.PREVIOUS_YEAR = "previous_year", t))(v || {});
34
+ const ua = ["in", "not_in", "selector"], ca = ["empty", "not_empty"], ue = (t) => t.filter((n) => n !== "time"), _n = [
50
35
  "api",
51
36
  "api_package",
52
37
  "api_product",
@@ -60,14 +45,14 @@ const fa = ["in", "not_in", "selector"], pa = ["empty", "not_empty"], se = (e) =
60
45
  "status_code",
61
46
  "status_code_grouped",
62
47
  "time"
63
- ], hn = se(yn), ya = [
48
+ ], gn = ue(_n), da = [
64
49
  "active_services",
65
50
  "error_rate",
66
51
  "request_count",
67
52
  "request_per_minute",
68
53
  "response_latency_average"
69
- ], _n = [
70
- ...yn,
54
+ ], wn = [
55
+ ..._n,
71
56
  "application",
72
57
  "bot_info_action",
73
58
  "bot_info_detection_reason",
@@ -84,8 +69,8 @@ const fa = ["in", "not_in", "selector"], pa = ["empty", "not_empty"], se = (e) =
84
69
  "realm",
85
70
  "portal_api",
86
71
  "principal"
87
- ], gn = se(_n), ha = [
88
- ...ya,
72
+ ], vn = ue(wn), ma = [
73
+ ...da,
89
74
  "cache_hit_rate",
90
75
  "response_latency_p99",
91
76
  "response_latency_p95",
@@ -112,7 +97,7 @@ const fa = ["in", "not_in", "selector"], pa = ["empty", "not_empty"], se = (e) =
112
97
  "request_size_p50",
113
98
  "request_size_average",
114
99
  "request_size_sum"
115
- ], _a = [
100
+ ], fa = [
116
101
  "control_plane",
117
102
  "control_plane_group",
118
103
  "ai_control_plane",
@@ -139,7 +124,7 @@ const fa = ["in", "not_in", "selector"], pa = ["empty", "not_empty"], se = (e) =
139
124
  "model",
140
125
  "agent",
141
126
  "ai_data_plane_node"
142
- ], wn = se(_a), ga = [
127
+ ], xn = ue(fa), pa = [
143
128
  "a2a_context_id",
144
129
  "a2a_error",
145
130
  "a2a_method",
@@ -195,8 +180,8 @@ const fa = ["in", "not_in", "selector"], pa = ["empty", "not_empty"], se = (e) =
195
180
  "upstream_status_code_grouped",
196
181
  "websocket"
197
182
  ];
198
- se(ga);
199
- const wa = [
183
+ ue(pa);
184
+ const ya = [
200
185
  "ai_count",
201
186
  "latencies_response_ms",
202
187
  "latencies_upstream_ms",
@@ -208,9 +193,9 @@ const wa = [
208
193
  "status_code",
209
194
  "upstream_status_code"
210
195
  ];
211
- se(wa);
212
- const va = [
213
- ..._n,
196
+ ue(ya);
197
+ const ha = [
198
+ ...wn,
214
199
  "a2a_context_id",
215
200
  "a2a_error",
216
201
  "a2a_method",
@@ -219,11 +204,11 @@ const va = [
219
204
  "mcp_method",
220
205
  "mcp_session_id",
221
206
  "mcp_tool_name"
222
- ], vn = se(va);
207
+ ], Mn = ue(ha);
223
208
  [
224
- ...ha
209
+ ...ma
225
210
  ];
226
- const xa = [
211
+ const _a = [
227
212
  "control_plane",
228
213
  "data_plane_group",
229
214
  "managed_cache",
@@ -231,8 +216,8 @@ const xa = [
231
216
  "provider",
232
217
  "provider_region",
233
218
  "time"
234
- ], xn = se(xa);
235
- new Set(hn), new Set(gn), new Set(wn), new Set(vn), new Set(xn);
219
+ ], Fn = ue(_a);
220
+ new Set(gn), new Set(vn), new Set(xn), new Set(Mn), new Set(Fn);
236
221
  const pt = [
237
222
  { code: "AF", name: "Afghanistan" },
238
223
  { code: "AX", name: "Aland Islands" },
@@ -481,8 +466,8 @@ const pt = [
481
466
  { code: "ZM", name: "Zambia" },
482
467
  { code: "ZW", name: "Zimbabwe" }
483
468
  ];
484
- pt.map((e) => e.code);
485
- const Fa = (e) => ({
469
+ pt.map((t) => t.code);
470
+ const ga = (t) => ({
486
471
  type: "array",
487
472
  description: "A list of filters to apply to the query",
488
473
  items: {
@@ -493,11 +478,11 @@ const Fa = (e) => ({
493
478
  properties: {
494
479
  field: {
495
480
  type: "string",
496
- ...e ? { enum: e } : {}
481
+ ...t ? { enum: t } : {}
497
482
  },
498
483
  operator: {
499
484
  type: "string",
500
- enum: fa
485
+ enum: ua
501
486
  },
502
487
  value: {
503
488
  type: "array",
@@ -519,11 +504,11 @@ const Fa = (e) => ({
519
504
  properties: {
520
505
  field: {
521
506
  type: "string",
522
- ...e ? { enum: e } : {}
507
+ ...t ? { enum: t } : {}
523
508
  },
524
509
  operator: {
525
510
  type: "string",
526
- enum: pa
511
+ enum: ca
527
512
  }
528
513
  },
529
514
  required: [
@@ -534,7 +519,7 @@ const Fa = (e) => ({
534
519
  }
535
520
  ]
536
521
  }
537
- }), Ma = [
522
+ }), wa = [
538
523
  "control_plane",
539
524
  "gateway_service",
540
525
  "realm",
@@ -548,86 +533,86 @@ const Fa = (e) => ({
548
533
  "region",
549
534
  "hostname"
550
535
  ];
551
- Fa([
536
+ ga([
552
537
  .../* @__PURE__ */ new Set([
553
- ...gn,
554
- ...hn,
555
- ...wn,
556
538
  ...vn,
557
- ...Ma,
558
- ...xn
539
+ ...gn,
540
+ ...xn,
541
+ ...Mn,
542
+ ...wa,
543
+ ...Fn
559
544
  ])
560
545
  ]);
561
- let Ta = {};
562
- function Sa() {
563
- return Ta;
546
+ let va = {};
547
+ function xa() {
548
+ return va;
564
549
  }
565
- const Da = 60, Na = 3600, $t = /* @__PURE__ */ Symbol.for("constructDateFrom");
566
- function Te(e, n) {
567
- return typeof e == "function" ? e(n) : e && typeof e == "object" && $t in e ? e[$t](n) : e instanceof Date ? new e.constructor(n) : new Date(n);
550
+ const Ma = 60, Fa = 3600, $t = /* @__PURE__ */ Symbol.for("constructDateFrom");
551
+ function Te(t, n) {
552
+ return typeof t == "function" ? t(n) : t && typeof t == "object" && $t in t ? t[$t](n) : t instanceof Date ? new t.constructor(n) : new Date(n);
568
553
  }
569
- function le(e, n) {
570
- return Te(n || e, e);
554
+ function ce(t, n) {
555
+ return Te(n || t, t);
571
556
  }
572
- function Pe(e, n) {
573
- const a = le(e, n?.in);
557
+ function Le(t, n) {
558
+ const a = ce(t, n?.in);
574
559
  return a.setHours(0, 0, 0, 0), a;
575
560
  }
576
- function Be(e, n) {
577
- const a = Sa(), i = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, l = le(e, n?.in), d = l.getDay(), y = (d < i ? 7 : 0) + d - i;
578
- return l.setDate(l.getDate() - y), l.setHours(0, 0, 0, 0), l;
561
+ function Be(t, n) {
562
+ const a = xa(), o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, u = ce(t, n?.in), d = u.getDay(), y = (d < o ? 7 : 0) + d - o;
563
+ return u.setDate(u.getDate() - y), u.setHours(0, 0, 0, 0), u;
579
564
  }
580
- function Ge(e, n, a) {
581
- const i = le(e, a?.in);
582
- return isNaN(n) ? Te(e, NaN) : (i.setDate(i.getDate() + n), i);
565
+ function Ce(t, n, a) {
566
+ const o = ce(t, a?.in);
567
+ return isNaN(n) ? Te(t, NaN) : (o.setDate(o.getDate() + n), o);
583
568
  }
584
- function Fn(e, n, a) {
585
- const i = le(e, a?.in);
586
- if (isNaN(n)) return Te(e, NaN);
569
+ function Tn(t, n, a) {
570
+ const o = ce(t, a?.in);
571
+ if (isNaN(n)) return Te(t, NaN);
587
572
  if (!n)
588
- return i;
589
- const l = i.getDate(), d = Te(e, i.getTime());
590
- d.setMonth(i.getMonth() + n + 1, 0);
573
+ return o;
574
+ const u = o.getDate(), d = Te(t, o.getTime());
575
+ d.setMonth(o.getMonth() + n + 1, 0);
591
576
  const y = d.getDate();
592
- return l >= y ? d : (i.setFullYear(
577
+ return u >= y ? d : (o.setFullYear(
593
578
  d.getFullYear(),
594
579
  d.getMonth(),
595
- l
596
- ), i);
580
+ u
581
+ ), o);
597
582
  }
598
- function ka(e, n, a) {
599
- return Fn(e, n * 3, a);
583
+ function Ta(t, n, a) {
584
+ return Tn(t, n * 3, a);
600
585
  }
601
- function fe(e, n) {
602
- const a = le(e, n?.in), i = a.getMonth(), l = i - i % 3;
603
- return a.setMonth(l, 1), a.setHours(0, 0, 0, 0), a;
586
+ function ye(t, n) {
587
+ const a = ce(t, n?.in), o = a.getMonth(), u = o - o % 3;
588
+ return a.setMonth(u, 1), a.setHours(0, 0, 0, 0), a;
604
589
  }
605
- function pe(e, n) {
606
- const a = le(e, n?.in);
590
+ function he(t, n) {
591
+ const a = ce(t, n?.in);
607
592
  return a.setDate(1), a.setHours(0, 0, 0, 0), a;
608
593
  }
609
- function Ra(e, n) {
610
- const a = le(e, n?.in), i = a.getFullYear(), l = a.getMonth(), d = Te(a, 0);
611
- return d.setFullYear(i, l + 1, 0), d.setHours(0, 0, 0, 0), d.getDate();
594
+ function Sa(t, n) {
595
+ const a = ce(t, n?.in), o = a.getFullYear(), u = a.getMonth(), d = Te(a, 0);
596
+ return d.setFullYear(o, u + 1, 0), d.setHours(0, 0, 0, 0), d.getDate();
612
597
  }
613
- function jt(e) {
614
- return Math.trunc(e * Na);
598
+ function jt(t) {
599
+ return Math.trunc(t * Fa);
615
600
  }
616
- function Ea(e) {
617
- const n = e / Da;
601
+ function Da(t) {
602
+ const n = t / Ma;
618
603
  return Math.trunc(n);
619
604
  }
620
- function Mn(e, n, a) {
621
- return Fn(e, -1, a);
605
+ function Sn(t, n, a) {
606
+ return Tn(t, -1, a);
622
607
  }
623
- function Tn(e, n, a) {
624
- return ka(e, -1, a);
608
+ function Dn(t, n, a) {
609
+ return Ta(t, -1, a);
625
610
  }
626
- function La(e, n) {
627
- const a = Ca(n);
628
- return "formatToParts" in a ? Ga(a, e) : Oa(a, e);
611
+ function ka(t, n) {
612
+ const a = La(n);
613
+ return "formatToParts" in a ? Ra(a, t) : Ea(a, t);
629
614
  }
630
- const Pa = {
615
+ const Na = {
631
616
  year: 0,
632
617
  month: 1,
633
618
  day: 2,
@@ -635,32 +620,32 @@ const Pa = {
635
620
  minute: 4,
636
621
  second: 5
637
622
  };
638
- function Ga(e, n) {
623
+ function Ra(t, n) {
639
624
  try {
640
- const a = e.formatToParts(n), i = [];
641
- for (let l = 0; l < a.length; l++) {
642
- const d = Pa[a[l].type];
643
- d !== void 0 && (i[d] = parseInt(a[l].value, 10));
625
+ const a = t.formatToParts(n), o = [];
626
+ for (let u = 0; u < a.length; u++) {
627
+ const d = Na[a[u].type];
628
+ d !== void 0 && (o[d] = parseInt(a[u].value, 10));
644
629
  }
645
- return i;
630
+ return o;
646
631
  } catch (a) {
647
632
  if (a instanceof RangeError)
648
633
  return [NaN];
649
634
  throw a;
650
635
  }
651
636
  }
652
- function Oa(e, n) {
653
- const a = e.format(n), i = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(a);
637
+ function Ea(t, n) {
638
+ const a = t.format(n), o = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(a);
654
639
  return [
655
- parseInt(i[3], 10),
656
- parseInt(i[1], 10),
657
- parseInt(i[2], 10),
658
- parseInt(i[4], 10),
659
- parseInt(i[5], 10),
660
- parseInt(i[6], 10)
640
+ parseInt(o[3], 10),
641
+ parseInt(o[1], 10),
642
+ parseInt(o[2], 10),
643
+ parseInt(o[4], 10),
644
+ parseInt(o[5], 10),
645
+ parseInt(o[6], 10)
661
646
  ];
662
647
  }
663
- const tt = {}, Kt = new Intl.DateTimeFormat("en-US", {
648
+ const et = {}, Kt = new Intl.DateTimeFormat("en-US", {
664
649
  hourCycle: "h23",
665
650
  timeZone: "America/New_York",
666
651
  year: "numeric",
@@ -669,11 +654,11 @@ const tt = {}, Kt = new Intl.DateTimeFormat("en-US", {
669
654
  hour: "2-digit",
670
655
  minute: "2-digit",
671
656
  second: "2-digit"
672
- }).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Ia = Kt === "06/25/2014, 00:00:00" || Kt === "‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";
673
- function Ca(e) {
674
- return tt[e] || (tt[e] = Ia ? new Intl.DateTimeFormat("en-US", {
657
+ }).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Pa = Kt === "06/25/2014, 00:00:00" || Kt === "‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";
658
+ function La(t) {
659
+ return et[t] || (et[t] = Pa ? new Intl.DateTimeFormat("en-US", {
675
660
  hourCycle: "h23",
676
- timeZone: e,
661
+ timeZone: t,
677
662
  year: "numeric",
678
663
  month: "numeric",
679
664
  day: "2-digit",
@@ -682,81 +667,81 @@ function Ca(e) {
682
667
  second: "2-digit"
683
668
  }) : new Intl.DateTimeFormat("en-US", {
684
669
  hour12: !1,
685
- timeZone: e,
670
+ timeZone: t,
686
671
  year: "numeric",
687
672
  month: "numeric",
688
673
  day: "2-digit",
689
674
  hour: "2-digit",
690
675
  minute: "2-digit",
691
676
  second: "2-digit"
692
- })), tt[e];
677
+ })), et[t];
693
678
  }
694
- function yt(e, n, a, i, l, d, y) {
695
- const w = /* @__PURE__ */ new Date(0);
696
- return w.setUTCFullYear(e, n, a), w.setUTCHours(i, l, d, y), w;
679
+ function yt(t, n, a, o, u, d, y) {
680
+ const h = /* @__PURE__ */ new Date(0);
681
+ return h.setUTCFullYear(t, n, a), h.setUTCHours(o, u, d, y), h;
697
682
  }
698
- const qt = 36e5, Ua = 6e4, nt = {
683
+ const qt = 36e5, Ca = 6e4, tt = {
699
684
  timezoneZ: /^(Z)$/,
700
685
  timezoneHH: /^([+-]\d{2})$/,
701
686
  timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
702
687
  };
703
- function ze(e, n, a) {
704
- if (!e)
688
+ function be(t, n, a) {
689
+ if (!t)
705
690
  return 0;
706
- let i = nt.timezoneZ.exec(e);
707
- if (i)
691
+ let o = tt.timezoneZ.exec(t);
692
+ if (o)
708
693
  return 0;
709
- let l, d;
710
- if (i = nt.timezoneHH.exec(e), i)
711
- return l = parseInt(i[1], 10), Wt(l) ? -(l * qt) : NaN;
712
- if (i = nt.timezoneHHMM.exec(e), i) {
713
- l = parseInt(i[2], 10);
714
- const y = parseInt(i[3], 10);
715
- return Wt(l, y) ? (d = Math.abs(l) * qt + y * Ua, i[1] === "+" ? -d : d) : NaN;
716
- }
717
- if (Ba(e)) {
694
+ let u, d;
695
+ if (o = tt.timezoneHH.exec(t), o)
696
+ return u = parseInt(o[1], 10), Wt(u) ? -(u * qt) : NaN;
697
+ if (o = tt.timezoneHHMM.exec(t), o) {
698
+ u = parseInt(o[2], 10);
699
+ const y = parseInt(o[3], 10);
700
+ return Wt(u, y) ? (d = Math.abs(u) * qt + y * Ca, o[1] === "+" ? -d : d) : NaN;
701
+ }
702
+ if (Ia(t)) {
718
703
  n = new Date(n || Date.now());
719
- const y = a ? n : Aa(n), w = dt(y, e);
720
- return -(a ? w : Va(n, w, e));
704
+ const y = a ? n : Ga(n), h = dt(y, t);
705
+ return -(a ? h : Oa(n, h, t));
721
706
  }
722
707
  return NaN;
723
708
  }
724
- function Aa(e) {
725
- return yt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
709
+ function Ga(t) {
710
+ return yt(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds());
726
711
  }
727
- function dt(e, n) {
728
- const a = La(e, n), i = yt(a[0], a[1] - 1, a[2], a[3] % 24, a[4], a[5], 0).getTime();
729
- let l = e.getTime();
730
- const d = l % 1e3;
731
- return l -= d >= 0 ? d : 1e3 + d, i - l;
712
+ function dt(t, n) {
713
+ const a = ka(t, n), o = yt(a[0], a[1] - 1, a[2], a[3] % 24, a[4], a[5], 0).getTime();
714
+ let u = t.getTime();
715
+ const d = u % 1e3;
716
+ return u -= d >= 0 ? d : 1e3 + d, o - u;
732
717
  }
733
- function Va(e, n, a) {
734
- let i = e.getTime() - n;
735
- const l = dt(new Date(i), a);
736
- if (n === l)
718
+ function Oa(t, n, a) {
719
+ let o = t.getTime() - n;
720
+ const u = dt(new Date(o), a);
721
+ if (n === u)
737
722
  return n;
738
- i -= l - n;
739
- const d = dt(new Date(i), a);
740
- return l === d ? l : Math.max(l, d);
723
+ o -= u - n;
724
+ const d = dt(new Date(o), a);
725
+ return u === d ? u : Math.max(u, d);
741
726
  }
742
- function Wt(e, n) {
743
- return -23 <= e && e <= 23 && (n == null || 0 <= n && n <= 59);
727
+ function Wt(t, n) {
728
+ return -23 <= t && t <= 23 && (n == null || 0 <= n && n <= 59);
744
729
  }
745
730
  const Zt = {};
746
- function Ba(e) {
747
- if (Zt[e])
731
+ function Ia(t) {
732
+ if (Zt[t])
748
733
  return !0;
749
734
  try {
750
- return new Intl.DateTimeFormat(void 0, { timeZone: e }), Zt[e] = !0, !0;
735
+ return new Intl.DateTimeFormat(void 0, { timeZone: t }), Zt[t] = !0, !0;
751
736
  } catch {
752
737
  return !1;
753
738
  }
754
739
  }
755
- function Jt(e) {
756
- const n = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
757
- return n.setUTCFullYear(e.getFullYear()), +e - +n;
740
+ function Jt(t) {
741
+ const n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
742
+ return n.setUTCFullYear(t.getFullYear()), +t - +n;
758
743
  }
759
- const Sn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, rt = 36e5, Qt = 6e4, za = 2, b = {
744
+ const kn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, nt = 36e5, Qt = 6e4, Ua = 2, H = {
760
745
  dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
761
746
  datePattern: /^([0-9W+-]+)(.*)/,
762
747
  // year tokens
@@ -788,64 +773,64 @@ const Sn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
788
773
  HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
789
774
  HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
790
775
  // time zone tokens (to identify the presence of a tz)
791
- timeZone: Sn
776
+ timeZone: kn
792
777
  };
793
- function mt(e, n = {}) {
778
+ function mt(t, n = {}) {
794
779
  if (arguments.length < 1)
795
780
  throw new TypeError("1 argument required, but only " + arguments.length + " present");
796
- if (e === null)
781
+ if (t === null)
797
782
  return /* @__PURE__ */ new Date(NaN);
798
- const a = n.additionalDigits == null ? za : Number(n.additionalDigits);
783
+ const a = n.additionalDigits == null ? Ua : Number(n.additionalDigits);
799
784
  if (a !== 2 && a !== 1 && a !== 0)
800
785
  throw new RangeError("additionalDigits must be 0, 1 or 2");
801
- if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
802
- return new Date(e.getTime());
803
- if (typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]")
804
- return new Date(e);
805
- if (Object.prototype.toString.call(e) !== "[object String]")
786
+ if (t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]")
787
+ return new Date(t.getTime());
788
+ if (typeof t == "number" || Object.prototype.toString.call(t) === "[object Number]")
789
+ return new Date(t);
790
+ if (Object.prototype.toString.call(t) !== "[object String]")
806
791
  return /* @__PURE__ */ new Date(NaN);
807
- const i = ba(e), { year: l, restDateString: d } = Ha(i.date, a), y = Ya(d, l);
792
+ const o = Aa(t), { year: u, restDateString: d } = Va(o.date, a), y = Ba(d, u);
808
793
  if (y === null || isNaN(y.getTime()))
809
794
  return /* @__PURE__ */ new Date(NaN);
810
795
  if (y) {
811
- const w = y.getTime();
812
- let S = 0, D;
813
- if (i.time && (S = $a(i.time), S === null || isNaN(S)))
796
+ const h = y.getTime();
797
+ let T = 0, N;
798
+ if (o.time && (T = ba(o.time), T === null || isNaN(T)))
814
799
  return /* @__PURE__ */ new Date(NaN);
815
- if (i.timeZone || n.timeZone) {
816
- if (D = ze(i.timeZone || n.timeZone, new Date(w + S)), isNaN(D))
800
+ if (o.timeZone || n.timeZone) {
801
+ if (N = be(o.timeZone || n.timeZone, new Date(h + T)), isNaN(N))
817
802
  return /* @__PURE__ */ new Date(NaN);
818
803
  } else
819
- D = Jt(new Date(w + S)), D = Jt(new Date(w + S + D));
820
- return new Date(w + S + D);
804
+ N = Jt(new Date(h + T)), N = Jt(new Date(h + T + N));
805
+ return new Date(h + T + N);
821
806
  } else
822
807
  return /* @__PURE__ */ new Date(NaN);
823
808
  }
824
- function ba(e) {
809
+ function Aa(t) {
825
810
  const n = {};
826
- let a = b.dateTimePattern.exec(e), i;
827
- if (a ? (n.date = a[1], i = a[3]) : (a = b.datePattern.exec(e), a ? (n.date = a[1], i = a[2]) : (n.date = null, i = e)), i) {
828
- const l = b.timeZone.exec(i);
829
- l ? (n.time = i.replace(l[1], ""), n.timeZone = l[1].trim()) : n.time = i;
811
+ let a = H.dateTimePattern.exec(t), o;
812
+ if (a ? (n.date = a[1], o = a[3]) : (a = H.datePattern.exec(t), a ? (n.date = a[1], o = a[2]) : (n.date = null, o = t)), o) {
813
+ const u = H.timeZone.exec(o);
814
+ u ? (n.time = o.replace(u[1], ""), n.timeZone = u[1].trim()) : n.time = o;
830
815
  }
831
816
  return n;
832
817
  }
833
- function Ha(e, n) {
834
- if (e) {
835
- const a = b.YYY[n], i = b.YYYYY[n];
836
- let l = b.YYYY.exec(e) || i.exec(e);
837
- if (l) {
838
- const d = l[1];
818
+ function Va(t, n) {
819
+ if (t) {
820
+ const a = H.YYY[n], o = H.YYYYY[n];
821
+ let u = H.YYYY.exec(t) || o.exec(t);
822
+ if (u) {
823
+ const d = u[1];
839
824
  return {
840
825
  year: parseInt(d, 10),
841
- restDateString: e.slice(d.length)
826
+ restDateString: t.slice(d.length)
842
827
  };
843
828
  }
844
- if (l = b.YY.exec(e) || a.exec(e), l) {
845
- const d = l[1];
829
+ if (u = H.YY.exec(t) || a.exec(t), u) {
830
+ const d = u[1];
846
831
  return {
847
832
  year: parseInt(d, 10) * 100,
848
- restDateString: e.slice(d.length)
833
+ restDateString: t.slice(d.length)
849
834
  };
850
835
  }
851
836
  }
@@ -853,132 +838,132 @@ function Ha(e, n) {
853
838
  year: null
854
839
  };
855
840
  }
856
- function Ya(e, n) {
841
+ function Ba(t, n) {
857
842
  if (n === null)
858
843
  return null;
859
- let a, i, l;
860
- if (!e || !e.length)
844
+ let a, o, u;
845
+ if (!t || !t.length)
861
846
  return a = /* @__PURE__ */ new Date(0), a.setUTCFullYear(n), a;
862
- let d = b.MM.exec(e);
847
+ let d = H.MM.exec(t);
863
848
  if (d)
864
- return a = /* @__PURE__ */ new Date(0), i = parseInt(d[1], 10) - 1, en(n, i) ? (a.setUTCFullYear(n, i), a) : /* @__PURE__ */ new Date(NaN);
865
- if (d = b.DDD.exec(e), d) {
849
+ return a = /* @__PURE__ */ new Date(0), o = parseInt(d[1], 10) - 1, en(n, o) ? (a.setUTCFullYear(n, o), a) : /* @__PURE__ */ new Date(NaN);
850
+ if (d = H.DDD.exec(t), d) {
866
851
  a = /* @__PURE__ */ new Date(0);
867
852
  const y = parseInt(d[1], 10);
868
- return qa(n, y) ? (a.setUTCFullYear(n, 0, y), a) : /* @__PURE__ */ new Date(NaN);
853
+ return Ya(n, y) ? (a.setUTCFullYear(n, 0, y), a) : /* @__PURE__ */ new Date(NaN);
869
854
  }
870
- if (d = b.MMDD.exec(e), d) {
871
- a = /* @__PURE__ */ new Date(0), i = parseInt(d[1], 10) - 1;
855
+ if (d = H.MMDD.exec(t), d) {
856
+ a = /* @__PURE__ */ new Date(0), o = parseInt(d[1], 10) - 1;
872
857
  const y = parseInt(d[2], 10);
873
- return en(n, i, y) ? (a.setUTCFullYear(n, i, y), a) : /* @__PURE__ */ new Date(NaN);
858
+ return en(n, o, y) ? (a.setUTCFullYear(n, o, y), a) : /* @__PURE__ */ new Date(NaN);
874
859
  }
875
- if (d = b.Www.exec(e), d)
876
- return l = parseInt(d[1], 10) - 1, tn(l) ? Xt(n, l) : /* @__PURE__ */ new Date(NaN);
877
- if (d = b.WwwD.exec(e), d) {
878
- l = parseInt(d[1], 10) - 1;
860
+ if (d = H.Www.exec(t), d)
861
+ return u = parseInt(d[1], 10) - 1, tn(u) ? Xt(n, u) : /* @__PURE__ */ new Date(NaN);
862
+ if (d = H.WwwD.exec(t), d) {
863
+ u = parseInt(d[1], 10) - 1;
879
864
  const y = parseInt(d[2], 10) - 1;
880
- return tn(l, y) ? Xt(n, l, y) : /* @__PURE__ */ new Date(NaN);
865
+ return tn(u, y) ? Xt(n, u, y) : /* @__PURE__ */ new Date(NaN);
881
866
  }
882
867
  return null;
883
868
  }
884
- function $a(e) {
885
- let n, a, i = b.HH.exec(e);
886
- if (i)
887
- return n = parseFloat(i[1].replace(",", ".")), at(n) ? n % 24 * rt : NaN;
888
- if (i = b.HHMM.exec(e), i)
889
- return n = parseInt(i[1], 10), a = parseFloat(i[2].replace(",", ".")), at(n, a) ? n % 24 * rt + a * Qt : NaN;
890
- if (i = b.HHMMSS.exec(e), i) {
891
- n = parseInt(i[1], 10), a = parseInt(i[2], 10);
892
- const l = parseFloat(i[3].replace(",", "."));
893
- return at(n, a, l) ? n % 24 * rt + a * Qt + l * 1e3 : NaN;
869
+ function ba(t) {
870
+ let n, a, o = H.HH.exec(t);
871
+ if (o)
872
+ return n = parseFloat(o[1].replace(",", ".")), rt(n) ? n % 24 * nt : NaN;
873
+ if (o = H.HHMM.exec(t), o)
874
+ return n = parseInt(o[1], 10), a = parseFloat(o[2].replace(",", ".")), rt(n, a) ? n % 24 * nt + a * Qt : NaN;
875
+ if (o = H.HHMMSS.exec(t), o) {
876
+ n = parseInt(o[1], 10), a = parseInt(o[2], 10);
877
+ const u = parseFloat(o[3].replace(",", "."));
878
+ return rt(n, a, u) ? n % 24 * nt + a * Qt + u * 1e3 : NaN;
894
879
  }
895
880
  return null;
896
881
  }
897
- function Xt(e, n, a) {
882
+ function Xt(t, n, a) {
898
883
  n = n || 0, a = a || 0;
899
- const i = /* @__PURE__ */ new Date(0);
900
- i.setUTCFullYear(e, 0, 4);
901
- const l = i.getUTCDay() || 7, d = n * 7 + a + 1 - l;
902
- return i.setUTCDate(i.getUTCDate() + d), i;
884
+ const o = /* @__PURE__ */ new Date(0);
885
+ o.setUTCFullYear(t, 0, 4);
886
+ const u = o.getUTCDay() || 7, d = n * 7 + a + 1 - u;
887
+ return o.setUTCDate(o.getUTCDate() + d), o;
903
888
  }
904
- const ja = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ka = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
905
- function Dn(e) {
906
- return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
889
+ const za = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ha = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
890
+ function Nn(t) {
891
+ return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
907
892
  }
908
- function en(e, n, a) {
893
+ function en(t, n, a) {
909
894
  if (n < 0 || n > 11)
910
895
  return !1;
911
896
  if (a != null) {
912
897
  if (a < 1)
913
898
  return !1;
914
- const i = Dn(e);
915
- if (i && a > Ka[n] || !i && a > ja[n])
899
+ const o = Nn(t);
900
+ if (o && a > Ha[n] || !o && a > za[n])
916
901
  return !1;
917
902
  }
918
903
  return !0;
919
904
  }
920
- function qa(e, n) {
905
+ function Ya(t, n) {
921
906
  if (n < 1)
922
907
  return !1;
923
- const a = Dn(e);
908
+ const a = Nn(t);
924
909
  return !(a && n > 366 || !a && n > 365);
925
910
  }
926
- function tn(e, n) {
927
- return !(e < 0 || e > 52 || n != null && (n < 0 || n > 6));
911
+ function tn(t, n) {
912
+ return !(t < 0 || t > 52 || n != null && (n < 0 || n > 6));
928
913
  }
929
- function at(e, n, a) {
930
- return !(e < 0 || e >= 25 || n != null && (n < 0 || n >= 60) || a != null && (a < 0 || a >= 60));
914
+ function rt(t, n, a) {
915
+ return !(t < 0 || t >= 25 || n != null && (n < 0 || n >= 60) || a != null && (a < 0 || a >= 60));
931
916
  }
932
- function Wa(e, n, a) {
933
- e = mt(e, a);
934
- const i = ze(n, e, !0), l = new Date(e.getTime() - i), d = /* @__PURE__ */ new Date(0);
935
- return d.setFullYear(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate()), d.setHours(l.getUTCHours(), l.getUTCMinutes(), l.getUTCSeconds(), l.getUTCMilliseconds()), d;
917
+ function $a(t, n, a) {
918
+ t = mt(t, a);
919
+ const o = be(n, t, !0), u = new Date(t.getTime() - o), d = /* @__PURE__ */ new Date(0);
920
+ return d.setFullYear(u.getUTCFullYear(), u.getUTCMonth(), u.getUTCDate()), d.setHours(u.getUTCHours(), u.getUTCMinutes(), u.getUTCSeconds(), u.getUTCMilliseconds()), d;
936
921
  }
937
- function Za(e, n, a) {
938
- if (typeof e == "string" && !e.match(Sn))
939
- return mt(e, { ...a, timeZone: n });
940
- e = mt(e, a);
941
- const i = yt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), l = ze(n, new Date(i));
942
- return new Date(i + l);
922
+ function ja(t, n, a) {
923
+ if (typeof t == "string" && !t.match(kn))
924
+ return mt(t, { ...a, timeZone: n });
925
+ t = mt(t, a);
926
+ const o = yt(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()).getTime(), u = be(n, new Date(o));
927
+ return new Date(o + u);
943
928
  }
944
- function Ja(e, n) {
945
- return -ze(e, n);
929
+ function Ka(t, n) {
930
+ return -be(t, n);
946
931
  }
947
- var Oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ue = { exports: {} };
932
+ var Ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ue = { exports: {} };
948
933
  Ue.exports;
949
934
  var nn;
950
- function Qa() {
951
- return nn || (nn = 1, (function(e, n) {
952
- var a = 200, i = "__lodash_hash_undefined__", l = 9007199254740991, d = "[object Arguments]", y = "[object Array]", w = "[object Boolean]", S = "[object Date]", D = "[object Error]", h = "[object Function]", E = "[object GeneratorFunction]", L = "[object Map]", R = "[object Number]", P = "[object Object]", O = "[object Promise]", C = "[object RegExp]", V = "[object Set]", U = "[object String]", z = "[object Symbol]", I = "[object WeakMap]", q = "[object ArrayBuffer]", p = "[object DataView]", g = "[object Float32Array]", s = "[object Float64Array]", m = "[object Int8Array]", _ = "[object Int16Array]", x = "[object Int32Array]", t = "[object Uint8Array]", o = "[object Uint8ClampedArray]", u = "[object Uint16Array]", F = "[object Uint32Array]", T = /[\\^$.*+?()[\]{}|]/g, N = /\w*$/, G = /^\[object .+?Constructor\]$/, $ = /^(?:0|[1-9]\d*)$/, k = {};
953
- k[d] = k[y] = k[q] = k[p] = k[w] = k[S] = k[g] = k[s] = k[m] = k[_] = k[x] = k[L] = k[R] = k[P] = k[C] = k[V] = k[U] = k[z] = k[t] = k[o] = k[u] = k[F] = !0, k[D] = k[h] = k[I] = !1;
954
- var ee = typeof Oe == "object" && Oe && Oe.Object === Object && Oe, he = typeof self == "object" && self && self.Object === Object && self, Z = ee || he || Function("return this")(), _t = n && !n.nodeType && n, gt = _t && !0 && e && !e.nodeType && e, Nn = gt && gt.exports === _t;
955
- function kn(r, c) {
935
+ function qa() {
936
+ return nn || (nn = 1, (function(t, n) {
937
+ var a = 200, o = "__lodash_hash_undefined__", u = 9007199254740991, d = "[object Arguments]", y = "[object Array]", h = "[object Boolean]", T = "[object Date]", N = "[object Error]", S = "[object Function]", E = "[object GeneratorFunction]", F = "[object Map]", O = "[object Number]", C = "[object Object]", P = "[object Promise]", L = "[object RegExp]", A = "[object Set]", I = "[object String]", U = "[object Symbol]", z = "[object WeakMap]", b = "[object ArrayBuffer]", f = "[object DataView]", _ = "[object Float32Array]", s = "[object Float64Array]", p = "[object Int8Array]", g = "[object Int16Array]", D = "[object Int32Array]", e = "[object Uint8Array]", i = "[object Uint8ClampedArray]", l = "[object Uint16Array]", w = "[object Uint32Array]", x = /[\\^$.*+?()[\]{}|]/g, k = /\w*$/, G = /^\[object .+?Constructor\]$/, K = /^(?:0|[1-9]\d*)$/, R = {};
938
+ R[d] = R[y] = R[b] = R[f] = R[h] = R[T] = R[_] = R[s] = R[p] = R[g] = R[D] = R[F] = R[O] = R[C] = R[L] = R[A] = R[I] = R[U] = R[e] = R[i] = R[l] = R[w] = !0, R[N] = R[S] = R[z] = !1;
939
+ var W = typeof Ge == "object" && Ge && Ge.Object === Object && Ge, J = typeof self == "object" && self && self.Object === Object && self, q = W || J || Function("return this")(), _t = n && !n.nodeType && n, gt = _t && !0 && t && !t.nodeType && t, Rn = gt && gt.exports === _t;
940
+ function En(r, c) {
956
941
  return r.set(c[0], c[1]), r;
957
942
  }
958
- function Rn(r, c) {
943
+ function Pn(r, c) {
959
944
  return r.add(c), r;
960
945
  }
961
- function En(r, c) {
962
- for (var f = -1, M = r ? r.length : 0; ++f < M && c(r[f], f, r) !== !1; )
946
+ function Ln(r, c) {
947
+ for (var m = -1, M = r ? r.length : 0; ++m < M && c(r[m], m, r) !== !1; )
963
948
  ;
964
949
  return r;
965
950
  }
966
- function Ln(r, c) {
967
- for (var f = -1, M = c.length, B = r.length; ++f < M; )
968
- r[B + f] = c[f];
951
+ function Cn(r, c) {
952
+ for (var m = -1, M = c.length, B = r.length; ++m < M; )
953
+ r[B + m] = c[m];
969
954
  return r;
970
955
  }
971
- function wt(r, c, f, M) {
972
- for (var B = -1, H = r ? r.length : 0; ++B < H; )
973
- f = c(f, r[B], B, r);
974
- return f;
956
+ function wt(r, c, m, M) {
957
+ for (var B = -1, Y = r ? r.length : 0; ++B < Y; )
958
+ m = c(m, r[B], B, r);
959
+ return m;
975
960
  }
976
- function Pn(r, c) {
977
- for (var f = -1, M = Array(r); ++f < r; )
978
- M[f] = c(f);
961
+ function Gn(r, c) {
962
+ for (var m = -1, M = Array(r); ++m < r; )
963
+ M[m] = c(m);
979
964
  return M;
980
965
  }
981
- function Gn(r, c) {
966
+ function On(r, c) {
982
967
  return r?.[c];
983
968
  }
984
969
  function vt(r) {
@@ -991,352 +976,352 @@ function Qa() {
991
976
  return c;
992
977
  }
993
978
  function xt(r) {
994
- var c = -1, f = Array(r.size);
979
+ var c = -1, m = Array(r.size);
995
980
  return r.forEach(function(M, B) {
996
- f[++c] = [B, M];
997
- }), f;
981
+ m[++c] = [B, M];
982
+ }), m;
998
983
  }
999
- function be(r, c) {
1000
- return function(f) {
1001
- return r(c(f));
984
+ function ze(r, c) {
985
+ return function(m) {
986
+ return r(c(m));
1002
987
  };
1003
988
  }
1004
- function Ft(r) {
1005
- var c = -1, f = Array(r.size);
989
+ function Mt(r) {
990
+ var c = -1, m = Array(r.size);
1006
991
  return r.forEach(function(M) {
1007
- f[++c] = M;
1008
- }), f;
992
+ m[++c] = M;
993
+ }), m;
1009
994
  }
1010
- var On = Array.prototype, In = Function.prototype, Se = Object.prototype, He = Z["__core-js_shared__"], Mt = (function() {
995
+ var In = Array.prototype, Un = Function.prototype, Se = Object.prototype, He = q["__core-js_shared__"], Ft = (function() {
1011
996
  var r = /[^.]+$/.exec(He && He.keys && He.keys.IE_PROTO || "");
1012
997
  return r ? "Symbol(src)_1." + r : "";
1013
- })(), Tt = In.toString, te = Se.hasOwnProperty, De = Se.toString, Cn = RegExp(
1014
- "^" + Tt.call(te).replace(T, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1015
- ), St = Nn ? Z.Buffer : void 0, Dt = Z.Symbol, Nt = Z.Uint8Array, Un = be(Object.getPrototypeOf, Object), An = Object.create, Vn = Se.propertyIsEnumerable, Bn = On.splice, kt = Object.getOwnPropertySymbols, zn = St ? St.isBuffer : void 0, bn = be(Object.keys, Object), Ye = de(Z, "DataView"), _e = de(Z, "Map"), $e = de(Z, "Promise"), je = de(Z, "Set"), Ke = de(Z, "WeakMap"), ge = de(Object, "create"), Hn = ie(Ye), Yn = ie(_e), $n = ie($e), jn = ie(je), Kn = ie(Ke), Rt = Dt ? Dt.prototype : void 0, Et = Rt ? Rt.valueOf : void 0;
1016
- function re(r) {
1017
- var c = -1, f = r ? r.length : 0;
1018
- for (this.clear(); ++c < f; ) {
998
+ })(), Tt = Un.toString, ne = Se.hasOwnProperty, De = Se.toString, An = RegExp(
999
+ "^" + Tt.call(ne).replace(x, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1000
+ ), St = Rn ? q.Buffer : void 0, Dt = q.Symbol, kt = q.Uint8Array, Vn = ze(Object.getPrototypeOf, Object), Bn = Object.create, bn = Se.propertyIsEnumerable, zn = In.splice, Nt = Object.getOwnPropertySymbols, Hn = St ? St.isBuffer : void 0, Yn = ze(Object.keys, Object), Ye = fe(q, "DataView"), ge = fe(q, "Map"), $e = fe(q, "Promise"), je = fe(q, "Set"), Ke = fe(q, "WeakMap"), we = fe(Object, "create"), $n = oe(Ye), jn = oe(ge), Kn = oe($e), qn = oe(je), Wn = oe(Ke), Rt = Dt ? Dt.prototype : void 0, Et = Rt ? Rt.valueOf : void 0;
1001
+ function ae(r) {
1002
+ var c = -1, m = r ? r.length : 0;
1003
+ for (this.clear(); ++c < m; ) {
1019
1004
  var M = r[c];
1020
1005
  this.set(M[0], M[1]);
1021
1006
  }
1022
1007
  }
1023
- function qn() {
1024
- this.__data__ = ge ? ge(null) : {};
1008
+ function Zn() {
1009
+ this.__data__ = we ? we(null) : {};
1025
1010
  }
1026
- function Wn(r) {
1011
+ function Jn(r) {
1027
1012
  return this.has(r) && delete this.__data__[r];
1028
1013
  }
1029
- function Zn(r) {
1014
+ function Qn(r) {
1030
1015
  var c = this.__data__;
1031
- if (ge) {
1032
- var f = c[r];
1033
- return f === i ? void 0 : f;
1016
+ if (we) {
1017
+ var m = c[r];
1018
+ return m === o ? void 0 : m;
1034
1019
  }
1035
- return te.call(c, r) ? c[r] : void 0;
1020
+ return ne.call(c, r) ? c[r] : void 0;
1036
1021
  }
1037
- function Jn(r) {
1022
+ function Xn(r) {
1038
1023
  var c = this.__data__;
1039
- return ge ? c[r] !== void 0 : te.call(c, r);
1024
+ return we ? c[r] !== void 0 : ne.call(c, r);
1040
1025
  }
1041
- function Qn(r, c) {
1042
- var f = this.__data__;
1043
- return f[r] = ge && c === void 0 ? i : c, this;
1026
+ function er(r, c) {
1027
+ var m = this.__data__;
1028
+ return m[r] = we && c === void 0 ? o : c, this;
1044
1029
  }
1045
- re.prototype.clear = qn, re.prototype.delete = Wn, re.prototype.get = Zn, re.prototype.has = Jn, re.prototype.set = Qn;
1046
- function J(r) {
1047
- var c = -1, f = r ? r.length : 0;
1048
- for (this.clear(); ++c < f; ) {
1030
+ ae.prototype.clear = Zn, ae.prototype.delete = Jn, ae.prototype.get = Qn, ae.prototype.has = Xn, ae.prototype.set = er;
1031
+ function X(r) {
1032
+ var c = -1, m = r ? r.length : 0;
1033
+ for (this.clear(); ++c < m; ) {
1049
1034
  var M = r[c];
1050
1035
  this.set(M[0], M[1]);
1051
1036
  }
1052
1037
  }
1053
- function Xn() {
1038
+ function tr() {
1054
1039
  this.__data__ = [];
1055
1040
  }
1056
- function er(r) {
1057
- var c = this.__data__, f = Ne(c, r);
1058
- if (f < 0)
1041
+ function nr(r) {
1042
+ var c = this.__data__, m = ke(c, r);
1043
+ if (m < 0)
1059
1044
  return !1;
1060
1045
  var M = c.length - 1;
1061
- return f == M ? c.pop() : Bn.call(c, f, 1), !0;
1046
+ return m == M ? c.pop() : zn.call(c, m, 1), !0;
1062
1047
  }
1063
- function tr(r) {
1064
- var c = this.__data__, f = Ne(c, r);
1065
- return f < 0 ? void 0 : c[f][1];
1048
+ function rr(r) {
1049
+ var c = this.__data__, m = ke(c, r);
1050
+ return m < 0 ? void 0 : c[m][1];
1066
1051
  }
1067
- function nr(r) {
1068
- return Ne(this.__data__, r) > -1;
1052
+ function ar(r) {
1053
+ return ke(this.__data__, r) > -1;
1069
1054
  }
1070
- function rr(r, c) {
1071
- var f = this.__data__, M = Ne(f, r);
1072
- return M < 0 ? f.push([r, c]) : f[M][1] = c, this;
1055
+ function ir(r, c) {
1056
+ var m = this.__data__, M = ke(m, r);
1057
+ return M < 0 ? m.push([r, c]) : m[M][1] = c, this;
1073
1058
  }
1074
- J.prototype.clear = Xn, J.prototype.delete = er, J.prototype.get = tr, J.prototype.has = nr, J.prototype.set = rr;
1075
- function ue(r) {
1076
- var c = -1, f = r ? r.length : 0;
1077
- for (this.clear(); ++c < f; ) {
1059
+ X.prototype.clear = tr, X.prototype.delete = nr, X.prototype.get = rr, X.prototype.has = ar, X.prototype.set = ir;
1060
+ function de(r) {
1061
+ var c = -1, m = r ? r.length : 0;
1062
+ for (this.clear(); ++c < m; ) {
1078
1063
  var M = r[c];
1079
1064
  this.set(M[0], M[1]);
1080
1065
  }
1081
1066
  }
1082
- function ar() {
1067
+ function or() {
1083
1068
  this.__data__ = {
1084
- hash: new re(),
1085
- map: new (_e || J)(),
1086
- string: new re()
1069
+ hash: new ae(),
1070
+ map: new (ge || X)(),
1071
+ string: new ae()
1087
1072
  };
1088
1073
  }
1089
- function ir(r) {
1090
- return ke(this, r).delete(r);
1074
+ function sr(r) {
1075
+ return Ne(this, r).delete(r);
1091
1076
  }
1092
- function or(r) {
1093
- return ke(this, r).get(r);
1077
+ function lr(r) {
1078
+ return Ne(this, r).get(r);
1094
1079
  }
1095
- function sr(r) {
1096
- return ke(this, r).has(r);
1080
+ function ur(r) {
1081
+ return Ne(this, r).has(r);
1097
1082
  }
1098
- function lr(r, c) {
1099
- return ke(this, r).set(r, c), this;
1083
+ function cr(r, c) {
1084
+ return Ne(this, r).set(r, c), this;
1100
1085
  }
1101
- ue.prototype.clear = ar, ue.prototype.delete = ir, ue.prototype.get = or, ue.prototype.has = sr, ue.prototype.set = lr;
1102
- function ce(r) {
1103
- this.__data__ = new J(r);
1086
+ de.prototype.clear = or, de.prototype.delete = sr, de.prototype.get = lr, de.prototype.has = ur, de.prototype.set = cr;
1087
+ function me(r) {
1088
+ this.__data__ = new X(r);
1104
1089
  }
1105
- function ur() {
1106
- this.__data__ = new J();
1090
+ function dr() {
1091
+ this.__data__ = new X();
1107
1092
  }
1108
- function cr(r) {
1093
+ function mr(r) {
1109
1094
  return this.__data__.delete(r);
1110
1095
  }
1111
- function dr(r) {
1096
+ function fr(r) {
1112
1097
  return this.__data__.get(r);
1113
1098
  }
1114
- function mr(r) {
1099
+ function pr(r) {
1115
1100
  return this.__data__.has(r);
1116
1101
  }
1117
- function fr(r, c) {
1118
- var f = this.__data__;
1119
- if (f instanceof J) {
1120
- var M = f.__data__;
1121
- if (!_e || M.length < a - 1)
1102
+ function yr(r, c) {
1103
+ var m = this.__data__;
1104
+ if (m instanceof X) {
1105
+ var M = m.__data__;
1106
+ if (!ge || M.length < a - 1)
1122
1107
  return M.push([r, c]), this;
1123
- f = this.__data__ = new ue(M);
1108
+ m = this.__data__ = new de(M);
1124
1109
  }
1125
- return f.set(r, c), this;
1110
+ return m.set(r, c), this;
1126
1111
  }
1127
- ce.prototype.clear = ur, ce.prototype.delete = cr, ce.prototype.get = dr, ce.prototype.has = mr, ce.prototype.set = fr;
1128
- function pr(r, c) {
1129
- var f = Ze(r) || Ar(r) ? Pn(r.length, String) : [], M = f.length, B = !!M;
1130
- for (var H in r)
1131
- te.call(r, H) && !(B && (H == "length" || Or(H, M))) && f.push(H);
1132
- return f;
1112
+ me.prototype.clear = dr, me.prototype.delete = mr, me.prototype.get = fr, me.prototype.has = pr, me.prototype.set = yr;
1113
+ function hr(r, c) {
1114
+ var m = Ze(r) || Br(r) ? Gn(r.length, String) : [], M = m.length, B = !!M;
1115
+ for (var Y in r)
1116
+ ne.call(r, Y) && !(B && (Y == "length" || Ir(Y, M))) && m.push(Y);
1117
+ return m;
1133
1118
  }
1134
- function Lt(r, c, f) {
1119
+ function Pt(r, c, m) {
1135
1120
  var M = r[c];
1136
- (!(te.call(r, c) && It(M, f)) || f === void 0 && !(c in r)) && (r[c] = f);
1121
+ (!(ne.call(r, c) && Ot(M, m)) || m === void 0 && !(c in r)) && (r[c] = m);
1137
1122
  }
1138
- function Ne(r, c) {
1139
- for (var f = r.length; f--; )
1140
- if (It(r[f][0], c))
1141
- return f;
1123
+ function ke(r, c) {
1124
+ for (var m = r.length; m--; )
1125
+ if (Ot(r[m][0], c))
1126
+ return m;
1142
1127
  return -1;
1143
1128
  }
1144
- function yr(r, c) {
1145
- return r && Pt(c, Je(c), r);
1129
+ function _r(r, c) {
1130
+ return r && Lt(c, Je(c), r);
1146
1131
  }
1147
- function qe(r, c, f, M, B, H, Q) {
1148
- var Y;
1149
- if (M && (Y = H ? M(r, B, H, Q) : M(r)), Y !== void 0)
1150
- return Y;
1132
+ function qe(r, c, m, M, B, Y, ee) {
1133
+ var $;
1134
+ if (M && ($ = Y ? M(r, B, Y, ee) : M(r)), $ !== void 0)
1135
+ return $;
1151
1136
  if (!Re(r))
1152
1137
  return r;
1153
1138
  var At = Ze(r);
1154
1139
  if (At) {
1155
- if (Y = Lr(r), !c)
1156
- return kr(r, Y);
1140
+ if ($ = Cr(r), !c)
1141
+ return Er(r, $);
1157
1142
  } else {
1158
- var me = ae(r), Vt = me == h || me == E;
1159
- if (Br(r))
1160
- return xr(r, c);
1161
- if (me == P || me == d || Vt && !H) {
1143
+ var pe = ie(r), Vt = pe == S || pe == E;
1144
+ if (zr(r))
1145
+ return Fr(r, c);
1146
+ if (pe == C || pe == d || Vt && !Y) {
1162
1147
  if (vt(r))
1163
- return H ? r : {};
1164
- if (Y = Pr(Vt ? {} : r), !c)
1165
- return Rr(r, yr(Y, r));
1148
+ return Y ? r : {};
1149
+ if ($ = Gr(Vt ? {} : r), !c)
1150
+ return Pr(r, _r($, r));
1166
1151
  } else {
1167
- if (!k[me])
1168
- return H ? r : {};
1169
- Y = Gr(r, me, qe, c);
1152
+ if (!R[pe])
1153
+ return Y ? r : {};
1154
+ $ = Or(r, pe, qe, c);
1170
1155
  }
1171
1156
  }
1172
- Q || (Q = new ce());
1173
- var Bt = Q.get(r);
1157
+ ee || (ee = new me());
1158
+ var Bt = ee.get(r);
1174
1159
  if (Bt)
1175
1160
  return Bt;
1176
- if (Q.set(r, Y), !At)
1177
- var zt = f ? Er(r) : Je(r);
1178
- return En(zt || r, function(Qe, Ee) {
1179
- zt && (Ee = Qe, Qe = r[Ee]), Lt(Y, Ee, qe(Qe, c, f, M, Ee, r, Q));
1180
- }), Y;
1161
+ if (ee.set(r, $), !At)
1162
+ var bt = m ? Lr(r) : Je(r);
1163
+ return Ln(bt || r, function(Qe, Ee) {
1164
+ bt && (Ee = Qe, Qe = r[Ee]), Pt($, Ee, qe(Qe, c, m, M, Ee, r, ee));
1165
+ }), $;
1181
1166
  }
1182
- function hr(r) {
1183
- return Re(r) ? An(r) : {};
1167
+ function gr(r) {
1168
+ return Re(r) ? Bn(r) : {};
1184
1169
  }
1185
- function _r(r, c, f) {
1170
+ function wr(r, c, m) {
1186
1171
  var M = c(r);
1187
- return Ze(r) ? M : Ln(M, f(r));
1172
+ return Ze(r) ? M : Cn(M, m(r));
1188
1173
  }
1189
- function gr(r) {
1174
+ function vr(r) {
1190
1175
  return De.call(r);
1191
1176
  }
1192
- function wr(r) {
1193
- if (!Re(r) || Cr(r))
1177
+ function xr(r) {
1178
+ if (!Re(r) || Ar(r))
1194
1179
  return !1;
1195
- var c = Ut(r) || vt(r) ? Cn : G;
1196
- return c.test(ie(r));
1180
+ var c = Ut(r) || vt(r) ? An : G;
1181
+ return c.test(oe(r));
1197
1182
  }
1198
- function vr(r) {
1199
- if (!Ot(r))
1200
- return bn(r);
1183
+ function Mr(r) {
1184
+ if (!Gt(r))
1185
+ return Yn(r);
1201
1186
  var c = [];
1202
- for (var f in Object(r))
1203
- te.call(r, f) && f != "constructor" && c.push(f);
1187
+ for (var m in Object(r))
1188
+ ne.call(r, m) && m != "constructor" && c.push(m);
1204
1189
  return c;
1205
1190
  }
1206
- function xr(r, c) {
1191
+ function Fr(r, c) {
1207
1192
  if (c)
1208
1193
  return r.slice();
1209
- var f = new r.constructor(r.length);
1210
- return r.copy(f), f;
1194
+ var m = new r.constructor(r.length);
1195
+ return r.copy(m), m;
1211
1196
  }
1212
1197
  function We(r) {
1213
1198
  var c = new r.constructor(r.byteLength);
1214
- return new Nt(c).set(new Nt(r)), c;
1199
+ return new kt(c).set(new kt(r)), c;
1215
1200
  }
1216
- function Fr(r, c) {
1217
- var f = c ? We(r.buffer) : r.buffer;
1218
- return new r.constructor(f, r.byteOffset, r.byteLength);
1201
+ function Tr(r, c) {
1202
+ var m = c ? We(r.buffer) : r.buffer;
1203
+ return new r.constructor(m, r.byteOffset, r.byteLength);
1219
1204
  }
1220
- function Mr(r, c, f) {
1221
- var M = c ? f(xt(r), !0) : xt(r);
1222
- return wt(M, kn, new r.constructor());
1205
+ function Sr(r, c, m) {
1206
+ var M = c ? m(xt(r), !0) : xt(r);
1207
+ return wt(M, En, new r.constructor());
1223
1208
  }
1224
- function Tr(r) {
1225
- var c = new r.constructor(r.source, N.exec(r));
1209
+ function Dr(r) {
1210
+ var c = new r.constructor(r.source, k.exec(r));
1226
1211
  return c.lastIndex = r.lastIndex, c;
1227
1212
  }
1228
- function Sr(r, c, f) {
1229
- var M = c ? f(Ft(r), !0) : Ft(r);
1230
- return wt(M, Rn, new r.constructor());
1213
+ function kr(r, c, m) {
1214
+ var M = c ? m(Mt(r), !0) : Mt(r);
1215
+ return wt(M, Pn, new r.constructor());
1231
1216
  }
1232
- function Dr(r) {
1217
+ function Nr(r) {
1233
1218
  return Et ? Object(Et.call(r)) : {};
1234
1219
  }
1235
- function Nr(r, c) {
1236
- var f = c ? We(r.buffer) : r.buffer;
1237
- return new r.constructor(f, r.byteOffset, r.length);
1220
+ function Rr(r, c) {
1221
+ var m = c ? We(r.buffer) : r.buffer;
1222
+ return new r.constructor(m, r.byteOffset, r.length);
1238
1223
  }
1239
- function kr(r, c) {
1240
- var f = -1, M = r.length;
1241
- for (c || (c = Array(M)); ++f < M; )
1242
- c[f] = r[f];
1224
+ function Er(r, c) {
1225
+ var m = -1, M = r.length;
1226
+ for (c || (c = Array(M)); ++m < M; )
1227
+ c[m] = r[m];
1243
1228
  return c;
1244
1229
  }
1245
- function Pt(r, c, f, M) {
1246
- f || (f = {});
1247
- for (var B = -1, H = c.length; ++B < H; ) {
1248
- var Q = c[B], Y = void 0;
1249
- Lt(f, Q, Y === void 0 ? r[Q] : Y);
1230
+ function Lt(r, c, m, M) {
1231
+ m || (m = {});
1232
+ for (var B = -1, Y = c.length; ++B < Y; ) {
1233
+ var ee = c[B], $ = void 0;
1234
+ Pt(m, ee, $ === void 0 ? r[ee] : $);
1250
1235
  }
1251
- return f;
1236
+ return m;
1252
1237
  }
1253
- function Rr(r, c) {
1254
- return Pt(r, Gt(r), c);
1238
+ function Pr(r, c) {
1239
+ return Lt(r, Ct(r), c);
1255
1240
  }
1256
- function Er(r) {
1257
- return _r(r, Je, Gt);
1241
+ function Lr(r) {
1242
+ return wr(r, Je, Ct);
1258
1243
  }
1259
- function ke(r, c) {
1260
- var f = r.__data__;
1261
- return Ir(c) ? f[typeof c == "string" ? "string" : "hash"] : f.map;
1244
+ function Ne(r, c) {
1245
+ var m = r.__data__;
1246
+ return Ur(c) ? m[typeof c == "string" ? "string" : "hash"] : m.map;
1262
1247
  }
1263
- function de(r, c) {
1264
- var f = Gn(r, c);
1265
- return wr(f) ? f : void 0;
1248
+ function fe(r, c) {
1249
+ var m = On(r, c);
1250
+ return xr(m) ? m : void 0;
1266
1251
  }
1267
- var Gt = kt ? be(kt, Object) : Hr, ae = gr;
1268
- (Ye && ae(new Ye(new ArrayBuffer(1))) != p || _e && ae(new _e()) != L || $e && ae($e.resolve()) != O || je && ae(new je()) != V || Ke && ae(new Ke()) != I) && (ae = function(r) {
1269
- var c = De.call(r), f = c == P ? r.constructor : void 0, M = f ? ie(f) : void 0;
1252
+ var Ct = Nt ? ze(Nt, Object) : $r, ie = vr;
1253
+ (Ye && ie(new Ye(new ArrayBuffer(1))) != f || ge && ie(new ge()) != F || $e && ie($e.resolve()) != P || je && ie(new je()) != A || Ke && ie(new Ke()) != z) && (ie = function(r) {
1254
+ var c = De.call(r), m = c == C ? r.constructor : void 0, M = m ? oe(m) : void 0;
1270
1255
  if (M)
1271
1256
  switch (M) {
1272
- case Hn:
1273
- return p;
1274
- case Yn:
1275
- return L;
1276
1257
  case $n:
1277
- return O;
1258
+ return f;
1278
1259
  case jn:
1279
- return V;
1260
+ return F;
1280
1261
  case Kn:
1281
- return I;
1262
+ return P;
1263
+ case qn:
1264
+ return A;
1265
+ case Wn:
1266
+ return z;
1282
1267
  }
1283
1268
  return c;
1284
1269
  });
1285
- function Lr(r) {
1286
- var c = r.length, f = r.constructor(c);
1287
- return c && typeof r[0] == "string" && te.call(r, "index") && (f.index = r.index, f.input = r.input), f;
1270
+ function Cr(r) {
1271
+ var c = r.length, m = r.constructor(c);
1272
+ return c && typeof r[0] == "string" && ne.call(r, "index") && (m.index = r.index, m.input = r.input), m;
1288
1273
  }
1289
- function Pr(r) {
1290
- return typeof r.constructor == "function" && !Ot(r) ? hr(Un(r)) : {};
1274
+ function Gr(r) {
1275
+ return typeof r.constructor == "function" && !Gt(r) ? gr(Vn(r)) : {};
1291
1276
  }
1292
- function Gr(r, c, f, M) {
1277
+ function Or(r, c, m, M) {
1293
1278
  var B = r.constructor;
1294
1279
  switch (c) {
1295
- case q:
1280
+ case b:
1296
1281
  return We(r);
1297
- case w:
1298
- case S:
1282
+ case h:
1283
+ case T:
1299
1284
  return new B(+r);
1285
+ case f:
1286
+ return Tr(r, M);
1287
+ case _:
1288
+ case s:
1300
1289
  case p:
1301
- return Fr(r, M);
1302
1290
  case g:
1303
- case s:
1304
- case m:
1305
- case _:
1306
- case x:
1307
- case t:
1308
- case o:
1309
- case u:
1291
+ case D:
1292
+ case e:
1293
+ case i:
1294
+ case l:
1295
+ case w:
1296
+ return Rr(r, M);
1310
1297
  case F:
1311
- return Nr(r, M);
1312
- case L:
1313
- return Mr(r, M, f);
1314
- case R:
1315
- case U:
1298
+ return Sr(r, M, m);
1299
+ case O:
1300
+ case I:
1316
1301
  return new B(r);
1317
- case C:
1318
- return Tr(r);
1319
- case V:
1320
- return Sr(r, M, f);
1321
- case z:
1302
+ case L:
1322
1303
  return Dr(r);
1304
+ case A:
1305
+ return kr(r, M, m);
1306
+ case U:
1307
+ return Nr(r);
1323
1308
  }
1324
1309
  }
1325
- function Or(r, c) {
1326
- return c = c ?? l, !!c && (typeof r == "number" || $.test(r)) && r > -1 && r % 1 == 0 && r < c;
1310
+ function Ir(r, c) {
1311
+ return c = c ?? u, !!c && (typeof r == "number" || K.test(r)) && r > -1 && r % 1 == 0 && r < c;
1327
1312
  }
1328
- function Ir(r) {
1313
+ function Ur(r) {
1329
1314
  var c = typeof r;
1330
1315
  return c == "string" || c == "number" || c == "symbol" || c == "boolean" ? r !== "__proto__" : r === null;
1331
1316
  }
1332
- function Cr(r) {
1333
- return !!Mt && Mt in r;
1317
+ function Ar(r) {
1318
+ return !!Ft && Ft in r;
1334
1319
  }
1335
- function Ot(r) {
1336
- var c = r && r.constructor, f = typeof c == "function" && c.prototype || Se;
1337
- return r === f;
1320
+ function Gt(r) {
1321
+ var c = r && r.constructor, m = typeof c == "function" && c.prototype || Se;
1322
+ return r === m;
1338
1323
  }
1339
- function ie(r) {
1324
+ function oe(r) {
1340
1325
  if (r != null) {
1341
1326
  try {
1342
1327
  return Tt.call(r);
@@ -1349,52 +1334,52 @@ function Qa() {
1349
1334
  }
1350
1335
  return "";
1351
1336
  }
1352
- function Ur(r) {
1337
+ function Vr(r) {
1353
1338
  return qe(r, !0, !0);
1354
1339
  }
1355
- function It(r, c) {
1340
+ function Ot(r, c) {
1356
1341
  return r === c || r !== r && c !== c;
1357
1342
  }
1358
- function Ar(r) {
1359
- return Vr(r) && te.call(r, "callee") && (!Vn.call(r, "callee") || De.call(r) == d);
1343
+ function Br(r) {
1344
+ return br(r) && ne.call(r, "callee") && (!bn.call(r, "callee") || De.call(r) == d);
1360
1345
  }
1361
1346
  var Ze = Array.isArray;
1362
- function Ct(r) {
1363
- return r != null && zr(r.length) && !Ut(r);
1347
+ function It(r) {
1348
+ return r != null && Hr(r.length) && !Ut(r);
1364
1349
  }
1365
- function Vr(r) {
1366
- return br(r) && Ct(r);
1350
+ function br(r) {
1351
+ return Yr(r) && It(r);
1367
1352
  }
1368
- var Br = zn || Yr;
1353
+ var zr = Hn || jr;
1369
1354
  function Ut(r) {
1370
1355
  var c = Re(r) ? De.call(r) : "";
1371
- return c == h || c == E;
1356
+ return c == S || c == E;
1372
1357
  }
1373
- function zr(r) {
1374
- return typeof r == "number" && r > -1 && r % 1 == 0 && r <= l;
1358
+ function Hr(r) {
1359
+ return typeof r == "number" && r > -1 && r % 1 == 0 && r <= u;
1375
1360
  }
1376
1361
  function Re(r) {
1377
1362
  var c = typeof r;
1378
1363
  return !!r && (c == "object" || c == "function");
1379
1364
  }
1380
- function br(r) {
1365
+ function Yr(r) {
1381
1366
  return !!r && typeof r == "object";
1382
1367
  }
1383
1368
  function Je(r) {
1384
- return Ct(r) ? pr(r) : vr(r);
1369
+ return It(r) ? hr(r) : Mr(r);
1385
1370
  }
1386
- function Hr() {
1371
+ function $r() {
1387
1372
  return [];
1388
1373
  }
1389
- function Yr() {
1374
+ function jr() {
1390
1375
  return !1;
1391
1376
  }
1392
- e.exports = Ur;
1377
+ t.exports = Vr;
1393
1378
  })(Ue, Ue.exports)), Ue.exports;
1394
1379
  }
1395
- Qa();
1396
- const K = (e, n) => new Date(e.getTime() - Ja(n, e));
1397
- class A {
1380
+ qa();
1381
+ const Z = (t, n) => new Date(t.getTime() - Ka(n, t));
1382
+ class V {
1398
1383
  timeframeText;
1399
1384
  key;
1400
1385
  display;
@@ -1441,8 +1426,8 @@ class A {
1441
1426
  allowedGranularities(n) {
1442
1427
  if (this._allowedGranularitiesOverride && n)
1443
1428
  return new Set(this._allowedGranularitiesOverride);
1444
- const a = /* @__PURE__ */ new Set(), i = this.maximumTimeframeLength() / 3600;
1445
- return i <= 6 && a.add("minutely"), i >= 2 && i <= 168 && a.add("hourly"), i >= 48 && a.add("daily"), i >= 672 && a.add("weekly"), a;
1429
+ const a = /* @__PURE__ */ new Set(), o = this.maximumTimeframeLength() / 3600;
1430
+ return o <= 6 && a.add("minutely"), o >= 2 && o <= 168 && a.add("hourly"), o >= 48 && a.add("daily"), o >= 672 && a.add("weekly"), a;
1446
1431
  }
1447
1432
  cacheKey() {
1448
1433
  return this.key !== "custom" ? this.key : `${this.rawStart().toISOString()}-${this.rawEnd().toISOString()}`;
@@ -1463,90 +1448,90 @@ class A {
1463
1448
  tzAdjustedDate(n) {
1464
1449
  if (!n)
1465
1450
  return /* @__PURE__ */ new Date();
1466
- const a = Za(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
1467
- return Wa(a, n);
1451
+ const a = ja(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
1452
+ return $a(a, n);
1468
1453
  }
1469
1454
  }
1470
- class Xa extends A {
1455
+ class Wa extends V {
1471
1456
  rawStart(n) {
1472
1457
  let a = Be(this.tzAdjustedDate(n), { weekStartsOn: 1 });
1473
- return n && (a = K(a, n)), a;
1458
+ return n && (a = Z(a, n)), a;
1474
1459
  }
1475
1460
  maximumTimeframeLength() {
1476
1461
  return 3600 * 24 * 7;
1477
1462
  }
1478
1463
  }
1479
- class ei extends A {
1464
+ class Za extends V {
1480
1465
  rawStart(n) {
1481
- let a = pe(this.tzAdjustedDate(n));
1482
- return n && (a = K(a, n)), a;
1466
+ let a = he(this.tzAdjustedDate(n));
1467
+ return n && (a = Z(a, n)), a;
1483
1468
  }
1484
1469
  maximumTimeframeLength() {
1485
1470
  return 3600 * 24 * 31;
1486
1471
  }
1487
1472
  }
1488
- class ti extends A {
1473
+ class Ja extends V {
1489
1474
  rawStart(n) {
1490
- let a = fe(this.tzAdjustedDate(n));
1491
- return n && (a = K(a, n)), a;
1475
+ let a = ye(this.tzAdjustedDate(n));
1476
+ return n && (a = Z(a, n)), a;
1492
1477
  }
1493
1478
  maximumTimeframeLength() {
1494
1479
  return 3600 * 24 * 92;
1495
1480
  }
1496
1481
  }
1497
- class ni extends A {
1482
+ class Qa extends V {
1498
1483
  rawStart(n) {
1499
1484
  let a = new Date(this.tzAdjustedDate(n).getFullYear(), 0, 1);
1500
- return n && (a = K(a, n)), a;
1485
+ return n && (a = Z(a, n)), a;
1501
1486
  }
1502
1487
  maximumTimeframeLength() {
1503
1488
  return 3600 * 24 * 366;
1504
1489
  }
1505
1490
  }
1506
- class ri extends A {
1491
+ class Xa extends V {
1507
1492
  rawEnd(n) {
1508
1493
  let a = Be(this.tzAdjustedDate(n), { weekStartsOn: 1 });
1509
- return n && (a = K(a, n)), a;
1494
+ return n && (a = Z(a, n)), a;
1510
1495
  }
1511
1496
  rawStart(n) {
1512
1497
  const a = this.tzAdjustedDate(n);
1513
- let i = Be(a.setDate(a.getDate() - 7), {
1498
+ let o = Be(a.setDate(a.getDate() - 7), {
1514
1499
  weekStartsOn: 1
1515
1500
  });
1516
- return n && (i = K(i, n)), i;
1501
+ return n && (o = Z(o, n)), o;
1517
1502
  }
1518
1503
  }
1519
- class ai extends A {
1504
+ class ei extends V {
1520
1505
  rawEnd(n) {
1521
- let a = fe(this.tzAdjustedDate(n));
1522
- return n && (a = K(a, n)), a;
1506
+ let a = ye(this.tzAdjustedDate(n));
1507
+ return n && (a = Z(a, n)), a;
1523
1508
  }
1524
1509
  rawStart(n) {
1525
- let a = fe(Tn(this.tzAdjustedDate(n)));
1526
- return n && (a = K(a, n)), a;
1510
+ let a = ye(Dn(this.tzAdjustedDate(n)));
1511
+ return n && (a = Z(a, n)), a;
1527
1512
  }
1528
1513
  }
1529
- class ii extends A {
1514
+ class ti extends V {
1530
1515
  rawEnd(n) {
1531
- let a = pe(this.tzAdjustedDate(n));
1532
- return n && (a = K(a, n)), a;
1516
+ let a = he(this.tzAdjustedDate(n));
1517
+ return n && (a = Z(a, n)), a;
1533
1518
  }
1534
1519
  rawStart(n) {
1535
- let a = pe(Mn(this.tzAdjustedDate(n)));
1536
- return n && (a = K(a, n)), a;
1520
+ let a = he(Sn(this.tzAdjustedDate(n)));
1521
+ return n && (a = Z(a, n)), a;
1537
1522
  }
1538
1523
  }
1539
- class oi extends A {
1524
+ class ni extends V {
1540
1525
  rawEnd(n) {
1541
1526
  let a = new Date(this.tzAdjustedDate(n).getFullYear(), 0, 1);
1542
- return n && (a = K(a, n)), a;
1527
+ return n && (a = Z(a, n)), a;
1543
1528
  }
1544
1529
  rawStart(n) {
1545
1530
  let a = new Date(this.tzAdjustedDate(n).getFullYear() - 1, 0, 1);
1546
- return n && (a = K(a, n)), a;
1531
+ return n && (a = Z(a, n)), a;
1547
1532
  }
1548
1533
  }
1549
- v.FIFTEEN_MIN, new A({
1534
+ v.FIFTEEN_MIN, new V({
1550
1535
  key: v.FIFTEEN_MIN,
1551
1536
  display: "Last 15 minutes",
1552
1537
  timeframeText: "15 minutes",
@@ -1557,7 +1542,7 @@ v.FIFTEEN_MIN, new A({
1557
1542
  fineGrainedDefaultGranularity: "thirtySecondly",
1558
1543
  allowedTiers: ["free", "trial", "plus", "enterprise"],
1559
1544
  allowedGranularitiesOverride: ["tenSecondly", "thirtySecondly", "minutely"]
1560
- }), v.ONE_HOUR, new A({
1545
+ }), v.ONE_HOUR, new V({
1561
1546
  key: v.ONE_HOUR,
1562
1547
  display: "Last hour",
1563
1548
  timeframeText: "One hour",
@@ -1568,7 +1553,7 @@ v.FIFTEEN_MIN, new A({
1568
1553
  fineGrainedDefaultGranularity: "minutely",
1569
1554
  allowedTiers: ["free", "trial", "plus", "enterprise"],
1570
1555
  allowedGranularitiesOverride: ["tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely"]
1571
- }), v.SIX_HOUR, new A({
1556
+ }), v.SIX_HOUR, new V({
1572
1557
  key: v.SIX_HOUR,
1573
1558
  display: "Last 6 hours",
1574
1559
  timeframeText: "6 hours",
@@ -1579,7 +1564,7 @@ v.FIFTEEN_MIN, new A({
1579
1564
  fineGrainedDefaultGranularity: "fiveMinutely",
1580
1565
  allowedTiers: ["free", "trial", "plus", "enterprise"],
1581
1566
  allowedGranularitiesOverride: ["thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
1582
- }), v.TWELVE_HOUR, new A({
1567
+ }), v.TWELVE_HOUR, new V({
1583
1568
  key: v.TWELVE_HOUR,
1584
1569
  display: "Last 12 hours",
1585
1570
  timeframeText: "12 hours",
@@ -1590,7 +1575,7 @@ v.FIFTEEN_MIN, new A({
1590
1575
  fineGrainedDefaultGranularity: "tenMinutely",
1591
1576
  allowedTiers: ["free", "trial", "plus", "enterprise"],
1592
1577
  allowedGranularitiesOverride: ["minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
1593
- }), v.ONE_DAY, new A({
1578
+ }), v.ONE_DAY, new V({
1594
1579
  key: v.ONE_DAY,
1595
1580
  display: "Last 24 hours",
1596
1581
  timeframeText: "24 hours",
@@ -1601,7 +1586,7 @@ v.FIFTEEN_MIN, new A({
1601
1586
  fineGrainedDefaultGranularity: "thirtyMinutely",
1602
1587
  allowedTiers: ["free", "trial", "plus", "enterprise"],
1603
1588
  allowedGranularitiesOverride: ["fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
1604
- }), v.SEVEN_DAY, new A({
1589
+ }), v.SEVEN_DAY, new V({
1605
1590
  key: v.SEVEN_DAY,
1606
1591
  display: "Last 7 days",
1607
1592
  timeframeText: "7 days",
@@ -1612,7 +1597,7 @@ v.FIFTEEN_MIN, new A({
1612
1597
  fineGrainedDefaultGranularity: "twoHourly",
1613
1598
  allowedTiers: ["trial", "plus", "enterprise"],
1614
1599
  allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
1615
- }), v.THIRTY_DAY, new A({
1600
+ }), v.THIRTY_DAY, new V({
1616
1601
  key: v.THIRTY_DAY,
1617
1602
  display: "Last 30 days",
1618
1603
  timeframeText: "30 days",
@@ -1623,7 +1608,7 @@ v.FIFTEEN_MIN, new A({
1623
1608
  fineGrainedDefaultGranularity: "twelveHourly",
1624
1609
  allowedTiers: ["trial", "plus", "enterprise"],
1625
1610
  allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
1626
- }), v.NINETY_DAY, new A({
1611
+ }), v.NINETY_DAY, new V({
1627
1612
  key: v.NINETY_DAY,
1628
1613
  display: "Last 90 days",
1629
1614
  timeframeText: "90 days",
@@ -1634,7 +1619,7 @@ v.FIFTEEN_MIN, new A({
1634
1619
  fineGrainedDefaultGranularity: "daily",
1635
1620
  allowedTiers: ["trial", "plus", "enterprise"],
1636
1621
  allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
1637
- }), v.ONE_HUNDRED_EIGHTY_DAY, new A({
1622
+ }), v.ONE_HUNDRED_EIGHTY_DAY, new V({
1638
1623
  key: v.ONE_HUNDRED_EIGHTY_DAY,
1639
1624
  display: "Last 180 days",
1640
1625
  timeframeText: "180 days",
@@ -1645,7 +1630,7 @@ v.FIFTEEN_MIN, new A({
1645
1630
  fineGrainedDefaultGranularity: "daily",
1646
1631
  allowedTiers: ["trial", "plus", "enterprise"],
1647
1632
  allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
1648
- }), v.ONE_YEAR, new A({
1633
+ }), v.ONE_YEAR, new V({
1649
1634
  key: v.ONE_YEAR,
1650
1635
  display: "Last 365 days",
1651
1636
  timeframeText: "365 days",
@@ -1656,13 +1641,13 @@ v.FIFTEEN_MIN, new A({
1656
1641
  fineGrainedDefaultGranularity: "daily",
1657
1642
  allowedTiers: ["trial", "plus", "enterprise"],
1658
1643
  allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
1659
- }), v.CURRENT_WEEK, new Xa({
1644
+ }), v.CURRENT_WEEK, new Wa({
1660
1645
  key: v.CURRENT_WEEK,
1661
1646
  display: "This week",
1662
1647
  timeframeText: "Week",
1663
1648
  timeframeLength: () => {
1664
- const e = Be(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
1665
- return (Pe(Ge(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1649
+ const t = Be(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
1650
+ return (Le(Ce(/* @__PURE__ */ new Date(), 1)).getTime() - t.getTime()) / 1e3;
1666
1651
  },
1667
1652
  defaultResponseGranularity: "daily",
1668
1653
  dataGranularity: "daily",
@@ -1670,43 +1655,43 @@ v.FIFTEEN_MIN, new A({
1670
1655
  fineGrainedDefaultGranularity: "twoHourly",
1671
1656
  allowedTiers: ["plus", "enterprise"],
1672
1657
  allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
1673
- }), v.CURRENT_MONTH, new ei({
1658
+ }), v.CURRENT_MONTH, new Za({
1674
1659
  key: v.CURRENT_MONTH,
1675
1660
  display: "This month",
1676
1661
  timeframeText: "Month",
1677
1662
  timeframeLength: () => {
1678
- const e = pe(/* @__PURE__ */ new Date());
1679
- return (Pe(Ge(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1663
+ const t = he(/* @__PURE__ */ new Date());
1664
+ return (Le(Ce(/* @__PURE__ */ new Date(), 1)).getTime() - t.getTime()) / 1e3;
1680
1665
  },
1681
1666
  defaultResponseGranularity: "daily",
1682
1667
  dataGranularity: "daily",
1683
1668
  isRelative: !1,
1684
1669
  allowedTiers: ["plus", "enterprise"]
1685
- }), v.CURRENT_QUARTER, new ti({
1670
+ }), v.CURRENT_QUARTER, new Ja({
1686
1671
  key: v.CURRENT_QUARTER,
1687
1672
  display: "This quarter",
1688
1673
  timeframeText: "Quarter",
1689
1674
  timeframeLength: () => {
1690
- const e = fe(/* @__PURE__ */ new Date());
1691
- return (Pe(Ge(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1675
+ const t = ye(/* @__PURE__ */ new Date());
1676
+ return (Le(Ce(/* @__PURE__ */ new Date(), 1)).getTime() - t.getTime()) / 1e3;
1692
1677
  },
1693
1678
  defaultResponseGranularity: "daily",
1694
1679
  dataGranularity: "daily",
1695
1680
  isRelative: !1,
1696
1681
  allowedTiers: ["plus", "enterprise"]
1697
- }), v.CURRENT_YEAR, new ni({
1682
+ }), v.CURRENT_YEAR, new Qa({
1698
1683
  key: v.CURRENT_YEAR,
1699
1684
  display: "This year",
1700
1685
  timeframeText: "Year",
1701
1686
  timeframeLength: () => {
1702
- const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1);
1703
- return (Pe(Ge(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1687
+ const t = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1);
1688
+ return (Le(Ce(/* @__PURE__ */ new Date(), 1)).getTime() - t.getTime()) / 1e3;
1704
1689
  },
1705
1690
  defaultResponseGranularity: "daily",
1706
1691
  dataGranularity: "daily",
1707
1692
  isRelative: !1,
1708
1693
  allowedTiers: ["plus", "enterprise"]
1709
- }), v.PREVIOUS_WEEK, new ri({
1694
+ }), v.PREVIOUS_WEEK, new Xa({
1710
1695
  key: v.PREVIOUS_WEEK,
1711
1696
  display: "Previous week",
1712
1697
  timeframeText: "Week",
@@ -1717,246 +1702,148 @@ v.FIFTEEN_MIN, new A({
1717
1702
  fineGrainedDefaultGranularity: "twoHourly",
1718
1703
  allowedTiers: ["plus", "enterprise"],
1719
1704
  allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
1720
- }), v.PREVIOUS_MONTH, new ii({
1705
+ }), v.PREVIOUS_MONTH, new ti({
1721
1706
  key: v.PREVIOUS_MONTH,
1722
1707
  display: "Previous month",
1723
1708
  timeframeText: "Month",
1724
1709
  timeframeLength: () => {
1725
- let e = 0;
1726
- const n = pe(/* @__PURE__ */ new Date()), a = pe(Mn(/* @__PURE__ */ new Date()));
1727
- return n.getTimezoneOffset() !== a.getTimezoneOffset() && (e = rn(n, a)), 3600 * 24 * Ra((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + jt(e);
1710
+ let t = 0;
1711
+ const n = he(/* @__PURE__ */ new Date()), a = he(Sn(/* @__PURE__ */ new Date()));
1712
+ return n.getTimezoneOffset() !== a.getTimezoneOffset() && (t = rn(n, a)), 3600 * 24 * Sa((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + jt(t);
1728
1713
  },
1729
1714
  defaultResponseGranularity: "daily",
1730
1715
  dataGranularity: "daily",
1731
1716
  isRelative: !1,
1732
1717
  allowedTiers: ["plus", "enterprise"]
1733
- }), v.PREVIOUS_QUARTER, new ai({
1718
+ }), v.PREVIOUS_QUARTER, new ei({
1734
1719
  key: v.PREVIOUS_QUARTER,
1735
1720
  display: "Previous quarter",
1736
1721
  timeframeText: "Quarter",
1737
1722
  timeframeLength: () => {
1738
- const e = fe(/* @__PURE__ */ new Date()), n = fe(Tn(/* @__PURE__ */ new Date()));
1739
- return (e.getTime() - n.getTime()) / 1e3;
1723
+ const t = ye(/* @__PURE__ */ new Date()), n = ye(Dn(/* @__PURE__ */ new Date()));
1724
+ return (t.getTime() - n.getTime()) / 1e3;
1740
1725
  },
1741
1726
  defaultResponseGranularity: "daily",
1742
1727
  dataGranularity: "daily",
1743
1728
  isRelative: !1,
1744
1729
  allowedTiers: ["plus", "enterprise"]
1745
- }), v.PREVIOUS_YEAR, new oi({
1730
+ }), v.PREVIOUS_YEAR, new ni({
1746
1731
  key: v.PREVIOUS_YEAR,
1747
1732
  display: "Previous year",
1748
1733
  timeframeText: "Year",
1749
1734
  timeframeLength: () => {
1750
- const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1), n = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1);
1735
+ const t = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1), n = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1);
1751
1736
  let a = 0;
1752
- return e.getTimezoneOffset() !== n.getTimezoneOffset() && (a = rn(e, n)), 3600 * 24 * (365 + (n.getFullYear() % 4 === 0 ? 1 : 0)) + jt(a);
1737
+ return t.getTimezoneOffset() !== n.getTimezoneOffset() && (a = rn(t, n)), 3600 * 24 * (365 + (n.getFullYear() % 4 === 0 ? 1 : 0)) + jt(a);
1753
1738
  },
1754
1739
  defaultResponseGranularity: "daily",
1755
1740
  dataGranularity: "daily",
1756
1741
  isRelative: !1,
1757
1742
  allowedTiers: ["plus", "enterprise"]
1758
1743
  });
1759
- function rn(e, n) {
1760
- return Ea(e.getTimezoneOffset() - n.getTimezoneOffset());
1744
+ function rn(t, n) {
1745
+ return Da(t.getTimezoneOffset() - n.getTimezoneOffset());
1761
1746
  }
1762
1747
  v.FIFTEEN_MIN, v.ONE_HOUR, v.SIX_HOUR, v.TWELVE_HOUR, v.ONE_DAY, v.SEVEN_DAY, v.FIFTEEN_MIN, v.ONE_HOUR, v.SIX_HOUR, v.TWELVE_HOUR, v.ONE_DAY, v.SEVEN_DAY, v.THIRTY_DAY, v.NINETY_DAY, v.ONE_HUNDRED_EIGHTY_DAY, v.ONE_YEAR, v.CURRENT_WEEK, v.CURRENT_MONTH, v.CURRENT_QUARTER, v.CURRENT_YEAR, v.PREVIOUS_WEEK, v.PREVIOUS_MONTH, v.PREVIOUS_QUARTER, v.PREVIOUS_YEAR;
1763
- new Map(pt.map((e) => [e.code, { code: e.code, name: e.name }]));
1764
- const an = 1e3, si = 1e4, on = 1e6, sn = 1e9, ln = 1e12, Ae = (e, n) => {
1765
- if (n.separator === !1 || e < 1e3)
1766
- return e.toString();
1767
- const a = typeof n.separator == "string" ? n.separator : ",", i = [];
1768
- return Math.round(e).toString().split("").reverse().forEach((l, d) => {
1769
- d && d % 3 === 0 && i.push(a), i.push(l);
1770
- }), i.reverse().join("");
1771
- }, ve = (e, n, a) => {
1772
- const i = e / n, l = a.round ? "round" : "floor";
1748
+ new Map(pt.map((t) => [t.code, { code: t.code, name: t.name }]));
1749
+ const an = 1e3, ri = 1e4, on = 1e6, sn = 1e9, ln = 1e12, Ae = (t, n) => {
1750
+ if (n.separator === !1 || t < 1e3)
1751
+ return t.toString();
1752
+ const a = typeof n.separator == "string" ? n.separator : ",", o = [];
1753
+ return Math.round(t).toString().split("").reverse().forEach((u, d) => {
1754
+ d && d % 3 === 0 && o.push(a), o.push(u);
1755
+ }), o.reverse().join("");
1756
+ }, xe = (t, n, a) => {
1757
+ const o = t / n, u = a.round ? "round" : "floor";
1773
1758
  if (a.decimal === !1)
1774
- return Math[l](i).toString();
1759
+ return Math[u](o).toString();
1775
1760
  let d;
1776
- a.precision ? d = i : d = i < 10 ? Math[l](i * 10) / 10 : Math[l](i);
1761
+ a.precision ? d = o : d = o < 10 ? Math[u](o * 10) / 10 : Math[u](o);
1777
1762
  let y = d.toString();
1778
1763
  return typeof a.decimal == "string" && (y = y.replace(".", a.decimal)), y;
1779
1764
  };
1780
- function Ve(e, n = {}) {
1765
+ function Ve(t, n = {}) {
1781
1766
  let a;
1782
- const i = e < 0;
1783
- i && (e = Math.abs(e)), n.precision && (e = parseFloat(e.toPrecision(n.precision)));
1784
- const l = n.min10k ? si : an;
1785
- return e < l || n.precision && n.precision > Math.log10(e) ? a = Ae(ve(e, 1, n), n) : e < on ? a = `${ve(e, an, n)}k` : e < sn ? a = `${ve(e, on, n)}m` : e < ln ? a = `${Ae(ve(e, sn, n), n)}b` : a = `${Ae(ve(e, ln, n), n)}t`, i && (a = `-${a}`), n.capital && (a = a.toUpperCase()), n.prefix && (a = `${n.prefix}${a}`), n.suffix && (a = `${a}${n.suffix}`), a;
1767
+ const o = t < 0;
1768
+ o && (t = Math.abs(t)), n.precision && (t = parseFloat(t.toPrecision(n.precision)));
1769
+ const u = n.min10k ? ri : an;
1770
+ return t < u || n.precision && n.precision > Math.log10(t) ? a = Ae(xe(t, 1, n), n) : t < on ? a = `${xe(t, an, n)}k` : t < sn ? a = `${xe(t, on, n)}m` : t < ln ? a = `${Ae(xe(t, sn, n), n)}b` : a = `${Ae(xe(t, ln, n), n)}t`, o && (a = `-${a}`), n.capital && (a = a.toUpperCase()), n.prefix && (a = `${n.prefix}${a}`), n.suffix && (a = `${a}${n.suffix}`), a;
1786
1771
  }
1787
1772
  Ve.addCommas = Ae;
1788
- const li = typeof document < "u" && document.documentElement?.lang || "en-US", it = new Intl.NumberFormat(li);
1789
- function ui({
1790
- i18n: e
1773
+ const ai = typeof document < "u" && document.documentElement?.lang || "en-US", at = new Intl.NumberFormat(ai);
1774
+ function ii({
1775
+ i18n: t
1791
1776
  }) {
1792
- const n = (i, l) => {
1793
- if (isNaN(i))
1777
+ const n = (o, u) => {
1778
+ if (isNaN(o))
1794
1779
  return "0 B";
1795
- const d = l ? Math.pow(2, 50) : 1e15, y = l ? Math.pow(2, 40) : 1e12, w = l ? Math.pow(2, 30) : 1e9, S = l ? Math.pow(2, 20) : 1e6, D = l ? Math.pow(2, 10) : 1e3;
1796
- let h;
1797
- return i >= d ? h = e.formatNumber(
1798
- Number.parseFloat((i / d).toPrecision(3)),
1780
+ const d = u ? Math.pow(2, 50) : 1e15, y = u ? Math.pow(2, 40) : 1e12, h = u ? Math.pow(2, 30) : 1e9, T = u ? Math.pow(2, 20) : 1e6, N = u ? Math.pow(2, 10) : 1e3;
1781
+ let S;
1782
+ return o >= d ? S = t.formatNumber(
1783
+ Number.parseFloat((o / d).toPrecision(3)),
1799
1784
  { style: "unit", unit: "petabyte", unitDisplay: "narrow" }
1800
- ) : i >= y ? h = e.formatNumber(
1801
- Number.parseFloat((i / y).toPrecision(3)),
1785
+ ) : o >= y ? S = t.formatNumber(
1786
+ Number.parseFloat((o / y).toPrecision(3)),
1802
1787
  { style: "unit", unit: "terabyte", unitDisplay: "narrow" }
1803
- ) : i >= w ? h = e.formatNumber(
1804
- Number.parseFloat((i / w).toPrecision(3)),
1788
+ ) : o >= h ? S = t.formatNumber(
1789
+ Number.parseFloat((o / h).toPrecision(3)),
1805
1790
  { style: "unit", unit: "gigabyte", unitDisplay: "narrow" }
1806
- ) : i >= S ? h = e.formatNumber(
1807
- Number.parseFloat((i / S).toPrecision(3)),
1791
+ ) : o >= T ? S = t.formatNumber(
1792
+ Number.parseFloat((o / T).toPrecision(3)),
1808
1793
  { style: "unit", unit: "megabyte", unitDisplay: "narrow" }
1809
- ) : i >= D ? h = e.formatNumber(
1810
- Number.parseFloat((i / D).toPrecision(3)),
1794
+ ) : o >= N ? S = t.formatNumber(
1795
+ Number.parseFloat((o / N).toPrecision(3)),
1811
1796
  { style: "unit", unit: "kilobyte", unitDisplay: "narrow" }
1812
- ) : h = e.formatNumber(
1813
- Number.parseFloat(i.toPrecision(3)),
1797
+ ) : S = t.formatNumber(
1798
+ Number.parseFloat(o.toPrecision(3)),
1814
1799
  { style: "unit", unit: "byte", unitDisplay: "narrow" }
1815
- ), h.replace(/([a-zA-Z]*)$/, " $1");
1816
- }, a = (i, l = "USD") => isNaN(i) ? l === "USD" ? "$0.00" : `${i}` : i >= 0.01 || l !== "USD" ? e.formatNumber(i, { style: "currency", currency: l }) : i < 1e-4 ? "< $0.0001" : `$${Number.parseFloat(i.toPrecision(4))}`;
1817
- return { formatUnit: (i, l, {
1800
+ ), S.replace(/([a-zA-Z]*)$/, " $1");
1801
+ }, a = (o, u = "USD") => isNaN(o) ? u === "USD" ? "$0.00" : `${o}` : o >= 0.01 || u !== "USD" ? t.formatNumber(o, { style: "currency", currency: u }) : o < 1e-4 ? "< $0.0001" : `$${Number.parseFloat(o.toPrecision(4))}`;
1802
+ return { formatUnit: (o, u, {
1818
1803
  isBytes1024: d = !1,
1819
1804
  currency: y = "USD",
1820
- approximate: w = !1,
1821
- translateUnit: S = (D) => D
1805
+ approximate: h = !1,
1806
+ translateUnit: T = (N) => N
1822
1807
  } = {}) => {
1823
- const D = S(l, i);
1824
- switch (l) {
1808
+ const N = T(u, o);
1809
+ switch (u) {
1825
1810
  case "bytes":
1826
- return n(i, d);
1811
+ return n(o, d);
1827
1812
  case "usd":
1828
- return a(i, y);
1813
+ return a(o, y);
1829
1814
  default:
1830
- return isNaN(i) ? `${i}` : w ? `${Ve(i, { capital: !0 })} ${D}` : i >= 0.01 ? `${it.format(Number.parseFloat(i.toFixed(2)))} ${D}` : `${Number.parseFloat(i.toPrecision(4))} ${D}`;
1815
+ return isNaN(o) ? `${o}` : h ? `${Ve(o, { capital: !0 })} ${N}` : o >= 0.01 ? `${at.format(Number.parseFloat(o.toFixed(2)))} ${N}` : `${Number.parseFloat(o.toPrecision(4))} ${N}`;
1831
1816
  }
1832
- }, formatBytes: n, formatCost: a, formatRange: (i, l, d, {
1817
+ }, formatBytes: n, formatCost: a, formatRange: (o, u, d, {
1833
1818
  isBytes1024: y = !1,
1834
- currency: w = "USD",
1835
- approximate: S = !1,
1836
- translateUnit: D = (h) => h
1819
+ currency: h = "USD",
1820
+ approximate: T = !1,
1821
+ translateUnit: N = (S) => S
1837
1822
  } = {}) => {
1838
- const h = D(d, l);
1823
+ const S = N(d, u);
1839
1824
  switch (d) {
1840
1825
  case "bytes":
1841
- return `${n(i, y)} - ${n(l, y)}`;
1826
+ return `${n(o, y)} - ${n(u, y)}`;
1842
1827
  case "usd":
1843
- return `${a(i, w)} - ${a(l, w)}`;
1828
+ return `${a(o, h)} - ${a(u, h)}`;
1844
1829
  default:
1845
- if (isNaN(i) || isNaN(l))
1846
- return `${i} - ${l}`;
1847
- if (S)
1848
- return `${Ve(i, { capital: !0 })} - ${Ve(l, { capital: !0 })} ${h}`;
1830
+ if (isNaN(o) || isNaN(u))
1831
+ return `${o} - ${u}`;
1832
+ if (T)
1833
+ return `${Ve(o, { capital: !0 })} - ${Ve(u, { capital: !0 })} ${S}`;
1849
1834
  }
1850
- const E = i >= 0.01 ? `${it.format(Number.parseFloat(i.toFixed(2)))}` : `${Number.parseFloat(i.toPrecision(4))}`, L = l >= 0.01 ? `${it.format(Number.parseFloat(l.toFixed(2)))}` : `${Number.parseFloat(l.toPrecision(4))}`;
1851
- return `${E} - ${L} ${h}`;
1835
+ const E = o >= 0.01 ? `${at.format(Number.parseFloat(o.toFixed(2)))}` : `${Number.parseFloat(o.toPrecision(4))}`, F = u >= 0.01 ? `${at.format(Number.parseFloat(u.toFixed(2)))}` : `${Number.parseFloat(u.toPrecision(4))}`;
1836
+ return `${E} - ${F} ${S}`;
1852
1837
  } };
1853
1838
  }
1854
- const Fe = "#e0e4ea", ci = "#828a9e", di = "32px", un = 5, ot = [
1855
- "#00819d",
1856
- "#00abd2",
1857
- "#00c8f4",
1858
- "#67e3ff",
1859
- "#b3f1ff"
1860
- ], mi = (e, n) => {
1861
- const a = e.length;
1862
- if (!a)
1863
- return NaN;
1864
- const i = (a - 1) * n, l = Math.floor(i), d = Math.ceil(i);
1865
- return l === d ? e[l] : e[l] + (i - l) * (e[d] - e[l]);
1866
- }, st = (e, n) => {
1867
- if (e.length === 0)
1868
- return [];
1869
- const a = e.filter((w) => w > 0).map(Math.log).sort((w, S) => w - S), i = Math.min(...a), d = (Math.max(...a) - i) / n;
1870
- return Array.from({ length: n }, (w, S) => i + S * d).map((w) => Math.exp(w)).reverse();
1871
- };
1872
- function fi({
1873
- countryMetrics: e,
1874
- metric: n,
1875
- unit: a
1876
- }) {
1877
- const { formatMetric: i, formatMetricRange: l } = Me.useMetricFormat({ unit: a }), d = j(() => {
1878
- const R = { ...e.value };
1879
- for (const P of Object.keys(R))
1880
- pt.find((O) => O.code === P) || delete R[P];
1881
- return R;
1882
- }), y = j(() => Object.values(d.value)), w = j(() => Object.keys(d.value).length), S = j(() => w.value < un - 1 ? w.value : un), D = j(() => !n.value?.includes("latency")), h = j(() => {
1883
- const R = [];
1884
- if (y.value.length > 10) {
1885
- const P = [...y.value].sort((I, q) => I - q), O = mi(P, 0.75), C = y.value.filter((I) => I >= O), V = y.value.filter((I) => I < O), U = st(C, 3), z = st(V, 2);
1886
- return R.push(...U, ...z), R;
1887
- }
1888
- return st(y.value, S.value);
1889
- }), E = j(() => y.value.length === 1 ? [{
1890
- color: L(y.value[0]),
1891
- range: i(y.value[0], {
1892
- approximate: D.value,
1893
- showUnit: !a.value.includes("count")
1894
- }).trim()
1895
- }] : h.value.map((R, P) => {
1896
- const O = P === 0 ? Math.max(...h.value) : h.value[P - 1], C = R, V = O;
1897
- let U = "";
1898
- return P === 0 ? U = `> ${i(C, {
1899
- showUnit: !a.value.includes("count"),
1900
- approximate: D.value
1901
- })}`.trim() : P === h.value.length - 1 ? U = `< ${i(V, {
1902
- showUnit: !a.value.includes("count"),
1903
- approximate: D.value
1904
- })}`.trim() : U = l(C, V, {
1905
- showUnit: !a.value.includes("count"),
1906
- approximate: D.value
1907
- }).trim(), {
1908
- color: L(C),
1909
- range: U
1910
- };
1911
- })), L = (R) => {
1912
- if (R === 0)
1913
- return Fe;
1914
- const P = h.value.findIndex((O) => R >= O);
1915
- return P === -1 ? ot[ot.length - 1] : ot[P] ?? Fe;
1916
- };
1917
- return {
1918
- getColor: L,
1919
- legendData: E,
1920
- scale: h
1921
- };
1922
- }
1923
- function pi({
1924
- unit: e
1925
- }) {
1926
- const { i18n: n } = Me.useI18n(), { formatUnit: a, formatRange: i } = ui({ i18n: n });
1927
- return {
1928
- formatMetric: (y, {
1929
- showUnit: w = !0,
1930
- approximate: S = !1
1931
- } = {}) => a(y, e.value, {
1932
- approximate: S,
1933
- translateUnit: (D) => w ? n.t(`metricUnits.${D}`, { plural: y > 1 ? "s" : "" }) : ""
1934
- }),
1935
- formatMetricRange: (y, w, {
1936
- showUnit: S = !0,
1937
- approximate: D = !1
1938
- } = {}) => i(y, w, e.value, {
1939
- approximate: D,
1940
- translateUnit: (h) => S ? n.t(`metricUnits.${h}`, { plural: w > 1 ? "s" : "" }) : ""
1941
- })
1942
- };
1839
+ function oi(t) {
1840
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1943
1841
  }
1944
- const Me = {
1945
- useI18n: ca,
1946
- useLegendScale: fi,
1947
- useMetricFormat: pi
1948
- }, yi = "FeatureCollection", hi = /* @__PURE__ */ JSON.parse('[{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rBaikal","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[106.57998579307912,52.79998159444554],[106.53998823448521,52.93999888774037],[107.0800069519353,53.18001007751998],[107.2999935242018,53.37999787048953],[107.59997521365611,53.51998932556822],[108.03994835818912,53.859968573616456],[108.37997928266967,54.25999583598784],[109.05270307824526,55.027597561251326],[109.19346967980832,55.53560272889659],[109.50699059452313,55.73091380474372],[109.92980716353523,55.7129562445223],[109.70000206913326,54.980003567110515],[109.66000451053935,54.71999359803395],[109.47996382043448,54.33999095317566],[109.31997358605884,53.81999685323869],[109.22003136600637,53.619983222052994],[108.99999311730755,53.78002513286093],[108.60001753136845,53.4399942083804],[108.800005324338,53.37999787048953],[108.76000776574409,53.200008856816936],[108.45997439985749,53.14001251892607],[108.17999148970011,52.79998159444554],[107.79996300662566,52.579995022179034],[107.31999230349876,52.42000478780339],[106.64003380740229,52.32001089131862],[106.1000150899522,52.03997630472897],[105.740037062607,51.759993394571595],[105.24001590375084,51.52000804300813],[104.81998986208251,51.46001170511727],[104.30002160036167,51.50000926371118],[103.7600028829116,51.60000316019595],[103.6200114278329,51.73999461527464],[103.85999677939637,51.85998729105637],[104.39996382041414,51.85998729105637],[105.05997521364597,52.0000045843512],[105.4800012553143,52.28001333272471],[105.98002241417046,52.51999868428817],[106.26000532432784,52.619992580772944],[106.57998579307912,52.79998159444554]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rWinnipeg","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-98.95540137408423,53.92978343364277],[-97.95799455441879,54.337097072967325],[-97.8050064766187,54.05938792583079],[-97.64380184608419,53.42521474874492],[-96.39258622921722,51.39730235453108],[-96.23789282915149,50.6910147161819],[-96.72558915890605,50.448910630894474],[-96.92110694048235,50.75405996357799],[-97.23568722205913,51.49778717712263],[-98.20097713905517,52.18456696228162],[-99.23680538612963,53.21628693298888],[-98.95540137408423,53.92978343364277]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Great\\rSlave Lake","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-115.00000342492967,61.9723932969562],[-115.80669837122196,62.54171255151576],[-116.0585951404287,62.77880402287089],[-115.84279435917783,62.7503044704619],[-114.45259497766185,62.42820526798667],[-113.35341142459757,62.04448192000336],[-111.77890804731261,62.44360484480964],[-111.04001258018727,62.92000987410843],[-110.20001217328286,63.08000010848407],[-109.40000932497237,62.87817780216814],[-109.09010576051801,62.814099026126215],[-109.11651241741916,62.6928144395372],[-110.10089677614705,62.51561595320837],[-111.27599300824811,62.34911448836395],[-112.63050981326654,61.55991201440246],[-113.64000891808828,61.07999298770784],[-115.3409903634076,60.87659455020702],[-116.43999304895887,60.86000641544133],[-118.06110856817108,61.31196849226605],[-118.3474735177165,61.36137116153708],[-118.3849906075604,61.52110301375126],[-118.17960262741634,61.55629466414203],[-116.8028132800801,61.32589529076871],[-115.67879920129957,61.69179026961132],[-115.00000342492967,61.9723932969562]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"L. Ontario","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-79.05630591502026,43.25410431576152],[-79.36168779164908,43.20237620703736],[-79.76047481964547,43.29720246029295],[-79.46116492381094,43.639197089200565],[-79.1561706204243,43.75743276628437],[-78.45052893747877,43.9031861435636],[-77.60536088734519,44.039327704436545],[-77.16148617217414,43.850140285815996],[-76.88269181995948,44.0694550644627],[-76.56555355498425,44.20802541765336],[-76.35303422718391,44.134670722015045],[-76.23926856149336,43.979150499032656],[-76.17999569365458,43.5900011256587],[-76.9300015937227,43.2599954290428],[-77.74915056019732,43.342832750006664],[-78.53499406605984,43.379988104824534],[-79.05630591502026,43.25410431576152]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"L. Erie","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-83.12001135937246,42.08001577409016],[-82.57123348664891,42.01702220312636],[-81.82918575715374,42.33552989355732],[-81.39226152212595,42.61517690690481],[-81.09496700715081,42.66075552018623],[-80.54515560578142,42.560089830081665],[-80.27917700877515,42.71566172949635],[-79.79135148793986,42.84203644466612],[-78.92000932485044,42.96500051530464],[-78.90057898630869,42.8667119410855],[-79.76220598012725,42.269616604169045],[-80.51644934764329,41.980331936199136],[-81.03119828970264,41.845508124349635],[-81.62351355663209,41.568935858723535],[-82.34744869660895,41.435920722004255],[-82.84610043000939,41.48710622818935],[-83.46283281119673,41.69396698665372],[-83.12001135937246,42.08001577409016],[-83.12001135937246,42.08001577409016]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake Superior","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-89.60000342482806,48.00998973244721],[-89.19405921095924,48.40546946877693],[-88.62641944044917,48.56251414651193],[-88.40423661981026,48.80632355406499],[-88.17895321323383,48.93670319273738],[-87.24903581414156,48.73511343036678],[-86.56000810417788,48.71108388935106],[-86.32103044304411,48.57729360614741],[-85.98652889681881,48.01035146747326],[-84.8642201403039,47.86007640236849],[-85.04061764193222,47.575700995466306],[-84.64500871452178,47.28220469826462],[-84.81528255892351,46.90233124448706],[-84.39559241406505,46.77683502866624],[-84.60490780306328,46.439594631529474],[-84.9100054593145,46.48000560158172],[-85.11999264193253,46.76001434995524],[-86.1026200019625,46.67265534116582],[-86.99000769727856,46.45000743263628],[-87.69427995476835,46.83104360614041],[-88.2612220934425,46.958581041036766],[-87.93992387566777,47.485913194359185],[-88.82260901564527,47.154796454449],[-89.62498897984119,46.83083690041124],[-90.39703487828177,46.57648550067064],[-91.00999487991183,46.92000458433087],[-92.01192338740282,46.71167104754619],[-92.00877112503301,46.85843211525511],[-91.33000118687926,47.28000844989221],[-90.61999284540505,47.68000987404746],[-89.60000342482806,48.00998973244721]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rVictoria","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[33.85036827976734,0.128157863766091],[33.85036827976734,0.128157863766091],[34.13624230320599,-0.319308363449238],[34.0726286150547,-1.059831638191795],[33.579428745261055,-1.506005954599821],[33.251748488098286,-1.957968031424549],[33.64717654799571,-2.30089283611342],[33.07672041192572,-2.547131035984201],[32.95176679864397,-2.43044565186915],[32.37309410983957,-2.489925225437091],[31.926558058405476,-2.714511000177573],[31.648022088352292,-2.32921152100937],[31.836020949030114,-1.629305922048232],[31.866199985488578,-1.027378838712494],[31.815143670384202,-0.64042571371094],[32.27284183119332,-0.056120293786734],[32.906136508930246,0.0867650415003],[33.33184695815069,0.324993394365833],[33.85036827976734,0.128157863766091]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rLadoga","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[29.836711460089845,61.22608226179696],[29.836711460089845,61.22608226179696],[30.85199832532828,61.77504100203353],[32.52688317234018,61.11751007755173],[32.94432539239392,60.64260366478942],[32.81575442885176,60.481889960361684],[32.599901971168606,60.533514716221276],[32.583882277158125,60.20893504499601],[31.699440138482714,60.23565176049091],[31.50973595553924,59.92034800886205],[31.106246372204282,59.92768606224749],[31.10893354668346,60.14645823835514],[30.533878208139498,60.63009796817478],[30.502045525847706,60.843211574946466],[29.836711460089845,61.22608226179696]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rBalkhash","name_alt":"Balqash Köli","admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[78.99076541536459,46.748619696634876],[78.99076541536459,46.748619696634876],[79.2451684915375,46.64516347918655],[78.88989301953086,46.369934800800024],[78.44506229036242,46.29717438413307],[77.20606814973246,46.3955663112168],[75.61128177277294,46.50718740496724],[75.46333214712132,46.6706141220903],[75.40566124868357,46.47080719663377],[74.91122114451494,46.404661363300164],[74.77138471873312,46.107831936215646],[74.27802981964263,46.004065660173566],[74.0999528339648,44.98893382423201],[73.4367375019309,45.60946442319282],[73.4399931171653,45.80586070411809],[73.73713260284359,46.012747300798594],[73.67925499867667,46.18307282163262],[74.02068118682908,46.20490611427593],[74.09432010284502,46.42781240496693],[74.939384800114,46.81678091082786],[76.20313195181177,46.7800131292522],[77.18131513866464,46.64340648048862],[77.85993004752152,46.64785065366573],[78.29700931184618,46.46853343361292],[78.39710656119556,46.657669175801175],[78.99076541536459,46.748619696634876]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rTanganyika","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[30.806006300588507,-8.578339125201033],[30.46442508313922,-8.498188978716335],[30.566847771941724,-8.1150082332721],[30.27735639824263,-7.848357842646031],[30.14702843600253,-7.299244073112582],[29.536523064906334,-6.7541610652979],[29.19318484875913,-6.038029066597119],[29.371985304489016,-5.616452731960017],[29.101717563602506,-5.054006442895265],[29.281034783655315,-3.455499362810748],[29.652588331833897,-4.420143324403149],[29.600085076625334,-4.896393324405054],[29.79195966972506,-5.040880629093131],[29.758421665167646,-5.466901136907339],[29.951226434048635,-5.860985609565162],[29.722041456834177,-6.244114678577112],[30.52803877129051,-6.922729587433992],[30.604158156056457,-7.541916599155222],[31.189032016735865,-8.729906101113095],[31.022117140433124,-8.786543470904988],[30.806006300588507,-8.578339125201033],[30.806006300588507,-8.578339125201033]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake Malawi","name_alt":"Lake Nyasa","admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[35.2602047055542,-14.277474460510291],[35.236226840970915,-14.401291192281633],[34.881209751125766,-14.012012627826891],[34.706543409979076,-14.262023207255027],[34.54675988133266,-14.047669366108266],[34.55110070164528,-13.67208505621096],[34.3209338722171,-13.379389743709737],[34.32997724786827,-12.944584242405995],[34.032527703596315,-12.208556817272836],[34.322690870915096,-11.652983493702834],[34.25990400568048,-10.447579034062642],[33.906592238100984,-9.801726983278854],[33.99557905450757,-9.495440769084837],[34.52422895685345,-10.03013681400887],[34.60789310073403,-11.080511976773494],[34.93702029800096,-11.463434340056267],[34.69388268406766,-12.422393894096615],[34.86756717300062,-13.701127211159019],[35.05597944513687,-13.742933444883136],[35.2602047055542,-14.277474460510291]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Aral\\rSea","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[60.05285159692946,44.264636949229114],[59.77002648299603,44.15999217383806],[59.06288618351405,44.36928172462015],[59.34571129744745,44.99720205339871],[59.35930219914022,45.190006822279685],[58.96139367049281,45.37500844988459],[58.92144778833119,45.101846828789746],[58.92144778833119,44.73556427670495],[58.497132602782614,44.212340399749735],[58.285000848224456,44.473952338227335],[58.285000848224456,44.89255727800766],[58.689989048095896,45.50001373959863],[58.78000939314833,45.88673432065487],[59.20427290226462,45.93905670835039],[59.535002068932585,45.70501414650049],[59.55784305200561,46.30533926043519],[59.77002648299603,46.25299103452352],[60.12359663273702,46.096023871436955],[60.12359663273702,45.88673432065487],[59.94675988143425,45.808211981787366],[59.84071984237133,45.520477606786216],[60.12359663273702,45.572774156265595],[60.23997195825834,44.78403677019473],[60.05285159692946,44.264636949229114]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Vänern","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[13.979281447005576,59.20491364199721],[13.979281447005576,59.20491364199721],[13.984449090234762,59.086212877022774],[13.91892337408865,58.902503160225166],[13.28268313971111,58.608670966213566],[12.830100945698888,58.50903880475484],[12.460149366921371,58.50619660097878],[12.537767368223768,58.77594757754237],[12.522161085671598,58.880282294339665],[12.697085808979608,58.953843695707135],[13.027039829163215,58.993531195707305],[13.195298292705559,59.12900096296045],[13.59144982265505,59.336481838612315],[13.979281447005576,59.20491364199721]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Okeechobee","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-80.70643775096435,26.788959458924822],[-80.93244462759287,26.823272609966622],[-80.91970638703292,27.068916530866048],[-80.69369951040441,27.034629218040394],[-80.70643775096435,26.788959458924822],[-80.70643775096435,26.788959458924822]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lago de\\rNicaragua","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-84.85548682324658,11.147898667846633],[-85.29013729525353,11.176165676310276],[-85.79132117383625,11.509737046754324],[-85.8851655748783,11.900100816287136],[-85.5653401354239,11.940330918826362],[-85.03684526237491,11.5216484643976],[-84.85548682324658,11.147898667846633],[-84.85548682324658,11.147898667846633]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Tana","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[37.14370730972843,11.850594794151519],[37.01482628759251,12.035596421756424],[37.24401126480697,12.233878892460353],[37.518361443844526,12.160601711470477],[37.48187788264647,11.825092474815477],[37.33635704931254,11.713393866416595],[37.14370730972843,11.850594794151519],[37.14370730972843,11.850594794151519]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lago Titicaca","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-69.40673987494259,-16.126198825752063],[-69.7290974595793,-15.928794854397104],[-69.98365556504908,-15.73717864345884],[-69.8770212470148,-15.669844252182529],[-69.8679778713637,-15.546079196843493],[-69.88559953477524,-15.35425628017606],[-69.59675411647981,-15.410480238509614],[-68.98697221543571,-15.885903415594846],[-68.9596870591856,-15.91329192470954],[-68.74623755560401,-16.356003920154023],[-68.90524593776611,-16.506640720284835],[-69.00115739609983,-16.536406345284952],[-69.09084184434238,-16.461992282784657],[-69.18205074733753,-16.40116912197712],[-69.25098710801488,-16.227536309476427],[-69.40673987494259,-16.126198825752063],[-69.40673987494259,-16.126198825752063]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake\\rWinnipegosis","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-99.40377193886468,53.1258531764781],[-99.54846594928192,53.120427151087455],[-99.80498775917877,53.14290639913442],[-100.43146114785316,53.2841897650204],[-100.60685095905177,53.531616522833886],[-100.33487789589965,53.745246893928496],[-100.42673275429846,53.90740753846039],[-100.4044860501968,53.94507965760117],[-100.32629960813921,54.094011135466346],[-100.23586585162842,54.23033356385231],[-99.99549292682278,54.215864162810576],[-100.04778947630214,54.10013479269293],[-100.18356930214904,53.930351874397985],[-99.87128862180926,53.928465684619326],[-99.91066606321566,53.821314602262134],[-100.05649695514333,53.44332733826322],[-99.66551306842301,53.29581696228607],[-99.39317827024485,53.26791168884846],[-99.40377193886468,53.1258531764781],[-99.40377193886468,53.1258531764781]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake\\rOnega","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[35.71464725112901,62.2802298041189],[36.0541614112866,61.716310736733874],[36.391401808423325,61.27605337182331],[36.10945519383887,61.01508738874924],[35.35074181492962,60.948579820389625],[34.866843702948586,61.11637319604125],[35.207288038887384,61.114435329830485],[35.57832482274313,61.08634918887975],[35.16000410334027,61.39428904890701],[34.85733523940689,61.55179881453273],[34.48691857273877,61.86697337508076],[34.265019972477376,62.21914826114994],[34.289824659977455,62.29774811466581],[34.66561567560399,62.22979360620195],[34.62613488133297,62.45223480900245],[34.8356311378443,62.29676626245225],[35.080267368314026,62.1411943630377],[35.21658979669991,62.193284206787894],[35.463706495919666,62.2560193955901],[35.13969526544963,62.48776235620312],[34.614352654770414,62.762448432050576],[34.99541466649072,62.748469957115674],[35.23395307795005,62.675347805422575],[35.71464725112901,62.2802298041189]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Great Salt Lake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-112.18405127648089,41.34124949804567],[-112.13875688357706,41.142346910154174],[-112.17193315310845,40.851460272783186],[-112.67882727745939,41.130487168943205],[-112.70549231652205,41.16753917089636],[-112.87814327680917,41.62815705013003],[-112.58955624067522,41.43891795507716],[-112.40532975955472,41.33801972102742],[-112.21901038292629,41.42855683040267],[-112.18405127648089,41.34124949804567]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Great\\rBear Lake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-117.7592923653704,66.22368419052789],[-117.97374955938167,65.85489533147692],[-118.10710059291085,65.76691620550001],[-119.7200520432652,65.73479930283061],[-119.74568355368197,65.65436493596833],[-119.6648099371452,65.52742178004333],[-119.70219783590836,65.36794830999061],[-121.35509436098008,64.87999359807459],[-121.33610327211281,64.99461192489797],[-120.94527441468938,65.37774099390991],[-121.05728308168202,65.4463414577774],[-122.56450374412293,65.0310696478799],[-123.232705851873,65.18041453720339],[-123.17963415590926,65.31937246363624],[-122.32599117087979,65.79378795029179],[-122.35622188377054,65.90184337021411],[-124.95363440005697,66.04925039332666],[-124.89753963280414,66.15115631780624],[-119.48724971579031,66.96929759385118],[-119.35743771042887,66.87519481064767],[-120.1769492193738,66.46527151149239],[-117.60545162643749,66.55934845647975],[-117.61278967982294,66.41997711858856],[-117.7592923653704,66.22368419052789],[-117.7592923653704,66.22368419052789]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Athabasca","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-109.65330135785099,59.03763703066841],[-111.08626298708849,58.56017263450765],[-111.19948605023998,58.685565497463884],[-111.160005255969,58.75985036888345],[-109.09672034385136,59.55042226830068],[-106.54517066122398,59.31968699811746],[-106.54695349813804,59.292815253325685],[-109.65330135785099,59.03763703066841],[-109.65330135785099,59.03763703066841]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Reindeer\\rLake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-101.89514441608819,58.01403025983099],[-101.89514441608819,58.01403025983099],[-101.54384802936804,57.86809601503873],[-101.97090206582807,57.34867035585697],[-101.93403093138781,57.23066722271848],[-103.20416012247362,56.34539826112639],[-103.2825015938281,56.40994212505895],[-103.1487371488406,56.70411021588043],[-103.07832800984292,56.71080231386223],[-103.01440426309787,56.56510061301529],[-102.57680823445028,56.938281968811054],[-102.81322791218561,57.28714956321349],[-102.81369300007623,57.46434804954232],[-102.12874772826359,58.01914622662788],[-101.89514441608819,58.01403025983099]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rHuron","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-80.41056433787725,45.590137437515665],[-79.76292945017934,44.824602769543844],[-80.08500281443844,44.493925279308144],[-80.89769222687659,44.63164297136599],[-81.40233842642287,45.25005483660284],[-81.27567949087549,44.6201708033972],[-81.75265296092948,44.06464915625956],[-81.70017554393709,43.590052802090995],[-81.78272864452336,43.310845038417995],[-82.43000179719522,42.98001251888543],[-82.4799987454376,43.39001333268915],[-82.6599877591102,43.970003770516996],[-83.02999101432,44.06999766700177],[-83.6500048489579,43.62999868425261],[-83.84870073112015,43.63831858985161],[-83.89998959016984,43.88998281511303],[-83.34999732128743,44.29001007748441],[-83.25878841829228,44.74574453386644],[-83.33999793163895,45.200006211928155],[-84.08000444205858,45.58998240821879],[-84.93000423861146,45.789996039404485],[-84.75355506055087,45.924483954444085],[-84.71999121777729,45.91998810483469],[-83.83919226757845,46.010215155616294],[-84.33670711946846,46.40876963966737],[-84.14870825879063,46.55576325132161],[-83.95257036002683,46.334278062518635],[-83.20251278352643,46.21015127215355],[-82.44199072948692,46.19963511818216],[-81.63136837434045,46.09754832618957],[-80.73679765493583,45.90381338152733],[-80.41056433787725,45.590137437515665]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rMichigan","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-85.53999284538475,46.03000722918408],[-84.75355506055087,45.924483954444085],[-84.93000423861146,45.789996039404485],[-85.06999569369015,45.40999339454619],[-85.29044735384727,45.30824249936349],[-85.46710323763705,44.81457754167923],[-85.55999162468169,45.150009263685774],[-85.95983801954006,44.91059235287753],[-86.20935767286137,44.574798895844935],[-86.47027197950304,44.08423452409818],[-86.52001054558397,43.65999685319804],[-86.18842871778315,43.04140412044818],[-86.21604977084317,42.38170278581012],[-86.62191647006355,41.8944198675139],[-86.8244364082154,41.75618541113313],[-87.09444576694042,41.64616628678374],[-87.4342183092595,41.640714423176945],[-87.52617652052288,41.70851390234388],[-87.79569495314115,42.23411489518453],[-87.80344641798493,42.49399567318035],[-87.77672970249003,42.740853990238634],[-87.90214840366241,43.23051402442029],[-87.71221167677363,43.79650014909703],[-87.486359829442,44.49335683855294],[-86.9674767727993,45.26287059181122],[-87.11806189649782,45.25933075619923],[-87.85282324903983,44.61505483660031],[-87.98831885450912,44.73331635190026],[-87.5964306302237,45.093707790703775],[-87.00000708692704,45.73999909116209],[-86.31999691439827,45.829993597998396],[-85.53999284538475,46.03000722918408]]]}}]'), _i = {
1949
- type: yi,
1950
- features: hi
1951
- };
1952
- function gi(e) {
1953
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1954
- }
1955
- var Ie = {}, lt, cn;
1956
- function wi() {
1957
- if (cn) return lt;
1958
- cn = 1, lt = w;
1959
- var e, n, a, i, l, d = 1e6, y = {
1842
+ var Oe = {}, it, un;
1843
+ function si() {
1844
+ if (un) return it;
1845
+ un = 1, it = h;
1846
+ var t, n, a, o, u, d = 1e6, y = {
1960
1847
  Point: 0,
1961
1848
  MultiPoint: 1,
1962
1849
  LineString: 2,
@@ -1965,135 +1852,135 @@ function wi() {
1965
1852
  MultiPolygon: 5,
1966
1853
  GeometryCollection: 6
1967
1854
  };
1968
- function w(s, m) {
1969
- e = {}, a = [], n = 0, i = 0, l = 1, S(s), l = Math.min(l, d);
1970
- for (var _ = Math.ceil(Math.log(l) / Math.LN10), x = 0; x < a.length; x++) m.writeStringField(1, a[x]);
1971
- return i !== 2 && m.writeVarintField(2, i), _ !== 6 && m.writeVarintField(3, _), s.type === "FeatureCollection" ? m.writeMessage(4, R, s) : s.type === "Feature" ? m.writeMessage(5, P, s) : m.writeMessage(6, O, s), e = null, m.finish();
1855
+ function h(s, p) {
1856
+ t = {}, a = [], n = 0, o = 0, u = 1, T(s), u = Math.min(u, d);
1857
+ for (var g = Math.ceil(Math.log(u) / Math.LN10), D = 0; D < a.length; D++) p.writeStringField(1, a[D]);
1858
+ return o !== 2 && p.writeVarintField(2, o), g !== 6 && p.writeVarintField(3, g), s.type === "FeatureCollection" ? p.writeMessage(4, O, s) : s.type === "Feature" ? p.writeMessage(5, C, s) : p.writeMessage(6, P, s), t = null, p.finish();
1972
1859
  }
1973
- function S(s) {
1974
- var m, _;
1860
+ function T(s) {
1861
+ var p, g;
1975
1862
  if (s.type === "FeatureCollection")
1976
- for (m = 0; m < s.features.length; m++) S(s.features[m]);
1863
+ for (p = 0; p < s.features.length; p++) T(s.features[p]);
1977
1864
  else if (s.type === "Feature") {
1978
- s.geometry !== null && S(s.geometry);
1979
- for (_ in s.properties) L(_);
1865
+ s.geometry !== null && T(s.geometry);
1866
+ for (g in s.properties) F(g);
1980
1867
  } else if (s.type === "Point") E(s.coordinates);
1981
- else if (s.type === "MultiPoint") h(s.coordinates);
1868
+ else if (s.type === "MultiPoint") S(s.coordinates);
1982
1869
  else if (s.type === "GeometryCollection")
1983
- for (m = 0; m < s.geometries.length; m++) S(s.geometries[m]);
1984
- else if (s.type === "LineString") h(s.coordinates);
1985
- else if (s.type === "Polygon" || s.type === "MultiLineString") D(s.coordinates);
1870
+ for (p = 0; p < s.geometries.length; p++) T(s.geometries[p]);
1871
+ else if (s.type === "LineString") S(s.coordinates);
1872
+ else if (s.type === "Polygon" || s.type === "MultiLineString") N(s.coordinates);
1986
1873
  else if (s.type === "MultiPolygon")
1987
- for (m = 0; m < s.coordinates.length; m++) D(s.coordinates[m]);
1988
- for (_ in s)
1989
- g(_, s.type) || L(_);
1874
+ for (p = 0; p < s.coordinates.length; p++) N(s.coordinates[p]);
1875
+ for (g in s)
1876
+ _(g, s.type) || F(g);
1990
1877
  }
1991
- function D(s) {
1992
- for (var m = 0; m < s.length; m++) h(s[m]);
1878
+ function N(s) {
1879
+ for (var p = 0; p < s.length; p++) S(s[p]);
1993
1880
  }
1994
- function h(s) {
1995
- for (var m = 0; m < s.length; m++) E(s[m]);
1881
+ function S(s) {
1882
+ for (var p = 0; p < s.length; p++) E(s[p]);
1996
1883
  }
1997
1884
  function E(s) {
1998
- i = Math.max(i, s.length);
1999
- for (var m = 0; m < s.length; m++)
2000
- for (; Math.round(s[m] * l) / l !== s[m] && l < d; ) l *= 10;
2001
- }
2002
- function L(s) {
2003
- e[s] === void 0 && (a.push(s), e[s] = n++);
2004
- }
2005
- function R(s, m) {
2006
- for (var _ = 0; _ < s.features.length; _++)
2007
- m.writeMessage(1, P, s.features[_]);
2008
- C(s, m, !0);
2009
- }
2010
- function P(s, m) {
2011
- s.geometry !== null && m.writeMessage(1, O, s.geometry), s.id !== void 0 && (typeof s.id == "number" && s.id % 1 === 0 ? m.writeSVarintField(12, s.id) : m.writeStringField(11, s.id)), s.properties && C(s.properties, m), C(s, m, !0);
2012
- }
2013
- function O(s, m) {
2014
- m.writeVarintField(1, y[s.type]);
2015
- var _ = s.coordinates;
2016
- if (s.type === "Point") U(_, m);
2017
- else if (s.type === "MultiPoint") z(_, m);
2018
- else if (s.type === "LineString") z(_, m);
2019
- else if (s.type === "MultiLineString") I(_, m);
2020
- else if (s.type === "Polygon") I(_, m, !0);
2021
- else if (s.type === "MultiPolygon") q(_, m);
1885
+ o = Math.max(o, s.length);
1886
+ for (var p = 0; p < s.length; p++)
1887
+ for (; Math.round(s[p] * u) / u !== s[p] && u < d; ) u *= 10;
1888
+ }
1889
+ function F(s) {
1890
+ t[s] === void 0 && (a.push(s), t[s] = n++);
1891
+ }
1892
+ function O(s, p) {
1893
+ for (var g = 0; g < s.features.length; g++)
1894
+ p.writeMessage(1, C, s.features[g]);
1895
+ L(s, p, !0);
1896
+ }
1897
+ function C(s, p) {
1898
+ s.geometry !== null && p.writeMessage(1, P, s.geometry), s.id !== void 0 && (typeof s.id == "number" && s.id % 1 === 0 ? p.writeSVarintField(12, s.id) : p.writeStringField(11, s.id)), s.properties && L(s.properties, p), L(s, p, !0);
1899
+ }
1900
+ function P(s, p) {
1901
+ p.writeVarintField(1, y[s.type]);
1902
+ var g = s.coordinates;
1903
+ if (s.type === "Point") I(g, p);
1904
+ else if (s.type === "MultiPoint") U(g, p);
1905
+ else if (s.type === "LineString") U(g, p);
1906
+ else if (s.type === "MultiLineString") z(g, p);
1907
+ else if (s.type === "Polygon") z(g, p, !0);
1908
+ else if (s.type === "MultiPolygon") b(g, p);
2022
1909
  else if (s.type === "GeometryCollection")
2023
- for (var x = 0; x < s.geometries.length; x++) m.writeMessage(4, O, s.geometries[x]);
2024
- C(s, m, !0);
1910
+ for (var D = 0; D < s.geometries.length; D++) p.writeMessage(4, P, s.geometries[D]);
1911
+ L(s, p, !0);
2025
1912
  }
2026
- function C(s, m, _) {
2027
- var x = [], t = 0;
2028
- for (var o in s)
2029
- _ && g(o, s.type) || (m.writeMessage(13, V, s[o]), x.push(e[o]), x.push(t++));
2030
- m.writePackedVarint(_ ? 15 : 14, x);
1913
+ function L(s, p, g) {
1914
+ var D = [], e = 0;
1915
+ for (var i in s)
1916
+ g && _(i, s.type) || (p.writeMessage(13, A, s[i]), D.push(t[i]), D.push(e++));
1917
+ p.writePackedVarint(g ? 15 : 14, D);
2031
1918
  }
2032
- function V(s, m) {
1919
+ function A(s, p) {
2033
1920
  if (s !== null) {
2034
- var _ = typeof s;
2035
- _ === "string" ? m.writeStringField(1, s) : _ === "boolean" ? m.writeBooleanField(5, s) : _ === "object" ? m.writeStringField(6, JSON.stringify(s)) : _ === "number" && (s % 1 !== 0 ? m.writeDoubleField(2, s) : s >= 0 ? m.writeVarintField(3, s) : m.writeVarintField(4, -s));
2036
- }
2037
- }
2038
- function U(s, m) {
2039
- for (var _ = [], x = 0; x < i; x++) _.push(Math.round(s[x] * l));
2040
- m.writePackedSVarint(3, _);
2041
- }
2042
- function z(s, m) {
2043
- var _ = [];
2044
- p(_, s), m.writePackedSVarint(3, _);
2045
- }
2046
- function I(s, m, _) {
2047
- var x = s.length, t;
2048
- if (x !== 1) {
2049
- var o = [];
2050
- for (t = 0; t < x; t++) o.push(s[t].length - (_ ? 1 : 0));
2051
- m.writePackedVarint(2, o);
2052
- }
2053
- var u = [];
2054
- for (t = 0; t < x; t++) p(u, s[t], _);
2055
- m.writePackedSVarint(3, u);
2056
- }
2057
- function q(s, m) {
2058
- var _ = s.length, x, t;
2059
- if (_ !== 1 || s[0].length !== 1) {
2060
- var o = [_];
2061
- for (x = 0; x < _; x++)
2062
- for (o.push(s[x].length), t = 0; t < s[x].length; t++) o.push(s[x][t].length - 1);
2063
- m.writePackedVarint(2, o);
2064
- }
2065
- var u = [];
2066
- for (x = 0; x < _; x++)
2067
- for (t = 0; t < s[x].length; t++) p(u, s[x][t], !0);
2068
- m.writePackedSVarint(3, u);
2069
- }
2070
- function p(s, m, _) {
2071
- var x, t, o = m.length - (_ ? 1 : 0), u = new Array(i);
2072
- for (t = 0; t < i; t++) u[t] = 0;
2073
- for (x = 0; x < o; x++)
2074
- for (t = 0; t < i; t++) {
2075
- var F = Math.round(m[x][t] * l) - u[t];
2076
- s.push(F), u[t] += F;
1921
+ var g = typeof s;
1922
+ g === "string" ? p.writeStringField(1, s) : g === "boolean" ? p.writeBooleanField(5, s) : g === "object" ? p.writeStringField(6, JSON.stringify(s)) : g === "number" && (s % 1 !== 0 ? p.writeDoubleField(2, s) : s >= 0 ? p.writeVarintField(3, s) : p.writeVarintField(4, -s));
1923
+ }
1924
+ }
1925
+ function I(s, p) {
1926
+ for (var g = [], D = 0; D < o; D++) g.push(Math.round(s[D] * u));
1927
+ p.writePackedSVarint(3, g);
1928
+ }
1929
+ function U(s, p) {
1930
+ var g = [];
1931
+ f(g, s), p.writePackedSVarint(3, g);
1932
+ }
1933
+ function z(s, p, g) {
1934
+ var D = s.length, e;
1935
+ if (D !== 1) {
1936
+ var i = [];
1937
+ for (e = 0; e < D; e++) i.push(s[e].length - (g ? 1 : 0));
1938
+ p.writePackedVarint(2, i);
1939
+ }
1940
+ var l = [];
1941
+ for (e = 0; e < D; e++) f(l, s[e], g);
1942
+ p.writePackedSVarint(3, l);
1943
+ }
1944
+ function b(s, p) {
1945
+ var g = s.length, D, e;
1946
+ if (g !== 1 || s[0].length !== 1) {
1947
+ var i = [g];
1948
+ for (D = 0; D < g; D++)
1949
+ for (i.push(s[D].length), e = 0; e < s[D].length; e++) i.push(s[D][e].length - 1);
1950
+ p.writePackedVarint(2, i);
1951
+ }
1952
+ var l = [];
1953
+ for (D = 0; D < g; D++)
1954
+ for (e = 0; e < s[D].length; e++) f(l, s[D][e], !0);
1955
+ p.writePackedSVarint(3, l);
1956
+ }
1957
+ function f(s, p, g) {
1958
+ var D, e, i = p.length - (g ? 1 : 0), l = new Array(o);
1959
+ for (e = 0; e < o; e++) l[e] = 0;
1960
+ for (D = 0; D < i; D++)
1961
+ for (e = 0; e < o; e++) {
1962
+ var w = Math.round(p[D][e] * u) - l[e];
1963
+ s.push(w), l[e] += w;
2077
1964
  }
2078
1965
  }
2079
- function g(s, m) {
1966
+ function _(s, p) {
2080
1967
  if (s === "type") return !0;
2081
- if (m === "FeatureCollection") {
1968
+ if (p === "FeatureCollection") {
2082
1969
  if (s === "features") return !0;
2083
- } else if (m === "Feature") {
1970
+ } else if (p === "Feature") {
2084
1971
  if (s === "id" || s === "properties" || s === "geometry") return !0;
2085
- } else if (m === "GeometryCollection") {
1972
+ } else if (p === "GeometryCollection") {
2086
1973
  if (s === "geometries") return !0;
2087
1974
  } else if (s === "coordinates") return !0;
2088
1975
  return !1;
2089
1976
  }
2090
- return lt;
1977
+ return it;
2091
1978
  }
2092
- var ut, dn;
2093
- function vi() {
2094
- if (dn) return ut;
2095
- dn = 1, ut = y;
2096
- var e, n, a, i, l, d = [
1979
+ var ot, cn;
1980
+ function li() {
1981
+ if (cn) return ot;
1982
+ cn = 1, ot = y;
1983
+ var t, n, a, o, u, d = [
2097
1984
  "Point",
2098
1985
  "MultiPoint",
2099
1986
  "LineString",
@@ -2102,522 +1989,644 @@ function vi() {
2102
1989
  "MultiPolygon",
2103
1990
  "GeometryCollection"
2104
1991
  ];
2105
- function y(p) {
2106
- i = 2, l = Math.pow(10, 6), a = null, e = [], n = [];
2107
- var g = p.readFields(w, {});
2108
- return e = null, g;
1992
+ function y(f) {
1993
+ o = 2, u = Math.pow(10, 6), a = null, t = [], n = [];
1994
+ var _ = f.readFields(h, {});
1995
+ return t = null, _;
2109
1996
  }
2110
- function w(p, g, s) {
2111
- p === 1 ? e.push(s.readString()) : p === 2 ? i = s.readVarint() : p === 3 ? l = Math.pow(10, s.readVarint()) : p === 4 ? S(s, g) : p === 5 ? D(s, g) : p === 6 && h(s, g);
1997
+ function h(f, _, s) {
1998
+ f === 1 ? t.push(s.readString()) : f === 2 ? o = s.readVarint() : f === 3 ? u = Math.pow(10, s.readVarint()) : f === 4 ? T(s, _) : f === 5 ? N(s, _) : f === 6 && S(s, _);
2112
1999
  }
2113
- function S(p, g) {
2114
- return g.type = "FeatureCollection", g.features = [], p.readMessage(E, g);
2000
+ function T(f, _) {
2001
+ return _.type = "FeatureCollection", _.features = [], f.readMessage(E, _);
2115
2002
  }
2116
- function D(p, g) {
2117
- g.type = "Feature";
2118
- var s = p.readMessage(L, g);
2003
+ function N(f, _) {
2004
+ _.type = "Feature";
2005
+ var s = f.readMessage(F, _);
2119
2006
  return "geometry" in s || (s.geometry = null), s;
2120
2007
  }
2121
- function h(p, g) {
2122
- return g.type = "Point", p.readMessage(R, g);
2008
+ function S(f, _) {
2009
+ return _.type = "Point", f.readMessage(O, _);
2123
2010
  }
2124
- function E(p, g, s) {
2125
- p === 1 ? g.features.push(D(s, {})) : p === 13 ? n.push(O(s)) : p === 15 && C(s, g);
2011
+ function E(f, _, s) {
2012
+ f === 1 ? _.features.push(N(s, {})) : f === 13 ? n.push(P(s)) : f === 15 && L(s, _);
2126
2013
  }
2127
- function L(p, g, s) {
2128
- p === 1 ? g.geometry = h(s, {}) : p === 11 ? g.id = s.readString() : p === 12 ? g.id = s.readSVarint() : p === 13 ? n.push(O(s)) : p === 14 ? g.properties = C(s, {}) : p === 15 && C(s, g);
2014
+ function F(f, _, s) {
2015
+ f === 1 ? _.geometry = S(s, {}) : f === 11 ? _.id = s.readString() : f === 12 ? _.id = s.readSVarint() : f === 13 ? n.push(P(s)) : f === 14 ? _.properties = L(s, {}) : f === 15 && L(s, _);
2129
2016
  }
2130
- function R(p, g, s) {
2131
- p === 1 ? g.type = d[s.readVarint()] : p === 2 ? a = s.readPackedVarint() : p === 3 ? P(g, s, g.type) : p === 4 ? (g.geometries = g.geometries || [], g.geometries.push(h(s, {}))) : p === 13 ? n.push(O(s)) : p === 15 && C(s, g);
2017
+ function O(f, _, s) {
2018
+ f === 1 ? _.type = d[s.readVarint()] : f === 2 ? a = s.readPackedVarint() : f === 3 ? C(_, s, _.type) : f === 4 ? (_.geometries = _.geometries || [], _.geometries.push(S(s, {}))) : f === 13 ? n.push(P(s)) : f === 15 && L(s, _);
2132
2019
  }
2133
- function P(p, g, s) {
2134
- s === "Point" ? p.coordinates = V(g) : s === "MultiPoint" || s === "LineString" ? p.coordinates = z(g) : s === "MultiLineString" ? p.coordinates = I(g) : s === "Polygon" ? p.coordinates = I(g, !0) : s === "MultiPolygon" && (p.coordinates = q(g));
2020
+ function C(f, _, s) {
2021
+ s === "Point" ? f.coordinates = A(_) : s === "MultiPoint" || s === "LineString" ? f.coordinates = U(_) : s === "MultiLineString" ? f.coordinates = z(_) : s === "Polygon" ? f.coordinates = z(_, !0) : s === "MultiPolygon" && (f.coordinates = b(_));
2135
2022
  }
2136
- function O(p) {
2137
- for (var g = p.readVarint() + p.pos, s = null; p.pos < g; ) {
2138
- var m = p.readVarint(), _ = m >> 3;
2139
- _ === 1 ? s = p.readString() : _ === 2 ? s = p.readDouble() : _ === 3 ? s = p.readVarint() : _ === 4 ? s = -p.readVarint() : _ === 5 ? s = p.readBoolean() : _ === 6 && (s = JSON.parse(p.readString()));
2023
+ function P(f) {
2024
+ for (var _ = f.readVarint() + f.pos, s = null; f.pos < _; ) {
2025
+ var p = f.readVarint(), g = p >> 3;
2026
+ g === 1 ? s = f.readString() : g === 2 ? s = f.readDouble() : g === 3 ? s = f.readVarint() : g === 4 ? s = -f.readVarint() : g === 5 ? s = f.readBoolean() : g === 6 && (s = JSON.parse(f.readString()));
2140
2027
  }
2141
2028
  return s;
2142
2029
  }
2143
- function C(p, g) {
2144
- for (var s = p.readVarint() + p.pos; p.pos < s; ) g[e[p.readVarint()]] = n[p.readVarint()];
2145
- return n = [], g;
2030
+ function L(f, _) {
2031
+ for (var s = f.readVarint() + f.pos; f.pos < s; ) _[t[f.readVarint()]] = n[f.readVarint()];
2032
+ return n = [], _;
2146
2033
  }
2147
- function V(p) {
2148
- for (var g = p.readVarint() + p.pos, s = []; p.pos < g; ) s.push(p.readSVarint() / l);
2034
+ function A(f) {
2035
+ for (var _ = f.readVarint() + f.pos, s = []; f.pos < _; ) s.push(f.readSVarint() / u);
2149
2036
  return s;
2150
2037
  }
2151
- function U(p, g, s, m) {
2152
- var _ = 0, x = [], t, o, u = [];
2153
- for (o = 0; o < i; o++) u[o] = 0;
2154
- for (; s ? _ < s : p.pos < g; ) {
2155
- for (t = [], o = 0; o < i; o++)
2156
- u[o] += p.readSVarint(), t[o] = u[o] / l;
2157
- x.push(t), _++;
2038
+ function I(f, _, s, p) {
2039
+ var g = 0, D = [], e, i, l = [];
2040
+ for (i = 0; i < o; i++) l[i] = 0;
2041
+ for (; s ? g < s : f.pos < _; ) {
2042
+ for (e = [], i = 0; i < o; i++)
2043
+ l[i] += f.readSVarint(), e[i] = l[i] / u;
2044
+ D.push(e), g++;
2158
2045
  }
2159
- return m && x.push(x[0]), x;
2046
+ return p && D.push(D[0]), D;
2160
2047
  }
2161
- function z(p) {
2162
- return U(p, p.readVarint() + p.pos);
2048
+ function U(f) {
2049
+ return I(f, f.readVarint() + f.pos);
2163
2050
  }
2164
- function I(p, g) {
2165
- var s = p.readVarint() + p.pos;
2166
- if (!a) return [U(p, s, null, g)];
2167
- for (var m = [], _ = 0; _ < a.length; _++) m.push(U(p, s, a[_], g));
2168
- return a = null, m;
2051
+ function z(f, _) {
2052
+ var s = f.readVarint() + f.pos;
2053
+ if (!a) return [I(f, s, null, _)];
2054
+ for (var p = [], g = 0; g < a.length; g++) p.push(I(f, s, a[g], _));
2055
+ return a = null, p;
2169
2056
  }
2170
- function q(p) {
2171
- var g = p.readVarint() + p.pos;
2172
- if (!a) return [[U(p, g, null, !0)]];
2173
- for (var s = [], m = 1, _ = 0; _ < a[0]; _++) {
2174
- for (var x = [], t = 0; t < a[m]; t++) x.push(U(p, g, a[m + 1 + t], !0));
2175
- m += a[m] + 1, s.push(x);
2057
+ function b(f) {
2058
+ var _ = f.readVarint() + f.pos;
2059
+ if (!a) return [[I(f, _, null, !0)]];
2060
+ for (var s = [], p = 1, g = 0; g < a[0]; g++) {
2061
+ for (var D = [], e = 0; e < a[p]; e++) D.push(I(f, _, a[p + 1 + e], !0));
2062
+ p += a[p] + 1, s.push(D);
2176
2063
  }
2177
2064
  return a = null, s;
2178
2065
  }
2179
- return ut;
2066
+ return ot;
2180
2067
  }
2068
+ var dn;
2069
+ function ui() {
2070
+ return dn || (dn = 1, Oe.encode = si(), Oe.decode = li()), Oe;
2071
+ }
2072
+ var ci = ui(), Ie = {};
2181
2073
  var mn;
2182
- function xi() {
2183
- return mn || (mn = 1, Ie.encode = wi(), Ie.decode = vi()), Ie;
2184
- }
2185
- var Fi = xi(), Ce = {};
2186
- var fn;
2187
- function Mi() {
2188
- return fn || (fn = 1, Ce.read = function(e, n, a, i, l) {
2189
- var d, y, w = l * 8 - i - 1, S = (1 << w) - 1, D = S >> 1, h = -7, E = a ? l - 1 : 0, L = a ? -1 : 1, R = e[n + E];
2190
- for (E += L, d = R & (1 << -h) - 1, R >>= -h, h += w; h > 0; d = d * 256 + e[n + E], E += L, h -= 8)
2074
+ function di() {
2075
+ return mn || (mn = 1, Ie.read = function(t, n, a, o, u) {
2076
+ var d, y, h = u * 8 - o - 1, T = (1 << h) - 1, N = T >> 1, S = -7, E = a ? u - 1 : 0, F = a ? -1 : 1, O = t[n + E];
2077
+ for (E += F, d = O & (1 << -S) - 1, O >>= -S, S += h; S > 0; d = d * 256 + t[n + E], E += F, S -= 8)
2191
2078
  ;
2192
- for (y = d & (1 << -h) - 1, d >>= -h, h += i; h > 0; y = y * 256 + e[n + E], E += L, h -= 8)
2079
+ for (y = d & (1 << -S) - 1, d >>= -S, S += o; S > 0; y = y * 256 + t[n + E], E += F, S -= 8)
2193
2080
  ;
2194
2081
  if (d === 0)
2195
- d = 1 - D;
2082
+ d = 1 - N;
2196
2083
  else {
2197
- if (d === S)
2198
- return y ? NaN : (R ? -1 : 1) * (1 / 0);
2199
- y = y + Math.pow(2, i), d = d - D;
2200
- }
2201
- return (R ? -1 : 1) * y * Math.pow(2, d - i);
2202
- }, Ce.write = function(e, n, a, i, l, d) {
2203
- var y, w, S, D = d * 8 - l - 1, h = (1 << D) - 1, E = h >> 1, L = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, R = i ? 0 : d - 1, P = i ? 1 : -1, O = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
2204
- for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (w = isNaN(n) ? 1 : 0, y = h) : (y = Math.floor(Math.log(n) / Math.LN2), n * (S = Math.pow(2, -y)) < 1 && (y--, S *= 2), y + E >= 1 ? n += L / S : n += L * Math.pow(2, 1 - E), n * S >= 2 && (y++, S /= 2), y + E >= h ? (w = 0, y = h) : y + E >= 1 ? (w = (n * S - 1) * Math.pow(2, l), y = y + E) : (w = n * Math.pow(2, E - 1) * Math.pow(2, l), y = 0)); l >= 8; e[a + R] = w & 255, R += P, w /= 256, l -= 8)
2084
+ if (d === T)
2085
+ return y ? NaN : (O ? -1 : 1) * (1 / 0);
2086
+ y = y + Math.pow(2, o), d = d - N;
2087
+ }
2088
+ return (O ? -1 : 1) * y * Math.pow(2, d - o);
2089
+ }, Ie.write = function(t, n, a, o, u, d) {
2090
+ var y, h, T, N = d * 8 - u - 1, S = (1 << N) - 1, E = S >> 1, F = u === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, O = o ? 0 : d - 1, C = o ? 1 : -1, P = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
2091
+ for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (h = isNaN(n) ? 1 : 0, y = S) : (y = Math.floor(Math.log(n) / Math.LN2), n * (T = Math.pow(2, -y)) < 1 && (y--, T *= 2), y + E >= 1 ? n += F / T : n += F * Math.pow(2, 1 - E), n * T >= 2 && (y++, T /= 2), y + E >= S ? (h = 0, y = S) : y + E >= 1 ? (h = (n * T - 1) * Math.pow(2, u), y = y + E) : (h = n * Math.pow(2, E - 1) * Math.pow(2, u), y = 0)); u >= 8; t[a + O] = h & 255, O += C, h /= 256, u -= 8)
2205
2092
  ;
2206
- for (y = y << l | w, D += l; D > 0; e[a + R] = y & 255, R += P, y /= 256, D -= 8)
2093
+ for (y = y << u | h, N += u; N > 0; t[a + O] = y & 255, O += C, y /= 256, N -= 8)
2207
2094
  ;
2208
- e[a + R - P] |= O * 128;
2209
- }), Ce;
2095
+ t[a + O - C] |= P * 128;
2096
+ }), Ie;
2210
2097
  }
2211
- var ct, pn;
2212
- function Ti() {
2213
- if (pn) return ct;
2214
- pn = 1, ct = n;
2215
- var e = Mi();
2216
- function n(t) {
2217
- this.buf = ArrayBuffer.isView && ArrayBuffer.isView(t) ? t : new Uint8Array(t || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
2098
+ var st, fn;
2099
+ function mi() {
2100
+ if (fn) return st;
2101
+ fn = 1, st = n;
2102
+ var t = di();
2103
+ function n(e) {
2104
+ this.buf = ArrayBuffer.isView && ArrayBuffer.isView(e) ? e : new Uint8Array(e || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
2218
2105
  }
2219
2106
  n.Varint = 0, n.Fixed64 = 1, n.Bytes = 2, n.Fixed32 = 5;
2220
- var a = 65536 * 65536, i = 1 / a, l = 12, d = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
2107
+ var a = 65536 * 65536, o = 1 / a, u = 12, d = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
2221
2108
  n.prototype = {
2222
2109
  destroy: function() {
2223
2110
  this.buf = null;
2224
2111
  },
2225
2112
  // === READING =================================================================
2226
- readFields: function(t, o, u) {
2227
- for (u = u || this.length; this.pos < u; ) {
2228
- var F = this.readVarint(), T = F >> 3, N = this.pos;
2229
- this.type = F & 7, t(T, o, this), this.pos === N && this.skip(F);
2113
+ readFields: function(e, i, l) {
2114
+ for (l = l || this.length; this.pos < l; ) {
2115
+ var w = this.readVarint(), x = w >> 3, k = this.pos;
2116
+ this.type = w & 7, e(x, i, this), this.pos === k && this.skip(w);
2230
2117
  }
2231
- return o;
2118
+ return i;
2232
2119
  },
2233
- readMessage: function(t, o) {
2234
- return this.readFields(t, o, this.readVarint() + this.pos);
2120
+ readMessage: function(e, i) {
2121
+ return this.readFields(e, i, this.readVarint() + this.pos);
2235
2122
  },
2236
2123
  readFixed32: function() {
2237
- var t = p(this.buf, this.pos);
2238
- return this.pos += 4, t;
2124
+ var e = f(this.buf, this.pos);
2125
+ return this.pos += 4, e;
2239
2126
  },
2240
2127
  readSFixed32: function() {
2241
- var t = s(this.buf, this.pos);
2242
- return this.pos += 4, t;
2128
+ var e = s(this.buf, this.pos);
2129
+ return this.pos += 4, e;
2243
2130
  },
2244
2131
  // 64-bit int handling is based on github.com/dpw/node-buffer-more-ints (MIT-licensed)
2245
2132
  readFixed64: function() {
2246
- var t = p(this.buf, this.pos) + p(this.buf, this.pos + 4) * a;
2247
- return this.pos += 8, t;
2133
+ var e = f(this.buf, this.pos) + f(this.buf, this.pos + 4) * a;
2134
+ return this.pos += 8, e;
2248
2135
  },
2249
2136
  readSFixed64: function() {
2250
- var t = p(this.buf, this.pos) + s(this.buf, this.pos + 4) * a;
2251
- return this.pos += 8, t;
2137
+ var e = f(this.buf, this.pos) + s(this.buf, this.pos + 4) * a;
2138
+ return this.pos += 8, e;
2252
2139
  },
2253
2140
  readFloat: function() {
2254
- var t = e.read(this.buf, this.pos, !0, 23, 4);
2255
- return this.pos += 4, t;
2141
+ var e = t.read(this.buf, this.pos, !0, 23, 4);
2142
+ return this.pos += 4, e;
2256
2143
  },
2257
2144
  readDouble: function() {
2258
- var t = e.read(this.buf, this.pos, !0, 52, 8);
2259
- return this.pos += 8, t;
2145
+ var e = t.read(this.buf, this.pos, !0, 52, 8);
2146
+ return this.pos += 8, e;
2260
2147
  },
2261
- readVarint: function(t) {
2262
- var o = this.buf, u, F;
2263
- return F = o[this.pos++], u = F & 127, F < 128 || (F = o[this.pos++], u |= (F & 127) << 7, F < 128) || (F = o[this.pos++], u |= (F & 127) << 14, F < 128) || (F = o[this.pos++], u |= (F & 127) << 21, F < 128) ? u : (F = o[this.pos], u |= (F & 15) << 28, y(u, t, this));
2148
+ readVarint: function(e) {
2149
+ var i = this.buf, l, w;
2150
+ return w = i[this.pos++], l = w & 127, w < 128 || (w = i[this.pos++], l |= (w & 127) << 7, w < 128) || (w = i[this.pos++], l |= (w & 127) << 14, w < 128) || (w = i[this.pos++], l |= (w & 127) << 21, w < 128) ? l : (w = i[this.pos], l |= (w & 15) << 28, y(l, e, this));
2264
2151
  },
2265
2152
  readVarint64: function() {
2266
2153
  return this.readVarint(!0);
2267
2154
  },
2268
2155
  readSVarint: function() {
2269
- var t = this.readVarint();
2270
- return t % 2 === 1 ? (t + 1) / -2 : t / 2;
2156
+ var e = this.readVarint();
2157
+ return e % 2 === 1 ? (e + 1) / -2 : e / 2;
2271
2158
  },
2272
2159
  readBoolean: function() {
2273
2160
  return !!this.readVarint();
2274
2161
  },
2275
2162
  readString: function() {
2276
- var t = this.readVarint() + this.pos, o = this.pos;
2277
- return this.pos = t, t - o >= l && d ? _(this.buf, o, t) : m(this.buf, o, t);
2163
+ var e = this.readVarint() + this.pos, i = this.pos;
2164
+ return this.pos = e, e - i >= u && d ? g(this.buf, i, e) : p(this.buf, i, e);
2278
2165
  },
2279
2166
  readBytes: function() {
2280
- var t = this.readVarint() + this.pos, o = this.buf.subarray(this.pos, t);
2281
- return this.pos = t, o;
2167
+ var e = this.readVarint() + this.pos, i = this.buf.subarray(this.pos, e);
2168
+ return this.pos = e, i;
2282
2169
  },
2283
2170
  // verbose for performance reasons; doesn't affect gzipped size
2284
- readPackedVarint: function(t, o) {
2285
- if (this.type !== n.Bytes) return t.push(this.readVarint(o));
2286
- var u = w(this);
2287
- for (t = t || []; this.pos < u; ) t.push(this.readVarint(o));
2288
- return t;
2171
+ readPackedVarint: function(e, i) {
2172
+ if (this.type !== n.Bytes) return e.push(this.readVarint(i));
2173
+ var l = h(this);
2174
+ for (e = e || []; this.pos < l; ) e.push(this.readVarint(i));
2175
+ return e;
2289
2176
  },
2290
- readPackedSVarint: function(t) {
2291
- if (this.type !== n.Bytes) return t.push(this.readSVarint());
2292
- var o = w(this);
2293
- for (t = t || []; this.pos < o; ) t.push(this.readSVarint());
2294
- return t;
2177
+ readPackedSVarint: function(e) {
2178
+ if (this.type !== n.Bytes) return e.push(this.readSVarint());
2179
+ var i = h(this);
2180
+ for (e = e || []; this.pos < i; ) e.push(this.readSVarint());
2181
+ return e;
2295
2182
  },
2296
- readPackedBoolean: function(t) {
2297
- if (this.type !== n.Bytes) return t.push(this.readBoolean());
2298
- var o = w(this);
2299
- for (t = t || []; this.pos < o; ) t.push(this.readBoolean());
2300
- return t;
2183
+ readPackedBoolean: function(e) {
2184
+ if (this.type !== n.Bytes) return e.push(this.readBoolean());
2185
+ var i = h(this);
2186
+ for (e = e || []; this.pos < i; ) e.push(this.readBoolean());
2187
+ return e;
2301
2188
  },
2302
- readPackedFloat: function(t) {
2303
- if (this.type !== n.Bytes) return t.push(this.readFloat());
2304
- var o = w(this);
2305
- for (t = t || []; this.pos < o; ) t.push(this.readFloat());
2306
- return t;
2189
+ readPackedFloat: function(e) {
2190
+ if (this.type !== n.Bytes) return e.push(this.readFloat());
2191
+ var i = h(this);
2192
+ for (e = e || []; this.pos < i; ) e.push(this.readFloat());
2193
+ return e;
2307
2194
  },
2308
- readPackedDouble: function(t) {
2309
- if (this.type !== n.Bytes) return t.push(this.readDouble());
2310
- var o = w(this);
2311
- for (t = t || []; this.pos < o; ) t.push(this.readDouble());
2312
- return t;
2195
+ readPackedDouble: function(e) {
2196
+ if (this.type !== n.Bytes) return e.push(this.readDouble());
2197
+ var i = h(this);
2198
+ for (e = e || []; this.pos < i; ) e.push(this.readDouble());
2199
+ return e;
2313
2200
  },
2314
- readPackedFixed32: function(t) {
2315
- if (this.type !== n.Bytes) return t.push(this.readFixed32());
2316
- var o = w(this);
2317
- for (t = t || []; this.pos < o; ) t.push(this.readFixed32());
2318
- return t;
2201
+ readPackedFixed32: function(e) {
2202
+ if (this.type !== n.Bytes) return e.push(this.readFixed32());
2203
+ var i = h(this);
2204
+ for (e = e || []; this.pos < i; ) e.push(this.readFixed32());
2205
+ return e;
2319
2206
  },
2320
- readPackedSFixed32: function(t) {
2321
- if (this.type !== n.Bytes) return t.push(this.readSFixed32());
2322
- var o = w(this);
2323
- for (t = t || []; this.pos < o; ) t.push(this.readSFixed32());
2324
- return t;
2207
+ readPackedSFixed32: function(e) {
2208
+ if (this.type !== n.Bytes) return e.push(this.readSFixed32());
2209
+ var i = h(this);
2210
+ for (e = e || []; this.pos < i; ) e.push(this.readSFixed32());
2211
+ return e;
2325
2212
  },
2326
- readPackedFixed64: function(t) {
2327
- if (this.type !== n.Bytes) return t.push(this.readFixed64());
2328
- var o = w(this);
2329
- for (t = t || []; this.pos < o; ) t.push(this.readFixed64());
2330
- return t;
2213
+ readPackedFixed64: function(e) {
2214
+ if (this.type !== n.Bytes) return e.push(this.readFixed64());
2215
+ var i = h(this);
2216
+ for (e = e || []; this.pos < i; ) e.push(this.readFixed64());
2217
+ return e;
2331
2218
  },
2332
- readPackedSFixed64: function(t) {
2333
- if (this.type !== n.Bytes) return t.push(this.readSFixed64());
2334
- var o = w(this);
2335
- for (t = t || []; this.pos < o; ) t.push(this.readSFixed64());
2336
- return t;
2219
+ readPackedSFixed64: function(e) {
2220
+ if (this.type !== n.Bytes) return e.push(this.readSFixed64());
2221
+ var i = h(this);
2222
+ for (e = e || []; this.pos < i; ) e.push(this.readSFixed64());
2223
+ return e;
2337
2224
  },
2338
- skip: function(t) {
2339
- var o = t & 7;
2340
- if (o === n.Varint) for (; this.buf[this.pos++] > 127; )
2225
+ skip: function(e) {
2226
+ var i = e & 7;
2227
+ if (i === n.Varint) for (; this.buf[this.pos++] > 127; )
2341
2228
  ;
2342
- else if (o === n.Bytes) this.pos = this.readVarint() + this.pos;
2343
- else if (o === n.Fixed32) this.pos += 4;
2344
- else if (o === n.Fixed64) this.pos += 8;
2345
- else throw new Error("Unimplemented type: " + o);
2229
+ else if (i === n.Bytes) this.pos = this.readVarint() + this.pos;
2230
+ else if (i === n.Fixed32) this.pos += 4;
2231
+ else if (i === n.Fixed64) this.pos += 8;
2232
+ else throw new Error("Unimplemented type: " + i);
2346
2233
  },
2347
2234
  // === WRITING =================================================================
2348
- writeTag: function(t, o) {
2349
- this.writeVarint(t << 3 | o);
2235
+ writeTag: function(e, i) {
2236
+ this.writeVarint(e << 3 | i);
2350
2237
  },
2351
- realloc: function(t) {
2352
- for (var o = this.length || 16; o < this.pos + t; ) o *= 2;
2353
- if (o !== this.length) {
2354
- var u = new Uint8Array(o);
2355
- u.set(this.buf), this.buf = u, this.length = o;
2238
+ realloc: function(e) {
2239
+ for (var i = this.length || 16; i < this.pos + e; ) i *= 2;
2240
+ if (i !== this.length) {
2241
+ var l = new Uint8Array(i);
2242
+ l.set(this.buf), this.buf = l, this.length = i;
2356
2243
  }
2357
2244
  },
2358
2245
  finish: function() {
2359
2246
  return this.length = this.pos, this.pos = 0, this.buf.subarray(0, this.length);
2360
2247
  },
2361
- writeFixed32: function(t) {
2362
- this.realloc(4), g(this.buf, t, this.pos), this.pos += 4;
2248
+ writeFixed32: function(e) {
2249
+ this.realloc(4), _(this.buf, e, this.pos), this.pos += 4;
2363
2250
  },
2364
- writeSFixed32: function(t) {
2365
- this.realloc(4), g(this.buf, t, this.pos), this.pos += 4;
2251
+ writeSFixed32: function(e) {
2252
+ this.realloc(4), _(this.buf, e, this.pos), this.pos += 4;
2366
2253
  },
2367
- writeFixed64: function(t) {
2368
- this.realloc(8), g(this.buf, t & -1, this.pos), g(this.buf, Math.floor(t * i), this.pos + 4), this.pos += 8;
2254
+ writeFixed64: function(e) {
2255
+ this.realloc(8), _(this.buf, e & -1, this.pos), _(this.buf, Math.floor(e * o), this.pos + 4), this.pos += 8;
2369
2256
  },
2370
- writeSFixed64: function(t) {
2371
- this.realloc(8), g(this.buf, t & -1, this.pos), g(this.buf, Math.floor(t * i), this.pos + 4), this.pos += 8;
2257
+ writeSFixed64: function(e) {
2258
+ this.realloc(8), _(this.buf, e & -1, this.pos), _(this.buf, Math.floor(e * o), this.pos + 4), this.pos += 8;
2372
2259
  },
2373
- writeVarint: function(t) {
2374
- if (t = +t || 0, t > 268435455 || t < 0) {
2375
- D(t, this);
2260
+ writeVarint: function(e) {
2261
+ if (e = +e || 0, e > 268435455 || e < 0) {
2262
+ N(e, this);
2376
2263
  return;
2377
2264
  }
2378
- this.realloc(4), this.buf[this.pos++] = t & 127 | (t > 127 ? 128 : 0), !(t <= 127) && (this.buf[this.pos++] = (t >>>= 7) & 127 | (t > 127 ? 128 : 0), !(t <= 127) && (this.buf[this.pos++] = (t >>>= 7) & 127 | (t > 127 ? 128 : 0), !(t <= 127) && (this.buf[this.pos++] = t >>> 7 & 127)));
2265
+ 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)));
2379
2266
  },
2380
- writeSVarint: function(t) {
2381
- this.writeVarint(t < 0 ? -t * 2 - 1 : t * 2);
2267
+ writeSVarint: function(e) {
2268
+ this.writeVarint(e < 0 ? -e * 2 - 1 : e * 2);
2382
2269
  },
2383
- writeBoolean: function(t) {
2384
- this.writeVarint(!!t);
2270
+ writeBoolean: function(e) {
2271
+ this.writeVarint(!!e);
2385
2272
  },
2386
- writeString: function(t) {
2387
- t = String(t), this.realloc(t.length * 4), this.pos++;
2388
- var o = this.pos;
2389
- this.pos = x(this.buf, t, this.pos);
2390
- var u = this.pos - o;
2391
- u >= 128 && L(o, u, this), this.pos = o - 1, this.writeVarint(u), this.pos += u;
2273
+ writeString: function(e) {
2274
+ e = String(e), this.realloc(e.length * 4), this.pos++;
2275
+ var i = this.pos;
2276
+ this.pos = D(this.buf, e, this.pos);
2277
+ var l = this.pos - i;
2278
+ l >= 128 && F(i, l, this), this.pos = i - 1, this.writeVarint(l), this.pos += l;
2392
2279
  },
2393
- writeFloat: function(t) {
2394
- this.realloc(4), e.write(this.buf, t, this.pos, !0, 23, 4), this.pos += 4;
2280
+ writeFloat: function(e) {
2281
+ this.realloc(4), t.write(this.buf, e, this.pos, !0, 23, 4), this.pos += 4;
2395
2282
  },
2396
- writeDouble: function(t) {
2397
- this.realloc(8), e.write(this.buf, t, this.pos, !0, 52, 8), this.pos += 8;
2283
+ writeDouble: function(e) {
2284
+ this.realloc(8), t.write(this.buf, e, this.pos, !0, 52, 8), this.pos += 8;
2398
2285
  },
2399
- writeBytes: function(t) {
2400
- var o = t.length;
2401
- this.writeVarint(o), this.realloc(o);
2402
- for (var u = 0; u < o; u++) this.buf[this.pos++] = t[u];
2286
+ writeBytes: function(e) {
2287
+ var i = e.length;
2288
+ this.writeVarint(i), this.realloc(i);
2289
+ for (var l = 0; l < i; l++) this.buf[this.pos++] = e[l];
2403
2290
  },
2404
- writeRawMessage: function(t, o) {
2291
+ writeRawMessage: function(e, i) {
2405
2292
  this.pos++;
2406
- var u = this.pos;
2407
- t(o, this);
2408
- var F = this.pos - u;
2409
- F >= 128 && L(u, F, this), this.pos = u - 1, this.writeVarint(F), this.pos += F;
2293
+ var l = this.pos;
2294
+ e(i, this);
2295
+ var w = this.pos - l;
2296
+ w >= 128 && F(l, w, this), this.pos = l - 1, this.writeVarint(w), this.pos += w;
2410
2297
  },
2411
- writeMessage: function(t, o, u) {
2412
- this.writeTag(t, n.Bytes), this.writeRawMessage(o, u);
2298
+ writeMessage: function(e, i, l) {
2299
+ this.writeTag(e, n.Bytes), this.writeRawMessage(i, l);
2413
2300
  },
2414
- writePackedVarint: function(t, o) {
2415
- o.length && this.writeMessage(t, R, o);
2301
+ writePackedVarint: function(e, i) {
2302
+ i.length && this.writeMessage(e, O, i);
2416
2303
  },
2417
- writePackedSVarint: function(t, o) {
2418
- o.length && this.writeMessage(t, P, o);
2304
+ writePackedSVarint: function(e, i) {
2305
+ i.length && this.writeMessage(e, C, i);
2419
2306
  },
2420
- writePackedBoolean: function(t, o) {
2421
- o.length && this.writeMessage(t, V, o);
2307
+ writePackedBoolean: function(e, i) {
2308
+ i.length && this.writeMessage(e, A, i);
2422
2309
  },
2423
- writePackedFloat: function(t, o) {
2424
- o.length && this.writeMessage(t, O, o);
2310
+ writePackedFloat: function(e, i) {
2311
+ i.length && this.writeMessage(e, P, i);
2425
2312
  },
2426
- writePackedDouble: function(t, o) {
2427
- o.length && this.writeMessage(t, C, o);
2313
+ writePackedDouble: function(e, i) {
2314
+ i.length && this.writeMessage(e, L, i);
2428
2315
  },
2429
- writePackedFixed32: function(t, o) {
2430
- o.length && this.writeMessage(t, U, o);
2316
+ writePackedFixed32: function(e, i) {
2317
+ i.length && this.writeMessage(e, I, i);
2431
2318
  },
2432
- writePackedSFixed32: function(t, o) {
2433
- o.length && this.writeMessage(t, z, o);
2319
+ writePackedSFixed32: function(e, i) {
2320
+ i.length && this.writeMessage(e, U, i);
2434
2321
  },
2435
- writePackedFixed64: function(t, o) {
2436
- o.length && this.writeMessage(t, I, o);
2322
+ writePackedFixed64: function(e, i) {
2323
+ i.length && this.writeMessage(e, z, i);
2437
2324
  },
2438
- writePackedSFixed64: function(t, o) {
2439
- o.length && this.writeMessage(t, q, o);
2325
+ writePackedSFixed64: function(e, i) {
2326
+ i.length && this.writeMessage(e, b, i);
2440
2327
  },
2441
- writeBytesField: function(t, o) {
2442
- this.writeTag(t, n.Bytes), this.writeBytes(o);
2328
+ writeBytesField: function(e, i) {
2329
+ this.writeTag(e, n.Bytes), this.writeBytes(i);
2443
2330
  },
2444
- writeFixed32Field: function(t, o) {
2445
- this.writeTag(t, n.Fixed32), this.writeFixed32(o);
2331
+ writeFixed32Field: function(e, i) {
2332
+ this.writeTag(e, n.Fixed32), this.writeFixed32(i);
2446
2333
  },
2447
- writeSFixed32Field: function(t, o) {
2448
- this.writeTag(t, n.Fixed32), this.writeSFixed32(o);
2334
+ writeSFixed32Field: function(e, i) {
2335
+ this.writeTag(e, n.Fixed32), this.writeSFixed32(i);
2449
2336
  },
2450
- writeFixed64Field: function(t, o) {
2451
- this.writeTag(t, n.Fixed64), this.writeFixed64(o);
2337
+ writeFixed64Field: function(e, i) {
2338
+ this.writeTag(e, n.Fixed64), this.writeFixed64(i);
2452
2339
  },
2453
- writeSFixed64Field: function(t, o) {
2454
- this.writeTag(t, n.Fixed64), this.writeSFixed64(o);
2340
+ writeSFixed64Field: function(e, i) {
2341
+ this.writeTag(e, n.Fixed64), this.writeSFixed64(i);
2455
2342
  },
2456
- writeVarintField: function(t, o) {
2457
- this.writeTag(t, n.Varint), this.writeVarint(o);
2343
+ writeVarintField: function(e, i) {
2344
+ this.writeTag(e, n.Varint), this.writeVarint(i);
2458
2345
  },
2459
- writeSVarintField: function(t, o) {
2460
- this.writeTag(t, n.Varint), this.writeSVarint(o);
2346
+ writeSVarintField: function(e, i) {
2347
+ this.writeTag(e, n.Varint), this.writeSVarint(i);
2461
2348
  },
2462
- writeStringField: function(t, o) {
2463
- this.writeTag(t, n.Bytes), this.writeString(o);
2349
+ writeStringField: function(e, i) {
2350
+ this.writeTag(e, n.Bytes), this.writeString(i);
2464
2351
  },
2465
- writeFloatField: function(t, o) {
2466
- this.writeTag(t, n.Fixed32), this.writeFloat(o);
2352
+ writeFloatField: function(e, i) {
2353
+ this.writeTag(e, n.Fixed32), this.writeFloat(i);
2467
2354
  },
2468
- writeDoubleField: function(t, o) {
2469
- this.writeTag(t, n.Fixed64), this.writeDouble(o);
2355
+ writeDoubleField: function(e, i) {
2356
+ this.writeTag(e, n.Fixed64), this.writeDouble(i);
2470
2357
  },
2471
- writeBooleanField: function(t, o) {
2472
- this.writeVarintField(t, !!o);
2358
+ writeBooleanField: function(e, i) {
2359
+ this.writeVarintField(e, !!i);
2473
2360
  }
2474
2361
  };
2475
- function y(t, o, u) {
2476
- var F = u.buf, T, N;
2477
- if (N = F[u.pos++], T = (N & 112) >> 4, N < 128 || (N = F[u.pos++], T |= (N & 127) << 3, N < 128) || (N = F[u.pos++], T |= (N & 127) << 10, N < 128) || (N = F[u.pos++], T |= (N & 127) << 17, N < 128) || (N = F[u.pos++], T |= (N & 127) << 24, N < 128) || (N = F[u.pos++], T |= (N & 1) << 31, N < 128)) return S(t, T, o);
2362
+ function y(e, i, l) {
2363
+ var w = l.buf, x, k;
2364
+ if (k = w[l.pos++], x = (k & 112) >> 4, k < 128 || (k = w[l.pos++], x |= (k & 127) << 3, k < 128) || (k = w[l.pos++], x |= (k & 127) << 10, k < 128) || (k = w[l.pos++], x |= (k & 127) << 17, k < 128) || (k = w[l.pos++], x |= (k & 127) << 24, k < 128) || (k = w[l.pos++], x |= (k & 1) << 31, k < 128)) return T(e, x, i);
2478
2365
  throw new Error("Expected varint not more than 10 bytes");
2479
2366
  }
2480
- function w(t) {
2481
- return t.type === n.Bytes ? t.readVarint() + t.pos : t.pos + 1;
2367
+ function h(e) {
2368
+ return e.type === n.Bytes ? e.readVarint() + e.pos : e.pos + 1;
2482
2369
  }
2483
- function S(t, o, u) {
2484
- return u ? o * 4294967296 + (t >>> 0) : (o >>> 0) * 4294967296 + (t >>> 0);
2370
+ function T(e, i, l) {
2371
+ return l ? i * 4294967296 + (e >>> 0) : (i >>> 0) * 4294967296 + (e >>> 0);
2485
2372
  }
2486
- function D(t, o) {
2487
- var u, F;
2488
- if (t >= 0 ? (u = t % 4294967296 | 0, F = t / 4294967296 | 0) : (u = ~(-t % 4294967296), F = ~(-t / 4294967296), u ^ 4294967295 ? u = u + 1 | 0 : (u = 0, F = F + 1 | 0)), t >= 18446744073709552e3 || t < -18446744073709552e3)
2373
+ function N(e, i) {
2374
+ var l, w;
2375
+ if (e >= 0 ? (l = e % 4294967296 | 0, w = e / 4294967296 | 0) : (l = ~(-e % 4294967296), w = ~(-e / 4294967296), l ^ 4294967295 ? l = l + 1 | 0 : (l = 0, w = w + 1 | 0)), e >= 18446744073709552e3 || e < -18446744073709552e3)
2489
2376
  throw new Error("Given varint doesn't fit into 10 bytes");
2490
- o.realloc(10), h(u, F, o), E(F, o);
2377
+ i.realloc(10), S(l, w, i), E(w, i);
2491
2378
  }
2492
- function h(t, o, u) {
2493
- u.buf[u.pos++] = t & 127 | 128, t >>>= 7, u.buf[u.pos++] = t & 127 | 128, t >>>= 7, u.buf[u.pos++] = t & 127 | 128, t >>>= 7, u.buf[u.pos++] = t & 127 | 128, t >>>= 7, u.buf[u.pos] = t & 127;
2379
+ function S(e, i, l) {
2380
+ l.buf[l.pos++] = e & 127 | 128, e >>>= 7, l.buf[l.pos++] = e & 127 | 128, e >>>= 7, l.buf[l.pos++] = e & 127 | 128, e >>>= 7, l.buf[l.pos++] = e & 127 | 128, e >>>= 7, l.buf[l.pos] = e & 127;
2494
2381
  }
2495
- function E(t, o) {
2496
- var u = (t & 7) << 4;
2497
- o.buf[o.pos++] |= u | ((t >>>= 3) ? 128 : 0), t && (o.buf[o.pos++] = t & 127 | ((t >>>= 7) ? 128 : 0), t && (o.buf[o.pos++] = t & 127 | ((t >>>= 7) ? 128 : 0), t && (o.buf[o.pos++] = t & 127 | ((t >>>= 7) ? 128 : 0), t && (o.buf[o.pos++] = t & 127 | ((t >>>= 7) ? 128 : 0), t && (o.buf[o.pos++] = t & 127)))));
2382
+ function E(e, i) {
2383
+ var l = (e & 7) << 4;
2384
+ i.buf[i.pos++] |= l | ((e >>>= 3) ? 128 : 0), e && (i.buf[i.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (i.buf[i.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (i.buf[i.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (i.buf[i.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (i.buf[i.pos++] = e & 127)))));
2498
2385
  }
2499
- function L(t, o, u) {
2500
- var F = o <= 16383 ? 1 : o <= 2097151 ? 2 : o <= 268435455 ? 3 : Math.floor(Math.log(o) / (Math.LN2 * 7));
2501
- u.realloc(F);
2502
- for (var T = u.pos - 1; T >= t; T--) u.buf[T + F] = u.buf[T];
2386
+ function F(e, i, l) {
2387
+ var w = i <= 16383 ? 1 : i <= 2097151 ? 2 : i <= 268435455 ? 3 : Math.floor(Math.log(i) / (Math.LN2 * 7));
2388
+ l.realloc(w);
2389
+ for (var x = l.pos - 1; x >= e; x--) l.buf[x + w] = l.buf[x];
2503
2390
  }
2504
- function R(t, o) {
2505
- for (var u = 0; u < t.length; u++) o.writeVarint(t[u]);
2391
+ function O(e, i) {
2392
+ for (var l = 0; l < e.length; l++) i.writeVarint(e[l]);
2506
2393
  }
2507
- function P(t, o) {
2508
- for (var u = 0; u < t.length; u++) o.writeSVarint(t[u]);
2394
+ function C(e, i) {
2395
+ for (var l = 0; l < e.length; l++) i.writeSVarint(e[l]);
2509
2396
  }
2510
- function O(t, o) {
2511
- for (var u = 0; u < t.length; u++) o.writeFloat(t[u]);
2397
+ function P(e, i) {
2398
+ for (var l = 0; l < e.length; l++) i.writeFloat(e[l]);
2512
2399
  }
2513
- function C(t, o) {
2514
- for (var u = 0; u < t.length; u++) o.writeDouble(t[u]);
2400
+ function L(e, i) {
2401
+ for (var l = 0; l < e.length; l++) i.writeDouble(e[l]);
2515
2402
  }
2516
- function V(t, o) {
2517
- for (var u = 0; u < t.length; u++) o.writeBoolean(t[u]);
2403
+ function A(e, i) {
2404
+ for (var l = 0; l < e.length; l++) i.writeBoolean(e[l]);
2518
2405
  }
2519
- function U(t, o) {
2520
- for (var u = 0; u < t.length; u++) o.writeFixed32(t[u]);
2406
+ function I(e, i) {
2407
+ for (var l = 0; l < e.length; l++) i.writeFixed32(e[l]);
2521
2408
  }
2522
- function z(t, o) {
2523
- for (var u = 0; u < t.length; u++) o.writeSFixed32(t[u]);
2409
+ function U(e, i) {
2410
+ for (var l = 0; l < e.length; l++) i.writeSFixed32(e[l]);
2524
2411
  }
2525
- function I(t, o) {
2526
- for (var u = 0; u < t.length; u++) o.writeFixed64(t[u]);
2412
+ function z(e, i) {
2413
+ for (var l = 0; l < e.length; l++) i.writeFixed64(e[l]);
2527
2414
  }
2528
- function q(t, o) {
2529
- for (var u = 0; u < t.length; u++) o.writeSFixed64(t[u]);
2415
+ function b(e, i) {
2416
+ for (var l = 0; l < e.length; l++) i.writeSFixed64(e[l]);
2530
2417
  }
2531
- function p(t, o) {
2532
- return (t[o] | t[o + 1] << 8 | t[o + 2] << 16) + t[o + 3] * 16777216;
2418
+ function f(e, i) {
2419
+ return (e[i] | e[i + 1] << 8 | e[i + 2] << 16) + e[i + 3] * 16777216;
2533
2420
  }
2534
- function g(t, o, u) {
2535
- t[u] = o, t[u + 1] = o >>> 8, t[u + 2] = o >>> 16, t[u + 3] = o >>> 24;
2421
+ function _(e, i, l) {
2422
+ e[l] = i, e[l + 1] = i >>> 8, e[l + 2] = i >>> 16, e[l + 3] = i >>> 24;
2536
2423
  }
2537
- function s(t, o) {
2538
- return (t[o] | t[o + 1] << 8 | t[o + 2] << 16) + (t[o + 3] << 24);
2424
+ function s(e, i) {
2425
+ return (e[i] | e[i + 1] << 8 | e[i + 2] << 16) + (e[i + 3] << 24);
2539
2426
  }
2540
- function m(t, o, u) {
2541
- for (var F = "", T = o; T < u; ) {
2542
- var N = t[T], G = null, $ = N > 239 ? 4 : N > 223 ? 3 : N > 191 ? 2 : 1;
2543
- if (T + $ > u) break;
2544
- var k, ee, he;
2545
- $ === 1 ? N < 128 && (G = N) : $ === 2 ? (k = t[T + 1], (k & 192) === 128 && (G = (N & 31) << 6 | k & 63, G <= 127 && (G = null))) : $ === 3 ? (k = t[T + 1], ee = t[T + 2], (k & 192) === 128 && (ee & 192) === 128 && (G = (N & 15) << 12 | (k & 63) << 6 | ee & 63, (G <= 2047 || G >= 55296 && G <= 57343) && (G = null))) : $ === 4 && (k = t[T + 1], ee = t[T + 2], he = t[T + 3], (k & 192) === 128 && (ee & 192) === 128 && (he & 192) === 128 && (G = (N & 15) << 18 | (k & 63) << 12 | (ee & 63) << 6 | he & 63, (G <= 65535 || G >= 1114112) && (G = null))), G === null ? (G = 65533, $ = 1) : G > 65535 && (G -= 65536, F += String.fromCharCode(G >>> 10 & 1023 | 55296), G = 56320 | G & 1023), F += String.fromCharCode(G), T += $;
2427
+ function p(e, i, l) {
2428
+ for (var w = "", x = i; x < l; ) {
2429
+ var k = e[x], G = null, K = k > 239 ? 4 : k > 223 ? 3 : k > 191 ? 2 : 1;
2430
+ if (x + K > l) break;
2431
+ var R, W, J;
2432
+ K === 1 ? k < 128 && (G = k) : K === 2 ? (R = e[x + 1], (R & 192) === 128 && (G = (k & 31) << 6 | R & 63, G <= 127 && (G = null))) : K === 3 ? (R = e[x + 1], W = e[x + 2], (R & 192) === 128 && (W & 192) === 128 && (G = (k & 15) << 12 | (R & 63) << 6 | W & 63, (G <= 2047 || G >= 55296 && G <= 57343) && (G = null))) : K === 4 && (R = e[x + 1], W = e[x + 2], J = e[x + 3], (R & 192) === 128 && (W & 192) === 128 && (J & 192) === 128 && (G = (k & 15) << 18 | (R & 63) << 12 | (W & 63) << 6 | J & 63, (G <= 65535 || G >= 1114112) && (G = null))), G === null ? (G = 65533, K = 1) : G > 65535 && (G -= 65536, w += String.fromCharCode(G >>> 10 & 1023 | 55296), G = 56320 | G & 1023), w += String.fromCharCode(G), x += K;
2546
2433
  }
2547
- return F;
2434
+ return w;
2548
2435
  }
2549
- function _(t, o, u) {
2550
- return d.decode(t.subarray(o, u));
2436
+ function g(e, i, l) {
2437
+ return d.decode(e.subarray(i, l));
2551
2438
  }
2552
- function x(t, o, u) {
2553
- for (var F = 0, T, N; F < o.length; F++) {
2554
- if (T = o.charCodeAt(F), T > 55295 && T < 57344)
2555
- if (N)
2556
- if (T < 56320) {
2557
- t[u++] = 239, t[u++] = 191, t[u++] = 189, N = T;
2439
+ function D(e, i, l) {
2440
+ for (var w = 0, x, k; w < i.length; w++) {
2441
+ if (x = i.charCodeAt(w), x > 55295 && x < 57344)
2442
+ if (k)
2443
+ if (x < 56320) {
2444
+ e[l++] = 239, e[l++] = 191, e[l++] = 189, k = x;
2558
2445
  continue;
2559
2446
  } else
2560
- T = N - 55296 << 10 | T - 56320 | 65536, N = null;
2447
+ x = k - 55296 << 10 | x - 56320 | 65536, k = null;
2561
2448
  else {
2562
- T > 56319 || F + 1 === o.length ? (t[u++] = 239, t[u++] = 191, t[u++] = 189) : N = T;
2449
+ x > 56319 || w + 1 === i.length ? (e[l++] = 239, e[l++] = 191, e[l++] = 189) : k = x;
2563
2450
  continue;
2564
2451
  }
2565
- else N && (t[u++] = 239, t[u++] = 191, t[u++] = 189, N = null);
2566
- T < 128 ? t[u++] = T : (T < 2048 ? t[u++] = T >> 6 | 192 : (T < 65536 ? t[u++] = T >> 12 | 224 : (t[u++] = T >> 18 | 240, t[u++] = T >> 12 & 63 | 128), t[u++] = T >> 6 & 63 | 128), t[u++] = T & 63 | 128);
2452
+ else k && (e[l++] = 239, e[l++] = 191, e[l++] = 189, k = null);
2453
+ x < 128 ? e[l++] = x : (x < 2048 ? e[l++] = x >> 6 | 192 : (x < 65536 ? e[l++] = x >> 12 | 224 : (e[l++] = x >> 18 | 240, e[l++] = x >> 12 & 63 | 128), e[l++] = x >> 6 & 63 | 128), e[l++] = x & 63 | 128);
2567
2454
  }
2568
- return u;
2455
+ return l;
2569
2456
  }
2570
- return ct;
2457
+ return st;
2458
+ }
2459
+ var fi = mi();
2460
+ const pi = /* @__PURE__ */ oi(fi), pn = "#ffffff", yn = "#e0e4ea", yi = "#828a9e", hi = "32px", _i = { ms: "ms", bytes: "Byte{plural}", count: "request{plural}", "count/minute": "rpm", requests: "request{plural}" }, gi = { error_rate: "Error rate", request_count: "Request count", request_per_minute: "Requests per minute", response_latency_average: "Response latency (avg)", response_latency_p99: "Response latency (p99)", response_latency_p95: "Response latency (p95)", response_latency_p50: "Response latency (p50)", kong_latency_average: "Kong latency (avg)", kong_latency_p99: "Kong latency (p99)", kong_latency_p95: "Kong latency (p95)", kong_latency_p50: "Kong latency (p50)", upstream_latency_average: "Upstream latency (avg)", upstream_latency_p99: "Upstream latency (p99)", upstream_latency_p95: "Upstream latency (p95)", upstream_latency_p50: "Upstream latency (p50)", response_size_average: "Response size (avg)", response_size_p99: "Response size (p99)", response_size_p95: "Response size (p95)", response_size_p50: "Response size (p50)", response_size_sum: "Response size (sum)", request_size_average: "Request size (avg)", request_size_p99: "Request size (p99)", request_size_p95: "Request size (p95)", request_size_p50: "Request size (p50)", request_size_sum: "Request size (sum)", cache_hit_rate: "Cache hit rate" }, wi = { windows_zoom_help_text: "Use Ctrl + Scroll to zoom the map", mac_zoom_help_text: "Use ⌘ + Scroll to zoom the map", mobile_zoom_help_text: "Use two fingers to zoom the map" }, vi = "No data in the current time frame", xi = "Once there is traffic, it will display here", Mi = {
2461
+ metricUnits: _i,
2462
+ metrics: gi,
2463
+ cooperative_gestures: wi,
2464
+ no_location_data: vi,
2465
+ no_location_data_description: xi
2466
+ };
2467
+ function Fi() {
2468
+ const t = ia("en-us", Mi);
2469
+ return {
2470
+ i18n: t,
2471
+ i18nT: oa(t)
2472
+ // Translation component <i18n-t>
2473
+ };
2571
2474
  }
2572
- var Si = Ti();
2573
- const Di = /* @__PURE__ */ gi(Si), qi = (e) => {
2574
- if (!e || !e.data)
2475
+ const hn = 5, lt = [
2476
+ "#00819d",
2477
+ "#00abd2",
2478
+ "#00c8f4",
2479
+ "#67e3ff",
2480
+ "#b3f1ff"
2481
+ ], Ti = (t, n) => {
2482
+ const a = t.length;
2483
+ if (!a)
2484
+ return NaN;
2485
+ const o = (a - 1) * n, u = Math.floor(o), d = Math.ceil(o);
2486
+ return u === d ? t[u] : t[u] + (o - u) * (t[d] - t[u]);
2487
+ }, ut = (t, n) => {
2488
+ if (t.length === 0)
2489
+ return [];
2490
+ const a = t.filter((h) => h > 0).map(Math.log).sort((h, T) => h - T), o = Math.min(...a), d = (Math.max(...a) - o) / n;
2491
+ return Array.from({ length: n }, (h, T) => o + T * d).map((h) => Math.exp(h)).reverse();
2492
+ };
2493
+ function Si({
2494
+ countryMetrics: t,
2495
+ metric: n,
2496
+ unit: a,
2497
+ emptyCountryFill: o
2498
+ }) {
2499
+ const { formatMetric: u, formatMetricRange: d } = Fe.useMetricFormat({ unit: a }), y = j(() => {
2500
+ const C = { ...t.value };
2501
+ for (const P of Object.keys(C))
2502
+ pt.find((L) => L.code === P) || delete C[P];
2503
+ return C;
2504
+ }), h = j(() => Object.values(y.value)), T = j(() => Object.keys(y.value).length), N = j(() => T.value < hn - 1 ? T.value : hn), S = j(() => !n.value?.includes("latency")), E = j(() => {
2505
+ const C = [];
2506
+ if (h.value.length > 10) {
2507
+ const P = [...h.value].sort((b, f) => b - f), L = Ti(P, 0.75), A = h.value.filter((b) => b >= L), I = h.value.filter((b) => b < L), U = ut(A, 3), z = ut(I, 2);
2508
+ return C.push(...U, ...z), C;
2509
+ }
2510
+ return ut(h.value, N.value);
2511
+ }), F = j(() => h.value.length === 1 ? [{
2512
+ color: O(h.value[0]),
2513
+ range: u(h.value[0], {
2514
+ approximate: S.value,
2515
+ showUnit: !a.value.includes("count")
2516
+ }).trim()
2517
+ }] : E.value.map((C, P) => {
2518
+ const L = P === 0 ? Math.max(...E.value) : E.value[P - 1], A = C, I = L;
2519
+ let U = "";
2520
+ return P === 0 ? U = `> ${u(A, {
2521
+ showUnit: !a.value.includes("count"),
2522
+ approximate: S.value
2523
+ })}`.trim() : P === E.value.length - 1 ? U = `< ${u(I, {
2524
+ showUnit: !a.value.includes("count"),
2525
+ approximate: S.value
2526
+ })}`.trim() : U = d(A, I, {
2527
+ showUnit: !a.value.includes("count"),
2528
+ approximate: S.value
2529
+ }).trim(), {
2530
+ color: O(A),
2531
+ range: U
2532
+ };
2533
+ })), O = (C) => {
2534
+ if (C === 0)
2535
+ return o.value;
2536
+ const P = E.value.findIndex((L) => C >= L);
2537
+ return P === -1 ? lt[lt.length - 1] : lt[P] ?? o.value;
2538
+ };
2539
+ return {
2540
+ getColor: O,
2541
+ legendData: F,
2542
+ scale: E
2543
+ };
2544
+ }
2545
+ function Di({
2546
+ unit: t
2547
+ }) {
2548
+ const { i18n: n } = Fe.useI18n(), { formatUnit: a, formatRange: o } = ii({ i18n: n });
2549
+ return {
2550
+ formatMetric: (y, {
2551
+ showUnit: h = !0,
2552
+ approximate: T = !1
2553
+ } = {}) => a(y, t.value, {
2554
+ approximate: T,
2555
+ translateUnit: (N) => h ? n.t(`metricUnits.${N}`, { plural: y > 1 ? "s" : "" }) : ""
2556
+ }),
2557
+ formatMetricRange: (y, h, {
2558
+ showUnit: T = !0,
2559
+ approximate: N = !1
2560
+ } = {}) => o(y, h, t.value, {
2561
+ approximate: N,
2562
+ translateUnit: (S) => T ? n.t(`metricUnits.${S}`, { plural: h > 1 ? "s" : "" }) : ""
2563
+ })
2564
+ };
2565
+ }
2566
+ const Fe = {
2567
+ useI18n: Fi,
2568
+ useLegendScale: Si,
2569
+ useMetricFormat: Di
2570
+ }, Ji = (t) => {
2571
+ if (!t || !t.data)
2575
2572
  return {};
2576
- const n = {}, a = e.data;
2573
+ const n = {}, a = t.data;
2577
2574
  if (a)
2578
- for (const i of a) {
2579
- const l = i?.event?.country_code, d = e.meta.metric_names?.[0];
2580
- l && (n[l] = d ? i.event[d] : 0);
2575
+ for (const o of a) {
2576
+ const u = o?.event?.country_code, d = t.meta.metric_names?.[0];
2577
+ u && (n[u] = d ? o.event[d] : 0);
2581
2578
  }
2582
2579
  return n;
2583
2580
  };
2584
- function Ni(e, n = 0) {
2581
+ function ki(t, n = 0) {
2585
2582
  let a = null;
2586
- return (...i) => {
2587
- a && clearTimeout(a), a = setTimeout(() => e(...i), n);
2583
+ return (...o) => {
2584
+ a && clearTimeout(a), a = setTimeout(() => t(...o), n);
2588
2585
  };
2589
2586
  }
2590
- const ki = { class: "legend" }, Ri = {
2587
+ const ct = (t) => {
2588
+ const n = t ?? (typeof document > "u" ? null : document.documentElement);
2589
+ if (typeof window > "u" || !n)
2590
+ return {
2591
+ emptyCountryFill: yn,
2592
+ waterFill: pn
2593
+ };
2594
+ const a = window.getComputedStyle(n), o = (u, d) => a.getPropertyValue(u).trim() || d;
2595
+ return {
2596
+ emptyCountryFill: o("--kui-color-background-neutral-weaker", yn),
2597
+ waterFill: o("--kui-color-background", pn)
2598
+ };
2599
+ }, Ni = { class: "legend" }, Ri = {
2591
2600
  key: 0,
2592
2601
  class: "legend-title"
2593
- }, Ei = { class: "legend-text" }, Li = /* @__PURE__ */ ft({
2602
+ }, Ei = { class: "legend-text" }, Pi = /* @__PURE__ */ ft({
2594
2603
  __name: "MapLegend",
2595
2604
  props: {
2596
2605
  metric: {},
2597
2606
  title: {},
2598
2607
  data: {}
2599
2608
  },
2600
- setup(e) {
2601
- return (n, a) => (W(), ne("div", ki, [
2602
- e.metric ? (W(), ne("div", Ri, ye(e.title), 1)) : xe("", !0),
2603
- (W(!0), ne($r, null, jr(e.data, (i, l) => (W(), ne("div", {
2604
- key: l,
2609
+ setup(t) {
2610
+ return (n, a) => (Q(), re("div", Ni, [
2611
+ t.metric ? (Q(), re("div", Ri, _e(t.title), 1)) : Me("", !0),
2612
+ (Q(!0), re(Kr, null, qr(t.data, (o, u) => (Q(), re("div", {
2613
+ key: u,
2605
2614
  class: "legend-item"
2606
2615
  }, [
2607
- X("span", {
2616
+ te("span", {
2608
2617
  class: "legend-color",
2609
- style: Kr({ backgroundColor: i.color })
2618
+ style: Wr({ backgroundColor: o.color })
2610
2619
  }, null, 4),
2611
- X("span", Ei, ye(i.range), 1)
2620
+ te("span", Ei, _e(o.range), 1)
2612
2621
  ]))), 128))
2613
2622
  ]));
2614
2623
  }
2615
- }), ht = (e, n) => {
2616
- const a = e.__vccOpts || e;
2617
- for (const [i, l] of n)
2618
- a[i] = l;
2624
+ }), ht = (t, n) => {
2625
+ const a = t.__vccOpts || t;
2626
+ for (const [o, u] of n)
2627
+ a[o] = u;
2619
2628
  return a;
2620
- }, Pi = /* @__PURE__ */ ht(Li, [["__scopeId", "data-v-2858aa0d"]]), Gi = { class: "map-tooltip" }, Oi = { class: "map-tooltip-text" }, Ii = { key: 0 }, Ci = /* @__PURE__ */ ft({
2629
+ }, Li = /* @__PURE__ */ ht(Pi, [["__scopeId", "data-v-2858aa0d"]]), Ci = { class: "map-tooltip" }, Gi = { class: "map-tooltip-text" }, Oi = { key: 0 }, Ii = /* @__PURE__ */ ft({
2621
2630
  __name: "MapTooltip",
2622
2631
  props: {
2623
2632
  data: {},
@@ -2625,23 +2634,26 @@ const ki = { class: "legend" }, Ri = {
2625
2634
  top: {},
2626
2635
  left: {}
2627
2636
  },
2628
- setup(e) {
2629
- return qr((n) => ({
2637
+ setup(t) {
2638
+ return Zr((n) => ({
2630
2639
  v75a0a274: n.left,
2631
2640
  v144f4294: n.top,
2632
2641
  v6e49e79e: n.data.color
2633
- })), (n, a) => (W(), ne("div", Gi, [
2634
- a[0] || (a[0] = X("div", { class: "map-tooltip-color" }, null, -1)),
2635
- X("div", Oi, [
2636
- X("div", null, ye(e.data.label), 1),
2637
- e.showValue ? (W(), ne("span", Ii, ye(e.data.value), 1)) : xe("", !0)
2642
+ })), (n, a) => (Q(), re("div", Ci, [
2643
+ a[0] || (a[0] = te("div", { class: "map-tooltip-color" }, null, -1)),
2644
+ te("div", Gi, [
2645
+ te("div", null, _e(t.data.label), 1),
2646
+ t.showValue ? (Q(), re("span", Oi, _e(t.data.value), 1)) : Me("", !0)
2638
2647
  ])
2639
2648
  ]));
2640
2649
  }
2641
- }), Ui = /* @__PURE__ */ ht(Ci, [["__scopeId", "data-v-6bea2641"]]), Ai = { class: "kong-ui-public-analytics-geo-map" }, Vi = {
2650
+ }), Ui = /* @__PURE__ */ ht(Ii, [["__scopeId", "data-v-6bea2641"]]), Ai = "FeatureCollection", Vi = /* @__PURE__ */ JSON.parse('[{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rBaikal","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[106.57998579307912,52.79998159444554],[106.53998823448521,52.93999888774037],[107.0800069519353,53.18001007751998],[107.2999935242018,53.37999787048953],[107.59997521365611,53.51998932556822],[108.03994835818912,53.859968573616456],[108.37997928266967,54.25999583598784],[109.05270307824526,55.027597561251326],[109.19346967980832,55.53560272889659],[109.50699059452313,55.73091380474372],[109.92980716353523,55.7129562445223],[109.70000206913326,54.980003567110515],[109.66000451053935,54.71999359803395],[109.47996382043448,54.33999095317566],[109.31997358605884,53.81999685323869],[109.22003136600637,53.619983222052994],[108.99999311730755,53.78002513286093],[108.60001753136845,53.4399942083804],[108.800005324338,53.37999787048953],[108.76000776574409,53.200008856816936],[108.45997439985749,53.14001251892607],[108.17999148970011,52.79998159444554],[107.79996300662566,52.579995022179034],[107.31999230349876,52.42000478780339],[106.64003380740229,52.32001089131862],[106.1000150899522,52.03997630472897],[105.740037062607,51.759993394571595],[105.24001590375084,51.52000804300813],[104.81998986208251,51.46001170511727],[104.30002160036167,51.50000926371118],[103.7600028829116,51.60000316019595],[103.6200114278329,51.73999461527464],[103.85999677939637,51.85998729105637],[104.39996382041414,51.85998729105637],[105.05997521364597,52.0000045843512],[105.4800012553143,52.28001333272471],[105.98002241417046,52.51999868428817],[106.26000532432784,52.619992580772944],[106.57998579307912,52.79998159444554]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rWinnipeg","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-98.95540137408423,53.92978343364277],[-97.95799455441879,54.337097072967325],[-97.8050064766187,54.05938792583079],[-97.64380184608419,53.42521474874492],[-96.39258622921722,51.39730235453108],[-96.23789282915149,50.6910147161819],[-96.72558915890605,50.448910630894474],[-96.92110694048235,50.75405996357799],[-97.23568722205913,51.49778717712263],[-98.20097713905517,52.18456696228162],[-99.23680538612963,53.21628693298888],[-98.95540137408423,53.92978343364277]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Great\\rSlave Lake","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-115.00000342492967,61.9723932969562],[-115.80669837122196,62.54171255151576],[-116.0585951404287,62.77880402287089],[-115.84279435917783,62.7503044704619],[-114.45259497766185,62.42820526798667],[-113.35341142459757,62.04448192000336],[-111.77890804731261,62.44360484480964],[-111.04001258018727,62.92000987410843],[-110.20001217328286,63.08000010848407],[-109.40000932497237,62.87817780216814],[-109.09010576051801,62.814099026126215],[-109.11651241741916,62.6928144395372],[-110.10089677614705,62.51561595320837],[-111.27599300824811,62.34911448836395],[-112.63050981326654,61.55991201440246],[-113.64000891808828,61.07999298770784],[-115.3409903634076,60.87659455020702],[-116.43999304895887,60.86000641544133],[-118.06110856817108,61.31196849226605],[-118.3474735177165,61.36137116153708],[-118.3849906075604,61.52110301375126],[-118.17960262741634,61.55629466414203],[-116.8028132800801,61.32589529076871],[-115.67879920129957,61.69179026961132],[-115.00000342492967,61.9723932969562]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"L. Ontario","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-79.05630591502026,43.25410431576152],[-79.36168779164908,43.20237620703736],[-79.76047481964547,43.29720246029295],[-79.46116492381094,43.639197089200565],[-79.1561706204243,43.75743276628437],[-78.45052893747877,43.9031861435636],[-77.60536088734519,44.039327704436545],[-77.16148617217414,43.850140285815996],[-76.88269181995948,44.0694550644627],[-76.56555355498425,44.20802541765336],[-76.35303422718391,44.134670722015045],[-76.23926856149336,43.979150499032656],[-76.17999569365458,43.5900011256587],[-76.9300015937227,43.2599954290428],[-77.74915056019732,43.342832750006664],[-78.53499406605984,43.379988104824534],[-79.05630591502026,43.25410431576152]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"L. Erie","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-83.12001135937246,42.08001577409016],[-82.57123348664891,42.01702220312636],[-81.82918575715374,42.33552989355732],[-81.39226152212595,42.61517690690481],[-81.09496700715081,42.66075552018623],[-80.54515560578142,42.560089830081665],[-80.27917700877515,42.71566172949635],[-79.79135148793986,42.84203644466612],[-78.92000932485044,42.96500051530464],[-78.90057898630869,42.8667119410855],[-79.76220598012725,42.269616604169045],[-80.51644934764329,41.980331936199136],[-81.03119828970264,41.845508124349635],[-81.62351355663209,41.568935858723535],[-82.34744869660895,41.435920722004255],[-82.84610043000939,41.48710622818935],[-83.46283281119673,41.69396698665372],[-83.12001135937246,42.08001577409016],[-83.12001135937246,42.08001577409016]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake Superior","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-89.60000342482806,48.00998973244721],[-89.19405921095924,48.40546946877693],[-88.62641944044917,48.56251414651193],[-88.40423661981026,48.80632355406499],[-88.17895321323383,48.93670319273738],[-87.24903581414156,48.73511343036678],[-86.56000810417788,48.71108388935106],[-86.32103044304411,48.57729360614741],[-85.98652889681881,48.01035146747326],[-84.8642201403039,47.86007640236849],[-85.04061764193222,47.575700995466306],[-84.64500871452178,47.28220469826462],[-84.81528255892351,46.90233124448706],[-84.39559241406505,46.77683502866624],[-84.60490780306328,46.439594631529474],[-84.9100054593145,46.48000560158172],[-85.11999264193253,46.76001434995524],[-86.1026200019625,46.67265534116582],[-86.99000769727856,46.45000743263628],[-87.69427995476835,46.83104360614041],[-88.2612220934425,46.958581041036766],[-87.93992387566777,47.485913194359185],[-88.82260901564527,47.154796454449],[-89.62498897984119,46.83083690041124],[-90.39703487828177,46.57648550067064],[-91.00999487991183,46.92000458433087],[-92.01192338740282,46.71167104754619],[-92.00877112503301,46.85843211525511],[-91.33000118687926,47.28000844989221],[-90.61999284540505,47.68000987404746],[-89.60000342482806,48.00998973244721]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rVictoria","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[33.85036827976734,0.128157863766091],[33.85036827976734,0.128157863766091],[34.13624230320599,-0.319308363449238],[34.0726286150547,-1.059831638191795],[33.579428745261055,-1.506005954599821],[33.251748488098286,-1.957968031424549],[33.64717654799571,-2.30089283611342],[33.07672041192572,-2.547131035984201],[32.95176679864397,-2.43044565186915],[32.37309410983957,-2.489925225437091],[31.926558058405476,-2.714511000177573],[31.648022088352292,-2.32921152100937],[31.836020949030114,-1.629305922048232],[31.866199985488578,-1.027378838712494],[31.815143670384202,-0.64042571371094],[32.27284183119332,-0.056120293786734],[32.906136508930246,0.0867650415003],[33.33184695815069,0.324993394365833],[33.85036827976734,0.128157863766091]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rLadoga","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[29.836711460089845,61.22608226179696],[29.836711460089845,61.22608226179696],[30.85199832532828,61.77504100203353],[32.52688317234018,61.11751007755173],[32.94432539239392,60.64260366478942],[32.81575442885176,60.481889960361684],[32.599901971168606,60.533514716221276],[32.583882277158125,60.20893504499601],[31.699440138482714,60.23565176049091],[31.50973595553924,59.92034800886205],[31.106246372204282,59.92768606224749],[31.10893354668346,60.14645823835514],[30.533878208139498,60.63009796817478],[30.502045525847706,60.843211574946466],[29.836711460089845,61.22608226179696]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rBalkhash","name_alt":"Balqash Köli","admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[78.99076541536459,46.748619696634876],[78.99076541536459,46.748619696634876],[79.2451684915375,46.64516347918655],[78.88989301953086,46.369934800800024],[78.44506229036242,46.29717438413307],[77.20606814973246,46.3955663112168],[75.61128177277294,46.50718740496724],[75.46333214712132,46.6706141220903],[75.40566124868357,46.47080719663377],[74.91122114451494,46.404661363300164],[74.77138471873312,46.107831936215646],[74.27802981964263,46.004065660173566],[74.0999528339648,44.98893382423201],[73.4367375019309,45.60946442319282],[73.4399931171653,45.80586070411809],[73.73713260284359,46.012747300798594],[73.67925499867667,46.18307282163262],[74.02068118682908,46.20490611427593],[74.09432010284502,46.42781240496693],[74.939384800114,46.81678091082786],[76.20313195181177,46.7800131292522],[77.18131513866464,46.64340648048862],[77.85993004752152,46.64785065366573],[78.29700931184618,46.46853343361292],[78.39710656119556,46.657669175801175],[78.99076541536459,46.748619696634876]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rTanganyika","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[30.806006300588507,-8.578339125201033],[30.46442508313922,-8.498188978716335],[30.566847771941724,-8.1150082332721],[30.27735639824263,-7.848357842646031],[30.14702843600253,-7.299244073112582],[29.536523064906334,-6.7541610652979],[29.19318484875913,-6.038029066597119],[29.371985304489016,-5.616452731960017],[29.101717563602506,-5.054006442895265],[29.281034783655315,-3.455499362810748],[29.652588331833897,-4.420143324403149],[29.600085076625334,-4.896393324405054],[29.79195966972506,-5.040880629093131],[29.758421665167646,-5.466901136907339],[29.951226434048635,-5.860985609565162],[29.722041456834177,-6.244114678577112],[30.52803877129051,-6.922729587433992],[30.604158156056457,-7.541916599155222],[31.189032016735865,-8.729906101113095],[31.022117140433124,-8.786543470904988],[30.806006300588507,-8.578339125201033],[30.806006300588507,-8.578339125201033]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake Malawi","name_alt":"Lake Nyasa","admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[35.2602047055542,-14.277474460510291],[35.236226840970915,-14.401291192281633],[34.881209751125766,-14.012012627826891],[34.706543409979076,-14.262023207255027],[34.54675988133266,-14.047669366108266],[34.55110070164528,-13.67208505621096],[34.3209338722171,-13.379389743709737],[34.32997724786827,-12.944584242405995],[34.032527703596315,-12.208556817272836],[34.322690870915096,-11.652983493702834],[34.25990400568048,-10.447579034062642],[33.906592238100984,-9.801726983278854],[33.99557905450757,-9.495440769084837],[34.52422895685345,-10.03013681400887],[34.60789310073403,-11.080511976773494],[34.93702029800096,-11.463434340056267],[34.69388268406766,-12.422393894096615],[34.86756717300062,-13.701127211159019],[35.05597944513687,-13.742933444883136],[35.2602047055542,-14.277474460510291]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Aral\\rSea","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[60.05285159692946,44.264636949229114],[59.77002648299603,44.15999217383806],[59.06288618351405,44.36928172462015],[59.34571129744745,44.99720205339871],[59.35930219914022,45.190006822279685],[58.96139367049281,45.37500844988459],[58.92144778833119,45.101846828789746],[58.92144778833119,44.73556427670495],[58.497132602782614,44.212340399749735],[58.285000848224456,44.473952338227335],[58.285000848224456,44.89255727800766],[58.689989048095896,45.50001373959863],[58.78000939314833,45.88673432065487],[59.20427290226462,45.93905670835039],[59.535002068932585,45.70501414650049],[59.55784305200561,46.30533926043519],[59.77002648299603,46.25299103452352],[60.12359663273702,46.096023871436955],[60.12359663273702,45.88673432065487],[59.94675988143425,45.808211981787366],[59.84071984237133,45.520477606786216],[60.12359663273702,45.572774156265595],[60.23997195825834,44.78403677019473],[60.05285159692946,44.264636949229114]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Vänern","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[13.979281447005576,59.20491364199721],[13.979281447005576,59.20491364199721],[13.984449090234762,59.086212877022774],[13.91892337408865,58.902503160225166],[13.28268313971111,58.608670966213566],[12.830100945698888,58.50903880475484],[12.460149366921371,58.50619660097878],[12.537767368223768,58.77594757754237],[12.522161085671598,58.880282294339665],[12.697085808979608,58.953843695707135],[13.027039829163215,58.993531195707305],[13.195298292705559,59.12900096296045],[13.59144982265505,59.336481838612315],[13.979281447005576,59.20491364199721]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Okeechobee","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-80.70643775096435,26.788959458924822],[-80.93244462759287,26.823272609966622],[-80.91970638703292,27.068916530866048],[-80.69369951040441,27.034629218040394],[-80.70643775096435,26.788959458924822],[-80.70643775096435,26.788959458924822]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lago de\\rNicaragua","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-84.85548682324658,11.147898667846633],[-85.29013729525353,11.176165676310276],[-85.79132117383625,11.509737046754324],[-85.8851655748783,11.900100816287136],[-85.5653401354239,11.940330918826362],[-85.03684526237491,11.5216484643976],[-84.85548682324658,11.147898667846633],[-84.85548682324658,11.147898667846633]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Tana","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[37.14370730972843,11.850594794151519],[37.01482628759251,12.035596421756424],[37.24401126480697,12.233878892460353],[37.518361443844526,12.160601711470477],[37.48187788264647,11.825092474815477],[37.33635704931254,11.713393866416595],[37.14370730972843,11.850594794151519],[37.14370730972843,11.850594794151519]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lago Titicaca","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-69.40673987494259,-16.126198825752063],[-69.7290974595793,-15.928794854397104],[-69.98365556504908,-15.73717864345884],[-69.8770212470148,-15.669844252182529],[-69.8679778713637,-15.546079196843493],[-69.88559953477524,-15.35425628017606],[-69.59675411647981,-15.410480238509614],[-68.98697221543571,-15.885903415594846],[-68.9596870591856,-15.91329192470954],[-68.74623755560401,-16.356003920154023],[-68.90524593776611,-16.506640720284835],[-69.00115739609983,-16.536406345284952],[-69.09084184434238,-16.461992282784657],[-69.18205074733753,-16.40116912197712],[-69.25098710801488,-16.227536309476427],[-69.40673987494259,-16.126198825752063],[-69.40673987494259,-16.126198825752063]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake\\rWinnipegosis","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-99.40377193886468,53.1258531764781],[-99.54846594928192,53.120427151087455],[-99.80498775917877,53.14290639913442],[-100.43146114785316,53.2841897650204],[-100.60685095905177,53.531616522833886],[-100.33487789589965,53.745246893928496],[-100.42673275429846,53.90740753846039],[-100.4044860501968,53.94507965760117],[-100.32629960813921,54.094011135466346],[-100.23586585162842,54.23033356385231],[-99.99549292682278,54.215864162810576],[-100.04778947630214,54.10013479269293],[-100.18356930214904,53.930351874397985],[-99.87128862180926,53.928465684619326],[-99.91066606321566,53.821314602262134],[-100.05649695514333,53.44332733826322],[-99.66551306842301,53.29581696228607],[-99.39317827024485,53.26791168884846],[-99.40377193886468,53.1258531764781],[-99.40377193886468,53.1258531764781]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake\\rOnega","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[35.71464725112901,62.2802298041189],[36.0541614112866,61.716310736733874],[36.391401808423325,61.27605337182331],[36.10945519383887,61.01508738874924],[35.35074181492962,60.948579820389625],[34.866843702948586,61.11637319604125],[35.207288038887384,61.114435329830485],[35.57832482274313,61.08634918887975],[35.16000410334027,61.39428904890701],[34.85733523940689,61.55179881453273],[34.48691857273877,61.86697337508076],[34.265019972477376,62.21914826114994],[34.289824659977455,62.29774811466581],[34.66561567560399,62.22979360620195],[34.62613488133297,62.45223480900245],[34.8356311378443,62.29676626245225],[35.080267368314026,62.1411943630377],[35.21658979669991,62.193284206787894],[35.463706495919666,62.2560193955901],[35.13969526544963,62.48776235620312],[34.614352654770414,62.762448432050576],[34.99541466649072,62.748469957115674],[35.23395307795005,62.675347805422575],[35.71464725112901,62.2802298041189]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Great Salt Lake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-112.18405127648089,41.34124949804567],[-112.13875688357706,41.142346910154174],[-112.17193315310845,40.851460272783186],[-112.67882727745939,41.130487168943205],[-112.70549231652205,41.16753917089636],[-112.87814327680917,41.62815705013003],[-112.58955624067522,41.43891795507716],[-112.40532975955472,41.33801972102742],[-112.21901038292629,41.42855683040267],[-112.18405127648089,41.34124949804567]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Great\\rBear Lake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-117.7592923653704,66.22368419052789],[-117.97374955938167,65.85489533147692],[-118.10710059291085,65.76691620550001],[-119.7200520432652,65.73479930283061],[-119.74568355368197,65.65436493596833],[-119.6648099371452,65.52742178004333],[-119.70219783590836,65.36794830999061],[-121.35509436098008,64.87999359807459],[-121.33610327211281,64.99461192489797],[-120.94527441468938,65.37774099390991],[-121.05728308168202,65.4463414577774],[-122.56450374412293,65.0310696478799],[-123.232705851873,65.18041453720339],[-123.17963415590926,65.31937246363624],[-122.32599117087979,65.79378795029179],[-122.35622188377054,65.90184337021411],[-124.95363440005697,66.04925039332666],[-124.89753963280414,66.15115631780624],[-119.48724971579031,66.96929759385118],[-119.35743771042887,66.87519481064767],[-120.1769492193738,66.46527151149239],[-117.60545162643749,66.55934845647975],[-117.61278967982294,66.41997711858856],[-117.7592923653704,66.22368419052789],[-117.7592923653704,66.22368419052789]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Athabasca","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-109.65330135785099,59.03763703066841],[-111.08626298708849,58.56017263450765],[-111.19948605023998,58.685565497463884],[-111.160005255969,58.75985036888345],[-109.09672034385136,59.55042226830068],[-106.54517066122398,59.31968699811746],[-106.54695349813804,59.292815253325685],[-109.65330135785099,59.03763703066841],[-109.65330135785099,59.03763703066841]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Reindeer\\rLake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-101.89514441608819,58.01403025983099],[-101.89514441608819,58.01403025983099],[-101.54384802936804,57.86809601503873],[-101.97090206582807,57.34867035585697],[-101.93403093138781,57.23066722271848],[-103.20416012247362,56.34539826112639],[-103.2825015938281,56.40994212505895],[-103.1487371488406,56.70411021588043],[-103.07832800984292,56.71080231386223],[-103.01440426309787,56.56510061301529],[-102.57680823445028,56.938281968811054],[-102.81322791218561,57.28714956321349],[-102.81369300007623,57.46434804954232],[-102.12874772826359,58.01914622662788],[-101.89514441608819,58.01403025983099]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rHuron","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-80.41056433787725,45.590137437515665],[-79.76292945017934,44.824602769543844],[-80.08500281443844,44.493925279308144],[-80.89769222687659,44.63164297136599],[-81.40233842642287,45.25005483660284],[-81.27567949087549,44.6201708033972],[-81.75265296092948,44.06464915625956],[-81.70017554393709,43.590052802090995],[-81.78272864452336,43.310845038417995],[-82.43000179719522,42.98001251888543],[-82.4799987454376,43.39001333268915],[-82.6599877591102,43.970003770516996],[-83.02999101432,44.06999766700177],[-83.6500048489579,43.62999868425261],[-83.84870073112015,43.63831858985161],[-83.89998959016984,43.88998281511303],[-83.34999732128743,44.29001007748441],[-83.25878841829228,44.74574453386644],[-83.33999793163895,45.200006211928155],[-84.08000444205858,45.58998240821879],[-84.93000423861146,45.789996039404485],[-84.75355506055087,45.924483954444085],[-84.71999121777729,45.91998810483469],[-83.83919226757845,46.010215155616294],[-84.33670711946846,46.40876963966737],[-84.14870825879063,46.55576325132161],[-83.95257036002683,46.334278062518635],[-83.20251278352643,46.21015127215355],[-82.44199072948692,46.19963511818216],[-81.63136837434045,46.09754832618957],[-80.73679765493583,45.90381338152733],[-80.41056433787725,45.590137437515665]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rMichigan","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-85.53999284538475,46.03000722918408],[-84.75355506055087,45.924483954444085],[-84.93000423861146,45.789996039404485],[-85.06999569369015,45.40999339454619],[-85.29044735384727,45.30824249936349],[-85.46710323763705,44.81457754167923],[-85.55999162468169,45.150009263685774],[-85.95983801954006,44.91059235287753],[-86.20935767286137,44.574798895844935],[-86.47027197950304,44.08423452409818],[-86.52001054558397,43.65999685319804],[-86.18842871778315,43.04140412044818],[-86.21604977084317,42.38170278581012],[-86.62191647006355,41.8944198675139],[-86.8244364082154,41.75618541113313],[-87.09444576694042,41.64616628678374],[-87.4342183092595,41.640714423176945],[-87.52617652052288,41.70851390234388],[-87.79569495314115,42.23411489518453],[-87.80344641798493,42.49399567318035],[-87.77672970249003,42.740853990238634],[-87.90214840366241,43.23051402442029],[-87.71221167677363,43.79650014909703],[-87.486359829442,44.49335683855294],[-86.9674767727993,45.26287059181122],[-87.11806189649782,45.25933075619923],[-87.85282324903983,44.61505483660031],[-87.98831885450912,44.73331635190026],[-87.5964306302237,45.093707790703775],[-87.00000708692704,45.73999909116209],[-86.31999691439827,45.829993597998396],[-85.53999284538475,46.03000722918408]]]}}]'), Bi = {
2651
+ type: Ai,
2652
+ features: Vi
2653
+ }, bi = { class: "kong-ui-public-analytics-geo-map" }, zi = {
2642
2654
  key: 0,
2643
2655
  class: "no-location-overlay"
2644
- }, Bi = { class: "no-location-overlay-title" }, zi = { class: "no-location-overlay-description" }, bi = ["id"], Hi = /* @__PURE__ */ ft({
2656
+ }, Hi = { class: "no-location-overlay-title" }, Yi = { class: "no-location-overlay-description" }, $i = ["id"], ji = /* @__PURE__ */ ft({
2645
2657
  __name: "AnalyticsGeoMap",
2646
2658
  props: {
2647
2659
  countryMetrics: {},
@@ -2655,12 +2667,13 @@ const ki = { class: "legend" }, Ri = {
2655
2667
  } }
2656
2668
  },
2657
2669
  emits: ["boundsChange"],
2658
- setup(e, { emit: n }) {
2659
- const a = import("./countries-simple-geo-BFUDnSiE.js").then((s) => s.default), i = n, { i18n: l } = Me.useI18n(), { getColor: d, legendData: y } = Me.useLegendScale({
2660
- countryMetrics: Le(() => e.countryMetrics),
2661
- metric: Le(() => e.metric),
2662
- unit: Le(() => e.metricUnit)
2663
- }), { formatMetric: w } = Me.useMetricFormat({ unit: Le(() => e.metricUnit) }), S = we(), D = Wr(), h = we(), E = we(null), L = we({ left: "0px", top: "0px" }), R = we(!1), P = j(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), O = j(() => ({
2670
+ setup(t, { emit: n }) {
2671
+ const a = import("./countries-simple-geo-BFUDnSiE.js").then((e) => e.default), o = n, { i18n: u } = Fe.useI18n(), d = Jr("app:konnectColorMode", j(() => "light")), { getColor: y, legendData: h } = Fe.useLegendScale({
2672
+ countryMetrics: ve(() => t.countryMetrics),
2673
+ metric: ve(() => t.metric),
2674
+ unit: ve(() => t.metricUnit),
2675
+ emptyCountryFill: ve(() => L.value.emptyCountryFill)
2676
+ }), { formatMetric: T } = Fe.useMetricFormat({ unit: ve(() => t.metricUnit) }), N = se(), S = Qr(), E = se(), F = se(), O = se(null), C = se({ left: "0px", top: "0px" }), P = se(!1), L = se(ct()), A = j(() => Object.keys(t.countryMetrics).length === 0 && !t.fitToCountry), I = j(() => ({
2664
2677
  "fill-color": [
2665
2678
  "match",
2666
2679
  [
@@ -2673,56 +2686,58 @@ const ki = { class: "legend" }, Ri = {
2673
2686
  ],
2674
2687
  ["get", "ISO_A2"]
2675
2688
  ],
2676
- ...Object.keys(e.countryMetrics).length ? Object.entries(e.countryMetrics).flatMap(([s, m]) => [
2677
- s,
2678
- d(m)
2679
- ]) : [Fe, Fe],
2680
- Fe
2689
+ ...Object.keys(t.countryMetrics).length ? Object.entries(t.countryMetrics).flatMap(([e, i]) => [
2690
+ e,
2691
+ y(i)
2692
+ ]) : [L.value.emptyCountryFill, L.value.emptyCountryFill],
2693
+ L.value.emptyCountryFill
2681
2694
  // default color if no match
2682
2695
  ],
2683
2696
  "fill-opacity": 0.7
2684
- })), C = j(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), V = j(() => e.metric && l.t(`metrics.${e.metric}`) || ""), U = (s) => {
2685
- const m = s.flat(1);
2686
- return Array.isArray(m[0]) && Array.isArray(m[0][0]) ? U(m) : m;
2687
- }, z = (s) => {
2688
- if (s === "RU") {
2689
- h.value?.fitBounds([
2697
+ })), U = j(() => ({
2698
+ "fill-color": L.value.waterFill
2699
+ })), z = j(() => t.withLegend && Object.keys(t.countryMetrics).length > 0), b = j(() => t.metric && u.t(`metrics.${t.metric}`) || ""), f = (e) => {
2700
+ const i = e.flat(1);
2701
+ return Array.isArray(i[0]) && Array.isArray(i[0][0]) ? f(i) : i;
2702
+ }, _ = (e) => {
2703
+ if (e === "RU") {
2704
+ F.value?.fitBounds([
2690
2705
  [20, 40],
2691
2706
  [180, 80]
2692
2707
  ]);
2693
2708
  return;
2694
- } else if (s === "US") {
2695
- h.value?.fitBounds([
2709
+ } else if (e === "US") {
2710
+ F.value?.fitBounds([
2696
2711
  [-130, 20],
2697
2712
  [-60, 50]
2698
2713
  ]);
2699
2714
  return;
2700
- } else if (s === "FR") {
2701
- h.value?.fitBounds([
2715
+ } else if (e === "FR") {
2716
+ F.value?.fitBounds([
2702
2717
  [-5, 42],
2703
2718
  [9, 51]
2704
2719
  ]);
2705
2720
  return;
2706
- } else if (s === "NO") {
2707
- h.value?.fitBounds([
2721
+ } else if (e === "NO") {
2722
+ F.value?.fitBounds([
2708
2723
  [4, 57],
2709
2724
  [32, 71]
2710
2725
  ]);
2711
2726
  return;
2712
2727
  }
2713
- const m = E.value?.features.find((_) => _.properties?.ISO_A2 ? _.properties?.ISO_A2 === s : _.properties?.iso_a2 === "-99" ? _.properties?.iso_a2_eh === s : _.properties?.iso_a2 === s);
2714
- if (m) {
2715
- const _ = m.geometry?.coordinates;
2716
- if (!_) return;
2717
- const x = U(_), t = x.map((G) => G[1]), o = x.map((G) => G[0]), u = Math.min(...t), F = Math.max(...t), T = Math.min(...o), N = Math.max(...o);
2718
- h.value?.fitBounds([
2719
- [T, u],
2720
- [N, F]
2728
+ const i = O.value?.features.find((l) => l.properties?.ISO_A2 ? l.properties?.ISO_A2 === e : l.properties?.iso_a2 === "-99" ? l.properties?.iso_a2_eh === e : l.properties?.iso_a2 === e);
2729
+ if (i) {
2730
+ const l = i.geometry?.coordinates;
2731
+ if (!l) return;
2732
+ const w = f(l), x = w.map((J) => J[1]), k = w.map((J) => J[0]), G = Math.min(...x), K = Math.max(...x), R = Math.min(...k), W = Math.max(...k);
2733
+ F.value?.fitBounds([
2734
+ [R, G],
2735
+ [W, K]
2721
2736
  ]);
2722
2737
  }
2723
- }, I = j(() => {
2724
- const s = {
2725
- container: D,
2738
+ }, s = j(() => {
2739
+ const e = {
2740
+ container: S,
2726
2741
  style: { version: 8, sources: {}, layers: [] },
2727
2742
  attributionControl: !1,
2728
2743
  // fit bounds for whole world minus antarctica
@@ -2733,132 +2748,123 @@ const ki = { class: "legend" }, Ri = {
2733
2748
  ],
2734
2749
  cooperativeGestures: !0,
2735
2750
  locale: {
2736
- "CooperativeGesturesHandler.WindowsHelpText": l.t("cooperative_gestures.windows_zoom_help_text"),
2737
- "CooperativeGesturesHandler.MacHelpText": l.t("cooperative_gestures.mac_zoom_help_text"),
2738
- "CooperativeGesturesHandler.MobileHelpText": l.t("cooperative_gestures.mobile_zoom_help_text")
2751
+ "CooperativeGesturesHandler.WindowsHelpText": u.t("cooperative_gestures.windows_zoom_help_text"),
2752
+ "CooperativeGesturesHandler.MacHelpText": u.t("cooperative_gestures.mac_zoom_help_text"),
2753
+ "CooperativeGesturesHandler.MobileHelpText": u.t("cooperative_gestures.mobile_zoom_help_text")
2739
2754
  }
2740
2755
  };
2741
- return e.bounds && (s.bounds = e.bounds), s;
2742
- }), p = Ni(() => {
2743
- if (!h.value) return;
2744
- const s = h.value.getBounds(), m = s.getSouthWest(), _ = s.getNorthEast();
2745
- i("boundsChange", [
2746
- [m.lng, m.lat],
2747
- [_.lng, _.lat]
2756
+ return t.bounds && (e.bounds = t.bounds), e;
2757
+ }), g = ki(() => {
2758
+ if (!F.value) return;
2759
+ const e = F.value.getBounds(), i = e.getSouthWest(), l = e.getNorthEast();
2760
+ o("boundsChange", [
2761
+ [i.lng, i.lat],
2762
+ [l.lng, l.lat]
2748
2763
  ]);
2749
- }, 300), g = ma(
2750
- () => h.value?.getCanvas(),
2751
- { redraw: () => h.value?.redraw() }
2764
+ }, 300), D = la(
2765
+ () => F.value?.getCanvas(),
2766
+ { redraw: () => F.value?.redraw() }
2752
2767
  );
2753
- return Zr(() => {
2754
- g();
2755
- }), Jr(async () => {
2768
+ return Xr(() => {
2769
+ D();
2770
+ }), ea(async () => {
2771
+ L.value = ct(E.value);
2756
2772
  try {
2757
- const s = await a, m = await fetch(s), _ = new Uint8Array(await m.arrayBuffer()), x = Fi.decode(new Di(_));
2758
- E.value = x, h.value = new ea(I.value), h.value.on("load", () => {
2759
- h.value?.addSource("countries", {
2773
+ const e = await a, i = await fetch(e), l = new Uint8Array(await i.arrayBuffer()), w = ci.decode(new pi(l));
2774
+ O.value = w, F.value = new ra(s.value), F.value.on("load", () => {
2775
+ F.value?.addSource("countries", {
2760
2776
  type: "geojson",
2761
- data: x
2762
- }), h.value?.addLayer({
2777
+ data: w
2778
+ }), F.value?.addLayer({
2763
2779
  id: "countries-layer",
2764
2780
  type: "fill",
2765
2781
  source: "countries",
2766
- paint: O.value
2767
- }), h.value?.addSource("lakes", {
2782
+ paint: I.value
2783
+ }), F.value?.addSource("lakes", {
2768
2784
  type: "geojson",
2769
- data: _i
2770
- }), h.value?.addLayer({
2785
+ data: Bi
2786
+ }), F.value?.addLayer({
2771
2787
  id: "lakes-layer",
2772
2788
  type: "fill",
2773
2789
  source: "lakes",
2774
- paint: {
2775
- "fill-color": "#FFFFFF"
2776
- }
2777
- }), h.value?.on("mousemove", "countries-layer", (t) => {
2778
- const o = t.features?.[0];
2779
- if (o) {
2780
- const { iso_a2: u, iso_a2_eh: F, ISO_A2: T, admin: N } = o.properties, G = T ?? u === "-99" ? F : u, $ = e.countryMetrics[G];
2781
- $ !== void 0 && (S.value = {
2782
- label: N,
2783
- color: d($),
2784
- value: w($)
2785
- }, R.value = !0, L.value = {
2786
- left: `${t.point.x}px`,
2787
- top: `${t.point.y}px`
2790
+ paint: U.value
2791
+ }), F.value?.on("mousemove", "countries-layer", (x) => {
2792
+ const k = x.features?.[0];
2793
+ if (k) {
2794
+ const { iso_a2: G, iso_a2_eh: K, ISO_A2: R, admin: W } = k.properties, J = R ?? G === "-99" ? K : G, q = t.countryMetrics[J];
2795
+ q !== void 0 && (N.value = {
2796
+ label: W,
2797
+ color: y(q),
2798
+ value: T(q)
2799
+ }, P.value = !0, C.value = {
2800
+ left: `${x.point.x}px`,
2801
+ top: `${x.point.y}px`
2788
2802
  });
2789
2803
  }
2790
- }), h.value?.on("mouseleave", "countries-layer", () => {
2791
- R.value = !1;
2792
- }), h.value?.on("move", p), e.fitToCountry && z(e.fitToCountry);
2793
- }), h.value?.dragRotate.disable(), h.value?.keyboard.disable(), h.value?.touchZoomRotate.disableRotation();
2794
- } catch (s) {
2795
- console.error(s);
2804
+ }), F.value?.on("mouseleave", "countries-layer", () => {
2805
+ P.value = !1;
2806
+ }), F.value?.on("move", g), t.fitToCountry && _(t.fitToCountry);
2807
+ }), F.value?.dragRotate.disable(), F.value?.keyboard.disable(), F.value?.touchZoomRotate.disableRotation();
2808
+ } catch (e) {
2809
+ console.error(e);
2796
2810
  }
2797
- }), Xe(() => e.countryMetrics, () => {
2798
- h.value && h.value.isStyleLoaded() && (h.value.getLayer("countries-layer") && h.value.removeLayer("countries-layer"), h.value.addLayer({
2799
- id: "countries-layer",
2800
- type: "fill",
2801
- source: "countries",
2802
- paint: O.value
2803
- }), h.value.removeLayer("lakes-layer"), h.value?.addLayer({
2804
- id: "lakes-layer",
2805
- type: "fill",
2806
- source: "lakes",
2807
- paint: {
2808
- "fill-color": "#FFFFFF"
2809
- }
2810
- }));
2811
- }), Xe(() => e.fitToCountry, (s) => {
2812
- h.value && s ? z(s) : !I.value.center && !I.value.zoom ? h.value?.fitBounds([
2811
+ }), Pe(d, () => {
2812
+ L.value = ct(E.value);
2813
+ }), Pe([I, U], () => {
2814
+ F.value?.isStyleLoaded() && (F.value.getLayer("countries-layer") && F.value.setPaintProperty("countries-layer", "fill-color", I.value["fill-color"]), F.value.getLayer("lakes-layer") && F.value.setPaintProperty("lakes-layer", "fill-color", U.value["fill-color"]));
2815
+ }), Pe(() => t.fitToCountry, (e) => {
2816
+ F.value && e ? _(e) : !s.value.center && !s.value.zoom ? F.value?.fitBounds([
2813
2817
  [-180, -90],
2814
2818
  [180, 90]
2815
- ]) : (I.value.zoom && h.value?.setZoom(I.value.zoom), I.value.center && h.value?.flyTo({ center: I.value.center }));
2816
- }), Xe(() => e.bounds, (s, m) => {
2817
- if (!s) return;
2818
- const _ = s?.flat(), x = m?.flat();
2819
- !(_ && x && _.length === x.length && _.every((o, u) => Math.round(o * 100) / 100 === Math.round(x[u] * 100) / 100)) && h.value && h.value.fitBounds(s);
2820
- }), (s, m) => (W(), ne("div", Ai, [
2821
- P.value ? (W(), ne("div", Vi, [
2822
- et(s.$slots, "no-location-icon", {}, () => [
2823
- Qr(oe(ra), {
2824
- color: `var(--kui-icon-color-neutral, ${oe(ci)})`,
2825
- size: `var(--kui-icon-size-60, ${oe(di)})`
2819
+ ]) : (s.value.zoom && F.value?.setZoom(s.value.zoom), s.value.center && F.value?.flyTo({ center: s.value.center }));
2820
+ }), Pe(() => t.bounds, (e, i) => {
2821
+ if (!e) return;
2822
+ const l = e?.flat(), w = i?.flat();
2823
+ !(l && w && l.length === w.length && l.every((k, G) => Math.round(k * 100) / 100 === Math.round(w[G] * 100) / 100)) && F.value && F.value.fitBounds(e);
2824
+ }), (e, i) => (Q(), re("div", bi, [
2825
+ A.value ? (Q(), re("div", zi, [
2826
+ Xe(e.$slots, "no-location-icon", {}, () => [
2827
+ ta(le(aa), {
2828
+ color: `var(--kui-icon-color-neutral, ${le(yi)})`,
2829
+ size: `var(--kui-icon-size-60, ${le(hi)})`
2826
2830
  }, null, 8, ["color", "size"])
2827
2831
  ], !0),
2828
- X("div", Bi, [
2829
- et(s.$slots, "no-location-title", {}, () => [
2830
- Xr(ye(oe(l).t("no_location_data")), 1)
2832
+ te("div", Hi, [
2833
+ Xe(e.$slots, "no-location-title", {}, () => [
2834
+ na(_e(le(u).t("no_location_data")), 1)
2831
2835
  ], !0)
2832
2836
  ]),
2833
- X("div", zi, [
2834
- et(s.$slots, "no-location-description", {}, () => [
2835
- X("p", null, ye(oe(l).t("no_location_data_description")), 1)
2837
+ te("div", Yi, [
2838
+ Xe(e.$slots, "no-location-description", {}, () => [
2839
+ te("p", null, _e(le(u).t("no_location_data_description")), 1)
2836
2840
  ], !0)
2837
2841
  ])
2838
- ])) : xe("", !0),
2839
- X("div", {
2840
- id: oe(D),
2842
+ ])) : Me("", !0),
2843
+ te("div", {
2844
+ id: le(S),
2845
+ ref_key: "mapContainer",
2846
+ ref: E,
2841
2847
  class: "analytics-geo-map-container"
2842
- }, null, 8, bi),
2843
- C.value ? (W(), bt(Pi, {
2848
+ }, null, 8, $i),
2849
+ z.value ? (Q(), zt(Li, {
2844
2850
  key: 1,
2845
2851
  class: "legend-container",
2846
- data: oe(y),
2847
- metric: e.metric,
2848
- title: V.value
2849
- }, null, 8, ["data", "metric", "title"])) : xe("", !0),
2850
- R.value && S.value ? (W(), bt(Ui, {
2852
+ data: le(h),
2853
+ metric: t.metric,
2854
+ title: b.value
2855
+ }, null, 8, ["data", "metric", "title"])) : Me("", !0),
2856
+ P.value && N.value ? (Q(), zt(Ui, {
2851
2857
  key: 2,
2852
- data: S.value,
2853
- left: L.value.left,
2854
- "show-value": e.showTooltipValue,
2855
- top: L.value.top
2856
- }, null, 8, ["data", "left", "show-value", "top"])) : xe("", !0)
2858
+ data: N.value,
2859
+ left: C.value.left,
2860
+ "show-value": t.showTooltipValue,
2861
+ top: C.value.top
2862
+ }, null, 8, ["data", "left", "show-value", "top"])) : Me("", !0)
2857
2863
  ]));
2858
2864
  }
2859
- }), Wi = /* @__PURE__ */ ht(Hi, [["__scopeId", "data-v-71f48e24"]]);
2865
+ }), Qi = /* @__PURE__ */ ht(ji, [["__scopeId", "data-v-7dea982a"]]);
2860
2866
  export {
2861
- Wi as AnalyticsGeoMap,
2862
- Ni as debounce,
2863
- qi as exploreResultToCountryMetrics
2867
+ Qi as AnalyticsGeoMap,
2868
+ ki as debounce,
2869
+ Ji as exploreResultToCountryMetrics
2864
2870
  };