@nxgt/material 3.60.0 → 3.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/README.md +3 -2
- package/dist/alert-dialog-RHm6WtQj.js +189 -0
- package/dist/{async-slice-HJY_VJjD.js → async-slice-DmX59NyA.js} +3 -4
- package/dist/{button-7BuUCGRm.js → button-DfS_amfQ.js} +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-kQOrHlDX.js → chip-Cbndukko.js} +2 -2
- package/dist/{code-editor-Ckc9TTCM.js → code-editor-B0tN8Ha_.js} +11 -11
- package/dist/code-editor.js +54 -37
- package/dist/{code-language-items-rCPB0Xee.js → code-language-items-andgHKrM.js} +2 -2
- package/dist/components/ui/layout/sidebar/sidebar-tokens.css +13 -1
- package/dist/{components-BSM-h5IQ.js → components-Cm2doOJS.js} +13090 -12957
- package/dist/components.js +28 -26
- package/dist/dialog-Bd7Hid2L.js +219 -0
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-CiobN1wi.js → dropdown-menu-_SyVmSuy.js} +1 -1
- package/dist/editor.js +707 -706
- package/dist/{empty-state-DA517HAb.js → empty-state-D-2ZMXXJ.js} +2 -2
- package/dist/escape-owner-DpaP0lm1.js +19 -0
- package/dist/{field-blur-DdvY0NQQ.js → field-blur-DyOByjzw.js} +1 -1
- package/dist/{field-blur-context-DbJQZkEB.js → field-blur-context-DPe5_Nv5.js} +1 -1
- package/dist/hooks-a7_exKWS.js +329 -0
- package/dist/hooks.js +8 -102
- package/dist/{hover-card-DPs9huSs.js → hover-card-D_0smKBQ.js} +2 -2
- package/dist/i18n.js +8 -10
- package/dist/{icon-badge-C646JTOI.js → icon-badge-CBCU3ySF.js} +14 -14
- package/dist/{icon-button-DvP0Gy3j.js → icon-button-hKHsWTAt.js} +1 -1
- package/dist/illustrations-game.js +2 -0
- package/dist/lib/components/ui/display/list-tile/list-tile.d.ts +6 -0
- package/dist/lib/components/ui/display/list-tile/partials/list-tile-classes.d.ts +3 -1
- package/dist/lib/components/ui/display/list-tile/partials/list-tile-line.d.ts +1 -1
- package/dist/lib/components/ui/display/list-tile/partials/list-tile-toggle.d.ts +1 -1
- package/dist/lib/components/ui/feedback/index.d.ts +1 -0
- package/dist/lib/components/ui/feedback/unsaved-dialog/index.d.ts +1 -0
- package/dist/lib/components/ui/feedback/unsaved-dialog/unsaved-dialog.d.ts +20 -0
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/textarea-field/textarea-footer.d.ts +2 -1
- package/dist/lib/components/ui/layout/app-shell/activity-layout.types.d.ts +6 -3
- package/dist/lib/components/ui/layout/app-shell/index.d.ts +1 -1
- package/dist/lib/components/ui/layout/app-shell/route-transition.d.ts +20 -2
- package/dist/lib/components/ui/layout/app-shell/shapes-clear-content.d.ts +2 -1
- package/dist/lib/components/ui/widgets/code-editor/configure-monaco.d.ts +2 -0
- package/dist/lib/components/ui/widgets/education/questions/index.d.ts +3 -1
- package/dist/lib/components/ui/widgets/education/questions/partials/question-content.d.ts +1 -1
- package/dist/lib/components/ui/widgets/education/questions/partials/question-top.d.ts +6 -0
- package/dist/lib/components/ui/widgets/education/questions/question-long-text.d.ts +5 -0
- package/dist/lib/components/ui/widgets/education/questions/question-media-content.d.ts +24 -0
- package/dist/lib/components/ui/widgets/education/questions/question-media-helpers.d.ts +11 -0
- package/dist/lib/components/ui/widgets/education/questions/question-media-view.d.ts +18 -0
- package/dist/lib/components/ui/widgets/education/questions/question-media-view.types.d.ts +32 -0
- package/dist/lib/components/ui/widgets/education/questions/question-options.d.ts +2 -2
- package/dist/lib/components/ui/widgets/education/questions/question-text.d.ts +1 -1
- package/dist/lib/components/ui/widgets/education/questions/question.d.ts +1 -1
- package/dist/lib/components/ui/widgets/education/questions/types.d.ts +38 -1
- package/dist/lib/components/ui/widgets/education/questions/use-reload-focus.d.ts +13 -0
- package/dist/lib/hooks/drafts-store.d.ts +4 -0
- package/dist/lib/hooks/index.d.ts +4 -0
- package/dist/lib/hooks/unsaved-guard-rules.d.ts +30 -0
- package/dist/lib/hooks/use-drafts.d.ts +75 -0
- package/dist/lib/hooks/use-react-router-block.d.ts +11 -0
- package/dist/lib/hooks/use-unsaved-guard/guard-core.d.ts +30 -0
- package/dist/lib/hooks/use-unsaved-guard/index.d.ts +3 -0
- package/dist/lib/hooks/use-unsaved-guard/types.d.ts +63 -0
- package/dist/lib/hooks/use-unsaved-guard/use-discard-guard.d.ts +15 -0
- package/dist/lib/hooks/use-unsaved-guard/use-unsaved-guard.d.ts +19 -0
- package/dist/lib/i18n/resources/en/en.d.ts +20 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +21 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +20 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +21 -1
- package/dist/lib/i18n/resources/resources.d.ts +40 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/illustrations-game/index.d.ts +17 -0
- package/dist/lib.js +1 -1
- package/dist/main.js +42 -43
- package/dist/map.js +63 -63
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/print.js +1 -2
- package/dist/{public-BYsrhyPW.js → public-D8JGp3PH.js} +823 -822
- package/dist/{rich-code-block-WJxDWPPY.js → rich-code-block-0R3bidsM.js} +5 -5
- package/dist/{sortable-provider-oPjlhlZo.js → sortable-provider-B75v53sB.js} +2 -2
- package/dist/{spinner-C5lObWXT.js → spinner-CAnpF3RK.js} +1 -1
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-CPEq5JG-.js → theme-toggle-pQ5F602V.js} +1 -1
- package/dist/{toolbar-items-ByvXcMHm.js → toolbar-items-_ezD5B0r.js} +4 -4
- package/dist/translate-material-CvZK8_S6.js +96 -0
- package/dist/{stored-language-B-tiWZU2.js → translator-Caf-d96e.js} +2497 -8
- package/dist/{escape-owner-r57kuPjn.js → typography-CEK19bj8.js} +17 -34
- package/dist/{use-chat-composer-CzOVaIed.js → use-chat-composer-Dpvi_-CR.js} +5164 -5338
- package/dist/{use-heading-spy-BOtygPFu.js → use-heading-spy-mmcyEGmm.js} +186 -71
- package/dist/{use-material-translation-B5j3jZs7.js → use-material-translation-C_1cWRzW.js} +1 -2
- package/dist/use-return-focus-1ZIchrBM.js +269 -0
- package/docs/components/data-display.md +1 -0
- package/docs/components/feedback-and-status.md +23 -0
- package/docs/components/navigation-and-layout.md +5 -4
- package/docs/components/rich-widgets.md +73 -1
- package/docs/guides/app-shell.md +17 -0
- package/docs/guides/code-editor.md +8 -0
- package/docs/guides/csp.md +4 -0
- package/docs/guides/helpers.md +120 -0
- package/docs/guides/icon-motifs.md +3 -1
- package/docs/guides/illustrations.md +33 -1
- package/docs/guides/migrating-to-3.md +4 -2
- package/docs/guides/theming.md +13 -3
- package/docs/previews/feedback-status-illustration-game.webp +0 -0
- package/docs/previews/feedback-status-unsaveddialog.webp +0 -0
- package/docs/roadmap.md +1 -1
- package/docs/troubleshooting.md +9 -6
- package/lib/components/ui/layout/sidebar/sidebar-tokens.css +13 -1
- package/package.json +7 -2
- package/dist/dialog-yfPkLqUQ.js +0 -482
- package/dist/i18n-provider-BehR6cU7.js +0 -79
- package/dist/translate-material-tUaLZUmT.js +0 -20
- package/dist/translator-B9XjUDRu.js +0 -2451
|
@@ -1,2451 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./is-production-GLw59WU8.js";
|
|
2
|
-
import { a as t, i as n, r, t as i } from "./stored-language-B-tiWZU2.js";
|
|
3
|
-
import { t as a } from "./get-CTzJAwfc.js";
|
|
4
|
-
//#region ../../node_modules/@formatjs/fast-memoize/index.js
|
|
5
|
-
function o(e, t) {
|
|
6
|
-
let n = t && t.cache ? t.cache : ie, r = t && t.serializer ? t.serializer : ne;
|
|
7
|
-
return (t && t.strategy ? t.strategy : d)(e, {
|
|
8
|
-
cache: n,
|
|
9
|
-
serializer: r
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
function s(e) {
|
|
13
|
-
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
14
|
-
}
|
|
15
|
-
function c(e, t, n, r) {
|
|
16
|
-
let i = s(r) ? r : n(r), a = t.get(i);
|
|
17
|
-
return a === void 0 && (a = e.call(this, r), t.set(i, a)), a;
|
|
18
|
-
}
|
|
19
|
-
function l(e, t, n) {
|
|
20
|
-
let r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
21
|
-
return a === void 0 && (a = e.apply(this, r), t.set(i, a)), a;
|
|
22
|
-
}
|
|
23
|
-
function u(e, t, n, r, i) {
|
|
24
|
-
return n.bind(t, e, r, i);
|
|
25
|
-
}
|
|
26
|
-
function d(e, t) {
|
|
27
|
-
let n = e.length === 1 ? c : l;
|
|
28
|
-
return u(e, this, n, t.cache.create(), t.serializer);
|
|
29
|
-
}
|
|
30
|
-
function ee(e, t) {
|
|
31
|
-
return u(e, this, l, t.cache.create(), t.serializer);
|
|
32
|
-
}
|
|
33
|
-
function te(e, t) {
|
|
34
|
-
return u(e, this, c, t.cache.create(), t.serializer);
|
|
35
|
-
}
|
|
36
|
-
var ne = function() {
|
|
37
|
-
return JSON.stringify(arguments);
|
|
38
|
-
}, re = class {
|
|
39
|
-
constructor() {
|
|
40
|
-
this.cache = Object.create(null);
|
|
41
|
-
}
|
|
42
|
-
get(e) {
|
|
43
|
-
return this.cache[e];
|
|
44
|
-
}
|
|
45
|
-
set(e, t) {
|
|
46
|
-
this.cache[e] = t;
|
|
47
|
-
}
|
|
48
|
-
}, ie = { create: function() {
|
|
49
|
-
return new re();
|
|
50
|
-
} }, f = {
|
|
51
|
-
variadic: ee,
|
|
52
|
-
monadic: te
|
|
53
|
-
}, p = /(?:[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;
|
|
54
|
-
function ae(e) {
|
|
55
|
-
let t = {};
|
|
56
|
-
return e.replace(p, (e) => {
|
|
57
|
-
let n = e.length;
|
|
58
|
-
switch (e[0]) {
|
|
59
|
-
case "G":
|
|
60
|
-
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
61
|
-
break;
|
|
62
|
-
case "y":
|
|
63
|
-
t.year = n === 2 ? "2-digit" : "numeric";
|
|
64
|
-
break;
|
|
65
|
-
case "Y":
|
|
66
|
-
case "u":
|
|
67
|
-
case "U":
|
|
68
|
-
case "r": throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
|
|
69
|
-
case "q":
|
|
70
|
-
case "Q": throw RangeError("`q/Q` (quarter) patterns are not supported");
|
|
71
|
-
case "M":
|
|
72
|
-
case "L":
|
|
73
|
-
t.month = [
|
|
74
|
-
"numeric",
|
|
75
|
-
"2-digit",
|
|
76
|
-
"short",
|
|
77
|
-
"long",
|
|
78
|
-
"narrow"
|
|
79
|
-
][n - 1];
|
|
80
|
-
break;
|
|
81
|
-
case "w":
|
|
82
|
-
case "W": throw RangeError("`w/W` (week) patterns are not supported");
|
|
83
|
-
case "d":
|
|
84
|
-
t.day = ["numeric", "2-digit"][n - 1];
|
|
85
|
-
break;
|
|
86
|
-
case "D":
|
|
87
|
-
case "F":
|
|
88
|
-
case "g": throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
89
|
-
case "E":
|
|
90
|
-
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
91
|
-
break;
|
|
92
|
-
case "e":
|
|
93
|
-
if (n < 4) throw RangeError("`e..eee` (weekday) patterns are not supported");
|
|
94
|
-
t.weekday = [
|
|
95
|
-
"short",
|
|
96
|
-
"long",
|
|
97
|
-
"narrow",
|
|
98
|
-
"short"
|
|
99
|
-
][n - 3];
|
|
100
|
-
break;
|
|
101
|
-
case "c":
|
|
102
|
-
if (n < 4) throw RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
103
|
-
t.weekday = [
|
|
104
|
-
"short",
|
|
105
|
-
"long",
|
|
106
|
-
"narrow",
|
|
107
|
-
"short"
|
|
108
|
-
][n - 3];
|
|
109
|
-
break;
|
|
110
|
-
case "a":
|
|
111
|
-
t.hour12 = !0;
|
|
112
|
-
break;
|
|
113
|
-
case "b":
|
|
114
|
-
case "B": throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
115
|
-
case "h":
|
|
116
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
117
|
-
break;
|
|
118
|
-
case "H":
|
|
119
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
120
|
-
break;
|
|
121
|
-
case "K":
|
|
122
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
123
|
-
break;
|
|
124
|
-
case "k":
|
|
125
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
126
|
-
break;
|
|
127
|
-
case "j":
|
|
128
|
-
case "J":
|
|
129
|
-
case "C": throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
130
|
-
case "m":
|
|
131
|
-
t.minute = ["numeric", "2-digit"][n - 1];
|
|
132
|
-
break;
|
|
133
|
-
case "s":
|
|
134
|
-
t.second = ["numeric", "2-digit"][n - 1];
|
|
135
|
-
break;
|
|
136
|
-
case "S":
|
|
137
|
-
case "A": throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
138
|
-
case "z":
|
|
139
|
-
t.timeZoneName = n < 4 ? "short" : "long";
|
|
140
|
-
break;
|
|
141
|
-
case "Z":
|
|
142
|
-
case "O":
|
|
143
|
-
case "v":
|
|
144
|
-
case "V":
|
|
145
|
-
case "X":
|
|
146
|
-
case "x": throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
|
|
147
|
-
}
|
|
148
|
-
return "";
|
|
149
|
-
}), t;
|
|
150
|
-
}
|
|
151
|
-
var oe = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
152
|
-
function se(e) {
|
|
153
|
-
if (e.length === 0) throw Error("Number skeleton cannot be empty");
|
|
154
|
-
let t = e.split(oe).filter((e) => e.length > 0), n = [];
|
|
155
|
-
for (let e of t) {
|
|
156
|
-
let t = e.split("/");
|
|
157
|
-
if (t.length === 0) throw Error("Invalid number skeleton");
|
|
158
|
-
let [r, ...i] = t;
|
|
159
|
-
for (let e of i) if (e.length === 0) throw Error("Invalid number skeleton");
|
|
160
|
-
n.push({
|
|
161
|
-
stem: r,
|
|
162
|
-
options: i
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
return n;
|
|
166
|
-
}
|
|
167
|
-
function ce(e) {
|
|
168
|
-
return e.replace(/^(.*?)-/, "");
|
|
169
|
-
}
|
|
170
|
-
var m = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, h = /^(@+)?(\+|#+)?[rs]?$/g, le = /(\*)(0+)|(#+)(0+)|(0+)/g, g = /^(0+)$/;
|
|
171
|
-
function _(e) {
|
|
172
|
-
let t = {};
|
|
173
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(h, function(e, n, r) {
|
|
174
|
-
return typeof r == "string" ? r === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof r == "string" ? r.length : 0)) : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length), "";
|
|
175
|
-
}), t;
|
|
176
|
-
}
|
|
177
|
-
function v(e) {
|
|
178
|
-
switch (e) {
|
|
179
|
-
case "sign-auto": return { signDisplay: "auto" };
|
|
180
|
-
case "sign-accounting":
|
|
181
|
-
case "()": return { currencySign: "accounting" };
|
|
182
|
-
case "sign-always":
|
|
183
|
-
case "+!": return { signDisplay: "always" };
|
|
184
|
-
case "sign-accounting-always":
|
|
185
|
-
case "()!": return {
|
|
186
|
-
signDisplay: "always",
|
|
187
|
-
currencySign: "accounting"
|
|
188
|
-
};
|
|
189
|
-
case "sign-except-zero":
|
|
190
|
-
case "+?": return { signDisplay: "exceptZero" };
|
|
191
|
-
case "sign-accounting-except-zero":
|
|
192
|
-
case "()?": return {
|
|
193
|
-
signDisplay: "exceptZero",
|
|
194
|
-
currencySign: "accounting"
|
|
195
|
-
};
|
|
196
|
-
case "sign-never":
|
|
197
|
-
case "+_": return { signDisplay: "never" };
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
function ue(e) {
|
|
201
|
-
let t;
|
|
202
|
-
if (e[0] === "E" && e[1] === "E" ? (t = { notation: "engineering" }, e = e.slice(2)) : e[0] === "E" && (t = { notation: "scientific" }, e = e.slice(1)), t) {
|
|
203
|
-
let n = e.slice(0, 2);
|
|
204
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !g.test(e)) throw Error("Malformed concise eng/scientific notation");
|
|
205
|
-
t.minimumIntegerDigits = e.length;
|
|
206
|
-
}
|
|
207
|
-
return t;
|
|
208
|
-
}
|
|
209
|
-
function y(e) {
|
|
210
|
-
return v(e) || {};
|
|
211
|
-
}
|
|
212
|
-
function b(e) {
|
|
213
|
-
let t = {};
|
|
214
|
-
for (let n of e) {
|
|
215
|
-
switch (n.stem) {
|
|
216
|
-
case "percent":
|
|
217
|
-
case "%":
|
|
218
|
-
t.style = "percent";
|
|
219
|
-
continue;
|
|
220
|
-
case "%x100":
|
|
221
|
-
t.style = "percent", t.scale = 100;
|
|
222
|
-
continue;
|
|
223
|
-
case "currency":
|
|
224
|
-
t.style = "currency", t.currency = n.options[0];
|
|
225
|
-
continue;
|
|
226
|
-
case "group-off":
|
|
227
|
-
case ",_":
|
|
228
|
-
t.useGrouping = !1;
|
|
229
|
-
continue;
|
|
230
|
-
case "precision-integer":
|
|
231
|
-
case ".":
|
|
232
|
-
t.maximumFractionDigits = 0;
|
|
233
|
-
continue;
|
|
234
|
-
case "measure-unit":
|
|
235
|
-
case "unit":
|
|
236
|
-
t.style = "unit", t.unit = ce(n.options[0]);
|
|
237
|
-
continue;
|
|
238
|
-
case "compact-short":
|
|
239
|
-
case "K":
|
|
240
|
-
t.notation = "compact", t.compactDisplay = "short";
|
|
241
|
-
continue;
|
|
242
|
-
case "compact-long":
|
|
243
|
-
case "KK":
|
|
244
|
-
t.notation = "compact", t.compactDisplay = "long";
|
|
245
|
-
continue;
|
|
246
|
-
case "scientific":
|
|
247
|
-
t = {
|
|
248
|
-
...t,
|
|
249
|
-
notation: "scientific",
|
|
250
|
-
...n.options.reduce((e, t) => ({
|
|
251
|
-
...e,
|
|
252
|
-
...y(t)
|
|
253
|
-
}), {})
|
|
254
|
-
};
|
|
255
|
-
continue;
|
|
256
|
-
case "engineering":
|
|
257
|
-
t = {
|
|
258
|
-
...t,
|
|
259
|
-
notation: "engineering",
|
|
260
|
-
...n.options.reduce((e, t) => ({
|
|
261
|
-
...e,
|
|
262
|
-
...y(t)
|
|
263
|
-
}), {})
|
|
264
|
-
};
|
|
265
|
-
continue;
|
|
266
|
-
case "notation-simple":
|
|
267
|
-
t.notation = "standard";
|
|
268
|
-
continue;
|
|
269
|
-
case "unit-width-narrow":
|
|
270
|
-
t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
|
|
271
|
-
continue;
|
|
272
|
-
case "unit-width-short":
|
|
273
|
-
t.currencyDisplay = "code", t.unitDisplay = "short";
|
|
274
|
-
continue;
|
|
275
|
-
case "unit-width-full-name":
|
|
276
|
-
t.currencyDisplay = "name", t.unitDisplay = "long";
|
|
277
|
-
continue;
|
|
278
|
-
case "unit-width-iso-code":
|
|
279
|
-
t.currencyDisplay = "symbol";
|
|
280
|
-
continue;
|
|
281
|
-
case "scale":
|
|
282
|
-
t.scale = parseFloat(n.options[0]);
|
|
283
|
-
continue;
|
|
284
|
-
case "rounding-mode-floor":
|
|
285
|
-
t.roundingMode = "floor";
|
|
286
|
-
continue;
|
|
287
|
-
case "rounding-mode-ceiling":
|
|
288
|
-
t.roundingMode = "ceil";
|
|
289
|
-
continue;
|
|
290
|
-
case "rounding-mode-down":
|
|
291
|
-
t.roundingMode = "trunc";
|
|
292
|
-
continue;
|
|
293
|
-
case "rounding-mode-up":
|
|
294
|
-
t.roundingMode = "expand";
|
|
295
|
-
continue;
|
|
296
|
-
case "rounding-mode-half-even":
|
|
297
|
-
t.roundingMode = "halfEven";
|
|
298
|
-
continue;
|
|
299
|
-
case "rounding-mode-half-down":
|
|
300
|
-
t.roundingMode = "halfTrunc";
|
|
301
|
-
continue;
|
|
302
|
-
case "rounding-mode-half-up":
|
|
303
|
-
t.roundingMode = "halfExpand";
|
|
304
|
-
continue;
|
|
305
|
-
case "integer-width":
|
|
306
|
-
if (n.options.length > 1) throw RangeError("integer-width stems only accept a single optional option");
|
|
307
|
-
n.options[0].replace(le, function(e, n, r, i, a, o) {
|
|
308
|
-
if (n) t.minimumIntegerDigits = r.length;
|
|
309
|
-
else if (i && a) throw Error("We currently do not support maximum integer digits");
|
|
310
|
-
else if (o) throw Error("We currently do not support exact integer digits");
|
|
311
|
-
return "";
|
|
312
|
-
});
|
|
313
|
-
continue;
|
|
314
|
-
}
|
|
315
|
-
if (g.test(n.stem)) {
|
|
316
|
-
t.minimumIntegerDigits = n.stem.length;
|
|
317
|
-
continue;
|
|
318
|
-
}
|
|
319
|
-
if (m.test(n.stem)) {
|
|
320
|
-
if (n.options.length > 1) throw RangeError("Fraction-precision stems only accept a single optional option");
|
|
321
|
-
n.stem.replace(m, function(e, n, r, i, a, o) {
|
|
322
|
-
return r === "*" ? t.minimumFractionDigits = n.length : i && i[0] === "#" ? t.maximumFractionDigits = i.length : a && o ? (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length + o.length) : (t.minimumFractionDigits = n.length, t.maximumFractionDigits = n.length), "";
|
|
323
|
-
});
|
|
324
|
-
let e = n.options[0];
|
|
325
|
-
e === "w" ? t = {
|
|
326
|
-
...t,
|
|
327
|
-
trailingZeroDisplay: "stripIfInteger"
|
|
328
|
-
} : e && (t = {
|
|
329
|
-
...t,
|
|
330
|
-
..._(e)
|
|
331
|
-
});
|
|
332
|
-
continue;
|
|
333
|
-
}
|
|
334
|
-
if (h.test(n.stem)) {
|
|
335
|
-
t = {
|
|
336
|
-
...t,
|
|
337
|
-
..._(n.stem)
|
|
338
|
-
};
|
|
339
|
-
continue;
|
|
340
|
-
}
|
|
341
|
-
let e = v(n.stem);
|
|
342
|
-
e && (t = {
|
|
343
|
-
...t,
|
|
344
|
-
...e
|
|
345
|
-
});
|
|
346
|
-
let r = ue(n.stem);
|
|
347
|
-
r && (t = {
|
|
348
|
-
...t,
|
|
349
|
-
...r
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
return t;
|
|
353
|
-
}
|
|
354
|
-
//#endregion
|
|
355
|
-
//#region ../../node_modules/@formatjs/icu-messageformat-parser/index.js
|
|
356
|
-
var de = /* @__PURE__ */ function(e) {
|
|
357
|
-
return e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG", e;
|
|
358
|
-
}({});
|
|
359
|
-
function x(e) {
|
|
360
|
-
return e.type === 0;
|
|
361
|
-
}
|
|
362
|
-
function fe(e) {
|
|
363
|
-
return e.type === 1;
|
|
364
|
-
}
|
|
365
|
-
function S(e) {
|
|
366
|
-
return e.type === 2;
|
|
367
|
-
}
|
|
368
|
-
function C(e) {
|
|
369
|
-
return e.type === 3;
|
|
370
|
-
}
|
|
371
|
-
function w(e) {
|
|
372
|
-
return e.type === 4;
|
|
373
|
-
}
|
|
374
|
-
function T(e) {
|
|
375
|
-
return e.type === 5;
|
|
376
|
-
}
|
|
377
|
-
function E(e) {
|
|
378
|
-
return e.type === 6;
|
|
379
|
-
}
|
|
380
|
-
function pe(e) {
|
|
381
|
-
return e.type === 7;
|
|
382
|
-
}
|
|
383
|
-
function D(e) {
|
|
384
|
-
return e.type === 8;
|
|
385
|
-
}
|
|
386
|
-
function O(e) {
|
|
387
|
-
return !!(e && typeof e == "object" && e.type === 0);
|
|
388
|
-
}
|
|
389
|
-
function k(e) {
|
|
390
|
-
return !!(e && typeof e == "object" && e.type === 1);
|
|
391
|
-
}
|
|
392
|
-
var A = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, j = {
|
|
393
|
-
"001": ["H", "h"],
|
|
394
|
-
419: [
|
|
395
|
-
"h",
|
|
396
|
-
"H",
|
|
397
|
-
"hB",
|
|
398
|
-
"hb"
|
|
399
|
-
],
|
|
400
|
-
AC: [
|
|
401
|
-
"H",
|
|
402
|
-
"h",
|
|
403
|
-
"hb",
|
|
404
|
-
"hB"
|
|
405
|
-
],
|
|
406
|
-
AD: ["H", "hB"],
|
|
407
|
-
AE: [
|
|
408
|
-
"h",
|
|
409
|
-
"hB",
|
|
410
|
-
"hb",
|
|
411
|
-
"H"
|
|
412
|
-
],
|
|
413
|
-
AF: [
|
|
414
|
-
"H",
|
|
415
|
-
"hb",
|
|
416
|
-
"hB",
|
|
417
|
-
"h"
|
|
418
|
-
],
|
|
419
|
-
AG: [
|
|
420
|
-
"h",
|
|
421
|
-
"hb",
|
|
422
|
-
"H",
|
|
423
|
-
"hB"
|
|
424
|
-
],
|
|
425
|
-
AI: [
|
|
426
|
-
"H",
|
|
427
|
-
"h",
|
|
428
|
-
"hb",
|
|
429
|
-
"hB"
|
|
430
|
-
],
|
|
431
|
-
AL: [
|
|
432
|
-
"h",
|
|
433
|
-
"H",
|
|
434
|
-
"hB"
|
|
435
|
-
],
|
|
436
|
-
AM: ["H", "hB"],
|
|
437
|
-
AO: ["H", "hB"],
|
|
438
|
-
AR: [
|
|
439
|
-
"h",
|
|
440
|
-
"H",
|
|
441
|
-
"hB",
|
|
442
|
-
"hb"
|
|
443
|
-
],
|
|
444
|
-
AS: ["h", "H"],
|
|
445
|
-
AT: ["H", "hB"],
|
|
446
|
-
AU: [
|
|
447
|
-
"h",
|
|
448
|
-
"hb",
|
|
449
|
-
"H",
|
|
450
|
-
"hB"
|
|
451
|
-
],
|
|
452
|
-
AW: ["H", "hB"],
|
|
453
|
-
AX: ["H"],
|
|
454
|
-
AZ: [
|
|
455
|
-
"H",
|
|
456
|
-
"hB",
|
|
457
|
-
"h"
|
|
458
|
-
],
|
|
459
|
-
BA: [
|
|
460
|
-
"H",
|
|
461
|
-
"hB",
|
|
462
|
-
"h"
|
|
463
|
-
],
|
|
464
|
-
BB: [
|
|
465
|
-
"h",
|
|
466
|
-
"hb",
|
|
467
|
-
"H",
|
|
468
|
-
"hB"
|
|
469
|
-
],
|
|
470
|
-
BD: [
|
|
471
|
-
"h",
|
|
472
|
-
"hB",
|
|
473
|
-
"H"
|
|
474
|
-
],
|
|
475
|
-
BE: ["H", "hB"],
|
|
476
|
-
BF: ["H", "hB"],
|
|
477
|
-
BG: [
|
|
478
|
-
"H",
|
|
479
|
-
"hB",
|
|
480
|
-
"h"
|
|
481
|
-
],
|
|
482
|
-
BH: [
|
|
483
|
-
"h",
|
|
484
|
-
"hB",
|
|
485
|
-
"hb",
|
|
486
|
-
"H"
|
|
487
|
-
],
|
|
488
|
-
BI: ["H", "h"],
|
|
489
|
-
BJ: ["H", "hB"],
|
|
490
|
-
BL: ["H", "hB"],
|
|
491
|
-
BM: [
|
|
492
|
-
"h",
|
|
493
|
-
"hb",
|
|
494
|
-
"H",
|
|
495
|
-
"hB"
|
|
496
|
-
],
|
|
497
|
-
BN: [
|
|
498
|
-
"hb",
|
|
499
|
-
"hB",
|
|
500
|
-
"h",
|
|
501
|
-
"H"
|
|
502
|
-
],
|
|
503
|
-
BO: [
|
|
504
|
-
"h",
|
|
505
|
-
"H",
|
|
506
|
-
"hB",
|
|
507
|
-
"hb"
|
|
508
|
-
],
|
|
509
|
-
BQ: ["H"],
|
|
510
|
-
BR: ["H", "hB"],
|
|
511
|
-
BS: [
|
|
512
|
-
"h",
|
|
513
|
-
"hb",
|
|
514
|
-
"H",
|
|
515
|
-
"hB"
|
|
516
|
-
],
|
|
517
|
-
BT: ["h", "H"],
|
|
518
|
-
BW: [
|
|
519
|
-
"H",
|
|
520
|
-
"h",
|
|
521
|
-
"hb",
|
|
522
|
-
"hB"
|
|
523
|
-
],
|
|
524
|
-
BY: ["H", "h"],
|
|
525
|
-
BZ: [
|
|
526
|
-
"H",
|
|
527
|
-
"h",
|
|
528
|
-
"hb",
|
|
529
|
-
"hB"
|
|
530
|
-
],
|
|
531
|
-
CA: [
|
|
532
|
-
"h",
|
|
533
|
-
"hb",
|
|
534
|
-
"H",
|
|
535
|
-
"hB"
|
|
536
|
-
],
|
|
537
|
-
CC: [
|
|
538
|
-
"H",
|
|
539
|
-
"h",
|
|
540
|
-
"hb",
|
|
541
|
-
"hB"
|
|
542
|
-
],
|
|
543
|
-
CD: ["hB", "H"],
|
|
544
|
-
CF: [
|
|
545
|
-
"H",
|
|
546
|
-
"h",
|
|
547
|
-
"hB"
|
|
548
|
-
],
|
|
549
|
-
CG: ["H", "hB"],
|
|
550
|
-
CH: [
|
|
551
|
-
"H",
|
|
552
|
-
"hB",
|
|
553
|
-
"h"
|
|
554
|
-
],
|
|
555
|
-
CI: ["H", "hB"],
|
|
556
|
-
CK: [
|
|
557
|
-
"H",
|
|
558
|
-
"h",
|
|
559
|
-
"hb",
|
|
560
|
-
"hB"
|
|
561
|
-
],
|
|
562
|
-
CL: [
|
|
563
|
-
"h",
|
|
564
|
-
"H",
|
|
565
|
-
"hB",
|
|
566
|
-
"hb"
|
|
567
|
-
],
|
|
568
|
-
CM: [
|
|
569
|
-
"H",
|
|
570
|
-
"h",
|
|
571
|
-
"hB"
|
|
572
|
-
],
|
|
573
|
-
CN: [
|
|
574
|
-
"H",
|
|
575
|
-
"hB",
|
|
576
|
-
"hb",
|
|
577
|
-
"h"
|
|
578
|
-
],
|
|
579
|
-
CO: [
|
|
580
|
-
"h",
|
|
581
|
-
"H",
|
|
582
|
-
"hB",
|
|
583
|
-
"hb"
|
|
584
|
-
],
|
|
585
|
-
CP: ["H"],
|
|
586
|
-
CR: [
|
|
587
|
-
"h",
|
|
588
|
-
"H",
|
|
589
|
-
"hB",
|
|
590
|
-
"hb"
|
|
591
|
-
],
|
|
592
|
-
CU: [
|
|
593
|
-
"h",
|
|
594
|
-
"H",
|
|
595
|
-
"hB",
|
|
596
|
-
"hb"
|
|
597
|
-
],
|
|
598
|
-
CV: ["H", "hB"],
|
|
599
|
-
CW: ["H", "hB"],
|
|
600
|
-
CX: [
|
|
601
|
-
"H",
|
|
602
|
-
"h",
|
|
603
|
-
"hb",
|
|
604
|
-
"hB"
|
|
605
|
-
],
|
|
606
|
-
CY: [
|
|
607
|
-
"h",
|
|
608
|
-
"H",
|
|
609
|
-
"hb",
|
|
610
|
-
"hB"
|
|
611
|
-
],
|
|
612
|
-
CZ: ["H"],
|
|
613
|
-
DE: ["H", "hB"],
|
|
614
|
-
DG: [
|
|
615
|
-
"H",
|
|
616
|
-
"h",
|
|
617
|
-
"hb",
|
|
618
|
-
"hB"
|
|
619
|
-
],
|
|
620
|
-
DJ: ["h", "H"],
|
|
621
|
-
DK: ["H"],
|
|
622
|
-
DM: [
|
|
623
|
-
"h",
|
|
624
|
-
"hb",
|
|
625
|
-
"H",
|
|
626
|
-
"hB"
|
|
627
|
-
],
|
|
628
|
-
DO: [
|
|
629
|
-
"h",
|
|
630
|
-
"H",
|
|
631
|
-
"hB",
|
|
632
|
-
"hb"
|
|
633
|
-
],
|
|
634
|
-
DZ: [
|
|
635
|
-
"h",
|
|
636
|
-
"hB",
|
|
637
|
-
"hb",
|
|
638
|
-
"H"
|
|
639
|
-
],
|
|
640
|
-
EA: [
|
|
641
|
-
"H",
|
|
642
|
-
"h",
|
|
643
|
-
"hB",
|
|
644
|
-
"hb"
|
|
645
|
-
],
|
|
646
|
-
EC: [
|
|
647
|
-
"h",
|
|
648
|
-
"H",
|
|
649
|
-
"hB",
|
|
650
|
-
"hb"
|
|
651
|
-
],
|
|
652
|
-
EE: ["H", "hB"],
|
|
653
|
-
EG: [
|
|
654
|
-
"h",
|
|
655
|
-
"hB",
|
|
656
|
-
"hb",
|
|
657
|
-
"H"
|
|
658
|
-
],
|
|
659
|
-
EH: [
|
|
660
|
-
"h",
|
|
661
|
-
"hB",
|
|
662
|
-
"hb",
|
|
663
|
-
"H"
|
|
664
|
-
],
|
|
665
|
-
ER: ["h", "H"],
|
|
666
|
-
ES: [
|
|
667
|
-
"H",
|
|
668
|
-
"hB",
|
|
669
|
-
"h",
|
|
670
|
-
"hb"
|
|
671
|
-
],
|
|
672
|
-
ET: [
|
|
673
|
-
"hB",
|
|
674
|
-
"hb",
|
|
675
|
-
"h",
|
|
676
|
-
"H"
|
|
677
|
-
],
|
|
678
|
-
FI: ["H"],
|
|
679
|
-
FJ: [
|
|
680
|
-
"h",
|
|
681
|
-
"hb",
|
|
682
|
-
"H",
|
|
683
|
-
"hB"
|
|
684
|
-
],
|
|
685
|
-
FK: [
|
|
686
|
-
"H",
|
|
687
|
-
"h",
|
|
688
|
-
"hb",
|
|
689
|
-
"hB"
|
|
690
|
-
],
|
|
691
|
-
FM: [
|
|
692
|
-
"h",
|
|
693
|
-
"hb",
|
|
694
|
-
"H",
|
|
695
|
-
"hB"
|
|
696
|
-
],
|
|
697
|
-
FO: ["H", "h"],
|
|
698
|
-
FR: ["H", "hB"],
|
|
699
|
-
GA: ["H", "hB"],
|
|
700
|
-
GB: [
|
|
701
|
-
"H",
|
|
702
|
-
"h",
|
|
703
|
-
"hb",
|
|
704
|
-
"hB"
|
|
705
|
-
],
|
|
706
|
-
GD: [
|
|
707
|
-
"h",
|
|
708
|
-
"hb",
|
|
709
|
-
"H",
|
|
710
|
-
"hB"
|
|
711
|
-
],
|
|
712
|
-
GE: [
|
|
713
|
-
"H",
|
|
714
|
-
"hB",
|
|
715
|
-
"h"
|
|
716
|
-
],
|
|
717
|
-
GF: ["H", "hB"],
|
|
718
|
-
GG: [
|
|
719
|
-
"H",
|
|
720
|
-
"h",
|
|
721
|
-
"hb",
|
|
722
|
-
"hB"
|
|
723
|
-
],
|
|
724
|
-
GH: ["h", "H"],
|
|
725
|
-
GI: [
|
|
726
|
-
"H",
|
|
727
|
-
"h",
|
|
728
|
-
"hb",
|
|
729
|
-
"hB"
|
|
730
|
-
],
|
|
731
|
-
GL: ["H", "h"],
|
|
732
|
-
GM: [
|
|
733
|
-
"h",
|
|
734
|
-
"hb",
|
|
735
|
-
"H",
|
|
736
|
-
"hB"
|
|
737
|
-
],
|
|
738
|
-
GN: ["H", "hB"],
|
|
739
|
-
GP: ["H", "hB"],
|
|
740
|
-
GQ: [
|
|
741
|
-
"H",
|
|
742
|
-
"hB",
|
|
743
|
-
"h",
|
|
744
|
-
"hb"
|
|
745
|
-
],
|
|
746
|
-
GR: [
|
|
747
|
-
"h",
|
|
748
|
-
"H",
|
|
749
|
-
"hb",
|
|
750
|
-
"hB"
|
|
751
|
-
],
|
|
752
|
-
GS: [
|
|
753
|
-
"H",
|
|
754
|
-
"h",
|
|
755
|
-
"hb",
|
|
756
|
-
"hB"
|
|
757
|
-
],
|
|
758
|
-
GT: [
|
|
759
|
-
"h",
|
|
760
|
-
"H",
|
|
761
|
-
"hB",
|
|
762
|
-
"hb"
|
|
763
|
-
],
|
|
764
|
-
GU: [
|
|
765
|
-
"h",
|
|
766
|
-
"hb",
|
|
767
|
-
"H",
|
|
768
|
-
"hB"
|
|
769
|
-
],
|
|
770
|
-
GW: ["H", "hB"],
|
|
771
|
-
GY: [
|
|
772
|
-
"h",
|
|
773
|
-
"hb",
|
|
774
|
-
"H",
|
|
775
|
-
"hB"
|
|
776
|
-
],
|
|
777
|
-
HK: [
|
|
778
|
-
"h",
|
|
779
|
-
"hB",
|
|
780
|
-
"hb",
|
|
781
|
-
"H"
|
|
782
|
-
],
|
|
783
|
-
HN: [
|
|
784
|
-
"h",
|
|
785
|
-
"H",
|
|
786
|
-
"hB",
|
|
787
|
-
"hb"
|
|
788
|
-
],
|
|
789
|
-
HR: ["H", "hB"],
|
|
790
|
-
HU: ["H", "h"],
|
|
791
|
-
IC: [
|
|
792
|
-
"H",
|
|
793
|
-
"h",
|
|
794
|
-
"hB",
|
|
795
|
-
"hb"
|
|
796
|
-
],
|
|
797
|
-
ID: ["H"],
|
|
798
|
-
IE: [
|
|
799
|
-
"H",
|
|
800
|
-
"h",
|
|
801
|
-
"hb",
|
|
802
|
-
"hB"
|
|
803
|
-
],
|
|
804
|
-
IL: ["H", "hB"],
|
|
805
|
-
IM: [
|
|
806
|
-
"H",
|
|
807
|
-
"h",
|
|
808
|
-
"hb",
|
|
809
|
-
"hB"
|
|
810
|
-
],
|
|
811
|
-
IN: ["h", "H"],
|
|
812
|
-
IO: [
|
|
813
|
-
"H",
|
|
814
|
-
"h",
|
|
815
|
-
"hb",
|
|
816
|
-
"hB"
|
|
817
|
-
],
|
|
818
|
-
IQ: [
|
|
819
|
-
"h",
|
|
820
|
-
"hB",
|
|
821
|
-
"hb",
|
|
822
|
-
"H"
|
|
823
|
-
],
|
|
824
|
-
IR: ["hB", "H"],
|
|
825
|
-
IS: ["H"],
|
|
826
|
-
IT: ["H", "hB"],
|
|
827
|
-
JE: [
|
|
828
|
-
"H",
|
|
829
|
-
"h",
|
|
830
|
-
"hb",
|
|
831
|
-
"hB"
|
|
832
|
-
],
|
|
833
|
-
JM: [
|
|
834
|
-
"h",
|
|
835
|
-
"hb",
|
|
836
|
-
"H",
|
|
837
|
-
"hB"
|
|
838
|
-
],
|
|
839
|
-
JO: [
|
|
840
|
-
"h",
|
|
841
|
-
"hB",
|
|
842
|
-
"hb",
|
|
843
|
-
"H"
|
|
844
|
-
],
|
|
845
|
-
JP: [
|
|
846
|
-
"H",
|
|
847
|
-
"K",
|
|
848
|
-
"h"
|
|
849
|
-
],
|
|
850
|
-
KE: [
|
|
851
|
-
"hB",
|
|
852
|
-
"hb",
|
|
853
|
-
"H",
|
|
854
|
-
"h"
|
|
855
|
-
],
|
|
856
|
-
KG: [
|
|
857
|
-
"H",
|
|
858
|
-
"h",
|
|
859
|
-
"hB",
|
|
860
|
-
"hb"
|
|
861
|
-
],
|
|
862
|
-
KH: [
|
|
863
|
-
"hB",
|
|
864
|
-
"h",
|
|
865
|
-
"H",
|
|
866
|
-
"hb"
|
|
867
|
-
],
|
|
868
|
-
KI: [
|
|
869
|
-
"h",
|
|
870
|
-
"hb",
|
|
871
|
-
"H",
|
|
872
|
-
"hB"
|
|
873
|
-
],
|
|
874
|
-
KM: [
|
|
875
|
-
"H",
|
|
876
|
-
"h",
|
|
877
|
-
"hB",
|
|
878
|
-
"hb"
|
|
879
|
-
],
|
|
880
|
-
KN: [
|
|
881
|
-
"h",
|
|
882
|
-
"hb",
|
|
883
|
-
"H",
|
|
884
|
-
"hB"
|
|
885
|
-
],
|
|
886
|
-
KP: [
|
|
887
|
-
"h",
|
|
888
|
-
"H",
|
|
889
|
-
"hB",
|
|
890
|
-
"hb"
|
|
891
|
-
],
|
|
892
|
-
KR: [
|
|
893
|
-
"h",
|
|
894
|
-
"H",
|
|
895
|
-
"hB",
|
|
896
|
-
"hb"
|
|
897
|
-
],
|
|
898
|
-
KW: [
|
|
899
|
-
"h",
|
|
900
|
-
"hB",
|
|
901
|
-
"hb",
|
|
902
|
-
"H"
|
|
903
|
-
],
|
|
904
|
-
KY: [
|
|
905
|
-
"h",
|
|
906
|
-
"hb",
|
|
907
|
-
"H",
|
|
908
|
-
"hB"
|
|
909
|
-
],
|
|
910
|
-
KZ: ["H", "hB"],
|
|
911
|
-
LA: [
|
|
912
|
-
"H",
|
|
913
|
-
"hb",
|
|
914
|
-
"hB",
|
|
915
|
-
"h"
|
|
916
|
-
],
|
|
917
|
-
LB: [
|
|
918
|
-
"h",
|
|
919
|
-
"hB",
|
|
920
|
-
"hb",
|
|
921
|
-
"H"
|
|
922
|
-
],
|
|
923
|
-
LC: [
|
|
924
|
-
"h",
|
|
925
|
-
"hb",
|
|
926
|
-
"H",
|
|
927
|
-
"hB"
|
|
928
|
-
],
|
|
929
|
-
LI: [
|
|
930
|
-
"H",
|
|
931
|
-
"hB",
|
|
932
|
-
"h"
|
|
933
|
-
],
|
|
934
|
-
LK: [
|
|
935
|
-
"H",
|
|
936
|
-
"h",
|
|
937
|
-
"hB",
|
|
938
|
-
"hb"
|
|
939
|
-
],
|
|
940
|
-
LR: [
|
|
941
|
-
"h",
|
|
942
|
-
"hb",
|
|
943
|
-
"H",
|
|
944
|
-
"hB"
|
|
945
|
-
],
|
|
946
|
-
LS: ["h", "H"],
|
|
947
|
-
LT: [
|
|
948
|
-
"H",
|
|
949
|
-
"h",
|
|
950
|
-
"hb",
|
|
951
|
-
"hB"
|
|
952
|
-
],
|
|
953
|
-
LU: [
|
|
954
|
-
"H",
|
|
955
|
-
"h",
|
|
956
|
-
"hB"
|
|
957
|
-
],
|
|
958
|
-
LV: [
|
|
959
|
-
"H",
|
|
960
|
-
"hB",
|
|
961
|
-
"hb",
|
|
962
|
-
"h"
|
|
963
|
-
],
|
|
964
|
-
LY: [
|
|
965
|
-
"h",
|
|
966
|
-
"hB",
|
|
967
|
-
"hb",
|
|
968
|
-
"H"
|
|
969
|
-
],
|
|
970
|
-
MA: [
|
|
971
|
-
"H",
|
|
972
|
-
"h",
|
|
973
|
-
"hB",
|
|
974
|
-
"hb"
|
|
975
|
-
],
|
|
976
|
-
MC: ["H", "hB"],
|
|
977
|
-
MD: ["H", "hB"],
|
|
978
|
-
ME: [
|
|
979
|
-
"H",
|
|
980
|
-
"hB",
|
|
981
|
-
"h"
|
|
982
|
-
],
|
|
983
|
-
MF: ["H", "hB"],
|
|
984
|
-
MG: ["H", "h"],
|
|
985
|
-
MH: [
|
|
986
|
-
"h",
|
|
987
|
-
"hb",
|
|
988
|
-
"H",
|
|
989
|
-
"hB"
|
|
990
|
-
],
|
|
991
|
-
MK: [
|
|
992
|
-
"H",
|
|
993
|
-
"h",
|
|
994
|
-
"hb",
|
|
995
|
-
"hB"
|
|
996
|
-
],
|
|
997
|
-
ML: ["H"],
|
|
998
|
-
MM: [
|
|
999
|
-
"hB",
|
|
1000
|
-
"hb",
|
|
1001
|
-
"H",
|
|
1002
|
-
"h"
|
|
1003
|
-
],
|
|
1004
|
-
MN: [
|
|
1005
|
-
"H",
|
|
1006
|
-
"h",
|
|
1007
|
-
"hb",
|
|
1008
|
-
"hB"
|
|
1009
|
-
],
|
|
1010
|
-
MO: [
|
|
1011
|
-
"h",
|
|
1012
|
-
"hB",
|
|
1013
|
-
"hb",
|
|
1014
|
-
"H"
|
|
1015
|
-
],
|
|
1016
|
-
MP: [
|
|
1017
|
-
"h",
|
|
1018
|
-
"hb",
|
|
1019
|
-
"H",
|
|
1020
|
-
"hB"
|
|
1021
|
-
],
|
|
1022
|
-
MQ: ["H", "hB"],
|
|
1023
|
-
MR: [
|
|
1024
|
-
"h",
|
|
1025
|
-
"hB",
|
|
1026
|
-
"hb",
|
|
1027
|
-
"H"
|
|
1028
|
-
],
|
|
1029
|
-
MS: [
|
|
1030
|
-
"H",
|
|
1031
|
-
"h",
|
|
1032
|
-
"hb",
|
|
1033
|
-
"hB"
|
|
1034
|
-
],
|
|
1035
|
-
MT: ["H", "h"],
|
|
1036
|
-
MU: ["H", "h"],
|
|
1037
|
-
MV: ["H", "h"],
|
|
1038
|
-
MW: [
|
|
1039
|
-
"h",
|
|
1040
|
-
"hb",
|
|
1041
|
-
"H",
|
|
1042
|
-
"hB"
|
|
1043
|
-
],
|
|
1044
|
-
MX: [
|
|
1045
|
-
"h",
|
|
1046
|
-
"H",
|
|
1047
|
-
"hB",
|
|
1048
|
-
"hb"
|
|
1049
|
-
],
|
|
1050
|
-
MY: [
|
|
1051
|
-
"hb",
|
|
1052
|
-
"hB",
|
|
1053
|
-
"h",
|
|
1054
|
-
"H"
|
|
1055
|
-
],
|
|
1056
|
-
MZ: ["H", "hB"],
|
|
1057
|
-
NA: [
|
|
1058
|
-
"h",
|
|
1059
|
-
"H",
|
|
1060
|
-
"hB",
|
|
1061
|
-
"hb"
|
|
1062
|
-
],
|
|
1063
|
-
NC: ["H", "hB"],
|
|
1064
|
-
NE: ["H"],
|
|
1065
|
-
NF: [
|
|
1066
|
-
"H",
|
|
1067
|
-
"h",
|
|
1068
|
-
"hb",
|
|
1069
|
-
"hB"
|
|
1070
|
-
],
|
|
1071
|
-
NG: [
|
|
1072
|
-
"H",
|
|
1073
|
-
"h",
|
|
1074
|
-
"hb",
|
|
1075
|
-
"hB"
|
|
1076
|
-
],
|
|
1077
|
-
NI: [
|
|
1078
|
-
"h",
|
|
1079
|
-
"H",
|
|
1080
|
-
"hB",
|
|
1081
|
-
"hb"
|
|
1082
|
-
],
|
|
1083
|
-
NL: ["H", "hB"],
|
|
1084
|
-
NO: ["H", "h"],
|
|
1085
|
-
NP: [
|
|
1086
|
-
"H",
|
|
1087
|
-
"h",
|
|
1088
|
-
"hB"
|
|
1089
|
-
],
|
|
1090
|
-
NR: [
|
|
1091
|
-
"H",
|
|
1092
|
-
"h",
|
|
1093
|
-
"hb",
|
|
1094
|
-
"hB"
|
|
1095
|
-
],
|
|
1096
|
-
NU: [
|
|
1097
|
-
"H",
|
|
1098
|
-
"h",
|
|
1099
|
-
"hb",
|
|
1100
|
-
"hB"
|
|
1101
|
-
],
|
|
1102
|
-
NZ: [
|
|
1103
|
-
"h",
|
|
1104
|
-
"hb",
|
|
1105
|
-
"H",
|
|
1106
|
-
"hB"
|
|
1107
|
-
],
|
|
1108
|
-
OM: [
|
|
1109
|
-
"h",
|
|
1110
|
-
"hB",
|
|
1111
|
-
"hb",
|
|
1112
|
-
"H"
|
|
1113
|
-
],
|
|
1114
|
-
PA: [
|
|
1115
|
-
"h",
|
|
1116
|
-
"H",
|
|
1117
|
-
"hB",
|
|
1118
|
-
"hb"
|
|
1119
|
-
],
|
|
1120
|
-
PE: [
|
|
1121
|
-
"h",
|
|
1122
|
-
"H",
|
|
1123
|
-
"hB",
|
|
1124
|
-
"hb"
|
|
1125
|
-
],
|
|
1126
|
-
PF: [
|
|
1127
|
-
"H",
|
|
1128
|
-
"h",
|
|
1129
|
-
"hB"
|
|
1130
|
-
],
|
|
1131
|
-
PG: ["h", "H"],
|
|
1132
|
-
PH: [
|
|
1133
|
-
"h",
|
|
1134
|
-
"hB",
|
|
1135
|
-
"hb",
|
|
1136
|
-
"H"
|
|
1137
|
-
],
|
|
1138
|
-
PK: [
|
|
1139
|
-
"h",
|
|
1140
|
-
"hB",
|
|
1141
|
-
"H"
|
|
1142
|
-
],
|
|
1143
|
-
PL: ["H", "h"],
|
|
1144
|
-
PM: ["H", "hB"],
|
|
1145
|
-
PN: [
|
|
1146
|
-
"H",
|
|
1147
|
-
"h",
|
|
1148
|
-
"hb",
|
|
1149
|
-
"hB"
|
|
1150
|
-
],
|
|
1151
|
-
PR: [
|
|
1152
|
-
"h",
|
|
1153
|
-
"H",
|
|
1154
|
-
"hB",
|
|
1155
|
-
"hb"
|
|
1156
|
-
],
|
|
1157
|
-
PS: [
|
|
1158
|
-
"h",
|
|
1159
|
-
"hB",
|
|
1160
|
-
"hb",
|
|
1161
|
-
"H"
|
|
1162
|
-
],
|
|
1163
|
-
PT: ["H", "hB"],
|
|
1164
|
-
PW: ["h", "H"],
|
|
1165
|
-
PY: [
|
|
1166
|
-
"h",
|
|
1167
|
-
"H",
|
|
1168
|
-
"hB",
|
|
1169
|
-
"hb"
|
|
1170
|
-
],
|
|
1171
|
-
QA: [
|
|
1172
|
-
"h",
|
|
1173
|
-
"hB",
|
|
1174
|
-
"hb",
|
|
1175
|
-
"H"
|
|
1176
|
-
],
|
|
1177
|
-
RE: ["H", "hB"],
|
|
1178
|
-
RO: ["H", "hB"],
|
|
1179
|
-
RS: [
|
|
1180
|
-
"H",
|
|
1181
|
-
"hB",
|
|
1182
|
-
"h"
|
|
1183
|
-
],
|
|
1184
|
-
RU: ["H"],
|
|
1185
|
-
RW: ["H", "h"],
|
|
1186
|
-
SA: [
|
|
1187
|
-
"h",
|
|
1188
|
-
"hB",
|
|
1189
|
-
"hb",
|
|
1190
|
-
"H"
|
|
1191
|
-
],
|
|
1192
|
-
SB: [
|
|
1193
|
-
"h",
|
|
1194
|
-
"hb",
|
|
1195
|
-
"H",
|
|
1196
|
-
"hB"
|
|
1197
|
-
],
|
|
1198
|
-
SC: [
|
|
1199
|
-
"H",
|
|
1200
|
-
"h",
|
|
1201
|
-
"hB"
|
|
1202
|
-
],
|
|
1203
|
-
SD: [
|
|
1204
|
-
"h",
|
|
1205
|
-
"hB",
|
|
1206
|
-
"hb",
|
|
1207
|
-
"H"
|
|
1208
|
-
],
|
|
1209
|
-
SE: ["H"],
|
|
1210
|
-
SG: [
|
|
1211
|
-
"h",
|
|
1212
|
-
"hb",
|
|
1213
|
-
"H",
|
|
1214
|
-
"hB"
|
|
1215
|
-
],
|
|
1216
|
-
SH: [
|
|
1217
|
-
"H",
|
|
1218
|
-
"h",
|
|
1219
|
-
"hb",
|
|
1220
|
-
"hB"
|
|
1221
|
-
],
|
|
1222
|
-
SI: ["H", "hB"],
|
|
1223
|
-
SJ: ["H"],
|
|
1224
|
-
SK: ["H"],
|
|
1225
|
-
SL: [
|
|
1226
|
-
"h",
|
|
1227
|
-
"hb",
|
|
1228
|
-
"H",
|
|
1229
|
-
"hB"
|
|
1230
|
-
],
|
|
1231
|
-
SM: [
|
|
1232
|
-
"H",
|
|
1233
|
-
"h",
|
|
1234
|
-
"hB"
|
|
1235
|
-
],
|
|
1236
|
-
SN: [
|
|
1237
|
-
"H",
|
|
1238
|
-
"h",
|
|
1239
|
-
"hB"
|
|
1240
|
-
],
|
|
1241
|
-
SO: ["h", "H"],
|
|
1242
|
-
SR: ["H", "hB"],
|
|
1243
|
-
SS: [
|
|
1244
|
-
"h",
|
|
1245
|
-
"hb",
|
|
1246
|
-
"H",
|
|
1247
|
-
"hB"
|
|
1248
|
-
],
|
|
1249
|
-
ST: ["H", "hB"],
|
|
1250
|
-
SV: [
|
|
1251
|
-
"h",
|
|
1252
|
-
"H",
|
|
1253
|
-
"hB",
|
|
1254
|
-
"hb"
|
|
1255
|
-
],
|
|
1256
|
-
SX: [
|
|
1257
|
-
"H",
|
|
1258
|
-
"h",
|
|
1259
|
-
"hb",
|
|
1260
|
-
"hB"
|
|
1261
|
-
],
|
|
1262
|
-
SY: [
|
|
1263
|
-
"h",
|
|
1264
|
-
"hB",
|
|
1265
|
-
"hb",
|
|
1266
|
-
"H"
|
|
1267
|
-
],
|
|
1268
|
-
SZ: [
|
|
1269
|
-
"h",
|
|
1270
|
-
"hb",
|
|
1271
|
-
"H",
|
|
1272
|
-
"hB"
|
|
1273
|
-
],
|
|
1274
|
-
TA: [
|
|
1275
|
-
"H",
|
|
1276
|
-
"h",
|
|
1277
|
-
"hb",
|
|
1278
|
-
"hB"
|
|
1279
|
-
],
|
|
1280
|
-
TC: [
|
|
1281
|
-
"h",
|
|
1282
|
-
"hb",
|
|
1283
|
-
"H",
|
|
1284
|
-
"hB"
|
|
1285
|
-
],
|
|
1286
|
-
TD: [
|
|
1287
|
-
"h",
|
|
1288
|
-
"H",
|
|
1289
|
-
"hB"
|
|
1290
|
-
],
|
|
1291
|
-
TF: [
|
|
1292
|
-
"H",
|
|
1293
|
-
"h",
|
|
1294
|
-
"hB"
|
|
1295
|
-
],
|
|
1296
|
-
TG: ["H", "hB"],
|
|
1297
|
-
TH: ["H", "h"],
|
|
1298
|
-
TJ: ["H", "h"],
|
|
1299
|
-
TL: [
|
|
1300
|
-
"H",
|
|
1301
|
-
"hB",
|
|
1302
|
-
"hb",
|
|
1303
|
-
"h"
|
|
1304
|
-
],
|
|
1305
|
-
TM: ["H", "h"],
|
|
1306
|
-
TN: [
|
|
1307
|
-
"h",
|
|
1308
|
-
"hB",
|
|
1309
|
-
"hb",
|
|
1310
|
-
"H"
|
|
1311
|
-
],
|
|
1312
|
-
TO: ["h", "H"],
|
|
1313
|
-
TR: ["H", "hB"],
|
|
1314
|
-
TT: [
|
|
1315
|
-
"h",
|
|
1316
|
-
"hb",
|
|
1317
|
-
"H",
|
|
1318
|
-
"hB"
|
|
1319
|
-
],
|
|
1320
|
-
TW: [
|
|
1321
|
-
"hB",
|
|
1322
|
-
"hb",
|
|
1323
|
-
"h",
|
|
1324
|
-
"H"
|
|
1325
|
-
],
|
|
1326
|
-
TZ: [
|
|
1327
|
-
"hB",
|
|
1328
|
-
"hb",
|
|
1329
|
-
"H",
|
|
1330
|
-
"h"
|
|
1331
|
-
],
|
|
1332
|
-
UA: [
|
|
1333
|
-
"H",
|
|
1334
|
-
"hB",
|
|
1335
|
-
"h"
|
|
1336
|
-
],
|
|
1337
|
-
UG: [
|
|
1338
|
-
"hB",
|
|
1339
|
-
"hb",
|
|
1340
|
-
"H",
|
|
1341
|
-
"h"
|
|
1342
|
-
],
|
|
1343
|
-
UM: [
|
|
1344
|
-
"h",
|
|
1345
|
-
"hb",
|
|
1346
|
-
"H",
|
|
1347
|
-
"hB"
|
|
1348
|
-
],
|
|
1349
|
-
US: [
|
|
1350
|
-
"h",
|
|
1351
|
-
"hb",
|
|
1352
|
-
"H",
|
|
1353
|
-
"hB"
|
|
1354
|
-
],
|
|
1355
|
-
UY: [
|
|
1356
|
-
"h",
|
|
1357
|
-
"H",
|
|
1358
|
-
"hB",
|
|
1359
|
-
"hb"
|
|
1360
|
-
],
|
|
1361
|
-
UZ: [
|
|
1362
|
-
"H",
|
|
1363
|
-
"hB",
|
|
1364
|
-
"h"
|
|
1365
|
-
],
|
|
1366
|
-
VA: [
|
|
1367
|
-
"H",
|
|
1368
|
-
"h",
|
|
1369
|
-
"hB"
|
|
1370
|
-
],
|
|
1371
|
-
VC: [
|
|
1372
|
-
"h",
|
|
1373
|
-
"hb",
|
|
1374
|
-
"H",
|
|
1375
|
-
"hB"
|
|
1376
|
-
],
|
|
1377
|
-
VE: [
|
|
1378
|
-
"h",
|
|
1379
|
-
"H",
|
|
1380
|
-
"hB",
|
|
1381
|
-
"hb"
|
|
1382
|
-
],
|
|
1383
|
-
VG: [
|
|
1384
|
-
"h",
|
|
1385
|
-
"hb",
|
|
1386
|
-
"H",
|
|
1387
|
-
"hB"
|
|
1388
|
-
],
|
|
1389
|
-
VI: [
|
|
1390
|
-
"h",
|
|
1391
|
-
"hb",
|
|
1392
|
-
"H",
|
|
1393
|
-
"hB"
|
|
1394
|
-
],
|
|
1395
|
-
VN: ["H", "h"],
|
|
1396
|
-
VU: ["h", "H"],
|
|
1397
|
-
WF: ["H", "hB"],
|
|
1398
|
-
WS: ["h", "H"],
|
|
1399
|
-
XK: [
|
|
1400
|
-
"H",
|
|
1401
|
-
"hB",
|
|
1402
|
-
"h"
|
|
1403
|
-
],
|
|
1404
|
-
YE: [
|
|
1405
|
-
"h",
|
|
1406
|
-
"hB",
|
|
1407
|
-
"hb",
|
|
1408
|
-
"H"
|
|
1409
|
-
],
|
|
1410
|
-
YT: ["H", "hB"],
|
|
1411
|
-
ZA: [
|
|
1412
|
-
"H",
|
|
1413
|
-
"h",
|
|
1414
|
-
"hb",
|
|
1415
|
-
"hB"
|
|
1416
|
-
],
|
|
1417
|
-
ZM: [
|
|
1418
|
-
"h",
|
|
1419
|
-
"hb",
|
|
1420
|
-
"H",
|
|
1421
|
-
"hB"
|
|
1422
|
-
],
|
|
1423
|
-
ZW: ["H", "h"],
|
|
1424
|
-
"af-ZA": [
|
|
1425
|
-
"H",
|
|
1426
|
-
"h",
|
|
1427
|
-
"hB",
|
|
1428
|
-
"hb"
|
|
1429
|
-
],
|
|
1430
|
-
"ar-001": [
|
|
1431
|
-
"h",
|
|
1432
|
-
"hB",
|
|
1433
|
-
"hb",
|
|
1434
|
-
"H"
|
|
1435
|
-
],
|
|
1436
|
-
"ca-ES": [
|
|
1437
|
-
"H",
|
|
1438
|
-
"h",
|
|
1439
|
-
"hB"
|
|
1440
|
-
],
|
|
1441
|
-
"en-001": [
|
|
1442
|
-
"h",
|
|
1443
|
-
"hb",
|
|
1444
|
-
"H",
|
|
1445
|
-
"hB"
|
|
1446
|
-
],
|
|
1447
|
-
"en-HK": [
|
|
1448
|
-
"h",
|
|
1449
|
-
"hb",
|
|
1450
|
-
"H",
|
|
1451
|
-
"hB"
|
|
1452
|
-
],
|
|
1453
|
-
"en-IL": [
|
|
1454
|
-
"H",
|
|
1455
|
-
"h",
|
|
1456
|
-
"hb",
|
|
1457
|
-
"hB"
|
|
1458
|
-
],
|
|
1459
|
-
"en-MY": [
|
|
1460
|
-
"h",
|
|
1461
|
-
"hb",
|
|
1462
|
-
"H",
|
|
1463
|
-
"hB"
|
|
1464
|
-
],
|
|
1465
|
-
"es-BR": [
|
|
1466
|
-
"H",
|
|
1467
|
-
"h",
|
|
1468
|
-
"hB",
|
|
1469
|
-
"hb"
|
|
1470
|
-
],
|
|
1471
|
-
"es-ES": [
|
|
1472
|
-
"H",
|
|
1473
|
-
"h",
|
|
1474
|
-
"hB",
|
|
1475
|
-
"hb"
|
|
1476
|
-
],
|
|
1477
|
-
"es-GQ": [
|
|
1478
|
-
"H",
|
|
1479
|
-
"h",
|
|
1480
|
-
"hB",
|
|
1481
|
-
"hb"
|
|
1482
|
-
],
|
|
1483
|
-
"fr-CA": [
|
|
1484
|
-
"H",
|
|
1485
|
-
"h",
|
|
1486
|
-
"hB"
|
|
1487
|
-
],
|
|
1488
|
-
"gl-ES": [
|
|
1489
|
-
"H",
|
|
1490
|
-
"h",
|
|
1491
|
-
"hB"
|
|
1492
|
-
],
|
|
1493
|
-
"gu-IN": [
|
|
1494
|
-
"hB",
|
|
1495
|
-
"hb",
|
|
1496
|
-
"h",
|
|
1497
|
-
"H"
|
|
1498
|
-
],
|
|
1499
|
-
"hi-IN": [
|
|
1500
|
-
"hB",
|
|
1501
|
-
"h",
|
|
1502
|
-
"H"
|
|
1503
|
-
],
|
|
1504
|
-
"it-CH": [
|
|
1505
|
-
"H",
|
|
1506
|
-
"h",
|
|
1507
|
-
"hB"
|
|
1508
|
-
],
|
|
1509
|
-
"it-IT": [
|
|
1510
|
-
"H",
|
|
1511
|
-
"h",
|
|
1512
|
-
"hB"
|
|
1513
|
-
],
|
|
1514
|
-
"kn-IN": [
|
|
1515
|
-
"hB",
|
|
1516
|
-
"h",
|
|
1517
|
-
"H"
|
|
1518
|
-
],
|
|
1519
|
-
"ku-SY": ["H", "hB"],
|
|
1520
|
-
"ml-IN": [
|
|
1521
|
-
"hB",
|
|
1522
|
-
"h",
|
|
1523
|
-
"H"
|
|
1524
|
-
],
|
|
1525
|
-
"mr-IN": [
|
|
1526
|
-
"hB",
|
|
1527
|
-
"hb",
|
|
1528
|
-
"h",
|
|
1529
|
-
"H"
|
|
1530
|
-
],
|
|
1531
|
-
"pa-IN": [
|
|
1532
|
-
"hB",
|
|
1533
|
-
"hb",
|
|
1534
|
-
"h",
|
|
1535
|
-
"H"
|
|
1536
|
-
],
|
|
1537
|
-
"ta-IN": [
|
|
1538
|
-
"hB",
|
|
1539
|
-
"h",
|
|
1540
|
-
"hb",
|
|
1541
|
-
"H"
|
|
1542
|
-
],
|
|
1543
|
-
"te-IN": [
|
|
1544
|
-
"hB",
|
|
1545
|
-
"h",
|
|
1546
|
-
"H"
|
|
1547
|
-
],
|
|
1548
|
-
"zu-ZA": [
|
|
1549
|
-
"H",
|
|
1550
|
-
"hB",
|
|
1551
|
-
"hb",
|
|
1552
|
-
"h"
|
|
1553
|
-
]
|
|
1554
|
-
};
|
|
1555
|
-
function me(e, t) {
|
|
1556
|
-
let n = "";
|
|
1557
|
-
for (let r = 0; r < e.length; r++) {
|
|
1558
|
-
let i = e.charAt(r);
|
|
1559
|
-
if (i === "j") {
|
|
1560
|
-
let a = 0;
|
|
1561
|
-
for (; r + 1 < e.length && e.charAt(r + 1) === i;) a++, r++;
|
|
1562
|
-
let o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = he(t);
|
|
1563
|
-
for ((c == "H" || c == "k") && (s = 0); s-- > 0;) n += "a";
|
|
1564
|
-
for (; o-- > 0;) n = c + n;
|
|
1565
|
-
} else i === "J" ? n += "H" : n += i;
|
|
1566
|
-
}
|
|
1567
|
-
return n;
|
|
1568
|
-
}
|
|
1569
|
-
function he(e) {
|
|
1570
|
-
let t = e.hourCycle;
|
|
1571
|
-
if (t === void 0 && e.hourCycles && e.hourCycles.length && (t = e.hourCycles[0]), t) switch (t) {
|
|
1572
|
-
case "h24": return "k";
|
|
1573
|
-
case "h23": return "H";
|
|
1574
|
-
case "h12": return "h";
|
|
1575
|
-
case "h11": return "K";
|
|
1576
|
-
default: throw Error("Invalid hourCycle");
|
|
1577
|
-
}
|
|
1578
|
-
let n = e.language, r;
|
|
1579
|
-
return n !== "root" && (r = e.maximize().region), (j[r || ""] || j[n || ""] || j[`${n}-001`] || j["001"])[0];
|
|
1580
|
-
}
|
|
1581
|
-
var ge = RegExp(`^${A.source}*`), M = RegExp(`${A.source}*$`);
|
|
1582
|
-
function N(e, t) {
|
|
1583
|
-
return {
|
|
1584
|
-
start: e,
|
|
1585
|
-
end: t
|
|
1586
|
-
};
|
|
1587
|
-
}
|
|
1588
|
-
var P = !!Object.fromEntries, F = !!String.prototype.trimStart, I = !!String.prototype.trimEnd, L = P ? Object.fromEntries : function(e) {
|
|
1589
|
-
let t = {};
|
|
1590
|
-
for (let [n, r] of e) t[n] = r;
|
|
1591
|
-
return t;
|
|
1592
|
-
}, _e = F ? function(e) {
|
|
1593
|
-
return e.trimStart();
|
|
1594
|
-
} : function(e) {
|
|
1595
|
-
return e.replace(ge, "");
|
|
1596
|
-
}, ve = I ? function(e) {
|
|
1597
|
-
return e.trimEnd();
|
|
1598
|
-
} : function(e) {
|
|
1599
|
-
return e.replace(M, "");
|
|
1600
|
-
}, R = /* @__PURE__ */ RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
1601
|
-
function ye(e, t) {
|
|
1602
|
-
return R.lastIndex = t, R.exec(e)[1] ?? "";
|
|
1603
|
-
}
|
|
1604
|
-
function be(e) {
|
|
1605
|
-
if (e.length === 0) return null;
|
|
1606
|
-
let t = 1, n = 1;
|
|
1607
|
-
for (let r = 0; r < e.length;) {
|
|
1608
|
-
let i = e.charCodeAt(r);
|
|
1609
|
-
switch (i) {
|
|
1610
|
-
case 35:
|
|
1611
|
-
case 39:
|
|
1612
|
-
case 60:
|
|
1613
|
-
case 123:
|
|
1614
|
-
case 125: return null;
|
|
1615
|
-
}
|
|
1616
|
-
if (i === 10) t++, n = 1, r++;
|
|
1617
|
-
else if (n++, i >= 55296 && i <= 56319 && r + 1 < e.length) {
|
|
1618
|
-
let t = e.charCodeAt(r + 1);
|
|
1619
|
-
r += t >= 56320 && t <= 57343 ? 2 : 1;
|
|
1620
|
-
} else r++;
|
|
1621
|
-
}
|
|
1622
|
-
return {
|
|
1623
|
-
offset: e.length,
|
|
1624
|
-
line: t,
|
|
1625
|
-
column: n
|
|
1626
|
-
};
|
|
1627
|
-
}
|
|
1628
|
-
var xe = class {
|
|
1629
|
-
constructor(e, t = {}) {
|
|
1630
|
-
this.message = e, this.position = {
|
|
1631
|
-
offset: 0,
|
|
1632
|
-
line: 1,
|
|
1633
|
-
column: 1
|
|
1634
|
-
}, this.ignoreTag = !!t.ignoreTag, this.locale = t.locale, this.requiresOtherClause = !!t.requiresOtherClause, this.shouldParseSkeletons = !!t.shouldParseSkeletons;
|
|
1635
|
-
}
|
|
1636
|
-
parse() {
|
|
1637
|
-
if (this.offset() !== 0) throw Error("parser can only be used once");
|
|
1638
|
-
if (this.message.length > 0) {
|
|
1639
|
-
let e = this.message.charCodeAt(0);
|
|
1640
|
-
if (e !== 35 && e !== 39 && e !== 60 && e !== 123 && e !== 125) {
|
|
1641
|
-
let e = be(this.message);
|
|
1642
|
-
if (e) {
|
|
1643
|
-
let t = this.clonePosition();
|
|
1644
|
-
return this.position = e, {
|
|
1645
|
-
val: [{
|
|
1646
|
-
type: 0,
|
|
1647
|
-
value: this.message,
|
|
1648
|
-
location: N(t, this.clonePosition())
|
|
1649
|
-
}],
|
|
1650
|
-
err: null
|
|
1651
|
-
};
|
|
1652
|
-
}
|
|
1653
|
-
}
|
|
1654
|
-
}
|
|
1655
|
-
return this.parseMessage(0, "", !1);
|
|
1656
|
-
}
|
|
1657
|
-
parseMessage(e, t, n) {
|
|
1658
|
-
let r = [];
|
|
1659
|
-
for (; !this.isEOF();) {
|
|
1660
|
-
let i = this.char();
|
|
1661
|
-
if (i === 123) {
|
|
1662
|
-
let t = this.parseArgument(e, n);
|
|
1663
|
-
if (t.err) return t;
|
|
1664
|
-
r.push(t.val);
|
|
1665
|
-
} else if (i === 125 && e > 0) break;
|
|
1666
|
-
else if (i === 35 && (t === "plural" || t === "selectordinal")) {
|
|
1667
|
-
let e = this.clonePosition();
|
|
1668
|
-
this.bump(), r.push({
|
|
1669
|
-
type: 7,
|
|
1670
|
-
location: N(e, this.clonePosition())
|
|
1671
|
-
});
|
|
1672
|
-
} else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
1673
|
-
if (n) break;
|
|
1674
|
-
return this.error(26, N(this.clonePosition(), this.clonePosition()));
|
|
1675
|
-
} else if (i === 60 && !this.ignoreTag && z(this.peek() || 0)) {
|
|
1676
|
-
let n = this.parseTag(e, t);
|
|
1677
|
-
if (n.err) return n;
|
|
1678
|
-
r.push(n.val);
|
|
1679
|
-
} else {
|
|
1680
|
-
let n = this.parseLiteral(e, t);
|
|
1681
|
-
if (n.err) return n;
|
|
1682
|
-
r.push(n.val);
|
|
1683
|
-
}
|
|
1684
|
-
}
|
|
1685
|
-
return {
|
|
1686
|
-
val: r,
|
|
1687
|
-
err: null
|
|
1688
|
-
};
|
|
1689
|
-
}
|
|
1690
|
-
parseTag(e, t) {
|
|
1691
|
-
let n = this.clonePosition();
|
|
1692
|
-
this.bump();
|
|
1693
|
-
let r = this.parseTagName();
|
|
1694
|
-
if (this.bumpSpace(), this.bumpIf("/>")) return {
|
|
1695
|
-
val: {
|
|
1696
|
-
type: 0,
|
|
1697
|
-
value: `<${r}/>`,
|
|
1698
|
-
location: N(n, this.clonePosition())
|
|
1699
|
-
},
|
|
1700
|
-
err: null
|
|
1701
|
-
};
|
|
1702
|
-
if (this.bumpIf(">")) {
|
|
1703
|
-
let i = this.parseMessage(e + 1, t, !0);
|
|
1704
|
-
if (i.err) return i;
|
|
1705
|
-
let a = i.val, o = this.clonePosition();
|
|
1706
|
-
if (this.bumpIf("</")) {
|
|
1707
|
-
if (this.isEOF() || !z(this.char())) return this.error(23, N(o, this.clonePosition()));
|
|
1708
|
-
let e = this.clonePosition();
|
|
1709
|
-
return r === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(">") ? {
|
|
1710
|
-
val: {
|
|
1711
|
-
type: 8,
|
|
1712
|
-
value: r,
|
|
1713
|
-
children: a,
|
|
1714
|
-
location: N(n, this.clonePosition())
|
|
1715
|
-
},
|
|
1716
|
-
err: null
|
|
1717
|
-
} : this.error(23, N(o, this.clonePosition()))) : this.error(26, N(e, this.clonePosition()));
|
|
1718
|
-
} else return this.error(27, N(n, this.clonePosition()));
|
|
1719
|
-
} else return this.error(23, N(n, this.clonePosition()));
|
|
1720
|
-
}
|
|
1721
|
-
parseTagName() {
|
|
1722
|
-
let e = this.offset();
|
|
1723
|
-
for (this.bump(); !this.isEOF() && Ce(this.char());) this.bump();
|
|
1724
|
-
return this.message.slice(e, this.offset());
|
|
1725
|
-
}
|
|
1726
|
-
parseLiteral(e, t) {
|
|
1727
|
-
let n = this.clonePosition(), r = "";
|
|
1728
|
-
for (;;) {
|
|
1729
|
-
let n = this.tryParseQuote(t);
|
|
1730
|
-
if (n) {
|
|
1731
|
-
r += n;
|
|
1732
|
-
continue;
|
|
1733
|
-
}
|
|
1734
|
-
let i = this.tryParseUnquoted(e, t);
|
|
1735
|
-
if (i) {
|
|
1736
|
-
r += i;
|
|
1737
|
-
continue;
|
|
1738
|
-
}
|
|
1739
|
-
let a = this.tryParseLeftAngleBracket();
|
|
1740
|
-
if (a) {
|
|
1741
|
-
r += a;
|
|
1742
|
-
continue;
|
|
1743
|
-
}
|
|
1744
|
-
break;
|
|
1745
|
-
}
|
|
1746
|
-
let i = N(n, this.clonePosition());
|
|
1747
|
-
return {
|
|
1748
|
-
val: {
|
|
1749
|
-
type: 0,
|
|
1750
|
-
value: r,
|
|
1751
|
-
location: i
|
|
1752
|
-
},
|
|
1753
|
-
err: null
|
|
1754
|
-
};
|
|
1755
|
-
}
|
|
1756
|
-
tryParseLeftAngleBracket() {
|
|
1757
|
-
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !Se(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
1758
|
-
}
|
|
1759
|
-
tryParseQuote(e) {
|
|
1760
|
-
if (this.isEOF() || this.char() !== 39) return null;
|
|
1761
|
-
switch (this.peek()) {
|
|
1762
|
-
case 39: return this.bump(), this.bump(), "'";
|
|
1763
|
-
case 123:
|
|
1764
|
-
case 60:
|
|
1765
|
-
case 62:
|
|
1766
|
-
case 125: break;
|
|
1767
|
-
case 35:
|
|
1768
|
-
if (e === "plural" || e === "selectordinal") break;
|
|
1769
|
-
return null;
|
|
1770
|
-
default: return null;
|
|
1771
|
-
}
|
|
1772
|
-
this.bump();
|
|
1773
|
-
let t = [this.char()];
|
|
1774
|
-
for (this.bump(); !this.isEOF();) {
|
|
1775
|
-
let e = this.char();
|
|
1776
|
-
if (e === 39) if (this.peek() === 39) t.push(39), this.bump();
|
|
1777
|
-
else {
|
|
1778
|
-
this.bump();
|
|
1779
|
-
break;
|
|
1780
|
-
}
|
|
1781
|
-
else t.push(e);
|
|
1782
|
-
this.bump();
|
|
1783
|
-
}
|
|
1784
|
-
return String.fromCodePoint(...t);
|
|
1785
|
-
}
|
|
1786
|
-
tryParseUnquoted(e, t) {
|
|
1787
|
-
if (this.isEOF()) return null;
|
|
1788
|
-
let n = this.char();
|
|
1789
|
-
return n === 60 || n === 123 || n === 35 && (t === "plural" || t === "selectordinal") || n === 125 && e > 0 ? null : (this.bump(), String.fromCodePoint(n));
|
|
1790
|
-
}
|
|
1791
|
-
parseArgument(e, t) {
|
|
1792
|
-
let n = this.clonePosition();
|
|
1793
|
-
if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1, N(n, this.clonePosition()));
|
|
1794
|
-
if (this.char() === 125) return this.bump(), this.error(2, N(n, this.clonePosition()));
|
|
1795
|
-
let r = this.parseIdentifierIfPossible().value;
|
|
1796
|
-
if (!r) return this.error(3, N(n, this.clonePosition()));
|
|
1797
|
-
if (this.bumpSpace(), this.isEOF()) return this.error(1, N(n, this.clonePosition()));
|
|
1798
|
-
switch (this.char()) {
|
|
1799
|
-
case 125: return this.bump(), {
|
|
1800
|
-
val: {
|
|
1801
|
-
type: 1,
|
|
1802
|
-
value: r,
|
|
1803
|
-
location: N(n, this.clonePosition())
|
|
1804
|
-
},
|
|
1805
|
-
err: null
|
|
1806
|
-
};
|
|
1807
|
-
case 44: return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1, N(n, this.clonePosition())) : this.parseArgumentOptions(e, t, r, n);
|
|
1808
|
-
default: return this.error(3, N(n, this.clonePosition()));
|
|
1809
|
-
}
|
|
1810
|
-
}
|
|
1811
|
-
parseIdentifierIfPossible() {
|
|
1812
|
-
let e = this.clonePosition(), t = this.offset(), n = ye(this.message, t), r = t + n.length;
|
|
1813
|
-
return this.bumpTo(r), {
|
|
1814
|
-
value: n,
|
|
1815
|
-
location: N(e, this.clonePosition())
|
|
1816
|
-
};
|
|
1817
|
-
}
|
|
1818
|
-
parseArgumentOptions(e, t, n, r) {
|
|
1819
|
-
let i = this.clonePosition(), a = this.parseIdentifierIfPossible().value, o = this.clonePosition();
|
|
1820
|
-
switch (a) {
|
|
1821
|
-
case "": return this.error(4, N(i, o));
|
|
1822
|
-
case "number":
|
|
1823
|
-
case "date":
|
|
1824
|
-
case "time": {
|
|
1825
|
-
this.bumpSpace();
|
|
1826
|
-
let e = null;
|
|
1827
|
-
if (this.bumpIf(",")) {
|
|
1828
|
-
this.bumpSpace();
|
|
1829
|
-
let t = this.clonePosition(), n = this.parseSimpleArgStyleIfPossible();
|
|
1830
|
-
if (n.err) return n;
|
|
1831
|
-
let r = ve(n.val);
|
|
1832
|
-
if (r.length === 0) return this.error(6, N(this.clonePosition(), this.clonePosition()));
|
|
1833
|
-
e = {
|
|
1834
|
-
style: r,
|
|
1835
|
-
styleLocation: N(t, this.clonePosition())
|
|
1836
|
-
};
|
|
1837
|
-
}
|
|
1838
|
-
let t = this.tryParseArgumentClose(r);
|
|
1839
|
-
if (t.err) return t;
|
|
1840
|
-
let i = N(r, this.clonePosition());
|
|
1841
|
-
if (e && e.style.startsWith("::")) {
|
|
1842
|
-
let t = _e(e.style.slice(2));
|
|
1843
|
-
if (a === "number") {
|
|
1844
|
-
let r = this.parseNumberSkeletonFromString(t, e.styleLocation);
|
|
1845
|
-
return r.err ? r : {
|
|
1846
|
-
val: {
|
|
1847
|
-
type: 2,
|
|
1848
|
-
value: n,
|
|
1849
|
-
location: i,
|
|
1850
|
-
style: r.val
|
|
1851
|
-
},
|
|
1852
|
-
err: null
|
|
1853
|
-
};
|
|
1854
|
-
} else {
|
|
1855
|
-
if (t.length === 0) return this.error(10, i);
|
|
1856
|
-
let r = t;
|
|
1857
|
-
this.locale && (r = me(t, this.locale));
|
|
1858
|
-
let o = {
|
|
1859
|
-
type: 1,
|
|
1860
|
-
pattern: r,
|
|
1861
|
-
location: e.styleLocation,
|
|
1862
|
-
parsedOptions: this.shouldParseSkeletons ? ae(r) : {}
|
|
1863
|
-
};
|
|
1864
|
-
return {
|
|
1865
|
-
val: {
|
|
1866
|
-
type: a === "date" ? 3 : 4,
|
|
1867
|
-
value: n,
|
|
1868
|
-
location: i,
|
|
1869
|
-
style: o
|
|
1870
|
-
},
|
|
1871
|
-
err: null
|
|
1872
|
-
};
|
|
1873
|
-
}
|
|
1874
|
-
}
|
|
1875
|
-
return {
|
|
1876
|
-
val: {
|
|
1877
|
-
type: a === "number" ? 2 : a === "date" ? 3 : 4,
|
|
1878
|
-
value: n,
|
|
1879
|
-
location: i,
|
|
1880
|
-
style: e?.style ?? null
|
|
1881
|
-
},
|
|
1882
|
-
err: null
|
|
1883
|
-
};
|
|
1884
|
-
}
|
|
1885
|
-
case "plural":
|
|
1886
|
-
case "selectordinal":
|
|
1887
|
-
case "select": {
|
|
1888
|
-
let i = this.clonePosition();
|
|
1889
|
-
if (this.bumpSpace(), !this.bumpIf(",")) return this.error(12, N(i, { ...i }));
|
|
1890
|
-
this.bumpSpace();
|
|
1891
|
-
let o = this.parseIdentifierIfPossible(), s = 0;
|
|
1892
|
-
if (a !== "select" && o.value === "offset") {
|
|
1893
|
-
if (!this.bumpIf(":")) return this.error(13, N(this.clonePosition(), this.clonePosition()));
|
|
1894
|
-
this.bumpSpace();
|
|
1895
|
-
let e = this.tryParseDecimalInteger(13, 14);
|
|
1896
|
-
if (e.err) return e;
|
|
1897
|
-
this.bumpSpace(), o = this.parseIdentifierIfPossible(), s = e.val;
|
|
1898
|
-
}
|
|
1899
|
-
let c = this.tryParsePluralOrSelectOptions(e, a, t, o);
|
|
1900
|
-
if (c.err) return c;
|
|
1901
|
-
let l = this.tryParseArgumentClose(r);
|
|
1902
|
-
if (l.err) return l;
|
|
1903
|
-
let u = N(r, this.clonePosition());
|
|
1904
|
-
return a === "select" ? {
|
|
1905
|
-
val: {
|
|
1906
|
-
type: 5,
|
|
1907
|
-
value: n,
|
|
1908
|
-
options: L(c.val),
|
|
1909
|
-
location: u
|
|
1910
|
-
},
|
|
1911
|
-
err: null
|
|
1912
|
-
} : {
|
|
1913
|
-
val: {
|
|
1914
|
-
type: 6,
|
|
1915
|
-
value: n,
|
|
1916
|
-
options: L(c.val),
|
|
1917
|
-
offset: s,
|
|
1918
|
-
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
1919
|
-
location: u
|
|
1920
|
-
},
|
|
1921
|
-
err: null
|
|
1922
|
-
};
|
|
1923
|
-
}
|
|
1924
|
-
default: return this.error(5, N(i, o));
|
|
1925
|
-
}
|
|
1926
|
-
}
|
|
1927
|
-
tryParseArgumentClose(e) {
|
|
1928
|
-
return this.isEOF() || this.char() !== 125 ? this.error(1, N(e, this.clonePosition())) : (this.bump(), {
|
|
1929
|
-
val: !0,
|
|
1930
|
-
err: null
|
|
1931
|
-
});
|
|
1932
|
-
}
|
|
1933
|
-
parseSimpleArgStyleIfPossible() {
|
|
1934
|
-
let e = 0, t = this.clonePosition();
|
|
1935
|
-
for (; !this.isEOF();) switch (this.char()) {
|
|
1936
|
-
case 39: {
|
|
1937
|
-
this.bump();
|
|
1938
|
-
let e = this.clonePosition();
|
|
1939
|
-
if (!this.bumpUntil("'")) return this.error(11, N(e, this.clonePosition()));
|
|
1940
|
-
this.bump();
|
|
1941
|
-
break;
|
|
1942
|
-
}
|
|
1943
|
-
case 123:
|
|
1944
|
-
e += 1, this.bump();
|
|
1945
|
-
break;
|
|
1946
|
-
case 125:
|
|
1947
|
-
if (e > 0) --e;
|
|
1948
|
-
else return {
|
|
1949
|
-
val: this.message.slice(t.offset, this.offset()),
|
|
1950
|
-
err: null
|
|
1951
|
-
};
|
|
1952
|
-
break;
|
|
1953
|
-
default: this.bump();
|
|
1954
|
-
}
|
|
1955
|
-
return {
|
|
1956
|
-
val: this.message.slice(t.offset, this.offset()),
|
|
1957
|
-
err: null
|
|
1958
|
-
};
|
|
1959
|
-
}
|
|
1960
|
-
parseNumberSkeletonFromString(e, t) {
|
|
1961
|
-
let n = [];
|
|
1962
|
-
try {
|
|
1963
|
-
n = se(e);
|
|
1964
|
-
} catch {
|
|
1965
|
-
return this.error(7, t);
|
|
1966
|
-
}
|
|
1967
|
-
return {
|
|
1968
|
-
val: {
|
|
1969
|
-
type: 0,
|
|
1970
|
-
tokens: n,
|
|
1971
|
-
location: t,
|
|
1972
|
-
parsedOptions: this.shouldParseSkeletons ? b(n) : {}
|
|
1973
|
-
},
|
|
1974
|
-
err: null
|
|
1975
|
-
};
|
|
1976
|
-
}
|
|
1977
|
-
tryParsePluralOrSelectOptions(e, t, n, r) {
|
|
1978
|
-
let i = !1, a = [], o = /* @__PURE__ */ new Set(), { value: s, location: c } = r;
|
|
1979
|
-
for (;;) {
|
|
1980
|
-
if (s.length === 0) {
|
|
1981
|
-
let e = this.clonePosition();
|
|
1982
|
-
if (t !== "select" && this.bumpIf("=")) {
|
|
1983
|
-
let t = this.tryParseDecimalInteger(16, 19);
|
|
1984
|
-
if (t.err) return t;
|
|
1985
|
-
c = N(e, this.clonePosition()), s = this.message.slice(e.offset, this.offset());
|
|
1986
|
-
} else break;
|
|
1987
|
-
}
|
|
1988
|
-
if (o.has(s)) return this.error(t === "select" ? 21 : 20, c);
|
|
1989
|
-
s === "other" && (i = !0), this.bumpSpace();
|
|
1990
|
-
let r = this.clonePosition();
|
|
1991
|
-
if (!this.bumpIf("{")) return this.error(t === "select" ? 17 : 18, N(this.clonePosition(), this.clonePosition()));
|
|
1992
|
-
let l = this.parseMessage(e + 1, t, n);
|
|
1993
|
-
if (l.err) return l;
|
|
1994
|
-
let u = this.tryParseArgumentClose(r);
|
|
1995
|
-
if (u.err) return u;
|
|
1996
|
-
a.push([s, {
|
|
1997
|
-
value: l.val,
|
|
1998
|
-
location: N(r, this.clonePosition())
|
|
1999
|
-
}]), o.add(s), this.bumpSpace(), {value: s, location: c} = this.parseIdentifierIfPossible();
|
|
2000
|
-
}
|
|
2001
|
-
return a.length === 0 ? this.error(t === "select" ? 15 : 16, N(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !i ? this.error(22, N(this.clonePosition(), this.clonePosition())) : {
|
|
2002
|
-
val: a,
|
|
2003
|
-
err: null
|
|
2004
|
-
};
|
|
2005
|
-
}
|
|
2006
|
-
tryParseDecimalInteger(e, t) {
|
|
2007
|
-
let n = 1, r = this.clonePosition();
|
|
2008
|
-
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
2009
|
-
let i = !1, a = 0;
|
|
2010
|
-
for (; !this.isEOF();) {
|
|
2011
|
-
let e = this.char();
|
|
2012
|
-
if (e >= 48 && e <= 57) i = !0, a = a * 10 + (e - 48), this.bump();
|
|
2013
|
-
else break;
|
|
2014
|
-
}
|
|
2015
|
-
let o = N(r, this.clonePosition());
|
|
2016
|
-
return i ? (a *= n, Number.isSafeInteger(a) ? {
|
|
2017
|
-
val: a,
|
|
2018
|
-
err: null
|
|
2019
|
-
} : this.error(t, o)) : this.error(e, o);
|
|
2020
|
-
}
|
|
2021
|
-
offset() {
|
|
2022
|
-
return this.position.offset;
|
|
2023
|
-
}
|
|
2024
|
-
isEOF() {
|
|
2025
|
-
return this.offset() === this.message.length;
|
|
2026
|
-
}
|
|
2027
|
-
clonePosition() {
|
|
2028
|
-
return {
|
|
2029
|
-
offset: this.position.offset,
|
|
2030
|
-
line: this.position.line,
|
|
2031
|
-
column: this.position.column
|
|
2032
|
-
};
|
|
2033
|
-
}
|
|
2034
|
-
char() {
|
|
2035
|
-
let e = this.position.offset;
|
|
2036
|
-
if (e >= this.message.length) throw Error("out of bound");
|
|
2037
|
-
let t = this.message.codePointAt(e);
|
|
2038
|
-
if (t === void 0) throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);
|
|
2039
|
-
return t;
|
|
2040
|
-
}
|
|
2041
|
-
error(e, t) {
|
|
2042
|
-
return {
|
|
2043
|
-
val: null,
|
|
2044
|
-
err: {
|
|
2045
|
-
kind: e,
|
|
2046
|
-
message: this.message,
|
|
2047
|
-
location: t
|
|
2048
|
-
}
|
|
2049
|
-
};
|
|
2050
|
-
}
|
|
2051
|
-
bump() {
|
|
2052
|
-
if (this.isEOF()) return;
|
|
2053
|
-
let e = this.char();
|
|
2054
|
-
e === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += e < 65536 ? 1 : 2);
|
|
2055
|
-
}
|
|
2056
|
-
bumpIf(e) {
|
|
2057
|
-
if (this.message.startsWith(e, this.offset())) {
|
|
2058
|
-
for (let t = 0; t < e.length; t++) this.bump();
|
|
2059
|
-
return !0;
|
|
2060
|
-
}
|
|
2061
|
-
return !1;
|
|
2062
|
-
}
|
|
2063
|
-
bumpUntil(e) {
|
|
2064
|
-
let t = this.offset(), n = this.message.indexOf(e, t);
|
|
2065
|
-
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
2066
|
-
}
|
|
2067
|
-
bumpTo(e) {
|
|
2068
|
-
if (this.offset() > e) throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);
|
|
2069
|
-
for (e = Math.min(e, this.message.length);;) {
|
|
2070
|
-
let t = this.offset();
|
|
2071
|
-
if (t === e) break;
|
|
2072
|
-
if (t > e) throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);
|
|
2073
|
-
if (this.bump(), this.isEOF()) break;
|
|
2074
|
-
}
|
|
2075
|
-
}
|
|
2076
|
-
bumpSpace() {
|
|
2077
|
-
for (; !this.isEOF() && we(this.char());) this.bump();
|
|
2078
|
-
}
|
|
2079
|
-
peek() {
|
|
2080
|
-
if (this.isEOF()) return null;
|
|
2081
|
-
let e = this.char(), t = this.offset();
|
|
2082
|
-
return this.message.charCodeAt(t + (e >= 65536 ? 2 : 1)) ?? null;
|
|
2083
|
-
}
|
|
2084
|
-
};
|
|
2085
|
-
function z(e) {
|
|
2086
|
-
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
2087
|
-
}
|
|
2088
|
-
function Se(e) {
|
|
2089
|
-
return z(e) || e === 47;
|
|
2090
|
-
}
|
|
2091
|
-
function Ce(e) {
|
|
2092
|
-
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
2093
|
-
}
|
|
2094
|
-
function we(e) {
|
|
2095
|
-
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
2096
|
-
}
|
|
2097
|
-
function B(e) {
|
|
2098
|
-
e.forEach((e) => {
|
|
2099
|
-
if (delete e.location, T(e) || E(e)) for (let t in e.options) delete e.options[t].location, B(e.options[t].value);
|
|
2100
|
-
else S(e) && O(e.style) || (C(e) || w(e)) && k(e.style) ? delete e.style.location : D(e) && B(e.children);
|
|
2101
|
-
});
|
|
2102
|
-
}
|
|
2103
|
-
function Te(e, t = {}) {
|
|
2104
|
-
t = {
|
|
2105
|
-
shouldParseSkeletons: !0,
|
|
2106
|
-
requiresOtherClause: !0,
|
|
2107
|
-
...t
|
|
2108
|
-
};
|
|
2109
|
-
let n = new xe(e, t).parse();
|
|
2110
|
-
if (n.err) {
|
|
2111
|
-
let e = SyntaxError(de[n.err.kind]);
|
|
2112
|
-
throw e.location = n.err.location, e.originalMessage = n.err.message, e;
|
|
2113
|
-
}
|
|
2114
|
-
return t?.captureLocation || B(n.val), n.val;
|
|
2115
|
-
}
|
|
2116
|
-
//#endregion
|
|
2117
|
-
//#region ../../node_modules/intl-messageformat/index.js
|
|
2118
|
-
var V = /* @__PURE__ */ function(e) {
|
|
2119
|
-
return e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API", e;
|
|
2120
|
-
}({}), H = class extends Error {
|
|
2121
|
-
constructor(e, t, n) {
|
|
2122
|
-
super(e), this.code = t, this.originalMessage = n;
|
|
2123
|
-
}
|
|
2124
|
-
toString() {
|
|
2125
|
-
return `[formatjs Error: ${this.code}] ${this.message}`;
|
|
2126
|
-
}
|
|
2127
|
-
}, U = class extends H {
|
|
2128
|
-
constructor(e, t, n, r) {
|
|
2129
|
-
super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join("\", \"")}"`, "INVALID_VALUE", r);
|
|
2130
|
-
}
|
|
2131
|
-
}, Ee = class extends H {
|
|
2132
|
-
constructor(e, t, n) {
|
|
2133
|
-
super(`Value for "${e}" must be of type ${t}`, "INVALID_VALUE", n);
|
|
2134
|
-
}
|
|
2135
|
-
}, De = class extends H {
|
|
2136
|
-
constructor(e, t) {
|
|
2137
|
-
super(`The intl string context variable "${e}" was not provided to the string "${t}"`, "MISSING_VALUE", t);
|
|
2138
|
-
}
|
|
2139
|
-
};
|
|
2140
|
-
function Oe(e) {
|
|
2141
|
-
return e.length < 2 ? e : e.reduce((e, t) => {
|
|
2142
|
-
let n = e[e.length - 1];
|
|
2143
|
-
return !n || n.type !== 0 || t.type !== 0 ? e.push(t) : n.value += t.value, e;
|
|
2144
|
-
}, []);
|
|
2145
|
-
}
|
|
2146
|
-
function ke(e) {
|
|
2147
|
-
return typeof e == "function";
|
|
2148
|
-
}
|
|
2149
|
-
function W(e, t, n, r, i, a, o) {
|
|
2150
|
-
if (e.length === 1 && x(e[0])) return [{
|
|
2151
|
-
type: 0,
|
|
2152
|
-
value: e[0].value
|
|
2153
|
-
}];
|
|
2154
|
-
let s = [];
|
|
2155
|
-
for (let c of e) {
|
|
2156
|
-
if (x(c)) {
|
|
2157
|
-
s.push({
|
|
2158
|
-
type: 0,
|
|
2159
|
-
value: c.value
|
|
2160
|
-
});
|
|
2161
|
-
continue;
|
|
2162
|
-
}
|
|
2163
|
-
if (pe(c)) {
|
|
2164
|
-
typeof a == "number" && s.push({
|
|
2165
|
-
type: 0,
|
|
2166
|
-
value: n.getNumberFormat(t).format(a)
|
|
2167
|
-
});
|
|
2168
|
-
continue;
|
|
2169
|
-
}
|
|
2170
|
-
let { value: e } = c;
|
|
2171
|
-
if (!(i && e in i)) throw new De(e, o);
|
|
2172
|
-
let l = i[e];
|
|
2173
|
-
if (fe(c)) {
|
|
2174
|
-
(!l || typeof l == "string" || typeof l == "number" || typeof l == "bigint") && (l = typeof l == "string" || typeof l == "number" || typeof l == "bigint" ? String(l) : ""), s.push({
|
|
2175
|
-
type: typeof l == "string" ? 0 : 1,
|
|
2176
|
-
value: l
|
|
2177
|
-
});
|
|
2178
|
-
continue;
|
|
2179
|
-
}
|
|
2180
|
-
if (C(c)) {
|
|
2181
|
-
let e = typeof c.style == "string" ? r.date[c.style] : k(c.style) ? c.style.parsedOptions : void 0;
|
|
2182
|
-
s.push({
|
|
2183
|
-
type: 0,
|
|
2184
|
-
value: n.getDateTimeFormat(t, e).format(l)
|
|
2185
|
-
});
|
|
2186
|
-
continue;
|
|
2187
|
-
}
|
|
2188
|
-
if (w(c)) {
|
|
2189
|
-
let e = typeof c.style == "string" ? r.time[c.style] : k(c.style) ? c.style.parsedOptions : r.time.medium;
|
|
2190
|
-
s.push({
|
|
2191
|
-
type: 0,
|
|
2192
|
-
value: n.getDateTimeFormat(t, e).format(l)
|
|
2193
|
-
});
|
|
2194
|
-
continue;
|
|
2195
|
-
}
|
|
2196
|
-
if (S(c)) {
|
|
2197
|
-
let e = typeof c.style == "string" ? r.number[c.style] : O(c.style) ? c.style.parsedOptions : void 0;
|
|
2198
|
-
if (e && e.scale) {
|
|
2199
|
-
let t = e.scale || 1;
|
|
2200
|
-
if (typeof l == "bigint") {
|
|
2201
|
-
if (!Number.isInteger(t)) throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);
|
|
2202
|
-
l *= BigInt(t);
|
|
2203
|
-
} else l *= t;
|
|
2204
|
-
}
|
|
2205
|
-
s.push({
|
|
2206
|
-
type: 0,
|
|
2207
|
-
value: n.getNumberFormat(t, e).format(l)
|
|
2208
|
-
});
|
|
2209
|
-
continue;
|
|
2210
|
-
}
|
|
2211
|
-
if (D(c)) {
|
|
2212
|
-
let { children: e, value: l } = c, u = i[l];
|
|
2213
|
-
if (!ke(u)) throw new Ee(l, "function", o);
|
|
2214
|
-
let d = u(W(e, t, n, r, i, a).map((e) => e.value));
|
|
2215
|
-
Array.isArray(d) || (d = [d]), s.push(...d.map((e) => ({
|
|
2216
|
-
type: typeof e == "string" ? 0 : 1,
|
|
2217
|
-
value: e
|
|
2218
|
-
})));
|
|
2219
|
-
}
|
|
2220
|
-
if (T(c)) {
|
|
2221
|
-
let e = l, a = (Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0) || c.options.other;
|
|
2222
|
-
if (!a) throw new U(c.value, l, Object.keys(c.options), o);
|
|
2223
|
-
s.push(...W(a.value, t, n, r, i));
|
|
2224
|
-
continue;
|
|
2225
|
-
}
|
|
2226
|
-
if (E(c)) {
|
|
2227
|
-
let e = `=${l}`, a = Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0;
|
|
2228
|
-
if (!a) {
|
|
2229
|
-
if (!Intl.PluralRules) throw new H("Intl.PluralRules is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-pluralrules\"\n", "MISSING_INTL_API", o);
|
|
2230
|
-
let e = typeof l == "bigint" ? Number(l) : l, r = n.getPluralRules(t, { type: c.pluralType }).select(e - (c.offset || 0));
|
|
2231
|
-
a = (Object.prototype.hasOwnProperty.call(c.options, r) ? c.options[r] : void 0) || c.options.other;
|
|
2232
|
-
}
|
|
2233
|
-
if (!a) throw new U(c.value, l, Object.keys(c.options), o);
|
|
2234
|
-
let u = typeof l == "bigint" ? Number(l) : l;
|
|
2235
|
-
s.push(...W(a.value, t, n, r, i, u - (c.offset || 0)));
|
|
2236
|
-
continue;
|
|
2237
|
-
}
|
|
2238
|
-
}
|
|
2239
|
-
return Oe(s);
|
|
2240
|
-
}
|
|
2241
|
-
function Ae(e, t) {
|
|
2242
|
-
return t ? {
|
|
2243
|
-
...e,
|
|
2244
|
-
...t,
|
|
2245
|
-
...Object.keys(e).reduce((n, r) => (n[r] = {
|
|
2246
|
-
...e[r],
|
|
2247
|
-
...t[r]
|
|
2248
|
-
}, n), {})
|
|
2249
|
-
} : e;
|
|
2250
|
-
}
|
|
2251
|
-
function je(e, t) {
|
|
2252
|
-
return t ? Object.keys(e).reduce((n, r) => (n[r] = Ae(e[r], t[r]), n), { ...e }) : e;
|
|
2253
|
-
}
|
|
2254
|
-
function G(e) {
|
|
2255
|
-
return { create() {
|
|
2256
|
-
return {
|
|
2257
|
-
get(t) {
|
|
2258
|
-
return e[t];
|
|
2259
|
-
},
|
|
2260
|
-
set(t, n) {
|
|
2261
|
-
e[t] = n;
|
|
2262
|
-
}
|
|
2263
|
-
};
|
|
2264
|
-
} };
|
|
2265
|
-
}
|
|
2266
|
-
function Me(e = {
|
|
2267
|
-
number: {},
|
|
2268
|
-
dateTime: {},
|
|
2269
|
-
pluralRules: {}
|
|
2270
|
-
}) {
|
|
2271
|
-
return {
|
|
2272
|
-
getNumberFormat: o((...e) => new Intl.NumberFormat(...e), {
|
|
2273
|
-
cache: G(e.number),
|
|
2274
|
-
strategy: f.variadic
|
|
2275
|
-
}),
|
|
2276
|
-
getDateTimeFormat: o((...e) => new Intl.DateTimeFormat(...e), {
|
|
2277
|
-
cache: G(e.dateTime),
|
|
2278
|
-
strategy: f.variadic
|
|
2279
|
-
}),
|
|
2280
|
-
getPluralRules: o((...e) => new Intl.PluralRules(...e), {
|
|
2281
|
-
cache: G(e.pluralRules),
|
|
2282
|
-
strategy: f.variadic
|
|
2283
|
-
})
|
|
2284
|
-
};
|
|
2285
|
-
}
|
|
2286
|
-
var Ne = class e {
|
|
2287
|
-
constructor(t, n = e.defaultLocale, r, i) {
|
|
2288
|
-
if (this.formatterCache = {
|
|
2289
|
-
number: {},
|
|
2290
|
-
dateTime: {},
|
|
2291
|
-
pluralRules: {}
|
|
2292
|
-
}, this.format = (e) => {
|
|
2293
|
-
let t = this.formatToParts(e);
|
|
2294
|
-
if (t.length === 1) return t[0].value;
|
|
2295
|
-
let n = t.reduce((e, t) => (!e.length || t.type !== 0 || typeof e[e.length - 1] != "string" ? e.push(t.value) : e[e.length - 1] += t.value, e), []);
|
|
2296
|
-
return n.length <= 1 ? n[0] || "" : n;
|
|
2297
|
-
}, this.formatToParts = (e) => W(this.ast, this.locales, this.formatters, this.formats, e, void 0, this.message), this.resolvedOptions = () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] }), this.getAst = () => this.ast, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
2298
|
-
if (this.message = t, !e.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
2299
|
-
let { ...n } = i || {};
|
|
2300
|
-
this.ast = e.__parse(t, {
|
|
2301
|
-
...n,
|
|
2302
|
-
locale: this.resolvedLocale
|
|
2303
|
-
});
|
|
2304
|
-
} else this.ast = t;
|
|
2305
|
-
if (!Array.isArray(this.ast)) throw TypeError("A message must be provided as a String or AST.");
|
|
2306
|
-
this.formats = je(e.formats, r), this.formatters = i && i.formatters || Me(this.formatterCache);
|
|
2307
|
-
}
|
|
2308
|
-
static {
|
|
2309
|
-
this.memoizedDefaultLocale = null;
|
|
2310
|
-
}
|
|
2311
|
-
static get defaultLocale() {
|
|
2312
|
-
return e.memoizedDefaultLocale ||= new Intl.NumberFormat().resolvedOptions().locale, e.memoizedDefaultLocale;
|
|
2313
|
-
}
|
|
2314
|
-
static {
|
|
2315
|
-
this.resolveLocale = (e) => {
|
|
2316
|
-
if (Intl.Locale === void 0) return;
|
|
2317
|
-
let t = Intl.NumberFormat.supportedLocalesOf(e);
|
|
2318
|
-
return t.length > 0 ? new Intl.Locale(t[0]) : new Intl.Locale(typeof e == "string" ? e : e[0]);
|
|
2319
|
-
};
|
|
2320
|
-
}
|
|
2321
|
-
static {
|
|
2322
|
-
this.__parse = Te;
|
|
2323
|
-
}
|
|
2324
|
-
static {
|
|
2325
|
-
this.formats = {
|
|
2326
|
-
number: {
|
|
2327
|
-
integer: { maximumFractionDigits: 0 },
|
|
2328
|
-
currency: { style: "currency" },
|
|
2329
|
-
percent: { style: "percent" }
|
|
2330
|
-
},
|
|
2331
|
-
date: {
|
|
2332
|
-
short: {
|
|
2333
|
-
month: "numeric",
|
|
2334
|
-
day: "numeric",
|
|
2335
|
-
year: "2-digit"
|
|
2336
|
-
},
|
|
2337
|
-
medium: {
|
|
2338
|
-
month: "short",
|
|
2339
|
-
day: "numeric",
|
|
2340
|
-
year: "numeric"
|
|
2341
|
-
},
|
|
2342
|
-
long: {
|
|
2343
|
-
month: "long",
|
|
2344
|
-
day: "numeric",
|
|
2345
|
-
year: "numeric"
|
|
2346
|
-
},
|
|
2347
|
-
full: {
|
|
2348
|
-
weekday: "long",
|
|
2349
|
-
month: "long",
|
|
2350
|
-
day: "numeric",
|
|
2351
|
-
year: "numeric"
|
|
2352
|
-
}
|
|
2353
|
-
},
|
|
2354
|
-
time: {
|
|
2355
|
-
short: {
|
|
2356
|
-
hour: "numeric",
|
|
2357
|
-
minute: "numeric"
|
|
2358
|
-
},
|
|
2359
|
-
medium: {
|
|
2360
|
-
hour: "numeric",
|
|
2361
|
-
minute: "numeric",
|
|
2362
|
-
second: "numeric"
|
|
2363
|
-
},
|
|
2364
|
-
long: {
|
|
2365
|
-
hour: "numeric",
|
|
2366
|
-
minute: "numeric",
|
|
2367
|
-
second: "numeric",
|
|
2368
|
-
timeZoneName: "short"
|
|
2369
|
-
},
|
|
2370
|
-
full: {
|
|
2371
|
-
hour: "numeric",
|
|
2372
|
-
minute: "numeric",
|
|
2373
|
-
second: "numeric",
|
|
2374
|
-
timeZoneName: "short"
|
|
2375
|
-
}
|
|
2376
|
-
}
|
|
2377
|
-
};
|
|
2378
|
-
}
|
|
2379
|
-
}, Pe = 500, K = /* @__PURE__ */ new Map();
|
|
2380
|
-
function q(e, t) {
|
|
2381
|
-
let n = `${t}\u0000${e}`, r = K.get(n);
|
|
2382
|
-
return r || (r = new Ne(e, t), K.size >= Pe && K.clear(), K.set(n, r)), r;
|
|
2383
|
-
}
|
|
2384
|
-
var J = class extends Error {
|
|
2385
|
-
name = "FormatMessageError";
|
|
2386
|
-
reason;
|
|
2387
|
-
source;
|
|
2388
|
-
language;
|
|
2389
|
-
key;
|
|
2390
|
-
cause;
|
|
2391
|
-
constructor(e, t, n, r, i) {
|
|
2392
|
-
super(`Could not format the message (${e}${i ? `, "${i}"` : ""}): ${r instanceof Error ? r.message : String(r)}`), this.cause = r, this.reason = e, this.source = t, this.language = n, this.key = i;
|
|
2393
|
-
}
|
|
2394
|
-
}, Fe = 0, Ie = 5, Le = 6, Re = 7, Y = 8;
|
|
2395
|
-
function X(e, t) {
|
|
2396
|
-
for (let n of e) {
|
|
2397
|
-
if (n.type === Fe || n.type === Re) continue;
|
|
2398
|
-
let e = n.value;
|
|
2399
|
-
if (!(t && e in t)) return e;
|
|
2400
|
-
if (n.type === Le || n.type === Ie) {
|
|
2401
|
-
let e = n.options;
|
|
2402
|
-
for (let n of Object.values(e)) {
|
|
2403
|
-
let e = X(n.value, t);
|
|
2404
|
-
if (e) return e;
|
|
2405
|
-
}
|
|
2406
|
-
} else if (n.type === Y) {
|
|
2407
|
-
let e = X(n.children, t);
|
|
2408
|
-
if (e) return e;
|
|
2409
|
-
}
|
|
2410
|
-
}
|
|
2411
|
-
}
|
|
2412
|
-
function ze(e, t, n, r) {
|
|
2413
|
-
if (e instanceof H && e.code === V.MISSING_VALUE) {
|
|
2414
|
-
let i;
|
|
2415
|
-
try {
|
|
2416
|
-
i = X(q(t, n).getAst(), r);
|
|
2417
|
-
} catch {}
|
|
2418
|
-
return new J("missing-value", t, n, e, i);
|
|
2419
|
-
}
|
|
2420
|
-
return e instanceof H && e.code === V.INVALID_VALUE ? new J("invalid-value", t, n, e) : new J(e instanceof SyntaxError ? "parse" : "format", t, n, e);
|
|
2421
|
-
}
|
|
2422
|
-
function Z(e, t, n, r) {
|
|
2423
|
-
try {
|
|
2424
|
-
return q(e, t).format(n);
|
|
2425
|
-
} catch (i) {
|
|
2426
|
-
return r?.onError ? r.onError(ze(i, e, t, n)) : console.error(i), e;
|
|
2427
|
-
}
|
|
2428
|
-
}
|
|
2429
|
-
var Be = () => !e();
|
|
2430
|
-
function Ve(e, t, n) {
|
|
2431
|
-
if (!n && !e.includes("{")) return e;
|
|
2432
|
-
try {
|
|
2433
|
-
return q(e, t).format(n);
|
|
2434
|
-
} catch (t) {
|
|
2435
|
-
return Be() && console.warn(`[@nxgt/material] Could not format the fallback "${e}":`, t), e;
|
|
2436
|
-
}
|
|
2437
|
-
}
|
|
2438
|
-
//#endregion
|
|
2439
|
-
//#region lib/i18n/translator.ts
|
|
2440
|
-
function Q() {
|
|
2441
|
-
return i(r, "en", n);
|
|
2442
|
-
}
|
|
2443
|
-
function $(e = {}, t = Q) {
|
|
2444
|
-
return (n, r = void 0, i = t) => {
|
|
2445
|
-
let o = typeof i == "function" ? i() : i;
|
|
2446
|
-
return Z(a(e[o], n) ?? n, o, r);
|
|
2447
|
-
};
|
|
2448
|
-
}
|
|
2449
|
-
var He = $(t);
|
|
2450
|
-
//#endregion
|
|
2451
|
-
export { Ve as a, J as i, Q as n, Z as o, He as r, $ as t };
|