@everymatrix/player-email-verification 1.44.0 → 1.45.0

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