@kong-ui-public/analytics-utilities 11.3.1-pr.2506.a8e979d97.0 → 11.3.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/dashboardSchema.v2.d.ts +4 -4
- package/dist/types/types/country-codes.d.ts +744 -2
- package/dist/types/types/country-codes.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 +1433 -1685
- 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
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var b = (e, t,
|
|
4
|
-
const
|
|
5
|
-
var
|
|
6
|
-
const
|
|
1
|
+
var jr = Object.defineProperty;
|
|
2
|
+
var zr = (e, t, n) => t in e ? jr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var b = (e, t, n) => zr(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
const So = 3e4, Oo = 250, vo = "analytics-query-provider";
|
|
5
|
+
var h = /* @__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))(h || {});
|
|
6
|
+
const Eo = [
|
|
7
7
|
"horizontal_bar",
|
|
8
8
|
"vertical_bar",
|
|
9
9
|
"timeseries_line",
|
|
@@ -11,7 +11,7 @@ const vs = [
|
|
|
11
11
|
"timeseries_bar",
|
|
12
12
|
"donut",
|
|
13
13
|
"single_value"
|
|
14
|
-
],
|
|
14
|
+
], Br = ["in", "not_in", "selector"], xo = ["=", "!="], Io = ["=", "!=", "<", ">", "<=", ">="], Vr = ["empty", "not_empty"], No = ["starts_with", "ends_with"], Po = ["absolute", "relative"], Xr = [
|
|
15
15
|
"15m",
|
|
16
16
|
"1h",
|
|
17
17
|
"6h",
|
|
@@ -23,7 +23,7 @@ const vs = [
|
|
|
23
23
|
"30d",
|
|
24
24
|
"current_month",
|
|
25
25
|
"previous_month"
|
|
26
|
-
],
|
|
26
|
+
], en = [
|
|
27
27
|
"secondly",
|
|
28
28
|
"tenSecondly",
|
|
29
29
|
"thirtySecondly",
|
|
@@ -37,7 +37,7 @@ const vs = [
|
|
|
37
37
|
"daily",
|
|
38
38
|
"weekly",
|
|
39
39
|
"trend"
|
|
40
|
-
], ie = (e) => e.filter((t) => t !== "time"),
|
|
40
|
+
], ie = (e) => e.filter((t) => t !== "time"), Be = [
|
|
41
41
|
"api",
|
|
42
42
|
"api_product",
|
|
43
43
|
"api_product_version",
|
|
@@ -50,13 +50,13 @@ const vs = [
|
|
|
50
50
|
"status_code",
|
|
51
51
|
"status_code_grouped",
|
|
52
52
|
"time"
|
|
53
|
-
],
|
|
53
|
+
], De = ie(Be), tn = [
|
|
54
54
|
"active_services",
|
|
55
55
|
"request_count",
|
|
56
56
|
"request_per_minute",
|
|
57
57
|
"response_latency_average"
|
|
58
|
-
],
|
|
59
|
-
...
|
|
58
|
+
], nn = [
|
|
59
|
+
...Be,
|
|
60
60
|
"application",
|
|
61
61
|
"consumer",
|
|
62
62
|
"country_code",
|
|
@@ -65,8 +65,8 @@ const vs = [
|
|
|
65
65
|
"response_source",
|
|
66
66
|
"data_plane_node_version",
|
|
67
67
|
"realm"
|
|
68
|
-
],
|
|
69
|
-
...
|
|
68
|
+
], Se = ie(nn), $r = [
|
|
69
|
+
...tn,
|
|
70
70
|
"response_latency_p99",
|
|
71
71
|
"response_latency_p95",
|
|
72
72
|
"response_latency_p50",
|
|
@@ -88,7 +88,7 @@ const vs = [
|
|
|
88
88
|
"request_size_p50",
|
|
89
89
|
"request_size_average",
|
|
90
90
|
"request_size_sum"
|
|
91
|
-
],
|
|
91
|
+
], rn = [
|
|
92
92
|
"control_plane",
|
|
93
93
|
"control_plane_group",
|
|
94
94
|
"gateway_service",
|
|
@@ -106,7 +106,7 @@ const vs = [
|
|
|
106
106
|
"status_code",
|
|
107
107
|
"status_code_grouped",
|
|
108
108
|
"ai_plugin"
|
|
109
|
-
],
|
|
109
|
+
], Oe = ie(rn), Zr = [
|
|
110
110
|
"total_tokens",
|
|
111
111
|
"prompt_tokens",
|
|
112
112
|
"completion_tokens",
|
|
@@ -117,7 +117,7 @@ const vs = [
|
|
|
117
117
|
"llm_latency_average",
|
|
118
118
|
"llm_embeddings_tokens",
|
|
119
119
|
"llm_embeddings_cost"
|
|
120
|
-
],
|
|
120
|
+
], Qr = [
|
|
121
121
|
"api",
|
|
122
122
|
"api_product",
|
|
123
123
|
"api_product_version",
|
|
@@ -151,7 +151,7 @@ const vs = [
|
|
|
151
151
|
"upstream_uri",
|
|
152
152
|
"upstream_status_code_grouped",
|
|
153
153
|
"websocket"
|
|
154
|
-
],
|
|
154
|
+
], Kr = ie(Qr), Jr = [
|
|
155
155
|
"auth_type",
|
|
156
156
|
"client_ip",
|
|
157
157
|
"country_code",
|
|
@@ -167,7 +167,7 @@ const vs = [
|
|
|
167
167
|
"service_protocol",
|
|
168
168
|
"trace_id",
|
|
169
169
|
"upstream_uri"
|
|
170
|
-
],
|
|
170
|
+
], Co = Jr, ea = [
|
|
171
171
|
"ai_count",
|
|
172
172
|
"latencies_response_ms",
|
|
173
173
|
"latencies_upstream_ms",
|
|
@@ -177,517 +177,265 @@ const vs = [
|
|
|
177
177
|
"response_header_content_length",
|
|
178
178
|
"status_code",
|
|
179
179
|
"upstream_status_code"
|
|
180
|
-
], ta = ie(ea),
|
|
180
|
+
], ta = ie(ea), Ro = [
|
|
181
181
|
"15M",
|
|
182
182
|
"1H",
|
|
183
183
|
"6H",
|
|
184
184
|
"12H",
|
|
185
185
|
"24H",
|
|
186
186
|
"7D"
|
|
187
|
-
],
|
|
188
|
-
basic: new Set(
|
|
189
|
-
api_usage: new Set(
|
|
190
|
-
llm_usage: new Set(
|
|
191
|
-
},
|
|
192
|
-
"AF",
|
|
193
|
-
|
|
194
|
-
"
|
|
195
|
-
|
|
196
|
-
"
|
|
197
|
-
|
|
198
|
-
"
|
|
199
|
-
|
|
200
|
-
"
|
|
201
|
-
|
|
202
|
-
"
|
|
203
|
-
|
|
204
|
-
"
|
|
205
|
-
|
|
206
|
-
"
|
|
207
|
-
|
|
208
|
-
"
|
|
209
|
-
|
|
210
|
-
"
|
|
211
|
-
|
|
212
|
-
"
|
|
213
|
-
|
|
214
|
-
"
|
|
215
|
-
|
|
216
|
-
"
|
|
217
|
-
|
|
218
|
-
"
|
|
219
|
-
|
|
220
|
-
"
|
|
221
|
-
|
|
222
|
-
"
|
|
223
|
-
|
|
224
|
-
"
|
|
225
|
-
|
|
226
|
-
"
|
|
227
|
-
|
|
228
|
-
"
|
|
229
|
-
|
|
230
|
-
"
|
|
231
|
-
|
|
232
|
-
"
|
|
233
|
-
|
|
234
|
-
"
|
|
235
|
-
|
|
236
|
-
"
|
|
237
|
-
|
|
238
|
-
"
|
|
239
|
-
|
|
240
|
-
"
|
|
241
|
-
|
|
242
|
-
"
|
|
243
|
-
|
|
244
|
-
"
|
|
245
|
-
|
|
246
|
-
"
|
|
247
|
-
|
|
248
|
-
"
|
|
249
|
-
|
|
250
|
-
"
|
|
251
|
-
|
|
252
|
-
"
|
|
253
|
-
|
|
254
|
-
"
|
|
255
|
-
|
|
256
|
-
"
|
|
257
|
-
|
|
258
|
-
"
|
|
259
|
-
|
|
260
|
-
"
|
|
261
|
-
|
|
262
|
-
"
|
|
263
|
-
|
|
264
|
-
"
|
|
265
|
-
|
|
266
|
-
"
|
|
267
|
-
|
|
268
|
-
"
|
|
269
|
-
|
|
270
|
-
"
|
|
271
|
-
|
|
272
|
-
"
|
|
273
|
-
|
|
274
|
-
"
|
|
275
|
-
|
|
276
|
-
"
|
|
277
|
-
|
|
278
|
-
"
|
|
279
|
-
|
|
280
|
-
"
|
|
281
|
-
|
|
282
|
-
"
|
|
283
|
-
|
|
284
|
-
"
|
|
285
|
-
|
|
286
|
-
"
|
|
287
|
-
|
|
288
|
-
"
|
|
289
|
-
|
|
290
|
-
"
|
|
291
|
-
|
|
292
|
-
"
|
|
293
|
-
|
|
294
|
-
"
|
|
295
|
-
|
|
296
|
-
"
|
|
297
|
-
|
|
298
|
-
"
|
|
299
|
-
|
|
300
|
-
"
|
|
301
|
-
|
|
302
|
-
"
|
|
303
|
-
|
|
304
|
-
"
|
|
305
|
-
|
|
306
|
-
"
|
|
307
|
-
|
|
308
|
-
"
|
|
309
|
-
|
|
310
|
-
"
|
|
311
|
-
|
|
312
|
-
"
|
|
313
|
-
|
|
314
|
-
"
|
|
315
|
-
|
|
316
|
-
"
|
|
317
|
-
|
|
318
|
-
"
|
|
319
|
-
|
|
320
|
-
"
|
|
321
|
-
|
|
322
|
-
"
|
|
323
|
-
|
|
324
|
-
"
|
|
325
|
-
|
|
326
|
-
"
|
|
327
|
-
|
|
328
|
-
"
|
|
329
|
-
|
|
330
|
-
"
|
|
331
|
-
|
|
332
|
-
"
|
|
333
|
-
|
|
334
|
-
"
|
|
335
|
-
|
|
336
|
-
"
|
|
337
|
-
|
|
338
|
-
"
|
|
339
|
-
|
|
340
|
-
"
|
|
341
|
-
|
|
342
|
-
"
|
|
343
|
-
|
|
344
|
-
"
|
|
345
|
-
|
|
346
|
-
"
|
|
347
|
-
|
|
348
|
-
"
|
|
349
|
-
|
|
350
|
-
"
|
|
351
|
-
|
|
352
|
-
"
|
|
353
|
-
|
|
354
|
-
"
|
|
355
|
-
|
|
356
|
-
"
|
|
357
|
-
|
|
358
|
-
"
|
|
359
|
-
|
|
360
|
-
"
|
|
361
|
-
|
|
362
|
-
"
|
|
363
|
-
|
|
364
|
-
"
|
|
365
|
-
|
|
366
|
-
"
|
|
367
|
-
|
|
368
|
-
"
|
|
369
|
-
|
|
370
|
-
"
|
|
371
|
-
|
|
372
|
-
"
|
|
373
|
-
|
|
374
|
-
"
|
|
375
|
-
|
|
376
|
-
"
|
|
377
|
-
|
|
378
|
-
"
|
|
379
|
-
|
|
380
|
-
"
|
|
381
|
-
|
|
382
|
-
"
|
|
383
|
-
|
|
384
|
-
"
|
|
385
|
-
|
|
386
|
-
"
|
|
387
|
-
|
|
388
|
-
"
|
|
389
|
-
|
|
390
|
-
"
|
|
391
|
-
|
|
392
|
-
"
|
|
393
|
-
|
|
394
|
-
"
|
|
395
|
-
|
|
396
|
-
"
|
|
397
|
-
|
|
398
|
-
"
|
|
399
|
-
|
|
400
|
-
"
|
|
401
|
-
|
|
402
|
-
"
|
|
403
|
-
|
|
404
|
-
"
|
|
405
|
-
|
|
406
|
-
"
|
|
407
|
-
|
|
408
|
-
"
|
|
409
|
-
|
|
410
|
-
"
|
|
411
|
-
|
|
412
|
-
"
|
|
413
|
-
|
|
414
|
-
"
|
|
415
|
-
|
|
416
|
-
"
|
|
417
|
-
|
|
418
|
-
"
|
|
419
|
-
|
|
420
|
-
"
|
|
421
|
-
|
|
422
|
-
"
|
|
423
|
-
|
|
424
|
-
"
|
|
425
|
-
|
|
426
|
-
"
|
|
427
|
-
|
|
428
|
-
"
|
|
429
|
-
|
|
430
|
-
"
|
|
431
|
-
|
|
432
|
-
"
|
|
433
|
-
|
|
434
|
-
"
|
|
435
|
-
|
|
436
|
-
"
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
// Latvia
|
|
440
|
-
"LB",
|
|
441
|
-
// Lebanon
|
|
442
|
-
"LS",
|
|
443
|
-
// Lesotho
|
|
444
|
-
"LR",
|
|
445
|
-
// Liberia
|
|
446
|
-
"LY",
|
|
447
|
-
// Libya
|
|
448
|
-
"LI",
|
|
449
|
-
// Liechtenstein
|
|
450
|
-
"LT",
|
|
451
|
-
// Lithuania
|
|
452
|
-
"LU",
|
|
453
|
-
// Luxembourg
|
|
454
|
-
"MO",
|
|
455
|
-
// Macao
|
|
456
|
-
"MG",
|
|
457
|
-
// Madagascar
|
|
458
|
-
"MW",
|
|
459
|
-
// Malawi
|
|
460
|
-
"MY",
|
|
461
|
-
// Malaysia
|
|
462
|
-
"MV",
|
|
463
|
-
// Maldives
|
|
464
|
-
"ML",
|
|
465
|
-
// Mali
|
|
466
|
-
"MT",
|
|
467
|
-
// Malta
|
|
468
|
-
"MH",
|
|
469
|
-
// Marshall Islands
|
|
470
|
-
"MQ",
|
|
471
|
-
// Martinique
|
|
472
|
-
"MR",
|
|
473
|
-
// Mauritania
|
|
474
|
-
"MU",
|
|
475
|
-
// Mauritius
|
|
476
|
-
"YT",
|
|
477
|
-
// Mayotte
|
|
478
|
-
"MX",
|
|
479
|
-
// Mexico
|
|
480
|
-
"FM",
|
|
481
|
-
// Micronesia (Federated States of)
|
|
482
|
-
"MD",
|
|
483
|
-
// Moldova (Republic of)
|
|
484
|
-
"MC",
|
|
485
|
-
// Monaco
|
|
486
|
-
"MN",
|
|
487
|
-
// Mongolia
|
|
488
|
-
"ME",
|
|
489
|
-
// Montenegro
|
|
490
|
-
"MS",
|
|
491
|
-
// Montserrat
|
|
492
|
-
"MA",
|
|
493
|
-
// Morocco
|
|
494
|
-
"MZ",
|
|
495
|
-
// Mozambique
|
|
496
|
-
"MM",
|
|
497
|
-
// Myanmar
|
|
498
|
-
"NA",
|
|
499
|
-
// Namibia
|
|
500
|
-
"NR",
|
|
501
|
-
// Nauru
|
|
502
|
-
"NP",
|
|
503
|
-
// Nepal
|
|
504
|
-
"NL",
|
|
505
|
-
// Netherlands
|
|
506
|
-
"NC",
|
|
507
|
-
// New Caledonia
|
|
508
|
-
"NZ",
|
|
509
|
-
// New Zealand
|
|
510
|
-
"NI",
|
|
511
|
-
// Nicaragua
|
|
512
|
-
"NE",
|
|
513
|
-
// Niger
|
|
514
|
-
"NG",
|
|
515
|
-
// Nigeria
|
|
516
|
-
"NU",
|
|
517
|
-
// Niue
|
|
518
|
-
"NF",
|
|
519
|
-
// Norfolk Island
|
|
520
|
-
"MK",
|
|
521
|
-
// North Macedonia
|
|
522
|
-
"MP",
|
|
523
|
-
// Northern Mariana Islands
|
|
524
|
-
"NO",
|
|
525
|
-
// Norway
|
|
526
|
-
"OM",
|
|
527
|
-
// Oman
|
|
528
|
-
"PK",
|
|
529
|
-
// Pakistan
|
|
530
|
-
"PW",
|
|
531
|
-
// Palau
|
|
532
|
-
"PS",
|
|
533
|
-
// Palestine, State of
|
|
534
|
-
"PA",
|
|
535
|
-
// Panama
|
|
536
|
-
"PG",
|
|
537
|
-
// Papua New Guinea
|
|
538
|
-
"PY",
|
|
539
|
-
// Paraguay
|
|
540
|
-
"PE",
|
|
541
|
-
// Peru
|
|
542
|
-
"PH",
|
|
543
|
-
// Philippines
|
|
544
|
-
"PN",
|
|
545
|
-
// Pitcairn
|
|
546
|
-
"PL",
|
|
547
|
-
// Poland
|
|
548
|
-
"PT",
|
|
549
|
-
// Portugal
|
|
550
|
-
"PR",
|
|
551
|
-
// Puerto Rico
|
|
552
|
-
"QA",
|
|
553
|
-
// Qatar
|
|
554
|
-
"RE",
|
|
555
|
-
// Réunion
|
|
556
|
-
"RO",
|
|
557
|
-
// Romania
|
|
558
|
-
"RU",
|
|
559
|
-
// Russian Federation
|
|
560
|
-
"RW",
|
|
561
|
-
// Rwanda
|
|
562
|
-
"BL",
|
|
563
|
-
// Saint Barthélemy
|
|
564
|
-
"SH",
|
|
565
|
-
// Saint Helena, Ascension and Tristan da Cunha
|
|
566
|
-
"KN",
|
|
567
|
-
// Saint Kitts and Nevis
|
|
568
|
-
"LC",
|
|
569
|
-
// Saint Lucia
|
|
570
|
-
"MF",
|
|
571
|
-
// Saint Martin (French part)
|
|
572
|
-
"PM",
|
|
573
|
-
// Saint Pierre and Miquelon
|
|
574
|
-
"VC",
|
|
575
|
-
// Saint Vincent and the Grenadines
|
|
576
|
-
"WS",
|
|
577
|
-
// Samoa
|
|
578
|
-
"SM",
|
|
579
|
-
// San Marino
|
|
580
|
-
"ST",
|
|
581
|
-
// Sao Tome and Principe
|
|
582
|
-
"SA",
|
|
583
|
-
// Saudi Arabia
|
|
584
|
-
"SN",
|
|
585
|
-
// Senegal
|
|
586
|
-
"RS",
|
|
587
|
-
// Serbia
|
|
588
|
-
"SC",
|
|
589
|
-
// Seychelles
|
|
590
|
-
"SL",
|
|
591
|
-
// Sierra Leone
|
|
592
|
-
"SG",
|
|
593
|
-
// Singapore
|
|
594
|
-
"SX",
|
|
595
|
-
// Sint Maarten (Dutch part)
|
|
596
|
-
"SK",
|
|
597
|
-
// Slovakia
|
|
598
|
-
"SI",
|
|
599
|
-
// Slovenia
|
|
600
|
-
"SB",
|
|
601
|
-
// Solomon Islands
|
|
602
|
-
"SO",
|
|
603
|
-
// Somalia
|
|
604
|
-
"ZA",
|
|
605
|
-
// South Africa
|
|
606
|
-
"GS",
|
|
607
|
-
// South Georgia and the South Sandwich Islands
|
|
608
|
-
"SS",
|
|
609
|
-
// South Sudan
|
|
610
|
-
"ES",
|
|
611
|
-
// Spain
|
|
612
|
-
"LK",
|
|
613
|
-
// Sri Lanka
|
|
614
|
-
"SD",
|
|
615
|
-
// Sudan
|
|
616
|
-
"SR",
|
|
617
|
-
// Suriname
|
|
618
|
-
"SJ",
|
|
619
|
-
// Svalbard and Jan Mayen
|
|
620
|
-
"SE",
|
|
621
|
-
// Sweden
|
|
622
|
-
"CH",
|
|
623
|
-
// Switzerland
|
|
624
|
-
"SY",
|
|
625
|
-
// Syrian Arab Republic
|
|
626
|
-
"TW",
|
|
627
|
-
// Taiwan, Province of China
|
|
628
|
-
"TJ",
|
|
629
|
-
// Tajikistan
|
|
630
|
-
"TZ",
|
|
631
|
-
// Tanzania, United Republic of
|
|
632
|
-
"TH",
|
|
633
|
-
// Thailand
|
|
634
|
-
"TL",
|
|
635
|
-
// Timor-Leste
|
|
636
|
-
"TG",
|
|
637
|
-
// Togo
|
|
638
|
-
"TK",
|
|
639
|
-
// Tokelau
|
|
640
|
-
"TO",
|
|
641
|
-
// Tonga
|
|
642
|
-
"TT",
|
|
643
|
-
// Trinidad and Tobago
|
|
644
|
-
"TN",
|
|
645
|
-
// Tunisia
|
|
646
|
-
"TR",
|
|
647
|
-
// Turkey
|
|
648
|
-
"TM",
|
|
649
|
-
// Turkmenistan
|
|
650
|
-
"TC",
|
|
651
|
-
// Turks and Caicos Islands
|
|
652
|
-
"TV",
|
|
653
|
-
// Tuvalu
|
|
654
|
-
"UG",
|
|
655
|
-
// Uganda
|
|
656
|
-
"UA",
|
|
657
|
-
// Ukraine
|
|
658
|
-
"AE",
|
|
659
|
-
// United Arab Emirates
|
|
660
|
-
"GB",
|
|
661
|
-
// United Kingdom of Great Britain and Northern Ireland
|
|
662
|
-
"UM",
|
|
663
|
-
// United States Minor Outlying Islands
|
|
664
|
-
"US",
|
|
665
|
-
// United States of America
|
|
666
|
-
"UY",
|
|
667
|
-
// Uruguay
|
|
668
|
-
"UZ",
|
|
669
|
-
// Uzbekistan
|
|
670
|
-
"VU",
|
|
671
|
-
// Vanuatu
|
|
672
|
-
"VE",
|
|
673
|
-
// Venezuela (Bolivarian Republic of)
|
|
674
|
-
"VN",
|
|
675
|
-
// Viet Nam
|
|
676
|
-
"VG",
|
|
677
|
-
// Virgin Islands (British)
|
|
678
|
-
"VI",
|
|
679
|
-
// Virgin Islands (U.S.)
|
|
680
|
-
"WF",
|
|
681
|
-
// Wallis and Futuna
|
|
682
|
-
"EH",
|
|
683
|
-
// Western Sahara
|
|
684
|
-
"YE",
|
|
685
|
-
// Yemen
|
|
686
|
-
"ZM",
|
|
687
|
-
// Zambia
|
|
688
|
-
"ZW"
|
|
689
|
-
// Zimbabwe
|
|
690
|
-
], Ys = [
|
|
187
|
+
], ko = ["basic", "api_usage", "llm_usage"], na = {
|
|
188
|
+
basic: new Set(De),
|
|
189
|
+
api_usage: new Set(Se),
|
|
190
|
+
llm_usage: new Set(Oe)
|
|
191
|
+
}, Go = (e, t) => t.filter((n) => na[e].has(n.field)), ra = [
|
|
192
|
+
{ code: "AF", name: "Afghanistan" },
|
|
193
|
+
{ code: "AX", name: "Aland Islands" },
|
|
194
|
+
{ code: "AL", name: "Albania" },
|
|
195
|
+
{ code: "DZ", name: "Algeria" },
|
|
196
|
+
{ code: "AS", name: "American Samoa" },
|
|
197
|
+
{ code: "AD", name: "Andorra" },
|
|
198
|
+
{ code: "AO", name: "Angola" },
|
|
199
|
+
{ code: "AI", name: "Anguilla" },
|
|
200
|
+
{ code: "AQ", name: "Antarctica" },
|
|
201
|
+
{ code: "AG", name: "Antigua and Barbuda" },
|
|
202
|
+
{ code: "AR", name: "Argentina" },
|
|
203
|
+
{ code: "AM", name: "Armenia" },
|
|
204
|
+
{ code: "AW", name: "Aruba" },
|
|
205
|
+
{ code: "AU", name: "Australia" },
|
|
206
|
+
{ code: "AT", name: "Austria" },
|
|
207
|
+
{ code: "AZ", name: "Azerbaijan" },
|
|
208
|
+
{ code: "BS", name: "Bahamas" },
|
|
209
|
+
{ code: "BH", name: "Bahrain" },
|
|
210
|
+
{ code: "BD", name: "Bangladesh" },
|
|
211
|
+
{ code: "BB", name: "Barbados" },
|
|
212
|
+
{ code: "BY", name: "Belarus" },
|
|
213
|
+
{ code: "BE", name: "Belgium" },
|
|
214
|
+
{ code: "BZ", name: "Belize" },
|
|
215
|
+
{ code: "BJ", name: "Benin" },
|
|
216
|
+
{ code: "BM", name: "Bermuda" },
|
|
217
|
+
{ code: "BT", name: "Bhutan" },
|
|
218
|
+
{ code: "BO", name: "Bolivia" },
|
|
219
|
+
{ code: "BA", name: "Bosnia and Herzegovina" },
|
|
220
|
+
{ code: "BW", name: "Botswana" },
|
|
221
|
+
{ code: "BV", name: "Bouvet Island" },
|
|
222
|
+
{ code: "BR", name: "Brazil" },
|
|
223
|
+
{ code: "IO", name: "British Indian Ocean Territory" },
|
|
224
|
+
{ code: "BN", name: "Brunei Darussalam" },
|
|
225
|
+
{ code: "BG", name: "Bulgaria" },
|
|
226
|
+
{ code: "BF", name: "Burkina Faso" },
|
|
227
|
+
{ code: "BI", name: "Burundi" },
|
|
228
|
+
{ code: "KH", name: "Cambodia" },
|
|
229
|
+
{ code: "CM", name: "Cameroon" },
|
|
230
|
+
{ code: "CA", name: "Canada" },
|
|
231
|
+
{ code: "CV", name: "Cape Verde" },
|
|
232
|
+
{ code: "KY", name: "Cayman Islands" },
|
|
233
|
+
{ code: "CF", name: "Central African Republic" },
|
|
234
|
+
{ code: "TD", name: "Chad" },
|
|
235
|
+
{ code: "CL", name: "Chile" },
|
|
236
|
+
{ code: "CN", name: "China" },
|
|
237
|
+
{ code: "CX", name: "Christmas Island" },
|
|
238
|
+
{ code: "CC", name: "Cocos (Keeling) Islands" },
|
|
239
|
+
{ code: "CO", name: "Colombia" },
|
|
240
|
+
{ code: "KM", name: "Comoros" },
|
|
241
|
+
{ code: "CG", name: "Congo" },
|
|
242
|
+
{ code: "CD", name: "Democratic Republic of the Congo" },
|
|
243
|
+
{ code: "CK", name: "Cook Islands" },
|
|
244
|
+
{ code: "CR", name: "Costa Rica" },
|
|
245
|
+
{ code: "CI", name: "Cote d'Ivoire" },
|
|
246
|
+
{ code: "HR", name: "Croatia" },
|
|
247
|
+
{ code: "CU", name: "Cuba" },
|
|
248
|
+
{ code: "CY", name: "Cyprus" },
|
|
249
|
+
{ code: "CZ", name: "Czech Republic" },
|
|
250
|
+
{ code: "DK", name: "Denmark" },
|
|
251
|
+
{ code: "DJ", name: "Djibouti" },
|
|
252
|
+
{ code: "DM", name: "Dominica" },
|
|
253
|
+
{ code: "DO", name: "Dominican Republic" },
|
|
254
|
+
{ code: "EC", name: "Ecuador" },
|
|
255
|
+
{ code: "EG", name: "Egypt" },
|
|
256
|
+
{ code: "SV", name: "El Salvador" },
|
|
257
|
+
{ code: "GQ", name: "Equatorial Guinea" },
|
|
258
|
+
{ code: "ER", name: "Eritrea" },
|
|
259
|
+
{ code: "EE", name: "Estonia" },
|
|
260
|
+
{ code: "ET", name: "Ethiopia" },
|
|
261
|
+
{ code: "FK", name: "Falkland Islands (Malvinas)" },
|
|
262
|
+
{ code: "FO", name: "Faroe Islands" },
|
|
263
|
+
{ code: "FJ", name: "Fiji" },
|
|
264
|
+
{ code: "FI", name: "Finland" },
|
|
265
|
+
{ code: "FR", name: "France" },
|
|
266
|
+
{ code: "GF", name: "French Guiana" },
|
|
267
|
+
{ code: "PF", name: "French Polynesia" },
|
|
268
|
+
{ code: "TF", name: "French Southern Territories" },
|
|
269
|
+
{ code: "GA", name: "Gabon" },
|
|
270
|
+
{ code: "GM", name: "Gambia" },
|
|
271
|
+
{ code: "GE", name: "Georgia" },
|
|
272
|
+
{ code: "DE", name: "Germany" },
|
|
273
|
+
{ code: "GH", name: "Ghana" },
|
|
274
|
+
{ code: "GI", name: "Gibraltar" },
|
|
275
|
+
{ code: "GR", name: "Greece" },
|
|
276
|
+
{ code: "GL", name: "Greenland" },
|
|
277
|
+
{ code: "GD", name: "Grenada" },
|
|
278
|
+
{ code: "GP", name: "Guadeloupe" },
|
|
279
|
+
{ code: "GU", name: "Guam" },
|
|
280
|
+
{ code: "GT", name: "Guatemala" },
|
|
281
|
+
{ code: "GG", name: "Guernsey" },
|
|
282
|
+
{ code: "GN", name: "Guinea" },
|
|
283
|
+
{ code: "GW", name: "Guinea-Bissau" },
|
|
284
|
+
{ code: "GY", name: "Guyana" },
|
|
285
|
+
{ code: "HT", name: "Haiti" },
|
|
286
|
+
{ code: "HM", name: "Heard Island and McDonald Islands" },
|
|
287
|
+
{ code: "VA", name: "The Vatican" },
|
|
288
|
+
{ code: "HN", name: "Honduras" },
|
|
289
|
+
{ code: "HK", name: "Hong Kong" },
|
|
290
|
+
{ code: "HU", name: "Hungary" },
|
|
291
|
+
{ code: "IS", name: "Iceland" },
|
|
292
|
+
{ code: "IN", name: "India" },
|
|
293
|
+
{ code: "ID", name: "Indonesia" },
|
|
294
|
+
{ code: "IR", name: "Iran" },
|
|
295
|
+
{ code: "IQ", name: "Iraq" },
|
|
296
|
+
{ code: "IE", name: "Ireland" },
|
|
297
|
+
{ code: "IM", name: "Isle of Man" },
|
|
298
|
+
{ code: "IL", name: "Israel" },
|
|
299
|
+
{ code: "IT", name: "Italy" },
|
|
300
|
+
{ code: "JM", name: "Jamaica" },
|
|
301
|
+
{ code: "JP", name: "Japan" },
|
|
302
|
+
{ code: "JE", name: "Jersey" },
|
|
303
|
+
{ code: "JO", name: "Jordan" },
|
|
304
|
+
{ code: "KZ", name: "Kazakhstan" },
|
|
305
|
+
{ code: "KE", name: "Kenya" },
|
|
306
|
+
{ code: "KI", name: "Kiribati" },
|
|
307
|
+
{ code: "KP", name: "North Korea" },
|
|
308
|
+
{ code: "KR", name: "South Korea" },
|
|
309
|
+
{ code: "KW", name: "Kuwait" },
|
|
310
|
+
{ code: "KG", name: "Kyrgyzstan" },
|
|
311
|
+
{ code: "LA", name: "Laos" },
|
|
312
|
+
{ code: "LV", name: "Latvia" },
|
|
313
|
+
{ code: "LB", name: "Lebanon" },
|
|
314
|
+
{ code: "LS", name: "Lesotho" },
|
|
315
|
+
{ code: "LR", name: "Liberia" },
|
|
316
|
+
{ code: "LY", name: "Libya" },
|
|
317
|
+
{ code: "LI", name: "Liechtenstein" },
|
|
318
|
+
{ code: "LT", name: "Lithuania" },
|
|
319
|
+
{ code: "LU", name: "Luxembourg" },
|
|
320
|
+
{ code: "MO", name: "Macao" },
|
|
321
|
+
{ code: "MK", name: "Macedonia" },
|
|
322
|
+
{ code: "MG", name: "Madagascar" },
|
|
323
|
+
{ code: "MW", name: "Malawi" },
|
|
324
|
+
{ code: "MY", name: "Malaysia" },
|
|
325
|
+
{ code: "MV", name: "Maldives" },
|
|
326
|
+
{ code: "ML", name: "Mali" },
|
|
327
|
+
{ code: "MT", name: "Malta" },
|
|
328
|
+
{ code: "MH", name: "Marshall Islands" },
|
|
329
|
+
{ code: "MQ", name: "Martinique" },
|
|
330
|
+
{ code: "MR", name: "Mauritania" },
|
|
331
|
+
{ code: "MU", name: "Mauritius" },
|
|
332
|
+
{ code: "YT", name: "Mayotte" },
|
|
333
|
+
{ code: "MX", name: "Mexico" },
|
|
334
|
+
{ code: "FM", name: "Micronesia, " },
|
|
335
|
+
{ code: "MD", name: "Moldova," },
|
|
336
|
+
{ code: "MC", name: "Monaco" },
|
|
337
|
+
{ code: "MN", name: "Mongolia" },
|
|
338
|
+
{ code: "ME", name: "Montenegro" },
|
|
339
|
+
{ code: "MS", name: "Montserrat" },
|
|
340
|
+
{ code: "MA", name: "Morocco" },
|
|
341
|
+
{ code: "MZ", name: "Mozambique" },
|
|
342
|
+
{ code: "MM", name: "Myanmar" },
|
|
343
|
+
{ code: "NA", name: "Namibia" },
|
|
344
|
+
{ code: "NR", name: "Nauru" },
|
|
345
|
+
{ code: "NP", name: "Nepal" },
|
|
346
|
+
{ code: "NL", name: "Netherlands" },
|
|
347
|
+
{ code: "NC", name: "New Caledonia" },
|
|
348
|
+
{ code: "NZ", name: "New Zealand" },
|
|
349
|
+
{ code: "NI", name: "Nicaragua" },
|
|
350
|
+
{ code: "NE", name: "Niger" },
|
|
351
|
+
{ code: "NG", name: "Nigeria" },
|
|
352
|
+
{ code: "NU", name: "Niue" },
|
|
353
|
+
{ code: "NF", name: "Norfolk Island" },
|
|
354
|
+
{ code: "MP", name: "Northern Mariana Islands" },
|
|
355
|
+
{ code: "NO", name: "Norway" },
|
|
356
|
+
{ code: "OM", name: "Oman" },
|
|
357
|
+
{ code: "PK", name: "Pakistan" },
|
|
358
|
+
{ code: "PW", name: "Palau" },
|
|
359
|
+
{ code: "PA", name: "Panama" },
|
|
360
|
+
{ code: "PG", name: "Papua New Guinea" },
|
|
361
|
+
{ code: "PY", name: "Paraguay" },
|
|
362
|
+
{ code: "PE", name: "Peru" },
|
|
363
|
+
{ code: "PH", name: "Philippines" },
|
|
364
|
+
{ code: "PN", name: "Pitcairn" },
|
|
365
|
+
{ code: "PL", name: "Poland" },
|
|
366
|
+
{ code: "PT", name: "Portugal" },
|
|
367
|
+
{ code: "PR", name: "Puerto Rico" },
|
|
368
|
+
{ code: "QA", name: "Qatar" },
|
|
369
|
+
{ code: "RE", name: "Reunion" },
|
|
370
|
+
{ code: "RO", name: "Romania" },
|
|
371
|
+
{ code: "RU", name: "Russia" },
|
|
372
|
+
{ code: "RW", name: "Rwanda" },
|
|
373
|
+
{ code: "BL", name: "Saint Barthelemy" },
|
|
374
|
+
{ code: "SH", name: "Saint Helena" },
|
|
375
|
+
{ code: "KN", name: "Saint Kitts and Nevis" },
|
|
376
|
+
{ code: "LC", name: "Saint Lucia" },
|
|
377
|
+
{ code: "MF", name: "Saint Martin" },
|
|
378
|
+
{ code: "PM", name: "Saint Pierre and Miquelon" },
|
|
379
|
+
{ code: "VC", name: "Saint Vincent and the Grenadines" },
|
|
380
|
+
{ code: "WS", name: "Samoa" },
|
|
381
|
+
{ code: "SM", name: "San Marino" },
|
|
382
|
+
{ code: "ST", name: "Sao Tome and Principe" },
|
|
383
|
+
{ code: "SA", name: "Saudi Arabia" },
|
|
384
|
+
{ code: "SN", name: "Senegal" },
|
|
385
|
+
{ code: "RS", name: "Serbia" },
|
|
386
|
+
{ code: "SC", name: "Seychelles" },
|
|
387
|
+
{ code: "SL", name: "Sierra Leone" },
|
|
388
|
+
{ code: "SG", name: "Singapore" },
|
|
389
|
+
{ code: "SX", name: "Sint Maarten" },
|
|
390
|
+
{ code: "SK", name: "Slovakia" },
|
|
391
|
+
{ code: "SI", name: "Slovenia" },
|
|
392
|
+
{ code: "SB", name: "Solomon Islands" },
|
|
393
|
+
{ code: "SO", name: "Somalia" },
|
|
394
|
+
{ code: "ZA", name: "South Africa" },
|
|
395
|
+
{ code: "GS", name: "South Georgia and the South Sandwich Islands" },
|
|
396
|
+
{ code: "SS", name: "South Sudan" },
|
|
397
|
+
{ code: "ES", name: "Spain" },
|
|
398
|
+
{ code: "LK", name: "Sri Lanka" },
|
|
399
|
+
{ code: "SD", name: "Sudan" },
|
|
400
|
+
{ code: "SR", name: "Suriname" },
|
|
401
|
+
{ code: "SJ", name: "Svalbard and Jan Mayen" },
|
|
402
|
+
{ code: "SZ", name: "Swaziland" },
|
|
403
|
+
{ code: "SE", name: "Sweden" },
|
|
404
|
+
{ code: "CH", name: "Switzerland" },
|
|
405
|
+
{ code: "SY", name: "Syria" },
|
|
406
|
+
{ code: "TW", name: "Taiwan" },
|
|
407
|
+
{ code: "TJ", name: "Tajikistan" },
|
|
408
|
+
{ code: "TZ", name: "Tanzania" },
|
|
409
|
+
{ code: "TH", name: "Thailand" },
|
|
410
|
+
{ code: "TL", name: "Timor-Leste" },
|
|
411
|
+
{ code: "TG", name: "Togo" },
|
|
412
|
+
{ code: "TK", name: "Tokelau" },
|
|
413
|
+
{ code: "TO", name: "Tonga" },
|
|
414
|
+
{ code: "TT", name: "Trinidad and Tobago" },
|
|
415
|
+
{ code: "TN", name: "Tunisia" },
|
|
416
|
+
{ code: "TR", name: "Turkey" },
|
|
417
|
+
{ code: "TM", name: "Turkmenistan" },
|
|
418
|
+
{ code: "TC", name: "Turks and Caicos Islands" },
|
|
419
|
+
{ code: "TV", name: "Tuvalu" },
|
|
420
|
+
{ code: "UG", name: "Uganda" },
|
|
421
|
+
{ code: "UA", name: "Ukraine" },
|
|
422
|
+
{ code: "AE", name: "United Arab Emirates" },
|
|
423
|
+
{ code: "GB", name: "United Kingdom" },
|
|
424
|
+
{ code: "US", name: "United States" },
|
|
425
|
+
{ code: "UM", name: "United States Minor Outlying Islands" },
|
|
426
|
+
{ code: "UY", name: "Uruguay" },
|
|
427
|
+
{ code: "UZ", name: "Uzbekistan" },
|
|
428
|
+
{ code: "VU", name: "Vanuatu" },
|
|
429
|
+
{ code: "VE", name: "Venezuela" },
|
|
430
|
+
{ code: "VN", name: "Vietnam" },
|
|
431
|
+
{ code: "VG", name: "British Virgin Islands" },
|
|
432
|
+
{ code: "VI", name: "U.S. Virgin Islands" },
|
|
433
|
+
{ code: "WF", name: "Wallis and Futuna" },
|
|
434
|
+
{ code: "EH", name: "Western Sahara" },
|
|
435
|
+
{ code: "YE", name: "Yemen" },
|
|
436
|
+
{ code: "ZM", name: "Zambia" },
|
|
437
|
+
{ code: "ZW", name: "Zimbabwe" }
|
|
438
|
+
], Ao = [
|
|
691
439
|
"horizontal_bar",
|
|
692
440
|
"vertical_bar",
|
|
693
441
|
"gauge",
|
|
@@ -699,13 +447,13 @@ const vs = [
|
|
|
699
447
|
"slottable",
|
|
700
448
|
"single_value",
|
|
701
449
|
"choropleth_map"
|
|
702
|
-
],
|
|
450
|
+
], oe = {
|
|
703
451
|
type: "string"
|
|
704
|
-
},
|
|
452
|
+
}, L = {
|
|
705
453
|
type: "string"
|
|
706
|
-
},
|
|
454
|
+
}, an = {
|
|
707
455
|
type: "boolean"
|
|
708
|
-
},
|
|
456
|
+
}, on = {
|
|
709
457
|
type: ["object", "array"],
|
|
710
458
|
items: {
|
|
711
459
|
type: "string"
|
|
@@ -736,14 +484,14 @@ const vs = [
|
|
|
736
484
|
stacked: {
|
|
737
485
|
type: "boolean"
|
|
738
486
|
},
|
|
739
|
-
chart_dataset_colors:
|
|
740
|
-
synthetics_data_key:
|
|
741
|
-
chart_title:
|
|
742
|
-
allow_csv_export:
|
|
487
|
+
chart_dataset_colors: on,
|
|
488
|
+
synthetics_data_key: oe,
|
|
489
|
+
chart_title: L,
|
|
490
|
+
allow_csv_export: an
|
|
743
491
|
},
|
|
744
492
|
required: ["type"],
|
|
745
493
|
additionalProperties: !1
|
|
746
|
-
},
|
|
494
|
+
}, oa = {
|
|
747
495
|
type: "object",
|
|
748
496
|
properties: {
|
|
749
497
|
type: {
|
|
@@ -759,7 +507,7 @@ const vs = [
|
|
|
759
507
|
},
|
|
760
508
|
required: ["type", "value"],
|
|
761
509
|
additionalProperties: !1
|
|
762
|
-
},
|
|
510
|
+
}, sa = {
|
|
763
511
|
type: "object",
|
|
764
512
|
properties: {
|
|
765
513
|
type: {
|
|
@@ -773,17 +521,17 @@ const vs = [
|
|
|
773
521
|
type: "object",
|
|
774
522
|
additionalProperties: {
|
|
775
523
|
type: "array",
|
|
776
|
-
items:
|
|
524
|
+
items: oa
|
|
777
525
|
}
|
|
778
526
|
},
|
|
779
|
-
chart_dataset_colors:
|
|
780
|
-
synthetics_data_key:
|
|
781
|
-
chart_title:
|
|
782
|
-
allow_csv_export:
|
|
527
|
+
chart_dataset_colors: on,
|
|
528
|
+
synthetics_data_key: oe,
|
|
529
|
+
chart_title: L,
|
|
530
|
+
allow_csv_export: an
|
|
783
531
|
},
|
|
784
532
|
required: ["type"],
|
|
785
533
|
additionalProperties: !1
|
|
786
|
-
},
|
|
534
|
+
}, ca = {
|
|
787
535
|
type: "object",
|
|
788
536
|
properties: {
|
|
789
537
|
type: {
|
|
@@ -801,28 +549,28 @@ const vs = [
|
|
|
801
549
|
numerator: {
|
|
802
550
|
type: "number"
|
|
803
551
|
},
|
|
804
|
-
synthetics_data_key:
|
|
805
|
-
chart_title:
|
|
552
|
+
synthetics_data_key: oe,
|
|
553
|
+
chart_title: L
|
|
806
554
|
},
|
|
807
555
|
required: ["type"],
|
|
808
556
|
additionalProperties: !1
|
|
809
|
-
},
|
|
557
|
+
}, ua = {
|
|
810
558
|
type: "object",
|
|
811
559
|
properties: {
|
|
812
560
|
type: {
|
|
813
561
|
type: "string",
|
|
814
562
|
enum: ["donut"]
|
|
815
563
|
},
|
|
816
|
-
synthetics_data_key:
|
|
817
|
-
chart_title:
|
|
564
|
+
synthetics_data_key: oe,
|
|
565
|
+
chart_title: L
|
|
818
566
|
},
|
|
819
567
|
required: ["type"],
|
|
820
568
|
additionalProperties: !1
|
|
821
569
|
}, la = {
|
|
822
570
|
type: "object",
|
|
823
571
|
properties: {
|
|
824
|
-
chart_title:
|
|
825
|
-
synthetics_data_key:
|
|
572
|
+
chart_title: L,
|
|
573
|
+
synthetics_data_key: oe,
|
|
826
574
|
type: {
|
|
827
575
|
type: "string",
|
|
828
576
|
enum: ["top_n"]
|
|
@@ -839,7 +587,7 @@ const vs = [
|
|
|
839
587
|
}, da = {
|
|
840
588
|
type: "object",
|
|
841
589
|
properties: {
|
|
842
|
-
chart_title:
|
|
590
|
+
chart_title: L,
|
|
843
591
|
type: {
|
|
844
592
|
type: "string",
|
|
845
593
|
enum: ["golden_signals"]
|
|
@@ -856,7 +604,7 @@ const vs = [
|
|
|
856
604
|
},
|
|
857
605
|
required: ["type"],
|
|
858
606
|
additionalProperties: !1
|
|
859
|
-
},
|
|
607
|
+
}, ma = {
|
|
860
608
|
type: "object",
|
|
861
609
|
properties: {
|
|
862
610
|
type: {
|
|
@@ -866,21 +614,21 @@ const vs = [
|
|
|
866
614
|
decimal_points: {
|
|
867
615
|
type: "number"
|
|
868
616
|
},
|
|
869
|
-
chart_title:
|
|
617
|
+
chart_title: L
|
|
870
618
|
},
|
|
871
619
|
required: ["type"],
|
|
872
620
|
additionalProperties: !1
|
|
873
|
-
},
|
|
621
|
+
}, fa = {
|
|
874
622
|
type: "object",
|
|
875
623
|
properties: {
|
|
876
624
|
type: {
|
|
877
625
|
type: "string",
|
|
878
626
|
enum: ["choropleth_map"]
|
|
879
627
|
},
|
|
880
|
-
chart_title:
|
|
628
|
+
chart_title: L,
|
|
881
629
|
fit_to_country: {
|
|
882
630
|
type: "string",
|
|
883
|
-
enum:
|
|
631
|
+
enum: ra.map((e) => e.code)
|
|
884
632
|
},
|
|
885
633
|
legend: {
|
|
886
634
|
type: "boolean",
|
|
@@ -903,7 +651,7 @@ const vs = [
|
|
|
903
651
|
},
|
|
904
652
|
required: ["type"],
|
|
905
653
|
additionalProperties: !1
|
|
906
|
-
},
|
|
654
|
+
}, ha = {
|
|
907
655
|
type: "object",
|
|
908
656
|
properties: {
|
|
909
657
|
tz: {
|
|
@@ -918,7 +666,7 @@ const vs = [
|
|
|
918
666
|
},
|
|
919
667
|
time_range: {
|
|
920
668
|
type: "string",
|
|
921
|
-
enum:
|
|
669
|
+
enum: Xr,
|
|
922
670
|
default: "1h"
|
|
923
671
|
}
|
|
924
672
|
},
|
|
@@ -953,17 +701,17 @@ const vs = [
|
|
|
953
701
|
"end"
|
|
954
702
|
],
|
|
955
703
|
additionalProperties: !1
|
|
956
|
-
},
|
|
704
|
+
}, Ve = {
|
|
957
705
|
granularity: {
|
|
958
706
|
type: "string",
|
|
959
707
|
description: 'Force time grouping into buckets of this duration. Only has an effect if "time" is in the "dimensions" list.',
|
|
960
|
-
enum:
|
|
708
|
+
enum: en
|
|
961
709
|
},
|
|
962
710
|
time_range: {
|
|
963
711
|
type: "object",
|
|
964
712
|
description: "The time range to query.",
|
|
965
713
|
anyOf: [
|
|
966
|
-
|
|
714
|
+
ha,
|
|
967
715
|
ya
|
|
968
716
|
],
|
|
969
717
|
default: {
|
|
@@ -1008,7 +756,7 @@ const vs = [
|
|
|
1008
756
|
},
|
|
1009
757
|
operator: {
|
|
1010
758
|
type: "string",
|
|
1011
|
-
enum:
|
|
759
|
+
enum: Br
|
|
1012
760
|
},
|
|
1013
761
|
value: {
|
|
1014
762
|
type: "array",
|
|
@@ -1034,7 +782,7 @@ const vs = [
|
|
|
1034
782
|
},
|
|
1035
783
|
operator: {
|
|
1036
784
|
type: "string",
|
|
1037
|
-
enum:
|
|
785
|
+
enum: Vr
|
|
1038
786
|
}
|
|
1039
787
|
},
|
|
1040
788
|
required: [
|
|
@@ -1055,10 +803,10 @@ const vs = [
|
|
|
1055
803
|
"api_usage"
|
|
1056
804
|
]
|
|
1057
805
|
},
|
|
1058
|
-
metrics: Xe($
|
|
1059
|
-
dimensions: $e(
|
|
1060
|
-
filters: ve(
|
|
1061
|
-
...
|
|
806
|
+
metrics: Xe($r),
|
|
807
|
+
dimensions: $e(nn),
|
|
808
|
+
filters: ve(Se),
|
|
809
|
+
...Ve
|
|
1062
810
|
},
|
|
1063
811
|
required: ["datasource"],
|
|
1064
812
|
additionalProperties: !1
|
|
@@ -1072,10 +820,10 @@ const vs = [
|
|
|
1072
820
|
"basic"
|
|
1073
821
|
]
|
|
1074
822
|
},
|
|
1075
|
-
metrics: Xe(
|
|
1076
|
-
dimensions: $e(
|
|
1077
|
-
filters: ve(
|
|
1078
|
-
...
|
|
823
|
+
metrics: Xe(tn),
|
|
824
|
+
dimensions: $e(Be),
|
|
825
|
+
filters: ve(De),
|
|
826
|
+
...Ve
|
|
1079
827
|
},
|
|
1080
828
|
required: ["datasource"],
|
|
1081
829
|
additionalProperties: !1
|
|
@@ -1089,10 +837,10 @@ const vs = [
|
|
|
1089
837
|
"llm_usage"
|
|
1090
838
|
]
|
|
1091
839
|
},
|
|
1092
|
-
metrics: Xe(
|
|
1093
|
-
dimensions: $e(
|
|
1094
|
-
filters: ve(
|
|
1095
|
-
...
|
|
840
|
+
metrics: Xe(Zr),
|
|
841
|
+
dimensions: $e(rn),
|
|
842
|
+
filters: ve(Oe),
|
|
843
|
+
...Ve
|
|
1096
844
|
},
|
|
1097
845
|
required: ["datasource"],
|
|
1098
846
|
additionalProperties: !1
|
|
@@ -1105,14 +853,14 @@ const vs = [
|
|
|
1105
853
|
chart: {
|
|
1106
854
|
anyOf: [
|
|
1107
855
|
ia,
|
|
1108
|
-
ua,
|
|
1109
856
|
ca,
|
|
1110
|
-
|
|
857
|
+
ua,
|
|
858
|
+
sa,
|
|
1111
859
|
da,
|
|
1112
860
|
la,
|
|
1113
861
|
aa,
|
|
1114
|
-
|
|
1115
|
-
|
|
862
|
+
ma,
|
|
863
|
+
fa
|
|
1116
864
|
]
|
|
1117
865
|
}
|
|
1118
866
|
},
|
|
@@ -1155,7 +903,7 @@ const vs = [
|
|
|
1155
903
|
},
|
|
1156
904
|
required: ["position", "size"],
|
|
1157
905
|
additionalProperties: !1
|
|
1158
|
-
},
|
|
906
|
+
}, Ma = {
|
|
1159
907
|
type: "object",
|
|
1160
908
|
properties: {
|
|
1161
909
|
type: {
|
|
@@ -1171,18 +919,18 @@ const vs = [
|
|
|
1171
919
|
},
|
|
1172
920
|
required: ["type", "definition", "layout"],
|
|
1173
921
|
additionalProperties: !1
|
|
1174
|
-
},
|
|
922
|
+
}, Yo = {
|
|
1175
923
|
type: "object",
|
|
1176
924
|
properties: {
|
|
1177
925
|
tiles: {
|
|
1178
926
|
type: "array",
|
|
1179
|
-
items:
|
|
927
|
+
items: Ma
|
|
1180
928
|
},
|
|
1181
929
|
tile_height: {
|
|
1182
930
|
type: "number",
|
|
1183
931
|
description: "Height of each tile in pixels."
|
|
1184
932
|
},
|
|
1185
|
-
preset_filters: ve([.../* @__PURE__ */ new Set([...
|
|
933
|
+
preset_filters: ve([.../* @__PURE__ */ new Set([...Se, ...De, ...Oe])]),
|
|
1186
934
|
template_id: {
|
|
1187
935
|
type: ["string", "null"],
|
|
1188
936
|
description: "Template id which was used to instantiate this dashboard."
|
|
@@ -1190,54 +938,54 @@ const vs = [
|
|
|
1190
938
|
},
|
|
1191
939
|
required: ["tiles"],
|
|
1192
940
|
additionalProperties: !1
|
|
1193
|
-
},
|
|
941
|
+
}, Ho = (e) => {
|
|
1194
942
|
const t = [];
|
|
1195
|
-
return
|
|
1196
|
-
},
|
|
943
|
+
return De.includes(e) && t.push("basic"), Se.includes(e) && t.push("api_usage"), Oe.includes(e) && t.push("llm_usage"), (Kr.includes(e) || ta.includes(e)) && t.push("requests"), t;
|
|
944
|
+
}, sn = 6048e5, Da = 864e5, Sa = 60, Oa = 3600, Rt = Symbol.for("constructDateFrom");
|
|
1197
945
|
function C(e, t) {
|
|
1198
946
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && Rt in e ? e[Rt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
1199
947
|
}
|
|
1200
|
-
function
|
|
948
|
+
function D(e, t) {
|
|
1201
949
|
return C(t || e, e);
|
|
1202
950
|
}
|
|
1203
|
-
function kt(e, t,
|
|
1204
|
-
const
|
|
1205
|
-
return isNaN(t) ? C(e, NaN) : (
|
|
951
|
+
function kt(e, t, n) {
|
|
952
|
+
const r = D(e, n == null ? void 0 : n.in);
|
|
953
|
+
return isNaN(t) ? C(e, NaN) : (r.setDate(r.getDate() + t), r);
|
|
1206
954
|
}
|
|
1207
|
-
function va(e, t,
|
|
1208
|
-
const
|
|
955
|
+
function va(e, t, n) {
|
|
956
|
+
const r = D(e, n == null ? void 0 : n.in);
|
|
1209
957
|
if (isNaN(t)) return C(e, NaN);
|
|
1210
|
-
const i =
|
|
1211
|
-
|
|
1212
|
-
const
|
|
1213
|
-
return i >=
|
|
1214
|
-
|
|
1215
|
-
|
|
958
|
+
const i = r.getDate(), s = C(e, r.getTime());
|
|
959
|
+
s.setMonth(r.getMonth() + t + 1, 0);
|
|
960
|
+
const u = s.getDate();
|
|
961
|
+
return i >= u ? s : (r.setFullYear(
|
|
962
|
+
s.getFullYear(),
|
|
963
|
+
s.getMonth(),
|
|
1216
964
|
i
|
|
1217
|
-
),
|
|
965
|
+
), r);
|
|
1218
966
|
}
|
|
1219
967
|
let Ea = {};
|
|
1220
|
-
function
|
|
968
|
+
function se() {
|
|
1221
969
|
return Ea;
|
|
1222
970
|
}
|
|
1223
|
-
function
|
|
1224
|
-
var d,
|
|
1225
|
-
const
|
|
1226
|
-
return i.setDate(i.getDate() -
|
|
971
|
+
function Y(e, t) {
|
|
972
|
+
var d, f, m, _;
|
|
973
|
+
const n = se(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.weekStartsOn) ?? n.weekStartsOn ?? ((_ = (m = n.locale) == null ? void 0 : m.options) == null ? void 0 : _.weekStartsOn) ?? 0, i = D(e, t == null ? void 0 : t.in), s = i.getDay(), u = (s < r ? 7 : 0) + s - r;
|
|
974
|
+
return i.setDate(i.getDate() - u), i.setHours(0, 0, 0, 0), i;
|
|
1227
975
|
}
|
|
1228
976
|
function pe(e, t) {
|
|
1229
|
-
return
|
|
1230
|
-
}
|
|
1231
|
-
function
|
|
1232
|
-
const
|
|
1233
|
-
i.setFullYear(
|
|
1234
|
-
const
|
|
1235
|
-
|
|
1236
|
-
const d = pe(
|
|
1237
|
-
return
|
|
1238
|
-
}
|
|
1239
|
-
function
|
|
1240
|
-
const t =
|
|
977
|
+
return Y(e, { ...t, weekStartsOn: 1 });
|
|
978
|
+
}
|
|
979
|
+
function cn(e, t) {
|
|
980
|
+
const n = D(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = C(n, 0);
|
|
981
|
+
i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
982
|
+
const s = pe(i), u = C(n, 0);
|
|
983
|
+
u.setFullYear(r, 0, 4), u.setHours(0, 0, 0, 0);
|
|
984
|
+
const d = pe(u);
|
|
985
|
+
return n.getTime() >= s.getTime() ? r + 1 : n.getTime() >= d.getTime() ? r : r - 1;
|
|
986
|
+
}
|
|
987
|
+
function Gt(e) {
|
|
988
|
+
const t = D(e), n = new Date(
|
|
1241
989
|
Date.UTC(
|
|
1242
990
|
t.getFullYear(),
|
|
1243
991
|
t.getMonth(),
|
|
@@ -1248,44 +996,44 @@ function Yt(e) {
|
|
|
1248
996
|
t.getMilliseconds()
|
|
1249
997
|
)
|
|
1250
998
|
);
|
|
1251
|
-
return
|
|
999
|
+
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
1252
1000
|
}
|
|
1253
1001
|
function xa(e, ...t) {
|
|
1254
|
-
const
|
|
1002
|
+
const n = C.bind(
|
|
1255
1003
|
null,
|
|
1256
|
-
t.find((
|
|
1004
|
+
t.find((r) => typeof r == "object")
|
|
1257
1005
|
);
|
|
1258
|
-
return t.map(
|
|
1006
|
+
return t.map(n);
|
|
1259
1007
|
}
|
|
1260
1008
|
function _e(e, t) {
|
|
1261
|
-
const
|
|
1262
|
-
return
|
|
1009
|
+
const n = D(e, t == null ? void 0 : t.in);
|
|
1010
|
+
return n.setHours(0, 0, 0, 0), n;
|
|
1263
1011
|
}
|
|
1264
|
-
function
|
|
1265
|
-
const [
|
|
1266
|
-
|
|
1012
|
+
function Ia(e, t, n) {
|
|
1013
|
+
const [r, i] = xa(
|
|
1014
|
+
n == null ? void 0 : n.in,
|
|
1267
1015
|
e,
|
|
1268
1016
|
t
|
|
1269
|
-
),
|
|
1270
|
-
return Math.round((d -
|
|
1017
|
+
), s = _e(r), u = _e(i), d = +s - Gt(s), f = +u - Gt(u);
|
|
1018
|
+
return Math.round((d - f) / Da);
|
|
1271
1019
|
}
|
|
1272
|
-
function
|
|
1273
|
-
const
|
|
1274
|
-
return
|
|
1020
|
+
function Na(e, t) {
|
|
1021
|
+
const n = cn(e, t), r = C(e, 0);
|
|
1022
|
+
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), pe(r);
|
|
1275
1023
|
}
|
|
1276
|
-
function
|
|
1024
|
+
function Pa(e) {
|
|
1277
1025
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
1278
1026
|
}
|
|
1279
1027
|
function Ca(e) {
|
|
1280
|
-
return !(!
|
|
1028
|
+
return !(!Pa(e) && typeof e != "number" || isNaN(+D(e)));
|
|
1281
1029
|
}
|
|
1282
1030
|
function J(e, t) {
|
|
1283
|
-
const
|
|
1284
|
-
return
|
|
1031
|
+
const n = D(e, t == null ? void 0 : t.in);
|
|
1032
|
+
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
1285
1033
|
}
|
|
1286
1034
|
function Ra(e, t) {
|
|
1287
|
-
const
|
|
1288
|
-
return
|
|
1035
|
+
const n = D(e, t == null ? void 0 : t.in);
|
|
1036
|
+
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
1289
1037
|
}
|
|
1290
1038
|
const ka = {
|
|
1291
1039
|
lessThanXSeconds: {
|
|
@@ -1349,23 +1097,23 @@ const ka = {
|
|
|
1349
1097
|
one: "almost 1 year",
|
|
1350
1098
|
other: "almost {{count}} years"
|
|
1351
1099
|
}
|
|
1352
|
-
},
|
|
1353
|
-
let
|
|
1100
|
+
}, Ga = (e, t, n) => {
|
|
1101
|
+
let r;
|
|
1354
1102
|
const i = ka[e];
|
|
1355
|
-
return typeof i == "string" ?
|
|
1103
|
+
return typeof i == "string" ? r = i : t === 1 ? r = i.one : r = i.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
1356
1104
|
};
|
|
1357
1105
|
function Fe(e) {
|
|
1358
1106
|
return (t = {}) => {
|
|
1359
|
-
const
|
|
1360
|
-
return e.formats[
|
|
1107
|
+
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
1108
|
+
return e.formats[n] || e.formats[e.defaultWidth];
|
|
1361
1109
|
};
|
|
1362
1110
|
}
|
|
1363
|
-
const
|
|
1111
|
+
const Aa = {
|
|
1364
1112
|
full: "EEEE, MMMM do, y",
|
|
1365
1113
|
long: "MMMM do, y",
|
|
1366
1114
|
medium: "MMM d, y",
|
|
1367
1115
|
short: "MM/dd/yyyy"
|
|
1368
|
-
},
|
|
1116
|
+
}, Ya = {
|
|
1369
1117
|
full: "h:mm:ss a zzzz",
|
|
1370
1118
|
long: "h:mm:ss a z",
|
|
1371
1119
|
medium: "h:mm:ss a",
|
|
@@ -1377,38 +1125,38 @@ const Ga = {
|
|
|
1377
1125
|
short: "{{date}}, {{time}}"
|
|
1378
1126
|
}, Fa = {
|
|
1379
1127
|
date: Fe({
|
|
1380
|
-
formats:
|
|
1128
|
+
formats: Aa,
|
|
1381
1129
|
defaultWidth: "full"
|
|
1382
1130
|
}),
|
|
1383
1131
|
time: Fe({
|
|
1384
|
-
formats:
|
|
1132
|
+
formats: Ya,
|
|
1385
1133
|
defaultWidth: "full"
|
|
1386
1134
|
}),
|
|
1387
1135
|
dateTime: Fe({
|
|
1388
1136
|
formats: Ha,
|
|
1389
1137
|
defaultWidth: "full"
|
|
1390
1138
|
})
|
|
1391
|
-
},
|
|
1139
|
+
}, La = {
|
|
1392
1140
|
lastWeek: "'last' eeee 'at' p",
|
|
1393
1141
|
yesterday: "'yesterday at' p",
|
|
1394
1142
|
today: "'today at' p",
|
|
1395
1143
|
tomorrow: "'tomorrow at' p",
|
|
1396
1144
|
nextWeek: "eeee 'at' p",
|
|
1397
1145
|
other: "P"
|
|
1398
|
-
},
|
|
1399
|
-
function
|
|
1400
|
-
return (t,
|
|
1401
|
-
const
|
|
1146
|
+
}, Wa = (e, t, n, r) => La[e];
|
|
1147
|
+
function re(e) {
|
|
1148
|
+
return (t, n) => {
|
|
1149
|
+
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
1402
1150
|
let i;
|
|
1403
|
-
if (
|
|
1404
|
-
const
|
|
1405
|
-
i = e.formattingValues[d] || e.formattingValues[
|
|
1151
|
+
if (r === "formatting" && e.formattingValues) {
|
|
1152
|
+
const u = e.defaultFormattingWidth || e.defaultWidth, d = n != null && n.width ? String(n.width) : u;
|
|
1153
|
+
i = e.formattingValues[d] || e.formattingValues[u];
|
|
1406
1154
|
} else {
|
|
1407
|
-
const
|
|
1408
|
-
i = e.values[d] || e.values[
|
|
1155
|
+
const u = e.defaultWidth, d = n != null && n.width ? String(n.width) : e.defaultWidth;
|
|
1156
|
+
i = e.values[d] || e.values[u];
|
|
1409
1157
|
}
|
|
1410
|
-
const
|
|
1411
|
-
return i[
|
|
1158
|
+
const s = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
1159
|
+
return i[s];
|
|
1412
1160
|
};
|
|
1413
1161
|
}
|
|
1414
1162
|
const qa = {
|
|
@@ -1462,7 +1210,7 @@ const qa = {
|
|
|
1462
1210
|
"Friday",
|
|
1463
1211
|
"Saturday"
|
|
1464
1212
|
]
|
|
1465
|
-
},
|
|
1213
|
+
}, Ba = {
|
|
1466
1214
|
narrow: {
|
|
1467
1215
|
am: "a",
|
|
1468
1216
|
pm: "p",
|
|
@@ -1493,7 +1241,7 @@ const qa = {
|
|
|
1493
1241
|
evening: "evening",
|
|
1494
1242
|
night: "night"
|
|
1495
1243
|
}
|
|
1496
|
-
},
|
|
1244
|
+
}, Va = {
|
|
1497
1245
|
narrow: {
|
|
1498
1246
|
am: "a",
|
|
1499
1247
|
pm: "p",
|
|
@@ -1525,90 +1273,90 @@ const qa = {
|
|
|
1525
1273
|
night: "at night"
|
|
1526
1274
|
}
|
|
1527
1275
|
}, Xa = (e, t) => {
|
|
1528
|
-
const
|
|
1529
|
-
if (
|
|
1530
|
-
switch (
|
|
1276
|
+
const n = Number(e), r = n % 100;
|
|
1277
|
+
if (r > 20 || r < 10)
|
|
1278
|
+
switch (r % 10) {
|
|
1531
1279
|
case 1:
|
|
1532
|
-
return
|
|
1280
|
+
return n + "st";
|
|
1533
1281
|
case 2:
|
|
1534
|
-
return
|
|
1282
|
+
return n + "nd";
|
|
1535
1283
|
case 3:
|
|
1536
|
-
return
|
|
1284
|
+
return n + "rd";
|
|
1537
1285
|
}
|
|
1538
|
-
return
|
|
1286
|
+
return n + "th";
|
|
1539
1287
|
}, $a = {
|
|
1540
1288
|
ordinalNumber: Xa,
|
|
1541
|
-
era:
|
|
1289
|
+
era: re({
|
|
1542
1290
|
values: qa,
|
|
1543
1291
|
defaultWidth: "wide"
|
|
1544
1292
|
}),
|
|
1545
|
-
quarter:
|
|
1293
|
+
quarter: re({
|
|
1546
1294
|
values: Ua,
|
|
1547
1295
|
defaultWidth: "wide",
|
|
1548
1296
|
argumentCallback: (e) => e - 1
|
|
1549
1297
|
}),
|
|
1550
|
-
month:
|
|
1298
|
+
month: re({
|
|
1551
1299
|
values: ja,
|
|
1552
1300
|
defaultWidth: "wide"
|
|
1553
1301
|
}),
|
|
1554
|
-
day:
|
|
1302
|
+
day: re({
|
|
1555
1303
|
values: za,
|
|
1556
1304
|
defaultWidth: "wide"
|
|
1557
1305
|
}),
|
|
1558
|
-
dayPeriod:
|
|
1559
|
-
values:
|
|
1306
|
+
dayPeriod: re({
|
|
1307
|
+
values: Ba,
|
|
1560
1308
|
defaultWidth: "wide",
|
|
1561
|
-
formattingValues:
|
|
1309
|
+
formattingValues: Va,
|
|
1562
1310
|
defaultFormattingWidth: "wide"
|
|
1563
1311
|
})
|
|
1564
1312
|
};
|
|
1565
1313
|
function ae(e) {
|
|
1566
|
-
return (t,
|
|
1567
|
-
const
|
|
1568
|
-
if (!
|
|
1314
|
+
return (t, n = {}) => {
|
|
1315
|
+
const r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], s = t.match(i);
|
|
1316
|
+
if (!s)
|
|
1569
1317
|
return null;
|
|
1570
|
-
const
|
|
1318
|
+
const u = s[0], d = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], f = Array.isArray(d) ? Qa(d, (y) => y.test(u)) : (
|
|
1571
1319
|
// [TODO] -- I challenge you to fix the type
|
|
1572
|
-
Za(d, (y) => y.test(
|
|
1320
|
+
Za(d, (y) => y.test(u))
|
|
1573
1321
|
);
|
|
1574
|
-
let
|
|
1575
|
-
|
|
1322
|
+
let m;
|
|
1323
|
+
m = e.valueCallback ? e.valueCallback(f) : f, m = n.valueCallback ? (
|
|
1576
1324
|
// [TODO] -- I challenge you to fix the type
|
|
1577
|
-
|
|
1578
|
-
) :
|
|
1579
|
-
const _ = t.slice(
|
|
1580
|
-
return { value:
|
|
1325
|
+
n.valueCallback(m)
|
|
1326
|
+
) : m;
|
|
1327
|
+
const _ = t.slice(u.length);
|
|
1328
|
+
return { value: m, rest: _ };
|
|
1581
1329
|
};
|
|
1582
1330
|
}
|
|
1583
1331
|
function Za(e, t) {
|
|
1584
|
-
for (const
|
|
1585
|
-
if (Object.prototype.hasOwnProperty.call(e,
|
|
1586
|
-
return
|
|
1332
|
+
for (const n in e)
|
|
1333
|
+
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
1334
|
+
return n;
|
|
1587
1335
|
}
|
|
1588
1336
|
function Qa(e, t) {
|
|
1589
|
-
for (let
|
|
1590
|
-
if (t(e[
|
|
1591
|
-
return
|
|
1337
|
+
for (let n = 0; n < e.length; n++)
|
|
1338
|
+
if (t(e[n]))
|
|
1339
|
+
return n;
|
|
1592
1340
|
}
|
|
1593
1341
|
function Ka(e) {
|
|
1594
|
-
return (t,
|
|
1595
|
-
const
|
|
1596
|
-
if (!
|
|
1597
|
-
const i =
|
|
1598
|
-
if (!
|
|
1599
|
-
let
|
|
1600
|
-
|
|
1342
|
+
return (t, n = {}) => {
|
|
1343
|
+
const r = t.match(e.matchPattern);
|
|
1344
|
+
if (!r) return null;
|
|
1345
|
+
const i = r[0], s = t.match(e.parsePattern);
|
|
1346
|
+
if (!s) return null;
|
|
1347
|
+
let u = e.valueCallback ? e.valueCallback(s[0]) : s[0];
|
|
1348
|
+
u = n.valueCallback ? n.valueCallback(u) : u;
|
|
1601
1349
|
const d = t.slice(i.length);
|
|
1602
|
-
return { value:
|
|
1350
|
+
return { value: u, rest: d };
|
|
1603
1351
|
};
|
|
1604
1352
|
}
|
|
1605
1353
|
const Ja = /^(\d+)(th|st|nd|rd)?/i, ei = /\d+/i, ti = {
|
|
1606
1354
|
narrow: /^(b|a)/i,
|
|
1607
1355
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1608
1356
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
1609
|
-
}, ri = {
|
|
1610
|
-
any: [/^b/i, /^(a|c)/i]
|
|
1611
1357
|
}, ni = {
|
|
1358
|
+
any: [/^b/i, /^(a|c)/i]
|
|
1359
|
+
}, ri = {
|
|
1612
1360
|
narrow: /^[1234]/i,
|
|
1613
1361
|
abbreviated: /^q[1234]/i,
|
|
1614
1362
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
@@ -1618,7 +1366,7 @@ const Ja = /^(\d+)(th|st|nd|rd)?/i, ei = /\d+/i, ti = {
|
|
|
1618
1366
|
narrow: /^[jfmasond]/i,
|
|
1619
1367
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1620
1368
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1621
|
-
},
|
|
1369
|
+
}, oi = {
|
|
1622
1370
|
narrow: [
|
|
1623
1371
|
/^j/i,
|
|
1624
1372
|
/^f/i,
|
|
@@ -1647,15 +1395,15 @@ const Ja = /^(\d+)(th|st|nd|rd)?/i, ei = /\d+/i, ti = {
|
|
|
1647
1395
|
/^n/i,
|
|
1648
1396
|
/^d/i
|
|
1649
1397
|
]
|
|
1650
|
-
},
|
|
1398
|
+
}, si = {
|
|
1651
1399
|
narrow: /^[smtwf]/i,
|
|
1652
1400
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1653
1401
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1654
1402
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1655
|
-
},
|
|
1403
|
+
}, ci = {
|
|
1656
1404
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1657
1405
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1658
|
-
},
|
|
1406
|
+
}, ui = {
|
|
1659
1407
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1660
1408
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1661
1409
|
}, li = {
|
|
@@ -1678,11 +1426,11 @@ const Ja = /^(\d+)(th|st|nd|rd)?/i, ei = /\d+/i, ti = {
|
|
|
1678
1426
|
era: ae({
|
|
1679
1427
|
matchPatterns: ti,
|
|
1680
1428
|
defaultMatchWidth: "wide",
|
|
1681
|
-
parsePatterns:
|
|
1429
|
+
parsePatterns: ni,
|
|
1682
1430
|
defaultParseWidth: "any"
|
|
1683
1431
|
}),
|
|
1684
1432
|
quarter: ae({
|
|
1685
|
-
matchPatterns:
|
|
1433
|
+
matchPatterns: ri,
|
|
1686
1434
|
defaultMatchWidth: "wide",
|
|
1687
1435
|
parsePatterns: ai,
|
|
1688
1436
|
defaultParseWidth: "any",
|
|
@@ -1691,26 +1439,26 @@ const Ja = /^(\d+)(th|st|nd|rd)?/i, ei = /\d+/i, ti = {
|
|
|
1691
1439
|
month: ae({
|
|
1692
1440
|
matchPatterns: ii,
|
|
1693
1441
|
defaultMatchWidth: "wide",
|
|
1694
|
-
parsePatterns:
|
|
1442
|
+
parsePatterns: oi,
|
|
1695
1443
|
defaultParseWidth: "any"
|
|
1696
1444
|
}),
|
|
1697
1445
|
day: ae({
|
|
1698
|
-
matchPatterns:
|
|
1446
|
+
matchPatterns: si,
|
|
1699
1447
|
defaultMatchWidth: "wide",
|
|
1700
|
-
parsePatterns:
|
|
1448
|
+
parsePatterns: ci,
|
|
1701
1449
|
defaultParseWidth: "any"
|
|
1702
1450
|
}),
|
|
1703
1451
|
dayPeriod: ae({
|
|
1704
|
-
matchPatterns:
|
|
1452
|
+
matchPatterns: ui,
|
|
1705
1453
|
defaultMatchWidth: "any",
|
|
1706
1454
|
parsePatterns: li,
|
|
1707
1455
|
defaultParseWidth: "any"
|
|
1708
1456
|
})
|
|
1709
|
-
},
|
|
1457
|
+
}, mi = {
|
|
1710
1458
|
code: "en-US",
|
|
1711
|
-
formatDistance:
|
|
1459
|
+
formatDistance: Ga,
|
|
1712
1460
|
formatLong: Fa,
|
|
1713
|
-
formatRelative:
|
|
1461
|
+
formatRelative: Wa,
|
|
1714
1462
|
localize: $a,
|
|
1715
1463
|
match: di,
|
|
1716
1464
|
options: {
|
|
@@ -1718,46 +1466,46 @@ const Ja = /^(\d+)(th|st|nd|rd)?/i, ei = /\d+/i, ti = {
|
|
|
1718
1466
|
firstWeekContainsDate: 1
|
|
1719
1467
|
}
|
|
1720
1468
|
};
|
|
1721
|
-
function
|
|
1722
|
-
const
|
|
1723
|
-
return
|
|
1469
|
+
function fi(e, t) {
|
|
1470
|
+
const n = D(e, t == null ? void 0 : t.in);
|
|
1471
|
+
return Ia(n, Ra(n)) + 1;
|
|
1724
1472
|
}
|
|
1725
|
-
function
|
|
1726
|
-
const
|
|
1727
|
-
return Math.round(
|
|
1473
|
+
function hi(e, t) {
|
|
1474
|
+
const n = D(e, t == null ? void 0 : t.in), r = +pe(n) - +Na(n);
|
|
1475
|
+
return Math.round(r / sn) + 1;
|
|
1728
1476
|
}
|
|
1729
|
-
function
|
|
1477
|
+
function un(e, t) {
|
|
1730
1478
|
var _, y, g, x;
|
|
1731
|
-
const
|
|
1732
|
-
|
|
1733
|
-
const d =
|
|
1734
|
-
|
|
1735
|
-
const
|
|
1736
|
-
return +
|
|
1479
|
+
const n = D(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = se(), s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((y = (_ = t == null ? void 0 : t.locale) == null ? void 0 : _.options) == null ? void 0 : y.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((x = (g = i.locale) == null ? void 0 : g.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, u = C((t == null ? void 0 : t.in) || e, 0);
|
|
1480
|
+
u.setFullYear(r + 1, 0, s), u.setHours(0, 0, 0, 0);
|
|
1481
|
+
const d = Y(u, t), f = C((t == null ? void 0 : t.in) || e, 0);
|
|
1482
|
+
f.setFullYear(r, 0, s), f.setHours(0, 0, 0, 0);
|
|
1483
|
+
const m = Y(f, t);
|
|
1484
|
+
return +n >= +d ? r + 1 : +n >= +m ? r : r - 1;
|
|
1737
1485
|
}
|
|
1738
1486
|
function yi(e, t) {
|
|
1739
|
-
var d,
|
|
1740
|
-
const
|
|
1741
|
-
return
|
|
1487
|
+
var d, f, m, _;
|
|
1488
|
+
const n = se(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((_ = (m = n.locale) == null ? void 0 : m.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, i = un(e, t), s = C((t == null ? void 0 : t.in) || e, 0);
|
|
1489
|
+
return s.setFullYear(i, 0, r), s.setHours(0, 0, 0, 0), Y(s, t);
|
|
1742
1490
|
}
|
|
1743
1491
|
function gi(e, t) {
|
|
1744
|
-
const
|
|
1745
|
-
return Math.round(
|
|
1492
|
+
const n = D(e, t == null ? void 0 : t.in), r = +Y(n, t) - +yi(n, t);
|
|
1493
|
+
return Math.round(r / sn) + 1;
|
|
1746
1494
|
}
|
|
1747
1495
|
function p(e, t) {
|
|
1748
|
-
const
|
|
1749
|
-
return
|
|
1496
|
+
const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
|
|
1497
|
+
return n + r;
|
|
1750
1498
|
}
|
|
1751
1499
|
const F = {
|
|
1752
1500
|
// Year
|
|
1753
1501
|
y(e, t) {
|
|
1754
|
-
const
|
|
1755
|
-
return p(t === "yy" ?
|
|
1502
|
+
const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
1503
|
+
return p(t === "yy" ? r % 100 : r, t.length);
|
|
1756
1504
|
},
|
|
1757
1505
|
// Month
|
|
1758
1506
|
M(e, t) {
|
|
1759
|
-
const
|
|
1760
|
-
return t === "M" ? String(
|
|
1507
|
+
const n = e.getMonth();
|
|
1508
|
+
return t === "M" ? String(n + 1) : p(n + 1, 2);
|
|
1761
1509
|
},
|
|
1762
1510
|
// Day of the month
|
|
1763
1511
|
d(e, t) {
|
|
@@ -1765,18 +1513,18 @@ const F = {
|
|
|
1765
1513
|
},
|
|
1766
1514
|
// AM or PM
|
|
1767
1515
|
a(e, t) {
|
|
1768
|
-
const
|
|
1516
|
+
const n = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
1769
1517
|
switch (t) {
|
|
1770
1518
|
case "a":
|
|
1771
1519
|
case "aa":
|
|
1772
|
-
return
|
|
1520
|
+
return n.toUpperCase();
|
|
1773
1521
|
case "aaa":
|
|
1774
|
-
return
|
|
1522
|
+
return n;
|
|
1775
1523
|
case "aaaaa":
|
|
1776
|
-
return
|
|
1524
|
+
return n[0];
|
|
1777
1525
|
case "aaaa":
|
|
1778
1526
|
default:
|
|
1779
|
-
return
|
|
1527
|
+
return n === "am" ? "a.m." : "p.m.";
|
|
1780
1528
|
}
|
|
1781
1529
|
},
|
|
1782
1530
|
// Hour [1-12]
|
|
@@ -1797,8 +1545,8 @@ const F = {
|
|
|
1797
1545
|
},
|
|
1798
1546
|
// Fraction of second
|
|
1799
1547
|
S(e, t) {
|
|
1800
|
-
const
|
|
1801
|
-
|
|
1548
|
+
const n = t.length, r = e.getMilliseconds(), i = Math.trunc(
|
|
1549
|
+
r * Math.pow(10, n - 3)
|
|
1802
1550
|
);
|
|
1803
1551
|
return p(i, t.length);
|
|
1804
1552
|
}
|
|
@@ -1809,43 +1557,43 @@ const F = {
|
|
|
1809
1557
|
afternoon: "afternoon",
|
|
1810
1558
|
evening: "evening",
|
|
1811
1559
|
night: "night"
|
|
1812
|
-
},
|
|
1560
|
+
}, At = {
|
|
1813
1561
|
// Era
|
|
1814
|
-
G: function(e, t,
|
|
1815
|
-
const
|
|
1562
|
+
G: function(e, t, n) {
|
|
1563
|
+
const r = e.getFullYear() > 0 ? 1 : 0;
|
|
1816
1564
|
switch (t) {
|
|
1817
1565
|
case "G":
|
|
1818
1566
|
case "GG":
|
|
1819
1567
|
case "GGG":
|
|
1820
|
-
return
|
|
1568
|
+
return n.era(r, { width: "abbreviated" });
|
|
1821
1569
|
case "GGGGG":
|
|
1822
|
-
return
|
|
1570
|
+
return n.era(r, { width: "narrow" });
|
|
1823
1571
|
case "GGGG":
|
|
1824
1572
|
default:
|
|
1825
|
-
return
|
|
1573
|
+
return n.era(r, { width: "wide" });
|
|
1826
1574
|
}
|
|
1827
1575
|
},
|
|
1828
1576
|
// Year
|
|
1829
|
-
y: function(e, t,
|
|
1577
|
+
y: function(e, t, n) {
|
|
1830
1578
|
if (t === "yo") {
|
|
1831
|
-
const
|
|
1832
|
-
return
|
|
1579
|
+
const r = e.getFullYear(), i = r > 0 ? r : 1 - r;
|
|
1580
|
+
return n.ordinalNumber(i, { unit: "year" });
|
|
1833
1581
|
}
|
|
1834
1582
|
return F.y(e, t);
|
|
1835
1583
|
},
|
|
1836
1584
|
// Local week-numbering year
|
|
1837
|
-
Y: function(e, t,
|
|
1838
|
-
const i =
|
|
1585
|
+
Y: function(e, t, n, r) {
|
|
1586
|
+
const i = un(e, r), s = i > 0 ? i : 1 - i;
|
|
1839
1587
|
if (t === "YY") {
|
|
1840
|
-
const
|
|
1841
|
-
return p(
|
|
1588
|
+
const u = s % 100;
|
|
1589
|
+
return p(u, 2);
|
|
1842
1590
|
}
|
|
1843
|
-
return t === "Yo" ?
|
|
1591
|
+
return t === "Yo" ? n.ordinalNumber(s, { unit: "year" }) : p(s, t.length);
|
|
1844
1592
|
},
|
|
1845
1593
|
// ISO week-numbering year
|
|
1846
1594
|
R: function(e, t) {
|
|
1847
|
-
const
|
|
1848
|
-
return p(
|
|
1595
|
+
const n = cn(e);
|
|
1596
|
+
return p(n, t.length);
|
|
1849
1597
|
},
|
|
1850
1598
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
1851
1599
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -1857,455 +1605,455 @@ const F = {
|
|
|
1857
1605
|
// Also `yy` always returns the last two digits of a year,
|
|
1858
1606
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
1859
1607
|
u: function(e, t) {
|
|
1860
|
-
const
|
|
1861
|
-
return p(
|
|
1608
|
+
const n = e.getFullYear();
|
|
1609
|
+
return p(n, t.length);
|
|
1862
1610
|
},
|
|
1863
1611
|
// Quarter
|
|
1864
|
-
Q: function(e, t,
|
|
1865
|
-
const
|
|
1612
|
+
Q: function(e, t, n) {
|
|
1613
|
+
const r = Math.ceil((e.getMonth() + 1) / 3);
|
|
1866
1614
|
switch (t) {
|
|
1867
1615
|
case "Q":
|
|
1868
|
-
return String(
|
|
1616
|
+
return String(r);
|
|
1869
1617
|
case "QQ":
|
|
1870
|
-
return p(
|
|
1618
|
+
return p(r, 2);
|
|
1871
1619
|
case "Qo":
|
|
1872
|
-
return
|
|
1620
|
+
return n.ordinalNumber(r, { unit: "quarter" });
|
|
1873
1621
|
case "QQQ":
|
|
1874
|
-
return
|
|
1622
|
+
return n.quarter(r, {
|
|
1875
1623
|
width: "abbreviated",
|
|
1876
1624
|
context: "formatting"
|
|
1877
1625
|
});
|
|
1878
1626
|
case "QQQQQ":
|
|
1879
|
-
return
|
|
1627
|
+
return n.quarter(r, {
|
|
1880
1628
|
width: "narrow",
|
|
1881
1629
|
context: "formatting"
|
|
1882
1630
|
});
|
|
1883
1631
|
case "QQQQ":
|
|
1884
1632
|
default:
|
|
1885
|
-
return
|
|
1633
|
+
return n.quarter(r, {
|
|
1886
1634
|
width: "wide",
|
|
1887
1635
|
context: "formatting"
|
|
1888
1636
|
});
|
|
1889
1637
|
}
|
|
1890
1638
|
},
|
|
1891
1639
|
// Stand-alone quarter
|
|
1892
|
-
q: function(e, t,
|
|
1893
|
-
const
|
|
1640
|
+
q: function(e, t, n) {
|
|
1641
|
+
const r = Math.ceil((e.getMonth() + 1) / 3);
|
|
1894
1642
|
switch (t) {
|
|
1895
1643
|
case "q":
|
|
1896
|
-
return String(
|
|
1644
|
+
return String(r);
|
|
1897
1645
|
case "qq":
|
|
1898
|
-
return p(
|
|
1646
|
+
return p(r, 2);
|
|
1899
1647
|
case "qo":
|
|
1900
|
-
return
|
|
1648
|
+
return n.ordinalNumber(r, { unit: "quarter" });
|
|
1901
1649
|
case "qqq":
|
|
1902
|
-
return
|
|
1650
|
+
return n.quarter(r, {
|
|
1903
1651
|
width: "abbreviated",
|
|
1904
1652
|
context: "standalone"
|
|
1905
1653
|
});
|
|
1906
1654
|
case "qqqqq":
|
|
1907
|
-
return
|
|
1655
|
+
return n.quarter(r, {
|
|
1908
1656
|
width: "narrow",
|
|
1909
1657
|
context: "standalone"
|
|
1910
1658
|
});
|
|
1911
1659
|
case "qqqq":
|
|
1912
1660
|
default:
|
|
1913
|
-
return
|
|
1661
|
+
return n.quarter(r, {
|
|
1914
1662
|
width: "wide",
|
|
1915
1663
|
context: "standalone"
|
|
1916
1664
|
});
|
|
1917
1665
|
}
|
|
1918
1666
|
},
|
|
1919
1667
|
// Month
|
|
1920
|
-
M: function(e, t,
|
|
1921
|
-
const
|
|
1668
|
+
M: function(e, t, n) {
|
|
1669
|
+
const r = e.getMonth();
|
|
1922
1670
|
switch (t) {
|
|
1923
1671
|
case "M":
|
|
1924
1672
|
case "MM":
|
|
1925
1673
|
return F.M(e, t);
|
|
1926
1674
|
case "Mo":
|
|
1927
|
-
return
|
|
1675
|
+
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
1928
1676
|
case "MMM":
|
|
1929
|
-
return
|
|
1677
|
+
return n.month(r, {
|
|
1930
1678
|
width: "abbreviated",
|
|
1931
1679
|
context: "formatting"
|
|
1932
1680
|
});
|
|
1933
1681
|
case "MMMMM":
|
|
1934
|
-
return
|
|
1682
|
+
return n.month(r, {
|
|
1935
1683
|
width: "narrow",
|
|
1936
1684
|
context: "formatting"
|
|
1937
1685
|
});
|
|
1938
1686
|
case "MMMM":
|
|
1939
1687
|
default:
|
|
1940
|
-
return
|
|
1688
|
+
return n.month(r, { width: "wide", context: "formatting" });
|
|
1941
1689
|
}
|
|
1942
1690
|
},
|
|
1943
1691
|
// Stand-alone month
|
|
1944
|
-
L: function(e, t,
|
|
1945
|
-
const
|
|
1692
|
+
L: function(e, t, n) {
|
|
1693
|
+
const r = e.getMonth();
|
|
1946
1694
|
switch (t) {
|
|
1947
1695
|
case "L":
|
|
1948
|
-
return String(
|
|
1696
|
+
return String(r + 1);
|
|
1949
1697
|
case "LL":
|
|
1950
|
-
return p(
|
|
1698
|
+
return p(r + 1, 2);
|
|
1951
1699
|
case "Lo":
|
|
1952
|
-
return
|
|
1700
|
+
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
1953
1701
|
case "LLL":
|
|
1954
|
-
return
|
|
1702
|
+
return n.month(r, {
|
|
1955
1703
|
width: "abbreviated",
|
|
1956
1704
|
context: "standalone"
|
|
1957
1705
|
});
|
|
1958
1706
|
case "LLLLL":
|
|
1959
|
-
return
|
|
1707
|
+
return n.month(r, {
|
|
1960
1708
|
width: "narrow",
|
|
1961
1709
|
context: "standalone"
|
|
1962
1710
|
});
|
|
1963
1711
|
case "LLLL":
|
|
1964
1712
|
default:
|
|
1965
|
-
return
|
|
1713
|
+
return n.month(r, { width: "wide", context: "standalone" });
|
|
1966
1714
|
}
|
|
1967
1715
|
},
|
|
1968
1716
|
// Local week of year
|
|
1969
|
-
w: function(e, t,
|
|
1970
|
-
const i = gi(e,
|
|
1971
|
-
return t === "wo" ?
|
|
1717
|
+
w: function(e, t, n, r) {
|
|
1718
|
+
const i = gi(e, r);
|
|
1719
|
+
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : p(i, t.length);
|
|
1972
1720
|
},
|
|
1973
1721
|
// ISO week of year
|
|
1974
|
-
I: function(e, t,
|
|
1975
|
-
const
|
|
1976
|
-
return t === "Io" ?
|
|
1722
|
+
I: function(e, t, n) {
|
|
1723
|
+
const r = hi(e);
|
|
1724
|
+
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : p(r, t.length);
|
|
1977
1725
|
},
|
|
1978
1726
|
// Day of the month
|
|
1979
|
-
d: function(e, t,
|
|
1980
|
-
return t === "do" ?
|
|
1727
|
+
d: function(e, t, n) {
|
|
1728
|
+
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : F.d(e, t);
|
|
1981
1729
|
},
|
|
1982
1730
|
// Day of year
|
|
1983
|
-
D: function(e, t,
|
|
1984
|
-
const
|
|
1985
|
-
return t === "Do" ?
|
|
1731
|
+
D: function(e, t, n) {
|
|
1732
|
+
const r = fi(e);
|
|
1733
|
+
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : p(r, t.length);
|
|
1986
1734
|
},
|
|
1987
1735
|
// Day of week
|
|
1988
|
-
E: function(e, t,
|
|
1989
|
-
const
|
|
1736
|
+
E: function(e, t, n) {
|
|
1737
|
+
const r = e.getDay();
|
|
1990
1738
|
switch (t) {
|
|
1991
1739
|
case "E":
|
|
1992
1740
|
case "EE":
|
|
1993
1741
|
case "EEE":
|
|
1994
|
-
return
|
|
1742
|
+
return n.day(r, {
|
|
1995
1743
|
width: "abbreviated",
|
|
1996
1744
|
context: "formatting"
|
|
1997
1745
|
});
|
|
1998
1746
|
case "EEEEE":
|
|
1999
|
-
return
|
|
1747
|
+
return n.day(r, {
|
|
2000
1748
|
width: "narrow",
|
|
2001
1749
|
context: "formatting"
|
|
2002
1750
|
});
|
|
2003
1751
|
case "EEEEEE":
|
|
2004
|
-
return
|
|
1752
|
+
return n.day(r, {
|
|
2005
1753
|
width: "short",
|
|
2006
1754
|
context: "formatting"
|
|
2007
1755
|
});
|
|
2008
1756
|
case "EEEE":
|
|
2009
1757
|
default:
|
|
2010
|
-
return
|
|
1758
|
+
return n.day(r, {
|
|
2011
1759
|
width: "wide",
|
|
2012
1760
|
context: "formatting"
|
|
2013
1761
|
});
|
|
2014
1762
|
}
|
|
2015
1763
|
},
|
|
2016
1764
|
// Local day of week
|
|
2017
|
-
e: function(e, t,
|
|
2018
|
-
const i = e.getDay(),
|
|
1765
|
+
e: function(e, t, n, r) {
|
|
1766
|
+
const i = e.getDay(), s = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
2019
1767
|
switch (t) {
|
|
2020
1768
|
case "e":
|
|
2021
|
-
return String(
|
|
1769
|
+
return String(s);
|
|
2022
1770
|
case "ee":
|
|
2023
|
-
return p(
|
|
1771
|
+
return p(s, 2);
|
|
2024
1772
|
case "eo":
|
|
2025
|
-
return
|
|
1773
|
+
return n.ordinalNumber(s, { unit: "day" });
|
|
2026
1774
|
case "eee":
|
|
2027
|
-
return
|
|
1775
|
+
return n.day(i, {
|
|
2028
1776
|
width: "abbreviated",
|
|
2029
1777
|
context: "formatting"
|
|
2030
1778
|
});
|
|
2031
1779
|
case "eeeee":
|
|
2032
|
-
return
|
|
1780
|
+
return n.day(i, {
|
|
2033
1781
|
width: "narrow",
|
|
2034
1782
|
context: "formatting"
|
|
2035
1783
|
});
|
|
2036
1784
|
case "eeeeee":
|
|
2037
|
-
return
|
|
1785
|
+
return n.day(i, {
|
|
2038
1786
|
width: "short",
|
|
2039
1787
|
context: "formatting"
|
|
2040
1788
|
});
|
|
2041
1789
|
case "eeee":
|
|
2042
1790
|
default:
|
|
2043
|
-
return
|
|
1791
|
+
return n.day(i, {
|
|
2044
1792
|
width: "wide",
|
|
2045
1793
|
context: "formatting"
|
|
2046
1794
|
});
|
|
2047
1795
|
}
|
|
2048
1796
|
},
|
|
2049
1797
|
// Stand-alone local day of week
|
|
2050
|
-
c: function(e, t,
|
|
2051
|
-
const i = e.getDay(),
|
|
1798
|
+
c: function(e, t, n, r) {
|
|
1799
|
+
const i = e.getDay(), s = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
2052
1800
|
switch (t) {
|
|
2053
1801
|
case "c":
|
|
2054
|
-
return String(
|
|
1802
|
+
return String(s);
|
|
2055
1803
|
case "cc":
|
|
2056
|
-
return p(
|
|
1804
|
+
return p(s, t.length);
|
|
2057
1805
|
case "co":
|
|
2058
|
-
return
|
|
1806
|
+
return n.ordinalNumber(s, { unit: "day" });
|
|
2059
1807
|
case "ccc":
|
|
2060
|
-
return
|
|
1808
|
+
return n.day(i, {
|
|
2061
1809
|
width: "abbreviated",
|
|
2062
1810
|
context: "standalone"
|
|
2063
1811
|
});
|
|
2064
1812
|
case "ccccc":
|
|
2065
|
-
return
|
|
1813
|
+
return n.day(i, {
|
|
2066
1814
|
width: "narrow",
|
|
2067
1815
|
context: "standalone"
|
|
2068
1816
|
});
|
|
2069
1817
|
case "cccccc":
|
|
2070
|
-
return
|
|
1818
|
+
return n.day(i, {
|
|
2071
1819
|
width: "short",
|
|
2072
1820
|
context: "standalone"
|
|
2073
1821
|
});
|
|
2074
1822
|
case "cccc":
|
|
2075
1823
|
default:
|
|
2076
|
-
return
|
|
1824
|
+
return n.day(i, {
|
|
2077
1825
|
width: "wide",
|
|
2078
1826
|
context: "standalone"
|
|
2079
1827
|
});
|
|
2080
1828
|
}
|
|
2081
1829
|
},
|
|
2082
1830
|
// ISO day of week
|
|
2083
|
-
i: function(e, t,
|
|
2084
|
-
const
|
|
1831
|
+
i: function(e, t, n) {
|
|
1832
|
+
const r = e.getDay(), i = r === 0 ? 7 : r;
|
|
2085
1833
|
switch (t) {
|
|
2086
1834
|
case "i":
|
|
2087
1835
|
return String(i);
|
|
2088
1836
|
case "ii":
|
|
2089
1837
|
return p(i, t.length);
|
|
2090
1838
|
case "io":
|
|
2091
|
-
return
|
|
1839
|
+
return n.ordinalNumber(i, { unit: "day" });
|
|
2092
1840
|
case "iii":
|
|
2093
|
-
return
|
|
1841
|
+
return n.day(r, {
|
|
2094
1842
|
width: "abbreviated",
|
|
2095
1843
|
context: "formatting"
|
|
2096
1844
|
});
|
|
2097
1845
|
case "iiiii":
|
|
2098
|
-
return
|
|
1846
|
+
return n.day(r, {
|
|
2099
1847
|
width: "narrow",
|
|
2100
1848
|
context: "formatting"
|
|
2101
1849
|
});
|
|
2102
1850
|
case "iiiiii":
|
|
2103
|
-
return
|
|
1851
|
+
return n.day(r, {
|
|
2104
1852
|
width: "short",
|
|
2105
1853
|
context: "formatting"
|
|
2106
1854
|
});
|
|
2107
1855
|
case "iiii":
|
|
2108
1856
|
default:
|
|
2109
|
-
return
|
|
1857
|
+
return n.day(r, {
|
|
2110
1858
|
width: "wide",
|
|
2111
1859
|
context: "formatting"
|
|
2112
1860
|
});
|
|
2113
1861
|
}
|
|
2114
1862
|
},
|
|
2115
1863
|
// AM or PM
|
|
2116
|
-
a: function(e, t,
|
|
1864
|
+
a: function(e, t, n) {
|
|
2117
1865
|
const i = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
2118
1866
|
switch (t) {
|
|
2119
1867
|
case "a":
|
|
2120
1868
|
case "aa":
|
|
2121
|
-
return
|
|
1869
|
+
return n.dayPeriod(i, {
|
|
2122
1870
|
width: "abbreviated",
|
|
2123
1871
|
context: "formatting"
|
|
2124
1872
|
});
|
|
2125
1873
|
case "aaa":
|
|
2126
|
-
return
|
|
1874
|
+
return n.dayPeriod(i, {
|
|
2127
1875
|
width: "abbreviated",
|
|
2128
1876
|
context: "formatting"
|
|
2129
1877
|
}).toLowerCase();
|
|
2130
1878
|
case "aaaaa":
|
|
2131
|
-
return
|
|
1879
|
+
return n.dayPeriod(i, {
|
|
2132
1880
|
width: "narrow",
|
|
2133
1881
|
context: "formatting"
|
|
2134
1882
|
});
|
|
2135
1883
|
case "aaaa":
|
|
2136
1884
|
default:
|
|
2137
|
-
return
|
|
1885
|
+
return n.dayPeriod(i, {
|
|
2138
1886
|
width: "wide",
|
|
2139
1887
|
context: "formatting"
|
|
2140
1888
|
});
|
|
2141
1889
|
}
|
|
2142
1890
|
},
|
|
2143
1891
|
// AM, PM, midnight, noon
|
|
2144
|
-
b: function(e, t,
|
|
2145
|
-
const
|
|
1892
|
+
b: function(e, t, n) {
|
|
1893
|
+
const r = e.getHours();
|
|
2146
1894
|
let i;
|
|
2147
|
-
switch (
|
|
1895
|
+
switch (r === 12 ? i = Q.noon : r === 0 ? i = Q.midnight : i = r / 12 >= 1 ? "pm" : "am", t) {
|
|
2148
1896
|
case "b":
|
|
2149
1897
|
case "bb":
|
|
2150
|
-
return
|
|
1898
|
+
return n.dayPeriod(i, {
|
|
2151
1899
|
width: "abbreviated",
|
|
2152
1900
|
context: "formatting"
|
|
2153
1901
|
});
|
|
2154
1902
|
case "bbb":
|
|
2155
|
-
return
|
|
1903
|
+
return n.dayPeriod(i, {
|
|
2156
1904
|
width: "abbreviated",
|
|
2157
1905
|
context: "formatting"
|
|
2158
1906
|
}).toLowerCase();
|
|
2159
1907
|
case "bbbbb":
|
|
2160
|
-
return
|
|
1908
|
+
return n.dayPeriod(i, {
|
|
2161
1909
|
width: "narrow",
|
|
2162
1910
|
context: "formatting"
|
|
2163
1911
|
});
|
|
2164
1912
|
case "bbbb":
|
|
2165
1913
|
default:
|
|
2166
|
-
return
|
|
1914
|
+
return n.dayPeriod(i, {
|
|
2167
1915
|
width: "wide",
|
|
2168
1916
|
context: "formatting"
|
|
2169
1917
|
});
|
|
2170
1918
|
}
|
|
2171
1919
|
},
|
|
2172
1920
|
// in the morning, in the afternoon, in the evening, at night
|
|
2173
|
-
B: function(e, t,
|
|
2174
|
-
const
|
|
1921
|
+
B: function(e, t, n) {
|
|
1922
|
+
const r = e.getHours();
|
|
2175
1923
|
let i;
|
|
2176
|
-
switch (
|
|
1924
|
+
switch (r >= 17 ? i = Q.evening : r >= 12 ? i = Q.afternoon : r >= 4 ? i = Q.morning : i = Q.night, t) {
|
|
2177
1925
|
case "B":
|
|
2178
1926
|
case "BB":
|
|
2179
1927
|
case "BBB":
|
|
2180
|
-
return
|
|
1928
|
+
return n.dayPeriod(i, {
|
|
2181
1929
|
width: "abbreviated",
|
|
2182
1930
|
context: "formatting"
|
|
2183
1931
|
});
|
|
2184
1932
|
case "BBBBB":
|
|
2185
|
-
return
|
|
1933
|
+
return n.dayPeriod(i, {
|
|
2186
1934
|
width: "narrow",
|
|
2187
1935
|
context: "formatting"
|
|
2188
1936
|
});
|
|
2189
1937
|
case "BBBB":
|
|
2190
1938
|
default:
|
|
2191
|
-
return
|
|
1939
|
+
return n.dayPeriod(i, {
|
|
2192
1940
|
width: "wide",
|
|
2193
1941
|
context: "formatting"
|
|
2194
1942
|
});
|
|
2195
1943
|
}
|
|
2196
1944
|
},
|
|
2197
1945
|
// Hour [1-12]
|
|
2198
|
-
h: function(e, t,
|
|
1946
|
+
h: function(e, t, n) {
|
|
2199
1947
|
if (t === "ho") {
|
|
2200
|
-
let
|
|
2201
|
-
return
|
|
1948
|
+
let r = e.getHours() % 12;
|
|
1949
|
+
return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
|
|
2202
1950
|
}
|
|
2203
1951
|
return F.h(e, t);
|
|
2204
1952
|
},
|
|
2205
1953
|
// Hour [0-23]
|
|
2206
|
-
H: function(e, t,
|
|
2207
|
-
return t === "Ho" ?
|
|
1954
|
+
H: function(e, t, n) {
|
|
1955
|
+
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : F.H(e, t);
|
|
2208
1956
|
},
|
|
2209
1957
|
// Hour [0-11]
|
|
2210
|
-
K: function(e, t,
|
|
2211
|
-
const
|
|
2212
|
-
return t === "Ko" ?
|
|
1958
|
+
K: function(e, t, n) {
|
|
1959
|
+
const r = e.getHours() % 12;
|
|
1960
|
+
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : p(r, t.length);
|
|
2213
1961
|
},
|
|
2214
1962
|
// Hour [1-24]
|
|
2215
|
-
k: function(e, t,
|
|
2216
|
-
let
|
|
2217
|
-
return
|
|
1963
|
+
k: function(e, t, n) {
|
|
1964
|
+
let r = e.getHours();
|
|
1965
|
+
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : p(r, t.length);
|
|
2218
1966
|
},
|
|
2219
1967
|
// Minute
|
|
2220
|
-
m: function(e, t,
|
|
2221
|
-
return t === "mo" ?
|
|
1968
|
+
m: function(e, t, n) {
|
|
1969
|
+
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : F.m(e, t);
|
|
2222
1970
|
},
|
|
2223
1971
|
// Second
|
|
2224
|
-
s: function(e, t,
|
|
2225
|
-
return t === "so" ?
|
|
1972
|
+
s: function(e, t, n) {
|
|
1973
|
+
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : F.s(e, t);
|
|
2226
1974
|
},
|
|
2227
1975
|
// Fraction of second
|
|
2228
1976
|
S: function(e, t) {
|
|
2229
1977
|
return F.S(e, t);
|
|
2230
1978
|
},
|
|
2231
1979
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
2232
|
-
X: function(e, t,
|
|
2233
|
-
const
|
|
2234
|
-
if (
|
|
1980
|
+
X: function(e, t, n) {
|
|
1981
|
+
const r = e.getTimezoneOffset();
|
|
1982
|
+
if (r === 0)
|
|
2235
1983
|
return "Z";
|
|
2236
1984
|
switch (t) {
|
|
2237
1985
|
case "X":
|
|
2238
|
-
return Ht(
|
|
1986
|
+
return Ht(r);
|
|
2239
1987
|
case "XXXX":
|
|
2240
1988
|
case "XX":
|
|
2241
|
-
return
|
|
1989
|
+
return B(r);
|
|
2242
1990
|
case "XXXXX":
|
|
2243
1991
|
case "XXX":
|
|
2244
1992
|
default:
|
|
2245
|
-
return
|
|
1993
|
+
return B(r, ":");
|
|
2246
1994
|
}
|
|
2247
1995
|
},
|
|
2248
1996
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
2249
|
-
x: function(e, t,
|
|
2250
|
-
const
|
|
1997
|
+
x: function(e, t, n) {
|
|
1998
|
+
const r = e.getTimezoneOffset();
|
|
2251
1999
|
switch (t) {
|
|
2252
2000
|
case "x":
|
|
2253
|
-
return Ht(
|
|
2001
|
+
return Ht(r);
|
|
2254
2002
|
case "xxxx":
|
|
2255
2003
|
case "xx":
|
|
2256
|
-
return
|
|
2004
|
+
return B(r);
|
|
2257
2005
|
case "xxxxx":
|
|
2258
2006
|
case "xxx":
|
|
2259
2007
|
default:
|
|
2260
|
-
return
|
|
2008
|
+
return B(r, ":");
|
|
2261
2009
|
}
|
|
2262
2010
|
},
|
|
2263
2011
|
// Timezone (GMT)
|
|
2264
|
-
O: function(e, t,
|
|
2265
|
-
const
|
|
2012
|
+
O: function(e, t, n) {
|
|
2013
|
+
const r = e.getTimezoneOffset();
|
|
2266
2014
|
switch (t) {
|
|
2267
2015
|
case "O":
|
|
2268
2016
|
case "OO":
|
|
2269
2017
|
case "OOO":
|
|
2270
|
-
return "GMT" +
|
|
2018
|
+
return "GMT" + Yt(r, ":");
|
|
2271
2019
|
case "OOOO":
|
|
2272
2020
|
default:
|
|
2273
|
-
return "GMT" +
|
|
2021
|
+
return "GMT" + B(r, ":");
|
|
2274
2022
|
}
|
|
2275
2023
|
},
|
|
2276
2024
|
// Timezone (specific non-location)
|
|
2277
|
-
z: function(e, t,
|
|
2278
|
-
const
|
|
2025
|
+
z: function(e, t, n) {
|
|
2026
|
+
const r = e.getTimezoneOffset();
|
|
2279
2027
|
switch (t) {
|
|
2280
2028
|
case "z":
|
|
2281
2029
|
case "zz":
|
|
2282
2030
|
case "zzz":
|
|
2283
|
-
return "GMT" +
|
|
2031
|
+
return "GMT" + Yt(r, ":");
|
|
2284
2032
|
case "zzzz":
|
|
2285
2033
|
default:
|
|
2286
|
-
return "GMT" +
|
|
2034
|
+
return "GMT" + B(r, ":");
|
|
2287
2035
|
}
|
|
2288
2036
|
},
|
|
2289
2037
|
// Seconds timestamp
|
|
2290
|
-
t: function(e, t,
|
|
2291
|
-
const
|
|
2292
|
-
return p(
|
|
2038
|
+
t: function(e, t, n) {
|
|
2039
|
+
const r = Math.trunc(+e / 1e3);
|
|
2040
|
+
return p(r, t.length);
|
|
2293
2041
|
},
|
|
2294
2042
|
// Milliseconds timestamp
|
|
2295
|
-
T: function(e, t,
|
|
2043
|
+
T: function(e, t, n) {
|
|
2296
2044
|
return p(+e, t.length);
|
|
2297
2045
|
}
|
|
2298
2046
|
};
|
|
2299
|
-
function
|
|
2300
|
-
const
|
|
2301
|
-
return
|
|
2047
|
+
function Yt(e, t = "") {
|
|
2048
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), s = r % 60;
|
|
2049
|
+
return s === 0 ? n + String(i) : n + String(i) + t + p(s, 2);
|
|
2302
2050
|
}
|
|
2303
2051
|
function Ht(e, t) {
|
|
2304
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") + p(Math.abs(e) / 60, 2) :
|
|
2052
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + p(Math.abs(e) / 60, 2) : B(e, t);
|
|
2305
2053
|
}
|
|
2306
|
-
function
|
|
2307
|
-
const
|
|
2308
|
-
return
|
|
2054
|
+
function B(e, t = "") {
|
|
2055
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = p(Math.trunc(r / 60), 2), s = p(r % 60, 2);
|
|
2056
|
+
return n + i + t + s;
|
|
2309
2057
|
}
|
|
2310
2058
|
const Ft = (e, t) => {
|
|
2311
2059
|
switch (e) {
|
|
@@ -2319,7 +2067,7 @@ const Ft = (e, t) => {
|
|
|
2319
2067
|
default:
|
|
2320
2068
|
return t.date({ width: "full" });
|
|
2321
2069
|
}
|
|
2322
|
-
},
|
|
2070
|
+
}, ln = (e, t) => {
|
|
2323
2071
|
switch (e) {
|
|
2324
2072
|
case "p":
|
|
2325
2073
|
return t.time({ width: "short" });
|
|
@@ -2332,137 +2080,137 @@ const Ft = (e, t) => {
|
|
|
2332
2080
|
return t.time({ width: "full" });
|
|
2333
2081
|
}
|
|
2334
2082
|
}, pi = (e, t) => {
|
|
2335
|
-
const
|
|
2083
|
+
const n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
|
|
2336
2084
|
if (!i)
|
|
2337
2085
|
return Ft(e, t);
|
|
2338
|
-
let
|
|
2339
|
-
switch (
|
|
2086
|
+
let s;
|
|
2087
|
+
switch (r) {
|
|
2340
2088
|
case "P":
|
|
2341
|
-
|
|
2089
|
+
s = t.dateTime({ width: "short" });
|
|
2342
2090
|
break;
|
|
2343
2091
|
case "PP":
|
|
2344
|
-
|
|
2092
|
+
s = t.dateTime({ width: "medium" });
|
|
2345
2093
|
break;
|
|
2346
2094
|
case "PPP":
|
|
2347
|
-
|
|
2095
|
+
s = t.dateTime({ width: "long" });
|
|
2348
2096
|
break;
|
|
2349
2097
|
case "PPPP":
|
|
2350
2098
|
default:
|
|
2351
|
-
|
|
2099
|
+
s = t.dateTime({ width: "full" });
|
|
2352
2100
|
break;
|
|
2353
2101
|
}
|
|
2354
|
-
return
|
|
2102
|
+
return s.replace("{{date}}", Ft(r, t)).replace("{{time}}", ln(i, t));
|
|
2355
2103
|
}, _i = {
|
|
2356
|
-
p:
|
|
2104
|
+
p: ln,
|
|
2357
2105
|
P: pi
|
|
2358
2106
|
}, wi = /^D+$/, bi = /^Y+$/, Ti = ["D", "DD", "YY", "YYYY"];
|
|
2359
|
-
function
|
|
2107
|
+
function Mi(e) {
|
|
2360
2108
|
return wi.test(e);
|
|
2361
2109
|
}
|
|
2362
|
-
function
|
|
2110
|
+
function Di(e) {
|
|
2363
2111
|
return bi.test(e);
|
|
2364
2112
|
}
|
|
2365
|
-
function
|
|
2366
|
-
const
|
|
2367
|
-
if (console.warn(
|
|
2113
|
+
function Si(e, t, n) {
|
|
2114
|
+
const r = Oi(e, t, n);
|
|
2115
|
+
if (console.warn(r), Ti.includes(e)) throw new RangeError(r);
|
|
2368
2116
|
}
|
|
2369
|
-
function
|
|
2370
|
-
const
|
|
2371
|
-
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${
|
|
2117
|
+
function Oi(e, t, n) {
|
|
2118
|
+
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
2119
|
+
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
2372
2120
|
}
|
|
2373
|
-
const vi = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ei = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, xi = /^'([^]*?)'?$/,
|
|
2374
|
-
function
|
|
2375
|
-
var _, y, g, x,
|
|
2376
|
-
const
|
|
2121
|
+
const vi = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ei = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, xi = /^'([^]*?)'?$/, Ii = /''/g, Ni = /[a-zA-Z]/;
|
|
2122
|
+
function dn(e, t, n) {
|
|
2123
|
+
var _, y, g, x, I, N, R, W;
|
|
2124
|
+
const r = se(), i = (n == null ? void 0 : n.locale) ?? r.locale ?? mi, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((y = (_ = n == null ? void 0 : n.locale) == null ? void 0 : _.options) == null ? void 0 : y.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((x = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, u = (n == null ? void 0 : n.weekStartsOn) ?? ((N = (I = n == null ? void 0 : n.locale) == null ? void 0 : I.options) == null ? void 0 : N.weekStartsOn) ?? r.weekStartsOn ?? ((W = (R = r.locale) == null ? void 0 : R.options) == null ? void 0 : W.weekStartsOn) ?? 0, d = D(e, n == null ? void 0 : n.in);
|
|
2377
2125
|
if (!Ca(d))
|
|
2378
2126
|
throw new RangeError("Invalid time value");
|
|
2379
|
-
let
|
|
2380
|
-
const T =
|
|
2127
|
+
let f = t.match(Ei).map((S) => {
|
|
2128
|
+
const T = S[0];
|
|
2381
2129
|
if (T === "p" || T === "P") {
|
|
2382
2130
|
const q = _i[T];
|
|
2383
|
-
return q(
|
|
2131
|
+
return q(S, i.formatLong);
|
|
2384
2132
|
}
|
|
2385
|
-
return
|
|
2386
|
-
}).join("").match(vi).map((
|
|
2387
|
-
if (
|
|
2133
|
+
return S;
|
|
2134
|
+
}).join("").match(vi).map((S) => {
|
|
2135
|
+
if (S === "''")
|
|
2388
2136
|
return { isToken: !1, value: "'" };
|
|
2389
|
-
const T =
|
|
2137
|
+
const T = S[0];
|
|
2390
2138
|
if (T === "'")
|
|
2391
|
-
return { isToken: !1, value:
|
|
2392
|
-
if (
|
|
2393
|
-
return { isToken: !0, value:
|
|
2394
|
-
if (T.match(
|
|
2139
|
+
return { isToken: !1, value: Pi(S) };
|
|
2140
|
+
if (At[T])
|
|
2141
|
+
return { isToken: !0, value: S };
|
|
2142
|
+
if (T.match(Ni))
|
|
2395
2143
|
throw new RangeError(
|
|
2396
2144
|
"Format string contains an unescaped latin alphabet character `" + T + "`"
|
|
2397
2145
|
);
|
|
2398
|
-
return { isToken: !1, value:
|
|
2146
|
+
return { isToken: !1, value: S };
|
|
2399
2147
|
});
|
|
2400
|
-
i.localize.preprocessor && (
|
|
2401
|
-
const
|
|
2402
|
-
firstWeekContainsDate:
|
|
2403
|
-
weekStartsOn:
|
|
2148
|
+
i.localize.preprocessor && (f = i.localize.preprocessor(d, f));
|
|
2149
|
+
const m = {
|
|
2150
|
+
firstWeekContainsDate: s,
|
|
2151
|
+
weekStartsOn: u,
|
|
2404
2152
|
locale: i
|
|
2405
2153
|
};
|
|
2406
|
-
return
|
|
2407
|
-
if (!
|
|
2408
|
-
const T =
|
|
2409
|
-
(!(
|
|
2410
|
-
const q =
|
|
2411
|
-
return q(d, T, i.localize,
|
|
2154
|
+
return f.map((S) => {
|
|
2155
|
+
if (!S.isToken) return S.value;
|
|
2156
|
+
const T = S.value;
|
|
2157
|
+
(!(n != null && n.useAdditionalWeekYearTokens) && Di(T) || !(n != null && n.useAdditionalDayOfYearTokens) && Mi(T)) && Si(T, t, String(e));
|
|
2158
|
+
const q = At[T[0]];
|
|
2159
|
+
return q(d, T, i.localize, m);
|
|
2412
2160
|
}).join("");
|
|
2413
2161
|
}
|
|
2414
|
-
function
|
|
2162
|
+
function Pi(e) {
|
|
2415
2163
|
const t = e.match(xi);
|
|
2416
|
-
return t ? t[1].replace(
|
|
2164
|
+
return t ? t[1].replace(Ii, "'") : e;
|
|
2417
2165
|
}
|
|
2418
2166
|
function Ci(e, t) {
|
|
2419
|
-
const
|
|
2420
|
-
return
|
|
2167
|
+
const n = D(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = n.getMonth(), s = C(n, 0);
|
|
2168
|
+
return s.setFullYear(r, i + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
|
|
2421
2169
|
}
|
|
2422
2170
|
function Ri() {
|
|
2423
|
-
return Object.assign({},
|
|
2424
|
-
}
|
|
2425
|
-
function Wt(e) {
|
|
2426
|
-
return +M(e);
|
|
2171
|
+
return Object.assign({}, se());
|
|
2427
2172
|
}
|
|
2428
2173
|
function Lt(e) {
|
|
2429
|
-
return
|
|
2174
|
+
return +D(e);
|
|
2175
|
+
}
|
|
2176
|
+
function Wt(e) {
|
|
2177
|
+
return Math.trunc(+D(e) / 1e3);
|
|
2430
2178
|
}
|
|
2431
2179
|
function ki(e) {
|
|
2432
|
-
return Math.trunc(e *
|
|
2180
|
+
return Math.trunc(e * Oa);
|
|
2433
2181
|
}
|
|
2434
|
-
function
|
|
2435
|
-
const t = e /
|
|
2182
|
+
function Gi(e) {
|
|
2183
|
+
const t = e / Sa;
|
|
2436
2184
|
return Math.trunc(t);
|
|
2437
2185
|
}
|
|
2438
|
-
function
|
|
2439
|
-
return va(e, -1,
|
|
2440
|
-
}
|
|
2441
|
-
function qt(e, t, r) {
|
|
2442
|
-
const n = Ri(), i = Hi(e, r.timeZone, r.locale ?? n.locale);
|
|
2443
|
-
return "formatToParts" in i ? Gi(i, t) : Ai(i, t);
|
|
2186
|
+
function mn(e, t, n) {
|
|
2187
|
+
return va(e, -1, n);
|
|
2444
2188
|
}
|
|
2445
|
-
function
|
|
2446
|
-
const r = e.
|
|
2447
|
-
|
|
2448
|
-
if (r[n].type === "timeZoneName")
|
|
2449
|
-
return r[n].value;
|
|
2189
|
+
function qt(e, t, n) {
|
|
2190
|
+
const r = Ri(), i = Hi(e, n.timeZone, n.locale ?? r.locale);
|
|
2191
|
+
return "formatToParts" in i ? Ai(i, t) : Yi(i, t);
|
|
2450
2192
|
}
|
|
2451
2193
|
function Ai(e, t) {
|
|
2452
|
-
const
|
|
2453
|
-
|
|
2194
|
+
const n = e.formatToParts(t);
|
|
2195
|
+
for (let r = n.length - 1; r >= 0; --r)
|
|
2196
|
+
if (n[r].type === "timeZoneName")
|
|
2197
|
+
return n[r].value;
|
|
2454
2198
|
}
|
|
2455
|
-
function
|
|
2456
|
-
|
|
2199
|
+
function Yi(e, t) {
|
|
2200
|
+
const n = e.format(t).replace(/\u200E/g, ""), r = / [\w-+ ]+$/.exec(n);
|
|
2201
|
+
return r ? r[0].substr(1) : "";
|
|
2202
|
+
}
|
|
2203
|
+
function Hi(e, t, n) {
|
|
2204
|
+
return new Intl.DateTimeFormat(n ? [n.code, "en-US"] : void 0, {
|
|
2457
2205
|
timeZone: t,
|
|
2458
2206
|
timeZoneName: e
|
|
2459
2207
|
});
|
|
2460
2208
|
}
|
|
2461
2209
|
function Fi(e, t) {
|
|
2462
|
-
const
|
|
2463
|
-
return "formatToParts" in
|
|
2210
|
+
const n = ji(t);
|
|
2211
|
+
return "formatToParts" in n ? Wi(n, e) : qi(n, e);
|
|
2464
2212
|
}
|
|
2465
|
-
const
|
|
2213
|
+
const Li = {
|
|
2466
2214
|
year: 0,
|
|
2467
2215
|
month: 1,
|
|
2468
2216
|
day: 2,
|
|
@@ -2470,32 +2218,32 @@ const Wi = {
|
|
|
2470
2218
|
minute: 4,
|
|
2471
2219
|
second: 5
|
|
2472
2220
|
};
|
|
2473
|
-
function
|
|
2221
|
+
function Wi(e, t) {
|
|
2474
2222
|
try {
|
|
2475
|
-
const
|
|
2476
|
-
for (let i = 0; i <
|
|
2477
|
-
const
|
|
2478
|
-
|
|
2223
|
+
const n = e.formatToParts(t), r = [];
|
|
2224
|
+
for (let i = 0; i < n.length; i++) {
|
|
2225
|
+
const s = Li[n[i].type];
|
|
2226
|
+
s !== void 0 && (r[s] = parseInt(n[i].value, 10));
|
|
2479
2227
|
}
|
|
2480
|
-
return
|
|
2481
|
-
} catch (
|
|
2482
|
-
if (
|
|
2228
|
+
return r;
|
|
2229
|
+
} catch (n) {
|
|
2230
|
+
if (n instanceof RangeError)
|
|
2483
2231
|
return [NaN];
|
|
2484
|
-
throw
|
|
2232
|
+
throw n;
|
|
2485
2233
|
}
|
|
2486
2234
|
}
|
|
2487
2235
|
function qi(e, t) {
|
|
2488
|
-
const
|
|
2236
|
+
const n = e.format(t), r = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
|
|
2489
2237
|
return [
|
|
2490
|
-
parseInt(
|
|
2491
|
-
parseInt(
|
|
2492
|
-
parseInt(
|
|
2493
|
-
parseInt(
|
|
2494
|
-
parseInt(
|
|
2495
|
-
parseInt(
|
|
2238
|
+
parseInt(r[3], 10),
|
|
2239
|
+
parseInt(r[1], 10),
|
|
2240
|
+
parseInt(r[2], 10),
|
|
2241
|
+
parseInt(r[4], 10),
|
|
2242
|
+
parseInt(r[5], 10),
|
|
2243
|
+
parseInt(r[6], 10)
|
|
2496
2244
|
];
|
|
2497
2245
|
}
|
|
2498
|
-
const
|
|
2246
|
+
const Le = {}, Ut = new Intl.DateTimeFormat("en-US", {
|
|
2499
2247
|
hourCycle: "h23",
|
|
2500
2248
|
timeZone: "America/New_York",
|
|
2501
2249
|
year: "numeric",
|
|
@@ -2506,7 +2254,7 @@ const We = {}, Ut = new Intl.DateTimeFormat("en-US", {
|
|
|
2506
2254
|
second: "2-digit"
|
|
2507
2255
|
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Ui = Ut === "06/25/2014, 00:00:00" || Ut === "06/25/2014 00:00:00";
|
|
2508
2256
|
function ji(e) {
|
|
2509
|
-
return
|
|
2257
|
+
return Le[e] || (Le[e] = Ui ? new Intl.DateTimeFormat("en-US", {
|
|
2510
2258
|
hourCycle: "h23",
|
|
2511
2259
|
timeZone: e,
|
|
2512
2260
|
year: "numeric",
|
|
@@ -2524,157 +2272,157 @@ function ji(e) {
|
|
|
2524
2272
|
hour: "2-digit",
|
|
2525
2273
|
minute: "2-digit",
|
|
2526
2274
|
second: "2-digit"
|
|
2527
|
-
})),
|
|
2275
|
+
})), Le[e];
|
|
2528
2276
|
}
|
|
2529
|
-
function Ze(e, t,
|
|
2277
|
+
function Ze(e, t, n, r, i, s, u) {
|
|
2530
2278
|
const d = /* @__PURE__ */ new Date(0);
|
|
2531
|
-
return d.setUTCFullYear(e, t,
|
|
2279
|
+
return d.setUTCFullYear(e, t, n), d.setUTCHours(r, i, s, u), d;
|
|
2532
2280
|
}
|
|
2533
|
-
const jt = 36e5, zi = 6e4,
|
|
2281
|
+
const jt = 36e5, zi = 6e4, We = {
|
|
2534
2282
|
timezoneZ: /^(Z)$/,
|
|
2535
2283
|
timezoneHH: /^([+-]\d{2})$/,
|
|
2536
2284
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
2537
2285
|
};
|
|
2538
|
-
function
|
|
2286
|
+
function ce(e, t, n) {
|
|
2539
2287
|
if (!e)
|
|
2540
2288
|
return 0;
|
|
2541
|
-
let
|
|
2542
|
-
if (
|
|
2289
|
+
let r = We.timezoneZ.exec(e);
|
|
2290
|
+
if (r)
|
|
2543
2291
|
return 0;
|
|
2544
|
-
let i,
|
|
2545
|
-
if (
|
|
2546
|
-
return i = parseInt(
|
|
2547
|
-
if (
|
|
2548
|
-
i = parseInt(
|
|
2549
|
-
const
|
|
2550
|
-
return zt(i,
|
|
2292
|
+
let i, s;
|
|
2293
|
+
if (r = We.timezoneHH.exec(e), r)
|
|
2294
|
+
return i = parseInt(r[1], 10), zt(i) ? -(i * jt) : NaN;
|
|
2295
|
+
if (r = We.timezoneHHMM.exec(e), r) {
|
|
2296
|
+
i = parseInt(r[2], 10);
|
|
2297
|
+
const u = parseInt(r[3], 10);
|
|
2298
|
+
return zt(i, u) ? (s = Math.abs(i) * jt + u * zi, r[1] === "+" ? -s : s) : NaN;
|
|
2551
2299
|
}
|
|
2552
2300
|
if (Xi(e)) {
|
|
2553
2301
|
t = new Date(t || Date.now());
|
|
2554
|
-
const
|
|
2555
|
-
return -(
|
|
2302
|
+
const u = n ? t : Bi(t), d = ze(u, e);
|
|
2303
|
+
return -(n ? d : Vi(t, d, e));
|
|
2556
2304
|
}
|
|
2557
2305
|
return NaN;
|
|
2558
2306
|
}
|
|
2559
|
-
function
|
|
2307
|
+
function Bi(e) {
|
|
2560
2308
|
return Ze(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
2561
2309
|
}
|
|
2562
2310
|
function ze(e, t) {
|
|
2563
|
-
const
|
|
2311
|
+
const n = Fi(e, t), r = Ze(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
|
|
2564
2312
|
let i = e.getTime();
|
|
2565
|
-
const
|
|
2566
|
-
return i -=
|
|
2313
|
+
const s = i % 1e3;
|
|
2314
|
+
return i -= s >= 0 ? s : 1e3 + s, r - i;
|
|
2567
2315
|
}
|
|
2568
|
-
function
|
|
2316
|
+
function Vi(e, t, n) {
|
|
2569
2317
|
let i = e.getTime() - t;
|
|
2570
|
-
const
|
|
2571
|
-
if (t ===
|
|
2318
|
+
const s = ze(new Date(i), n);
|
|
2319
|
+
if (t === s)
|
|
2572
2320
|
return t;
|
|
2573
|
-
i -=
|
|
2574
|
-
const
|
|
2575
|
-
return
|
|
2321
|
+
i -= s - t;
|
|
2322
|
+
const u = ze(new Date(i), n);
|
|
2323
|
+
return s === u ? s : Math.max(s, u);
|
|
2576
2324
|
}
|
|
2577
2325
|
function zt(e, t) {
|
|
2578
2326
|
return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
|
|
2579
2327
|
}
|
|
2580
|
-
const
|
|
2328
|
+
const Bt = {};
|
|
2581
2329
|
function Xi(e) {
|
|
2582
|
-
if (
|
|
2330
|
+
if (Bt[e])
|
|
2583
2331
|
return !0;
|
|
2584
2332
|
try {
|
|
2585
|
-
return new Intl.DateTimeFormat(void 0, { timeZone: e }),
|
|
2333
|
+
return new Intl.DateTimeFormat(void 0, { timeZone: e }), Bt[e] = !0, !0;
|
|
2586
2334
|
} catch {
|
|
2587
2335
|
return !1;
|
|
2588
2336
|
}
|
|
2589
2337
|
}
|
|
2590
2338
|
const $i = 60 * 1e3, Zi = {
|
|
2591
2339
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
2592
|
-
X: function(e, t,
|
|
2593
|
-
const
|
|
2594
|
-
if (
|
|
2340
|
+
X: function(e, t, n) {
|
|
2341
|
+
const r = qe(n.timeZone, e);
|
|
2342
|
+
if (r === 0)
|
|
2595
2343
|
return "Z";
|
|
2596
2344
|
switch (t) {
|
|
2597
2345
|
case "X":
|
|
2598
|
-
return
|
|
2346
|
+
return Vt(r);
|
|
2599
2347
|
case "XXXX":
|
|
2600
2348
|
case "XX":
|
|
2601
|
-
return K(
|
|
2349
|
+
return K(r);
|
|
2602
2350
|
case "XXXXX":
|
|
2603
2351
|
case "XXX":
|
|
2604
2352
|
default:
|
|
2605
|
-
return K(
|
|
2353
|
+
return K(r, ":");
|
|
2606
2354
|
}
|
|
2607
2355
|
},
|
|
2608
2356
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
2609
|
-
x: function(e, t,
|
|
2610
|
-
const
|
|
2357
|
+
x: function(e, t, n) {
|
|
2358
|
+
const r = qe(n.timeZone, e);
|
|
2611
2359
|
switch (t) {
|
|
2612
2360
|
case "x":
|
|
2613
|
-
return
|
|
2361
|
+
return Vt(r);
|
|
2614
2362
|
case "xxxx":
|
|
2615
2363
|
case "xx":
|
|
2616
|
-
return K(
|
|
2364
|
+
return K(r);
|
|
2617
2365
|
case "xxxxx":
|
|
2618
2366
|
case "xxx":
|
|
2619
2367
|
default:
|
|
2620
|
-
return K(
|
|
2368
|
+
return K(r, ":");
|
|
2621
2369
|
}
|
|
2622
2370
|
},
|
|
2623
2371
|
// Timezone (GMT)
|
|
2624
|
-
O: function(e, t,
|
|
2625
|
-
const
|
|
2372
|
+
O: function(e, t, n) {
|
|
2373
|
+
const r = qe(n.timeZone, e);
|
|
2626
2374
|
switch (t) {
|
|
2627
2375
|
case "O":
|
|
2628
2376
|
case "OO":
|
|
2629
2377
|
case "OOO":
|
|
2630
|
-
return "GMT" + Qi(
|
|
2378
|
+
return "GMT" + Qi(r, ":");
|
|
2631
2379
|
case "OOOO":
|
|
2632
2380
|
default:
|
|
2633
|
-
return "GMT" + K(
|
|
2381
|
+
return "GMT" + K(r, ":");
|
|
2634
2382
|
}
|
|
2635
2383
|
},
|
|
2636
2384
|
// Timezone (specific non-location)
|
|
2637
|
-
z: function(e, t,
|
|
2385
|
+
z: function(e, t, n) {
|
|
2638
2386
|
switch (t) {
|
|
2639
2387
|
case "z":
|
|
2640
2388
|
case "zz":
|
|
2641
2389
|
case "zzz":
|
|
2642
|
-
return qt("short", e,
|
|
2390
|
+
return qt("short", e, n);
|
|
2643
2391
|
case "zzzz":
|
|
2644
2392
|
default:
|
|
2645
|
-
return qt("long", e,
|
|
2393
|
+
return qt("long", e, n);
|
|
2646
2394
|
}
|
|
2647
2395
|
}
|
|
2648
2396
|
};
|
|
2649
2397
|
function qe(e, t) {
|
|
2650
|
-
const
|
|
2651
|
-
if (Number.isNaN(
|
|
2398
|
+
const n = e ? ce(e, t, !0) / $i : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
|
|
2399
|
+
if (Number.isNaN(n))
|
|
2652
2400
|
throw new RangeError("Invalid time zone specified: " + e);
|
|
2653
|
-
return
|
|
2401
|
+
return n;
|
|
2654
2402
|
}
|
|
2655
2403
|
function we(e, t) {
|
|
2656
|
-
const
|
|
2657
|
-
let
|
|
2658
|
-
for (;
|
|
2659
|
-
|
|
2660
|
-
return
|
|
2404
|
+
const n = e < 0 ? "-" : "";
|
|
2405
|
+
let r = Math.abs(e).toString();
|
|
2406
|
+
for (; r.length < t; )
|
|
2407
|
+
r = "0" + r;
|
|
2408
|
+
return n + r;
|
|
2661
2409
|
}
|
|
2662
2410
|
function K(e, t = "") {
|
|
2663
|
-
const
|
|
2664
|
-
return
|
|
2411
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = we(Math.floor(r / 60), 2), s = we(Math.floor(r % 60), 2);
|
|
2412
|
+
return n + i + t + s;
|
|
2665
2413
|
}
|
|
2666
|
-
function
|
|
2414
|
+
function Vt(e, t) {
|
|
2667
2415
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + we(Math.abs(e) / 60, 2) : K(e, t);
|
|
2668
2416
|
}
|
|
2669
2417
|
function Qi(e, t = "") {
|
|
2670
|
-
const
|
|
2671
|
-
return
|
|
2418
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.floor(r / 60), s = r % 60;
|
|
2419
|
+
return s === 0 ? n + String(i) : n + String(i) + t + we(s, 2);
|
|
2672
2420
|
}
|
|
2673
2421
|
function Xt(e) {
|
|
2674
2422
|
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
2675
2423
|
return t.setUTCFullYear(e.getFullYear()), +e - +t;
|
|
2676
2424
|
}
|
|
2677
|
-
const
|
|
2425
|
+
const fn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Ue = 36e5, $t = 6e4, Ki = 2, O = {
|
|
2678
2426
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
2679
2427
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
2680
2428
|
// year tokens
|
|
@@ -2706,15 +2454,15 @@ const fr = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
|
|
|
2706
2454
|
HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
2707
2455
|
HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
2708
2456
|
// time zone tokens (to identify the presence of a tz)
|
|
2709
|
-
timeZone:
|
|
2457
|
+
timeZone: fn
|
|
2710
2458
|
};
|
|
2711
2459
|
function be(e, t = {}) {
|
|
2712
2460
|
if (arguments.length < 1)
|
|
2713
2461
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
2714
2462
|
if (e === null)
|
|
2715
2463
|
return /* @__PURE__ */ new Date(NaN);
|
|
2716
|
-
const
|
|
2717
|
-
if (
|
|
2464
|
+
const n = t.additionalDigits == null ? Ki : Number(t.additionalDigits);
|
|
2465
|
+
if (n !== 2 && n !== 1 && n !== 0)
|
|
2718
2466
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
2719
2467
|
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
|
|
2720
2468
|
return new Date(e.getTime());
|
|
@@ -2722,48 +2470,48 @@ function be(e, t = {}) {
|
|
|
2722
2470
|
return new Date(e);
|
|
2723
2471
|
if (Object.prototype.toString.call(e) !== "[object String]")
|
|
2724
2472
|
return /* @__PURE__ */ new Date(NaN);
|
|
2725
|
-
const
|
|
2726
|
-
if (
|
|
2473
|
+
const r = Ji(e), { year: i, restDateString: s } = eo(r.date, n), u = to(s, i);
|
|
2474
|
+
if (u === null || isNaN(u.getTime()))
|
|
2727
2475
|
return /* @__PURE__ */ new Date(NaN);
|
|
2728
|
-
if (
|
|
2729
|
-
const d =
|
|
2730
|
-
let
|
|
2731
|
-
if (
|
|
2476
|
+
if (u) {
|
|
2477
|
+
const d = u.getTime();
|
|
2478
|
+
let f = 0, m;
|
|
2479
|
+
if (r.time && (f = no(r.time), f === null || isNaN(f)))
|
|
2732
2480
|
return /* @__PURE__ */ new Date(NaN);
|
|
2733
|
-
if (
|
|
2734
|
-
if (
|
|
2481
|
+
if (r.timeZone || t.timeZone) {
|
|
2482
|
+
if (m = ce(r.timeZone || t.timeZone, new Date(d + f)), isNaN(m))
|
|
2735
2483
|
return /* @__PURE__ */ new Date(NaN);
|
|
2736
2484
|
} else
|
|
2737
|
-
|
|
2738
|
-
return new Date(d +
|
|
2485
|
+
m = Xt(new Date(d + f)), m = Xt(new Date(d + f + m));
|
|
2486
|
+
return new Date(d + f + m);
|
|
2739
2487
|
} else
|
|
2740
2488
|
return /* @__PURE__ */ new Date(NaN);
|
|
2741
2489
|
}
|
|
2742
2490
|
function Ji(e) {
|
|
2743
2491
|
const t = {};
|
|
2744
|
-
let
|
|
2745
|
-
if (
|
|
2746
|
-
const i =
|
|
2747
|
-
i ? (t.time =
|
|
2492
|
+
let n = O.dateTimePattern.exec(e), r;
|
|
2493
|
+
if (n ? (t.date = n[1], r = n[3]) : (n = O.datePattern.exec(e), n ? (t.date = n[1], r = n[2]) : (t.date = null, r = e)), r) {
|
|
2494
|
+
const i = O.timeZone.exec(r);
|
|
2495
|
+
i ? (t.time = r.replace(i[1], ""), t.timeZone = i[1].trim()) : t.time = r;
|
|
2748
2496
|
}
|
|
2749
2497
|
return t;
|
|
2750
2498
|
}
|
|
2751
|
-
function
|
|
2499
|
+
function eo(e, t) {
|
|
2752
2500
|
if (e) {
|
|
2753
|
-
const
|
|
2754
|
-
let i =
|
|
2501
|
+
const n = O.YYY[t], r = O.YYYYY[t];
|
|
2502
|
+
let i = O.YYYY.exec(e) || r.exec(e);
|
|
2755
2503
|
if (i) {
|
|
2756
|
-
const
|
|
2504
|
+
const s = i[1];
|
|
2757
2505
|
return {
|
|
2758
|
-
year: parseInt(
|
|
2759
|
-
restDateString: e.slice(
|
|
2506
|
+
year: parseInt(s, 10),
|
|
2507
|
+
restDateString: e.slice(s.length)
|
|
2760
2508
|
};
|
|
2761
2509
|
}
|
|
2762
|
-
if (i =
|
|
2763
|
-
const
|
|
2510
|
+
if (i = O.YY.exec(e) || n.exec(e), i) {
|
|
2511
|
+
const s = i[1];
|
|
2764
2512
|
return {
|
|
2765
|
-
year: parseInt(
|
|
2766
|
-
restDateString: e.slice(
|
|
2513
|
+
year: parseInt(s, 10) * 100,
|
|
2514
|
+
restDateString: e.slice(s.length)
|
|
2767
2515
|
};
|
|
2768
2516
|
}
|
|
2769
2517
|
}
|
|
@@ -2771,136 +2519,136 @@ function es(e, t) {
|
|
|
2771
2519
|
year: null
|
|
2772
2520
|
};
|
|
2773
2521
|
}
|
|
2774
|
-
function
|
|
2522
|
+
function to(e, t) {
|
|
2775
2523
|
if (t === null)
|
|
2776
2524
|
return null;
|
|
2777
|
-
let
|
|
2525
|
+
let n, r, i;
|
|
2778
2526
|
if (!e || !e.length)
|
|
2779
|
-
return
|
|
2780
|
-
let
|
|
2781
|
-
if (
|
|
2782
|
-
return
|
|
2783
|
-
if (
|
|
2784
|
-
|
|
2785
|
-
const
|
|
2786
|
-
return
|
|
2787
|
-
}
|
|
2788
|
-
if (
|
|
2789
|
-
|
|
2790
|
-
const
|
|
2791
|
-
return Qt(t,
|
|
2792
|
-
}
|
|
2793
|
-
if (
|
|
2794
|
-
return i = parseInt(
|
|
2795
|
-
if (
|
|
2796
|
-
i = parseInt(
|
|
2797
|
-
const
|
|
2798
|
-
return Kt(i,
|
|
2527
|
+
return n = /* @__PURE__ */ new Date(0), n.setUTCFullYear(t), n;
|
|
2528
|
+
let s = O.MM.exec(e);
|
|
2529
|
+
if (s)
|
|
2530
|
+
return n = /* @__PURE__ */ new Date(0), r = parseInt(s[1], 10) - 1, Qt(t, r) ? (n.setUTCFullYear(t, r), n) : /* @__PURE__ */ new Date(NaN);
|
|
2531
|
+
if (s = O.DDD.exec(e), s) {
|
|
2532
|
+
n = /* @__PURE__ */ new Date(0);
|
|
2533
|
+
const u = parseInt(s[1], 10);
|
|
2534
|
+
return io(t, u) ? (n.setUTCFullYear(t, 0, u), n) : /* @__PURE__ */ new Date(NaN);
|
|
2535
|
+
}
|
|
2536
|
+
if (s = O.MMDD.exec(e), s) {
|
|
2537
|
+
n = /* @__PURE__ */ new Date(0), r = parseInt(s[1], 10) - 1;
|
|
2538
|
+
const u = parseInt(s[2], 10);
|
|
2539
|
+
return Qt(t, r, u) ? (n.setUTCFullYear(t, r, u), n) : /* @__PURE__ */ new Date(NaN);
|
|
2540
|
+
}
|
|
2541
|
+
if (s = O.Www.exec(e), s)
|
|
2542
|
+
return i = parseInt(s[1], 10) - 1, Kt(i) ? Zt(t, i) : /* @__PURE__ */ new Date(NaN);
|
|
2543
|
+
if (s = O.WwwD.exec(e), s) {
|
|
2544
|
+
i = parseInt(s[1], 10) - 1;
|
|
2545
|
+
const u = parseInt(s[2], 10) - 1;
|
|
2546
|
+
return Kt(i, u) ? Zt(t, i, u) : /* @__PURE__ */ new Date(NaN);
|
|
2799
2547
|
}
|
|
2800
2548
|
return null;
|
|
2801
2549
|
}
|
|
2802
|
-
function
|
|
2803
|
-
let t,
|
|
2804
|
-
if (
|
|
2805
|
-
return t = parseFloat(
|
|
2806
|
-
if (
|
|
2807
|
-
return t = parseInt(
|
|
2808
|
-
if (
|
|
2809
|
-
t = parseInt(
|
|
2810
|
-
const i = parseFloat(
|
|
2811
|
-
return je(t,
|
|
2550
|
+
function no(e) {
|
|
2551
|
+
let t, n, r = O.HH.exec(e);
|
|
2552
|
+
if (r)
|
|
2553
|
+
return t = parseFloat(r[1].replace(",", ".")), je(t) ? t % 24 * Ue : NaN;
|
|
2554
|
+
if (r = O.HHMM.exec(e), r)
|
|
2555
|
+
return t = parseInt(r[1], 10), n = parseFloat(r[2].replace(",", ".")), je(t, n) ? t % 24 * Ue + n * $t : NaN;
|
|
2556
|
+
if (r = O.HHMMSS.exec(e), r) {
|
|
2557
|
+
t = parseInt(r[1], 10), n = parseInt(r[2], 10);
|
|
2558
|
+
const i = parseFloat(r[3].replace(",", "."));
|
|
2559
|
+
return je(t, n, i) ? t % 24 * Ue + n * $t + i * 1e3 : NaN;
|
|
2812
2560
|
}
|
|
2813
2561
|
return null;
|
|
2814
2562
|
}
|
|
2815
|
-
function Zt(e, t,
|
|
2816
|
-
t = t || 0,
|
|
2817
|
-
const
|
|
2818
|
-
|
|
2819
|
-
const i =
|
|
2820
|
-
return
|
|
2563
|
+
function Zt(e, t, n) {
|
|
2564
|
+
t = t || 0, n = n || 0;
|
|
2565
|
+
const r = /* @__PURE__ */ new Date(0);
|
|
2566
|
+
r.setUTCFullYear(e, 0, 4);
|
|
2567
|
+
const i = r.getUTCDay() || 7, s = t * 7 + n + 1 - i;
|
|
2568
|
+
return r.setUTCDate(r.getUTCDate() + s), r;
|
|
2821
2569
|
}
|
|
2822
|
-
const
|
|
2823
|
-
function
|
|
2570
|
+
const ro = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ao = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
2571
|
+
function hn(e) {
|
|
2824
2572
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
2825
2573
|
}
|
|
2826
|
-
function Qt(e, t,
|
|
2574
|
+
function Qt(e, t, n) {
|
|
2827
2575
|
if (t < 0 || t > 11)
|
|
2828
2576
|
return !1;
|
|
2829
|
-
if (
|
|
2830
|
-
if (
|
|
2577
|
+
if (n != null) {
|
|
2578
|
+
if (n < 1)
|
|
2831
2579
|
return !1;
|
|
2832
|
-
const
|
|
2833
|
-
if (
|
|
2580
|
+
const r = hn(e);
|
|
2581
|
+
if (r && n > ao[t] || !r && n > ro[t])
|
|
2834
2582
|
return !1;
|
|
2835
2583
|
}
|
|
2836
2584
|
return !0;
|
|
2837
2585
|
}
|
|
2838
|
-
function
|
|
2586
|
+
function io(e, t) {
|
|
2839
2587
|
if (t < 1)
|
|
2840
2588
|
return !1;
|
|
2841
|
-
const
|
|
2842
|
-
return !(
|
|
2589
|
+
const n = hn(e);
|
|
2590
|
+
return !(n && t > 366 || !n && t > 365);
|
|
2843
2591
|
}
|
|
2844
2592
|
function Kt(e, t) {
|
|
2845
2593
|
return !(e < 0 || e > 52 || t != null && (t < 0 || t > 6));
|
|
2846
2594
|
}
|
|
2847
|
-
function je(e, t,
|
|
2848
|
-
return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) ||
|
|
2595
|
+
function je(e, t, n) {
|
|
2596
|
+
return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
|
|
2849
2597
|
}
|
|
2850
|
-
const
|
|
2851
|
-
function
|
|
2598
|
+
const oo = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
2599
|
+
function so(e, t, n = {}) {
|
|
2852
2600
|
t = String(t);
|
|
2853
|
-
const
|
|
2854
|
-
if (
|
|
2855
|
-
const i = be(
|
|
2856
|
-
t =
|
|
2857
|
-
if (
|
|
2858
|
-
return
|
|
2859
|
-
const d =
|
|
2860
|
-
return
|
|
2601
|
+
const r = t.match(oo);
|
|
2602
|
+
if (r) {
|
|
2603
|
+
const i = be(n.originalDate || e, n);
|
|
2604
|
+
t = r.reduce(function(s, u) {
|
|
2605
|
+
if (u[0] === "'")
|
|
2606
|
+
return s;
|
|
2607
|
+
const d = s.indexOf(u), f = s[d - 1] === "'", m = s.replace(u, "'" + Zi[u[0]](i, u, n) + "'");
|
|
2608
|
+
return f ? m.substring(0, d - 1) + m.substring(d + 1) : m;
|
|
2861
2609
|
}, t);
|
|
2862
2610
|
}
|
|
2863
|
-
return
|
|
2611
|
+
return dn(e, t, n);
|
|
2864
2612
|
}
|
|
2865
|
-
function
|
|
2866
|
-
e = be(e,
|
|
2867
|
-
const
|
|
2868
|
-
return
|
|
2613
|
+
function yn(e, t, n) {
|
|
2614
|
+
e = be(e, n);
|
|
2615
|
+
const r = ce(t, e, !0), i = new Date(e.getTime() - r), s = /* @__PURE__ */ new Date(0);
|
|
2616
|
+
return s.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), s.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), s;
|
|
2869
2617
|
}
|
|
2870
|
-
function
|
|
2871
|
-
return
|
|
2872
|
-
...
|
|
2618
|
+
function co(e, t, n, r) {
|
|
2619
|
+
return r = {
|
|
2620
|
+
...r,
|
|
2873
2621
|
timeZone: t,
|
|
2874
2622
|
originalDate: e
|
|
2875
|
-
},
|
|
2623
|
+
}, so(yn(e, t, { timeZone: r.timeZone }), n, r);
|
|
2876
2624
|
}
|
|
2877
|
-
function
|
|
2878
|
-
if (typeof e == "string" && !e.match(
|
|
2879
|
-
return be(e, { ...
|
|
2880
|
-
e = be(e,
|
|
2881
|
-
const
|
|
2882
|
-
return new Date(
|
|
2625
|
+
function uo(e, t, n) {
|
|
2626
|
+
if (typeof e == "string" && !e.match(fn))
|
|
2627
|
+
return be(e, { ...n, timeZone: t });
|
|
2628
|
+
e = be(e, n);
|
|
2629
|
+
const r = Ze(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = ce(t, new Date(r));
|
|
2630
|
+
return new Date(r + i);
|
|
2883
2631
|
}
|
|
2884
|
-
function
|
|
2885
|
-
return -
|
|
2632
|
+
function gn(e, t) {
|
|
2633
|
+
return -ce(e, t);
|
|
2886
2634
|
}
|
|
2887
|
-
function
|
|
2888
|
-
return
|
|
2635
|
+
function Fo(e) {
|
|
2636
|
+
return dn(e, "yyyy-MM-dd'T'HH:mm:ss.SSSXXX");
|
|
2889
2637
|
}
|
|
2890
2638
|
function Jt(e, t = {}) {
|
|
2891
2639
|
if (!e)
|
|
2892
2640
|
return e;
|
|
2893
|
-
const
|
|
2641
|
+
const n = t.tz || Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
2894
2642
|
try {
|
|
2895
|
-
let
|
|
2896
|
-
t.short && (
|
|
2643
|
+
let r = "MMM dd, yyy hh:mm a";
|
|
2644
|
+
t.short && (r = "MMM dd, yyy"), t.includeTZ && (r += " (z)");
|
|
2897
2645
|
const i = new Date(e);
|
|
2898
|
-
return
|
|
2646
|
+
return co(i, n, r);
|
|
2899
2647
|
} catch {
|
|
2900
2648
|
return console.error("Invalid value passed to formatTime", e), "(invalid date)";
|
|
2901
2649
|
}
|
|
2902
2650
|
}
|
|
2903
|
-
function
|
|
2651
|
+
function Lo(e, t) {
|
|
2904
2652
|
return `${Jt(e.getTime())} - ${Jt(t.getTime(), { includeTZ: !0 })}`;
|
|
2905
2653
|
}
|
|
2906
2654
|
const Te = {
|
|
@@ -2918,101 +2666,101 @@ const Te = {
|
|
|
2918
2666
|
weekly: 60 * 60 * 24 * 7 * 1e3,
|
|
2919
2667
|
trend: 0
|
|
2920
2668
|
};
|
|
2921
|
-
function
|
|
2922
|
-
return e.map((
|
|
2923
|
-
value:
|
|
2924
|
-
label: t.t(`configuration.vitals.reports.granularity.${
|
|
2669
|
+
function Wo(e, t) {
|
|
2670
|
+
return e.map((n) => ({
|
|
2671
|
+
value: n,
|
|
2672
|
+
label: t.t(`configuration.vitals.reports.granularity.${n}`)
|
|
2925
2673
|
}));
|
|
2926
2674
|
}
|
|
2927
|
-
function
|
|
2675
|
+
function lo(e, t) {
|
|
2928
2676
|
return {
|
|
2929
2677
|
duration: e,
|
|
2930
2678
|
type: "duration",
|
|
2931
2679
|
origin: t
|
|
2932
2680
|
};
|
|
2933
2681
|
}
|
|
2934
|
-
function
|
|
2935
|
-
return e &&
|
|
2682
|
+
function qo(e) {
|
|
2683
|
+
return e && en.find((n) => e <= Te[n]) || null;
|
|
2936
2684
|
}
|
|
2937
|
-
function
|
|
2938
|
-
const i = Te[
|
|
2939
|
-
let
|
|
2940
|
-
return i >= Te.daily && (
|
|
2685
|
+
function pn(e, t, n, r) {
|
|
2686
|
+
const i = Te[n];
|
|
2687
|
+
let s = 0;
|
|
2688
|
+
return i >= Te.daily && (r ? s = -gn(r, t) : s = t.getTimezoneOffset() * 60 * 1e3), new Date(e((t.getTime() - s) / i) * i + s);
|
|
2941
2689
|
}
|
|
2942
|
-
function
|
|
2943
|
-
return
|
|
2690
|
+
function mo(e, t, n) {
|
|
2691
|
+
return pn(Math.floor, e, t, n);
|
|
2944
2692
|
}
|
|
2945
|
-
function
|
|
2946
|
-
return
|
|
2693
|
+
function _n(e, t, n) {
|
|
2694
|
+
return pn(Math.ceil, e, t, n);
|
|
2947
2695
|
}
|
|
2948
2696
|
class Ee {
|
|
2949
|
-
constructor(t,
|
|
2697
|
+
constructor(t, n, r) {
|
|
2950
2698
|
b(this, "timeframe");
|
|
2951
2699
|
b(this, "tz");
|
|
2952
2700
|
b(this, "dataGranularity");
|
|
2953
2701
|
if (this.constructor === Ee)
|
|
2954
2702
|
throw new Error("BaseQueryTime is not meant to be used directly.");
|
|
2955
|
-
this.timeframe = t, this.tz =
|
|
2703
|
+
this.timeframe = t, this.tz = n, this.dataGranularity = r ?? t.dataGranularity;
|
|
2956
2704
|
}
|
|
2957
|
-
calculateStartDate(t,
|
|
2705
|
+
calculateStartDate(t, n, r = 1) {
|
|
2958
2706
|
if (t)
|
|
2959
|
-
return new Date(this.endDate().getTime() - this.timeframe.timeframeLengthMs() *
|
|
2707
|
+
return new Date(this.endDate().getTime() - this.timeframe.timeframeLengthMs() * r);
|
|
2960
2708
|
{
|
|
2961
|
-
const i = this.endDate(),
|
|
2962
|
-
return new Date(
|
|
2709
|
+
const i = this.endDate(), s = this.timeframe.rawStart(this.tz), u = mo(s, n, this.tz), f = (i.getTime() - u.getTime()) * (r - 1);
|
|
2710
|
+
return new Date(u.getTime() - f);
|
|
2963
2711
|
}
|
|
2964
2712
|
}
|
|
2965
2713
|
granularitySeconds() {
|
|
2966
2714
|
return Math.floor(this.granularityMs() / 1e3);
|
|
2967
2715
|
}
|
|
2968
2716
|
granularityDruid() {
|
|
2969
|
-
return
|
|
2717
|
+
return lo(this.granularityMs(), this.startDate().toISOString());
|
|
2970
2718
|
}
|
|
2971
2719
|
// Return a UNIX timestamp suitable for use in the `start` query param.
|
|
2972
2720
|
startSeconds() {
|
|
2973
|
-
return
|
|
2721
|
+
return Wt(this.startDate());
|
|
2974
2722
|
}
|
|
2975
2723
|
// Return a UNIX timestamp suitable for use in the `end` query param.
|
|
2976
2724
|
endSeconds() {
|
|
2977
|
-
return
|
|
2725
|
+
return Wt(this.endDate());
|
|
2978
2726
|
}
|
|
2979
2727
|
// Return epoch time in milliseconds, suitable for use in the `startMs` query param.
|
|
2980
2728
|
startMs() {
|
|
2981
|
-
return
|
|
2729
|
+
return Lt(this.startDate());
|
|
2982
2730
|
}
|
|
2983
2731
|
// Return epoch time in milliseconds, suitable for use in the `endMs` query param.
|
|
2984
2732
|
endMs() {
|
|
2985
|
-
return
|
|
2733
|
+
return Lt(this.endDate());
|
|
2986
2734
|
}
|
|
2987
2735
|
}
|
|
2988
|
-
class
|
|
2989
|
-
constructor(
|
|
2990
|
-
super(
|
|
2736
|
+
class Uo extends Ee {
|
|
2737
|
+
constructor(n, r, i, s, u) {
|
|
2738
|
+
super(n, i, s);
|
|
2991
2739
|
b(this, "granularity");
|
|
2992
|
-
|
|
2740
|
+
r && n.allowedGranularities(u).has(r) ? this.granularity = r : u ? this.granularity = n.fineGrainedDefaultGranularity ?? n.defaultResponseGranularity : this.granularity = n.defaultResponseGranularity;
|
|
2993
2741
|
}
|
|
2994
2742
|
startDate() {
|
|
2995
2743
|
return this.calculateStartDate(this.timeframe.isRelative, this.granularity);
|
|
2996
2744
|
}
|
|
2997
2745
|
endDate() {
|
|
2998
|
-
return
|
|
2746
|
+
return _n(this.timeframe.rawEnd(), this.granularity, this.tz);
|
|
2999
2747
|
}
|
|
3000
2748
|
granularityMs() {
|
|
3001
2749
|
return Te[this.granularity];
|
|
3002
2750
|
}
|
|
3003
2751
|
}
|
|
3004
|
-
class
|
|
2752
|
+
class fo extends Ee {
|
|
3005
2753
|
startDate() {
|
|
3006
2754
|
return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity);
|
|
3007
2755
|
}
|
|
3008
2756
|
endDate() {
|
|
3009
|
-
return
|
|
2757
|
+
return _n(this.timeframe.rawEnd(this.tz), this.dataGranularity, this.tz);
|
|
3010
2758
|
}
|
|
3011
2759
|
granularityMs() {
|
|
3012
2760
|
return this.endDate().getTime() - this.startDate().getTime();
|
|
3013
2761
|
}
|
|
3014
2762
|
}
|
|
3015
|
-
class
|
|
2763
|
+
class jo extends fo {
|
|
3016
2764
|
startDate() {
|
|
3017
2765
|
return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity, 2);
|
|
3018
2766
|
}
|
|
@@ -3021,398 +2769,398 @@ class Us extends fs {
|
|
|
3021
2769
|
}
|
|
3022
2770
|
}
|
|
3023
2771
|
var ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3024
|
-
function
|
|
2772
|
+
function ho(e) {
|
|
3025
2773
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3026
2774
|
}
|
|
3027
|
-
var
|
|
3028
|
-
|
|
2775
|
+
var Me = { exports: {} };
|
|
2776
|
+
Me.exports;
|
|
3029
2777
|
(function(e, t) {
|
|
3030
|
-
var
|
|
3031
|
-
w[
|
|
3032
|
-
var
|
|
3033
|
-
function
|
|
3034
|
-
return a.set(
|
|
2778
|
+
var n = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, s = "[object Arguments]", u = "[object Array]", d = "[object Boolean]", f = "[object Date]", m = "[object Error]", _ = "[object Function]", y = "[object GeneratorFunction]", g = "[object Map]", x = "[object Number]", I = "[object Object]", N = "[object Promise]", R = "[object RegExp]", W = "[object Set]", S = "[object String]", T = "[object Symbol]", q = "[object WeakMap]", Ke = "[object ArrayBuffer]", ue = "[object DataView]", Je = "[object Float32Array]", et = "[object Float64Array]", tt = "[object Int8Array]", nt = "[object Int16Array]", rt = "[object Int32Array]", at = "[object Uint8Array]", it = "[object Uint8ClampedArray]", ot = "[object Uint16Array]", st = "[object Uint32Array]", bn = /[\\^$.*+?()[\]{}|]/g, Tn = /\w*$/, Mn = /^\[object .+?Constructor\]$/, Dn = /^(?:0|[1-9]\d*)$/, w = {};
|
|
2779
|
+
w[s] = w[u] = w[Ke] = w[ue] = w[d] = w[f] = w[Je] = w[et] = w[tt] = w[nt] = w[rt] = w[g] = w[x] = w[I] = w[R] = w[W] = w[S] = w[T] = w[at] = w[it] = w[ot] = w[st] = !0, w[m] = w[_] = w[q] = !1;
|
|
2780
|
+
var Sn = typeof ge == "object" && ge && ge.Object === Object && ge, On = typeof self == "object" && self && self.Object === Object && self, k = Sn || On || Function("return this")(), ct = t && !t.nodeType && t, ut = ct && !0 && e && !e.nodeType && e, vn = ut && ut.exports === ct;
|
|
2781
|
+
function En(a, o) {
|
|
2782
|
+
return a.set(o[0], o[1]), a;
|
|
3035
2783
|
}
|
|
3036
|
-
function
|
|
3037
|
-
return a.add(
|
|
2784
|
+
function xn(a, o) {
|
|
2785
|
+
return a.add(o), a;
|
|
3038
2786
|
}
|
|
3039
|
-
function
|
|
3040
|
-
for (var
|
|
2787
|
+
function In(a, o) {
|
|
2788
|
+
for (var c = -1, l = a ? a.length : 0; ++c < l && o(a[c], c, a) !== !1; )
|
|
3041
2789
|
;
|
|
3042
2790
|
return a;
|
|
3043
2791
|
}
|
|
3044
|
-
function
|
|
3045
|
-
for (var
|
|
3046
|
-
a[
|
|
2792
|
+
function Nn(a, o) {
|
|
2793
|
+
for (var c = -1, l = o.length, M = a.length; ++c < l; )
|
|
2794
|
+
a[M + c] = o[c];
|
|
3047
2795
|
return a;
|
|
3048
2796
|
}
|
|
3049
|
-
function lt(a,
|
|
3050
|
-
for (var
|
|
3051
|
-
|
|
3052
|
-
return
|
|
2797
|
+
function lt(a, o, c, l) {
|
|
2798
|
+
for (var M = -1, v = a ? a.length : 0; ++M < v; )
|
|
2799
|
+
c = o(c, a[M], M, a);
|
|
2800
|
+
return c;
|
|
3053
2801
|
}
|
|
3054
|
-
function
|
|
3055
|
-
for (var
|
|
3056
|
-
l[
|
|
2802
|
+
function Pn(a, o) {
|
|
2803
|
+
for (var c = -1, l = Array(a); ++c < a; )
|
|
2804
|
+
l[c] = o(c);
|
|
3057
2805
|
return l;
|
|
3058
2806
|
}
|
|
3059
|
-
function
|
|
3060
|
-
return a == null ? void 0 : a[
|
|
2807
|
+
function Cn(a, o) {
|
|
2808
|
+
return a == null ? void 0 : a[o];
|
|
3061
2809
|
}
|
|
3062
2810
|
function dt(a) {
|
|
3063
|
-
var
|
|
2811
|
+
var o = !1;
|
|
3064
2812
|
if (a != null && typeof a.toString != "function")
|
|
3065
2813
|
try {
|
|
3066
|
-
|
|
2814
|
+
o = !!(a + "");
|
|
3067
2815
|
} catch {
|
|
3068
2816
|
}
|
|
3069
|
-
return
|
|
2817
|
+
return o;
|
|
3070
2818
|
}
|
|
3071
|
-
function
|
|
3072
|
-
var
|
|
3073
|
-
return a.forEach(function(l,
|
|
3074
|
-
|
|
3075
|
-
}),
|
|
3076
|
-
}
|
|
3077
|
-
function xe(a,
|
|
3078
|
-
return function(
|
|
3079
|
-
return a(
|
|
2819
|
+
function mt(a) {
|
|
2820
|
+
var o = -1, c = Array(a.size);
|
|
2821
|
+
return a.forEach(function(l, M) {
|
|
2822
|
+
c[++o] = [M, l];
|
|
2823
|
+
}), c;
|
|
2824
|
+
}
|
|
2825
|
+
function xe(a, o) {
|
|
2826
|
+
return function(c) {
|
|
2827
|
+
return a(o(c));
|
|
3080
2828
|
};
|
|
3081
2829
|
}
|
|
3082
|
-
function
|
|
3083
|
-
var
|
|
2830
|
+
function ft(a) {
|
|
2831
|
+
var o = -1, c = Array(a.size);
|
|
3084
2832
|
return a.forEach(function(l) {
|
|
3085
|
-
|
|
3086
|
-
}),
|
|
2833
|
+
c[++o] = l;
|
|
2834
|
+
}), c;
|
|
3087
2835
|
}
|
|
3088
|
-
var
|
|
3089
|
-
var a = /[^.]+$/.exec(
|
|
2836
|
+
var Rn = Array.prototype, kn = Function.prototype, le = Object.prototype, Ie = k["__core-js_shared__"], ht = function() {
|
|
2837
|
+
var a = /[^.]+$/.exec(Ie && Ie.keys && Ie.keys.IE_PROTO || "");
|
|
3090
2838
|
return a ? "Symbol(src)_1." + a : "";
|
|
3091
|
-
}(), yt =
|
|
3092
|
-
"^" + yt.call(H).replace(
|
|
3093
|
-
), gt =
|
|
2839
|
+
}(), yt = kn.toString, H = le.hasOwnProperty, de = le.toString, Gn = RegExp(
|
|
2840
|
+
"^" + yt.call(H).replace(bn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2841
|
+
), gt = vn ? k.Buffer : void 0, pt = k.Symbol, _t = k.Uint8Array, An = xe(Object.getPrototypeOf, Object), Yn = Object.create, Hn = le.propertyIsEnumerable, Fn = Rn.splice, wt = Object.getOwnPropertySymbols, Ln = gt ? gt.isBuffer : void 0, Wn = xe(Object.keys, Object), Ne = $(k, "DataView"), te = $(k, "Map"), Pe = $(k, "Promise"), Ce = $(k, "Set"), Re = $(k, "WeakMap"), ne = $(Object, "create"), qn = z(Ne), Un = z(te), jn = z(Pe), zn = z(Ce), Bn = z(Re), bt = pt ? pt.prototype : void 0, Tt = bt ? bt.valueOf : void 0;
|
|
3094
2842
|
function U(a) {
|
|
3095
|
-
var
|
|
3096
|
-
for (this.clear(); ++
|
|
3097
|
-
var l = a[
|
|
2843
|
+
var o = -1, c = a ? a.length : 0;
|
|
2844
|
+
for (this.clear(); ++o < c; ) {
|
|
2845
|
+
var l = a[o];
|
|
3098
2846
|
this.set(l[0], l[1]);
|
|
3099
2847
|
}
|
|
3100
2848
|
}
|
|
3101
|
-
function
|
|
3102
|
-
this.__data__ =
|
|
2849
|
+
function Vn() {
|
|
2850
|
+
this.__data__ = ne ? ne(null) : {};
|
|
3103
2851
|
}
|
|
3104
|
-
function
|
|
2852
|
+
function Xn(a) {
|
|
3105
2853
|
return this.has(a) && delete this.__data__[a];
|
|
3106
2854
|
}
|
|
3107
|
-
function
|
|
3108
|
-
var
|
|
3109
|
-
if (
|
|
3110
|
-
var
|
|
3111
|
-
return
|
|
2855
|
+
function $n(a) {
|
|
2856
|
+
var o = this.__data__;
|
|
2857
|
+
if (ne) {
|
|
2858
|
+
var c = o[a];
|
|
2859
|
+
return c === r ? void 0 : c;
|
|
3112
2860
|
}
|
|
3113
|
-
return H.call(
|
|
2861
|
+
return H.call(o, a) ? o[a] : void 0;
|
|
3114
2862
|
}
|
|
3115
|
-
function
|
|
3116
|
-
var
|
|
3117
|
-
return
|
|
2863
|
+
function Zn(a) {
|
|
2864
|
+
var o = this.__data__;
|
|
2865
|
+
return ne ? o[a] !== void 0 : H.call(o, a);
|
|
3118
2866
|
}
|
|
3119
|
-
function
|
|
3120
|
-
var
|
|
3121
|
-
return
|
|
2867
|
+
function Qn(a, o) {
|
|
2868
|
+
var c = this.__data__;
|
|
2869
|
+
return c[a] = ne && o === void 0 ? r : o, this;
|
|
3122
2870
|
}
|
|
3123
|
-
U.prototype.clear =
|
|
3124
|
-
function
|
|
3125
|
-
var
|
|
3126
|
-
for (this.clear(); ++
|
|
3127
|
-
var l = a[
|
|
2871
|
+
U.prototype.clear = Vn, U.prototype.delete = Xn, U.prototype.get = $n, U.prototype.has = Zn, U.prototype.set = Qn;
|
|
2872
|
+
function G(a) {
|
|
2873
|
+
var o = -1, c = a ? a.length : 0;
|
|
2874
|
+
for (this.clear(); ++o < c; ) {
|
|
2875
|
+
var l = a[o];
|
|
3128
2876
|
this.set(l[0], l[1]);
|
|
3129
2877
|
}
|
|
3130
2878
|
}
|
|
3131
|
-
function
|
|
2879
|
+
function Kn() {
|
|
3132
2880
|
this.__data__ = [];
|
|
3133
2881
|
}
|
|
3134
|
-
function
|
|
3135
|
-
var
|
|
3136
|
-
if (
|
|
2882
|
+
function Jn(a) {
|
|
2883
|
+
var o = this.__data__, c = me(o, a);
|
|
2884
|
+
if (c < 0)
|
|
3137
2885
|
return !1;
|
|
3138
|
-
var l =
|
|
3139
|
-
return
|
|
2886
|
+
var l = o.length - 1;
|
|
2887
|
+
return c == l ? o.pop() : Fn.call(o, c, 1), !0;
|
|
3140
2888
|
}
|
|
3141
|
-
function
|
|
3142
|
-
var
|
|
3143
|
-
return
|
|
2889
|
+
function er(a) {
|
|
2890
|
+
var o = this.__data__, c = me(o, a);
|
|
2891
|
+
return c < 0 ? void 0 : o[c][1];
|
|
3144
2892
|
}
|
|
3145
|
-
function
|
|
3146
|
-
return
|
|
2893
|
+
function tr(a) {
|
|
2894
|
+
return me(this.__data__, a) > -1;
|
|
3147
2895
|
}
|
|
3148
|
-
function
|
|
3149
|
-
var
|
|
3150
|
-
return l < 0 ?
|
|
2896
|
+
function nr(a, o) {
|
|
2897
|
+
var c = this.__data__, l = me(c, a);
|
|
2898
|
+
return l < 0 ? c.push([a, o]) : c[l][1] = o, this;
|
|
3151
2899
|
}
|
|
3152
|
-
|
|
3153
|
-
function
|
|
3154
|
-
var
|
|
3155
|
-
for (this.clear(); ++
|
|
3156
|
-
var l = a[
|
|
2900
|
+
G.prototype.clear = Kn, G.prototype.delete = Jn, G.prototype.get = er, G.prototype.has = tr, G.prototype.set = nr;
|
|
2901
|
+
function V(a) {
|
|
2902
|
+
var o = -1, c = a ? a.length : 0;
|
|
2903
|
+
for (this.clear(); ++o < c; ) {
|
|
2904
|
+
var l = a[o];
|
|
3157
2905
|
this.set(l[0], l[1]);
|
|
3158
2906
|
}
|
|
3159
2907
|
}
|
|
3160
|
-
function
|
|
2908
|
+
function rr() {
|
|
3161
2909
|
this.__data__ = {
|
|
3162
2910
|
hash: new U(),
|
|
3163
|
-
map: new (te ||
|
|
2911
|
+
map: new (te || G)(),
|
|
3164
2912
|
string: new U()
|
|
3165
2913
|
};
|
|
3166
2914
|
}
|
|
3167
|
-
function
|
|
3168
|
-
return
|
|
2915
|
+
function ar(a) {
|
|
2916
|
+
return fe(this, a).delete(a);
|
|
3169
2917
|
}
|
|
3170
|
-
function
|
|
3171
|
-
return
|
|
2918
|
+
function ir(a) {
|
|
2919
|
+
return fe(this, a).get(a);
|
|
3172
2920
|
}
|
|
3173
|
-
function
|
|
3174
|
-
return
|
|
2921
|
+
function or(a) {
|
|
2922
|
+
return fe(this, a).has(a);
|
|
3175
2923
|
}
|
|
3176
|
-
function
|
|
3177
|
-
return
|
|
2924
|
+
function sr(a, o) {
|
|
2925
|
+
return fe(this, a).set(a, o), this;
|
|
3178
2926
|
}
|
|
3179
|
-
|
|
2927
|
+
V.prototype.clear = rr, V.prototype.delete = ar, V.prototype.get = ir, V.prototype.has = or, V.prototype.set = sr;
|
|
3180
2928
|
function X(a) {
|
|
3181
|
-
this.__data__ = new
|
|
2929
|
+
this.__data__ = new G(a);
|
|
3182
2930
|
}
|
|
3183
|
-
function
|
|
3184
|
-
this.__data__ = new
|
|
2931
|
+
function cr() {
|
|
2932
|
+
this.__data__ = new G();
|
|
3185
2933
|
}
|
|
3186
|
-
function
|
|
2934
|
+
function ur(a) {
|
|
3187
2935
|
return this.__data__.delete(a);
|
|
3188
2936
|
}
|
|
3189
|
-
function
|
|
2937
|
+
function lr(a) {
|
|
3190
2938
|
return this.__data__.get(a);
|
|
3191
2939
|
}
|
|
3192
|
-
function
|
|
2940
|
+
function dr(a) {
|
|
3193
2941
|
return this.__data__.has(a);
|
|
3194
2942
|
}
|
|
3195
|
-
function
|
|
3196
|
-
var
|
|
3197
|
-
if (
|
|
3198
|
-
var l =
|
|
3199
|
-
if (!te || l.length <
|
|
3200
|
-
return l.push([a,
|
|
3201
|
-
|
|
2943
|
+
function mr(a, o) {
|
|
2944
|
+
var c = this.__data__;
|
|
2945
|
+
if (c instanceof G) {
|
|
2946
|
+
var l = c.__data__;
|
|
2947
|
+
if (!te || l.length < n - 1)
|
|
2948
|
+
return l.push([a, o]), this;
|
|
2949
|
+
c = this.__data__ = new V(l);
|
|
3202
2950
|
}
|
|
3203
|
-
return
|
|
2951
|
+
return c.set(a, o), this;
|
|
3204
2952
|
}
|
|
3205
|
-
X.prototype.clear =
|
|
3206
|
-
function
|
|
3207
|
-
var
|
|
2953
|
+
X.prototype.clear = cr, X.prototype.delete = ur, X.prototype.get = lr, X.prototype.has = dr, X.prototype.set = mr;
|
|
2954
|
+
function fr(a, o) {
|
|
2955
|
+
var c = Ae(a) || Yr(a) ? Pn(a.length, String) : [], l = c.length, M = !!l;
|
|
3208
2956
|
for (var v in a)
|
|
3209
|
-
H.call(a, v) && !(
|
|
3210
|
-
return
|
|
2957
|
+
H.call(a, v) && !(M && (v == "length" || Rr(v, l))) && c.push(v);
|
|
2958
|
+
return c;
|
|
3211
2959
|
}
|
|
3212
|
-
function
|
|
3213
|
-
var l = a[
|
|
3214
|
-
(!(H.call(a,
|
|
2960
|
+
function Mt(a, o, c) {
|
|
2961
|
+
var l = a[o];
|
|
2962
|
+
(!(H.call(a, o) && vt(l, c)) || c === void 0 && !(o in a)) && (a[o] = c);
|
|
3215
2963
|
}
|
|
3216
|
-
function
|
|
3217
|
-
for (var
|
|
3218
|
-
if (vt(a[
|
|
3219
|
-
return
|
|
2964
|
+
function me(a, o) {
|
|
2965
|
+
for (var c = a.length; c--; )
|
|
2966
|
+
if (vt(a[c][0], o))
|
|
2967
|
+
return c;
|
|
3220
2968
|
return -1;
|
|
3221
2969
|
}
|
|
3222
|
-
function
|
|
3223
|
-
return a &&
|
|
2970
|
+
function hr(a, o) {
|
|
2971
|
+
return a && Dt(o, Ye(o), a);
|
|
3224
2972
|
}
|
|
3225
|
-
function ke(a,
|
|
2973
|
+
function ke(a, o, c, l, M, v, A) {
|
|
3226
2974
|
var E;
|
|
3227
|
-
if (l && (E = v ? l(a,
|
|
2975
|
+
if (l && (E = v ? l(a, M, v, A) : l(a)), E !== void 0)
|
|
3228
2976
|
return E;
|
|
3229
|
-
if (!
|
|
2977
|
+
if (!he(a))
|
|
3230
2978
|
return a;
|
|
3231
|
-
var
|
|
3232
|
-
if (
|
|
3233
|
-
if (E =
|
|
3234
|
-
return
|
|
2979
|
+
var It = Ae(a);
|
|
2980
|
+
if (It) {
|
|
2981
|
+
if (E = Nr(a), !o)
|
|
2982
|
+
return Er(a, E);
|
|
3235
2983
|
} else {
|
|
3236
|
-
var Z = j(a),
|
|
3237
|
-
if (
|
|
3238
|
-
return
|
|
3239
|
-
if (Z ==
|
|
2984
|
+
var Z = j(a), Nt = Z == _ || Z == y;
|
|
2985
|
+
if (Fr(a))
|
|
2986
|
+
return br(a, o);
|
|
2987
|
+
if (Z == I || Z == s || Nt && !v) {
|
|
3240
2988
|
if (dt(a))
|
|
3241
2989
|
return v ? a : {};
|
|
3242
|
-
if (E =
|
|
3243
|
-
return
|
|
2990
|
+
if (E = Pr(Nt ? {} : a), !o)
|
|
2991
|
+
return xr(a, hr(E, a));
|
|
3244
2992
|
} else {
|
|
3245
2993
|
if (!w[Z])
|
|
3246
2994
|
return v ? a : {};
|
|
3247
|
-
E =
|
|
2995
|
+
E = Cr(a, Z, ke, o);
|
|
3248
2996
|
}
|
|
3249
2997
|
}
|
|
3250
|
-
|
|
3251
|
-
var
|
|
3252
|
-
if (
|
|
3253
|
-
return
|
|
3254
|
-
if (
|
|
3255
|
-
var Ct =
|
|
3256
|
-
return
|
|
3257
|
-
Ct && (ye = He, He = a[ye]),
|
|
2998
|
+
A || (A = new X());
|
|
2999
|
+
var Pt = A.get(a);
|
|
3000
|
+
if (Pt)
|
|
3001
|
+
return Pt;
|
|
3002
|
+
if (A.set(a, E), !It)
|
|
3003
|
+
var Ct = c ? Ir(a) : Ye(a);
|
|
3004
|
+
return In(Ct || a, function(He, ye) {
|
|
3005
|
+
Ct && (ye = He, He = a[ye]), Mt(E, ye, ke(He, o, c, l, ye, a, A));
|
|
3258
3006
|
}), E;
|
|
3259
3007
|
}
|
|
3260
|
-
function
|
|
3261
|
-
return
|
|
3008
|
+
function yr(a) {
|
|
3009
|
+
return he(a) ? Yn(a) : {};
|
|
3262
3010
|
}
|
|
3263
|
-
function
|
|
3264
|
-
var l =
|
|
3265
|
-
return
|
|
3011
|
+
function gr(a, o, c) {
|
|
3012
|
+
var l = o(a);
|
|
3013
|
+
return Ae(a) ? l : Nn(l, c(a));
|
|
3266
3014
|
}
|
|
3267
|
-
function
|
|
3015
|
+
function pr(a) {
|
|
3268
3016
|
return de.call(a);
|
|
3269
3017
|
}
|
|
3270
|
-
function
|
|
3271
|
-
if (!
|
|
3018
|
+
function _r(a) {
|
|
3019
|
+
if (!he(a) || Gr(a))
|
|
3272
3020
|
return !1;
|
|
3273
|
-
var
|
|
3274
|
-
return
|
|
3275
|
-
}
|
|
3276
|
-
function
|
|
3277
|
-
if (!
|
|
3278
|
-
return
|
|
3279
|
-
var
|
|
3280
|
-
for (var
|
|
3281
|
-
H.call(a,
|
|
3282
|
-
return
|
|
3283
|
-
}
|
|
3284
|
-
function
|
|
3285
|
-
if (
|
|
3021
|
+
var o = xt(a) || dt(a) ? Gn : Mn;
|
|
3022
|
+
return o.test(z(a));
|
|
3023
|
+
}
|
|
3024
|
+
function wr(a) {
|
|
3025
|
+
if (!Ot(a))
|
|
3026
|
+
return Wn(a);
|
|
3027
|
+
var o = [];
|
|
3028
|
+
for (var c in Object(a))
|
|
3029
|
+
H.call(a, c) && c != "constructor" && o.push(c);
|
|
3030
|
+
return o;
|
|
3031
|
+
}
|
|
3032
|
+
function br(a, o) {
|
|
3033
|
+
if (o)
|
|
3286
3034
|
return a.slice();
|
|
3287
|
-
var
|
|
3288
|
-
return a.copy(
|
|
3035
|
+
var c = new a.constructor(a.length);
|
|
3036
|
+
return a.copy(c), c;
|
|
3289
3037
|
}
|
|
3290
|
-
function
|
|
3291
|
-
var
|
|
3292
|
-
return new _t(
|
|
3038
|
+
function Ge(a) {
|
|
3039
|
+
var o = new a.constructor(a.byteLength);
|
|
3040
|
+
return new _t(o).set(new _t(a)), o;
|
|
3293
3041
|
}
|
|
3294
|
-
function
|
|
3295
|
-
var
|
|
3296
|
-
return new a.constructor(
|
|
3042
|
+
function Tr(a, o) {
|
|
3043
|
+
var c = o ? Ge(a.buffer) : a.buffer;
|
|
3044
|
+
return new a.constructor(c, a.byteOffset, a.byteLength);
|
|
3297
3045
|
}
|
|
3298
|
-
function
|
|
3299
|
-
var l =
|
|
3300
|
-
return lt(l,
|
|
3046
|
+
function Mr(a, o, c) {
|
|
3047
|
+
var l = o ? c(mt(a), !0) : mt(a);
|
|
3048
|
+
return lt(l, En, new a.constructor());
|
|
3301
3049
|
}
|
|
3302
|
-
function
|
|
3303
|
-
var
|
|
3304
|
-
return
|
|
3050
|
+
function Dr(a) {
|
|
3051
|
+
var o = new a.constructor(a.source, Tn.exec(a));
|
|
3052
|
+
return o.lastIndex = a.lastIndex, o;
|
|
3305
3053
|
}
|
|
3306
|
-
function
|
|
3307
|
-
var l =
|
|
3308
|
-
return lt(l,
|
|
3054
|
+
function Sr(a, o, c) {
|
|
3055
|
+
var l = o ? c(ft(a), !0) : ft(a);
|
|
3056
|
+
return lt(l, xn, new a.constructor());
|
|
3309
3057
|
}
|
|
3310
|
-
function
|
|
3058
|
+
function Or(a) {
|
|
3311
3059
|
return Tt ? Object(Tt.call(a)) : {};
|
|
3312
3060
|
}
|
|
3313
|
-
function
|
|
3314
|
-
var
|
|
3315
|
-
return new a.constructor(
|
|
3316
|
-
}
|
|
3317
|
-
function
|
|
3318
|
-
var
|
|
3319
|
-
for (
|
|
3320
|
-
|
|
3321
|
-
return
|
|
3322
|
-
}
|
|
3323
|
-
function
|
|
3324
|
-
|
|
3325
|
-
for (var
|
|
3326
|
-
var
|
|
3327
|
-
|
|
3061
|
+
function vr(a, o) {
|
|
3062
|
+
var c = o ? Ge(a.buffer) : a.buffer;
|
|
3063
|
+
return new a.constructor(c, a.byteOffset, a.length);
|
|
3064
|
+
}
|
|
3065
|
+
function Er(a, o) {
|
|
3066
|
+
var c = -1, l = a.length;
|
|
3067
|
+
for (o || (o = Array(l)); ++c < l; )
|
|
3068
|
+
o[c] = a[c];
|
|
3069
|
+
return o;
|
|
3070
|
+
}
|
|
3071
|
+
function Dt(a, o, c, l) {
|
|
3072
|
+
c || (c = {});
|
|
3073
|
+
for (var M = -1, v = o.length; ++M < v; ) {
|
|
3074
|
+
var A = o[M], E = void 0;
|
|
3075
|
+
Mt(c, A, E === void 0 ? a[A] : E);
|
|
3328
3076
|
}
|
|
3329
|
-
return
|
|
3077
|
+
return c;
|
|
3330
3078
|
}
|
|
3331
|
-
function
|
|
3332
|
-
return
|
|
3079
|
+
function xr(a, o) {
|
|
3080
|
+
return Dt(a, St(a), o);
|
|
3333
3081
|
}
|
|
3334
|
-
function
|
|
3335
|
-
return
|
|
3082
|
+
function Ir(a) {
|
|
3083
|
+
return gr(a, Ye, St);
|
|
3336
3084
|
}
|
|
3337
|
-
function
|
|
3338
|
-
var
|
|
3339
|
-
return
|
|
3085
|
+
function fe(a, o) {
|
|
3086
|
+
var c = a.__data__;
|
|
3087
|
+
return kr(o) ? c[typeof o == "string" ? "string" : "hash"] : c.map;
|
|
3340
3088
|
}
|
|
3341
|
-
function $(a,
|
|
3342
|
-
var
|
|
3343
|
-
return
|
|
3089
|
+
function $(a, o) {
|
|
3090
|
+
var c = Cn(a, o);
|
|
3091
|
+
return _r(c) ? c : void 0;
|
|
3344
3092
|
}
|
|
3345
|
-
var
|
|
3346
|
-
(
|
|
3347
|
-
var
|
|
3093
|
+
var St = wt ? xe(wt, Object) : qr, j = pr;
|
|
3094
|
+
(Ne && j(new Ne(new ArrayBuffer(1))) != ue || te && j(new te()) != g || Pe && j(Pe.resolve()) != N || Ce && j(new Ce()) != W || Re && j(new Re()) != q) && (j = function(a) {
|
|
3095
|
+
var o = de.call(a), c = o == I ? a.constructor : void 0, l = c ? z(c) : void 0;
|
|
3348
3096
|
if (l)
|
|
3349
3097
|
switch (l) {
|
|
3350
|
-
case
|
|
3351
|
-
return
|
|
3352
|
-
case
|
|
3098
|
+
case qn:
|
|
3099
|
+
return ue;
|
|
3100
|
+
case Un:
|
|
3353
3101
|
return g;
|
|
3354
|
-
case
|
|
3355
|
-
return
|
|
3356
|
-
case
|
|
3357
|
-
return
|
|
3358
|
-
case
|
|
3102
|
+
case jn:
|
|
3103
|
+
return N;
|
|
3104
|
+
case zn:
|
|
3105
|
+
return W;
|
|
3106
|
+
case Bn:
|
|
3359
3107
|
return q;
|
|
3360
3108
|
}
|
|
3361
|
-
return
|
|
3109
|
+
return o;
|
|
3362
3110
|
});
|
|
3363
|
-
function
|
|
3364
|
-
var
|
|
3365
|
-
return
|
|
3111
|
+
function Nr(a) {
|
|
3112
|
+
var o = a.length, c = a.constructor(o);
|
|
3113
|
+
return o && typeof a[0] == "string" && H.call(a, "index") && (c.index = a.index, c.input = a.input), c;
|
|
3366
3114
|
}
|
|
3367
|
-
function
|
|
3368
|
-
return typeof a.constructor == "function" && !
|
|
3115
|
+
function Pr(a) {
|
|
3116
|
+
return typeof a.constructor == "function" && !Ot(a) ? yr(An(a)) : {};
|
|
3369
3117
|
}
|
|
3370
|
-
function
|
|
3371
|
-
var
|
|
3372
|
-
switch (
|
|
3118
|
+
function Cr(a, o, c, l) {
|
|
3119
|
+
var M = a.constructor;
|
|
3120
|
+
switch (o) {
|
|
3373
3121
|
case Ke:
|
|
3374
|
-
return
|
|
3122
|
+
return Ge(a);
|
|
3375
3123
|
case d:
|
|
3376
|
-
case
|
|
3377
|
-
return new
|
|
3378
|
-
case
|
|
3379
|
-
return
|
|
3124
|
+
case f:
|
|
3125
|
+
return new M(+a);
|
|
3126
|
+
case ue:
|
|
3127
|
+
return Tr(a, l);
|
|
3380
3128
|
case Je:
|
|
3381
3129
|
case et:
|
|
3382
3130
|
case tt:
|
|
3383
|
-
case rt:
|
|
3384
3131
|
case nt:
|
|
3132
|
+
case rt:
|
|
3385
3133
|
case at:
|
|
3386
3134
|
case it:
|
|
3387
|
-
case st:
|
|
3388
3135
|
case ot:
|
|
3389
|
-
|
|
3136
|
+
case st:
|
|
3137
|
+
return vr(a, l);
|
|
3390
3138
|
case g:
|
|
3391
|
-
return
|
|
3139
|
+
return Mr(a, l, c);
|
|
3392
3140
|
case x:
|
|
3393
|
-
case
|
|
3394
|
-
return new
|
|
3141
|
+
case S:
|
|
3142
|
+
return new M(a);
|
|
3395
3143
|
case R:
|
|
3396
|
-
return
|
|
3397
|
-
case
|
|
3398
|
-
return
|
|
3144
|
+
return Dr(a);
|
|
3145
|
+
case W:
|
|
3146
|
+
return Sr(a, l, c);
|
|
3399
3147
|
case T:
|
|
3400
|
-
return
|
|
3148
|
+
return Or(a);
|
|
3401
3149
|
}
|
|
3402
3150
|
}
|
|
3403
|
-
function
|
|
3404
|
-
return
|
|
3151
|
+
function Rr(a, o) {
|
|
3152
|
+
return o = o ?? i, !!o && (typeof a == "number" || Dn.test(a)) && a > -1 && a % 1 == 0 && a < o;
|
|
3405
3153
|
}
|
|
3406
|
-
function
|
|
3407
|
-
var
|
|
3408
|
-
return
|
|
3154
|
+
function kr(a) {
|
|
3155
|
+
var o = typeof a;
|
|
3156
|
+
return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? a !== "__proto__" : a === null;
|
|
3409
3157
|
}
|
|
3410
|
-
function
|
|
3411
|
-
return !!
|
|
3158
|
+
function Gr(a) {
|
|
3159
|
+
return !!ht && ht in a;
|
|
3412
3160
|
}
|
|
3413
|
-
function
|
|
3414
|
-
var
|
|
3415
|
-
return a ===
|
|
3161
|
+
function Ot(a) {
|
|
3162
|
+
var o = a && a.constructor, c = typeof o == "function" && o.prototype || le;
|
|
3163
|
+
return a === c;
|
|
3416
3164
|
}
|
|
3417
3165
|
function z(a) {
|
|
3418
3166
|
if (a != null) {
|
|
@@ -3427,51 +3175,51 @@ De.exports;
|
|
|
3427
3175
|
}
|
|
3428
3176
|
return "";
|
|
3429
3177
|
}
|
|
3430
|
-
function
|
|
3178
|
+
function Ar(a) {
|
|
3431
3179
|
return ke(a, !0, !0);
|
|
3432
3180
|
}
|
|
3433
|
-
function vt(a,
|
|
3434
|
-
return a ===
|
|
3181
|
+
function vt(a, o) {
|
|
3182
|
+
return a === o || a !== a && o !== o;
|
|
3435
3183
|
}
|
|
3436
|
-
function
|
|
3437
|
-
return
|
|
3184
|
+
function Yr(a) {
|
|
3185
|
+
return Hr(a) && H.call(a, "callee") && (!Hn.call(a, "callee") || de.call(a) == s);
|
|
3438
3186
|
}
|
|
3439
|
-
var
|
|
3187
|
+
var Ae = Array.isArray;
|
|
3440
3188
|
function Et(a) {
|
|
3441
|
-
return a != null &&
|
|
3189
|
+
return a != null && Lr(a.length) && !xt(a);
|
|
3442
3190
|
}
|
|
3443
|
-
function
|
|
3444
|
-
return
|
|
3191
|
+
function Hr(a) {
|
|
3192
|
+
return Wr(a) && Et(a);
|
|
3445
3193
|
}
|
|
3446
|
-
var
|
|
3194
|
+
var Fr = Ln || Ur;
|
|
3447
3195
|
function xt(a) {
|
|
3448
|
-
var
|
|
3449
|
-
return
|
|
3196
|
+
var o = he(a) ? de.call(a) : "";
|
|
3197
|
+
return o == _ || o == y;
|
|
3450
3198
|
}
|
|
3451
|
-
function
|
|
3199
|
+
function Lr(a) {
|
|
3452
3200
|
return typeof a == "number" && a > -1 && a % 1 == 0 && a <= i;
|
|
3453
3201
|
}
|
|
3454
|
-
function
|
|
3455
|
-
var
|
|
3456
|
-
return !!a && (
|
|
3202
|
+
function he(a) {
|
|
3203
|
+
var o = typeof a;
|
|
3204
|
+
return !!a && (o == "object" || o == "function");
|
|
3457
3205
|
}
|
|
3458
|
-
function
|
|
3206
|
+
function Wr(a) {
|
|
3459
3207
|
return !!a && typeof a == "object";
|
|
3460
3208
|
}
|
|
3461
|
-
function
|
|
3462
|
-
return Et(a) ?
|
|
3209
|
+
function Ye(a) {
|
|
3210
|
+
return Et(a) ? fr(a) : wr(a);
|
|
3463
3211
|
}
|
|
3464
|
-
function
|
|
3212
|
+
function qr() {
|
|
3465
3213
|
return [];
|
|
3466
3214
|
}
|
|
3467
|
-
function
|
|
3215
|
+
function Ur() {
|
|
3468
3216
|
return !1;
|
|
3469
3217
|
}
|
|
3470
|
-
e.exports =
|
|
3471
|
-
})(
|
|
3472
|
-
var
|
|
3473
|
-
const
|
|
3474
|
-
class
|
|
3218
|
+
e.exports = Ar;
|
|
3219
|
+
})(Me, Me.exports);
|
|
3220
|
+
var yo = Me.exports;
|
|
3221
|
+
const go = /* @__PURE__ */ ho(yo), ee = (e, t) => new Date(e.getTime() - gn(t, e));
|
|
3222
|
+
class P {
|
|
3475
3223
|
constructor(t) {
|
|
3476
3224
|
b(this, "timeframeText");
|
|
3477
3225
|
b(this, "key");
|
|
@@ -3518,8 +3266,8 @@ class I {
|
|
|
3518
3266
|
allowedGranularities(t) {
|
|
3519
3267
|
if (this._allowedGranularitiesOverride && t)
|
|
3520
3268
|
return new Set(this._allowedGranularitiesOverride);
|
|
3521
|
-
const
|
|
3522
|
-
return
|
|
3269
|
+
const n = /* @__PURE__ */ new Set(), r = this.maximumTimeframeLength() / 3600;
|
|
3270
|
+
return r <= 6 && n.add("minutely"), r >= 2 && r <= 7 * 24 && n.add("hourly"), r >= 2 * 24 && n.add("daily"), r >= 2 * 24 * 14 && n.add("weekly"), n;
|
|
3523
3271
|
}
|
|
3524
3272
|
cacheKey() {
|
|
3525
3273
|
return this.key !== "custom" ? this.key : `${this.rawStart().toISOString()}-${this.rawEnd().toISOString()}`;
|
|
@@ -3539,56 +3287,56 @@ class I {
|
|
|
3539
3287
|
tzAdjustedDate(t) {
|
|
3540
3288
|
if (!t)
|
|
3541
3289
|
return /* @__PURE__ */ new Date();
|
|
3542
|
-
const
|
|
3543
|
-
return
|
|
3290
|
+
const n = uo(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
3291
|
+
return yn(n, t);
|
|
3544
3292
|
}
|
|
3545
3293
|
}
|
|
3546
|
-
class
|
|
3294
|
+
class po extends P {
|
|
3547
3295
|
rawStart(t) {
|
|
3548
|
-
let
|
|
3549
|
-
return t && (
|
|
3296
|
+
let n = Y(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
3297
|
+
return t && (n = ee(n, t)), n;
|
|
3550
3298
|
}
|
|
3551
3299
|
maximumTimeframeLength() {
|
|
3552
3300
|
return 60 * 60 * 24 * 7;
|
|
3553
3301
|
}
|
|
3554
3302
|
}
|
|
3555
|
-
class
|
|
3303
|
+
class _o extends P {
|
|
3556
3304
|
rawStart(t) {
|
|
3557
|
-
let
|
|
3558
|
-
return t && (
|
|
3305
|
+
let n = J(this.tzAdjustedDate(t));
|
|
3306
|
+
return t && (n = ee(n, t)), n;
|
|
3559
3307
|
}
|
|
3560
3308
|
maximumTimeframeLength() {
|
|
3561
3309
|
return 60 * 60 * 24 * 31;
|
|
3562
3310
|
}
|
|
3563
3311
|
}
|
|
3564
|
-
class
|
|
3312
|
+
class wo extends P {
|
|
3565
3313
|
rawEnd(t) {
|
|
3566
|
-
let
|
|
3567
|
-
return t && (
|
|
3314
|
+
let n = Y(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
3315
|
+
return t && (n = ee(n, t)), n;
|
|
3568
3316
|
}
|
|
3569
3317
|
rawStart(t) {
|
|
3570
|
-
const
|
|
3571
|
-
let
|
|
3318
|
+
const n = this.tzAdjustedDate(t);
|
|
3319
|
+
let r = Y(n.setDate(n.getDate() - 7), {
|
|
3572
3320
|
weekStartsOn: 1
|
|
3573
3321
|
});
|
|
3574
|
-
return t && (
|
|
3322
|
+
return t && (r = ee(r, t)), r;
|
|
3575
3323
|
}
|
|
3576
3324
|
}
|
|
3577
|
-
class
|
|
3325
|
+
class bo extends P {
|
|
3578
3326
|
rawEnd(t) {
|
|
3579
|
-
let
|
|
3580
|
-
return t && (
|
|
3327
|
+
let n = J(this.tzAdjustedDate(t));
|
|
3328
|
+
return t && (n = ee(n, t)), n;
|
|
3581
3329
|
}
|
|
3582
3330
|
rawStart(t) {
|
|
3583
|
-
let
|
|
3584
|
-
return t && (
|
|
3331
|
+
let n = J(mn(this.tzAdjustedDate(t)));
|
|
3332
|
+
return t && (n = ee(n, t)), n;
|
|
3585
3333
|
}
|
|
3586
3334
|
}
|
|
3587
|
-
const
|
|
3335
|
+
const To = /* @__PURE__ */ new Map([
|
|
3588
3336
|
[
|
|
3589
|
-
|
|
3590
|
-
new
|
|
3591
|
-
key:
|
|
3337
|
+
h.FIFTEEN_MIN,
|
|
3338
|
+
new P({
|
|
3339
|
+
key: h.FIFTEEN_MIN,
|
|
3592
3340
|
display: "Last 15 minutes",
|
|
3593
3341
|
timeframeText: "15 minutes",
|
|
3594
3342
|
timeframeLength: () => 60 * 15,
|
|
@@ -3601,9 +3349,9 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3601
3349
|
})
|
|
3602
3350
|
],
|
|
3603
3351
|
[
|
|
3604
|
-
|
|
3605
|
-
new
|
|
3606
|
-
key:
|
|
3352
|
+
h.ONE_HOUR,
|
|
3353
|
+
new P({
|
|
3354
|
+
key: h.ONE_HOUR,
|
|
3607
3355
|
display: "Last hour",
|
|
3608
3356
|
timeframeText: "One hour",
|
|
3609
3357
|
timeframeLength: () => 60 * 60 * 1,
|
|
@@ -3616,9 +3364,9 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3616
3364
|
})
|
|
3617
3365
|
],
|
|
3618
3366
|
[
|
|
3619
|
-
|
|
3620
|
-
new
|
|
3621
|
-
key:
|
|
3367
|
+
h.SIX_HOUR,
|
|
3368
|
+
new P({
|
|
3369
|
+
key: h.SIX_HOUR,
|
|
3622
3370
|
display: "Last 6 hours",
|
|
3623
3371
|
timeframeText: "6 hours",
|
|
3624
3372
|
timeframeLength: () => 60 * 60 * 6,
|
|
@@ -3631,9 +3379,9 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3631
3379
|
})
|
|
3632
3380
|
],
|
|
3633
3381
|
[
|
|
3634
|
-
|
|
3635
|
-
new
|
|
3636
|
-
key:
|
|
3382
|
+
h.TWELVE_HOUR,
|
|
3383
|
+
new P({
|
|
3384
|
+
key: h.TWELVE_HOUR,
|
|
3637
3385
|
display: "Last 12 hours",
|
|
3638
3386
|
timeframeText: "12 hours",
|
|
3639
3387
|
timeframeLength: () => 60 * 60 * 12,
|
|
@@ -3646,9 +3394,9 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3646
3394
|
})
|
|
3647
3395
|
],
|
|
3648
3396
|
[
|
|
3649
|
-
|
|
3650
|
-
new
|
|
3651
|
-
key:
|
|
3397
|
+
h.ONE_DAY,
|
|
3398
|
+
new P({
|
|
3399
|
+
key: h.ONE_DAY,
|
|
3652
3400
|
display: "Last 24 hours",
|
|
3653
3401
|
timeframeText: "24 hours",
|
|
3654
3402
|
timeframeLength: () => 60 * 60 * 24,
|
|
@@ -3661,9 +3409,9 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3661
3409
|
})
|
|
3662
3410
|
],
|
|
3663
3411
|
[
|
|
3664
|
-
|
|
3665
|
-
new
|
|
3666
|
-
key:
|
|
3412
|
+
h.SEVEN_DAY,
|
|
3413
|
+
new P({
|
|
3414
|
+
key: h.SEVEN_DAY,
|
|
3667
3415
|
display: "Last 7 days",
|
|
3668
3416
|
timeframeText: "7 days",
|
|
3669
3417
|
timeframeLength: () => 60 * 60 * 24 * 7,
|
|
@@ -3676,9 +3424,9 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3676
3424
|
})
|
|
3677
3425
|
],
|
|
3678
3426
|
[
|
|
3679
|
-
|
|
3680
|
-
new
|
|
3681
|
-
key:
|
|
3427
|
+
h.THIRTY_DAY,
|
|
3428
|
+
new P({
|
|
3429
|
+
key: h.THIRTY_DAY,
|
|
3682
3430
|
display: "Last 30 days",
|
|
3683
3431
|
timeframeText: "30 days",
|
|
3684
3432
|
timeframeLength: () => 60 * 60 * 24 * 30,
|
|
@@ -3691,13 +3439,13 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3691
3439
|
})
|
|
3692
3440
|
],
|
|
3693
3441
|
[
|
|
3694
|
-
|
|
3695
|
-
new
|
|
3696
|
-
key:
|
|
3442
|
+
h.CURRENT_WEEK,
|
|
3443
|
+
new po({
|
|
3444
|
+
key: h.CURRENT_WEEK,
|
|
3697
3445
|
display: "This week",
|
|
3698
3446
|
timeframeText: "Week",
|
|
3699
3447
|
timeframeLength: () => {
|
|
3700
|
-
const e =
|
|
3448
|
+
const e = Y(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
|
|
3701
3449
|
return (_e(kt(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
3702
3450
|
},
|
|
3703
3451
|
defaultResponseGranularity: "daily",
|
|
@@ -3709,9 +3457,9 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3709
3457
|
})
|
|
3710
3458
|
],
|
|
3711
3459
|
[
|
|
3712
|
-
|
|
3713
|
-
new
|
|
3714
|
-
key:
|
|
3460
|
+
h.CURRENT_MONTH,
|
|
3461
|
+
new _o({
|
|
3462
|
+
key: h.CURRENT_MONTH,
|
|
3715
3463
|
display: "This month",
|
|
3716
3464
|
timeframeText: "Month",
|
|
3717
3465
|
timeframeLength: () => {
|
|
@@ -3725,9 +3473,9 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3725
3473
|
})
|
|
3726
3474
|
],
|
|
3727
3475
|
[
|
|
3728
|
-
|
|
3729
|
-
new
|
|
3730
|
-
key:
|
|
3476
|
+
h.PREVIOUS_WEEK,
|
|
3477
|
+
new wo({
|
|
3478
|
+
key: h.PREVIOUS_WEEK,
|
|
3731
3479
|
display: "Previous week",
|
|
3732
3480
|
timeframeText: "Week",
|
|
3733
3481
|
timeframeLength: () => 60 * 60 * 24 * 7,
|
|
@@ -3740,15 +3488,15 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3740
3488
|
})
|
|
3741
3489
|
],
|
|
3742
3490
|
[
|
|
3743
|
-
|
|
3744
|
-
new
|
|
3745
|
-
key:
|
|
3491
|
+
h.PREVIOUS_MONTH,
|
|
3492
|
+
new bo({
|
|
3493
|
+
key: h.PREVIOUS_MONTH,
|
|
3746
3494
|
display: "Previous month",
|
|
3747
3495
|
timeframeText: "Month",
|
|
3748
3496
|
timeframeLength: () => {
|
|
3749
3497
|
let e = 0;
|
|
3750
|
-
const t = J(/* @__PURE__ */ new Date()),
|
|
3751
|
-
return t.getTimezoneOffset() !==
|
|
3498
|
+
const t = J(/* @__PURE__ */ new Date()), n = J(mn(/* @__PURE__ */ new Date()));
|
|
3499
|
+
return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = Mo(t, n)), 60 * 60 * 24 * Ci((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + ki(e);
|
|
3752
3500
|
},
|
|
3753
3501
|
defaultResponseGranularity: "daily",
|
|
3754
3502
|
dataGranularity: "daily",
|
|
@@ -3757,29 +3505,29 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3757
3505
|
})
|
|
3758
3506
|
]
|
|
3759
3507
|
]);
|
|
3760
|
-
function
|
|
3761
|
-
const t = new Date(e.start),
|
|
3762
|
-
return e.timePeriodsKey &&
|
|
3508
|
+
function zo(e) {
|
|
3509
|
+
const t = new Date(e.start), n = new Date(e.end), r = (n.getTime() - t.getTime()) / 1e3;
|
|
3510
|
+
return e.timePeriodsKey && go(To.get(e.timePeriodsKey)) || new P({
|
|
3763
3511
|
key: "custom",
|
|
3764
3512
|
timeframeText: "custom",
|
|
3765
3513
|
display: "custom",
|
|
3766
3514
|
startCustom: t,
|
|
3767
|
-
endCustom:
|
|
3768
|
-
timeframeLength: () =>
|
|
3515
|
+
endCustom: n,
|
|
3516
|
+
timeframeLength: () => r,
|
|
3769
3517
|
defaultResponseGranularity: "daily",
|
|
3770
3518
|
dataGranularity: "daily",
|
|
3771
3519
|
isRelative: !1,
|
|
3772
3520
|
allowedTiers: ["free", "plus", "enterprise"]
|
|
3773
3521
|
});
|
|
3774
3522
|
}
|
|
3775
|
-
function
|
|
3523
|
+
function Bo(e) {
|
|
3776
3524
|
return {
|
|
3777
3525
|
...e.key !== "custom" && { timePeriodsKey: e.key },
|
|
3778
3526
|
start: e.rawStart(),
|
|
3779
3527
|
end: e.rawEnd()
|
|
3780
3528
|
};
|
|
3781
3529
|
}
|
|
3782
|
-
function
|
|
3530
|
+
function Vo(e) {
|
|
3783
3531
|
return {
|
|
3784
3532
|
key: e.key,
|
|
3785
3533
|
display: e.display,
|
|
@@ -3790,81 +3538,81 @@ function Vs(e) {
|
|
|
3790
3538
|
end: () => e.rawEnd()
|
|
3791
3539
|
};
|
|
3792
3540
|
}
|
|
3793
|
-
function
|
|
3794
|
-
return
|
|
3795
|
-
}
|
|
3796
|
-
const
|
|
3797
|
-
"15M":
|
|
3798
|
-
"1H":
|
|
3799
|
-
"6H":
|
|
3800
|
-
"12H":
|
|
3801
|
-
"24H":
|
|
3802
|
-
"7D":
|
|
3803
|
-
"15m":
|
|
3804
|
-
"1h":
|
|
3805
|
-
"6h":
|
|
3806
|
-
"12h":
|
|
3807
|
-
"24h":
|
|
3808
|
-
"7d":
|
|
3809
|
-
"30d":
|
|
3810
|
-
current_week:
|
|
3811
|
-
current_month:
|
|
3812
|
-
previous_week:
|
|
3813
|
-
previous_month:
|
|
3541
|
+
function Mo(e, t) {
|
|
3542
|
+
return Gi(e.getTimezoneOffset() - t.getTimezoneOffset());
|
|
3543
|
+
}
|
|
3544
|
+
const Xo = {
|
|
3545
|
+
"15M": h.FIFTEEN_MIN,
|
|
3546
|
+
"1H": h.ONE_HOUR,
|
|
3547
|
+
"6H": h.SIX_HOUR,
|
|
3548
|
+
"12H": h.TWELVE_HOUR,
|
|
3549
|
+
"24H": h.ONE_DAY,
|
|
3550
|
+
"7D": h.SEVEN_DAY,
|
|
3551
|
+
"15m": h.FIFTEEN_MIN,
|
|
3552
|
+
"1h": h.ONE_HOUR,
|
|
3553
|
+
"6h": h.SIX_HOUR,
|
|
3554
|
+
"12h": h.TWELVE_HOUR,
|
|
3555
|
+
"24h": h.ONE_DAY,
|
|
3556
|
+
"7d": h.SEVEN_DAY,
|
|
3557
|
+
"30d": h.THIRTY_DAY,
|
|
3558
|
+
current_week: h.CURRENT_WEEK,
|
|
3559
|
+
current_month: h.CURRENT_MONTH,
|
|
3560
|
+
previous_week: h.PREVIOUS_WEEK,
|
|
3561
|
+
previous_month: h.PREVIOUS_MONTH
|
|
3814
3562
|
};
|
|
3815
3563
|
class Qe {
|
|
3816
3564
|
constructor(t) {
|
|
3817
3565
|
b(this, "_seed");
|
|
3818
3566
|
this._seed = t;
|
|
3819
3567
|
}
|
|
3820
|
-
next(t,
|
|
3821
|
-
const
|
|
3822
|
-
return Math.floor(i * (
|
|
3568
|
+
next(t, n) {
|
|
3569
|
+
const r = Math.sin(this._seed++) * 1e4, i = r - Math.floor(r);
|
|
3570
|
+
return Math.floor(i * (n - t + 1)) + t;
|
|
3823
3571
|
}
|
|
3824
3572
|
}
|
|
3825
|
-
const
|
|
3826
|
-
const
|
|
3827
|
-
let
|
|
3828
|
-
for (let y =
|
|
3573
|
+
const $o = (e, t, n) => {
|
|
3574
|
+
const r = wn(10, 1e4), i = new Qe(r), s = Date.now() - 6 * 60 * 60 * 1e3, u = Date.now(), d = [];
|
|
3575
|
+
let f = 0;
|
|
3576
|
+
for (let y = s; y <= u; y += 60 * 60 * 1e3)
|
|
3829
3577
|
if (t)
|
|
3830
3578
|
for (const g in t)
|
|
3831
3579
|
t[g].forEach((x) => {
|
|
3832
|
-
|
|
3833
|
-
const
|
|
3580
|
+
f += i.next(50, 500);
|
|
3581
|
+
const I = {
|
|
3834
3582
|
[g]: x,
|
|
3835
|
-
[e.name]:
|
|
3836
|
-
},
|
|
3583
|
+
[e.name]: f
|
|
3584
|
+
}, N = {
|
|
3837
3585
|
version: "1.0",
|
|
3838
3586
|
timestamp: new Date(y).toISOString(),
|
|
3839
|
-
event:
|
|
3587
|
+
event: I
|
|
3840
3588
|
};
|
|
3841
|
-
d.push(
|
|
3589
|
+
d.push(N);
|
|
3842
3590
|
});
|
|
3843
3591
|
else {
|
|
3844
|
-
|
|
3592
|
+
f += i.next(50, 500);
|
|
3845
3593
|
const g = {
|
|
3846
3594
|
version: "1.0",
|
|
3847
3595
|
timestamp: new Date(y).toISOString(),
|
|
3848
3596
|
event: {
|
|
3849
|
-
[e.name]:
|
|
3597
|
+
[e.name]: f
|
|
3850
3598
|
}
|
|
3851
3599
|
};
|
|
3852
3600
|
d.push(g);
|
|
3853
3601
|
}
|
|
3854
|
-
const
|
|
3602
|
+
const m = {};
|
|
3855
3603
|
if (t)
|
|
3856
3604
|
for (const y in t)
|
|
3857
|
-
|
|
3858
|
-
|
|
3605
|
+
m[y] = {}, t[y].forEach((g) => {
|
|
3606
|
+
m[y][g] = {
|
|
3859
3607
|
name: g,
|
|
3860
3608
|
deleted: !1
|
|
3861
3609
|
};
|
|
3862
3610
|
});
|
|
3863
3611
|
const _ = {
|
|
3864
|
-
start_ms:
|
|
3865
|
-
end_ms:
|
|
3866
|
-
start: new Date(
|
|
3867
|
-
end: new Date(
|
|
3612
|
+
start_ms: s,
|
|
3613
|
+
end_ms: u,
|
|
3614
|
+
start: new Date(s).toISOString(),
|
|
3615
|
+
end: new Date(u).toISOString(),
|
|
3868
3616
|
query_id: "12345",
|
|
3869
3617
|
metric_names: [e.name],
|
|
3870
3618
|
metric_units: {
|
|
@@ -3872,63 +3620,63 @@ const Xs = (e, t, r) => {
|
|
|
3872
3620
|
},
|
|
3873
3621
|
granularity_ms: 60 * 60 * 1e3,
|
|
3874
3622
|
// 1 hour in ms
|
|
3875
|
-
display:
|
|
3876
|
-
...
|
|
3623
|
+
display: m,
|
|
3624
|
+
...n ?? {}
|
|
3877
3625
|
};
|
|
3878
3626
|
return {
|
|
3879
3627
|
data: d,
|
|
3880
3628
|
meta: _
|
|
3881
3629
|
};
|
|
3882
|
-
},
|
|
3883
|
-
const
|
|
3884
|
-
e.forEach((
|
|
3885
|
-
d[
|
|
3630
|
+
}, Zo = (e, t) => {
|
|
3631
|
+
const n = wn(10, 1e4), r = new Qe(n), i = Date.now() - 6 * 60 * 60 * 1e3, s = Date.now(), u = [], d = {};
|
|
3632
|
+
e.forEach((m) => {
|
|
3633
|
+
d[m.name] = 0;
|
|
3886
3634
|
});
|
|
3887
|
-
for (let
|
|
3635
|
+
for (let m = i; m <= s; m += 60 * 60 * 1e3) {
|
|
3888
3636
|
const _ = {};
|
|
3889
3637
|
e.forEach((g) => {
|
|
3890
|
-
d[g.name] +=
|
|
3638
|
+
d[g.name] += r.next(50, 500), _[g.name] = d[g.name];
|
|
3891
3639
|
});
|
|
3892
3640
|
const y = {
|
|
3893
3641
|
version: "1.0",
|
|
3894
|
-
timestamp: new Date(
|
|
3642
|
+
timestamp: new Date(m).toISOString(),
|
|
3895
3643
|
event: _
|
|
3896
3644
|
};
|
|
3897
|
-
|
|
3645
|
+
u.push(y);
|
|
3898
3646
|
}
|
|
3899
|
-
const
|
|
3647
|
+
const f = {
|
|
3900
3648
|
start_ms: i,
|
|
3901
|
-
end_ms:
|
|
3649
|
+
end_ms: s,
|
|
3902
3650
|
start: new Date(i).toISOString(),
|
|
3903
|
-
end: new Date(
|
|
3651
|
+
end: new Date(s).toISOString(),
|
|
3904
3652
|
query_id: "12345",
|
|
3905
|
-
metric_names: e.map((
|
|
3906
|
-
metric_units: e.reduce((
|
|
3653
|
+
metric_names: e.map((m) => m.name),
|
|
3654
|
+
metric_units: e.reduce((m, _) => (m[_.name] = _.unit, m), {}),
|
|
3907
3655
|
granularity_ms: 60 * 60 * 1e3,
|
|
3908
3656
|
// 1 hour in ms
|
|
3909
3657
|
display: {},
|
|
3910
3658
|
...t ?? {}
|
|
3911
3659
|
};
|
|
3912
3660
|
return {
|
|
3913
|
-
data:
|
|
3914
|
-
meta:
|
|
3661
|
+
data: u,
|
|
3662
|
+
meta: f
|
|
3915
3663
|
};
|
|
3916
|
-
},
|
|
3917
|
-
const
|
|
3664
|
+
}, Qo = (e, t, n) => {
|
|
3665
|
+
const r = Math.floor(Math.random() * 9991) + 10, i = new Qe(r), s = Date.now() - 6 * 60 * 60 * 1e3, u = Date.now(), d = new Date((s + u) / 2).toISOString(), f = [];
|
|
3918
3666
|
if (t) {
|
|
3919
|
-
const y = Object.keys(t), g = Object.values(t), x = (
|
|
3920
|
-
if (
|
|
3667
|
+
const y = Object.keys(t), g = Object.values(t), x = (I, N) => {
|
|
3668
|
+
if (N === y.length) {
|
|
3921
3669
|
e.forEach((R) => {
|
|
3922
|
-
|
|
3923
|
-
}),
|
|
3670
|
+
I[R.name] = i.next(1e3, 5e7);
|
|
3671
|
+
}), f.push({
|
|
3924
3672
|
version: "1.0",
|
|
3925
3673
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3926
|
-
event: { ...
|
|
3674
|
+
event: { ...I }
|
|
3927
3675
|
});
|
|
3928
3676
|
return;
|
|
3929
3677
|
}
|
|
3930
|
-
g[
|
|
3931
|
-
x({ ...
|
|
3678
|
+
g[N].forEach((R) => {
|
|
3679
|
+
x({ ...I, [y[N]]: R }, N + 1);
|
|
3932
3680
|
});
|
|
3933
3681
|
};
|
|
3934
3682
|
x({}, 0);
|
|
@@ -3936,119 +3684,119 @@ const Xs = (e, t, r) => {
|
|
|
3936
3684
|
const y = {};
|
|
3937
3685
|
e.forEach((g) => {
|
|
3938
3686
|
y[g.name] = i.next(50, 500);
|
|
3939
|
-
}),
|
|
3687
|
+
}), f.push({
|
|
3940
3688
|
version: "1.0",
|
|
3941
3689
|
timestamp: d,
|
|
3942
3690
|
event: y
|
|
3943
3691
|
});
|
|
3944
3692
|
}
|
|
3945
|
-
const
|
|
3693
|
+
const m = {};
|
|
3946
3694
|
if (t)
|
|
3947
3695
|
for (const y in t)
|
|
3948
|
-
|
|
3949
|
-
|
|
3696
|
+
m[y] = {}, t[y].forEach((g) => {
|
|
3697
|
+
m[y][g] = {
|
|
3950
3698
|
name: g,
|
|
3951
3699
|
deleted: !1
|
|
3952
3700
|
};
|
|
3953
3701
|
});
|
|
3954
3702
|
const _ = {
|
|
3955
|
-
start_ms:
|
|
3956
|
-
end_ms:
|
|
3957
|
-
start: new Date(
|
|
3958
|
-
end: new Date(
|
|
3703
|
+
start_ms: s,
|
|
3704
|
+
end_ms: u,
|
|
3705
|
+
start: new Date(s).toISOString(),
|
|
3706
|
+
end: new Date(u).toISOString(),
|
|
3959
3707
|
query_id: "12345",
|
|
3960
3708
|
metric_names: e.map((y) => y.name),
|
|
3961
3709
|
metric_units: e.reduce((y, g) => (y[g.name] = g.unit, y), {}),
|
|
3962
3710
|
truncated: !1,
|
|
3963
3711
|
limit: 50,
|
|
3964
|
-
display:
|
|
3965
|
-
granularity_ms:
|
|
3966
|
-
...
|
|
3712
|
+
display: m,
|
|
3713
|
+
granularity_ms: u - s,
|
|
3714
|
+
...n ?? {}
|
|
3967
3715
|
};
|
|
3968
3716
|
return {
|
|
3969
|
-
data:
|
|
3717
|
+
data: f,
|
|
3970
3718
|
meta: _
|
|
3971
3719
|
};
|
|
3972
3720
|
};
|
|
3973
|
-
function
|
|
3721
|
+
function wn(e, t) {
|
|
3974
3722
|
return e = Math.ceil(e), t = Math.floor(t), Math.floor(Math.random() * (t - e + 1) + e);
|
|
3975
3723
|
}
|
|
3976
3724
|
export {
|
|
3977
|
-
|
|
3978
|
-
|
|
3725
|
+
ra as COUNTRIES,
|
|
3726
|
+
jo as DeltaQueryTime,
|
|
3727
|
+
Oo as EXPORT_RECORD_LIMIT,
|
|
3979
3728
|
Te as Granularities,
|
|
3980
|
-
|
|
3981
|
-
|
|
3729
|
+
vo as INJECT_QUERY_PROVIDER,
|
|
3730
|
+
So as REFRESH_INTERVAL_MS,
|
|
3982
3731
|
Qe as SeededRandom,
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3732
|
+
Xo as TIMEFRAME_LOOKUP,
|
|
3733
|
+
To as TimePeriods,
|
|
3734
|
+
P as Timeframe,
|
|
3735
|
+
h as TimeframeKeys,
|
|
3736
|
+
Uo as TimeseriesQueryTime,
|
|
3737
|
+
fo as UnaryQueryTime,
|
|
3738
|
+
Zr as aiExploreAggregations,
|
|
3990
3739
|
ga as apiUsageQuerySchema,
|
|
3991
3740
|
ia as barChartSchema,
|
|
3992
|
-
|
|
3741
|
+
tn as basicExploreAggregations,
|
|
3993
3742
|
pa as basicQuerySchema,
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
Kn as filterableRequestDimensions,
|
|
3743
|
+
_n as ceilToNearestTimeGrain,
|
|
3744
|
+
fa as choroplethMapSchema,
|
|
3745
|
+
Yo as dashboardConfigSchema,
|
|
3746
|
+
Ao as dashboardTileTypes,
|
|
3747
|
+
na as datasourceToFilterableDimensions,
|
|
3748
|
+
zo as datePickerSelectionToTimeframe,
|
|
3749
|
+
ua as donutChartSchema,
|
|
3750
|
+
Mo as dstOffsetHours,
|
|
3751
|
+
$r as exploreAggregations,
|
|
3752
|
+
Br as exploreFilterTypesV2,
|
|
3753
|
+
Oe as filterableAiExploreDimensions,
|
|
3754
|
+
De as filterableBasicExploreDimensions,
|
|
3755
|
+
Se as filterableExploreDimensions,
|
|
3756
|
+
Kr as filterableRequestDimensions,
|
|
4009
3757
|
ta as filterableRequestMetrics,
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
3758
|
+
Co as filterableRequestWildcardDimensions,
|
|
3759
|
+
mo as floorToNearestTimeGrain,
|
|
3760
|
+
Fo as formatISOTimeWithTZ,
|
|
4013
3761
|
Jt as formatTime,
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
3762
|
+
Lo as formatTimeRange,
|
|
3763
|
+
ca as gaugeChartSchema,
|
|
3764
|
+
Qo as generateCrossSectionalData,
|
|
3765
|
+
Zo as generateMultipleMetricTimeSeriesData,
|
|
3766
|
+
$o as generateSingleMetricTimeSeriesData,
|
|
3767
|
+
Ho as getFieldDataSources,
|
|
3768
|
+
Wo as granularitiesToOptions,
|
|
3769
|
+
lo as granularityMsToQuery,
|
|
3770
|
+
en as granularityValues,
|
|
4023
3771
|
_a as llmUsageSchema,
|
|
4024
3772
|
da as metricCardSchema,
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
3773
|
+
qo as msToGranularity,
|
|
3774
|
+
ko as queryDatasources,
|
|
3775
|
+
rn as queryableAiExploreDimensions,
|
|
3776
|
+
Be as queryableBasicExploreDimensions,
|
|
3777
|
+
nn as queryableExploreDimensions,
|
|
3778
|
+
Qr as queryableRequestDimensions,
|
|
4031
3779
|
ea as queryableRequestMetrics,
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
3780
|
+
Jr as queryableRequestWildcardDimensions,
|
|
3781
|
+
wn as rand,
|
|
3782
|
+
Ro as relativeTimeRangeValuesRequestV2,
|
|
3783
|
+
Xr as relativeTimeRangeValuesV4,
|
|
3784
|
+
Eo as reportChartTypes,
|
|
3785
|
+
Vr as requestFilterTypeEmptyV2,
|
|
3786
|
+
xo as requestFilterTypeEqualsV2,
|
|
3787
|
+
Io as requestFilterTypeMetricV2,
|
|
3788
|
+
No as requestFilterTypeWildcardV2,
|
|
3789
|
+
ma as singleValueSchema,
|
|
4042
3790
|
aa as slottableSchema,
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
3791
|
+
Go as stripUnknownFilters,
|
|
3792
|
+
oa as thresholdSchema,
|
|
3793
|
+
Ma as tileConfigSchema,
|
|
4046
3794
|
ba as tileDefinitionSchema,
|
|
4047
3795
|
Ta as tileLayoutSchema,
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
3796
|
+
Po as timeRangeTypeV2,
|
|
3797
|
+
Bo as timeframeToDatepickerSelection,
|
|
3798
|
+
Vo as timeframeToDatepickerTimeperiod,
|
|
3799
|
+
sa as timeseriesChartSchema,
|
|
4052
3800
|
la as topNTableSchema,
|
|
4053
3801
|
wa as validDashboardQuery
|
|
4054
3802
|
};
|