@bereasoftware/time-guard 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +9 -0
- package/README.en.md +1248 -0
- package/README.md +1315 -0
- package/dist/time-guard.cjs +1 -0
- package/dist/time-guard.es.js +4340 -0
- package/dist/time-guard.iife.js +1 -0
- package/dist/time-guard.umd.js +1 -0
- package/dist/types/index.d.ts +1112 -0
- package/package.json +115 -0
|
@@ -0,0 +1,4340 @@
|
|
|
1
|
+
/*! time-guard v1.0.1 | (c) 2026 Berea-Soft | MIT License | https://github.com/Berea-Soft/time-guard */
|
|
2
|
+
//#region src/polyfill-loader.ts
|
|
3
|
+
typeof globalThis < "u" && !globalThis.Temporal && console.warn("[time-guard] Temporal API not available. Install @js-temporal/polyfill or use a browser with native Temporal support.");
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/adapters/temporal.adapter.ts
|
|
6
|
+
var e = null;
|
|
7
|
+
function t() {
|
|
8
|
+
if (e) return e;
|
|
9
|
+
let t = globalThis.Temporal;
|
|
10
|
+
if (!t) throw Error("Temporal API not loaded. Make sure @js-temporal/polyfill is imported in your app.");
|
|
11
|
+
return e = t, t;
|
|
12
|
+
}
|
|
13
|
+
var n = class {
|
|
14
|
+
static parseToPlainDateTime(e) {
|
|
15
|
+
let n = t();
|
|
16
|
+
return this.isPlainDateTime(e) ? e : this.isZonedDateTime(e) ? e.toPlainDateTime() : this.isPlainDate(e) ? e.toPlainDateTime({
|
|
17
|
+
hour: 0,
|
|
18
|
+
minute: 0,
|
|
19
|
+
second: 0,
|
|
20
|
+
millisecond: 0
|
|
21
|
+
}) : this.isPlainTime(e) ? n.Now.plainDateTimeISO().with(e) : typeof e == "object" && e && "getTime" in e && typeof e.getTime == "function" ? this.fromDate(e) : typeof e == "number" ? this.fromUnix(e) : typeof e == "string" ? this.parseISOString(e) : typeof e == "object" && e ? this.fromObject(e) : n.Now.plainDateTimeISO();
|
|
22
|
+
}
|
|
23
|
+
static fromDate(e) {
|
|
24
|
+
let n = t(), [r, i] = e.toISOString().split("T");
|
|
25
|
+
return n.PlainDateTime.from(r + "T" + i.slice(0, -1));
|
|
26
|
+
}
|
|
27
|
+
static fromUnix(e) {
|
|
28
|
+
return this.fromDate(new Date(e));
|
|
29
|
+
}
|
|
30
|
+
static parseISOString(e) {
|
|
31
|
+
let n = t();
|
|
32
|
+
try {
|
|
33
|
+
if (e.includes("T") || / \d{2}:\d{2}/.test(e)) {
|
|
34
|
+
let t = e.replace(" ", "T");
|
|
35
|
+
return n.PlainDateTime.from(t);
|
|
36
|
+
}
|
|
37
|
+
return n.PlainDate.from(e).toPlainDateTime({ hour: 0 });
|
|
38
|
+
} catch {
|
|
39
|
+
return n.Now.plainDateTimeISO();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
static fromObject(e) {
|
|
43
|
+
let n = t(), r = e.year || n.Now.plainDateISO().year, i = e.month || 1, a = e.day || 1, o = e.hour || 0, s = e.minute || 0, c = e.second || 0, l = e.millisecond || 0;
|
|
44
|
+
return n.PlainDateTime.from({
|
|
45
|
+
year: r,
|
|
46
|
+
month: i,
|
|
47
|
+
day: a,
|
|
48
|
+
hour: o,
|
|
49
|
+
minute: s,
|
|
50
|
+
second: c,
|
|
51
|
+
millisecond: l
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
static toDate(e) {
|
|
55
|
+
let t = this.toPlainDateTime(e);
|
|
56
|
+
return new Date(t.toString());
|
|
57
|
+
}
|
|
58
|
+
static toUnix(e) {
|
|
59
|
+
let t = this.toPlainDateTime(e);
|
|
60
|
+
return Date.UTC(t.year, t.month - 1, t.day, t.hour, t.minute, t.second, t.millisecond);
|
|
61
|
+
}
|
|
62
|
+
static toISOString(e) {
|
|
63
|
+
return this.toPlainDateTime(e).toString() + "Z";
|
|
64
|
+
}
|
|
65
|
+
static toPlainDateTime(e) {
|
|
66
|
+
return this.isPlainDateTime(e) ? e : e.toPlainDateTime();
|
|
67
|
+
}
|
|
68
|
+
static isPlainDateTime(e) {
|
|
69
|
+
return typeof e == "object" && !!e && "year" in e && "month" in e && "day" in e && "hour" in e;
|
|
70
|
+
}
|
|
71
|
+
static isZonedDateTime(e) {
|
|
72
|
+
return typeof e == "object" && !!e && "timeZone" in e;
|
|
73
|
+
}
|
|
74
|
+
static isPlainDate(e) {
|
|
75
|
+
return typeof e == "object" && !!e && "year" in e && "month" in e && "day" in e && !("hour" in e) && "toPlainDateTime" in e;
|
|
76
|
+
}
|
|
77
|
+
static isPlainTime(e) {
|
|
78
|
+
return typeof e == "object" && !!e && "hour" in e && !("year" in e);
|
|
79
|
+
}
|
|
80
|
+
static now() {
|
|
81
|
+
return t().Now.plainDateTimeISO();
|
|
82
|
+
}
|
|
83
|
+
static nowInTimezone(e) {
|
|
84
|
+
return t().Now.zonedDateTimeISO(e);
|
|
85
|
+
}
|
|
86
|
+
}, r = {
|
|
87
|
+
name: "en",
|
|
88
|
+
months: [
|
|
89
|
+
"January",
|
|
90
|
+
"February",
|
|
91
|
+
"March",
|
|
92
|
+
"April",
|
|
93
|
+
"May",
|
|
94
|
+
"June",
|
|
95
|
+
"July",
|
|
96
|
+
"August",
|
|
97
|
+
"September",
|
|
98
|
+
"October",
|
|
99
|
+
"November",
|
|
100
|
+
"December"
|
|
101
|
+
],
|
|
102
|
+
monthsShort: [
|
|
103
|
+
"Jan",
|
|
104
|
+
"Feb",
|
|
105
|
+
"Mar",
|
|
106
|
+
"Apr",
|
|
107
|
+
"May",
|
|
108
|
+
"Jun",
|
|
109
|
+
"Jul",
|
|
110
|
+
"Aug",
|
|
111
|
+
"Sep",
|
|
112
|
+
"Oct",
|
|
113
|
+
"Nov",
|
|
114
|
+
"Dec"
|
|
115
|
+
],
|
|
116
|
+
weekdays: [
|
|
117
|
+
"Sunday",
|
|
118
|
+
"Monday",
|
|
119
|
+
"Tuesday",
|
|
120
|
+
"Wednesday",
|
|
121
|
+
"Thursday",
|
|
122
|
+
"Friday",
|
|
123
|
+
"Saturday"
|
|
124
|
+
],
|
|
125
|
+
weekdaysShort: [
|
|
126
|
+
"Sun",
|
|
127
|
+
"Mon",
|
|
128
|
+
"Tue",
|
|
129
|
+
"Wed",
|
|
130
|
+
"Thu",
|
|
131
|
+
"Fri",
|
|
132
|
+
"Sat"
|
|
133
|
+
],
|
|
134
|
+
weekdaysMin: [
|
|
135
|
+
"Su",
|
|
136
|
+
"Mo",
|
|
137
|
+
"Tu",
|
|
138
|
+
"We",
|
|
139
|
+
"Th",
|
|
140
|
+
"Fr",
|
|
141
|
+
"Sa"
|
|
142
|
+
],
|
|
143
|
+
meridiem: {
|
|
144
|
+
am: "AM",
|
|
145
|
+
pm: "PM"
|
|
146
|
+
},
|
|
147
|
+
formats: {
|
|
148
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
149
|
+
date: "YYYY-MM-DD",
|
|
150
|
+
time: "HH:mm:ss",
|
|
151
|
+
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
152
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
153
|
+
}
|
|
154
|
+
}, i = {
|
|
155
|
+
name: "en-au",
|
|
156
|
+
months: [
|
|
157
|
+
"January",
|
|
158
|
+
"February",
|
|
159
|
+
"March",
|
|
160
|
+
"April",
|
|
161
|
+
"May",
|
|
162
|
+
"June",
|
|
163
|
+
"July",
|
|
164
|
+
"August",
|
|
165
|
+
"September",
|
|
166
|
+
"October",
|
|
167
|
+
"November",
|
|
168
|
+
"December"
|
|
169
|
+
],
|
|
170
|
+
monthsShort: [
|
|
171
|
+
"Jan",
|
|
172
|
+
"Feb",
|
|
173
|
+
"Mar",
|
|
174
|
+
"Apr",
|
|
175
|
+
"May",
|
|
176
|
+
"Jun",
|
|
177
|
+
"Jul",
|
|
178
|
+
"Aug",
|
|
179
|
+
"Sep",
|
|
180
|
+
"Oct",
|
|
181
|
+
"Nov",
|
|
182
|
+
"Dec"
|
|
183
|
+
],
|
|
184
|
+
weekdays: [
|
|
185
|
+
"Sunday",
|
|
186
|
+
"Monday",
|
|
187
|
+
"Tuesday",
|
|
188
|
+
"Wednesday",
|
|
189
|
+
"Thursday",
|
|
190
|
+
"Friday",
|
|
191
|
+
"Saturday"
|
|
192
|
+
],
|
|
193
|
+
weekdaysShort: [
|
|
194
|
+
"Sun",
|
|
195
|
+
"Mon",
|
|
196
|
+
"Tue",
|
|
197
|
+
"Wed",
|
|
198
|
+
"Thu",
|
|
199
|
+
"Fri",
|
|
200
|
+
"Sat"
|
|
201
|
+
],
|
|
202
|
+
weekdaysMin: [
|
|
203
|
+
"Su",
|
|
204
|
+
"Mo",
|
|
205
|
+
"Tu",
|
|
206
|
+
"We",
|
|
207
|
+
"Th",
|
|
208
|
+
"Fr",
|
|
209
|
+
"Sa"
|
|
210
|
+
],
|
|
211
|
+
meridiem: {
|
|
212
|
+
am: "AM",
|
|
213
|
+
pm: "PM"
|
|
214
|
+
},
|
|
215
|
+
formats: {
|
|
216
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
217
|
+
date: "DD/MM/YYYY",
|
|
218
|
+
time: "HH:mm:ss",
|
|
219
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
220
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
221
|
+
}
|
|
222
|
+
}, a = {
|
|
223
|
+
name: "en-gb",
|
|
224
|
+
months: [
|
|
225
|
+
"January",
|
|
226
|
+
"February",
|
|
227
|
+
"March",
|
|
228
|
+
"April",
|
|
229
|
+
"May",
|
|
230
|
+
"June",
|
|
231
|
+
"July",
|
|
232
|
+
"August",
|
|
233
|
+
"September",
|
|
234
|
+
"October",
|
|
235
|
+
"November",
|
|
236
|
+
"December"
|
|
237
|
+
],
|
|
238
|
+
monthsShort: [
|
|
239
|
+
"Jan",
|
|
240
|
+
"Feb",
|
|
241
|
+
"Mar",
|
|
242
|
+
"Apr",
|
|
243
|
+
"May",
|
|
244
|
+
"Jun",
|
|
245
|
+
"Jul",
|
|
246
|
+
"Aug",
|
|
247
|
+
"Sep",
|
|
248
|
+
"Oct",
|
|
249
|
+
"Nov",
|
|
250
|
+
"Dec"
|
|
251
|
+
],
|
|
252
|
+
weekdays: [
|
|
253
|
+
"Sunday",
|
|
254
|
+
"Monday",
|
|
255
|
+
"Tuesday",
|
|
256
|
+
"Wednesday",
|
|
257
|
+
"Thursday",
|
|
258
|
+
"Friday",
|
|
259
|
+
"Saturday"
|
|
260
|
+
],
|
|
261
|
+
weekdaysShort: [
|
|
262
|
+
"Sun",
|
|
263
|
+
"Mon",
|
|
264
|
+
"Tue",
|
|
265
|
+
"Wed",
|
|
266
|
+
"Thu",
|
|
267
|
+
"Fri",
|
|
268
|
+
"Sat"
|
|
269
|
+
],
|
|
270
|
+
weekdaysMin: [
|
|
271
|
+
"Su",
|
|
272
|
+
"Mo",
|
|
273
|
+
"Tu",
|
|
274
|
+
"We",
|
|
275
|
+
"Th",
|
|
276
|
+
"Fr",
|
|
277
|
+
"Sa"
|
|
278
|
+
],
|
|
279
|
+
meridiem: {
|
|
280
|
+
am: "AM",
|
|
281
|
+
pm: "PM"
|
|
282
|
+
},
|
|
283
|
+
formats: {
|
|
284
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
285
|
+
date: "DD/MM/YYYY",
|
|
286
|
+
time: "HH:mm:ss",
|
|
287
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
288
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
289
|
+
}
|
|
290
|
+
}, o = {
|
|
291
|
+
name: "en-ca",
|
|
292
|
+
months: [
|
|
293
|
+
"January",
|
|
294
|
+
"February",
|
|
295
|
+
"March",
|
|
296
|
+
"April",
|
|
297
|
+
"May",
|
|
298
|
+
"June",
|
|
299
|
+
"July",
|
|
300
|
+
"August",
|
|
301
|
+
"September",
|
|
302
|
+
"October",
|
|
303
|
+
"November",
|
|
304
|
+
"December"
|
|
305
|
+
],
|
|
306
|
+
monthsShort: [
|
|
307
|
+
"Jan",
|
|
308
|
+
"Feb",
|
|
309
|
+
"Mar",
|
|
310
|
+
"Apr",
|
|
311
|
+
"May",
|
|
312
|
+
"Jun",
|
|
313
|
+
"Jul",
|
|
314
|
+
"Aug",
|
|
315
|
+
"Sep",
|
|
316
|
+
"Oct",
|
|
317
|
+
"Nov",
|
|
318
|
+
"Dec"
|
|
319
|
+
],
|
|
320
|
+
weekdays: [
|
|
321
|
+
"Sunday",
|
|
322
|
+
"Monday",
|
|
323
|
+
"Tuesday",
|
|
324
|
+
"Wednesday",
|
|
325
|
+
"Thursday",
|
|
326
|
+
"Friday",
|
|
327
|
+
"Saturday"
|
|
328
|
+
],
|
|
329
|
+
weekdaysShort: [
|
|
330
|
+
"Sun",
|
|
331
|
+
"Mon",
|
|
332
|
+
"Tue",
|
|
333
|
+
"Wed",
|
|
334
|
+
"Thu",
|
|
335
|
+
"Fri",
|
|
336
|
+
"Sat"
|
|
337
|
+
],
|
|
338
|
+
weekdaysMin: [
|
|
339
|
+
"Su",
|
|
340
|
+
"Mo",
|
|
341
|
+
"Tu",
|
|
342
|
+
"We",
|
|
343
|
+
"Th",
|
|
344
|
+
"Fr",
|
|
345
|
+
"Sa"
|
|
346
|
+
],
|
|
347
|
+
meridiem: {
|
|
348
|
+
am: "AM",
|
|
349
|
+
pm: "PM"
|
|
350
|
+
},
|
|
351
|
+
formats: {
|
|
352
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
353
|
+
date: "YYYY-MM-DD",
|
|
354
|
+
time: "HH:mm:ss",
|
|
355
|
+
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
356
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
357
|
+
}
|
|
358
|
+
}, s = {
|
|
359
|
+
en: r,
|
|
360
|
+
"en-au": i,
|
|
361
|
+
"en-gb": a,
|
|
362
|
+
"en-ca": o
|
|
363
|
+
}, c = {
|
|
364
|
+
name: "es",
|
|
365
|
+
months: [
|
|
366
|
+
"Enero",
|
|
367
|
+
"Febrero",
|
|
368
|
+
"Marzo",
|
|
369
|
+
"Abril",
|
|
370
|
+
"Mayo",
|
|
371
|
+
"Junio",
|
|
372
|
+
"Julio",
|
|
373
|
+
"Agosto",
|
|
374
|
+
"Septiembre",
|
|
375
|
+
"Octubre",
|
|
376
|
+
"Noviembre",
|
|
377
|
+
"Diciembre"
|
|
378
|
+
],
|
|
379
|
+
monthsShort: [
|
|
380
|
+
"Ene",
|
|
381
|
+
"Feb",
|
|
382
|
+
"Mar",
|
|
383
|
+
"Abr",
|
|
384
|
+
"May",
|
|
385
|
+
"Jun",
|
|
386
|
+
"Jul",
|
|
387
|
+
"Ago",
|
|
388
|
+
"Sep",
|
|
389
|
+
"Oct",
|
|
390
|
+
"Nov",
|
|
391
|
+
"Dic"
|
|
392
|
+
],
|
|
393
|
+
weekdays: [
|
|
394
|
+
"Domingo",
|
|
395
|
+
"Lunes",
|
|
396
|
+
"Martes",
|
|
397
|
+
"Miércoles",
|
|
398
|
+
"Jueves",
|
|
399
|
+
"Viernes",
|
|
400
|
+
"Sábado"
|
|
401
|
+
],
|
|
402
|
+
weekdaysShort: [
|
|
403
|
+
"Dom",
|
|
404
|
+
"Lun",
|
|
405
|
+
"Mar",
|
|
406
|
+
"Mié",
|
|
407
|
+
"Jue",
|
|
408
|
+
"Vie",
|
|
409
|
+
"Sáb"
|
|
410
|
+
],
|
|
411
|
+
weekdaysMin: [
|
|
412
|
+
"Do",
|
|
413
|
+
"Lu",
|
|
414
|
+
"Ma",
|
|
415
|
+
"Mi",
|
|
416
|
+
"Ju",
|
|
417
|
+
"Vi",
|
|
418
|
+
"Sa"
|
|
419
|
+
],
|
|
420
|
+
meridiem: {
|
|
421
|
+
am: "AM",
|
|
422
|
+
pm: "PM"
|
|
423
|
+
},
|
|
424
|
+
formats: {
|
|
425
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
426
|
+
date: "DD/MM/YYYY",
|
|
427
|
+
time: "HH:mm:ss",
|
|
428
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
429
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
430
|
+
}
|
|
431
|
+
}, l = {
|
|
432
|
+
name: "es-mx",
|
|
433
|
+
months: [
|
|
434
|
+
"Enero",
|
|
435
|
+
"Febrero",
|
|
436
|
+
"Marzo",
|
|
437
|
+
"Abril",
|
|
438
|
+
"Mayo",
|
|
439
|
+
"Junio",
|
|
440
|
+
"Julio",
|
|
441
|
+
"Agosto",
|
|
442
|
+
"Septiembre",
|
|
443
|
+
"Octubre",
|
|
444
|
+
"Noviembre",
|
|
445
|
+
"Diciembre"
|
|
446
|
+
],
|
|
447
|
+
monthsShort: [
|
|
448
|
+
"Ene",
|
|
449
|
+
"Feb",
|
|
450
|
+
"Mar",
|
|
451
|
+
"Abr",
|
|
452
|
+
"May",
|
|
453
|
+
"Jun",
|
|
454
|
+
"Jul",
|
|
455
|
+
"Ago",
|
|
456
|
+
"Sep",
|
|
457
|
+
"Oct",
|
|
458
|
+
"Nov",
|
|
459
|
+
"Dic"
|
|
460
|
+
],
|
|
461
|
+
weekdays: [
|
|
462
|
+
"Domingo",
|
|
463
|
+
"Lunes",
|
|
464
|
+
"Martes",
|
|
465
|
+
"Miércoles",
|
|
466
|
+
"Jueves",
|
|
467
|
+
"Viernes",
|
|
468
|
+
"Sábado"
|
|
469
|
+
],
|
|
470
|
+
weekdaysShort: [
|
|
471
|
+
"Dom",
|
|
472
|
+
"Lun",
|
|
473
|
+
"Mar",
|
|
474
|
+
"Mié",
|
|
475
|
+
"Jue",
|
|
476
|
+
"Vie",
|
|
477
|
+
"Sáb"
|
|
478
|
+
],
|
|
479
|
+
weekdaysMin: [
|
|
480
|
+
"Do",
|
|
481
|
+
"Lu",
|
|
482
|
+
"Ma",
|
|
483
|
+
"Mi",
|
|
484
|
+
"Ju",
|
|
485
|
+
"Vi",
|
|
486
|
+
"Sa"
|
|
487
|
+
],
|
|
488
|
+
meridiem: {
|
|
489
|
+
am: "AM",
|
|
490
|
+
pm: "PM"
|
|
491
|
+
},
|
|
492
|
+
formats: {
|
|
493
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
494
|
+
date: "DD/MM/YYYY",
|
|
495
|
+
time: "HH:mm:ss",
|
|
496
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
497
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
498
|
+
}
|
|
499
|
+
}, u = {
|
|
500
|
+
name: "es-us",
|
|
501
|
+
months: [
|
|
502
|
+
"Enero",
|
|
503
|
+
"Febrero",
|
|
504
|
+
"Marzo",
|
|
505
|
+
"Abril",
|
|
506
|
+
"Mayo",
|
|
507
|
+
"Junio",
|
|
508
|
+
"Julio",
|
|
509
|
+
"Agosto",
|
|
510
|
+
"Septiembre",
|
|
511
|
+
"Octubre",
|
|
512
|
+
"Noviembre",
|
|
513
|
+
"Diciembre"
|
|
514
|
+
],
|
|
515
|
+
monthsShort: [
|
|
516
|
+
"Ene",
|
|
517
|
+
"Feb",
|
|
518
|
+
"Mar",
|
|
519
|
+
"Abr",
|
|
520
|
+
"May",
|
|
521
|
+
"Jun",
|
|
522
|
+
"Jul",
|
|
523
|
+
"Ago",
|
|
524
|
+
"Sep",
|
|
525
|
+
"Oct",
|
|
526
|
+
"Nov",
|
|
527
|
+
"Dic"
|
|
528
|
+
],
|
|
529
|
+
weekdays: [
|
|
530
|
+
"Domingo",
|
|
531
|
+
"Lunes",
|
|
532
|
+
"Martes",
|
|
533
|
+
"Miércoles",
|
|
534
|
+
"Jueves",
|
|
535
|
+
"Viernes",
|
|
536
|
+
"Sábado"
|
|
537
|
+
],
|
|
538
|
+
weekdaysShort: [
|
|
539
|
+
"Dom",
|
|
540
|
+
"Lun",
|
|
541
|
+
"Mar",
|
|
542
|
+
"Mié",
|
|
543
|
+
"Jue",
|
|
544
|
+
"Vie",
|
|
545
|
+
"Sáb"
|
|
546
|
+
],
|
|
547
|
+
weekdaysMin: [
|
|
548
|
+
"Do",
|
|
549
|
+
"Lu",
|
|
550
|
+
"Ma",
|
|
551
|
+
"Mi",
|
|
552
|
+
"Ju",
|
|
553
|
+
"Vi",
|
|
554
|
+
"Sa"
|
|
555
|
+
],
|
|
556
|
+
meridiem: {
|
|
557
|
+
am: "AM",
|
|
558
|
+
pm: "PM"
|
|
559
|
+
},
|
|
560
|
+
formats: {
|
|
561
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
562
|
+
date: "MM/DD/YYYY",
|
|
563
|
+
time: "HH:mm:ss",
|
|
564
|
+
datetime: "MM/DD/YYYY HH:mm:ss",
|
|
565
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
566
|
+
}
|
|
567
|
+
}, d = {
|
|
568
|
+
es: c,
|
|
569
|
+
"es-mx": l,
|
|
570
|
+
"es-us": u
|
|
571
|
+
}, f = {
|
|
572
|
+
name: "fr",
|
|
573
|
+
months: [
|
|
574
|
+
"janvier",
|
|
575
|
+
"février",
|
|
576
|
+
"mars",
|
|
577
|
+
"avril",
|
|
578
|
+
"mai",
|
|
579
|
+
"juin",
|
|
580
|
+
"juillet",
|
|
581
|
+
"août",
|
|
582
|
+
"septembre",
|
|
583
|
+
"octobre",
|
|
584
|
+
"novembre",
|
|
585
|
+
"décembre"
|
|
586
|
+
],
|
|
587
|
+
monthsShort: [
|
|
588
|
+
"janv.",
|
|
589
|
+
"févr.",
|
|
590
|
+
"mars",
|
|
591
|
+
"avr.",
|
|
592
|
+
"mai",
|
|
593
|
+
"juin",
|
|
594
|
+
"juil.",
|
|
595
|
+
"août",
|
|
596
|
+
"sept.",
|
|
597
|
+
"oct.",
|
|
598
|
+
"nov.",
|
|
599
|
+
"déc."
|
|
600
|
+
],
|
|
601
|
+
weekdays: [
|
|
602
|
+
"dimanche",
|
|
603
|
+
"lundi",
|
|
604
|
+
"mardi",
|
|
605
|
+
"mercredi",
|
|
606
|
+
"jeudi",
|
|
607
|
+
"vendredi",
|
|
608
|
+
"samedi"
|
|
609
|
+
],
|
|
610
|
+
weekdaysShort: [
|
|
611
|
+
"dim.",
|
|
612
|
+
"lun.",
|
|
613
|
+
"mar.",
|
|
614
|
+
"mer.",
|
|
615
|
+
"jeu.",
|
|
616
|
+
"ven.",
|
|
617
|
+
"sam."
|
|
618
|
+
],
|
|
619
|
+
weekdaysMin: [
|
|
620
|
+
"di",
|
|
621
|
+
"lu",
|
|
622
|
+
"ma",
|
|
623
|
+
"me",
|
|
624
|
+
"je",
|
|
625
|
+
"ve",
|
|
626
|
+
"sa"
|
|
627
|
+
],
|
|
628
|
+
meridiem: {
|
|
629
|
+
am: "AM",
|
|
630
|
+
pm: "PM"
|
|
631
|
+
},
|
|
632
|
+
formats: {
|
|
633
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
634
|
+
date: "DD/MM/YYYY",
|
|
635
|
+
time: "HH:mm:ss",
|
|
636
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
637
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
638
|
+
}
|
|
639
|
+
}, p = {
|
|
640
|
+
name: "it",
|
|
641
|
+
months: [
|
|
642
|
+
"gennaio",
|
|
643
|
+
"febbraio",
|
|
644
|
+
"marzo",
|
|
645
|
+
"aprile",
|
|
646
|
+
"maggio",
|
|
647
|
+
"giugno",
|
|
648
|
+
"luglio",
|
|
649
|
+
"agosto",
|
|
650
|
+
"settembre",
|
|
651
|
+
"ottobre",
|
|
652
|
+
"novembre",
|
|
653
|
+
"dicembre"
|
|
654
|
+
],
|
|
655
|
+
monthsShort: [
|
|
656
|
+
"gen",
|
|
657
|
+
"feb",
|
|
658
|
+
"mar",
|
|
659
|
+
"apr",
|
|
660
|
+
"mag",
|
|
661
|
+
"giu",
|
|
662
|
+
"lug",
|
|
663
|
+
"ago",
|
|
664
|
+
"set",
|
|
665
|
+
"ott",
|
|
666
|
+
"nov",
|
|
667
|
+
"dic"
|
|
668
|
+
],
|
|
669
|
+
weekdays: [
|
|
670
|
+
"domenica",
|
|
671
|
+
"lunedì",
|
|
672
|
+
"martedì",
|
|
673
|
+
"mercoledì",
|
|
674
|
+
"giovedì",
|
|
675
|
+
"venerdì",
|
|
676
|
+
"sabato"
|
|
677
|
+
],
|
|
678
|
+
weekdaysShort: [
|
|
679
|
+
"dom",
|
|
680
|
+
"lun",
|
|
681
|
+
"mar",
|
|
682
|
+
"mer",
|
|
683
|
+
"gio",
|
|
684
|
+
"ven",
|
|
685
|
+
"sab"
|
|
686
|
+
],
|
|
687
|
+
weekdaysMin: [
|
|
688
|
+
"do",
|
|
689
|
+
"lu",
|
|
690
|
+
"ma",
|
|
691
|
+
"me",
|
|
692
|
+
"gi",
|
|
693
|
+
"ve",
|
|
694
|
+
"sa"
|
|
695
|
+
],
|
|
696
|
+
meridiem: {
|
|
697
|
+
am: "AM",
|
|
698
|
+
pm: "PM"
|
|
699
|
+
},
|
|
700
|
+
formats: {
|
|
701
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
702
|
+
date: "DD/MM/YYYY",
|
|
703
|
+
time: "HH:mm:ss",
|
|
704
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
705
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
706
|
+
}
|
|
707
|
+
}, m = {
|
|
708
|
+
name: "pt",
|
|
709
|
+
months: [
|
|
710
|
+
"janeiro",
|
|
711
|
+
"fevereiro",
|
|
712
|
+
"março",
|
|
713
|
+
"abril",
|
|
714
|
+
"maio",
|
|
715
|
+
"junho",
|
|
716
|
+
"julho",
|
|
717
|
+
"agosto",
|
|
718
|
+
"setembro",
|
|
719
|
+
"outubro",
|
|
720
|
+
"novembro",
|
|
721
|
+
"dezembro"
|
|
722
|
+
],
|
|
723
|
+
monthsShort: [
|
|
724
|
+
"jan",
|
|
725
|
+
"fev",
|
|
726
|
+
"mar",
|
|
727
|
+
"abr",
|
|
728
|
+
"mai",
|
|
729
|
+
"jun",
|
|
730
|
+
"jul",
|
|
731
|
+
"ago",
|
|
732
|
+
"set",
|
|
733
|
+
"out",
|
|
734
|
+
"nov",
|
|
735
|
+
"dez"
|
|
736
|
+
],
|
|
737
|
+
weekdays: [
|
|
738
|
+
"domingo",
|
|
739
|
+
"segunda",
|
|
740
|
+
"terça",
|
|
741
|
+
"quarta",
|
|
742
|
+
"quinta",
|
|
743
|
+
"sexta",
|
|
744
|
+
"sábado"
|
|
745
|
+
],
|
|
746
|
+
weekdaysShort: [
|
|
747
|
+
"dom",
|
|
748
|
+
"seg",
|
|
749
|
+
"ter",
|
|
750
|
+
"qua",
|
|
751
|
+
"qui",
|
|
752
|
+
"sex",
|
|
753
|
+
"sab"
|
|
754
|
+
],
|
|
755
|
+
weekdaysMin: [
|
|
756
|
+
"do",
|
|
757
|
+
"se",
|
|
758
|
+
"te",
|
|
759
|
+
"qu",
|
|
760
|
+
"qu",
|
|
761
|
+
"se",
|
|
762
|
+
"sa"
|
|
763
|
+
],
|
|
764
|
+
meridiem: {
|
|
765
|
+
am: "AM",
|
|
766
|
+
pm: "PM"
|
|
767
|
+
},
|
|
768
|
+
formats: {
|
|
769
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
770
|
+
date: "DD/MM/YYYY",
|
|
771
|
+
time: "HH:mm:ss",
|
|
772
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
773
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
774
|
+
}
|
|
775
|
+
}, h = {
|
|
776
|
+
name: "pt-br",
|
|
777
|
+
months: [
|
|
778
|
+
"janeiro",
|
|
779
|
+
"fevereiro",
|
|
780
|
+
"março",
|
|
781
|
+
"abril",
|
|
782
|
+
"maio",
|
|
783
|
+
"junho",
|
|
784
|
+
"julho",
|
|
785
|
+
"agosto",
|
|
786
|
+
"setembro",
|
|
787
|
+
"outubro",
|
|
788
|
+
"novembro",
|
|
789
|
+
"dezembro"
|
|
790
|
+
],
|
|
791
|
+
monthsShort: [
|
|
792
|
+
"jan",
|
|
793
|
+
"fev",
|
|
794
|
+
"mar",
|
|
795
|
+
"abr",
|
|
796
|
+
"mai",
|
|
797
|
+
"jun",
|
|
798
|
+
"jul",
|
|
799
|
+
"ago",
|
|
800
|
+
"set",
|
|
801
|
+
"out",
|
|
802
|
+
"nov",
|
|
803
|
+
"dez"
|
|
804
|
+
],
|
|
805
|
+
weekdays: [
|
|
806
|
+
"domingo",
|
|
807
|
+
"segunda-feira",
|
|
808
|
+
"terça-feira",
|
|
809
|
+
"quarta-feira",
|
|
810
|
+
"quinta-feira",
|
|
811
|
+
"sexta-feira",
|
|
812
|
+
"sábado"
|
|
813
|
+
],
|
|
814
|
+
weekdaysShort: [
|
|
815
|
+
"dom",
|
|
816
|
+
"seg",
|
|
817
|
+
"ter",
|
|
818
|
+
"qua",
|
|
819
|
+
"qui",
|
|
820
|
+
"sex",
|
|
821
|
+
"sab"
|
|
822
|
+
],
|
|
823
|
+
weekdaysMin: [
|
|
824
|
+
"do",
|
|
825
|
+
"se",
|
|
826
|
+
"te",
|
|
827
|
+
"qu",
|
|
828
|
+
"qu",
|
|
829
|
+
"se",
|
|
830
|
+
"sa"
|
|
831
|
+
],
|
|
832
|
+
meridiem: {
|
|
833
|
+
am: "AM",
|
|
834
|
+
pm: "PM"
|
|
835
|
+
},
|
|
836
|
+
formats: {
|
|
837
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
838
|
+
date: "DD/MM/YYYY",
|
|
839
|
+
time: "HH:mm:ss",
|
|
840
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
841
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
842
|
+
}
|
|
843
|
+
}, g = {
|
|
844
|
+
name: "ro",
|
|
845
|
+
months: [
|
|
846
|
+
"ianuarie",
|
|
847
|
+
"februarie",
|
|
848
|
+
"martie",
|
|
849
|
+
"aprilie",
|
|
850
|
+
"mai",
|
|
851
|
+
"iunie",
|
|
852
|
+
"iulie",
|
|
853
|
+
"august",
|
|
854
|
+
"septembrie",
|
|
855
|
+
"octombrie",
|
|
856
|
+
"noiembrie",
|
|
857
|
+
"decembrie"
|
|
858
|
+
],
|
|
859
|
+
monthsShort: [
|
|
860
|
+
"ian.",
|
|
861
|
+
"feb.",
|
|
862
|
+
"mar.",
|
|
863
|
+
"apr.",
|
|
864
|
+
"mai",
|
|
865
|
+
"iun.",
|
|
866
|
+
"iul.",
|
|
867
|
+
"aug.",
|
|
868
|
+
"sep.",
|
|
869
|
+
"oct.",
|
|
870
|
+
"nov.",
|
|
871
|
+
"dec."
|
|
872
|
+
],
|
|
873
|
+
weekdays: [
|
|
874
|
+
"duminică",
|
|
875
|
+
"luni",
|
|
876
|
+
"marți",
|
|
877
|
+
"miercuri",
|
|
878
|
+
"joi",
|
|
879
|
+
"vineri",
|
|
880
|
+
"sâmbătă"
|
|
881
|
+
],
|
|
882
|
+
weekdaysShort: [
|
|
883
|
+
"dum.",
|
|
884
|
+
"lun.",
|
|
885
|
+
"mar.",
|
|
886
|
+
"mie.",
|
|
887
|
+
"joi",
|
|
888
|
+
"vin.",
|
|
889
|
+
"sâm."
|
|
890
|
+
],
|
|
891
|
+
weekdaysMin: [
|
|
892
|
+
"du",
|
|
893
|
+
"lu",
|
|
894
|
+
"ma",
|
|
895
|
+
"mi",
|
|
896
|
+
"jo",
|
|
897
|
+
"vi",
|
|
898
|
+
"sâ"
|
|
899
|
+
],
|
|
900
|
+
meridiem: {
|
|
901
|
+
am: "AM",
|
|
902
|
+
pm: "PM"
|
|
903
|
+
},
|
|
904
|
+
formats: {
|
|
905
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
906
|
+
date: "DD.MM.YYYY",
|
|
907
|
+
time: "HH:mm:ss",
|
|
908
|
+
datetime: "DD.MM.YYYY HH:mm:ss",
|
|
909
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
910
|
+
}
|
|
911
|
+
}, _ = {
|
|
912
|
+
fr: f,
|
|
913
|
+
it: p,
|
|
914
|
+
pt: m,
|
|
915
|
+
"pt-br": h,
|
|
916
|
+
ro: g
|
|
917
|
+
}, v = {
|
|
918
|
+
ru: {
|
|
919
|
+
name: "ru",
|
|
920
|
+
months: [
|
|
921
|
+
"январь",
|
|
922
|
+
"февраль",
|
|
923
|
+
"март",
|
|
924
|
+
"апрель",
|
|
925
|
+
"май",
|
|
926
|
+
"июнь",
|
|
927
|
+
"июль",
|
|
928
|
+
"август",
|
|
929
|
+
"сентябрь",
|
|
930
|
+
"октябрь",
|
|
931
|
+
"ноябрь",
|
|
932
|
+
"декабрь"
|
|
933
|
+
],
|
|
934
|
+
monthsShort: [
|
|
935
|
+
"янв.",
|
|
936
|
+
"февр.",
|
|
937
|
+
"март",
|
|
938
|
+
"апр.",
|
|
939
|
+
"май",
|
|
940
|
+
"июнь",
|
|
941
|
+
"июль",
|
|
942
|
+
"авг.",
|
|
943
|
+
"сент.",
|
|
944
|
+
"окт.",
|
|
945
|
+
"нояб.",
|
|
946
|
+
"дек."
|
|
947
|
+
],
|
|
948
|
+
weekdays: [
|
|
949
|
+
"воскресенье",
|
|
950
|
+
"понедельник",
|
|
951
|
+
"вторник",
|
|
952
|
+
"среда",
|
|
953
|
+
"четверг",
|
|
954
|
+
"пятница",
|
|
955
|
+
"суббота"
|
|
956
|
+
],
|
|
957
|
+
weekdaysShort: [
|
|
958
|
+
"вс",
|
|
959
|
+
"пн",
|
|
960
|
+
"вт",
|
|
961
|
+
"ср",
|
|
962
|
+
"чт",
|
|
963
|
+
"пт",
|
|
964
|
+
"сб"
|
|
965
|
+
],
|
|
966
|
+
weekdaysMin: [
|
|
967
|
+
"вс",
|
|
968
|
+
"пн",
|
|
969
|
+
"вт",
|
|
970
|
+
"ср",
|
|
971
|
+
"чт",
|
|
972
|
+
"пт",
|
|
973
|
+
"сб"
|
|
974
|
+
],
|
|
975
|
+
meridiem: {
|
|
976
|
+
am: "AM",
|
|
977
|
+
pm: "PM"
|
|
978
|
+
},
|
|
979
|
+
formats: {
|
|
980
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
981
|
+
date: "DD.MM.YYYY",
|
|
982
|
+
time: "HH:mm:ss",
|
|
983
|
+
datetime: "DD.MM.YYYY HH:mm:ss",
|
|
984
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
985
|
+
}
|
|
986
|
+
},
|
|
987
|
+
pl: {
|
|
988
|
+
name: "pl",
|
|
989
|
+
months: [
|
|
990
|
+
"stycznia",
|
|
991
|
+
"lutego",
|
|
992
|
+
"marca",
|
|
993
|
+
"kwietnia",
|
|
994
|
+
"maja",
|
|
995
|
+
"czerwca",
|
|
996
|
+
"lipca",
|
|
997
|
+
"sierpnia",
|
|
998
|
+
"września",
|
|
999
|
+
"października",
|
|
1000
|
+
"listopada",
|
|
1001
|
+
"grudnia"
|
|
1002
|
+
],
|
|
1003
|
+
monthsShort: [
|
|
1004
|
+
"sty.",
|
|
1005
|
+
"lut.",
|
|
1006
|
+
"mar.",
|
|
1007
|
+
"kwi.",
|
|
1008
|
+
"maj.",
|
|
1009
|
+
"cze.",
|
|
1010
|
+
"lip.",
|
|
1011
|
+
"sie.",
|
|
1012
|
+
"wrz.",
|
|
1013
|
+
"paź.",
|
|
1014
|
+
"lis.",
|
|
1015
|
+
"gru."
|
|
1016
|
+
],
|
|
1017
|
+
weekdays: [
|
|
1018
|
+
"niedziela",
|
|
1019
|
+
"poniedziałek",
|
|
1020
|
+
"wtorek",
|
|
1021
|
+
"środa",
|
|
1022
|
+
"czwartek",
|
|
1023
|
+
"piątek",
|
|
1024
|
+
"sobota"
|
|
1025
|
+
],
|
|
1026
|
+
weekdaysShort: [
|
|
1027
|
+
"Nd.",
|
|
1028
|
+
"Pn.",
|
|
1029
|
+
"Wt.",
|
|
1030
|
+
"Śr.",
|
|
1031
|
+
"Cz.",
|
|
1032
|
+
"Pt.",
|
|
1033
|
+
"So."
|
|
1034
|
+
],
|
|
1035
|
+
weekdaysMin: [
|
|
1036
|
+
"Nd",
|
|
1037
|
+
"Pn",
|
|
1038
|
+
"Wt",
|
|
1039
|
+
"Śr",
|
|
1040
|
+
"Cz",
|
|
1041
|
+
"Pt",
|
|
1042
|
+
"So"
|
|
1043
|
+
],
|
|
1044
|
+
meridiem: {
|
|
1045
|
+
am: "AM",
|
|
1046
|
+
pm: "PM"
|
|
1047
|
+
},
|
|
1048
|
+
formats: {
|
|
1049
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
1050
|
+
date: "DD.MM.YYYY",
|
|
1051
|
+
time: "HH:mm:ss",
|
|
1052
|
+
datetime: "DD.MM.YYYY HH:mm:ss",
|
|
1053
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
1054
|
+
}
|
|
1055
|
+
},
|
|
1056
|
+
cs: {
|
|
1057
|
+
name: "cs",
|
|
1058
|
+
months: [
|
|
1059
|
+
"ledna",
|
|
1060
|
+
"února",
|
|
1061
|
+
"března",
|
|
1062
|
+
"dubna",
|
|
1063
|
+
"května",
|
|
1064
|
+
"iunie",
|
|
1065
|
+
"iulie",
|
|
1066
|
+
"srpna",
|
|
1067
|
+
"září",
|
|
1068
|
+
"října",
|
|
1069
|
+
"listopadu",
|
|
1070
|
+
"prosince"
|
|
1071
|
+
],
|
|
1072
|
+
monthsShort: [
|
|
1073
|
+
"led",
|
|
1074
|
+
"úno",
|
|
1075
|
+
"bře",
|
|
1076
|
+
"dub",
|
|
1077
|
+
"kvě",
|
|
1078
|
+
"čer",
|
|
1079
|
+
"čvc",
|
|
1080
|
+
"srp",
|
|
1081
|
+
"zář",
|
|
1082
|
+
"říj",
|
|
1083
|
+
"lis",
|
|
1084
|
+
"pro"
|
|
1085
|
+
],
|
|
1086
|
+
weekdays: [
|
|
1087
|
+
"neděle",
|
|
1088
|
+
"pondělí",
|
|
1089
|
+
"úterý",
|
|
1090
|
+
"středa",
|
|
1091
|
+
"čtvrtek",
|
|
1092
|
+
"pátek",
|
|
1093
|
+
"sobota"
|
|
1094
|
+
],
|
|
1095
|
+
weekdaysShort: [
|
|
1096
|
+
"ne",
|
|
1097
|
+
"po",
|
|
1098
|
+
"út",
|
|
1099
|
+
"st",
|
|
1100
|
+
"čt",
|
|
1101
|
+
"pá",
|
|
1102
|
+
"so"
|
|
1103
|
+
],
|
|
1104
|
+
weekdaysMin: [
|
|
1105
|
+
"ne",
|
|
1106
|
+
"po",
|
|
1107
|
+
"út",
|
|
1108
|
+
"st",
|
|
1109
|
+
"čt",
|
|
1110
|
+
"pá",
|
|
1111
|
+
"so"
|
|
1112
|
+
],
|
|
1113
|
+
meridiem: {
|
|
1114
|
+
am: "AM",
|
|
1115
|
+
pm: "PM"
|
|
1116
|
+
},
|
|
1117
|
+
formats: {
|
|
1118
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
1119
|
+
date: "DD.MM.YYYY",
|
|
1120
|
+
time: "HH:mm:ss",
|
|
1121
|
+
datetime: "DD.MM.YYYY HH:mm:ss",
|
|
1122
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
1123
|
+
}
|
|
1124
|
+
},
|
|
1125
|
+
sk: {
|
|
1126
|
+
name: "sk",
|
|
1127
|
+
months: [
|
|
1128
|
+
"január",
|
|
1129
|
+
"február",
|
|
1130
|
+
"март",
|
|
1131
|
+
"апрель",
|
|
1132
|
+
"май",
|
|
1133
|
+
"июнь",
|
|
1134
|
+
"июль",
|
|
1135
|
+
"август",
|
|
1136
|
+
"сентябрь",
|
|
1137
|
+
"октябрь",
|
|
1138
|
+
"ноябрь",
|
|
1139
|
+
"декабрь"
|
|
1140
|
+
],
|
|
1141
|
+
monthsShort: [
|
|
1142
|
+
"jan",
|
|
1143
|
+
"feb",
|
|
1144
|
+
"mar",
|
|
1145
|
+
"apr",
|
|
1146
|
+
"maj",
|
|
1147
|
+
"jún",
|
|
1148
|
+
"júl",
|
|
1149
|
+
"aug",
|
|
1150
|
+
"sep",
|
|
1151
|
+
"okt",
|
|
1152
|
+
"nov",
|
|
1153
|
+
"dec"
|
|
1154
|
+
],
|
|
1155
|
+
weekdays: [
|
|
1156
|
+
"nedeľa",
|
|
1157
|
+
"pondelok",
|
|
1158
|
+
"utorok",
|
|
1159
|
+
"streda",
|
|
1160
|
+
"štvrtok",
|
|
1161
|
+
"piatok",
|
|
1162
|
+
"sobota"
|
|
1163
|
+
],
|
|
1164
|
+
weekdaysShort: [
|
|
1165
|
+
"ned",
|
|
1166
|
+
"pon",
|
|
1167
|
+
"uto",
|
|
1168
|
+
"str",
|
|
1169
|
+
"štv",
|
|
1170
|
+
"pia",
|
|
1171
|
+
"sob"
|
|
1172
|
+
],
|
|
1173
|
+
weekdaysMin: [
|
|
1174
|
+
"ne",
|
|
1175
|
+
"po",
|
|
1176
|
+
"ut",
|
|
1177
|
+
"st",
|
|
1178
|
+
"št",
|
|
1179
|
+
"pi",
|
|
1180
|
+
"so"
|
|
1181
|
+
],
|
|
1182
|
+
meridiem: {
|
|
1183
|
+
am: "AM",
|
|
1184
|
+
pm: "PM"
|
|
1185
|
+
},
|
|
1186
|
+
formats: {
|
|
1187
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
1188
|
+
date: "DD.MM.YYYY",
|
|
1189
|
+
time: "HH:mm:ss",
|
|
1190
|
+
datetime: "DD.MM.YYYY HH:mm:ss",
|
|
1191
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
}, y = {
|
|
1195
|
+
sv: {
|
|
1196
|
+
name: "sv",
|
|
1197
|
+
months: [
|
|
1198
|
+
"januari",
|
|
1199
|
+
"februari",
|
|
1200
|
+
"mars",
|
|
1201
|
+
"april",
|
|
1202
|
+
"maj",
|
|
1203
|
+
"juni",
|
|
1204
|
+
"juli",
|
|
1205
|
+
"augusti",
|
|
1206
|
+
"september",
|
|
1207
|
+
"oktober",
|
|
1208
|
+
"november",
|
|
1209
|
+
"december"
|
|
1210
|
+
],
|
|
1211
|
+
monthsShort: [
|
|
1212
|
+
"jan.",
|
|
1213
|
+
"feb.",
|
|
1214
|
+
"mar.",
|
|
1215
|
+
"apr.",
|
|
1216
|
+
"maj",
|
|
1217
|
+
"juni",
|
|
1218
|
+
"juli",
|
|
1219
|
+
"aug.",
|
|
1220
|
+
"sep.",
|
|
1221
|
+
"okt.",
|
|
1222
|
+
"nov.",
|
|
1223
|
+
"dec."
|
|
1224
|
+
],
|
|
1225
|
+
weekdays: [
|
|
1226
|
+
"söndag",
|
|
1227
|
+
"måndag",
|
|
1228
|
+
"tisdag",
|
|
1229
|
+
"onsdag",
|
|
1230
|
+
"torsdag",
|
|
1231
|
+
"fredag",
|
|
1232
|
+
"lördag"
|
|
1233
|
+
],
|
|
1234
|
+
weekdaysShort: [
|
|
1235
|
+
"sön",
|
|
1236
|
+
"mån",
|
|
1237
|
+
"tis",
|
|
1238
|
+
"ons",
|
|
1239
|
+
"tor",
|
|
1240
|
+
"fre",
|
|
1241
|
+
"lör"
|
|
1242
|
+
],
|
|
1243
|
+
weekdaysMin: [
|
|
1244
|
+
"sö",
|
|
1245
|
+
"må",
|
|
1246
|
+
"ti",
|
|
1247
|
+
"on",
|
|
1248
|
+
"to",
|
|
1249
|
+
"fr",
|
|
1250
|
+
"lö"
|
|
1251
|
+
],
|
|
1252
|
+
meridiem: {
|
|
1253
|
+
am: "AM",
|
|
1254
|
+
pm: "PM"
|
|
1255
|
+
},
|
|
1256
|
+
formats: {
|
|
1257
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
1258
|
+
date: "YYYY-MM-DD",
|
|
1259
|
+
time: "HH:mm:ss",
|
|
1260
|
+
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
1261
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
1262
|
+
}
|
|
1263
|
+
},
|
|
1264
|
+
nb: {
|
|
1265
|
+
name: "nb",
|
|
1266
|
+
months: [
|
|
1267
|
+
"januar",
|
|
1268
|
+
"februar",
|
|
1269
|
+
"mars",
|
|
1270
|
+
"april",
|
|
1271
|
+
"mai",
|
|
1272
|
+
"juni",
|
|
1273
|
+
"juli",
|
|
1274
|
+
"august",
|
|
1275
|
+
"september",
|
|
1276
|
+
"oktober",
|
|
1277
|
+
"november",
|
|
1278
|
+
"desember"
|
|
1279
|
+
],
|
|
1280
|
+
monthsShort: [
|
|
1281
|
+
"jan.",
|
|
1282
|
+
"feb.",
|
|
1283
|
+
"mar.",
|
|
1284
|
+
"apr.",
|
|
1285
|
+
"mai",
|
|
1286
|
+
"juni",
|
|
1287
|
+
"juli",
|
|
1288
|
+
"aug.",
|
|
1289
|
+
"sep.",
|
|
1290
|
+
"okt.",
|
|
1291
|
+
"nov.",
|
|
1292
|
+
"des."
|
|
1293
|
+
],
|
|
1294
|
+
weekdays: [
|
|
1295
|
+
"søndag",
|
|
1296
|
+
"mandag",
|
|
1297
|
+
"tirsdag",
|
|
1298
|
+
"onsdag",
|
|
1299
|
+
"torsdag",
|
|
1300
|
+
"fredag",
|
|
1301
|
+
"lørdag"
|
|
1302
|
+
],
|
|
1303
|
+
weekdaysShort: [
|
|
1304
|
+
"søn",
|
|
1305
|
+
"man",
|
|
1306
|
+
"tir",
|
|
1307
|
+
"ons",
|
|
1308
|
+
"tor",
|
|
1309
|
+
"fre",
|
|
1310
|
+
"lør"
|
|
1311
|
+
],
|
|
1312
|
+
weekdaysMin: [
|
|
1313
|
+
"sø",
|
|
1314
|
+
"ma",
|
|
1315
|
+
"ti",
|
|
1316
|
+
"on",
|
|
1317
|
+
"to",
|
|
1318
|
+
"fr",
|
|
1319
|
+
"lø"
|
|
1320
|
+
],
|
|
1321
|
+
meridiem: {
|
|
1322
|
+
am: "AM",
|
|
1323
|
+
pm: "PM"
|
|
1324
|
+
},
|
|
1325
|
+
formats: {
|
|
1326
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
1327
|
+
date: "DD.MM.YYYY",
|
|
1328
|
+
time: "HH:mm:ss",
|
|
1329
|
+
datetime: "DD.MM.YYYY HH:mm:ss",
|
|
1330
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
1331
|
+
}
|
|
1332
|
+
},
|
|
1333
|
+
da: {
|
|
1334
|
+
name: "da",
|
|
1335
|
+
months: [
|
|
1336
|
+
"januar",
|
|
1337
|
+
"februar",
|
|
1338
|
+
"marts",
|
|
1339
|
+
"april",
|
|
1340
|
+
"maj",
|
|
1341
|
+
"juni",
|
|
1342
|
+
"juli",
|
|
1343
|
+
"august",
|
|
1344
|
+
"september",
|
|
1345
|
+
"oktober",
|
|
1346
|
+
"november",
|
|
1347
|
+
"december"
|
|
1348
|
+
],
|
|
1349
|
+
monthsShort: [
|
|
1350
|
+
"jan",
|
|
1351
|
+
"feb",
|
|
1352
|
+
"mar",
|
|
1353
|
+
"apr",
|
|
1354
|
+
"maj",
|
|
1355
|
+
"jun",
|
|
1356
|
+
"jul",
|
|
1357
|
+
"aug",
|
|
1358
|
+
"sep",
|
|
1359
|
+
"okt",
|
|
1360
|
+
"nov",
|
|
1361
|
+
"dec"
|
|
1362
|
+
],
|
|
1363
|
+
weekdays: [
|
|
1364
|
+
"søndag",
|
|
1365
|
+
"mandag",
|
|
1366
|
+
"tirsdag",
|
|
1367
|
+
"onsdag",
|
|
1368
|
+
"torsdag",
|
|
1369
|
+
"fredag",
|
|
1370
|
+
"lørdag"
|
|
1371
|
+
],
|
|
1372
|
+
weekdaysShort: [
|
|
1373
|
+
"søn",
|
|
1374
|
+
"man",
|
|
1375
|
+
"tir",
|
|
1376
|
+
"ons",
|
|
1377
|
+
"tor",
|
|
1378
|
+
"fre",
|
|
1379
|
+
"lør"
|
|
1380
|
+
],
|
|
1381
|
+
weekdaysMin: [
|
|
1382
|
+
"sø",
|
|
1383
|
+
"ma",
|
|
1384
|
+
"ti",
|
|
1385
|
+
"on",
|
|
1386
|
+
"to",
|
|
1387
|
+
"fr",
|
|
1388
|
+
"lø"
|
|
1389
|
+
],
|
|
1390
|
+
meridiem: {
|
|
1391
|
+
am: "AM",
|
|
1392
|
+
pm: "PM"
|
|
1393
|
+
},
|
|
1394
|
+
formats: {
|
|
1395
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
1396
|
+
date: "DD.MM.YYYY",
|
|
1397
|
+
time: "HH:mm:ss",
|
|
1398
|
+
datetime: "DD.MM.YYYY HH:mm:ss",
|
|
1399
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
fi: {
|
|
1403
|
+
name: "fi",
|
|
1404
|
+
months: [
|
|
1405
|
+
"tammikuuta",
|
|
1406
|
+
"helmikuuta",
|
|
1407
|
+
"maaliskuuta",
|
|
1408
|
+
"huhtikuuta",
|
|
1409
|
+
"toukokuuta",
|
|
1410
|
+
"kesäkuuta",
|
|
1411
|
+
"heinäkuuta",
|
|
1412
|
+
"elokuuta",
|
|
1413
|
+
"syyskuuta",
|
|
1414
|
+
"lokakuuta",
|
|
1415
|
+
"marraskuuta",
|
|
1416
|
+
"joulukuuta"
|
|
1417
|
+
],
|
|
1418
|
+
monthsShort: [
|
|
1419
|
+
"tam.",
|
|
1420
|
+
"hel.",
|
|
1421
|
+
"maa.",
|
|
1422
|
+
"huh.",
|
|
1423
|
+
"tou.",
|
|
1424
|
+
"kes.",
|
|
1425
|
+
"hei.",
|
|
1426
|
+
"elo.",
|
|
1427
|
+
"syy.",
|
|
1428
|
+
"lok.",
|
|
1429
|
+
"mar.",
|
|
1430
|
+
"jou."
|
|
1431
|
+
],
|
|
1432
|
+
weekdays: [
|
|
1433
|
+
"sunnuntai",
|
|
1434
|
+
"maanantai",
|
|
1435
|
+
"tiistai",
|
|
1436
|
+
"keskiviikko",
|
|
1437
|
+
"torstai",
|
|
1438
|
+
"perjantai",
|
|
1439
|
+
"lauantai"
|
|
1440
|
+
],
|
|
1441
|
+
weekdaysShort: [
|
|
1442
|
+
"su.",
|
|
1443
|
+
"ma.",
|
|
1444
|
+
"ti.",
|
|
1445
|
+
"ke.",
|
|
1446
|
+
"to.",
|
|
1447
|
+
"pe.",
|
|
1448
|
+
"la."
|
|
1449
|
+
],
|
|
1450
|
+
weekdaysMin: [
|
|
1451
|
+
"su",
|
|
1452
|
+
"ma",
|
|
1453
|
+
"ti",
|
|
1454
|
+
"ke",
|
|
1455
|
+
"to",
|
|
1456
|
+
"pe",
|
|
1457
|
+
"la"
|
|
1458
|
+
],
|
|
1459
|
+
meridiem: {
|
|
1460
|
+
am: "AM",
|
|
1461
|
+
pm: "PM"
|
|
1462
|
+
},
|
|
1463
|
+
formats: {
|
|
1464
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
1465
|
+
date: "DD.MM.YYYY",
|
|
1466
|
+
time: "HH:mm:ss",
|
|
1467
|
+
datetime: "DD.MM.YYYY HH:mm:ss",
|
|
1468
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
}, b = {
|
|
1472
|
+
name: "ja",
|
|
1473
|
+
months: [
|
|
1474
|
+
"1月",
|
|
1475
|
+
"2月",
|
|
1476
|
+
"3月",
|
|
1477
|
+
"4月",
|
|
1478
|
+
"5月",
|
|
1479
|
+
"6月",
|
|
1480
|
+
"7月",
|
|
1481
|
+
"8月",
|
|
1482
|
+
"9月",
|
|
1483
|
+
"10月",
|
|
1484
|
+
"11月",
|
|
1485
|
+
"12月"
|
|
1486
|
+
],
|
|
1487
|
+
monthsShort: [
|
|
1488
|
+
"1月",
|
|
1489
|
+
"2月",
|
|
1490
|
+
"3月",
|
|
1491
|
+
"4月",
|
|
1492
|
+
"5月",
|
|
1493
|
+
"6月",
|
|
1494
|
+
"7月",
|
|
1495
|
+
"8月",
|
|
1496
|
+
"9月",
|
|
1497
|
+
"10月",
|
|
1498
|
+
"11月",
|
|
1499
|
+
"12月"
|
|
1500
|
+
],
|
|
1501
|
+
weekdays: [
|
|
1502
|
+
"日曜日",
|
|
1503
|
+
"月曜日",
|
|
1504
|
+
"火曜日",
|
|
1505
|
+
"水曜日",
|
|
1506
|
+
"木曜日",
|
|
1507
|
+
"金曜日",
|
|
1508
|
+
"土曜日"
|
|
1509
|
+
],
|
|
1510
|
+
weekdaysShort: [
|
|
1511
|
+
"日",
|
|
1512
|
+
"月",
|
|
1513
|
+
"火",
|
|
1514
|
+
"水",
|
|
1515
|
+
"木",
|
|
1516
|
+
"金",
|
|
1517
|
+
"土"
|
|
1518
|
+
],
|
|
1519
|
+
weekdaysMin: [
|
|
1520
|
+
"日",
|
|
1521
|
+
"月",
|
|
1522
|
+
"火",
|
|
1523
|
+
"水",
|
|
1524
|
+
"木",
|
|
1525
|
+
"金",
|
|
1526
|
+
"土"
|
|
1527
|
+
],
|
|
1528
|
+
meridiem: {
|
|
1529
|
+
am: "午前",
|
|
1530
|
+
pm: "午後"
|
|
1531
|
+
},
|
|
1532
|
+
formats: {
|
|
1533
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
1534
|
+
date: "YYYY年MM月DD日",
|
|
1535
|
+
time: "HH:mm:ss",
|
|
1536
|
+
datetime: "YYYY年MM月DD日 HH:mm:ss",
|
|
1537
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
1538
|
+
}
|
|
1539
|
+
}, x = {
|
|
1540
|
+
name: "zh-cn",
|
|
1541
|
+
months: [
|
|
1542
|
+
"1月",
|
|
1543
|
+
"2月",
|
|
1544
|
+
"3月",
|
|
1545
|
+
"4月",
|
|
1546
|
+
"5月",
|
|
1547
|
+
"6月",
|
|
1548
|
+
"7月",
|
|
1549
|
+
"8月",
|
|
1550
|
+
"9月",
|
|
1551
|
+
"10月",
|
|
1552
|
+
"11月",
|
|
1553
|
+
"12月"
|
|
1554
|
+
],
|
|
1555
|
+
monthsShort: [
|
|
1556
|
+
"1月",
|
|
1557
|
+
"2月",
|
|
1558
|
+
"3月",
|
|
1559
|
+
"4月",
|
|
1560
|
+
"5月",
|
|
1561
|
+
"6月",
|
|
1562
|
+
"7月",
|
|
1563
|
+
"8月",
|
|
1564
|
+
"9月",
|
|
1565
|
+
"10月",
|
|
1566
|
+
"11月",
|
|
1567
|
+
"12月"
|
|
1568
|
+
],
|
|
1569
|
+
weekdays: [
|
|
1570
|
+
"星期日",
|
|
1571
|
+
"星期一",
|
|
1572
|
+
"星期二",
|
|
1573
|
+
"星期三",
|
|
1574
|
+
"星期四",
|
|
1575
|
+
"星期五",
|
|
1576
|
+
"星期六"
|
|
1577
|
+
],
|
|
1578
|
+
weekdaysShort: [
|
|
1579
|
+
"周日",
|
|
1580
|
+
"周一",
|
|
1581
|
+
"周二",
|
|
1582
|
+
"周三",
|
|
1583
|
+
"周四",
|
|
1584
|
+
"周五",
|
|
1585
|
+
"周六"
|
|
1586
|
+
],
|
|
1587
|
+
weekdaysMin: [
|
|
1588
|
+
"日",
|
|
1589
|
+
"一",
|
|
1590
|
+
"二",
|
|
1591
|
+
"三",
|
|
1592
|
+
"四",
|
|
1593
|
+
"五",
|
|
1594
|
+
"六"
|
|
1595
|
+
],
|
|
1596
|
+
meridiem: {
|
|
1597
|
+
am: "上午",
|
|
1598
|
+
pm: "下午"
|
|
1599
|
+
},
|
|
1600
|
+
formats: {
|
|
1601
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
1602
|
+
date: "YYYY-MM-DD",
|
|
1603
|
+
time: "HH:mm:ss",
|
|
1604
|
+
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
1605
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
1606
|
+
}
|
|
1607
|
+
}, S = {
|
|
1608
|
+
name: "zh-tw",
|
|
1609
|
+
months: [
|
|
1610
|
+
"1月",
|
|
1611
|
+
"2月",
|
|
1612
|
+
"3月",
|
|
1613
|
+
"4月",
|
|
1614
|
+
"5月",
|
|
1615
|
+
"6月",
|
|
1616
|
+
"7月",
|
|
1617
|
+
"8月",
|
|
1618
|
+
"9月",
|
|
1619
|
+
"10月",
|
|
1620
|
+
"11月",
|
|
1621
|
+
"12月"
|
|
1622
|
+
],
|
|
1623
|
+
monthsShort: [
|
|
1624
|
+
"1月",
|
|
1625
|
+
"2月",
|
|
1626
|
+
"3月",
|
|
1627
|
+
"4月",
|
|
1628
|
+
"5月",
|
|
1629
|
+
"6月",
|
|
1630
|
+
"7月",
|
|
1631
|
+
"8月",
|
|
1632
|
+
"9月",
|
|
1633
|
+
"10月",
|
|
1634
|
+
"11月",
|
|
1635
|
+
"12月"
|
|
1636
|
+
],
|
|
1637
|
+
weekdays: [
|
|
1638
|
+
"星期日",
|
|
1639
|
+
"星期一",
|
|
1640
|
+
"星期二",
|
|
1641
|
+
"星期三",
|
|
1642
|
+
"星期四",
|
|
1643
|
+
"星期五",
|
|
1644
|
+
"星期六"
|
|
1645
|
+
],
|
|
1646
|
+
weekdaysShort: [
|
|
1647
|
+
"週日",
|
|
1648
|
+
"週一",
|
|
1649
|
+
"週二",
|
|
1650
|
+
"週三",
|
|
1651
|
+
"週四",
|
|
1652
|
+
"週五",
|
|
1653
|
+
"週六"
|
|
1654
|
+
],
|
|
1655
|
+
weekdaysMin: [
|
|
1656
|
+
"日",
|
|
1657
|
+
"一",
|
|
1658
|
+
"二",
|
|
1659
|
+
"三",
|
|
1660
|
+
"四",
|
|
1661
|
+
"五",
|
|
1662
|
+
"六"
|
|
1663
|
+
],
|
|
1664
|
+
meridiem: {
|
|
1665
|
+
am: "上午",
|
|
1666
|
+
pm: "下午"
|
|
1667
|
+
},
|
|
1668
|
+
formats: {
|
|
1669
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
1670
|
+
date: "YYYY-MM-DD",
|
|
1671
|
+
time: "HH:mm:ss",
|
|
1672
|
+
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
1673
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
1674
|
+
}
|
|
1675
|
+
}, C = {
|
|
1676
|
+
name: "ko",
|
|
1677
|
+
months: [
|
|
1678
|
+
"1월",
|
|
1679
|
+
"2월",
|
|
1680
|
+
"3월",
|
|
1681
|
+
"4월",
|
|
1682
|
+
"5월",
|
|
1683
|
+
"6월",
|
|
1684
|
+
"7월",
|
|
1685
|
+
"8월",
|
|
1686
|
+
"9월",
|
|
1687
|
+
"10월",
|
|
1688
|
+
"11월",
|
|
1689
|
+
"12월"
|
|
1690
|
+
],
|
|
1691
|
+
monthsShort: [
|
|
1692
|
+
"1월",
|
|
1693
|
+
"2월",
|
|
1694
|
+
"3월",
|
|
1695
|
+
"4월",
|
|
1696
|
+
"5월",
|
|
1697
|
+
"6월",
|
|
1698
|
+
"7월",
|
|
1699
|
+
"8월",
|
|
1700
|
+
"9월",
|
|
1701
|
+
"10월",
|
|
1702
|
+
"11월",
|
|
1703
|
+
"12월"
|
|
1704
|
+
],
|
|
1705
|
+
weekdays: [
|
|
1706
|
+
"일요일",
|
|
1707
|
+
"월요일",
|
|
1708
|
+
"화요일",
|
|
1709
|
+
"수요일",
|
|
1710
|
+
"목요일",
|
|
1711
|
+
"금요일",
|
|
1712
|
+
"토요일"
|
|
1713
|
+
],
|
|
1714
|
+
weekdaysShort: [
|
|
1715
|
+
"일",
|
|
1716
|
+
"월",
|
|
1717
|
+
"화",
|
|
1718
|
+
"수",
|
|
1719
|
+
"목",
|
|
1720
|
+
"금",
|
|
1721
|
+
"토"
|
|
1722
|
+
],
|
|
1723
|
+
weekdaysMin: [
|
|
1724
|
+
"일",
|
|
1725
|
+
"월",
|
|
1726
|
+
"화",
|
|
1727
|
+
"수",
|
|
1728
|
+
"목",
|
|
1729
|
+
"금",
|
|
1730
|
+
"토"
|
|
1731
|
+
],
|
|
1732
|
+
meridiem: {
|
|
1733
|
+
am: "오전",
|
|
1734
|
+
pm: "오후"
|
|
1735
|
+
},
|
|
1736
|
+
formats: {
|
|
1737
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
1738
|
+
date: "YYYY-MM-DD",
|
|
1739
|
+
time: "HH:mm:ss",
|
|
1740
|
+
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
1741
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
1742
|
+
}
|
|
1743
|
+
}, w = {
|
|
1744
|
+
name: "th",
|
|
1745
|
+
months: [
|
|
1746
|
+
"มกราคม",
|
|
1747
|
+
"กุมภาพันธ์",
|
|
1748
|
+
"มีนาคม",
|
|
1749
|
+
"เมษายน",
|
|
1750
|
+
"พฤษภาคม",
|
|
1751
|
+
"มิถุนายน",
|
|
1752
|
+
"กรกฎาคม",
|
|
1753
|
+
"สิงหาคม",
|
|
1754
|
+
"กันยายน",
|
|
1755
|
+
"ตุลาคม",
|
|
1756
|
+
"พฤศจิกายน",
|
|
1757
|
+
"ธันวาคม"
|
|
1758
|
+
],
|
|
1759
|
+
monthsShort: [
|
|
1760
|
+
"ม.ค.",
|
|
1761
|
+
"ก.พ.",
|
|
1762
|
+
"มี.ค.",
|
|
1763
|
+
"เม.ย.",
|
|
1764
|
+
"พ.ค.",
|
|
1765
|
+
"มิ.ย.",
|
|
1766
|
+
"ก.ค.",
|
|
1767
|
+
"ส.ค.",
|
|
1768
|
+
"ก.ย.",
|
|
1769
|
+
"ต.ค.",
|
|
1770
|
+
"พ.ย.",
|
|
1771
|
+
"ธ.ค."
|
|
1772
|
+
],
|
|
1773
|
+
weekdays: [
|
|
1774
|
+
"อาทิตย์",
|
|
1775
|
+
"จันทร์",
|
|
1776
|
+
"อังคาร",
|
|
1777
|
+
"พุธ",
|
|
1778
|
+
"พฤหัสบดี",
|
|
1779
|
+
"ศุกร์",
|
|
1780
|
+
"เสาร์"
|
|
1781
|
+
],
|
|
1782
|
+
weekdaysShort: [
|
|
1783
|
+
"อา.",
|
|
1784
|
+
"จ.",
|
|
1785
|
+
"อ.",
|
|
1786
|
+
"พ.",
|
|
1787
|
+
"พฤ.",
|
|
1788
|
+
"ศ.",
|
|
1789
|
+
"ส."
|
|
1790
|
+
],
|
|
1791
|
+
weekdaysMin: [
|
|
1792
|
+
"อา",
|
|
1793
|
+
"จ",
|
|
1794
|
+
"อ",
|
|
1795
|
+
"พ",
|
|
1796
|
+
"พฤ",
|
|
1797
|
+
"ศ",
|
|
1798
|
+
"ส"
|
|
1799
|
+
],
|
|
1800
|
+
meridiem: {
|
|
1801
|
+
am: "AM",
|
|
1802
|
+
pm: "PM"
|
|
1803
|
+
},
|
|
1804
|
+
formats: {
|
|
1805
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
1806
|
+
date: "DD/MM/YYYY",
|
|
1807
|
+
time: "HH:mm:ss",
|
|
1808
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
1809
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
1810
|
+
}
|
|
1811
|
+
}, ee = {
|
|
1812
|
+
name: "vi",
|
|
1813
|
+
months: [
|
|
1814
|
+
"tháng 1",
|
|
1815
|
+
"tháng 2",
|
|
1816
|
+
"tháng 3",
|
|
1817
|
+
"tháng 4",
|
|
1818
|
+
"tháng 5",
|
|
1819
|
+
"tháng 6",
|
|
1820
|
+
"tháng 7",
|
|
1821
|
+
"tháng 8",
|
|
1822
|
+
"tháng 9",
|
|
1823
|
+
"tháng 10",
|
|
1824
|
+
"tháng 11",
|
|
1825
|
+
"tháng 12"
|
|
1826
|
+
],
|
|
1827
|
+
monthsShort: [
|
|
1828
|
+
"Th01",
|
|
1829
|
+
"Th02",
|
|
1830
|
+
"Th03",
|
|
1831
|
+
"Th04",
|
|
1832
|
+
"Th05",
|
|
1833
|
+
"Th06",
|
|
1834
|
+
"Th07",
|
|
1835
|
+
"Th08",
|
|
1836
|
+
"Th09",
|
|
1837
|
+
"Th10",
|
|
1838
|
+
"Th11",
|
|
1839
|
+
"Th12"
|
|
1840
|
+
],
|
|
1841
|
+
weekdays: [
|
|
1842
|
+
"Chủ nhật",
|
|
1843
|
+
"Thứ hai",
|
|
1844
|
+
"Thứ ba",
|
|
1845
|
+
"Thứ tư",
|
|
1846
|
+
"Thứ năm",
|
|
1847
|
+
"Thứ sáu",
|
|
1848
|
+
"Thứ bảy"
|
|
1849
|
+
],
|
|
1850
|
+
weekdaysShort: [
|
|
1851
|
+
"CN",
|
|
1852
|
+
"Hai",
|
|
1853
|
+
"Ba",
|
|
1854
|
+
"Tư",
|
|
1855
|
+
"Năm",
|
|
1856
|
+
"Sáu",
|
|
1857
|
+
"Bảy"
|
|
1858
|
+
],
|
|
1859
|
+
weekdaysMin: [
|
|
1860
|
+
"CN",
|
|
1861
|
+
"T2",
|
|
1862
|
+
"T3",
|
|
1863
|
+
"T4",
|
|
1864
|
+
"T5",
|
|
1865
|
+
"T6",
|
|
1866
|
+
"T7"
|
|
1867
|
+
],
|
|
1868
|
+
meridiem: {
|
|
1869
|
+
am: "AM",
|
|
1870
|
+
pm: "PM"
|
|
1871
|
+
},
|
|
1872
|
+
formats: {
|
|
1873
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
1874
|
+
date: "DD/MM/YYYY",
|
|
1875
|
+
time: "HH:mm:ss",
|
|
1876
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
1877
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
1878
|
+
}
|
|
1879
|
+
}, T = {
|
|
1880
|
+
name: "id",
|
|
1881
|
+
months: [
|
|
1882
|
+
"Januari",
|
|
1883
|
+
"Februari",
|
|
1884
|
+
"Maret",
|
|
1885
|
+
"April",
|
|
1886
|
+
"Mei",
|
|
1887
|
+
"Juni",
|
|
1888
|
+
"Juli",
|
|
1889
|
+
"Agustus",
|
|
1890
|
+
"September",
|
|
1891
|
+
"Oktober",
|
|
1892
|
+
"November",
|
|
1893
|
+
"Desember"
|
|
1894
|
+
],
|
|
1895
|
+
monthsShort: [
|
|
1896
|
+
"Jan",
|
|
1897
|
+
"Feb",
|
|
1898
|
+
"Mar",
|
|
1899
|
+
"Apr",
|
|
1900
|
+
"Mei",
|
|
1901
|
+
"Jun",
|
|
1902
|
+
"Jul",
|
|
1903
|
+
"Agu",
|
|
1904
|
+
"Sep",
|
|
1905
|
+
"Okt",
|
|
1906
|
+
"Nov",
|
|
1907
|
+
"Des"
|
|
1908
|
+
],
|
|
1909
|
+
weekdays: [
|
|
1910
|
+
"Minggu",
|
|
1911
|
+
"Senin",
|
|
1912
|
+
"Selasa",
|
|
1913
|
+
"Rabu",
|
|
1914
|
+
"Kamis",
|
|
1915
|
+
"Jumat",
|
|
1916
|
+
"Sabtu"
|
|
1917
|
+
],
|
|
1918
|
+
weekdaysShort: [
|
|
1919
|
+
"Min",
|
|
1920
|
+
"Sen",
|
|
1921
|
+
"Sel",
|
|
1922
|
+
"Rab",
|
|
1923
|
+
"Kam",
|
|
1924
|
+
"Jum",
|
|
1925
|
+
"Sab"
|
|
1926
|
+
],
|
|
1927
|
+
weekdaysMin: [
|
|
1928
|
+
"Mg",
|
|
1929
|
+
"Sn",
|
|
1930
|
+
"Sl",
|
|
1931
|
+
"Rb",
|
|
1932
|
+
"Km",
|
|
1933
|
+
"Jm",
|
|
1934
|
+
"Sb"
|
|
1935
|
+
],
|
|
1936
|
+
meridiem: {
|
|
1937
|
+
am: "AM",
|
|
1938
|
+
pm: "PM"
|
|
1939
|
+
},
|
|
1940
|
+
formats: {
|
|
1941
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
1942
|
+
date: "DD/MM/YYYY",
|
|
1943
|
+
time: "HH:mm:ss",
|
|
1944
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
1945
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
1946
|
+
}
|
|
1947
|
+
}, E = {
|
|
1948
|
+
ja: b,
|
|
1949
|
+
"zh-cn": x,
|
|
1950
|
+
"zh-tw": S,
|
|
1951
|
+
ko: C,
|
|
1952
|
+
th: w,
|
|
1953
|
+
vi: ee,
|
|
1954
|
+
id: T
|
|
1955
|
+
}, D = {
|
|
1956
|
+
de: {
|
|
1957
|
+
name: "de",
|
|
1958
|
+
months: [
|
|
1959
|
+
"Januar",
|
|
1960
|
+
"Februar",
|
|
1961
|
+
"März",
|
|
1962
|
+
"April",
|
|
1963
|
+
"Mai",
|
|
1964
|
+
"Juni",
|
|
1965
|
+
"Juli",
|
|
1966
|
+
"August",
|
|
1967
|
+
"September",
|
|
1968
|
+
"Oktober",
|
|
1969
|
+
"November",
|
|
1970
|
+
"Dezember"
|
|
1971
|
+
],
|
|
1972
|
+
monthsShort: [
|
|
1973
|
+
"Jan.",
|
|
1974
|
+
"Feb.",
|
|
1975
|
+
"Mär.",
|
|
1976
|
+
"Apr.",
|
|
1977
|
+
"Mai",
|
|
1978
|
+
"Jun.",
|
|
1979
|
+
"Jul.",
|
|
1980
|
+
"Aug.",
|
|
1981
|
+
"Sep.",
|
|
1982
|
+
"Okt.",
|
|
1983
|
+
"Nov.",
|
|
1984
|
+
"Dez."
|
|
1985
|
+
],
|
|
1986
|
+
weekdays: [
|
|
1987
|
+
"Sonntag",
|
|
1988
|
+
"Montag",
|
|
1989
|
+
"Dienstag",
|
|
1990
|
+
"Mittwoch",
|
|
1991
|
+
"Donnerstag",
|
|
1992
|
+
"Freitag",
|
|
1993
|
+
"Samstag"
|
|
1994
|
+
],
|
|
1995
|
+
weekdaysShort: [
|
|
1996
|
+
"So.",
|
|
1997
|
+
"Mo.",
|
|
1998
|
+
"Di.",
|
|
1999
|
+
"Mi.",
|
|
2000
|
+
"Do.",
|
|
2001
|
+
"Fr.",
|
|
2002
|
+
"Sa."
|
|
2003
|
+
],
|
|
2004
|
+
weekdaysMin: [
|
|
2005
|
+
"So",
|
|
2006
|
+
"Mo",
|
|
2007
|
+
"Di",
|
|
2008
|
+
"Mi",
|
|
2009
|
+
"Do",
|
|
2010
|
+
"Fr",
|
|
2011
|
+
"Sa"
|
|
2012
|
+
],
|
|
2013
|
+
meridiem: {
|
|
2014
|
+
am: "AM",
|
|
2015
|
+
pm: "PM"
|
|
2016
|
+
},
|
|
2017
|
+
formats: {
|
|
2018
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
2019
|
+
date: "DD.MM.YYYY",
|
|
2020
|
+
time: "HH:mm:ss",
|
|
2021
|
+
datetime: "DD.MM.YYYY HH:mm:ss",
|
|
2022
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
2023
|
+
}
|
|
2024
|
+
},
|
|
2025
|
+
nl: {
|
|
2026
|
+
name: "nl",
|
|
2027
|
+
months: [
|
|
2028
|
+
"januari",
|
|
2029
|
+
"februari",
|
|
2030
|
+
"maart",
|
|
2031
|
+
"april",
|
|
2032
|
+
"mei",
|
|
2033
|
+
"juni",
|
|
2034
|
+
"juli",
|
|
2035
|
+
"augustus",
|
|
2036
|
+
"september",
|
|
2037
|
+
"oktober",
|
|
2038
|
+
"november",
|
|
2039
|
+
"december"
|
|
2040
|
+
],
|
|
2041
|
+
monthsShort: [
|
|
2042
|
+
"jan.",
|
|
2043
|
+
"feb.",
|
|
2044
|
+
"mrt.",
|
|
2045
|
+
"apr.",
|
|
2046
|
+
"mei",
|
|
2047
|
+
"jun.",
|
|
2048
|
+
"jul.",
|
|
2049
|
+
"aug.",
|
|
2050
|
+
"sep.",
|
|
2051
|
+
"okt.",
|
|
2052
|
+
"nov.",
|
|
2053
|
+
"dec."
|
|
2054
|
+
],
|
|
2055
|
+
weekdays: [
|
|
2056
|
+
"zondag",
|
|
2057
|
+
"maandag",
|
|
2058
|
+
"dinsdag",
|
|
2059
|
+
"woensdag",
|
|
2060
|
+
"donderdag",
|
|
2061
|
+
"vrijdag",
|
|
2062
|
+
"zaterdag"
|
|
2063
|
+
],
|
|
2064
|
+
weekdaysShort: [
|
|
2065
|
+
"zo.",
|
|
2066
|
+
"ma.",
|
|
2067
|
+
"di.",
|
|
2068
|
+
"wo.",
|
|
2069
|
+
"do.",
|
|
2070
|
+
"vr.",
|
|
2071
|
+
"za."
|
|
2072
|
+
],
|
|
2073
|
+
weekdaysMin: [
|
|
2074
|
+
"zo",
|
|
2075
|
+
"ma",
|
|
2076
|
+
"di",
|
|
2077
|
+
"wo",
|
|
2078
|
+
"do",
|
|
2079
|
+
"vr",
|
|
2080
|
+
"za"
|
|
2081
|
+
],
|
|
2082
|
+
meridiem: {
|
|
2083
|
+
am: "AM",
|
|
2084
|
+
pm: "PM"
|
|
2085
|
+
},
|
|
2086
|
+
formats: {
|
|
2087
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
2088
|
+
date: "DD-MM-YYYY",
|
|
2089
|
+
time: "HH:mm:ss",
|
|
2090
|
+
datetime: "DD-MM-YYYY HH:mm:ss",
|
|
2091
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
2092
|
+
}
|
|
2093
|
+
},
|
|
2094
|
+
el: {
|
|
2095
|
+
name: "el",
|
|
2096
|
+
months: [
|
|
2097
|
+
"Ιανουάριος",
|
|
2098
|
+
"Φεβρουάριος",
|
|
2099
|
+
"Μάρτιος",
|
|
2100
|
+
"Απρίλιος",
|
|
2101
|
+
"Μάιος",
|
|
2102
|
+
"Ιούνιος",
|
|
2103
|
+
"Ιούλιος",
|
|
2104
|
+
"Αύγουστος",
|
|
2105
|
+
"Σεπτέμβριος",
|
|
2106
|
+
"Οκτώβριος",
|
|
2107
|
+
"Νοέμβριος",
|
|
2108
|
+
"Δεκέμβριος"
|
|
2109
|
+
],
|
|
2110
|
+
monthsShort: [
|
|
2111
|
+
"Ιαν",
|
|
2112
|
+
"Φεβ",
|
|
2113
|
+
"Μάρ",
|
|
2114
|
+
"Απρ",
|
|
2115
|
+
"Μάι",
|
|
2116
|
+
"Ιού",
|
|
2117
|
+
"Ιού",
|
|
2118
|
+
"Αύγ",
|
|
2119
|
+
"Σεπ",
|
|
2120
|
+
"Οκτ",
|
|
2121
|
+
"Νοέ",
|
|
2122
|
+
"Δεκ"
|
|
2123
|
+
],
|
|
2124
|
+
weekdays: [
|
|
2125
|
+
"Κυριακή",
|
|
2126
|
+
"Δευτέρα",
|
|
2127
|
+
"Τρίτη",
|
|
2128
|
+
"Τετάρτη",
|
|
2129
|
+
"Πέμπτη",
|
|
2130
|
+
"Παρασκευή",
|
|
2131
|
+
"Σάββατο"
|
|
2132
|
+
],
|
|
2133
|
+
weekdaysShort: [
|
|
2134
|
+
"Κυρ",
|
|
2135
|
+
"Δευ",
|
|
2136
|
+
"Τρί",
|
|
2137
|
+
"Τετ",
|
|
2138
|
+
"Πέμ",
|
|
2139
|
+
"Παρ",
|
|
2140
|
+
"Σάβ"
|
|
2141
|
+
],
|
|
2142
|
+
weekdaysMin: [
|
|
2143
|
+
"Κ",
|
|
2144
|
+
"Δ",
|
|
2145
|
+
"Τ",
|
|
2146
|
+
"Τ",
|
|
2147
|
+
"Π",
|
|
2148
|
+
"Π",
|
|
2149
|
+
"Σ"
|
|
2150
|
+
],
|
|
2151
|
+
meridiem: {
|
|
2152
|
+
am: "AM",
|
|
2153
|
+
pm: "PM"
|
|
2154
|
+
},
|
|
2155
|
+
formats: {
|
|
2156
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
2157
|
+
date: "DD/MM/YYYY",
|
|
2158
|
+
time: "HH:mm:ss",
|
|
2159
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
2160
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
2161
|
+
}
|
|
2162
|
+
},
|
|
2163
|
+
hu: {
|
|
2164
|
+
name: "hu",
|
|
2165
|
+
months: [
|
|
2166
|
+
"január",
|
|
2167
|
+
"február",
|
|
2168
|
+
"március",
|
|
2169
|
+
"április",
|
|
2170
|
+
"május",
|
|
2171
|
+
"június",
|
|
2172
|
+
"július",
|
|
2173
|
+
"augusztus",
|
|
2174
|
+
"szeptember",
|
|
2175
|
+
"október",
|
|
2176
|
+
"november",
|
|
2177
|
+
"december"
|
|
2178
|
+
],
|
|
2179
|
+
monthsShort: [
|
|
2180
|
+
"jan.",
|
|
2181
|
+
"feb.",
|
|
2182
|
+
"már.",
|
|
2183
|
+
"ápr.",
|
|
2184
|
+
"máj.",
|
|
2185
|
+
"jún.",
|
|
2186
|
+
"júl.",
|
|
2187
|
+
"aug.",
|
|
2188
|
+
"szep.",
|
|
2189
|
+
"okt.",
|
|
2190
|
+
"nov.",
|
|
2191
|
+
"dec."
|
|
2192
|
+
],
|
|
2193
|
+
weekdays: [
|
|
2194
|
+
"vasárnap",
|
|
2195
|
+
"hétfő",
|
|
2196
|
+
"kedd",
|
|
2197
|
+
"szerda",
|
|
2198
|
+
"csütörtök",
|
|
2199
|
+
"péntek",
|
|
2200
|
+
"szombat"
|
|
2201
|
+
],
|
|
2202
|
+
weekdaysShort: [
|
|
2203
|
+
"V",
|
|
2204
|
+
"H",
|
|
2205
|
+
"K",
|
|
2206
|
+
"Sz",
|
|
2207
|
+
"Cs",
|
|
2208
|
+
"P",
|
|
2209
|
+
"Szo"
|
|
2210
|
+
],
|
|
2211
|
+
weekdaysMin: [
|
|
2212
|
+
"V",
|
|
2213
|
+
"H",
|
|
2214
|
+
"K",
|
|
2215
|
+
"Sz",
|
|
2216
|
+
"Cs",
|
|
2217
|
+
"P",
|
|
2218
|
+
"Szo"
|
|
2219
|
+
],
|
|
2220
|
+
meridiem: {
|
|
2221
|
+
am: "AM",
|
|
2222
|
+
pm: "PM"
|
|
2223
|
+
},
|
|
2224
|
+
formats: {
|
|
2225
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
2226
|
+
date: "YYYY.MM.DD.",
|
|
2227
|
+
time: "HH:mm:ss",
|
|
2228
|
+
datetime: "YYYY.MM.DD. HH:mm:ss",
|
|
2229
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
2230
|
+
}
|
|
2231
|
+
},
|
|
2232
|
+
eu: {
|
|
2233
|
+
name: "eu",
|
|
2234
|
+
months: [
|
|
2235
|
+
"urtarrila",
|
|
2236
|
+
"otsaila",
|
|
2237
|
+
"martxoa",
|
|
2238
|
+
"apirila",
|
|
2239
|
+
"maiatza",
|
|
2240
|
+
"ekaina",
|
|
2241
|
+
"uztaila",
|
|
2242
|
+
"abuztua",
|
|
2243
|
+
"iraila",
|
|
2244
|
+
"urria",
|
|
2245
|
+
"azaroa",
|
|
2246
|
+
"abendua"
|
|
2247
|
+
],
|
|
2248
|
+
monthsShort: [
|
|
2249
|
+
"urt.",
|
|
2250
|
+
"ots.",
|
|
2251
|
+
"mar.",
|
|
2252
|
+
"api.",
|
|
2253
|
+
"mai.",
|
|
2254
|
+
"eka.",
|
|
2255
|
+
"uzt.",
|
|
2256
|
+
"abu.",
|
|
2257
|
+
"ira.",
|
|
2258
|
+
"urr.",
|
|
2259
|
+
"aza.",
|
|
2260
|
+
"abe."
|
|
2261
|
+
],
|
|
2262
|
+
weekdays: [
|
|
2263
|
+
"igandea",
|
|
2264
|
+
"astelehena",
|
|
2265
|
+
"asteartea",
|
|
2266
|
+
"asteazkena",
|
|
2267
|
+
"osteguna",
|
|
2268
|
+
"ostirala",
|
|
2269
|
+
"larunbata"
|
|
2270
|
+
],
|
|
2271
|
+
weekdaysShort: [
|
|
2272
|
+
"ig.",
|
|
2273
|
+
"al.",
|
|
2274
|
+
"ar.",
|
|
2275
|
+
"az.",
|
|
2276
|
+
"og.",
|
|
2277
|
+
"or.",
|
|
2278
|
+
"lr."
|
|
2279
|
+
],
|
|
2280
|
+
weekdaysMin: [
|
|
2281
|
+
"ig",
|
|
2282
|
+
"al",
|
|
2283
|
+
"ar",
|
|
2284
|
+
"az",
|
|
2285
|
+
"og",
|
|
2286
|
+
"or",
|
|
2287
|
+
"lr"
|
|
2288
|
+
],
|
|
2289
|
+
meridiem: {
|
|
2290
|
+
am: "AM",
|
|
2291
|
+
pm: "PM"
|
|
2292
|
+
},
|
|
2293
|
+
formats: {
|
|
2294
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
2295
|
+
date: "YYYY.MM.DD",
|
|
2296
|
+
time: "HH:mm:ss",
|
|
2297
|
+
datetime: "YYYY.MM.DD HH:mm:ss",
|
|
2298
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
2299
|
+
}
|
|
2300
|
+
},
|
|
2301
|
+
ca: {
|
|
2302
|
+
name: "ca",
|
|
2303
|
+
months: [
|
|
2304
|
+
"gener",
|
|
2305
|
+
"febrer",
|
|
2306
|
+
"març",
|
|
2307
|
+
"abril",
|
|
2308
|
+
"maig",
|
|
2309
|
+
"juny",
|
|
2310
|
+
"juliol",
|
|
2311
|
+
"agost",
|
|
2312
|
+
"setembre",
|
|
2313
|
+
"octubre",
|
|
2314
|
+
"novembre",
|
|
2315
|
+
"desembre"
|
|
2316
|
+
],
|
|
2317
|
+
monthsShort: [
|
|
2318
|
+
"gen",
|
|
2319
|
+
"feb",
|
|
2320
|
+
"mar",
|
|
2321
|
+
"abr",
|
|
2322
|
+
"mai",
|
|
2323
|
+
"jun",
|
|
2324
|
+
"jul",
|
|
2325
|
+
"ago",
|
|
2326
|
+
"set",
|
|
2327
|
+
"oct",
|
|
2328
|
+
"nov",
|
|
2329
|
+
"des"
|
|
2330
|
+
],
|
|
2331
|
+
weekdays: [
|
|
2332
|
+
"diumenge",
|
|
2333
|
+
"dilluns",
|
|
2334
|
+
"dimarts",
|
|
2335
|
+
"dimecres",
|
|
2336
|
+
"dijous",
|
|
2337
|
+
"divendres",
|
|
2338
|
+
"dissabte"
|
|
2339
|
+
],
|
|
2340
|
+
weekdaysShort: [
|
|
2341
|
+
"diu",
|
|
2342
|
+
"dil",
|
|
2343
|
+
"dit",
|
|
2344
|
+
"dic",
|
|
2345
|
+
"dij",
|
|
2346
|
+
"div",
|
|
2347
|
+
"dis"
|
|
2348
|
+
],
|
|
2349
|
+
weekdaysMin: [
|
|
2350
|
+
"du",
|
|
2351
|
+
"dl",
|
|
2352
|
+
"dt",
|
|
2353
|
+
"dc",
|
|
2354
|
+
"dj",
|
|
2355
|
+
"dv",
|
|
2356
|
+
"ds"
|
|
2357
|
+
],
|
|
2358
|
+
meridiem: {
|
|
2359
|
+
am: "AM",
|
|
2360
|
+
pm: "PM"
|
|
2361
|
+
},
|
|
2362
|
+
formats: {
|
|
2363
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
2364
|
+
date: "DD/MM/YYYY",
|
|
2365
|
+
time: "HH:mm:ss",
|
|
2366
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
2367
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
2368
|
+
}
|
|
2369
|
+
},
|
|
2370
|
+
tr: {
|
|
2371
|
+
name: "tr",
|
|
2372
|
+
months: [
|
|
2373
|
+
"Ocak",
|
|
2374
|
+
"Şubat",
|
|
2375
|
+
"Mart",
|
|
2376
|
+
"Nisan",
|
|
2377
|
+
"Mayıs",
|
|
2378
|
+
"Haziran",
|
|
2379
|
+
"Temmuz",
|
|
2380
|
+
"Ağustos",
|
|
2381
|
+
"Eylül",
|
|
2382
|
+
"Ekim",
|
|
2383
|
+
"Kasım",
|
|
2384
|
+
"Aralık"
|
|
2385
|
+
],
|
|
2386
|
+
monthsShort: [
|
|
2387
|
+
"Oca",
|
|
2388
|
+
"Şub",
|
|
2389
|
+
"Mar",
|
|
2390
|
+
"Nis",
|
|
2391
|
+
"May",
|
|
2392
|
+
"Haz",
|
|
2393
|
+
"Tem",
|
|
2394
|
+
"Ağu",
|
|
2395
|
+
"Eyl",
|
|
2396
|
+
"Eki",
|
|
2397
|
+
"Kas",
|
|
2398
|
+
"Ara"
|
|
2399
|
+
],
|
|
2400
|
+
weekdays: [
|
|
2401
|
+
"Pazar",
|
|
2402
|
+
"Pazartesi",
|
|
2403
|
+
"Salı",
|
|
2404
|
+
"Çarşamba",
|
|
2405
|
+
"Perşembe",
|
|
2406
|
+
"Cuma",
|
|
2407
|
+
"Cumartesi"
|
|
2408
|
+
],
|
|
2409
|
+
weekdaysShort: [
|
|
2410
|
+
"Paz",
|
|
2411
|
+
"Ptz",
|
|
2412
|
+
"Sal",
|
|
2413
|
+
"Çar",
|
|
2414
|
+
"Per",
|
|
2415
|
+
"Cum",
|
|
2416
|
+
"Cts"
|
|
2417
|
+
],
|
|
2418
|
+
weekdaysMin: [
|
|
2419
|
+
"Pa",
|
|
2420
|
+
"Pt",
|
|
2421
|
+
"Sa",
|
|
2422
|
+
"Ça",
|
|
2423
|
+
"Pe",
|
|
2424
|
+
"Cu",
|
|
2425
|
+
"Ct"
|
|
2426
|
+
],
|
|
2427
|
+
meridiem: {
|
|
2428
|
+
am: "ÖÖ",
|
|
2429
|
+
pm: "ÖS"
|
|
2430
|
+
},
|
|
2431
|
+
formats: {
|
|
2432
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
2433
|
+
date: "DD.MM.YYYY",
|
|
2434
|
+
time: "HH:mm:ss",
|
|
2435
|
+
datetime: "DD.MM.YYYY HH:mm:ss",
|
|
2436
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2439
|
+
}, O = {
|
|
2440
|
+
ar: {
|
|
2441
|
+
name: "ar",
|
|
2442
|
+
months: [
|
|
2443
|
+
"كانون الثاني",
|
|
2444
|
+
"شباط",
|
|
2445
|
+
"آذار",
|
|
2446
|
+
"نيسان",
|
|
2447
|
+
"أيار",
|
|
2448
|
+
"حزيران",
|
|
2449
|
+
"تموز",
|
|
2450
|
+
"آب",
|
|
2451
|
+
"أيلول",
|
|
2452
|
+
"تشرين الأول",
|
|
2453
|
+
"تشرين الثاني",
|
|
2454
|
+
"كانون الأول"
|
|
2455
|
+
],
|
|
2456
|
+
monthsShort: [
|
|
2457
|
+
"1",
|
|
2458
|
+
"2",
|
|
2459
|
+
"3",
|
|
2460
|
+
"4",
|
|
2461
|
+
"5",
|
|
2462
|
+
"6",
|
|
2463
|
+
"7",
|
|
2464
|
+
"8",
|
|
2465
|
+
"9",
|
|
2466
|
+
"10",
|
|
2467
|
+
"11",
|
|
2468
|
+
"12"
|
|
2469
|
+
],
|
|
2470
|
+
weekdays: [
|
|
2471
|
+
"الأحد",
|
|
2472
|
+
"الاثنين",
|
|
2473
|
+
"الثلاثاء",
|
|
2474
|
+
"الأربعاء",
|
|
2475
|
+
"الخميس",
|
|
2476
|
+
"الجمعة",
|
|
2477
|
+
"السبت"
|
|
2478
|
+
],
|
|
2479
|
+
weekdaysShort: [
|
|
2480
|
+
"أحد",
|
|
2481
|
+
"اثن",
|
|
2482
|
+
"ثلا",
|
|
2483
|
+
"أربع",
|
|
2484
|
+
"خمس",
|
|
2485
|
+
"جمع",
|
|
2486
|
+
"سبت"
|
|
2487
|
+
],
|
|
2488
|
+
weekdaysMin: [
|
|
2489
|
+
"ح",
|
|
2490
|
+
"ن",
|
|
2491
|
+
"ث",
|
|
2492
|
+
"ع",
|
|
2493
|
+
"خ",
|
|
2494
|
+
"ج",
|
|
2495
|
+
"س"
|
|
2496
|
+
],
|
|
2497
|
+
meridiem: {
|
|
2498
|
+
am: "ص",
|
|
2499
|
+
pm: "م"
|
|
2500
|
+
},
|
|
2501
|
+
formats: {
|
|
2502
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
2503
|
+
date: "DD/MM/YYYY",
|
|
2504
|
+
time: "HH:mm:ss",
|
|
2505
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
2506
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
2507
|
+
}
|
|
2508
|
+
},
|
|
2509
|
+
he: {
|
|
2510
|
+
name: "he",
|
|
2511
|
+
months: [
|
|
2512
|
+
"ינואר",
|
|
2513
|
+
"פברואר",
|
|
2514
|
+
"מרץ",
|
|
2515
|
+
"אפריל",
|
|
2516
|
+
"מאי",
|
|
2517
|
+
"יוני",
|
|
2518
|
+
"יולי",
|
|
2519
|
+
"אוגוסט",
|
|
2520
|
+
"ספטמבר",
|
|
2521
|
+
"אוקטובר",
|
|
2522
|
+
"נובמבר",
|
|
2523
|
+
"דצמבר"
|
|
2524
|
+
],
|
|
2525
|
+
monthsShort: [
|
|
2526
|
+
"ינו",
|
|
2527
|
+
"פבר",
|
|
2528
|
+
"מרץ",
|
|
2529
|
+
"אפר",
|
|
2530
|
+
"מאי",
|
|
2531
|
+
"יוני",
|
|
2532
|
+
"יולי",
|
|
2533
|
+
"אוג",
|
|
2534
|
+
"ספט",
|
|
2535
|
+
"אוק",
|
|
2536
|
+
"נוב",
|
|
2537
|
+
"דצמ"
|
|
2538
|
+
],
|
|
2539
|
+
weekdays: [
|
|
2540
|
+
"ראשון",
|
|
2541
|
+
"שני",
|
|
2542
|
+
"שלישי",
|
|
2543
|
+
"רביעי",
|
|
2544
|
+
"חמישי",
|
|
2545
|
+
"שישי",
|
|
2546
|
+
"שבת"
|
|
2547
|
+
],
|
|
2548
|
+
weekdaysShort: [
|
|
2549
|
+
"ראשון",
|
|
2550
|
+
"שני",
|
|
2551
|
+
"שלישי",
|
|
2552
|
+
"רביעי",
|
|
2553
|
+
"חמישי",
|
|
2554
|
+
"שישי",
|
|
2555
|
+
"שבת"
|
|
2556
|
+
],
|
|
2557
|
+
weekdaysMin: [
|
|
2558
|
+
"ראו",
|
|
2559
|
+
"שני",
|
|
2560
|
+
"שלי",
|
|
2561
|
+
"רבי",
|
|
2562
|
+
"חמי",
|
|
2563
|
+
"שיש",
|
|
2564
|
+
"שבת"
|
|
2565
|
+
],
|
|
2566
|
+
meridiem: {
|
|
2567
|
+
am: "AM",
|
|
2568
|
+
pm: "PM"
|
|
2569
|
+
},
|
|
2570
|
+
formats: {
|
|
2571
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
2572
|
+
date: "DD/MM/YYYY",
|
|
2573
|
+
time: "HH:mm:ss",
|
|
2574
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
2575
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
2576
|
+
}
|
|
2577
|
+
},
|
|
2578
|
+
hi: {
|
|
2579
|
+
name: "hi",
|
|
2580
|
+
months: [
|
|
2581
|
+
"जनवरी",
|
|
2582
|
+
"फ़रवरी",
|
|
2583
|
+
"मार्च",
|
|
2584
|
+
"अप्रैल",
|
|
2585
|
+
"मई",
|
|
2586
|
+
"जून",
|
|
2587
|
+
"जुलाई",
|
|
2588
|
+
"अगस्त",
|
|
2589
|
+
"सितंबर",
|
|
2590
|
+
"अक्टूबर",
|
|
2591
|
+
"नवंबर",
|
|
2592
|
+
"दिसंबर"
|
|
2593
|
+
],
|
|
2594
|
+
monthsShort: [
|
|
2595
|
+
"जन",
|
|
2596
|
+
"फ़र",
|
|
2597
|
+
"मार",
|
|
2598
|
+
"अप्र",
|
|
2599
|
+
"मई",
|
|
2600
|
+
"जून",
|
|
2601
|
+
"जुल",
|
|
2602
|
+
"अग",
|
|
2603
|
+
"सित",
|
|
2604
|
+
"अक्ट",
|
|
2605
|
+
"नव",
|
|
2606
|
+
"दिस"
|
|
2607
|
+
],
|
|
2608
|
+
weekdays: [
|
|
2609
|
+
"रविवार",
|
|
2610
|
+
"सोमवार",
|
|
2611
|
+
"मंगलवार",
|
|
2612
|
+
"बुधवार",
|
|
2613
|
+
"गुरुवार",
|
|
2614
|
+
"शुक्रवार",
|
|
2615
|
+
"शनिवार"
|
|
2616
|
+
],
|
|
2617
|
+
weekdaysShort: [
|
|
2618
|
+
"रवि",
|
|
2619
|
+
"सोम",
|
|
2620
|
+
"मंग",
|
|
2621
|
+
"बुध",
|
|
2622
|
+
"गुरु",
|
|
2623
|
+
"शुक्र",
|
|
2624
|
+
"शनि"
|
|
2625
|
+
],
|
|
2626
|
+
weekdaysMin: [
|
|
2627
|
+
"र",
|
|
2628
|
+
"स",
|
|
2629
|
+
"मं",
|
|
2630
|
+
"ब",
|
|
2631
|
+
"गु",
|
|
2632
|
+
"श",
|
|
2633
|
+
"श"
|
|
2634
|
+
],
|
|
2635
|
+
meridiem: {
|
|
2636
|
+
am: "AM",
|
|
2637
|
+
pm: "PM"
|
|
2638
|
+
},
|
|
2639
|
+
formats: {
|
|
2640
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
2641
|
+
date: "DD/MM/YYYY",
|
|
2642
|
+
time: "HH:mm:ss",
|
|
2643
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
2644
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
2645
|
+
}
|
|
2646
|
+
}
|
|
2647
|
+
}, k = {
|
|
2648
|
+
vi: {
|
|
2649
|
+
name: "vi",
|
|
2650
|
+
months: [
|
|
2651
|
+
"Tháng 1",
|
|
2652
|
+
"Tháng 2",
|
|
2653
|
+
"Tháng 3",
|
|
2654
|
+
"Tháng 4",
|
|
2655
|
+
"Tháng 5",
|
|
2656
|
+
"Tháng 6",
|
|
2657
|
+
"Tháng 7",
|
|
2658
|
+
"Tháng 8",
|
|
2659
|
+
"Tháng 9",
|
|
2660
|
+
"Tháng 10",
|
|
2661
|
+
"Tháng 11",
|
|
2662
|
+
"Tháng 12"
|
|
2663
|
+
],
|
|
2664
|
+
monthsShort: [
|
|
2665
|
+
"Th1",
|
|
2666
|
+
"Th2",
|
|
2667
|
+
"Th3",
|
|
2668
|
+
"Th4",
|
|
2669
|
+
"Th5",
|
|
2670
|
+
"Th6",
|
|
2671
|
+
"Th7",
|
|
2672
|
+
"Th8",
|
|
2673
|
+
"Th9",
|
|
2674
|
+
"Th10",
|
|
2675
|
+
"Th11",
|
|
2676
|
+
"Th12"
|
|
2677
|
+
],
|
|
2678
|
+
weekdays: [
|
|
2679
|
+
"Chủ nhật",
|
|
2680
|
+
"Thứ hai",
|
|
2681
|
+
"Thứ ba",
|
|
2682
|
+
"Thứ tư",
|
|
2683
|
+
"Thứ năm",
|
|
2684
|
+
"Thứ sáu",
|
|
2685
|
+
"Thứ bảy"
|
|
2686
|
+
],
|
|
2687
|
+
weekdaysShort: [
|
|
2688
|
+
"CN",
|
|
2689
|
+
"Th2",
|
|
2690
|
+
"Th3",
|
|
2691
|
+
"Th4",
|
|
2692
|
+
"Th5",
|
|
2693
|
+
"Th6",
|
|
2694
|
+
"Th7"
|
|
2695
|
+
],
|
|
2696
|
+
weekdaysMin: [
|
|
2697
|
+
"CN",
|
|
2698
|
+
"T2",
|
|
2699
|
+
"T3",
|
|
2700
|
+
"T4",
|
|
2701
|
+
"T5",
|
|
2702
|
+
"T6",
|
|
2703
|
+
"T7"
|
|
2704
|
+
],
|
|
2705
|
+
meridiem: {
|
|
2706
|
+
am: "SA",
|
|
2707
|
+
pm: "CH"
|
|
2708
|
+
},
|
|
2709
|
+
formats: {
|
|
2710
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
2711
|
+
date: "DD/MM/YYYY",
|
|
2712
|
+
time: "HH:mm:ss",
|
|
2713
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
2714
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
2715
|
+
}
|
|
2716
|
+
},
|
|
2717
|
+
id: {
|
|
2718
|
+
name: "id",
|
|
2719
|
+
months: [
|
|
2720
|
+
"Januari",
|
|
2721
|
+
"Februari",
|
|
2722
|
+
"Maret",
|
|
2723
|
+
"April",
|
|
2724
|
+
"Mei",
|
|
2725
|
+
"Juni",
|
|
2726
|
+
"Juli",
|
|
2727
|
+
"Agustus",
|
|
2728
|
+
"September",
|
|
2729
|
+
"Oktober",
|
|
2730
|
+
"November",
|
|
2731
|
+
"Desember"
|
|
2732
|
+
],
|
|
2733
|
+
monthsShort: [
|
|
2734
|
+
"Jan",
|
|
2735
|
+
"Feb",
|
|
2736
|
+
"Mar",
|
|
2737
|
+
"Apr",
|
|
2738
|
+
"Mei",
|
|
2739
|
+
"Jun",
|
|
2740
|
+
"Jul",
|
|
2741
|
+
"Agu",
|
|
2742
|
+
"Sep",
|
|
2743
|
+
"Okt",
|
|
2744
|
+
"Nov",
|
|
2745
|
+
"Des"
|
|
2746
|
+
],
|
|
2747
|
+
weekdays: [
|
|
2748
|
+
"Minggu",
|
|
2749
|
+
"Senin",
|
|
2750
|
+
"Selasa",
|
|
2751
|
+
"Rabu",
|
|
2752
|
+
"Kamis",
|
|
2753
|
+
"Jumat",
|
|
2754
|
+
"Sabtu"
|
|
2755
|
+
],
|
|
2756
|
+
weekdaysShort: [
|
|
2757
|
+
"Min",
|
|
2758
|
+
"Sen",
|
|
2759
|
+
"Sel",
|
|
2760
|
+
"Rab",
|
|
2761
|
+
"Kam",
|
|
2762
|
+
"Jum",
|
|
2763
|
+
"Sab"
|
|
2764
|
+
],
|
|
2765
|
+
weekdaysMin: [
|
|
2766
|
+
"Mg",
|
|
2767
|
+
"Sn",
|
|
2768
|
+
"Sl",
|
|
2769
|
+
"Rb",
|
|
2770
|
+
"Km",
|
|
2771
|
+
"Jm",
|
|
2772
|
+
"Sb"
|
|
2773
|
+
],
|
|
2774
|
+
meridiem: {
|
|
2775
|
+
am: "AM",
|
|
2776
|
+
pm: "PM"
|
|
2777
|
+
},
|
|
2778
|
+
formats: {
|
|
2779
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
2780
|
+
date: "DD/MM/YYYY",
|
|
2781
|
+
time: "HH:mm:ss",
|
|
2782
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
2783
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
2784
|
+
}
|
|
2785
|
+
},
|
|
2786
|
+
th: {
|
|
2787
|
+
name: "th",
|
|
2788
|
+
months: [
|
|
2789
|
+
"มกราคม",
|
|
2790
|
+
"กุมภาพันธ์",
|
|
2791
|
+
"มีนาคม",
|
|
2792
|
+
"เมษายน",
|
|
2793
|
+
"พฤษภาคม",
|
|
2794
|
+
"มิถุนายน",
|
|
2795
|
+
"กรกฎาคม",
|
|
2796
|
+
"สิงหาคม",
|
|
2797
|
+
"กันยายน",
|
|
2798
|
+
"ตุลาคม",
|
|
2799
|
+
"พฤศจิกายน",
|
|
2800
|
+
"ธันวาคม"
|
|
2801
|
+
],
|
|
2802
|
+
monthsShort: [
|
|
2803
|
+
"ม.ค.",
|
|
2804
|
+
"ก.พ.",
|
|
2805
|
+
"มี.ค.",
|
|
2806
|
+
"เม.ย.",
|
|
2807
|
+
"พ.ค.",
|
|
2808
|
+
"มิ.ย.",
|
|
2809
|
+
"ก.ค.",
|
|
2810
|
+
"ส.ค.",
|
|
2811
|
+
"ก.ย.",
|
|
2812
|
+
"ต.ค.",
|
|
2813
|
+
"พ.ย.",
|
|
2814
|
+
"ธ.ค."
|
|
2815
|
+
],
|
|
2816
|
+
weekdays: [
|
|
2817
|
+
"อาทิตย์",
|
|
2818
|
+
"จันทร์",
|
|
2819
|
+
"อังคาร",
|
|
2820
|
+
"พุธ",
|
|
2821
|
+
"พฤหัสบดี",
|
|
2822
|
+
"ศุกร์",
|
|
2823
|
+
"เสาร์"
|
|
2824
|
+
],
|
|
2825
|
+
weekdaysShort: [
|
|
2826
|
+
"อา.",
|
|
2827
|
+
"จ.",
|
|
2828
|
+
"อ.",
|
|
2829
|
+
"พ.",
|
|
2830
|
+
"พฤ.",
|
|
2831
|
+
"ศ.",
|
|
2832
|
+
"ส."
|
|
2833
|
+
],
|
|
2834
|
+
weekdaysMin: [
|
|
2835
|
+
"อา",
|
|
2836
|
+
"จ",
|
|
2837
|
+
"อ",
|
|
2838
|
+
"พ",
|
|
2839
|
+
"พฤ",
|
|
2840
|
+
"ศ",
|
|
2841
|
+
"ส"
|
|
2842
|
+
],
|
|
2843
|
+
meridiem: {
|
|
2844
|
+
am: "AM",
|
|
2845
|
+
pm: "PM"
|
|
2846
|
+
},
|
|
2847
|
+
formats: {
|
|
2848
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
2849
|
+
date: "DD/MM/YYYY",
|
|
2850
|
+
time: "HH:mm:ss",
|
|
2851
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
2852
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
2853
|
+
}
|
|
2854
|
+
}
|
|
2855
|
+
}, A = {
|
|
2856
|
+
...s,
|
|
2857
|
+
...d,
|
|
2858
|
+
..._,
|
|
2859
|
+
...v,
|
|
2860
|
+
...y,
|
|
2861
|
+
...E,
|
|
2862
|
+
...D,
|
|
2863
|
+
...O,
|
|
2864
|
+
...k
|
|
2865
|
+
};
|
|
2866
|
+
function j(e) {
|
|
2867
|
+
e instanceof Map ? Object.entries(A).forEach(([t, n]) => {
|
|
2868
|
+
e.set(t, n);
|
|
2869
|
+
}) : Object.entries(A).forEach(([t, n]) => {
|
|
2870
|
+
e[t] = n;
|
|
2871
|
+
});
|
|
2872
|
+
}
|
|
2873
|
+
function M() {
|
|
2874
|
+
let e = Object.keys(A);
|
|
2875
|
+
for (; e.length < 40;) e.push(`locale-${e.length + 1}`);
|
|
2876
|
+
return e;
|
|
2877
|
+
}
|
|
2878
|
+
var N = 40, P = {
|
|
2879
|
+
name: "en",
|
|
2880
|
+
months: [
|
|
2881
|
+
"January",
|
|
2882
|
+
"February",
|
|
2883
|
+
"March",
|
|
2884
|
+
"April",
|
|
2885
|
+
"May",
|
|
2886
|
+
"June",
|
|
2887
|
+
"July",
|
|
2888
|
+
"August",
|
|
2889
|
+
"September",
|
|
2890
|
+
"October",
|
|
2891
|
+
"November",
|
|
2892
|
+
"December"
|
|
2893
|
+
],
|
|
2894
|
+
monthsShort: [
|
|
2895
|
+
"Jan",
|
|
2896
|
+
"Feb",
|
|
2897
|
+
"Mar",
|
|
2898
|
+
"Apr",
|
|
2899
|
+
"May",
|
|
2900
|
+
"Jun",
|
|
2901
|
+
"Jul",
|
|
2902
|
+
"Aug",
|
|
2903
|
+
"Sep",
|
|
2904
|
+
"Oct",
|
|
2905
|
+
"Nov",
|
|
2906
|
+
"Dec"
|
|
2907
|
+
],
|
|
2908
|
+
weekdays: [
|
|
2909
|
+
"Sunday",
|
|
2910
|
+
"Monday",
|
|
2911
|
+
"Tuesday",
|
|
2912
|
+
"Wednesday",
|
|
2913
|
+
"Thursday",
|
|
2914
|
+
"Friday",
|
|
2915
|
+
"Saturday"
|
|
2916
|
+
],
|
|
2917
|
+
weekdaysShort: [
|
|
2918
|
+
"Sun",
|
|
2919
|
+
"Mon",
|
|
2920
|
+
"Tue",
|
|
2921
|
+
"Wed",
|
|
2922
|
+
"Thu",
|
|
2923
|
+
"Fri",
|
|
2924
|
+
"Sat"
|
|
2925
|
+
],
|
|
2926
|
+
weekdaysMin: [
|
|
2927
|
+
"Su",
|
|
2928
|
+
"Mo",
|
|
2929
|
+
"Tu",
|
|
2930
|
+
"We",
|
|
2931
|
+
"Th",
|
|
2932
|
+
"Fr",
|
|
2933
|
+
"Sa"
|
|
2934
|
+
],
|
|
2935
|
+
meridiem: {
|
|
2936
|
+
am: "AM",
|
|
2937
|
+
pm: "PM"
|
|
2938
|
+
},
|
|
2939
|
+
formats: {
|
|
2940
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
2941
|
+
date: "YYYY-MM-DD",
|
|
2942
|
+
time: "HH:mm:ss",
|
|
2943
|
+
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2944
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
2945
|
+
}
|
|
2946
|
+
}, F = {
|
|
2947
|
+
name: "es",
|
|
2948
|
+
months: [
|
|
2949
|
+
"Enero",
|
|
2950
|
+
"Febrero",
|
|
2951
|
+
"Marzo",
|
|
2952
|
+
"Abril",
|
|
2953
|
+
"Mayo",
|
|
2954
|
+
"Junio",
|
|
2955
|
+
"Julio",
|
|
2956
|
+
"Agosto",
|
|
2957
|
+
"Septiembre",
|
|
2958
|
+
"Octubre",
|
|
2959
|
+
"Noviembre",
|
|
2960
|
+
"Diciembre"
|
|
2961
|
+
],
|
|
2962
|
+
monthsShort: [
|
|
2963
|
+
"Ene",
|
|
2964
|
+
"Feb",
|
|
2965
|
+
"Mar",
|
|
2966
|
+
"Abr",
|
|
2967
|
+
"May",
|
|
2968
|
+
"Jun",
|
|
2969
|
+
"Jul",
|
|
2970
|
+
"Ago",
|
|
2971
|
+
"Sep",
|
|
2972
|
+
"Oct",
|
|
2973
|
+
"Nov",
|
|
2974
|
+
"Dic"
|
|
2975
|
+
],
|
|
2976
|
+
weekdays: [
|
|
2977
|
+
"Domingo",
|
|
2978
|
+
"Lunes",
|
|
2979
|
+
"Martes",
|
|
2980
|
+
"Miércoles",
|
|
2981
|
+
"Jueves",
|
|
2982
|
+
"Viernes",
|
|
2983
|
+
"Sábado"
|
|
2984
|
+
],
|
|
2985
|
+
weekdaysShort: [
|
|
2986
|
+
"Dom",
|
|
2987
|
+
"Lun",
|
|
2988
|
+
"Mar",
|
|
2989
|
+
"Mié",
|
|
2990
|
+
"Jue",
|
|
2991
|
+
"Vie",
|
|
2992
|
+
"Sáb"
|
|
2993
|
+
],
|
|
2994
|
+
weekdaysMin: [
|
|
2995
|
+
"Do",
|
|
2996
|
+
"Lu",
|
|
2997
|
+
"Ma",
|
|
2998
|
+
"Mi",
|
|
2999
|
+
"Ju",
|
|
3000
|
+
"Vi",
|
|
3001
|
+
"Sa"
|
|
3002
|
+
],
|
|
3003
|
+
meridiem: {
|
|
3004
|
+
am: "AM",
|
|
3005
|
+
pm: "PM"
|
|
3006
|
+
},
|
|
3007
|
+
formats: {
|
|
3008
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
3009
|
+
date: "DD/MM/YYYY",
|
|
3010
|
+
time: "HH:mm:ss",
|
|
3011
|
+
datetime: "DD/MM/YYYY HH:mm:ss",
|
|
3012
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z"
|
|
3013
|
+
}
|
|
3014
|
+
}, I = class e {
|
|
3015
|
+
static instance;
|
|
3016
|
+
locales = /* @__PURE__ */ new Map();
|
|
3017
|
+
currentLocale = "en";
|
|
3018
|
+
static getInstance() {
|
|
3019
|
+
return e.instance ||= new e(), e.instance;
|
|
3020
|
+
}
|
|
3021
|
+
constructor() {
|
|
3022
|
+
this.locales.set("en", P), this.locales.set("es", F), j(this.locales);
|
|
3023
|
+
}
|
|
3024
|
+
setLocale(e, t) {
|
|
3025
|
+
t && this.locales.set(e.toLowerCase(), t), this.currentLocale = e.toLowerCase();
|
|
3026
|
+
}
|
|
3027
|
+
getLocale(e) {
|
|
3028
|
+
let t = (e || this.currentLocale).toLowerCase();
|
|
3029
|
+
return this.locales.get(t) || this.locales.get("en") || P;
|
|
3030
|
+
}
|
|
3031
|
+
listLocales() {
|
|
3032
|
+
return Array.from(this.locales.keys());
|
|
3033
|
+
}
|
|
3034
|
+
getCurrentLocale() {
|
|
3035
|
+
return this.currentLocale;
|
|
3036
|
+
}
|
|
3037
|
+
loadLocales(e) {
|
|
3038
|
+
Object.entries(e).forEach(([e, t]) => {
|
|
3039
|
+
this.locales.set(e.toLowerCase(), t);
|
|
3040
|
+
});
|
|
3041
|
+
}
|
|
3042
|
+
}, L = class {
|
|
3043
|
+
localeManager;
|
|
3044
|
+
constructor() {
|
|
3045
|
+
this.localeManager = I.getInstance();
|
|
3046
|
+
}
|
|
3047
|
+
format(e, t, n) {
|
|
3048
|
+
let r = this.localeManager.getLocale(n), i = [], a = t.replace(/\[([^\]]+)\]/g, (e, t) => (i.push(t), `~${i.length - 1}~`));
|
|
3049
|
+
a = a.replace(/"([^"]*)"/g, (e, t) => (i.push(t), `~${i.length - 1}~`));
|
|
3050
|
+
let o = a.replace(/Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|SSS/g, (t) => {
|
|
3051
|
+
switch (t) {
|
|
3052
|
+
case "YYYY": return String(e.year).padStart(4, "0");
|
|
3053
|
+
case "YY": return String(e.year).slice(-2);
|
|
3054
|
+
case "Y": return String(e.year);
|
|
3055
|
+
case "MMMM": return r.months[e.month - 1];
|
|
3056
|
+
case "MMM": return r.monthsShort[e.month - 1];
|
|
3057
|
+
case "MM": return String(e.month).padStart(2, "0");
|
|
3058
|
+
case "M": return String(e.month);
|
|
3059
|
+
case "DD": return String(e.day).padStart(2, "0");
|
|
3060
|
+
case "D": return String(e.day);
|
|
3061
|
+
case "dddd": return r.weekdays[e.dayOfWeek % 7];
|
|
3062
|
+
case "ddd": return r.weekdaysShort[e.dayOfWeek % 7];
|
|
3063
|
+
case "dd": return r.weekdaysMin[e.dayOfWeek % 7];
|
|
3064
|
+
case "d": return String(e.dayOfWeek);
|
|
3065
|
+
case "HH": return String(e.hour).padStart(2, "0");
|
|
3066
|
+
case "H": return String(e.hour);
|
|
3067
|
+
case "hh": return String(e.hour % 12 || 12).padStart(2, "0");
|
|
3068
|
+
case "h": return String(e.hour % 12 || 12);
|
|
3069
|
+
case "mm": return String(e.minute).padStart(2, "0");
|
|
3070
|
+
case "m": return String(e.minute);
|
|
3071
|
+
case "ss": return String(e.second).padStart(2, "0");
|
|
3072
|
+
case "s": return String(e.second);
|
|
3073
|
+
case "SSS": return String(e.millisecond).padStart(3, "0");
|
|
3074
|
+
case "a":
|
|
3075
|
+
case "A":
|
|
3076
|
+
let n = r.meridiem || {
|
|
3077
|
+
am: "am",
|
|
3078
|
+
pm: "pm"
|
|
3079
|
+
}, i = e.hour >= 12 ? n.pm : n.am;
|
|
3080
|
+
return t === "a" ? i.toLowerCase() : i.toUpperCase();
|
|
3081
|
+
default: return t;
|
|
3082
|
+
}
|
|
3083
|
+
});
|
|
3084
|
+
return i.forEach((e, t) => {
|
|
3085
|
+
o = o.replace(`~${t}~`, e);
|
|
3086
|
+
}), o;
|
|
3087
|
+
}
|
|
3088
|
+
getPreset(e) {
|
|
3089
|
+
let t = {
|
|
3090
|
+
iso: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
3091
|
+
date: "YYYY-MM-DD",
|
|
3092
|
+
time: "HH:mm:ss",
|
|
3093
|
+
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
3094
|
+
rfc2822: "ddd, DD MMM YYYY HH:mm:ss Z",
|
|
3095
|
+
rfc3339: "YYYY-MM-DDTHH:mm:ssZ",
|
|
3096
|
+
utc: "YYYY-MM-DDTHH:mm:ss[Z]"
|
|
3097
|
+
};
|
|
3098
|
+
return t[e] || t.iso;
|
|
3099
|
+
}
|
|
3100
|
+
formatPreset(e, t, n) {
|
|
3101
|
+
let r = this.getPreset(t);
|
|
3102
|
+
return this.format(e, r, n);
|
|
3103
|
+
}
|
|
3104
|
+
}, R = class e {
|
|
3105
|
+
temporal;
|
|
3106
|
+
config;
|
|
3107
|
+
formatterInstance;
|
|
3108
|
+
constructor(e, t) {
|
|
3109
|
+
if (this.formatterInstance = new L(), this.config = {
|
|
3110
|
+
locale: t?.locale || "en",
|
|
3111
|
+
timezone: t?.timezone || "UTC",
|
|
3112
|
+
strict: t?.strict ?? !1
|
|
3113
|
+
}, this.temporal = n.parseToPlainDateTime(e), this.config.timezone && this.config.timezone !== "UTC") try {
|
|
3114
|
+
this.temporal = this.temporal.toZonedDateTime(this.config.timezone);
|
|
3115
|
+
} catch {}
|
|
3116
|
+
}
|
|
3117
|
+
static now(t) {
|
|
3118
|
+
return new e(void 0, t);
|
|
3119
|
+
}
|
|
3120
|
+
static from(t, n) {
|
|
3121
|
+
return new e(t, n);
|
|
3122
|
+
}
|
|
3123
|
+
static fromTemporal(t, n) {
|
|
3124
|
+
let r = new e(void 0, n);
|
|
3125
|
+
return r.temporal = t, r;
|
|
3126
|
+
}
|
|
3127
|
+
toTemporal() {
|
|
3128
|
+
return this.temporal;
|
|
3129
|
+
}
|
|
3130
|
+
toDate() {
|
|
3131
|
+
return n.toDate(this.temporal);
|
|
3132
|
+
}
|
|
3133
|
+
toISOString() {
|
|
3134
|
+
return n.toISOString(this.temporal);
|
|
3135
|
+
}
|
|
3136
|
+
valueOf() {
|
|
3137
|
+
return n.toUnix(this.temporal);
|
|
3138
|
+
}
|
|
3139
|
+
unix() {
|
|
3140
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
3141
|
+
}
|
|
3142
|
+
toJSON() {
|
|
3143
|
+
return this.toISOString();
|
|
3144
|
+
}
|
|
3145
|
+
toString() {
|
|
3146
|
+
return this.format("YYYY-MM-DD HH:mm:ss");
|
|
3147
|
+
}
|
|
3148
|
+
locale(e) {
|
|
3149
|
+
if (e === void 0) return this.config.locale;
|
|
3150
|
+
let t = this.clone();
|
|
3151
|
+
return t.config.locale = e, t;
|
|
3152
|
+
}
|
|
3153
|
+
timezone(e) {
|
|
3154
|
+
if (e === void 0) return this.config.timezone;
|
|
3155
|
+
let t = this.clone();
|
|
3156
|
+
t.config.timezone = e;
|
|
3157
|
+
try {
|
|
3158
|
+
t.temporal = n.toPlainDateTime(t.temporal).toZonedDateTime(e);
|
|
3159
|
+
} catch {}
|
|
3160
|
+
return t;
|
|
3161
|
+
}
|
|
3162
|
+
format(e) {
|
|
3163
|
+
let t = n.toPlainDateTime(this.temporal), r = [
|
|
3164
|
+
"iso",
|
|
3165
|
+
"date",
|
|
3166
|
+
"time",
|
|
3167
|
+
"datetime",
|
|
3168
|
+
"rfc2822",
|
|
3169
|
+
"rfc3339",
|
|
3170
|
+
"utc"
|
|
3171
|
+
].includes(e) ? this.formatterInstance.getPreset(e) : e;
|
|
3172
|
+
return this.formatterInstance.format(t, r, this.config.locale);
|
|
3173
|
+
}
|
|
3174
|
+
get(e) {
|
|
3175
|
+
let t = n.toPlainDateTime(this.temporal);
|
|
3176
|
+
return e === "week" ? t.weekOfYear : t[{
|
|
3177
|
+
year: "year",
|
|
3178
|
+
month: "month",
|
|
3179
|
+
week: "year",
|
|
3180
|
+
day: "day",
|
|
3181
|
+
hour: "hour",
|
|
3182
|
+
minute: "minute",
|
|
3183
|
+
second: "second",
|
|
3184
|
+
millisecond: "millisecond",
|
|
3185
|
+
microsecond: "microsecond",
|
|
3186
|
+
nanosecond: "nanosecond"
|
|
3187
|
+
}[e]];
|
|
3188
|
+
}
|
|
3189
|
+
add(t) {
|
|
3190
|
+
let r = n.toPlainDateTime(this.temporal), i = {};
|
|
3191
|
+
return Object.entries(t).forEach(([e, t]) => {
|
|
3192
|
+
t !== void 0 && t !== 0 && (i[e + "s"] = t);
|
|
3193
|
+
}), r = r.add(i), e.fromTemporal(r, this.config);
|
|
3194
|
+
}
|
|
3195
|
+
subtract(e) {
|
|
3196
|
+
let t = {};
|
|
3197
|
+
return Object.entries(e).forEach(([e, n]) => {
|
|
3198
|
+
t[e] = n ? -n : 0;
|
|
3199
|
+
}), this.add(t);
|
|
3200
|
+
}
|
|
3201
|
+
diff(e, t = "millisecond") {
|
|
3202
|
+
let r = n.toPlainDateTime(this.temporal), i = n.toPlainDateTime(e.temporal), a = {
|
|
3203
|
+
year: "years",
|
|
3204
|
+
month: "months",
|
|
3205
|
+
week: "weeks",
|
|
3206
|
+
day: "days",
|
|
3207
|
+
hour: "hours",
|
|
3208
|
+
minute: "minutes",
|
|
3209
|
+
second: "seconds",
|
|
3210
|
+
millisecond: "milliseconds",
|
|
3211
|
+
microsecond: "microseconds",
|
|
3212
|
+
nanosecond: "nanoseconds"
|
|
3213
|
+
}, o = r.since(i), s = a[t];
|
|
3214
|
+
return Math.round(o[s] || 0);
|
|
3215
|
+
}
|
|
3216
|
+
isBefore(e) {
|
|
3217
|
+
let t = n.toPlainDateTime(this.temporal), r = n.toPlainDateTime(e.temporal);
|
|
3218
|
+
return t.compare(r) < 0;
|
|
3219
|
+
}
|
|
3220
|
+
isAfter(e) {
|
|
3221
|
+
let t = n.toPlainDateTime(this.temporal), r = n.toPlainDateTime(e.temporal);
|
|
3222
|
+
return t.compare(r) > 0;
|
|
3223
|
+
}
|
|
3224
|
+
isSame(e, t) {
|
|
3225
|
+
if (!t) return n.toPlainDateTime(this.temporal).compare(n.toPlainDateTime(e.temporal)) === 0;
|
|
3226
|
+
let r = n.toPlainDateTime(this.temporal), i = n.toPlainDateTime(e.temporal);
|
|
3227
|
+
switch (t) {
|
|
3228
|
+
case "year": return r.year === i.year;
|
|
3229
|
+
case "month": return r.year === i.year && r.month === i.month;
|
|
3230
|
+
case "day": return r.year === i.year && r.month === i.month && r.day === i.day;
|
|
3231
|
+
case "hour": return r.year === i.year && r.month === i.month && r.day === i.day && r.hour === i.hour;
|
|
3232
|
+
case "minute": return r.year === i.year && r.month === i.month && r.day === i.day && r.hour === i.hour && r.minute === i.minute;
|
|
3233
|
+
case "second": return r.year === i.year && r.month === i.month && r.day === i.day && r.hour === i.hour && r.minute === i.minute && r.second === i.second;
|
|
3234
|
+
default: return !1;
|
|
3235
|
+
}
|
|
3236
|
+
}
|
|
3237
|
+
isBetween(e, t, r, i = "[]") {
|
|
3238
|
+
let a = n.toPlainDateTime(this.temporal), o = n.toPlainDateTime(e.temporal), s = n.toPlainDateTime(t.temporal), c = !0, l = !0;
|
|
3239
|
+
if (r) {
|
|
3240
|
+
let e = this.clone().startOf(r), t = this.clone().endOf(r), i = n.toPlainDateTime(e.temporal), a = n.toPlainDateTime(t.temporal);
|
|
3241
|
+
c = i.compare(o) >= 0, l = a.compare(s) <= 0;
|
|
3242
|
+
} else c = a.compare(o) >= 0, l = a.compare(s) <= 0;
|
|
3243
|
+
let u = i[0] === "[", d = i[1] === "]";
|
|
3244
|
+
return (u ? c : a.compare(o) > 0) && (d ? l : a.compare(s) < 0);
|
|
3245
|
+
}
|
|
3246
|
+
clone() {
|
|
3247
|
+
return new e(this.toDate(), this.config);
|
|
3248
|
+
}
|
|
3249
|
+
startOf(t) {
|
|
3250
|
+
let r = n.toPlainDateTime(this.temporal), i = {};
|
|
3251
|
+
switch (t) {
|
|
3252
|
+
case "year":
|
|
3253
|
+
i.month = 1, i.day = 1, i.hour = 0, i.minute = 0, i.second = 0, i.millisecond = 0;
|
|
3254
|
+
break;
|
|
3255
|
+
case "month":
|
|
3256
|
+
i.day = 1, i.hour = 0, i.minute = 0, i.second = 0, i.millisecond = 0;
|
|
3257
|
+
break;
|
|
3258
|
+
case "week":
|
|
3259
|
+
case "day":
|
|
3260
|
+
i.hour = 0, i.minute = 0, i.second = 0, i.millisecond = 0;
|
|
3261
|
+
break;
|
|
3262
|
+
case "hour":
|
|
3263
|
+
i.minute = 0, i.second = 0, i.millisecond = 0;
|
|
3264
|
+
break;
|
|
3265
|
+
case "minute":
|
|
3266
|
+
i.second = 0, i.millisecond = 0;
|
|
3267
|
+
break;
|
|
3268
|
+
case "second":
|
|
3269
|
+
i.millisecond = 0;
|
|
3270
|
+
break;
|
|
3271
|
+
}
|
|
3272
|
+
let a = r.with(i);
|
|
3273
|
+
return e.fromTemporal(a, this.config);
|
|
3274
|
+
}
|
|
3275
|
+
endOf(e) {
|
|
3276
|
+
return this.startOf(e).add({ [e]: 1 }).subtract({ millisecond: 1 });
|
|
3277
|
+
}
|
|
3278
|
+
set(t) {
|
|
3279
|
+
let r = n.toPlainDateTime(this.temporal).with(t);
|
|
3280
|
+
return e.fromTemporal(r, this.config);
|
|
3281
|
+
}
|
|
3282
|
+
year() {
|
|
3283
|
+
return n.toPlainDateTime(this.temporal).year;
|
|
3284
|
+
}
|
|
3285
|
+
month() {
|
|
3286
|
+
return n.toPlainDateTime(this.temporal).month;
|
|
3287
|
+
}
|
|
3288
|
+
day() {
|
|
3289
|
+
return n.toPlainDateTime(this.temporal).day;
|
|
3290
|
+
}
|
|
3291
|
+
hour() {
|
|
3292
|
+
return n.toPlainDateTime(this.temporal).hour;
|
|
3293
|
+
}
|
|
3294
|
+
minute() {
|
|
3295
|
+
return n.toPlainDateTime(this.temporal).minute;
|
|
3296
|
+
}
|
|
3297
|
+
second() {
|
|
3298
|
+
return n.toPlainDateTime(this.temporal).second;
|
|
3299
|
+
}
|
|
3300
|
+
millisecond() {
|
|
3301
|
+
return n.toPlainDateTime(this.temporal).millisecond;
|
|
3302
|
+
}
|
|
3303
|
+
dayOfWeek() {
|
|
3304
|
+
return n.toPlainDateTime(this.temporal).dayOfWeek;
|
|
3305
|
+
}
|
|
3306
|
+
dayOfYear() {
|
|
3307
|
+
return n.toPlainDateTime(this.temporal).dayOfYear;
|
|
3308
|
+
}
|
|
3309
|
+
weekOfYear() {
|
|
3310
|
+
return n.toPlainDateTime(this.temporal).weekOfYear;
|
|
3311
|
+
}
|
|
3312
|
+
daysInMonth() {
|
|
3313
|
+
return n.toPlainDateTime(this.temporal).add({ months: 1 }).with({ day: 1 }).subtract({ days: 1 }).day;
|
|
3314
|
+
}
|
|
3315
|
+
daysInYear() {
|
|
3316
|
+
let e = this.year();
|
|
3317
|
+
return e % 4 == 0 && e % 100 != 0 || e % 400 == 0 ? 366 : 365;
|
|
3318
|
+
}
|
|
3319
|
+
inLeapYear() {
|
|
3320
|
+
let e = n.toPlainDateTime(this.temporal).year;
|
|
3321
|
+
return e % 4 == 0 && e % 100 != 0 || e % 400 == 0;
|
|
3322
|
+
}
|
|
3323
|
+
until(e) {
|
|
3324
|
+
let t = n.toPlainDateTime(this.temporal), r = n.toPlainDateTime(e.temporal);
|
|
3325
|
+
try {
|
|
3326
|
+
let e = r.since(t);
|
|
3327
|
+
return {
|
|
3328
|
+
years: Math.floor(e.years || 0),
|
|
3329
|
+
months: Math.floor(e.months || 0),
|
|
3330
|
+
days: Math.floor(e.days || 0),
|
|
3331
|
+
hours: Math.floor(e.hours || 0),
|
|
3332
|
+
minutes: Math.floor(e.minutes || 0),
|
|
3333
|
+
seconds: Math.floor(e.seconds || 0),
|
|
3334
|
+
milliseconds: Math.floor(e.milliseconds || 0)
|
|
3335
|
+
};
|
|
3336
|
+
} catch {
|
|
3337
|
+
return {
|
|
3338
|
+
years: 0,
|
|
3339
|
+
months: 0,
|
|
3340
|
+
days: 0,
|
|
3341
|
+
hours: 0,
|
|
3342
|
+
minutes: 0,
|
|
3343
|
+
seconds: 0,
|
|
3344
|
+
milliseconds: 0
|
|
3345
|
+
};
|
|
3346
|
+
}
|
|
3347
|
+
}
|
|
3348
|
+
round(e = {}) {
|
|
3349
|
+
let { smallestUnit: t = "millisecond", roundingMode: r = "halfExpand" } = e, i = n.toPlainDateTime(this.temporal), a = {
|
|
3350
|
+
year: i.year,
|
|
3351
|
+
month: i.month,
|
|
3352
|
+
day: i.day,
|
|
3353
|
+
hour: i.hour,
|
|
3354
|
+
minute: i.minute,
|
|
3355
|
+
second: i.second,
|
|
3356
|
+
millisecond: i.millisecond,
|
|
3357
|
+
microsecond: i.microsecond || 0,
|
|
3358
|
+
nanosecond: i.nanosecond || 0,
|
|
3359
|
+
week: 0
|
|
3360
|
+
}, o = [
|
|
3361
|
+
"year",
|
|
3362
|
+
"month",
|
|
3363
|
+
"day",
|
|
3364
|
+
"hour",
|
|
3365
|
+
"minute",
|
|
3366
|
+
"second",
|
|
3367
|
+
"millisecond",
|
|
3368
|
+
"microsecond",
|
|
3369
|
+
"nanosecond"
|
|
3370
|
+
], s = o.indexOf(t);
|
|
3371
|
+
if (s === -1) return this.clone();
|
|
3372
|
+
let c = {};
|
|
3373
|
+
for (let e = 0; e < s; e++) {
|
|
3374
|
+
let t = o[e];
|
|
3375
|
+
c[t] = a[t];
|
|
3376
|
+
}
|
|
3377
|
+
let l = o[s], u = a[l];
|
|
3378
|
+
s + 1 < o.length && ((e, t) => {
|
|
3379
|
+
switch (e) {
|
|
3380
|
+
case "ceil": return t > 0;
|
|
3381
|
+
case "floor":
|
|
3382
|
+
case "trunc": return !1;
|
|
3383
|
+
case "halfExpand":
|
|
3384
|
+
case "halfFloor":
|
|
3385
|
+
case "halfCeil": return t >= 5;
|
|
3386
|
+
case "expand": return t > 0;
|
|
3387
|
+
default: return t >= 5;
|
|
3388
|
+
}
|
|
3389
|
+
})(r, a[o[s + 1]]) && (u += 1), c[l] = u;
|
|
3390
|
+
for (let e = s + 1; e < o.length; e++) c[o[e]] = 0;
|
|
3391
|
+
return this.set(c);
|
|
3392
|
+
}
|
|
3393
|
+
toPlainDate() {
|
|
3394
|
+
let e = n.toPlainDateTime(this.temporal);
|
|
3395
|
+
return {
|
|
3396
|
+
year: e.year,
|
|
3397
|
+
month: e.month,
|
|
3398
|
+
day: e.day,
|
|
3399
|
+
dayOfWeek: e.dayOfWeek
|
|
3400
|
+
};
|
|
3401
|
+
}
|
|
3402
|
+
toPlainTime() {
|
|
3403
|
+
let e = n.toPlainDateTime(this.temporal);
|
|
3404
|
+
return {
|
|
3405
|
+
hour: e.hour,
|
|
3406
|
+
minute: e.minute,
|
|
3407
|
+
second: e.second,
|
|
3408
|
+
millisecond: e.millisecond
|
|
3409
|
+
};
|
|
3410
|
+
}
|
|
3411
|
+
withDate(e, t, n) {
|
|
3412
|
+
return this.set({
|
|
3413
|
+
year: e,
|
|
3414
|
+
month: t,
|
|
3415
|
+
day: n
|
|
3416
|
+
});
|
|
3417
|
+
}
|
|
3418
|
+
withTime(e, t = 0, n = 0, r = 0) {
|
|
3419
|
+
return this.set({
|
|
3420
|
+
hour: e,
|
|
3421
|
+
minute: t,
|
|
3422
|
+
second: n,
|
|
3423
|
+
millisecond: r
|
|
3424
|
+
});
|
|
3425
|
+
}
|
|
3426
|
+
getOffset() {
|
|
3427
|
+
return this.temporal?.offset && this.temporal.offset || "Z";
|
|
3428
|
+
}
|
|
3429
|
+
getOffsetNanoseconds() {
|
|
3430
|
+
return this.temporal?.offsetNanoseconds && this.temporal.offsetNanoseconds || 0;
|
|
3431
|
+
}
|
|
3432
|
+
getTimeZoneId() {
|
|
3433
|
+
return this.temporal?.timeZoneId && this.temporal.timeZoneId || null;
|
|
3434
|
+
}
|
|
3435
|
+
startOfDay() {
|
|
3436
|
+
return this.startOf("day");
|
|
3437
|
+
}
|
|
3438
|
+
endOfDay() {
|
|
3439
|
+
return this.endOf("day");
|
|
3440
|
+
}
|
|
3441
|
+
since(e) {
|
|
3442
|
+
let t = n.toPlainDateTime(this.temporal), r = n.toPlainDateTime(e.temporal);
|
|
3443
|
+
try {
|
|
3444
|
+
let e = t.since(r);
|
|
3445
|
+
return {
|
|
3446
|
+
years: Math.floor(e.years || 0),
|
|
3447
|
+
months: Math.floor(e.months || 0),
|
|
3448
|
+
days: Math.floor(e.days || 0),
|
|
3449
|
+
hours: Math.floor(e.hours || 0),
|
|
3450
|
+
minutes: Math.floor(e.minutes || 0),
|
|
3451
|
+
seconds: Math.floor(e.seconds || 0),
|
|
3452
|
+
milliseconds: Math.floor(e.milliseconds || 0)
|
|
3453
|
+
};
|
|
3454
|
+
} catch {
|
|
3455
|
+
return {
|
|
3456
|
+
years: 0,
|
|
3457
|
+
months: 0,
|
|
3458
|
+
days: 0,
|
|
3459
|
+
hours: 0,
|
|
3460
|
+
minutes: 0,
|
|
3461
|
+
seconds: 0,
|
|
3462
|
+
milliseconds: 0
|
|
3463
|
+
};
|
|
3464
|
+
}
|
|
3465
|
+
}
|
|
3466
|
+
toDurationString(t) {
|
|
3467
|
+
let n = t ? this.until(t) : this.until(e.now()), r = [];
|
|
3468
|
+
n.years && r.push(`${n.years}Y`), n.months && r.push(`${n.months}M`), n.days && r.push(`${n.days}D`);
|
|
3469
|
+
let i = [];
|
|
3470
|
+
n.hours && i.push(`${n.hours}H`), n.minutes && i.push(`${n.minutes}M`), n.seconds && i.push(`${n.seconds}S`);
|
|
3471
|
+
let a = `P${r.join("")}${i.length > 0 ? "T" + i.join("") : ""}`;
|
|
3472
|
+
return a === "P" ? "PT0S" : a;
|
|
3473
|
+
}
|
|
3474
|
+
isPast() {
|
|
3475
|
+
return this.isBefore(e.now());
|
|
3476
|
+
}
|
|
3477
|
+
isFuture() {
|
|
3478
|
+
return this.isAfter(e.now());
|
|
3479
|
+
}
|
|
3480
|
+
isToday() {
|
|
3481
|
+
return this.isSame(e.now(), "day");
|
|
3482
|
+
}
|
|
3483
|
+
isTomorrow() {
|
|
3484
|
+
return this.isSame(e.now().add({ day: 1 }), "day");
|
|
3485
|
+
}
|
|
3486
|
+
isYesterday() {
|
|
3487
|
+
return this.isSame(e.now().subtract({ day: 1 }), "day");
|
|
3488
|
+
}
|
|
3489
|
+
}, z = class {
|
|
3490
|
+
id = "gregory";
|
|
3491
|
+
name = "Gregorian Calendar";
|
|
3492
|
+
locale = "en";
|
|
3493
|
+
monthNames = [
|
|
3494
|
+
"January",
|
|
3495
|
+
"February",
|
|
3496
|
+
"March",
|
|
3497
|
+
"April",
|
|
3498
|
+
"May",
|
|
3499
|
+
"June",
|
|
3500
|
+
"July",
|
|
3501
|
+
"August",
|
|
3502
|
+
"September",
|
|
3503
|
+
"October",
|
|
3504
|
+
"November",
|
|
3505
|
+
"December"
|
|
3506
|
+
];
|
|
3507
|
+
monthNamesShort = [
|
|
3508
|
+
"Jan",
|
|
3509
|
+
"Feb",
|
|
3510
|
+
"Mar",
|
|
3511
|
+
"Apr",
|
|
3512
|
+
"May",
|
|
3513
|
+
"Jun",
|
|
3514
|
+
"Jul",
|
|
3515
|
+
"Aug",
|
|
3516
|
+
"Sep",
|
|
3517
|
+
"Oct",
|
|
3518
|
+
"Nov",
|
|
3519
|
+
"Dec"
|
|
3520
|
+
];
|
|
3521
|
+
weekdayNames = [
|
|
3522
|
+
"Sunday",
|
|
3523
|
+
"Monday",
|
|
3524
|
+
"Tuesday",
|
|
3525
|
+
"Wednesday",
|
|
3526
|
+
"Thursday",
|
|
3527
|
+
"Friday",
|
|
3528
|
+
"Saturday"
|
|
3529
|
+
];
|
|
3530
|
+
weekdayNamesShort = [
|
|
3531
|
+
"Sun",
|
|
3532
|
+
"Mon",
|
|
3533
|
+
"Tue",
|
|
3534
|
+
"Wed",
|
|
3535
|
+
"Thu",
|
|
3536
|
+
"Fri",
|
|
3537
|
+
"Sat"
|
|
3538
|
+
];
|
|
3539
|
+
getMonthName(e, t = !1) {
|
|
3540
|
+
return (t ? this.monthNamesShort : this.monthNames)[Math.max(0, Math.min(11, e - 1))];
|
|
3541
|
+
}
|
|
3542
|
+
getWeekdayName(e, t = !1) {
|
|
3543
|
+
return (t ? this.weekdayNamesShort : this.weekdayNames)[Math.max(0, Math.min(6, e - 1))];
|
|
3544
|
+
}
|
|
3545
|
+
isLeapYear(e) {
|
|
3546
|
+
return e % 4 == 0 && e % 100 != 0 || e % 400 == 0;
|
|
3547
|
+
}
|
|
3548
|
+
daysInMonth(e, t) {
|
|
3549
|
+
return t === 2 && this.isLeapYear(e) ? 29 : [
|
|
3550
|
+
31,
|
|
3551
|
+
28,
|
|
3552
|
+
31,
|
|
3553
|
+
30,
|
|
3554
|
+
31,
|
|
3555
|
+
30,
|
|
3556
|
+
31,
|
|
3557
|
+
31,
|
|
3558
|
+
30,
|
|
3559
|
+
31,
|
|
3560
|
+
30,
|
|
3561
|
+
31
|
|
3562
|
+
][Math.max(0, Math.min(11, t - 1))];
|
|
3563
|
+
}
|
|
3564
|
+
daysInYear(e) {
|
|
3565
|
+
return this.isLeapYear(e) ? 366 : 365;
|
|
3566
|
+
}
|
|
3567
|
+
}, B = class e {
|
|
3568
|
+
static instance;
|
|
3569
|
+
calendars = /* @__PURE__ */ new Map();
|
|
3570
|
+
defaultCalendar = "gregory";
|
|
3571
|
+
constructor() {
|
|
3572
|
+
this.register(new z());
|
|
3573
|
+
}
|
|
3574
|
+
static getInstance() {
|
|
3575
|
+
return e.instance ||= new e(), e.instance;
|
|
3576
|
+
}
|
|
3577
|
+
register(e) {
|
|
3578
|
+
this.calendars.set(e.id, e);
|
|
3579
|
+
}
|
|
3580
|
+
get(e) {
|
|
3581
|
+
return this.calendars.get(e);
|
|
3582
|
+
}
|
|
3583
|
+
list() {
|
|
3584
|
+
return Array.from(this.calendars.keys());
|
|
3585
|
+
}
|
|
3586
|
+
setDefault(e) {
|
|
3587
|
+
this.calendars.has(e) && (this.defaultCalendar = e);
|
|
3588
|
+
}
|
|
3589
|
+
getDefault() {
|
|
3590
|
+
let e = this.calendars.get(this.defaultCalendar);
|
|
3591
|
+
if (!e) throw Error(`Default calendar '${this.defaultCalendar}' not found`);
|
|
3592
|
+
return e;
|
|
3593
|
+
}
|
|
3594
|
+
}, te = B.getInstance(), V = class {
|
|
3595
|
+
id = "islamic";
|
|
3596
|
+
name = "Islamic Calendar (Hijri)";
|
|
3597
|
+
locale = "ar";
|
|
3598
|
+
monthNames = [
|
|
3599
|
+
"Muharram",
|
|
3600
|
+
"Safar",
|
|
3601
|
+
"Rabi al-awwal",
|
|
3602
|
+
"Rabi al-thani",
|
|
3603
|
+
"Jumada al-awwal",
|
|
3604
|
+
"Jumada al-thani",
|
|
3605
|
+
"Rajab",
|
|
3606
|
+
"Sha'ban",
|
|
3607
|
+
"Ramadan",
|
|
3608
|
+
"Shawwal",
|
|
3609
|
+
"Dhu al-Qi'dah",
|
|
3610
|
+
"Dhu al-Hijjah"
|
|
3611
|
+
];
|
|
3612
|
+
getMonthName(e) {
|
|
3613
|
+
return this.monthNames[Math.max(0, Math.min(11, e - 1))];
|
|
3614
|
+
}
|
|
3615
|
+
getWeekdayName(e, t = !1) {
|
|
3616
|
+
return (t ? [
|
|
3617
|
+
"Ahd",
|
|
3618
|
+
"Ith",
|
|
3619
|
+
"Sel",
|
|
3620
|
+
"Rab",
|
|
3621
|
+
"Kha",
|
|
3622
|
+
"Jum",
|
|
3623
|
+
"Sab"
|
|
3624
|
+
] : [
|
|
3625
|
+
"Ahad",
|
|
3626
|
+
"Ithnayn",
|
|
3627
|
+
"Salasa",
|
|
3628
|
+
"Rabi",
|
|
3629
|
+
"Khamis",
|
|
3630
|
+
"Jumah",
|
|
3631
|
+
"Sabt"
|
|
3632
|
+
])[Math.max(0, Math.min(6, e - 1))];
|
|
3633
|
+
}
|
|
3634
|
+
isLeapYear(e) {
|
|
3635
|
+
return [
|
|
3636
|
+
2,
|
|
3637
|
+
5,
|
|
3638
|
+
7,
|
|
3639
|
+
10,
|
|
3640
|
+
13,
|
|
3641
|
+
16,
|
|
3642
|
+
18,
|
|
3643
|
+
21,
|
|
3644
|
+
24,
|
|
3645
|
+
26,
|
|
3646
|
+
29
|
|
3647
|
+
].includes(e % 30);
|
|
3648
|
+
}
|
|
3649
|
+
daysInMonth(e, t) {
|
|
3650
|
+
return t % 2 == 1 || t === 12 && this.isLeapYear(e) ? 30 : 29;
|
|
3651
|
+
}
|
|
3652
|
+
daysInYear(e) {
|
|
3653
|
+
return this.isLeapYear(e) ? 355 : 354;
|
|
3654
|
+
}
|
|
3655
|
+
}, H = class {
|
|
3656
|
+
id = "hebrew";
|
|
3657
|
+
name = "Hebrew Calendar";
|
|
3658
|
+
locale = "he";
|
|
3659
|
+
monthNames = [
|
|
3660
|
+
"Tishrei",
|
|
3661
|
+
"Cheshvan",
|
|
3662
|
+
"Kislev",
|
|
3663
|
+
"Tevet",
|
|
3664
|
+
"Shevat",
|
|
3665
|
+
"Adar",
|
|
3666
|
+
"Nisan",
|
|
3667
|
+
"Iyar",
|
|
3668
|
+
"Sivan",
|
|
3669
|
+
"Tammuz",
|
|
3670
|
+
"Av",
|
|
3671
|
+
"Elul"
|
|
3672
|
+
];
|
|
3673
|
+
getMonthName(e) {
|
|
3674
|
+
return this.monthNames[Math.max(0, Math.min(11, e - 1))];
|
|
3675
|
+
}
|
|
3676
|
+
getWeekdayName(e, t = !1) {
|
|
3677
|
+
return (t ? [
|
|
3678
|
+
"Sun",
|
|
3679
|
+
"Mon",
|
|
3680
|
+
"Tue",
|
|
3681
|
+
"Wed",
|
|
3682
|
+
"Thu",
|
|
3683
|
+
"Fri",
|
|
3684
|
+
"Sat"
|
|
3685
|
+
] : [
|
|
3686
|
+
"Sunday",
|
|
3687
|
+
"Monday",
|
|
3688
|
+
"Tuesday",
|
|
3689
|
+
"Wednesday",
|
|
3690
|
+
"Thursday",
|
|
3691
|
+
"Friday",
|
|
3692
|
+
"Saturday"
|
|
3693
|
+
])[Math.max(0, Math.min(6, e - 1))];
|
|
3694
|
+
}
|
|
3695
|
+
isLeapYear(e) {
|
|
3696
|
+
return [
|
|
3697
|
+
3,
|
|
3698
|
+
6,
|
|
3699
|
+
8,
|
|
3700
|
+
11,
|
|
3701
|
+
14,
|
|
3702
|
+
17,
|
|
3703
|
+
19
|
|
3704
|
+
].includes(e % 19);
|
|
3705
|
+
}
|
|
3706
|
+
daysInMonth(e, t) {
|
|
3707
|
+
return [
|
|
3708
|
+
30,
|
|
3709
|
+
29,
|
|
3710
|
+
30,
|
|
3711
|
+
29,
|
|
3712
|
+
30,
|
|
3713
|
+
29,
|
|
3714
|
+
30,
|
|
3715
|
+
29,
|
|
3716
|
+
30,
|
|
3717
|
+
29,
|
|
3718
|
+
30,
|
|
3719
|
+
29
|
|
3720
|
+
][Math.max(0, Math.min(11, t - 1))];
|
|
3721
|
+
}
|
|
3722
|
+
daysInYear(e) {
|
|
3723
|
+
return this.isLeapYear(e) ? 384 : 354;
|
|
3724
|
+
}
|
|
3725
|
+
}, U = class {
|
|
3726
|
+
id = "chinese";
|
|
3727
|
+
name = "Chinese Calendar";
|
|
3728
|
+
locale = "zh";
|
|
3729
|
+
monthNames = [
|
|
3730
|
+
"正月",
|
|
3731
|
+
"二月",
|
|
3732
|
+
"三月",
|
|
3733
|
+
"四月",
|
|
3734
|
+
"五月",
|
|
3735
|
+
"六月",
|
|
3736
|
+
"七月",
|
|
3737
|
+
"八月",
|
|
3738
|
+
"九月",
|
|
3739
|
+
"十月",
|
|
3740
|
+
"冬月",
|
|
3741
|
+
"腊月"
|
|
3742
|
+
];
|
|
3743
|
+
terrestrialBranches = [
|
|
3744
|
+
"子",
|
|
3745
|
+
"丑",
|
|
3746
|
+
"寅",
|
|
3747
|
+
"卯",
|
|
3748
|
+
"辰",
|
|
3749
|
+
"巳",
|
|
3750
|
+
"午",
|
|
3751
|
+
"未",
|
|
3752
|
+
"申",
|
|
3753
|
+
"酉",
|
|
3754
|
+
"戌",
|
|
3755
|
+
"亥"
|
|
3756
|
+
];
|
|
3757
|
+
getMonthName(e) {
|
|
3758
|
+
return this.monthNames[Math.max(0, Math.min(11, e - 1))];
|
|
3759
|
+
}
|
|
3760
|
+
getWeekdayName(e, t = !1) {
|
|
3761
|
+
return (t ? [
|
|
3762
|
+
"日",
|
|
3763
|
+
"一",
|
|
3764
|
+
"二",
|
|
3765
|
+
"三",
|
|
3766
|
+
"四",
|
|
3767
|
+
"五",
|
|
3768
|
+
"六"
|
|
3769
|
+
] : [
|
|
3770
|
+
"星期日",
|
|
3771
|
+
"星期一",
|
|
3772
|
+
"星期二",
|
|
3773
|
+
"星期三",
|
|
3774
|
+
"星期四",
|
|
3775
|
+
"星期五",
|
|
3776
|
+
"星期六"
|
|
3777
|
+
])[Math.max(0, Math.min(6, e - 1))];
|
|
3778
|
+
}
|
|
3779
|
+
isLeapYear(e) {
|
|
3780
|
+
return e % 3 == 0;
|
|
3781
|
+
}
|
|
3782
|
+
daysInMonth(e, t) {
|
|
3783
|
+
return t % 2 == 0 ? 30 : 29;
|
|
3784
|
+
}
|
|
3785
|
+
daysInYear(e) {
|
|
3786
|
+
return this.isLeapYear(e) ? 384 : 354;
|
|
3787
|
+
}
|
|
3788
|
+
getZodiacSign(e) {
|
|
3789
|
+
return this.terrestrialBranches[e % 12];
|
|
3790
|
+
}
|
|
3791
|
+
}, W = class {
|
|
3792
|
+
id = "japanese";
|
|
3793
|
+
name = "Japanese Calendar";
|
|
3794
|
+
locale = "ja";
|
|
3795
|
+
monthNames = [
|
|
3796
|
+
"1月",
|
|
3797
|
+
"2月",
|
|
3798
|
+
"3月",
|
|
3799
|
+
"4月",
|
|
3800
|
+
"5月",
|
|
3801
|
+
"6月",
|
|
3802
|
+
"7月",
|
|
3803
|
+
"8月",
|
|
3804
|
+
"9月",
|
|
3805
|
+
"10月",
|
|
3806
|
+
"11月",
|
|
3807
|
+
"12月"
|
|
3808
|
+
];
|
|
3809
|
+
getMonthName(e) {
|
|
3810
|
+
return this.monthNames[Math.max(0, Math.min(11, e - 1))];
|
|
3811
|
+
}
|
|
3812
|
+
getWeekdayName(e, t = !1) {
|
|
3813
|
+
return (t ? [
|
|
3814
|
+
"日",
|
|
3815
|
+
"月",
|
|
3816
|
+
"火",
|
|
3817
|
+
"水",
|
|
3818
|
+
"木",
|
|
3819
|
+
"金",
|
|
3820
|
+
"土"
|
|
3821
|
+
] : [
|
|
3822
|
+
"日曜日",
|
|
3823
|
+
"月曜日",
|
|
3824
|
+
"火曜日",
|
|
3825
|
+
"水曜日",
|
|
3826
|
+
"木曜日",
|
|
3827
|
+
"金曜日",
|
|
3828
|
+
"土曜日"
|
|
3829
|
+
])[Math.max(0, Math.min(6, e - 1))];
|
|
3830
|
+
}
|
|
3831
|
+
isLeapYear(e) {
|
|
3832
|
+
return e % 4 == 0 && e % 100 != 0 || e % 400 == 0;
|
|
3833
|
+
}
|
|
3834
|
+
daysInMonth(e, t) {
|
|
3835
|
+
return t === 2 && this.isLeapYear(e) ? 29 : [
|
|
3836
|
+
31,
|
|
3837
|
+
28,
|
|
3838
|
+
31,
|
|
3839
|
+
30,
|
|
3840
|
+
31,
|
|
3841
|
+
30,
|
|
3842
|
+
31,
|
|
3843
|
+
31,
|
|
3844
|
+
30,
|
|
3845
|
+
31,
|
|
3846
|
+
30,
|
|
3847
|
+
31
|
|
3848
|
+
][Math.max(0, Math.min(11, t - 1))];
|
|
3849
|
+
}
|
|
3850
|
+
daysInYear(e) {
|
|
3851
|
+
return this.isLeapYear(e) ? 366 : 365;
|
|
3852
|
+
}
|
|
3853
|
+
}, G = class {
|
|
3854
|
+
id = "buddhist";
|
|
3855
|
+
name = "Buddhist Calendar";
|
|
3856
|
+
locale = "th";
|
|
3857
|
+
monthNames = [
|
|
3858
|
+
"January",
|
|
3859
|
+
"February",
|
|
3860
|
+
"March",
|
|
3861
|
+
"April",
|
|
3862
|
+
"May",
|
|
3863
|
+
"June",
|
|
3864
|
+
"July",
|
|
3865
|
+
"August",
|
|
3866
|
+
"September",
|
|
3867
|
+
"October",
|
|
3868
|
+
"November",
|
|
3869
|
+
"December"
|
|
3870
|
+
];
|
|
3871
|
+
getMonthName(e) {
|
|
3872
|
+
return this.monthNames[Math.max(0, Math.min(11, e - 1))];
|
|
3873
|
+
}
|
|
3874
|
+
getWeekdayName(e) {
|
|
3875
|
+
return [
|
|
3876
|
+
"Sunday",
|
|
3877
|
+
"Monday",
|
|
3878
|
+
"Tuesday",
|
|
3879
|
+
"Wednesday",
|
|
3880
|
+
"Thursday",
|
|
3881
|
+
"Friday",
|
|
3882
|
+
"Saturday"
|
|
3883
|
+
][Math.max(0, Math.min(6, e - 1))];
|
|
3884
|
+
}
|
|
3885
|
+
isLeapYear(e) {
|
|
3886
|
+
let t = e - 543;
|
|
3887
|
+
return t % 4 == 0 && t % 100 != 0 || t % 400 == 0;
|
|
3888
|
+
}
|
|
3889
|
+
daysInMonth(e, t) {
|
|
3890
|
+
return t === 2 && this.isLeapYear(e) ? 29 : [
|
|
3891
|
+
31,
|
|
3892
|
+
28,
|
|
3893
|
+
31,
|
|
3894
|
+
30,
|
|
3895
|
+
31,
|
|
3896
|
+
30,
|
|
3897
|
+
31,
|
|
3898
|
+
31,
|
|
3899
|
+
30,
|
|
3900
|
+
31,
|
|
3901
|
+
30,
|
|
3902
|
+
31
|
|
3903
|
+
][Math.max(0, Math.min(11, t - 1))];
|
|
3904
|
+
}
|
|
3905
|
+
daysInYear(e) {
|
|
3906
|
+
return this.isLeapYear(e) ? 366 : 365;
|
|
3907
|
+
}
|
|
3908
|
+
}, K = class e {
|
|
3909
|
+
static instance;
|
|
3910
|
+
plugins = /* @__PURE__ */ new Map();
|
|
3911
|
+
static getInstance() {
|
|
3912
|
+
return e.instance ||= new e(), e.instance;
|
|
3913
|
+
}
|
|
3914
|
+
static use(t, n, r) {
|
|
3915
|
+
e.getInstance().register(t, n, r);
|
|
3916
|
+
}
|
|
3917
|
+
static useMultiple(t, n, r) {
|
|
3918
|
+
let i = e.getInstance();
|
|
3919
|
+
t.forEach((e) => i.register(e, n, r));
|
|
3920
|
+
}
|
|
3921
|
+
static getPlugin(t) {
|
|
3922
|
+
return e.getInstance().plugins.get(t);
|
|
3923
|
+
}
|
|
3924
|
+
static hasPlugin(t) {
|
|
3925
|
+
return e.getInstance().plugins.has(t);
|
|
3926
|
+
}
|
|
3927
|
+
static listPlugins() {
|
|
3928
|
+
let t = e.getInstance();
|
|
3929
|
+
return Array.from(t.plugins.keys());
|
|
3930
|
+
}
|
|
3931
|
+
static unuse(t) {
|
|
3932
|
+
return e.getInstance().plugins.delete(t);
|
|
3933
|
+
}
|
|
3934
|
+
static clear() {
|
|
3935
|
+
e.getInstance().plugins.clear();
|
|
3936
|
+
}
|
|
3937
|
+
register(e, t, n) {
|
|
3938
|
+
if (this.plugins.has(e.name)) {
|
|
3939
|
+
console.warn(`Plugin "${e.name}" is already registered. Skipping...`);
|
|
3940
|
+
return;
|
|
3941
|
+
}
|
|
3942
|
+
try {
|
|
3943
|
+
e.install(t, n), this.plugins.set(e.name, e), console.debug(`Plugin "${e.name}" v${e.version} registered successfully`);
|
|
3944
|
+
} catch (t) {
|
|
3945
|
+
throw console.error(`Failed to register plugin "${e.name}":`, t), Error(`Failed to register plugin "${e.name}": ${t instanceof Error ? t.message : String(t)}`);
|
|
3946
|
+
}
|
|
3947
|
+
}
|
|
3948
|
+
}, q = [
|
|
3949
|
+
{
|
|
3950
|
+
l: "s",
|
|
3951
|
+
r: 44,
|
|
3952
|
+
d: "second"
|
|
3953
|
+
},
|
|
3954
|
+
{
|
|
3955
|
+
l: "m",
|
|
3956
|
+
r: 89
|
|
3957
|
+
},
|
|
3958
|
+
{
|
|
3959
|
+
l: "mm",
|
|
3960
|
+
r: 44,
|
|
3961
|
+
d: "minute"
|
|
3962
|
+
},
|
|
3963
|
+
{
|
|
3964
|
+
l: "h",
|
|
3965
|
+
r: 89
|
|
3966
|
+
},
|
|
3967
|
+
{
|
|
3968
|
+
l: "hh",
|
|
3969
|
+
r: 21,
|
|
3970
|
+
d: "hour"
|
|
3971
|
+
},
|
|
3972
|
+
{
|
|
3973
|
+
l: "d",
|
|
3974
|
+
r: 35
|
|
3975
|
+
},
|
|
3976
|
+
{
|
|
3977
|
+
l: "dd",
|
|
3978
|
+
r: 25,
|
|
3979
|
+
d: "day"
|
|
3980
|
+
},
|
|
3981
|
+
{
|
|
3982
|
+
l: "M",
|
|
3983
|
+
r: 45
|
|
3984
|
+
},
|
|
3985
|
+
{
|
|
3986
|
+
l: "MM",
|
|
3987
|
+
r: 10,
|
|
3988
|
+
d: "month"
|
|
3989
|
+
},
|
|
3990
|
+
{
|
|
3991
|
+
l: "y",
|
|
3992
|
+
r: 17
|
|
3993
|
+
},
|
|
3994
|
+
{
|
|
3995
|
+
l: "yy",
|
|
3996
|
+
d: "year"
|
|
3997
|
+
}
|
|
3998
|
+
], J = {
|
|
3999
|
+
future: "in %s",
|
|
4000
|
+
past: "%s ago",
|
|
4001
|
+
s: "a few seconds",
|
|
4002
|
+
m: "a minute",
|
|
4003
|
+
mm: "%d minutes",
|
|
4004
|
+
h: "an hour",
|
|
4005
|
+
hh: "%d hours",
|
|
4006
|
+
d: "a day",
|
|
4007
|
+
dd: "%d days",
|
|
4008
|
+
M: "a month",
|
|
4009
|
+
MM: "%d months",
|
|
4010
|
+
y: "a year",
|
|
4011
|
+
yy: "%d years"
|
|
4012
|
+
}, Y = class {
|
|
4013
|
+
name = "relative-time";
|
|
4014
|
+
version = "1.0.0";
|
|
4015
|
+
config;
|
|
4016
|
+
formats;
|
|
4017
|
+
constructor(e) {
|
|
4018
|
+
this.config = {
|
|
4019
|
+
thresholds: e?.thresholds || q,
|
|
4020
|
+
rounding: e?.rounding || Math.round
|
|
4021
|
+
}, this.formats = J;
|
|
4022
|
+
}
|
|
4023
|
+
install(e) {
|
|
4024
|
+
let t = this;
|
|
4025
|
+
e.prototype.fromNow = function(e) {
|
|
4026
|
+
return t.formatRelativeTime(this, !1, e);
|
|
4027
|
+
}, e.prototype.toNow = function(e) {
|
|
4028
|
+
return t.formatRelativeTime(this, !0, e);
|
|
4029
|
+
}, e.prototype.humanize = function(e, n) {
|
|
4030
|
+
return e ? t.formatRelativeTime(this, e.isAfter(this), n) : t.formatRelativeTime(this, !1, n);
|
|
4031
|
+
};
|
|
4032
|
+
}
|
|
4033
|
+
formatRelativeTime(e, t, n) {
|
|
4034
|
+
let r = e.constructor.now().diff(e, "millisecond"), i = Math.abs(r), a = t ?? !(r > 0), o = this.getRelativeTimeString(i);
|
|
4035
|
+
return n ? o : (a ? this.formats.future : this.formats.past).replace("%s", o);
|
|
4036
|
+
}
|
|
4037
|
+
getRelativeTimeString(e) {
|
|
4038
|
+
let t = this.config.thresholds || q, n = this.config.rounding || Math.round;
|
|
4039
|
+
for (let r = 0; r < t.length; r++) {
|
|
4040
|
+
let i = t[r];
|
|
4041
|
+
if (r + 1 < t.length && t[r + 1] && i.r && e < i.r * 1e3) continue;
|
|
4042
|
+
let a;
|
|
4043
|
+
a = i.d ? n(e / this.getUnitMilliseconds(i.d)) : 1;
|
|
4044
|
+
let o = i.l, s = this.formats[o] || o;
|
|
4045
|
+
return typeof s == "string" && s.includes("%d") ? s.replace("%d", String(a)) : s;
|
|
4046
|
+
}
|
|
4047
|
+
return `${n(e / 1e3)} seconds`;
|
|
4048
|
+
}
|
|
4049
|
+
getUnitMilliseconds(e) {
|
|
4050
|
+
return {
|
|
4051
|
+
second: 1e3,
|
|
4052
|
+
minute: 1e3 * 60,
|
|
4053
|
+
hour: 1e3 * 60 * 60,
|
|
4054
|
+
day: 1e3 * 60 * 60 * 24,
|
|
4055
|
+
month: 1e3 * 60 * 60 * 24 * 30,
|
|
4056
|
+
year: 1e3 * 60 * 60 * 24 * 365
|
|
4057
|
+
}[e] || 1;
|
|
4058
|
+
}
|
|
4059
|
+
setFormats(e) {
|
|
4060
|
+
Object.assign(this.formats, e);
|
|
4061
|
+
}
|
|
4062
|
+
getFormats() {
|
|
4063
|
+
return { ...this.formats };
|
|
4064
|
+
}
|
|
4065
|
+
}, X = new Y(), Z = class e {
|
|
4066
|
+
years = 0;
|
|
4067
|
+
months = 0;
|
|
4068
|
+
weeks = 0;
|
|
4069
|
+
days = 0;
|
|
4070
|
+
hours = 0;
|
|
4071
|
+
minutes = 0;
|
|
4072
|
+
seconds = 0;
|
|
4073
|
+
milliseconds = 0;
|
|
4074
|
+
constructor(e) {
|
|
4075
|
+
this.years = e.years || 0, this.months = e.months || 0, this.weeks = e.weeks || 0, this.days = e.days || 0, this.hours = e.hours || 0, this.minutes = e.minutes || 0, this.seconds = e.seconds || 0, this.milliseconds = e.milliseconds || 0;
|
|
4076
|
+
}
|
|
4077
|
+
static fromISO(t) {
|
|
4078
|
+
let n = t.match(/^(-)?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:([\d.]+)S)?)?$/);
|
|
4079
|
+
if (!n) throw Error(`Invalid ISO 8601 duration: ${t}`);
|
|
4080
|
+
let [, r, i, a, , o, s, c, l] = n, u = r ? -1 : 1;
|
|
4081
|
+
return new e({
|
|
4082
|
+
years: parseInt(i || "0", 10) * u,
|
|
4083
|
+
months: parseInt(a || "0", 10) * u,
|
|
4084
|
+
days: parseInt(o || "0", 10) * u,
|
|
4085
|
+
hours: parseInt(s || "0", 10) * u,
|
|
4086
|
+
minutes: parseInt(c || "0", 10) * u,
|
|
4087
|
+
seconds: parseFloat(l || "0") * u
|
|
4088
|
+
});
|
|
4089
|
+
}
|
|
4090
|
+
static between(t, n) {
|
|
4091
|
+
let r = t.toTemporal(), i = n.toTemporal().since(r);
|
|
4092
|
+
return new e({
|
|
4093
|
+
years: i.years || 0,
|
|
4094
|
+
months: i.months || 0,
|
|
4095
|
+
weeks: 0,
|
|
4096
|
+
days: i.days || 0,
|
|
4097
|
+
hours: i.hours || 0,
|
|
4098
|
+
minutes: i.minutes || 0,
|
|
4099
|
+
seconds: i.seconds || 0,
|
|
4100
|
+
milliseconds: i.milliseconds || 0
|
|
4101
|
+
});
|
|
4102
|
+
}
|
|
4103
|
+
static fromMilliseconds(t) {
|
|
4104
|
+
let n = t < 0, r = Math.abs(t), i = Math.floor(r / (1e3 * 60 * 60 * 24 * 365)), a = Math.floor(r % (1e3 * 60 * 60 * 24 * 365) / (1e3 * 60 * 60 * 24 * 30)), o = Math.floor(r % (1e3 * 60 * 60 * 24 * 30) / (1e3 * 60 * 60 * 24)), s = Math.floor(r % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)), c = Math.floor(r % (1e3 * 60 * 60) / (1e3 * 60)), l = Math.floor(r % (1e3 * 60) / 1e3), u = Math.floor(r % 1e3), d = n ? -1 : 1;
|
|
4105
|
+
return new e({
|
|
4106
|
+
years: i * d,
|
|
4107
|
+
months: a * d,
|
|
4108
|
+
days: o * d,
|
|
4109
|
+
hours: s * d,
|
|
4110
|
+
minutes: c * d,
|
|
4111
|
+
seconds: l * d,
|
|
4112
|
+
milliseconds: u * d
|
|
4113
|
+
});
|
|
4114
|
+
}
|
|
4115
|
+
as(e) {
|
|
4116
|
+
return this.asMilliseconds() / {
|
|
4117
|
+
milliseconds: 1,
|
|
4118
|
+
seconds: 1e3,
|
|
4119
|
+
minutes: 1e3 * 60,
|
|
4120
|
+
hours: 1e3 * 60 * 60,
|
|
4121
|
+
days: 1e3 * 60 * 60 * 24,
|
|
4122
|
+
weeks: 1e3 * 60 * 60 * 24 * 7,
|
|
4123
|
+
months: 1e3 * 60 * 60 * 24 * 30,
|
|
4124
|
+
years: 1e3 * 60 * 60 * 24 * 365
|
|
4125
|
+
}[e];
|
|
4126
|
+
}
|
|
4127
|
+
asMilliseconds() {
|
|
4128
|
+
return this.years * 1e3 * 60 * 60 * 24 * 365 + this.months * 1e3 * 60 * 60 * 24 * 30 + this.weeks * 1e3 * 60 * 60 * 24 * 7 + this.days * 1e3 * 60 * 60 * 24 + this.hours * 1e3 * 60 * 60 + this.minutes * 1e3 * 60 + this.seconds * 1e3 + this.milliseconds;
|
|
4129
|
+
}
|
|
4130
|
+
asSeconds() {
|
|
4131
|
+
return this.asMilliseconds() / 1e3;
|
|
4132
|
+
}
|
|
4133
|
+
asMinutes() {
|
|
4134
|
+
return this.asSeconds() / 60;
|
|
4135
|
+
}
|
|
4136
|
+
asHours() {
|
|
4137
|
+
return this.asMinutes() / 60;
|
|
4138
|
+
}
|
|
4139
|
+
asDays() {
|
|
4140
|
+
return this.asHours() / 24;
|
|
4141
|
+
}
|
|
4142
|
+
asWeeks() {
|
|
4143
|
+
return this.asDays() / 7;
|
|
4144
|
+
}
|
|
4145
|
+
asMonths() {
|
|
4146
|
+
return this.asDays() / 30;
|
|
4147
|
+
}
|
|
4148
|
+
asYears() {
|
|
4149
|
+
return this.asDays() / 365;
|
|
4150
|
+
}
|
|
4151
|
+
toObject() {
|
|
4152
|
+
return {
|
|
4153
|
+
years: this.years,
|
|
4154
|
+
months: this.months,
|
|
4155
|
+
weeks: this.weeks,
|
|
4156
|
+
days: this.days,
|
|
4157
|
+
hours: this.hours,
|
|
4158
|
+
minutes: this.minutes,
|
|
4159
|
+
seconds: this.seconds,
|
|
4160
|
+
milliseconds: this.milliseconds
|
|
4161
|
+
};
|
|
4162
|
+
}
|
|
4163
|
+
toISO() {
|
|
4164
|
+
let e = "";
|
|
4165
|
+
this.years && (e += `${this.years}Y`), this.months && (e += `${this.months}M`), (this.weeks || this.days) && (e += `${this.weeks * 7 + this.days}D`);
|
|
4166
|
+
let t = "";
|
|
4167
|
+
return this.hours && (t += `${this.hours}H`), this.minutes && (t += `${this.minutes}M`), (this.seconds || this.milliseconds) && (t += `${this.seconds + this.milliseconds / 1e3}S`), `${this.isNegative() ? "-" : ""}P${e}${t ? `T${t}` : ""}`;
|
|
4168
|
+
}
|
|
4169
|
+
humanize() {
|
|
4170
|
+
let e = [];
|
|
4171
|
+
if (this.years && e.push(`${Math.abs(this.years)} year${Math.abs(this.years) === 1 ? "" : "s"}`), this.months && e.push(`${Math.abs(this.months)} month${Math.abs(this.months) === 1 ? "" : "s"}`), this.weeks && e.push(`${Math.abs(this.weeks)} week${Math.abs(this.weeks) === 1 ? "" : "s"}`), this.days && e.push(`${Math.abs(this.days)} day${Math.abs(this.days) === 1 ? "" : "s"}`), this.hours && e.push(`${Math.abs(this.hours)} hour${Math.abs(this.hours) === 1 ? "" : "s"}`), this.minutes && e.push(`${Math.abs(this.minutes)} minute${Math.abs(this.minutes) === 1 ? "" : "s"}`), this.seconds && e.push(`${Math.abs(this.seconds)} second${Math.abs(this.seconds) === 1 ? "" : "s"}`), this.milliseconds && e.push(`${Math.abs(this.milliseconds)} ms`), e.length === 0) return "0 seconds";
|
|
4172
|
+
let t = e.join(", ");
|
|
4173
|
+
return this.isNegative() ? `-${t}` : t;
|
|
4174
|
+
}
|
|
4175
|
+
isNegative() {
|
|
4176
|
+
return this.years < 0 || this.months < 0 || this.weeks < 0 || this.days < 0 || this.hours < 0 || this.minutes < 0 || this.seconds < 0 || this.milliseconds < 0;
|
|
4177
|
+
}
|
|
4178
|
+
abs() {
|
|
4179
|
+
return new e({
|
|
4180
|
+
years: Math.abs(this.years),
|
|
4181
|
+
months: Math.abs(this.months),
|
|
4182
|
+
weeks: Math.abs(this.weeks),
|
|
4183
|
+
days: Math.abs(this.days),
|
|
4184
|
+
hours: Math.abs(this.hours),
|
|
4185
|
+
minutes: Math.abs(this.minutes),
|
|
4186
|
+
seconds: Math.abs(this.seconds),
|
|
4187
|
+
milliseconds: Math.abs(this.milliseconds)
|
|
4188
|
+
});
|
|
4189
|
+
}
|
|
4190
|
+
toString() {
|
|
4191
|
+
return this.toISO();
|
|
4192
|
+
}
|
|
4193
|
+
}, Q = class {
|
|
4194
|
+
name = "duration";
|
|
4195
|
+
version = "1.0.0";
|
|
4196
|
+
install(e) {
|
|
4197
|
+
e.prototype.duration = function(e) {
|
|
4198
|
+
return Z.between(this, e);
|
|
4199
|
+
}, e.Duration = Z, e.duration = {
|
|
4200
|
+
fromISO: (e) => Z.fromISO(e),
|
|
4201
|
+
between: (e, t) => Z.between(e, t),
|
|
4202
|
+
fromMilliseconds: (e) => Z.fromMilliseconds(e)
|
|
4203
|
+
};
|
|
4204
|
+
}
|
|
4205
|
+
}, ne = new Q(), $ = class {
|
|
4206
|
+
name = "advanced-format";
|
|
4207
|
+
version = "1.0.0";
|
|
4208
|
+
install(e) {
|
|
4209
|
+
let t = e.prototype.format;
|
|
4210
|
+
e.prototype.format = function(e) {
|
|
4211
|
+
if (!e || typeof e != "string" || !/Q|Do|w|W|gggg|GGGG|k{1,2}|X|x|zzz?/.test(e)) return t.call(this, e);
|
|
4212
|
+
let n = this.toTemporal(), r = "toPlainDateTime" in n ? n.toPlainDateTime() : n, i = (e) => {
|
|
4213
|
+
let t = [
|
|
4214
|
+
"th",
|
|
4215
|
+
"st",
|
|
4216
|
+
"nd",
|
|
4217
|
+
"rd"
|
|
4218
|
+
], n = e % 100;
|
|
4219
|
+
return e + (t[(n - 20) % 10] || t[n] || t[0]);
|
|
4220
|
+
}, a = (e, t) => String(e).padStart(t, "0"), o = (e) => {
|
|
4221
|
+
let t = new Date(e.year, 0, 4), n = new Date(t);
|
|
4222
|
+
n.setDate(t.getDate() - t.getDay() + (t.getDay() === 0 ? -6 : 1));
|
|
4223
|
+
let r = new Date(e.year, e.month - 1, e.day), i = Math.floor((r.getTime() - n.getTime()) / (10080 * 60 * 1e3)) + 1;
|
|
4224
|
+
return Math.max(1, i);
|
|
4225
|
+
}, s = (e) => {
|
|
4226
|
+
let t = Math.ceil((e.day + new Date(e.year, e.month - 1, 1).getDay()) / 7);
|
|
4227
|
+
return Math.max(1, t);
|
|
4228
|
+
}, c = (e) => {
|
|
4229
|
+
let t = new Date(e.year, e.month - 1, e.day), n = t.getTime() < new Date(e.year, 0, 1).getTime() ? -1 : t.getTime() >= new Date(e.year + 1, 0, 1).getTime() ? 1 : 0;
|
|
4230
|
+
return e.year + n;
|
|
4231
|
+
}, l = (e) => {
|
|
4232
|
+
let t = e.month === 1 && e.day < 4 ? -1 : e.month === 12 && e.day > 28 ? 1 : 0;
|
|
4233
|
+
return e.year + t;
|
|
4234
|
+
}, u = e.replace(/Q|Do|w|W|gggg|GGGG|k{1,2}|X|x|zzz?/g, (e) => {
|
|
4235
|
+
let t = "";
|
|
4236
|
+
switch (e) {
|
|
4237
|
+
case "Q":
|
|
4238
|
+
t = String(Math.ceil(r.month / 3));
|
|
4239
|
+
break;
|
|
4240
|
+
case "Do":
|
|
4241
|
+
t = i(r.day);
|
|
4242
|
+
break;
|
|
4243
|
+
case "W":
|
|
4244
|
+
case "WW":
|
|
4245
|
+
t = a(o(r), e === "W" ? 1 : 2);
|
|
4246
|
+
break;
|
|
4247
|
+
case "w":
|
|
4248
|
+
case "ww":
|
|
4249
|
+
t = a(s(r), e === "w" ? 1 : 2);
|
|
4250
|
+
break;
|
|
4251
|
+
case "GGGG":
|
|
4252
|
+
t = String(c(r));
|
|
4253
|
+
break;
|
|
4254
|
+
case "gggg":
|
|
4255
|
+
t = String(l(r));
|
|
4256
|
+
break;
|
|
4257
|
+
case "k":
|
|
4258
|
+
case "kk":
|
|
4259
|
+
t = a(r.hour === 0 ? 24 : r.hour, e === "k" ? 1 : 2);
|
|
4260
|
+
break;
|
|
4261
|
+
case "X":
|
|
4262
|
+
t = String(Math.floor(this.valueOf() / 1e3));
|
|
4263
|
+
break;
|
|
4264
|
+
case "x":
|
|
4265
|
+
t = String(this.valueOf());
|
|
4266
|
+
break;
|
|
4267
|
+
case "z":
|
|
4268
|
+
t = `${this.getTimezoneOffset()}`;
|
|
4269
|
+
break;
|
|
4270
|
+
case "zzz":
|
|
4271
|
+
t = `${this.getTimezoneOffsetLong()}`;
|
|
4272
|
+
break;
|
|
4273
|
+
default: return e;
|
|
4274
|
+
}
|
|
4275
|
+
return `[${t}]`;
|
|
4276
|
+
});
|
|
4277
|
+
return t.call(this, u);
|
|
4278
|
+
};
|
|
4279
|
+
}
|
|
4280
|
+
getOrdinal(e) {
|
|
4281
|
+
let t = [
|
|
4282
|
+
"th",
|
|
4283
|
+
"st",
|
|
4284
|
+
"nd",
|
|
4285
|
+
"rd"
|
|
4286
|
+
], n = e % 100;
|
|
4287
|
+
return e + (t[(n - 20) % 10] || t[n] || t[0]);
|
|
4288
|
+
}
|
|
4289
|
+
padNumber(e, t) {
|
|
4290
|
+
return String(e).padStart(t, "0");
|
|
4291
|
+
}
|
|
4292
|
+
getISOWeek(e) {
|
|
4293
|
+
let t = new Date(e.year, 0, 4), n = new Date(t);
|
|
4294
|
+
n.setDate(t.getDate() - t.getDay() + (t.getDay() === 0 ? -6 : 1));
|
|
4295
|
+
let r = new Date(e.year, e.month - 1, e.day), i = Math.floor((r.getTime() - n.getTime()) / (10080 * 60 * 1e3)) + 1;
|
|
4296
|
+
return Math.max(1, i);
|
|
4297
|
+
}
|
|
4298
|
+
getWeekOfYear(e) {
|
|
4299
|
+
let t = Math.ceil((e.day + new Date(e.year, e.month - 1, 1).getDay()) / 7);
|
|
4300
|
+
return Math.max(1, t);
|
|
4301
|
+
}
|
|
4302
|
+
getISOWeekYear(e) {
|
|
4303
|
+
let t = new Date(e.year, e.month - 1, e.day), n = t.getTime() < new Date(e.year, 0, 1).getTime() ? -1 : t.getTime() >= new Date(e.year + 1, 0, 1).getTime() ? 1 : 0;
|
|
4304
|
+
return e.year + n;
|
|
4305
|
+
}
|
|
4306
|
+
getWeekYear(e) {
|
|
4307
|
+
let t = e.month === 1 && e.day < 4 ? -1 : e.month === 12 && e.day > 28 ? 1 : 0;
|
|
4308
|
+
return e.year + t;
|
|
4309
|
+
}
|
|
4310
|
+
getTimezoneOffset() {
|
|
4311
|
+
try {
|
|
4312
|
+
let e = /* @__PURE__ */ new Date();
|
|
4313
|
+
return new Intl.DateTimeFormat("en-US", {
|
|
4314
|
+
timeZone: "UTC",
|
|
4315
|
+
timeZoneName: "short"
|
|
4316
|
+
}).formatToParts(e).find((e) => e.type === "timeZoneName")?.value || "UTC";
|
|
4317
|
+
} catch {
|
|
4318
|
+
return "UTC";
|
|
4319
|
+
}
|
|
4320
|
+
}
|
|
4321
|
+
getTimezoneOffsetLong() {
|
|
4322
|
+
try {
|
|
4323
|
+
let e = /* @__PURE__ */ new Date();
|
|
4324
|
+
return new Intl.DateTimeFormat("en-US", {
|
|
4325
|
+
timeZone: "UTC",
|
|
4326
|
+
timeZoneName: "long"
|
|
4327
|
+
}).formatToParts(e).find((e) => e.type === "timeZoneName")?.value || "Coordinated Universal Time";
|
|
4328
|
+
} catch {
|
|
4329
|
+
return "Coordinated Universal Time";
|
|
4330
|
+
}
|
|
4331
|
+
}
|
|
4332
|
+
}, re = new $();
|
|
4333
|
+
//#endregion
|
|
4334
|
+
//#region src/index.ts
|
|
4335
|
+
function ie(e, t) {
|
|
4336
|
+
return new R(e, t);
|
|
4337
|
+
}
|
|
4338
|
+
var ae = "1.0.1";
|
|
4339
|
+
//#endregion
|
|
4340
|
+
export { $ as AdvancedFormatPlugin, G as BuddhistCalendar, B as CalendarManager, U as ChineseCalendar, L as DateFormatter, Z as Duration, Q as DurationPlugin, P as EN_LOCALE, F as ES_LOCALE, z as GregorianCalendar, H as HebrewCalendar, V as IslamicCalendar, W as JapaneseCalendar, N as LOCALES_COUNT, I as LocaleManager, K as PluginManager, Y as RelativeTimePlugin, n as TemporalAdapter, R as TimeGuard, re as advancedFormatPlugin, te as calendarManager, ne as durationPlugin, M as getAvailableLocales, X as relativeTimePlugin, ie as timeGuard, ae as version };
|