@kong-ui-public/analytics-utilities 11.0.1-pr.2392.2d3e3661f.0 → 11.0.1-pr.2392.7400b95f8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/dashboardSchema.v2.d.ts +32 -0
- package/dist/types/dashboardSchema.v2.d.ts.map +1 -1
- package/dist/types/types/country-codes.d.ts +3 -0
- package/dist/types/types/country-codes.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/index.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 +1086 -578
- 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 zn = (e, t, r) => t in e ?
|
|
1
|
+
var jn = Object.defineProperty;
|
|
2
|
+
var zn = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var b = (e, t, r) => zn(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
const
|
|
4
|
+
const Ds = 3e4;
|
|
5
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
|
|
6
|
+
const Ms = [
|
|
7
7
|
"horizontal_bar",
|
|
8
8
|
"vertical_bar",
|
|
9
9
|
"timeseries_line",
|
|
@@ -11,7 +11,7 @@ const Ds = [
|
|
|
11
11
|
"timeseries_bar",
|
|
12
12
|
"donut",
|
|
13
13
|
"single_value"
|
|
14
|
-
], Vn = ["in", "not_in", "selector"], Os = ["=", "!="],
|
|
14
|
+
], Vn = ["in", "not_in", "selector"], Os = ["=", "!="], Ss = ["=", "!=", "<", ">", "<=", ">="], Bn = ["empty", "not_empty"], vs = ["starts_with", "ends_with"], Es = ["absolute", "relative"], Xn = [
|
|
15
15
|
"15m",
|
|
16
16
|
"1h",
|
|
17
17
|
"6h",
|
|
@@ -50,7 +50,7 @@ const Ds = [
|
|
|
50
50
|
"status_code",
|
|
51
51
|
"status_code_grouped",
|
|
52
52
|
"time"
|
|
53
|
-
],
|
|
53
|
+
], Me = ie(Ve), tr = [
|
|
54
54
|
"active_services",
|
|
55
55
|
"request_count",
|
|
56
56
|
"request_per_minute",
|
|
@@ -66,7 +66,7 @@ const Ds = [
|
|
|
66
66
|
"response_source",
|
|
67
67
|
"data_plane_node_version",
|
|
68
68
|
"realm"
|
|
69
|
-
],
|
|
69
|
+
], Oe = ie(rr), $n = [
|
|
70
70
|
...tr,
|
|
71
71
|
"response_latency_p99",
|
|
72
72
|
"response_latency_p95",
|
|
@@ -107,7 +107,7 @@ const Ds = [
|
|
|
107
107
|
"status_code",
|
|
108
108
|
"status_code_grouped",
|
|
109
109
|
"ai_plugin"
|
|
110
|
-
],
|
|
110
|
+
], Se = ie(nr), Zn = [
|
|
111
111
|
"total_tokens",
|
|
112
112
|
"prompt_tokens",
|
|
113
113
|
"completion_tokens",
|
|
@@ -118,7 +118,7 @@ const Ds = [
|
|
|
118
118
|
"llm_latency_average",
|
|
119
119
|
"llm_embeddings_tokens",
|
|
120
120
|
"llm_embeddings_cost"
|
|
121
|
-
],
|
|
121
|
+
], Qn = [
|
|
122
122
|
"api",
|
|
123
123
|
"api_product",
|
|
124
124
|
"api_product_version",
|
|
@@ -153,7 +153,7 @@ const Ds = [
|
|
|
153
153
|
"upstream_uri",
|
|
154
154
|
"upstream_status_code_grouped",
|
|
155
155
|
"websocket"
|
|
156
|
-
],
|
|
156
|
+
], Kn = ie(Qn), Jn = [
|
|
157
157
|
"auth_type",
|
|
158
158
|
"client_ip",
|
|
159
159
|
"country_code",
|
|
@@ -169,7 +169,7 @@ const Ds = [
|
|
|
169
169
|
"service_protocol",
|
|
170
170
|
"trace_id",
|
|
171
171
|
"upstream_uri"
|
|
172
|
-
], xs =
|
|
172
|
+
], xs = Jn, ea = [
|
|
173
173
|
"ai_count",
|
|
174
174
|
"latencies_response_ms",
|
|
175
175
|
"latencies_upstream_ms",
|
|
@@ -179,7 +179,7 @@ const Ds = [
|
|
|
179
179
|
"response_header_content_length",
|
|
180
180
|
"status_code",
|
|
181
181
|
"upstream_status_code"
|
|
182
|
-
], ta = ie(ea),
|
|
182
|
+
], ta = ie(ea), Ns = [
|
|
183
183
|
"15M",
|
|
184
184
|
"1H",
|
|
185
185
|
"6H",
|
|
@@ -187,10 +187,509 @@ const Ds = [
|
|
|
187
187
|
"24H",
|
|
188
188
|
"7D"
|
|
189
189
|
], Ps = ["basic", "api_usage", "llm_usage"], ra = {
|
|
190
|
-
basic: new Set(
|
|
191
|
-
api_usage: new Set(
|
|
192
|
-
llm_usage: new Set(
|
|
193
|
-
},
|
|
190
|
+
basic: new Set(Me),
|
|
191
|
+
api_usage: new Set(Oe),
|
|
192
|
+
llm_usage: new Set(Se)
|
|
193
|
+
}, Is = (e, t) => t.filter((r) => ra[e].has(r.field)), na = [
|
|
194
|
+
"AF",
|
|
195
|
+
// Afghanistan
|
|
196
|
+
"AX",
|
|
197
|
+
// Åland Islands
|
|
198
|
+
"AL",
|
|
199
|
+
// Albania
|
|
200
|
+
"DZ",
|
|
201
|
+
// Algeria
|
|
202
|
+
"AS",
|
|
203
|
+
// American Samoa
|
|
204
|
+
"AD",
|
|
205
|
+
// Andorra
|
|
206
|
+
"AO",
|
|
207
|
+
// Angola
|
|
208
|
+
"AI",
|
|
209
|
+
// Anguilla
|
|
210
|
+
"AQ",
|
|
211
|
+
// Antarctica
|
|
212
|
+
"AG",
|
|
213
|
+
// Antigua and Barbuda
|
|
214
|
+
"AR",
|
|
215
|
+
// Argentina
|
|
216
|
+
"AM",
|
|
217
|
+
// Armenia
|
|
218
|
+
"AW",
|
|
219
|
+
// Aruba
|
|
220
|
+
"AU",
|
|
221
|
+
// Australia
|
|
222
|
+
"AT",
|
|
223
|
+
// Austria
|
|
224
|
+
"AZ",
|
|
225
|
+
// Azerbaijan
|
|
226
|
+
"BS",
|
|
227
|
+
// Bahamas
|
|
228
|
+
"BH",
|
|
229
|
+
// Bahrain
|
|
230
|
+
"BD",
|
|
231
|
+
// Bangladesh
|
|
232
|
+
"BB",
|
|
233
|
+
// Barbados
|
|
234
|
+
"BY",
|
|
235
|
+
// Belarus
|
|
236
|
+
"BE",
|
|
237
|
+
// Belgium
|
|
238
|
+
"BZ",
|
|
239
|
+
// Belize
|
|
240
|
+
"BJ",
|
|
241
|
+
// Benin
|
|
242
|
+
"BM",
|
|
243
|
+
// Bermuda
|
|
244
|
+
"BT",
|
|
245
|
+
// Bhutan
|
|
246
|
+
"BO",
|
|
247
|
+
// Bolivia (Plurinational State of)
|
|
248
|
+
"BQ",
|
|
249
|
+
// Bonaire, Sint Eustatius and Saba
|
|
250
|
+
"BA",
|
|
251
|
+
// Bosnia and Herzegovina
|
|
252
|
+
"BW",
|
|
253
|
+
// Botswana
|
|
254
|
+
"BV",
|
|
255
|
+
// Bouvet Island
|
|
256
|
+
"BR",
|
|
257
|
+
// Brazil
|
|
258
|
+
"IO",
|
|
259
|
+
// British Indian Ocean Territory
|
|
260
|
+
"BN",
|
|
261
|
+
// Brunei Darussalam
|
|
262
|
+
"BG",
|
|
263
|
+
// Bulgaria
|
|
264
|
+
"BF",
|
|
265
|
+
// Burkina Faso
|
|
266
|
+
"BI",
|
|
267
|
+
// Burundi
|
|
268
|
+
"CV",
|
|
269
|
+
// Cabo Verde
|
|
270
|
+
"KH",
|
|
271
|
+
// Cambodia
|
|
272
|
+
"CM",
|
|
273
|
+
// Cameroon
|
|
274
|
+
"CA",
|
|
275
|
+
// Canada
|
|
276
|
+
"KY",
|
|
277
|
+
// Cayman Islands
|
|
278
|
+
"CF",
|
|
279
|
+
// Central African Republic
|
|
280
|
+
"TD",
|
|
281
|
+
// Chad
|
|
282
|
+
"CL",
|
|
283
|
+
// Chile
|
|
284
|
+
"CN",
|
|
285
|
+
// China
|
|
286
|
+
"CX",
|
|
287
|
+
// Christmas Island
|
|
288
|
+
"CC",
|
|
289
|
+
// Cocos (Keeling) Islands
|
|
290
|
+
"CO",
|
|
291
|
+
// Colombia
|
|
292
|
+
"KM",
|
|
293
|
+
// Comoros
|
|
294
|
+
"CG",
|
|
295
|
+
// Congo
|
|
296
|
+
"CD",
|
|
297
|
+
// Congo, Democratic Republic of the
|
|
298
|
+
"CK",
|
|
299
|
+
// Cook Islands
|
|
300
|
+
"CR",
|
|
301
|
+
// Costa Rica
|
|
302
|
+
"CI",
|
|
303
|
+
// Côte d'Ivoire
|
|
304
|
+
"HR",
|
|
305
|
+
// Croatia
|
|
306
|
+
"CU",
|
|
307
|
+
// Cuba
|
|
308
|
+
"CW",
|
|
309
|
+
// Curaçao
|
|
310
|
+
"CY",
|
|
311
|
+
// Cyprus
|
|
312
|
+
"CZ",
|
|
313
|
+
// Czechia
|
|
314
|
+
"DK",
|
|
315
|
+
// Denmark
|
|
316
|
+
"DJ",
|
|
317
|
+
// Djibouti
|
|
318
|
+
"DM",
|
|
319
|
+
// Dominica
|
|
320
|
+
"DO",
|
|
321
|
+
// Dominican Republic
|
|
322
|
+
"EC",
|
|
323
|
+
// Ecuador
|
|
324
|
+
"EG",
|
|
325
|
+
// Egypt
|
|
326
|
+
"SV",
|
|
327
|
+
// El Salvador
|
|
328
|
+
"GQ",
|
|
329
|
+
// Equatorial Guinea
|
|
330
|
+
"ER",
|
|
331
|
+
// Eritrea
|
|
332
|
+
"EE",
|
|
333
|
+
// Estonia
|
|
334
|
+
"SZ",
|
|
335
|
+
// Eswatini
|
|
336
|
+
"ET",
|
|
337
|
+
// Ethiopia
|
|
338
|
+
"FK",
|
|
339
|
+
// Falkland Islands (Malvinas)
|
|
340
|
+
"FO",
|
|
341
|
+
// Faroe Islands
|
|
342
|
+
"FJ",
|
|
343
|
+
// Fiji
|
|
344
|
+
"FI",
|
|
345
|
+
// Finland
|
|
346
|
+
"FR",
|
|
347
|
+
// France
|
|
348
|
+
"GF",
|
|
349
|
+
// French Guiana
|
|
350
|
+
"PF",
|
|
351
|
+
// French Polynesia
|
|
352
|
+
"TF",
|
|
353
|
+
// French Southern Territories
|
|
354
|
+
"GA",
|
|
355
|
+
// Gabon
|
|
356
|
+
"GM",
|
|
357
|
+
// Gambia
|
|
358
|
+
"GE",
|
|
359
|
+
// Georgia
|
|
360
|
+
"DE",
|
|
361
|
+
// Germany
|
|
362
|
+
"GH",
|
|
363
|
+
// Ghana
|
|
364
|
+
"GI",
|
|
365
|
+
// Gibraltar
|
|
366
|
+
"GR",
|
|
367
|
+
// Greece
|
|
368
|
+
"GL",
|
|
369
|
+
// Greenland
|
|
370
|
+
"GD",
|
|
371
|
+
// Grenada
|
|
372
|
+
"GP",
|
|
373
|
+
// Guadeloupe
|
|
374
|
+
"GU",
|
|
375
|
+
// Guam
|
|
376
|
+
"GT",
|
|
377
|
+
// Guatemala
|
|
378
|
+
"GG",
|
|
379
|
+
// Guernsey
|
|
380
|
+
"GN",
|
|
381
|
+
// Guinea
|
|
382
|
+
"GW",
|
|
383
|
+
// Guinea-Bissau
|
|
384
|
+
"GY",
|
|
385
|
+
// Guyana
|
|
386
|
+
"HT",
|
|
387
|
+
// Haiti
|
|
388
|
+
"HM",
|
|
389
|
+
// Heard Island and McDonald Islands
|
|
390
|
+
"VA",
|
|
391
|
+
// Holy See
|
|
392
|
+
"HN",
|
|
393
|
+
// Honduras
|
|
394
|
+
"HK",
|
|
395
|
+
// Hong Kong
|
|
396
|
+
"HU",
|
|
397
|
+
// Hungary
|
|
398
|
+
"IS",
|
|
399
|
+
// Iceland
|
|
400
|
+
"IN",
|
|
401
|
+
// India
|
|
402
|
+
"ID",
|
|
403
|
+
// Indonesia
|
|
404
|
+
"IR",
|
|
405
|
+
// Iran (Islamic Republic of)
|
|
406
|
+
"IQ",
|
|
407
|
+
// Iraq
|
|
408
|
+
"IE",
|
|
409
|
+
// Ireland
|
|
410
|
+
"IM",
|
|
411
|
+
// Isle of Man
|
|
412
|
+
"IL",
|
|
413
|
+
// Israel
|
|
414
|
+
"IT",
|
|
415
|
+
// Italy
|
|
416
|
+
"JM",
|
|
417
|
+
// Jamaica
|
|
418
|
+
"JP",
|
|
419
|
+
// Japan
|
|
420
|
+
"JE",
|
|
421
|
+
// Jersey
|
|
422
|
+
"JO",
|
|
423
|
+
// Jordan
|
|
424
|
+
"KZ",
|
|
425
|
+
// Kazakhstan
|
|
426
|
+
"KE",
|
|
427
|
+
// Kenya
|
|
428
|
+
"KI",
|
|
429
|
+
// Kiribati
|
|
430
|
+
"KP",
|
|
431
|
+
// Korea (Democratic People's Republic of)
|
|
432
|
+
"KR",
|
|
433
|
+
// Korea (Republic of)
|
|
434
|
+
"KW",
|
|
435
|
+
// Kuwait
|
|
436
|
+
"KG",
|
|
437
|
+
// Kyrgyzstan
|
|
438
|
+
"LA",
|
|
439
|
+
// Lao People's Democratic Republic
|
|
440
|
+
"LV",
|
|
441
|
+
// Latvia
|
|
442
|
+
"LB",
|
|
443
|
+
// Lebanon
|
|
444
|
+
"LS",
|
|
445
|
+
// Lesotho
|
|
446
|
+
"LR",
|
|
447
|
+
// Liberia
|
|
448
|
+
"LY",
|
|
449
|
+
// Libya
|
|
450
|
+
"LI",
|
|
451
|
+
// Liechtenstein
|
|
452
|
+
"LT",
|
|
453
|
+
// Lithuania
|
|
454
|
+
"LU",
|
|
455
|
+
// Luxembourg
|
|
456
|
+
"MO",
|
|
457
|
+
// Macao
|
|
458
|
+
"MG",
|
|
459
|
+
// Madagascar
|
|
460
|
+
"MW",
|
|
461
|
+
// Malawi
|
|
462
|
+
"MY",
|
|
463
|
+
// Malaysia
|
|
464
|
+
"MV",
|
|
465
|
+
// Maldives
|
|
466
|
+
"ML",
|
|
467
|
+
// Mali
|
|
468
|
+
"MT",
|
|
469
|
+
// Malta
|
|
470
|
+
"MH",
|
|
471
|
+
// Marshall Islands
|
|
472
|
+
"MQ",
|
|
473
|
+
// Martinique
|
|
474
|
+
"MR",
|
|
475
|
+
// Mauritania
|
|
476
|
+
"MU",
|
|
477
|
+
// Mauritius
|
|
478
|
+
"YT",
|
|
479
|
+
// Mayotte
|
|
480
|
+
"MX",
|
|
481
|
+
// Mexico
|
|
482
|
+
"FM",
|
|
483
|
+
// Micronesia (Federated States of)
|
|
484
|
+
"MD",
|
|
485
|
+
// Moldova (Republic of)
|
|
486
|
+
"MC",
|
|
487
|
+
// Monaco
|
|
488
|
+
"MN",
|
|
489
|
+
// Mongolia
|
|
490
|
+
"ME",
|
|
491
|
+
// Montenegro
|
|
492
|
+
"MS",
|
|
493
|
+
// Montserrat
|
|
494
|
+
"MA",
|
|
495
|
+
// Morocco
|
|
496
|
+
"MZ",
|
|
497
|
+
// Mozambique
|
|
498
|
+
"MM",
|
|
499
|
+
// Myanmar
|
|
500
|
+
"NA",
|
|
501
|
+
// Namibia
|
|
502
|
+
"NR",
|
|
503
|
+
// Nauru
|
|
504
|
+
"NP",
|
|
505
|
+
// Nepal
|
|
506
|
+
"NL",
|
|
507
|
+
// Netherlands
|
|
508
|
+
"NC",
|
|
509
|
+
// New Caledonia
|
|
510
|
+
"NZ",
|
|
511
|
+
// New Zealand
|
|
512
|
+
"NI",
|
|
513
|
+
// Nicaragua
|
|
514
|
+
"NE",
|
|
515
|
+
// Niger
|
|
516
|
+
"NG",
|
|
517
|
+
// Nigeria
|
|
518
|
+
"NU",
|
|
519
|
+
// Niue
|
|
520
|
+
"NF",
|
|
521
|
+
// Norfolk Island
|
|
522
|
+
"MK",
|
|
523
|
+
// North Macedonia
|
|
524
|
+
"MP",
|
|
525
|
+
// Northern Mariana Islands
|
|
526
|
+
"NO",
|
|
527
|
+
// Norway
|
|
528
|
+
"OM",
|
|
529
|
+
// Oman
|
|
530
|
+
"PK",
|
|
531
|
+
// Pakistan
|
|
532
|
+
"PW",
|
|
533
|
+
// Palau
|
|
534
|
+
"PS",
|
|
535
|
+
// Palestine, State of
|
|
536
|
+
"PA",
|
|
537
|
+
// Panama
|
|
538
|
+
"PG",
|
|
539
|
+
// Papua New Guinea
|
|
540
|
+
"PY",
|
|
541
|
+
// Paraguay
|
|
542
|
+
"PE",
|
|
543
|
+
// Peru
|
|
544
|
+
"PH",
|
|
545
|
+
// Philippines
|
|
546
|
+
"PN",
|
|
547
|
+
// Pitcairn
|
|
548
|
+
"PL",
|
|
549
|
+
// Poland
|
|
550
|
+
"PT",
|
|
551
|
+
// Portugal
|
|
552
|
+
"PR",
|
|
553
|
+
// Puerto Rico
|
|
554
|
+
"QA",
|
|
555
|
+
// Qatar
|
|
556
|
+
"RE",
|
|
557
|
+
// Réunion
|
|
558
|
+
"RO",
|
|
559
|
+
// Romania
|
|
560
|
+
"RU",
|
|
561
|
+
// Russian Federation
|
|
562
|
+
"RW",
|
|
563
|
+
// Rwanda
|
|
564
|
+
"BL",
|
|
565
|
+
// Saint Barthélemy
|
|
566
|
+
"SH",
|
|
567
|
+
// Saint Helena, Ascension and Tristan da Cunha
|
|
568
|
+
"KN",
|
|
569
|
+
// Saint Kitts and Nevis
|
|
570
|
+
"LC",
|
|
571
|
+
// Saint Lucia
|
|
572
|
+
"MF",
|
|
573
|
+
// Saint Martin (French part)
|
|
574
|
+
"PM",
|
|
575
|
+
// Saint Pierre and Miquelon
|
|
576
|
+
"VC",
|
|
577
|
+
// Saint Vincent and the Grenadines
|
|
578
|
+
"WS",
|
|
579
|
+
// Samoa
|
|
580
|
+
"SM",
|
|
581
|
+
// San Marino
|
|
582
|
+
"ST",
|
|
583
|
+
// Sao Tome and Principe
|
|
584
|
+
"SA",
|
|
585
|
+
// Saudi Arabia
|
|
586
|
+
"SN",
|
|
587
|
+
// Senegal
|
|
588
|
+
"RS",
|
|
589
|
+
// Serbia
|
|
590
|
+
"SC",
|
|
591
|
+
// Seychelles
|
|
592
|
+
"SL",
|
|
593
|
+
// Sierra Leone
|
|
594
|
+
"SG",
|
|
595
|
+
// Singapore
|
|
596
|
+
"SX",
|
|
597
|
+
// Sint Maarten (Dutch part)
|
|
598
|
+
"SK",
|
|
599
|
+
// Slovakia
|
|
600
|
+
"SI",
|
|
601
|
+
// Slovenia
|
|
602
|
+
"SB",
|
|
603
|
+
// Solomon Islands
|
|
604
|
+
"SO",
|
|
605
|
+
// Somalia
|
|
606
|
+
"ZA",
|
|
607
|
+
// South Africa
|
|
608
|
+
"GS",
|
|
609
|
+
// South Georgia and the South Sandwich Islands
|
|
610
|
+
"SS",
|
|
611
|
+
// South Sudan
|
|
612
|
+
"ES",
|
|
613
|
+
// Spain
|
|
614
|
+
"LK",
|
|
615
|
+
// Sri Lanka
|
|
616
|
+
"SD",
|
|
617
|
+
// Sudan
|
|
618
|
+
"SR",
|
|
619
|
+
// Suriname
|
|
620
|
+
"SJ",
|
|
621
|
+
// Svalbard and Jan Mayen
|
|
622
|
+
"SE",
|
|
623
|
+
// Sweden
|
|
624
|
+
"CH",
|
|
625
|
+
// Switzerland
|
|
626
|
+
"SY",
|
|
627
|
+
// Syrian Arab Republic
|
|
628
|
+
"TW",
|
|
629
|
+
// Taiwan, Province of China
|
|
630
|
+
"TJ",
|
|
631
|
+
// Tajikistan
|
|
632
|
+
"TZ",
|
|
633
|
+
// Tanzania, United Republic of
|
|
634
|
+
"TH",
|
|
635
|
+
// Thailand
|
|
636
|
+
"TL",
|
|
637
|
+
// Timor-Leste
|
|
638
|
+
"TG",
|
|
639
|
+
// Togo
|
|
640
|
+
"TK",
|
|
641
|
+
// Tokelau
|
|
642
|
+
"TO",
|
|
643
|
+
// Tonga
|
|
644
|
+
"TT",
|
|
645
|
+
// Trinidad and Tobago
|
|
646
|
+
"TN",
|
|
647
|
+
// Tunisia
|
|
648
|
+
"TR",
|
|
649
|
+
// Turkey
|
|
650
|
+
"TM",
|
|
651
|
+
// Turkmenistan
|
|
652
|
+
"TC",
|
|
653
|
+
// Turks and Caicos Islands
|
|
654
|
+
"TV",
|
|
655
|
+
// Tuvalu
|
|
656
|
+
"UG",
|
|
657
|
+
// Uganda
|
|
658
|
+
"UA",
|
|
659
|
+
// Ukraine
|
|
660
|
+
"AE",
|
|
661
|
+
// United Arab Emirates
|
|
662
|
+
"GB",
|
|
663
|
+
// United Kingdom of Great Britain and Northern Ireland
|
|
664
|
+
"UM",
|
|
665
|
+
// United States Minor Outlying Islands
|
|
666
|
+
"US",
|
|
667
|
+
// United States of America
|
|
668
|
+
"UY",
|
|
669
|
+
// Uruguay
|
|
670
|
+
"UZ",
|
|
671
|
+
// Uzbekistan
|
|
672
|
+
"VU",
|
|
673
|
+
// Vanuatu
|
|
674
|
+
"VE",
|
|
675
|
+
// Venezuela (Bolivarian Republic of)
|
|
676
|
+
"VN",
|
|
677
|
+
// Viet Nam
|
|
678
|
+
"VG",
|
|
679
|
+
// Virgin Islands (British)
|
|
680
|
+
"VI",
|
|
681
|
+
// Virgin Islands (U.S.)
|
|
682
|
+
"WF",
|
|
683
|
+
// Wallis and Futuna
|
|
684
|
+
"EH",
|
|
685
|
+
// Western Sahara
|
|
686
|
+
"YE",
|
|
687
|
+
// Yemen
|
|
688
|
+
"ZM",
|
|
689
|
+
// Zambia
|
|
690
|
+
"ZW"
|
|
691
|
+
// Zimbabwe
|
|
692
|
+
], Cs = [
|
|
194
693
|
"horizontal_bar",
|
|
195
694
|
"vertical_bar",
|
|
196
695
|
"gauge",
|
|
@@ -216,7 +715,7 @@ const Ds = [
|
|
|
216
715
|
additionalProperties: {
|
|
217
716
|
type: "string"
|
|
218
717
|
}
|
|
219
|
-
},
|
|
718
|
+
}, aa = {
|
|
220
719
|
type: "object",
|
|
221
720
|
properties: {
|
|
222
721
|
type: {
|
|
@@ -229,7 +728,7 @@ const Ds = [
|
|
|
229
728
|
},
|
|
230
729
|
required: ["type", "id"],
|
|
231
730
|
additionalProperties: !1
|
|
232
|
-
},
|
|
731
|
+
}, ia = {
|
|
233
732
|
type: "object",
|
|
234
733
|
properties: {
|
|
235
734
|
type: {
|
|
@@ -246,7 +745,7 @@ const Ds = [
|
|
|
246
745
|
},
|
|
247
746
|
required: ["type"],
|
|
248
747
|
additionalProperties: !1
|
|
249
|
-
},
|
|
748
|
+
}, sa = {
|
|
250
749
|
type: "object",
|
|
251
750
|
properties: {
|
|
252
751
|
type: {
|
|
@@ -269,7 +768,7 @@ const Ds = [
|
|
|
269
768
|
},
|
|
270
769
|
required: ["type"],
|
|
271
770
|
additionalProperties: !1
|
|
272
|
-
},
|
|
771
|
+
}, oa = {
|
|
273
772
|
type: "object",
|
|
274
773
|
properties: {
|
|
275
774
|
type: {
|
|
@@ -292,7 +791,7 @@ const Ds = [
|
|
|
292
791
|
},
|
|
293
792
|
required: ["type"],
|
|
294
793
|
additionalProperties: !1
|
|
295
|
-
},
|
|
794
|
+
}, ua = {
|
|
296
795
|
type: "object",
|
|
297
796
|
properties: {
|
|
298
797
|
type: {
|
|
@@ -304,7 +803,7 @@ const Ds = [
|
|
|
304
803
|
},
|
|
305
804
|
required: ["type"],
|
|
306
805
|
additionalProperties: !1
|
|
307
|
-
},
|
|
806
|
+
}, ca = {
|
|
308
807
|
type: "object",
|
|
309
808
|
properties: {
|
|
310
809
|
chart_title: W,
|
|
@@ -322,7 +821,7 @@ const Ds = [
|
|
|
322
821
|
},
|
|
323
822
|
required: ["type"],
|
|
324
823
|
additionalProperties: !1
|
|
325
|
-
},
|
|
824
|
+
}, la = {
|
|
326
825
|
type: "object",
|
|
327
826
|
properties: {
|
|
328
827
|
chart_title: W,
|
|
@@ -342,7 +841,7 @@ const Ds = [
|
|
|
342
841
|
},
|
|
343
842
|
required: ["type"],
|
|
344
843
|
additionalProperties: !1
|
|
345
|
-
},
|
|
844
|
+
}, da = {
|
|
346
845
|
type: "object",
|
|
347
846
|
properties: {
|
|
348
847
|
type: {
|
|
@@ -356,7 +855,7 @@ const Ds = [
|
|
|
356
855
|
},
|
|
357
856
|
required: ["type"],
|
|
358
857
|
additionalProperties: !1
|
|
359
|
-
},
|
|
858
|
+
}, fa = {
|
|
360
859
|
type: "object",
|
|
361
860
|
properties: {
|
|
362
861
|
type: {
|
|
@@ -364,6 +863,14 @@ const Ds = [
|
|
|
364
863
|
enum: ["choropleth_map"]
|
|
365
864
|
},
|
|
366
865
|
chart_title: W,
|
|
866
|
+
fit_to_country: {
|
|
867
|
+
type: "string",
|
|
868
|
+
enum: na
|
|
869
|
+
},
|
|
870
|
+
with_legend: {
|
|
871
|
+
type: "boolean",
|
|
872
|
+
default: !1
|
|
873
|
+
},
|
|
367
874
|
bounds: {
|
|
368
875
|
oneOf: [
|
|
369
876
|
{
|
|
@@ -396,7 +903,7 @@ const Ds = [
|
|
|
396
903
|
},
|
|
397
904
|
required: ["type"],
|
|
398
905
|
additionalProperties: !1
|
|
399
|
-
},
|
|
906
|
+
}, ma = {
|
|
400
907
|
type: "object",
|
|
401
908
|
properties: {
|
|
402
909
|
tz: {
|
|
@@ -420,7 +927,7 @@ const Ds = [
|
|
|
420
927
|
"time_range"
|
|
421
928
|
],
|
|
422
929
|
additionalProperties: !1
|
|
423
|
-
},
|
|
930
|
+
}, ha = {
|
|
424
931
|
type: "object",
|
|
425
932
|
description: "A duration representing an exact start and end time.",
|
|
426
933
|
properties: {
|
|
@@ -446,7 +953,7 @@ const Ds = [
|
|
|
446
953
|
"end"
|
|
447
954
|
],
|
|
448
955
|
additionalProperties: !1
|
|
449
|
-
},
|
|
956
|
+
}, Be = {
|
|
450
957
|
granularity: {
|
|
451
958
|
type: "string",
|
|
452
959
|
description: 'Force time grouping into buckets of this duration. Only has an effect if "time" is in the "dimensions" list.',
|
|
@@ -456,8 +963,8 @@ const Ds = [
|
|
|
456
963
|
type: "object",
|
|
457
964
|
description: "The time range to query.",
|
|
458
965
|
anyOf: [
|
|
459
|
-
|
|
460
|
-
|
|
966
|
+
ma,
|
|
967
|
+
ha
|
|
461
968
|
],
|
|
462
969
|
default: {
|
|
463
970
|
type: "relative",
|
|
@@ -477,7 +984,7 @@ const Ds = [
|
|
|
477
984
|
type: "string",
|
|
478
985
|
enum: e
|
|
479
986
|
}
|
|
480
|
-
}),
|
|
987
|
+
}), $e = (e) => ({
|
|
481
988
|
type: "array",
|
|
482
989
|
description: "List of attributes or entity types to group by.",
|
|
483
990
|
minItems: 0,
|
|
@@ -486,7 +993,7 @@ const Ds = [
|
|
|
486
993
|
type: "string",
|
|
487
994
|
enum: e
|
|
488
995
|
}
|
|
489
|
-
}),
|
|
996
|
+
}), ve = (e) => ({
|
|
490
997
|
type: "array",
|
|
491
998
|
description: "A list of filters to apply to the query",
|
|
492
999
|
items: {
|
|
@@ -527,7 +1034,7 @@ const Ds = [
|
|
|
527
1034
|
},
|
|
528
1035
|
operator: {
|
|
529
1036
|
type: "string",
|
|
530
|
-
enum:
|
|
1037
|
+
enum: Bn
|
|
531
1038
|
}
|
|
532
1039
|
},
|
|
533
1040
|
required: [
|
|
@@ -538,7 +1045,7 @@ const Ds = [
|
|
|
538
1045
|
}
|
|
539
1046
|
]
|
|
540
1047
|
}
|
|
541
|
-
}),
|
|
1048
|
+
}), ya = {
|
|
542
1049
|
type: "object",
|
|
543
1050
|
description: "A query to launch at the advanced explore API",
|
|
544
1051
|
properties: {
|
|
@@ -548,14 +1055,14 @@ const Ds = [
|
|
|
548
1055
|
"api_usage"
|
|
549
1056
|
]
|
|
550
1057
|
},
|
|
551
|
-
metrics: Xe(
|
|
552
|
-
dimensions:
|
|
553
|
-
filters:
|
|
554
|
-
|
|
1058
|
+
metrics: Xe($n),
|
|
1059
|
+
dimensions: $e(rr),
|
|
1060
|
+
filters: ve(Oe),
|
|
1061
|
+
...Be
|
|
555
1062
|
},
|
|
556
1063
|
required: ["datasource"],
|
|
557
1064
|
additionalProperties: !1
|
|
558
|
-
},
|
|
1065
|
+
}, ga = {
|
|
559
1066
|
type: "object",
|
|
560
1067
|
description: "A query to launch at the basic explore API",
|
|
561
1068
|
properties: {
|
|
@@ -566,13 +1073,13 @@ const Ds = [
|
|
|
566
1073
|
]
|
|
567
1074
|
},
|
|
568
1075
|
metrics: Xe(tr),
|
|
569
|
-
dimensions:
|
|
570
|
-
filters:
|
|
571
|
-
|
|
1076
|
+
dimensions: $e(Ve),
|
|
1077
|
+
filters: ve(Me),
|
|
1078
|
+
...Be
|
|
572
1079
|
},
|
|
573
1080
|
required: ["datasource"],
|
|
574
1081
|
additionalProperties: !1
|
|
575
|
-
},
|
|
1082
|
+
}, pa = {
|
|
576
1083
|
type: "object",
|
|
577
1084
|
description: "A query to launch at the AI explore API",
|
|
578
1085
|
properties: {
|
|
@@ -583,35 +1090,35 @@ const Ds = [
|
|
|
583
1090
|
]
|
|
584
1091
|
},
|
|
585
1092
|
metrics: Xe(Zn),
|
|
586
|
-
dimensions:
|
|
587
|
-
filters: Se
|
|
588
|
-
|
|
1093
|
+
dimensions: $e(nr),
|
|
1094
|
+
filters: ve(Se),
|
|
1095
|
+
...Be
|
|
589
1096
|
},
|
|
590
1097
|
required: ["datasource"],
|
|
591
1098
|
additionalProperties: !1
|
|
592
|
-
}, pa = {
|
|
593
|
-
anyOf: [ha, ya, ga]
|
|
594
1099
|
}, _a = {
|
|
1100
|
+
anyOf: [ya, ga, pa]
|
|
1101
|
+
}, wa = {
|
|
595
1102
|
type: "object",
|
|
596
1103
|
properties: {
|
|
597
|
-
query:
|
|
1104
|
+
query: _a,
|
|
598
1105
|
chart: {
|
|
599
1106
|
anyOf: [
|
|
600
|
-
aa,
|
|
601
|
-
sa,
|
|
602
|
-
oa,
|
|
603
1107
|
ia,
|
|
604
|
-
|
|
1108
|
+
oa,
|
|
605
1109
|
ua,
|
|
606
|
-
|
|
1110
|
+
sa,
|
|
607
1111
|
la,
|
|
608
|
-
|
|
1112
|
+
ca,
|
|
1113
|
+
aa,
|
|
1114
|
+
da,
|
|
1115
|
+
fa
|
|
609
1116
|
]
|
|
610
1117
|
}
|
|
611
1118
|
},
|
|
612
1119
|
required: ["query", "chart"],
|
|
613
1120
|
additionalProperties: !1
|
|
614
|
-
},
|
|
1121
|
+
}, ba = {
|
|
615
1122
|
type: "object",
|
|
616
1123
|
properties: {
|
|
617
1124
|
position: {
|
|
@@ -648,15 +1155,15 @@ const Ds = [
|
|
|
648
1155
|
},
|
|
649
1156
|
required: ["position", "size"],
|
|
650
1157
|
additionalProperties: !1
|
|
651
|
-
},
|
|
1158
|
+
}, Ta = {
|
|
652
1159
|
type: "object",
|
|
653
1160
|
properties: {
|
|
654
1161
|
type: {
|
|
655
1162
|
type: "string",
|
|
656
1163
|
enum: ["chart"]
|
|
657
1164
|
},
|
|
658
|
-
definition:
|
|
659
|
-
layout:
|
|
1165
|
+
definition: wa,
|
|
1166
|
+
layout: ba,
|
|
660
1167
|
id: {
|
|
661
1168
|
type: "string",
|
|
662
1169
|
description: "Unique identifier for the tile. If not provided, one will be generated."
|
|
@@ -664,18 +1171,18 @@ const Ds = [
|
|
|
664
1171
|
},
|
|
665
1172
|
required: ["type", "definition", "layout"],
|
|
666
1173
|
additionalProperties: !1
|
|
667
|
-
},
|
|
1174
|
+
}, Rs = {
|
|
668
1175
|
type: "object",
|
|
669
1176
|
properties: {
|
|
670
1177
|
tiles: {
|
|
671
1178
|
type: "array",
|
|
672
|
-
items:
|
|
1179
|
+
items: Ta
|
|
673
1180
|
},
|
|
674
1181
|
tile_height: {
|
|
675
1182
|
type: "number",
|
|
676
1183
|
description: "Height of each tile in pixels."
|
|
677
1184
|
},
|
|
678
|
-
preset_filters:
|
|
1185
|
+
preset_filters: ve([.../* @__PURE__ */ new Set([...Oe, ...Me, ...Se])]),
|
|
679
1186
|
template_id: {
|
|
680
1187
|
type: ["string", "null"],
|
|
681
1188
|
description: "Template id which was used to instantiate this dashboard."
|
|
@@ -683,24 +1190,24 @@ const Ds = [
|
|
|
683
1190
|
},
|
|
684
1191
|
required: ["tiles"],
|
|
685
1192
|
additionalProperties: !1
|
|
686
|
-
},
|
|
1193
|
+
}, ks = (e) => {
|
|
687
1194
|
const t = [];
|
|
688
|
-
return
|
|
689
|
-
}, sr = 6048e5,
|
|
690
|
-
function
|
|
691
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
692
|
-
}
|
|
693
|
-
function
|
|
694
|
-
return
|
|
695
|
-
}
|
|
696
|
-
function
|
|
697
|
-
const n =
|
|
698
|
-
return isNaN(t) ?
|
|
699
|
-
}
|
|
700
|
-
function
|
|
701
|
-
const n =
|
|
702
|
-
if (isNaN(t)) return
|
|
703
|
-
const i = n.getDate(), o =
|
|
1195
|
+
return Me.includes(e) && t.push("basic"), Oe.includes(e) && t.push("api_usage"), Se.includes(e) && t.push("llm_usage"), (Kn.includes(e) || ta.includes(e)) && t.push("requests"), t;
|
|
1196
|
+
}, sr = 6048e5, Da = 864e5, Ma = 60, Oa = 3600, Rt = Symbol.for("constructDateFrom");
|
|
1197
|
+
function C(e, t) {
|
|
1198
|
+
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
|
+
}
|
|
1200
|
+
function M(e, t) {
|
|
1201
|
+
return C(t || e, e);
|
|
1202
|
+
}
|
|
1203
|
+
function kt(e, t, r) {
|
|
1204
|
+
const n = M(e, r == null ? void 0 : r.in);
|
|
1205
|
+
return isNaN(t) ? C(e, NaN) : (n.setDate(n.getDate() + t), n);
|
|
1206
|
+
}
|
|
1207
|
+
function Sa(e, t, r) {
|
|
1208
|
+
const n = M(e, r == null ? void 0 : r.in);
|
|
1209
|
+
if (isNaN(t)) return C(e, NaN);
|
|
1210
|
+
const i = n.getDate(), o = C(e, n.getTime());
|
|
704
1211
|
o.setMonth(n.getMonth() + t + 1, 0);
|
|
705
1212
|
const c = o.getDate();
|
|
706
1213
|
return i >= c ? o : (n.setFullYear(
|
|
@@ -713,24 +1220,24 @@ let va = {};
|
|
|
713
1220
|
function oe() {
|
|
714
1221
|
return va;
|
|
715
1222
|
}
|
|
716
|
-
function
|
|
1223
|
+
function A(e, t) {
|
|
717
1224
|
var d, m, f, _;
|
|
718
|
-
const r = oe(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((m = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : m.weekStartsOn) ?? r.weekStartsOn ?? ((_ = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : _.weekStartsOn) ?? 0, i =
|
|
1225
|
+
const r = oe(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((m = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : m.weekStartsOn) ?? r.weekStartsOn ?? ((_ = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : _.weekStartsOn) ?? 0, i = M(e, t == null ? void 0 : t.in), o = i.getDay(), c = (o < n ? 7 : 0) + o - n;
|
|
719
1226
|
return i.setDate(i.getDate() - c), i.setHours(0, 0, 0, 0), i;
|
|
720
1227
|
}
|
|
721
1228
|
function pe(e, t) {
|
|
722
|
-
return
|
|
1229
|
+
return A(e, { ...t, weekStartsOn: 1 });
|
|
723
1230
|
}
|
|
724
1231
|
function or(e, t) {
|
|
725
|
-
const r =
|
|
1232
|
+
const r = M(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = C(r, 0);
|
|
726
1233
|
i.setFullYear(n + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
727
|
-
const o = pe(i), c =
|
|
1234
|
+
const o = pe(i), c = C(r, 0);
|
|
728
1235
|
c.setFullYear(n, 0, 4), c.setHours(0, 0, 0, 0);
|
|
729
1236
|
const d = pe(c);
|
|
730
1237
|
return r.getTime() >= o.getTime() ? n + 1 : r.getTime() >= d.getTime() ? n : n - 1;
|
|
731
1238
|
}
|
|
732
|
-
function
|
|
733
|
-
const t =
|
|
1239
|
+
function Yt(e) {
|
|
1240
|
+
const t = M(e), r = new Date(
|
|
734
1241
|
Date.UTC(
|
|
735
1242
|
t.getFullYear(),
|
|
736
1243
|
t.getMonth(),
|
|
@@ -743,44 +1250,44 @@ function Rt(e) {
|
|
|
743
1250
|
);
|
|
744
1251
|
return r.setUTCFullYear(t.getFullYear()), +e - +r;
|
|
745
1252
|
}
|
|
746
|
-
function
|
|
747
|
-
const r =
|
|
1253
|
+
function Ea(e, ...t) {
|
|
1254
|
+
const r = C.bind(
|
|
748
1255
|
null,
|
|
749
1256
|
t.find((n) => typeof n == "object")
|
|
750
1257
|
);
|
|
751
1258
|
return t.map(r);
|
|
752
1259
|
}
|
|
753
1260
|
function _e(e, t) {
|
|
754
|
-
const r =
|
|
1261
|
+
const r = M(e, t == null ? void 0 : t.in);
|
|
755
1262
|
return r.setHours(0, 0, 0, 0), r;
|
|
756
1263
|
}
|
|
757
1264
|
function xa(e, t, r) {
|
|
758
|
-
const [n, i] =
|
|
1265
|
+
const [n, i] = Ea(
|
|
759
1266
|
r == null ? void 0 : r.in,
|
|
760
1267
|
e,
|
|
761
1268
|
t
|
|
762
|
-
), o = _e(n), c = _e(i), d = +o -
|
|
763
|
-
return Math.round((d - m) /
|
|
1269
|
+
), o = _e(n), c = _e(i), d = +o - Yt(o), m = +c - Yt(c);
|
|
1270
|
+
return Math.round((d - m) / Da);
|
|
764
1271
|
}
|
|
765
|
-
function
|
|
766
|
-
const r = or(e, t), n =
|
|
1272
|
+
function Na(e, t) {
|
|
1273
|
+
const r = or(e, t), n = C(e, 0);
|
|
767
1274
|
return n.setFullYear(r, 0, 4), n.setHours(0, 0, 0, 0), pe(n);
|
|
768
1275
|
}
|
|
769
1276
|
function Pa(e) {
|
|
770
1277
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
771
1278
|
}
|
|
772
|
-
function
|
|
773
|
-
return !(!Pa(e) && typeof e != "number" || isNaN(+
|
|
1279
|
+
function Ia(e) {
|
|
1280
|
+
return !(!Pa(e) && typeof e != "number" || isNaN(+M(e)));
|
|
774
1281
|
}
|
|
775
|
-
function
|
|
776
|
-
const r =
|
|
1282
|
+
function J(e, t) {
|
|
1283
|
+
const r = M(e, t == null ? void 0 : t.in);
|
|
777
1284
|
return r.setDate(1), r.setHours(0, 0, 0, 0), r;
|
|
778
1285
|
}
|
|
779
|
-
function
|
|
780
|
-
const r =
|
|
1286
|
+
function Ca(e, t) {
|
|
1287
|
+
const r = M(e, t == null ? void 0 : t.in);
|
|
781
1288
|
return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
782
1289
|
}
|
|
783
|
-
const
|
|
1290
|
+
const Ra = {
|
|
784
1291
|
lessThanXSeconds: {
|
|
785
1292
|
one: "less than a second",
|
|
786
1293
|
other: "less than {{count}} seconds"
|
|
@@ -842,9 +1349,9 @@ const ka = {
|
|
|
842
1349
|
one: "almost 1 year",
|
|
843
1350
|
other: "almost {{count}} years"
|
|
844
1351
|
}
|
|
845
|
-
},
|
|
1352
|
+
}, ka = (e, t, r) => {
|
|
846
1353
|
let n;
|
|
847
|
-
const i =
|
|
1354
|
+
const i = Ra[e];
|
|
848
1355
|
return typeof i == "string" ? n = i : t === 1 ? n = i.one : n = i.other.replace("{{count}}", t.toString()), r != null && r.addSuffix ? r.comparison && r.comparison > 0 ? "in " + n : n + " ago" : n;
|
|
849
1356
|
};
|
|
850
1357
|
function Fe(e) {
|
|
@@ -853,42 +1360,42 @@ function Fe(e) {
|
|
|
853
1360
|
return e.formats[r] || e.formats[e.defaultWidth];
|
|
854
1361
|
};
|
|
855
1362
|
}
|
|
856
|
-
const
|
|
1363
|
+
const Ya = {
|
|
857
1364
|
full: "EEEE, MMMM do, y",
|
|
858
1365
|
long: "MMMM do, y",
|
|
859
1366
|
medium: "MMM d, y",
|
|
860
1367
|
short: "MM/dd/yyyy"
|
|
861
|
-
},
|
|
1368
|
+
}, Ga = {
|
|
862
1369
|
full: "h:mm:ss a zzzz",
|
|
863
1370
|
long: "h:mm:ss a z",
|
|
864
1371
|
medium: "h:mm:ss a",
|
|
865
1372
|
short: "h:mm a"
|
|
866
|
-
},
|
|
1373
|
+
}, Aa = {
|
|
867
1374
|
full: "{{date}} 'at' {{time}}",
|
|
868
1375
|
long: "{{date}} 'at' {{time}}",
|
|
869
1376
|
medium: "{{date}}, {{time}}",
|
|
870
1377
|
short: "{{date}}, {{time}}"
|
|
871
|
-
},
|
|
1378
|
+
}, Ha = {
|
|
872
1379
|
date: Fe({
|
|
873
|
-
formats:
|
|
1380
|
+
formats: Ya,
|
|
874
1381
|
defaultWidth: "full"
|
|
875
1382
|
}),
|
|
876
1383
|
time: Fe({
|
|
877
|
-
formats:
|
|
1384
|
+
formats: Ga,
|
|
878
1385
|
defaultWidth: "full"
|
|
879
1386
|
}),
|
|
880
1387
|
dateTime: Fe({
|
|
881
|
-
formats:
|
|
1388
|
+
formats: Aa,
|
|
882
1389
|
defaultWidth: "full"
|
|
883
1390
|
})
|
|
884
|
-
},
|
|
1391
|
+
}, Fa = {
|
|
885
1392
|
lastWeek: "'last' eeee 'at' p",
|
|
886
1393
|
yesterday: "'yesterday at' p",
|
|
887
1394
|
today: "'today at' p",
|
|
888
1395
|
tomorrow: "'tomorrow at' p",
|
|
889
1396
|
nextWeek: "eeee 'at' p",
|
|
890
1397
|
other: "P"
|
|
891
|
-
},
|
|
1398
|
+
}, Wa = (e, t, r, n) => Fa[e];
|
|
892
1399
|
function ne(e) {
|
|
893
1400
|
return (t, r) => {
|
|
894
1401
|
const n = r != null && r.context ? String(r.context) : "standalone";
|
|
@@ -904,7 +1411,7 @@ function ne(e) {
|
|
|
904
1411
|
return i[o];
|
|
905
1412
|
};
|
|
906
1413
|
}
|
|
907
|
-
const
|
|
1414
|
+
const La = {
|
|
908
1415
|
narrow: ["B", "A"],
|
|
909
1416
|
abbreviated: ["BC", "AD"],
|
|
910
1417
|
wide: ["Before Christ", "Anno Domini"]
|
|
@@ -912,7 +1419,7 @@ const Wa = {
|
|
|
912
1419
|
narrow: ["1", "2", "3", "4"],
|
|
913
1420
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
914
1421
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
915
|
-
},
|
|
1422
|
+
}, Ua = {
|
|
916
1423
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
917
1424
|
abbreviated: [
|
|
918
1425
|
"Jan",
|
|
@@ -942,7 +1449,7 @@ const Wa = {
|
|
|
942
1449
|
"November",
|
|
943
1450
|
"December"
|
|
944
1451
|
]
|
|
945
|
-
},
|
|
1452
|
+
}, ja = {
|
|
946
1453
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
947
1454
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
948
1455
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -955,7 +1462,7 @@ const Wa = {
|
|
|
955
1462
|
"Friday",
|
|
956
1463
|
"Saturday"
|
|
957
1464
|
]
|
|
958
|
-
},
|
|
1465
|
+
}, za = {
|
|
959
1466
|
narrow: {
|
|
960
1467
|
am: "a",
|
|
961
1468
|
pm: "p",
|
|
@@ -986,7 +1493,7 @@ const Wa = {
|
|
|
986
1493
|
evening: "evening",
|
|
987
1494
|
night: "night"
|
|
988
1495
|
}
|
|
989
|
-
},
|
|
1496
|
+
}, Va = {
|
|
990
1497
|
narrow: {
|
|
991
1498
|
am: "a",
|
|
992
1499
|
pm: "p",
|
|
@@ -1017,7 +1524,7 @@ const Wa = {
|
|
|
1017
1524
|
evening: "in the evening",
|
|
1018
1525
|
night: "at night"
|
|
1019
1526
|
}
|
|
1020
|
-
},
|
|
1527
|
+
}, Ba = (e, t) => {
|
|
1021
1528
|
const r = Number(e), n = r % 100;
|
|
1022
1529
|
if (n > 20 || n < 10)
|
|
1023
1530
|
switch (n % 10) {
|
|
@@ -1029,10 +1536,10 @@ const Wa = {
|
|
|
1029
1536
|
return r + "rd";
|
|
1030
1537
|
}
|
|
1031
1538
|
return r + "th";
|
|
1032
|
-
},
|
|
1033
|
-
ordinalNumber:
|
|
1539
|
+
}, Xa = {
|
|
1540
|
+
ordinalNumber: Ba,
|
|
1034
1541
|
era: ne({
|
|
1035
|
-
values:
|
|
1542
|
+
values: La,
|
|
1036
1543
|
defaultWidth: "wide"
|
|
1037
1544
|
}),
|
|
1038
1545
|
quarter: ne({
|
|
@@ -1041,17 +1548,17 @@ const Wa = {
|
|
|
1041
1548
|
argumentCallback: (e) => e - 1
|
|
1042
1549
|
}),
|
|
1043
1550
|
month: ne({
|
|
1044
|
-
values:
|
|
1551
|
+
values: Ua,
|
|
1045
1552
|
defaultWidth: "wide"
|
|
1046
1553
|
}),
|
|
1047
1554
|
day: ne({
|
|
1048
|
-
values:
|
|
1555
|
+
values: ja,
|
|
1049
1556
|
defaultWidth: "wide"
|
|
1050
1557
|
}),
|
|
1051
1558
|
dayPeriod: ne({
|
|
1052
|
-
values:
|
|
1559
|
+
values: za,
|
|
1053
1560
|
defaultWidth: "wide",
|
|
1054
|
-
formattingValues:
|
|
1561
|
+
formattingValues: Va,
|
|
1055
1562
|
defaultFormattingWidth: "wide"
|
|
1056
1563
|
})
|
|
1057
1564
|
};
|
|
@@ -1060,9 +1567,9 @@ function ae(e) {
|
|
|
1060
1567
|
const n = r.width, i = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], o = t.match(i);
|
|
1061
1568
|
if (!o)
|
|
1062
1569
|
return null;
|
|
1063
|
-
const c = o[0], d = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], m = Array.isArray(d) ?
|
|
1570
|
+
const c = o[0], d = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], m = Array.isArray(d) ? Za(d, (y) => y.test(c)) : (
|
|
1064
1571
|
// [TODO] -- I challenge you to fix the type
|
|
1065
|
-
|
|
1572
|
+
$a(d, (y) => y.test(c))
|
|
1066
1573
|
);
|
|
1067
1574
|
let f;
|
|
1068
1575
|
f = e.valueCallback ? e.valueCallback(m) : m, f = r.valueCallback ? (
|
|
@@ -1073,17 +1580,17 @@ function ae(e) {
|
|
|
1073
1580
|
return { value: f, rest: _ };
|
|
1074
1581
|
};
|
|
1075
1582
|
}
|
|
1076
|
-
function
|
|
1583
|
+
function $a(e, t) {
|
|
1077
1584
|
for (const r in e)
|
|
1078
1585
|
if (Object.prototype.hasOwnProperty.call(e, r) && t(e[r]))
|
|
1079
1586
|
return r;
|
|
1080
1587
|
}
|
|
1081
|
-
function
|
|
1588
|
+
function Za(e, t) {
|
|
1082
1589
|
for (let r = 0; r < e.length; r++)
|
|
1083
1590
|
if (t(e[r]))
|
|
1084
1591
|
return r;
|
|
1085
1592
|
}
|
|
1086
|
-
function
|
|
1593
|
+
function Qa(e) {
|
|
1087
1594
|
return (t, r = {}) => {
|
|
1088
1595
|
const n = t.match(e.matchPattern);
|
|
1089
1596
|
if (!n) return null;
|
|
@@ -1095,23 +1602,23 @@ function Za(e) {
|
|
|
1095
1602
|
return { value: c, rest: d };
|
|
1096
1603
|
};
|
|
1097
1604
|
}
|
|
1098
|
-
const
|
|
1605
|
+
const Ka = /^(\d+)(th|st|nd|rd)?/i, Ja = /\d+/i, ei = {
|
|
1099
1606
|
narrow: /^(b|a)/i,
|
|
1100
1607
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1101
1608
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
1102
|
-
}, ei = {
|
|
1103
|
-
any: [/^b/i, /^(a|c)/i]
|
|
1104
1609
|
}, ti = {
|
|
1610
|
+
any: [/^b/i, /^(a|c)/i]
|
|
1611
|
+
}, ri = {
|
|
1105
1612
|
narrow: /^[1234]/i,
|
|
1106
1613
|
abbreviated: /^q[1234]/i,
|
|
1107
1614
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
1108
|
-
}, ri = {
|
|
1109
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1110
1615
|
}, ni = {
|
|
1616
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1617
|
+
}, ai = {
|
|
1111
1618
|
narrow: /^[jfmasond]/i,
|
|
1112
1619
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1113
1620
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1114
|
-
},
|
|
1621
|
+
}, ii = {
|
|
1115
1622
|
narrow: [
|
|
1116
1623
|
/^j/i,
|
|
1117
1624
|
/^f/i,
|
|
@@ -1140,18 +1647,18 @@ const Ba = /^(\d+)(th|st|nd|rd)?/i, Ja = /\d+/i, Ka = {
|
|
|
1140
1647
|
/^n/i,
|
|
1141
1648
|
/^d/i
|
|
1142
1649
|
]
|
|
1143
|
-
},
|
|
1650
|
+
}, si = {
|
|
1144
1651
|
narrow: /^[smtwf]/i,
|
|
1145
1652
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1146
1653
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1147
1654
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1148
|
-
},
|
|
1655
|
+
}, oi = {
|
|
1149
1656
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1150
1657
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1151
|
-
},
|
|
1658
|
+
}, ui = {
|
|
1152
1659
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1153
1660
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1154
|
-
},
|
|
1661
|
+
}, ci = {
|
|
1155
1662
|
any: {
|
|
1156
1663
|
am: /^a/i,
|
|
1157
1664
|
pm: /^p/i,
|
|
@@ -1162,79 +1669,79 @@ const Ba = /^(\d+)(th|st|nd|rd)?/i, Ja = /\d+/i, Ka = {
|
|
|
1162
1669
|
evening: /evening/i,
|
|
1163
1670
|
night: /night/i
|
|
1164
1671
|
}
|
|
1165
|
-
},
|
|
1166
|
-
ordinalNumber:
|
|
1167
|
-
matchPattern:
|
|
1672
|
+
}, li = {
|
|
1673
|
+
ordinalNumber: Qa({
|
|
1674
|
+
matchPattern: Ka,
|
|
1168
1675
|
parsePattern: Ja,
|
|
1169
1676
|
valueCallback: (e) => parseInt(e, 10)
|
|
1170
1677
|
}),
|
|
1171
1678
|
era: ae({
|
|
1172
|
-
matchPatterns:
|
|
1679
|
+
matchPatterns: ei,
|
|
1173
1680
|
defaultMatchWidth: "wide",
|
|
1174
|
-
parsePatterns:
|
|
1681
|
+
parsePatterns: ti,
|
|
1175
1682
|
defaultParseWidth: "any"
|
|
1176
1683
|
}),
|
|
1177
1684
|
quarter: ae({
|
|
1178
|
-
matchPatterns:
|
|
1685
|
+
matchPatterns: ri,
|
|
1179
1686
|
defaultMatchWidth: "wide",
|
|
1180
|
-
parsePatterns:
|
|
1687
|
+
parsePatterns: ni,
|
|
1181
1688
|
defaultParseWidth: "any",
|
|
1182
1689
|
valueCallback: (e) => e + 1
|
|
1183
1690
|
}),
|
|
1184
1691
|
month: ae({
|
|
1185
|
-
matchPatterns:
|
|
1692
|
+
matchPatterns: ai,
|
|
1186
1693
|
defaultMatchWidth: "wide",
|
|
1187
|
-
parsePatterns:
|
|
1694
|
+
parsePatterns: ii,
|
|
1188
1695
|
defaultParseWidth: "any"
|
|
1189
1696
|
}),
|
|
1190
1697
|
day: ae({
|
|
1191
|
-
matchPatterns:
|
|
1698
|
+
matchPatterns: si,
|
|
1192
1699
|
defaultMatchWidth: "wide",
|
|
1193
|
-
parsePatterns:
|
|
1700
|
+
parsePatterns: oi,
|
|
1194
1701
|
defaultParseWidth: "any"
|
|
1195
1702
|
}),
|
|
1196
1703
|
dayPeriod: ae({
|
|
1197
|
-
matchPatterns:
|
|
1704
|
+
matchPatterns: ui,
|
|
1198
1705
|
defaultMatchWidth: "any",
|
|
1199
|
-
parsePatterns:
|
|
1706
|
+
parsePatterns: ci,
|
|
1200
1707
|
defaultParseWidth: "any"
|
|
1201
1708
|
})
|
|
1202
|
-
},
|
|
1709
|
+
}, di = {
|
|
1203
1710
|
code: "en-US",
|
|
1204
|
-
formatDistance:
|
|
1205
|
-
formatLong:
|
|
1206
|
-
formatRelative:
|
|
1207
|
-
localize:
|
|
1208
|
-
match:
|
|
1711
|
+
formatDistance: ka,
|
|
1712
|
+
formatLong: Ha,
|
|
1713
|
+
formatRelative: Wa,
|
|
1714
|
+
localize: Xa,
|
|
1715
|
+
match: li,
|
|
1209
1716
|
options: {
|
|
1210
1717
|
weekStartsOn: 0,
|
|
1211
1718
|
firstWeekContainsDate: 1
|
|
1212
1719
|
}
|
|
1213
1720
|
};
|
|
1214
|
-
function di(e, t) {
|
|
1215
|
-
const r = O(e, t == null ? void 0 : t.in);
|
|
1216
|
-
return xa(r, Ia(r)) + 1;
|
|
1217
|
-
}
|
|
1218
1721
|
function fi(e, t) {
|
|
1219
|
-
const r =
|
|
1722
|
+
const r = M(e, t == null ? void 0 : t.in);
|
|
1723
|
+
return xa(r, Ca(r)) + 1;
|
|
1724
|
+
}
|
|
1725
|
+
function mi(e, t) {
|
|
1726
|
+
const r = M(e, t == null ? void 0 : t.in), n = +pe(r) - +Na(r);
|
|
1220
1727
|
return Math.round(n / sr) + 1;
|
|
1221
1728
|
}
|
|
1222
1729
|
function ur(e, t) {
|
|
1223
|
-
var _, y, g,
|
|
1224
|
-
const r =
|
|
1730
|
+
var _, y, g, x;
|
|
1731
|
+
const r = M(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = oe(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((y = (_ = t == null ? void 0 : t.locale) == null ? void 0 : _.options) == null ? void 0 : y.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((x = (g = i.locale) == null ? void 0 : g.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, c = C((t == null ? void 0 : t.in) || e, 0);
|
|
1225
1732
|
c.setFullYear(n + 1, 0, o), c.setHours(0, 0, 0, 0);
|
|
1226
|
-
const d =
|
|
1733
|
+
const d = A(c, t), m = C((t == null ? void 0 : t.in) || e, 0);
|
|
1227
1734
|
m.setFullYear(n, 0, o), m.setHours(0, 0, 0, 0);
|
|
1228
|
-
const f =
|
|
1735
|
+
const f = A(m, t);
|
|
1229
1736
|
return +r >= +d ? n + 1 : +r >= +f ? n : n - 1;
|
|
1230
1737
|
}
|
|
1231
|
-
function
|
|
1738
|
+
function hi(e, t) {
|
|
1232
1739
|
var d, m, f, _;
|
|
1233
|
-
const r = oe(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((m = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((_ = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, i = ur(e, t), o =
|
|
1234
|
-
return o.setFullYear(i, 0, n), o.setHours(0, 0, 0, 0),
|
|
1740
|
+
const r = oe(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((m = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((_ = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, i = ur(e, t), o = C((t == null ? void 0 : t.in) || e, 0);
|
|
1741
|
+
return o.setFullYear(i, 0, n), o.setHours(0, 0, 0, 0), A(o, t);
|
|
1235
1742
|
}
|
|
1236
|
-
function
|
|
1237
|
-
const r =
|
|
1743
|
+
function yi(e, t) {
|
|
1744
|
+
const r = M(e, t == null ? void 0 : t.in), n = +A(r, t) - +hi(r, t);
|
|
1238
1745
|
return Math.round(n / sr) + 1;
|
|
1239
1746
|
}
|
|
1240
1747
|
function p(e, t) {
|
|
@@ -1295,14 +1802,14 @@ const F = {
|
|
|
1295
1802
|
);
|
|
1296
1803
|
return p(i, t.length);
|
|
1297
1804
|
}
|
|
1298
|
-
},
|
|
1805
|
+
}, Q = {
|
|
1299
1806
|
midnight: "midnight",
|
|
1300
1807
|
noon: "noon",
|
|
1301
1808
|
morning: "morning",
|
|
1302
1809
|
afternoon: "afternoon",
|
|
1303
1810
|
evening: "evening",
|
|
1304
1811
|
night: "night"
|
|
1305
|
-
},
|
|
1812
|
+
}, Gt = {
|
|
1306
1813
|
// Era
|
|
1307
1814
|
G: function(e, t, r) {
|
|
1308
1815
|
const n = e.getFullYear() > 0 ? 1 : 0;
|
|
@@ -1460,12 +1967,12 @@ const F = {
|
|
|
1460
1967
|
},
|
|
1461
1968
|
// Local week of year
|
|
1462
1969
|
w: function(e, t, r, n) {
|
|
1463
|
-
const i =
|
|
1970
|
+
const i = yi(e, n);
|
|
1464
1971
|
return t === "wo" ? r.ordinalNumber(i, { unit: "week" }) : p(i, t.length);
|
|
1465
1972
|
},
|
|
1466
1973
|
// ISO week of year
|
|
1467
1974
|
I: function(e, t, r) {
|
|
1468
|
-
const n =
|
|
1975
|
+
const n = mi(e);
|
|
1469
1976
|
return t === "Io" ? r.ordinalNumber(n, { unit: "week" }) : p(n, t.length);
|
|
1470
1977
|
},
|
|
1471
1978
|
// Day of the month
|
|
@@ -1474,7 +1981,7 @@ const F = {
|
|
|
1474
1981
|
},
|
|
1475
1982
|
// Day of year
|
|
1476
1983
|
D: function(e, t, r) {
|
|
1477
|
-
const n =
|
|
1984
|
+
const n = fi(e);
|
|
1478
1985
|
return t === "Do" ? r.ordinalNumber(n, { unit: "dayOfYear" }) : p(n, t.length);
|
|
1479
1986
|
},
|
|
1480
1987
|
// Day of week
|
|
@@ -1637,7 +2144,7 @@ const F = {
|
|
|
1637
2144
|
b: function(e, t, r) {
|
|
1638
2145
|
const n = e.getHours();
|
|
1639
2146
|
let i;
|
|
1640
|
-
switch (n === 12 ? i =
|
|
2147
|
+
switch (n === 12 ? i = Q.noon : n === 0 ? i = Q.midnight : i = n / 12 >= 1 ? "pm" : "am", t) {
|
|
1641
2148
|
case "b":
|
|
1642
2149
|
case "bb":
|
|
1643
2150
|
return r.dayPeriod(i, {
|
|
@@ -1666,7 +2173,7 @@ const F = {
|
|
|
1666
2173
|
B: function(e, t, r) {
|
|
1667
2174
|
const n = e.getHours();
|
|
1668
2175
|
let i;
|
|
1669
|
-
switch (n >= 17 ? i =
|
|
2176
|
+
switch (n >= 17 ? i = Q.evening : n >= 12 ? i = Q.afternoon : n >= 4 ? i = Q.morning : i = Q.night, t) {
|
|
1670
2177
|
case "B":
|
|
1671
2178
|
case "BB":
|
|
1672
2179
|
case "BBB":
|
|
@@ -1728,7 +2235,7 @@ const F = {
|
|
|
1728
2235
|
return "Z";
|
|
1729
2236
|
switch (t) {
|
|
1730
2237
|
case "X":
|
|
1731
|
-
return
|
|
2238
|
+
return Ht(n);
|
|
1732
2239
|
case "XXXX":
|
|
1733
2240
|
case "XX":
|
|
1734
2241
|
return V(n);
|
|
@@ -1743,7 +2250,7 @@ const F = {
|
|
|
1743
2250
|
const n = e.getTimezoneOffset();
|
|
1744
2251
|
switch (t) {
|
|
1745
2252
|
case "x":
|
|
1746
|
-
return
|
|
2253
|
+
return Ht(n);
|
|
1747
2254
|
case "xxxx":
|
|
1748
2255
|
case "xx":
|
|
1749
2256
|
return V(n);
|
|
@@ -1760,7 +2267,7 @@ const F = {
|
|
|
1760
2267
|
case "O":
|
|
1761
2268
|
case "OO":
|
|
1762
2269
|
case "OOO":
|
|
1763
|
-
return "GMT" +
|
|
2270
|
+
return "GMT" + At(n, ":");
|
|
1764
2271
|
case "OOOO":
|
|
1765
2272
|
default:
|
|
1766
2273
|
return "GMT" + V(n, ":");
|
|
@@ -1773,7 +2280,7 @@ const F = {
|
|
|
1773
2280
|
case "z":
|
|
1774
2281
|
case "zz":
|
|
1775
2282
|
case "zzz":
|
|
1776
|
-
return "GMT" +
|
|
2283
|
+
return "GMT" + At(n, ":");
|
|
1777
2284
|
case "zzzz":
|
|
1778
2285
|
default:
|
|
1779
2286
|
return "GMT" + V(n, ":");
|
|
@@ -1789,11 +2296,11 @@ const F = {
|
|
|
1789
2296
|
return p(+e, t.length);
|
|
1790
2297
|
}
|
|
1791
2298
|
};
|
|
1792
|
-
function
|
|
2299
|
+
function At(e, t = "") {
|
|
1793
2300
|
const r = e > 0 ? "-" : "+", n = Math.abs(e), i = Math.trunc(n / 60), o = n % 60;
|
|
1794
2301
|
return o === 0 ? r + String(i) : r + String(i) + t + p(o, 2);
|
|
1795
2302
|
}
|
|
1796
|
-
function
|
|
2303
|
+
function Ht(e, t) {
|
|
1797
2304
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + p(Math.abs(e) / 60, 2) : V(e, t);
|
|
1798
2305
|
}
|
|
1799
2306
|
function V(e, t = "") {
|
|
@@ -1824,7 +2331,7 @@ const Ft = (e, t) => {
|
|
|
1824
2331
|
default:
|
|
1825
2332
|
return t.time({ width: "full" });
|
|
1826
2333
|
}
|
|
1827
|
-
},
|
|
2334
|
+
}, gi = (e, t) => {
|
|
1828
2335
|
const r = e.match(/(P+)(p+)?/) || [], n = r[1], i = r[2];
|
|
1829
2336
|
if (!i)
|
|
1830
2337
|
return Ft(e, t);
|
|
@@ -1845,50 +2352,50 @@ const Ft = (e, t) => {
|
|
|
1845
2352
|
break;
|
|
1846
2353
|
}
|
|
1847
2354
|
return o.replace("{{date}}", Ft(n, t)).replace("{{time}}", cr(i, t));
|
|
1848
|
-
},
|
|
2355
|
+
}, pi = {
|
|
1849
2356
|
p: cr,
|
|
1850
|
-
P:
|
|
1851
|
-
},
|
|
1852
|
-
function bi(e) {
|
|
1853
|
-
return pi.test(e);
|
|
1854
|
-
}
|
|
2357
|
+
P: gi
|
|
2358
|
+
}, _i = /^D+$/, wi = /^Y+$/, bi = ["D", "DD", "YY", "YYYY"];
|
|
1855
2359
|
function Ti(e) {
|
|
1856
2360
|
return _i.test(e);
|
|
1857
2361
|
}
|
|
1858
|
-
function Di(e
|
|
2362
|
+
function Di(e) {
|
|
2363
|
+
return wi.test(e);
|
|
2364
|
+
}
|
|
2365
|
+
function Mi(e, t, r) {
|
|
1859
2366
|
const n = Oi(e, t, r);
|
|
1860
|
-
if (console.warn(n),
|
|
2367
|
+
if (console.warn(n), bi.includes(e)) throw new RangeError(n);
|
|
1861
2368
|
}
|
|
1862
2369
|
function Oi(e, t, r) {
|
|
1863
2370
|
const n = e[0] === "Y" ? "years" : "days of the month";
|
|
1864
2371
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1865
2372
|
}
|
|
1866
|
-
const
|
|
2373
|
+
const Si = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, vi = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ei = /^'([^]*?)'?$/, xi = /''/g, Ni = /[a-zA-Z]/;
|
|
1867
2374
|
function lr(e, t, r) {
|
|
1868
|
-
var _, y, g,
|
|
1869
|
-
const n = oe(), i = (r == null ? void 0 : r.locale) ?? n.locale ??
|
|
1870
|
-
if (!
|
|
2375
|
+
var _, y, g, x, N, P, R, L;
|
|
2376
|
+
const n = oe(), i = (r == null ? void 0 : r.locale) ?? n.locale ?? di, o = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((y = (_ = r == null ? void 0 : r.locale) == null ? void 0 : _.options) == null ? void 0 : y.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((x = (g = n.locale) == null ? void 0 : g.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, c = (r == null ? void 0 : r.weekStartsOn) ?? ((P = (N = r == null ? void 0 : r.locale) == null ? void 0 : N.options) == null ? void 0 : P.weekStartsOn) ?? n.weekStartsOn ?? ((L = (R = n.locale) == null ? void 0 : R.options) == null ? void 0 : L.weekStartsOn) ?? 0, d = M(e, r == null ? void 0 : r.in);
|
|
2377
|
+
if (!Ia(d))
|
|
1871
2378
|
throw new RangeError("Invalid time value");
|
|
1872
|
-
let m = t.match(vi).map((
|
|
1873
|
-
const T =
|
|
2379
|
+
let m = t.match(vi).map((O) => {
|
|
2380
|
+
const T = O[0];
|
|
1874
2381
|
if (T === "p" || T === "P") {
|
|
1875
|
-
const
|
|
1876
|
-
return
|
|
2382
|
+
const q = pi[T];
|
|
2383
|
+
return q(O, i.formatLong);
|
|
1877
2384
|
}
|
|
1878
|
-
return
|
|
1879
|
-
}).join("").match(
|
|
1880
|
-
if (
|
|
2385
|
+
return O;
|
|
2386
|
+
}).join("").match(Si).map((O) => {
|
|
2387
|
+
if (O === "''")
|
|
1881
2388
|
return { isToken: !1, value: "'" };
|
|
1882
|
-
const T =
|
|
2389
|
+
const T = O[0];
|
|
1883
2390
|
if (T === "'")
|
|
1884
|
-
return { isToken: !1, value: Pi(
|
|
1885
|
-
if (
|
|
1886
|
-
return { isToken: !0, value:
|
|
1887
|
-
if (T.match(
|
|
2391
|
+
return { isToken: !1, value: Pi(O) };
|
|
2392
|
+
if (Gt[T])
|
|
2393
|
+
return { isToken: !0, value: O };
|
|
2394
|
+
if (T.match(Ni))
|
|
1888
2395
|
throw new RangeError(
|
|
1889
2396
|
"Format string contains an unescaped latin alphabet character `" + T + "`"
|
|
1890
2397
|
);
|
|
1891
|
-
return { isToken: !1, value:
|
|
2398
|
+
return { isToken: !1, value: O };
|
|
1892
2399
|
});
|
|
1893
2400
|
i.localize.preprocessor && (m = i.localize.preprocessor(d, m));
|
|
1894
2401
|
const f = {
|
|
@@ -1896,66 +2403,66 @@ function lr(e, t, r) {
|
|
|
1896
2403
|
weekStartsOn: c,
|
|
1897
2404
|
locale: i
|
|
1898
2405
|
};
|
|
1899
|
-
return m.map((
|
|
1900
|
-
if (!
|
|
1901
|
-
const T =
|
|
1902
|
-
(!(r != null && r.useAdditionalWeekYearTokens) &&
|
|
1903
|
-
const
|
|
1904
|
-
return
|
|
2406
|
+
return m.map((O) => {
|
|
2407
|
+
if (!O.isToken) return O.value;
|
|
2408
|
+
const T = O.value;
|
|
2409
|
+
(!(r != null && r.useAdditionalWeekYearTokens) && Di(T) || !(r != null && r.useAdditionalDayOfYearTokens) && Ti(T)) && Mi(T, t, String(e));
|
|
2410
|
+
const q = Gt[T[0]];
|
|
2411
|
+
return q(d, T, i.localize, f);
|
|
1905
2412
|
}).join("");
|
|
1906
2413
|
}
|
|
1907
2414
|
function Pi(e) {
|
|
1908
|
-
const t = e.match(
|
|
2415
|
+
const t = e.match(Ei);
|
|
1909
2416
|
return t ? t[1].replace(xi, "'") : e;
|
|
1910
2417
|
}
|
|
1911
|
-
function
|
|
1912
|
-
const r =
|
|
2418
|
+
function Ii(e, t) {
|
|
2419
|
+
const r = M(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = r.getMonth(), o = C(r, 0);
|
|
1913
2420
|
return o.setFullYear(n, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
1914
2421
|
}
|
|
1915
|
-
function
|
|
2422
|
+
function Ci() {
|
|
1916
2423
|
return Object.assign({}, oe());
|
|
1917
2424
|
}
|
|
1918
2425
|
function Wt(e) {
|
|
1919
|
-
return +
|
|
2426
|
+
return +M(e);
|
|
1920
2427
|
}
|
|
1921
|
-
function
|
|
1922
|
-
return Math.trunc(+
|
|
2428
|
+
function Lt(e) {
|
|
2429
|
+
return Math.trunc(+M(e) / 1e3);
|
|
1923
2430
|
}
|
|
1924
|
-
function
|
|
2431
|
+
function Ri(e) {
|
|
1925
2432
|
return Math.trunc(e * Oa);
|
|
1926
2433
|
}
|
|
1927
|
-
function
|
|
1928
|
-
const t = e /
|
|
2434
|
+
function ki(e) {
|
|
2435
|
+
const t = e / Ma;
|
|
1929
2436
|
return Math.trunc(t);
|
|
1930
2437
|
}
|
|
1931
2438
|
function dr(e, t, r) {
|
|
1932
|
-
return
|
|
2439
|
+
return Sa(e, -1, r);
|
|
1933
2440
|
}
|
|
1934
|
-
function
|
|
1935
|
-
const n =
|
|
1936
|
-
return "formatToParts" in i ?
|
|
2441
|
+
function qt(e, t, r) {
|
|
2442
|
+
const n = Ci(), i = Ai(e, r.timeZone, r.locale ?? n.locale);
|
|
2443
|
+
return "formatToParts" in i ? Yi(i, t) : Gi(i, t);
|
|
1937
2444
|
}
|
|
1938
|
-
function
|
|
2445
|
+
function Yi(e, t) {
|
|
1939
2446
|
const r = e.formatToParts(t);
|
|
1940
2447
|
for (let n = r.length - 1; n >= 0; --n)
|
|
1941
2448
|
if (r[n].type === "timeZoneName")
|
|
1942
2449
|
return r[n].value;
|
|
1943
2450
|
}
|
|
1944
|
-
function
|
|
2451
|
+
function Gi(e, t) {
|
|
1945
2452
|
const r = e.format(t).replace(/\u200E/g, ""), n = / [\w-+ ]+$/.exec(r);
|
|
1946
2453
|
return n ? n[0].substr(1) : "";
|
|
1947
2454
|
}
|
|
1948
|
-
function
|
|
2455
|
+
function Ai(e, t, r) {
|
|
1949
2456
|
return new Intl.DateTimeFormat(r ? [r.code, "en-US"] : void 0, {
|
|
1950
2457
|
timeZone: t,
|
|
1951
2458
|
timeZoneName: e
|
|
1952
2459
|
});
|
|
1953
2460
|
}
|
|
1954
|
-
function
|
|
1955
|
-
const r =
|
|
1956
|
-
return "formatToParts" in r ?
|
|
2461
|
+
function Hi(e, t) {
|
|
2462
|
+
const r = Ui(t);
|
|
2463
|
+
return "formatToParts" in r ? Wi(r, e) : Li(r, e);
|
|
1957
2464
|
}
|
|
1958
|
-
const
|
|
2465
|
+
const Fi = {
|
|
1959
2466
|
year: 0,
|
|
1960
2467
|
month: 1,
|
|
1961
2468
|
day: 2,
|
|
@@ -1963,11 +2470,11 @@ const Ai = {
|
|
|
1963
2470
|
minute: 4,
|
|
1964
2471
|
second: 5
|
|
1965
2472
|
};
|
|
1966
|
-
function
|
|
2473
|
+
function Wi(e, t) {
|
|
1967
2474
|
try {
|
|
1968
2475
|
const r = e.formatToParts(t), n = [];
|
|
1969
2476
|
for (let i = 0; i < r.length; i++) {
|
|
1970
|
-
const o =
|
|
2477
|
+
const o = Fi[r[i].type];
|
|
1971
2478
|
o !== void 0 && (n[o] = parseInt(r[i].value, 10));
|
|
1972
2479
|
}
|
|
1973
2480
|
return n;
|
|
@@ -1977,7 +2484,7 @@ function Fi(e, t) {
|
|
|
1977
2484
|
throw r;
|
|
1978
2485
|
}
|
|
1979
2486
|
}
|
|
1980
|
-
function
|
|
2487
|
+
function Li(e, t) {
|
|
1981
2488
|
const r = e.format(t), n = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);
|
|
1982
2489
|
return [
|
|
1983
2490
|
parseInt(n[3], 10),
|
|
@@ -1988,7 +2495,7 @@ function Wi(e, t) {
|
|
|
1988
2495
|
parseInt(n[6], 10)
|
|
1989
2496
|
];
|
|
1990
2497
|
}
|
|
1991
|
-
const We = {},
|
|
2498
|
+
const We = {}, Ut = new Intl.DateTimeFormat("en-US", {
|
|
1992
2499
|
hourCycle: "h23",
|
|
1993
2500
|
timeZone: "America/New_York",
|
|
1994
2501
|
year: "numeric",
|
|
@@ -1997,8 +2504,8 @@ const We = {}, Lt = new Intl.DateTimeFormat("en-US", {
|
|
|
1997
2504
|
hour: "2-digit",
|
|
1998
2505
|
minute: "2-digit",
|
|
1999
2506
|
second: "2-digit"
|
|
2000
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), qi =
|
|
2001
|
-
function
|
|
2507
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), qi = Ut === "06/25/2014, 00:00:00" || Ut === "06/25/2014 00:00:00";
|
|
2508
|
+
function Ui(e) {
|
|
2002
2509
|
return We[e] || (We[e] = qi ? new Intl.DateTimeFormat("en-US", {
|
|
2003
2510
|
hourCycle: "h23",
|
|
2004
2511
|
timeZone: e,
|
|
@@ -2023,7 +2530,7 @@ function Ze(e, t, r, n, i, o, c) {
|
|
|
2023
2530
|
const d = /* @__PURE__ */ new Date(0);
|
|
2024
2531
|
return d.setUTCFullYear(e, t, r), d.setUTCHours(n, i, o, c), d;
|
|
2025
2532
|
}
|
|
2026
|
-
const
|
|
2533
|
+
const jt = 36e5, ji = 6e4, Le = {
|
|
2027
2534
|
timezoneZ: /^(Z)$/,
|
|
2028
2535
|
timezoneHH: /^([+-]\d{2})$/,
|
|
2029
2536
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -2031,34 +2538,34 @@ const Ut = 36e5, Li = 6e4, qe = {
|
|
|
2031
2538
|
function ue(e, t, r) {
|
|
2032
2539
|
if (!e)
|
|
2033
2540
|
return 0;
|
|
2034
|
-
let n =
|
|
2541
|
+
let n = Le.timezoneZ.exec(e);
|
|
2035
2542
|
if (n)
|
|
2036
2543
|
return 0;
|
|
2037
2544
|
let i, o;
|
|
2038
|
-
if (n =
|
|
2039
|
-
return i = parseInt(n[1], 10), zt(i) ? -(i *
|
|
2040
|
-
if (n =
|
|
2545
|
+
if (n = Le.timezoneHH.exec(e), n)
|
|
2546
|
+
return i = parseInt(n[1], 10), zt(i) ? -(i * jt) : NaN;
|
|
2547
|
+
if (n = Le.timezoneHHMM.exec(e), n) {
|
|
2041
2548
|
i = parseInt(n[2], 10);
|
|
2042
2549
|
const c = parseInt(n[3], 10);
|
|
2043
|
-
return zt(i, c) ? (o = Math.abs(i) *
|
|
2550
|
+
return zt(i, c) ? (o = Math.abs(i) * jt + c * ji, n[1] === "+" ? -o : o) : NaN;
|
|
2044
2551
|
}
|
|
2045
|
-
if (
|
|
2552
|
+
if (Bi(e)) {
|
|
2046
2553
|
t = new Date(t || Date.now());
|
|
2047
|
-
const c = r ? t :
|
|
2048
|
-
return -(r ? d :
|
|
2554
|
+
const c = r ? t : zi(t), d = ze(c, e);
|
|
2555
|
+
return -(r ? d : Vi(t, d, e));
|
|
2049
2556
|
}
|
|
2050
2557
|
return NaN;
|
|
2051
2558
|
}
|
|
2052
|
-
function
|
|
2559
|
+
function zi(e) {
|
|
2053
2560
|
return Ze(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
2054
2561
|
}
|
|
2055
2562
|
function ze(e, t) {
|
|
2056
|
-
const r =
|
|
2563
|
+
const r = Hi(e, t), n = Ze(r[0], r[1] - 1, r[2], r[3] % 24, r[4], r[5], 0).getTime();
|
|
2057
2564
|
let i = e.getTime();
|
|
2058
2565
|
const o = i % 1e3;
|
|
2059
2566
|
return i -= o >= 0 ? o : 1e3 + o, n - i;
|
|
2060
2567
|
}
|
|
2061
|
-
function
|
|
2568
|
+
function Vi(e, t, r) {
|
|
2062
2569
|
let i = e.getTime() - t;
|
|
2063
2570
|
const o = ze(new Date(i), r);
|
|
2064
2571
|
if (t === o)
|
|
@@ -2071,7 +2578,7 @@ function zt(e, t) {
|
|
|
2071
2578
|
return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
|
|
2072
2579
|
}
|
|
2073
2580
|
const Vt = {};
|
|
2074
|
-
function
|
|
2581
|
+
function Bi(e) {
|
|
2075
2582
|
if (Vt[e])
|
|
2076
2583
|
return !0;
|
|
2077
2584
|
try {
|
|
@@ -2080,50 +2587,50 @@ function Vi(e) {
|
|
|
2080
2587
|
return !1;
|
|
2081
2588
|
}
|
|
2082
2589
|
}
|
|
2083
|
-
const
|
|
2590
|
+
const Xi = 60 * 1e3, $i = {
|
|
2084
2591
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
2085
2592
|
X: function(e, t, r) {
|
|
2086
|
-
const n =
|
|
2593
|
+
const n = qe(r.timeZone, e);
|
|
2087
2594
|
if (n === 0)
|
|
2088
2595
|
return "Z";
|
|
2089
2596
|
switch (t) {
|
|
2090
2597
|
case "X":
|
|
2091
|
-
return
|
|
2598
|
+
return Bt(n);
|
|
2092
2599
|
case "XXXX":
|
|
2093
2600
|
case "XX":
|
|
2094
|
-
return
|
|
2601
|
+
return K(n);
|
|
2095
2602
|
case "XXXXX":
|
|
2096
2603
|
case "XXX":
|
|
2097
2604
|
default:
|
|
2098
|
-
return
|
|
2605
|
+
return K(n, ":");
|
|
2099
2606
|
}
|
|
2100
2607
|
},
|
|
2101
2608
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
2102
2609
|
x: function(e, t, r) {
|
|
2103
|
-
const n =
|
|
2610
|
+
const n = qe(r.timeZone, e);
|
|
2104
2611
|
switch (t) {
|
|
2105
2612
|
case "x":
|
|
2106
|
-
return
|
|
2613
|
+
return Bt(n);
|
|
2107
2614
|
case "xxxx":
|
|
2108
2615
|
case "xx":
|
|
2109
|
-
return
|
|
2616
|
+
return K(n);
|
|
2110
2617
|
case "xxxxx":
|
|
2111
2618
|
case "xxx":
|
|
2112
2619
|
default:
|
|
2113
|
-
return
|
|
2620
|
+
return K(n, ":");
|
|
2114
2621
|
}
|
|
2115
2622
|
},
|
|
2116
2623
|
// Timezone (GMT)
|
|
2117
2624
|
O: function(e, t, r) {
|
|
2118
|
-
const n =
|
|
2625
|
+
const n = qe(r.timeZone, e);
|
|
2119
2626
|
switch (t) {
|
|
2120
2627
|
case "O":
|
|
2121
2628
|
case "OO":
|
|
2122
2629
|
case "OOO":
|
|
2123
|
-
return "GMT" +
|
|
2630
|
+
return "GMT" + Zi(n, ":");
|
|
2124
2631
|
case "OOOO":
|
|
2125
2632
|
default:
|
|
2126
|
-
return "GMT" +
|
|
2633
|
+
return "GMT" + K(n, ":");
|
|
2127
2634
|
}
|
|
2128
2635
|
},
|
|
2129
2636
|
// Timezone (specific non-location)
|
|
@@ -2132,15 +2639,15 @@ const $i = 60 * 1e3, Xi = {
|
|
|
2132
2639
|
case "z":
|
|
2133
2640
|
case "zz":
|
|
2134
2641
|
case "zzz":
|
|
2135
|
-
return
|
|
2642
|
+
return qt("short", e, r);
|
|
2136
2643
|
case "zzzz":
|
|
2137
2644
|
default:
|
|
2138
|
-
return
|
|
2645
|
+
return qt("long", e, r);
|
|
2139
2646
|
}
|
|
2140
2647
|
}
|
|
2141
2648
|
};
|
|
2142
|
-
function
|
|
2143
|
-
const r = e ? ue(e, t, !0) /
|
|
2649
|
+
function qe(e, t) {
|
|
2650
|
+
const r = e ? ue(e, t, !0) / Xi : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
|
|
2144
2651
|
if (Number.isNaN(r))
|
|
2145
2652
|
throw new RangeError("Invalid time zone specified: " + e);
|
|
2146
2653
|
return r;
|
|
@@ -2152,14 +2659,14 @@ function we(e, t) {
|
|
|
2152
2659
|
n = "0" + n;
|
|
2153
2660
|
return r + n;
|
|
2154
2661
|
}
|
|
2155
|
-
function
|
|
2662
|
+
function K(e, t = "") {
|
|
2156
2663
|
const r = e > 0 ? "-" : "+", n = Math.abs(e), i = we(Math.floor(n / 60), 2), o = we(Math.floor(n % 60), 2);
|
|
2157
2664
|
return r + i + t + o;
|
|
2158
2665
|
}
|
|
2159
|
-
function
|
|
2160
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") + we(Math.abs(e) / 60, 2) :
|
|
2666
|
+
function Bt(e, t) {
|
|
2667
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + we(Math.abs(e) / 60, 2) : K(e, t);
|
|
2161
2668
|
}
|
|
2162
|
-
function
|
|
2669
|
+
function Zi(e, t = "") {
|
|
2163
2670
|
const r = e > 0 ? "-" : "+", n = Math.abs(e), i = Math.floor(n / 60), o = n % 60;
|
|
2164
2671
|
return o === 0 ? r + String(i) : r + String(i) + t + we(o, 2);
|
|
2165
2672
|
}
|
|
@@ -2167,7 +2674,7 @@ function Xt(e) {
|
|
|
2167
2674
|
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
2168
2675
|
return t.setUTCFullYear(e.getFullYear()), +e - +t;
|
|
2169
2676
|
}
|
|
2170
|
-
const fr = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,
|
|
2677
|
+
const fr = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Ue = 36e5, $t = 6e4, Qi = 2, S = {
|
|
2171
2678
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
2172
2679
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
2173
2680
|
// year tokens
|
|
@@ -2206,7 +2713,7 @@ function be(e, t = {}) {
|
|
|
2206
2713
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
2207
2714
|
if (e === null)
|
|
2208
2715
|
return /* @__PURE__ */ new Date(NaN);
|
|
2209
|
-
const r = t.additionalDigits == null ?
|
|
2716
|
+
const r = t.additionalDigits == null ? Qi : Number(t.additionalDigits);
|
|
2210
2717
|
if (r !== 2 && r !== 1 && r !== 0)
|
|
2211
2718
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
2212
2719
|
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
|
|
@@ -2215,13 +2722,13 @@ function be(e, t = {}) {
|
|
|
2215
2722
|
return new Date(e);
|
|
2216
2723
|
if (Object.prototype.toString.call(e) !== "[object String]")
|
|
2217
2724
|
return /* @__PURE__ */ new Date(NaN);
|
|
2218
|
-
const n =
|
|
2725
|
+
const n = Ki(e), { year: i, restDateString: o } = Ji(n.date, r), c = es(o, i);
|
|
2219
2726
|
if (c === null || isNaN(c.getTime()))
|
|
2220
2727
|
return /* @__PURE__ */ new Date(NaN);
|
|
2221
2728
|
if (c) {
|
|
2222
2729
|
const d = c.getTime();
|
|
2223
2730
|
let m = 0, f;
|
|
2224
|
-
if (n.time && (m =
|
|
2731
|
+
if (n.time && (m = ts(n.time), m === null || isNaN(m)))
|
|
2225
2732
|
return /* @__PURE__ */ new Date(NaN);
|
|
2226
2733
|
if (n.timeZone || t.timeZone) {
|
|
2227
2734
|
if (f = ue(n.timeZone || t.timeZone, new Date(d + m)), isNaN(f))
|
|
@@ -2232,19 +2739,19 @@ function be(e, t = {}) {
|
|
|
2232
2739
|
} else
|
|
2233
2740
|
return /* @__PURE__ */ new Date(NaN);
|
|
2234
2741
|
}
|
|
2235
|
-
function
|
|
2742
|
+
function Ki(e) {
|
|
2236
2743
|
const t = {};
|
|
2237
|
-
let r =
|
|
2238
|
-
if (r ? (t.date = r[1], n = r[3]) : (r =
|
|
2239
|
-
const i =
|
|
2744
|
+
let r = S.dateTimePattern.exec(e), n;
|
|
2745
|
+
if (r ? (t.date = r[1], n = r[3]) : (r = S.datePattern.exec(e), r ? (t.date = r[1], n = r[2]) : (t.date = null, n = e)), n) {
|
|
2746
|
+
const i = S.timeZone.exec(n);
|
|
2240
2747
|
i ? (t.time = n.replace(i[1], ""), t.timeZone = i[1].trim()) : t.time = n;
|
|
2241
2748
|
}
|
|
2242
2749
|
return t;
|
|
2243
2750
|
}
|
|
2244
2751
|
function Ji(e, t) {
|
|
2245
2752
|
if (e) {
|
|
2246
|
-
const r =
|
|
2247
|
-
let i =
|
|
2753
|
+
const r = S.YYY[t], n = S.YYYYY[t];
|
|
2754
|
+
let i = S.YYYY.exec(e) || n.exec(e);
|
|
2248
2755
|
if (i) {
|
|
2249
2756
|
const o = i[1];
|
|
2250
2757
|
return {
|
|
@@ -2252,7 +2759,7 @@ function Ji(e, t) {
|
|
|
2252
2759
|
restDateString: e.slice(o.length)
|
|
2253
2760
|
};
|
|
2254
2761
|
}
|
|
2255
|
-
if (i =
|
|
2762
|
+
if (i = S.YY.exec(e) || r.exec(e), i) {
|
|
2256
2763
|
const o = i[1];
|
|
2257
2764
|
return {
|
|
2258
2765
|
year: parseInt(o, 10) * 100,
|
|
@@ -2264,44 +2771,44 @@ function Ji(e, t) {
|
|
|
2264
2771
|
year: null
|
|
2265
2772
|
};
|
|
2266
2773
|
}
|
|
2267
|
-
function
|
|
2774
|
+
function es(e, t) {
|
|
2268
2775
|
if (t === null)
|
|
2269
2776
|
return null;
|
|
2270
2777
|
let r, n, i;
|
|
2271
2778
|
if (!e || !e.length)
|
|
2272
2779
|
return r = /* @__PURE__ */ new Date(0), r.setUTCFullYear(t), r;
|
|
2273
|
-
let o =
|
|
2780
|
+
let o = S.MM.exec(e);
|
|
2274
2781
|
if (o)
|
|
2275
|
-
return r = /* @__PURE__ */ new Date(0), n = parseInt(o[1], 10) - 1,
|
|
2276
|
-
if (o =
|
|
2782
|
+
return r = /* @__PURE__ */ new Date(0), n = parseInt(o[1], 10) - 1, Qt(t, n) ? (r.setUTCFullYear(t, n), r) : /* @__PURE__ */ new Date(NaN);
|
|
2783
|
+
if (o = S.DDD.exec(e), o) {
|
|
2277
2784
|
r = /* @__PURE__ */ new Date(0);
|
|
2278
2785
|
const c = parseInt(o[1], 10);
|
|
2279
|
-
return
|
|
2786
|
+
return as(t, c) ? (r.setUTCFullYear(t, 0, c), r) : /* @__PURE__ */ new Date(NaN);
|
|
2280
2787
|
}
|
|
2281
|
-
if (o =
|
|
2788
|
+
if (o = S.MMDD.exec(e), o) {
|
|
2282
2789
|
r = /* @__PURE__ */ new Date(0), n = parseInt(o[1], 10) - 1;
|
|
2283
2790
|
const c = parseInt(o[2], 10);
|
|
2284
|
-
return
|
|
2791
|
+
return Qt(t, n, c) ? (r.setUTCFullYear(t, n, c), r) : /* @__PURE__ */ new Date(NaN);
|
|
2285
2792
|
}
|
|
2286
|
-
if (o =
|
|
2287
|
-
return i = parseInt(o[1], 10) - 1,
|
|
2288
|
-
if (o =
|
|
2793
|
+
if (o = S.Www.exec(e), o)
|
|
2794
|
+
return i = parseInt(o[1], 10) - 1, Kt(i) ? Zt(t, i) : /* @__PURE__ */ new Date(NaN);
|
|
2795
|
+
if (o = S.WwwD.exec(e), o) {
|
|
2289
2796
|
i = parseInt(o[1], 10) - 1;
|
|
2290
2797
|
const c = parseInt(o[2], 10) - 1;
|
|
2291
|
-
return
|
|
2798
|
+
return Kt(i, c) ? Zt(t, i, c) : /* @__PURE__ */ new Date(NaN);
|
|
2292
2799
|
}
|
|
2293
2800
|
return null;
|
|
2294
2801
|
}
|
|
2295
|
-
function
|
|
2296
|
-
let t, r, n =
|
|
2802
|
+
function ts(e) {
|
|
2803
|
+
let t, r, n = S.HH.exec(e);
|
|
2297
2804
|
if (n)
|
|
2298
|
-
return t = parseFloat(n[1].replace(",", ".")),
|
|
2299
|
-
if (n =
|
|
2300
|
-
return t = parseInt(n[1], 10), r = parseFloat(n[2].replace(",", ".")),
|
|
2301
|
-
if (n =
|
|
2805
|
+
return t = parseFloat(n[1].replace(",", ".")), je(t) ? t % 24 * Ue : NaN;
|
|
2806
|
+
if (n = S.HHMM.exec(e), n)
|
|
2807
|
+
return t = parseInt(n[1], 10), r = parseFloat(n[2].replace(",", ".")), je(t, r) ? t % 24 * Ue + r * $t : NaN;
|
|
2808
|
+
if (n = S.HHMMSS.exec(e), n) {
|
|
2302
2809
|
t = parseInt(n[1], 10), r = parseInt(n[2], 10);
|
|
2303
2810
|
const i = parseFloat(n[3].replace(",", "."));
|
|
2304
|
-
return
|
|
2811
|
+
return je(t, r, i) ? t % 24 * Ue + r * $t + i * 1e3 : NaN;
|
|
2305
2812
|
}
|
|
2306
2813
|
return null;
|
|
2307
2814
|
}
|
|
@@ -2312,44 +2819,44 @@ function Zt(e, t, r) {
|
|
|
2312
2819
|
const i = n.getUTCDay() || 7, o = t * 7 + r + 1 - i;
|
|
2313
2820
|
return n.setUTCDate(n.getUTCDate() + o), n;
|
|
2314
2821
|
}
|
|
2315
|
-
const
|
|
2822
|
+
const rs = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ns = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
2316
2823
|
function mr(e) {
|
|
2317
2824
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
2318
2825
|
}
|
|
2319
|
-
function
|
|
2826
|
+
function Qt(e, t, r) {
|
|
2320
2827
|
if (t < 0 || t > 11)
|
|
2321
2828
|
return !1;
|
|
2322
2829
|
if (r != null) {
|
|
2323
2830
|
if (r < 1)
|
|
2324
2831
|
return !1;
|
|
2325
2832
|
const n = mr(e);
|
|
2326
|
-
if (n && r >
|
|
2833
|
+
if (n && r > ns[t] || !n && r > rs[t])
|
|
2327
2834
|
return !1;
|
|
2328
2835
|
}
|
|
2329
2836
|
return !0;
|
|
2330
2837
|
}
|
|
2331
|
-
function
|
|
2838
|
+
function as(e, t) {
|
|
2332
2839
|
if (t < 1)
|
|
2333
2840
|
return !1;
|
|
2334
2841
|
const r = mr(e);
|
|
2335
2842
|
return !(r && t > 366 || !r && t > 365);
|
|
2336
2843
|
}
|
|
2337
|
-
function
|
|
2844
|
+
function Kt(e, t) {
|
|
2338
2845
|
return !(e < 0 || e > 52 || t != null && (t < 0 || t > 6));
|
|
2339
2846
|
}
|
|
2340
|
-
function
|
|
2847
|
+
function je(e, t, r) {
|
|
2341
2848
|
return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || r != null && (r < 0 || r >= 60));
|
|
2342
2849
|
}
|
|
2343
|
-
const
|
|
2344
|
-
function
|
|
2850
|
+
const is = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
2851
|
+
function ss(e, t, r = {}) {
|
|
2345
2852
|
t = String(t);
|
|
2346
|
-
const n = t.match(
|
|
2853
|
+
const n = t.match(is);
|
|
2347
2854
|
if (n) {
|
|
2348
2855
|
const i = be(r.originalDate || e, r);
|
|
2349
2856
|
t = n.reduce(function(o, c) {
|
|
2350
2857
|
if (c[0] === "'")
|
|
2351
2858
|
return o;
|
|
2352
|
-
const d = o.indexOf(c), m = o[d - 1] === "'", f = o.replace(c, "'" +
|
|
2859
|
+
const d = o.indexOf(c), m = o[d - 1] === "'", f = o.replace(c, "'" + $i[c[0]](i, c, r) + "'");
|
|
2353
2860
|
return m ? f.substring(0, d - 1) + f.substring(d + 1) : f;
|
|
2354
2861
|
}, t);
|
|
2355
2862
|
}
|
|
@@ -2360,14 +2867,14 @@ function hr(e, t, r) {
|
|
|
2360
2867
|
const n = ue(t, e, !0), i = new Date(e.getTime() - n), o = /* @__PURE__ */ new Date(0);
|
|
2361
2868
|
return o.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), o.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), o;
|
|
2362
2869
|
}
|
|
2363
|
-
function
|
|
2870
|
+
function os(e, t, r, n) {
|
|
2364
2871
|
return n = {
|
|
2365
2872
|
...n,
|
|
2366
2873
|
timeZone: t,
|
|
2367
2874
|
originalDate: e
|
|
2368
|
-
},
|
|
2875
|
+
}, ss(hr(e, t, { timeZone: n.timeZone }), r, n);
|
|
2369
2876
|
}
|
|
2370
|
-
function
|
|
2877
|
+
function us(e, t, r) {
|
|
2371
2878
|
if (typeof e == "string" && !e.match(fr))
|
|
2372
2879
|
return be(e, { ...r, timeZone: t });
|
|
2373
2880
|
e = be(e, r);
|
|
@@ -2377,10 +2884,10 @@ function os(e, t, r) {
|
|
|
2377
2884
|
function yr(e, t) {
|
|
2378
2885
|
return -ue(e, t);
|
|
2379
2886
|
}
|
|
2380
|
-
function
|
|
2887
|
+
function Ys(e) {
|
|
2381
2888
|
return lr(e, "yyyy-MM-dd'T'HH:mm:ss.SSSXXX");
|
|
2382
2889
|
}
|
|
2383
|
-
function
|
|
2890
|
+
function Jt(e, t = {}) {
|
|
2384
2891
|
if (!e)
|
|
2385
2892
|
return e;
|
|
2386
2893
|
const r = t.tz || Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -2388,13 +2895,13 @@ function Kt(e, t = {}) {
|
|
|
2388
2895
|
let n = "MMM dd, yyy hh:mm a";
|
|
2389
2896
|
t.short && (n = "MMM dd, yyy"), t.includeTZ && (n += " (z)");
|
|
2390
2897
|
const i = new Date(e);
|
|
2391
|
-
return
|
|
2898
|
+
return os(i, r, n);
|
|
2392
2899
|
} catch {
|
|
2393
2900
|
return console.error("Invalid value passed to formatTime", e), "(invalid date)";
|
|
2394
2901
|
}
|
|
2395
2902
|
}
|
|
2396
|
-
function
|
|
2397
|
-
return `${
|
|
2903
|
+
function Gs(e, t) {
|
|
2904
|
+
return `${Jt(e.getTime())} - ${Jt(t.getTime(), { includeTZ: !0 })}`;
|
|
2398
2905
|
}
|
|
2399
2906
|
const Te = {
|
|
2400
2907
|
secondly: 1e3,
|
|
@@ -2411,20 +2918,20 @@ const Te = {
|
|
|
2411
2918
|
weekly: 60 * 60 * 24 * 7 * 1e3,
|
|
2412
2919
|
trend: 0
|
|
2413
2920
|
};
|
|
2414
|
-
function
|
|
2921
|
+
function As(e, t) {
|
|
2415
2922
|
return e.map((r) => ({
|
|
2416
2923
|
value: r,
|
|
2417
2924
|
label: t.t(`configuration.vitals.reports.granularity.${r}`)
|
|
2418
2925
|
}));
|
|
2419
2926
|
}
|
|
2420
|
-
function
|
|
2927
|
+
function cs(e, t) {
|
|
2421
2928
|
return {
|
|
2422
2929
|
duration: e,
|
|
2423
2930
|
type: "duration",
|
|
2424
2931
|
origin: t
|
|
2425
2932
|
};
|
|
2426
2933
|
}
|
|
2427
|
-
function
|
|
2934
|
+
function Hs(e) {
|
|
2428
2935
|
return e && er.find((r) => e <= Te[r]) || null;
|
|
2429
2936
|
}
|
|
2430
2937
|
function gr(e, t, r, n) {
|
|
@@ -2432,18 +2939,18 @@ function gr(e, t, r, n) {
|
|
|
2432
2939
|
let o = 0;
|
|
2433
2940
|
return i >= Te.daily && (n ? o = -yr(n, t) : o = t.getTimezoneOffset() * 60 * 1e3), new Date(e((t.getTime() - o) / i) * i + o);
|
|
2434
2941
|
}
|
|
2435
|
-
function
|
|
2942
|
+
function ls(e, t, r) {
|
|
2436
2943
|
return gr(Math.floor, e, t, r);
|
|
2437
2944
|
}
|
|
2438
2945
|
function pr(e, t, r) {
|
|
2439
2946
|
return gr(Math.ceil, e, t, r);
|
|
2440
2947
|
}
|
|
2441
|
-
class
|
|
2948
|
+
class Ee {
|
|
2442
2949
|
constructor(t, r, n) {
|
|
2443
2950
|
b(this, "timeframe");
|
|
2444
2951
|
b(this, "tz");
|
|
2445
2952
|
b(this, "dataGranularity");
|
|
2446
|
-
if (this.constructor ===
|
|
2953
|
+
if (this.constructor === Ee)
|
|
2447
2954
|
throw new Error("BaseQueryTime is not meant to be used directly.");
|
|
2448
2955
|
this.timeframe = t, this.tz = r, this.dataGranularity = n ?? t.dataGranularity;
|
|
2449
2956
|
}
|
|
@@ -2451,7 +2958,7 @@ class xe {
|
|
|
2451
2958
|
if (t)
|
|
2452
2959
|
return new Date(this.endDate().getTime() - this.timeframe.timeframeLengthMs() * n);
|
|
2453
2960
|
{
|
|
2454
|
-
const i = this.endDate(), o = this.timeframe.rawStart(this.tz), c =
|
|
2961
|
+
const i = this.endDate(), o = this.timeframe.rawStart(this.tz), c = ls(o, r, this.tz), m = (i.getTime() - c.getTime()) * (n - 1);
|
|
2455
2962
|
return new Date(c.getTime() - m);
|
|
2456
2963
|
}
|
|
2457
2964
|
}
|
|
@@ -2459,15 +2966,15 @@ class xe {
|
|
|
2459
2966
|
return Math.floor(this.granularityMs() / 1e3);
|
|
2460
2967
|
}
|
|
2461
2968
|
granularityDruid() {
|
|
2462
|
-
return
|
|
2969
|
+
return cs(this.granularityMs(), this.startDate().toISOString());
|
|
2463
2970
|
}
|
|
2464
2971
|
// Return a UNIX timestamp suitable for use in the `start` query param.
|
|
2465
2972
|
startSeconds() {
|
|
2466
|
-
return
|
|
2973
|
+
return Lt(this.startDate());
|
|
2467
2974
|
}
|
|
2468
2975
|
// Return a UNIX timestamp suitable for use in the `end` query param.
|
|
2469
2976
|
endSeconds() {
|
|
2470
|
-
return
|
|
2977
|
+
return Lt(this.endDate());
|
|
2471
2978
|
}
|
|
2472
2979
|
// Return epoch time in milliseconds, suitable for use in the `startMs` query param.
|
|
2473
2980
|
startMs() {
|
|
@@ -2478,7 +2985,7 @@ class xe {
|
|
|
2478
2985
|
return Wt(this.endDate());
|
|
2479
2986
|
}
|
|
2480
2987
|
}
|
|
2481
|
-
class
|
|
2988
|
+
class Fs extends Ee {
|
|
2482
2989
|
constructor(r, n, i, o, c) {
|
|
2483
2990
|
super(r, i, o);
|
|
2484
2991
|
b(this, "granularity");
|
|
@@ -2494,7 +3001,7 @@ class As extends xe {
|
|
|
2494
3001
|
return Te[this.granularity];
|
|
2495
3002
|
}
|
|
2496
3003
|
}
|
|
2497
|
-
class
|
|
3004
|
+
class ds extends Ee {
|
|
2498
3005
|
startDate() {
|
|
2499
3006
|
return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity);
|
|
2500
3007
|
}
|
|
@@ -2505,7 +3012,7 @@ class ls extends xe {
|
|
|
2505
3012
|
return this.endDate().getTime() - this.startDate().getTime();
|
|
2506
3013
|
}
|
|
2507
3014
|
}
|
|
2508
|
-
class
|
|
3015
|
+
class Ws extends ds {
|
|
2509
3016
|
startDate() {
|
|
2510
3017
|
return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity, 2);
|
|
2511
3018
|
}
|
|
@@ -2514,37 +3021,37 @@ class Fs extends ls {
|
|
|
2514
3021
|
}
|
|
2515
3022
|
}
|
|
2516
3023
|
var ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2517
|
-
function
|
|
3024
|
+
function fs(e) {
|
|
2518
3025
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2519
3026
|
}
|
|
2520
3027
|
var De = { exports: {} };
|
|
2521
3028
|
De.exports;
|
|
2522
3029
|
(function(e, t) {
|
|
2523
|
-
var r = 200, n = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", d = "[object Boolean]", m = "[object Date]", f = "[object Error]", _ = "[object Function]", y = "[object GeneratorFunction]", g = "[object Map]",
|
|
2524
|
-
w[o] = w[c] = w[
|
|
2525
|
-
var
|
|
2526
|
-
function
|
|
3030
|
+
var r = 200, n = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", d = "[object Boolean]", m = "[object Date]", f = "[object Error]", _ = "[object Function]", y = "[object GeneratorFunction]", g = "[object Map]", x = "[object Number]", N = "[object Object]", P = "[object Promise]", R = "[object RegExp]", L = "[object Set]", O = "[object String]", T = "[object Symbol]", q = "[object WeakMap]", Ke = "[object ArrayBuffer]", ce = "[object DataView]", Je = "[object Float32Array]", et = "[object Float64Array]", tt = "[object Int8Array]", rt = "[object Int16Array]", nt = "[object Int32Array]", at = "[object Uint8Array]", it = "[object Uint8ClampedArray]", st = "[object Uint16Array]", ot = "[object Uint32Array]", wr = /[\\^$.*+?()[\]{}|]/g, br = /\w*$/, Tr = /^\[object .+?Constructor\]$/, Dr = /^(?:0|[1-9]\d*)$/, w = {};
|
|
3031
|
+
w[o] = w[c] = w[Ke] = w[ce] = w[d] = w[m] = w[Je] = w[et] = w[tt] = w[rt] = w[nt] = w[g] = w[x] = w[N] = w[R] = w[L] = w[O] = w[T] = w[at] = w[it] = w[st] = w[ot] = !0, w[f] = w[_] = w[q] = !1;
|
|
3032
|
+
var Mr = typeof ge == "object" && ge && ge.Object === Object && ge, Or = typeof self == "object" && self && self.Object === Object && self, k = Mr || Or || Function("return this")(), ut = t && !t.nodeType && t, ct = ut && !0 && e && !e.nodeType && e, Sr = ct && ct.exports === ut;
|
|
3033
|
+
function vr(a, s) {
|
|
2527
3034
|
return a.set(s[0], s[1]), a;
|
|
2528
3035
|
}
|
|
2529
|
-
function
|
|
3036
|
+
function Er(a, s) {
|
|
2530
3037
|
return a.add(s), a;
|
|
2531
3038
|
}
|
|
2532
|
-
function
|
|
3039
|
+
function xr(a, s) {
|
|
2533
3040
|
for (var u = -1, l = a ? a.length : 0; ++u < l && s(a[u], u, a) !== !1; )
|
|
2534
3041
|
;
|
|
2535
3042
|
return a;
|
|
2536
3043
|
}
|
|
2537
|
-
function
|
|
3044
|
+
function Nr(a, s) {
|
|
2538
3045
|
for (var u = -1, l = s.length, D = a.length; ++u < l; )
|
|
2539
3046
|
a[D + u] = s[u];
|
|
2540
3047
|
return a;
|
|
2541
3048
|
}
|
|
2542
3049
|
function lt(a, s, u, l) {
|
|
2543
|
-
for (var D = -1,
|
|
3050
|
+
for (var D = -1, v = a ? a.length : 0; ++D < v; )
|
|
2544
3051
|
u = s(u, a[D], D, a);
|
|
2545
3052
|
return u;
|
|
2546
3053
|
}
|
|
2547
|
-
function
|
|
3054
|
+
function Pr(a, s) {
|
|
2548
3055
|
for (var u = -1, l = Array(a); ++u < a; )
|
|
2549
3056
|
l[u] = s(u);
|
|
2550
3057
|
return l;
|
|
@@ -2567,7 +3074,7 @@ De.exports;
|
|
|
2567
3074
|
u[++s] = [D, l];
|
|
2568
3075
|
}), u;
|
|
2569
3076
|
}
|
|
2570
|
-
function
|
|
3077
|
+
function xe(a, s) {
|
|
2571
3078
|
return function(u) {
|
|
2572
3079
|
return a(s(u));
|
|
2573
3080
|
};
|
|
@@ -2578,13 +3085,13 @@ De.exports;
|
|
|
2578
3085
|
u[++s] = l;
|
|
2579
3086
|
}), u;
|
|
2580
3087
|
}
|
|
2581
|
-
var
|
|
2582
|
-
var a = /[^.]+$/.exec(
|
|
3088
|
+
var Cr = Array.prototype, Rr = Function.prototype, le = Object.prototype, Ne = k["__core-js_shared__"], ht = function() {
|
|
3089
|
+
var a = /[^.]+$/.exec(Ne && Ne.keys && Ne.keys.IE_PROTO || "");
|
|
2583
3090
|
return a ? "Symbol(src)_1." + a : "";
|
|
2584
|
-
}(), yt =
|
|
2585
|
-
"^" + yt.call(
|
|
2586
|
-
), gt =
|
|
2587
|
-
function
|
|
3091
|
+
}(), yt = Rr.toString, H = le.hasOwnProperty, de = le.toString, kr = RegExp(
|
|
3092
|
+
"^" + yt.call(H).replace(wr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3093
|
+
), gt = Sr ? k.Buffer : void 0, pt = k.Symbol, _t = k.Uint8Array, Yr = xe(Object.getPrototypeOf, Object), Gr = Object.create, Ar = le.propertyIsEnumerable, Hr = Cr.splice, wt = Object.getOwnPropertySymbols, Fr = gt ? gt.isBuffer : void 0, Wr = xe(Object.keys, Object), Pe = $(k, "DataView"), te = $(k, "Map"), Ie = $(k, "Promise"), Ce = $(k, "Set"), Re = $(k, "WeakMap"), re = $(Object, "create"), Lr = z(Pe), qr = z(te), Ur = z(Ie), jr = z(Ce), zr = z(Re), bt = pt ? pt.prototype : void 0, Tt = bt ? bt.valueOf : void 0;
|
|
3094
|
+
function U(a) {
|
|
2588
3095
|
var s = -1, u = a ? a.length : 0;
|
|
2589
3096
|
for (this.clear(); ++s < u; ) {
|
|
2590
3097
|
var l = a[s];
|
|
@@ -2594,7 +3101,7 @@ De.exports;
|
|
|
2594
3101
|
function Vr() {
|
|
2595
3102
|
this.__data__ = re ? re(null) : {};
|
|
2596
3103
|
}
|
|
2597
|
-
function
|
|
3104
|
+
function Br(a) {
|
|
2598
3105
|
return this.has(a) && delete this.__data__[a];
|
|
2599
3106
|
}
|
|
2600
3107
|
function Xr(a) {
|
|
@@ -2603,35 +3110,35 @@ De.exports;
|
|
|
2603
3110
|
var u = s[a];
|
|
2604
3111
|
return u === n ? void 0 : u;
|
|
2605
3112
|
}
|
|
2606
|
-
return
|
|
3113
|
+
return H.call(s, a) ? s[a] : void 0;
|
|
2607
3114
|
}
|
|
2608
|
-
function
|
|
3115
|
+
function $r(a) {
|
|
2609
3116
|
var s = this.__data__;
|
|
2610
|
-
return re ? s[a] !== void 0 :
|
|
3117
|
+
return re ? s[a] !== void 0 : H.call(s, a);
|
|
2611
3118
|
}
|
|
2612
3119
|
function Zr(a, s) {
|
|
2613
3120
|
var u = this.__data__;
|
|
2614
3121
|
return u[a] = re && s === void 0 ? n : s, this;
|
|
2615
3122
|
}
|
|
2616
|
-
|
|
2617
|
-
function
|
|
3123
|
+
U.prototype.clear = Vr, U.prototype.delete = Br, U.prototype.get = Xr, U.prototype.has = $r, U.prototype.set = Zr;
|
|
3124
|
+
function Y(a) {
|
|
2618
3125
|
var s = -1, u = a ? a.length : 0;
|
|
2619
3126
|
for (this.clear(); ++s < u; ) {
|
|
2620
3127
|
var l = a[s];
|
|
2621
3128
|
this.set(l[0], l[1]);
|
|
2622
3129
|
}
|
|
2623
3130
|
}
|
|
2624
|
-
function
|
|
3131
|
+
function Qr() {
|
|
2625
3132
|
this.__data__ = [];
|
|
2626
3133
|
}
|
|
2627
|
-
function
|
|
3134
|
+
function Kr(a) {
|
|
2628
3135
|
var s = this.__data__, u = fe(s, a);
|
|
2629
3136
|
if (u < 0)
|
|
2630
3137
|
return !1;
|
|
2631
3138
|
var l = s.length - 1;
|
|
2632
|
-
return u == l ? s.pop() :
|
|
3139
|
+
return u == l ? s.pop() : Hr.call(s, u, 1), !0;
|
|
2633
3140
|
}
|
|
2634
|
-
function
|
|
3141
|
+
function Jr(a) {
|
|
2635
3142
|
var s = this.__data__, u = fe(s, a);
|
|
2636
3143
|
return u < 0 ? void 0 : s[u][1];
|
|
2637
3144
|
}
|
|
@@ -2642,8 +3149,8 @@ De.exports;
|
|
|
2642
3149
|
var u = this.__data__, l = fe(u, a);
|
|
2643
3150
|
return l < 0 ? u.push([a, s]) : u[l][1] = s, this;
|
|
2644
3151
|
}
|
|
2645
|
-
|
|
2646
|
-
function
|
|
3152
|
+
Y.prototype.clear = Qr, Y.prototype.delete = Kr, Y.prototype.get = Jr, Y.prototype.has = en, Y.prototype.set = tn;
|
|
3153
|
+
function B(a) {
|
|
2647
3154
|
var s = -1, u = a ? a.length : 0;
|
|
2648
3155
|
for (this.clear(); ++s < u; ) {
|
|
2649
3156
|
var l = a[s];
|
|
@@ -2652,9 +3159,9 @@ De.exports;
|
|
|
2652
3159
|
}
|
|
2653
3160
|
function rn() {
|
|
2654
3161
|
this.__data__ = {
|
|
2655
|
-
hash: new
|
|
2656
|
-
map: new (te ||
|
|
2657
|
-
string: new
|
|
3162
|
+
hash: new U(),
|
|
3163
|
+
map: new (te || Y)(),
|
|
3164
|
+
string: new U()
|
|
2658
3165
|
};
|
|
2659
3166
|
}
|
|
2660
3167
|
function nn(a) {
|
|
@@ -2669,12 +3176,12 @@ De.exports;
|
|
|
2669
3176
|
function on(a, s) {
|
|
2670
3177
|
return me(this, a).set(a, s), this;
|
|
2671
3178
|
}
|
|
2672
|
-
|
|
3179
|
+
B.prototype.clear = rn, B.prototype.delete = nn, B.prototype.get = an, B.prototype.has = sn, B.prototype.set = on;
|
|
2673
3180
|
function X(a) {
|
|
2674
|
-
this.__data__ = new
|
|
3181
|
+
this.__data__ = new Y(a);
|
|
2675
3182
|
}
|
|
2676
3183
|
function un() {
|
|
2677
|
-
this.__data__ = new
|
|
3184
|
+
this.__data__ = new Y();
|
|
2678
3185
|
}
|
|
2679
3186
|
function cn(a) {
|
|
2680
3187
|
return this.__data__.delete(a);
|
|
@@ -2687,91 +3194,91 @@ De.exports;
|
|
|
2687
3194
|
}
|
|
2688
3195
|
function fn(a, s) {
|
|
2689
3196
|
var u = this.__data__;
|
|
2690
|
-
if (u instanceof
|
|
3197
|
+
if (u instanceof Y) {
|
|
2691
3198
|
var l = u.__data__;
|
|
2692
3199
|
if (!te || l.length < r - 1)
|
|
2693
3200
|
return l.push([a, s]), this;
|
|
2694
|
-
u = this.__data__ = new
|
|
3201
|
+
u = this.__data__ = new B(l);
|
|
2695
3202
|
}
|
|
2696
3203
|
return u.set(a, s), this;
|
|
2697
3204
|
}
|
|
2698
3205
|
X.prototype.clear = un, X.prototype.delete = cn, X.prototype.get = ln, X.prototype.has = dn, X.prototype.set = fn;
|
|
2699
3206
|
function mn(a, s) {
|
|
2700
|
-
var u =
|
|
2701
|
-
for (var
|
|
2702
|
-
|
|
3207
|
+
var u = Ge(a) || An(a) ? Pr(a.length, String) : [], l = u.length, D = !!l;
|
|
3208
|
+
for (var v in a)
|
|
3209
|
+
H.call(a, v) && !(D && (v == "length" || Rn(v, l))) && u.push(v);
|
|
2703
3210
|
return u;
|
|
2704
3211
|
}
|
|
2705
3212
|
function Dt(a, s, u) {
|
|
2706
3213
|
var l = a[s];
|
|
2707
|
-
(!(
|
|
3214
|
+
(!(H.call(a, s) && vt(l, u)) || u === void 0 && !(s in a)) && (a[s] = u);
|
|
2708
3215
|
}
|
|
2709
3216
|
function fe(a, s) {
|
|
2710
3217
|
for (var u = a.length; u--; )
|
|
2711
|
-
if (
|
|
3218
|
+
if (vt(a[u][0], s))
|
|
2712
3219
|
return u;
|
|
2713
3220
|
return -1;
|
|
2714
3221
|
}
|
|
2715
3222
|
function hn(a, s) {
|
|
2716
|
-
return a &&
|
|
3223
|
+
return a && Mt(s, Ae(s), a);
|
|
2717
3224
|
}
|
|
2718
|
-
function
|
|
2719
|
-
var
|
|
2720
|
-
if (l && (
|
|
2721
|
-
return
|
|
3225
|
+
function ke(a, s, u, l, D, v, G) {
|
|
3226
|
+
var E;
|
|
3227
|
+
if (l && (E = v ? l(a, D, v, G) : l(a)), E !== void 0)
|
|
3228
|
+
return E;
|
|
2722
3229
|
if (!he(a))
|
|
2723
3230
|
return a;
|
|
2724
|
-
var
|
|
2725
|
-
if (
|
|
2726
|
-
if (
|
|
2727
|
-
return
|
|
3231
|
+
var Nt = Ge(a);
|
|
3232
|
+
if (Nt) {
|
|
3233
|
+
if (E = Pn(a), !s)
|
|
3234
|
+
return En(a, E);
|
|
2728
3235
|
} else {
|
|
2729
|
-
var Z =
|
|
3236
|
+
var Z = j(a), Pt = Z == _ || Z == y;
|
|
2730
3237
|
if (Fn(a))
|
|
2731
3238
|
return bn(a, s);
|
|
2732
|
-
if (Z ==
|
|
3239
|
+
if (Z == N || Z == o || Pt && !v) {
|
|
2733
3240
|
if (dt(a))
|
|
2734
|
-
return
|
|
2735
|
-
if (
|
|
2736
|
-
return
|
|
3241
|
+
return v ? a : {};
|
|
3242
|
+
if (E = In(Pt ? {} : a), !s)
|
|
3243
|
+
return xn(a, hn(E, a));
|
|
2737
3244
|
} else {
|
|
2738
3245
|
if (!w[Z])
|
|
2739
|
-
return
|
|
2740
|
-
|
|
3246
|
+
return v ? a : {};
|
|
3247
|
+
E = Cn(a, Z, ke, s);
|
|
2741
3248
|
}
|
|
2742
3249
|
}
|
|
2743
|
-
|
|
2744
|
-
var It =
|
|
3250
|
+
G || (G = new X());
|
|
3251
|
+
var It = G.get(a);
|
|
2745
3252
|
if (It)
|
|
2746
3253
|
return It;
|
|
2747
|
-
if (
|
|
2748
|
-
var
|
|
2749
|
-
return
|
|
2750
|
-
|
|
2751
|
-
}),
|
|
3254
|
+
if (G.set(a, E), !Nt)
|
|
3255
|
+
var Ct = u ? Nn(a) : Ae(a);
|
|
3256
|
+
return xr(Ct || a, function(He, ye) {
|
|
3257
|
+
Ct && (ye = He, He = a[ye]), Dt(E, ye, ke(He, s, u, l, ye, a, G));
|
|
3258
|
+
}), E;
|
|
2752
3259
|
}
|
|
2753
3260
|
function yn(a) {
|
|
2754
|
-
return he(a) ?
|
|
3261
|
+
return he(a) ? Gr(a) : {};
|
|
2755
3262
|
}
|
|
2756
3263
|
function gn(a, s, u) {
|
|
2757
3264
|
var l = s(a);
|
|
2758
|
-
return
|
|
3265
|
+
return Ge(a) ? l : Nr(l, u(a));
|
|
2759
3266
|
}
|
|
2760
3267
|
function pn(a) {
|
|
2761
3268
|
return de.call(a);
|
|
2762
3269
|
}
|
|
2763
3270
|
function _n(a) {
|
|
2764
|
-
if (!he(a) ||
|
|
3271
|
+
if (!he(a) || Yn(a))
|
|
2765
3272
|
return !1;
|
|
2766
|
-
var s =
|
|
3273
|
+
var s = xt(a) || dt(a) ? kr : Tr;
|
|
2767
3274
|
return s.test(z(a));
|
|
2768
3275
|
}
|
|
2769
3276
|
function wn(a) {
|
|
2770
|
-
if (!
|
|
3277
|
+
if (!St(a))
|
|
2771
3278
|
return Wr(a);
|
|
2772
3279
|
var s = [];
|
|
2773
3280
|
for (var u in Object(a))
|
|
2774
|
-
|
|
3281
|
+
H.call(a, u) && u != "constructor" && s.push(u);
|
|
2775
3282
|
return s;
|
|
2776
3283
|
}
|
|
2777
3284
|
function bn(a, s) {
|
|
@@ -2780,97 +3287,97 @@ De.exports;
|
|
|
2780
3287
|
var u = new a.constructor(a.length);
|
|
2781
3288
|
return a.copy(u), u;
|
|
2782
3289
|
}
|
|
2783
|
-
function
|
|
3290
|
+
function Ye(a) {
|
|
2784
3291
|
var s = new a.constructor(a.byteLength);
|
|
2785
3292
|
return new _t(s).set(new _t(a)), s;
|
|
2786
3293
|
}
|
|
2787
3294
|
function Tn(a, s) {
|
|
2788
|
-
var u = s ?
|
|
3295
|
+
var u = s ? Ye(a.buffer) : a.buffer;
|
|
2789
3296
|
return new a.constructor(u, a.byteOffset, a.byteLength);
|
|
2790
3297
|
}
|
|
2791
3298
|
function Dn(a, s, u) {
|
|
2792
3299
|
var l = s ? u(ft(a), !0) : ft(a);
|
|
2793
|
-
return lt(l,
|
|
3300
|
+
return lt(l, vr, new a.constructor());
|
|
2794
3301
|
}
|
|
2795
|
-
function
|
|
3302
|
+
function Mn(a) {
|
|
2796
3303
|
var s = new a.constructor(a.source, br.exec(a));
|
|
2797
3304
|
return s.lastIndex = a.lastIndex, s;
|
|
2798
3305
|
}
|
|
2799
|
-
function
|
|
3306
|
+
function On(a, s, u) {
|
|
2800
3307
|
var l = s ? u(mt(a), !0) : mt(a);
|
|
2801
|
-
return lt(l,
|
|
3308
|
+
return lt(l, Er, new a.constructor());
|
|
2802
3309
|
}
|
|
2803
|
-
function
|
|
3310
|
+
function Sn(a) {
|
|
2804
3311
|
return Tt ? Object(Tt.call(a)) : {};
|
|
2805
3312
|
}
|
|
2806
|
-
function
|
|
2807
|
-
var u = s ?
|
|
3313
|
+
function vn(a, s) {
|
|
3314
|
+
var u = s ? Ye(a.buffer) : a.buffer;
|
|
2808
3315
|
return new a.constructor(u, a.byteOffset, a.length);
|
|
2809
3316
|
}
|
|
2810
|
-
function
|
|
3317
|
+
function En(a, s) {
|
|
2811
3318
|
var u = -1, l = a.length;
|
|
2812
3319
|
for (s || (s = Array(l)); ++u < l; )
|
|
2813
3320
|
s[u] = a[u];
|
|
2814
3321
|
return s;
|
|
2815
3322
|
}
|
|
2816
|
-
function
|
|
3323
|
+
function Mt(a, s, u, l) {
|
|
2817
3324
|
u || (u = {});
|
|
2818
|
-
for (var D = -1,
|
|
2819
|
-
var
|
|
2820
|
-
Dt(u,
|
|
3325
|
+
for (var D = -1, v = s.length; ++D < v; ) {
|
|
3326
|
+
var G = s[D], E = void 0;
|
|
3327
|
+
Dt(u, G, E === void 0 ? a[G] : E);
|
|
2821
3328
|
}
|
|
2822
3329
|
return u;
|
|
2823
3330
|
}
|
|
2824
|
-
function
|
|
2825
|
-
return
|
|
3331
|
+
function xn(a, s) {
|
|
3332
|
+
return Mt(a, Ot(a), s);
|
|
2826
3333
|
}
|
|
2827
|
-
function
|
|
2828
|
-
return gn(a,
|
|
3334
|
+
function Nn(a) {
|
|
3335
|
+
return gn(a, Ae, Ot);
|
|
2829
3336
|
}
|
|
2830
3337
|
function me(a, s) {
|
|
2831
3338
|
var u = a.__data__;
|
|
2832
|
-
return
|
|
3339
|
+
return kn(s) ? u[typeof s == "string" ? "string" : "hash"] : u.map;
|
|
2833
3340
|
}
|
|
2834
|
-
function
|
|
3341
|
+
function $(a, s) {
|
|
2835
3342
|
var u = Ir(a, s);
|
|
2836
3343
|
return _n(u) ? u : void 0;
|
|
2837
3344
|
}
|
|
2838
|
-
var
|
|
2839
|
-
(
|
|
2840
|
-
var s = de.call(a), u = s ==
|
|
3345
|
+
var Ot = wt ? xe(wt, Object) : qn, j = pn;
|
|
3346
|
+
(Pe && j(new Pe(new ArrayBuffer(1))) != ce || te && j(new te()) != g || Ie && j(Ie.resolve()) != P || Ce && j(new Ce()) != L || Re && j(new Re()) != q) && (j = function(a) {
|
|
3347
|
+
var s = de.call(a), u = s == N ? a.constructor : void 0, l = u ? z(u) : void 0;
|
|
2841
3348
|
if (l)
|
|
2842
3349
|
switch (l) {
|
|
2843
|
-
case
|
|
3350
|
+
case Lr:
|
|
2844
3351
|
return ce;
|
|
2845
|
-
case
|
|
3352
|
+
case qr:
|
|
2846
3353
|
return g;
|
|
2847
|
-
case Lr:
|
|
2848
|
-
return N;
|
|
2849
3354
|
case Ur:
|
|
2850
|
-
return
|
|
3355
|
+
return P;
|
|
3356
|
+
case jr:
|
|
3357
|
+
return L;
|
|
2851
3358
|
case zr:
|
|
2852
|
-
return
|
|
3359
|
+
return q;
|
|
2853
3360
|
}
|
|
2854
3361
|
return s;
|
|
2855
3362
|
});
|
|
2856
|
-
function
|
|
3363
|
+
function Pn(a) {
|
|
2857
3364
|
var s = a.length, u = a.constructor(s);
|
|
2858
|
-
return s && typeof a[0] == "string" &&
|
|
3365
|
+
return s && typeof a[0] == "string" && H.call(a, "index") && (u.index = a.index, u.input = a.input), u;
|
|
2859
3366
|
}
|
|
2860
3367
|
function In(a) {
|
|
2861
|
-
return typeof a.constructor == "function" && !
|
|
3368
|
+
return typeof a.constructor == "function" && !St(a) ? yn(Yr(a)) : {};
|
|
2862
3369
|
}
|
|
2863
|
-
function
|
|
3370
|
+
function Cn(a, s, u, l) {
|
|
2864
3371
|
var D = a.constructor;
|
|
2865
3372
|
switch (s) {
|
|
2866
|
-
case
|
|
2867
|
-
return
|
|
3373
|
+
case Ke:
|
|
3374
|
+
return Ye(a);
|
|
2868
3375
|
case d:
|
|
2869
3376
|
case m:
|
|
2870
3377
|
return new D(+a);
|
|
2871
3378
|
case ce:
|
|
2872
3379
|
return Tn(a, l);
|
|
2873
|
-
case
|
|
3380
|
+
case Je:
|
|
2874
3381
|
case et:
|
|
2875
3382
|
case tt:
|
|
2876
3383
|
case rt:
|
|
@@ -2879,31 +3386,31 @@ De.exports;
|
|
|
2879
3386
|
case it:
|
|
2880
3387
|
case st:
|
|
2881
3388
|
case ot:
|
|
2882
|
-
return
|
|
3389
|
+
return vn(a, l);
|
|
2883
3390
|
case g:
|
|
2884
3391
|
return Dn(a, l, u);
|
|
2885
|
-
case
|
|
2886
|
-
case
|
|
3392
|
+
case x:
|
|
3393
|
+
case O:
|
|
2887
3394
|
return new D(a);
|
|
2888
|
-
case
|
|
2889
|
-
return
|
|
2890
|
-
case
|
|
2891
|
-
return
|
|
3395
|
+
case R:
|
|
3396
|
+
return Mn(a);
|
|
3397
|
+
case L:
|
|
3398
|
+
return On(a, l, u);
|
|
2892
3399
|
case T:
|
|
2893
|
-
return
|
|
3400
|
+
return Sn(a);
|
|
2894
3401
|
}
|
|
2895
3402
|
}
|
|
2896
|
-
function
|
|
3403
|
+
function Rn(a, s) {
|
|
2897
3404
|
return s = s ?? i, !!s && (typeof a == "number" || Dr.test(a)) && a > -1 && a % 1 == 0 && a < s;
|
|
2898
3405
|
}
|
|
2899
|
-
function
|
|
3406
|
+
function kn(a) {
|
|
2900
3407
|
var s = typeof a;
|
|
2901
3408
|
return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? a !== "__proto__" : a === null;
|
|
2902
3409
|
}
|
|
2903
|
-
function
|
|
3410
|
+
function Yn(a) {
|
|
2904
3411
|
return !!ht && ht in a;
|
|
2905
3412
|
}
|
|
2906
|
-
function
|
|
3413
|
+
function St(a) {
|
|
2907
3414
|
var s = a && a.constructor, u = typeof s == "function" && s.prototype || le;
|
|
2908
3415
|
return a === u;
|
|
2909
3416
|
}
|
|
@@ -2920,24 +3427,24 @@ De.exports;
|
|
|
2920
3427
|
}
|
|
2921
3428
|
return "";
|
|
2922
3429
|
}
|
|
2923
|
-
function Hn(a) {
|
|
2924
|
-
return Ce(a, !0, !0);
|
|
2925
|
-
}
|
|
2926
|
-
function St(a, s) {
|
|
2927
|
-
return a === s || a !== a && s !== s;
|
|
2928
|
-
}
|
|
2929
3430
|
function Gn(a) {
|
|
2930
|
-
return
|
|
3431
|
+
return ke(a, !0, !0);
|
|
2931
3432
|
}
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
return a != null && Wn(a.length) && !Et(a);
|
|
3433
|
+
function vt(a, s) {
|
|
3434
|
+
return a === s || a !== a && s !== s;
|
|
2935
3435
|
}
|
|
2936
3436
|
function An(a) {
|
|
2937
|
-
return
|
|
3437
|
+
return Hn(a) && H.call(a, "callee") && (!Ar.call(a, "callee") || de.call(a) == o);
|
|
2938
3438
|
}
|
|
2939
|
-
var
|
|
3439
|
+
var Ge = Array.isArray;
|
|
2940
3440
|
function Et(a) {
|
|
3441
|
+
return a != null && Wn(a.length) && !xt(a);
|
|
3442
|
+
}
|
|
3443
|
+
function Hn(a) {
|
|
3444
|
+
return Ln(a) && Et(a);
|
|
3445
|
+
}
|
|
3446
|
+
var Fn = Fr || Un;
|
|
3447
|
+
function xt(a) {
|
|
2941
3448
|
var s = he(a) ? de.call(a) : "";
|
|
2942
3449
|
return s == _ || s == y;
|
|
2943
3450
|
}
|
|
@@ -2948,22 +3455,22 @@ De.exports;
|
|
|
2948
3455
|
var s = typeof a;
|
|
2949
3456
|
return !!a && (s == "object" || s == "function");
|
|
2950
3457
|
}
|
|
2951
|
-
function
|
|
3458
|
+
function Ln(a) {
|
|
2952
3459
|
return !!a && typeof a == "object";
|
|
2953
3460
|
}
|
|
2954
|
-
function
|
|
2955
|
-
return
|
|
3461
|
+
function Ae(a) {
|
|
3462
|
+
return Et(a) ? mn(a) : wn(a);
|
|
2956
3463
|
}
|
|
2957
|
-
function
|
|
3464
|
+
function qn() {
|
|
2958
3465
|
return [];
|
|
2959
3466
|
}
|
|
2960
|
-
function
|
|
3467
|
+
function Un() {
|
|
2961
3468
|
return !1;
|
|
2962
3469
|
}
|
|
2963
|
-
e.exports =
|
|
3470
|
+
e.exports = Gn;
|
|
2964
3471
|
})(De, De.exports);
|
|
2965
|
-
var
|
|
2966
|
-
const
|
|
3472
|
+
var ms = De.exports;
|
|
3473
|
+
const hs = /* @__PURE__ */ fs(ms), ee = (e, t) => new Date(e.getTime() - yr(t, e));
|
|
2967
3474
|
class I {
|
|
2968
3475
|
constructor(t) {
|
|
2969
3476
|
b(this, "timeframeText");
|
|
@@ -3032,52 +3539,52 @@ class I {
|
|
|
3032
3539
|
tzAdjustedDate(t) {
|
|
3033
3540
|
if (!t)
|
|
3034
3541
|
return /* @__PURE__ */ new Date();
|
|
3035
|
-
const r =
|
|
3542
|
+
const r = us(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
3036
3543
|
return hr(r, t);
|
|
3037
3544
|
}
|
|
3038
3545
|
}
|
|
3039
|
-
class
|
|
3546
|
+
class ys extends I {
|
|
3040
3547
|
rawStart(t) {
|
|
3041
|
-
let r =
|
|
3548
|
+
let r = A(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
3042
3549
|
return t && (r = ee(r, t)), r;
|
|
3043
3550
|
}
|
|
3044
3551
|
maximumTimeframeLength() {
|
|
3045
3552
|
return 60 * 60 * 24 * 7;
|
|
3046
3553
|
}
|
|
3047
3554
|
}
|
|
3048
|
-
class
|
|
3555
|
+
class gs extends I {
|
|
3049
3556
|
rawStart(t) {
|
|
3050
|
-
let r =
|
|
3557
|
+
let r = J(this.tzAdjustedDate(t));
|
|
3051
3558
|
return t && (r = ee(r, t)), r;
|
|
3052
3559
|
}
|
|
3053
3560
|
maximumTimeframeLength() {
|
|
3054
3561
|
return 60 * 60 * 24 * 31;
|
|
3055
3562
|
}
|
|
3056
3563
|
}
|
|
3057
|
-
class
|
|
3564
|
+
class ps extends I {
|
|
3058
3565
|
rawEnd(t) {
|
|
3059
|
-
let r =
|
|
3566
|
+
let r = A(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
3060
3567
|
return t && (r = ee(r, t)), r;
|
|
3061
3568
|
}
|
|
3062
3569
|
rawStart(t) {
|
|
3063
3570
|
const r = this.tzAdjustedDate(t);
|
|
3064
|
-
let n =
|
|
3571
|
+
let n = A(r.setDate(r.getDate() - 7), {
|
|
3065
3572
|
weekStartsOn: 1
|
|
3066
3573
|
});
|
|
3067
3574
|
return t && (n = ee(n, t)), n;
|
|
3068
3575
|
}
|
|
3069
3576
|
}
|
|
3070
|
-
class
|
|
3577
|
+
class _s extends I {
|
|
3071
3578
|
rawEnd(t) {
|
|
3072
|
-
let r =
|
|
3579
|
+
let r = J(this.tzAdjustedDate(t));
|
|
3073
3580
|
return t && (r = ee(r, t)), r;
|
|
3074
3581
|
}
|
|
3075
3582
|
rawStart(t) {
|
|
3076
|
-
let r =
|
|
3583
|
+
let r = J(dr(this.tzAdjustedDate(t)));
|
|
3077
3584
|
return t && (r = ee(r, t)), r;
|
|
3078
3585
|
}
|
|
3079
3586
|
}
|
|
3080
|
-
const
|
|
3587
|
+
const ws = /* @__PURE__ */ new Map([
|
|
3081
3588
|
[
|
|
3082
3589
|
h.FIFTEEN_MIN,
|
|
3083
3590
|
new I({
|
|
@@ -3185,13 +3692,13 @@ const _s = /* @__PURE__ */ new Map([
|
|
|
3185
3692
|
],
|
|
3186
3693
|
[
|
|
3187
3694
|
h.CURRENT_WEEK,
|
|
3188
|
-
new
|
|
3695
|
+
new ys({
|
|
3189
3696
|
key: h.CURRENT_WEEK,
|
|
3190
3697
|
display: "This week",
|
|
3191
3698
|
timeframeText: "Week",
|
|
3192
3699
|
timeframeLength: () => {
|
|
3193
|
-
const e =
|
|
3194
|
-
return (_e(
|
|
3700
|
+
const e = A(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
|
|
3701
|
+
return (_e(kt(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
3195
3702
|
},
|
|
3196
3703
|
defaultResponseGranularity: "daily",
|
|
3197
3704
|
dataGranularity: "daily",
|
|
@@ -3203,13 +3710,13 @@ const _s = /* @__PURE__ */ new Map([
|
|
|
3203
3710
|
],
|
|
3204
3711
|
[
|
|
3205
3712
|
h.CURRENT_MONTH,
|
|
3206
|
-
new
|
|
3713
|
+
new gs({
|
|
3207
3714
|
key: h.CURRENT_MONTH,
|
|
3208
3715
|
display: "This month",
|
|
3209
3716
|
timeframeText: "Month",
|
|
3210
3717
|
timeframeLength: () => {
|
|
3211
|
-
const e =
|
|
3212
|
-
return (_e(
|
|
3718
|
+
const e = J(/* @__PURE__ */ new Date());
|
|
3719
|
+
return (_e(kt(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
3213
3720
|
},
|
|
3214
3721
|
defaultResponseGranularity: "daily",
|
|
3215
3722
|
dataGranularity: "daily",
|
|
@@ -3219,7 +3726,7 @@ const _s = /* @__PURE__ */ new Map([
|
|
|
3219
3726
|
],
|
|
3220
3727
|
[
|
|
3221
3728
|
h.PREVIOUS_WEEK,
|
|
3222
|
-
new
|
|
3729
|
+
new ps({
|
|
3223
3730
|
key: h.PREVIOUS_WEEK,
|
|
3224
3731
|
display: "Previous week",
|
|
3225
3732
|
timeframeText: "Week",
|
|
@@ -3234,14 +3741,14 @@ const _s = /* @__PURE__ */ new Map([
|
|
|
3234
3741
|
],
|
|
3235
3742
|
[
|
|
3236
3743
|
h.PREVIOUS_MONTH,
|
|
3237
|
-
new
|
|
3744
|
+
new _s({
|
|
3238
3745
|
key: h.PREVIOUS_MONTH,
|
|
3239
3746
|
display: "Previous month",
|
|
3240
3747
|
timeframeText: "Month",
|
|
3241
3748
|
timeframeLength: () => {
|
|
3242
3749
|
let e = 0;
|
|
3243
|
-
const t =
|
|
3244
|
-
return t.getTimezoneOffset() !== r.getTimezoneOffset() && (e =
|
|
3750
|
+
const t = J(/* @__PURE__ */ new Date()), r = J(dr(/* @__PURE__ */ new Date()));
|
|
3751
|
+
return t.getTimezoneOffset() !== r.getTimezoneOffset() && (e = bs(t, r)), 60 * 60 * 24 * Ii((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + Ri(e);
|
|
3245
3752
|
},
|
|
3246
3753
|
defaultResponseGranularity: "daily",
|
|
3247
3754
|
dataGranularity: "daily",
|
|
@@ -3250,9 +3757,9 @@ const _s = /* @__PURE__ */ new Map([
|
|
|
3250
3757
|
})
|
|
3251
3758
|
]
|
|
3252
3759
|
]);
|
|
3253
|
-
function
|
|
3760
|
+
function Ls(e) {
|
|
3254
3761
|
const t = new Date(e.start), r = new Date(e.end), n = (r.getTime() - t.getTime()) / 1e3;
|
|
3255
|
-
return e.timePeriodsKey &&
|
|
3762
|
+
return e.timePeriodsKey && hs(ws.get(e.timePeriodsKey)) || new I({
|
|
3256
3763
|
key: "custom",
|
|
3257
3764
|
timeframeText: "custom",
|
|
3258
3765
|
display: "custom",
|
|
@@ -3272,7 +3779,7 @@ function qs(e) {
|
|
|
3272
3779
|
end: e.rawEnd()
|
|
3273
3780
|
};
|
|
3274
3781
|
}
|
|
3275
|
-
function
|
|
3782
|
+
function Us(e) {
|
|
3276
3783
|
return {
|
|
3277
3784
|
key: e.key,
|
|
3278
3785
|
display: e.display,
|
|
@@ -3283,10 +3790,10 @@ function js(e) {
|
|
|
3283
3790
|
end: () => e.rawEnd()
|
|
3284
3791
|
};
|
|
3285
3792
|
}
|
|
3286
|
-
function
|
|
3287
|
-
return
|
|
3793
|
+
function bs(e, t) {
|
|
3794
|
+
return ki(e.getTimezoneOffset() - t.getTimezoneOffset());
|
|
3288
3795
|
}
|
|
3289
|
-
const
|
|
3796
|
+
const js = {
|
|
3290
3797
|
"15M": h.FIFTEEN_MIN,
|
|
3291
3798
|
"1H": h.ONE_HOUR,
|
|
3292
3799
|
"6H": h.SIX_HOUR,
|
|
@@ -3305,7 +3812,7 @@ const Ls = {
|
|
|
3305
3812
|
previous_week: h.PREVIOUS_WEEK,
|
|
3306
3813
|
previous_month: h.PREVIOUS_MONTH
|
|
3307
3814
|
};
|
|
3308
|
-
class
|
|
3815
|
+
class Qe {
|
|
3309
3816
|
constructor(t) {
|
|
3310
3817
|
b(this, "_seed");
|
|
3311
3818
|
this._seed = t;
|
|
@@ -3315,23 +3822,23 @@ class Be {
|
|
|
3315
3822
|
return Math.floor(i * (r - t + 1)) + t;
|
|
3316
3823
|
}
|
|
3317
3824
|
}
|
|
3318
|
-
const
|
|
3319
|
-
const n = _r(10, 1e4), i = new
|
|
3825
|
+
const zs = (e, t, r) => {
|
|
3826
|
+
const n = _r(10, 1e4), i = new Qe(n), o = Date.now() - 6 * 60 * 60 * 1e3, c = Date.now(), d = [];
|
|
3320
3827
|
let m = 0;
|
|
3321
3828
|
for (let y = o; y <= c; y += 60 * 60 * 1e3)
|
|
3322
3829
|
if (t)
|
|
3323
3830
|
for (const g in t)
|
|
3324
|
-
t[g].forEach((
|
|
3831
|
+
t[g].forEach((x) => {
|
|
3325
3832
|
m += i.next(50, 500);
|
|
3326
|
-
const
|
|
3327
|
-
[g]:
|
|
3833
|
+
const N = {
|
|
3834
|
+
[g]: x,
|
|
3328
3835
|
[e.name]: m
|
|
3329
|
-
},
|
|
3836
|
+
}, P = {
|
|
3330
3837
|
version: "1.0",
|
|
3331
3838
|
timestamp: new Date(y).toISOString(),
|
|
3332
|
-
event:
|
|
3839
|
+
event: N
|
|
3333
3840
|
};
|
|
3334
|
-
d.push(
|
|
3841
|
+
d.push(P);
|
|
3335
3842
|
});
|
|
3336
3843
|
else {
|
|
3337
3844
|
m += i.next(50, 500);
|
|
@@ -3372,8 +3879,8 @@ const Us = (e, t, r) => {
|
|
|
3372
3879
|
data: d,
|
|
3373
3880
|
meta: _
|
|
3374
3881
|
};
|
|
3375
|
-
},
|
|
3376
|
-
const r = _r(10, 1e4), n = new
|
|
3882
|
+
}, Vs = (e, t) => {
|
|
3883
|
+
const r = _r(10, 1e4), n = new Qe(r), i = Date.now() - 6 * 60 * 60 * 1e3, o = Date.now(), c = [], d = {};
|
|
3377
3884
|
e.forEach((f) => {
|
|
3378
3885
|
d[f.name] = 0;
|
|
3379
3886
|
});
|
|
@@ -3406,25 +3913,25 @@ const Us = (e, t, r) => {
|
|
|
3406
3913
|
data: c,
|
|
3407
3914
|
meta: m
|
|
3408
3915
|
};
|
|
3409
|
-
},
|
|
3410
|
-
const n = Math.floor(Math.random() * 9991) + 10, i = new
|
|
3916
|
+
}, Bs = (e, t, r) => {
|
|
3917
|
+
const n = Math.floor(Math.random() * 9991) + 10, i = new Qe(n), o = Date.now() - 6 * 60 * 60 * 1e3, c = Date.now(), d = new Date((o + c) / 2).toISOString(), m = [];
|
|
3411
3918
|
if (t) {
|
|
3412
|
-
const y = Object.keys(t), g = Object.values(t),
|
|
3413
|
-
if (
|
|
3414
|
-
e.forEach((
|
|
3415
|
-
|
|
3919
|
+
const y = Object.keys(t), g = Object.values(t), x = (N, P) => {
|
|
3920
|
+
if (P === y.length) {
|
|
3921
|
+
e.forEach((R) => {
|
|
3922
|
+
N[R.name] = i.next(1e3, 5e7);
|
|
3416
3923
|
}), m.push({
|
|
3417
3924
|
version: "1.0",
|
|
3418
3925
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3419
|
-
event: { ...
|
|
3926
|
+
event: { ...N }
|
|
3420
3927
|
});
|
|
3421
3928
|
return;
|
|
3422
3929
|
}
|
|
3423
|
-
g[
|
|
3424
|
-
|
|
3930
|
+
g[P].forEach((R) => {
|
|
3931
|
+
x({ ...N, [y[P]]: R }, P + 1);
|
|
3425
3932
|
});
|
|
3426
3933
|
};
|
|
3427
|
-
|
|
3934
|
+
x({}, 0);
|
|
3428
3935
|
} else {
|
|
3429
3936
|
const y = {};
|
|
3430
3937
|
e.forEach((g) => {
|
|
@@ -3467,78 +3974,79 @@ function _r(e, t) {
|
|
|
3467
3974
|
return e = Math.ceil(e), t = Math.floor(t), Math.floor(Math.random() * (t - e + 1) + e);
|
|
3468
3975
|
}
|
|
3469
3976
|
export {
|
|
3470
|
-
|
|
3977
|
+
Ws as DeltaQueryTime,
|
|
3471
3978
|
Te as Granularities,
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3979
|
+
Ds as REFRESH_INTERVAL_MS,
|
|
3980
|
+
Qe as SeededRandom,
|
|
3981
|
+
js as TIMEFRAME_LOOKUP,
|
|
3982
|
+
ws as TimePeriods,
|
|
3476
3983
|
I as Timeframe,
|
|
3477
3984
|
h as TimeframeKeys,
|
|
3478
|
-
|
|
3479
|
-
|
|
3985
|
+
Fs as TimeseriesQueryTime,
|
|
3986
|
+
ds as UnaryQueryTime,
|
|
3480
3987
|
Zn as aiExploreAggregations,
|
|
3481
|
-
|
|
3482
|
-
|
|
3988
|
+
ya as apiUsageQuerySchema,
|
|
3989
|
+
ia as barChartSchema,
|
|
3483
3990
|
tr as basicExploreAggregations,
|
|
3484
|
-
|
|
3991
|
+
ga as basicQuerySchema,
|
|
3485
3992
|
pr as ceilToNearestTimeGrain,
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3993
|
+
fa as choroplethMapSchema,
|
|
3994
|
+
na as countryISOA2,
|
|
3995
|
+
Rs as dashboardConfigSchema,
|
|
3996
|
+
Cs as dashboardTileTypes,
|
|
3489
3997
|
ra as datasourceToFilterableDimensions,
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3998
|
+
Ls as datePickerSelectionToTimeframe,
|
|
3999
|
+
ua as donutChartSchema,
|
|
4000
|
+
bs as dstOffsetHours,
|
|
4001
|
+
$n as exploreAggregations,
|
|
3494
4002
|
Vn as exploreFilterTypesV2,
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
4003
|
+
Se as filterableAiExploreDimensions,
|
|
4004
|
+
Me as filterableBasicExploreDimensions,
|
|
4005
|
+
Oe as filterableExploreDimensions,
|
|
4006
|
+
Kn as filterableRequestDimensions,
|
|
3499
4007
|
ta as filterableRequestMetrics,
|
|
3500
4008
|
xs as filterableRequestWildcardDimensions,
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
4009
|
+
ls as floorToNearestTimeGrain,
|
|
4010
|
+
Ys as formatISOTimeWithTZ,
|
|
4011
|
+
Jt as formatTime,
|
|
4012
|
+
Gs as formatTimeRange,
|
|
4013
|
+
oa as gaugeChartSchema,
|
|
4014
|
+
Bs as generateCrossSectionalData,
|
|
4015
|
+
Vs as generateMultipleMetricTimeSeriesData,
|
|
4016
|
+
zs as generateSingleMetricTimeSeriesData,
|
|
4017
|
+
ks as getFieldDataSources,
|
|
4018
|
+
As as granularitiesToOptions,
|
|
4019
|
+
cs as granularityMsToQuery,
|
|
3512
4020
|
er as granularityValues,
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
4021
|
+
pa as llmUsageSchema,
|
|
4022
|
+
la as metricCardSchema,
|
|
4023
|
+
Hs as msToGranularity,
|
|
3516
4024
|
Ps as queryDatasources,
|
|
3517
4025
|
nr as queryableAiExploreDimensions,
|
|
3518
4026
|
Ve as queryableBasicExploreDimensions,
|
|
3519
4027
|
rr as queryableExploreDimensions,
|
|
3520
|
-
|
|
4028
|
+
Qn as queryableRequestDimensions,
|
|
3521
4029
|
ea as queryableRequestMetrics,
|
|
3522
|
-
|
|
4030
|
+
Jn as queryableRequestWildcardDimensions,
|
|
3523
4031
|
_r as rand,
|
|
3524
|
-
|
|
4032
|
+
Ns as relativeTimeRangeValuesRequestV2,
|
|
3525
4033
|
Xn as relativeTimeRangeValuesV4,
|
|
3526
|
-
|
|
3527
|
-
|
|
4034
|
+
Ms as reportChartTypes,
|
|
4035
|
+
Bn as requestFilterTypeEmptyV2,
|
|
3528
4036
|
Os as requestFilterTypeEqualsV2,
|
|
3529
|
-
|
|
4037
|
+
Ss as requestFilterTypeMetricV2,
|
|
3530
4038
|
vs as requestFilterTypeWildcardV2,
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
4039
|
+
da as singleValueSchema,
|
|
4040
|
+
aa as slottableSchema,
|
|
4041
|
+
Is as stripUnknownFilters,
|
|
4042
|
+
Ta as tileConfigSchema,
|
|
4043
|
+
wa as tileDefinitionSchema,
|
|
4044
|
+
ba as tileLayoutSchema,
|
|
4045
|
+
Es as timeRangeTypeV2,
|
|
3538
4046
|
qs as timeframeToDatepickerSelection,
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
4047
|
+
Us as timeframeToDatepickerTimeperiod,
|
|
4048
|
+
sa as timeseriesChartSchema,
|
|
4049
|
+
ca as topNTableSchema,
|
|
4050
|
+
_a as validDashboardQuery
|
|
3543
4051
|
};
|
|
3544
4052
|
//# sourceMappingURL=vitals-utilities.es.js.map
|