@kong-ui-public/analytics-utilities 12.35.0 → 12.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
1
  const et = "kapture:prepare", tt = "kapture:restore";
2
- async function _s() {
2
+ async function Ts() {
3
3
  const e = [];
4
4
  window.dispatchEvent(new CustomEvent(et, {
5
5
  detail: { waitUntil: (t) => e.push(t) }
6
6
  })), await Promise.allSettled(e);
7
7
  }
8
- function ws() {
8
+ function Ds() {
9
9
  window.dispatchEvent(new CustomEvent(tt));
10
10
  }
11
- function _a(e) {
11
+ function ba(e) {
12
12
  let t;
13
13
  const n = () => {
14
14
  t?.(), t = void 0;
@@ -23,8 +23,8 @@ function _a(e) {
23
23
  window.removeEventListener(et, r), window.removeEventListener(tt, n), n();
24
24
  };
25
25
  }
26
- function bs(e, t = {}) {
27
- return _a(async () => {
26
+ function Ms(e, t = {}) {
27
+ return ba(async () => {
28
28
  const n = e();
29
29
  if (!n)
30
30
  return;
@@ -35,9 +35,9 @@ function bs(e, t = {}) {
35
35
  };
36
36
  });
37
37
  }
38
- const Ts = 30 * 1e3, Ds = 1e3, Ms = "analytics-query-provider";
38
+ const Ss = 30 * 1e3, Os = 1e3, Es = "analytics-query-provider";
39
39
  var d = /* @__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))(d || {});
40
- const Ss = [
40
+ const vs = [
41
41
  "90d",
42
42
  "180d",
43
43
  "365d",
@@ -45,7 +45,7 @@ const Ss = [
45
45
  "previous_quarter",
46
46
  "current_year",
47
47
  "previous_year"
48
- ], Os = [
48
+ ], Ns = [
49
49
  "horizontal_bar",
50
50
  "vertical_bar",
51
51
  "timeseries_line",
@@ -56,7 +56,7 @@ const Ss = [
56
56
  "top_n",
57
57
  "table",
58
58
  "scatter"
59
- ], wa = ["in", "not_in", "selector"], Es = ["=", "!="], vs = ["=", "!=", "<", ">", "<=", ">="], ba = ["empty", "not_empty"], Ns = ["starts_with", "ends_with"], Rs = ["absolute", "relative"], Ps = [
59
+ ], Ta = ["in", "not_in", "selector"], Rs = ["=", "!="], Ps = ["=", "!=", "<", ">", "<=", ">="], Da = ["empty", "not_empty"], xs = ["starts_with", "ends_with"], Is = ["absolute", "relative"], Cs = [
60
60
  "15m",
61
61
  "1h",
62
62
  "6h",
@@ -68,7 +68,7 @@ const Ss = [
68
68
  "30d",
69
69
  "current_month",
70
70
  "previous_month"
71
- ], _n = [
71
+ ], bn = [
72
72
  "secondly",
73
73
  "tenSecondly",
74
74
  "thirtySecondly",
@@ -82,7 +82,7 @@ const Ss = [
82
82
  "daily",
83
83
  "weekly",
84
84
  "trend"
85
- ], V = (e) => e.filter((t) => t !== "time"), rt = [
85
+ ], z = (e) => e.filter((t) => t !== "time"), rt = [
86
86
  "api",
87
87
  "api_package",
88
88
  "api_product",
@@ -96,7 +96,7 @@ const Ss = [
96
96
  "status_code",
97
97
  "status_code_grouped",
98
98
  "time"
99
- ], Pe = V(rt), wn = [
99
+ ], Pe = z(rt), Tn = [
100
100
  "active_services",
101
101
  "error_rate",
102
102
  "request_count",
@@ -124,8 +124,8 @@ const Ss = [
124
124
  "realm",
125
125
  "portal_api",
126
126
  "principal"
127
- ], xe = V(at), bn = [
128
- ...wn,
127
+ ], xe = z(at), Dn = [
128
+ ...Tn,
129
129
  "cache_hit_rate",
130
130
  "response_latency_p99",
131
131
  "response_latency_p95",
@@ -152,7 +152,7 @@ const Ss = [
152
152
  "request_size_p50",
153
153
  "request_size_average",
154
154
  "request_size_sum"
155
- ], Tn = [
155
+ ], Mn = [
156
156
  "control_plane",
157
157
  "control_plane_group",
158
158
  "ai_gateway",
@@ -180,7 +180,7 @@ const Ss = [
180
180
  "ai_gateway_model",
181
181
  "ai_gateway_agent",
182
182
  "ai_gateway_data_plane_node"
183
- ], Ie = V(Tn), Ta = [
183
+ ], Ie = z(Mn), Ma = [
184
184
  "total_tokens",
185
185
  "total_tokens_per_minute",
186
186
  "prompt_tokens",
@@ -202,7 +202,7 @@ const Ss = [
202
202
  "time_per_token_p99",
203
203
  "time_per_token_p95",
204
204
  "time_per_token_p50"
205
- ], Da = [
205
+ ], Sa = [
206
206
  "a2a_context_id",
207
207
  "a2a_error",
208
208
  "a2a_method",
@@ -257,7 +257,7 @@ const Ss = [
257
257
  "upstream_uri",
258
258
  "upstream_status_code_grouped",
259
259
  "websocket"
260
- ], Ma = V(Da), Sa = [
260
+ ], Sn = z(Sa), Oa = [
261
261
  "auth_type",
262
262
  "cache_status",
263
263
  "client_ip",
@@ -274,7 +274,7 @@ const Ss = [
274
274
  "service_protocol",
275
275
  "trace_id",
276
276
  "upstream_uri"
277
- ], xs = Sa, Oa = [
277
+ ], Ea = Oa, va = [
278
278
  "ai_count",
279
279
  "latencies_response_ms",
280
280
  "latencies_upstream_ms",
@@ -285,14 +285,14 @@ const Ss = [
285
285
  "response_header_content_length",
286
286
  "status_code",
287
287
  "upstream_status_code"
288
- ], Ea = V(Oa), Is = [
288
+ ], On = z(va), As = [
289
289
  "15M",
290
290
  "1H",
291
291
  "6H",
292
292
  "12H",
293
293
  "24H",
294
294
  "7D"
295
- ], Wt = 1e3, va = ["platform", "platform_usage"], Cs = (e) => va.includes(e), Dn = [
295
+ ], zt = 1e3, Na = ["platform", "platform_usage"], ks = (e) => Na.includes(e), En = [
296
296
  ...at,
297
297
  "a2a_context_id",
298
298
  "a2a_error",
@@ -304,8 +304,8 @@ const Ss = [
304
304
  "mcp_method",
305
305
  "mcp_session_id",
306
306
  "mcp_tool_name"
307
- ], Ce = V(Dn), Na = [
308
- ...bn,
307
+ ], Ce = z(En), Ra = [
308
+ ...Dn,
309
309
  "a2a_latency_average",
310
310
  "a2a_response_size_sum",
311
311
  "mcp_latency_average",
@@ -313,7 +313,7 @@ const Ss = [
313
313
  "mcp_latency_p95",
314
314
  "mcp_latency_p50",
315
315
  "mcp_response_size_sum"
316
- ], Mn = [
316
+ ], vn = [
317
317
  "control_plane",
318
318
  "data_plane_group",
319
319
  "managed_cache",
@@ -321,12 +321,12 @@ const Ss = [
321
321
  "provider",
322
322
  "provider_region",
323
323
  "time"
324
- ], it = V(Mn), Ra = [
324
+ ], it = z(vn), Pa = [
325
325
  "cache_eviction_rate",
326
326
  "cache_expiration_rate",
327
327
  "cache_items_average",
328
328
  "cache_memory_utilization_max"
329
- ], As = ["basic", "api_usage", "llm_usage", "agentic_usage", "platform", "platform_usage", "managed_cache_usage"], Pa = {
329
+ ], Gs = ["basic", "api_usage", "llm_usage", "agentic_usage", "platform", "platform_usage", "managed_cache_usage"], xa = {
330
330
  basic: new Set(Pe),
331
331
  api_usage: new Set(xe),
332
332
  llm_usage: new Set(Ie),
@@ -335,7 +335,7 @@ const Ss = [
335
335
  platform: /* @__PURE__ */ new Set(),
336
336
  platform_usage: /* @__PURE__ */ new Set(),
337
337
  managed_cache_usage: new Set(it)
338
- }, ks = (e, t) => e.startsWith("goap") || e === "platform" || e === "platform_usage" ? t : t.filter((n) => Pa[e].has(n.field)), Sn = [
338
+ }, Ys = (e, t) => e.startsWith("goap") || e === "platform" || e === "platform_usage" ? t : t.filter((n) => xa[e].has(n.field)), Nn = [
339
339
  { code: "AF", name: "Afghanistan" },
340
340
  { code: "AX", name: "Aland Islands" },
341
341
  { code: "AL", name: "Albania" },
@@ -582,34 +582,35 @@ const Ss = [
582
582
  { code: "YE", name: "Yemen" },
583
583
  { code: "ZM", name: "Zambia" },
584
584
  { code: "ZW", name: "Zimbabwe" }
585
- ], Gs = [
585
+ ], Fs = [
586
586
  "horizontal_bar",
587
587
  "vertical_bar",
588
588
  "gauge",
589
589
  "donut",
590
590
  "timeseries_line",
591
591
  "timeseries_bar",
592
+ "scatter",
592
593
  "golden_signals",
593
594
  "top_n",
594
595
  "table",
595
596
  "slottable",
596
597
  "single_value",
597
598
  "choropleth_map"
598
- ], fe = {
599
+ ], ie = {
599
600
  type: "string"
600
- }, Y = {
601
+ }, I = {
601
602
  type: "string"
602
- }, On = {
603
+ }, ot = {
603
604
  type: "boolean"
604
- }, En = {
605
+ }, Rn = {
605
606
  type: "string",
606
607
  description: "Text rendered in the tile header. Supports the {timeframe} token, "
607
- }, xa = {
608
+ }, Ia = {
608
609
  type: "object",
609
610
  additionalProperties: {
610
611
  type: "string"
611
612
  }
612
- }, vn = {
613
+ }, st = {
613
614
  type: ["object", "array"],
614
615
  items: {
615
616
  type: "string"
@@ -617,7 +618,7 @@ const Ss = [
617
618
  additionalProperties: {
618
619
  type: "string"
619
620
  }
620
- }, Ia = {
621
+ }, Ca = {
621
622
  type: "object",
622
623
  deprecated: !0,
623
624
  description: "Deprecated: use the top-level tile shape { type: 'slottable', id, layout } instead of a chart-level 'slottable' definition.",
@@ -632,7 +633,7 @@ const Ss = [
632
633
  },
633
634
  required: ["type", "id"],
634
635
  additionalProperties: !1
635
- }, Ca = {
636
+ }, Aa = {
636
637
  type: "object",
637
638
  properties: {
638
639
  type: {
@@ -642,14 +643,14 @@ const Ss = [
642
643
  stacked: {
643
644
  type: "boolean"
644
645
  },
645
- chart_dataset_colors: vn,
646
- synthetics_data_key: fe,
647
- chart_title: Y,
648
- allow_csv_export: On
646
+ chart_dataset_colors: st,
647
+ synthetics_data_key: ie,
648
+ chart_title: I,
649
+ allow_csv_export: ot
649
650
  },
650
651
  required: ["type"],
651
652
  additionalProperties: !1
652
- }, Aa = {
653
+ }, ka = {
653
654
  type: "object",
654
655
  properties: {
655
656
  type: {
@@ -669,7 +670,7 @@ const Ss = [
669
670
  },
670
671
  required: ["type", "value"],
671
672
  additionalProperties: !1
672
- }, ka = {
673
+ }, Ga = {
673
674
  type: "object",
674
675
  properties: {
675
676
  type: {
@@ -683,17 +684,87 @@ const Ss = [
683
684
  type: "object",
684
685
  additionalProperties: {
685
686
  type: "array",
686
- items: Aa
687
+ items: ka
687
688
  }
688
689
  },
689
- chart_dataset_colors: vn,
690
- synthetics_data_key: fe,
691
- chart_title: Y,
692
- allow_csv_export: On
690
+ chart_dataset_colors: st,
691
+ synthetics_data_key: ie,
692
+ chart_title: I,
693
+ allow_csv_export: ot
693
694
  },
694
695
  required: ["type"],
695
696
  additionalProperties: !1
696
- }, Ga = {
697
+ }, Ya = {
698
+ type: "object",
699
+ properties: {
700
+ percentile: {
701
+ type: "number",
702
+ minimum: 0,
703
+ maximum: 100
704
+ },
705
+ label: {
706
+ type: "string",
707
+ description: "Overrides the default label."
708
+ },
709
+ border_dash: {
710
+ type: "array",
711
+ description: "Dash pattern for the line.",
712
+ items: {
713
+ type: "number"
714
+ }
715
+ },
716
+ color: {
717
+ type: "string"
718
+ }
719
+ },
720
+ required: ["percentile"],
721
+ additionalProperties: !1
722
+ }, Fa = {
723
+ type: "object",
724
+ description: "Plots one point per record, percentiles are computed from the records returned.",
725
+ properties: {
726
+ type: {
727
+ type: "string",
728
+ enum: ["scatter"]
729
+ },
730
+ percentile_lines: {
731
+ type: "array",
732
+ description: "Reference lines derived from the plotted values.",
733
+ items: Ya
734
+ },
735
+ outlier_percentile: {
736
+ type: "number",
737
+ description: "Percentile above which points are split into a highlighted outlier series.",
738
+ minimum: 0,
739
+ maximum: 100
740
+ },
741
+ shade_outlier_region: {
742
+ type: "boolean",
743
+ default: !1
744
+ },
745
+ jitter_ms: {
746
+ type: "number",
747
+ description: "Maximum horizontal jitter so records sharing a timestamp do not stack into one column.",
748
+ minimum: 0
749
+ },
750
+ point_radius: {
751
+ type: "number",
752
+ minimum: 0
753
+ },
754
+ point_opacity: {
755
+ type: "number",
756
+ description: "Opacity of plotted points.",
757
+ minimum: 0,
758
+ maximum: 1
759
+ },
760
+ chart_dataset_colors: st,
761
+ synthetics_data_key: ie,
762
+ chart_title: I,
763
+ allow_csv_export: ot
764
+ },
765
+ required: ["type"],
766
+ additionalProperties: !1
767
+ }, Ua = {
697
768
  type: "object",
698
769
  properties: {
699
770
  type: {
@@ -711,28 +782,28 @@ const Ss = [
711
782
  numerator: {
712
783
  type: "number"
713
784
  },
714
- synthetics_data_key: fe,
715
- chart_title: Y
785
+ synthetics_data_key: ie,
786
+ chart_title: I
716
787
  },
717
788
  required: ["type"],
718
789
  additionalProperties: !1
719
- }, Ya = {
790
+ }, Ha = {
720
791
  type: "object",
721
792
  properties: {
722
793
  type: {
723
794
  type: "string",
724
795
  enum: ["donut"]
725
796
  },
726
- synthetics_data_key: fe,
727
- chart_title: Y
797
+ synthetics_data_key: ie,
798
+ chart_title: I
728
799
  },
729
800
  required: ["type"],
730
801
  additionalProperties: !1
731
- }, Fa = {
802
+ }, La = {
732
803
  type: "object",
733
804
  properties: {
734
- chart_title: Y,
735
- synthetics_data_key: fe,
805
+ chart_title: I,
806
+ synthetics_data_key: ie,
736
807
  type: {
737
808
  type: "string",
738
809
  enum: ["top_n"]
@@ -745,25 +816,25 @@ const Ss = [
745
816
  entity_link: {
746
817
  type: "string"
747
818
  },
748
- entity_links: xa
819
+ entity_links: Ia
749
820
  },
750
821
  required: ["type"],
751
822
  additionalProperties: !1
752
- }, Ua = {
823
+ }, qa = {
753
824
  type: "object",
754
825
  properties: {
755
826
  type: {
756
827
  type: "string",
757
828
  enum: ["table"]
758
829
  },
759
- chart_title: Y
830
+ chart_title: I
760
831
  },
761
832
  required: ["type"],
762
833
  additionalProperties: !1
763
- }, Ha = {
834
+ }, Wa = {
764
835
  type: "object",
765
836
  properties: {
766
- chart_title: Y,
837
+ chart_title: I,
767
838
  type: {
768
839
  type: "string",
769
840
  enum: ["golden_signals"]
@@ -777,7 +848,7 @@ const Ss = [
777
848
  },
778
849
  required: ["type"],
779
850
  additionalProperties: !1
780
- }, La = {
851
+ }, ja = {
781
852
  type: "object",
782
853
  properties: {
783
854
  type: {
@@ -787,21 +858,21 @@ const Ss = [
787
858
  decimal_points: {
788
859
  type: "number"
789
860
  },
790
- chart_title: Y
861
+ chart_title: I
791
862
  },
792
863
  required: ["type"],
793
864
  additionalProperties: !1
794
- }, qa = {
865
+ }, za = {
795
866
  type: "object",
796
867
  properties: {
797
868
  type: {
798
869
  type: "string",
799
870
  enum: ["choropleth_map"]
800
871
  },
801
- chart_title: Y,
872
+ chart_title: I,
802
873
  fit_to_country: {
803
874
  type: "string",
804
- enum: Sn.map((e) => e.code)
875
+ enum: Nn.map((e) => e.code)
805
876
  },
806
877
  legend: {
807
878
  type: "boolean",
@@ -824,7 +895,7 @@ const Ss = [
824
895
  },
825
896
  required: ["type"],
826
897
  additionalProperties: !1
827
- }, Wa = {
898
+ }, Va = {
828
899
  type: "object",
829
900
  properties: {
830
901
  tz: {
@@ -846,7 +917,7 @@ const Ss = [
846
917
  "time_range"
847
918
  ],
848
919
  additionalProperties: !1
849
- }, ja = {
920
+ }, $a = {
850
921
  type: "object",
851
922
  description: "A duration representing an exact start and end time.",
852
923
  properties: {
@@ -872,18 +943,18 @@ const Ss = [
872
943
  "end"
873
944
  ],
874
945
  additionalProperties: !1
875
- }, re = {
946
+ }, V = {
876
947
  granularity: {
877
948
  type: "string",
878
949
  description: 'Force time grouping into buckets of this duration. Only has an effect if "time" is in the "dimensions" list.',
879
- enum: _n
950
+ enum: bn
880
951
  },
881
952
  time_range: {
882
953
  type: "object",
883
954
  description: "The time range to query.",
884
955
  anyOf: [
885
- Wa,
886
- ja
956
+ Va,
957
+ $a
887
958
  ],
888
959
  default: {
889
960
  type: "relative",
@@ -896,14 +967,14 @@ const Ss = [
896
967
  meta: {
897
968
  type: "object"
898
969
  }
899
- }, ae = (e) => ({
970
+ }, oe = (e) => ({
900
971
  type: "array",
901
972
  description: "List of aggregated metrics to collect across the requested time span.",
902
973
  items: {
903
974
  type: "string",
904
975
  ...e ? { enum: e } : {}
905
976
  }
906
- }), ie = (e) => ({
977
+ }), se = (e) => ({
907
978
  type: "array",
908
979
  description: "List of attributes or entity types to group by.",
909
980
  minItems: 0,
@@ -912,7 +983,7 @@ const Ss = [
912
983
  type: "string",
913
984
  ...e ? { enum: e } : {}
914
985
  }
915
- }), oe = (e) => ({
986
+ }), $ = (e) => ({
916
987
  type: "array",
917
988
  description: "A list of filters to apply to the query",
918
989
  items: {
@@ -927,7 +998,7 @@ const Ss = [
927
998
  },
928
999
  operator: {
929
1000
  type: "string",
930
- enum: wa
1001
+ enum: Ta
931
1002
  },
932
1003
  value: {
933
1004
  type: "array",
@@ -953,7 +1024,7 @@ const Ss = [
953
1024
  },
954
1025
  operator: {
955
1026
  type: "string",
956
- enum: ba
1027
+ enum: Da
957
1028
  }
958
1029
  },
959
1030
  required: [
@@ -964,7 +1035,7 @@ const Ss = [
964
1035
  }
965
1036
  ]
966
1037
  }
967
- }), Va = [
1038
+ }), Ba = [
968
1039
  "control_plane",
969
1040
  "gateway_service",
970
1041
  "realm",
@@ -977,7 +1048,7 @@ const Ss = [
977
1048
  "team",
978
1049
  "region",
979
1050
  "hostname"
980
- ], Nn = () => ({
1051
+ ], Pn = () => ({
981
1052
  type: "array",
982
1053
  description: "A list of filters to apply to the platform query",
983
1054
  items: {
@@ -1025,7 +1096,7 @@ const Ss = [
1025
1096
  }
1026
1097
  ]
1027
1098
  }
1028
- }), $a = {
1099
+ }), Qa = {
1029
1100
  type: "object",
1030
1101
  description: "A query to launch at the advanced explore API",
1031
1102
  properties: {
@@ -1035,14 +1106,14 @@ const Ss = [
1035
1106
  "api_usage"
1036
1107
  ]
1037
1108
  },
1038
- metrics: ae(bn),
1039
- dimensions: ie(at),
1040
- filters: oe(xe),
1041
- ...re
1109
+ metrics: oe(Dn),
1110
+ dimensions: se(at),
1111
+ filters: $(xe),
1112
+ ...V
1042
1113
  },
1043
1114
  required: ["datasource"],
1044
1115
  additionalProperties: !1
1045
- }, za = {
1116
+ }, Za = {
1046
1117
  type: "object",
1047
1118
  description: "A query to launch at the basic explore API",
1048
1119
  properties: {
@@ -1052,14 +1123,14 @@ const Ss = [
1052
1123
  "basic"
1053
1124
  ]
1054
1125
  },
1055
- metrics: ae(wn),
1056
- dimensions: ie(rt),
1057
- filters: oe(Pe),
1058
- ...re
1126
+ metrics: oe(Tn),
1127
+ dimensions: se(rt),
1128
+ filters: $(Pe),
1129
+ ...V
1059
1130
  },
1060
1131
  required: ["datasource"],
1061
1132
  additionalProperties: !1
1062
- }, Ba = {
1133
+ }, Xa = {
1063
1134
  type: "object",
1064
1135
  description: "A query to launch at the AI explore API",
1065
1136
  properties: {
@@ -1069,14 +1140,14 @@ const Ss = [
1069
1140
  "llm_usage"
1070
1141
  ]
1071
1142
  },
1072
- metrics: ae(Ta),
1073
- dimensions: ie(Tn),
1074
- filters: oe(Ie),
1075
- ...re
1143
+ metrics: oe(Ma),
1144
+ dimensions: se(Mn),
1145
+ filters: $(Ie),
1146
+ ...V
1076
1147
  },
1077
1148
  required: ["datasource"],
1078
1149
  additionalProperties: !1
1079
- }, Qa = {
1150
+ }, Ka = {
1080
1151
  type: "object",
1081
1152
  description: "A query to launch at the Agentic explore API",
1082
1153
  properties: {
@@ -1086,14 +1157,14 @@ const Ss = [
1086
1157
  "agentic_usage"
1087
1158
  ]
1088
1159
  },
1089
- metrics: ae(Na),
1090
- dimensions: ie(Dn),
1091
- filters: oe(Ce),
1092
- ...re
1160
+ metrics: oe(Ra),
1161
+ dimensions: se(En),
1162
+ filters: $(Ce),
1163
+ ...V
1093
1164
  },
1094
1165
  required: ["datasource"],
1095
1166
  additionalProperties: !1
1096
- }, Za = {
1167
+ }, Ja = {
1097
1168
  type: "object",
1098
1169
  description: "A query to launch at the Managed Cache explore API",
1099
1170
  properties: {
@@ -1103,14 +1174,14 @@ const Ss = [
1103
1174
  "managed_cache_usage"
1104
1175
  ]
1105
1176
  },
1106
- metrics: ae(Ra),
1107
- dimensions: ie(Mn),
1108
- filters: oe(it),
1109
- ...re
1177
+ metrics: oe(Pa),
1178
+ dimensions: se(vn),
1179
+ filters: $(it),
1180
+ ...V
1110
1181
  },
1111
1182
  required: ["datasource"],
1112
1183
  additionalProperties: !1
1113
- }, Rn = {
1184
+ }, xn = {
1114
1185
  oneOf: [
1115
1186
  {
1116
1187
  const: "platform_usage"
@@ -1121,23 +1192,23 @@ const Ss = [
1121
1192
  description: "Deprecated: use 'platform_usage'."
1122
1193
  }
1123
1194
  ]
1124
- }, Xa = {
1195
+ }, ei = {
1125
1196
  type: "object",
1126
1197
  description: "A query to launch at the platform dashboard API. Use datasource 'platform_usage'; 'platform' is accepted for backward compatibility but deprecated.",
1127
1198
  properties: {
1128
- datasource: Rn,
1129
- metrics: ae(),
1130
- dimensions: ie(),
1131
- filters: Nn(),
1132
- ...re
1199
+ datasource: xn,
1200
+ metrics: oe(),
1201
+ dimensions: se(),
1202
+ filters: Pn(),
1203
+ ...V
1133
1204
  },
1134
1205
  required: ["datasource"],
1135
1206
  additionalProperties: !1
1136
- }, Ka = {
1207
+ }, ti = {
1137
1208
  type: "object",
1138
1209
  description: "A query to launch at the platform tabular explore API. Use datasource 'platform_usage'; 'platform' is accepted for backward compatibility but deprecated.",
1139
1210
  properties: {
1140
- datasource: Rn,
1211
+ datasource: xn,
1141
1212
  entity: {
1142
1213
  type: "string"
1143
1214
  },
@@ -1148,7 +1219,7 @@ const Ss = [
1148
1219
  type: "string"
1149
1220
  }
1150
1221
  },
1151
- filters: Nn(),
1222
+ filters: Pn(),
1152
1223
  cursor: {
1153
1224
  type: "string"
1154
1225
  },
@@ -1158,60 +1229,93 @@ const Ss = [
1158
1229
  },
1159
1230
  required: ["datasource"],
1160
1231
  additionalProperties: !1
1161
- }, Pn = [
1162
- $a,
1163
- za,
1164
- Ba,
1232
+ }, Us = {
1233
+ type: "object",
1234
+ description: "A query for the api-requests endpoint.",
1235
+ properties: {
1236
+ datasource: {
1237
+ type: "string",
1238
+ enum: [
1239
+ "requests"
1240
+ ]
1241
+ },
1242
+ metric: {
1243
+ type: "string",
1244
+ description: "Field plotted on the y axis."
1245
+ },
1246
+ dimension: {
1247
+ type: "string",
1248
+ description: "Field used to split points into series."
1249
+ },
1250
+ filters: $(Array.from(/* @__PURE__ */ new Set([
1251
+ ...Sn,
1252
+ ...Ea,
1253
+ ...On
1254
+ ]))),
1255
+ time_range: V.time_range,
1256
+ max_records: {
1257
+ type: "number",
1258
+ description: "Ceiling on records gathered across pages. The endpoint serves at most 1000 per page. Defaults to 10000.",
1259
+ minimum: 1
1260
+ }
1261
+ },
1262
+ required: ["datasource", "metric"],
1263
+ additionalProperties: !1
1264
+ }, In = [
1165
1265
  Qa,
1166
1266
  Za,
1167
- Xa
1168
- ], Ja = {
1169
- anyOf: Pn
1170
- }, xn = [
1171
- Ka
1172
- ], ei = {
1173
- anyOf: xn
1174
- }, Ys = {
1267
+ Xa,
1268
+ Ka,
1269
+ Ja,
1270
+ ei
1271
+ ], ni = {
1272
+ anyOf: In
1273
+ }, Cn = [
1274
+ ti
1275
+ ], ri = {
1276
+ anyOf: Cn
1277
+ }, Hs = {
1175
1278
  anyOf: [
1176
- ...Pn,
1177
- ...xn
1279
+ ...In,
1280
+ ...Cn
1178
1281
  ]
1179
- }, ti = {
1282
+ }, ai = {
1180
1283
  anyOf: [
1181
- Ca,
1182
- Ga,
1183
- Ya,
1184
- ka,
1284
+ Aa,
1285
+ Ua,
1185
1286
  Ha,
1287
+ Ga,
1186
1288
  Fa,
1187
- Ia,
1289
+ Wa,
1188
1290
  La,
1189
- qa
1291
+ Ca,
1292
+ ja,
1293
+ za
1190
1294
  ]
1191
- }, ni = {
1295
+ }, ii = {
1192
1296
  type: "object",
1193
1297
  properties: {
1194
- query: Ja,
1195
- chart: ti,
1196
- header_description: En
1298
+ query: ni,
1299
+ chart: ai,
1300
+ header_description: Rn
1197
1301
  },
1198
1302
  required: ["query", "chart"],
1199
1303
  additionalProperties: !1
1200
- }, ri = {
1304
+ }, oi = {
1201
1305
  type: "object",
1202
1306
  properties: {
1203
- query: ei,
1204
- chart: Ua,
1205
- header_description: En
1307
+ query: ri,
1308
+ chart: qa,
1309
+ header_description: Rn
1206
1310
  },
1207
1311
  required: ["query", "chart"],
1208
1312
  additionalProperties: !1
1209
- }, ai = {
1313
+ }, si = {
1210
1314
  anyOf: [
1211
- ni,
1212
- ri
1315
+ ii,
1316
+ oi
1213
1317
  ]
1214
- }, In = {
1318
+ }, An = {
1215
1319
  type: "object",
1216
1320
  properties: {
1217
1321
  position: {
@@ -1248,15 +1352,15 @@ const Ss = [
1248
1352
  },
1249
1353
  required: ["position", "size"],
1250
1354
  additionalProperties: !1
1251
- }, ii = {
1355
+ }, ci = {
1252
1356
  type: "object",
1253
1357
  properties: {
1254
1358
  type: {
1255
1359
  type: "string",
1256
1360
  enum: ["chart"]
1257
1361
  },
1258
- definition: ai,
1259
- layout: In,
1362
+ definition: si,
1363
+ layout: An,
1260
1364
  id: {
1261
1365
  type: "string",
1262
1366
  description: "Unique identifier for the tile. If not provided, one will be generated."
@@ -1264,7 +1368,7 @@ const Ss = [
1264
1368
  },
1265
1369
  required: ["type", "definition", "layout"],
1266
1370
  additionalProperties: !1
1267
- }, oi = {
1371
+ }, ui = {
1268
1372
  type: "object",
1269
1373
  description: "A tile that renders arbitrary content into a named slot instead of a chart. The slot name is the tile `id`.",
1270
1374
  properties: {
@@ -1276,21 +1380,21 @@ const Ss = [
1276
1380
  type: "string",
1277
1381
  description: "Unique identifier for the tile, and the name of the slot the host application should supply."
1278
1382
  },
1279
- layout: In
1383
+ layout: An
1280
1384
  },
1281
1385
  required: ["type", "id", "layout"],
1282
1386
  additionalProperties: !1
1283
- }, si = {
1387
+ }, li = {
1284
1388
  anyOf: [
1285
- ii,
1286
- oi
1389
+ ci,
1390
+ ui
1287
1391
  ]
1288
- }, Fs = {
1392
+ }, Ls = {
1289
1393
  type: "object",
1290
1394
  properties: {
1291
1395
  tiles: {
1292
1396
  type: "array",
1293
- items: si
1397
+ items: li
1294
1398
  },
1295
1399
  tile_height: {
1296
1400
  type: "number",
@@ -1300,13 +1404,13 @@ const Ss = [
1300
1404
  type: "number",
1301
1405
  description: "Number of columns in the dashboard grid."
1302
1406
  },
1303
- preset_filters: oe([
1407
+ preset_filters: $([
1304
1408
  .../* @__PURE__ */ new Set([
1305
1409
  ...xe,
1306
1410
  ...Pe,
1307
1411
  ...Ie,
1308
1412
  ...Ce,
1309
- ...Va,
1413
+ ...Ba,
1310
1414
  ...it
1311
1415
  ])
1312
1416
  ]),
@@ -1317,10 +1421,10 @@ const Ss = [
1317
1421
  },
1318
1422
  required: ["tiles"],
1319
1423
  additionalProperties: !1
1320
- }, Us = (e) => {
1424
+ }, qs = (e) => {
1321
1425
  const t = [];
1322
- return Pe.includes(e) && t.push("basic"), xe.includes(e) && t.push("api_usage"), Ie.includes(e) && t.push("llm_usage"), Ce.includes(e) && t.push("agentic_usage"), (Ma.includes(e) || Ea.includes(e)) && t.push("requests"), t;
1323
- }, ci = {
1426
+ return Pe.includes(e) && t.push("basic"), xe.includes(e) && t.push("api_usage"), Ie.includes(e) && t.push("llm_usage"), Ce.includes(e) && t.push("agentic_usage"), (Sn.includes(e) || On.includes(e)) && t.push("requests"), t;
1427
+ }, di = {
1324
1428
  lessThanXSeconds: {
1325
1429
  one: "less than a second",
1326
1430
  other: "less than {{count}} seconds"
@@ -1382,54 +1486,54 @@ const Ss = [
1382
1486
  one: "almost 1 year",
1383
1487
  other: "almost {{count}} years"
1384
1488
  }
1385
- }, ui = (e, t, n) => {
1489
+ }, mi = (e, t, n) => {
1386
1490
  let r;
1387
- const i = ci[e];
1491
+ const i = di[e];
1388
1492
  return typeof i == "string" ? r = i : t === 1 ? r = i.one : r = i.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
1389
1493
  };
1390
- function ze(e) {
1494
+ function $e(e) {
1391
1495
  return (t = {}) => {
1392
1496
  const n = t.width ? String(t.width) : e.defaultWidth;
1393
1497
  return e.formats[n] || e.formats[e.defaultWidth];
1394
1498
  };
1395
1499
  }
1396
- const li = {
1500
+ const fi = {
1397
1501
  full: "EEEE, MMMM do, y",
1398
1502
  long: "MMMM do, y",
1399
1503
  medium: "MMM d, y",
1400
1504
  short: "MM/dd/yyyy"
1401
- }, di = {
1505
+ }, hi = {
1402
1506
  full: "h:mm:ss a zzzz",
1403
1507
  long: "h:mm:ss a z",
1404
1508
  medium: "h:mm:ss a",
1405
1509
  short: "h:mm a"
1406
- }, mi = {
1510
+ }, pi = {
1407
1511
  full: "{{date}} 'at' {{time}}",
1408
1512
  long: "{{date}} 'at' {{time}}",
1409
1513
  medium: "{{date}}, {{time}}",
1410
1514
  short: "{{date}}, {{time}}"
1411
- }, fi = {
1412
- date: ze({
1413
- formats: li,
1515
+ }, yi = {
1516
+ date: $e({
1517
+ formats: fi,
1414
1518
  defaultWidth: "full"
1415
1519
  }),
1416
- time: ze({
1417
- formats: di,
1520
+ time: $e({
1521
+ formats: hi,
1418
1522
  defaultWidth: "full"
1419
1523
  }),
1420
- dateTime: ze({
1421
- formats: mi,
1524
+ dateTime: $e({
1525
+ formats: pi,
1422
1526
  defaultWidth: "full"
1423
1527
  })
1424
- }, hi = {
1528
+ }, gi = {
1425
1529
  lastWeek: "'last' eeee 'at' p",
1426
1530
  yesterday: "'yesterday at' p",
1427
1531
  today: "'today at' p",
1428
1532
  tomorrow: "'tomorrow at' p",
1429
1533
  nextWeek: "eeee 'at' p",
1430
1534
  other: "P"
1431
- }, pi = (e, t, n, r) => hi[e];
1432
- function ue(e) {
1535
+ }, _i = (e, t, n, r) => gi[e];
1536
+ function le(e) {
1433
1537
  return (t, n) => {
1434
1538
  const r = n?.context ? String(n.context) : "standalone";
1435
1539
  let i;
@@ -1444,15 +1548,15 @@ function ue(e) {
1444
1548
  return i[o];
1445
1549
  };
1446
1550
  }
1447
- const yi = {
1551
+ const wi = {
1448
1552
  narrow: ["B", "A"],
1449
1553
  abbreviated: ["BC", "AD"],
1450
1554
  wide: ["Before Christ", "Anno Domini"]
1451
- }, gi = {
1555
+ }, bi = {
1452
1556
  narrow: ["1", "2", "3", "4"],
1453
1557
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
1454
1558
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
1455
- }, _i = {
1559
+ }, Ti = {
1456
1560
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
1457
1561
  abbreviated: [
1458
1562
  "Jan",
@@ -1482,7 +1586,7 @@ const yi = {
1482
1586
  "November",
1483
1587
  "December"
1484
1588
  ]
1485
- }, wi = {
1589
+ }, Di = {
1486
1590
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
1487
1591
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
1488
1592
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -1495,7 +1599,7 @@ const yi = {
1495
1599
  "Friday",
1496
1600
  "Saturday"
1497
1601
  ]
1498
- }, bi = {
1602
+ }, Mi = {
1499
1603
  narrow: {
1500
1604
  am: "a",
1501
1605
  pm: "p",
@@ -1526,7 +1630,7 @@ const yi = {
1526
1630
  evening: "evening",
1527
1631
  night: "night"
1528
1632
  }
1529
- }, Ti = {
1633
+ }, Si = {
1530
1634
  narrow: {
1531
1635
  am: "a",
1532
1636
  pm: "p",
@@ -1557,7 +1661,7 @@ const yi = {
1557
1661
  evening: "in the evening",
1558
1662
  night: "at night"
1559
1663
  }
1560
- }, Di = (e, t) => {
1664
+ }, Oi = (e, t) => {
1561
1665
  const n = Number(e), r = n % 100;
1562
1666
  if (r > 20 || r < 10)
1563
1667
  switch (r % 10) {
@@ -1569,40 +1673,40 @@ const yi = {
1569
1673
  return n + "rd";
1570
1674
  }
1571
1675
  return n + "th";
1572
- }, Mi = {
1573
- ordinalNumber: Di,
1574
- era: ue({
1575
- values: yi,
1676
+ }, Ei = {
1677
+ ordinalNumber: Oi,
1678
+ era: le({
1679
+ values: wi,
1576
1680
  defaultWidth: "wide"
1577
1681
  }),
1578
- quarter: ue({
1579
- values: gi,
1682
+ quarter: le({
1683
+ values: bi,
1580
1684
  defaultWidth: "wide",
1581
1685
  argumentCallback: (e) => e - 1
1582
1686
  }),
1583
- month: ue({
1584
- values: _i,
1687
+ month: le({
1688
+ values: Ti,
1585
1689
  defaultWidth: "wide"
1586
1690
  }),
1587
- day: ue({
1588
- values: wi,
1691
+ day: le({
1692
+ values: Di,
1589
1693
  defaultWidth: "wide"
1590
1694
  }),
1591
- dayPeriod: ue({
1592
- values: bi,
1695
+ dayPeriod: le({
1696
+ values: Mi,
1593
1697
  defaultWidth: "wide",
1594
- formattingValues: Ti,
1698
+ formattingValues: Si,
1595
1699
  defaultFormattingWidth: "wide"
1596
1700
  })
1597
1701
  };
1598
- function le(e) {
1702
+ function de(e) {
1599
1703
  return (t, n = {}) => {
1600
1704
  const r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], o = t.match(i);
1601
1705
  if (!o)
1602
1706
  return null;
1603
- const c = o[0], l = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], f = Array.isArray(l) ? Oi(l, (y) => y.test(c)) : (
1707
+ const c = o[0], l = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], f = Array.isArray(l) ? Ni(l, (y) => y.test(c)) : (
1604
1708
  // [TODO] -- I challenge you to fix the type
1605
- Si(l, (y) => y.test(c))
1709
+ vi(l, (y) => y.test(c))
1606
1710
  );
1607
1711
  let h;
1608
1712
  h = e.valueCallback ? e.valueCallback(f) : f, h = n.valueCallback ? (
@@ -1613,17 +1717,17 @@ function le(e) {
1613
1717
  return { value: h, rest: p };
1614
1718
  };
1615
1719
  }
1616
- function Si(e, t) {
1720
+ function vi(e, t) {
1617
1721
  for (const n in e)
1618
1722
  if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
1619
1723
  return n;
1620
1724
  }
1621
- function Oi(e, t) {
1725
+ function Ni(e, t) {
1622
1726
  for (let n = 0; n < e.length; n++)
1623
1727
  if (t(e[n]))
1624
1728
  return n;
1625
1729
  }
1626
- function Ei(e) {
1730
+ function Ri(e) {
1627
1731
  return (t, n = {}) => {
1628
1732
  const r = t.match(e.matchPattern);
1629
1733
  if (!r) return null;
@@ -1635,23 +1739,23 @@ function Ei(e) {
1635
1739
  return { value: c, rest: l };
1636
1740
  };
1637
1741
  }
1638
- const vi = /^(\d+)(th|st|nd|rd)?/i, Ni = /\d+/i, Ri = {
1742
+ const Pi = /^(\d+)(th|st|nd|rd)?/i, xi = /\d+/i, Ii = {
1639
1743
  narrow: /^(b|a)/i,
1640
1744
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1641
1745
  wide: /^(before christ|before common era|anno domini|common era)/i
1642
- }, Pi = {
1746
+ }, Ci = {
1643
1747
  any: [/^b/i, /^(a|c)/i]
1644
- }, xi = {
1748
+ }, Ai = {
1645
1749
  narrow: /^[1234]/i,
1646
1750
  abbreviated: /^q[1234]/i,
1647
1751
  wide: /^[1234](th|st|nd|rd)? quarter/i
1648
- }, Ii = {
1752
+ }, ki = {
1649
1753
  any: [/1/i, /2/i, /3/i, /4/i]
1650
- }, Ci = {
1754
+ }, Gi = {
1651
1755
  narrow: /^[jfmasond]/i,
1652
1756
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1653
1757
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1654
- }, Ai = {
1758
+ }, Yi = {
1655
1759
  narrow: [
1656
1760
  /^j/i,
1657
1761
  /^f/i,
@@ -1680,18 +1784,18 @@ const vi = /^(\d+)(th|st|nd|rd)?/i, Ni = /\d+/i, Ri = {
1680
1784
  /^n/i,
1681
1785
  /^d/i
1682
1786
  ]
1683
- }, ki = {
1787
+ }, Fi = {
1684
1788
  narrow: /^[smtwf]/i,
1685
1789
  short: /^(su|mo|tu|we|th|fr|sa)/i,
1686
1790
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1687
1791
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1688
- }, Gi = {
1792
+ }, Ui = {
1689
1793
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1690
1794
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1691
- }, Yi = {
1795
+ }, Hi = {
1692
1796
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1693
1797
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1694
- }, Fi = {
1798
+ }, Li = {
1695
1799
  any: {
1696
1800
  am: /^a/i,
1697
1801
  pm: /^p/i,
@@ -1702,67 +1806,67 @@ const vi = /^(\d+)(th|st|nd|rd)?/i, Ni = /\d+/i, Ri = {
1702
1806
  evening: /evening/i,
1703
1807
  night: /night/i
1704
1808
  }
1705
- }, Ui = {
1706
- ordinalNumber: Ei({
1707
- matchPattern: vi,
1708
- parsePattern: Ni,
1809
+ }, qi = {
1810
+ ordinalNumber: Ri({
1811
+ matchPattern: Pi,
1812
+ parsePattern: xi,
1709
1813
  valueCallback: (e) => parseInt(e, 10)
1710
1814
  }),
1711
- era: le({
1712
- matchPatterns: Ri,
1815
+ era: de({
1816
+ matchPatterns: Ii,
1713
1817
  defaultMatchWidth: "wide",
1714
- parsePatterns: Pi,
1818
+ parsePatterns: Ci,
1715
1819
  defaultParseWidth: "any"
1716
1820
  }),
1717
- quarter: le({
1718
- matchPatterns: xi,
1821
+ quarter: de({
1822
+ matchPatterns: Ai,
1719
1823
  defaultMatchWidth: "wide",
1720
- parsePatterns: Ii,
1824
+ parsePatterns: ki,
1721
1825
  defaultParseWidth: "any",
1722
1826
  valueCallback: (e) => e + 1
1723
1827
  }),
1724
- month: le({
1725
- matchPatterns: Ci,
1828
+ month: de({
1829
+ matchPatterns: Gi,
1726
1830
  defaultMatchWidth: "wide",
1727
- parsePatterns: Ai,
1831
+ parsePatterns: Yi,
1728
1832
  defaultParseWidth: "any"
1729
1833
  }),
1730
- day: le({
1731
- matchPatterns: ki,
1834
+ day: de({
1835
+ matchPatterns: Fi,
1732
1836
  defaultMatchWidth: "wide",
1733
- parsePatterns: Gi,
1837
+ parsePatterns: Ui,
1734
1838
  defaultParseWidth: "any"
1735
1839
  }),
1736
- dayPeriod: le({
1737
- matchPatterns: Yi,
1840
+ dayPeriod: de({
1841
+ matchPatterns: Hi,
1738
1842
  defaultMatchWidth: "any",
1739
- parsePatterns: Fi,
1843
+ parsePatterns: Li,
1740
1844
  defaultParseWidth: "any"
1741
1845
  })
1742
- }, Hi = {
1846
+ }, Wi = {
1743
1847
  code: "en-US",
1744
- formatDistance: ui,
1745
- formatLong: fi,
1746
- formatRelative: pi,
1747
- localize: Mi,
1748
- match: Ui,
1848
+ formatDistance: mi,
1849
+ formatLong: yi,
1850
+ formatRelative: _i,
1851
+ localize: Ei,
1852
+ match: qi,
1749
1853
  options: {
1750
1854
  weekStartsOn: 0,
1751
1855
  firstWeekContainsDate: 1
1752
1856
  }
1753
1857
  };
1754
- let Li = {};
1858
+ let ji = {};
1755
1859
  function he() {
1756
- return Li;
1860
+ return ji;
1757
1861
  }
1758
- const Cn = 6048e5, qi = 864e5, Wi = 60, ji = 3600, jt = /* @__PURE__ */ Symbol.for("constructDateFrom");
1862
+ const kn = 6048e5, zi = 864e5, Vi = 60, $i = 3600, Vt = /* @__PURE__ */ Symbol.for("constructDateFrom");
1759
1863
  function R(e, t) {
1760
- return typeof e == "function" ? e(t) : e && typeof e == "object" && jt in e ? e[jt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
1864
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && Vt in e ? e[Vt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
1761
1865
  }
1762
1866
  function M(e, t) {
1763
1867
  return R(t || e, e);
1764
1868
  }
1765
- function Vt(e) {
1869
+ function $t(e) {
1766
1870
  const t = M(e), n = new Date(
1767
1871
  Date.UTC(
1768
1872
  t.getFullYear(),
@@ -1776,41 +1880,41 @@ function Vt(e) {
1776
1880
  );
1777
1881
  return n.setUTCFullYear(t.getFullYear()), +e - +n;
1778
1882
  }
1779
- function Vi(e, ...t) {
1883
+ function Bi(e, ...t) {
1780
1884
  const n = R.bind(
1781
1885
  null,
1782
1886
  t.find((r) => typeof r == "object")
1783
1887
  );
1784
1888
  return t.map(n);
1785
1889
  }
1786
- function ee(e, t) {
1890
+ function ne(e, t) {
1787
1891
  const n = M(e, t?.in);
1788
1892
  return n.setHours(0, 0, 0, 0), n;
1789
1893
  }
1790
- function $i(e, t, n) {
1791
- const [r, i] = Vi(
1894
+ function Qi(e, t, n) {
1895
+ const [r, i] = Bi(
1792
1896
  n?.in,
1793
1897
  e,
1794
1898
  t
1795
- ), o = ee(r), c = ee(i), l = +o - Vt(o), f = +c - Vt(c);
1796
- return Math.round((l - f) / qi);
1899
+ ), o = ne(r), c = ne(i), l = +o - $t(o), f = +c - $t(c);
1900
+ return Math.round((l - f) / zi);
1797
1901
  }
1798
- function zi(e, t) {
1902
+ function Zi(e, t) {
1799
1903
  const n = M(e, t?.in);
1800
1904
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
1801
1905
  }
1802
- function Bi(e, t) {
1906
+ function Xi(e, t) {
1803
1907
  const n = M(e, t?.in);
1804
- return $i(n, zi(n)) + 1;
1908
+ return Qi(n, Zi(n)) + 1;
1805
1909
  }
1806
- function G(e, t) {
1910
+ function Y(e, t) {
1807
1911
  const n = he(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = M(e, t?.in), o = i.getDay(), c = (o < r ? 7 : 0) + o - r;
1808
1912
  return i.setDate(i.getDate() - c), i.setHours(0, 0, 0, 0), i;
1809
1913
  }
1810
1914
  function Ee(e, t) {
1811
- return G(e, { ...t, weekStartsOn: 1 });
1915
+ return Y(e, { ...t, weekStartsOn: 1 });
1812
1916
  }
1813
- function An(e, t) {
1917
+ function Gn(e, t) {
1814
1918
  const n = M(e, t?.in), r = n.getFullYear(), i = R(n, 0);
1815
1919
  i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
1816
1920
  const o = Ee(i), c = R(n, 0);
@@ -1818,29 +1922,29 @@ function An(e, t) {
1818
1922
  const l = Ee(c);
1819
1923
  return n.getTime() >= o.getTime() ? r + 1 : n.getTime() >= l.getTime() ? r : r - 1;
1820
1924
  }
1821
- function Qi(e, t) {
1822
- const n = An(e, t), r = R(e, 0);
1925
+ function Ki(e, t) {
1926
+ const n = Gn(e, t), r = R(e, 0);
1823
1927
  return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Ee(r);
1824
1928
  }
1825
- function Zi(e, t) {
1826
- const n = M(e, t?.in), r = +Ee(n) - +Qi(n);
1827
- return Math.round(r / Cn) + 1;
1929
+ function Ji(e, t) {
1930
+ const n = M(e, t?.in), r = +Ee(n) - +Ki(n);
1931
+ return Math.round(r / kn) + 1;
1828
1932
  }
1829
- function kn(e, t) {
1933
+ function Yn(e, t) {
1830
1934
  const n = M(e, t?.in), r = n.getFullYear(), i = he(), o = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, c = R(t?.in || e, 0);
1831
1935
  c.setFullYear(r + 1, 0, o), c.setHours(0, 0, 0, 0);
1832
- const l = G(c, t), f = R(t?.in || e, 0);
1936
+ const l = Y(c, t), f = R(t?.in || e, 0);
1833
1937
  f.setFullYear(r, 0, o), f.setHours(0, 0, 0, 0);
1834
- const h = G(f, t);
1938
+ const h = Y(f, t);
1835
1939
  return +n >= +l ? r + 1 : +n >= +h ? r : r - 1;
1836
1940
  }
1837
- function Xi(e, t) {
1838
- const n = he(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = kn(e, t), o = R(t?.in || e, 0);
1839
- return o.setFullYear(i, 0, r), o.setHours(0, 0, 0, 0), G(o, t);
1941
+ function eo(e, t) {
1942
+ const n = he(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = Yn(e, t), o = R(t?.in || e, 0);
1943
+ return o.setFullYear(i, 0, r), o.setHours(0, 0, 0, 0), Y(o, t);
1840
1944
  }
1841
- function Ki(e, t) {
1842
- const n = M(e, t?.in), r = +G(n, t) - +Xi(n, t);
1843
- return Math.round(r / Cn) + 1;
1945
+ function to(e, t) {
1946
+ const n = M(e, t?.in), r = +Y(n, t) - +eo(n, t);
1947
+ return Math.round(r / kn) + 1;
1844
1948
  }
1845
1949
  function w(e, t) {
1846
1950
  const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
@@ -1899,14 +2003,14 @@ const U = {
1899
2003
  );
1900
2004
  return w(i, t.length);
1901
2005
  }
1902
- }, X = {
2006
+ }, J = {
1903
2007
  midnight: "midnight",
1904
2008
  noon: "noon",
1905
2009
  morning: "morning",
1906
2010
  afternoon: "afternoon",
1907
2011
  evening: "evening",
1908
2012
  night: "night"
1909
- }, $t = {
2013
+ }, Bt = {
1910
2014
  // Era
1911
2015
  G: function(e, t, n) {
1912
2016
  const r = e.getFullYear() > 0 ? 1 : 0;
@@ -1933,7 +2037,7 @@ const U = {
1933
2037
  },
1934
2038
  // Local week-numbering year
1935
2039
  Y: function(e, t, n, r) {
1936
- const i = kn(e, r), o = i > 0 ? i : 1 - i;
2040
+ const i = Yn(e, r), o = i > 0 ? i : 1 - i;
1937
2041
  if (t === "YY") {
1938
2042
  const c = o % 100;
1939
2043
  return w(c, 2);
@@ -1942,7 +2046,7 @@ const U = {
1942
2046
  },
1943
2047
  // ISO week-numbering year
1944
2048
  R: function(e, t) {
1945
- const n = An(e);
2049
+ const n = Gn(e);
1946
2050
  return w(n, t.length);
1947
2051
  },
1948
2052
  // Extended year. This is a single number designating the year of this calendar system.
@@ -2079,12 +2183,12 @@ const U = {
2079
2183
  },
2080
2184
  // Local week of year
2081
2185
  w: function(e, t, n, r) {
2082
- const i = Ki(e, r);
2186
+ const i = to(e, r);
2083
2187
  return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : w(i, t.length);
2084
2188
  },
2085
2189
  // ISO week of year
2086
2190
  I: function(e, t, n) {
2087
- const r = Zi(e);
2191
+ const r = Ji(e);
2088
2192
  return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : w(r, t.length);
2089
2193
  },
2090
2194
  // Day of the month
@@ -2093,7 +2197,7 @@ const U = {
2093
2197
  },
2094
2198
  // Day of year
2095
2199
  D: function(e, t, n) {
2096
- const r = Bi(e);
2200
+ const r = Xi(e);
2097
2201
  return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : w(r, t.length);
2098
2202
  },
2099
2203
  // Day of week
@@ -2270,7 +2374,7 @@ const U = {
2270
2374
  b: function(e, t, n) {
2271
2375
  const r = e.getHours();
2272
2376
  let i;
2273
- switch (r === 12 ? i = X.noon : r === 0 ? i = X.midnight : i = r / 12 >= 1 ? "pm" : "am", t) {
2377
+ switch (r === 12 ? i = J.noon : r === 0 ? i = J.midnight : i = r / 12 >= 1 ? "pm" : "am", t) {
2274
2378
  case "b":
2275
2379
  case "bb":
2276
2380
  return n.dayPeriod(i, {
@@ -2298,7 +2402,7 @@ const U = {
2298
2402
  B: function(e, t, n) {
2299
2403
  const r = e.getHours();
2300
2404
  let i;
2301
- switch (r >= 17 ? i = X.evening : r >= 12 ? i = X.afternoon : r >= 4 ? i = X.morning : i = X.night, t) {
2405
+ switch (r >= 17 ? i = J.evening : r >= 12 ? i = J.afternoon : r >= 4 ? i = J.morning : i = J.night, t) {
2302
2406
  case "B":
2303
2407
  case "BB":
2304
2408
  case "BBB":
@@ -2360,7 +2464,7 @@ const U = {
2360
2464
  switch (t) {
2361
2465
  // Hours and optional minutes
2362
2466
  case "X":
2363
- return Bt(r);
2467
+ return Zt(r);
2364
2468
  // Hours, minutes and optional seconds without `:` delimiter
2365
2469
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2366
2470
  // so this token always has the same output as `XX`
@@ -2378,7 +2482,7 @@ const U = {
2378
2482
  switch (t) {
2379
2483
  // Hours and optional minutes
2380
2484
  case "x":
2381
- return Bt(r);
2485
+ return Zt(r);
2382
2486
  // Hours, minutes and optional seconds without `:` delimiter
2383
2487
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2384
2488
  // so this token always has the same output as `xx`
@@ -2398,7 +2502,7 @@ const U = {
2398
2502
  case "O":
2399
2503
  case "OO":
2400
2504
  case "OOO":
2401
- return "GMT" + zt(r, ":");
2505
+ return "GMT" + Qt(r, ":");
2402
2506
  default:
2403
2507
  return "GMT" + j(r, ":");
2404
2508
  }
@@ -2411,7 +2515,7 @@ const U = {
2411
2515
  case "z":
2412
2516
  case "zz":
2413
2517
  case "zzz":
2414
- return "GMT" + zt(r, ":");
2518
+ return "GMT" + Qt(r, ":");
2415
2519
  default:
2416
2520
  return "GMT" + j(r, ":");
2417
2521
  }
@@ -2426,18 +2530,18 @@ const U = {
2426
2530
  return w(+e, t.length);
2427
2531
  }
2428
2532
  };
2429
- function zt(e, t = "") {
2533
+ function Qt(e, t = "") {
2430
2534
  const n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), o = r % 60;
2431
2535
  return o === 0 ? n + String(i) : n + String(i) + t + w(o, 2);
2432
2536
  }
2433
- function Bt(e, t) {
2537
+ function Zt(e, t) {
2434
2538
  return e % 60 === 0 ? (e > 0 ? "-" : "+") + w(Math.abs(e) / 60, 2) : j(e, t);
2435
2539
  }
2436
2540
  function j(e, t = "") {
2437
2541
  const n = e > 0 ? "-" : "+", r = Math.abs(e), i = w(Math.trunc(r / 60), 2), o = w(r % 60, 2);
2438
2542
  return n + i + t + o;
2439
2543
  }
2440
- const Qt = (e, t) => {
2544
+ const Xt = (e, t) => {
2441
2545
  switch (e) {
2442
2546
  case "P":
2443
2547
  return t.date({ width: "short" });
@@ -2448,7 +2552,7 @@ const Qt = (e, t) => {
2448
2552
  default:
2449
2553
  return t.date({ width: "full" });
2450
2554
  }
2451
- }, Gn = (e, t) => {
2555
+ }, Fn = (e, t) => {
2452
2556
  switch (e) {
2453
2557
  case "p":
2454
2558
  return t.time({ width: "short" });
@@ -2459,10 +2563,10 @@ const Qt = (e, t) => {
2459
2563
  default:
2460
2564
  return t.time({ width: "full" });
2461
2565
  }
2462
- }, Ji = (e, t) => {
2566
+ }, no = (e, t) => {
2463
2567
  const n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
2464
2568
  if (!i)
2465
- return Qt(e, t);
2569
+ return Xt(e, t);
2466
2570
  let o;
2467
2571
  switch (r) {
2468
2572
  case "P":
@@ -2478,52 +2582,52 @@ const Qt = (e, t) => {
2478
2582
  o = t.dateTime({ width: "full" });
2479
2583
  break;
2480
2584
  }
2481
- return o.replace("{{date}}", Qt(r, t)).replace("{{time}}", Gn(i, t));
2482
- }, eo = {
2483
- p: Gn,
2484
- P: Ji
2485
- }, to = /^D+$/, no = /^Y+$/, ro = ["D", "DD", "YY", "YYYY"];
2486
- function ao(e) {
2487
- return to.test(e);
2585
+ return o.replace("{{date}}", Xt(r, t)).replace("{{time}}", Fn(i, t));
2586
+ }, ro = {
2587
+ p: Fn,
2588
+ P: no
2589
+ }, ao = /^D+$/, io = /^Y+$/, oo = ["D", "DD", "YY", "YYYY"];
2590
+ function so(e) {
2591
+ return ao.test(e);
2488
2592
  }
2489
- function io(e) {
2490
- return no.test(e);
2593
+ function co(e) {
2594
+ return io.test(e);
2491
2595
  }
2492
- function oo(e, t, n) {
2493
- const r = so(e, t, n);
2494
- if (console.warn(r), ro.includes(e)) throw new RangeError(r);
2596
+ function uo(e, t, n) {
2597
+ const r = lo(e, t, n);
2598
+ if (console.warn(r), oo.includes(e)) throw new RangeError(r);
2495
2599
  }
2496
- function so(e, t, n) {
2600
+ function lo(e, t, n) {
2497
2601
  const r = e[0] === "Y" ? "years" : "days of the month";
2498
2602
  return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
2499
2603
  }
2500
- function co(e) {
2604
+ function mo(e) {
2501
2605
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
2502
2606
  }
2503
- function uo(e) {
2504
- return !(!co(e) && typeof e != "number" || isNaN(+M(e)));
2607
+ function fo(e) {
2608
+ return !(!mo(e) && typeof e != "number" || isNaN(+M(e)));
2505
2609
  }
2506
- const lo = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, mo = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, fo = /^'([^]*?)'?$/, ho = /''/g, po = /[a-zA-Z]/;
2507
- function yo(e, t, n) {
2508
- const r = he(), i = n?.locale ?? r.locale ?? Hi, o = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, c = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, l = M(e, n?.in);
2509
- if (!uo(l))
2610
+ const ho = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, po = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, yo = /^'([^]*?)'?$/, go = /''/g, _o = /[a-zA-Z]/;
2611
+ function wo(e, t, n) {
2612
+ const r = he(), i = n?.locale ?? r.locale ?? Wi, o = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, c = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, l = M(e, n?.in);
2613
+ if (!fo(l))
2510
2614
  throw new RangeError("Invalid time value");
2511
- let f = t.match(mo).map((p) => {
2615
+ let f = t.match(po).map((p) => {
2512
2616
  const y = p[0];
2513
2617
  if (y === "p" || y === "P") {
2514
- const g = eo[y];
2618
+ const g = ro[y];
2515
2619
  return g(p, i.formatLong);
2516
2620
  }
2517
2621
  return p;
2518
- }).join("").match(lo).map((p) => {
2622
+ }).join("").match(ho).map((p) => {
2519
2623
  if (p === "''")
2520
2624
  return { isToken: !1, value: "'" };
2521
2625
  const y = p[0];
2522
2626
  if (y === "'")
2523
- return { isToken: !1, value: go(p) };
2524
- if ($t[y])
2627
+ return { isToken: !1, value: bo(p) };
2628
+ if (Bt[y])
2525
2629
  return { isToken: !0, value: p };
2526
- if (y.match(po))
2630
+ if (y.match(_o))
2527
2631
  throw new RangeError(
2528
2632
  "Format string contains an unescaped latin alphabet character `" + y + "`"
2529
2633
  );
@@ -2538,20 +2642,20 @@ function yo(e, t, n) {
2538
2642
  return f.map((p) => {
2539
2643
  if (!p.isToken) return p.value;
2540
2644
  const y = p.value;
2541
- (!n?.useAdditionalWeekYearTokens && io(y) || !n?.useAdditionalDayOfYearTokens && ao(y)) && oo(y, t, String(e));
2542
- const g = $t[y[0]];
2645
+ (!n?.useAdditionalWeekYearTokens && co(y) || !n?.useAdditionalDayOfYearTokens && so(y)) && uo(y, t, String(e));
2646
+ const g = Bt[y[0]];
2543
2647
  return g(l, y, i.localize, h);
2544
2648
  }).join("");
2545
2649
  }
2546
- function go(e) {
2547
- const t = e.match(fo);
2548
- return t ? t[1].replace(ho, "'") : e;
2650
+ function bo(e) {
2651
+ const t = e.match(yo);
2652
+ return t ? t[1].replace(go, "'") : e;
2549
2653
  }
2550
2654
  function Me(e, t, n) {
2551
2655
  const r = M(e, n?.in);
2552
2656
  return isNaN(t) ? R(e, NaN) : (r.setDate(r.getDate() + t), r);
2553
2657
  }
2554
- function Yn(e, t, n) {
2658
+ function Un(e, t, n) {
2555
2659
  const r = M(e, n?.in);
2556
2660
  if (isNaN(t)) return R(e, NaN);
2557
2661
  if (!t)
@@ -2565,68 +2669,68 @@ function Yn(e, t, n) {
2565
2669
  i
2566
2670
  ), r);
2567
2671
  }
2568
- function _o(e, t, n) {
2569
- return Yn(e, t * 3, n);
2672
+ function To(e, t, n) {
2673
+ return Un(e, t * 3, n);
2570
2674
  }
2571
- function te(e, t) {
2675
+ function re(e, t) {
2572
2676
  const n = M(e, t?.in), r = n.getMonth(), i = r - r % 3;
2573
2677
  return n.setMonth(i, 1), n.setHours(0, 0, 0, 0), n;
2574
2678
  }
2575
- function ne(e, t) {
2679
+ function ae(e, t) {
2576
2680
  const n = M(e, t?.in);
2577
2681
  return n.setDate(1), n.setHours(0, 0, 0, 0), n;
2578
2682
  }
2579
- function wo(e, t) {
2683
+ function Do(e, t) {
2580
2684
  const n = M(e, t?.in), r = n.getFullYear(), i = n.getMonth(), o = R(n, 0);
2581
2685
  return o.setFullYear(r, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
2582
2686
  }
2583
- function bo() {
2687
+ function Mo() {
2584
2688
  return Object.assign({}, he());
2585
2689
  }
2586
- function Zt(e) {
2690
+ function Kt(e) {
2587
2691
  return +M(e);
2588
2692
  }
2589
- function Xt(e) {
2693
+ function Jt(e) {
2590
2694
  return Math.trunc(+M(e) / 1e3);
2591
2695
  }
2592
- function Kt(e) {
2593
- return Math.trunc(e * ji);
2696
+ function en(e) {
2697
+ return Math.trunc(e * $i);
2594
2698
  }
2595
- function To(e) {
2596
- const t = e / Wi;
2699
+ function So(e) {
2700
+ const t = e / Vi;
2597
2701
  return Math.trunc(t);
2598
2702
  }
2599
- function Fn(e, t, n) {
2600
- return Yn(e, -1, n);
2703
+ function Hn(e, t, n) {
2704
+ return Un(e, -1, n);
2601
2705
  }
2602
- function Un(e, t, n) {
2603
- return _o(e, -1, n);
2706
+ function Ln(e, t, n) {
2707
+ return To(e, -1, n);
2604
2708
  }
2605
- function Jt(e, t, n) {
2606
- const r = bo(), i = So(e, n.timeZone, n.locale ?? r.locale);
2607
- return "formatToParts" in i ? Do(i, t) : Mo(i, t);
2709
+ function tn(e, t, n) {
2710
+ const r = Mo(), i = vo(e, n.timeZone, n.locale ?? r.locale);
2711
+ return "formatToParts" in i ? Oo(i, t) : Eo(i, t);
2608
2712
  }
2609
- function Do(e, t) {
2713
+ function Oo(e, t) {
2610
2714
  const n = e.formatToParts(t);
2611
2715
  for (let r = n.length - 1; r >= 0; --r)
2612
2716
  if (n[r].type === "timeZoneName")
2613
2717
  return n[r].value;
2614
2718
  }
2615
- function Mo(e, t) {
2719
+ function Eo(e, t) {
2616
2720
  const n = e.format(t).replace(/\u200E/g, ""), r = / [\w-+ ]+$/.exec(n);
2617
2721
  return r ? r[0].substr(1) : "";
2618
2722
  }
2619
- function So(e, t, n) {
2723
+ function vo(e, t, n) {
2620
2724
  return new Intl.DateTimeFormat(n ? [n.code, "en-US"] : void 0, {
2621
2725
  timeZone: t,
2622
2726
  timeZoneName: e
2623
2727
  });
2624
2728
  }
2625
- function Oo(e, t) {
2626
- const n = Po(t);
2627
- return "formatToParts" in n ? vo(n, e) : No(n, e);
2729
+ function No(e, t) {
2730
+ const n = Co(t);
2731
+ return "formatToParts" in n ? Po(n, e) : xo(n, e);
2628
2732
  }
2629
- const Eo = {
2733
+ const Ro = {
2630
2734
  year: 0,
2631
2735
  month: 1,
2632
2736
  day: 2,
@@ -2634,11 +2738,11 @@ const Eo = {
2634
2738
  minute: 4,
2635
2739
  second: 5
2636
2740
  };
2637
- function vo(e, t) {
2741
+ function Po(e, t) {
2638
2742
  try {
2639
2743
  const n = e.formatToParts(t), r = [];
2640
2744
  for (let i = 0; i < n.length; i++) {
2641
- const o = Eo[n[i].type];
2745
+ const o = Ro[n[i].type];
2642
2746
  o !== void 0 && (r[o] = parseInt(n[i].value, 10));
2643
2747
  }
2644
2748
  return r;
@@ -2648,7 +2752,7 @@ function vo(e, t) {
2648
2752
  throw n;
2649
2753
  }
2650
2754
  }
2651
- function No(e, t) {
2755
+ function xo(e, t) {
2652
2756
  const n = e.format(t), r = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
2653
2757
  return [
2654
2758
  parseInt(r[3], 10),
@@ -2659,7 +2763,7 @@ function No(e, t) {
2659
2763
  parseInt(r[6], 10)
2660
2764
  ];
2661
2765
  }
2662
- const Be = {}, en = new Intl.DateTimeFormat("en-US", {
2766
+ const Be = {}, nn = new Intl.DateTimeFormat("en-US", {
2663
2767
  hourCycle: "h23",
2664
2768
  timeZone: "America/New_York",
2665
2769
  year: "numeric",
@@ -2668,9 +2772,9 @@ const Be = {}, en = new Intl.DateTimeFormat("en-US", {
2668
2772
  hour: "2-digit",
2669
2773
  minute: "2-digit",
2670
2774
  second: "2-digit"
2671
- }).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Ro = en === "06/25/2014, 00:00:00" || en === "‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";
2672
- function Po(e) {
2673
- return Be[e] || (Be[e] = Ro ? new Intl.DateTimeFormat("en-US", {
2775
+ }).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Io = nn === "06/25/2014, 00:00:00" || nn === "‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";
2776
+ function Co(e) {
2777
+ return Be[e] || (Be[e] = Io ? new Intl.DateTimeFormat("en-US", {
2674
2778
  hourCycle: "h23",
2675
2779
  timeZone: e,
2676
2780
  year: "numeric",
@@ -2690,11 +2794,11 @@ function Po(e) {
2690
2794
  second: "2-digit"
2691
2795
  })), Be[e];
2692
2796
  }
2693
- function ot(e, t, n, r, i, o, c) {
2797
+ function ct(e, t, n, r, i, o, c) {
2694
2798
  const l = /* @__PURE__ */ new Date(0);
2695
2799
  return l.setUTCFullYear(e, t, n), l.setUTCHours(r, i, o, c), l;
2696
2800
  }
2697
- const tn = 36e5, xo = 6e4, Qe = {
2801
+ const rn = 36e5, Ao = 6e4, Qe = {
2698
2802
  timezoneZ: /^(Z)$/,
2699
2803
  timezoneHH: /^([+-]\d{2})$/,
2700
2804
  timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
@@ -2707,29 +2811,29 @@ function pe(e, t, n) {
2707
2811
  return 0;
2708
2812
  let i, o;
2709
2813
  if (r = Qe.timezoneHH.exec(e), r)
2710
- return i = parseInt(r[1], 10), nn(i) ? -(i * tn) : NaN;
2814
+ return i = parseInt(r[1], 10), an(i) ? -(i * rn) : NaN;
2711
2815
  if (r = Qe.timezoneHHMM.exec(e), r) {
2712
2816
  i = parseInt(r[2], 10);
2713
2817
  const c = parseInt(r[3], 10);
2714
- return nn(i, c) ? (o = Math.abs(i) * tn + c * xo, r[1] === "+" ? -o : o) : NaN;
2818
+ return an(i, c) ? (o = Math.abs(i) * rn + c * Ao, r[1] === "+" ? -o : o) : NaN;
2715
2819
  }
2716
- if (Ao(e)) {
2820
+ if (Yo(e)) {
2717
2821
  t = new Date(t || Date.now());
2718
- const c = n ? t : Io(t), l = nt(c, e);
2719
- return -(n ? l : Co(t, l, e));
2822
+ const c = n ? t : ko(t), l = nt(c, e);
2823
+ return -(n ? l : Go(t, l, e));
2720
2824
  }
2721
2825
  return NaN;
2722
2826
  }
2723
- function Io(e) {
2724
- return ot(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
2827
+ function ko(e) {
2828
+ return ct(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
2725
2829
  }
2726
2830
  function nt(e, t) {
2727
- const n = Oo(e, t), r = ot(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
2831
+ const n = No(e, t), r = ct(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
2728
2832
  let i = e.getTime();
2729
2833
  const o = i % 1e3;
2730
2834
  return i -= o >= 0 ? o : 1e3 + o, r - i;
2731
2835
  }
2732
- function Co(e, t, n) {
2836
+ function Go(e, t, n) {
2733
2837
  let i = e.getTime() - t;
2734
2838
  const o = nt(new Date(i), n);
2735
2839
  if (t === o)
@@ -2738,20 +2842,20 @@ function Co(e, t, n) {
2738
2842
  const c = nt(new Date(i), n);
2739
2843
  return o === c ? o : Math.max(o, c);
2740
2844
  }
2741
- function nn(e, t) {
2845
+ function an(e, t) {
2742
2846
  return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
2743
2847
  }
2744
- const rn = {};
2745
- function Ao(e) {
2746
- if (rn[e])
2848
+ const on = {};
2849
+ function Yo(e) {
2850
+ if (on[e])
2747
2851
  return !0;
2748
2852
  try {
2749
- return new Intl.DateTimeFormat(void 0, { timeZone: e }), rn[e] = !0, !0;
2853
+ return new Intl.DateTimeFormat(void 0, { timeZone: e }), on[e] = !0, !0;
2750
2854
  } catch {
2751
2855
  return !1;
2752
2856
  }
2753
2857
  }
2754
- const ko = 60 * 1e3, Go = {
2858
+ const Fo = 60 * 1e3, Uo = {
2755
2859
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
2756
2860
  X: function(e, t, n) {
2757
2861
  const r = Ze(n.timeZone, e);
@@ -2760,16 +2864,16 @@ const ko = 60 * 1e3, Go = {
2760
2864
  switch (t) {
2761
2865
  // Hours and optional minutes
2762
2866
  case "X":
2763
- return an(r);
2867
+ return sn(r);
2764
2868
  // Hours, minutes and optional seconds without `:` delimeter
2765
2869
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2766
2870
  // so this token always has the same output as `XX`
2767
2871
  case "XXXX":
2768
2872
  case "XX":
2769
- return J(r);
2873
+ return te(r);
2770
2874
  // Hours and minutes with `:` delimeter
2771
2875
  default:
2772
- return J(r, ":");
2876
+ return te(r, ":");
2773
2877
  }
2774
2878
  },
2775
2879
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
@@ -2778,16 +2882,16 @@ const ko = 60 * 1e3, Go = {
2778
2882
  switch (t) {
2779
2883
  // Hours and optional minutes
2780
2884
  case "x":
2781
- return an(r);
2885
+ return sn(r);
2782
2886
  // Hours, minutes and optional seconds without `:` delimeter
2783
2887
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2784
2888
  // so this token always has the same output as `xx`
2785
2889
  case "xxxx":
2786
2890
  case "xx":
2787
- return J(r);
2891
+ return te(r);
2788
2892
  // Hours and minutes with `:` delimeter
2789
2893
  default:
2790
- return J(r, ":");
2894
+ return te(r, ":");
2791
2895
  }
2792
2896
  },
2793
2897
  // Timezone (GMT)
@@ -2798,9 +2902,9 @@ const ko = 60 * 1e3, Go = {
2798
2902
  case "O":
2799
2903
  case "OO":
2800
2904
  case "OOO":
2801
- return "GMT" + Yo(r, ":");
2905
+ return "GMT" + Ho(r, ":");
2802
2906
  default:
2803
- return "GMT" + J(r, ":");
2907
+ return "GMT" + te(r, ":");
2804
2908
  }
2805
2909
  },
2806
2910
  // Timezone (specific non-location)
@@ -2810,14 +2914,14 @@ const ko = 60 * 1e3, Go = {
2810
2914
  case "z":
2811
2915
  case "zz":
2812
2916
  case "zzz":
2813
- return Jt("short", e, n);
2917
+ return tn("short", e, n);
2814
2918
  default:
2815
- return Jt("long", e, n);
2919
+ return tn("long", e, n);
2816
2920
  }
2817
2921
  }
2818
2922
  };
2819
2923
  function Ze(e, t) {
2820
- const n = e ? pe(e, t, !0) / ko : t?.getTimezoneOffset() ?? 0;
2924
+ const n = e ? pe(e, t, !0) / Fo : t?.getTimezoneOffset() ?? 0;
2821
2925
  if (Number.isNaN(n))
2822
2926
  throw new RangeError("Invalid time zone specified: " + e);
2823
2927
  return n;
@@ -2829,22 +2933,22 @@ function ve(e, t) {
2829
2933
  r = "0" + r;
2830
2934
  return n + r;
2831
2935
  }
2832
- function J(e, t = "") {
2936
+ function te(e, t = "") {
2833
2937
  const n = e > 0 ? "-" : "+", r = Math.abs(e), i = ve(Math.floor(r / 60), 2), o = ve(Math.floor(r % 60), 2);
2834
2938
  return n + i + t + o;
2835
2939
  }
2836
- function an(e, t) {
2837
- return e % 60 === 0 ? (e > 0 ? "-" : "+") + ve(Math.abs(e) / 60, 2) : J(e, t);
2940
+ function sn(e, t) {
2941
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + ve(Math.abs(e) / 60, 2) : te(e, t);
2838
2942
  }
2839
- function Yo(e, t = "") {
2943
+ function Ho(e, t = "") {
2840
2944
  const n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.floor(r / 60), o = r % 60;
2841
2945
  return o === 0 ? n + String(i) : n + String(i) + t + ve(o, 2);
2842
2946
  }
2843
- function on(e) {
2947
+ function cn(e) {
2844
2948
  const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
2845
2949
  return t.setUTCFullYear(e.getFullYear()), +e - +t;
2846
2950
  }
2847
- const Hn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Xe = 36e5, sn = 6e4, Fo = 2, O = {
2951
+ const qn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Xe = 36e5, un = 6e4, Lo = 2, O = {
2848
2952
  dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
2849
2953
  datePattern: /^([0-9W+-]+)(.*)/,
2850
2954
  // year tokens
@@ -2876,14 +2980,14 @@ const Hn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
2876
2980
  HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
2877
2981
  HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
2878
2982
  // time zone tokens (to identify the presence of a tz)
2879
- timeZone: Hn
2983
+ timeZone: qn
2880
2984
  };
2881
2985
  function Ne(e, t = {}) {
2882
2986
  if (arguments.length < 1)
2883
2987
  throw new TypeError("1 argument required, but only " + arguments.length + " present");
2884
2988
  if (e === null)
2885
2989
  return /* @__PURE__ */ new Date(NaN);
2886
- const n = t.additionalDigits == null ? Fo : Number(t.additionalDigits);
2990
+ const n = t.additionalDigits == null ? Lo : Number(t.additionalDigits);
2887
2991
  if (n !== 2 && n !== 1 && n !== 0)
2888
2992
  throw new RangeError("additionalDigits must be 0, 1 or 2");
2889
2993
  if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
@@ -2892,24 +2996,24 @@ function Ne(e, t = {}) {
2892
2996
  return new Date(e);
2893
2997
  if (Object.prototype.toString.call(e) !== "[object String]")
2894
2998
  return /* @__PURE__ */ new Date(NaN);
2895
- const r = Uo(e), { year: i, restDateString: o } = Ho(r.date, n), c = Lo(o, i);
2999
+ const r = qo(e), { year: i, restDateString: o } = Wo(r.date, n), c = jo(o, i);
2896
3000
  if (c === null || isNaN(c.getTime()))
2897
3001
  return /* @__PURE__ */ new Date(NaN);
2898
3002
  if (c) {
2899
3003
  const l = c.getTime();
2900
3004
  let f = 0, h;
2901
- if (r.time && (f = qo(r.time), f === null || isNaN(f)))
3005
+ if (r.time && (f = zo(r.time), f === null || isNaN(f)))
2902
3006
  return /* @__PURE__ */ new Date(NaN);
2903
3007
  if (r.timeZone || t.timeZone) {
2904
3008
  if (h = pe(r.timeZone || t.timeZone, new Date(l + f)), isNaN(h))
2905
3009
  return /* @__PURE__ */ new Date(NaN);
2906
3010
  } else
2907
- h = on(new Date(l + f)), h = on(new Date(l + f + h));
3011
+ h = cn(new Date(l + f)), h = cn(new Date(l + f + h));
2908
3012
  return new Date(l + f + h);
2909
3013
  } else
2910
3014
  return /* @__PURE__ */ new Date(NaN);
2911
3015
  }
2912
- function Uo(e) {
3016
+ function qo(e) {
2913
3017
  const t = {};
2914
3018
  let n = O.dateTimePattern.exec(e), r;
2915
3019
  if (n ? (t.date = n[1], r = n[3]) : (n = O.datePattern.exec(e), n ? (t.date = n[1], r = n[2]) : (t.date = null, r = e)), r) {
@@ -2918,7 +3022,7 @@ function Uo(e) {
2918
3022
  }
2919
3023
  return t;
2920
3024
  }
2921
- function Ho(e, t) {
3025
+ function Wo(e, t) {
2922
3026
  if (e) {
2923
3027
  const n = O.YYY[t], r = O.YYYYY[t];
2924
3028
  let i = O.YYYY.exec(e) || r.exec(e);
@@ -2941,7 +3045,7 @@ function Ho(e, t) {
2941
3045
  year: null
2942
3046
  };
2943
3047
  }
2944
- function Lo(e, t) {
3048
+ function jo(e, t) {
2945
3049
  if (t === null)
2946
3050
  return null;
2947
3051
  let n, r, i;
@@ -2949,112 +3053,112 @@ function Lo(e, t) {
2949
3053
  return n = /* @__PURE__ */ new Date(0), n.setUTCFullYear(t), n;
2950
3054
  let o = O.MM.exec(e);
2951
3055
  if (o)
2952
- return n = /* @__PURE__ */ new Date(0), r = parseInt(o[1], 10) - 1, un(t, r) ? (n.setUTCFullYear(t, r), n) : /* @__PURE__ */ new Date(NaN);
3056
+ return n = /* @__PURE__ */ new Date(0), r = parseInt(o[1], 10) - 1, dn(t, r) ? (n.setUTCFullYear(t, r), n) : /* @__PURE__ */ new Date(NaN);
2953
3057
  if (o = O.DDD.exec(e), o) {
2954
3058
  n = /* @__PURE__ */ new Date(0);
2955
3059
  const c = parseInt(o[1], 10);
2956
- return Vo(t, c) ? (n.setUTCFullYear(t, 0, c), n) : /* @__PURE__ */ new Date(NaN);
3060
+ return Bo(t, c) ? (n.setUTCFullYear(t, 0, c), n) : /* @__PURE__ */ new Date(NaN);
2957
3061
  }
2958
3062
  if (o = O.MMDD.exec(e), o) {
2959
3063
  n = /* @__PURE__ */ new Date(0), r = parseInt(o[1], 10) - 1;
2960
3064
  const c = parseInt(o[2], 10);
2961
- return un(t, r, c) ? (n.setUTCFullYear(t, r, c), n) : /* @__PURE__ */ new Date(NaN);
3065
+ return dn(t, r, c) ? (n.setUTCFullYear(t, r, c), n) : /* @__PURE__ */ new Date(NaN);
2962
3066
  }
2963
3067
  if (o = O.Www.exec(e), o)
2964
- return i = parseInt(o[1], 10) - 1, ln(i) ? cn(t, i) : /* @__PURE__ */ new Date(NaN);
3068
+ return i = parseInt(o[1], 10) - 1, mn(i) ? ln(t, i) : /* @__PURE__ */ new Date(NaN);
2965
3069
  if (o = O.WwwD.exec(e), o) {
2966
3070
  i = parseInt(o[1], 10) - 1;
2967
3071
  const c = parseInt(o[2], 10) - 1;
2968
- return ln(i, c) ? cn(t, i, c) : /* @__PURE__ */ new Date(NaN);
3072
+ return mn(i, c) ? ln(t, i, c) : /* @__PURE__ */ new Date(NaN);
2969
3073
  }
2970
3074
  return null;
2971
3075
  }
2972
- function qo(e) {
3076
+ function zo(e) {
2973
3077
  let t, n, r = O.HH.exec(e);
2974
3078
  if (r)
2975
3079
  return t = parseFloat(r[1].replace(",", ".")), Ke(t) ? t % 24 * Xe : NaN;
2976
3080
  if (r = O.HHMM.exec(e), r)
2977
- return t = parseInt(r[1], 10), n = parseFloat(r[2].replace(",", ".")), Ke(t, n) ? t % 24 * Xe + n * sn : NaN;
3081
+ return t = parseInt(r[1], 10), n = parseFloat(r[2].replace(",", ".")), Ke(t, n) ? t % 24 * Xe + n * un : NaN;
2978
3082
  if (r = O.HHMMSS.exec(e), r) {
2979
3083
  t = parseInt(r[1], 10), n = parseInt(r[2], 10);
2980
3084
  const i = parseFloat(r[3].replace(",", "."));
2981
- return Ke(t, n, i) ? t % 24 * Xe + n * sn + i * 1e3 : NaN;
3085
+ return Ke(t, n, i) ? t % 24 * Xe + n * un + i * 1e3 : NaN;
2982
3086
  }
2983
3087
  return null;
2984
3088
  }
2985
- function cn(e, t, n) {
3089
+ function ln(e, t, n) {
2986
3090
  t = t || 0, n = n || 0;
2987
3091
  const r = /* @__PURE__ */ new Date(0);
2988
3092
  r.setUTCFullYear(e, 0, 4);
2989
3093
  const i = r.getUTCDay() || 7, o = t * 7 + n + 1 - i;
2990
3094
  return r.setUTCDate(r.getUTCDate() + o), r;
2991
3095
  }
2992
- const Wo = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], jo = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
2993
- function Ln(e) {
3096
+ const Vo = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], $o = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
3097
+ function Wn(e) {
2994
3098
  return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
2995
3099
  }
2996
- function un(e, t, n) {
3100
+ function dn(e, t, n) {
2997
3101
  if (t < 0 || t > 11)
2998
3102
  return !1;
2999
3103
  if (n != null) {
3000
3104
  if (n < 1)
3001
3105
  return !1;
3002
- const r = Ln(e);
3003
- if (r && n > jo[t] || !r && n > Wo[t])
3106
+ const r = Wn(e);
3107
+ if (r && n > $o[t] || !r && n > Vo[t])
3004
3108
  return !1;
3005
3109
  }
3006
3110
  return !0;
3007
3111
  }
3008
- function Vo(e, t) {
3112
+ function Bo(e, t) {
3009
3113
  if (t < 1)
3010
3114
  return !1;
3011
- const n = Ln(e);
3115
+ const n = Wn(e);
3012
3116
  return !(n && t > 366 || !n && t > 365);
3013
3117
  }
3014
- function ln(e, t) {
3118
+ function mn(e, t) {
3015
3119
  return !(e < 0 || e > 52 || t != null && (t < 0 || t > 6));
3016
3120
  }
3017
3121
  function Ke(e, t, n) {
3018
3122
  return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
3019
3123
  }
3020
- const $o = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
3021
- function zo(e, t, n = {}) {
3124
+ const Qo = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
3125
+ function Zo(e, t, n = {}) {
3022
3126
  t = String(t);
3023
- const r = t.match($o);
3127
+ const r = t.match(Qo);
3024
3128
  if (r) {
3025
3129
  const i = Ne(n.originalDate || e, n);
3026
3130
  t = r.reduce(function(o, c) {
3027
3131
  if (c[0] === "'")
3028
3132
  return o;
3029
- const l = o.indexOf(c), f = o[l - 1] === "'", h = o.replace(c, "'" + Go[c[0]](i, c, n) + "'");
3133
+ const l = o.indexOf(c), f = o[l - 1] === "'", h = o.replace(c, "'" + Uo[c[0]](i, c, n) + "'");
3030
3134
  return f ? h.substring(0, l - 1) + h.substring(l + 1) : h;
3031
3135
  }, t);
3032
3136
  }
3033
- return yo(e, t, n);
3137
+ return wo(e, t, n);
3034
3138
  }
3035
- function qn(e, t, n) {
3139
+ function jn(e, t, n) {
3036
3140
  e = Ne(e, n);
3037
3141
  const r = pe(t, e, !0), i = new Date(e.getTime() - r), o = /* @__PURE__ */ new Date(0);
3038
3142
  return o.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), o.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), o;
3039
3143
  }
3040
- function Wn(e, t, n, r) {
3144
+ function zn(e, t, n, r) {
3041
3145
  return r = {
3042
3146
  ...r,
3043
3147
  timeZone: t,
3044
3148
  originalDate: e
3045
- }, zo(qn(e, t, { timeZone: r.timeZone }), n, r);
3149
+ }, Zo(jn(e, t, { timeZone: r.timeZone }), n, r);
3046
3150
  }
3047
- function Bo(e, t, n) {
3048
- if (typeof e == "string" && !e.match(Hn))
3151
+ function Xo(e, t, n) {
3152
+ if (typeof e == "string" && !e.match(qn))
3049
3153
  return Ne(e, { ...n, timeZone: t });
3050
3154
  e = Ne(e, n);
3051
- const r = ot(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = pe(t, new Date(r));
3155
+ const r = ct(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = pe(t, new Date(r));
3052
3156
  return new Date(r + i);
3053
3157
  }
3054
- function jn(e, t) {
3158
+ function Vn(e, t) {
3055
3159
  return -pe(e, t);
3056
3160
  }
3057
- function Hs(e, t = {}) {
3161
+ function Ws(e, t = {}) {
3058
3162
  const n = t?.tz || Intl.DateTimeFormat().resolvedOptions().timeZone;
3059
3163
  let r = "MMM dd, yyy hh:mm a";
3060
3164
  switch (t.format) {
@@ -3068,9 +3172,9 @@ function Hs(e, t = {}) {
3068
3172
  r = "MMM dd, yyyy hh:mm:ss.SSS a";
3069
3173
  break;
3070
3174
  }
3071
- return t.includeTZ && (r += " (z)"), Wn(e, n, r);
3175
+ return t.includeTZ && (r += " (z)"), zn(e, n, r);
3072
3176
  }
3073
- function dn(e, t = {}) {
3177
+ function fn(e, t = {}) {
3074
3178
  if (!e)
3075
3179
  return e;
3076
3180
  const n = t.tz || Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -3078,13 +3182,13 @@ function dn(e, t = {}) {
3078
3182
  let r = "MMM dd, yyy hh:mm a";
3079
3183
  t.short && (r = "MMM dd, yyy"), t.includeTZ && (r += " (z)");
3080
3184
  const i = new Date(e);
3081
- return Wn(i, n, r);
3185
+ return zn(i, n, r);
3082
3186
  } catch {
3083
3187
  return console.error("Invalid value passed to formatTime", e), "(invalid date)";
3084
3188
  }
3085
3189
  }
3086
- function Ls(e, t) {
3087
- return `${dn(e.getTime())} - ${dn(t.getTime(), { includeTZ: !0 })}`;
3190
+ function js(e, t) {
3191
+ return `${fn(e.getTime())} - ${fn(t.getTime(), { includeTZ: !0 })}`;
3088
3192
  }
3089
3193
  const Re = {
3090
3194
  secondly: 1e3,
@@ -3101,32 +3205,32 @@ const Re = {
3101
3205
  weekly: 3600 * 24 * 7 * 1e3,
3102
3206
  trend: 0
3103
3207
  };
3104
- function qs(e, t) {
3208
+ function zs(e, t) {
3105
3209
  return e.map((n) => ({
3106
3210
  value: n,
3107
3211
  label: t.t(`configuration.vitals.reports.granularity.${n}`)
3108
3212
  }));
3109
3213
  }
3110
- function Qo(e, t) {
3214
+ function Ko(e, t) {
3111
3215
  return {
3112
3216
  duration: e,
3113
3217
  type: "duration",
3114
3218
  origin: t
3115
3219
  };
3116
3220
  }
3117
- function Ws(e) {
3118
- return e && _n.find((n) => e <= Re[n]) || null;
3221
+ function Vs(e) {
3222
+ return e && bn.find((n) => e <= Re[n]) || null;
3119
3223
  }
3120
- function Vn(e, t, n, r) {
3224
+ function $n(e, t, n, r) {
3121
3225
  const i = Re[n];
3122
3226
  let o = 0;
3123
- return i >= Re.daily && (r ? o = -jn(r, t) : o = t.getTimezoneOffset() * 60 * 1e3), new Date(e((t.getTime() - o) / i) * i + o);
3227
+ return i >= Re.daily && (r ? o = -Vn(r, t) : o = t.getTimezoneOffset() * 60 * 1e3), new Date(e((t.getTime() - o) / i) * i + o);
3124
3228
  }
3125
- function Zo(e, t, n) {
3126
- return Vn(Math.floor, e, t, n);
3229
+ function Jo(e, t, n) {
3230
+ return $n(Math.floor, e, t, n);
3127
3231
  }
3128
- function $n(e, t, n) {
3129
- return Vn(Math.ceil, e, t, n);
3232
+ function Bn(e, t, n) {
3233
+ return $n(Math.ceil, e, t, n);
3130
3234
  }
3131
3235
  class Ae {
3132
3236
  timeframe;
@@ -3141,7 +3245,7 @@ class Ae {
3141
3245
  if (t)
3142
3246
  return new Date(this.endDate().getTime() - this.timeframe.timeframeLengthMs() * r);
3143
3247
  {
3144
- const i = this.endDate(), o = this.timeframe.rawStart(this.tz), c = Zo(o, n, this.tz), f = (i.getTime() - c.getTime()) * (r - 1);
3248
+ const i = this.endDate(), o = this.timeframe.rawStart(this.tz), c = Jo(o, n, this.tz), f = (i.getTime() - c.getTime()) * (r - 1);
3145
3249
  return new Date(c.getTime() - f);
3146
3250
  }
3147
3251
  }
@@ -3149,26 +3253,26 @@ class Ae {
3149
3253
  return Math.floor(this.granularityMs() / 1e3);
3150
3254
  }
3151
3255
  granularityDruid() {
3152
- return Qo(this.granularityMs(), this.startDate().toISOString());
3256
+ return Ko(this.granularityMs(), this.startDate().toISOString());
3153
3257
  }
3154
3258
  // Return a UNIX timestamp suitable for use in the `start` query param.
3155
3259
  startSeconds() {
3156
- return Xt(this.startDate());
3260
+ return Jt(this.startDate());
3157
3261
  }
3158
3262
  // Return a UNIX timestamp suitable for use in the `end` query param.
3159
3263
  endSeconds() {
3160
- return Xt(this.endDate());
3264
+ return Jt(this.endDate());
3161
3265
  }
3162
3266
  // Return epoch time in milliseconds, suitable for use in the `startMs` query param.
3163
3267
  startMs() {
3164
- return Zt(this.startDate());
3268
+ return Kt(this.startDate());
3165
3269
  }
3166
3270
  // Return epoch time in milliseconds, suitable for use in the `endMs` query param.
3167
3271
  endMs() {
3168
- return Zt(this.endDate());
3272
+ return Kt(this.endDate());
3169
3273
  }
3170
3274
  }
3171
- class js extends Ae {
3275
+ class $s extends Ae {
3172
3276
  granularity;
3173
3277
  constructor(t, n, r, i, o) {
3174
3278
  super(t, r, i), n && t.allowedGranularities(o).has(n) ? this.granularity = n : o ? this.granularity = t.fineGrainedDefaultGranularity ?? t.defaultResponseGranularity : this.granularity = t.defaultResponseGranularity;
@@ -3177,24 +3281,24 @@ class js extends Ae {
3177
3281
  return this.calculateStartDate(this.timeframe.isRelative, this.granularity);
3178
3282
  }
3179
3283
  endDate() {
3180
- return $n(this.timeframe.rawEnd(), this.granularity, this.tz);
3284
+ return Bn(this.timeframe.rawEnd(), this.granularity, this.tz);
3181
3285
  }
3182
3286
  granularityMs() {
3183
3287
  return Re[this.granularity];
3184
3288
  }
3185
3289
  }
3186
- class Xo extends Ae {
3290
+ class es extends Ae {
3187
3291
  startDate() {
3188
3292
  return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity);
3189
3293
  }
3190
3294
  endDate() {
3191
- return $n(this.timeframe.rawEnd(this.tz), this.dataGranularity, this.tz);
3295
+ return Bn(this.timeframe.rawEnd(this.tz), this.dataGranularity, this.tz);
3192
3296
  }
3193
3297
  granularityMs() {
3194
3298
  return this.endDate().getTime() - this.startDate().getTime();
3195
3299
  }
3196
3300
  }
3197
- class Vs extends Xo {
3301
+ class Bs extends es {
3198
3302
  startDate() {
3199
3303
  return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity, 2);
3200
3304
  }
@@ -3203,47 +3307,47 @@ class Vs extends Xo {
3203
3307
  }
3204
3308
  }
3205
3309
  var Se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3206
- function Ko(e) {
3310
+ function ts(e) {
3207
3311
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3208
3312
  }
3209
- var de = { exports: {} };
3210
- de.exports;
3211
- var mn;
3212
- function Jo() {
3213
- return mn || (mn = 1, (function(e, t) {
3214
- var n = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", l = "[object Boolean]", f = "[object Date]", h = "[object Error]", p = "[object Function]", y = "[object GeneratorFunction]", g = "[object Map]", E = "[object Number]", _ = "[object Object]", T = "[object Promise]", H = "[object RegExp]", x = "[object Set]", I = "[object String]", $ = "[object Symbol]", ke = "[object WeakMap]", ct = "[object ArrayBuffer]", ye = "[object DataView]", ut = "[object Float32Array]", lt = "[object Float64Array]", dt = "[object Int8Array]", mt = "[object Int16Array]", ft = "[object Int32Array]", ht = "[object Uint8Array]", pt = "[object Uint8ClampedArray]", yt = "[object Uint16Array]", gt = "[object Uint32Array]", Bn = /[\\^$.*+?()[\]{}|]/g, Qn = /\w*$/, Zn = /^\[object .+?Constructor\]$/, Xn = /^(?:0|[1-9]\d*)$/, b = {};
3215
- b[o] = b[c] = b[ct] = b[ye] = b[l] = b[f] = b[ut] = b[lt] = b[dt] = b[mt] = b[ft] = b[g] = b[E] = b[_] = b[H] = b[x] = b[I] = b[$] = b[ht] = b[pt] = b[yt] = b[gt] = !0, b[h] = b[p] = b[ke] = !1;
3216
- var Kn = typeof Se == "object" && Se && Se.Object === Object && Se, Jn = typeof self == "object" && self && self.Object === Object && self, C = Kn || Jn || Function("return this")(), _t = t && !t.nodeType && t, wt = _t && !0 && e && !e.nodeType && e, er = wt && wt.exports === _t;
3217
- function tr(a, s) {
3313
+ var me = { exports: {} };
3314
+ me.exports;
3315
+ var hn;
3316
+ function ns() {
3317
+ return hn || (hn = 1, (function(e, t) {
3318
+ var n = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", l = "[object Boolean]", f = "[object Date]", h = "[object Error]", p = "[object Function]", y = "[object GeneratorFunction]", g = "[object Map]", E = "[object Number]", _ = "[object Object]", T = "[object Promise]", H = "[object RegExp]", x = "[object Set]", C = "[object String]", B = "[object Symbol]", ke = "[object WeakMap]", lt = "[object ArrayBuffer]", ye = "[object DataView]", dt = "[object Float32Array]", mt = "[object Float64Array]", ft = "[object Int8Array]", ht = "[object Int16Array]", pt = "[object Int32Array]", yt = "[object Uint8Array]", gt = "[object Uint8ClampedArray]", _t = "[object Uint16Array]", wt = "[object Uint32Array]", Zn = /[\\^$.*+?()[\]{}|]/g, Xn = /\w*$/, Kn = /^\[object .+?Constructor\]$/, Jn = /^(?:0|[1-9]\d*)$/, b = {};
3319
+ b[o] = b[c] = b[lt] = b[ye] = b[l] = b[f] = b[dt] = b[mt] = b[ft] = b[ht] = b[pt] = b[g] = b[E] = b[_] = b[H] = b[x] = b[C] = b[B] = b[yt] = b[gt] = b[_t] = b[wt] = !0, b[h] = b[p] = b[ke] = !1;
3320
+ var er = typeof Se == "object" && Se && Se.Object === Object && Se, tr = typeof self == "object" && self && self.Object === Object && self, A = er || tr || Function("return this")(), bt = t && !t.nodeType && t, Tt = bt && !0 && e && !e.nodeType && e, nr = Tt && Tt.exports === bt;
3321
+ function rr(a, s) {
3218
3322
  return a.set(s[0], s[1]), a;
3219
3323
  }
3220
- function nr(a, s) {
3324
+ function ar(a, s) {
3221
3325
  return a.add(s), a;
3222
3326
  }
3223
- function rr(a, s) {
3327
+ function ir(a, s) {
3224
3328
  for (var u = -1, m = a ? a.length : 0; ++u < m && s(a[u], u, a) !== !1; )
3225
3329
  ;
3226
3330
  return a;
3227
3331
  }
3228
- function ar(a, s) {
3332
+ function or(a, s) {
3229
3333
  for (var u = -1, m = s.length, S = a.length; ++u < m; )
3230
3334
  a[S + u] = s[u];
3231
3335
  return a;
3232
3336
  }
3233
- function bt(a, s, u, m) {
3337
+ function Dt(a, s, u, m) {
3234
3338
  for (var S = -1, v = a ? a.length : 0; ++S < v; )
3235
3339
  u = s(u, a[S], S, a);
3236
3340
  return u;
3237
3341
  }
3238
- function ir(a, s) {
3342
+ function sr(a, s) {
3239
3343
  for (var u = -1, m = Array(a); ++u < a; )
3240
3344
  m[u] = s(u);
3241
3345
  return m;
3242
3346
  }
3243
- function or(a, s) {
3347
+ function cr(a, s) {
3244
3348
  return a?.[s];
3245
3349
  }
3246
- function Tt(a) {
3350
+ function Mt(a) {
3247
3351
  var s = !1;
3248
3352
  if (a != null && typeof a.toString != "function")
3249
3353
  try {
@@ -3252,7 +3356,7 @@ function Jo() {
3252
3356
  }
3253
3357
  return s;
3254
3358
  }
3255
- function Dt(a) {
3359
+ function St(a) {
3256
3360
  var s = -1, u = Array(a.size);
3257
3361
  return a.forEach(function(m, S) {
3258
3362
  u[++s] = [S, m];
@@ -3263,18 +3367,18 @@ function Jo() {
3263
3367
  return a(s(u));
3264
3368
  };
3265
3369
  }
3266
- function Mt(a) {
3370
+ function Ot(a) {
3267
3371
  var s = -1, u = Array(a.size);
3268
3372
  return a.forEach(function(m) {
3269
3373
  u[++s] = m;
3270
3374
  }), u;
3271
3375
  }
3272
- var sr = Array.prototype, cr = Function.prototype, ge = Object.prototype, Ye = C["__core-js_shared__"], St = (function() {
3376
+ var ur = Array.prototype, lr = Function.prototype, ge = Object.prototype, Ye = A["__core-js_shared__"], Et = (function() {
3273
3377
  var a = /[^.]+$/.exec(Ye && Ye.keys && Ye.keys.IE_PROTO || "");
3274
3378
  return a ? "Symbol(src)_1." + a : "";
3275
- })(), Ot = cr.toString, F = ge.hasOwnProperty, _e = ge.toString, ur = RegExp(
3276
- "^" + Ot.call(F).replace(Bn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
3277
- ), Et = er ? C.Buffer : void 0, vt = C.Symbol, Nt = C.Uint8Array, lr = Ge(Object.getPrototypeOf, Object), dr = Object.create, mr = ge.propertyIsEnumerable, fr = sr.splice, Rt = Object.getOwnPropertySymbols, hr = Et ? Et.isBuffer : void 0, pr = Ge(Object.keys, Object), Fe = Q(C, "DataView"), se = Q(C, "Map"), Ue = Q(C, "Promise"), He = Q(C, "Set"), Le = Q(C, "WeakMap"), ce = Q(Object, "create"), yr = W(Fe), gr = W(se), _r = W(Ue), wr = W(He), br = W(Le), Pt = vt ? vt.prototype : void 0, xt = Pt ? Pt.valueOf : void 0;
3379
+ })(), vt = lr.toString, F = ge.hasOwnProperty, _e = ge.toString, dr = RegExp(
3380
+ "^" + vt.call(F).replace(Zn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
3381
+ ), Nt = nr ? A.Buffer : void 0, Rt = A.Symbol, Pt = A.Uint8Array, mr = Ge(Object.getPrototypeOf, Object), fr = Object.create, hr = ge.propertyIsEnumerable, pr = ur.splice, xt = Object.getOwnPropertySymbols, yr = Nt ? Nt.isBuffer : void 0, gr = Ge(Object.keys, Object), Fe = X(A, "DataView"), ce = X(A, "Map"), Ue = X(A, "Promise"), He = X(A, "Set"), Le = X(A, "WeakMap"), ue = X(Object, "create"), _r = W(Fe), wr = W(ce), br = W(Ue), Tr = W(He), Dr = W(Le), It = Rt ? Rt.prototype : void 0, Ct = It ? It.valueOf : void 0;
3278
3382
  function L(a) {
3279
3383
  var s = -1, u = a ? a.length : 0;
3280
3384
  for (this.clear(); ++s < u; ) {
@@ -3282,190 +3386,190 @@ function Jo() {
3282
3386
  this.set(m[0], m[1]);
3283
3387
  }
3284
3388
  }
3285
- function Tr() {
3286
- this.__data__ = ce ? ce(null) : {};
3389
+ function Mr() {
3390
+ this.__data__ = ue ? ue(null) : {};
3287
3391
  }
3288
- function Dr(a) {
3392
+ function Sr(a) {
3289
3393
  return this.has(a) && delete this.__data__[a];
3290
3394
  }
3291
- function Mr(a) {
3395
+ function Or(a) {
3292
3396
  var s = this.__data__;
3293
- if (ce) {
3397
+ if (ue) {
3294
3398
  var u = s[a];
3295
3399
  return u === r ? void 0 : u;
3296
3400
  }
3297
3401
  return F.call(s, a) ? s[a] : void 0;
3298
3402
  }
3299
- function Sr(a) {
3403
+ function Er(a) {
3300
3404
  var s = this.__data__;
3301
- return ce ? s[a] !== void 0 : F.call(s, a);
3405
+ return ue ? s[a] !== void 0 : F.call(s, a);
3302
3406
  }
3303
- function Or(a, s) {
3407
+ function vr(a, s) {
3304
3408
  var u = this.__data__;
3305
- return u[a] = ce && s === void 0 ? r : s, this;
3409
+ return u[a] = ue && s === void 0 ? r : s, this;
3306
3410
  }
3307
- L.prototype.clear = Tr, L.prototype.delete = Dr, L.prototype.get = Mr, L.prototype.has = Sr, L.prototype.set = Or;
3308
- function A(a) {
3411
+ L.prototype.clear = Mr, L.prototype.delete = Sr, L.prototype.get = Or, L.prototype.has = Er, L.prototype.set = vr;
3412
+ function k(a) {
3309
3413
  var s = -1, u = a ? a.length : 0;
3310
3414
  for (this.clear(); ++s < u; ) {
3311
3415
  var m = a[s];
3312
3416
  this.set(m[0], m[1]);
3313
3417
  }
3314
3418
  }
3315
- function Er() {
3419
+ function Nr() {
3316
3420
  this.__data__ = [];
3317
3421
  }
3318
- function vr(a) {
3422
+ function Rr(a) {
3319
3423
  var s = this.__data__, u = we(s, a);
3320
3424
  if (u < 0)
3321
3425
  return !1;
3322
3426
  var m = s.length - 1;
3323
- return u == m ? s.pop() : fr.call(s, u, 1), !0;
3427
+ return u == m ? s.pop() : pr.call(s, u, 1), !0;
3324
3428
  }
3325
- function Nr(a) {
3429
+ function Pr(a) {
3326
3430
  var s = this.__data__, u = we(s, a);
3327
3431
  return u < 0 ? void 0 : s[u][1];
3328
3432
  }
3329
- function Rr(a) {
3433
+ function xr(a) {
3330
3434
  return we(this.__data__, a) > -1;
3331
3435
  }
3332
- function Pr(a, s) {
3436
+ function Ir(a, s) {
3333
3437
  var u = this.__data__, m = we(u, a);
3334
3438
  return m < 0 ? u.push([a, s]) : u[m][1] = s, this;
3335
3439
  }
3336
- A.prototype.clear = Er, A.prototype.delete = vr, A.prototype.get = Nr, A.prototype.has = Rr, A.prototype.set = Pr;
3337
- function z(a) {
3440
+ k.prototype.clear = Nr, k.prototype.delete = Rr, k.prototype.get = Pr, k.prototype.has = xr, k.prototype.set = Ir;
3441
+ function Q(a) {
3338
3442
  var s = -1, u = a ? a.length : 0;
3339
3443
  for (this.clear(); ++s < u; ) {
3340
3444
  var m = a[s];
3341
3445
  this.set(m[0], m[1]);
3342
3446
  }
3343
3447
  }
3344
- function xr() {
3448
+ function Cr() {
3345
3449
  this.__data__ = {
3346
3450
  hash: new L(),
3347
- map: new (se || A)(),
3451
+ map: new (ce || k)(),
3348
3452
  string: new L()
3349
3453
  };
3350
3454
  }
3351
- function Ir(a) {
3455
+ function Ar(a) {
3352
3456
  return be(this, a).delete(a);
3353
3457
  }
3354
- function Cr(a) {
3458
+ function kr(a) {
3355
3459
  return be(this, a).get(a);
3356
3460
  }
3357
- function Ar(a) {
3461
+ function Gr(a) {
3358
3462
  return be(this, a).has(a);
3359
3463
  }
3360
- function kr(a, s) {
3464
+ function Yr(a, s) {
3361
3465
  return be(this, a).set(a, s), this;
3362
3466
  }
3363
- z.prototype.clear = xr, z.prototype.delete = Ir, z.prototype.get = Cr, z.prototype.has = Ar, z.prototype.set = kr;
3364
- function B(a) {
3365
- this.__data__ = new A(a);
3467
+ Q.prototype.clear = Cr, Q.prototype.delete = Ar, Q.prototype.get = kr, Q.prototype.has = Gr, Q.prototype.set = Yr;
3468
+ function Z(a) {
3469
+ this.__data__ = new k(a);
3366
3470
  }
3367
- function Gr() {
3368
- this.__data__ = new A();
3471
+ function Fr() {
3472
+ this.__data__ = new k();
3369
3473
  }
3370
- function Yr(a) {
3474
+ function Ur(a) {
3371
3475
  return this.__data__.delete(a);
3372
3476
  }
3373
- function Fr(a) {
3477
+ function Hr(a) {
3374
3478
  return this.__data__.get(a);
3375
3479
  }
3376
- function Ur(a) {
3480
+ function Lr(a) {
3377
3481
  return this.__data__.has(a);
3378
3482
  }
3379
- function Hr(a, s) {
3483
+ function qr(a, s) {
3380
3484
  var u = this.__data__;
3381
- if (u instanceof A) {
3485
+ if (u instanceof k) {
3382
3486
  var m = u.__data__;
3383
- if (!se || m.length < n - 1)
3487
+ if (!ce || m.length < n - 1)
3384
3488
  return m.push([a, s]), this;
3385
- u = this.__data__ = new z(m);
3489
+ u = this.__data__ = new Q(m);
3386
3490
  }
3387
3491
  return u.set(a, s), this;
3388
3492
  }
3389
- B.prototype.clear = Gr, B.prototype.delete = Yr, B.prototype.get = Fr, B.prototype.has = Ur, B.prototype.set = Hr;
3390
- function Lr(a, s) {
3391
- var u = je(a) || da(a) ? ir(a.length, String) : [], m = u.length, S = !!m;
3493
+ Z.prototype.clear = Fr, Z.prototype.delete = Ur, Z.prototype.get = Hr, Z.prototype.has = Lr, Z.prototype.set = qr;
3494
+ function Wr(a, s) {
3495
+ var u = je(a) || fa(a) ? sr(a.length, String) : [], m = u.length, S = !!m;
3392
3496
  for (var v in a)
3393
- F.call(a, v) && !(S && (v == "length" || sa(v, m))) && u.push(v);
3497
+ F.call(a, v) && !(S && (v == "length" || ua(v, m))) && u.push(v);
3394
3498
  return u;
3395
3499
  }
3396
- function It(a, s, u) {
3500
+ function At(a, s, u) {
3397
3501
  var m = a[s];
3398
- (!(F.call(a, s) && Gt(m, u)) || u === void 0 && !(s in a)) && (a[s] = u);
3502
+ (!(F.call(a, s) && Ft(m, u)) || u === void 0 && !(s in a)) && (a[s] = u);
3399
3503
  }
3400
3504
  function we(a, s) {
3401
3505
  for (var u = a.length; u--; )
3402
- if (Gt(a[u][0], s))
3506
+ if (Ft(a[u][0], s))
3403
3507
  return u;
3404
3508
  return -1;
3405
3509
  }
3406
- function qr(a, s) {
3407
- return a && Ct(s, Ve(s), a);
3510
+ function jr(a, s) {
3511
+ return a && kt(s, ze(s), a);
3408
3512
  }
3409
- function qe(a, s, u, m, S, v, k) {
3513
+ function qe(a, s, u, m, S, v, G) {
3410
3514
  var N;
3411
- if (m && (N = v ? m(a, S, v, k) : m(a)), N !== void 0)
3515
+ if (m && (N = v ? m(a, S, v, G) : m(a)), N !== void 0)
3412
3516
  return N;
3413
3517
  if (!Te(a))
3414
3518
  return a;
3415
- var Ut = je(a);
3416
- if (Ut) {
3417
- if (N = aa(a), !s)
3418
- return ta(a, N);
3519
+ var Lt = je(a);
3520
+ if (Lt) {
3521
+ if (N = oa(a), !s)
3522
+ return ra(a, N);
3419
3523
  } else {
3420
- var Z = q(a), Ht = Z == p || Z == y;
3421
- if (fa(a))
3422
- return Br(a, s);
3423
- if (Z == _ || Z == o || Ht && !v) {
3424
- if (Tt(a))
3524
+ var K = q(a), qt = K == p || K == y;
3525
+ if (pa(a))
3526
+ return Zr(a, s);
3527
+ if (K == _ || K == o || qt && !v) {
3528
+ if (Mt(a))
3425
3529
  return v ? a : {};
3426
- if (N = ia(Ht ? {} : a), !s)
3427
- return na(a, qr(N, a));
3530
+ if (N = sa(qt ? {} : a), !s)
3531
+ return aa(a, jr(N, a));
3428
3532
  } else {
3429
- if (!b[Z])
3533
+ if (!b[K])
3430
3534
  return v ? a : {};
3431
- N = oa(a, Z, qe, s);
3535
+ N = ca(a, K, qe, s);
3432
3536
  }
3433
3537
  }
3434
- k || (k = new B());
3435
- var Lt = k.get(a);
3436
- if (Lt)
3437
- return Lt;
3438
- if (k.set(a, N), !Ut)
3439
- var qt = u ? ra(a) : Ve(a);
3440
- return rr(qt || a, function($e, De) {
3441
- qt && (De = $e, $e = a[De]), It(N, De, qe($e, s, u, m, De, a, k));
3538
+ G || (G = new Z());
3539
+ var Wt = G.get(a);
3540
+ if (Wt)
3541
+ return Wt;
3542
+ if (G.set(a, N), !Lt)
3543
+ var jt = u ? ia(a) : ze(a);
3544
+ return ir(jt || a, function(Ve, De) {
3545
+ jt && (De = Ve, Ve = a[De]), At(N, De, qe(Ve, s, u, m, De, a, G));
3442
3546
  }), N;
3443
3547
  }
3444
- function Wr(a) {
3445
- return Te(a) ? dr(a) : {};
3548
+ function zr(a) {
3549
+ return Te(a) ? fr(a) : {};
3446
3550
  }
3447
- function jr(a, s, u) {
3551
+ function Vr(a, s, u) {
3448
3552
  var m = s(a);
3449
- return je(a) ? m : ar(m, u(a));
3553
+ return je(a) ? m : or(m, u(a));
3450
3554
  }
3451
- function Vr(a) {
3555
+ function $r(a) {
3452
3556
  return _e.call(a);
3453
3557
  }
3454
- function $r(a) {
3455
- if (!Te(a) || ua(a))
3558
+ function Br(a) {
3559
+ if (!Te(a) || da(a))
3456
3560
  return !1;
3457
- var s = Ft(a) || Tt(a) ? ur : Zn;
3561
+ var s = Ht(a) || Mt(a) ? dr : Kn;
3458
3562
  return s.test(W(a));
3459
3563
  }
3460
- function zr(a) {
3461
- if (!kt(a))
3462
- return pr(a);
3564
+ function Qr(a) {
3565
+ if (!Yt(a))
3566
+ return gr(a);
3463
3567
  var s = [];
3464
3568
  for (var u in Object(a))
3465
3569
  F.call(a, u) && u != "constructor" && s.push(u);
3466
3570
  return s;
3467
3571
  }
3468
- function Br(a, s) {
3572
+ function Zr(a, s) {
3469
3573
  if (s)
3470
3574
  return a.slice();
3471
3575
  var u = new a.constructor(a.length);
@@ -3473,96 +3577,94 @@ function Jo() {
3473
3577
  }
3474
3578
  function We(a) {
3475
3579
  var s = new a.constructor(a.byteLength);
3476
- return new Nt(s).set(new Nt(a)), s;
3580
+ return new Pt(s).set(new Pt(a)), s;
3477
3581
  }
3478
- function Qr(a, s) {
3582
+ function Xr(a, s) {
3479
3583
  var u = s ? We(a.buffer) : a.buffer;
3480
3584
  return new a.constructor(u, a.byteOffset, a.byteLength);
3481
3585
  }
3482
- function Zr(a, s, u) {
3483
- var m = s ? u(Dt(a), !0) : Dt(a);
3484
- return bt(m, tr, new a.constructor());
3586
+ function Kr(a, s, u) {
3587
+ var m = s ? u(St(a), !0) : St(a);
3588
+ return Dt(m, rr, new a.constructor());
3485
3589
  }
3486
- function Xr(a) {
3487
- var s = new a.constructor(a.source, Qn.exec(a));
3590
+ function Jr(a) {
3591
+ var s = new a.constructor(a.source, Xn.exec(a));
3488
3592
  return s.lastIndex = a.lastIndex, s;
3489
3593
  }
3490
- function Kr(a, s, u) {
3491
- var m = s ? u(Mt(a), !0) : Mt(a);
3492
- return bt(m, nr, new a.constructor());
3594
+ function ea(a, s, u) {
3595
+ var m = s ? u(Ot(a), !0) : Ot(a);
3596
+ return Dt(m, ar, new a.constructor());
3493
3597
  }
3494
- function Jr(a) {
3495
- return xt ? Object(xt.call(a)) : {};
3598
+ function ta(a) {
3599
+ return Ct ? Object(Ct.call(a)) : {};
3496
3600
  }
3497
- function ea(a, s) {
3601
+ function na(a, s) {
3498
3602
  var u = s ? We(a.buffer) : a.buffer;
3499
3603
  return new a.constructor(u, a.byteOffset, a.length);
3500
3604
  }
3501
- function ta(a, s) {
3605
+ function ra(a, s) {
3502
3606
  var u = -1, m = a.length;
3503
3607
  for (s || (s = Array(m)); ++u < m; )
3504
3608
  s[u] = a[u];
3505
3609
  return s;
3506
3610
  }
3507
- function Ct(a, s, u, m) {
3611
+ function kt(a, s, u, m) {
3508
3612
  u || (u = {});
3509
3613
  for (var S = -1, v = s.length; ++S < v; ) {
3510
- var k = s[S], N = void 0;
3511
- It(u, k, N === void 0 ? a[k] : N);
3614
+ var G = s[S], N = void 0;
3615
+ At(u, G, N === void 0 ? a[G] : N);
3512
3616
  }
3513
3617
  return u;
3514
3618
  }
3515
- function na(a, s) {
3516
- return Ct(a, At(a), s);
3619
+ function aa(a, s) {
3620
+ return kt(a, Gt(a), s);
3517
3621
  }
3518
- function ra(a) {
3519
- return jr(a, Ve, At);
3622
+ function ia(a) {
3623
+ return Vr(a, ze, Gt);
3520
3624
  }
3521
3625
  function be(a, s) {
3522
3626
  var u = a.__data__;
3523
- return ca(s) ? u[typeof s == "string" ? "string" : "hash"] : u.map;
3627
+ return la(s) ? u[typeof s == "string" ? "string" : "hash"] : u.map;
3524
3628
  }
3525
- function Q(a, s) {
3526
- var u = or(a, s);
3527
- return $r(u) ? u : void 0;
3629
+ function X(a, s) {
3630
+ var u = cr(a, s);
3631
+ return Br(u) ? u : void 0;
3528
3632
  }
3529
- var At = Rt ? Ge(Rt, Object) : ya, q = Vr;
3530
- (Fe && q(new Fe(new ArrayBuffer(1))) != ye || se && q(new se()) != g || Ue && q(Ue.resolve()) != T || He && q(new He()) != x || Le && q(new Le()) != ke) && (q = function(a) {
3633
+ var Gt = xt ? Ge(xt, Object) : _a, q = $r;
3634
+ (Fe && q(new Fe(new ArrayBuffer(1))) != ye || ce && q(new ce()) != g || Ue && q(Ue.resolve()) != T || He && q(new He()) != x || Le && q(new Le()) != ke) && (q = function(a) {
3531
3635
  var s = _e.call(a), u = s == _ ? a.constructor : void 0, m = u ? W(u) : void 0;
3532
3636
  if (m)
3533
3637
  switch (m) {
3534
- case yr:
3638
+ case _r:
3535
3639
  return ye;
3536
- case gr:
3640
+ case wr:
3537
3641
  return g;
3538
- case _r:
3642
+ case br:
3539
3643
  return T;
3540
- case wr:
3644
+ case Tr:
3541
3645
  return x;
3542
- case br:
3646
+ case Dr:
3543
3647
  return ke;
3544
3648
  }
3545
3649
  return s;
3546
3650
  });
3547
- function aa(a) {
3651
+ function oa(a) {
3548
3652
  var s = a.length, u = a.constructor(s);
3549
3653
  return s && typeof a[0] == "string" && F.call(a, "index") && (u.index = a.index, u.input = a.input), u;
3550
3654
  }
3551
- function ia(a) {
3552
- return typeof a.constructor == "function" && !kt(a) ? Wr(lr(a)) : {};
3655
+ function sa(a) {
3656
+ return typeof a.constructor == "function" && !Yt(a) ? zr(mr(a)) : {};
3553
3657
  }
3554
- function oa(a, s, u, m) {
3658
+ function ca(a, s, u, m) {
3555
3659
  var S = a.constructor;
3556
3660
  switch (s) {
3557
- case ct:
3661
+ case lt:
3558
3662
  return We(a);
3559
3663
  case l:
3560
3664
  case f:
3561
3665
  return new S(+a);
3562
3666
  case ye:
3563
- return Qr(a, m);
3564
- case ut:
3565
- case lt:
3667
+ return Xr(a, m);
3566
3668
  case dt:
3567
3669
  case mt:
3568
3670
  case ft:
@@ -3570,38 +3672,40 @@ function Jo() {
3570
3672
  case pt:
3571
3673
  case yt:
3572
3674
  case gt:
3573
- return ea(a, m);
3675
+ case _t:
3676
+ case wt:
3677
+ return na(a, m);
3574
3678
  case g:
3575
- return Zr(a, m, u);
3679
+ return Kr(a, m, u);
3576
3680
  case E:
3577
- case I:
3681
+ case C:
3578
3682
  return new S(a);
3579
3683
  case H:
3580
- return Xr(a);
3581
- case x:
3582
- return Kr(a, m, u);
3583
- case $:
3584
3684
  return Jr(a);
3685
+ case x:
3686
+ return ea(a, m, u);
3687
+ case B:
3688
+ return ta(a);
3585
3689
  }
3586
3690
  }
3587
- function sa(a, s) {
3588
- return s = s ?? i, !!s && (typeof a == "number" || Xn.test(a)) && a > -1 && a % 1 == 0 && a < s;
3691
+ function ua(a, s) {
3692
+ return s = s ?? i, !!s && (typeof a == "number" || Jn.test(a)) && a > -1 && a % 1 == 0 && a < s;
3589
3693
  }
3590
- function ca(a) {
3694
+ function la(a) {
3591
3695
  var s = typeof a;
3592
3696
  return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? a !== "__proto__" : a === null;
3593
3697
  }
3594
- function ua(a) {
3595
- return !!St && St in a;
3698
+ function da(a) {
3699
+ return !!Et && Et in a;
3596
3700
  }
3597
- function kt(a) {
3701
+ function Yt(a) {
3598
3702
  var s = a && a.constructor, u = typeof s == "function" && s.prototype || ge;
3599
3703
  return a === u;
3600
3704
  }
3601
3705
  function W(a) {
3602
3706
  if (a != null) {
3603
3707
  try {
3604
- return Ot.call(a);
3708
+ return vt.call(a);
3605
3709
  } catch {
3606
3710
  }
3607
3711
  try {
@@ -3611,51 +3715,51 @@ function Jo() {
3611
3715
  }
3612
3716
  return "";
3613
3717
  }
3614
- function la(a) {
3718
+ function ma(a) {
3615
3719
  return qe(a, !0, !0);
3616
3720
  }
3617
- function Gt(a, s) {
3721
+ function Ft(a, s) {
3618
3722
  return a === s || a !== a && s !== s;
3619
3723
  }
3620
- function da(a) {
3621
- return ma(a) && F.call(a, "callee") && (!mr.call(a, "callee") || _e.call(a) == o);
3724
+ function fa(a) {
3725
+ return ha(a) && F.call(a, "callee") && (!hr.call(a, "callee") || _e.call(a) == o);
3622
3726
  }
3623
3727
  var je = Array.isArray;
3624
- function Yt(a) {
3625
- return a != null && ha(a.length) && !Ft(a);
3728
+ function Ut(a) {
3729
+ return a != null && ya(a.length) && !Ht(a);
3626
3730
  }
3627
- function ma(a) {
3628
- return pa(a) && Yt(a);
3731
+ function ha(a) {
3732
+ return ga(a) && Ut(a);
3629
3733
  }
3630
- var fa = hr || ga;
3631
- function Ft(a) {
3734
+ var pa = yr || wa;
3735
+ function Ht(a) {
3632
3736
  var s = Te(a) ? _e.call(a) : "";
3633
3737
  return s == p || s == y;
3634
3738
  }
3635
- function ha(a) {
3739
+ function ya(a) {
3636
3740
  return typeof a == "number" && a > -1 && a % 1 == 0 && a <= i;
3637
3741
  }
3638
3742
  function Te(a) {
3639
3743
  var s = typeof a;
3640
3744
  return !!a && (s == "object" || s == "function");
3641
3745
  }
3642
- function pa(a) {
3746
+ function ga(a) {
3643
3747
  return !!a && typeof a == "object";
3644
3748
  }
3645
- function Ve(a) {
3646
- return Yt(a) ? Lr(a) : zr(a);
3749
+ function ze(a) {
3750
+ return Ut(a) ? Wr(a) : Qr(a);
3647
3751
  }
3648
- function ya() {
3752
+ function _a() {
3649
3753
  return [];
3650
3754
  }
3651
- function ga() {
3755
+ function wa() {
3652
3756
  return !1;
3653
3757
  }
3654
- e.exports = la;
3655
- })(de, de.exports)), de.exports;
3758
+ e.exports = ma;
3759
+ })(me, me.exports)), me.exports;
3656
3760
  }
3657
- var es = Jo();
3658
- const ts = /* @__PURE__ */ Ko(es), P = (e, t) => new Date(e.getTime() - jn(t, e));
3761
+ var rs = ns();
3762
+ const as = /* @__PURE__ */ ts(rs), P = (e, t) => new Date(e.getTime() - Vn(t, e));
3659
3763
  class D {
3660
3764
  timeframeText;
3661
3765
  key;
@@ -3725,38 +3829,38 @@ class D {
3725
3829
  tzAdjustedDate(t) {
3726
3830
  if (!t)
3727
3831
  return /* @__PURE__ */ new Date();
3728
- const n = Bo(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
3729
- return qn(n, t);
3832
+ const n = Xo(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
3833
+ return jn(n, t);
3730
3834
  }
3731
3835
  }
3732
- class ns extends D {
3836
+ class is extends D {
3733
3837
  rawStart(t) {
3734
- let n = G(this.tzAdjustedDate(t), { weekStartsOn: 1 });
3838
+ let n = Y(this.tzAdjustedDate(t), { weekStartsOn: 1 });
3735
3839
  return t && (n = P(n, t)), n;
3736
3840
  }
3737
3841
  maximumTimeframeLength() {
3738
3842
  return 3600 * 24 * 7;
3739
3843
  }
3740
3844
  }
3741
- class rs extends D {
3845
+ class os extends D {
3742
3846
  rawStart(t) {
3743
- let n = ne(this.tzAdjustedDate(t));
3847
+ let n = ae(this.tzAdjustedDate(t));
3744
3848
  return t && (n = P(n, t)), n;
3745
3849
  }
3746
3850
  maximumTimeframeLength() {
3747
3851
  return 3600 * 24 * 31;
3748
3852
  }
3749
3853
  }
3750
- class as extends D {
3854
+ class ss extends D {
3751
3855
  rawStart(t) {
3752
- let n = te(this.tzAdjustedDate(t));
3856
+ let n = re(this.tzAdjustedDate(t));
3753
3857
  return t && (n = P(n, t)), n;
3754
3858
  }
3755
3859
  maximumTimeframeLength() {
3756
3860
  return 3600 * 24 * 92;
3757
3861
  }
3758
3862
  }
3759
- class is extends D {
3863
+ class cs extends D {
3760
3864
  rawStart(t) {
3761
3865
  let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
3762
3866
  return t && (n = P(n, t)), n;
@@ -3765,40 +3869,40 @@ class is extends D {
3765
3869
  return 3600 * 24 * 366;
3766
3870
  }
3767
3871
  }
3768
- class os extends D {
3872
+ class us extends D {
3769
3873
  rawEnd(t) {
3770
- let n = G(this.tzAdjustedDate(t), { weekStartsOn: 1 });
3874
+ let n = Y(this.tzAdjustedDate(t), { weekStartsOn: 1 });
3771
3875
  return t && (n = P(n, t)), n;
3772
3876
  }
3773
3877
  rawStart(t) {
3774
3878
  const n = this.tzAdjustedDate(t);
3775
- let r = G(n.setDate(n.getDate() - 7), {
3879
+ let r = Y(n.setDate(n.getDate() - 7), {
3776
3880
  weekStartsOn: 1
3777
3881
  });
3778
3882
  return t && (r = P(r, t)), r;
3779
3883
  }
3780
3884
  }
3781
- class ss extends D {
3885
+ class ls extends D {
3782
3886
  rawEnd(t) {
3783
- let n = te(this.tzAdjustedDate(t));
3887
+ let n = re(this.tzAdjustedDate(t));
3784
3888
  return t && (n = P(n, t)), n;
3785
3889
  }
3786
3890
  rawStart(t) {
3787
- let n = te(Un(this.tzAdjustedDate(t)));
3891
+ let n = re(Ln(this.tzAdjustedDate(t)));
3788
3892
  return t && (n = P(n, t)), n;
3789
3893
  }
3790
3894
  }
3791
- class cs extends D {
3895
+ class ds extends D {
3792
3896
  rawEnd(t) {
3793
- let n = ne(this.tzAdjustedDate(t));
3897
+ let n = ae(this.tzAdjustedDate(t));
3794
3898
  return t && (n = P(n, t)), n;
3795
3899
  }
3796
3900
  rawStart(t) {
3797
- let n = ne(Fn(this.tzAdjustedDate(t)));
3901
+ let n = ae(Hn(this.tzAdjustedDate(t)));
3798
3902
  return t && (n = P(n, t)), n;
3799
3903
  }
3800
3904
  }
3801
- class us extends D {
3905
+ class ms extends D {
3802
3906
  rawEnd(t) {
3803
3907
  let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
3804
3908
  return t && (n = P(n, t)), n;
@@ -3808,7 +3912,7 @@ class us extends D {
3808
3912
  return t && (n = P(n, t)), n;
3809
3913
  }
3810
3914
  }
3811
- const ls = /* @__PURE__ */ new Map([
3915
+ const fs = /* @__PURE__ */ new Map([
3812
3916
  [
3813
3917
  d.FIFTEEN_MIN,
3814
3918
  new D({
@@ -3961,13 +4065,13 @@ const ls = /* @__PURE__ */ new Map([
3961
4065
  ],
3962
4066
  [
3963
4067
  d.CURRENT_WEEK,
3964
- new ns({
4068
+ new is({
3965
4069
  key: d.CURRENT_WEEK,
3966
4070
  display: "This week",
3967
4071
  timeframeText: "Week",
3968
4072
  timeframeLength: () => {
3969
- const e = G(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
3970
- return (ee(Me(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
4073
+ const e = Y(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
4074
+ return (ne(Me(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
3971
4075
  },
3972
4076
  defaultResponseGranularity: "daily",
3973
4077
  dataGranularity: "daily",
@@ -3979,13 +4083,13 @@ const ls = /* @__PURE__ */ new Map([
3979
4083
  ],
3980
4084
  [
3981
4085
  d.CURRENT_MONTH,
3982
- new rs({
4086
+ new os({
3983
4087
  key: d.CURRENT_MONTH,
3984
4088
  display: "This month",
3985
4089
  timeframeText: "Month",
3986
4090
  timeframeLength: () => {
3987
- const e = ne(/* @__PURE__ */ new Date());
3988
- return (ee(Me(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
4091
+ const e = ae(/* @__PURE__ */ new Date());
4092
+ return (ne(Me(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
3989
4093
  },
3990
4094
  defaultResponseGranularity: "daily",
3991
4095
  dataGranularity: "daily",
@@ -3995,13 +4099,13 @@ const ls = /* @__PURE__ */ new Map([
3995
4099
  ],
3996
4100
  [
3997
4101
  d.CURRENT_QUARTER,
3998
- new as({
4102
+ new ss({
3999
4103
  key: d.CURRENT_QUARTER,
4000
4104
  display: "This quarter",
4001
4105
  timeframeText: "Quarter",
4002
4106
  timeframeLength: () => {
4003
- const e = te(/* @__PURE__ */ new Date());
4004
- return (ee(Me(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
4107
+ const e = re(/* @__PURE__ */ new Date());
4108
+ return (ne(Me(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
4005
4109
  },
4006
4110
  defaultResponseGranularity: "daily",
4007
4111
  dataGranularity: "daily",
@@ -4011,13 +4115,13 @@ const ls = /* @__PURE__ */ new Map([
4011
4115
  ],
4012
4116
  [
4013
4117
  d.CURRENT_YEAR,
4014
- new is({
4118
+ new cs({
4015
4119
  key: d.CURRENT_YEAR,
4016
4120
  display: "This year",
4017
4121
  timeframeText: "Year",
4018
4122
  timeframeLength: () => {
4019
4123
  const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1);
4020
- return (ee(Me(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
4124
+ return (ne(Me(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
4021
4125
  },
4022
4126
  defaultResponseGranularity: "daily",
4023
4127
  dataGranularity: "daily",
@@ -4027,7 +4131,7 @@ const ls = /* @__PURE__ */ new Map([
4027
4131
  ],
4028
4132
  [
4029
4133
  d.PREVIOUS_WEEK,
4030
- new os({
4134
+ new us({
4031
4135
  key: d.PREVIOUS_WEEK,
4032
4136
  display: "Previous week",
4033
4137
  timeframeText: "Week",
@@ -4042,14 +4146,14 @@ const ls = /* @__PURE__ */ new Map([
4042
4146
  ],
4043
4147
  [
4044
4148
  d.PREVIOUS_MONTH,
4045
- new cs({
4149
+ new ds({
4046
4150
  key: d.PREVIOUS_MONTH,
4047
4151
  display: "Previous month",
4048
4152
  timeframeText: "Month",
4049
4153
  timeframeLength: () => {
4050
4154
  let e = 0;
4051
- const t = ne(/* @__PURE__ */ new Date()), n = ne(Fn(/* @__PURE__ */ new Date()));
4052
- return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = fn(t, n)), 3600 * 24 * wo((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + Kt(e);
4155
+ const t = ae(/* @__PURE__ */ new Date()), n = ae(Hn(/* @__PURE__ */ new Date()));
4156
+ return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = pn(t, n)), 3600 * 24 * Do((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + en(e);
4053
4157
  },
4054
4158
  defaultResponseGranularity: "daily",
4055
4159
  dataGranularity: "daily",
@@ -4059,12 +4163,12 @@ const ls = /* @__PURE__ */ new Map([
4059
4163
  ],
4060
4164
  [
4061
4165
  d.PREVIOUS_QUARTER,
4062
- new ss({
4166
+ new ls({
4063
4167
  key: d.PREVIOUS_QUARTER,
4064
4168
  display: "Previous quarter",
4065
4169
  timeframeText: "Quarter",
4066
4170
  timeframeLength: () => {
4067
- const e = te(/* @__PURE__ */ new Date()), t = te(Un(/* @__PURE__ */ new Date()));
4171
+ const e = re(/* @__PURE__ */ new Date()), t = re(Ln(/* @__PURE__ */ new Date()));
4068
4172
  return (e.getTime() - t.getTime()) / 1e3;
4069
4173
  },
4070
4174
  defaultResponseGranularity: "daily",
@@ -4075,14 +4179,14 @@ const ls = /* @__PURE__ */ new Map([
4075
4179
  ],
4076
4180
  [
4077
4181
  d.PREVIOUS_YEAR,
4078
- new us({
4182
+ new ms({
4079
4183
  key: d.PREVIOUS_YEAR,
4080
4184
  display: "Previous year",
4081
4185
  timeframeText: "Year",
4082
4186
  timeframeLength: () => {
4083
4187
  const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1), t = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1);
4084
4188
  let n = 0;
4085
- return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n = fn(e, t)), 3600 * 24 * (365 + (t.getFullYear() % 4 === 0 ? 1 : 0)) + Kt(n);
4189
+ return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n = pn(e, t)), 3600 * 24 * (365 + (t.getFullYear() % 4 === 0 ? 1 : 0)) + en(n);
4086
4190
  },
4087
4191
  defaultResponseGranularity: "daily",
4088
4192
  dataGranularity: "daily",
@@ -4091,9 +4195,9 @@ const ls = /* @__PURE__ */ new Map([
4091
4195
  })
4092
4196
  ]
4093
4197
  ]);
4094
- function $s(e) {
4198
+ function Qs(e) {
4095
4199
  const t = new Date(e.start), n = new Date(e.end), r = (n.getTime() - t.getTime()) / 1e3;
4096
- return e.timePeriodsKey && ts(ls.get(e.timePeriodsKey)) || new D({
4200
+ return e.timePeriodsKey && as(fs.get(e.timePeriodsKey)) || new D({
4097
4201
  key: "custom",
4098
4202
  timeframeText: "custom",
4099
4203
  display: "custom",
@@ -4106,14 +4210,14 @@ function $s(e) {
4106
4210
  allowedTiers: ["free", "plus", "enterprise"]
4107
4211
  });
4108
4212
  }
4109
- function zs(e) {
4213
+ function Zs(e) {
4110
4214
  return {
4111
4215
  ...e.key !== "custom" && { timePeriodsKey: e.key },
4112
4216
  start: e.rawStart(),
4113
4217
  end: e.rawEnd()
4114
4218
  };
4115
4219
  }
4116
- function Bs(e) {
4220
+ function Xs(e) {
4117
4221
  return {
4118
4222
  key: e.key,
4119
4223
  display: e.display,
@@ -4124,10 +4228,10 @@ function Bs(e) {
4124
4228
  end: () => e.rawEnd()
4125
4229
  };
4126
4230
  }
4127
- function fn(e, t) {
4128
- return To(e.getTimezoneOffset() - t.getTimezoneOffset());
4231
+ function pn(e, t) {
4232
+ return So(e.getTimezoneOffset() - t.getTimezoneOffset());
4129
4233
  }
4130
- const Qs = {
4234
+ const Ks = {
4131
4235
  "15M": d.FIFTEEN_MIN,
4132
4236
  "1H": d.ONE_HOUR,
4133
4237
  "6H": d.SIX_HOUR,
@@ -4153,7 +4257,7 @@ const Qs = {
4153
4257
  previous_quarter: d.PREVIOUS_QUARTER,
4154
4258
  previous_year: d.PREVIOUS_YEAR
4155
4259
  };
4156
- class st {
4260
+ class ut {
4157
4261
  _seed;
4158
4262
  constructor(t) {
4159
4263
  this._seed = t;
@@ -4163,14 +4267,14 @@ class st {
4163
4267
  return Math.floor(i * (n - t + 1)) + t;
4164
4268
  }
4165
4269
  }
4166
- const Zs = ({
4270
+ const Js = ({
4167
4271
  metrics: e,
4168
4272
  dimensionMap: t,
4169
4273
  metaOverrides: n,
4170
4274
  valueRange: r = [50, 500],
4171
4275
  timeSeries: i = !1
4172
- }) => i ? e.length === 1 ? ds(e[0], t, n, r) : ms(e, n, r) : fs(e, t, n, r), ds = (e, t, n, r) => {
4173
- const i = zn(10, 1e4), o = new st(i), [c, l] = r || [50, 500], f = Date.now() - 360 * 60 * 1e3, h = Date.now(), p = [];
4276
+ }) => i ? e.length === 1 ? hs(e[0], t, n, r) : ps(e, n, r) : ys(e, t, n, r), hs = (e, t, n, r) => {
4277
+ const i = Qn(10, 1e4), o = new ut(i), [c, l] = r || [50, 500], f = Date.now() - 360 * 60 * 1e3, h = Date.now(), p = [];
4174
4278
  let y = 0;
4175
4279
  for (let _ = f; _ <= h; _ += 3600 * 1e3)
4176
4280
  if (t)
@@ -4180,12 +4284,12 @@ const Zs = ({
4180
4284
  const x = {
4181
4285
  [T]: H,
4182
4286
  [e.name]: y
4183
- }, I = {
4287
+ }, C = {
4184
4288
  version: "1.0",
4185
4289
  timestamp: new Date(_).toISOString(),
4186
4290
  event: x
4187
4291
  };
4188
- p.push(I);
4292
+ p.push(C);
4189
4293
  });
4190
4294
  else {
4191
4295
  y += o.next(c, l);
@@ -4224,8 +4328,8 @@ const Zs = ({
4224
4328
  data: p,
4225
4329
  meta: E
4226
4330
  };
4227
- }, ms = (e, t, n) => {
4228
- const r = zn(10, 1e4), i = new st(r), [o, c] = n || [50, 500], l = Date.now() - 360 * 60 * 1e3, f = Date.now(), h = [], p = {};
4331
+ }, ps = (e, t, n) => {
4332
+ const r = Qn(10, 1e4), i = new ut(r), [o, c] = n || [50, 500], l = Date.now() - 360 * 60 * 1e3, f = Date.now(), h = [], p = {};
4229
4333
  e.forEach((g) => {
4230
4334
  p[g.name] = 0;
4231
4335
  });
@@ -4256,13 +4360,13 @@ const Zs = ({
4256
4360
  data: h,
4257
4361
  meta: y
4258
4362
  };
4259
- }, fs = (e, t, n, r) => {
4260
- const i = Math.floor(Math.random() * 9991) + 10, o = new st(i), [c, l] = r || [50, 500], f = Date.now() - 360 * 60 * 1e3, h = Date.now(), p = new Date((f + h) / 2).toISOString(), y = [];
4363
+ }, ys = (e, t, n, r) => {
4364
+ const i = Math.floor(Math.random() * 9991) + 10, o = new ut(i), [c, l] = r || [50, 500], f = Date.now() - 360 * 60 * 1e3, h = Date.now(), p = new Date((f + h) / 2).toISOString(), y = [];
4261
4365
  if (t) {
4262
- const _ = Object.keys(t), T = Object.values(t), H = (x, I) => {
4263
- if (I === _.length) {
4264
- e.forEach(($) => {
4265
- x[$.name] = o.next(c, l);
4366
+ const _ = Object.keys(t), T = Object.values(t), H = (x, C) => {
4367
+ if (C === _.length) {
4368
+ e.forEach((B) => {
4369
+ x[B.name] = o.next(c, l);
4266
4370
  }), y.push({
4267
4371
  version: "1.0",
4268
4372
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
@@ -4270,8 +4374,8 @@ const Zs = ({
4270
4374
  });
4271
4375
  return;
4272
4376
  }
4273
- T[I].forEach(($) => {
4274
- H({ ...x, [_[I]]: $ }, I + 1);
4377
+ T[C].forEach((B) => {
4378
+ H({ ...x, [_[C]]: B }, C + 1);
4275
4379
  });
4276
4380
  };
4277
4381
  H({}, 0);
@@ -4311,17 +4415,17 @@ const Zs = ({
4311
4415
  meta: E
4312
4416
  };
4313
4417
  };
4314
- function zn(e, t) {
4418
+ function Qn(e, t) {
4315
4419
  return e = Math.ceil(e), t = Math.floor(t), Math.floor(Math.random() * (t - e + 1) + e);
4316
4420
  }
4317
- const hs = new Map(Sn.map((e) => [e.code, { code: e.code, name: e.name }])), Xs = (e) => hs.get(e)?.name || e, hn = 1e3, ps = 1e4, pn = 1e6, yn = 1e9, gn = 1e12, me = (e, t) => {
4421
+ const gs = new Map(Nn.map((e) => [e.code, { code: e.code, name: e.name }])), ec = (e) => gs.get(e)?.name || e, yn = 1e3, _s = 1e4, gn = 1e6, _n = 1e9, wn = 1e12, fe = (e, t) => {
4318
4422
  if (t.separator === !1 || e < 1e3)
4319
4423
  return e.toString();
4320
4424
  const n = typeof t.separator == "string" ? t.separator : ",", r = [];
4321
4425
  return Math.round(e).toString().split("").reverse().forEach((o, c) => {
4322
4426
  c && c % 3 === 0 && r.push(n), r.push(o);
4323
4427
  }), r.reverse().join("");
4324
- }, K = (e, t, n) => {
4428
+ }, ee = (e, t, n) => {
4325
4429
  const r = e / t, i = n.round ? "round" : "floor";
4326
4430
  if (n.decimal === !1)
4327
4431
  return Math[i](r).toString();
@@ -4334,12 +4438,12 @@ function Oe(e, t = {}) {
4334
4438
  let n;
4335
4439
  const r = e < 0;
4336
4440
  r && (e = Math.abs(e)), t.precision && (e = parseFloat(e.toPrecision(t.precision)));
4337
- const i = t.min10k ? ps : hn;
4338
- return e < i || t.precision && t.precision > Math.log10(e) ? n = me(K(e, 1, t), t) : e < pn ? n = `${K(e, hn, t)}k` : e < yn ? n = `${K(e, pn, t)}m` : e < gn ? n = `${me(K(e, yn, t), t)}b` : n = `${me(K(e, gn, t), t)}t`, r && (n = `-${n}`), t.capital && (n = n.toUpperCase()), t.prefix && (n = `${t.prefix}${n}`), t.suffix && (n = `${n}${t.suffix}`), n;
4441
+ const i = t.min10k ? _s : yn;
4442
+ return e < i || t.precision && t.precision > Math.log10(e) ? n = fe(ee(e, 1, t), t) : e < gn ? n = `${ee(e, yn, t)}k` : e < _n ? n = `${ee(e, gn, t)}m` : e < wn ? n = `${fe(ee(e, _n, t), t)}b` : n = `${fe(ee(e, wn, t), t)}t`, r && (n = `-${n}`), t.capital && (n = n.toUpperCase()), t.prefix && (n = `${t.prefix}${n}`), t.suffix && (n = `${n}${t.suffix}`), n;
4339
4443
  }
4340
- Oe.addCommas = me;
4341
- const ys = typeof document < "u" && document.documentElement?.lang || "en-US", Je = new Intl.NumberFormat(ys);
4342
- function Ks({
4444
+ Oe.addCommas = fe;
4445
+ const ws = typeof document < "u" && document.documentElement?.lang || "en-US", Je = new Intl.NumberFormat(ws);
4446
+ function tc({
4343
4447
  i18n: e
4344
4448
  }) {
4345
4449
  const t = (o, c) => {
@@ -4404,8 +4508,8 @@ function Ks({
4404
4508
  return `${E} - ${_} ${g}`;
4405
4509
  } };
4406
4510
  }
4407
- const gs = 1e4, Js = async (e, t, n, r = {}) => {
4408
- const i = Math.max(0, r.maxRecords ?? gs), o = Math.min(Wt, Math.max(1, r.pageSize ?? Wt)), c = [];
4511
+ const bs = 1e4, nc = async (e, t, n, r = {}) => {
4512
+ const i = Math.max(0, r.maxRecords ?? bs), o = Math.min(zt, Math.max(1, r.pageSize ?? zt)), c = [];
4409
4513
  let l = t.query.cursor, f;
4410
4514
  for (; c.length < i; ) {
4411
4515
  const h = Math.min(o, i - c.length), p = await e({
@@ -4430,115 +4534,118 @@ const gs = 1e4, Js = async (e, t, n, r = {}) => {
4430
4534
  };
4431
4535
  };
4432
4536
  export {
4433
- Wt as API_REQUESTS_MAX_PAGE_SIZE,
4537
+ zt as API_REQUESTS_MAX_PAGE_SIZE,
4434
4538
  et as CAPTURE_PREPARE_EVENT,
4435
4539
  tt as CAPTURE_RESTORE_EVENT,
4436
- Sn as COUNTRIES,
4437
- gs as DEFAULT_MAX_REQUEST_RECORDS,
4438
- Vs as DeltaQueryTime,
4439
- Ds as EXPORT_RECORD_LIMIT,
4540
+ Nn as COUNTRIES,
4541
+ bs as DEFAULT_MAX_REQUEST_RECORDS,
4542
+ Bs as DeltaQueryTime,
4543
+ Os as EXPORT_RECORD_LIMIT,
4440
4544
  Re as Granularities,
4441
- Ms as INJECT_QUERY_PROVIDER,
4442
- va as PLATFORM_DATASOURCES,
4443
- Ts as REFRESH_INTERVAL_MS,
4444
- st as SeededRandom,
4445
- Qs as TIMEFRAME_LOOKUP,
4446
- ls as TimePeriods,
4545
+ Es as INJECT_QUERY_PROVIDER,
4546
+ Na as PLATFORM_DATASOURCES,
4547
+ Ss as REFRESH_INTERVAL_MS,
4548
+ ut as SeededRandom,
4549
+ Ks as TIMEFRAME_LOOKUP,
4550
+ fs as TimePeriods,
4447
4551
  D as Timeframe,
4448
4552
  d as TimeframeKeys,
4449
- js as TimeseriesQueryTime,
4450
- Xo as UnaryQueryTime,
4451
- Na as agenticExploreAggregations,
4452
- Qa as agenticUsageSchema,
4453
- Ta as aiExploreAggregations,
4454
- $a as apiUsageQuerySchema,
4455
- Ca as barChartSchema,
4456
- wn as basicExploreAggregations,
4457
- za as basicQuerySchema,
4458
- $n as ceilToNearestTimeGrain,
4459
- ii as chartTileConfigSchema,
4460
- qa as choroplethMapSchema,
4461
- hs as countries,
4462
- Fs as dashboardConfigSchema,
4463
- Gs as dashboardTileTypes,
4464
- Pa as datasourceToFilterableDimensions,
4465
- $s as datePickerSelectionToTimeframe,
4466
- Ya as donutChartSchema,
4467
- fn as dstOffsetHours,
4468
- bn as exploreAggregations,
4469
- wa as exploreFilterTypesV2,
4470
- Ss as extendedRelativeTimeRangeValues,
4471
- Js as fetchAllRequests,
4553
+ $s as TimeseriesQueryTime,
4554
+ es as UnaryQueryTime,
4555
+ Ra as agenticExploreAggregations,
4556
+ Ka as agenticUsageSchema,
4557
+ Ma as aiExploreAggregations,
4558
+ Us as apiRequestsQuerySchema,
4559
+ Qa as apiUsageQuerySchema,
4560
+ Aa as barChartSchema,
4561
+ Tn as basicExploreAggregations,
4562
+ Za as basicQuerySchema,
4563
+ Bn as ceilToNearestTimeGrain,
4564
+ ci as chartTileConfigSchema,
4565
+ za as choroplethMapSchema,
4566
+ gs as countries,
4567
+ Ls as dashboardConfigSchema,
4568
+ Fs as dashboardTileTypes,
4569
+ xa as datasourceToFilterableDimensions,
4570
+ Qs as datePickerSelectionToTimeframe,
4571
+ Ha as donutChartSchema,
4572
+ pn as dstOffsetHours,
4573
+ Dn as exploreAggregations,
4574
+ Ta as exploreFilterTypesV2,
4575
+ vs as extendedRelativeTimeRangeValues,
4576
+ nc as fetchAllRequests,
4472
4577
  Ce as filterableAgenticExploreDimensions,
4473
4578
  Ie as filterableAiExploreDimensions,
4474
4579
  Pe as filterableBasicExploreDimensions,
4475
4580
  xe as filterableExploreDimensions,
4476
4581
  it as filterableManagedCacheExploreDimensions,
4477
- Va as filterablePlatformPresetFilterDimensions,
4478
- Ma as filterableRequestDimensions,
4479
- Ea as filterableRequestMetrics,
4480
- xs as filterableRequestWildcardDimensions,
4481
- Zo as floorToNearestTimeGrain,
4482
- dn as formatTime,
4483
- Ls as formatTimeRange,
4484
- Hs as formatTimestamp,
4485
- Ga as gaugeChartSchema,
4486
- fs as generateCrossSectionalData,
4487
- Zs as generateData,
4488
- ms as generateMultipleMetricTimeSeriesData,
4489
- ds as generateSingleMetricTimeSeriesData,
4490
- Xs as getCountryName,
4491
- Us as getFieldDataSources,
4492
- qs as granularitiesToOptions,
4493
- Qo as granularityMsToQuery,
4494
- _n as granularityValues,
4495
- Cs as isPlatformDatasource,
4496
- Ba as llmUsageSchema,
4497
- Ra as managedCacheExploreAggregations,
4498
- Za as managedCacheUsageQuerySchema,
4499
- Ha as metricCardSchema,
4500
- Ws as msToGranularity,
4582
+ Ba as filterablePlatformPresetFilterDimensions,
4583
+ Sn as filterableRequestDimensions,
4584
+ On as filterableRequestMetrics,
4585
+ Ea as filterableRequestWildcardDimensions,
4586
+ Jo as floorToNearestTimeGrain,
4587
+ fn as formatTime,
4588
+ js as formatTimeRange,
4589
+ Ws as formatTimestamp,
4590
+ Ua as gaugeChartSchema,
4591
+ ys as generateCrossSectionalData,
4592
+ Js as generateData,
4593
+ ps as generateMultipleMetricTimeSeriesData,
4594
+ hs as generateSingleMetricTimeSeriesData,
4595
+ ec as getCountryName,
4596
+ qs as getFieldDataSources,
4597
+ zs as granularitiesToOptions,
4598
+ Ko as granularityMsToQuery,
4599
+ bn as granularityValues,
4600
+ ks as isPlatformDatasource,
4601
+ Xa as llmUsageSchema,
4602
+ Pa as managedCacheExploreAggregations,
4603
+ Ja as managedCacheUsageQuerySchema,
4604
+ Wa as metricCardSchema,
4605
+ Vs as msToGranularity,
4501
4606
  Je as numberFormatter,
4502
- Xa as platformQuerySchema,
4503
- Ka as platformTabularQuerySchema,
4504
- _s as prepareForCapture,
4505
- As as queryDatasources,
4506
- Dn as queryableAgenticExploreDimensions,
4507
- Tn as queryableAiExploreDimensions,
4607
+ ei as platformQuerySchema,
4608
+ ti as platformTabularQuerySchema,
4609
+ Ts as prepareForCapture,
4610
+ Gs as queryDatasources,
4611
+ En as queryableAgenticExploreDimensions,
4612
+ Mn as queryableAiExploreDimensions,
4508
4613
  rt as queryableBasicExploreDimensions,
4509
4614
  at as queryableExploreDimensions,
4510
- Mn as queryableManagedCacheExploreDimensions,
4511
- Da as queryableRequestDimensions,
4512
- Oa as queryableRequestMetrics,
4513
- Sa as queryableRequestWildcardDimensions,
4514
- zn as rand,
4515
- _a as registerCapture,
4516
- bs as registerWebglCapture,
4517
- Is as relativeTimeRangeValuesRequestV2,
4518
- Ps as relativeTimeRangeValuesV4,
4519
- Os as reportChartTypes,
4520
- ba as requestFilterTypeEmptyV2,
4521
- Es as requestFilterTypeEqualsV2,
4522
- vs as requestFilterTypeMetricV2,
4523
- Ns as requestFilterTypeWildcardV2,
4524
- ws as restoreAfterCapture,
4525
- La as singleValueSchema,
4526
- Ia as slottableSchema,
4527
- oi as slottableTileConfigSchema,
4528
- ks as stripUnknownFilters,
4529
- Ua as tableChartSchema,
4530
- Aa as thresholdSchema,
4531
- si as tileConfigSchema,
4532
- ai as tileDefinitionSchema,
4533
- In as tileLayoutSchema,
4534
- Rs as timeRangeTypeV2,
4535
- zs as timeframeToDatepickerSelection,
4536
- Bs as timeframeToDatepickerTimeperiod,
4537
- ka as timeseriesChartSchema,
4538
- Fa as topNTableSchema,
4539
- Ks as unitFormatter,
4540
- Ja as validDashboardChartQuery,
4541
- Ys as validDashboardQuery,
4542
- ei as validDashboardTableQuery
4615
+ vn as queryableManagedCacheExploreDimensions,
4616
+ Sa as queryableRequestDimensions,
4617
+ va as queryableRequestMetrics,
4618
+ Oa as queryableRequestWildcardDimensions,
4619
+ Qn as rand,
4620
+ ba as registerCapture,
4621
+ Ms as registerWebglCapture,
4622
+ As as relativeTimeRangeValuesRequestV2,
4623
+ Cs as relativeTimeRangeValuesV4,
4624
+ Ns as reportChartTypes,
4625
+ Da as requestFilterTypeEmptyV2,
4626
+ Rs as requestFilterTypeEqualsV2,
4627
+ Ps as requestFilterTypeMetricV2,
4628
+ xs as requestFilterTypeWildcardV2,
4629
+ Ds as restoreAfterCapture,
4630
+ Fa as scatterChartSchema,
4631
+ Ya as scatterPercentileLineSchema,
4632
+ ja as singleValueSchema,
4633
+ Ca as slottableSchema,
4634
+ ui as slottableTileConfigSchema,
4635
+ Ys as stripUnknownFilters,
4636
+ qa as tableChartSchema,
4637
+ ka as thresholdSchema,
4638
+ li as tileConfigSchema,
4639
+ si as tileDefinitionSchema,
4640
+ An as tileLayoutSchema,
4641
+ Is as timeRangeTypeV2,
4642
+ Zs as timeframeToDatepickerSelection,
4643
+ Xs as timeframeToDatepickerTimeperiod,
4644
+ Ga as timeseriesChartSchema,
4645
+ La as topNTableSchema,
4646
+ tc as unitFormatter,
4647
+ ni as validDashboardChartQuery,
4648
+ Hs as validDashboardQuery,
4649
+ ri as validDashboardTableQuery
4543
4650
  };
4544
4651
  //# sourceMappingURL=vitals-utilities.es.js.map