@kong-ui-public/misc-widgets 0.5.18 → 0.5.20

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.
@@ -1,3388 +1,27 @@
1
- import { defineComponent as vt, h as Kt, computed as Zt, ref as Yt, onMounted as Wt, resolveComponent as zt, openBlock as qt, createElementBlock as Qt, createVNode as Jt, withCtx as $t, createElementVNode as ot, unref as at, toDisplayString as tr, createCommentVNode as rr } from "vue";
2
- var W = function(t, r) {
3
- return W = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
4
- e.__proto__ = n;
5
- } || function(e, n) {
6
- for (var i in n)
7
- Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
8
- }, W(t, r);
9
- };
10
- function B(t, r) {
11
- if (typeof r != "function" && r !== null)
12
- throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
13
- W(t, r);
14
- function e() {
15
- this.constructor = t;
16
- }
17
- t.prototype = r === null ? Object.create(r) : (e.prototype = r.prototype, new e());
18
- }
19
- var m = function() {
20
- return m = Object.assign || function(t) {
21
- for (var r, e = 1, n = arguments.length; e < n; e++) {
22
- r = arguments[e];
23
- for (var i in r)
24
- Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
25
- }
26
- return t;
27
- }, m.apply(this, arguments);
28
- };
29
- function er(t, r) {
30
- var e = {};
31
- for (var n in t)
32
- Object.prototype.hasOwnProperty.call(t, n) && r.indexOf(n) < 0 && (e[n] = t[n]);
33
- if (t != null && typeof Object.getOwnPropertySymbols == "function")
34
- for (var i = 0, n = Object.getOwnPropertySymbols(t); i < n.length; i++)
35
- r.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[i]) && (e[n[i]] = t[n[i]]);
36
- return e;
37
- }
38
- function P(t, r, e) {
39
- if (e || arguments.length === 2)
40
- for (var n = 0, i = r.length, o; n < i; n++)
41
- (o || !(n in r)) && (o || (o = Array.prototype.slice.call(r, 0, n)), o[n] = r[n]);
42
- return t.concat(o || Array.prototype.slice.call(r));
43
- }
44
- var g;
45
- (function(t) {
46
- t[t.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", t[t.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", t[t.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", t[t.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", t[t.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", t[t.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", t[t.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", t[t.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", t[t.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", t[t.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", t[t.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", t[t.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", t[t.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", t[t.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", t[t.INVALID_TAG = 23] = "INVALID_TAG", t[t.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", t[t.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", t[t.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
47
- })(g || (g = {}));
48
- var y;
49
- (function(t) {
50
- t[t.literal = 0] = "literal", t[t.argument = 1] = "argument", t[t.number = 2] = "number", t[t.date = 3] = "date", t[t.time = 4] = "time", t[t.select = 5] = "select", t[t.plural = 6] = "plural", t[t.pound = 7] = "pound", t[t.tag = 8] = "tag";
51
- })(y || (y = {}));
52
- var w;
53
- (function(t) {
54
- t[t.number = 0] = "number", t[t.dateTime = 1] = "dateTime";
55
- })(w || (w = {}));
56
- function st(t) {
57
- return t.type === y.literal;
58
- }
59
- function nr(t) {
60
- return t.type === y.argument;
61
- }
62
- function Tt(t) {
63
- return t.type === y.number;
64
- }
65
- function _t(t) {
66
- return t.type === y.date;
67
- }
68
- function Ht(t) {
69
- return t.type === y.time;
70
- }
71
- function St(t) {
72
- return t.type === y.select;
73
- }
74
- function At(t) {
75
- return t.type === y.plural;
76
- }
77
- function ir(t) {
78
- return t.type === y.pound;
79
- }
80
- function Bt(t) {
81
- return t.type === y.tag;
82
- }
83
- function Nt(t) {
84
- return !!(t && typeof t == "object" && t.type === w.number);
85
- }
86
- function z(t) {
87
- return !!(t && typeof t == "object" && t.type === w.dateTime);
88
- }
89
- var It = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, or = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
90
- function ar(t) {
91
- var r = {};
92
- return t.replace(or, function(e) {
93
- var n = e.length;
94
- switch (e[0]) {
95
- case "G":
96
- r.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
97
- break;
98
- case "y":
99
- r.year = n === 2 ? "2-digit" : "numeric";
100
- break;
101
- case "Y":
102
- case "u":
103
- case "U":
104
- case "r":
105
- throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
106
- case "q":
107
- case "Q":
108
- throw new RangeError("`q/Q` (quarter) patterns are not supported");
109
- case "M":
110
- case "L":
111
- r.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
112
- break;
113
- case "w":
114
- case "W":
115
- throw new RangeError("`w/W` (week) patterns are not supported");
116
- case "d":
117
- r.day = ["numeric", "2-digit"][n - 1];
118
- break;
119
- case "D":
120
- case "F":
121
- case "g":
122
- throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
123
- case "E":
124
- r.weekday = n === 4 ? "short" : n === 5 ? "narrow" : "short";
125
- break;
126
- case "e":
127
- if (n < 4)
128
- throw new RangeError("`e..eee` (weekday) patterns are not supported");
129
- r.weekday = ["short", "long", "narrow", "short"][n - 4];
130
- break;
131
- case "c":
132
- if (n < 4)
133
- throw new RangeError("`c..ccc` (weekday) patterns are not supported");
134
- r.weekday = ["short", "long", "narrow", "short"][n - 4];
135
- break;
136
- case "a":
137
- r.hour12 = !0;
138
- break;
139
- case "b":
140
- case "B":
141
- throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
142
- case "h":
143
- r.hourCycle = "h12", r.hour = ["numeric", "2-digit"][n - 1];
144
- break;
145
- case "H":
146
- r.hourCycle = "h23", r.hour = ["numeric", "2-digit"][n - 1];
147
- break;
148
- case "K":
149
- r.hourCycle = "h11", r.hour = ["numeric", "2-digit"][n - 1];
150
- break;
151
- case "k":
152
- r.hourCycle = "h24", r.hour = ["numeric", "2-digit"][n - 1];
153
- break;
154
- case "j":
155
- case "J":
156
- case "C":
157
- throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
158
- case "m":
159
- r.minute = ["numeric", "2-digit"][n - 1];
160
- break;
161
- case "s":
162
- r.second = ["numeric", "2-digit"][n - 1];
163
- break;
164
- case "S":
165
- case "A":
166
- throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
167
- case "z":
168
- r.timeZoneName = n < 4 ? "short" : "long";
169
- break;
170
- case "Z":
171
- case "O":
172
- case "v":
173
- case "V":
174
- case "X":
175
- case "x":
176
- throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
177
- }
178
- return "";
179
- }), r;
180
- }
181
- var sr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
182
- function hr(t) {
183
- if (t.length === 0)
184
- throw new Error("Number skeleton cannot be empty");
185
- for (var r = t.split(sr).filter(function(f) {
186
- return f.length > 0;
187
- }), e = [], n = 0, i = r; n < i.length; n++) {
188
- var o = i[n], a = o.split("/");
189
- if (a.length === 0)
190
- throw new Error("Invalid number skeleton");
191
- for (var s = a[0], c = a.slice(1), u = 0, h = c; u < h.length; u++) {
192
- var l = h[u];
193
- if (l.length === 0)
194
- throw new Error("Invalid number skeleton");
195
- }
196
- e.push({ stem: s, options: c });
197
- }
198
- return e;
199
- }
200
- function ur(t) {
201
- return t.replace(/^(.*?)-/, "");
202
- }
203
- var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Lt = /^(@+)?(\+|#+)?[rs]?$/g, cr = /(\*)(0+)|(#+)(0+)|(0+)/g, Pt = /^(0+)$/;
204
- function ut(t) {
205
- var r = {};
206
- return t[t.length - 1] === "r" ? r.roundingPriority = "morePrecision" : t[t.length - 1] === "s" && (r.roundingPriority = "lessPrecision"), t.replace(Lt, function(e, n, i) {
207
- return typeof i != "string" ? (r.minimumSignificantDigits = n.length, r.maximumSignificantDigits = n.length) : i === "+" ? r.minimumSignificantDigits = n.length : n[0] === "#" ? r.maximumSignificantDigits = n.length : (r.minimumSignificantDigits = n.length, r.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
208
- }), r;
209
- }
210
- function Rt(t) {
211
- switch (t) {
212
- case "sign-auto":
213
- return {
214
- signDisplay: "auto"
215
- };
216
- case "sign-accounting":
217
- case "()":
218
- return {
219
- currencySign: "accounting"
220
- };
221
- case "sign-always":
222
- case "+!":
223
- return {
224
- signDisplay: "always"
225
- };
226
- case "sign-accounting-always":
227
- case "()!":
228
- return {
229
- signDisplay: "always",
230
- currencySign: "accounting"
231
- };
232
- case "sign-except-zero":
233
- case "+?":
234
- return {
235
- signDisplay: "exceptZero"
236
- };
237
- case "sign-accounting-except-zero":
238
- case "()?":
239
- return {
240
- signDisplay: "exceptZero",
241
- currencySign: "accounting"
242
- };
243
- case "sign-never":
244
- case "+_":
245
- return {
246
- signDisplay: "never"
247
- };
248
- }
249
- }
250
- function lr(t) {
251
- var r;
252
- if (t[0] === "E" && t[1] === "E" ? (r = {
253
- notation: "engineering"
254
- }, t = t.slice(2)) : t[0] === "E" && (r = {
255
- notation: "scientific"
256
- }, t = t.slice(1)), r) {
257
- var e = t.slice(0, 2);
258
- if (e === "+!" ? (r.signDisplay = "always", t = t.slice(2)) : e === "+?" && (r.signDisplay = "exceptZero", t = t.slice(2)), !Pt.test(t))
259
- throw new Error("Malformed concise eng/scientific notation");
260
- r.minimumIntegerDigits = t.length;
261
- }
262
- return r;
263
- }
264
- function ct(t) {
265
- var r = {}, e = Rt(t);
266
- return e || r;
267
- }
268
- function fr(t) {
269
- for (var r = {}, e = 0, n = t; e < n.length; e++) {
270
- var i = n[e];
271
- switch (i.stem) {
272
- case "percent":
273
- case "%":
274
- r.style = "percent";
275
- continue;
276
- case "%x100":
277
- r.style = "percent", r.scale = 100;
278
- continue;
279
- case "currency":
280
- r.style = "currency", r.currency = i.options[0];
281
- continue;
282
- case "group-off":
283
- case ",_":
284
- r.useGrouping = !1;
285
- continue;
286
- case "precision-integer":
287
- case ".":
288
- r.maximumFractionDigits = 0;
289
- continue;
290
- case "measure-unit":
291
- case "unit":
292
- r.style = "unit", r.unit = ur(i.options[0]);
293
- continue;
294
- case "compact-short":
295
- case "K":
296
- r.notation = "compact", r.compactDisplay = "short";
297
- continue;
298
- case "compact-long":
299
- case "KK":
300
- r.notation = "compact", r.compactDisplay = "long";
301
- continue;
302
- case "scientific":
303
- r = m(m(m({}, r), { notation: "scientific" }), i.options.reduce(function(c, u) {
304
- return m(m({}, c), ct(u));
305
- }, {}));
306
- continue;
307
- case "engineering":
308
- r = m(m(m({}, r), { notation: "engineering" }), i.options.reduce(function(c, u) {
309
- return m(m({}, c), ct(u));
310
- }, {}));
311
- continue;
312
- case "notation-simple":
313
- r.notation = "standard";
314
- continue;
315
- case "unit-width-narrow":
316
- r.currencyDisplay = "narrowSymbol", r.unitDisplay = "narrow";
317
- continue;
318
- case "unit-width-short":
319
- r.currencyDisplay = "code", r.unitDisplay = "short";
320
- continue;
321
- case "unit-width-full-name":
322
- r.currencyDisplay = "name", r.unitDisplay = "long";
323
- continue;
324
- case "unit-width-iso-code":
325
- r.currencyDisplay = "symbol";
326
- continue;
327
- case "scale":
328
- r.scale = parseFloat(i.options[0]);
329
- continue;
330
- case "integer-width":
331
- if (i.options.length > 1)
332
- throw new RangeError("integer-width stems only accept a single optional option");
333
- i.options[0].replace(cr, function(c, u, h, l, f, p) {
334
- if (u)
335
- r.minimumIntegerDigits = h.length;
336
- else {
337
- if (l && f)
338
- throw new Error("We currently do not support maximum integer digits");
339
- if (p)
340
- throw new Error("We currently do not support exact integer digits");
341
- }
342
- return "";
343
- });
344
- continue;
345
- }
346
- if (Pt.test(i.stem)) {
347
- r.minimumIntegerDigits = i.stem.length;
348
- continue;
349
- }
350
- if (ht.test(i.stem)) {
351
- if (i.options.length > 1)
352
- throw new RangeError("Fraction-precision stems only accept a single optional option");
353
- i.stem.replace(ht, function(c, u, h, l, f, p) {
354
- return h === "*" ? r.minimumFractionDigits = u.length : l && l[0] === "#" ? r.maximumFractionDigits = l.length : f && p ? (r.minimumFractionDigits = f.length, r.maximumFractionDigits = f.length + p.length) : (r.minimumFractionDigits = u.length, r.maximumFractionDigits = u.length), "";
355
- });
356
- var o = i.options[0];
357
- o === "w" ? r = m(m({}, r), { trailingZeroDisplay: "stripIfInteger" }) : o && (r = m(m({}, r), ut(o)));
358
- continue;
359
- }
360
- if (Lt.test(i.stem)) {
361
- r = m(m({}, r), ut(i.stem));
362
- continue;
363
- }
364
- var a = Rt(i.stem);
365
- a && (r = m(m({}, r), a));
366
- var s = lr(i.stem);
367
- s && (r = m(m({}, r), s));
368
- }
369
- return r;
370
- }
371
- var j = {
372
- "001": [
373
- "H",
374
- "h"
375
- ],
376
- AC: [
377
- "H",
378
- "h",
379
- "hb",
380
- "hB"
381
- ],
382
- AD: [
383
- "H",
384
- "hB"
385
- ],
386
- AE: [
387
- "h",
388
- "hB",
389
- "hb",
390
- "H"
391
- ],
392
- AF: [
393
- "H",
394
- "hb",
395
- "hB",
396
- "h"
397
- ],
398
- AG: [
399
- "h",
400
- "hb",
401
- "H",
402
- "hB"
403
- ],
404
- AI: [
405
- "H",
406
- "h",
407
- "hb",
408
- "hB"
409
- ],
410
- AL: [
411
- "h",
412
- "H",
413
- "hB"
414
- ],
415
- AM: [
416
- "H",
417
- "hB"
418
- ],
419
- AO: [
420
- "H",
421
- "hB"
422
- ],
423
- AR: [
424
- "H",
425
- "h",
426
- "hB",
427
- "hb"
428
- ],
429
- AS: [
430
- "h",
431
- "H"
432
- ],
433
- AT: [
434
- "H",
435
- "hB"
436
- ],
437
- AU: [
438
- "h",
439
- "hb",
440
- "H",
441
- "hB"
442
- ],
443
- AW: [
444
- "H",
445
- "hB"
446
- ],
447
- AX: [
448
- "H"
449
- ],
450
- AZ: [
451
- "H",
452
- "hB",
453
- "h"
454
- ],
455
- BA: [
456
- "H",
457
- "hB",
458
- "h"
459
- ],
460
- BB: [
461
- "h",
462
- "hb",
463
- "H",
464
- "hB"
465
- ],
466
- BD: [
467
- "h",
468
- "hB",
469
- "H"
470
- ],
471
- BE: [
472
- "H",
473
- "hB"
474
- ],
475
- BF: [
476
- "H",
477
- "hB"
478
- ],
479
- BG: [
480
- "H",
481
- "hB",
482
- "h"
483
- ],
484
- BH: [
485
- "h",
486
- "hB",
487
- "hb",
488
- "H"
489
- ],
490
- BJ: [
491
- "H",
492
- "hB"
493
- ],
494
- BL: [
495
- "H",
496
- "hB"
497
- ],
498
- BM: [
499
- "h",
500
- "hb",
501
- "H",
502
- "hB"
503
- ],
504
- BN: [
505
- "hb",
506
- "hB",
507
- "h",
508
- "H"
509
- ],
510
- BO: [
511
- "H",
512
- "hB",
513
- "h",
514
- "hb"
515
- ],
516
- BQ: [
517
- "H"
518
- ],
519
- BR: [
520
- "H",
521
- "hB"
522
- ],
523
- BS: [
524
- "h",
525
- "hb",
526
- "H",
527
- "hB"
528
- ],
529
- BT: [
530
- "h",
531
- "H"
532
- ],
533
- BW: [
534
- "H",
535
- "h",
536
- "hb",
537
- "hB"
538
- ],
539
- BZ: [
540
- "H",
541
- "h",
542
- "hb",
543
- "hB"
544
- ],
545
- CA: [
546
- "h",
547
- "hb",
548
- "H",
549
- "hB"
550
- ],
551
- CC: [
552
- "H",
553
- "h",
554
- "hb",
555
- "hB"
556
- ],
557
- CD: [
558
- "hB",
559
- "H"
560
- ],
561
- CF: [
562
- "H",
563
- "h",
564
- "hB"
565
- ],
566
- CG: [
567
- "H",
568
- "hB"
569
- ],
570
- CH: [
571
- "H",
572
- "hB",
573
- "h"
574
- ],
575
- CI: [
576
- "H",
577
- "hB"
578
- ],
579
- CK: [
580
- "H",
581
- "h",
582
- "hb",
583
- "hB"
584
- ],
585
- CL: [
586
- "H",
587
- "h",
588
- "hB",
589
- "hb"
590
- ],
591
- CM: [
592
- "H",
593
- "h",
594
- "hB"
595
- ],
596
- CN: [
597
- "H",
598
- "hB",
599
- "hb",
600
- "h"
601
- ],
602
- CO: [
603
- "h",
604
- "H",
605
- "hB",
606
- "hb"
607
- ],
608
- CP: [
609
- "H"
610
- ],
611
- CR: [
612
- "H",
613
- "h",
614
- "hB",
615
- "hb"
616
- ],
617
- CU: [
618
- "H",
619
- "h",
620
- "hB",
621
- "hb"
622
- ],
623
- CV: [
624
- "H",
625
- "hB"
626
- ],
627
- CX: [
628
- "H",
629
- "h",
630
- "hb",
631
- "hB"
632
- ],
633
- CY: [
634
- "h",
635
- "H",
636
- "hb",
637
- "hB"
638
- ],
639
- CZ: [
640
- "H"
641
- ],
642
- DE: [
643
- "H",
644
- "hB"
645
- ],
646
- DG: [
647
- "H",
648
- "h",
649
- "hb",
650
- "hB"
651
- ],
652
- DJ: [
653
- "h",
654
- "H"
655
- ],
656
- DK: [
657
- "H"
658
- ],
659
- DM: [
660
- "h",
661
- "hb",
662
- "H",
663
- "hB"
664
- ],
665
- DO: [
666
- "h",
667
- "H",
668
- "hB",
669
- "hb"
670
- ],
671
- DZ: [
672
- "h",
673
- "hB",
674
- "hb",
675
- "H"
676
- ],
677
- EA: [
678
- "H",
679
- "h",
680
- "hB",
681
- "hb"
682
- ],
683
- EC: [
684
- "H",
685
- "hB",
686
- "h",
687
- "hb"
688
- ],
689
- EE: [
690
- "H",
691
- "hB"
692
- ],
693
- EG: [
694
- "h",
695
- "hB",
696
- "hb",
697
- "H"
698
- ],
699
- EH: [
700
- "h",
701
- "hB",
702
- "hb",
703
- "H"
704
- ],
705
- ER: [
706
- "h",
707
- "H"
708
- ],
709
- ES: [
710
- "H",
711
- "hB",
712
- "h",
713
- "hb"
714
- ],
715
- ET: [
716
- "hB",
717
- "hb",
718
- "h",
719
- "H"
720
- ],
721
- FI: [
722
- "H"
723
- ],
724
- FJ: [
725
- "h",
726
- "hb",
727
- "H",
728
- "hB"
729
- ],
730
- FK: [
731
- "H",
732
- "h",
733
- "hb",
734
- "hB"
735
- ],
736
- FM: [
737
- "h",
738
- "hb",
739
- "H",
740
- "hB"
741
- ],
742
- FR: [
743
- "H",
744
- "hB"
745
- ],
746
- GA: [
747
- "H",
748
- "hB"
749
- ],
750
- GB: [
751
- "H",
752
- "h",
753
- "hb",
754
- "hB"
755
- ],
756
- GD: [
757
- "h",
758
- "hb",
759
- "H",
760
- "hB"
761
- ],
762
- GE: [
763
- "H",
764
- "hB",
765
- "h"
766
- ],
767
- GF: [
768
- "H",
769
- "hB"
770
- ],
771
- GG: [
772
- "H",
773
- "h",
774
- "hb",
775
- "hB"
776
- ],
777
- GH: [
778
- "h",
779
- "H"
780
- ],
781
- GI: [
782
- "H",
783
- "h",
784
- "hb",
785
- "hB"
786
- ],
787
- GM: [
788
- "h",
789
- "hb",
790
- "H",
791
- "hB"
792
- ],
793
- GN: [
794
- "H",
795
- "hB"
796
- ],
797
- GP: [
798
- "H",
799
- "hB"
800
- ],
801
- GQ: [
802
- "H",
803
- "hB",
804
- "h",
805
- "hb"
806
- ],
807
- GR: [
808
- "h",
809
- "H",
810
- "hb",
811
- "hB"
812
- ],
813
- GT: [
814
- "H",
815
- "h",
816
- "hB",
817
- "hb"
818
- ],
819
- GU: [
820
- "h",
821
- "hb",
822
- "H",
823
- "hB"
824
- ],
825
- GW: [
826
- "H",
827
- "hB"
828
- ],
829
- GY: [
830
- "h",
831
- "hb",
832
- "H",
833
- "hB"
834
- ],
835
- HK: [
836
- "h",
837
- "hB",
838
- "hb",
839
- "H"
840
- ],
841
- HN: [
842
- "H",
843
- "h",
844
- "hB",
845
- "hb"
846
- ],
847
- HR: [
848
- "H",
849
- "hB"
850
- ],
851
- IC: [
852
- "H",
853
- "h",
854
- "hB",
855
- "hb"
856
- ],
857
- ID: [
858
- "H"
859
- ],
860
- IE: [
861
- "H",
862
- "h",
863
- "hb",
864
- "hB"
865
- ],
866
- IL: [
867
- "H",
868
- "hB"
869
- ],
870
- IM: [
871
- "H",
872
- "h",
873
- "hb",
874
- "hB"
875
- ],
876
- IN: [
877
- "h",
878
- "H"
879
- ],
880
- IO: [
881
- "H",
882
- "h",
883
- "hb",
884
- "hB"
885
- ],
886
- IQ: [
887
- "h",
888
- "hB",
889
- "hb",
890
- "H"
891
- ],
892
- IR: [
893
- "hB",
894
- "H"
895
- ],
896
- IS: [
897
- "H"
898
- ],
899
- IT: [
900
- "H",
901
- "hB"
902
- ],
903
- JE: [
904
- "H",
905
- "h",
906
- "hb",
907
- "hB"
908
- ],
909
- JM: [
910
- "h",
911
- "hb",
912
- "H",
913
- "hB"
914
- ],
915
- JO: [
916
- "h",
917
- "hB",
918
- "hb",
919
- "H"
920
- ],
921
- JP: [
922
- "H",
923
- "h",
924
- "K"
925
- ],
926
- KE: [
927
- "hB",
928
- "hb",
929
- "H",
930
- "h"
931
- ],
932
- KG: [
933
- "H",
934
- "h",
935
- "hB",
936
- "hb"
937
- ],
938
- KH: [
939
- "hB",
940
- "h",
941
- "H",
942
- "hb"
943
- ],
944
- KI: [
945
- "h",
946
- "hb",
947
- "H",
948
- "hB"
949
- ],
950
- KM: [
951
- "H",
952
- "h",
953
- "hB",
954
- "hb"
955
- ],
956
- KN: [
957
- "h",
958
- "hb",
959
- "H",
960
- "hB"
961
- ],
962
- KP: [
963
- "h",
964
- "H",
965
- "hB",
966
- "hb"
967
- ],
968
- KR: [
969
- "h",
970
- "H",
971
- "hB",
972
- "hb"
973
- ],
974
- KW: [
975
- "h",
976
- "hB",
977
- "hb",
978
- "H"
979
- ],
980
- KY: [
981
- "h",
982
- "hb",
983
- "H",
984
- "hB"
985
- ],
986
- KZ: [
987
- "H",
988
- "hB"
989
- ],
990
- LA: [
991
- "H",
992
- "hb",
993
- "hB",
994
- "h"
995
- ],
996
- LB: [
997
- "h",
998
- "hB",
999
- "hb",
1000
- "H"
1001
- ],
1002
- LC: [
1003
- "h",
1004
- "hb",
1005
- "H",
1006
- "hB"
1007
- ],
1008
- LI: [
1009
- "H",
1010
- "hB",
1011
- "h"
1012
- ],
1013
- LK: [
1014
- "H",
1015
- "h",
1016
- "hB",
1017
- "hb"
1018
- ],
1019
- LR: [
1020
- "h",
1021
- "hb",
1022
- "H",
1023
- "hB"
1024
- ],
1025
- LS: [
1026
- "h",
1027
- "H"
1028
- ],
1029
- LT: [
1030
- "H",
1031
- "h",
1032
- "hb",
1033
- "hB"
1034
- ],
1035
- LU: [
1036
- "H",
1037
- "h",
1038
- "hB"
1039
- ],
1040
- LV: [
1041
- "H",
1042
- "hB",
1043
- "hb",
1044
- "h"
1045
- ],
1046
- LY: [
1047
- "h",
1048
- "hB",
1049
- "hb",
1050
- "H"
1051
- ],
1052
- MA: [
1053
- "H",
1054
- "h",
1055
- "hB",
1056
- "hb"
1057
- ],
1058
- MC: [
1059
- "H",
1060
- "hB"
1061
- ],
1062
- MD: [
1063
- "H",
1064
- "hB"
1065
- ],
1066
- ME: [
1067
- "H",
1068
- "hB",
1069
- "h"
1070
- ],
1071
- MF: [
1072
- "H",
1073
- "hB"
1074
- ],
1075
- MH: [
1076
- "h",
1077
- "hb",
1078
- "H",
1079
- "hB"
1080
- ],
1081
- MK: [
1082
- "H",
1083
- "h",
1084
- "hb",
1085
- "hB"
1086
- ],
1087
- ML: [
1088
- "H"
1089
- ],
1090
- MM: [
1091
- "hB",
1092
- "hb",
1093
- "H",
1094
- "h"
1095
- ],
1096
- MN: [
1097
- "H",
1098
- "h",
1099
- "hb",
1100
- "hB"
1101
- ],
1102
- MO: [
1103
- "h",
1104
- "hB",
1105
- "hb",
1106
- "H"
1107
- ],
1108
- MP: [
1109
- "h",
1110
- "hb",
1111
- "H",
1112
- "hB"
1113
- ],
1114
- MQ: [
1115
- "H",
1116
- "hB"
1117
- ],
1118
- MR: [
1119
- "h",
1120
- "hB",
1121
- "hb",
1122
- "H"
1123
- ],
1124
- MS: [
1125
- "H",
1126
- "h",
1127
- "hb",
1128
- "hB"
1129
- ],
1130
- MW: [
1131
- "h",
1132
- "hb",
1133
- "H",
1134
- "hB"
1135
- ],
1136
- MX: [
1137
- "H",
1138
- "h",
1139
- "hB",
1140
- "hb"
1141
- ],
1142
- MY: [
1143
- "hb",
1144
- "hB",
1145
- "h",
1146
- "H"
1147
- ],
1148
- MZ: [
1149
- "H",
1150
- "hB"
1151
- ],
1152
- NA: [
1153
- "h",
1154
- "H",
1155
- "hB",
1156
- "hb"
1157
- ],
1158
- NC: [
1159
- "H",
1160
- "hB"
1161
- ],
1162
- NE: [
1163
- "H"
1164
- ],
1165
- NF: [
1166
- "H",
1167
- "h",
1168
- "hb",
1169
- "hB"
1170
- ],
1171
- NG: [
1172
- "H",
1173
- "h",
1174
- "hb",
1175
- "hB"
1176
- ],
1177
- NI: [
1178
- "H",
1179
- "h",
1180
- "hB",
1181
- "hb"
1182
- ],
1183
- NL: [
1184
- "H",
1185
- "hB"
1186
- ],
1187
- NP: [
1188
- "H",
1189
- "h",
1190
- "hB"
1191
- ],
1192
- NR: [
1193
- "H",
1194
- "h",
1195
- "hb",
1196
- "hB"
1197
- ],
1198
- NU: [
1199
- "H",
1200
- "h",
1201
- "hb",
1202
- "hB"
1203
- ],
1204
- NZ: [
1205
- "h",
1206
- "hb",
1207
- "H",
1208
- "hB"
1209
- ],
1210
- OM: [
1211
- "h",
1212
- "hB",
1213
- "hb",
1214
- "H"
1215
- ],
1216
- PA: [
1217
- "h",
1218
- "H",
1219
- "hB",
1220
- "hb"
1221
- ],
1222
- PE: [
1223
- "H",
1224
- "hB",
1225
- "h",
1226
- "hb"
1227
- ],
1228
- PF: [
1229
- "H",
1230
- "h",
1231
- "hB"
1232
- ],
1233
- PG: [
1234
- "h",
1235
- "H"
1236
- ],
1237
- PH: [
1238
- "h",
1239
- "hB",
1240
- "hb",
1241
- "H"
1242
- ],
1243
- PK: [
1244
- "h",
1245
- "hB",
1246
- "H"
1247
- ],
1248
- PM: [
1249
- "H",
1250
- "hB"
1251
- ],
1252
- PN: [
1253
- "H",
1254
- "h",
1255
- "hb",
1256
- "hB"
1257
- ],
1258
- PR: [
1259
- "h",
1260
- "H",
1261
- "hB",
1262
- "hb"
1263
- ],
1264
- PS: [
1265
- "h",
1266
- "hB",
1267
- "hb",
1268
- "H"
1269
- ],
1270
- PT: [
1271
- "H",
1272
- "hB"
1273
- ],
1274
- PW: [
1275
- "h",
1276
- "H"
1277
- ],
1278
- PY: [
1279
- "H",
1280
- "h",
1281
- "hB",
1282
- "hb"
1283
- ],
1284
- QA: [
1285
- "h",
1286
- "hB",
1287
- "hb",
1288
- "H"
1289
- ],
1290
- RE: [
1291
- "H",
1292
- "hB"
1293
- ],
1294
- RO: [
1295
- "H",
1296
- "hB"
1297
- ],
1298
- RS: [
1299
- "H",
1300
- "hB",
1301
- "h"
1302
- ],
1303
- RU: [
1304
- "H"
1305
- ],
1306
- SA: [
1307
- "h",
1308
- "hB",
1309
- "hb",
1310
- "H"
1311
- ],
1312
- SB: [
1313
- "h",
1314
- "hb",
1315
- "H",
1316
- "hB"
1317
- ],
1318
- SC: [
1319
- "H",
1320
- "h",
1321
- "hB"
1322
- ],
1323
- SD: [
1324
- "h",
1325
- "hB",
1326
- "hb",
1327
- "H"
1328
- ],
1329
- SE: [
1330
- "H"
1331
- ],
1332
- SG: [
1333
- "h",
1334
- "hb",
1335
- "H",
1336
- "hB"
1337
- ],
1338
- SH: [
1339
- "H",
1340
- "h",
1341
- "hb",
1342
- "hB"
1343
- ],
1344
- SI: [
1345
- "H",
1346
- "hB"
1347
- ],
1348
- SJ: [
1349
- "H"
1350
- ],
1351
- SK: [
1352
- "H"
1353
- ],
1354
- SL: [
1355
- "h",
1356
- "hb",
1357
- "H",
1358
- "hB"
1359
- ],
1360
- SM: [
1361
- "H",
1362
- "h",
1363
- "hB"
1364
- ],
1365
- SN: [
1366
- "H",
1367
- "h",
1368
- "hB"
1369
- ],
1370
- SO: [
1371
- "h",
1372
- "H"
1373
- ],
1374
- SR: [
1375
- "H",
1376
- "hB"
1377
- ],
1378
- SS: [
1379
- "h",
1380
- "hb",
1381
- "H",
1382
- "hB"
1383
- ],
1384
- ST: [
1385
- "H",
1386
- "hB"
1387
- ],
1388
- SV: [
1389
- "H",
1390
- "h",
1391
- "hB",
1392
- "hb"
1393
- ],
1394
- SX: [
1395
- "H",
1396
- "h",
1397
- "hb",
1398
- "hB"
1399
- ],
1400
- SY: [
1401
- "h",
1402
- "hB",
1403
- "hb",
1404
- "H"
1405
- ],
1406
- SZ: [
1407
- "h",
1408
- "hb",
1409
- "H",
1410
- "hB"
1411
- ],
1412
- TA: [
1413
- "H",
1414
- "h",
1415
- "hb",
1416
- "hB"
1417
- ],
1418
- TC: [
1419
- "h",
1420
- "hb",
1421
- "H",
1422
- "hB"
1423
- ],
1424
- TD: [
1425
- "h",
1426
- "H",
1427
- "hB"
1428
- ],
1429
- TF: [
1430
- "H",
1431
- "h",
1432
- "hB"
1433
- ],
1434
- TG: [
1435
- "H",
1436
- "hB"
1437
- ],
1438
- TL: [
1439
- "H",
1440
- "hB",
1441
- "hb",
1442
- "h"
1443
- ],
1444
- TN: [
1445
- "h",
1446
- "hB",
1447
- "hb",
1448
- "H"
1449
- ],
1450
- TO: [
1451
- "h",
1452
- "H"
1453
- ],
1454
- TR: [
1455
- "H",
1456
- "hB"
1457
- ],
1458
- TT: [
1459
- "h",
1460
- "hb",
1461
- "H",
1462
- "hB"
1463
- ],
1464
- TW: [
1465
- "hB",
1466
- "hb",
1467
- "h",
1468
- "H"
1469
- ],
1470
- TZ: [
1471
- "hB",
1472
- "hb",
1473
- "H",
1474
- "h"
1475
- ],
1476
- UA: [
1477
- "H",
1478
- "hB",
1479
- "h"
1480
- ],
1481
- UG: [
1482
- "hB",
1483
- "hb",
1484
- "H",
1485
- "h"
1486
- ],
1487
- UM: [
1488
- "h",
1489
- "hb",
1490
- "H",
1491
- "hB"
1492
- ],
1493
- US: [
1494
- "h",
1495
- "hb",
1496
- "H",
1497
- "hB"
1498
- ],
1499
- UY: [
1500
- "H",
1501
- "h",
1502
- "hB",
1503
- "hb"
1504
- ],
1505
- UZ: [
1506
- "H",
1507
- "hB",
1508
- "h"
1509
- ],
1510
- VA: [
1511
- "H",
1512
- "h",
1513
- "hB"
1514
- ],
1515
- VC: [
1516
- "h",
1517
- "hb",
1518
- "H",
1519
- "hB"
1520
- ],
1521
- VE: [
1522
- "h",
1523
- "H",
1524
- "hB",
1525
- "hb"
1526
- ],
1527
- VG: [
1528
- "h",
1529
- "hb",
1530
- "H",
1531
- "hB"
1532
- ],
1533
- VI: [
1534
- "h",
1535
- "hb",
1536
- "H",
1537
- "hB"
1538
- ],
1539
- VU: [
1540
- "h",
1541
- "H"
1542
- ],
1543
- WF: [
1544
- "H",
1545
- "hB"
1546
- ],
1547
- WS: [
1548
- "h",
1549
- "H"
1550
- ],
1551
- XK: [
1552
- "H",
1553
- "hB",
1554
- "h"
1555
- ],
1556
- YE: [
1557
- "h",
1558
- "hB",
1559
- "hb",
1560
- "H"
1561
- ],
1562
- YT: [
1563
- "H",
1564
- "hB"
1565
- ],
1566
- ZA: [
1567
- "H",
1568
- "h",
1569
- "hb",
1570
- "hB"
1571
- ],
1572
- ZM: [
1573
- "h",
1574
- "hb",
1575
- "H",
1576
- "hB"
1577
- ],
1578
- "af-ZA": [
1579
- "H",
1580
- "h",
1581
- "hB",
1582
- "hb"
1583
- ],
1584
- "ar-001": [
1585
- "h",
1586
- "hB",
1587
- "hb",
1588
- "H"
1589
- ],
1590
- "ca-ES": [
1591
- "H",
1592
- "h",
1593
- "hB"
1594
- ],
1595
- "en-001": [
1596
- "h",
1597
- "hb",
1598
- "H",
1599
- "hB"
1600
- ],
1601
- "es-BO": [
1602
- "H",
1603
- "h",
1604
- "hB",
1605
- "hb"
1606
- ],
1607
- "es-BR": [
1608
- "H",
1609
- "h",
1610
- "hB",
1611
- "hb"
1612
- ],
1613
- "es-EC": [
1614
- "H",
1615
- "h",
1616
- "hB",
1617
- "hb"
1618
- ],
1619
- "es-ES": [
1620
- "H",
1621
- "h",
1622
- "hB",
1623
- "hb"
1624
- ],
1625
- "es-GQ": [
1626
- "H",
1627
- "h",
1628
- "hB",
1629
- "hb"
1630
- ],
1631
- "es-PE": [
1632
- "H",
1633
- "h",
1634
- "hB",
1635
- "hb"
1636
- ],
1637
- "fr-CA": [
1638
- "H",
1639
- "h",
1640
- "hB"
1641
- ],
1642
- "gl-ES": [
1643
- "H",
1644
- "h",
1645
- "hB"
1646
- ],
1647
- "gu-IN": [
1648
- "hB",
1649
- "hb",
1650
- "h",
1651
- "H"
1652
- ],
1653
- "hi-IN": [
1654
- "hB",
1655
- "h",
1656
- "H"
1657
- ],
1658
- "it-CH": [
1659
- "H",
1660
- "h",
1661
- "hB"
1662
- ],
1663
- "it-IT": [
1664
- "H",
1665
- "h",
1666
- "hB"
1667
- ],
1668
- "kn-IN": [
1669
- "hB",
1670
- "h",
1671
- "H"
1672
- ],
1673
- "ml-IN": [
1674
- "hB",
1675
- "h",
1676
- "H"
1677
- ],
1678
- "mr-IN": [
1679
- "hB",
1680
- "hb",
1681
- "h",
1682
- "H"
1683
- ],
1684
- "pa-IN": [
1685
- "hB",
1686
- "hb",
1687
- "h",
1688
- "H"
1689
- ],
1690
- "ta-IN": [
1691
- "hB",
1692
- "h",
1693
- "hb",
1694
- "H"
1695
- ],
1696
- "te-IN": [
1697
- "hB",
1698
- "h",
1699
- "H"
1700
- ],
1701
- "zu-ZA": [
1702
- "H",
1703
- "hB",
1704
- "hb",
1705
- "h"
1706
- ]
1707
- };
1708
- function mr(t, r) {
1709
- for (var e = "", n = 0; n < t.length; n++) {
1710
- var i = t.charAt(n);
1711
- if (i === "j") {
1712
- for (var o = 0; n + 1 < t.length && t.charAt(n + 1) === i; )
1713
- o++, n++;
1714
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", u = pr(r);
1715
- for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
1716
- e += c;
1717
- for (; a-- > 0; )
1718
- e = u + e;
1719
- } else
1720
- i === "J" ? e += "H" : e += i;
1721
- }
1722
- return e;
1723
- }
1724
- function pr(t) {
1725
- var r = t.hourCycle;
1726
- if (r === void 0 && // @ts-ignore hourCycle(s) is not identified yet
1727
- t.hourCycles && // @ts-ignore
1728
- t.hourCycles.length && (r = t.hourCycles[0]), r)
1729
- switch (r) {
1730
- case "h24":
1731
- return "k";
1732
- case "h23":
1733
- return "H";
1734
- case "h12":
1735
- return "h";
1736
- case "h11":
1737
- return "K";
1738
- default:
1739
- throw new Error("Invalid hourCycle");
1740
- }
1741
- var e = t.language, n;
1742
- e !== "root" && (n = t.maximize().region);
1743
- var i = j[n || ""] || j[e || ""] || j["".concat(e, "-001")] || j["001"];
1744
- return i[0];
1745
- }
1746
- var K, gr = new RegExp("^".concat(It.source, "*")), Er = new RegExp("".concat(It.source, "*$"));
1747
- function E(t, r) {
1748
- return { start: t, end: r };
1749
- }
1750
- var br = !!String.prototype.startsWith, yr = !!String.fromCodePoint, dr = !!Object.fromEntries, vr = !!String.prototype.codePointAt, Tr = !!String.prototype.trimStart, _r = !!String.prototype.trimEnd, Hr = !!Number.isSafeInteger, Sr = Hr ? Number.isSafeInteger : function(t) {
1751
- return typeof t == "number" && isFinite(t) && Math.floor(t) === t && Math.abs(t) <= 9007199254740991;
1752
- }, q = !0;
1753
- try {
1754
- var Ar = Ct("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
1755
- q = ((K = Ar.exec("a")) === null || K === void 0 ? void 0 : K[0]) === "a";
1756
- } catch {
1757
- q = !1;
1758
- }
1759
- var lt = br ? (
1760
- // Native
1761
- function(t, r, e) {
1762
- return t.startsWith(r, e);
1763
- }
1764
- ) : (
1765
- // For IE11
1766
- function(t, r, e) {
1767
- return t.slice(e, e + r.length) === r;
1768
- }
1769
- ), Q = yr ? String.fromCodePoint : (
1770
- // IE11
1771
- function() {
1772
- for (var t = [], r = 0; r < arguments.length; r++)
1773
- t[r] = arguments[r];
1774
- for (var e = "", n = t.length, i = 0, o; n > i; ) {
1775
- if (o = t[i++], o > 1114111)
1776
- throw RangeError(o + " is not a valid code point");
1777
- e += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
1778
- }
1779
- return e;
1780
- }
1781
- ), ft = (
1782
- // native
1783
- dr ? Object.fromEntries : (
1784
- // Ponyfill
1785
- function(t) {
1786
- for (var r = {}, e = 0, n = t; e < n.length; e++) {
1787
- var i = n[e], o = i[0], a = i[1];
1788
- r[o] = a;
1789
- }
1790
- return r;
1791
- }
1792
- )
1793
- ), Ot = vr ? (
1794
- // Native
1795
- function(t, r) {
1796
- return t.codePointAt(r);
1797
- }
1798
- ) : (
1799
- // IE 11
1800
- function(t, r) {
1801
- var e = t.length;
1802
- if (!(r < 0 || r >= e)) {
1803
- var n = t.charCodeAt(r), i;
1804
- return n < 55296 || n > 56319 || r + 1 === e || (i = t.charCodeAt(r + 1)) < 56320 || i > 57343 ? n : (n - 55296 << 10) + (i - 56320) + 65536;
1805
- }
1806
- }
1807
- ), Br = Tr ? (
1808
- // Native
1809
- function(t) {
1810
- return t.trimStart();
1811
- }
1812
- ) : (
1813
- // Ponyfill
1814
- function(t) {
1815
- return t.replace(gr, "");
1816
- }
1817
- ), Nr = _r ? (
1818
- // Native
1819
- function(t) {
1820
- return t.trimEnd();
1821
- }
1822
- ) : (
1823
- // Ponyfill
1824
- function(t) {
1825
- return t.replace(Er, "");
1826
- }
1827
- );
1828
- function Ct(t, r) {
1829
- return new RegExp(t, r);
1830
- }
1831
- var J;
1832
- if (q) {
1833
- var mt = Ct("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
1834
- J = function(t, r) {
1835
- var e;
1836
- mt.lastIndex = r;
1837
- var n = mt.exec(t);
1838
- return (e = n[1]) !== null && e !== void 0 ? e : "";
1839
- };
1840
- } else
1841
- J = function(t, r) {
1842
- for (var e = []; ; ) {
1843
- var n = Ot(t, r);
1844
- if (n === void 0 || Mt(n) || Rr(n))
1845
- break;
1846
- e.push(n), r += n >= 65536 ? 2 : 1;
1847
- }
1848
- return Q.apply(void 0, e);
1849
- };
1850
- var Ir = (
1851
- /** @class */
1852
- function() {
1853
- function t(r, e) {
1854
- e === void 0 && (e = {}), this.message = r, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!e.ignoreTag, this.locale = e.locale, this.requiresOtherClause = !!e.requiresOtherClause, this.shouldParseSkeletons = !!e.shouldParseSkeletons;
1855
- }
1856
- return t.prototype.parse = function() {
1857
- if (this.offset() !== 0)
1858
- throw Error("parser can only be used once");
1859
- return this.parseMessage(0, "", !1);
1860
- }, t.prototype.parseMessage = function(r, e, n) {
1861
- for (var i = []; !this.isEOF(); ) {
1862
- var o = this.char();
1863
- if (o === 123) {
1864
- var a = this.parseArgument(r, n);
1865
- if (a.err)
1866
- return a;
1867
- i.push(a.val);
1868
- } else {
1869
- if (o === 125 && r > 0)
1870
- break;
1871
- if (o === 35 && (e === "plural" || e === "selectordinal")) {
1872
- var s = this.clonePosition();
1873
- this.bump(), i.push({
1874
- type: y.pound,
1875
- location: E(s, this.clonePosition())
1876
- });
1877
- } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
1878
- if (n)
1879
- break;
1880
- return this.error(g.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
1881
- } else if (o === 60 && !this.ignoreTag && $(this.peek() || 0)) {
1882
- var a = this.parseTag(r, e);
1883
- if (a.err)
1884
- return a;
1885
- i.push(a.val);
1886
- } else {
1887
- var a = this.parseLiteral(r, e);
1888
- if (a.err)
1889
- return a;
1890
- i.push(a.val);
1891
- }
1892
- }
1893
- }
1894
- return { val: i, err: null };
1895
- }, t.prototype.parseTag = function(r, e) {
1896
- var n = this.clonePosition();
1897
- this.bump();
1898
- var i = this.parseTagName();
1899
- if (this.bumpSpace(), this.bumpIf("/>"))
1900
- return {
1901
- val: {
1902
- type: y.literal,
1903
- value: "<".concat(i, "/>"),
1904
- location: E(n, this.clonePosition())
1905
- },
1906
- err: null
1907
- };
1908
- if (this.bumpIf(">")) {
1909
- var o = this.parseMessage(r + 1, e, !0);
1910
- if (o.err)
1911
- return o;
1912
- var a = o.val, s = this.clonePosition();
1913
- if (this.bumpIf("</")) {
1914
- if (this.isEOF() || !$(this.char()))
1915
- return this.error(g.INVALID_TAG, E(s, this.clonePosition()));
1916
- var c = this.clonePosition(), u = this.parseTagName();
1917
- return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, E(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
1918
- val: {
1919
- type: y.tag,
1920
- value: i,
1921
- children: a,
1922
- location: E(n, this.clonePosition())
1923
- },
1924
- err: null
1925
- } : this.error(g.INVALID_TAG, E(s, this.clonePosition())));
1926
- } else
1927
- return this.error(g.UNCLOSED_TAG, E(n, this.clonePosition()));
1928
- } else
1929
- return this.error(g.INVALID_TAG, E(n, this.clonePosition()));
1930
- }, t.prototype.parseTagName = function() {
1931
- var r = this.offset();
1932
- for (this.bump(); !this.isEOF() && Pr(this.char()); )
1933
- this.bump();
1934
- return this.message.slice(r, this.offset());
1935
- }, t.prototype.parseLiteral = function(r, e) {
1936
- for (var n = this.clonePosition(), i = ""; ; ) {
1937
- var o = this.tryParseQuote(e);
1938
- if (o) {
1939
- i += o;
1940
- continue;
1941
- }
1942
- var a = this.tryParseUnquoted(r, e);
1943
- if (a) {
1944
- i += a;
1945
- continue;
1946
- }
1947
- var s = this.tryParseLeftAngleBracket();
1948
- if (s) {
1949
- i += s;
1950
- continue;
1951
- }
1952
- break;
1953
- }
1954
- var c = E(n, this.clonePosition());
1955
- return {
1956
- val: { type: y.literal, value: i, location: c },
1957
- err: null
1958
- };
1959
- }, t.prototype.tryParseLeftAngleBracket = function() {
1960
- return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
1961
- !Lr(this.peek() || 0)) ? (this.bump(), "<") : null;
1962
- }, t.prototype.tryParseQuote = function(r) {
1963
- if (this.isEOF() || this.char() !== 39)
1964
- return null;
1965
- switch (this.peek()) {
1966
- case 39:
1967
- return this.bump(), this.bump(), "'";
1968
- case 123:
1969
- case 60:
1970
- case 62:
1971
- case 125:
1972
- break;
1973
- case 35:
1974
- if (r === "plural" || r === "selectordinal")
1975
- break;
1976
- return null;
1977
- default:
1978
- return null;
1979
- }
1980
- this.bump();
1981
- var e = [this.char()];
1982
- for (this.bump(); !this.isEOF(); ) {
1983
- var n = this.char();
1984
- if (n === 39)
1985
- if (this.peek() === 39)
1986
- e.push(39), this.bump();
1987
- else {
1988
- this.bump();
1989
- break;
1990
- }
1991
- else
1992
- e.push(n);
1993
- this.bump();
1994
- }
1995
- return Q.apply(void 0, e);
1996
- }, t.prototype.tryParseUnquoted = function(r, e) {
1997
- if (this.isEOF())
1998
- return null;
1999
- var n = this.char();
2000
- return n === 60 || n === 123 || n === 35 && (e === "plural" || e === "selectordinal") || n === 125 && r > 0 ? null : (this.bump(), Q(n));
2001
- }, t.prototype.parseArgument = function(r, e) {
2002
- var n = this.clonePosition();
2003
- if (this.bump(), this.bumpSpace(), this.isEOF())
2004
- return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
2005
- if (this.char() === 125)
2006
- return this.bump(), this.error(g.EMPTY_ARGUMENT, E(n, this.clonePosition()));
2007
- var i = this.parseIdentifierIfPossible().value;
2008
- if (!i)
2009
- return this.error(g.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
2010
- if (this.bumpSpace(), this.isEOF())
2011
- return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
2012
- switch (this.char()) {
2013
- case 125:
2014
- return this.bump(), {
2015
- val: {
2016
- type: y.argument,
2017
- // value does not include the opening and closing braces.
2018
- value: i,
2019
- location: E(n, this.clonePosition())
2020
- },
2021
- err: null
2022
- };
2023
- case 44:
2024
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition())) : this.parseArgumentOptions(r, e, i, n);
2025
- default:
2026
- return this.error(g.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
2027
- }
2028
- }, t.prototype.parseIdentifierIfPossible = function() {
2029
- var r = this.clonePosition(), e = this.offset(), n = J(this.message, e), i = e + n.length;
2030
- this.bumpTo(i);
2031
- var o = this.clonePosition(), a = E(r, o);
2032
- return { value: n, location: a };
2033
- }, t.prototype.parseArgumentOptions = function(r, e, n, i) {
2034
- var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2035
- switch (s) {
2036
- case "":
2037
- return this.error(g.EXPECT_ARGUMENT_TYPE, E(a, c));
2038
- case "number":
2039
- case "date":
2040
- case "time": {
2041
- this.bumpSpace();
2042
- var u = null;
2043
- if (this.bumpIf(",")) {
2044
- this.bumpSpace();
2045
- var h = this.clonePosition(), l = this.parseSimpleArgStyleIfPossible();
2046
- if (l.err)
2047
- return l;
2048
- var f = Nr(l.val);
2049
- if (f.length === 0)
2050
- return this.error(g.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
2051
- var p = E(h, this.clonePosition());
2052
- u = { style: f, styleLocation: p };
2053
- }
2054
- var d = this.tryParseArgumentClose(i);
2055
- if (d.err)
2056
- return d;
2057
- var b = E(i, this.clonePosition());
2058
- if (u && lt(u == null ? void 0 : u.style, "::", 0)) {
2059
- var v = Br(u.style.slice(2));
2060
- if (s === "number") {
2061
- var l = this.parseNumberSkeletonFromString(v, u.styleLocation);
2062
- return l.err ? l : {
2063
- val: { type: y.number, value: n, location: b, style: l.val },
2064
- err: null
2065
- };
2066
- } else {
2067
- if (v.length === 0)
2068
- return this.error(g.EXPECT_DATE_TIME_SKELETON, b);
2069
- var T = v;
2070
- this.locale && (T = mr(v, this.locale));
2071
- var f = {
2072
- type: w.dateTime,
2073
- pattern: T,
2074
- location: u.styleLocation,
2075
- parsedOptions: this.shouldParseSkeletons ? ar(T) : {}
2076
- }, S = s === "date" ? y.date : y.time;
2077
- return {
2078
- val: { type: S, value: n, location: b, style: f },
2079
- err: null
2080
- };
2081
- }
2082
- }
2083
- return {
2084
- val: {
2085
- type: s === "number" ? y.number : s === "date" ? y.date : y.time,
2086
- value: n,
2087
- location: b,
2088
- style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
2089
- },
2090
- err: null
2091
- };
2092
- }
2093
- case "plural":
2094
- case "selectordinal":
2095
- case "select": {
2096
- var _ = this.clonePosition();
2097
- if (this.bumpSpace(), !this.bumpIf(","))
2098
- return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, E(_, m({}, _)));
2099
- this.bumpSpace();
2100
- var G = this.parseIdentifierIfPossible(), O = 0;
2101
- if (s !== "select" && G.value === "offset") {
2102
- if (!this.bumpIf(":"))
2103
- return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
2104
- this.bumpSpace();
2105
- var l = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2106
- if (l.err)
2107
- return l;
2108
- this.bumpSpace(), G = this.parseIdentifierIfPossible(), O = l.val;
2109
- }
2110
- var k = this.tryParsePluralOrSelectOptions(r, s, e, G);
2111
- if (k.err)
2112
- return k;
2113
- var d = this.tryParseArgumentClose(i);
2114
- if (d.err)
2115
- return d;
2116
- var it = E(i, this.clonePosition());
2117
- return s === "select" ? {
2118
- val: {
2119
- type: y.select,
2120
- value: n,
2121
- options: ft(k.val),
2122
- location: it
2123
- },
2124
- err: null
2125
- } : {
2126
- val: {
2127
- type: y.plural,
2128
- value: n,
2129
- options: ft(k.val),
2130
- offset: O,
2131
- pluralType: s === "plural" ? "cardinal" : "ordinal",
2132
- location: it
2133
- },
2134
- err: null
2135
- };
2136
- }
2137
- default:
2138
- return this.error(g.INVALID_ARGUMENT_TYPE, E(a, c));
2139
- }
2140
- }, t.prototype.tryParseArgumentClose = function(r) {
2141
- return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, E(r, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2142
- }, t.prototype.parseSimpleArgStyleIfPossible = function() {
2143
- for (var r = 0, e = this.clonePosition(); !this.isEOF(); ) {
2144
- var n = this.char();
2145
- switch (n) {
2146
- case 39: {
2147
- this.bump();
2148
- var i = this.clonePosition();
2149
- if (!this.bumpUntil("'"))
2150
- return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, E(i, this.clonePosition()));
2151
- this.bump();
2152
- break;
2153
- }
2154
- case 123: {
2155
- r += 1, this.bump();
2156
- break;
2157
- }
2158
- case 125: {
2159
- if (r > 0)
2160
- r -= 1;
2161
- else
2162
- return {
2163
- val: this.message.slice(e.offset, this.offset()),
2164
- err: null
2165
- };
2166
- break;
2167
- }
2168
- default:
2169
- this.bump();
2170
- break;
2171
- }
2172
- }
2173
- return {
2174
- val: this.message.slice(e.offset, this.offset()),
2175
- err: null
2176
- };
2177
- }, t.prototype.parseNumberSkeletonFromString = function(r, e) {
2178
- var n = [];
2179
- try {
2180
- n = hr(r);
2181
- } catch {
2182
- return this.error(g.INVALID_NUMBER_SKELETON, e);
2183
- }
2184
- return {
2185
- val: {
2186
- type: w.number,
2187
- tokens: n,
2188
- location: e,
2189
- parsedOptions: this.shouldParseSkeletons ? fr(n) : {}
2190
- },
2191
- err: null
2192
- };
2193
- }, t.prototype.tryParsePluralOrSelectOptions = function(r, e, n, i) {
2194
- for (var o, a = !1, s = [], c = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
2195
- if (u.length === 0) {
2196
- var l = this.clonePosition();
2197
- if (e !== "select" && this.bumpIf("=")) {
2198
- var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
2199
- if (f.err)
2200
- return f;
2201
- h = E(l, this.clonePosition()), u = this.message.slice(l.offset, this.offset());
2202
- } else
2203
- break;
2204
- }
2205
- if (c.has(u))
2206
- return this.error(e === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2207
- u === "other" && (a = !0), this.bumpSpace();
2208
- var p = this.clonePosition();
2209
- if (!this.bumpIf("{"))
2210
- return this.error(e === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
2211
- var d = this.parseMessage(r + 1, e, n);
2212
- if (d.err)
2213
- return d;
2214
- var b = this.tryParseArgumentClose(p);
2215
- if (b.err)
2216
- return b;
2217
- s.push([
2218
- u,
2219
- {
2220
- value: d.val,
2221
- location: E(p, this.clonePosition())
2222
- }
2223
- ]), c.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
2224
- }
2225
- return s.length === 0 ? this.error(e === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(g.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2226
- }, t.prototype.tryParseDecimalInteger = function(r, e) {
2227
- var n = 1, i = this.clonePosition();
2228
- this.bumpIf("+") || this.bumpIf("-") && (n = -1);
2229
- for (var o = !1, a = 0; !this.isEOF(); ) {
2230
- var s = this.char();
2231
- if (s >= 48 && s <= 57)
2232
- o = !0, a = a * 10 + (s - 48), this.bump();
2233
- else
2234
- break;
2235
- }
2236
- var c = E(i, this.clonePosition());
2237
- return o ? (a *= n, Sr(a) ? { val: a, err: null } : this.error(e, c)) : this.error(r, c);
2238
- }, t.prototype.offset = function() {
2239
- return this.position.offset;
2240
- }, t.prototype.isEOF = function() {
2241
- return this.offset() === this.message.length;
2242
- }, t.prototype.clonePosition = function() {
2243
- return {
2244
- offset: this.position.offset,
2245
- line: this.position.line,
2246
- column: this.position.column
2247
- };
2248
- }, t.prototype.char = function() {
2249
- var r = this.position.offset;
2250
- if (r >= this.message.length)
2251
- throw Error("out of bound");
2252
- var e = Ot(this.message, r);
2253
- if (e === void 0)
2254
- throw Error("Offset ".concat(r, " is at invalid UTF-16 code unit boundary"));
2255
- return e;
2256
- }, t.prototype.error = function(r, e) {
2257
- return {
2258
- val: null,
2259
- err: {
2260
- kind: r,
2261
- message: this.message,
2262
- location: e
2263
- }
2264
- };
2265
- }, t.prototype.bump = function() {
2266
- if (!this.isEOF()) {
2267
- var r = this.char();
2268
- r === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += r < 65536 ? 1 : 2);
2269
- }
2270
- }, t.prototype.bumpIf = function(r) {
2271
- if (lt(this.message, r, this.offset())) {
2272
- for (var e = 0; e < r.length; e++)
2273
- this.bump();
2274
- return !0;
2275
- }
2276
- return !1;
2277
- }, t.prototype.bumpUntil = function(r) {
2278
- var e = this.offset(), n = this.message.indexOf(r, e);
2279
- return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
2280
- }, t.prototype.bumpTo = function(r) {
2281
- if (this.offset() > r)
2282
- throw Error("targetOffset ".concat(r, " must be greater than or equal to the current offset ").concat(this.offset()));
2283
- for (r = Math.min(r, this.message.length); ; ) {
2284
- var e = this.offset();
2285
- if (e === r)
2286
- break;
2287
- if (e > r)
2288
- throw Error("targetOffset ".concat(r, " is at invalid UTF-16 code unit boundary"));
2289
- if (this.bump(), this.isEOF())
2290
- break;
2291
- }
2292
- }, t.prototype.bumpSpace = function() {
2293
- for (; !this.isEOF() && Mt(this.char()); )
2294
- this.bump();
2295
- }, t.prototype.peek = function() {
2296
- if (this.isEOF())
2297
- return null;
2298
- var r = this.char(), e = this.offset(), n = this.message.charCodeAt(e + (r >= 65536 ? 2 : 1));
2299
- return n ?? null;
2300
- }, t;
2301
- }()
2302
- );
2303
- function $(t) {
2304
- return t >= 97 && t <= 122 || t >= 65 && t <= 90;
2305
- }
2306
- function Lr(t) {
2307
- return $(t) || t === 47;
2308
- }
2309
- function Pr(t) {
2310
- return t === 45 || t === 46 || t >= 48 && t <= 57 || t === 95 || t >= 97 && t <= 122 || t >= 65 && t <= 90 || t == 183 || t >= 192 && t <= 214 || t >= 216 && t <= 246 || t >= 248 && t <= 893 || t >= 895 && t <= 8191 || t >= 8204 && t <= 8205 || t >= 8255 && t <= 8256 || t >= 8304 && t <= 8591 || t >= 11264 && t <= 12271 || t >= 12289 && t <= 55295 || t >= 63744 && t <= 64975 || t >= 65008 && t <= 65533 || t >= 65536 && t <= 983039;
2311
- }
2312
- function Mt(t) {
2313
- return t >= 9 && t <= 13 || t === 32 || t === 133 || t >= 8206 && t <= 8207 || t === 8232 || t === 8233;
2314
- }
2315
- function Rr(t) {
2316
- return t >= 33 && t <= 35 || t === 36 || t >= 37 && t <= 39 || t === 40 || t === 41 || t === 42 || t === 43 || t === 44 || t === 45 || t >= 46 && t <= 47 || t >= 58 && t <= 59 || t >= 60 && t <= 62 || t >= 63 && t <= 64 || t === 91 || t === 92 || t === 93 || t === 94 || t === 96 || t === 123 || t === 124 || t === 125 || t === 126 || t === 161 || t >= 162 && t <= 165 || t === 166 || t === 167 || t === 169 || t === 171 || t === 172 || t === 174 || t === 176 || t === 177 || t === 182 || t === 187 || t === 191 || t === 215 || t === 247 || t >= 8208 && t <= 8213 || t >= 8214 && t <= 8215 || t === 8216 || t === 8217 || t === 8218 || t >= 8219 && t <= 8220 || t === 8221 || t === 8222 || t === 8223 || t >= 8224 && t <= 8231 || t >= 8240 && t <= 8248 || t === 8249 || t === 8250 || t >= 8251 && t <= 8254 || t >= 8257 && t <= 8259 || t === 8260 || t === 8261 || t === 8262 || t >= 8263 && t <= 8273 || t === 8274 || t === 8275 || t >= 8277 && t <= 8286 || t >= 8592 && t <= 8596 || t >= 8597 && t <= 8601 || t >= 8602 && t <= 8603 || t >= 8604 && t <= 8607 || t === 8608 || t >= 8609 && t <= 8610 || t === 8611 || t >= 8612 && t <= 8613 || t === 8614 || t >= 8615 && t <= 8621 || t === 8622 || t >= 8623 && t <= 8653 || t >= 8654 && t <= 8655 || t >= 8656 && t <= 8657 || t === 8658 || t === 8659 || t === 8660 || t >= 8661 && t <= 8691 || t >= 8692 && t <= 8959 || t >= 8960 && t <= 8967 || t === 8968 || t === 8969 || t === 8970 || t === 8971 || t >= 8972 && t <= 8991 || t >= 8992 && t <= 8993 || t >= 8994 && t <= 9e3 || t === 9001 || t === 9002 || t >= 9003 && t <= 9083 || t === 9084 || t >= 9085 && t <= 9114 || t >= 9115 && t <= 9139 || t >= 9140 && t <= 9179 || t >= 9180 && t <= 9185 || t >= 9186 && t <= 9254 || t >= 9255 && t <= 9279 || t >= 9280 && t <= 9290 || t >= 9291 && t <= 9311 || t >= 9472 && t <= 9654 || t === 9655 || t >= 9656 && t <= 9664 || t === 9665 || t >= 9666 && t <= 9719 || t >= 9720 && t <= 9727 || t >= 9728 && t <= 9838 || t === 9839 || t >= 9840 && t <= 10087 || t === 10088 || t === 10089 || t === 10090 || t === 10091 || t === 10092 || t === 10093 || t === 10094 || t === 10095 || t === 10096 || t === 10097 || t === 10098 || t === 10099 || t === 10100 || t === 10101 || t >= 10132 && t <= 10175 || t >= 10176 && t <= 10180 || t === 10181 || t === 10182 || t >= 10183 && t <= 10213 || t === 10214 || t === 10215 || t === 10216 || t === 10217 || t === 10218 || t === 10219 || t === 10220 || t === 10221 || t === 10222 || t === 10223 || t >= 10224 && t <= 10239 || t >= 10240 && t <= 10495 || t >= 10496 && t <= 10626 || t === 10627 || t === 10628 || t === 10629 || t === 10630 || t === 10631 || t === 10632 || t === 10633 || t === 10634 || t === 10635 || t === 10636 || t === 10637 || t === 10638 || t === 10639 || t === 10640 || t === 10641 || t === 10642 || t === 10643 || t === 10644 || t === 10645 || t === 10646 || t === 10647 || t === 10648 || t >= 10649 && t <= 10711 || t === 10712 || t === 10713 || t === 10714 || t === 10715 || t >= 10716 && t <= 10747 || t === 10748 || t === 10749 || t >= 10750 && t <= 11007 || t >= 11008 && t <= 11055 || t >= 11056 && t <= 11076 || t >= 11077 && t <= 11078 || t >= 11079 && t <= 11084 || t >= 11085 && t <= 11123 || t >= 11124 && t <= 11125 || t >= 11126 && t <= 11157 || t === 11158 || t >= 11159 && t <= 11263 || t >= 11776 && t <= 11777 || t === 11778 || t === 11779 || t === 11780 || t === 11781 || t >= 11782 && t <= 11784 || t === 11785 || t === 11786 || t === 11787 || t === 11788 || t === 11789 || t >= 11790 && t <= 11798 || t === 11799 || t >= 11800 && t <= 11801 || t === 11802 || t === 11803 || t === 11804 || t === 11805 || t >= 11806 && t <= 11807 || t === 11808 || t === 11809 || t === 11810 || t === 11811 || t === 11812 || t === 11813 || t === 11814 || t === 11815 || t === 11816 || t === 11817 || t >= 11818 && t <= 11822 || t === 11823 || t >= 11824 && t <= 11833 || t >= 11834 && t <= 11835 || t >= 11836 && t <= 11839 || t === 11840 || t === 11841 || t === 11842 || t >= 11843 && t <= 11855 || t >= 11856 && t <= 11857 || t === 11858 || t >= 11859 && t <= 11903 || t >= 12289 && t <= 12291 || t === 12296 || t === 12297 || t === 12298 || t === 12299 || t === 12300 || t === 12301 || t === 12302 || t === 12303 || t === 12304 || t === 12305 || t >= 12306 && t <= 12307 || t === 12308 || t === 12309 || t === 12310 || t === 12311 || t === 12312 || t === 12313 || t === 12314 || t === 12315 || t === 12316 || t === 12317 || t >= 12318 && t <= 12319 || t === 12320 || t === 12336 || t === 64830 || t === 64831 || t >= 65093 && t <= 65094;
2317
- }
2318
- function tt(t) {
2319
- t.forEach(function(r) {
2320
- if (delete r.location, St(r) || At(r))
2321
- for (var e in r.options)
2322
- delete r.options[e].location, tt(r.options[e].value);
2323
- else
2324
- Tt(r) && Nt(r.style) || (_t(r) || Ht(r)) && z(r.style) ? delete r.style.location : Bt(r) && tt(r.children);
2325
- });
2326
- }
2327
- function Or(t, r) {
2328
- r === void 0 && (r = {}), r = m({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, r);
2329
- var e = new Ir(t, r).parse();
2330
- if (e.err) {
2331
- var n = SyntaxError(g[e.err.kind]);
2332
- throw n.location = e.err.location, n.originalMessage = e.err.message, n;
2333
- }
2334
- return r != null && r.captureLocation || tt(e.val), e.val;
2335
- }
2336
- function N(t, r) {
2337
- var e = r && r.cache ? r.cache : Ur, n = r && r.serializer ? r.serializer : Gr, i = r && r.strategy ? r.strategy : Mr;
2338
- return i(t, {
2339
- cache: e,
2340
- serializer: n
2341
- });
2342
- }
2343
- function Cr(t) {
2344
- return t == null || typeof t == "number" || typeof t == "boolean";
2345
- }
2346
- function Dt(t, r, e, n) {
2347
- var i = Cr(n) ? n : e(n), o = r.get(i);
2348
- return typeof o > "u" && (o = t.call(this, n), r.set(i, o)), o;
2349
- }
2350
- function wt(t, r, e) {
2351
- var n = Array.prototype.slice.call(arguments, 3), i = e(n), o = r.get(i);
2352
- return typeof o > "u" && (o = t.apply(this, n), r.set(i, o)), o;
2353
- }
2354
- function rt(t, r, e, n, i) {
2355
- return e.bind(r, t, n, i);
2356
- }
2357
- function Mr(t, r) {
2358
- var e = t.length === 1 ? Dt : wt;
2359
- return rt(t, this, e, r.cache.create(), r.serializer);
2360
- }
2361
- function Dr(t, r) {
2362
- return rt(t, this, wt, r.cache.create(), r.serializer);
2363
- }
2364
- function wr(t, r) {
2365
- return rt(t, this, Dt, r.cache.create(), r.serializer);
2366
- }
2367
- var Gr = function() {
2368
- return JSON.stringify(arguments);
2369
- };
2370
- function et() {
2371
- this.cache = /* @__PURE__ */ Object.create(null);
2372
- }
2373
- et.prototype.get = function(t) {
2374
- return this.cache[t];
2375
- };
2376
- et.prototype.set = function(t, r) {
2377
- this.cache[t] = r;
2378
- };
2379
- var Ur = {
2380
- create: function() {
2381
- return new et();
2382
- }
2383
- }, I = {
2384
- variadic: Dr,
2385
- monadic: wr
2386
- }, L;
2387
- (function(t) {
2388
- t.MISSING_VALUE = "MISSING_VALUE", t.INVALID_VALUE = "INVALID_VALUE", t.MISSING_INTL_API = "MISSING_INTL_API";
2389
- })(L || (L = {}));
2390
- var R = (
2391
- /** @class */
2392
- function(t) {
2393
- B(r, t);
2394
- function r(e, n, i) {
2395
- var o = t.call(this, e) || this;
2396
- return o.code = n, o.originalMessage = i, o;
2397
- }
2398
- return r.prototype.toString = function() {
2399
- return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
2400
- }, r;
2401
- }(Error)
2402
- ), pt = (
2403
- /** @class */
2404
- function(t) {
2405
- B(r, t);
2406
- function r(e, n, i, o) {
2407
- return t.call(this, 'Invalid values for "'.concat(e, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), L.INVALID_VALUE, o) || this;
2408
- }
2409
- return r;
2410
- }(R)
2411
- ), Fr = (
2412
- /** @class */
2413
- function(t) {
2414
- B(r, t);
2415
- function r(e, n, i) {
2416
- return t.call(this, 'Value for "'.concat(e, '" must be of type ').concat(n), L.INVALID_VALUE, i) || this;
2417
- }
2418
- return r;
2419
- }(R)
2420
- ), kr = (
2421
- /** @class */
2422
- function(t) {
2423
- B(r, t);
2424
- function r(e, n) {
2425
- return t.call(this, 'The intl string context variable "'.concat(e, '" was not provided to the string "').concat(n, '"'), L.MISSING_VALUE, n) || this;
2426
- }
2427
- return r;
2428
- }(R)
2429
- ), H;
2430
- (function(t) {
2431
- t[t.literal = 0] = "literal", t[t.object = 1] = "object";
2432
- })(H || (H = {}));
2433
- function jr(t) {
2434
- return t.length < 2 ? t : t.reduce(function(r, e) {
2435
- var n = r[r.length - 1];
2436
- return !n || n.type !== H.literal || e.type !== H.literal ? r.push(e) : n.value += e.value, r;
2437
- }, []);
2438
- }
2439
- function Vr(t) {
2440
- return typeof t == "function";
2441
- }
2442
- function x(t, r, e, n, i, o, a) {
2443
- if (t.length === 1 && st(t[0]))
2444
- return [
2445
- {
2446
- type: H.literal,
2447
- value: t[0].value
2448
- }
2449
- ];
2450
- for (var s = [], c = 0, u = t; c < u.length; c++) {
2451
- var h = u[c];
2452
- if (st(h)) {
2453
- s.push({
2454
- type: H.literal,
2455
- value: h.value
2456
- });
2457
- continue;
2458
- }
2459
- if (ir(h)) {
2460
- typeof o == "number" && s.push({
2461
- type: H.literal,
2462
- value: e.getNumberFormat(r).format(o)
2463
- });
2464
- continue;
2465
- }
2466
- var l = h.value;
2467
- if (!(i && l in i))
2468
- throw new kr(l, a);
2469
- var f = i[l];
2470
- if (nr(h)) {
2471
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
2472
- type: typeof f == "string" ? H.literal : H.object,
2473
- value: f
2474
- });
2475
- continue;
2476
- }
2477
- if (_t(h)) {
2478
- var p = typeof h.style == "string" ? n.date[h.style] : z(h.style) ? h.style.parsedOptions : void 0;
2479
- s.push({
2480
- type: H.literal,
2481
- value: e.getDateTimeFormat(r, p).format(f)
2482
- });
2483
- continue;
2484
- }
2485
- if (Ht(h)) {
2486
- var p = typeof h.style == "string" ? n.time[h.style] : z(h.style) ? h.style.parsedOptions : n.time.medium;
2487
- s.push({
2488
- type: H.literal,
2489
- value: e.getDateTimeFormat(r, p).format(f)
2490
- });
2491
- continue;
2492
- }
2493
- if (Tt(h)) {
2494
- var p = typeof h.style == "string" ? n.number[h.style] : Nt(h.style) ? h.style.parsedOptions : void 0;
2495
- p && p.scale && (f = f * (p.scale || 1)), s.push({
2496
- type: H.literal,
2497
- value: e.getNumberFormat(r, p).format(f)
2498
- });
2499
- continue;
2500
- }
2501
- if (Bt(h)) {
2502
- var d = h.children, b = h.value, v = i[b];
2503
- if (!Vr(v))
2504
- throw new Fr(b, "function", a);
2505
- var T = x(d, r, e, n, i, o), S = v(T.map(function(O) {
2506
- return O.value;
2507
- }));
2508
- Array.isArray(S) || (S = [S]), s.push.apply(s, S.map(function(O) {
2509
- return {
2510
- type: typeof O == "string" ? H.literal : H.object,
2511
- value: O
2512
- };
2513
- }));
2514
- }
2515
- if (St(h)) {
2516
- var _ = h.options[f] || h.options.other;
2517
- if (!_)
2518
- throw new pt(h.value, f, Object.keys(h.options), a);
2519
- s.push.apply(s, x(_.value, r, e, n, i));
2520
- continue;
2521
- }
2522
- if (At(h)) {
2523
- var _ = h.options["=".concat(f)];
2524
- if (!_) {
2525
- if (!Intl.PluralRules)
2526
- throw new R(`Intl.PluralRules is not available in this environment.
2527
- Try polyfilling it using "@formatjs/intl-pluralrules"
2528
- `, L.MISSING_INTL_API, a);
2529
- var G = e.getPluralRules(r, { type: h.pluralType }).select(f - (h.offset || 0));
2530
- _ = h.options[G] || h.options.other;
2531
- }
2532
- if (!_)
2533
- throw new pt(h.value, f, Object.keys(h.options), a);
2534
- s.push.apply(s, x(_.value, r, e, n, i, f - (h.offset || 0)));
2535
- continue;
2536
- }
2537
- }
2538
- return jr(s);
2539
- }
2540
- function xr(t, r) {
2541
- return r ? m(m(m({}, t || {}), r || {}), Object.keys(t).reduce(function(e, n) {
2542
- return e[n] = m(m({}, t[n]), r[n] || {}), e;
2543
- }, {})) : t;
2544
- }
2545
- function Xr(t, r) {
2546
- return r ? Object.keys(t).reduce(function(e, n) {
2547
- return e[n] = xr(t[n], r[n]), e;
2548
- }, m({}, t)) : t;
2549
- }
2550
- function Z(t) {
2551
- return {
2552
- create: function() {
2553
- return {
2554
- get: function(r) {
2555
- return t[r];
2556
- },
2557
- set: function(r, e) {
2558
- t[r] = e;
2559
- }
2560
- };
2561
- }
2562
- };
2563
- }
2564
- function Kr(t) {
2565
- return t === void 0 && (t = {
2566
- number: {},
2567
- dateTime: {},
2568
- pluralRules: {}
2569
- }), {
2570
- getNumberFormat: N(function() {
2571
- for (var r, e = [], n = 0; n < arguments.length; n++)
2572
- e[n] = arguments[n];
2573
- return new ((r = Intl.NumberFormat).bind.apply(r, P([void 0], e, !1)))();
2574
- }, {
2575
- cache: Z(t.number),
2576
- strategy: I.variadic
2577
- }),
2578
- getDateTimeFormat: N(function() {
2579
- for (var r, e = [], n = 0; n < arguments.length; n++)
2580
- e[n] = arguments[n];
2581
- return new ((r = Intl.DateTimeFormat).bind.apply(r, P([void 0], e, !1)))();
2582
- }, {
2583
- cache: Z(t.dateTime),
2584
- strategy: I.variadic
2585
- }),
2586
- getPluralRules: N(function() {
2587
- for (var r, e = [], n = 0; n < arguments.length; n++)
2588
- e[n] = arguments[n];
2589
- return new ((r = Intl.PluralRules).bind.apply(r, P([void 0], e, !1)))();
2590
- }, {
2591
- cache: Z(t.pluralRules),
2592
- strategy: I.variadic
2593
- })
2594
- };
2595
- }
2596
- var Gt = (
2597
- /** @class */
2598
- function() {
2599
- function t(r, e, n, i) {
2600
- e === void 0 && (e = t.defaultLocale);
2601
- var o = this;
2602
- if (this.formatterCache = {
2603
- number: {},
2604
- dateTime: {},
2605
- pluralRules: {}
2606
- }, this.format = function(c) {
2607
- var u = o.formatToParts(c);
2608
- if (u.length === 1)
2609
- return u[0].value;
2610
- var h = u.reduce(function(l, f) {
2611
- return !l.length || f.type !== H.literal || typeof l[l.length - 1] != "string" ? l.push(f.value) : l[l.length - 1] += f.value, l;
2612
- }, []);
2613
- return h.length <= 1 ? h[0] || "" : h;
2614
- }, this.formatToParts = function(c) {
2615
- return x(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
2616
- }, this.resolvedOptions = function() {
2617
- var c;
2618
- return {
2619
- locale: ((c = o.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
2620
- };
2621
- }, this.getAst = function() {
2622
- return o.ast;
2623
- }, this.locales = e, this.resolvedLocale = t.resolveLocale(e), typeof r == "string") {
2624
- if (this.message = r, !t.__parse)
2625
- throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
2626
- var a = i || {};
2627
- a.formatters;
2628
- var s = er(a, ["formatters"]);
2629
- this.ast = t.__parse(r, m(m({}, s), { locale: this.resolvedLocale }));
2630
- } else
2631
- this.ast = r;
2632
- if (!Array.isArray(this.ast))
2633
- throw new TypeError("A message must be provided as a String or AST.");
2634
- this.formats = Xr(t.formats, n), this.formatters = i && i.formatters || Kr(this.formatterCache);
2635
- }
2636
- return Object.defineProperty(t, "defaultLocale", {
2637
- get: function() {
2638
- return t.memoizedDefaultLocale || (t.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), t.memoizedDefaultLocale;
2639
- },
2640
- enumerable: !1,
2641
- configurable: !0
2642
- }), t.memoizedDefaultLocale = null, t.resolveLocale = function(r) {
2643
- if (!(typeof Intl.Locale > "u")) {
2644
- var e = Intl.NumberFormat.supportedLocalesOf(r);
2645
- return e.length > 0 ? new Intl.Locale(e[0]) : new Intl.Locale(typeof r == "string" ? r : r[0]);
2646
- }
2647
- }, t.__parse = Or, t.formats = {
2648
- number: {
2649
- integer: {
2650
- maximumFractionDigits: 0
2651
- },
2652
- currency: {
2653
- style: "currency"
2654
- },
2655
- percent: {
2656
- style: "percent"
2657
- }
2658
- },
2659
- date: {
2660
- short: {
2661
- month: "numeric",
2662
- day: "numeric",
2663
- year: "2-digit"
2664
- },
2665
- medium: {
2666
- month: "short",
2667
- day: "numeric",
2668
- year: "numeric"
2669
- },
2670
- long: {
2671
- month: "long",
2672
- day: "numeric",
2673
- year: "numeric"
2674
- },
2675
- full: {
2676
- weekday: "long",
2677
- month: "long",
2678
- day: "numeric",
2679
- year: "numeric"
2680
- }
2681
- },
2682
- time: {
2683
- short: {
2684
- hour: "numeric",
2685
- minute: "numeric"
2686
- },
2687
- medium: {
2688
- hour: "numeric",
2689
- minute: "numeric",
2690
- second: "numeric"
2691
- },
2692
- long: {
2693
- hour: "numeric",
2694
- minute: "numeric",
2695
- second: "numeric",
2696
- timeZoneName: "short"
2697
- },
2698
- full: {
2699
- hour: "numeric",
2700
- minute: "numeric",
2701
- second: "numeric",
2702
- timeZoneName: "short"
2703
- }
2704
- }
2705
- }, t;
2706
- }()
2707
- ), M;
2708
- (function(t) {
2709
- t.FORMAT_ERROR = "FORMAT_ERROR", t.UNSUPPORTED_FORMATTER = "UNSUPPORTED_FORMATTER", t.INVALID_CONFIG = "INVALID_CONFIG", t.MISSING_DATA = "MISSING_DATA", t.MISSING_TRANSLATION = "MISSING_TRANSLATION";
2710
- })(M || (M = {}));
2711
- var F = (
2712
- /** @class */
2713
- function(t) {
2714
- B(r, t);
2715
- function r(e, n, i) {
2716
- var o = this, a = i ? i instanceof Error ? i : new Error(String(i)) : void 0;
2717
- return o = t.call(this, "[@formatjs/intl Error ".concat(e, "] ").concat(n, `
2718
- `).concat(a ? `
2719
- `.concat(a.message, `
2720
- `).concat(a.stack) : "")) || this, o.code = e, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(o, r), o;
2721
- }
2722
- return r;
2723
- }(Error)
2724
- ), Zr = (
2725
- /** @class */
2726
- function(t) {
2727
- B(r, t);
2728
- function r(e, n) {
2729
- return t.call(this, M.UNSUPPORTED_FORMATTER, e, n) || this;
2730
- }
2731
- return r;
2732
- }(F)
2733
- ), Yr = (
2734
- /** @class */
2735
- function(t) {
2736
- B(r, t);
2737
- function r(e, n) {
2738
- return t.call(this, M.INVALID_CONFIG, e, n) || this;
2739
- }
2740
- return r;
2741
- }(F)
2742
- ), gt = (
2743
- /** @class */
2744
- function(t) {
2745
- B(r, t);
2746
- function r(e, n) {
2747
- return t.call(this, M.MISSING_DATA, e, n) || this;
2748
- }
2749
- return r;
2750
- }(F)
2751
- ), A = (
2752
- /** @class */
2753
- function(t) {
2754
- B(r, t);
2755
- function r(e, n, i) {
2756
- var o = t.call(this, M.FORMAT_ERROR, "".concat(e, `
2757
- Locale: `).concat(n, `
2758
- `), i) || this;
2759
- return o.locale = n, o;
2760
- }
2761
- return r;
2762
- }(F)
2763
- ), Y = (
2764
- /** @class */
2765
- function(t) {
2766
- B(r, t);
2767
- function r(e, n, i, o) {
2768
- var a = t.call(this, "".concat(e, `
2769
- MessageID: `).concat(i == null ? void 0 : i.id, `
2770
- Default Message: `).concat(i == null ? void 0 : i.defaultMessage, `
2771
- Description: `).concat(i == null ? void 0 : i.description, `
2772
- `), n, o) || this;
2773
- return a.descriptor = i, a.locale = n, a;
2774
- }
2775
- return r;
2776
- }(A)
2777
- ), Wr = (
2778
- /** @class */
2779
- function(t) {
2780
- B(r, t);
2781
- function r(e, n) {
2782
- var i = t.call(this, M.MISSING_TRANSLATION, 'Missing message: "'.concat(e.id, '" for locale "').concat(n, '", using ').concat(e.defaultMessage ? "default message (".concat(typeof e.defaultMessage == "string" ? e.defaultMessage : e.defaultMessage.map(function(o) {
2783
- var a;
2784
- return (a = o.value) !== null && a !== void 0 ? a : JSON.stringify(o);
2785
- }).join(), ")") : "id", " as fallback.")) || this;
2786
- return i.descriptor = e, i;
2787
- }
2788
- return r;
2789
- }(F)
2790
- );
2791
- function D(t, r, e) {
2792
- return e === void 0 && (e = {}), r.reduce(function(n, i) {
2793
- return i in t ? n[i] = t[i] : i in e && (n[i] = e[i]), n;
2794
- }, {});
2795
- }
2796
- var zr = function(t) {
2797
- process.env.NODE_ENV !== "production" && console.error(t);
2798
- }, qr = function(t) {
2799
- process.env.NODE_ENV !== "production" && console.warn(t);
2800
- }, Qr = {
2801
- formats: {},
2802
- messages: {},
2803
- timeZone: void 0,
2804
- defaultLocale: "en",
2805
- defaultFormats: {},
2806
- fallbackOnEmptyString: !0,
2807
- onError: zr,
2808
- onWarn: qr
2809
- };
2810
- function Ut() {
2811
- return {
2812
- dateTime: {},
2813
- number: {},
2814
- message: {},
2815
- relativeTime: {},
2816
- pluralRules: {},
2817
- list: {},
2818
- displayNames: {}
2819
- };
2820
- }
2821
- function C(t) {
2822
- return {
2823
- create: function() {
2824
- return {
2825
- get: function(r) {
2826
- return t[r];
2827
- },
2828
- set: function(r, e) {
2829
- t[r] = e;
2830
- }
2831
- };
2832
- }
2833
- };
2834
- }
2835
- function Jr(t) {
2836
- t === void 0 && (t = Ut());
2837
- var r = Intl.RelativeTimeFormat, e = Intl.ListFormat, n = Intl.DisplayNames, i = N(function() {
2838
- for (var s, c = [], u = 0; u < arguments.length; u++)
2839
- c[u] = arguments[u];
2840
- return new ((s = Intl.DateTimeFormat).bind.apply(s, P([void 0], c, !1)))();
2841
- }, {
2842
- cache: C(t.dateTime),
2843
- strategy: I.variadic
2844
- }), o = N(function() {
2845
- for (var s, c = [], u = 0; u < arguments.length; u++)
2846
- c[u] = arguments[u];
2847
- return new ((s = Intl.NumberFormat).bind.apply(s, P([void 0], c, !1)))();
2848
- }, {
2849
- cache: C(t.number),
2850
- strategy: I.variadic
2851
- }), a = N(function() {
2852
- for (var s, c = [], u = 0; u < arguments.length; u++)
2853
- c[u] = arguments[u];
2854
- return new ((s = Intl.PluralRules).bind.apply(s, P([void 0], c, !1)))();
2855
- }, {
2856
- cache: C(t.pluralRules),
2857
- strategy: I.variadic
2858
- });
2859
- return {
2860
- getDateTimeFormat: i,
2861
- getNumberFormat: o,
2862
- getMessageFormat: N(function(s, c, u, h) {
2863
- return new Gt(s, c, u, m({ formatters: {
2864
- getNumberFormat: o,
2865
- getDateTimeFormat: i,
2866
- getPluralRules: a
2867
- } }, h || {}));
2868
- }, {
2869
- cache: C(t.message),
2870
- strategy: I.variadic
2871
- }),
2872
- getRelativeTimeFormat: N(function() {
2873
- for (var s = [], c = 0; c < arguments.length; c++)
2874
- s[c] = arguments[c];
2875
- return new (r.bind.apply(r, P([void 0], s, !1)))();
2876
- }, {
2877
- cache: C(t.relativeTime),
2878
- strategy: I.variadic
2879
- }),
2880
- getPluralRules: a,
2881
- getListFormat: N(function() {
2882
- for (var s = [], c = 0; c < arguments.length; c++)
2883
- s[c] = arguments[c];
2884
- return new (e.bind.apply(e, P([void 0], s, !1)))();
2885
- }, {
2886
- cache: C(t.list),
2887
- strategy: I.variadic
2888
- }),
2889
- getDisplayNames: N(function() {
2890
- for (var s = [], c = 0; c < arguments.length; c++)
2891
- s[c] = arguments[c];
2892
- return new (n.bind.apply(n, P([void 0], s, !1)))();
2893
- }, {
2894
- cache: C(t.displayNames),
2895
- strategy: I.variadic
2896
- })
2897
- };
2898
- }
2899
- function nt(t, r, e, n) {
2900
- var i = t && t[r], o;
2901
- if (i && (o = i[e]), o)
2902
- return o;
2903
- n(new Zr("No ".concat(r, " format named: ").concat(e)));
2904
- }
2905
- function $r(t, r, e) {
2906
- if (e === void 0 && (e = Error), !t)
2907
- throw new e(r);
2908
- }
2909
- function V(t, r) {
2910
- return Object.keys(t).reduce(function(e, n) {
2911
- return e[n] = m({ timeZone: r }, t[n]), e;
2912
- }, {});
2913
- }
2914
- function Et(t, r) {
2915
- var e = Object.keys(m(m({}, t), r));
2916
- return e.reduce(function(n, i) {
2917
- return n[i] = m(m({}, t[i] || {}), r[i] || {}), n;
2918
- }, {});
2919
- }
2920
- function bt(t, r) {
2921
- if (!r)
2922
- return t;
2923
- var e = Gt.formats;
2924
- return m(m(m({}, e), t), { date: Et(V(e.date, r), V(t.date || {}, r)), time: Et(V(e.time, r), V(t.time || {}, r)) });
2925
- }
2926
- var yt = function(t, r, e, n, i) {
2927
- var o = t.locale, a = t.formats, s = t.messages, c = t.defaultLocale, u = t.defaultFormats, h = t.fallbackOnEmptyString, l = t.onError, f = t.timeZone, p = t.defaultRichTextElements;
2928
- e === void 0 && (e = { id: "" });
2929
- var d = e.id, b = e.defaultMessage;
2930
- $r(!!d, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
2931
- var v = String(d), T = (
2932
- // In case messages is Object.create(null)
2933
- // e.g import('foo.json') from webpack)
2934
- // See https://github.com/formatjs/formatjs/issues/1914
2935
- s && Object.prototype.hasOwnProperty.call(s, v) && s[v]
2936
- );
2937
- if (Array.isArray(T) && T.length === 1 && T[0].type === y.literal)
2938
- return T[0].value;
2939
- if (!n && T && typeof T == "string" && !p)
2940
- return T.replace(/'\{(.*?)\}'/gi, "{$1}");
2941
- if (n = m(m({}, p), n || {}), a = bt(a, f), u = bt(u, f), !T) {
2942
- if (h === !1 && T === "")
2943
- return T;
2944
- if ((!b || o && o.toLowerCase() !== c.toLowerCase()) && l(new Wr(e, o)), b)
2945
- try {
2946
- var S = r.getMessageFormat(b, c, u, i);
2947
- return S.format(n);
2948
- } catch (_) {
2949
- return l(new Y('Error formatting default message for: "'.concat(v, '", rendering default message verbatim'), o, e, _)), typeof b == "string" ? b : v;
2950
- }
2951
- return v;
2952
- }
2953
- try {
2954
- var S = r.getMessageFormat(T, o, a, m({ formatters: r }, i || {}));
2955
- return S.format(n);
2956
- } catch (_) {
2957
- l(new Y('Error formatting message: "'.concat(v, '", using ').concat(b ? "default message" : "id", " as fallback."), o, e, _));
2958
- }
2959
- if (b)
2960
- try {
2961
- var S = r.getMessageFormat(b, c, u, i);
2962
- return S.format(n);
2963
- } catch (_) {
2964
- l(new Y('Error formatting the default message for: "'.concat(v, '", rendering message verbatim'), o, e, _));
2965
- }
2966
- return typeof T == "string" ? T : typeof b == "string" ? b : v;
2967
- }, Ft = [
2968
- "formatMatcher",
2969
- "timeZone",
2970
- "hour12",
2971
- "weekday",
2972
- "era",
2973
- "year",
2974
- "month",
2975
- "day",
2976
- "hour",
2977
- "minute",
2978
- "second",
2979
- "timeZoneName",
2980
- "hourCycle",
2981
- "dateStyle",
2982
- "timeStyle",
2983
- "calendar",
2984
- // 'dayPeriod',
2985
- "numberingSystem",
2986
- "fractionalSecondDigits"
2987
- ];
2988
- function X(t, r, e, n) {
2989
- var i = t.locale, o = t.formats, a = t.onError, s = t.timeZone;
2990
- n === void 0 && (n = {});
2991
- var c = n.format, u = m(m({}, s && { timeZone: s }), c && nt(o, r, c, a)), h = D(n, Ft, u);
2992
- return r === "time" && !h.hour && !h.minute && !h.second && !h.timeStyle && !h.dateStyle && (h = m(m({}, h), { hour: "numeric", minute: "numeric" })), e(i, h);
2993
- }
2994
- function te(t, r) {
2995
- for (var e = [], n = 2; n < arguments.length; n++)
2996
- e[n - 2] = arguments[n];
2997
- var i = e[0], o = e[1], a = o === void 0 ? {} : o, s = typeof i == "string" ? new Date(i || 0) : i;
2998
- try {
2999
- return X(t, "date", r, a).format(s);
3000
- } catch (c) {
3001
- t.onError(new A("Error formatting date.", t.locale, c));
3002
- }
3003
- return String(s);
3004
- }
3005
- function re(t, r) {
3006
- for (var e = [], n = 2; n < arguments.length; n++)
3007
- e[n - 2] = arguments[n];
3008
- var i = e[0], o = e[1], a = o === void 0 ? {} : o, s = typeof i == "string" ? new Date(i || 0) : i;
3009
- try {
3010
- return X(t, "time", r, a).format(s);
3011
- } catch (c) {
3012
- t.onError(new A("Error formatting time.", t.locale, c));
3013
- }
3014
- return String(s);
3015
- }
3016
- function ee(t, r) {
3017
- for (var e = [], n = 2; n < arguments.length; n++)
3018
- e[n - 2] = arguments[n];
3019
- var i = e[0], o = e[1], a = e[2], s = a === void 0 ? {} : a, c = t.timeZone, u = t.locale, h = t.onError, l = D(s, Ft, c ? { timeZone: c } : {});
3020
- try {
3021
- return r(u, l).formatRange(i, o);
3022
- } catch (f) {
3023
- h(new A("Error formatting date time range.", t.locale, f));
3024
- }
3025
- return String(i);
3026
- }
3027
- function ne(t, r) {
3028
- for (var e = [], n = 2; n < arguments.length; n++)
3029
- e[n - 2] = arguments[n];
3030
- var i = e[0], o = e[1], a = o === void 0 ? {} : o, s = typeof i == "string" ? new Date(i || 0) : i;
3031
- try {
3032
- return X(t, "date", r, a).formatToParts(s);
3033
- } catch (c) {
3034
- t.onError(new A("Error formatting date.", t.locale, c));
3035
- }
3036
- return [];
3037
- }
3038
- function ie(t, r) {
3039
- for (var e = [], n = 2; n < arguments.length; n++)
3040
- e[n - 2] = arguments[n];
3041
- var i = e[0], o = e[1], a = o === void 0 ? {} : o, s = typeof i == "string" ? new Date(i || 0) : i;
3042
- try {
3043
- return X(t, "time", r, a).formatToParts(s);
3044
- } catch (c) {
3045
- t.onError(new A("Error formatting time.", t.locale, c));
3046
- }
3047
- return [];
3048
- }
3049
- var oe = [
3050
- "style",
3051
- "type",
3052
- "fallback",
3053
- "languageDisplay"
3054
- ];
3055
- function ae(t, r, e, n) {
3056
- var i = t.locale, o = t.onError, a = Intl.DisplayNames;
3057
- a || o(new R(`Intl.DisplayNames is not available in this environment.
3058
- Try polyfilling it using "@formatjs/intl-displaynames"
3059
- `, L.MISSING_INTL_API));
3060
- var s = D(n, oe);
3061
- try {
3062
- return r(i, s).of(e);
3063
- } catch (c) {
3064
- o(new A("Error formatting display name.", i, c));
3065
- }
3066
- }
3067
- var se = [
3068
- "type",
3069
- "style"
3070
- ], dt = Date.now();
3071
- function he(t) {
3072
- return "".concat(dt, "_").concat(t, "_").concat(dt);
3073
- }
3074
- function ue(t, r, e, n) {
3075
- n === void 0 && (n = {});
3076
- var i = kt(t, r, e, n).reduce(function(o, a) {
3077
- var s = a.value;
3078
- return typeof s != "string" ? o.push(s) : typeof o[o.length - 1] == "string" ? o[o.length - 1] += s : o.push(s), o;
3079
- }, []);
3080
- return i.length === 1 ? i[0] : i.length === 0 ? "" : i;
3081
- }
3082
- function kt(t, r, e, n) {
3083
- var i = t.locale, o = t.onError;
3084
- n === void 0 && (n = {});
3085
- var a = Intl.ListFormat;
3086
- a || o(new R(`Intl.ListFormat is not available in this environment.
3087
- Try polyfilling it using "@formatjs/intl-listformat"
3088
- `, L.MISSING_INTL_API));
3089
- var s = D(n, se);
3090
- try {
3091
- var c = {}, u = e.map(function(h, l) {
3092
- if (typeof h == "object") {
3093
- var f = he(l);
3094
- return c[f] = h, f;
3095
- }
3096
- return String(h);
3097
- });
3098
- return r(i, s).formatToParts(u).map(function(h) {
3099
- return h.type === "literal" ? h : m(m({}, h), { value: c[h.value] || h.value });
3100
- });
3101
- } catch (h) {
3102
- o(new A("Error formatting list.", i, h));
3103
- }
3104
- return e;
3105
- }
3106
- var ce = ["type"];
3107
- function le(t, r, e, n) {
3108
- var i = t.locale, o = t.onError;
3109
- n === void 0 && (n = {}), Intl.PluralRules || o(new R(`Intl.PluralRules is not available in this environment.
3110
- Try polyfilling it using "@formatjs/intl-pluralrules"
3111
- `, L.MISSING_INTL_API));
3112
- var a = D(n, ce);
3113
- try {
3114
- return r(i, a).select(e);
3115
- } catch (s) {
3116
- o(new A("Error formatting plural.", i, s));
3117
- }
3118
- return "other";
3119
- }
3120
- var fe = ["numeric", "style"];
3121
- function me(t, r, e) {
3122
- var n = t.locale, i = t.formats, o = t.onError;
3123
- e === void 0 && (e = {});
3124
- var a = e.format, s = !!a && nt(i, "relative", a, o) || {}, c = D(e, fe, s);
3125
- return r(n, c);
3126
- }
3127
- function pe(t, r, e, n, i) {
3128
- i === void 0 && (i = {}), n || (n = "second");
3129
- var o = Intl.RelativeTimeFormat;
3130
- o || t.onError(new R(`Intl.RelativeTimeFormat is not available in this environment.
3131
- Try polyfilling it using "@formatjs/intl-relativetimeformat"
3132
- `, L.MISSING_INTL_API));
3133
- try {
3134
- return me(t, r, i).format(e, n);
3135
- } catch (a) {
3136
- t.onError(new A("Error formatting relative time.", t.locale, a));
3137
- }
3138
- return String(e);
3139
- }
3140
- var ge = [
3141
- "style",
3142
- "currency",
3143
- "currencyDisplay",
3144
- "unit",
3145
- "unitDisplay",
3146
- "useGrouping",
3147
- "minimumIntegerDigits",
3148
- "minimumFractionDigits",
3149
- "maximumFractionDigits",
3150
- "minimumSignificantDigits",
3151
- "maximumSignificantDigits",
3152
- // ES2020 NumberFormat
3153
- "compactDisplay",
3154
- "currencyDisplay",
3155
- "currencySign",
3156
- "notation",
3157
- "signDisplay",
3158
- "unit",
3159
- "unitDisplay",
3160
- "numberingSystem"
3161
- ];
3162
- function jt(t, r, e) {
3163
- var n = t.locale, i = t.formats, o = t.onError;
3164
- e === void 0 && (e = {});
3165
- var a = e.format, s = a && nt(i, "number", a, o) || {}, c = D(e, ge, s);
3166
- return r(n, c);
3167
- }
3168
- function Ee(t, r, e, n) {
3169
- n === void 0 && (n = {});
3170
- try {
3171
- return jt(t, r, n).format(e);
3172
- } catch (i) {
3173
- t.onError(new A("Error formatting number.", t.locale, i));
3174
- }
3175
- return String(e);
3176
- }
3177
- function be(t, r, e, n) {
3178
- n === void 0 && (n = {});
3179
- try {
3180
- return jt(t, r, n).formatToParts(e);
3181
- } catch (i) {
3182
- t.onError(new A("Error formatting number.", t.locale, i));
3183
- }
3184
- return [];
3185
- }
3186
- function ye(t) {
3187
- var r = t ? t[Object.keys(t)[0]] : void 0;
3188
- return typeof r == "string";
3189
- }
3190
- function de(t) {
3191
- t.onWarn && t.defaultRichTextElements && ye(t.messages || {}) && t.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
3192
- Please consider using "@formatjs/cli" to pre-compile your messages for performance.
3193
- For more details see https://formatjs.io/docs/getting-started/message-distribution`);
3194
- }
3195
- function ve(t, r) {
3196
- var e = Jr(r), n = m(m({}, Qr), t), i = n.locale, o = n.defaultLocale, a = n.onError;
3197
- return i ? !Intl.NumberFormat.supportedLocalesOf(i).length && a ? a(new gt('Missing locale data for locale: "'.concat(i, '" in Intl.NumberFormat. Using default locale: "').concat(o, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(i).length && a && a(new gt('Missing locale data for locale: "'.concat(i, '" in Intl.DateTimeFormat. Using default locale: "').concat(o, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (a && a(new Yr('"locale" was not configured, using "'.concat(o, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), n.locale = n.defaultLocale || "en"), de(n), m(m({}, n), {
3198
- formatters: e,
3199
- formatNumber: Ee.bind(null, n, e.getNumberFormat),
3200
- formatNumberToParts: be.bind(null, n, e.getNumberFormat),
3201
- formatRelativeTime: pe.bind(null, n, e.getRelativeTimeFormat),
3202
- formatDate: te.bind(null, n, e.getDateTimeFormat),
3203
- formatDateToParts: ne.bind(null, n, e.getDateTimeFormat),
3204
- formatTime: re.bind(null, n, e.getDateTimeFormat),
3205
- formatDateTimeRange: ee.bind(null, n, e.getDateTimeFormat),
3206
- formatTimeToParts: ie.bind(null, n, e.getDateTimeFormat),
3207
- formatPlural: le.bind(null, n, e.getPluralRules),
3208
- // @ts-expect-error TODO: will get to this later
3209
- formatMessage: yt.bind(null, n, e),
3210
- // @ts-expect-error TODO: will get to this later
3211
- $t: yt.bind(null, n, e),
3212
- formatList: ue.bind(null, n, e.getListFormat),
3213
- formatListToParts: kt.bind(null, n, e.getListFormat),
3214
- formatDisplayName: ae.bind(null, n, e.getDisplayNames)
3215
- });
3216
- }
3217
- var Te = U;
3218
- U.flatten = U;
3219
- U.unflatten = Xt;
3220
- function Vt(t) {
3221
- return t && t.constructor && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
3222
- }
3223
- function xt(t) {
3224
- return t;
3225
- }
3226
- function U(t, r) {
3227
- r = r || {};
3228
- const e = r.delimiter || ".", n = r.maxDepth, i = r.transformKey || xt, o = {};
3229
- function a(s, c, u) {
3230
- u = u || 1, Object.keys(s).forEach(function(h) {
3231
- const l = s[h], f = r.safe && Array.isArray(l), p = Object.prototype.toString.call(l), d = Vt(l), b = p === "[object Object]" || p === "[object Array]", v = c ? c + e + i(h) : i(h);
3232
- if (!f && !d && b && Object.keys(l).length && (!r.maxDepth || u < n))
3233
- return a(l, v, u + 1);
3234
- o[v] = l;
3235
- });
3236
- }
3237
- return a(t), o;
3238
- }
3239
- function Xt(t, r) {
3240
- r = r || {};
3241
- const e = r.delimiter || ".", n = r.overwrite || !1, i = r.transformKey || xt, o = {};
3242
- if (Vt(t) || Object.prototype.toString.call(t) !== "[object Object]")
3243
- return t;
3244
- function a(u) {
3245
- const h = Number(u);
3246
- return isNaN(h) || u.indexOf(".") !== -1 || r.object ? u : h;
3247
- }
3248
- function s(u, h, l) {
3249
- return Object.keys(l).reduce(function(f, p) {
3250
- return f[u + e + p] = l[p], f;
3251
- }, h);
3252
- }
3253
- function c(u) {
3254
- const h = Object.prototype.toString.call(u), l = h === "[object Array]", f = h === "[object Object]";
3255
- if (u) {
3256
- if (l)
3257
- return !u.length;
3258
- if (f)
3259
- return !Object.keys(u).length;
3260
- } else
3261
- return !0;
3262
- }
3263
- return t = Object.keys(t).reduce(function(u, h) {
3264
- const l = Object.prototype.toString.call(t[h]);
3265
- return !(l === "[object Object]" || l === "[object Array]") || c(t[h]) ? (u[h] = t[h], u) : s(
3266
- h,
3267
- u,
3268
- U(t[h], r)
3269
- );
3270
- }, {}), Object.keys(t).forEach(function(u) {
3271
- const h = u.split(e).map(i);
3272
- let l = a(h.shift()), f = a(h[0]), p = o;
3273
- for (; f !== void 0; ) {
3274
- if (l === "__proto__")
3275
- return;
3276
- const d = Object.prototype.toString.call(p[l]), b = d === "[object Object]" || d === "[object Array]";
3277
- if (!n && !b && typeof p[l] < "u")
3278
- return;
3279
- (n && !b || !n && p[l] == null) && (p[l] = typeof f == "number" && !r.object ? [] : {}), p = p[l], h.length > 0 && (l = a(h.shift()), f = a(h[0]));
3280
- }
3281
- p[l] = Xt(t[u], r);
3282
- }), o;
3283
- }
3284
- const _e = Ut(), He = (t, r, e = !1) => {
3285
- const n = ve(
3286
- {
3287
- ...typeof e == "boolean" ? null : e,
3288
- locale: t,
3289
- messages: Te.flatten(r, {
3290
- safe: !0
3291
- // Preserve arrays
3292
- })
3293
- },
3294
- _e
3295
- ), { $t: i, ...o } = n, a = o, s = (u) => {
3296
- const h = "Invalid Date";
3297
- if (!u)
3298
- return h;
3299
- try {
3300
- const l = new Date(u * 1e3);
3301
- return a.formatDate(l, {
3302
- year: "numeric",
3303
- month: "short",
3304
- day: "numeric",
3305
- hour: "numeric",
3306
- minute: "numeric"
3307
- });
3308
- } catch {
3309
- return h;
3310
- }
3311
- }, c = {
3312
- formatUnixTimeStamp: s,
3313
- formatIsoDate: (u) => {
3314
- const h = Date.parse(u) / 1e3;
3315
- return s(h);
3316
- },
3317
- t: (u, h, l) => a.formatMessage({ id: u }, h, l),
3318
- te: (u) => !!a.messages[u],
3319
- tm: (u) => a.messages[u] || [],
3320
- ...a,
3321
- source: r
3322
- };
3323
- return typeof e == "boolean" && e === !0 || typeof e != "boolean" && e.isGlobal, c;
3324
- }, Se = (t = null) => vt({
3325
- name: "I18nT",
3326
- props: {
3327
- i18n: {
3328
- type: Object,
3329
- default: null
3330
- },
3331
- keypath: {
3332
- type: String,
3333
- // type: String as unknown as PropType<PathToDotNotation<MessageSource, string>>, // This breaks the type interface, enable to debug
3334
- required: !0
3335
- },
3336
- tag: {
3337
- type: String,
3338
- default: "span"
3339
- }
3340
- },
3341
- setup(r, { slots: e }) {
3342
- const n = (i) => {
3343
- if (!i)
3344
- return [];
3345
- const o = /(\{[^}]+\})/g;
3346
- return i.split(o).filter(Boolean);
3347
- };
3348
- return () => {
3349
- const i = Object.keys(e).filter((s) => s !== "_"), o = (t || r.i18n).messages[r.keypath].toString();
3350
- let a = n(o);
3351
- return a = a.filter((s) => s !== ""), a.forEach((s, c) => {
3352
- if (!s.startsWith("{") && !s.endsWith("}"))
3353
- return;
3354
- const u = s.replace(/[\{\}]/g, "");
3355
- u === "0" && e.default ? a[c] = e.default() : i.includes(u) && e[u] && (a[c] = e[u]());
3356
- }), Kt(r.tag, r, a);
3357
- };
3358
- }
3359
- }), Ae = {
3360
- install(t, r) {
3361
- const { i18n: e } = r;
3362
- t.component("I18nT", Se(e));
3363
- }
3364
- }, Be = {
1
+ import { defineComponent as u, computed as c, ref as d, onMounted as b, resolveComponent as p, openBlock as h, createElementBlock as g, createVNode as _, withCtx as f, createElementVNode as i, unref as s, toDisplayString as m, createCommentVNode as S } from "vue";
2
+ import { createI18n as v, Translation as y } from "@kong-ui-public/i18n";
3
+ const k = {
3365
4
  title: "Star",
3366
5
  ariaLabel: "Star buttons/github-buttons on GitHub",
3367
6
  tooltipLabel: "Star this repository on Github"
3368
- }, Ne = {
3369
- githubStar: Be
7
+ }, x = {
8
+ githubStar: k
3370
9
  };
3371
- function Ie() {
10
+ function L() {
3372
11
  return {
3373
- i18n: He("en-us", Ne),
3374
- i18nT: Ae
12
+ i18n: v("en-us", x),
13
+ i18nT: y
3375
14
  // Translation component <i18n-t>
3376
15
  };
3377
16
  }
3378
- const Le = {
3379
- useI18n: Ie
3380
- }, Pe = {
17
+ const T = {
18
+ useI18n: L
19
+ }, C = {
3381
20
  key: 0,
3382
21
  class: "kong-ui-public-misc-widgets-github-star",
3383
22
  "data-testid": "github-star",
3384
23
  "data-tracking-id": "github-star"
3385
- }, Re = ["aria-label", "href"], Oe = /* @__PURE__ */ vt({
24
+ }, G = ["aria-label", "href"], E = /* @__PURE__ */ u({
3386
25
  __name: "GithubStar",
3387
26
  props: {
3388
27
  url: {
@@ -3396,40 +35,40 @@ const Le = {
3396
35
  }
3397
36
  },
3398
37
  setup(t) {
3399
- const r = t, { i18n: e } = Le.useI18n(), n = Zt(() => r.tooltipText || e.t("githubStar.tooltipLabel")), i = Yt(!1);
3400
- return Wt(async () => {
3401
- const o = document.createElement("script");
3402
- o.addEventListener("load", () => {
3403
- i.value = !0;
3404
- }), o.setAttribute("src", "https://buttons.github.io/buttons.js"), document.head.appendChild(o);
3405
- }), (o, a) => {
3406
- const s = zt("KTooltip");
3407
- return t.url && i.value ? (qt(), Qt("div", Pe, [
3408
- Jt(s, { label: n.value }, {
3409
- default: $t(() => [
3410
- ot("span", null, [
3411
- ot("a", {
3412
- "aria-label": at(e).t("githubStar.ariaLabel"),
38
+ const n = t, { i18n: e } = T.useI18n(), r = c(() => n.tooltipText || e.t("githubStar.tooltipLabel")), o = d(!1);
39
+ return b(async () => {
40
+ const a = document.createElement("script");
41
+ a.addEventListener("load", () => {
42
+ o.value = !0;
43
+ }), a.setAttribute("src", "https://buttons.github.io/buttons.js"), document.head.appendChild(a);
44
+ }), (a, w) => {
45
+ const l = p("KTooltip");
46
+ return t.url && o.value ? (h(), g("div", C, [
47
+ _(l, { label: r.value }, {
48
+ default: f(() => [
49
+ i("span", null, [
50
+ i("a", {
51
+ "aria-label": s(e).t("githubStar.ariaLabel"),
3413
52
  class: "github-button",
3414
53
  "data-color-scheme": "no-preference: light; light: light; dark: light;",
3415
54
  "data-show-count": "true",
3416
55
  href: t.url,
3417
56
  target: "_blank"
3418
- }, tr(at(e).t("githubStar.title")), 9, Re)
57
+ }, m(s(e).t("githubStar.title")), 9, G)
3419
58
  ])
3420
59
  ]),
3421
60
  _: 1
3422
61
  }, 8, ["label"])
3423
- ])) : rr("", !0);
62
+ ])) : S("", !0);
3424
63
  };
3425
64
  }
3426
65
  });
3427
- const Ce = (t, r) => {
66
+ const I = (t, n) => {
3428
67
  const e = t.__vccOpts || t;
3429
- for (const [n, i] of r)
3430
- e[n] = i;
68
+ for (const [r, o] of n)
69
+ e[r] = o;
3431
70
  return e;
3432
- }, De = /* @__PURE__ */ Ce(Oe, [["__scopeId", "data-v-4d357ff1"]]);
71
+ }, q = /* @__PURE__ */ I(E, [["__scopeId", "data-v-4d357ff1"]]);
3433
72
  export {
3434
- De as GithubStar
73
+ q as GithubStar
3435
74
  };