@kong-ui-public/analytics-utilities 10.1.1-pr.2292.ab669b0be.0 → 10.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types/explore/all.d.ts +3 -6
- package/dist/types/types/explore/all.d.ts.map +1 -1
- package/dist/types/types/query-bridge.d.ts +1 -0
- package/dist/types/types/query-bridge.d.ts.map +1 -1
- package/dist/vitals-utilities.cjs +1 -1
- package/dist/vitals-utilities.cjs.map +1 -1
- package/dist/vitals-utilities.es.js +605 -609
- package/dist/vitals-utilities.es.js.map +1 -1
- package/dist/vitals-utilities.umd.js +1 -1
- package/dist/vitals-utilities.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/filters.d.ts +0 -3
- package/dist/types/filters.d.ts.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var b = (e, t, r) =>
|
|
4
|
-
const
|
|
1
|
+
var _a = Object.defineProperty;
|
|
2
|
+
var wa = (e, t, r) => t in e ? _a(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var b = (e, t, r) => wa(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
const zs = 3e4;
|
|
5
5
|
var m = /* @__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.CURRENT_WEEK = "current_week", e.CURRENT_MONTH = "current_month", e.CURRENT_QUARTER = "current_quarter", e.PREVIOUS_WEEK = "previous_week", e.PREVIOUS_MONTH = "previous_month", e.PREVIOUS_QUARTER = "previous_quarter", e))(m || {});
|
|
6
|
-
const
|
|
6
|
+
const $s = [
|
|
7
7
|
"horizontal_bar",
|
|
8
8
|
"vertical_bar",
|
|
9
9
|
"timeseries_line",
|
|
@@ -11,7 +11,7 @@ const Xs = [
|
|
|
11
11
|
"timeseries_bar",
|
|
12
12
|
"donut",
|
|
13
13
|
"single_value"
|
|
14
|
-
],
|
|
14
|
+
], lr = ["in", "not_in", "selector"], Vs = ["=", "!="], Xs = ["=", "!=", "<", ">", "<=", ">="], dr = ["empty", "not_empty"], Qs = ["starts_with", "ends_with"], Zs = ["absolute", "relative"], fr = [
|
|
15
15
|
"15m",
|
|
16
16
|
"1h",
|
|
17
17
|
"6h",
|
|
@@ -37,7 +37,7 @@ const Xs = [
|
|
|
37
37
|
"daily",
|
|
38
38
|
"weekly",
|
|
39
39
|
"trend"
|
|
40
|
-
],
|
|
40
|
+
], se = (e) => e.filter((t) => t !== "time"), Ee = [
|
|
41
41
|
"api",
|
|
42
42
|
"api_product",
|
|
43
43
|
"api_product_version",
|
|
@@ -50,7 +50,7 @@ const Xs = [
|
|
|
50
50
|
"status_code",
|
|
51
51
|
"status_code_grouped",
|
|
52
52
|
"time"
|
|
53
|
-
],
|
|
53
|
+
], oe = se(Ee), Be = [
|
|
54
54
|
"active_services",
|
|
55
55
|
"request_count",
|
|
56
56
|
"request_per_minute",
|
|
@@ -66,7 +66,7 @@ const Xs = [
|
|
|
66
66
|
"response_source",
|
|
67
67
|
"data_plane_node_version",
|
|
68
68
|
"realm"
|
|
69
|
-
],
|
|
69
|
+
], ue = se(Ke), hr = [
|
|
70
70
|
...Be,
|
|
71
71
|
"response_latency_p99",
|
|
72
72
|
"response_latency_p95",
|
|
@@ -107,7 +107,7 @@ const Xs = [
|
|
|
107
107
|
"status_code",
|
|
108
108
|
"status_code_grouped",
|
|
109
109
|
"ai_plugin"
|
|
110
|
-
],
|
|
110
|
+
], ce = se(Je), mr = [
|
|
111
111
|
"total_tokens",
|
|
112
112
|
"prompt_tokens",
|
|
113
113
|
"completion_tokens",
|
|
@@ -118,7 +118,7 @@ const Xs = [
|
|
|
118
118
|
"llm_latency_average",
|
|
119
119
|
"llm_embeddings_tokens",
|
|
120
120
|
"llm_embeddings_cost"
|
|
121
|
-
],
|
|
121
|
+
], ba = [
|
|
122
122
|
"api",
|
|
123
123
|
"api_product",
|
|
124
124
|
"api_product_version",
|
|
@@ -153,7 +153,7 @@ const Xs = [
|
|
|
153
153
|
"upstream_uri",
|
|
154
154
|
"upstream_status_code_grouped",
|
|
155
155
|
"websocket"
|
|
156
|
-
],
|
|
156
|
+
], Bs = se(ba), Ta = [
|
|
157
157
|
"auth_type",
|
|
158
158
|
"client_ip",
|
|
159
159
|
"country_code",
|
|
@@ -169,7 +169,7 @@ const Xs = [
|
|
|
169
169
|
"service_protocol",
|
|
170
170
|
"trace_id",
|
|
171
171
|
"upstream_uri"
|
|
172
|
-
],
|
|
172
|
+
], Ks = Ta, Da = [
|
|
173
173
|
"ai_count",
|
|
174
174
|
"latencies_response_ms",
|
|
175
175
|
"latencies_upstream_ms",
|
|
@@ -179,18 +179,18 @@ const Xs = [
|
|
|
179
179
|
"response_header_content_length",
|
|
180
180
|
"status_code",
|
|
181
181
|
"upstream_status_code"
|
|
182
|
-
],
|
|
182
|
+
], Js = se(Da), eo = [
|
|
183
183
|
"15M",
|
|
184
184
|
"1H",
|
|
185
185
|
"6H",
|
|
186
186
|
"12H",
|
|
187
187
|
"24H",
|
|
188
188
|
"7D"
|
|
189
|
-
], to = ["basic", "api_usage", "llm_usage"],
|
|
190
|
-
basic: new Set(
|
|
191
|
-
api_usage: new Set(
|
|
192
|
-
llm_usage: new Set(
|
|
193
|
-
}, ro = (e, t) => t.filter((r) =>
|
|
189
|
+
], to = ["basic", "api_usage", "llm_usage"], Oa = {
|
|
190
|
+
basic: new Set(oe),
|
|
191
|
+
api_usage: new Set(ue),
|
|
192
|
+
llm_usage: new Set(ce)
|
|
193
|
+
}, ro = (e, t) => t.filter((r) => Oa[e].has(r.field)), Sa = [
|
|
194
194
|
"horizontal_bar",
|
|
195
195
|
"vertical_bar",
|
|
196
196
|
"gauge",
|
|
@@ -205,9 +205,9 @@ const Xs = [
|
|
|
205
205
|
type: "string"
|
|
206
206
|
}, $ = {
|
|
207
207
|
type: "string"
|
|
208
|
-
},
|
|
208
|
+
}, yr = {
|
|
209
209
|
type: "boolean"
|
|
210
|
-
},
|
|
210
|
+
}, pr = {
|
|
211
211
|
type: ["object", "array"],
|
|
212
212
|
items: {
|
|
213
213
|
type: "string"
|
|
@@ -215,7 +215,7 @@ const Xs = [
|
|
|
215
215
|
additionalProperties: {
|
|
216
216
|
type: "string"
|
|
217
217
|
}
|
|
218
|
-
},
|
|
218
|
+
}, gr = {
|
|
219
219
|
type: "object",
|
|
220
220
|
properties: {
|
|
221
221
|
type: {
|
|
@@ -228,7 +228,7 @@ const Xs = [
|
|
|
228
228
|
},
|
|
229
229
|
required: ["type", "id"],
|
|
230
230
|
additionalProperties: !1
|
|
231
|
-
},
|
|
231
|
+
}, _r = {
|
|
232
232
|
type: "object",
|
|
233
233
|
properties: {
|
|
234
234
|
type: {
|
|
@@ -238,14 +238,14 @@ const Xs = [
|
|
|
238
238
|
stacked: {
|
|
239
239
|
type: "boolean"
|
|
240
240
|
},
|
|
241
|
-
chartDatasetColors:
|
|
241
|
+
chartDatasetColors: pr,
|
|
242
242
|
syntheticsDataKey: le,
|
|
243
243
|
chartTitle: $,
|
|
244
|
-
allowCsvExport:
|
|
244
|
+
allowCsvExport: yr
|
|
245
245
|
},
|
|
246
246
|
required: ["type"],
|
|
247
247
|
additionalProperties: !1
|
|
248
|
-
},
|
|
248
|
+
}, wr = {
|
|
249
249
|
type: "object",
|
|
250
250
|
properties: {
|
|
251
251
|
type: {
|
|
@@ -261,14 +261,14 @@ const Xs = [
|
|
|
261
261
|
type: "number"
|
|
262
262
|
}
|
|
263
263
|
},
|
|
264
|
-
chartDatasetColors:
|
|
264
|
+
chartDatasetColors: pr,
|
|
265
265
|
syntheticsDataKey: le,
|
|
266
266
|
chartTitle: $,
|
|
267
|
-
allowCsvExport:
|
|
267
|
+
allowCsvExport: yr
|
|
268
268
|
},
|
|
269
269
|
required: ["type"],
|
|
270
270
|
additionalProperties: !1
|
|
271
|
-
},
|
|
271
|
+
}, br = {
|
|
272
272
|
type: "object",
|
|
273
273
|
properties: {
|
|
274
274
|
type: {
|
|
@@ -291,7 +291,7 @@ const Xs = [
|
|
|
291
291
|
},
|
|
292
292
|
required: ["type"],
|
|
293
293
|
additionalProperties: !1
|
|
294
|
-
},
|
|
294
|
+
}, Tr = {
|
|
295
295
|
type: "object",
|
|
296
296
|
properties: {
|
|
297
297
|
type: {
|
|
@@ -303,7 +303,7 @@ const Xs = [
|
|
|
303
303
|
},
|
|
304
304
|
required: ["type"],
|
|
305
305
|
additionalProperties: !1
|
|
306
|
-
},
|
|
306
|
+
}, Dr = {
|
|
307
307
|
type: "object",
|
|
308
308
|
properties: {
|
|
309
309
|
chartTitle: $,
|
|
@@ -321,7 +321,7 @@ const Xs = [
|
|
|
321
321
|
},
|
|
322
322
|
required: ["type"],
|
|
323
323
|
additionalProperties: !1
|
|
324
|
-
},
|
|
324
|
+
}, Or = {
|
|
325
325
|
type: "object",
|
|
326
326
|
properties: {
|
|
327
327
|
chartTitle: $,
|
|
@@ -341,7 +341,7 @@ const Xs = [
|
|
|
341
341
|
},
|
|
342
342
|
required: ["type"],
|
|
343
343
|
additionalProperties: !1
|
|
344
|
-
},
|
|
344
|
+
}, Sr = {
|
|
345
345
|
type: "object",
|
|
346
346
|
properties: {
|
|
347
347
|
type: {
|
|
@@ -355,7 +355,7 @@ const Xs = [
|
|
|
355
355
|
},
|
|
356
356
|
required: ["type"],
|
|
357
357
|
additionalProperties: !1
|
|
358
|
-
},
|
|
358
|
+
}, Ma = {
|
|
359
359
|
type: "object",
|
|
360
360
|
properties: {
|
|
361
361
|
tz: {
|
|
@@ -370,7 +370,7 @@ const Xs = [
|
|
|
370
370
|
},
|
|
371
371
|
time_range: {
|
|
372
372
|
type: "string",
|
|
373
|
-
enum:
|
|
373
|
+
enum: fr,
|
|
374
374
|
default: "1h"
|
|
375
375
|
}
|
|
376
376
|
},
|
|
@@ -379,7 +379,7 @@ const Xs = [
|
|
|
379
379
|
"time_range"
|
|
380
380
|
],
|
|
381
381
|
additionalProperties: !1
|
|
382
|
-
},
|
|
382
|
+
}, va = {
|
|
383
383
|
type: "object",
|
|
384
384
|
description: "A duration representing an exact start and end time.",
|
|
385
385
|
properties: {
|
|
@@ -415,8 +415,8 @@ const Xs = [
|
|
|
415
415
|
type: "object",
|
|
416
416
|
description: "The time range to query.",
|
|
417
417
|
anyOf: [
|
|
418
|
-
|
|
419
|
-
|
|
418
|
+
Ma,
|
|
419
|
+
va
|
|
420
420
|
],
|
|
421
421
|
default: {
|
|
422
422
|
type: "relative",
|
|
@@ -460,7 +460,7 @@ const Xs = [
|
|
|
460
460
|
},
|
|
461
461
|
operator: {
|
|
462
462
|
type: "string",
|
|
463
|
-
enum:
|
|
463
|
+
enum: lr
|
|
464
464
|
},
|
|
465
465
|
value: {
|
|
466
466
|
type: "array",
|
|
@@ -486,7 +486,7 @@ const Xs = [
|
|
|
486
486
|
},
|
|
487
487
|
operator: {
|
|
488
488
|
type: "string",
|
|
489
|
-
enum:
|
|
489
|
+
enum: dr
|
|
490
490
|
}
|
|
491
491
|
},
|
|
492
492
|
required: [
|
|
@@ -497,7 +497,7 @@ const Xs = [
|
|
|
497
497
|
}
|
|
498
498
|
]
|
|
499
499
|
}
|
|
500
|
-
}),
|
|
500
|
+
}), Mr = {
|
|
501
501
|
type: "object",
|
|
502
502
|
description: "A query to launch at the advanced explore API",
|
|
503
503
|
properties: {
|
|
@@ -507,14 +507,14 @@ const Xs = [
|
|
|
507
507
|
"advanced"
|
|
508
508
|
]
|
|
509
509
|
},
|
|
510
|
-
metrics: tt(
|
|
510
|
+
metrics: tt(hr),
|
|
511
511
|
dimensions: rt(Ke),
|
|
512
|
-
filters: Pe(
|
|
512
|
+
filters: Pe(ue),
|
|
513
513
|
...et
|
|
514
514
|
},
|
|
515
515
|
required: ["datasource"],
|
|
516
516
|
additionalProperties: !1
|
|
517
|
-
},
|
|
517
|
+
}, vr = {
|
|
518
518
|
type: "object",
|
|
519
519
|
description: "A query to launch at the basic explore API",
|
|
520
520
|
properties: {
|
|
@@ -526,12 +526,12 @@ const Xs = [
|
|
|
526
526
|
},
|
|
527
527
|
metrics: tt(Be),
|
|
528
528
|
dimensions: rt(Ee),
|
|
529
|
-
filters: Pe(
|
|
529
|
+
filters: Pe(oe),
|
|
530
530
|
...et
|
|
531
531
|
},
|
|
532
532
|
required: ["datasource"],
|
|
533
533
|
additionalProperties: !1
|
|
534
|
-
},
|
|
534
|
+
}, xr = {
|
|
535
535
|
type: "object",
|
|
536
536
|
description: "A query to launch at the AI explore API",
|
|
537
537
|
properties: {
|
|
@@ -541,35 +541,35 @@ const Xs = [
|
|
|
541
541
|
"ai"
|
|
542
542
|
]
|
|
543
543
|
},
|
|
544
|
-
metrics: tt(
|
|
544
|
+
metrics: tt(mr),
|
|
545
545
|
dimensions: rt(Je),
|
|
546
|
-
filters: Pe(
|
|
546
|
+
filters: Pe(ce),
|
|
547
547
|
...et
|
|
548
548
|
},
|
|
549
549
|
required: ["datasource"],
|
|
550
550
|
additionalProperties: !1
|
|
551
|
+
}, Er = {
|
|
552
|
+
anyOf: [Mr, vr, xr]
|
|
551
553
|
}, Pr = {
|
|
552
|
-
anyOf: [vr, xr, Er]
|
|
553
|
-
}, Nr = {
|
|
554
554
|
type: "object",
|
|
555
555
|
properties: {
|
|
556
|
-
query:
|
|
556
|
+
query: Er,
|
|
557
557
|
chart: {
|
|
558
558
|
anyOf: [
|
|
559
|
-
|
|
560
|
-
Tr,
|
|
561
|
-
Dr,
|
|
559
|
+
_r,
|
|
562
560
|
br,
|
|
563
|
-
|
|
561
|
+
Tr,
|
|
562
|
+
wr,
|
|
564
563
|
Or,
|
|
565
|
-
|
|
566
|
-
|
|
564
|
+
Dr,
|
|
565
|
+
gr,
|
|
566
|
+
Sr
|
|
567
567
|
]
|
|
568
568
|
}
|
|
569
569
|
},
|
|
570
570
|
required: ["query", "chart"],
|
|
571
571
|
additionalProperties: !1
|
|
572
|
-
},
|
|
572
|
+
}, Nr = {
|
|
573
573
|
type: "object",
|
|
574
574
|
properties: {
|
|
575
575
|
position: {
|
|
@@ -606,11 +606,11 @@ const Xs = [
|
|
|
606
606
|
},
|
|
607
607
|
required: ["position", "size"],
|
|
608
608
|
additionalProperties: !1
|
|
609
|
-
},
|
|
609
|
+
}, Cr = {
|
|
610
610
|
type: "object",
|
|
611
611
|
properties: {
|
|
612
|
-
definition:
|
|
613
|
-
layout:
|
|
612
|
+
definition: Pr,
|
|
613
|
+
layout: Nr,
|
|
614
614
|
id: {
|
|
615
615
|
type: "string",
|
|
616
616
|
description: "Unique identifier for the tile. If not provided, one will be generated."
|
|
@@ -618,12 +618,12 @@ const Xs = [
|
|
|
618
618
|
},
|
|
619
619
|
required: ["definition", "layout"],
|
|
620
620
|
additionalProperties: !1
|
|
621
|
-
},
|
|
621
|
+
}, xa = {
|
|
622
622
|
type: "object",
|
|
623
623
|
properties: {
|
|
624
624
|
tiles: {
|
|
625
625
|
type: "array",
|
|
626
|
-
items:
|
|
626
|
+
items: Cr
|
|
627
627
|
},
|
|
628
628
|
tileHeight: {
|
|
629
629
|
type: "number",
|
|
@@ -643,29 +643,29 @@ const Xs = [
|
|
|
643
643
|
required: ["cols", "rows"],
|
|
644
644
|
additionalProperties: !1
|
|
645
645
|
},
|
|
646
|
-
global_filters: Pe([.../* @__PURE__ */ new Set([...
|
|
646
|
+
global_filters: Pe([.../* @__PURE__ */ new Set([...ue, ...oe, ...ce])])
|
|
647
647
|
},
|
|
648
648
|
required: ["tiles"],
|
|
649
649
|
additionalProperties: !1
|
|
650
650
|
}, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
651
651
|
__proto__: null,
|
|
652
|
-
aiQuerySchema:
|
|
653
|
-
barChartSchema:
|
|
654
|
-
basicQuerySchema:
|
|
655
|
-
dashboardConfigSchema:
|
|
656
|
-
dashboardTileTypes:
|
|
657
|
-
donutChartSchema:
|
|
658
|
-
exploreV4QuerySchema:
|
|
659
|
-
gaugeChartSchema:
|
|
660
|
-
metricCardSchema:
|
|
661
|
-
singleValueSchema:
|
|
662
|
-
slottableSchema:
|
|
663
|
-
tileConfigSchema:
|
|
664
|
-
tileDefinitionSchema:
|
|
665
|
-
tileLayoutSchema:
|
|
666
|
-
timeseriesChartSchema:
|
|
667
|
-
topNTableSchema:
|
|
668
|
-
validDashboardQuery:
|
|
652
|
+
aiQuerySchema: xr,
|
|
653
|
+
barChartSchema: _r,
|
|
654
|
+
basicQuerySchema: vr,
|
|
655
|
+
dashboardConfigSchema: xa,
|
|
656
|
+
dashboardTileTypes: Sa,
|
|
657
|
+
donutChartSchema: Tr,
|
|
658
|
+
exploreV4QuerySchema: Mr,
|
|
659
|
+
gaugeChartSchema: br,
|
|
660
|
+
metricCardSchema: Or,
|
|
661
|
+
singleValueSchema: Sr,
|
|
662
|
+
slottableSchema: gr,
|
|
663
|
+
tileConfigSchema: Cr,
|
|
664
|
+
tileDefinitionSchema: Pr,
|
|
665
|
+
tileLayoutSchema: Nr,
|
|
666
|
+
timeseriesChartSchema: wr,
|
|
667
|
+
topNTableSchema: Dr,
|
|
668
|
+
validDashboardQuery: Er
|
|
669
669
|
}, Symbol.toStringTag, { value: "Module" })), ao = [
|
|
670
670
|
"horizontal_bar",
|
|
671
671
|
"vertical_bar",
|
|
@@ -681,9 +681,9 @@ const Xs = [
|
|
|
681
681
|
type: "string"
|
|
682
682
|
}, V = {
|
|
683
683
|
type: "string"
|
|
684
|
-
},
|
|
684
|
+
}, Ir = {
|
|
685
685
|
type: "boolean"
|
|
686
|
-
},
|
|
686
|
+
}, kr = {
|
|
687
687
|
type: ["object", "array"],
|
|
688
688
|
items: {
|
|
689
689
|
type: "string"
|
|
@@ -691,7 +691,7 @@ const Xs = [
|
|
|
691
691
|
additionalProperties: {
|
|
692
692
|
type: "string"
|
|
693
693
|
}
|
|
694
|
-
},
|
|
694
|
+
}, Ea = {
|
|
695
695
|
type: "object",
|
|
696
696
|
properties: {
|
|
697
697
|
type: {
|
|
@@ -704,7 +704,7 @@ const Xs = [
|
|
|
704
704
|
},
|
|
705
705
|
required: ["type", "id"],
|
|
706
706
|
additionalProperties: !1
|
|
707
|
-
},
|
|
707
|
+
}, Pa = {
|
|
708
708
|
type: "object",
|
|
709
709
|
properties: {
|
|
710
710
|
type: {
|
|
@@ -714,14 +714,14 @@ const Xs = [
|
|
|
714
714
|
stacked: {
|
|
715
715
|
type: "boolean"
|
|
716
716
|
},
|
|
717
|
-
chart_dataset_colors:
|
|
717
|
+
chart_dataset_colors: kr,
|
|
718
718
|
synthetics_data_key: de,
|
|
719
719
|
chart_title: V,
|
|
720
|
-
allow_csv_export:
|
|
720
|
+
allow_csv_export: Ir
|
|
721
721
|
},
|
|
722
722
|
required: ["type"],
|
|
723
723
|
additionalProperties: !1
|
|
724
|
-
},
|
|
724
|
+
}, Na = {
|
|
725
725
|
type: "object",
|
|
726
726
|
properties: {
|
|
727
727
|
type: {
|
|
@@ -737,14 +737,14 @@ const Xs = [
|
|
|
737
737
|
type: "number"
|
|
738
738
|
}
|
|
739
739
|
},
|
|
740
|
-
chart_dataset_colors:
|
|
740
|
+
chart_dataset_colors: kr,
|
|
741
741
|
synthetics_data_key: de,
|
|
742
742
|
chart_title: V,
|
|
743
|
-
allow_csv_export:
|
|
743
|
+
allow_csv_export: Ir
|
|
744
744
|
},
|
|
745
745
|
required: ["type"],
|
|
746
746
|
additionalProperties: !1
|
|
747
|
-
},
|
|
747
|
+
}, Ca = {
|
|
748
748
|
type: "object",
|
|
749
749
|
properties: {
|
|
750
750
|
type: {
|
|
@@ -767,7 +767,7 @@ const Xs = [
|
|
|
767
767
|
},
|
|
768
768
|
required: ["type"],
|
|
769
769
|
additionalProperties: !1
|
|
770
|
-
},
|
|
770
|
+
}, Ia = {
|
|
771
771
|
type: "object",
|
|
772
772
|
properties: {
|
|
773
773
|
type: {
|
|
@@ -779,7 +779,7 @@ const Xs = [
|
|
|
779
779
|
},
|
|
780
780
|
required: ["type"],
|
|
781
781
|
additionalProperties: !1
|
|
782
|
-
},
|
|
782
|
+
}, ka = {
|
|
783
783
|
type: "object",
|
|
784
784
|
properties: {
|
|
785
785
|
chart_title: V,
|
|
@@ -797,7 +797,7 @@ const Xs = [
|
|
|
797
797
|
},
|
|
798
798
|
required: ["type"],
|
|
799
799
|
additionalProperties: !1
|
|
800
|
-
},
|
|
800
|
+
}, Ya = {
|
|
801
801
|
type: "object",
|
|
802
802
|
properties: {
|
|
803
803
|
chart_title: V,
|
|
@@ -817,7 +817,7 @@ const Xs = [
|
|
|
817
817
|
},
|
|
818
818
|
required: ["type"],
|
|
819
819
|
additionalProperties: !1
|
|
820
|
-
},
|
|
820
|
+
}, Ra = {
|
|
821
821
|
type: "object",
|
|
822
822
|
properties: {
|
|
823
823
|
type: {
|
|
@@ -831,7 +831,7 @@ const Xs = [
|
|
|
831
831
|
},
|
|
832
832
|
required: ["type"],
|
|
833
833
|
additionalProperties: !1
|
|
834
|
-
},
|
|
834
|
+
}, qa = {
|
|
835
835
|
type: "object",
|
|
836
836
|
properties: {
|
|
837
837
|
tz: {
|
|
@@ -846,7 +846,7 @@ const Xs = [
|
|
|
846
846
|
},
|
|
847
847
|
time_range: {
|
|
848
848
|
type: "string",
|
|
849
|
-
enum:
|
|
849
|
+
enum: fr,
|
|
850
850
|
default: "1h"
|
|
851
851
|
}
|
|
852
852
|
},
|
|
@@ -855,7 +855,7 @@ const Xs = [
|
|
|
855
855
|
"time_range"
|
|
856
856
|
],
|
|
857
857
|
additionalProperties: !1
|
|
858
|
-
},
|
|
858
|
+
}, Ha = {
|
|
859
859
|
type: "object",
|
|
860
860
|
description: "A duration representing an exact start and end time.",
|
|
861
861
|
properties: {
|
|
@@ -891,8 +891,8 @@ const Xs = [
|
|
|
891
891
|
type: "object",
|
|
892
892
|
description: "The time range to query.",
|
|
893
893
|
anyOf: [
|
|
894
|
-
|
|
895
|
-
|
|
894
|
+
qa,
|
|
895
|
+
Ha
|
|
896
896
|
],
|
|
897
897
|
default: {
|
|
898
898
|
type: "relative",
|
|
@@ -936,7 +936,7 @@ const Xs = [
|
|
|
936
936
|
},
|
|
937
937
|
operator: {
|
|
938
938
|
type: "string",
|
|
939
|
-
enum:
|
|
939
|
+
enum: lr
|
|
940
940
|
},
|
|
941
941
|
value: {
|
|
942
942
|
type: "array",
|
|
@@ -962,7 +962,7 @@ const Xs = [
|
|
|
962
962
|
},
|
|
963
963
|
operator: {
|
|
964
964
|
type: "string",
|
|
965
|
-
enum:
|
|
965
|
+
enum: dr
|
|
966
966
|
}
|
|
967
967
|
},
|
|
968
968
|
required: [
|
|
@@ -973,7 +973,7 @@ const Xs = [
|
|
|
973
973
|
}
|
|
974
974
|
]
|
|
975
975
|
}
|
|
976
|
-
}),
|
|
976
|
+
}), ja = {
|
|
977
977
|
type: "object",
|
|
978
978
|
description: "A query to launch at the advanced explore API",
|
|
979
979
|
properties: {
|
|
@@ -983,14 +983,14 @@ const Xs = [
|
|
|
983
983
|
"api_usage"
|
|
984
984
|
]
|
|
985
985
|
},
|
|
986
|
-
metrics: at(
|
|
986
|
+
metrics: at(hr),
|
|
987
987
|
dimensions: it(Ke),
|
|
988
|
-
filters: Ne(
|
|
988
|
+
filters: Ne(ue),
|
|
989
989
|
...nt
|
|
990
990
|
},
|
|
991
991
|
required: ["datasource"],
|
|
992
992
|
additionalProperties: !1
|
|
993
|
-
},
|
|
993
|
+
}, Aa = {
|
|
994
994
|
type: "object",
|
|
995
995
|
description: "A query to launch at the basic explore API",
|
|
996
996
|
properties: {
|
|
@@ -1002,12 +1002,12 @@ const Xs = [
|
|
|
1002
1002
|
},
|
|
1003
1003
|
metrics: at(Be),
|
|
1004
1004
|
dimensions: it(Ee),
|
|
1005
|
-
filters: Ne(
|
|
1005
|
+
filters: Ne(oe),
|
|
1006
1006
|
...nt
|
|
1007
1007
|
},
|
|
1008
1008
|
required: ["datasource"],
|
|
1009
1009
|
additionalProperties: !1
|
|
1010
|
-
},
|
|
1010
|
+
}, Ga = {
|
|
1011
1011
|
type: "object",
|
|
1012
1012
|
description: "A query to launch at the AI explore API",
|
|
1013
1013
|
properties: {
|
|
@@ -1017,35 +1017,35 @@ const Xs = [
|
|
|
1017
1017
|
"llm_usage"
|
|
1018
1018
|
]
|
|
1019
1019
|
},
|
|
1020
|
-
metrics: at(
|
|
1020
|
+
metrics: at(mr),
|
|
1021
1021
|
dimensions: it(Je),
|
|
1022
|
-
filters: Ne(
|
|
1022
|
+
filters: Ne(ce),
|
|
1023
1023
|
...nt
|
|
1024
1024
|
},
|
|
1025
1025
|
required: ["datasource"],
|
|
1026
1026
|
additionalProperties: !1
|
|
1027
|
-
},
|
|
1028
|
-
anyOf: [
|
|
1029
|
-
},
|
|
1027
|
+
}, Fa = {
|
|
1028
|
+
anyOf: [ja, Aa, Ga]
|
|
1029
|
+
}, Wa = {
|
|
1030
1030
|
type: "object",
|
|
1031
1031
|
properties: {
|
|
1032
|
-
query:
|
|
1032
|
+
query: Fa,
|
|
1033
1033
|
chart: {
|
|
1034
1034
|
anyOf: [
|
|
1035
|
+
Pa,
|
|
1035
1036
|
Ca,
|
|
1036
|
-
ka,
|
|
1037
|
-
Ya,
|
|
1038
1037
|
Ia,
|
|
1039
|
-
Ra,
|
|
1040
|
-
qa,
|
|
1041
1038
|
Na,
|
|
1042
|
-
|
|
1039
|
+
Ya,
|
|
1040
|
+
ka,
|
|
1041
|
+
Ea,
|
|
1042
|
+
Ra
|
|
1043
1043
|
]
|
|
1044
1044
|
}
|
|
1045
1045
|
},
|
|
1046
1046
|
required: ["query", "chart"],
|
|
1047
1047
|
additionalProperties: !1
|
|
1048
|
-
},
|
|
1048
|
+
}, La = {
|
|
1049
1049
|
type: "object",
|
|
1050
1050
|
properties: {
|
|
1051
1051
|
position: {
|
|
@@ -1082,15 +1082,15 @@ const Xs = [
|
|
|
1082
1082
|
},
|
|
1083
1083
|
required: ["position", "size"],
|
|
1084
1084
|
additionalProperties: !1
|
|
1085
|
-
},
|
|
1085
|
+
}, Ua = {
|
|
1086
1086
|
type: "object",
|
|
1087
1087
|
properties: {
|
|
1088
1088
|
type: {
|
|
1089
1089
|
type: "string",
|
|
1090
1090
|
enum: ["chart"]
|
|
1091
1091
|
},
|
|
1092
|
-
definition:
|
|
1093
|
-
layout:
|
|
1092
|
+
definition: Wa,
|
|
1093
|
+
layout: La,
|
|
1094
1094
|
id: {
|
|
1095
1095
|
type: "string",
|
|
1096
1096
|
description: "Unique identifier for the tile. If not provided, one will be generated."
|
|
@@ -1103,31 +1103,28 @@ const Xs = [
|
|
|
1103
1103
|
properties: {
|
|
1104
1104
|
tiles: {
|
|
1105
1105
|
type: "array",
|
|
1106
|
-
items:
|
|
1106
|
+
items: Ua
|
|
1107
1107
|
},
|
|
1108
1108
|
tile_height: {
|
|
1109
1109
|
type: "number",
|
|
1110
1110
|
description: "Height of each tile in pixels."
|
|
1111
1111
|
},
|
|
1112
|
-
preset_filters: Ne([.../* @__PURE__ */ new Set([...
|
|
1112
|
+
preset_filters: Ne([.../* @__PURE__ */ new Set([...ue, ...oe, ...ce])])
|
|
1113
1113
|
},
|
|
1114
1114
|
required: ["tiles"],
|
|
1115
1115
|
additionalProperties: !1
|
|
1116
|
-
},
|
|
1117
|
-
const t = /* @__PURE__ */ new Set();
|
|
1118
|
-
return re.includes(e) && t.add("basic"), ne.includes(e) && t.add("api_usage"), ae.includes(e) && t.add("llm_usage"), (Lt.includes(e) || Sa.includes(e) || Lt.includes(e)) && t.add("requests"), Array.from(t);
|
|
1119
|
-
}, qr = 6048e5, Va = 864e5, Xa = 60, Qa = 3600, Ut = Symbol.for("constructDateFrom");
|
|
1116
|
+
}, Yr = 6048e5, za = 864e5, $a = 60, Va = 3600, Lt = Symbol.for("constructDateFrom");
|
|
1120
1117
|
function I(e, t) {
|
|
1121
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
1118
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && Lt in e ? e[Lt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
1122
1119
|
}
|
|
1123
1120
|
function O(e, t) {
|
|
1124
1121
|
return I(t || e, e);
|
|
1125
1122
|
}
|
|
1126
|
-
function
|
|
1123
|
+
function Ut(e, t, r) {
|
|
1127
1124
|
const n = O(e, r == null ? void 0 : r.in);
|
|
1128
1125
|
return isNaN(t) ? I(e, NaN) : (n.setDate(n.getDate() + t), n);
|
|
1129
1126
|
}
|
|
1130
|
-
function
|
|
1127
|
+
function Xa(e, t, r) {
|
|
1131
1128
|
const n = O(e, r == null ? void 0 : r.in);
|
|
1132
1129
|
if (isNaN(t)) return I(e, NaN);
|
|
1133
1130
|
const i = n.getDate(), o = I(e, n.getTime());
|
|
@@ -1139,9 +1136,9 @@ function Za(e, t, r) {
|
|
|
1139
1136
|
i
|
|
1140
1137
|
), n);
|
|
1141
1138
|
}
|
|
1142
|
-
let
|
|
1139
|
+
let Qa = {};
|
|
1143
1140
|
function fe() {
|
|
1144
|
-
return
|
|
1141
|
+
return Qa;
|
|
1145
1142
|
}
|
|
1146
1143
|
function H(e, t) {
|
|
1147
1144
|
var d, h, f, _;
|
|
@@ -1159,7 +1156,7 @@ function Rr(e, t) {
|
|
|
1159
1156
|
const d = De(c);
|
|
1160
1157
|
return r.getTime() >= o.getTime() ? n + 1 : r.getTime() >= d.getTime() ? n : n - 1;
|
|
1161
1158
|
}
|
|
1162
|
-
function
|
|
1159
|
+
function zt(e) {
|
|
1163
1160
|
const t = O(e), r = new Date(
|
|
1164
1161
|
Date.UTC(
|
|
1165
1162
|
t.getFullYear(),
|
|
@@ -1173,7 +1170,7 @@ function $t(e) {
|
|
|
1173
1170
|
);
|
|
1174
1171
|
return r.setUTCFullYear(t.getFullYear()), +e - +r;
|
|
1175
1172
|
}
|
|
1176
|
-
function
|
|
1173
|
+
function Za(e, ...t) {
|
|
1177
1174
|
const r = I.bind(
|
|
1178
1175
|
null,
|
|
1179
1176
|
t.find((n) => typeof n == "object")
|
|
@@ -1184,33 +1181,33 @@ function Oe(e, t) {
|
|
|
1184
1181
|
const r = O(e, t == null ? void 0 : t.in);
|
|
1185
1182
|
return r.setHours(0, 0, 0, 0), r;
|
|
1186
1183
|
}
|
|
1187
|
-
function
|
|
1188
|
-
const [n, i] =
|
|
1184
|
+
function Ba(e, t, r) {
|
|
1185
|
+
const [n, i] = Za(
|
|
1189
1186
|
r == null ? void 0 : r.in,
|
|
1190
1187
|
e,
|
|
1191
1188
|
t
|
|
1192
|
-
), o = Oe(n), c = Oe(i), d = +o -
|
|
1193
|
-
return Math.round((d - h) /
|
|
1189
|
+
), o = Oe(n), c = Oe(i), d = +o - zt(o), h = +c - zt(c);
|
|
1190
|
+
return Math.round((d - h) / za);
|
|
1194
1191
|
}
|
|
1195
|
-
function
|
|
1192
|
+
function Ka(e, t) {
|
|
1196
1193
|
const r = Rr(e, t), n = I(e, 0);
|
|
1197
1194
|
return n.setFullYear(r, 0, 4), n.setHours(0, 0, 0, 0), De(n);
|
|
1198
1195
|
}
|
|
1199
|
-
function
|
|
1196
|
+
function Ja(e) {
|
|
1200
1197
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
1201
1198
|
}
|
|
1202
|
-
function
|
|
1203
|
-
return !(!
|
|
1199
|
+
function ei(e) {
|
|
1200
|
+
return !(!Ja(e) && typeof e != "number" || isNaN(+O(e)));
|
|
1204
1201
|
}
|
|
1205
1202
|
function ee(e, t) {
|
|
1206
1203
|
const r = O(e, t == null ? void 0 : t.in);
|
|
1207
1204
|
return r.setDate(1), r.setHours(0, 0, 0, 0), r;
|
|
1208
1205
|
}
|
|
1209
|
-
function
|
|
1206
|
+
function ti(e, t) {
|
|
1210
1207
|
const r = O(e, t == null ? void 0 : t.in);
|
|
1211
1208
|
return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
1212
1209
|
}
|
|
1213
|
-
const
|
|
1210
|
+
const ri = {
|
|
1214
1211
|
lessThanXSeconds: {
|
|
1215
1212
|
one: "less than a second",
|
|
1216
1213
|
other: "less than {{count}} seconds"
|
|
@@ -1272,9 +1269,9 @@ const ai = {
|
|
|
1272
1269
|
one: "almost 1 year",
|
|
1273
1270
|
other: "almost {{count}} years"
|
|
1274
1271
|
}
|
|
1275
|
-
},
|
|
1272
|
+
}, ni = (e, t, r) => {
|
|
1276
1273
|
let n;
|
|
1277
|
-
const i =
|
|
1274
|
+
const i = ri[e];
|
|
1278
1275
|
return typeof i == "string" ? n = i : t === 1 ? n = i.one : n = i.other.replace("{{count}}", t.toString()), r != null && r.addSuffix ? r.comparison && r.comparison > 0 ? "in " + n : n + " ago" : n;
|
|
1279
1276
|
};
|
|
1280
1277
|
function Le(e) {
|
|
@@ -1283,43 +1280,43 @@ function Le(e) {
|
|
|
1283
1280
|
return e.formats[r] || e.formats[e.defaultWidth];
|
|
1284
1281
|
};
|
|
1285
1282
|
}
|
|
1286
|
-
const
|
|
1283
|
+
const ai = {
|
|
1287
1284
|
full: "EEEE, MMMM do, y",
|
|
1288
1285
|
long: "MMMM do, y",
|
|
1289
1286
|
medium: "MMM d, y",
|
|
1290
1287
|
short: "MM/dd/yyyy"
|
|
1291
|
-
},
|
|
1288
|
+
}, ii = {
|
|
1292
1289
|
full: "h:mm:ss a zzzz",
|
|
1293
1290
|
long: "h:mm:ss a z",
|
|
1294
1291
|
medium: "h:mm:ss a",
|
|
1295
1292
|
short: "h:mm a"
|
|
1296
|
-
},
|
|
1293
|
+
}, si = {
|
|
1297
1294
|
full: "{{date}} 'at' {{time}}",
|
|
1298
1295
|
long: "{{date}} 'at' {{time}}",
|
|
1299
1296
|
medium: "{{date}}, {{time}}",
|
|
1300
1297
|
short: "{{date}}, {{time}}"
|
|
1301
|
-
},
|
|
1298
|
+
}, oi = {
|
|
1302
1299
|
date: Le({
|
|
1303
|
-
formats:
|
|
1300
|
+
formats: ai,
|
|
1304
1301
|
defaultWidth: "full"
|
|
1305
1302
|
}),
|
|
1306
1303
|
time: Le({
|
|
1307
|
-
formats:
|
|
1304
|
+
formats: ii,
|
|
1308
1305
|
defaultWidth: "full"
|
|
1309
1306
|
}),
|
|
1310
1307
|
dateTime: Le({
|
|
1311
|
-
formats:
|
|
1308
|
+
formats: si,
|
|
1312
1309
|
defaultWidth: "full"
|
|
1313
1310
|
})
|
|
1314
|
-
},
|
|
1311
|
+
}, ui = {
|
|
1315
1312
|
lastWeek: "'last' eeee 'at' p",
|
|
1316
1313
|
yesterday: "'yesterday at' p",
|
|
1317
1314
|
today: "'today at' p",
|
|
1318
1315
|
tomorrow: "'tomorrow at' p",
|
|
1319
1316
|
nextWeek: "eeee 'at' p",
|
|
1320
1317
|
other: "P"
|
|
1321
|
-
},
|
|
1322
|
-
function
|
|
1318
|
+
}, ci = (e, t, r, n) => ui[e];
|
|
1319
|
+
function ae(e) {
|
|
1323
1320
|
return (t, r) => {
|
|
1324
1321
|
const n = r != null && r.context ? String(r.context) : "standalone";
|
|
1325
1322
|
let i;
|
|
@@ -1334,15 +1331,15 @@ function oe(e) {
|
|
|
1334
1331
|
return i[o];
|
|
1335
1332
|
};
|
|
1336
1333
|
}
|
|
1337
|
-
const
|
|
1334
|
+
const li = {
|
|
1338
1335
|
narrow: ["B", "A"],
|
|
1339
1336
|
abbreviated: ["BC", "AD"],
|
|
1340
1337
|
wide: ["Before Christ", "Anno Domini"]
|
|
1341
|
-
},
|
|
1338
|
+
}, di = {
|
|
1342
1339
|
narrow: ["1", "2", "3", "4"],
|
|
1343
1340
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
1344
1341
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
1345
|
-
},
|
|
1342
|
+
}, fi = {
|
|
1346
1343
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
1347
1344
|
abbreviated: [
|
|
1348
1345
|
"Jan",
|
|
@@ -1372,7 +1369,7 @@ const fi = {
|
|
|
1372
1369
|
"November",
|
|
1373
1370
|
"December"
|
|
1374
1371
|
]
|
|
1375
|
-
},
|
|
1372
|
+
}, hi = {
|
|
1376
1373
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
1377
1374
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
1378
1375
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -1385,7 +1382,7 @@ const fi = {
|
|
|
1385
1382
|
"Friday",
|
|
1386
1383
|
"Saturday"
|
|
1387
1384
|
]
|
|
1388
|
-
},
|
|
1385
|
+
}, mi = {
|
|
1389
1386
|
narrow: {
|
|
1390
1387
|
am: "a",
|
|
1391
1388
|
pm: "p",
|
|
@@ -1416,7 +1413,7 @@ const fi = {
|
|
|
1416
1413
|
evening: "evening",
|
|
1417
1414
|
night: "night"
|
|
1418
1415
|
}
|
|
1419
|
-
},
|
|
1416
|
+
}, yi = {
|
|
1420
1417
|
narrow: {
|
|
1421
1418
|
am: "a",
|
|
1422
1419
|
pm: "p",
|
|
@@ -1447,7 +1444,7 @@ const fi = {
|
|
|
1447
1444
|
evening: "in the evening",
|
|
1448
1445
|
night: "at night"
|
|
1449
1446
|
}
|
|
1450
|
-
},
|
|
1447
|
+
}, pi = (e, t) => {
|
|
1451
1448
|
const r = Number(e), n = r % 100;
|
|
1452
1449
|
if (n > 20 || n < 10)
|
|
1453
1450
|
switch (n % 10) {
|
|
@@ -1459,40 +1456,40 @@ const fi = {
|
|
|
1459
1456
|
return r + "rd";
|
|
1460
1457
|
}
|
|
1461
1458
|
return r + "th";
|
|
1462
|
-
},
|
|
1463
|
-
ordinalNumber:
|
|
1464
|
-
era:
|
|
1465
|
-
values:
|
|
1459
|
+
}, gi = {
|
|
1460
|
+
ordinalNumber: pi,
|
|
1461
|
+
era: ae({
|
|
1462
|
+
values: li,
|
|
1466
1463
|
defaultWidth: "wide"
|
|
1467
1464
|
}),
|
|
1468
|
-
quarter:
|
|
1469
|
-
values:
|
|
1465
|
+
quarter: ae({
|
|
1466
|
+
values: di,
|
|
1470
1467
|
defaultWidth: "wide",
|
|
1471
1468
|
argumentCallback: (e) => e - 1
|
|
1472
1469
|
}),
|
|
1473
|
-
month:
|
|
1474
|
-
values:
|
|
1470
|
+
month: ae({
|
|
1471
|
+
values: fi,
|
|
1475
1472
|
defaultWidth: "wide"
|
|
1476
1473
|
}),
|
|
1477
|
-
day:
|
|
1478
|
-
values:
|
|
1474
|
+
day: ae({
|
|
1475
|
+
values: hi,
|
|
1479
1476
|
defaultWidth: "wide"
|
|
1480
1477
|
}),
|
|
1481
|
-
dayPeriod:
|
|
1482
|
-
values:
|
|
1478
|
+
dayPeriod: ae({
|
|
1479
|
+
values: mi,
|
|
1483
1480
|
defaultWidth: "wide",
|
|
1484
|
-
formattingValues:
|
|
1481
|
+
formattingValues: yi,
|
|
1485
1482
|
defaultFormattingWidth: "wide"
|
|
1486
1483
|
})
|
|
1487
1484
|
};
|
|
1488
|
-
function
|
|
1485
|
+
function ie(e) {
|
|
1489
1486
|
return (t, r = {}) => {
|
|
1490
1487
|
const n = r.width, i = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], o = t.match(i);
|
|
1491
1488
|
if (!o)
|
|
1492
1489
|
return null;
|
|
1493
|
-
const c = o[0], d = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], h = Array.isArray(d) ?
|
|
1490
|
+
const c = o[0], d = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], h = Array.isArray(d) ? wi(d, (y) => y.test(c)) : (
|
|
1494
1491
|
// [TODO] -- I challenge you to fix the type
|
|
1495
|
-
|
|
1492
|
+
_i(d, (y) => y.test(c))
|
|
1496
1493
|
);
|
|
1497
1494
|
let f;
|
|
1498
1495
|
f = e.valueCallback ? e.valueCallback(h) : h, f = r.valueCallback ? (
|
|
@@ -1503,17 +1500,17 @@ function ue(e) {
|
|
|
1503
1500
|
return { value: f, rest: _ };
|
|
1504
1501
|
};
|
|
1505
1502
|
}
|
|
1506
|
-
function
|
|
1503
|
+
function _i(e, t) {
|
|
1507
1504
|
for (const r in e)
|
|
1508
1505
|
if (Object.prototype.hasOwnProperty.call(e, r) && t(e[r]))
|
|
1509
1506
|
return r;
|
|
1510
1507
|
}
|
|
1511
|
-
function
|
|
1508
|
+
function wi(e, t) {
|
|
1512
1509
|
for (let r = 0; r < e.length; r++)
|
|
1513
1510
|
if (t(e[r]))
|
|
1514
1511
|
return r;
|
|
1515
1512
|
}
|
|
1516
|
-
function
|
|
1513
|
+
function bi(e) {
|
|
1517
1514
|
return (t, r = {}) => {
|
|
1518
1515
|
const n = t.match(e.matchPattern);
|
|
1519
1516
|
if (!n) return null;
|
|
@@ -1525,23 +1522,23 @@ function Di(e) {
|
|
|
1525
1522
|
return { value: c, rest: d };
|
|
1526
1523
|
};
|
|
1527
1524
|
}
|
|
1528
|
-
const
|
|
1525
|
+
const Ti = /^(\d+)(th|st|nd|rd)?/i, Di = /\d+/i, Oi = {
|
|
1529
1526
|
narrow: /^(b|a)/i,
|
|
1530
1527
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1531
1528
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
1532
|
-
},
|
|
1529
|
+
}, Si = {
|
|
1533
1530
|
any: [/^b/i, /^(a|c)/i]
|
|
1534
|
-
},
|
|
1531
|
+
}, Mi = {
|
|
1535
1532
|
narrow: /^[1234]/i,
|
|
1536
1533
|
abbreviated: /^q[1234]/i,
|
|
1537
1534
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
1538
|
-
},
|
|
1535
|
+
}, vi = {
|
|
1539
1536
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1540
|
-
},
|
|
1537
|
+
}, xi = {
|
|
1541
1538
|
narrow: /^[jfmasond]/i,
|
|
1542
1539
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1543
1540
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1544
|
-
},
|
|
1541
|
+
}, Ei = {
|
|
1545
1542
|
narrow: [
|
|
1546
1543
|
/^j/i,
|
|
1547
1544
|
/^f/i,
|
|
@@ -1570,18 +1567,18 @@ const Oi = /^(\d+)(th|st|nd|rd)?/i, Si = /\d+/i, Mi = {
|
|
|
1570
1567
|
/^n/i,
|
|
1571
1568
|
/^d/i
|
|
1572
1569
|
]
|
|
1573
|
-
},
|
|
1570
|
+
}, Pi = {
|
|
1574
1571
|
narrow: /^[smtwf]/i,
|
|
1575
1572
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1576
1573
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1577
1574
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1578
|
-
},
|
|
1575
|
+
}, Ni = {
|
|
1579
1576
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1580
1577
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1581
|
-
},
|
|
1578
|
+
}, Ci = {
|
|
1582
1579
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1583
1580
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1584
|
-
},
|
|
1581
|
+
}, Ii = {
|
|
1585
1582
|
any: {
|
|
1586
1583
|
am: /^a/i,
|
|
1587
1584
|
pm: /^p/i,
|
|
@@ -1592,64 +1589,64 @@ const Oi = /^(\d+)(th|st|nd|rd)?/i, Si = /\d+/i, Mi = {
|
|
|
1592
1589
|
evening: /evening/i,
|
|
1593
1590
|
night: /night/i
|
|
1594
1591
|
}
|
|
1595
|
-
},
|
|
1596
|
-
ordinalNumber:
|
|
1597
|
-
matchPattern:
|
|
1598
|
-
parsePattern:
|
|
1592
|
+
}, ki = {
|
|
1593
|
+
ordinalNumber: bi({
|
|
1594
|
+
matchPattern: Ti,
|
|
1595
|
+
parsePattern: Di,
|
|
1599
1596
|
valueCallback: (e) => parseInt(e, 10)
|
|
1600
1597
|
}),
|
|
1601
|
-
era:
|
|
1598
|
+
era: ie({
|
|
1599
|
+
matchPatterns: Oi,
|
|
1600
|
+
defaultMatchWidth: "wide",
|
|
1601
|
+
parsePatterns: Si,
|
|
1602
|
+
defaultParseWidth: "any"
|
|
1603
|
+
}),
|
|
1604
|
+
quarter: ie({
|
|
1602
1605
|
matchPatterns: Mi,
|
|
1603
1606
|
defaultMatchWidth: "wide",
|
|
1604
1607
|
parsePatterns: vi,
|
|
1605
|
-
defaultParseWidth: "any"
|
|
1608
|
+
defaultParseWidth: "any",
|
|
1609
|
+
valueCallback: (e) => e + 1
|
|
1606
1610
|
}),
|
|
1607
|
-
|
|
1611
|
+
month: ie({
|
|
1608
1612
|
matchPatterns: xi,
|
|
1609
1613
|
defaultMatchWidth: "wide",
|
|
1610
1614
|
parsePatterns: Ei,
|
|
1611
|
-
defaultParseWidth: "any"
|
|
1612
|
-
valueCallback: (e) => e + 1
|
|
1615
|
+
defaultParseWidth: "any"
|
|
1613
1616
|
}),
|
|
1614
|
-
|
|
1617
|
+
day: ie({
|
|
1615
1618
|
matchPatterns: Pi,
|
|
1616
1619
|
defaultMatchWidth: "wide",
|
|
1617
1620
|
parsePatterns: Ni,
|
|
1618
1621
|
defaultParseWidth: "any"
|
|
1619
1622
|
}),
|
|
1620
|
-
|
|
1623
|
+
dayPeriod: ie({
|
|
1621
1624
|
matchPatterns: Ci,
|
|
1622
|
-
defaultMatchWidth: "wide",
|
|
1623
|
-
parsePatterns: Ii,
|
|
1624
|
-
defaultParseWidth: "any"
|
|
1625
|
-
}),
|
|
1626
|
-
dayPeriod: ue({
|
|
1627
|
-
matchPatterns: ki,
|
|
1628
1625
|
defaultMatchWidth: "any",
|
|
1629
|
-
parsePatterns:
|
|
1626
|
+
parsePatterns: Ii,
|
|
1630
1627
|
defaultParseWidth: "any"
|
|
1631
1628
|
})
|
|
1632
|
-
},
|
|
1629
|
+
}, Yi = {
|
|
1633
1630
|
code: "en-US",
|
|
1634
|
-
formatDistance:
|
|
1635
|
-
formatLong:
|
|
1636
|
-
formatRelative:
|
|
1637
|
-
localize:
|
|
1638
|
-
match:
|
|
1631
|
+
formatDistance: ni,
|
|
1632
|
+
formatLong: oi,
|
|
1633
|
+
formatRelative: ci,
|
|
1634
|
+
localize: gi,
|
|
1635
|
+
match: ki,
|
|
1639
1636
|
options: {
|
|
1640
1637
|
weekStartsOn: 0,
|
|
1641
1638
|
firstWeekContainsDate: 1
|
|
1642
1639
|
}
|
|
1643
1640
|
};
|
|
1644
|
-
function
|
|
1641
|
+
function Ri(e, t) {
|
|
1645
1642
|
const r = O(e, t == null ? void 0 : t.in);
|
|
1646
|
-
return
|
|
1643
|
+
return Ba(r, ti(r)) + 1;
|
|
1647
1644
|
}
|
|
1648
|
-
function
|
|
1649
|
-
const r = O(e, t == null ? void 0 : t.in), n = +De(r) - +
|
|
1650
|
-
return Math.round(n /
|
|
1645
|
+
function qi(e, t) {
|
|
1646
|
+
const r = O(e, t == null ? void 0 : t.in), n = +De(r) - +Ka(r);
|
|
1647
|
+
return Math.round(n / Yr) + 1;
|
|
1651
1648
|
}
|
|
1652
|
-
function
|
|
1649
|
+
function qr(e, t) {
|
|
1653
1650
|
var _, y, p, E;
|
|
1654
1651
|
const r = O(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = fe(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((y = (_ = t == null ? void 0 : t.locale) == null ? void 0 : _.options) == null ? void 0 : y.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((E = (p = i.locale) == null ? void 0 : p.options) == null ? void 0 : E.firstWeekContainsDate) ?? 1, c = I((t == null ? void 0 : t.in) || e, 0);
|
|
1655
1652
|
c.setFullYear(n + 1, 0, o), c.setHours(0, 0, 0, 0);
|
|
@@ -1658,14 +1655,14 @@ function Hr(e, t) {
|
|
|
1658
1655
|
const f = H(h, t);
|
|
1659
1656
|
return +r >= +d ? n + 1 : +r >= +f ? n : n - 1;
|
|
1660
1657
|
}
|
|
1661
|
-
function
|
|
1658
|
+
function Hi(e, t) {
|
|
1662
1659
|
var d, h, f, _;
|
|
1663
|
-
const r = fe(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((_ = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, i =
|
|
1660
|
+
const r = fe(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((_ = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, i = qr(e, t), o = I((t == null ? void 0 : t.in) || e, 0);
|
|
1664
1661
|
return o.setFullYear(i, 0, n), o.setHours(0, 0, 0, 0), H(o, t);
|
|
1665
1662
|
}
|
|
1666
|
-
function
|
|
1667
|
-
const r = O(e, t == null ? void 0 : t.in), n = +H(r, t) - +
|
|
1668
|
-
return Math.round(n /
|
|
1663
|
+
function ji(e, t) {
|
|
1664
|
+
const r = O(e, t == null ? void 0 : t.in), n = +H(r, t) - +Hi(r, t);
|
|
1665
|
+
return Math.round(n / Yr) + 1;
|
|
1669
1666
|
}
|
|
1670
1667
|
function g(e, t) {
|
|
1671
1668
|
const r = e < 0 ? "-" : "", n = Math.abs(e).toString().padStart(t, "0");
|
|
@@ -1732,7 +1729,7 @@ const A = {
|
|
|
1732
1729
|
afternoon: "afternoon",
|
|
1733
1730
|
evening: "evening",
|
|
1734
1731
|
night: "night"
|
|
1735
|
-
},
|
|
1732
|
+
}, $t = {
|
|
1736
1733
|
// Era
|
|
1737
1734
|
G: function(e, t, r) {
|
|
1738
1735
|
const n = e.getFullYear() > 0 ? 1 : 0;
|
|
@@ -1758,7 +1755,7 @@ const A = {
|
|
|
1758
1755
|
},
|
|
1759
1756
|
// Local week-numbering year
|
|
1760
1757
|
Y: function(e, t, r, n) {
|
|
1761
|
-
const i =
|
|
1758
|
+
const i = qr(e, n), o = i > 0 ? i : 1 - i;
|
|
1762
1759
|
if (t === "YY") {
|
|
1763
1760
|
const c = o % 100;
|
|
1764
1761
|
return g(c, 2);
|
|
@@ -1890,12 +1887,12 @@ const A = {
|
|
|
1890
1887
|
},
|
|
1891
1888
|
// Local week of year
|
|
1892
1889
|
w: function(e, t, r, n) {
|
|
1893
|
-
const i =
|
|
1890
|
+
const i = ji(e, n);
|
|
1894
1891
|
return t === "wo" ? r.ordinalNumber(i, { unit: "week" }) : g(i, t.length);
|
|
1895
1892
|
},
|
|
1896
1893
|
// ISO week of year
|
|
1897
1894
|
I: function(e, t, r) {
|
|
1898
|
-
const n =
|
|
1895
|
+
const n = qi(e);
|
|
1899
1896
|
return t === "Io" ? r.ordinalNumber(n, { unit: "week" }) : g(n, t.length);
|
|
1900
1897
|
},
|
|
1901
1898
|
// Day of the month
|
|
@@ -1904,7 +1901,7 @@ const A = {
|
|
|
1904
1901
|
},
|
|
1905
1902
|
// Day of year
|
|
1906
1903
|
D: function(e, t, r) {
|
|
1907
|
-
const n =
|
|
1904
|
+
const n = Ri(e);
|
|
1908
1905
|
return t === "Do" ? r.ordinalNumber(n, { unit: "dayOfYear" }) : g(n, t.length);
|
|
1909
1906
|
},
|
|
1910
1907
|
// Day of week
|
|
@@ -2158,7 +2155,7 @@ const A = {
|
|
|
2158
2155
|
return "Z";
|
|
2159
2156
|
switch (t) {
|
|
2160
2157
|
case "X":
|
|
2161
|
-
return
|
|
2158
|
+
return Xt(n);
|
|
2162
2159
|
case "XXXX":
|
|
2163
2160
|
case "XX":
|
|
2164
2161
|
return z(n);
|
|
@@ -2173,7 +2170,7 @@ const A = {
|
|
|
2173
2170
|
const n = e.getTimezoneOffset();
|
|
2174
2171
|
switch (t) {
|
|
2175
2172
|
case "x":
|
|
2176
|
-
return
|
|
2173
|
+
return Xt(n);
|
|
2177
2174
|
case "xxxx":
|
|
2178
2175
|
case "xx":
|
|
2179
2176
|
return z(n);
|
|
@@ -2190,7 +2187,7 @@ const A = {
|
|
|
2190
2187
|
case "O":
|
|
2191
2188
|
case "OO":
|
|
2192
2189
|
case "OOO":
|
|
2193
|
-
return "GMT" +
|
|
2190
|
+
return "GMT" + Vt(n, ":");
|
|
2194
2191
|
case "OOOO":
|
|
2195
2192
|
default:
|
|
2196
2193
|
return "GMT" + z(n, ":");
|
|
@@ -2203,7 +2200,7 @@ const A = {
|
|
|
2203
2200
|
case "z":
|
|
2204
2201
|
case "zz":
|
|
2205
2202
|
case "zzz":
|
|
2206
|
-
return "GMT" +
|
|
2203
|
+
return "GMT" + Vt(n, ":");
|
|
2207
2204
|
case "zzzz":
|
|
2208
2205
|
default:
|
|
2209
2206
|
return "GMT" + z(n, ":");
|
|
@@ -2219,18 +2216,18 @@ const A = {
|
|
|
2219
2216
|
return g(+e, t.length);
|
|
2220
2217
|
}
|
|
2221
2218
|
};
|
|
2222
|
-
function
|
|
2219
|
+
function Vt(e, t = "") {
|
|
2223
2220
|
const r = e > 0 ? "-" : "+", n = Math.abs(e), i = Math.trunc(n / 60), o = n % 60;
|
|
2224
2221
|
return o === 0 ? r + String(i) : r + String(i) + t + g(o, 2);
|
|
2225
2222
|
}
|
|
2226
|
-
function
|
|
2223
|
+
function Xt(e, t) {
|
|
2227
2224
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + g(Math.abs(e) / 60, 2) : z(e, t);
|
|
2228
2225
|
}
|
|
2229
2226
|
function z(e, t = "") {
|
|
2230
2227
|
const r = e > 0 ? "-" : "+", n = Math.abs(e), i = g(Math.trunc(n / 60), 2), o = g(n % 60, 2);
|
|
2231
2228
|
return r + i + t + o;
|
|
2232
2229
|
}
|
|
2233
|
-
const
|
|
2230
|
+
const Qt = (e, t) => {
|
|
2234
2231
|
switch (e) {
|
|
2235
2232
|
case "P":
|
|
2236
2233
|
return t.date({ width: "short" });
|
|
@@ -2242,7 +2239,7 @@ const Zt = (e, t) => {
|
|
|
2242
2239
|
default:
|
|
2243
2240
|
return t.date({ width: "full" });
|
|
2244
2241
|
}
|
|
2245
|
-
},
|
|
2242
|
+
}, Hr = (e, t) => {
|
|
2246
2243
|
switch (e) {
|
|
2247
2244
|
case "p":
|
|
2248
2245
|
return t.time({ width: "short" });
|
|
@@ -2254,10 +2251,10 @@ const Zt = (e, t) => {
|
|
|
2254
2251
|
default:
|
|
2255
2252
|
return t.time({ width: "full" });
|
|
2256
2253
|
}
|
|
2257
|
-
},
|
|
2254
|
+
}, Ai = (e, t) => {
|
|
2258
2255
|
const r = e.match(/(P+)(p+)?/) || [], n = r[1], i = r[2];
|
|
2259
2256
|
if (!i)
|
|
2260
|
-
return
|
|
2257
|
+
return Qt(e, t);
|
|
2261
2258
|
let o;
|
|
2262
2259
|
switch (n) {
|
|
2263
2260
|
case "P":
|
|
@@ -2274,47 +2271,47 @@ const Zt = (e, t) => {
|
|
|
2274
2271
|
o = t.dateTime({ width: "full" });
|
|
2275
2272
|
break;
|
|
2276
2273
|
}
|
|
2277
|
-
return o.replace("{{date}}",
|
|
2278
|
-
},
|
|
2279
|
-
p:
|
|
2280
|
-
P:
|
|
2281
|
-
},
|
|
2282
|
-
function
|
|
2283
|
-
return
|
|
2274
|
+
return o.replace("{{date}}", Qt(n, t)).replace("{{time}}", Hr(i, t));
|
|
2275
|
+
}, Gi = {
|
|
2276
|
+
p: Hr,
|
|
2277
|
+
P: Ai
|
|
2278
|
+
}, Fi = /^D+$/, Wi = /^Y+$/, Li = ["D", "DD", "YY", "YYYY"];
|
|
2279
|
+
function Ui(e) {
|
|
2280
|
+
return Fi.test(e);
|
|
2284
2281
|
}
|
|
2285
|
-
function
|
|
2286
|
-
return
|
|
2282
|
+
function zi(e) {
|
|
2283
|
+
return Wi.test(e);
|
|
2287
2284
|
}
|
|
2288
|
-
function
|
|
2289
|
-
const n =
|
|
2290
|
-
if (console.warn(n),
|
|
2285
|
+
function $i(e, t, r) {
|
|
2286
|
+
const n = Vi(e, t, r);
|
|
2287
|
+
if (console.warn(n), Li.includes(e)) throw new RangeError(n);
|
|
2291
2288
|
}
|
|
2292
|
-
function
|
|
2289
|
+
function Vi(e, t, r) {
|
|
2293
2290
|
const n = e[0] === "Y" ? "years" : "days of the month";
|
|
2294
2291
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
2295
2292
|
}
|
|
2296
|
-
const
|
|
2297
|
-
function
|
|
2293
|
+
const Xi = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Qi = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Zi = /^'([^]*?)'?$/, Bi = /''/g, Ki = /[a-zA-Z]/;
|
|
2294
|
+
function jr(e, t, r) {
|
|
2298
2295
|
var _, y, p, E, P, N, k, G;
|
|
2299
|
-
const n = fe(), i = (r == null ? void 0 : r.locale) ?? n.locale ??
|
|
2300
|
-
if (!
|
|
2296
|
+
const n = fe(), i = (r == null ? void 0 : r.locale) ?? n.locale ?? Yi, o = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((y = (_ = r == null ? void 0 : r.locale) == null ? void 0 : _.options) == null ? void 0 : y.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((E = (p = n.locale) == null ? void 0 : p.options) == null ? void 0 : E.firstWeekContainsDate) ?? 1, c = (r == null ? void 0 : r.weekStartsOn) ?? ((N = (P = r == null ? void 0 : r.locale) == null ? void 0 : P.options) == null ? void 0 : N.weekStartsOn) ?? n.weekStartsOn ?? ((G = (k = n.locale) == null ? void 0 : k.options) == null ? void 0 : G.weekStartsOn) ?? 0, d = O(e, r == null ? void 0 : r.in);
|
|
2297
|
+
if (!ei(d))
|
|
2301
2298
|
throw new RangeError("Invalid time value");
|
|
2302
|
-
let h = t.match(
|
|
2299
|
+
let h = t.match(Qi).map((S) => {
|
|
2303
2300
|
const T = S[0];
|
|
2304
2301
|
if (T === "p" || T === "P") {
|
|
2305
|
-
const F =
|
|
2302
|
+
const F = Gi[T];
|
|
2306
2303
|
return F(S, i.formatLong);
|
|
2307
2304
|
}
|
|
2308
2305
|
return S;
|
|
2309
|
-
}).join("").match(
|
|
2306
|
+
}).join("").match(Xi).map((S) => {
|
|
2310
2307
|
if (S === "''")
|
|
2311
2308
|
return { isToken: !1, value: "'" };
|
|
2312
2309
|
const T = S[0];
|
|
2313
2310
|
if (T === "'")
|
|
2314
|
-
return { isToken: !1, value:
|
|
2315
|
-
if (
|
|
2311
|
+
return { isToken: !1, value: Ji(S) };
|
|
2312
|
+
if ($t[T])
|
|
2316
2313
|
return { isToken: !0, value: S };
|
|
2317
|
-
if (T.match(
|
|
2314
|
+
if (T.match(Ki))
|
|
2318
2315
|
throw new RangeError(
|
|
2319
2316
|
"Format string contains an unescaped latin alphabet character `" + T + "`"
|
|
2320
2317
|
);
|
|
@@ -2329,63 +2326,63 @@ function Ar(e, t, r) {
|
|
|
2329
2326
|
return h.map((S) => {
|
|
2330
2327
|
if (!S.isToken) return S.value;
|
|
2331
2328
|
const T = S.value;
|
|
2332
|
-
(!(r != null && r.useAdditionalWeekYearTokens) &&
|
|
2333
|
-
const F =
|
|
2329
|
+
(!(r != null && r.useAdditionalWeekYearTokens) && zi(T) || !(r != null && r.useAdditionalDayOfYearTokens) && Ui(T)) && $i(T, t, String(e));
|
|
2330
|
+
const F = $t[T[0]];
|
|
2334
2331
|
return F(d, T, i.localize, f);
|
|
2335
2332
|
}).join("");
|
|
2336
2333
|
}
|
|
2337
|
-
function
|
|
2338
|
-
const t = e.match(
|
|
2339
|
-
return t ? t[1].replace(
|
|
2334
|
+
function Ji(e) {
|
|
2335
|
+
const t = e.match(Zi);
|
|
2336
|
+
return t ? t[1].replace(Bi, "'") : e;
|
|
2340
2337
|
}
|
|
2341
|
-
function
|
|
2338
|
+
function es(e, t) {
|
|
2342
2339
|
const r = O(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = r.getMonth(), o = I(r, 0);
|
|
2343
2340
|
return o.setFullYear(n, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
2344
2341
|
}
|
|
2345
|
-
function
|
|
2342
|
+
function ts() {
|
|
2346
2343
|
return Object.assign({}, fe());
|
|
2347
2344
|
}
|
|
2348
|
-
function
|
|
2345
|
+
function Zt(e) {
|
|
2349
2346
|
return +O(e);
|
|
2350
2347
|
}
|
|
2351
|
-
function
|
|
2348
|
+
function Bt(e) {
|
|
2352
2349
|
return Math.trunc(+O(e) / 1e3);
|
|
2353
2350
|
}
|
|
2354
|
-
function
|
|
2355
|
-
return Math.trunc(e *
|
|
2351
|
+
function rs(e) {
|
|
2352
|
+
return Math.trunc(e * Va);
|
|
2356
2353
|
}
|
|
2357
|
-
function
|
|
2358
|
-
const t = e /
|
|
2354
|
+
function ns(e) {
|
|
2355
|
+
const t = e / $a;
|
|
2359
2356
|
return Math.trunc(t);
|
|
2360
2357
|
}
|
|
2361
|
-
function
|
|
2362
|
-
return
|
|
2358
|
+
function Ar(e, t, r) {
|
|
2359
|
+
return Xa(e, -1, r);
|
|
2363
2360
|
}
|
|
2364
|
-
function
|
|
2365
|
-
const n =
|
|
2366
|
-
return "formatToParts" in i ?
|
|
2361
|
+
function Kt(e, t, r) {
|
|
2362
|
+
const n = ts(), i = ss(e, r.timeZone, r.locale ?? n.locale);
|
|
2363
|
+
return "formatToParts" in i ? as(i, t) : is(i, t);
|
|
2367
2364
|
}
|
|
2368
|
-
function
|
|
2365
|
+
function as(e, t) {
|
|
2369
2366
|
const r = e.formatToParts(t);
|
|
2370
2367
|
for (let n = r.length - 1; n >= 0; --n)
|
|
2371
2368
|
if (r[n].type === "timeZoneName")
|
|
2372
2369
|
return r[n].value;
|
|
2373
2370
|
}
|
|
2374
|
-
function
|
|
2371
|
+
function is(e, t) {
|
|
2375
2372
|
const r = e.format(t).replace(/\u200E/g, ""), n = / [\w-+ ]+$/.exec(r);
|
|
2376
2373
|
return n ? n[0].substr(1) : "";
|
|
2377
2374
|
}
|
|
2378
|
-
function
|
|
2375
|
+
function ss(e, t, r) {
|
|
2379
2376
|
return new Intl.DateTimeFormat(r ? [r.code, "en-US"] : void 0, {
|
|
2380
2377
|
timeZone: t,
|
|
2381
2378
|
timeZoneName: e
|
|
2382
2379
|
});
|
|
2383
2380
|
}
|
|
2384
|
-
function
|
|
2385
|
-
const r =
|
|
2386
|
-
return "formatToParts" in r ?
|
|
2381
|
+
function os(e, t) {
|
|
2382
|
+
const r = fs(t);
|
|
2383
|
+
return "formatToParts" in r ? cs(r, e) : ls(r, e);
|
|
2387
2384
|
}
|
|
2388
|
-
const
|
|
2385
|
+
const us = {
|
|
2389
2386
|
year: 0,
|
|
2390
2387
|
month: 1,
|
|
2391
2388
|
day: 2,
|
|
@@ -2393,11 +2390,11 @@ const ls = {
|
|
|
2393
2390
|
minute: 4,
|
|
2394
2391
|
second: 5
|
|
2395
2392
|
};
|
|
2396
|
-
function
|
|
2393
|
+
function cs(e, t) {
|
|
2397
2394
|
try {
|
|
2398
2395
|
const r = e.formatToParts(t), n = [];
|
|
2399
2396
|
for (let i = 0; i < r.length; i++) {
|
|
2400
|
-
const o =
|
|
2397
|
+
const o = us[r[i].type];
|
|
2401
2398
|
o !== void 0 && (n[o] = parseInt(r[i].value, 10));
|
|
2402
2399
|
}
|
|
2403
2400
|
return n;
|
|
@@ -2407,7 +2404,7 @@ function ds(e, t) {
|
|
|
2407
2404
|
throw r;
|
|
2408
2405
|
}
|
|
2409
2406
|
}
|
|
2410
|
-
function
|
|
2407
|
+
function ls(e, t) {
|
|
2411
2408
|
const r = e.format(t), n = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);
|
|
2412
2409
|
return [
|
|
2413
2410
|
parseInt(n[3], 10),
|
|
@@ -2418,7 +2415,7 @@ function fs(e, t) {
|
|
|
2418
2415
|
parseInt(n[6], 10)
|
|
2419
2416
|
];
|
|
2420
2417
|
}
|
|
2421
|
-
const Ue = {},
|
|
2418
|
+
const Ue = {}, Jt = new Intl.DateTimeFormat("en-US", {
|
|
2422
2419
|
hourCycle: "h23",
|
|
2423
2420
|
timeZone: "America/New_York",
|
|
2424
2421
|
year: "numeric",
|
|
@@ -2427,9 +2424,9 @@ const Ue = {}, er = new Intl.DateTimeFormat("en-US", {
|
|
|
2427
2424
|
hour: "2-digit",
|
|
2428
2425
|
minute: "2-digit",
|
|
2429
2426
|
second: "2-digit"
|
|
2430
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
2431
|
-
function
|
|
2432
|
-
return Ue[e] || (Ue[e] =
|
|
2427
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), ds = Jt === "06/25/2014, 00:00:00" || Jt === "06/25/2014 00:00:00";
|
|
2428
|
+
function fs(e) {
|
|
2429
|
+
return Ue[e] || (Ue[e] = ds ? new Intl.DateTimeFormat("en-US", {
|
|
2433
2430
|
hourCycle: "h23",
|
|
2434
2431
|
timeZone: e,
|
|
2435
2432
|
year: "numeric",
|
|
@@ -2453,7 +2450,7 @@ function st(e, t, r, n, i, o, c) {
|
|
|
2453
2450
|
const d = /* @__PURE__ */ new Date(0);
|
|
2454
2451
|
return d.setUTCFullYear(e, t, r), d.setUTCHours(n, i, o, c), d;
|
|
2455
2452
|
}
|
|
2456
|
-
const
|
|
2453
|
+
const er = 36e5, hs = 6e4, ze = {
|
|
2457
2454
|
timezoneZ: /^(Z)$/,
|
|
2458
2455
|
timezoneHH: /^([+-]\d{2})$/,
|
|
2459
2456
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -2466,29 +2463,29 @@ function he(e, t, r) {
|
|
|
2466
2463
|
return 0;
|
|
2467
2464
|
let i, o;
|
|
2468
2465
|
if (n = ze.timezoneHH.exec(e), n)
|
|
2469
|
-
return i = parseInt(n[1], 10),
|
|
2466
|
+
return i = parseInt(n[1], 10), tr(i) ? -(i * er) : NaN;
|
|
2470
2467
|
if (n = ze.timezoneHHMM.exec(e), n) {
|
|
2471
2468
|
i = parseInt(n[2], 10);
|
|
2472
2469
|
const c = parseInt(n[3], 10);
|
|
2473
|
-
return
|
|
2470
|
+
return tr(i, c) ? (o = Math.abs(i) * er + c * hs, n[1] === "+" ? -o : o) : NaN;
|
|
2474
2471
|
}
|
|
2475
|
-
if (
|
|
2472
|
+
if (ps(e)) {
|
|
2476
2473
|
t = new Date(t || Date.now());
|
|
2477
|
-
const c = r ? t :
|
|
2478
|
-
return -(r ? d :
|
|
2474
|
+
const c = r ? t : ms(t), d = Qe(c, e);
|
|
2475
|
+
return -(r ? d : ys(t, d, e));
|
|
2479
2476
|
}
|
|
2480
2477
|
return NaN;
|
|
2481
2478
|
}
|
|
2482
|
-
function
|
|
2479
|
+
function ms(e) {
|
|
2483
2480
|
return st(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
2484
2481
|
}
|
|
2485
2482
|
function Qe(e, t) {
|
|
2486
|
-
const r =
|
|
2483
|
+
const r = os(e, t), n = st(r[0], r[1] - 1, r[2], r[3] % 24, r[4], r[5], 0).getTime();
|
|
2487
2484
|
let i = e.getTime();
|
|
2488
2485
|
const o = i % 1e3;
|
|
2489
2486
|
return i -= o >= 0 ? o : 1e3 + o, n - i;
|
|
2490
2487
|
}
|
|
2491
|
-
function
|
|
2488
|
+
function ys(e, t, r) {
|
|
2492
2489
|
let i = e.getTime() - t;
|
|
2493
2490
|
const o = Qe(new Date(i), r);
|
|
2494
2491
|
if (t === o)
|
|
@@ -2497,20 +2494,20 @@ function gs(e, t, r) {
|
|
|
2497
2494
|
const c = Qe(new Date(i), r);
|
|
2498
2495
|
return o === c ? o : Math.max(o, c);
|
|
2499
2496
|
}
|
|
2500
|
-
function
|
|
2497
|
+
function tr(e, t) {
|
|
2501
2498
|
return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
|
|
2502
2499
|
}
|
|
2503
|
-
const
|
|
2504
|
-
function
|
|
2505
|
-
if (
|
|
2500
|
+
const rr = {};
|
|
2501
|
+
function ps(e) {
|
|
2502
|
+
if (rr[e])
|
|
2506
2503
|
return !0;
|
|
2507
2504
|
try {
|
|
2508
|
-
return new Intl.DateTimeFormat(void 0, { timeZone: e }),
|
|
2505
|
+
return new Intl.DateTimeFormat(void 0, { timeZone: e }), rr[e] = !0, !0;
|
|
2509
2506
|
} catch {
|
|
2510
2507
|
return !1;
|
|
2511
2508
|
}
|
|
2512
2509
|
}
|
|
2513
|
-
const
|
|
2510
|
+
const gs = 60 * 1e3, _s = {
|
|
2514
2511
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
2515
2512
|
X: function(e, t, r) {
|
|
2516
2513
|
const n = $e(r.timeZone, e);
|
|
@@ -2518,7 +2515,7 @@ const ws = 60 * 1e3, bs = {
|
|
|
2518
2515
|
return "Z";
|
|
2519
2516
|
switch (t) {
|
|
2520
2517
|
case "X":
|
|
2521
|
-
return
|
|
2518
|
+
return nr(n);
|
|
2522
2519
|
case "XXXX":
|
|
2523
2520
|
case "XX":
|
|
2524
2521
|
return J(n);
|
|
@@ -2533,7 +2530,7 @@ const ws = 60 * 1e3, bs = {
|
|
|
2533
2530
|
const n = $e(r.timeZone, e);
|
|
2534
2531
|
switch (t) {
|
|
2535
2532
|
case "x":
|
|
2536
|
-
return
|
|
2533
|
+
return nr(n);
|
|
2537
2534
|
case "xxxx":
|
|
2538
2535
|
case "xx":
|
|
2539
2536
|
return J(n);
|
|
@@ -2550,7 +2547,7 @@ const ws = 60 * 1e3, bs = {
|
|
|
2550
2547
|
case "O":
|
|
2551
2548
|
case "OO":
|
|
2552
2549
|
case "OOO":
|
|
2553
|
-
return "GMT" +
|
|
2550
|
+
return "GMT" + ws(n, ":");
|
|
2554
2551
|
case "OOOO":
|
|
2555
2552
|
default:
|
|
2556
2553
|
return "GMT" + J(n, ":");
|
|
@@ -2562,15 +2559,15 @@ const ws = 60 * 1e3, bs = {
|
|
|
2562
2559
|
case "z":
|
|
2563
2560
|
case "zz":
|
|
2564
2561
|
case "zzz":
|
|
2565
|
-
return
|
|
2562
|
+
return Kt("short", e, r);
|
|
2566
2563
|
case "zzzz":
|
|
2567
2564
|
default:
|
|
2568
|
-
return
|
|
2565
|
+
return Kt("long", e, r);
|
|
2569
2566
|
}
|
|
2570
2567
|
}
|
|
2571
2568
|
};
|
|
2572
2569
|
function $e(e, t) {
|
|
2573
|
-
const r = e ? he(e, t, !0) /
|
|
2570
|
+
const r = e ? he(e, t, !0) / gs : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
|
|
2574
2571
|
if (Number.isNaN(r))
|
|
2575
2572
|
throw new RangeError("Invalid time zone specified: " + e);
|
|
2576
2573
|
return r;
|
|
@@ -2586,18 +2583,18 @@ function J(e, t = "") {
|
|
|
2586
2583
|
const r = e > 0 ? "-" : "+", n = Math.abs(e), i = Se(Math.floor(n / 60), 2), o = Se(Math.floor(n % 60), 2);
|
|
2587
2584
|
return r + i + t + o;
|
|
2588
2585
|
}
|
|
2589
|
-
function
|
|
2586
|
+
function nr(e, t) {
|
|
2590
2587
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + Se(Math.abs(e) / 60, 2) : J(e, t);
|
|
2591
2588
|
}
|
|
2592
|
-
function
|
|
2589
|
+
function ws(e, t = "") {
|
|
2593
2590
|
const r = e > 0 ? "-" : "+", n = Math.abs(e), i = Math.floor(n / 60), o = n % 60;
|
|
2594
2591
|
return o === 0 ? r + String(i) : r + String(i) + t + Se(o, 2);
|
|
2595
2592
|
}
|
|
2596
|
-
function
|
|
2593
|
+
function ar(e) {
|
|
2597
2594
|
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
2598
2595
|
return t.setUTCFullYear(e.getFullYear()), +e - +t;
|
|
2599
2596
|
}
|
|
2600
|
-
const
|
|
2597
|
+
const Gr = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Ve = 36e5, ir = 6e4, bs = 2, M = {
|
|
2601
2598
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
2602
2599
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
2603
2600
|
// year tokens
|
|
@@ -2629,14 +2626,14 @@ const Fr = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
|
|
|
2629
2626
|
HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
2630
2627
|
HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
2631
2628
|
// time zone tokens (to identify the presence of a tz)
|
|
2632
|
-
timeZone:
|
|
2629
|
+
timeZone: Gr
|
|
2633
2630
|
};
|
|
2634
2631
|
function Me(e, t = {}) {
|
|
2635
2632
|
if (arguments.length < 1)
|
|
2636
2633
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
2637
2634
|
if (e === null)
|
|
2638
2635
|
return /* @__PURE__ */ new Date(NaN);
|
|
2639
|
-
const r = t.additionalDigits == null ?
|
|
2636
|
+
const r = t.additionalDigits == null ? bs : Number(t.additionalDigits);
|
|
2640
2637
|
if (r !== 2 && r !== 1 && r !== 0)
|
|
2641
2638
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
2642
2639
|
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
|
|
@@ -2645,24 +2642,24 @@ function Me(e, t = {}) {
|
|
|
2645
2642
|
return new Date(e);
|
|
2646
2643
|
if (Object.prototype.toString.call(e) !== "[object String]")
|
|
2647
2644
|
return /* @__PURE__ */ new Date(NaN);
|
|
2648
|
-
const n =
|
|
2645
|
+
const n = Ts(e), { year: i, restDateString: o } = Ds(n.date, r), c = Os(o, i);
|
|
2649
2646
|
if (c === null || isNaN(c.getTime()))
|
|
2650
2647
|
return /* @__PURE__ */ new Date(NaN);
|
|
2651
2648
|
if (c) {
|
|
2652
2649
|
const d = c.getTime();
|
|
2653
2650
|
let h = 0, f;
|
|
2654
|
-
if (n.time && (h =
|
|
2651
|
+
if (n.time && (h = Ss(n.time), h === null || isNaN(h)))
|
|
2655
2652
|
return /* @__PURE__ */ new Date(NaN);
|
|
2656
2653
|
if (n.timeZone || t.timeZone) {
|
|
2657
2654
|
if (f = he(n.timeZone || t.timeZone, new Date(d + h)), isNaN(f))
|
|
2658
2655
|
return /* @__PURE__ */ new Date(NaN);
|
|
2659
2656
|
} else
|
|
2660
|
-
f =
|
|
2657
|
+
f = ar(new Date(d + h)), f = ar(new Date(d + h + f));
|
|
2661
2658
|
return new Date(d + h + f);
|
|
2662
2659
|
} else
|
|
2663
2660
|
return /* @__PURE__ */ new Date(NaN);
|
|
2664
2661
|
}
|
|
2665
|
-
function
|
|
2662
|
+
function Ts(e) {
|
|
2666
2663
|
const t = {};
|
|
2667
2664
|
let r = M.dateTimePattern.exec(e), n;
|
|
2668
2665
|
if (r ? (t.date = r[1], n = r[3]) : (r = M.datePattern.exec(e), r ? (t.date = r[1], n = r[2]) : (t.date = null, n = e)), n) {
|
|
@@ -2671,7 +2668,7 @@ function Os(e) {
|
|
|
2671
2668
|
}
|
|
2672
2669
|
return t;
|
|
2673
2670
|
}
|
|
2674
|
-
function
|
|
2671
|
+
function Ds(e, t) {
|
|
2675
2672
|
if (e) {
|
|
2676
2673
|
const r = M.YYY[t], n = M.YYYYY[t];
|
|
2677
2674
|
let i = M.YYYY.exec(e) || n.exec(e);
|
|
@@ -2694,7 +2691,7 @@ function Ss(e, t) {
|
|
|
2694
2691
|
year: null
|
|
2695
2692
|
};
|
|
2696
2693
|
}
|
|
2697
|
-
function
|
|
2694
|
+
function Os(e, t) {
|
|
2698
2695
|
if (t === null)
|
|
2699
2696
|
return null;
|
|
2700
2697
|
let r, n, i;
|
|
@@ -2702,115 +2699,115 @@ function Ms(e, t) {
|
|
|
2702
2699
|
return r = /* @__PURE__ */ new Date(0), r.setUTCFullYear(t), r;
|
|
2703
2700
|
let o = M.MM.exec(e);
|
|
2704
2701
|
if (o)
|
|
2705
|
-
return r = /* @__PURE__ */ new Date(0), n = parseInt(o[1], 10) - 1,
|
|
2702
|
+
return r = /* @__PURE__ */ new Date(0), n = parseInt(o[1], 10) - 1, or(t, n) ? (r.setUTCFullYear(t, n), r) : /* @__PURE__ */ new Date(NaN);
|
|
2706
2703
|
if (o = M.DDD.exec(e), o) {
|
|
2707
2704
|
r = /* @__PURE__ */ new Date(0);
|
|
2708
2705
|
const c = parseInt(o[1], 10);
|
|
2709
|
-
return
|
|
2706
|
+
return xs(t, c) ? (r.setUTCFullYear(t, 0, c), r) : /* @__PURE__ */ new Date(NaN);
|
|
2710
2707
|
}
|
|
2711
2708
|
if (o = M.MMDD.exec(e), o) {
|
|
2712
2709
|
r = /* @__PURE__ */ new Date(0), n = parseInt(o[1], 10) - 1;
|
|
2713
2710
|
const c = parseInt(o[2], 10);
|
|
2714
|
-
return
|
|
2711
|
+
return or(t, n, c) ? (r.setUTCFullYear(t, n, c), r) : /* @__PURE__ */ new Date(NaN);
|
|
2715
2712
|
}
|
|
2716
2713
|
if (o = M.Www.exec(e), o)
|
|
2717
|
-
return i = parseInt(o[1], 10) - 1,
|
|
2714
|
+
return i = parseInt(o[1], 10) - 1, ur(i) ? sr(t, i) : /* @__PURE__ */ new Date(NaN);
|
|
2718
2715
|
if (o = M.WwwD.exec(e), o) {
|
|
2719
2716
|
i = parseInt(o[1], 10) - 1;
|
|
2720
2717
|
const c = parseInt(o[2], 10) - 1;
|
|
2721
|
-
return
|
|
2718
|
+
return ur(i, c) ? sr(t, i, c) : /* @__PURE__ */ new Date(NaN);
|
|
2722
2719
|
}
|
|
2723
2720
|
return null;
|
|
2724
2721
|
}
|
|
2725
|
-
function
|
|
2722
|
+
function Ss(e) {
|
|
2726
2723
|
let t, r, n = M.HH.exec(e);
|
|
2727
2724
|
if (n)
|
|
2728
2725
|
return t = parseFloat(n[1].replace(",", ".")), Xe(t) ? t % 24 * Ve : NaN;
|
|
2729
2726
|
if (n = M.HHMM.exec(e), n)
|
|
2730
|
-
return t = parseInt(n[1], 10), r = parseFloat(n[2].replace(",", ".")), Xe(t, r) ? t % 24 * Ve + r *
|
|
2727
|
+
return t = parseInt(n[1], 10), r = parseFloat(n[2].replace(",", ".")), Xe(t, r) ? t % 24 * Ve + r * ir : NaN;
|
|
2731
2728
|
if (n = M.HHMMSS.exec(e), n) {
|
|
2732
2729
|
t = parseInt(n[1], 10), r = parseInt(n[2], 10);
|
|
2733
2730
|
const i = parseFloat(n[3].replace(",", "."));
|
|
2734
|
-
return Xe(t, r, i) ? t % 24 * Ve + r *
|
|
2731
|
+
return Xe(t, r, i) ? t % 24 * Ve + r * ir + i * 1e3 : NaN;
|
|
2735
2732
|
}
|
|
2736
2733
|
return null;
|
|
2737
2734
|
}
|
|
2738
|
-
function
|
|
2735
|
+
function sr(e, t, r) {
|
|
2739
2736
|
t = t || 0, r = r || 0;
|
|
2740
2737
|
const n = /* @__PURE__ */ new Date(0);
|
|
2741
2738
|
n.setUTCFullYear(e, 0, 4);
|
|
2742
2739
|
const i = n.getUTCDay() || 7, o = t * 7 + r + 1 - i;
|
|
2743
2740
|
return n.setUTCDate(n.getUTCDate() + o), n;
|
|
2744
2741
|
}
|
|
2745
|
-
const
|
|
2746
|
-
function
|
|
2742
|
+
const Ms = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], vs = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
2743
|
+
function Fr(e) {
|
|
2747
2744
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
2748
2745
|
}
|
|
2749
|
-
function
|
|
2746
|
+
function or(e, t, r) {
|
|
2750
2747
|
if (t < 0 || t > 11)
|
|
2751
2748
|
return !1;
|
|
2752
2749
|
if (r != null) {
|
|
2753
2750
|
if (r < 1)
|
|
2754
2751
|
return !1;
|
|
2755
|
-
const n =
|
|
2756
|
-
if (n && r >
|
|
2752
|
+
const n = Fr(e);
|
|
2753
|
+
if (n && r > vs[t] || !n && r > Ms[t])
|
|
2757
2754
|
return !1;
|
|
2758
2755
|
}
|
|
2759
2756
|
return !0;
|
|
2760
2757
|
}
|
|
2761
|
-
function
|
|
2758
|
+
function xs(e, t) {
|
|
2762
2759
|
if (t < 1)
|
|
2763
2760
|
return !1;
|
|
2764
|
-
const r =
|
|
2761
|
+
const r = Fr(e);
|
|
2765
2762
|
return !(r && t > 366 || !r && t > 365);
|
|
2766
2763
|
}
|
|
2767
|
-
function
|
|
2764
|
+
function ur(e, t) {
|
|
2768
2765
|
return !(e < 0 || e > 52 || t != null && (t < 0 || t > 6));
|
|
2769
2766
|
}
|
|
2770
2767
|
function Xe(e, t, r) {
|
|
2771
2768
|
return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || r != null && (r < 0 || r >= 60));
|
|
2772
2769
|
}
|
|
2773
|
-
const
|
|
2774
|
-
function
|
|
2770
|
+
const Es = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
2771
|
+
function Ps(e, t, r = {}) {
|
|
2775
2772
|
t = String(t);
|
|
2776
|
-
const n = t.match(
|
|
2773
|
+
const n = t.match(Es);
|
|
2777
2774
|
if (n) {
|
|
2778
2775
|
const i = Me(r.originalDate || e, r);
|
|
2779
2776
|
t = n.reduce(function(o, c) {
|
|
2780
2777
|
if (c[0] === "'")
|
|
2781
2778
|
return o;
|
|
2782
|
-
const d = o.indexOf(c), h = o[d - 1] === "'", f = o.replace(c, "'" +
|
|
2779
|
+
const d = o.indexOf(c), h = o[d - 1] === "'", f = o.replace(c, "'" + _s[c[0]](i, c, r) + "'");
|
|
2783
2780
|
return h ? f.substring(0, d - 1) + f.substring(d + 1) : f;
|
|
2784
2781
|
}, t);
|
|
2785
2782
|
}
|
|
2786
|
-
return
|
|
2783
|
+
return jr(e, t, r);
|
|
2787
2784
|
}
|
|
2788
|
-
function
|
|
2785
|
+
function Wr(e, t, r) {
|
|
2789
2786
|
e = Me(e, r);
|
|
2790
2787
|
const n = he(t, e, !0), i = new Date(e.getTime() - n), o = /* @__PURE__ */ new Date(0);
|
|
2791
2788
|
return o.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), o.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), o;
|
|
2792
2789
|
}
|
|
2793
|
-
function
|
|
2790
|
+
function Ns(e, t, r, n) {
|
|
2794
2791
|
return n = {
|
|
2795
2792
|
...n,
|
|
2796
2793
|
timeZone: t,
|
|
2797
2794
|
originalDate: e
|
|
2798
|
-
},
|
|
2795
|
+
}, Ps(Wr(e, t, { timeZone: n.timeZone }), r, n);
|
|
2799
2796
|
}
|
|
2800
|
-
function
|
|
2801
|
-
if (typeof e == "string" && !e.match(
|
|
2797
|
+
function Cs(e, t, r) {
|
|
2798
|
+
if (typeof e == "string" && !e.match(Gr))
|
|
2802
2799
|
return Me(e, { ...r, timeZone: t });
|
|
2803
2800
|
e = Me(e, r);
|
|
2804
2801
|
const n = st(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = he(t, new Date(n));
|
|
2805
2802
|
return new Date(n + i);
|
|
2806
2803
|
}
|
|
2807
|
-
function
|
|
2804
|
+
function Lr(e, t) {
|
|
2808
2805
|
return -he(e, t);
|
|
2809
2806
|
}
|
|
2810
|
-
function
|
|
2811
|
-
return
|
|
2807
|
+
function so(e) {
|
|
2808
|
+
return jr(e, "yyyy-MM-dd'T'HH:mm:ss.SSSXXX");
|
|
2812
2809
|
}
|
|
2813
|
-
function
|
|
2810
|
+
function cr(e, t = {}) {
|
|
2814
2811
|
if (!e)
|
|
2815
2812
|
return e;
|
|
2816
2813
|
const r = t.tz || Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -2818,13 +2815,13 @@ function lr(e, t = {}) {
|
|
|
2818
2815
|
let n = "MMM dd, yyy hh:mm a";
|
|
2819
2816
|
t.short && (n = "MMM dd, yyy"), t.includeTZ && (n += " (z)");
|
|
2820
2817
|
const i = new Date(e);
|
|
2821
|
-
return
|
|
2818
|
+
return Ns(i, r, n);
|
|
2822
2819
|
} catch {
|
|
2823
2820
|
return console.error("Invalid value passed to formatTime", e), "(invalid date)";
|
|
2824
2821
|
}
|
|
2825
2822
|
}
|
|
2826
|
-
function
|
|
2827
|
-
return `${
|
|
2823
|
+
function oo(e, t) {
|
|
2824
|
+
return `${cr(e.getTime())} - ${cr(t.getTime(), { includeTZ: !0 })}`;
|
|
2828
2825
|
}
|
|
2829
2826
|
const ve = {
|
|
2830
2827
|
secondly: 1e3,
|
|
@@ -2841,32 +2838,32 @@ const ve = {
|
|
|
2841
2838
|
weekly: 60 * 60 * 24 * 7 * 1e3,
|
|
2842
2839
|
trend: 0
|
|
2843
2840
|
};
|
|
2844
|
-
function
|
|
2841
|
+
function uo(e, t) {
|
|
2845
2842
|
return e.map((r) => ({
|
|
2846
2843
|
value: r,
|
|
2847
2844
|
label: t.t(`configuration.vitals.reports.granularity.${r}`)
|
|
2848
2845
|
}));
|
|
2849
2846
|
}
|
|
2850
|
-
function
|
|
2847
|
+
function Is(e, t) {
|
|
2851
2848
|
return {
|
|
2852
2849
|
duration: e,
|
|
2853
2850
|
type: "duration",
|
|
2854
2851
|
origin: t
|
|
2855
2852
|
};
|
|
2856
2853
|
}
|
|
2857
|
-
function
|
|
2854
|
+
function co(e) {
|
|
2858
2855
|
return e && Ze.find((r) => e <= ve[r]) || null;
|
|
2859
2856
|
}
|
|
2860
|
-
function
|
|
2857
|
+
function Ur(e, t, r, n) {
|
|
2861
2858
|
const i = ve[r];
|
|
2862
2859
|
let o = 0;
|
|
2863
|
-
return i >= ve.daily && (n ? o = -
|
|
2860
|
+
return i >= ve.daily && (n ? o = -Lr(n, t) : o = t.getTimezoneOffset() * 60 * 1e3), new Date(e((t.getTime() - o) / i) * i + o);
|
|
2864
2861
|
}
|
|
2865
|
-
function
|
|
2866
|
-
return
|
|
2862
|
+
function ks(e, t, r) {
|
|
2863
|
+
return Ur(Math.floor, e, t, r);
|
|
2867
2864
|
}
|
|
2868
|
-
function
|
|
2869
|
-
return
|
|
2865
|
+
function zr(e, t, r) {
|
|
2866
|
+
return Ur(Math.ceil, e, t, r);
|
|
2870
2867
|
}
|
|
2871
2868
|
class Ce {
|
|
2872
2869
|
constructor(t, r, n) {
|
|
@@ -2881,7 +2878,7 @@ class Ce {
|
|
|
2881
2878
|
if (t)
|
|
2882
2879
|
return new Date(this.endDate().getTime() - this.timeframe.timeframeLengthMs() * n);
|
|
2883
2880
|
{
|
|
2884
|
-
const i = this.endDate(), o = this.timeframe.rawStart(this.tz), c =
|
|
2881
|
+
const i = this.endDate(), o = this.timeframe.rawStart(this.tz), c = ks(o, r, this.tz), h = (i.getTime() - c.getTime()) * (n - 1);
|
|
2885
2882
|
return new Date(c.getTime() - h);
|
|
2886
2883
|
}
|
|
2887
2884
|
}
|
|
@@ -2889,26 +2886,26 @@ class Ce {
|
|
|
2889
2886
|
return Math.floor(this.granularityMs() / 1e3);
|
|
2890
2887
|
}
|
|
2891
2888
|
granularityDruid() {
|
|
2892
|
-
return
|
|
2889
|
+
return Is(this.granularityMs(), this.startDate().toISOString());
|
|
2893
2890
|
}
|
|
2894
2891
|
// Return a UNIX timestamp suitable for use in the `start` query param.
|
|
2895
2892
|
startSeconds() {
|
|
2896
|
-
return
|
|
2893
|
+
return Bt(this.startDate());
|
|
2897
2894
|
}
|
|
2898
2895
|
// Return a UNIX timestamp suitable for use in the `end` query param.
|
|
2899
2896
|
endSeconds() {
|
|
2900
|
-
return
|
|
2897
|
+
return Bt(this.endDate());
|
|
2901
2898
|
}
|
|
2902
2899
|
// Return epoch time in milliseconds, suitable for use in the `startMs` query param.
|
|
2903
2900
|
startMs() {
|
|
2904
|
-
return
|
|
2901
|
+
return Zt(this.startDate());
|
|
2905
2902
|
}
|
|
2906
2903
|
// Return epoch time in milliseconds, suitable for use in the `endMs` query param.
|
|
2907
2904
|
endMs() {
|
|
2908
|
-
return
|
|
2905
|
+
return Zt(this.endDate());
|
|
2909
2906
|
}
|
|
2910
2907
|
}
|
|
2911
|
-
class
|
|
2908
|
+
class lo extends Ce {
|
|
2912
2909
|
constructor(r, n, i, o, c) {
|
|
2913
2910
|
super(r, i, o);
|
|
2914
2911
|
b(this, "granularity");
|
|
@@ -2918,24 +2915,24 @@ class fo extends Ce {
|
|
|
2918
2915
|
return this.calculateStartDate(this.timeframe.isRelative, this.granularity);
|
|
2919
2916
|
}
|
|
2920
2917
|
endDate() {
|
|
2921
|
-
return
|
|
2918
|
+
return zr(this.timeframe.rawEnd(), this.granularity, this.tz);
|
|
2922
2919
|
}
|
|
2923
2920
|
granularityMs() {
|
|
2924
2921
|
return ve[this.granularity];
|
|
2925
2922
|
}
|
|
2926
2923
|
}
|
|
2927
|
-
class
|
|
2924
|
+
class Ys extends Ce {
|
|
2928
2925
|
startDate() {
|
|
2929
2926
|
return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity);
|
|
2930
2927
|
}
|
|
2931
2928
|
endDate() {
|
|
2932
|
-
return
|
|
2929
|
+
return zr(this.timeframe.rawEnd(this.tz), this.dataGranularity, this.tz);
|
|
2933
2930
|
}
|
|
2934
2931
|
granularityMs() {
|
|
2935
2932
|
return this.endDate().getTime() - this.startDate().getTime();
|
|
2936
2933
|
}
|
|
2937
2934
|
}
|
|
2938
|
-
class
|
|
2935
|
+
class fo extends Ys {
|
|
2939
2936
|
startDate() {
|
|
2940
2937
|
return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity, 2);
|
|
2941
2938
|
}
|
|
@@ -2944,27 +2941,27 @@ class ho extends Rs {
|
|
|
2944
2941
|
}
|
|
2945
2942
|
}
|
|
2946
2943
|
var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2947
|
-
function
|
|
2944
|
+
function Rs(e) {
|
|
2948
2945
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2949
2946
|
}
|
|
2950
2947
|
var xe = { exports: {} };
|
|
2951
2948
|
xe.exports;
|
|
2952
2949
|
(function(e, t) {
|
|
2953
|
-
var r = 200, n = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", d = "[object Boolean]", h = "[object Date]", f = "[object Error]", _ = "[object Function]", y = "[object GeneratorFunction]", p = "[object Map]", E = "[object Number]", P = "[object Object]", N = "[object Promise]", k = "[object RegExp]", G = "[object Set]", S = "[object String]", T = "[object Symbol]", F = "[object WeakMap]", ut = "[object ArrayBuffer]", me = "[object DataView]", ct = "[object Float32Array]", lt = "[object Float64Array]", dt = "[object Int8Array]", ft = "[object Int16Array]", ht = "[object Int32Array]", mt = "[object Uint8Array]", yt = "[object Uint8ClampedArray]", pt = "[object Uint16Array]", gt = "[object Uint32Array]",
|
|
2950
|
+
var r = 200, n = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", d = "[object Boolean]", h = "[object Date]", f = "[object Error]", _ = "[object Function]", y = "[object GeneratorFunction]", p = "[object Map]", E = "[object Number]", P = "[object Object]", N = "[object Promise]", k = "[object RegExp]", G = "[object Set]", S = "[object String]", T = "[object Symbol]", F = "[object WeakMap]", ut = "[object ArrayBuffer]", me = "[object DataView]", ct = "[object Float32Array]", lt = "[object Float64Array]", dt = "[object Int8Array]", ft = "[object Int16Array]", ht = "[object Int32Array]", mt = "[object Uint8Array]", yt = "[object Uint8ClampedArray]", pt = "[object Uint16Array]", gt = "[object Uint32Array]", Vr = /[\\^$.*+?()[\]{}|]/g, Xr = /\w*$/, Qr = /^\[object .+?Constructor\]$/, Zr = /^(?:0|[1-9]\d*)$/, w = {};
|
|
2954
2951
|
w[o] = w[c] = w[ut] = w[me] = w[d] = w[h] = w[ct] = w[lt] = w[dt] = w[ft] = w[ht] = w[p] = w[E] = w[P] = w[k] = w[G] = w[S] = w[T] = w[mt] = w[yt] = w[pt] = w[gt] = !0, w[f] = w[_] = w[F] = !1;
|
|
2955
|
-
var
|
|
2956
|
-
function
|
|
2952
|
+
var Br = typeof Te == "object" && Te && Te.Object === Object && Te, Kr = typeof self == "object" && self && self.Object === Object && self, Y = Br || Kr || Function("return this")(), _t = t && !t.nodeType && t, wt = _t && !0 && e && !e.nodeType && e, Jr = wt && wt.exports === _t;
|
|
2953
|
+
function en(a, s) {
|
|
2957
2954
|
return a.set(s[0], s[1]), a;
|
|
2958
2955
|
}
|
|
2959
|
-
function
|
|
2956
|
+
function tn(a, s) {
|
|
2960
2957
|
return a.add(s), a;
|
|
2961
2958
|
}
|
|
2962
|
-
function
|
|
2959
|
+
function rn(a, s) {
|
|
2963
2960
|
for (var u = -1, l = a ? a.length : 0; ++u < l && s(a[u], u, a) !== !1; )
|
|
2964
2961
|
;
|
|
2965
2962
|
return a;
|
|
2966
2963
|
}
|
|
2967
|
-
function
|
|
2964
|
+
function nn(a, s) {
|
|
2968
2965
|
for (var u = -1, l = s.length, D = a.length; ++u < l; )
|
|
2969
2966
|
a[D + u] = s[u];
|
|
2970
2967
|
return a;
|
|
@@ -2974,12 +2971,12 @@ xe.exports;
|
|
|
2974
2971
|
u = s(u, a[D], D, a);
|
|
2975
2972
|
return u;
|
|
2976
2973
|
}
|
|
2977
|
-
function
|
|
2974
|
+
function an(a, s) {
|
|
2978
2975
|
for (var u = -1, l = Array(a); ++u < a; )
|
|
2979
2976
|
l[u] = s(u);
|
|
2980
2977
|
return l;
|
|
2981
2978
|
}
|
|
2982
|
-
function
|
|
2979
|
+
function sn(a, s) {
|
|
2983
2980
|
return a == null ? void 0 : a[s];
|
|
2984
2981
|
}
|
|
2985
2982
|
function Tt(a) {
|
|
@@ -3008,12 +3005,12 @@ xe.exports;
|
|
|
3008
3005
|
u[++s] = l;
|
|
3009
3006
|
}), u;
|
|
3010
3007
|
}
|
|
3011
|
-
var
|
|
3008
|
+
var on = Array.prototype, un = Function.prototype, ye = Object.prototype, ke = Y["__core-js_shared__"], St = function() {
|
|
3012
3009
|
var a = /[^.]+$/.exec(ke && ke.keys && ke.keys.IE_PROTO || "");
|
|
3013
3010
|
return a ? "Symbol(src)_1." + a : "";
|
|
3014
|
-
}(), Mt =
|
|
3015
|
-
"^" + Mt.call(j).replace(
|
|
3016
|
-
), vt =
|
|
3011
|
+
}(), Mt = un.toString, j = ye.hasOwnProperty, pe = ye.toString, cn = RegExp(
|
|
3012
|
+
"^" + Mt.call(j).replace(Vr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3013
|
+
), vt = Jr ? Y.Buffer : void 0, xt = Y.Symbol, Et = Y.Uint8Array, ln = Ie(Object.getPrototypeOf, Object), dn = Object.create, fn = ye.propertyIsEnumerable, hn = on.splice, Pt = Object.getOwnPropertySymbols, mn = vt ? vt.isBuffer : void 0, yn = Ie(Object.keys, Object), Ye = Z(Y, "DataView"), re = Z(Y, "Map"), Re = Z(Y, "Promise"), qe = Z(Y, "Set"), He = Z(Y, "WeakMap"), ne = Z(Object, "create"), pn = U(Ye), gn = U(re), _n = U(Re), wn = U(qe), bn = U(He), Nt = xt ? xt.prototype : void 0, Ct = Nt ? Nt.valueOf : void 0;
|
|
3017
3014
|
function W(a) {
|
|
3018
3015
|
var s = -1, u = a ? a.length : 0;
|
|
3019
3016
|
for (this.clear(); ++s < u; ) {
|
|
@@ -3021,58 +3018,58 @@ xe.exports;
|
|
|
3021
3018
|
this.set(l[0], l[1]);
|
|
3022
3019
|
}
|
|
3023
3020
|
}
|
|
3024
|
-
function
|
|
3025
|
-
this.__data__ =
|
|
3021
|
+
function Tn() {
|
|
3022
|
+
this.__data__ = ne ? ne(null) : {};
|
|
3026
3023
|
}
|
|
3027
|
-
function
|
|
3024
|
+
function Dn(a) {
|
|
3028
3025
|
return this.has(a) && delete this.__data__[a];
|
|
3029
3026
|
}
|
|
3030
|
-
function
|
|
3027
|
+
function On(a) {
|
|
3031
3028
|
var s = this.__data__;
|
|
3032
|
-
if (
|
|
3029
|
+
if (ne) {
|
|
3033
3030
|
var u = s[a];
|
|
3034
3031
|
return u === n ? void 0 : u;
|
|
3035
3032
|
}
|
|
3036
3033
|
return j.call(s, a) ? s[a] : void 0;
|
|
3037
3034
|
}
|
|
3038
|
-
function
|
|
3035
|
+
function Sn(a) {
|
|
3039
3036
|
var s = this.__data__;
|
|
3040
|
-
return
|
|
3037
|
+
return ne ? s[a] !== void 0 : j.call(s, a);
|
|
3041
3038
|
}
|
|
3042
|
-
function
|
|
3039
|
+
function Mn(a, s) {
|
|
3043
3040
|
var u = this.__data__;
|
|
3044
|
-
return u[a] =
|
|
3041
|
+
return u[a] = ne && s === void 0 ? n : s, this;
|
|
3045
3042
|
}
|
|
3046
|
-
W.prototype.clear =
|
|
3047
|
-
function
|
|
3043
|
+
W.prototype.clear = Tn, W.prototype.delete = Dn, W.prototype.get = On, W.prototype.has = Sn, W.prototype.set = Mn;
|
|
3044
|
+
function R(a) {
|
|
3048
3045
|
var s = -1, u = a ? a.length : 0;
|
|
3049
3046
|
for (this.clear(); ++s < u; ) {
|
|
3050
3047
|
var l = a[s];
|
|
3051
3048
|
this.set(l[0], l[1]);
|
|
3052
3049
|
}
|
|
3053
3050
|
}
|
|
3054
|
-
function
|
|
3051
|
+
function vn() {
|
|
3055
3052
|
this.__data__ = [];
|
|
3056
3053
|
}
|
|
3057
|
-
function
|
|
3054
|
+
function xn(a) {
|
|
3058
3055
|
var s = this.__data__, u = ge(s, a);
|
|
3059
3056
|
if (u < 0)
|
|
3060
3057
|
return !1;
|
|
3061
3058
|
var l = s.length - 1;
|
|
3062
|
-
return u == l ? s.pop() :
|
|
3059
|
+
return u == l ? s.pop() : hn.call(s, u, 1), !0;
|
|
3063
3060
|
}
|
|
3064
|
-
function
|
|
3061
|
+
function En(a) {
|
|
3065
3062
|
var s = this.__data__, u = ge(s, a);
|
|
3066
3063
|
return u < 0 ? void 0 : s[u][1];
|
|
3067
3064
|
}
|
|
3068
|
-
function
|
|
3065
|
+
function Pn(a) {
|
|
3069
3066
|
return ge(this.__data__, a) > -1;
|
|
3070
3067
|
}
|
|
3071
|
-
function
|
|
3068
|
+
function Nn(a, s) {
|
|
3072
3069
|
var u = this.__data__, l = ge(u, a);
|
|
3073
3070
|
return l < 0 ? u.push([a, s]) : u[l][1] = s, this;
|
|
3074
3071
|
}
|
|
3075
|
-
|
|
3072
|
+
R.prototype.clear = vn, R.prototype.delete = xn, R.prototype.get = En, R.prototype.has = Pn, R.prototype.set = Nn;
|
|
3076
3073
|
function X(a) {
|
|
3077
3074
|
var s = -1, u = a ? a.length : 0;
|
|
3078
3075
|
for (this.clear(); ++s < u; ) {
|
|
@@ -3080,131 +3077,131 @@ xe.exports;
|
|
|
3080
3077
|
this.set(l[0], l[1]);
|
|
3081
3078
|
}
|
|
3082
3079
|
}
|
|
3083
|
-
function
|
|
3080
|
+
function Cn() {
|
|
3084
3081
|
this.__data__ = {
|
|
3085
3082
|
hash: new W(),
|
|
3086
|
-
map: new (
|
|
3083
|
+
map: new (re || R)(),
|
|
3087
3084
|
string: new W()
|
|
3088
3085
|
};
|
|
3089
3086
|
}
|
|
3090
|
-
function
|
|
3087
|
+
function In(a) {
|
|
3091
3088
|
return _e(this, a).delete(a);
|
|
3092
3089
|
}
|
|
3093
|
-
function
|
|
3090
|
+
function kn(a) {
|
|
3094
3091
|
return _e(this, a).get(a);
|
|
3095
3092
|
}
|
|
3096
|
-
function
|
|
3093
|
+
function Yn(a) {
|
|
3097
3094
|
return _e(this, a).has(a);
|
|
3098
3095
|
}
|
|
3099
3096
|
function Rn(a, s) {
|
|
3100
3097
|
return _e(this, a).set(a, s), this;
|
|
3101
3098
|
}
|
|
3102
|
-
X.prototype.clear =
|
|
3099
|
+
X.prototype.clear = Cn, X.prototype.delete = In, X.prototype.get = kn, X.prototype.has = Yn, X.prototype.set = Rn;
|
|
3103
3100
|
function Q(a) {
|
|
3104
|
-
this.__data__ = new
|
|
3101
|
+
this.__data__ = new R(a);
|
|
3105
3102
|
}
|
|
3106
|
-
function
|
|
3107
|
-
this.__data__ = new
|
|
3103
|
+
function qn() {
|
|
3104
|
+
this.__data__ = new R();
|
|
3108
3105
|
}
|
|
3109
|
-
function
|
|
3106
|
+
function Hn(a) {
|
|
3110
3107
|
return this.__data__.delete(a);
|
|
3111
3108
|
}
|
|
3112
|
-
function
|
|
3109
|
+
function jn(a) {
|
|
3113
3110
|
return this.__data__.get(a);
|
|
3114
3111
|
}
|
|
3115
|
-
function
|
|
3112
|
+
function An(a) {
|
|
3116
3113
|
return this.__data__.has(a);
|
|
3117
3114
|
}
|
|
3118
|
-
function
|
|
3115
|
+
function Gn(a, s) {
|
|
3119
3116
|
var u = this.__data__;
|
|
3120
|
-
if (u instanceof
|
|
3117
|
+
if (u instanceof R) {
|
|
3121
3118
|
var l = u.__data__;
|
|
3122
|
-
if (!
|
|
3119
|
+
if (!re || l.length < r - 1)
|
|
3123
3120
|
return l.push([a, s]), this;
|
|
3124
3121
|
u = this.__data__ = new X(l);
|
|
3125
3122
|
}
|
|
3126
3123
|
return u.set(a, s), this;
|
|
3127
3124
|
}
|
|
3128
|
-
Q.prototype.clear =
|
|
3129
|
-
function
|
|
3130
|
-
var u = Ge(a) ||
|
|
3125
|
+
Q.prototype.clear = qn, Q.prototype.delete = Hn, Q.prototype.get = jn, Q.prototype.has = An, Q.prototype.set = Gn;
|
|
3126
|
+
function Fn(a, s) {
|
|
3127
|
+
var u = Ge(a) || da(a) ? an(a.length, String) : [], l = u.length, D = !!l;
|
|
3131
3128
|
for (var v in a)
|
|
3132
|
-
j.call(a, v) && !(D && (v == "length" ||
|
|
3129
|
+
j.call(a, v) && !(D && (v == "length" || oa(v, l))) && u.push(v);
|
|
3133
3130
|
return u;
|
|
3134
3131
|
}
|
|
3135
3132
|
function It(a, s, u) {
|
|
3136
3133
|
var l = a[s];
|
|
3137
|
-
(!(j.call(a, s) &&
|
|
3134
|
+
(!(j.call(a, s) && qt(l, u)) || u === void 0 && !(s in a)) && (a[s] = u);
|
|
3138
3135
|
}
|
|
3139
3136
|
function ge(a, s) {
|
|
3140
3137
|
for (var u = a.length; u--; )
|
|
3141
|
-
if (
|
|
3138
|
+
if (qt(a[u][0], s))
|
|
3142
3139
|
return u;
|
|
3143
3140
|
return -1;
|
|
3144
3141
|
}
|
|
3145
|
-
function
|
|
3142
|
+
function Wn(a, s) {
|
|
3146
3143
|
return a && kt(s, Fe(s), a);
|
|
3147
3144
|
}
|
|
3148
|
-
function je(a, s, u, l, D, v,
|
|
3145
|
+
function je(a, s, u, l, D, v, q) {
|
|
3149
3146
|
var x;
|
|
3150
|
-
if (l && (x = v ? l(a, D, v,
|
|
3147
|
+
if (l && (x = v ? l(a, D, v, q) : l(a)), x !== void 0)
|
|
3151
3148
|
return x;
|
|
3152
3149
|
if (!we(a))
|
|
3153
3150
|
return a;
|
|
3154
3151
|
var At = Ge(a);
|
|
3155
3152
|
if (At) {
|
|
3156
|
-
if (x =
|
|
3157
|
-
return
|
|
3153
|
+
if (x = aa(a), !s)
|
|
3154
|
+
return ta(a, x);
|
|
3158
3155
|
} else {
|
|
3159
3156
|
var B = L(a), Gt = B == _ || B == y;
|
|
3160
|
-
if (
|
|
3161
|
-
return
|
|
3157
|
+
if (ha(a))
|
|
3158
|
+
return Xn(a, s);
|
|
3162
3159
|
if (B == P || B == o || Gt && !v) {
|
|
3163
3160
|
if (Tt(a))
|
|
3164
3161
|
return v ? a : {};
|
|
3165
|
-
if (x =
|
|
3166
|
-
return
|
|
3162
|
+
if (x = ia(Gt ? {} : a), !s)
|
|
3163
|
+
return ra(a, Wn(x, a));
|
|
3167
3164
|
} else {
|
|
3168
3165
|
if (!w[B])
|
|
3169
3166
|
return v ? a : {};
|
|
3170
|
-
x =
|
|
3167
|
+
x = sa(a, B, je, s);
|
|
3171
3168
|
}
|
|
3172
3169
|
}
|
|
3173
|
-
|
|
3174
|
-
var Ft =
|
|
3170
|
+
q || (q = new Q());
|
|
3171
|
+
var Ft = q.get(a);
|
|
3175
3172
|
if (Ft)
|
|
3176
3173
|
return Ft;
|
|
3177
|
-
if (
|
|
3178
|
-
var Wt = u ?
|
|
3179
|
-
return
|
|
3180
|
-
Wt && (be = We, We = a[be]), It(x, be, je(We, s, u, l, be, a,
|
|
3174
|
+
if (q.set(a, x), !At)
|
|
3175
|
+
var Wt = u ? na(a) : Fe(a);
|
|
3176
|
+
return rn(Wt || a, function(We, be) {
|
|
3177
|
+
Wt && (be = We, We = a[be]), It(x, be, je(We, s, u, l, be, a, q));
|
|
3181
3178
|
}), x;
|
|
3182
3179
|
}
|
|
3183
|
-
function
|
|
3184
|
-
return we(a) ?
|
|
3180
|
+
function Ln(a) {
|
|
3181
|
+
return we(a) ? dn(a) : {};
|
|
3185
3182
|
}
|
|
3186
|
-
function
|
|
3183
|
+
function Un(a, s, u) {
|
|
3187
3184
|
var l = s(a);
|
|
3188
|
-
return Ge(a) ? l :
|
|
3185
|
+
return Ge(a) ? l : nn(l, u(a));
|
|
3189
3186
|
}
|
|
3190
|
-
function
|
|
3187
|
+
function zn(a) {
|
|
3191
3188
|
return pe.call(a);
|
|
3192
3189
|
}
|
|
3193
|
-
function
|
|
3194
|
-
if (!we(a) ||
|
|
3190
|
+
function $n(a) {
|
|
3191
|
+
if (!we(a) || ca(a))
|
|
3195
3192
|
return !1;
|
|
3196
|
-
var s = jt(a) || Tt(a) ?
|
|
3193
|
+
var s = jt(a) || Tt(a) ? cn : Qr;
|
|
3197
3194
|
return s.test(U(a));
|
|
3198
3195
|
}
|
|
3199
|
-
function
|
|
3200
|
-
if (!
|
|
3201
|
-
return
|
|
3196
|
+
function Vn(a) {
|
|
3197
|
+
if (!Rt(a))
|
|
3198
|
+
return yn(a);
|
|
3202
3199
|
var s = [];
|
|
3203
3200
|
for (var u in Object(a))
|
|
3204
3201
|
j.call(a, u) && u != "constructor" && s.push(u);
|
|
3205
3202
|
return s;
|
|
3206
3203
|
}
|
|
3207
|
-
function
|
|
3204
|
+
function Xn(a, s) {
|
|
3208
3205
|
if (s)
|
|
3209
3206
|
return a.slice();
|
|
3210
3207
|
var u = new a.constructor(a.length);
|
|
@@ -3214,30 +3211,30 @@ xe.exports;
|
|
|
3214
3211
|
var s = new a.constructor(a.byteLength);
|
|
3215
3212
|
return new Et(s).set(new Et(a)), s;
|
|
3216
3213
|
}
|
|
3217
|
-
function
|
|
3214
|
+
function Qn(a, s) {
|
|
3218
3215
|
var u = s ? Ae(a.buffer) : a.buffer;
|
|
3219
3216
|
return new a.constructor(u, a.byteOffset, a.byteLength);
|
|
3220
3217
|
}
|
|
3221
|
-
function
|
|
3218
|
+
function Zn(a, s, u) {
|
|
3222
3219
|
var l = s ? u(Dt(a), !0) : Dt(a);
|
|
3223
|
-
return bt(l,
|
|
3220
|
+
return bt(l, en, new a.constructor());
|
|
3224
3221
|
}
|
|
3225
|
-
function
|
|
3226
|
-
var s = new a.constructor(a.source,
|
|
3222
|
+
function Bn(a) {
|
|
3223
|
+
var s = new a.constructor(a.source, Xr.exec(a));
|
|
3227
3224
|
return s.lastIndex = a.lastIndex, s;
|
|
3228
3225
|
}
|
|
3229
|
-
function
|
|
3226
|
+
function Kn(a, s, u) {
|
|
3230
3227
|
var l = s ? u(Ot(a), !0) : Ot(a);
|
|
3231
|
-
return bt(l,
|
|
3228
|
+
return bt(l, tn, new a.constructor());
|
|
3232
3229
|
}
|
|
3233
|
-
function
|
|
3230
|
+
function Jn(a) {
|
|
3234
3231
|
return Ct ? Object(Ct.call(a)) : {};
|
|
3235
3232
|
}
|
|
3236
|
-
function
|
|
3233
|
+
function ea(a, s) {
|
|
3237
3234
|
var u = s ? Ae(a.buffer) : a.buffer;
|
|
3238
3235
|
return new a.constructor(u, a.byteOffset, a.length);
|
|
3239
3236
|
}
|
|
3240
|
-
function
|
|
3237
|
+
function ta(a, s) {
|
|
3241
3238
|
var u = -1, l = a.length;
|
|
3242
3239
|
for (s || (s = Array(l)); ++u < l; )
|
|
3243
3240
|
s[u] = a[u];
|
|
@@ -3246,51 +3243,51 @@ xe.exports;
|
|
|
3246
3243
|
function kt(a, s, u, l) {
|
|
3247
3244
|
u || (u = {});
|
|
3248
3245
|
for (var D = -1, v = s.length; ++D < v; ) {
|
|
3249
|
-
var
|
|
3250
|
-
It(u,
|
|
3246
|
+
var q = s[D], x = void 0;
|
|
3247
|
+
It(u, q, x === void 0 ? a[q] : x);
|
|
3251
3248
|
}
|
|
3252
3249
|
return u;
|
|
3253
3250
|
}
|
|
3254
|
-
function
|
|
3251
|
+
function ra(a, s) {
|
|
3255
3252
|
return kt(a, Yt(a), s);
|
|
3256
3253
|
}
|
|
3257
|
-
function
|
|
3258
|
-
return
|
|
3254
|
+
function na(a) {
|
|
3255
|
+
return Un(a, Fe, Yt);
|
|
3259
3256
|
}
|
|
3260
3257
|
function _e(a, s) {
|
|
3261
3258
|
var u = a.__data__;
|
|
3262
|
-
return
|
|
3259
|
+
return ua(s) ? u[typeof s == "string" ? "string" : "hash"] : u.map;
|
|
3263
3260
|
}
|
|
3264
3261
|
function Z(a, s) {
|
|
3265
|
-
var u =
|
|
3266
|
-
return
|
|
3262
|
+
var u = sn(a, s);
|
|
3263
|
+
return $n(u) ? u : void 0;
|
|
3267
3264
|
}
|
|
3268
|
-
var Yt = Pt ? Ie(Pt, Object) :
|
|
3269
|
-
(Ye && L(new Ye(new ArrayBuffer(1))) != me ||
|
|
3265
|
+
var Yt = Pt ? Ie(Pt, Object) : pa, L = zn;
|
|
3266
|
+
(Ye && L(new Ye(new ArrayBuffer(1))) != me || re && L(new re()) != p || Re && L(Re.resolve()) != N || qe && L(new qe()) != G || He && L(new He()) != F) && (L = function(a) {
|
|
3270
3267
|
var s = pe.call(a), u = s == P ? a.constructor : void 0, l = u ? U(u) : void 0;
|
|
3271
3268
|
if (l)
|
|
3272
3269
|
switch (l) {
|
|
3273
|
-
case
|
|
3270
|
+
case pn:
|
|
3274
3271
|
return me;
|
|
3275
|
-
case
|
|
3272
|
+
case gn:
|
|
3276
3273
|
return p;
|
|
3277
|
-
case
|
|
3274
|
+
case _n:
|
|
3278
3275
|
return N;
|
|
3279
|
-
case
|
|
3276
|
+
case wn:
|
|
3280
3277
|
return G;
|
|
3281
|
-
case
|
|
3278
|
+
case bn:
|
|
3282
3279
|
return F;
|
|
3283
3280
|
}
|
|
3284
3281
|
return s;
|
|
3285
3282
|
});
|
|
3286
|
-
function
|
|
3283
|
+
function aa(a) {
|
|
3287
3284
|
var s = a.length, u = a.constructor(s);
|
|
3288
3285
|
return s && typeof a[0] == "string" && j.call(a, "index") && (u.index = a.index, u.input = a.input), u;
|
|
3289
3286
|
}
|
|
3290
|
-
function
|
|
3291
|
-
return typeof a.constructor == "function" && !
|
|
3287
|
+
function ia(a) {
|
|
3288
|
+
return typeof a.constructor == "function" && !Rt(a) ? Ln(ln(a)) : {};
|
|
3292
3289
|
}
|
|
3293
|
-
function
|
|
3290
|
+
function sa(a, s, u, l) {
|
|
3294
3291
|
var D = a.constructor;
|
|
3295
3292
|
switch (s) {
|
|
3296
3293
|
case ut:
|
|
@@ -3299,7 +3296,7 @@ xe.exports;
|
|
|
3299
3296
|
case h:
|
|
3300
3297
|
return new D(+a);
|
|
3301
3298
|
case me:
|
|
3302
|
-
return
|
|
3299
|
+
return Qn(a, l);
|
|
3303
3300
|
case ct:
|
|
3304
3301
|
case lt:
|
|
3305
3302
|
case dt:
|
|
@@ -3309,31 +3306,31 @@ xe.exports;
|
|
|
3309
3306
|
case yt:
|
|
3310
3307
|
case pt:
|
|
3311
3308
|
case gt:
|
|
3312
|
-
return
|
|
3309
|
+
return ea(a, l);
|
|
3313
3310
|
case p:
|
|
3314
|
-
return
|
|
3311
|
+
return Zn(a, l, u);
|
|
3315
3312
|
case E:
|
|
3316
3313
|
case S:
|
|
3317
3314
|
return new D(a);
|
|
3318
3315
|
case k:
|
|
3319
|
-
return
|
|
3316
|
+
return Bn(a);
|
|
3320
3317
|
case G:
|
|
3321
|
-
return
|
|
3318
|
+
return Kn(a, l, u);
|
|
3322
3319
|
case T:
|
|
3323
|
-
return
|
|
3320
|
+
return Jn(a);
|
|
3324
3321
|
}
|
|
3325
3322
|
}
|
|
3326
|
-
function
|
|
3327
|
-
return s = s ?? i, !!s && (typeof a == "number" ||
|
|
3323
|
+
function oa(a, s) {
|
|
3324
|
+
return s = s ?? i, !!s && (typeof a == "number" || Zr.test(a)) && a > -1 && a % 1 == 0 && a < s;
|
|
3328
3325
|
}
|
|
3329
|
-
function
|
|
3326
|
+
function ua(a) {
|
|
3330
3327
|
var s = typeof a;
|
|
3331
3328
|
return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? a !== "__proto__" : a === null;
|
|
3332
3329
|
}
|
|
3333
|
-
function
|
|
3330
|
+
function ca(a) {
|
|
3334
3331
|
return !!St && St in a;
|
|
3335
3332
|
}
|
|
3336
|
-
function
|
|
3333
|
+
function Rt(a) {
|
|
3337
3334
|
var s = a && a.constructor, u = typeof s == "function" && s.prototype || ye;
|
|
3338
3335
|
return a === u;
|
|
3339
3336
|
}
|
|
@@ -3350,50 +3347,50 @@ xe.exports;
|
|
|
3350
3347
|
}
|
|
3351
3348
|
return "";
|
|
3352
3349
|
}
|
|
3353
|
-
function
|
|
3350
|
+
function la(a) {
|
|
3354
3351
|
return je(a, !0, !0);
|
|
3355
3352
|
}
|
|
3356
|
-
function
|
|
3353
|
+
function qt(a, s) {
|
|
3357
3354
|
return a === s || a !== a && s !== s;
|
|
3358
3355
|
}
|
|
3359
|
-
function
|
|
3360
|
-
return
|
|
3356
|
+
function da(a) {
|
|
3357
|
+
return fa(a) && j.call(a, "callee") && (!fn.call(a, "callee") || pe.call(a) == o);
|
|
3361
3358
|
}
|
|
3362
3359
|
var Ge = Array.isArray;
|
|
3363
3360
|
function Ht(a) {
|
|
3364
|
-
return a != null &&
|
|
3361
|
+
return a != null && ma(a.length) && !jt(a);
|
|
3365
3362
|
}
|
|
3366
|
-
function
|
|
3367
|
-
return
|
|
3363
|
+
function fa(a) {
|
|
3364
|
+
return ya(a) && Ht(a);
|
|
3368
3365
|
}
|
|
3369
|
-
var
|
|
3366
|
+
var ha = mn || ga;
|
|
3370
3367
|
function jt(a) {
|
|
3371
3368
|
var s = we(a) ? pe.call(a) : "";
|
|
3372
3369
|
return s == _ || s == y;
|
|
3373
3370
|
}
|
|
3374
|
-
function
|
|
3371
|
+
function ma(a) {
|
|
3375
3372
|
return typeof a == "number" && a > -1 && a % 1 == 0 && a <= i;
|
|
3376
3373
|
}
|
|
3377
3374
|
function we(a) {
|
|
3378
3375
|
var s = typeof a;
|
|
3379
3376
|
return !!a && (s == "object" || s == "function");
|
|
3380
3377
|
}
|
|
3381
|
-
function
|
|
3378
|
+
function ya(a) {
|
|
3382
3379
|
return !!a && typeof a == "object";
|
|
3383
3380
|
}
|
|
3384
3381
|
function Fe(a) {
|
|
3385
|
-
return Ht(a) ?
|
|
3382
|
+
return Ht(a) ? Fn(a) : Vn(a);
|
|
3386
3383
|
}
|
|
3387
|
-
function
|
|
3384
|
+
function pa() {
|
|
3388
3385
|
return [];
|
|
3389
3386
|
}
|
|
3390
|
-
function
|
|
3387
|
+
function ga() {
|
|
3391
3388
|
return !1;
|
|
3392
3389
|
}
|
|
3393
|
-
e.exports =
|
|
3390
|
+
e.exports = la;
|
|
3394
3391
|
})(xe, xe.exports);
|
|
3395
|
-
var
|
|
3396
|
-
const
|
|
3392
|
+
var qs = xe.exports;
|
|
3393
|
+
const Hs = /* @__PURE__ */ Rs(qs), te = (e, t) => new Date(e.getTime() - Lr(t, e));
|
|
3397
3394
|
class C {
|
|
3398
3395
|
constructor(t) {
|
|
3399
3396
|
b(this, "timeframeText");
|
|
@@ -3462,11 +3459,11 @@ class C {
|
|
|
3462
3459
|
tzAdjustedDate(t) {
|
|
3463
3460
|
if (!t)
|
|
3464
3461
|
return /* @__PURE__ */ new Date();
|
|
3465
|
-
const r =
|
|
3466
|
-
return
|
|
3462
|
+
const r = Cs(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
3463
|
+
return Wr(r, t);
|
|
3467
3464
|
}
|
|
3468
3465
|
}
|
|
3469
|
-
class
|
|
3466
|
+
class js extends C {
|
|
3470
3467
|
rawStart(t) {
|
|
3471
3468
|
let r = H(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
3472
3469
|
return t && (r = te(r, t)), r;
|
|
@@ -3475,7 +3472,7 @@ class Gs extends C {
|
|
|
3475
3472
|
return 60 * 60 * 24 * 7;
|
|
3476
3473
|
}
|
|
3477
3474
|
}
|
|
3478
|
-
class
|
|
3475
|
+
class As extends C {
|
|
3479
3476
|
rawStart(t) {
|
|
3480
3477
|
let r = ee(this.tzAdjustedDate(t));
|
|
3481
3478
|
return t && (r = te(r, t)), r;
|
|
@@ -3484,7 +3481,7 @@ class Fs extends C {
|
|
|
3484
3481
|
return 60 * 60 * 24 * 31;
|
|
3485
3482
|
}
|
|
3486
3483
|
}
|
|
3487
|
-
class
|
|
3484
|
+
class Gs extends C {
|
|
3488
3485
|
rawEnd(t) {
|
|
3489
3486
|
let r = H(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
3490
3487
|
return t && (r = te(r, t)), r;
|
|
@@ -3497,17 +3494,17 @@ class Ws extends C {
|
|
|
3497
3494
|
return t && (n = te(n, t)), n;
|
|
3498
3495
|
}
|
|
3499
3496
|
}
|
|
3500
|
-
class
|
|
3497
|
+
class Fs extends C {
|
|
3501
3498
|
rawEnd(t) {
|
|
3502
3499
|
let r = ee(this.tzAdjustedDate(t));
|
|
3503
3500
|
return t && (r = te(r, t)), r;
|
|
3504
3501
|
}
|
|
3505
3502
|
rawStart(t) {
|
|
3506
|
-
let r = ee(
|
|
3503
|
+
let r = ee(Ar(this.tzAdjustedDate(t)));
|
|
3507
3504
|
return t && (r = te(r, t)), r;
|
|
3508
3505
|
}
|
|
3509
3506
|
}
|
|
3510
|
-
const
|
|
3507
|
+
const Ws = /* @__PURE__ */ new Map([
|
|
3511
3508
|
[
|
|
3512
3509
|
m.FIFTEEN_MIN,
|
|
3513
3510
|
new C({
|
|
@@ -3615,13 +3612,13 @@ const Us = /* @__PURE__ */ new Map([
|
|
|
3615
3612
|
],
|
|
3616
3613
|
[
|
|
3617
3614
|
m.CURRENT_WEEK,
|
|
3618
|
-
new
|
|
3615
|
+
new js({
|
|
3619
3616
|
key: m.CURRENT_WEEK,
|
|
3620
3617
|
display: "This week",
|
|
3621
3618
|
timeframeText: "Week",
|
|
3622
3619
|
timeframeLength: () => {
|
|
3623
3620
|
const e = H(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
|
|
3624
|
-
return (Oe(
|
|
3621
|
+
return (Oe(Ut(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
3625
3622
|
},
|
|
3626
3623
|
defaultResponseGranularity: "daily",
|
|
3627
3624
|
dataGranularity: "daily",
|
|
@@ -3633,13 +3630,13 @@ const Us = /* @__PURE__ */ new Map([
|
|
|
3633
3630
|
],
|
|
3634
3631
|
[
|
|
3635
3632
|
m.CURRENT_MONTH,
|
|
3636
|
-
new
|
|
3633
|
+
new As({
|
|
3637
3634
|
key: m.CURRENT_MONTH,
|
|
3638
3635
|
display: "This month",
|
|
3639
3636
|
timeframeText: "Month",
|
|
3640
3637
|
timeframeLength: () => {
|
|
3641
3638
|
const e = ee(/* @__PURE__ */ new Date());
|
|
3642
|
-
return (Oe(
|
|
3639
|
+
return (Oe(Ut(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
3643
3640
|
},
|
|
3644
3641
|
defaultResponseGranularity: "daily",
|
|
3645
3642
|
dataGranularity: "daily",
|
|
@@ -3649,7 +3646,7 @@ const Us = /* @__PURE__ */ new Map([
|
|
|
3649
3646
|
],
|
|
3650
3647
|
[
|
|
3651
3648
|
m.PREVIOUS_WEEK,
|
|
3652
|
-
new
|
|
3649
|
+
new Gs({
|
|
3653
3650
|
key: m.PREVIOUS_WEEK,
|
|
3654
3651
|
display: "Previous week",
|
|
3655
3652
|
timeframeText: "Week",
|
|
@@ -3664,14 +3661,14 @@ const Us = /* @__PURE__ */ new Map([
|
|
|
3664
3661
|
],
|
|
3665
3662
|
[
|
|
3666
3663
|
m.PREVIOUS_MONTH,
|
|
3667
|
-
new
|
|
3664
|
+
new Fs({
|
|
3668
3665
|
key: m.PREVIOUS_MONTH,
|
|
3669
3666
|
display: "Previous month",
|
|
3670
3667
|
timeframeText: "Month",
|
|
3671
3668
|
timeframeLength: () => {
|
|
3672
3669
|
let e = 0;
|
|
3673
|
-
const t = ee(/* @__PURE__ */ new Date()), r = ee(
|
|
3674
|
-
return t.getTimezoneOffset() !== r.getTimezoneOffset() && (e =
|
|
3670
|
+
const t = ee(/* @__PURE__ */ new Date()), r = ee(Ar(/* @__PURE__ */ new Date()));
|
|
3671
|
+
return t.getTimezoneOffset() !== r.getTimezoneOffset() && (e = Ls(t, r)), 60 * 60 * 24 * es((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + rs(e);
|
|
3675
3672
|
},
|
|
3676
3673
|
defaultResponseGranularity: "daily",
|
|
3677
3674
|
dataGranularity: "daily",
|
|
@@ -3680,9 +3677,9 @@ const Us = /* @__PURE__ */ new Map([
|
|
|
3680
3677
|
})
|
|
3681
3678
|
]
|
|
3682
3679
|
]);
|
|
3683
|
-
function
|
|
3680
|
+
function ho(e) {
|
|
3684
3681
|
const t = new Date(e.start), r = new Date(e.end), n = (r.getTime() - t.getTime()) / 1e3;
|
|
3685
|
-
return e.timePeriodsKey &&
|
|
3682
|
+
return e.timePeriodsKey && Hs(Ws.get(e.timePeriodsKey)) || new C({
|
|
3686
3683
|
key: "custom",
|
|
3687
3684
|
timeframeText: "custom",
|
|
3688
3685
|
display: "custom",
|
|
@@ -3695,14 +3692,14 @@ function mo(e) {
|
|
|
3695
3692
|
allowedTiers: ["free", "plus", "enterprise"]
|
|
3696
3693
|
});
|
|
3697
3694
|
}
|
|
3698
|
-
function
|
|
3695
|
+
function mo(e) {
|
|
3699
3696
|
return {
|
|
3700
3697
|
...e.key !== "custom" && { timePeriodsKey: e.key },
|
|
3701
3698
|
start: e.rawStart(),
|
|
3702
3699
|
end: e.rawEnd()
|
|
3703
3700
|
};
|
|
3704
3701
|
}
|
|
3705
|
-
function
|
|
3702
|
+
function yo(e) {
|
|
3706
3703
|
return {
|
|
3707
3704
|
key: e.key,
|
|
3708
3705
|
display: e.display,
|
|
@@ -3713,10 +3710,10 @@ function po(e) {
|
|
|
3713
3710
|
end: () => e.rawEnd()
|
|
3714
3711
|
};
|
|
3715
3712
|
}
|
|
3716
|
-
function
|
|
3717
|
-
return
|
|
3713
|
+
function Ls(e, t) {
|
|
3714
|
+
return ns(e.getTimezoneOffset() - t.getTimezoneOffset());
|
|
3718
3715
|
}
|
|
3719
|
-
const
|
|
3716
|
+
const po = {
|
|
3720
3717
|
"15M": m.FIFTEEN_MIN,
|
|
3721
3718
|
"1H": m.ONE_HOUR,
|
|
3722
3719
|
"6H": m.SIX_HOUR,
|
|
@@ -3745,8 +3742,8 @@ class ot {
|
|
|
3745
3742
|
return Math.floor(i * (r - t + 1)) + t;
|
|
3746
3743
|
}
|
|
3747
3744
|
}
|
|
3748
|
-
const
|
|
3749
|
-
const n =
|
|
3745
|
+
const go = (e, t, r) => {
|
|
3746
|
+
const n = $r(10, 1e4), i = new ot(n), o = Date.now() - 6 * 60 * 60 * 1e3, c = Date.now(), d = [];
|
|
3750
3747
|
let h = 0;
|
|
3751
3748
|
for (let y = o; y <= c; y += 60 * 60 * 1e3)
|
|
3752
3749
|
if (t)
|
|
@@ -3802,8 +3799,8 @@ const _o = (e, t, r) => {
|
|
|
3802
3799
|
data: d,
|
|
3803
3800
|
meta: _
|
|
3804
3801
|
};
|
|
3805
|
-
},
|
|
3806
|
-
const r =
|
|
3802
|
+
}, _o = (e, t) => {
|
|
3803
|
+
const r = $r(10, 1e4), n = new ot(r), i = Date.now() - 6 * 60 * 60 * 1e3, o = Date.now(), c = [], d = {};
|
|
3807
3804
|
e.forEach((f) => {
|
|
3808
3805
|
d[f.name] = 0;
|
|
3809
3806
|
});
|
|
@@ -3836,7 +3833,7 @@ const _o = (e, t, r) => {
|
|
|
3836
3833
|
data: c,
|
|
3837
3834
|
meta: h
|
|
3838
3835
|
};
|
|
3839
|
-
},
|
|
3836
|
+
}, wo = (e, t, r) => {
|
|
3840
3837
|
const n = Math.floor(Math.random() * 9991) + 10, i = new ot(n), o = Date.now() - 6 * 60 * 60 * 1e3, c = Date.now(), d = new Date((o + c) / 2).toISOString(), h = [];
|
|
3841
3838
|
if (t) {
|
|
3842
3839
|
const y = Object.keys(t), p = Object.values(t), E = (P, N) => {
|
|
@@ -3893,82 +3890,81 @@ const _o = (e, t, r) => {
|
|
|
3893
3890
|
meta: _
|
|
3894
3891
|
};
|
|
3895
3892
|
};
|
|
3896
|
-
function
|
|
3893
|
+
function $r(e, t) {
|
|
3897
3894
|
return e = Math.ceil(e), t = Math.floor(t), Math.floor(Math.random() * (t - e + 1) + e);
|
|
3898
3895
|
}
|
|
3899
3896
|
export {
|
|
3900
|
-
|
|
3897
|
+
fo as DeltaQueryTime,
|
|
3901
3898
|
ve as Granularities,
|
|
3902
|
-
|
|
3899
|
+
zs as REFRESH_INTERVAL_MS,
|
|
3903
3900
|
ot as SeededRandom,
|
|
3904
|
-
|
|
3905
|
-
|
|
3901
|
+
po as TIMEFRAME_LOOKUP,
|
|
3902
|
+
Ws as TimePeriods,
|
|
3906
3903
|
C as Timeframe,
|
|
3907
3904
|
m as TimeframeKeys,
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3905
|
+
lo as TimeseriesQueryTime,
|
|
3906
|
+
Ys as UnaryQueryTime,
|
|
3907
|
+
mr as aiExploreAggregations,
|
|
3908
|
+
ja as apiUsageQuerySchema,
|
|
3909
|
+
Pa as barChartSchema,
|
|
3913
3910
|
Be as basicExploreAggregations,
|
|
3914
|
-
|
|
3915
|
-
|
|
3911
|
+
Aa as basicQuerySchema,
|
|
3912
|
+
zr as ceilToNearestTimeGrain,
|
|
3916
3913
|
io as dashboardConfigSchema,
|
|
3917
3914
|
ao as dashboardTileTypes,
|
|
3918
3915
|
no as dashboardsSchemaV1,
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
Ys as granularityMsToQuery,
|
|
3916
|
+
Oa as datasourceToFilterableDimensions,
|
|
3917
|
+
ho as datePickerSelectionToTimeframe,
|
|
3918
|
+
Ia as donutChartSchema,
|
|
3919
|
+
Ls as dstOffsetHours,
|
|
3920
|
+
hr as exploreAggregations,
|
|
3921
|
+
lr as exploreFilterTypesV2,
|
|
3922
|
+
ce as filterableAiExploreDimensions,
|
|
3923
|
+
oe as filterableBasicExploreDimensions,
|
|
3924
|
+
ue as filterableExploreDimensions,
|
|
3925
|
+
Bs as filterableRequestDimensions,
|
|
3926
|
+
Js as filterableRequestMetrics,
|
|
3927
|
+
Ks as filterableRequestWildcardDimensions,
|
|
3928
|
+
ks as floorToNearestTimeGrain,
|
|
3929
|
+
so as formatISOTimeWithTZ,
|
|
3930
|
+
cr as formatTime,
|
|
3931
|
+
oo as formatTimeRange,
|
|
3932
|
+
Ca as gaugeChartSchema,
|
|
3933
|
+
wo as generateCrossSectionalData,
|
|
3934
|
+
_o as generateMultipleMetricTimeSeriesData,
|
|
3935
|
+
go as generateSingleMetricTimeSeriesData,
|
|
3936
|
+
uo as granularitiesToOptions,
|
|
3937
|
+
Is as granularityMsToQuery,
|
|
3942
3938
|
Ze as granularityValues,
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3939
|
+
Ga as llmUsageSchema,
|
|
3940
|
+
Ya as metricCardSchema,
|
|
3941
|
+
co as msToGranularity,
|
|
3946
3942
|
to as queryDatasources,
|
|
3947
3943
|
Je as queryableAiExploreDimensions,
|
|
3948
3944
|
Ee as queryableBasicExploreDimensions,
|
|
3949
3945
|
Ke as queryableExploreDimensions,
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3946
|
+
ba as queryableRequestDimensions,
|
|
3947
|
+
Da as queryableRequestMetrics,
|
|
3948
|
+
Ta as queryableRequestWildcardDimensions,
|
|
3949
|
+
$r as rand,
|
|
3954
3950
|
eo as relativeTimeRangeValuesRequestV2,
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3951
|
+
fr as relativeTimeRangeValuesV4,
|
|
3952
|
+
$s as reportChartTypes,
|
|
3953
|
+
dr as requestFilterTypeEmptyV2,
|
|
3954
|
+
Vs as requestFilterTypeEqualsV2,
|
|
3955
|
+
Xs as requestFilterTypeMetricV2,
|
|
3956
|
+
Qs as requestFilterTypeWildcardV2,
|
|
3957
|
+
Ra as singleValueSchema,
|
|
3958
|
+
Ea as slottableSchema,
|
|
3963
3959
|
ro as stripUnknownFilters,
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3960
|
+
Ua as tileConfigSchema,
|
|
3961
|
+
Wa as tileDefinitionSchema,
|
|
3962
|
+
La as tileLayoutSchema,
|
|
3963
|
+
Zs as timeRangeTypeV2,
|
|
3964
|
+
mo as timeframeToDatepickerSelection,
|
|
3965
|
+
yo as timeframeToDatepickerTimeperiod,
|
|
3966
|
+
Na as timeseriesChartSchema,
|
|
3967
|
+
ka as topNTableSchema,
|
|
3968
|
+
Fa as validDashboardQuery
|
|
3973
3969
|
};
|
|
3974
3970
|
//# sourceMappingURL=vitals-utilities.es.js.map
|