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