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