@everymatrix/player-account-controller 1.0.16 → 1.0.70

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.
Files changed (77) hide show
  1. package/components/GeneralLogout-CA9TEW-a.cjs +8 -0
  2. package/components/GeneralLogout-DtE4YABi.js +4829 -0
  3. package/components/PlayerAccountBettingHistory-BcTxHKyO.js +328 -0
  4. package/components/PlayerAccountBettingHistory-NrSjgArQ.cjs +1 -0
  5. package/components/PlayerAccountBiometrics-BGnkL646.js +300 -0
  6. package/components/PlayerAccountBiometrics-Bl0LyqT2.cjs +1 -0
  7. package/components/PlayerAccountClosure-B3Zq9k2d.cjs +1 -0
  8. package/components/PlayerAccountClosure-CHDX6d_o.js +339 -0
  9. package/components/PlayerAccountController-CdygDjsk.js +6188 -0
  10. package/components/PlayerAccountController-D9QoMCz_.cjs +1 -0
  11. package/components/PlayerAccountGamingLimits-BSeZY_AM.cjs +1 -0
  12. package/components/PlayerAccountGamingLimits-CFEgRcLO.js +758 -0
  13. package/components/PlayerAccountGamingLimitsConfirmationModal-CETKCaaj.js +306 -0
  14. package/components/PlayerAccountGamingLimitsConfirmationModal-Zflhyn-z.cjs +1 -0
  15. package/components/PlayerAccountGamingLimitsGroupEdit-DPZ-Uvd4.js +4148 -0
  16. package/components/PlayerAccountGamingLimitsGroupEdit-_BasEjEB.cjs +10 -0
  17. package/components/PlayerAccountGamingLimitsHistory2-Bu-OW2oW.js +734 -0
  18. package/components/PlayerAccountGamingLimitsHistory2-FhMXdXTq.cjs +1 -0
  19. package/components/PlayerAccountGamingLimitsInfoCard-BUG8OODX.js +1488 -0
  20. package/components/PlayerAccountGamingLimitsInfoCard-sBX1tBDZ.cjs +1 -0
  21. package/components/PlayerAccountGamingLimitsPage2Gm16-BFnH54ZW.js +2764 -0
  22. package/components/PlayerAccountGamingLimitsPage2Gm16-CiGWLvn2.cjs +21 -0
  23. package/components/PlayerAccountGamingLimitsPopup-BrO_Lno2.cjs +1 -0
  24. package/components/PlayerAccountGamingLimitsPopup-CmAXnOQe.js +337 -0
  25. package/components/PlayerAccountGamingLimitsWrapper2-CQ1mGZNj.cjs +1 -0
  26. package/components/PlayerAccountGamingLimitsWrapper2-DWdHKdUm.js +844 -0
  27. package/components/PlayerAccountMenu-Bh0HKBfq.js +587 -0
  28. package/components/PlayerAccountMenu-D4sBRaIm.cjs +1 -0
  29. package/components/PlayerAccountModal-Blsborh1.js +198 -0
  30. package/components/PlayerAccountModal-DW8I9i4u.cjs +1 -0
  31. package/components/PlayerAccountNotifications-CEsL3JWV.cjs +1 -0
  32. package/components/PlayerAccountNotifications-DbUpordy.js +222 -0
  33. package/components/PlayerAccountSelfExclusion-BPADa27T.js +15842 -0
  34. package/components/PlayerAccountSelfExclusion-DxHpS1Fj.cjs +3693 -0
  35. package/components/PlayerAccountTimeout-BRQZuU_T.cjs +1 -0
  36. package/components/PlayerAccountTimeout-CSUT1HiR.js +448 -0
  37. package/components/PlayerActiveBonuses-CwHXPu9X.js +987 -0
  38. package/components/PlayerActiveBonuses-ReOEMRDU.cjs +1 -0
  39. package/components/PlayerBonusCard-665KSNoF.js +555 -0
  40. package/components/PlayerBonusCard-CQIuJjY5.cjs +1 -0
  41. package/components/PlayerBonusHistory-BaBcSSSm.js +824 -0
  42. package/components/PlayerBonusHistory-Dzk7jL5w.cjs +1 -0
  43. package/components/PlayerChangePassword-B78Gb7rT.js +1162 -0
  44. package/components/PlayerChangePassword-L1wYKbsT.cjs +3 -0
  45. package/components/PlayerDeposit-BO0nDKOB.cjs +1 -0
  46. package/components/PlayerDeposit-CqgNmu8i.js +395 -0
  47. package/components/PlayerGamingHistory-CmufIVok.cjs +1 -0
  48. package/components/PlayerGamingHistory-ovbzB3YP.js +920 -0
  49. package/components/PlayerPendingWithdrawals-CsC5mrrE.js +307 -0
  50. package/components/PlayerPendingWithdrawals-DXh2yA-M.cjs +1 -0
  51. package/components/PlayerProfileInfo-3Wp8IotN.js +1730 -0
  52. package/components/PlayerProfileInfo-BWzgjhyD.cjs +1 -0
  53. package/components/PlayerRealityCheck-8QghFLS2.cjs +1 -0
  54. package/components/PlayerRealityCheck-Cg1tL1KV.js +567 -0
  55. package/components/PlayerTransactionHistory-Cfq6pzue.js +311 -0
  56. package/components/PlayerTransactionHistory-iyQVlg_5.cjs +1 -0
  57. package/components/PlayerWithdrawal-BZdcsIWI.cjs +1 -0
  58. package/components/PlayerWithdrawal-DJfHPWUz.js +365 -0
  59. package/es2015/player-account-controller.cjs +1 -0
  60. package/es2015/player-account-controller.js +16 -0
  61. package/package.json +38 -33
  62. package/README.md +0 -0
  63. package/dist/player-account-controller.js +0 -1691
  64. package/dist/player-account-controller.js.map +0 -1
  65. package/documentation.md +0 -166
  66. package/index.html +0 -47
  67. package/index.js +0 -1
  68. package/public/favicon.png +0 -0
  69. package/public/reset.css +0 -48
  70. package/rollup.config.js +0 -67
  71. package/src/PlayerAccountController.svelte +0 -925
  72. package/src/PlayerAccountController.types.ts +0 -5
  73. package/src/i18n.js +0 -27
  74. package/src/index.ts +0 -4
  75. package/src/translations.js +0 -74
  76. package/stories/PlayerAccountPage.stories.js +0 -13
  77. package/tsconfig.json +0 -6
@@ -0,0 +1,4829 @@
1
+ var Lr = Object.defineProperty, Cr = Object.defineProperties;
2
+ var Nr = Object.getOwnPropertyDescriptors;
3
+ var ht = Object.getOwnPropertySymbols;
4
+ var Mr = Object.prototype.hasOwnProperty, $r = Object.prototype.propertyIsEnumerable;
5
+ var Ce = (e, t, r) => t in e ? Lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
6
+ for (var r in t || (t = {}))
7
+ Mr.call(t, r) && Ce(e, r, t[r]);
8
+ if (ht)
9
+ for (var r of ht(t))
10
+ $r.call(t, r) && Ce(e, r, t[r]);
11
+ return e;
12
+ }, ft = (e, t) => Cr(e, Nr(t));
13
+ var O = (e, t, r) => Ce(e, typeof t != "symbol" ? t + "" : t, r);
14
+ var pt = (e, t, r) => new Promise((n, i) => {
15
+ var o = (u) => {
16
+ try {
17
+ a(r.next(u));
18
+ } catch (l) {
19
+ i(l);
20
+ }
21
+ }, s = (u) => {
22
+ try {
23
+ a(r.throw(u));
24
+ } catch (l) {
25
+ i(l);
26
+ }
27
+ }, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
28
+ a((r = r.apply(e, t)).next());
29
+ });
30
+ function A() {
31
+ }
32
+ const Rr = (e) => e;
33
+ function Ur(e, t) {
34
+ for (const r in t) e[r] = t[r];
35
+ return (
36
+ /** @type {T & S} */
37
+ e
38
+ );
39
+ }
40
+ function Dt(e) {
41
+ return e();
42
+ }
43
+ function dt() {
44
+ return /* @__PURE__ */ Object.create(null);
45
+ }
46
+ function F(e) {
47
+ e.forEach(Dt);
48
+ }
49
+ function he(e) {
50
+ return typeof e == "function";
51
+ }
52
+ function Gt(e, t) {
53
+ return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
54
+ }
55
+ let me;
56
+ function To(e, t) {
57
+ return e === t ? !0 : (me || (me = document.createElement("a")), me.href = t, e === me.href);
58
+ }
59
+ function Dr(e) {
60
+ return Object.keys(e).length === 0;
61
+ }
62
+ function Ft(e, ...t) {
63
+ if (e == null) {
64
+ for (const n of t)
65
+ n(void 0);
66
+ return A;
67
+ }
68
+ const r = e.subscribe(...t);
69
+ return r.unsubscribe ? () => r.unsubscribe() : r;
70
+ }
71
+ function Gr(e, t, r) {
72
+ e.$$.on_destroy.push(Ft(t, r));
73
+ }
74
+ function wo(e, t, r, n) {
75
+ if (e) {
76
+ const i = jt(e, t, r, n);
77
+ return e[0](i);
78
+ }
79
+ }
80
+ function jt(e, t, r, n) {
81
+ return e[1] && n ? Ur(r.ctx.slice(), e[1](n(t))) : r.ctx;
82
+ }
83
+ function Ho(e, t, r, n) {
84
+ if (e[2] && n) {
85
+ const i = e[2](n(r));
86
+ if (t.dirty === void 0)
87
+ return i;
88
+ if (typeof i == "object") {
89
+ const o = [], s = Math.max(t.dirty.length, i.length);
90
+ for (let a = 0; a < s; a += 1)
91
+ o[a] = t.dirty[a] | i[a];
92
+ return o;
93
+ }
94
+ return t.dirty | i;
95
+ }
96
+ return t.dirty;
97
+ }
98
+ function Bo(e, t, r, n, i, o) {
99
+ if (i) {
100
+ const s = jt(t, r, n, o);
101
+ e.p(s, i);
102
+ }
103
+ }
104
+ function Ao(e) {
105
+ if (e.ctx.length > 32) {
106
+ const t = [], r = e.ctx.length / 32;
107
+ for (let n = 0; n < r; n++)
108
+ t[n] = -1;
109
+ return t;
110
+ }
111
+ return -1;
112
+ }
113
+ function Po(e) {
114
+ return e == null ? "" : e;
115
+ }
116
+ function Oo(e) {
117
+ return e && he(e.destroy) ? e.destroy : A;
118
+ }
119
+ const kt = typeof window != "undefined";
120
+ let Fr = kt ? () => window.performance.now() : () => Date.now(), it = kt ? (e) => requestAnimationFrame(e) : A;
121
+ const z = /* @__PURE__ */ new Set();
122
+ function Vt(e) {
123
+ z.forEach((t) => {
124
+ t.c(e) || (z.delete(t), t.f());
125
+ }), z.size !== 0 && it(Vt);
126
+ }
127
+ function jr(e) {
128
+ let t;
129
+ return z.size === 0 && it(Vt), {
130
+ promise: new Promise((r) => {
131
+ z.add(t = { c: e, f: r });
132
+ }),
133
+ abort() {
134
+ z.delete(t);
135
+ }
136
+ };
137
+ }
138
+ const Io = typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : (
139
+ // @ts-ignore Node typings have this
140
+ global
141
+ );
142
+ function P(e, t) {
143
+ e.appendChild(t);
144
+ }
145
+ function kr(e, t, r) {
146
+ const n = ot(e);
147
+ if (!n.getElementById(t)) {
148
+ const i = C("style");
149
+ i.id = t, i.textContent = r, Xt(n, i);
150
+ }
151
+ }
152
+ function ot(e) {
153
+ if (!e) return document;
154
+ const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
155
+ return t && /** @type {ShadowRoot} */
156
+ t.host ? (
157
+ /** @type {ShadowRoot} */
158
+ t
159
+ ) : e.ownerDocument;
160
+ }
161
+ function Vr(e) {
162
+ const t = C("style");
163
+ return t.textContent = "/* empty */", Xt(ot(e), t), t.sheet;
164
+ }
165
+ function Xt(e, t) {
166
+ return P(
167
+ /** @type {Document} */
168
+ e.head || e,
169
+ t
170
+ ), t.sheet;
171
+ }
172
+ function ce(e, t, r) {
173
+ e.insertBefore(t, r || null);
174
+ }
175
+ function j(e) {
176
+ e.parentNode && e.parentNode.removeChild(e);
177
+ }
178
+ function Lo(e, t) {
179
+ for (let r = 0; r < e.length; r += 1)
180
+ e[r] && e[r].d(t);
181
+ }
182
+ function C(e) {
183
+ return document.createElement(e);
184
+ }
185
+ function ne(e) {
186
+ return document.createElementNS("http://www.w3.org/2000/svg", e);
187
+ }
188
+ function fe(e) {
189
+ return document.createTextNode(e);
190
+ }
191
+ function Xr() {
192
+ return fe(" ");
193
+ }
194
+ function Co() {
195
+ return fe("");
196
+ }
197
+ function Wt(e, t, r, n) {
198
+ return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
199
+ }
200
+ function No(e) {
201
+ return function(t) {
202
+ return t.preventDefault(), e.call(this, t);
203
+ };
204
+ }
205
+ function x(e, t, r) {
206
+ r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
207
+ }
208
+ function Mo(e, t, r) {
209
+ const n = t.toLowerCase();
210
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : x(e, t, r);
211
+ }
212
+ function $o(e) {
213
+ let t;
214
+ return {
215
+ /* push */
216
+ p(...r) {
217
+ t = r, t.forEach((n) => e.push(n));
218
+ },
219
+ /* remove */
220
+ r() {
221
+ t.forEach((r) => e.splice(e.indexOf(r), 1));
222
+ }
223
+ };
224
+ }
225
+ function Ro(e) {
226
+ return e === "" ? null : +e;
227
+ }
228
+ function Wr(e) {
229
+ return Array.from(e.childNodes);
230
+ }
231
+ function zt(e, t) {
232
+ t = "" + t, e.data !== t && (e.data = /** @type {string} */
233
+ t);
234
+ }
235
+ function Uo(e, t) {
236
+ e.value = t == null ? "" : t;
237
+ }
238
+ function zr(e, t, r, n) {
239
+ r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
240
+ }
241
+ function Do(e, t, r) {
242
+ for (let n = 0; n < e.options.length; n += 1) {
243
+ const i = e.options[n];
244
+ if (i.__value === t) {
245
+ i.selected = !0;
246
+ return;
247
+ }
248
+ }
249
+ (!r || t !== void 0) && (e.selectedIndex = -1);
250
+ }
251
+ function Go(e) {
252
+ const t = e.querySelector(":checked");
253
+ return t && t.__value;
254
+ }
255
+ function Fo(e, t, r) {
256
+ e.classList.toggle(t, !!r);
257
+ }
258
+ function Zr(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
259
+ return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
260
+ }
261
+ function Qr(e) {
262
+ const t = {};
263
+ return e.childNodes.forEach(
264
+ /** @param {Element} node */
265
+ (r) => {
266
+ t[r.slot || "default"] = !0;
267
+ }
268
+ ), t;
269
+ }
270
+ const Se = /* @__PURE__ */ new Map();
271
+ let Te = 0;
272
+ function qr(e) {
273
+ let t = 5381, r = e.length;
274
+ for (; r--; ) t = (t << 5) - t ^ e.charCodeAt(r);
275
+ return t >>> 0;
276
+ }
277
+ function Jr(e, t) {
278
+ const r = { stylesheet: Vr(t), rules: {} };
279
+ return Se.set(e, r), r;
280
+ }
281
+ function mt(e, t, r, n, i, o, s, a = 0) {
282
+ const u = 16.666 / n;
283
+ let l = `{
284
+ `;
285
+ for (let E = 0; E <= 1; E += u) {
286
+ const w = t + (r - t) * o(E);
287
+ l += E * 100 + `%{${s(w, 1 - w)}}
288
+ `;
289
+ }
290
+ const h = l + `100% {${s(r, 1 - r)}}
291
+ }`, c = `__svelte_${qr(h)}_${a}`, f = ot(e), { stylesheet: p, rules: d } = Se.get(f) || Jr(f, e);
292
+ d[c] || (d[c] = !0, p.insertRule(`@keyframes ${c} ${h}`, p.cssRules.length));
293
+ const m = e.style.animation || "";
294
+ return e.style.animation = `${m ? `${m}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, Te += 1, c;
295
+ }
296
+ function Yr(e, t) {
297
+ const r = (e.style.animation || "").split(", "), n = r.filter(
298
+ t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
299
+ // remove all Svelte animations
300
+ ), i = r.length - n.length;
301
+ i && (e.style.animation = n.join(", "), Te -= i, Te || Kr());
302
+ }
303
+ function Kr() {
304
+ it(() => {
305
+ Te || (Se.forEach((e) => {
306
+ const { ownerNode: t } = e.stylesheet;
307
+ t && j(t);
308
+ }), Se.clear());
309
+ });
310
+ }
311
+ let ae;
312
+ function se(e) {
313
+ ae = e;
314
+ }
315
+ function en() {
316
+ if (!ae) throw new Error("Function called outside component initialization");
317
+ return ae;
318
+ }
319
+ function jo(e) {
320
+ en().$$.on_mount.push(e);
321
+ }
322
+ const W = [], ke = [];
323
+ let Z = [];
324
+ const bt = [], Zt = /* @__PURE__ */ Promise.resolve();
325
+ let Ve = !1;
326
+ function Qt() {
327
+ Ve || (Ve = !0, Zt.then(N));
328
+ }
329
+ function ko() {
330
+ return Qt(), Zt;
331
+ }
332
+ function we(e) {
333
+ Z.push(e);
334
+ }
335
+ const Ne = /* @__PURE__ */ new Set();
336
+ let V = 0;
337
+ function N() {
338
+ if (V !== 0)
339
+ return;
340
+ const e = ae;
341
+ do {
342
+ try {
343
+ for (; V < W.length; ) {
344
+ const t = W[V];
345
+ V++, se(t), tn(t.$$);
346
+ }
347
+ } catch (t) {
348
+ throw W.length = 0, V = 0, t;
349
+ }
350
+ for (se(null), W.length = 0, V = 0; ke.length; ) ke.pop()();
351
+ for (let t = 0; t < Z.length; t += 1) {
352
+ const r = Z[t];
353
+ Ne.has(r) || (Ne.add(r), r());
354
+ }
355
+ Z.length = 0;
356
+ } while (W.length);
357
+ for (; bt.length; )
358
+ bt.pop()();
359
+ Ve = !1, Ne.clear(), se(e);
360
+ }
361
+ function tn(e) {
362
+ if (e.fragment !== null) {
363
+ e.update(), F(e.before_update);
364
+ const t = e.dirty;
365
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(we);
366
+ }
367
+ }
368
+ function rn(e) {
369
+ const t = [], r = [];
370
+ Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
371
+ }
372
+ let ie;
373
+ function nn() {
374
+ return ie || (ie = Promise.resolve(), ie.then(() => {
375
+ ie = null;
376
+ })), ie;
377
+ }
378
+ function Me(e, t, r) {
379
+ e.dispatchEvent(Zr(`${t ? "intro" : "outro"}${r}`));
380
+ }
381
+ const ge = /* @__PURE__ */ new Set();
382
+ let M;
383
+ function Vo() {
384
+ M = {
385
+ r: 0,
386
+ c: [],
387
+ p: M
388
+ // parent group
389
+ };
390
+ }
391
+ function Xo() {
392
+ M.r || F(M.c), M = M.p;
393
+ }
394
+ function on(e, t) {
395
+ e && e.i && (ge.delete(e), e.i(t));
396
+ }
397
+ function Wo(e, t, r, n) {
398
+ if (e && e.o) {
399
+ if (ge.has(e)) return;
400
+ ge.add(e), M.c.push(() => {
401
+ ge.delete(e), n && (r && e.d(1), n());
402
+ }), e.o(t);
403
+ } else n && n();
404
+ }
405
+ const sn = { duration: 0 };
406
+ function zo(e, t, r, n) {
407
+ let o = t(e, r, { direction: "both" }), s = n ? 0 : 1, a = null, u = null, l = null, h;
408
+ function c() {
409
+ l && Yr(e, l);
410
+ }
411
+ function f(d, m) {
412
+ const E = (
413
+ /** @type {Program['d']} */
414
+ d.b - s
415
+ );
416
+ return m *= Math.abs(E), {
417
+ a: s,
418
+ b: d.b,
419
+ d: E,
420
+ duration: m,
421
+ start: d.start,
422
+ end: d.start + m,
423
+ group: d.group
424
+ };
425
+ }
426
+ function p(d) {
427
+ const {
428
+ delay: m = 0,
429
+ duration: E = 300,
430
+ easing: w = Rr,
431
+ tick: H = A,
432
+ css: S
433
+ } = o || sn, I = {
434
+ start: Fr() + m,
435
+ b: d
436
+ };
437
+ d || (I.group = M, M.r += 1), "inert" in e && (d ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
438
+ e.inert, e.inert = !0)), a || u ? u = I : (S && (c(), l = mt(e, s, d, E, m, w, S)), d && H(0, 1), a = f(I, E), we(() => Me(e, d, "start")), jr((B) => {
439
+ if (u && B > u.start && (a = f(u, E), u = null, Me(e, a.b, "start"), S && (c(), l = mt(
440
+ e,
441
+ s,
442
+ a.b,
443
+ a.duration,
444
+ 0,
445
+ w,
446
+ o.css
447
+ ))), a) {
448
+ if (B >= a.end)
449
+ H(s = a.b, 1 - s), Me(e, a.b, "end"), u || (a.b ? c() : --a.group.r || F(a.group.c)), a = null;
450
+ else if (B >= a.start) {
451
+ const U = B - a.start;
452
+ s = a.a + a.d * w(U / a.duration), H(s, 1 - s);
453
+ }
454
+ }
455
+ return !!(a || u);
456
+ }));
457
+ }
458
+ return {
459
+ run(d) {
460
+ he(o) ? nn().then(() => {
461
+ o = o({ direction: d ? "in" : "out" }), p(d);
462
+ }) : p(d);
463
+ },
464
+ end() {
465
+ c(), a = u = null;
466
+ }
467
+ };
468
+ }
469
+ function Zo(e) {
470
+ return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
471
+ }
472
+ function an(e, t, r) {
473
+ const { fragment: n, after_update: i } = e.$$;
474
+ n && n.m(t, r), we(() => {
475
+ const o = e.$$.on_mount.map(Dt).filter(he);
476
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : F(o), e.$$.on_mount = [];
477
+ }), i.forEach(we);
478
+ }
479
+ function un(e, t) {
480
+ const r = e.$$;
481
+ r.fragment !== null && (rn(r.after_update), F(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
482
+ }
483
+ function ln(e, t) {
484
+ e.$$.dirty[0] === -1 && (W.push(e), Qt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
485
+ }
486
+ function hn(e, t, r, n, i, o, s = null, a = [-1]) {
487
+ const u = ae;
488
+ se(e);
489
+ const l = e.$$ = {
490
+ fragment: null,
491
+ ctx: [],
492
+ // state
493
+ props: o,
494
+ update: A,
495
+ not_equal: i,
496
+ bound: dt(),
497
+ // lifecycle
498
+ on_mount: [],
499
+ on_destroy: [],
500
+ on_disconnect: [],
501
+ before_update: [],
502
+ after_update: [],
503
+ context: new Map(t.context || (u ? u.$$.context : [])),
504
+ // everything else
505
+ callbacks: dt(),
506
+ dirty: a,
507
+ skip_bound: !1,
508
+ root: t.target || u.$$.root
509
+ };
510
+ s && s(l.root);
511
+ let h = !1;
512
+ if (l.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
513
+ const d = p.length ? p[0] : f;
514
+ return l.ctx && i(l.ctx[c], l.ctx[c] = d) && (!l.skip_bound && l.bound[c] && l.bound[c](d), h && ln(e, c)), f;
515
+ }) : [], l.update(), h = !0, F(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
516
+ if (t.hydrate) {
517
+ const c = Wr(t.target);
518
+ l.fragment && l.fragment.l(c), c.forEach(j);
519
+ } else
520
+ l.fragment && l.fragment.c();
521
+ t.intro && on(e.$$.fragment), an(e, t.target, t.anchor), N();
522
+ }
523
+ se(u);
524
+ }
525
+ let qt;
526
+ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
527
+ constructor(t, r, n) {
528
+ super();
529
+ /** The Svelte component constructor */
530
+ O(this, "$$ctor");
531
+ /** Slots */
532
+ O(this, "$$s");
533
+ /** The Svelte component instance */
534
+ O(this, "$$c");
535
+ /** Whether or not the custom element is connected */
536
+ O(this, "$$cn", !1);
537
+ /** Component props data */
538
+ O(this, "$$d", {});
539
+ /** `true` if currently in the process of reflecting component props back to attributes */
540
+ O(this, "$$r", !1);
541
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
542
+ O(this, "$$p_d", {});
543
+ /** @type {Record<string, Function[]>} Event listeners */
544
+ O(this, "$$l", {});
545
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
546
+ O(this, "$$l_u", /* @__PURE__ */ new Map());
547
+ this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
548
+ }
549
+ addEventListener(t, r, n) {
550
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
551
+ const i = this.$$c.$on(t, r);
552
+ this.$$l_u.set(r, i);
553
+ }
554
+ super.addEventListener(t, r, n);
555
+ }
556
+ removeEventListener(t, r, n) {
557
+ if (super.removeEventListener(t, r, n), this.$$c) {
558
+ const i = this.$$l_u.get(r);
559
+ i && (i(), this.$$l_u.delete(r));
560
+ }
561
+ }
562
+ connectedCallback() {
563
+ return pt(this, null, function* () {
564
+ if (this.$$cn = !0, !this.$$c) {
565
+ let t = function(o) {
566
+ return () => {
567
+ let s;
568
+ return {
569
+ c: function() {
570
+ s = C("slot"), o !== "default" && x(s, "name", o);
571
+ },
572
+ /**
573
+ * @param {HTMLElement} target
574
+ * @param {HTMLElement} [anchor]
575
+ */
576
+ m: function(l, h) {
577
+ ce(l, s, h);
578
+ },
579
+ d: function(l) {
580
+ l && j(s);
581
+ }
582
+ };
583
+ };
584
+ };
585
+ if (yield Promise.resolve(), !this.$$cn || this.$$c)
586
+ return;
587
+ const r = {}, n = Qr(this);
588
+ for (const o of this.$$s)
589
+ o in n && (r[o] = [t(o)]);
590
+ for (const o of this.attributes) {
591
+ const s = this.$$g_p(o.name);
592
+ s in this.$$d || (this.$$d[s] = ve(s, o.value, this.$$p_d, "toProp"));
593
+ }
594
+ for (const o in this.$$p_d)
595
+ !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
596
+ this.$$c = new this.$$ctor({
597
+ target: this.shadowRoot || this,
598
+ props: ft(ct({}, this.$$d), {
599
+ $$slots: r,
600
+ $$scope: {
601
+ ctx: []
602
+ }
603
+ })
604
+ });
605
+ const i = () => {
606
+ this.$$r = !0;
607
+ for (const o in this.$$p_d)
608
+ if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
609
+ const s = ve(
610
+ o,
611
+ this.$$d[o],
612
+ this.$$p_d,
613
+ "toAttribute"
614
+ );
615
+ s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
616
+ }
617
+ this.$$r = !1;
618
+ };
619
+ this.$$c.$$.after_update.push(i), i();
620
+ for (const o in this.$$l)
621
+ for (const s of this.$$l[o]) {
622
+ const a = this.$$c.$on(o, s);
623
+ this.$$l_u.set(s, a);
624
+ }
625
+ this.$$l = {};
626
+ }
627
+ });
628
+ }
629
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
630
+ // and setting attributes through setAttribute etc, this is helpful
631
+ attributeChangedCallback(t, r, n) {
632
+ var i;
633
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ve(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
634
+ }
635
+ disconnectedCallback() {
636
+ this.$$cn = !1, Promise.resolve().then(() => {
637
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
638
+ });
639
+ }
640
+ $$g_p(t) {
641
+ return Object.keys(this.$$p_d).find(
642
+ (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
643
+ ) || t;
644
+ }
645
+ });
646
+ function ve(e, t, r, n) {
647
+ var o;
648
+ const i = (o = r[e]) == null ? void 0 : o.type;
649
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
650
+ return t;
651
+ if (n === "toAttribute")
652
+ switch (i) {
653
+ case "Object":
654
+ case "Array":
655
+ return t == null ? null : JSON.stringify(t);
656
+ case "Boolean":
657
+ return t ? "" : null;
658
+ case "Number":
659
+ return t == null ? null : t;
660
+ default:
661
+ return t;
662
+ }
663
+ else
664
+ switch (i) {
665
+ case "Object":
666
+ case "Array":
667
+ return t && JSON.parse(t);
668
+ case "Boolean":
669
+ return t;
670
+ case "Number":
671
+ return t != null ? +t : t;
672
+ default:
673
+ return t;
674
+ }
675
+ }
676
+ function cn(e, t, r, n, i, o) {
677
+ let s = class extends qt {
678
+ constructor() {
679
+ super(e, r, i), this.$$p_d = t;
680
+ }
681
+ static get observedAttributes() {
682
+ return Object.keys(t).map(
683
+ (a) => (t[a].attribute || a).toLowerCase()
684
+ );
685
+ }
686
+ };
687
+ return Object.keys(t).forEach((a) => {
688
+ Object.defineProperty(s.prototype, a, {
689
+ get() {
690
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
691
+ },
692
+ set(u) {
693
+ var l;
694
+ u = ve(a, u, t), this.$$d[a] = u, (l = this.$$c) == null || l.$set({ [a]: u });
695
+ }
696
+ });
697
+ }), n.forEach((a) => {
698
+ Object.defineProperty(s.prototype, a, {
699
+ get() {
700
+ var u;
701
+ return (u = this.$$c) == null ? void 0 : u[a];
702
+ }
703
+ });
704
+ }), e.element = /** @type {any} */
705
+ s, s;
706
+ }
707
+ class fn {
708
+ constructor() {
709
+ /**
710
+ * ### PRIVATE API
711
+ *
712
+ * Do not use, may change at any time
713
+ *
714
+ * @type {any}
715
+ */
716
+ O(this, "$$");
717
+ /**
718
+ * ### PRIVATE API
719
+ *
720
+ * Do not use, may change at any time
721
+ *
722
+ * @type {any}
723
+ */
724
+ O(this, "$$set");
725
+ }
726
+ /** @returns {void} */
727
+ $destroy() {
728
+ un(this, 1), this.$destroy = A;
729
+ }
730
+ /**
731
+ * @template {Extract<keyof Events, string>} K
732
+ * @param {K} type
733
+ * @param {((e: Events[K]) => void) | null | undefined} callback
734
+ * @returns {() => void}
735
+ */
736
+ $on(t, r) {
737
+ if (!he(r))
738
+ return A;
739
+ const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
740
+ return n.push(r), () => {
741
+ const i = n.indexOf(r);
742
+ i !== -1 && n.splice(i, 1);
743
+ };
744
+ }
745
+ /**
746
+ * @param {Partial<Props>} props
747
+ * @returns {void}
748
+ */
749
+ $set(t) {
750
+ this.$$set && !Dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
751
+ }
752
+ }
753
+ const pn = "4";
754
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pn);
755
+ var Xe = function(e, t) {
756
+ return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
757
+ r.__proto__ = n;
758
+ } || function(r, n) {
759
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
760
+ }, Xe(e, t);
761
+ };
762
+ function R(e, t) {
763
+ if (typeof t != "function" && t !== null)
764
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
765
+ Xe(e, t);
766
+ function r() {
767
+ this.constructor = e;
768
+ }
769
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
770
+ }
771
+ var v = function() {
772
+ return v = Object.assign || function(t) {
773
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
774
+ r = arguments[n];
775
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
776
+ }
777
+ return t;
778
+ }, v.apply(this, arguments);
779
+ };
780
+ function dn(e, t) {
781
+ var r = {};
782
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
783
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
784
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
785
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
786
+ return r;
787
+ }
788
+ function We(e) {
789
+ var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
790
+ if (r) return r.call(e);
791
+ if (e && typeof e.length == "number") return {
792
+ next: function() {
793
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
794
+ }
795
+ };
796
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
797
+ }
798
+ function ze(e, t) {
799
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
800
+ if (!r) return e;
801
+ var n = r.call(e), i, o = [], s;
802
+ try {
803
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
804
+ } catch (a) {
805
+ s = { error: a };
806
+ } finally {
807
+ try {
808
+ i && !i.done && (r = n.return) && r.call(n);
809
+ } finally {
810
+ if (s) throw s.error;
811
+ }
812
+ }
813
+ return o;
814
+ }
815
+ function Q(e, t, r) {
816
+ if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
817
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
818
+ return e.concat(o || Array.prototype.slice.call(t));
819
+ }
820
+ function $(e) {
821
+ return typeof e == "function";
822
+ }
823
+ function Jt(e) {
824
+ var t = function(n) {
825
+ Error.call(n), n.stack = new Error().stack;
826
+ }, r = e(t);
827
+ return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
828
+ }
829
+ var $e = Jt(function(e) {
830
+ return function(r) {
831
+ e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
832
+ ` + r.map(function(n, i) {
833
+ return i + 1 + ") " + n.toString();
834
+ }).join(`
835
+ `) : "", this.name = "UnsubscriptionError", this.errors = r;
836
+ };
837
+ });
838
+ function Ze(e, t) {
839
+ if (e) {
840
+ var r = e.indexOf(t);
841
+ 0 <= r && e.splice(r, 1);
842
+ }
843
+ }
844
+ var Ae = function() {
845
+ function e(t) {
846
+ this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
847
+ }
848
+ return e.prototype.unsubscribe = function() {
849
+ var t, r, n, i, o;
850
+ if (!this.closed) {
851
+ this.closed = !0;
852
+ var s = this._parentage;
853
+ if (s)
854
+ if (this._parentage = null, Array.isArray(s))
855
+ try {
856
+ for (var a = We(s), u = a.next(); !u.done; u = a.next()) {
857
+ var l = u.value;
858
+ l.remove(this);
859
+ }
860
+ } catch (m) {
861
+ t = { error: m };
862
+ } finally {
863
+ try {
864
+ u && !u.done && (r = a.return) && r.call(a);
865
+ } finally {
866
+ if (t) throw t.error;
867
+ }
868
+ }
869
+ else
870
+ s.remove(this);
871
+ var h = this.initialTeardown;
872
+ if ($(h))
873
+ try {
874
+ h();
875
+ } catch (m) {
876
+ o = m instanceof $e ? m.errors : [m];
877
+ }
878
+ var c = this._finalizers;
879
+ if (c) {
880
+ this._finalizers = null;
881
+ try {
882
+ for (var f = We(c), p = f.next(); !p.done; p = f.next()) {
883
+ var d = p.value;
884
+ try {
885
+ yt(d);
886
+ } catch (m) {
887
+ o = o != null ? o : [], m instanceof $e ? o = Q(Q([], ze(o)), ze(m.errors)) : o.push(m);
888
+ }
889
+ }
890
+ } catch (m) {
891
+ n = { error: m };
892
+ } finally {
893
+ try {
894
+ p && !p.done && (i = f.return) && i.call(f);
895
+ } finally {
896
+ if (n) throw n.error;
897
+ }
898
+ }
899
+ }
900
+ if (o)
901
+ throw new $e(o);
902
+ }
903
+ }, e.prototype.add = function(t) {
904
+ var r;
905
+ if (t && t !== this)
906
+ if (this.closed)
907
+ yt(t);
908
+ else {
909
+ if (t instanceof e) {
910
+ if (t.closed || t._hasParent(this))
911
+ return;
912
+ t._addParent(this);
913
+ }
914
+ (this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
915
+ }
916
+ }, e.prototype._hasParent = function(t) {
917
+ var r = this._parentage;
918
+ return r === t || Array.isArray(r) && r.includes(t);
919
+ }, e.prototype._addParent = function(t) {
920
+ var r = this._parentage;
921
+ this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
922
+ }, e.prototype._removeParent = function(t) {
923
+ var r = this._parentage;
924
+ r === t ? this._parentage = null : Array.isArray(r) && Ze(r, t);
925
+ }, e.prototype.remove = function(t) {
926
+ var r = this._finalizers;
927
+ r && Ze(r, t), t instanceof e && t._removeParent(this);
928
+ }, e.EMPTY = function() {
929
+ var t = new e();
930
+ return t.closed = !0, t;
931
+ }(), e;
932
+ }(), Yt = Ae.EMPTY;
933
+ function Kt(e) {
934
+ return e instanceof Ae || e && "closed" in e && $(e.remove) && $(e.add) && $(e.unsubscribe);
935
+ }
936
+ function yt(e) {
937
+ $(e) ? e() : e.unsubscribe();
938
+ }
939
+ var er = {
940
+ onUnhandledError: null,
941
+ onStoppedNotification: null,
942
+ Promise: void 0,
943
+ useDeprecatedSynchronousErrorHandling: !1,
944
+ useDeprecatedNextContext: !1
945
+ }, tr = {
946
+ setTimeout: function(e, t) {
947
+ for (var r = [], n = 2; n < arguments.length; n++)
948
+ r[n - 2] = arguments[n];
949
+ return setTimeout.apply(void 0, Q([e, t], ze(r)));
950
+ },
951
+ clearTimeout: function(e) {
952
+ var t = tr.delegate;
953
+ return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(e);
954
+ },
955
+ delegate: void 0
956
+ };
957
+ function mn(e) {
958
+ tr.setTimeout(function() {
959
+ throw e;
960
+ });
961
+ }
962
+ function gt() {
963
+ }
964
+ function _e(e) {
965
+ e();
966
+ }
967
+ var rr = function(e) {
968
+ R(t, e);
969
+ function t(r) {
970
+ var n = e.call(this) || this;
971
+ return n.isStopped = !1, r ? (n.destination = r, Kt(r) && r.add(n)) : n.destination = vn, n;
972
+ }
973
+ return t.create = function(r, n, i) {
974
+ return new Qe(r, n, i);
975
+ }, t.prototype.next = function(r) {
976
+ this.isStopped || this._next(r);
977
+ }, t.prototype.error = function(r) {
978
+ this.isStopped || (this.isStopped = !0, this._error(r));
979
+ }, t.prototype.complete = function() {
980
+ this.isStopped || (this.isStopped = !0, this._complete());
981
+ }, t.prototype.unsubscribe = function() {
982
+ this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
983
+ }, t.prototype._next = function(r) {
984
+ this.destination.next(r);
985
+ }, t.prototype._error = function(r) {
986
+ try {
987
+ this.destination.error(r);
988
+ } finally {
989
+ this.unsubscribe();
990
+ }
991
+ }, t.prototype._complete = function() {
992
+ try {
993
+ this.destination.complete();
994
+ } finally {
995
+ this.unsubscribe();
996
+ }
997
+ }, t;
998
+ }(Ae), bn = Function.prototype.bind;
999
+ function Re(e, t) {
1000
+ return bn.call(e, t);
1001
+ }
1002
+ var yn = function() {
1003
+ function e(t) {
1004
+ this.partialObserver = t;
1005
+ }
1006
+ return e.prototype.next = function(t) {
1007
+ var r = this.partialObserver;
1008
+ if (r.next)
1009
+ try {
1010
+ r.next(t);
1011
+ } catch (n) {
1012
+ be(n);
1013
+ }
1014
+ }, e.prototype.error = function(t) {
1015
+ var r = this.partialObserver;
1016
+ if (r.error)
1017
+ try {
1018
+ r.error(t);
1019
+ } catch (n) {
1020
+ be(n);
1021
+ }
1022
+ else
1023
+ be(t);
1024
+ }, e.prototype.complete = function() {
1025
+ var t = this.partialObserver;
1026
+ if (t.complete)
1027
+ try {
1028
+ t.complete();
1029
+ } catch (r) {
1030
+ be(r);
1031
+ }
1032
+ }, e;
1033
+ }(), Qe = function(e) {
1034
+ R(t, e);
1035
+ function t(r, n, i) {
1036
+ var o = e.call(this) || this, s;
1037
+ if ($(r) || !r)
1038
+ s = {
1039
+ next: r != null ? r : void 0,
1040
+ error: n != null ? n : void 0,
1041
+ complete: i != null ? i : void 0
1042
+ };
1043
+ else {
1044
+ var a;
1045
+ o && er.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
1046
+ return o.unsubscribe();
1047
+ }, s = {
1048
+ next: r.next && Re(r.next, a),
1049
+ error: r.error && Re(r.error, a),
1050
+ complete: r.complete && Re(r.complete, a)
1051
+ }) : s = r;
1052
+ }
1053
+ return o.destination = new yn(s), o;
1054
+ }
1055
+ return t;
1056
+ }(rr);
1057
+ function be(e) {
1058
+ mn(e);
1059
+ }
1060
+ function gn(e) {
1061
+ throw e;
1062
+ }
1063
+ var vn = {
1064
+ closed: !0,
1065
+ next: gt,
1066
+ error: gn,
1067
+ complete: gt
1068
+ }, _n = function() {
1069
+ return typeof Symbol == "function" && Symbol.observable || "@@observable";
1070
+ }();
1071
+ function En(e) {
1072
+ return e;
1073
+ }
1074
+ function xn(e) {
1075
+ return e.length === 0 ? En : e.length === 1 ? e[0] : function(r) {
1076
+ return e.reduce(function(n, i) {
1077
+ return i(n);
1078
+ }, r);
1079
+ };
1080
+ }
1081
+ var vt = function() {
1082
+ function e(t) {
1083
+ t && (this._subscribe = t);
1084
+ }
1085
+ return e.prototype.lift = function(t) {
1086
+ var r = new e();
1087
+ return r.source = this, r.operator = t, r;
1088
+ }, e.prototype.subscribe = function(t, r, n) {
1089
+ var i = this, o = Tn(t) ? t : new Qe(t, r, n);
1090
+ return _e(function() {
1091
+ var s = i, a = s.operator, u = s.source;
1092
+ o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
1093
+ }), o;
1094
+ }, e.prototype._trySubscribe = function(t) {
1095
+ try {
1096
+ return this._subscribe(t);
1097
+ } catch (r) {
1098
+ t.error(r);
1099
+ }
1100
+ }, e.prototype.forEach = function(t, r) {
1101
+ var n = this;
1102
+ return r = _t(r), new r(function(i, o) {
1103
+ var s = new Qe({
1104
+ next: function(a) {
1105
+ try {
1106
+ t(a);
1107
+ } catch (u) {
1108
+ o(u), s.unsubscribe();
1109
+ }
1110
+ },
1111
+ error: o,
1112
+ complete: i
1113
+ });
1114
+ n.subscribe(s);
1115
+ });
1116
+ }, e.prototype._subscribe = function(t) {
1117
+ var r;
1118
+ return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
1119
+ }, e.prototype[_n] = function() {
1120
+ return this;
1121
+ }, e.prototype.pipe = function() {
1122
+ for (var t = [], r = 0; r < arguments.length; r++)
1123
+ t[r] = arguments[r];
1124
+ return xn(t)(this);
1125
+ }, e.prototype.toPromise = function(t) {
1126
+ var r = this;
1127
+ return t = _t(t), new t(function(n, i) {
1128
+ var o;
1129
+ r.subscribe(function(s) {
1130
+ return o = s;
1131
+ }, function(s) {
1132
+ return i(s);
1133
+ }, function() {
1134
+ return n(o);
1135
+ });
1136
+ });
1137
+ }, e.create = function(t) {
1138
+ return new e(t);
1139
+ }, e;
1140
+ }();
1141
+ function _t(e) {
1142
+ var t;
1143
+ return (t = e != null ? e : er.Promise) !== null && t !== void 0 ? t : Promise;
1144
+ }
1145
+ function Sn(e) {
1146
+ return e && $(e.next) && $(e.error) && $(e.complete);
1147
+ }
1148
+ function Tn(e) {
1149
+ return e && e instanceof rr || Sn(e) && Kt(e);
1150
+ }
1151
+ var wn = Jt(function(e) {
1152
+ return function() {
1153
+ e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
1154
+ };
1155
+ }), nr = function(e) {
1156
+ R(t, e);
1157
+ function t() {
1158
+ var r = e.call(this) || this;
1159
+ return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
1160
+ }
1161
+ return t.prototype.lift = function(r) {
1162
+ var n = new Et(this, this);
1163
+ return n.operator = r, n;
1164
+ }, t.prototype._throwIfClosed = function() {
1165
+ if (this.closed)
1166
+ throw new wn();
1167
+ }, t.prototype.next = function(r) {
1168
+ var n = this;
1169
+ _e(function() {
1170
+ var i, o;
1171
+ if (n._throwIfClosed(), !n.isStopped) {
1172
+ n.currentObservers || (n.currentObservers = Array.from(n.observers));
1173
+ try {
1174
+ for (var s = We(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
1175
+ var u = a.value;
1176
+ u.next(r);
1177
+ }
1178
+ } catch (l) {
1179
+ i = { error: l };
1180
+ } finally {
1181
+ try {
1182
+ a && !a.done && (o = s.return) && o.call(s);
1183
+ } finally {
1184
+ if (i) throw i.error;
1185
+ }
1186
+ }
1187
+ }
1188
+ });
1189
+ }, t.prototype.error = function(r) {
1190
+ var n = this;
1191
+ _e(function() {
1192
+ if (n._throwIfClosed(), !n.isStopped) {
1193
+ n.hasError = n.isStopped = !0, n.thrownError = r;
1194
+ for (var i = n.observers; i.length; )
1195
+ i.shift().error(r);
1196
+ }
1197
+ });
1198
+ }, t.prototype.complete = function() {
1199
+ var r = this;
1200
+ _e(function() {
1201
+ if (r._throwIfClosed(), !r.isStopped) {
1202
+ r.isStopped = !0;
1203
+ for (var n = r.observers; n.length; )
1204
+ n.shift().complete();
1205
+ }
1206
+ });
1207
+ }, t.prototype.unsubscribe = function() {
1208
+ this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
1209
+ }, Object.defineProperty(t.prototype, "observed", {
1210
+ get: function() {
1211
+ var r;
1212
+ return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
1213
+ },
1214
+ enumerable: !1,
1215
+ configurable: !0
1216
+ }), t.prototype._trySubscribe = function(r) {
1217
+ return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
1218
+ }, t.prototype._subscribe = function(r) {
1219
+ return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
1220
+ }, t.prototype._innerSubscribe = function(r) {
1221
+ var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
1222
+ return o || s ? Yt : (this.currentObservers = null, a.push(r), new Ae(function() {
1223
+ n.currentObservers = null, Ze(a, r);
1224
+ }));
1225
+ }, t.prototype._checkFinalizedStatuses = function(r) {
1226
+ var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
1227
+ i ? r.error(o) : s && r.complete();
1228
+ }, t.prototype.asObservable = function() {
1229
+ var r = new vt();
1230
+ return r.source = this, r;
1231
+ }, t.create = function(r, n) {
1232
+ return new Et(r, n);
1233
+ }, t;
1234
+ }(vt), Et = function(e) {
1235
+ R(t, e);
1236
+ function t(r, n) {
1237
+ var i = e.call(this) || this;
1238
+ return i.destination = r, i.source = n, i;
1239
+ }
1240
+ return t.prototype.next = function(r) {
1241
+ var n, i;
1242
+ (i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
1243
+ }, t.prototype.error = function(r) {
1244
+ var n, i;
1245
+ (i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
1246
+ }, t.prototype.complete = function() {
1247
+ var r, n;
1248
+ (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1249
+ }, t.prototype._subscribe = function(r) {
1250
+ var n, i;
1251
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Yt;
1252
+ }, t;
1253
+ }(nr), ir = {
1254
+ now: function() {
1255
+ return (ir.delegate || Date).now();
1256
+ },
1257
+ delegate: void 0
1258
+ }, Hn = function(e) {
1259
+ R(t, e);
1260
+ function t(r, n, i) {
1261
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = ir);
1262
+ var o = e.call(this) || this;
1263
+ return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
1264
+ }
1265
+ return t.prototype.next = function(r) {
1266
+ var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, u = n._windowTime;
1267
+ i || (o.push(r), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
1268
+ }, t.prototype._subscribe = function(r) {
1269
+ this._throwIfClosed(), this._trimBuffer();
1270
+ for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), u = 0; u < a.length && !r.closed; u += o ? 1 : 2)
1271
+ r.next(a[u]);
1272
+ return this._checkFinalizedStatuses(r), n;
1273
+ }, t.prototype._trimBuffer = function() {
1274
+ var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
1275
+ if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
1276
+ for (var u = i.now(), l = 0, h = 1; h < o.length && o[h] <= u; h += 2)
1277
+ l = h;
1278
+ l && o.splice(0, l + 1);
1279
+ }
1280
+ }, t;
1281
+ }(nr);
1282
+ const xt = [], St = {}, Bn = (e, t = 0) => {
1283
+ if (xt.indexOf(e) == -1) {
1284
+ const r = new Hn(t);
1285
+ St[e] = r, xt.push(e);
1286
+ }
1287
+ return St[e];
1288
+ }, X = [];
1289
+ function An(e, t) {
1290
+ return {
1291
+ subscribe: Pe(e, t).subscribe
1292
+ };
1293
+ }
1294
+ function Pe(e, t = A) {
1295
+ let r;
1296
+ const n = /* @__PURE__ */ new Set();
1297
+ function i(a) {
1298
+ if (Gt(e, a) && (e = a, r)) {
1299
+ const u = !X.length;
1300
+ for (const l of n)
1301
+ l[1](), X.push(l, e);
1302
+ if (u) {
1303
+ for (let l = 0; l < X.length; l += 2)
1304
+ X[l][0](X[l + 1]);
1305
+ X.length = 0;
1306
+ }
1307
+ }
1308
+ }
1309
+ function o(a) {
1310
+ i(a(e));
1311
+ }
1312
+ function s(a, u = A) {
1313
+ const l = [a, u];
1314
+ return n.add(l), n.size === 1 && (r = t(i, o) || A), a(e), () => {
1315
+ n.delete(l), n.size === 0 && r && (r(), r = null);
1316
+ };
1317
+ }
1318
+ return { set: i, update: o, subscribe: s };
1319
+ }
1320
+ function ee(e, t, r) {
1321
+ const n = !Array.isArray(e), i = n ? [e] : e;
1322
+ if (!i.every(Boolean))
1323
+ throw new Error("derived() expects stores as input, got a falsy value");
1324
+ const o = t.length < 2;
1325
+ return An(r, (s, a) => {
1326
+ let u = !1;
1327
+ const l = [];
1328
+ let h = 0, c = A;
1329
+ const f = () => {
1330
+ if (h)
1331
+ return;
1332
+ c();
1333
+ const d = t(n ? l[0] : l, s, a);
1334
+ o ? s(d) : c = he(d) ? d : A;
1335
+ }, p = i.map(
1336
+ (d, m) => Ft(
1337
+ d,
1338
+ (E) => {
1339
+ l[m] = E, h &= ~(1 << m), u && f();
1340
+ },
1341
+ () => {
1342
+ h |= 1 << m;
1343
+ }
1344
+ )
1345
+ );
1346
+ return u = !0, f(), function() {
1347
+ F(p), c(), u = !1;
1348
+ };
1349
+ });
1350
+ }
1351
+ function Pn(e) {
1352
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1353
+ }
1354
+ var On = function(t) {
1355
+ return In(t) && !Ln(t);
1356
+ };
1357
+ function In(e) {
1358
+ return !!e && typeof e == "object";
1359
+ }
1360
+ function Ln(e) {
1361
+ var t = Object.prototype.toString.call(e);
1362
+ return t === "[object RegExp]" || t === "[object Date]" || Mn(e);
1363
+ }
1364
+ var Cn = typeof Symbol == "function" && Symbol.for, Nn = Cn ? Symbol.for("react.element") : 60103;
1365
+ function Mn(e) {
1366
+ return e.$$typeof === Nn;
1367
+ }
1368
+ function $n(e) {
1369
+ return Array.isArray(e) ? [] : {};
1370
+ }
1371
+ function ue(e, t) {
1372
+ return t.clone !== !1 && t.isMergeableObject(e) ? q($n(e), e, t) : e;
1373
+ }
1374
+ function Rn(e, t, r) {
1375
+ return e.concat(t).map(function(n) {
1376
+ return ue(n, r);
1377
+ });
1378
+ }
1379
+ function Un(e, t) {
1380
+ if (!t.customMerge)
1381
+ return q;
1382
+ var r = t.customMerge(e);
1383
+ return typeof r == "function" ? r : q;
1384
+ }
1385
+ function Dn(e) {
1386
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1387
+ return Object.propertyIsEnumerable.call(e, t);
1388
+ }) : [];
1389
+ }
1390
+ function Tt(e) {
1391
+ return Object.keys(e).concat(Dn(e));
1392
+ }
1393
+ function or(e, t) {
1394
+ try {
1395
+ return t in e;
1396
+ } catch (r) {
1397
+ return !1;
1398
+ }
1399
+ }
1400
+ function Gn(e, t) {
1401
+ return or(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1402
+ }
1403
+ function Fn(e, t, r) {
1404
+ var n = {};
1405
+ return r.isMergeableObject(e) && Tt(e).forEach(function(i) {
1406
+ n[i] = ue(e[i], r);
1407
+ }), Tt(t).forEach(function(i) {
1408
+ Gn(e, i) || (or(e, i) && r.isMergeableObject(t[i]) ? n[i] = Un(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
1409
+ }), n;
1410
+ }
1411
+ function q(e, t, r) {
1412
+ r = r || {}, r.arrayMerge = r.arrayMerge || Rn, r.isMergeableObject = r.isMergeableObject || On, r.cloneUnlessOtherwiseSpecified = ue;
1413
+ var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1414
+ return o ? n ? r.arrayMerge(e, t, r) : Fn(e, t, r) : ue(t, r);
1415
+ }
1416
+ q.all = function(t, r) {
1417
+ if (!Array.isArray(t))
1418
+ throw new Error("first argument should be an array");
1419
+ return t.reduce(function(n, i) {
1420
+ return q(n, i, r);
1421
+ }, {});
1422
+ };
1423
+ var jn = q, kn = jn;
1424
+ const Vn = /* @__PURE__ */ Pn(kn);
1425
+ var b;
1426
+ (function(e) {
1427
+ 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";
1428
+ })(b || (b = {}));
1429
+ var _;
1430
+ (function(e) {
1431
+ 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";
1432
+ })(_ || (_ = {}));
1433
+ var J;
1434
+ (function(e) {
1435
+ e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1436
+ })(J || (J = {}));
1437
+ function wt(e) {
1438
+ return e.type === _.literal;
1439
+ }
1440
+ function Xn(e) {
1441
+ return e.type === _.argument;
1442
+ }
1443
+ function sr(e) {
1444
+ return e.type === _.number;
1445
+ }
1446
+ function ar(e) {
1447
+ return e.type === _.date;
1448
+ }
1449
+ function ur(e) {
1450
+ return e.type === _.time;
1451
+ }
1452
+ function lr(e) {
1453
+ return e.type === _.select;
1454
+ }
1455
+ function hr(e) {
1456
+ return e.type === _.plural;
1457
+ }
1458
+ function Wn(e) {
1459
+ return e.type === _.pound;
1460
+ }
1461
+ function cr(e) {
1462
+ return e.type === _.tag;
1463
+ }
1464
+ function fr(e) {
1465
+ return !!(e && typeof e == "object" && e.type === J.number);
1466
+ }
1467
+ function qe(e) {
1468
+ return !!(e && typeof e == "object" && e.type === J.dateTime);
1469
+ }
1470
+ var pr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, zn = /(?:[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;
1471
+ function Zn(e) {
1472
+ var t = {};
1473
+ return e.replace(zn, function(r) {
1474
+ var n = r.length;
1475
+ switch (r[0]) {
1476
+ case "G":
1477
+ t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1478
+ break;
1479
+ case "y":
1480
+ t.year = n === 2 ? "2-digit" : "numeric";
1481
+ break;
1482
+ case "Y":
1483
+ case "u":
1484
+ case "U":
1485
+ case "r":
1486
+ throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
1487
+ case "q":
1488
+ case "Q":
1489
+ throw new RangeError("`q/Q` (quarter) patterns are not supported");
1490
+ case "M":
1491
+ case "L":
1492
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
1493
+ break;
1494
+ case "w":
1495
+ case "W":
1496
+ throw new RangeError("`w/W` (week) patterns are not supported");
1497
+ case "d":
1498
+ t.day = ["numeric", "2-digit"][n - 1];
1499
+ break;
1500
+ case "D":
1501
+ case "F":
1502
+ case "g":
1503
+ throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
1504
+ case "E":
1505
+ t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1506
+ break;
1507
+ case "e":
1508
+ if (n < 4)
1509
+ throw new RangeError("`e..eee` (weekday) patterns are not supported");
1510
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
1511
+ break;
1512
+ case "c":
1513
+ if (n < 4)
1514
+ throw new RangeError("`c..ccc` (weekday) patterns are not supported");
1515
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
1516
+ break;
1517
+ case "a":
1518
+ t.hour12 = !0;
1519
+ break;
1520
+ case "b":
1521
+ case "B":
1522
+ throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
1523
+ case "h":
1524
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
1525
+ break;
1526
+ case "H":
1527
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
1528
+ break;
1529
+ case "K":
1530
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
1531
+ break;
1532
+ case "k":
1533
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
1534
+ break;
1535
+ case "j":
1536
+ case "J":
1537
+ case "C":
1538
+ throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
1539
+ case "m":
1540
+ t.minute = ["numeric", "2-digit"][n - 1];
1541
+ break;
1542
+ case "s":
1543
+ t.second = ["numeric", "2-digit"][n - 1];
1544
+ break;
1545
+ case "S":
1546
+ case "A":
1547
+ throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
1548
+ case "z":
1549
+ t.timeZoneName = n < 4 ? "short" : "long";
1550
+ break;
1551
+ case "Z":
1552
+ case "O":
1553
+ case "v":
1554
+ case "V":
1555
+ case "X":
1556
+ case "x":
1557
+ throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
1558
+ }
1559
+ return "";
1560
+ }), t;
1561
+ }
1562
+ var Qn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1563
+ function qn(e) {
1564
+ if (e.length === 0)
1565
+ throw new Error("Number skeleton cannot be empty");
1566
+ for (var t = e.split(Qn).filter(function(f) {
1567
+ return f.length > 0;
1568
+ }), r = [], n = 0, i = t; n < i.length; n++) {
1569
+ var o = i[n], s = o.split("/");
1570
+ if (s.length === 0)
1571
+ throw new Error("Invalid number skeleton");
1572
+ for (var a = s[0], u = s.slice(1), l = 0, h = u; l < h.length; l++) {
1573
+ var c = h[l];
1574
+ if (c.length === 0)
1575
+ throw new Error("Invalid number skeleton");
1576
+ }
1577
+ r.push({ stem: a, options: u });
1578
+ }
1579
+ return r;
1580
+ }
1581
+ function Jn(e) {
1582
+ return e.replace(/^(.*?)-/, "");
1583
+ }
1584
+ var Ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, dr = /^(@+)?(\+|#+)?[rs]?$/g, Yn = /(\*)(0+)|(#+)(0+)|(0+)/g, mr = /^(0+)$/;
1585
+ function Bt(e) {
1586
+ var t = {};
1587
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(dr, function(r, n, i) {
1588
+ 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)), "";
1589
+ }), t;
1590
+ }
1591
+ function br(e) {
1592
+ switch (e) {
1593
+ case "sign-auto":
1594
+ return {
1595
+ signDisplay: "auto"
1596
+ };
1597
+ case "sign-accounting":
1598
+ case "()":
1599
+ return {
1600
+ currencySign: "accounting"
1601
+ };
1602
+ case "sign-always":
1603
+ case "+!":
1604
+ return {
1605
+ signDisplay: "always"
1606
+ };
1607
+ case "sign-accounting-always":
1608
+ case "()!":
1609
+ return {
1610
+ signDisplay: "always",
1611
+ currencySign: "accounting"
1612
+ };
1613
+ case "sign-except-zero":
1614
+ case "+?":
1615
+ return {
1616
+ signDisplay: "exceptZero"
1617
+ };
1618
+ case "sign-accounting-except-zero":
1619
+ case "()?":
1620
+ return {
1621
+ signDisplay: "exceptZero",
1622
+ currencySign: "accounting"
1623
+ };
1624
+ case "sign-never":
1625
+ case "+_":
1626
+ return {
1627
+ signDisplay: "never"
1628
+ };
1629
+ }
1630
+ }
1631
+ function Kn(e) {
1632
+ var t;
1633
+ if (e[0] === "E" && e[1] === "E" ? (t = {
1634
+ notation: "engineering"
1635
+ }, e = e.slice(2)) : e[0] === "E" && (t = {
1636
+ notation: "scientific"
1637
+ }, e = e.slice(1)), t) {
1638
+ var r = e.slice(0, 2);
1639
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mr.test(e))
1640
+ throw new Error("Malformed concise eng/scientific notation");
1641
+ t.minimumIntegerDigits = e.length;
1642
+ }
1643
+ return t;
1644
+ }
1645
+ function At(e) {
1646
+ var t = {}, r = br(e);
1647
+ return r || t;
1648
+ }
1649
+ function ei(e) {
1650
+ for (var t = {}, r = 0, n = e; r < n.length; r++) {
1651
+ var i = n[r];
1652
+ switch (i.stem) {
1653
+ case "percent":
1654
+ case "%":
1655
+ t.style = "percent";
1656
+ continue;
1657
+ case "%x100":
1658
+ t.style = "percent", t.scale = 100;
1659
+ continue;
1660
+ case "currency":
1661
+ t.style = "currency", t.currency = i.options[0];
1662
+ continue;
1663
+ case "group-off":
1664
+ case ",_":
1665
+ t.useGrouping = !1;
1666
+ continue;
1667
+ case "precision-integer":
1668
+ case ".":
1669
+ t.maximumFractionDigits = 0;
1670
+ continue;
1671
+ case "measure-unit":
1672
+ case "unit":
1673
+ t.style = "unit", t.unit = Jn(i.options[0]);
1674
+ continue;
1675
+ case "compact-short":
1676
+ case "K":
1677
+ t.notation = "compact", t.compactDisplay = "short";
1678
+ continue;
1679
+ case "compact-long":
1680
+ case "KK":
1681
+ t.notation = "compact", t.compactDisplay = "long";
1682
+ continue;
1683
+ case "scientific":
1684
+ t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
1685
+ return v(v({}, u), At(l));
1686
+ }, {}));
1687
+ continue;
1688
+ case "engineering":
1689
+ t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
1690
+ return v(v({}, u), At(l));
1691
+ }, {}));
1692
+ continue;
1693
+ case "notation-simple":
1694
+ t.notation = "standard";
1695
+ continue;
1696
+ case "unit-width-narrow":
1697
+ t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
1698
+ continue;
1699
+ case "unit-width-short":
1700
+ t.currencyDisplay = "code", t.unitDisplay = "short";
1701
+ continue;
1702
+ case "unit-width-full-name":
1703
+ t.currencyDisplay = "name", t.unitDisplay = "long";
1704
+ continue;
1705
+ case "unit-width-iso-code":
1706
+ t.currencyDisplay = "symbol";
1707
+ continue;
1708
+ case "scale":
1709
+ t.scale = parseFloat(i.options[0]);
1710
+ continue;
1711
+ case "rounding-mode-floor":
1712
+ t.roundingMode = "floor";
1713
+ continue;
1714
+ case "rounding-mode-ceiling":
1715
+ t.roundingMode = "ceil";
1716
+ continue;
1717
+ case "rounding-mode-down":
1718
+ t.roundingMode = "trunc";
1719
+ continue;
1720
+ case "rounding-mode-up":
1721
+ t.roundingMode = "expand";
1722
+ continue;
1723
+ case "rounding-mode-half-even":
1724
+ t.roundingMode = "halfEven";
1725
+ continue;
1726
+ case "rounding-mode-half-down":
1727
+ t.roundingMode = "halfTrunc";
1728
+ continue;
1729
+ case "rounding-mode-half-up":
1730
+ t.roundingMode = "halfExpand";
1731
+ continue;
1732
+ case "integer-width":
1733
+ if (i.options.length > 1)
1734
+ throw new RangeError("integer-width stems only accept a single optional option");
1735
+ i.options[0].replace(Yn, function(u, l, h, c, f, p) {
1736
+ if (l)
1737
+ t.minimumIntegerDigits = h.length;
1738
+ else {
1739
+ if (c && f)
1740
+ throw new Error("We currently do not support maximum integer digits");
1741
+ if (p)
1742
+ throw new Error("We currently do not support exact integer digits");
1743
+ }
1744
+ return "";
1745
+ });
1746
+ continue;
1747
+ }
1748
+ if (mr.test(i.stem)) {
1749
+ t.minimumIntegerDigits = i.stem.length;
1750
+ continue;
1751
+ }
1752
+ if (Ht.test(i.stem)) {
1753
+ if (i.options.length > 1)
1754
+ throw new RangeError("Fraction-precision stems only accept a single optional option");
1755
+ i.stem.replace(Ht, function(u, l, h, c, f, p) {
1756
+ return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1757
+ });
1758
+ var o = i.options[0];
1759
+ o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), Bt(o)));
1760
+ continue;
1761
+ }
1762
+ if (dr.test(i.stem)) {
1763
+ t = v(v({}, t), Bt(i.stem));
1764
+ continue;
1765
+ }
1766
+ var s = br(i.stem);
1767
+ s && (t = v(v({}, t), s));
1768
+ var a = Kn(i.stem);
1769
+ a && (t = v(v({}, t), a));
1770
+ }
1771
+ return t;
1772
+ }
1773
+ var ye = {
1774
+ "001": [
1775
+ "H",
1776
+ "h"
1777
+ ],
1778
+ AC: [
1779
+ "H",
1780
+ "h",
1781
+ "hb",
1782
+ "hB"
1783
+ ],
1784
+ AD: [
1785
+ "H",
1786
+ "hB"
1787
+ ],
1788
+ AE: [
1789
+ "h",
1790
+ "hB",
1791
+ "hb",
1792
+ "H"
1793
+ ],
1794
+ AF: [
1795
+ "H",
1796
+ "hb",
1797
+ "hB",
1798
+ "h"
1799
+ ],
1800
+ AG: [
1801
+ "h",
1802
+ "hb",
1803
+ "H",
1804
+ "hB"
1805
+ ],
1806
+ AI: [
1807
+ "H",
1808
+ "h",
1809
+ "hb",
1810
+ "hB"
1811
+ ],
1812
+ AL: [
1813
+ "h",
1814
+ "H",
1815
+ "hB"
1816
+ ],
1817
+ AM: [
1818
+ "H",
1819
+ "hB"
1820
+ ],
1821
+ AO: [
1822
+ "H",
1823
+ "hB"
1824
+ ],
1825
+ AR: [
1826
+ "H",
1827
+ "h",
1828
+ "hB",
1829
+ "hb"
1830
+ ],
1831
+ AS: [
1832
+ "h",
1833
+ "H"
1834
+ ],
1835
+ AT: [
1836
+ "H",
1837
+ "hB"
1838
+ ],
1839
+ AU: [
1840
+ "h",
1841
+ "hb",
1842
+ "H",
1843
+ "hB"
1844
+ ],
1845
+ AW: [
1846
+ "H",
1847
+ "hB"
1848
+ ],
1849
+ AX: [
1850
+ "H"
1851
+ ],
1852
+ AZ: [
1853
+ "H",
1854
+ "hB",
1855
+ "h"
1856
+ ],
1857
+ BA: [
1858
+ "H",
1859
+ "hB",
1860
+ "h"
1861
+ ],
1862
+ BB: [
1863
+ "h",
1864
+ "hb",
1865
+ "H",
1866
+ "hB"
1867
+ ],
1868
+ BD: [
1869
+ "h",
1870
+ "hB",
1871
+ "H"
1872
+ ],
1873
+ BE: [
1874
+ "H",
1875
+ "hB"
1876
+ ],
1877
+ BF: [
1878
+ "H",
1879
+ "hB"
1880
+ ],
1881
+ BG: [
1882
+ "H",
1883
+ "hB",
1884
+ "h"
1885
+ ],
1886
+ BH: [
1887
+ "h",
1888
+ "hB",
1889
+ "hb",
1890
+ "H"
1891
+ ],
1892
+ BI: [
1893
+ "H",
1894
+ "h"
1895
+ ],
1896
+ BJ: [
1897
+ "H",
1898
+ "hB"
1899
+ ],
1900
+ BL: [
1901
+ "H",
1902
+ "hB"
1903
+ ],
1904
+ BM: [
1905
+ "h",
1906
+ "hb",
1907
+ "H",
1908
+ "hB"
1909
+ ],
1910
+ BN: [
1911
+ "hb",
1912
+ "hB",
1913
+ "h",
1914
+ "H"
1915
+ ],
1916
+ BO: [
1917
+ "H",
1918
+ "hB",
1919
+ "h",
1920
+ "hb"
1921
+ ],
1922
+ BQ: [
1923
+ "H"
1924
+ ],
1925
+ BR: [
1926
+ "H",
1927
+ "hB"
1928
+ ],
1929
+ BS: [
1930
+ "h",
1931
+ "hb",
1932
+ "H",
1933
+ "hB"
1934
+ ],
1935
+ BT: [
1936
+ "h",
1937
+ "H"
1938
+ ],
1939
+ BW: [
1940
+ "H",
1941
+ "h",
1942
+ "hb",
1943
+ "hB"
1944
+ ],
1945
+ BY: [
1946
+ "H",
1947
+ "h"
1948
+ ],
1949
+ BZ: [
1950
+ "H",
1951
+ "h",
1952
+ "hb",
1953
+ "hB"
1954
+ ],
1955
+ CA: [
1956
+ "h",
1957
+ "hb",
1958
+ "H",
1959
+ "hB"
1960
+ ],
1961
+ CC: [
1962
+ "H",
1963
+ "h",
1964
+ "hb",
1965
+ "hB"
1966
+ ],
1967
+ CD: [
1968
+ "hB",
1969
+ "H"
1970
+ ],
1971
+ CF: [
1972
+ "H",
1973
+ "h",
1974
+ "hB"
1975
+ ],
1976
+ CG: [
1977
+ "H",
1978
+ "hB"
1979
+ ],
1980
+ CH: [
1981
+ "H",
1982
+ "hB",
1983
+ "h"
1984
+ ],
1985
+ CI: [
1986
+ "H",
1987
+ "hB"
1988
+ ],
1989
+ CK: [
1990
+ "H",
1991
+ "h",
1992
+ "hb",
1993
+ "hB"
1994
+ ],
1995
+ CL: [
1996
+ "H",
1997
+ "h",
1998
+ "hB",
1999
+ "hb"
2000
+ ],
2001
+ CM: [
2002
+ "H",
2003
+ "h",
2004
+ "hB"
2005
+ ],
2006
+ CN: [
2007
+ "H",
2008
+ "hB",
2009
+ "hb",
2010
+ "h"
2011
+ ],
2012
+ CO: [
2013
+ "h",
2014
+ "H",
2015
+ "hB",
2016
+ "hb"
2017
+ ],
2018
+ CP: [
2019
+ "H"
2020
+ ],
2021
+ CR: [
2022
+ "H",
2023
+ "h",
2024
+ "hB",
2025
+ "hb"
2026
+ ],
2027
+ CU: [
2028
+ "H",
2029
+ "h",
2030
+ "hB",
2031
+ "hb"
2032
+ ],
2033
+ CV: [
2034
+ "H",
2035
+ "hB"
2036
+ ],
2037
+ CW: [
2038
+ "H",
2039
+ "hB"
2040
+ ],
2041
+ CX: [
2042
+ "H",
2043
+ "h",
2044
+ "hb",
2045
+ "hB"
2046
+ ],
2047
+ CY: [
2048
+ "h",
2049
+ "H",
2050
+ "hb",
2051
+ "hB"
2052
+ ],
2053
+ CZ: [
2054
+ "H"
2055
+ ],
2056
+ DE: [
2057
+ "H",
2058
+ "hB"
2059
+ ],
2060
+ DG: [
2061
+ "H",
2062
+ "h",
2063
+ "hb",
2064
+ "hB"
2065
+ ],
2066
+ DJ: [
2067
+ "h",
2068
+ "H"
2069
+ ],
2070
+ DK: [
2071
+ "H"
2072
+ ],
2073
+ DM: [
2074
+ "h",
2075
+ "hb",
2076
+ "H",
2077
+ "hB"
2078
+ ],
2079
+ DO: [
2080
+ "h",
2081
+ "H",
2082
+ "hB",
2083
+ "hb"
2084
+ ],
2085
+ DZ: [
2086
+ "h",
2087
+ "hB",
2088
+ "hb",
2089
+ "H"
2090
+ ],
2091
+ EA: [
2092
+ "H",
2093
+ "h",
2094
+ "hB",
2095
+ "hb"
2096
+ ],
2097
+ EC: [
2098
+ "H",
2099
+ "hB",
2100
+ "h",
2101
+ "hb"
2102
+ ],
2103
+ EE: [
2104
+ "H",
2105
+ "hB"
2106
+ ],
2107
+ EG: [
2108
+ "h",
2109
+ "hB",
2110
+ "hb",
2111
+ "H"
2112
+ ],
2113
+ EH: [
2114
+ "h",
2115
+ "hB",
2116
+ "hb",
2117
+ "H"
2118
+ ],
2119
+ ER: [
2120
+ "h",
2121
+ "H"
2122
+ ],
2123
+ ES: [
2124
+ "H",
2125
+ "hB",
2126
+ "h",
2127
+ "hb"
2128
+ ],
2129
+ ET: [
2130
+ "hB",
2131
+ "hb",
2132
+ "h",
2133
+ "H"
2134
+ ],
2135
+ FI: [
2136
+ "H"
2137
+ ],
2138
+ FJ: [
2139
+ "h",
2140
+ "hb",
2141
+ "H",
2142
+ "hB"
2143
+ ],
2144
+ FK: [
2145
+ "H",
2146
+ "h",
2147
+ "hb",
2148
+ "hB"
2149
+ ],
2150
+ FM: [
2151
+ "h",
2152
+ "hb",
2153
+ "H",
2154
+ "hB"
2155
+ ],
2156
+ FO: [
2157
+ "H",
2158
+ "h"
2159
+ ],
2160
+ FR: [
2161
+ "H",
2162
+ "hB"
2163
+ ],
2164
+ GA: [
2165
+ "H",
2166
+ "hB"
2167
+ ],
2168
+ GB: [
2169
+ "H",
2170
+ "h",
2171
+ "hb",
2172
+ "hB"
2173
+ ],
2174
+ GD: [
2175
+ "h",
2176
+ "hb",
2177
+ "H",
2178
+ "hB"
2179
+ ],
2180
+ GE: [
2181
+ "H",
2182
+ "hB",
2183
+ "h"
2184
+ ],
2185
+ GF: [
2186
+ "H",
2187
+ "hB"
2188
+ ],
2189
+ GG: [
2190
+ "H",
2191
+ "h",
2192
+ "hb",
2193
+ "hB"
2194
+ ],
2195
+ GH: [
2196
+ "h",
2197
+ "H"
2198
+ ],
2199
+ GI: [
2200
+ "H",
2201
+ "h",
2202
+ "hb",
2203
+ "hB"
2204
+ ],
2205
+ GL: [
2206
+ "H",
2207
+ "h"
2208
+ ],
2209
+ GM: [
2210
+ "h",
2211
+ "hb",
2212
+ "H",
2213
+ "hB"
2214
+ ],
2215
+ GN: [
2216
+ "H",
2217
+ "hB"
2218
+ ],
2219
+ GP: [
2220
+ "H",
2221
+ "hB"
2222
+ ],
2223
+ GQ: [
2224
+ "H",
2225
+ "hB",
2226
+ "h",
2227
+ "hb"
2228
+ ],
2229
+ GR: [
2230
+ "h",
2231
+ "H",
2232
+ "hb",
2233
+ "hB"
2234
+ ],
2235
+ GT: [
2236
+ "H",
2237
+ "h",
2238
+ "hB",
2239
+ "hb"
2240
+ ],
2241
+ GU: [
2242
+ "h",
2243
+ "hb",
2244
+ "H",
2245
+ "hB"
2246
+ ],
2247
+ GW: [
2248
+ "H",
2249
+ "hB"
2250
+ ],
2251
+ GY: [
2252
+ "h",
2253
+ "hb",
2254
+ "H",
2255
+ "hB"
2256
+ ],
2257
+ HK: [
2258
+ "h",
2259
+ "hB",
2260
+ "hb",
2261
+ "H"
2262
+ ],
2263
+ HN: [
2264
+ "H",
2265
+ "h",
2266
+ "hB",
2267
+ "hb"
2268
+ ],
2269
+ HR: [
2270
+ "H",
2271
+ "hB"
2272
+ ],
2273
+ HU: [
2274
+ "H",
2275
+ "h"
2276
+ ],
2277
+ IC: [
2278
+ "H",
2279
+ "h",
2280
+ "hB",
2281
+ "hb"
2282
+ ],
2283
+ ID: [
2284
+ "H"
2285
+ ],
2286
+ IE: [
2287
+ "H",
2288
+ "h",
2289
+ "hb",
2290
+ "hB"
2291
+ ],
2292
+ IL: [
2293
+ "H",
2294
+ "hB"
2295
+ ],
2296
+ IM: [
2297
+ "H",
2298
+ "h",
2299
+ "hb",
2300
+ "hB"
2301
+ ],
2302
+ IN: [
2303
+ "h",
2304
+ "H"
2305
+ ],
2306
+ IO: [
2307
+ "H",
2308
+ "h",
2309
+ "hb",
2310
+ "hB"
2311
+ ],
2312
+ IQ: [
2313
+ "h",
2314
+ "hB",
2315
+ "hb",
2316
+ "H"
2317
+ ],
2318
+ IR: [
2319
+ "hB",
2320
+ "H"
2321
+ ],
2322
+ IS: [
2323
+ "H"
2324
+ ],
2325
+ IT: [
2326
+ "H",
2327
+ "hB"
2328
+ ],
2329
+ JE: [
2330
+ "H",
2331
+ "h",
2332
+ "hb",
2333
+ "hB"
2334
+ ],
2335
+ JM: [
2336
+ "h",
2337
+ "hb",
2338
+ "H",
2339
+ "hB"
2340
+ ],
2341
+ JO: [
2342
+ "h",
2343
+ "hB",
2344
+ "hb",
2345
+ "H"
2346
+ ],
2347
+ JP: [
2348
+ "H",
2349
+ "K",
2350
+ "h"
2351
+ ],
2352
+ KE: [
2353
+ "hB",
2354
+ "hb",
2355
+ "H",
2356
+ "h"
2357
+ ],
2358
+ KG: [
2359
+ "H",
2360
+ "h",
2361
+ "hB",
2362
+ "hb"
2363
+ ],
2364
+ KH: [
2365
+ "hB",
2366
+ "h",
2367
+ "H",
2368
+ "hb"
2369
+ ],
2370
+ KI: [
2371
+ "h",
2372
+ "hb",
2373
+ "H",
2374
+ "hB"
2375
+ ],
2376
+ KM: [
2377
+ "H",
2378
+ "h",
2379
+ "hB",
2380
+ "hb"
2381
+ ],
2382
+ KN: [
2383
+ "h",
2384
+ "hb",
2385
+ "H",
2386
+ "hB"
2387
+ ],
2388
+ KP: [
2389
+ "h",
2390
+ "H",
2391
+ "hB",
2392
+ "hb"
2393
+ ],
2394
+ KR: [
2395
+ "h",
2396
+ "H",
2397
+ "hB",
2398
+ "hb"
2399
+ ],
2400
+ KW: [
2401
+ "h",
2402
+ "hB",
2403
+ "hb",
2404
+ "H"
2405
+ ],
2406
+ KY: [
2407
+ "h",
2408
+ "hb",
2409
+ "H",
2410
+ "hB"
2411
+ ],
2412
+ KZ: [
2413
+ "H",
2414
+ "hB"
2415
+ ],
2416
+ LA: [
2417
+ "H",
2418
+ "hb",
2419
+ "hB",
2420
+ "h"
2421
+ ],
2422
+ LB: [
2423
+ "h",
2424
+ "hB",
2425
+ "hb",
2426
+ "H"
2427
+ ],
2428
+ LC: [
2429
+ "h",
2430
+ "hb",
2431
+ "H",
2432
+ "hB"
2433
+ ],
2434
+ LI: [
2435
+ "H",
2436
+ "hB",
2437
+ "h"
2438
+ ],
2439
+ LK: [
2440
+ "H",
2441
+ "h",
2442
+ "hB",
2443
+ "hb"
2444
+ ],
2445
+ LR: [
2446
+ "h",
2447
+ "hb",
2448
+ "H",
2449
+ "hB"
2450
+ ],
2451
+ LS: [
2452
+ "h",
2453
+ "H"
2454
+ ],
2455
+ LT: [
2456
+ "H",
2457
+ "h",
2458
+ "hb",
2459
+ "hB"
2460
+ ],
2461
+ LU: [
2462
+ "H",
2463
+ "h",
2464
+ "hB"
2465
+ ],
2466
+ LV: [
2467
+ "H",
2468
+ "hB",
2469
+ "hb",
2470
+ "h"
2471
+ ],
2472
+ LY: [
2473
+ "h",
2474
+ "hB",
2475
+ "hb",
2476
+ "H"
2477
+ ],
2478
+ MA: [
2479
+ "H",
2480
+ "h",
2481
+ "hB",
2482
+ "hb"
2483
+ ],
2484
+ MC: [
2485
+ "H",
2486
+ "hB"
2487
+ ],
2488
+ MD: [
2489
+ "H",
2490
+ "hB"
2491
+ ],
2492
+ ME: [
2493
+ "H",
2494
+ "hB",
2495
+ "h"
2496
+ ],
2497
+ MF: [
2498
+ "H",
2499
+ "hB"
2500
+ ],
2501
+ MG: [
2502
+ "H",
2503
+ "h"
2504
+ ],
2505
+ MH: [
2506
+ "h",
2507
+ "hb",
2508
+ "H",
2509
+ "hB"
2510
+ ],
2511
+ MK: [
2512
+ "H",
2513
+ "h",
2514
+ "hb",
2515
+ "hB"
2516
+ ],
2517
+ ML: [
2518
+ "H"
2519
+ ],
2520
+ MM: [
2521
+ "hB",
2522
+ "hb",
2523
+ "H",
2524
+ "h"
2525
+ ],
2526
+ MN: [
2527
+ "H",
2528
+ "h",
2529
+ "hb",
2530
+ "hB"
2531
+ ],
2532
+ MO: [
2533
+ "h",
2534
+ "hB",
2535
+ "hb",
2536
+ "H"
2537
+ ],
2538
+ MP: [
2539
+ "h",
2540
+ "hb",
2541
+ "H",
2542
+ "hB"
2543
+ ],
2544
+ MQ: [
2545
+ "H",
2546
+ "hB"
2547
+ ],
2548
+ MR: [
2549
+ "h",
2550
+ "hB",
2551
+ "hb",
2552
+ "H"
2553
+ ],
2554
+ MS: [
2555
+ "H",
2556
+ "h",
2557
+ "hb",
2558
+ "hB"
2559
+ ],
2560
+ MT: [
2561
+ "H",
2562
+ "h"
2563
+ ],
2564
+ MU: [
2565
+ "H",
2566
+ "h"
2567
+ ],
2568
+ MV: [
2569
+ "H",
2570
+ "h"
2571
+ ],
2572
+ MW: [
2573
+ "h",
2574
+ "hb",
2575
+ "H",
2576
+ "hB"
2577
+ ],
2578
+ MX: [
2579
+ "H",
2580
+ "h",
2581
+ "hB",
2582
+ "hb"
2583
+ ],
2584
+ MY: [
2585
+ "hb",
2586
+ "hB",
2587
+ "h",
2588
+ "H"
2589
+ ],
2590
+ MZ: [
2591
+ "H",
2592
+ "hB"
2593
+ ],
2594
+ NA: [
2595
+ "h",
2596
+ "H",
2597
+ "hB",
2598
+ "hb"
2599
+ ],
2600
+ NC: [
2601
+ "H",
2602
+ "hB"
2603
+ ],
2604
+ NE: [
2605
+ "H"
2606
+ ],
2607
+ NF: [
2608
+ "H",
2609
+ "h",
2610
+ "hb",
2611
+ "hB"
2612
+ ],
2613
+ NG: [
2614
+ "H",
2615
+ "h",
2616
+ "hb",
2617
+ "hB"
2618
+ ],
2619
+ NI: [
2620
+ "H",
2621
+ "h",
2622
+ "hB",
2623
+ "hb"
2624
+ ],
2625
+ NL: [
2626
+ "H",
2627
+ "hB"
2628
+ ],
2629
+ NO: [
2630
+ "H",
2631
+ "h"
2632
+ ],
2633
+ NP: [
2634
+ "H",
2635
+ "h",
2636
+ "hB"
2637
+ ],
2638
+ NR: [
2639
+ "H",
2640
+ "h",
2641
+ "hb",
2642
+ "hB"
2643
+ ],
2644
+ NU: [
2645
+ "H",
2646
+ "h",
2647
+ "hb",
2648
+ "hB"
2649
+ ],
2650
+ NZ: [
2651
+ "h",
2652
+ "hb",
2653
+ "H",
2654
+ "hB"
2655
+ ],
2656
+ OM: [
2657
+ "h",
2658
+ "hB",
2659
+ "hb",
2660
+ "H"
2661
+ ],
2662
+ PA: [
2663
+ "h",
2664
+ "H",
2665
+ "hB",
2666
+ "hb"
2667
+ ],
2668
+ PE: [
2669
+ "H",
2670
+ "hB",
2671
+ "h",
2672
+ "hb"
2673
+ ],
2674
+ PF: [
2675
+ "H",
2676
+ "h",
2677
+ "hB"
2678
+ ],
2679
+ PG: [
2680
+ "h",
2681
+ "H"
2682
+ ],
2683
+ PH: [
2684
+ "h",
2685
+ "hB",
2686
+ "hb",
2687
+ "H"
2688
+ ],
2689
+ PK: [
2690
+ "h",
2691
+ "hB",
2692
+ "H"
2693
+ ],
2694
+ PL: [
2695
+ "H",
2696
+ "h"
2697
+ ],
2698
+ PM: [
2699
+ "H",
2700
+ "hB"
2701
+ ],
2702
+ PN: [
2703
+ "H",
2704
+ "h",
2705
+ "hb",
2706
+ "hB"
2707
+ ],
2708
+ PR: [
2709
+ "h",
2710
+ "H",
2711
+ "hB",
2712
+ "hb"
2713
+ ],
2714
+ PS: [
2715
+ "h",
2716
+ "hB",
2717
+ "hb",
2718
+ "H"
2719
+ ],
2720
+ PT: [
2721
+ "H",
2722
+ "hB"
2723
+ ],
2724
+ PW: [
2725
+ "h",
2726
+ "H"
2727
+ ],
2728
+ PY: [
2729
+ "H",
2730
+ "h",
2731
+ "hB",
2732
+ "hb"
2733
+ ],
2734
+ QA: [
2735
+ "h",
2736
+ "hB",
2737
+ "hb",
2738
+ "H"
2739
+ ],
2740
+ RE: [
2741
+ "H",
2742
+ "hB"
2743
+ ],
2744
+ RO: [
2745
+ "H",
2746
+ "hB"
2747
+ ],
2748
+ RS: [
2749
+ "H",
2750
+ "hB",
2751
+ "h"
2752
+ ],
2753
+ RU: [
2754
+ "H"
2755
+ ],
2756
+ RW: [
2757
+ "H",
2758
+ "h"
2759
+ ],
2760
+ SA: [
2761
+ "h",
2762
+ "hB",
2763
+ "hb",
2764
+ "H"
2765
+ ],
2766
+ SB: [
2767
+ "h",
2768
+ "hb",
2769
+ "H",
2770
+ "hB"
2771
+ ],
2772
+ SC: [
2773
+ "H",
2774
+ "h",
2775
+ "hB"
2776
+ ],
2777
+ SD: [
2778
+ "h",
2779
+ "hB",
2780
+ "hb",
2781
+ "H"
2782
+ ],
2783
+ SE: [
2784
+ "H"
2785
+ ],
2786
+ SG: [
2787
+ "h",
2788
+ "hb",
2789
+ "H",
2790
+ "hB"
2791
+ ],
2792
+ SH: [
2793
+ "H",
2794
+ "h",
2795
+ "hb",
2796
+ "hB"
2797
+ ],
2798
+ SI: [
2799
+ "H",
2800
+ "hB"
2801
+ ],
2802
+ SJ: [
2803
+ "H"
2804
+ ],
2805
+ SK: [
2806
+ "H"
2807
+ ],
2808
+ SL: [
2809
+ "h",
2810
+ "hb",
2811
+ "H",
2812
+ "hB"
2813
+ ],
2814
+ SM: [
2815
+ "H",
2816
+ "h",
2817
+ "hB"
2818
+ ],
2819
+ SN: [
2820
+ "H",
2821
+ "h",
2822
+ "hB"
2823
+ ],
2824
+ SO: [
2825
+ "h",
2826
+ "H"
2827
+ ],
2828
+ SR: [
2829
+ "H",
2830
+ "hB"
2831
+ ],
2832
+ SS: [
2833
+ "h",
2834
+ "hb",
2835
+ "H",
2836
+ "hB"
2837
+ ],
2838
+ ST: [
2839
+ "H",
2840
+ "hB"
2841
+ ],
2842
+ SV: [
2843
+ "H",
2844
+ "h",
2845
+ "hB",
2846
+ "hb"
2847
+ ],
2848
+ SX: [
2849
+ "H",
2850
+ "h",
2851
+ "hb",
2852
+ "hB"
2853
+ ],
2854
+ SY: [
2855
+ "h",
2856
+ "hB",
2857
+ "hb",
2858
+ "H"
2859
+ ],
2860
+ SZ: [
2861
+ "h",
2862
+ "hb",
2863
+ "H",
2864
+ "hB"
2865
+ ],
2866
+ TA: [
2867
+ "H",
2868
+ "h",
2869
+ "hb",
2870
+ "hB"
2871
+ ],
2872
+ TC: [
2873
+ "h",
2874
+ "hb",
2875
+ "H",
2876
+ "hB"
2877
+ ],
2878
+ TD: [
2879
+ "h",
2880
+ "H",
2881
+ "hB"
2882
+ ],
2883
+ TF: [
2884
+ "H",
2885
+ "h",
2886
+ "hB"
2887
+ ],
2888
+ TG: [
2889
+ "H",
2890
+ "hB"
2891
+ ],
2892
+ TH: [
2893
+ "H",
2894
+ "h"
2895
+ ],
2896
+ TJ: [
2897
+ "H",
2898
+ "h"
2899
+ ],
2900
+ TL: [
2901
+ "H",
2902
+ "hB",
2903
+ "hb",
2904
+ "h"
2905
+ ],
2906
+ TM: [
2907
+ "H",
2908
+ "h"
2909
+ ],
2910
+ TN: [
2911
+ "h",
2912
+ "hB",
2913
+ "hb",
2914
+ "H"
2915
+ ],
2916
+ TO: [
2917
+ "h",
2918
+ "H"
2919
+ ],
2920
+ TR: [
2921
+ "H",
2922
+ "hB"
2923
+ ],
2924
+ TT: [
2925
+ "h",
2926
+ "hb",
2927
+ "H",
2928
+ "hB"
2929
+ ],
2930
+ TW: [
2931
+ "hB",
2932
+ "hb",
2933
+ "h",
2934
+ "H"
2935
+ ],
2936
+ TZ: [
2937
+ "hB",
2938
+ "hb",
2939
+ "H",
2940
+ "h"
2941
+ ],
2942
+ UA: [
2943
+ "H",
2944
+ "hB",
2945
+ "h"
2946
+ ],
2947
+ UG: [
2948
+ "hB",
2949
+ "hb",
2950
+ "H",
2951
+ "h"
2952
+ ],
2953
+ UM: [
2954
+ "h",
2955
+ "hb",
2956
+ "H",
2957
+ "hB"
2958
+ ],
2959
+ US: [
2960
+ "h",
2961
+ "hb",
2962
+ "H",
2963
+ "hB"
2964
+ ],
2965
+ UY: [
2966
+ "H",
2967
+ "h",
2968
+ "hB",
2969
+ "hb"
2970
+ ],
2971
+ UZ: [
2972
+ "H",
2973
+ "hB",
2974
+ "h"
2975
+ ],
2976
+ VA: [
2977
+ "H",
2978
+ "h",
2979
+ "hB"
2980
+ ],
2981
+ VC: [
2982
+ "h",
2983
+ "hb",
2984
+ "H",
2985
+ "hB"
2986
+ ],
2987
+ VE: [
2988
+ "h",
2989
+ "H",
2990
+ "hB",
2991
+ "hb"
2992
+ ],
2993
+ VG: [
2994
+ "h",
2995
+ "hb",
2996
+ "H",
2997
+ "hB"
2998
+ ],
2999
+ VI: [
3000
+ "h",
3001
+ "hb",
3002
+ "H",
3003
+ "hB"
3004
+ ],
3005
+ VN: [
3006
+ "H",
3007
+ "h"
3008
+ ],
3009
+ VU: [
3010
+ "h",
3011
+ "H"
3012
+ ],
3013
+ WF: [
3014
+ "H",
3015
+ "hB"
3016
+ ],
3017
+ WS: [
3018
+ "h",
3019
+ "H"
3020
+ ],
3021
+ XK: [
3022
+ "H",
3023
+ "hB",
3024
+ "h"
3025
+ ],
3026
+ YE: [
3027
+ "h",
3028
+ "hB",
3029
+ "hb",
3030
+ "H"
3031
+ ],
3032
+ YT: [
3033
+ "H",
3034
+ "hB"
3035
+ ],
3036
+ ZA: [
3037
+ "H",
3038
+ "h",
3039
+ "hb",
3040
+ "hB"
3041
+ ],
3042
+ ZM: [
3043
+ "h",
3044
+ "hb",
3045
+ "H",
3046
+ "hB"
3047
+ ],
3048
+ ZW: [
3049
+ "H",
3050
+ "h"
3051
+ ],
3052
+ "af-ZA": [
3053
+ "H",
3054
+ "h",
3055
+ "hB",
3056
+ "hb"
3057
+ ],
3058
+ "ar-001": [
3059
+ "h",
3060
+ "hB",
3061
+ "hb",
3062
+ "H"
3063
+ ],
3064
+ "ca-ES": [
3065
+ "H",
3066
+ "h",
3067
+ "hB"
3068
+ ],
3069
+ "en-001": [
3070
+ "h",
3071
+ "hb",
3072
+ "H",
3073
+ "hB"
3074
+ ],
3075
+ "es-BO": [
3076
+ "H",
3077
+ "h",
3078
+ "hB",
3079
+ "hb"
3080
+ ],
3081
+ "es-BR": [
3082
+ "H",
3083
+ "h",
3084
+ "hB",
3085
+ "hb"
3086
+ ],
3087
+ "es-EC": [
3088
+ "H",
3089
+ "h",
3090
+ "hB",
3091
+ "hb"
3092
+ ],
3093
+ "es-ES": [
3094
+ "H",
3095
+ "h",
3096
+ "hB",
3097
+ "hb"
3098
+ ],
3099
+ "es-GQ": [
3100
+ "H",
3101
+ "h",
3102
+ "hB",
3103
+ "hb"
3104
+ ],
3105
+ "es-PE": [
3106
+ "H",
3107
+ "h",
3108
+ "hB",
3109
+ "hb"
3110
+ ],
3111
+ "fr-CA": [
3112
+ "H",
3113
+ "h",
3114
+ "hB"
3115
+ ],
3116
+ "gl-ES": [
3117
+ "H",
3118
+ "h",
3119
+ "hB"
3120
+ ],
3121
+ "gu-IN": [
3122
+ "hB",
3123
+ "hb",
3124
+ "h",
3125
+ "H"
3126
+ ],
3127
+ "hi-IN": [
3128
+ "hB",
3129
+ "h",
3130
+ "H"
3131
+ ],
3132
+ "it-CH": [
3133
+ "H",
3134
+ "h",
3135
+ "hB"
3136
+ ],
3137
+ "it-IT": [
3138
+ "H",
3139
+ "h",
3140
+ "hB"
3141
+ ],
3142
+ "kn-IN": [
3143
+ "hB",
3144
+ "h",
3145
+ "H"
3146
+ ],
3147
+ "ml-IN": [
3148
+ "hB",
3149
+ "h",
3150
+ "H"
3151
+ ],
3152
+ "mr-IN": [
3153
+ "hB",
3154
+ "hb",
3155
+ "h",
3156
+ "H"
3157
+ ],
3158
+ "pa-IN": [
3159
+ "hB",
3160
+ "hb",
3161
+ "h",
3162
+ "H"
3163
+ ],
3164
+ "ta-IN": [
3165
+ "hB",
3166
+ "h",
3167
+ "hb",
3168
+ "H"
3169
+ ],
3170
+ "te-IN": [
3171
+ "hB",
3172
+ "h",
3173
+ "H"
3174
+ ],
3175
+ "zu-ZA": [
3176
+ "H",
3177
+ "hB",
3178
+ "hb",
3179
+ "h"
3180
+ ]
3181
+ };
3182
+ function ti(e, t) {
3183
+ for (var r = "", n = 0; n < e.length; n++) {
3184
+ var i = e.charAt(n);
3185
+ if (i === "j") {
3186
+ for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3187
+ o++, n++;
3188
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = ri(t);
3189
+ for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
3190
+ r += u;
3191
+ for (; s-- > 0; )
3192
+ r = l + r;
3193
+ } else i === "J" ? r += "H" : r += i;
3194
+ }
3195
+ return r;
3196
+ }
3197
+ function ri(e) {
3198
+ var t = e.hourCycle;
3199
+ if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3200
+ e.hourCycles && // @ts-ignore
3201
+ e.hourCycles.length && (t = e.hourCycles[0]), t)
3202
+ switch (t) {
3203
+ case "h24":
3204
+ return "k";
3205
+ case "h23":
3206
+ return "H";
3207
+ case "h12":
3208
+ return "h";
3209
+ case "h11":
3210
+ return "K";
3211
+ default:
3212
+ throw new Error("Invalid hourCycle");
3213
+ }
3214
+ var r = e.language, n;
3215
+ r !== "root" && (n = e.maximize().region);
3216
+ var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
3217
+ return i[0];
3218
+ }
3219
+ var Ue, ni = new RegExp("^".concat(pr.source, "*")), ii = new RegExp("".concat(pr.source, "*$"));
3220
+ function y(e, t) {
3221
+ return { start: e, end: t };
3222
+ }
3223
+ var oi = !!String.prototype.startsWith && "_a".startsWith("a", 1), si = !!String.fromCodePoint, ai = !!Object.fromEntries, ui = !!String.prototype.codePointAt, li = !!String.prototype.trimStart, hi = !!String.prototype.trimEnd, ci = !!Number.isSafeInteger, fi = ci ? Number.isSafeInteger : function(e) {
3224
+ return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3225
+ }, Je = !0;
3226
+ try {
3227
+ var pi = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3228
+ Je = ((Ue = pi.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
3229
+ } catch (e) {
3230
+ Je = !1;
3231
+ }
3232
+ var Pt = oi ? (
3233
+ // Native
3234
+ function(t, r, n) {
3235
+ return t.startsWith(r, n);
3236
+ }
3237
+ ) : (
3238
+ // For IE11
3239
+ function(t, r, n) {
3240
+ return t.slice(n, n + r.length) === r;
3241
+ }
3242
+ ), Ye = si ? String.fromCodePoint : (
3243
+ // IE11
3244
+ function() {
3245
+ for (var t = [], r = 0; r < arguments.length; r++)
3246
+ t[r] = arguments[r];
3247
+ for (var n = "", i = t.length, o = 0, s; i > o; ) {
3248
+ if (s = t[o++], s > 1114111)
3249
+ throw RangeError(s + " is not a valid code point");
3250
+ n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
3251
+ }
3252
+ return n;
3253
+ }
3254
+ ), Ot = (
3255
+ // native
3256
+ ai ? Object.fromEntries : (
3257
+ // Ponyfill
3258
+ function(t) {
3259
+ for (var r = {}, n = 0, i = t; n < i.length; n++) {
3260
+ var o = i[n], s = o[0], a = o[1];
3261
+ r[s] = a;
3262
+ }
3263
+ return r;
3264
+ }
3265
+ )
3266
+ ), yr = ui ? (
3267
+ // Native
3268
+ function(t, r) {
3269
+ return t.codePointAt(r);
3270
+ }
3271
+ ) : (
3272
+ // IE 11
3273
+ function(t, r) {
3274
+ var n = t.length;
3275
+ if (!(r < 0 || r >= n)) {
3276
+ var i = t.charCodeAt(r), o;
3277
+ return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3278
+ }
3279
+ }
3280
+ ), di = li ? (
3281
+ // Native
3282
+ function(t) {
3283
+ return t.trimStart();
3284
+ }
3285
+ ) : (
3286
+ // Ponyfill
3287
+ function(t) {
3288
+ return t.replace(ni, "");
3289
+ }
3290
+ ), mi = hi ? (
3291
+ // Native
3292
+ function(t) {
3293
+ return t.trimEnd();
3294
+ }
3295
+ ) : (
3296
+ // Ponyfill
3297
+ function(t) {
3298
+ return t.replace(ii, "");
3299
+ }
3300
+ );
3301
+ function gr(e, t) {
3302
+ return new RegExp(e, t);
3303
+ }
3304
+ var Ke;
3305
+ if (Je) {
3306
+ var It = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3307
+ Ke = function(t, r) {
3308
+ var n;
3309
+ It.lastIndex = r;
3310
+ var i = It.exec(t);
3311
+ return (n = i[1]) !== null && n !== void 0 ? n : "";
3312
+ };
3313
+ } else
3314
+ Ke = function(t, r) {
3315
+ for (var n = []; ; ) {
3316
+ var i = yr(t, r);
3317
+ if (i === void 0 || vr(i) || vi(i))
3318
+ break;
3319
+ n.push(i), r += i >= 65536 ? 2 : 1;
3320
+ }
3321
+ return Ye.apply(void 0, n);
3322
+ };
3323
+ var bi = (
3324
+ /** @class */
3325
+ function() {
3326
+ function e(t, r) {
3327
+ 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;
3328
+ }
3329
+ return e.prototype.parse = function() {
3330
+ if (this.offset() !== 0)
3331
+ throw Error("parser can only be used once");
3332
+ return this.parseMessage(0, "", !1);
3333
+ }, e.prototype.parseMessage = function(t, r, n) {
3334
+ for (var i = []; !this.isEOF(); ) {
3335
+ var o = this.char();
3336
+ if (o === 123) {
3337
+ var s = this.parseArgument(t, n);
3338
+ if (s.err)
3339
+ return s;
3340
+ i.push(s.val);
3341
+ } else {
3342
+ if (o === 125 && t > 0)
3343
+ break;
3344
+ if (o === 35 && (r === "plural" || r === "selectordinal")) {
3345
+ var a = this.clonePosition();
3346
+ this.bump(), i.push({
3347
+ type: _.pound,
3348
+ location: y(a, this.clonePosition())
3349
+ });
3350
+ } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3351
+ if (n)
3352
+ break;
3353
+ return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
3354
+ } else if (o === 60 && !this.ignoreTag && et(this.peek() || 0)) {
3355
+ var s = this.parseTag(t, r);
3356
+ if (s.err)
3357
+ return s;
3358
+ i.push(s.val);
3359
+ } else {
3360
+ var s = this.parseLiteral(t, r);
3361
+ if (s.err)
3362
+ return s;
3363
+ i.push(s.val);
3364
+ }
3365
+ }
3366
+ }
3367
+ return { val: i, err: null };
3368
+ }, e.prototype.parseTag = function(t, r) {
3369
+ var n = this.clonePosition();
3370
+ this.bump();
3371
+ var i = this.parseTagName();
3372
+ if (this.bumpSpace(), this.bumpIf("/>"))
3373
+ return {
3374
+ val: {
3375
+ type: _.literal,
3376
+ value: "<".concat(i, "/>"),
3377
+ location: y(n, this.clonePosition())
3378
+ },
3379
+ err: null
3380
+ };
3381
+ if (this.bumpIf(">")) {
3382
+ var o = this.parseMessage(t + 1, r, !0);
3383
+ if (o.err)
3384
+ return o;
3385
+ var s = o.val, a = this.clonePosition();
3386
+ if (this.bumpIf("</")) {
3387
+ if (this.isEOF() || !et(this.char()))
3388
+ return this.error(b.INVALID_TAG, y(a, this.clonePosition()));
3389
+ var u = this.clonePosition(), l = this.parseTagName();
3390
+ return i !== l ? this.error(b.UNMATCHED_CLOSING_TAG, y(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3391
+ val: {
3392
+ type: _.tag,
3393
+ value: i,
3394
+ children: s,
3395
+ location: y(n, this.clonePosition())
3396
+ },
3397
+ err: null
3398
+ } : this.error(b.INVALID_TAG, y(a, this.clonePosition())));
3399
+ } else
3400
+ return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
3401
+ } else
3402
+ return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
3403
+ }, e.prototype.parseTagName = function() {
3404
+ var t = this.offset();
3405
+ for (this.bump(); !this.isEOF() && gi(this.char()); )
3406
+ this.bump();
3407
+ return this.message.slice(t, this.offset());
3408
+ }, e.prototype.parseLiteral = function(t, r) {
3409
+ for (var n = this.clonePosition(), i = ""; ; ) {
3410
+ var o = this.tryParseQuote(r);
3411
+ if (o) {
3412
+ i += o;
3413
+ continue;
3414
+ }
3415
+ var s = this.tryParseUnquoted(t, r);
3416
+ if (s) {
3417
+ i += s;
3418
+ continue;
3419
+ }
3420
+ var a = this.tryParseLeftAngleBracket();
3421
+ if (a) {
3422
+ i += a;
3423
+ continue;
3424
+ }
3425
+ break;
3426
+ }
3427
+ var u = y(n, this.clonePosition());
3428
+ return {
3429
+ val: { type: _.literal, value: i, location: u },
3430
+ err: null
3431
+ };
3432
+ }, e.prototype.tryParseLeftAngleBracket = function() {
3433
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3434
+ !yi(this.peek() || 0)) ? (this.bump(), "<") : null;
3435
+ }, e.prototype.tryParseQuote = function(t) {
3436
+ if (this.isEOF() || this.char() !== 39)
3437
+ return null;
3438
+ switch (this.peek()) {
3439
+ case 39:
3440
+ return this.bump(), this.bump(), "'";
3441
+ case 123:
3442
+ case 60:
3443
+ case 62:
3444
+ case 125:
3445
+ break;
3446
+ case 35:
3447
+ if (t === "plural" || t === "selectordinal")
3448
+ break;
3449
+ return null;
3450
+ default:
3451
+ return null;
3452
+ }
3453
+ this.bump();
3454
+ var r = [this.char()];
3455
+ for (this.bump(); !this.isEOF(); ) {
3456
+ var n = this.char();
3457
+ if (n === 39)
3458
+ if (this.peek() === 39)
3459
+ r.push(39), this.bump();
3460
+ else {
3461
+ this.bump();
3462
+ break;
3463
+ }
3464
+ else
3465
+ r.push(n);
3466
+ this.bump();
3467
+ }
3468
+ return Ye.apply(void 0, r);
3469
+ }, e.prototype.tryParseUnquoted = function(t, r) {
3470
+ if (this.isEOF())
3471
+ return null;
3472
+ var n = this.char();
3473
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ye(n));
3474
+ }, e.prototype.parseArgument = function(t, r) {
3475
+ var n = this.clonePosition();
3476
+ if (this.bump(), this.bumpSpace(), this.isEOF())
3477
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
3478
+ if (this.char() === 125)
3479
+ return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
3480
+ var i = this.parseIdentifierIfPossible().value;
3481
+ if (!i)
3482
+ return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
3483
+ if (this.bumpSpace(), this.isEOF())
3484
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
3485
+ switch (this.char()) {
3486
+ case 125:
3487
+ return this.bump(), {
3488
+ val: {
3489
+ type: _.argument,
3490
+ // value does not include the opening and closing braces.
3491
+ value: i,
3492
+ location: y(n, this.clonePosition())
3493
+ },
3494
+ err: null
3495
+ };
3496
+ case 44:
3497
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3498
+ default:
3499
+ return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
3500
+ }
3501
+ }, e.prototype.parseIdentifierIfPossible = function() {
3502
+ var t = this.clonePosition(), r = this.offset(), n = Ke(this.message, r), i = r + n.length;
3503
+ this.bumpTo(i);
3504
+ var o = this.clonePosition(), s = y(t, o);
3505
+ return { value: n, location: s };
3506
+ }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3507
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
3508
+ switch (a) {
3509
+ case "":
3510
+ return this.error(b.EXPECT_ARGUMENT_TYPE, y(s, u));
3511
+ case "number":
3512
+ case "date":
3513
+ case "time": {
3514
+ this.bumpSpace();
3515
+ var l = null;
3516
+ if (this.bumpIf(",")) {
3517
+ this.bumpSpace();
3518
+ var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3519
+ if (c.err)
3520
+ return c;
3521
+ var f = mi(c.val);
3522
+ if (f.length === 0)
3523
+ return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
3524
+ var p = y(h, this.clonePosition());
3525
+ l = { style: f, styleLocation: p };
3526
+ }
3527
+ var d = this.tryParseArgumentClose(i);
3528
+ if (d.err)
3529
+ return d;
3530
+ var m = y(i, this.clonePosition());
3531
+ if (l && Pt(l == null ? void 0 : l.style, "::", 0)) {
3532
+ var E = di(l.style.slice(2));
3533
+ if (a === "number") {
3534
+ var c = this.parseNumberSkeletonFromString(E, l.styleLocation);
3535
+ return c.err ? c : {
3536
+ val: { type: _.number, value: n, location: m, style: c.val },
3537
+ err: null
3538
+ };
3539
+ } else {
3540
+ if (E.length === 0)
3541
+ return this.error(b.EXPECT_DATE_TIME_SKELETON, m);
3542
+ var w = E;
3543
+ this.locale && (w = ti(E, this.locale));
3544
+ var f = {
3545
+ type: J.dateTime,
3546
+ pattern: w,
3547
+ location: l.styleLocation,
3548
+ parsedOptions: this.shouldParseSkeletons ? Zn(w) : {}
3549
+ }, H = a === "date" ? _.date : _.time;
3550
+ return {
3551
+ val: { type: H, value: n, location: m, style: f },
3552
+ err: null
3553
+ };
3554
+ }
3555
+ }
3556
+ return {
3557
+ val: {
3558
+ type: a === "number" ? _.number : a === "date" ? _.date : _.time,
3559
+ value: n,
3560
+ location: m,
3561
+ style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
3562
+ },
3563
+ err: null
3564
+ };
3565
+ }
3566
+ case "plural":
3567
+ case "selectordinal":
3568
+ case "select": {
3569
+ var S = this.clonePosition();
3570
+ if (this.bumpSpace(), !this.bumpIf(","))
3571
+ return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(S, v({}, S)));
3572
+ this.bumpSpace();
3573
+ var I = this.parseIdentifierIfPossible(), B = 0;
3574
+ if (a !== "select" && I.value === "offset") {
3575
+ if (!this.bumpIf(":"))
3576
+ return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
3577
+ this.bumpSpace();
3578
+ var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3579
+ if (c.err)
3580
+ return c;
3581
+ this.bumpSpace(), I = this.parseIdentifierIfPossible(), B = c.val;
3582
+ }
3583
+ var U = this.tryParsePluralOrSelectOptions(t, a, r, I);
3584
+ if (U.err)
3585
+ return U;
3586
+ var d = this.tryParseArgumentClose(i);
3587
+ if (d.err)
3588
+ return d;
3589
+ var de = y(i, this.clonePosition());
3590
+ return a === "select" ? {
3591
+ val: {
3592
+ type: _.select,
3593
+ value: n,
3594
+ options: Ot(U.val),
3595
+ location: de
3596
+ },
3597
+ err: null
3598
+ } : {
3599
+ val: {
3600
+ type: _.plural,
3601
+ value: n,
3602
+ options: Ot(U.val),
3603
+ offset: B,
3604
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
3605
+ location: de
3606
+ },
3607
+ err: null
3608
+ };
3609
+ }
3610
+ default:
3611
+ return this.error(b.INVALID_ARGUMENT_TYPE, y(s, u));
3612
+ }
3613
+ }, e.prototype.tryParseArgumentClose = function(t) {
3614
+ return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3615
+ }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3616
+ for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3617
+ var n = this.char();
3618
+ switch (n) {
3619
+ case 39: {
3620
+ this.bump();
3621
+ var i = this.clonePosition();
3622
+ if (!this.bumpUntil("'"))
3623
+ return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
3624
+ this.bump();
3625
+ break;
3626
+ }
3627
+ case 123: {
3628
+ t += 1, this.bump();
3629
+ break;
3630
+ }
3631
+ case 125: {
3632
+ if (t > 0)
3633
+ t -= 1;
3634
+ else
3635
+ return {
3636
+ val: this.message.slice(r.offset, this.offset()),
3637
+ err: null
3638
+ };
3639
+ break;
3640
+ }
3641
+ default:
3642
+ this.bump();
3643
+ break;
3644
+ }
3645
+ }
3646
+ return {
3647
+ val: this.message.slice(r.offset, this.offset()),
3648
+ err: null
3649
+ };
3650
+ }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3651
+ var n = [];
3652
+ try {
3653
+ n = qn(t);
3654
+ } catch (i) {
3655
+ return this.error(b.INVALID_NUMBER_SKELETON, r);
3656
+ }
3657
+ return {
3658
+ val: {
3659
+ type: J.number,
3660
+ tokens: n,
3661
+ location: r,
3662
+ parsedOptions: this.shouldParseSkeletons ? ei(n) : {}
3663
+ },
3664
+ err: null
3665
+ };
3666
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3667
+ for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
3668
+ if (l.length === 0) {
3669
+ var c = this.clonePosition();
3670
+ if (r !== "select" && this.bumpIf("=")) {
3671
+ var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3672
+ if (f.err)
3673
+ return f;
3674
+ h = y(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
3675
+ } else
3676
+ break;
3677
+ }
3678
+ if (u.has(l))
3679
+ return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3680
+ l === "other" && (s = !0), this.bumpSpace();
3681
+ var p = this.clonePosition();
3682
+ if (!this.bumpIf("{"))
3683
+ return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
3684
+ var d = this.parseMessage(t + 1, r, n);
3685
+ if (d.err)
3686
+ return d;
3687
+ var m = this.tryParseArgumentClose(p);
3688
+ if (m.err)
3689
+ return m;
3690
+ a.push([
3691
+ l,
3692
+ {
3693
+ value: d.val,
3694
+ location: y(p, this.clonePosition())
3695
+ }
3696
+ ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
3697
+ }
3698
+ return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3699
+ }, e.prototype.tryParseDecimalInteger = function(t, r) {
3700
+ var n = 1, i = this.clonePosition();
3701
+ this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3702
+ for (var o = !1, s = 0; !this.isEOF(); ) {
3703
+ var a = this.char();
3704
+ if (a >= 48 && a <= 57)
3705
+ o = !0, s = s * 10 + (a - 48), this.bump();
3706
+ else
3707
+ break;
3708
+ }
3709
+ var u = y(i, this.clonePosition());
3710
+ return o ? (s *= n, fi(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
3711
+ }, e.prototype.offset = function() {
3712
+ return this.position.offset;
3713
+ }, e.prototype.isEOF = function() {
3714
+ return this.offset() === this.message.length;
3715
+ }, e.prototype.clonePosition = function() {
3716
+ return {
3717
+ offset: this.position.offset,
3718
+ line: this.position.line,
3719
+ column: this.position.column
3720
+ };
3721
+ }, e.prototype.char = function() {
3722
+ var t = this.position.offset;
3723
+ if (t >= this.message.length)
3724
+ throw Error("out of bound");
3725
+ var r = yr(this.message, t);
3726
+ if (r === void 0)
3727
+ throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3728
+ return r;
3729
+ }, e.prototype.error = function(t, r) {
3730
+ return {
3731
+ val: null,
3732
+ err: {
3733
+ kind: t,
3734
+ message: this.message,
3735
+ location: r
3736
+ }
3737
+ };
3738
+ }, e.prototype.bump = function() {
3739
+ if (!this.isEOF()) {
3740
+ var t = this.char();
3741
+ 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);
3742
+ }
3743
+ }, e.prototype.bumpIf = function(t) {
3744
+ if (Pt(this.message, t, this.offset())) {
3745
+ for (var r = 0; r < t.length; r++)
3746
+ this.bump();
3747
+ return !0;
3748
+ }
3749
+ return !1;
3750
+ }, e.prototype.bumpUntil = function(t) {
3751
+ var r = this.offset(), n = this.message.indexOf(t, r);
3752
+ return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3753
+ }, e.prototype.bumpTo = function(t) {
3754
+ if (this.offset() > t)
3755
+ throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3756
+ for (t = Math.min(t, this.message.length); ; ) {
3757
+ var r = this.offset();
3758
+ if (r === t)
3759
+ break;
3760
+ if (r > t)
3761
+ throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3762
+ if (this.bump(), this.isEOF())
3763
+ break;
3764
+ }
3765
+ }, e.prototype.bumpSpace = function() {
3766
+ for (; !this.isEOF() && vr(this.char()); )
3767
+ this.bump();
3768
+ }, e.prototype.peek = function() {
3769
+ if (this.isEOF())
3770
+ return null;
3771
+ var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3772
+ return n != null ? n : null;
3773
+ }, e;
3774
+ }()
3775
+ );
3776
+ function et(e) {
3777
+ return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3778
+ }
3779
+ function yi(e) {
3780
+ return et(e) || e === 47;
3781
+ }
3782
+ function gi(e) {
3783
+ 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;
3784
+ }
3785
+ function vr(e) {
3786
+ return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3787
+ }
3788
+ function vi(e) {
3789
+ 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;
3790
+ }
3791
+ function tt(e) {
3792
+ e.forEach(function(t) {
3793
+ if (delete t.location, lr(t) || hr(t))
3794
+ for (var r in t.options)
3795
+ delete t.options[r].location, tt(t.options[r].value);
3796
+ else sr(t) && fr(t.style) || (ar(t) || ur(t)) && qe(t.style) ? delete t.style.location : cr(t) && tt(t.children);
3797
+ });
3798
+ }
3799
+ function _i(e, t) {
3800
+ t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3801
+ var r = new bi(e, t).parse();
3802
+ if (r.err) {
3803
+ var n = SyntaxError(b[r.err.kind]);
3804
+ throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3805
+ }
3806
+ return t != null && t.captureLocation || tt(r.val), r.val;
3807
+ }
3808
+ function De(e, t) {
3809
+ var r = t && t.cache ? t.cache : Hi, n = t && t.serializer ? t.serializer : wi, i = t && t.strategy ? t.strategy : xi;
3810
+ return i(e, {
3811
+ cache: r,
3812
+ serializer: n
3813
+ });
3814
+ }
3815
+ function Ei(e) {
3816
+ return e == null || typeof e == "number" || typeof e == "boolean";
3817
+ }
3818
+ function _r(e, t, r, n) {
3819
+ var i = Ei(n) ? n : r(n), o = t.get(i);
3820
+ return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
3821
+ }
3822
+ function Er(e, t, r) {
3823
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
3824
+ return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
3825
+ }
3826
+ function st(e, t, r, n, i) {
3827
+ return r.bind(t, e, n, i);
3828
+ }
3829
+ function xi(e, t) {
3830
+ var r = e.length === 1 ? _r : Er;
3831
+ return st(e, this, r, t.cache.create(), t.serializer);
3832
+ }
3833
+ function Si(e, t) {
3834
+ return st(e, this, Er, t.cache.create(), t.serializer);
3835
+ }
3836
+ function Ti(e, t) {
3837
+ return st(e, this, _r, t.cache.create(), t.serializer);
3838
+ }
3839
+ var wi = function() {
3840
+ return JSON.stringify(arguments);
3841
+ };
3842
+ function at() {
3843
+ this.cache = /* @__PURE__ */ Object.create(null);
3844
+ }
3845
+ at.prototype.get = function(e) {
3846
+ return this.cache[e];
3847
+ };
3848
+ at.prototype.set = function(e, t) {
3849
+ this.cache[e] = t;
3850
+ };
3851
+ var Hi = {
3852
+ create: function() {
3853
+ return new at();
3854
+ }
3855
+ }, Ge = {
3856
+ variadic: Si,
3857
+ monadic: Ti
3858
+ }, Y;
3859
+ (function(e) {
3860
+ e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3861
+ })(Y || (Y = {}));
3862
+ var Oe = (
3863
+ /** @class */
3864
+ function(e) {
3865
+ R(t, e);
3866
+ function t(r, n, i) {
3867
+ var o = e.call(this, r) || this;
3868
+ return o.code = n, o.originalMessage = i, o;
3869
+ }
3870
+ return t.prototype.toString = function() {
3871
+ return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3872
+ }, t;
3873
+ }(Error)
3874
+ ), Lt = (
3875
+ /** @class */
3876
+ function(e) {
3877
+ R(t, e);
3878
+ function t(r, n, i, o) {
3879
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, o) || this;
3880
+ }
3881
+ return t;
3882
+ }(Oe)
3883
+ ), Bi = (
3884
+ /** @class */
3885
+ function(e) {
3886
+ R(t, e);
3887
+ function t(r, n, i) {
3888
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
3889
+ }
3890
+ return t;
3891
+ }(Oe)
3892
+ ), Ai = (
3893
+ /** @class */
3894
+ function(e) {
3895
+ R(t, e);
3896
+ function t(r, n) {
3897
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
3898
+ }
3899
+ return t;
3900
+ }(Oe)
3901
+ ), T;
3902
+ (function(e) {
3903
+ e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3904
+ })(T || (T = {}));
3905
+ function Pi(e) {
3906
+ return e.length < 2 ? e : e.reduce(function(t, r) {
3907
+ var n = t[t.length - 1];
3908
+ return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
3909
+ }, []);
3910
+ }
3911
+ function Oi(e) {
3912
+ return typeof e == "function";
3913
+ }
3914
+ function Ee(e, t, r, n, i, o, s) {
3915
+ if (e.length === 1 && wt(e[0]))
3916
+ return [
3917
+ {
3918
+ type: T.literal,
3919
+ value: e[0].value
3920
+ }
3921
+ ];
3922
+ for (var a = [], u = 0, l = e; u < l.length; u++) {
3923
+ var h = l[u];
3924
+ if (wt(h)) {
3925
+ a.push({
3926
+ type: T.literal,
3927
+ value: h.value
3928
+ });
3929
+ continue;
3930
+ }
3931
+ if (Wn(h)) {
3932
+ typeof o == "number" && a.push({
3933
+ type: T.literal,
3934
+ value: r.getNumberFormat(t).format(o)
3935
+ });
3936
+ continue;
3937
+ }
3938
+ var c = h.value;
3939
+ if (!(i && c in i))
3940
+ throw new Ai(c, s);
3941
+ var f = i[c];
3942
+ if (Xn(h)) {
3943
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3944
+ type: typeof f == "string" ? T.literal : T.object,
3945
+ value: f
3946
+ });
3947
+ continue;
3948
+ }
3949
+ if (ar(h)) {
3950
+ var p = typeof h.style == "string" ? n.date[h.style] : qe(h.style) ? h.style.parsedOptions : void 0;
3951
+ a.push({
3952
+ type: T.literal,
3953
+ value: r.getDateTimeFormat(t, p).format(f)
3954
+ });
3955
+ continue;
3956
+ }
3957
+ if (ur(h)) {
3958
+ var p = typeof h.style == "string" ? n.time[h.style] : qe(h.style) ? h.style.parsedOptions : n.time.medium;
3959
+ a.push({
3960
+ type: T.literal,
3961
+ value: r.getDateTimeFormat(t, p).format(f)
3962
+ });
3963
+ continue;
3964
+ }
3965
+ if (sr(h)) {
3966
+ var p = typeof h.style == "string" ? n.number[h.style] : fr(h.style) ? h.style.parsedOptions : void 0;
3967
+ p && p.scale && (f = f * (p.scale || 1)), a.push({
3968
+ type: T.literal,
3969
+ value: r.getNumberFormat(t, p).format(f)
3970
+ });
3971
+ continue;
3972
+ }
3973
+ if (cr(h)) {
3974
+ var d = h.children, m = h.value, E = i[m];
3975
+ if (!Oi(E))
3976
+ throw new Bi(m, "function", s);
3977
+ var w = Ee(d, t, r, n, i, o), H = E(w.map(function(B) {
3978
+ return B.value;
3979
+ }));
3980
+ Array.isArray(H) || (H = [H]), a.push.apply(a, H.map(function(B) {
3981
+ return {
3982
+ type: typeof B == "string" ? T.literal : T.object,
3983
+ value: B
3984
+ };
3985
+ }));
3986
+ }
3987
+ if (lr(h)) {
3988
+ var S = h.options[f] || h.options.other;
3989
+ if (!S)
3990
+ throw new Lt(h.value, f, Object.keys(h.options), s);
3991
+ a.push.apply(a, Ee(S.value, t, r, n, i));
3992
+ continue;
3993
+ }
3994
+ if (hr(h)) {
3995
+ var S = h.options["=".concat(f)];
3996
+ if (!S) {
3997
+ if (!Intl.PluralRules)
3998
+ throw new Oe(`Intl.PluralRules is not available in this environment.
3999
+ Try polyfilling it using "@formatjs/intl-pluralrules"
4000
+ `, Y.MISSING_INTL_API, s);
4001
+ var I = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
4002
+ S = h.options[I] || h.options.other;
4003
+ }
4004
+ if (!S)
4005
+ throw new Lt(h.value, f, Object.keys(h.options), s);
4006
+ a.push.apply(a, Ee(S.value, t, r, n, i, f - (h.offset || 0)));
4007
+ continue;
4008
+ }
4009
+ }
4010
+ return Pi(a);
4011
+ }
4012
+ function Ii(e, t) {
4013
+ return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
4014
+ return r[n] = v(v({}, e[n]), t[n] || {}), r;
4015
+ }, {})) : e;
4016
+ }
4017
+ function Li(e, t) {
4018
+ return t ? Object.keys(e).reduce(function(r, n) {
4019
+ return r[n] = Ii(e[n], t[n]), r;
4020
+ }, v({}, e)) : e;
4021
+ }
4022
+ function Fe(e) {
4023
+ return {
4024
+ create: function() {
4025
+ return {
4026
+ get: function(t) {
4027
+ return e[t];
4028
+ },
4029
+ set: function(t, r) {
4030
+ e[t] = r;
4031
+ }
4032
+ };
4033
+ }
4034
+ };
4035
+ }
4036
+ function Ci(e) {
4037
+ return e === void 0 && (e = {
4038
+ number: {},
4039
+ dateTime: {},
4040
+ pluralRules: {}
4041
+ }), {
4042
+ getNumberFormat: De(function() {
4043
+ for (var t, r = [], n = 0; n < arguments.length; n++)
4044
+ r[n] = arguments[n];
4045
+ return new ((t = Intl.NumberFormat).bind.apply(t, Q([void 0], r, !1)))();
4046
+ }, {
4047
+ cache: Fe(e.number),
4048
+ strategy: Ge.variadic
4049
+ }),
4050
+ getDateTimeFormat: De(function() {
4051
+ for (var t, r = [], n = 0; n < arguments.length; n++)
4052
+ r[n] = arguments[n];
4053
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Q([void 0], r, !1)))();
4054
+ }, {
4055
+ cache: Fe(e.dateTime),
4056
+ strategy: Ge.variadic
4057
+ }),
4058
+ getPluralRules: De(function() {
4059
+ for (var t, r = [], n = 0; n < arguments.length; n++)
4060
+ r[n] = arguments[n];
4061
+ return new ((t = Intl.PluralRules).bind.apply(t, Q([void 0], r, !1)))();
4062
+ }, {
4063
+ cache: Fe(e.pluralRules),
4064
+ strategy: Ge.variadic
4065
+ })
4066
+ };
4067
+ }
4068
+ var Ni = (
4069
+ /** @class */
4070
+ function() {
4071
+ function e(t, r, n, i) {
4072
+ var o = this;
4073
+ if (r === void 0 && (r = e.defaultLocale), this.formatterCache = {
4074
+ number: {},
4075
+ dateTime: {},
4076
+ pluralRules: {}
4077
+ }, this.format = function(u) {
4078
+ var l = o.formatToParts(u);
4079
+ if (l.length === 1)
4080
+ return l[0].value;
4081
+ var h = l.reduce(function(c, f) {
4082
+ return !c.length || f.type !== T.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
4083
+ }, []);
4084
+ return h.length <= 1 ? h[0] || "" : h;
4085
+ }, this.formatToParts = function(u) {
4086
+ return Ee(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
4087
+ }, this.resolvedOptions = function() {
4088
+ var u;
4089
+ return {
4090
+ locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
4091
+ };
4092
+ }, this.getAst = function() {
4093
+ return o.ast;
4094
+ }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
4095
+ if (this.message = t, !e.__parse)
4096
+ throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
4097
+ var s = i || {};
4098
+ s.formatters;
4099
+ var a = dn(s, ["formatters"]);
4100
+ this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
4101
+ } else
4102
+ this.ast = t;
4103
+ if (!Array.isArray(this.ast))
4104
+ throw new TypeError("A message must be provided as a String or AST.");
4105
+ this.formats = Li(e.formats, n), this.formatters = i && i.formatters || Ci(this.formatterCache);
4106
+ }
4107
+ return Object.defineProperty(e, "defaultLocale", {
4108
+ get: function() {
4109
+ return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
4110
+ },
4111
+ enumerable: !1,
4112
+ configurable: !0
4113
+ }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
4114
+ if (typeof Intl.Locale != "undefined") {
4115
+ var r = Intl.NumberFormat.supportedLocalesOf(t);
4116
+ return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
4117
+ }
4118
+ }, e.__parse = _i, e.formats = {
4119
+ number: {
4120
+ integer: {
4121
+ maximumFractionDigits: 0
4122
+ },
4123
+ currency: {
4124
+ style: "currency"
4125
+ },
4126
+ percent: {
4127
+ style: "percent"
4128
+ }
4129
+ },
4130
+ date: {
4131
+ short: {
4132
+ month: "numeric",
4133
+ day: "numeric",
4134
+ year: "2-digit"
4135
+ },
4136
+ medium: {
4137
+ month: "short",
4138
+ day: "numeric",
4139
+ year: "numeric"
4140
+ },
4141
+ long: {
4142
+ month: "long",
4143
+ day: "numeric",
4144
+ year: "numeric"
4145
+ },
4146
+ full: {
4147
+ weekday: "long",
4148
+ month: "long",
4149
+ day: "numeric",
4150
+ year: "numeric"
4151
+ }
4152
+ },
4153
+ time: {
4154
+ short: {
4155
+ hour: "numeric",
4156
+ minute: "numeric"
4157
+ },
4158
+ medium: {
4159
+ hour: "numeric",
4160
+ minute: "numeric",
4161
+ second: "numeric"
4162
+ },
4163
+ long: {
4164
+ hour: "numeric",
4165
+ minute: "numeric",
4166
+ second: "numeric",
4167
+ timeZoneName: "short"
4168
+ },
4169
+ full: {
4170
+ hour: "numeric",
4171
+ minute: "numeric",
4172
+ second: "numeric",
4173
+ timeZoneName: "short"
4174
+ }
4175
+ }
4176
+ }, e;
4177
+ }()
4178
+ );
4179
+ function Mi(e, t) {
4180
+ if (t == null)
4181
+ return;
4182
+ if (t in e)
4183
+ return e[t];
4184
+ const r = t.split(".");
4185
+ let n = e;
4186
+ for (let i = 0; i < r.length; i++)
4187
+ if (typeof n == "object") {
4188
+ if (i > 0) {
4189
+ const o = r.slice(i, r.length).join(".");
4190
+ if (o in n) {
4191
+ n = n[o];
4192
+ break;
4193
+ }
4194
+ }
4195
+ n = n[r[i]];
4196
+ } else
4197
+ n = void 0;
4198
+ return n;
4199
+ }
4200
+ const D = {}, $i = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), xr = (e, t) => {
4201
+ if (t == null)
4202
+ return;
4203
+ if (t in D && e in D[t])
4204
+ return D[t][e];
4205
+ const r = Ie(t);
4206
+ for (let n = 0; n < r.length; n++) {
4207
+ const i = r[n], o = Ui(i, e);
4208
+ if (o)
4209
+ return $i(e, t, o);
4210
+ }
4211
+ };
4212
+ let ut;
4213
+ const pe = Pe({});
4214
+ function Ri(e) {
4215
+ return ut[e] || null;
4216
+ }
4217
+ function Sr(e) {
4218
+ return e in ut;
4219
+ }
4220
+ function Ui(e, t) {
4221
+ if (!Sr(e))
4222
+ return null;
4223
+ const r = Ri(e);
4224
+ return Mi(r, t);
4225
+ }
4226
+ function Di(e) {
4227
+ if (e == null)
4228
+ return;
4229
+ const t = Ie(e);
4230
+ for (let r = 0; r < t.length; r++) {
4231
+ const n = t[r];
4232
+ if (Sr(n))
4233
+ return n;
4234
+ }
4235
+ }
4236
+ function Tr(e, ...t) {
4237
+ delete D[e], pe.update((r) => (r[e] = Vn.all([r[e] || {}, ...t]), r));
4238
+ }
4239
+ ee(
4240
+ [pe],
4241
+ ([e]) => Object.keys(e)
4242
+ );
4243
+ pe.subscribe((e) => ut = e);
4244
+ const xe = {};
4245
+ function Gi(e, t) {
4246
+ xe[e].delete(t), xe[e].size === 0 && delete xe[e];
4247
+ }
4248
+ function wr(e) {
4249
+ return xe[e];
4250
+ }
4251
+ function Fi(e) {
4252
+ return Ie(e).map((t) => {
4253
+ const r = wr(t);
4254
+ return [t, r ? [...r] : []];
4255
+ }).filter(([, t]) => t.length > 0);
4256
+ }
4257
+ function rt(e) {
4258
+ return e == null ? !1 : Ie(e).some(
4259
+ (t) => {
4260
+ var r;
4261
+ return (r = wr(t)) == null ? void 0 : r.size;
4262
+ }
4263
+ );
4264
+ }
4265
+ function ji(e, t) {
4266
+ return Promise.all(
4267
+ t.map((n) => (Gi(e, n), n().then((i) => i.default || i)))
4268
+ ).then((n) => Tr(e, ...n));
4269
+ }
4270
+ const oe = {};
4271
+ function Hr(e) {
4272
+ if (!rt(e))
4273
+ return e in oe ? oe[e] : Promise.resolve();
4274
+ const t = Fi(e);
4275
+ return oe[e] = Promise.all(
4276
+ t.map(
4277
+ ([r, n]) => ji(r, n)
4278
+ )
4279
+ ).then(() => {
4280
+ if (rt(e))
4281
+ return Hr(e);
4282
+ delete oe[e];
4283
+ }), oe[e];
4284
+ }
4285
+ const ki = {
4286
+ number: {
4287
+ scientific: { notation: "scientific" },
4288
+ engineering: { notation: "engineering" },
4289
+ compactLong: { notation: "compact", compactDisplay: "long" },
4290
+ compactShort: { notation: "compact", compactDisplay: "short" }
4291
+ },
4292
+ date: {
4293
+ short: { month: "numeric", day: "numeric", year: "2-digit" },
4294
+ medium: { month: "short", day: "numeric", year: "numeric" },
4295
+ long: { month: "long", day: "numeric", year: "numeric" },
4296
+ full: { weekday: "long", month: "long", day: "numeric", year: "numeric" }
4297
+ },
4298
+ time: {
4299
+ short: { hour: "numeric", minute: "numeric" },
4300
+ medium: { hour: "numeric", minute: "numeric", second: "numeric" },
4301
+ long: {
4302
+ hour: "numeric",
4303
+ minute: "numeric",
4304
+ second: "numeric",
4305
+ timeZoneName: "short"
4306
+ },
4307
+ full: {
4308
+ hour: "numeric",
4309
+ minute: "numeric",
4310
+ second: "numeric",
4311
+ timeZoneName: "short"
4312
+ }
4313
+ }
4314
+ }, Vi = {
4315
+ fallbackLocale: null,
4316
+ loadingDelay: 200,
4317
+ formats: ki,
4318
+ warnOnMissingMessages: !0,
4319
+ handleMissingMessage: void 0,
4320
+ ignoreTag: !0
4321
+ }, Xi = Vi;
4322
+ function K() {
4323
+ return Xi;
4324
+ }
4325
+ const je = Pe(!1);
4326
+ var Wi = Object.defineProperty, zi = Object.defineProperties, Zi = Object.getOwnPropertyDescriptors, Ct = Object.getOwnPropertySymbols, Qi = Object.prototype.hasOwnProperty, qi = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? Wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ji = (e, t) => {
4327
+ for (var r in t || (t = {}))
4328
+ Qi.call(t, r) && Nt(e, r, t[r]);
4329
+ if (Ct)
4330
+ for (var r of Ct(t))
4331
+ qi.call(t, r) && Nt(e, r, t[r]);
4332
+ return e;
4333
+ }, Yi = (e, t) => zi(e, Zi(t));
4334
+ let nt;
4335
+ const He = Pe(null);
4336
+ function Mt(e) {
4337
+ return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4338
+ }
4339
+ function Ie(e, t = K().fallbackLocale) {
4340
+ const r = Mt(e);
4341
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Mt(t)])] : r;
4342
+ }
4343
+ function k() {
4344
+ return nt != null ? nt : void 0;
4345
+ }
4346
+ He.subscribe((e) => {
4347
+ nt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4348
+ });
4349
+ const Ki = (e) => {
4350
+ if (e && Di(e) && rt(e)) {
4351
+ const { loadingDelay: t } = K();
4352
+ let r;
4353
+ return typeof window != "undefined" && k() != null && t ? r = window.setTimeout(
4354
+ () => je.set(!0),
4355
+ t
4356
+ ) : je.set(!0), Hr(e).then(() => {
4357
+ He.set(e);
4358
+ }).finally(() => {
4359
+ clearTimeout(r), je.set(!1);
4360
+ });
4361
+ }
4362
+ return He.set(e);
4363
+ }, te = Yi(Ji({}, He), {
4364
+ set: Ki
4365
+ }), Le = (e) => {
4366
+ const t = /* @__PURE__ */ Object.create(null);
4367
+ return (n) => {
4368
+ const i = JSON.stringify(n);
4369
+ return i in t ? t[i] : t[i] = e(n);
4370
+ };
4371
+ };
4372
+ var eo = Object.defineProperty, Be = Object.getOwnPropertySymbols, Br = Object.prototype.hasOwnProperty, Ar = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
4373
+ for (var r in t || (t = {}))
4374
+ Br.call(t, r) && $t(e, r, t[r]);
4375
+ if (Be)
4376
+ for (var r of Be(t))
4377
+ Ar.call(t, r) && $t(e, r, t[r]);
4378
+ return e;
4379
+ }, re = (e, t) => {
4380
+ var r = {};
4381
+ for (var n in e)
4382
+ Br.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4383
+ if (e != null && Be)
4384
+ for (var n of Be(e))
4385
+ t.indexOf(n) < 0 && Ar.call(e, n) && (r[n] = e[n]);
4386
+ return r;
4387
+ };
4388
+ const le = (e, t) => {
4389
+ const { formats: r } = K();
4390
+ if (e in r && t in r[e])
4391
+ return r[e][t];
4392
+ throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4393
+ }, to = Le(
4394
+ (e) => {
4395
+ var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
4396
+ if (r == null)
4397
+ throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4398
+ return n && (i = le("number", n)), new Intl.NumberFormat(r, i);
4399
+ }
4400
+ ), ro = Le(
4401
+ (e) => {
4402
+ var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
4403
+ if (r == null)
4404
+ throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4405
+ return n ? i = le("date", n) : Object.keys(i).length === 0 && (i = le("date", "short")), new Intl.DateTimeFormat(r, i);
4406
+ }
4407
+ ), no = Le(
4408
+ (e) => {
4409
+ var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
4410
+ if (r == null)
4411
+ throw new Error(
4412
+ '[svelte-i18n] A "locale" must be set to format time values'
4413
+ );
4414
+ return n ? i = le("time", n) : Object.keys(i).length === 0 && (i = le("time", "short")), new Intl.DateTimeFormat(r, i);
4415
+ }
4416
+ ), io = (e = {}) => {
4417
+ var t = e, {
4418
+ locale: r = k()
4419
+ } = t, n = re(t, [
4420
+ "locale"
4421
+ ]);
4422
+ return to(lt({ locale: r }, n));
4423
+ }, oo = (e = {}) => {
4424
+ var t = e, {
4425
+ locale: r = k()
4426
+ } = t, n = re(t, [
4427
+ "locale"
4428
+ ]);
4429
+ return ro(lt({ locale: r }, n));
4430
+ }, so = (e = {}) => {
4431
+ var t = e, {
4432
+ locale: r = k()
4433
+ } = t, n = re(t, [
4434
+ "locale"
4435
+ ]);
4436
+ return no(lt({ locale: r }, n));
4437
+ }, ao = Le(
4438
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4439
+ (e, t = k()) => new Ni(e, t, K().formats, {
4440
+ ignoreTag: K().ignoreTag
4441
+ })
4442
+ ), uo = (e, t = {}) => {
4443
+ var r, n, i, o;
4444
+ let s = t;
4445
+ typeof e == "object" && (s = e, e = s.id);
4446
+ const {
4447
+ values: a,
4448
+ locale: u = k(),
4449
+ default: l
4450
+ } = s;
4451
+ if (u == null)
4452
+ throw new Error(
4453
+ "[svelte-i18n] Cannot format a message without first setting the initial locale."
4454
+ );
4455
+ let h = xr(e, u);
4456
+ if (!h)
4457
+ h = (o = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
4458
+ else if (typeof h != "string")
4459
+ return console.warn(
4460
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4461
+ ), h;
4462
+ if (!a)
4463
+ return h;
4464
+ let c = h;
4465
+ try {
4466
+ c = ao(h, u).format(a);
4467
+ } catch (f) {
4468
+ f instanceof Error && console.warn(
4469
+ `[svelte-i18n] Message "${e}" has syntax error:`,
4470
+ f.message
4471
+ );
4472
+ }
4473
+ return c;
4474
+ }, lo = (e, t) => so(t).format(e), ho = (e, t) => oo(t).format(e), co = (e, t) => io(t).format(e), fo = (e, t = k()) => xr(e, t), po = ee([te, pe], () => uo);
4475
+ ee([te], () => lo);
4476
+ ee([te], () => ho);
4477
+ ee([te], () => co);
4478
+ ee([te, pe], () => fo);
4479
+ window.emWidgets = { topic: Bn };
4480
+ const Qo = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), mo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4481
+ function Rt(e, t) {
4482
+ Tr(e, t);
4483
+ }
4484
+ function bo(e) {
4485
+ te.set(e);
4486
+ }
4487
+ const Ut = {
4488
+ en: {
4489
+ logoutButton: "Logout"
4490
+ },
4491
+ "zh-hk": {
4492
+ logoutButton: "登出"
4493
+ },
4494
+ fr: {
4495
+ logoutButton: "Déconnexion"
4496
+ },
4497
+ tr: {
4498
+ logoutButton: "Çıkış Yap"
4499
+ },
4500
+ ro: {
4501
+ logoutButton: "Iesire"
4502
+ },
4503
+ es: {
4504
+ logoutButton: "Cerrar sesión"
4505
+ },
4506
+ pt: {
4507
+ logoutButton: "Sair"
4508
+ },
4509
+ hr: {
4510
+ logoutButton: "Odjava"
4511
+ },
4512
+ "pt-br": {
4513
+ logoutButton: "Fechar Sessão"
4514
+ },
4515
+ "es-mx": {
4516
+ logoutButton: "Cerrar sesión"
4517
+ }
4518
+ };
4519
+ function yo(e) {
4520
+ kr(e, "svelte-1oay3a3", ".svelte-1oay3a3.svelte-1oay3a3,.svelte-1oay3a3.svelte-1oay3a3::before,.svelte-1oay3a3.svelte-1oay3a3::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox.svelte-1oay3a3.svelte-1oay3a3{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox.svelte-1oay3a3 .PlayerLogoutText.svelte-1oay3a3{margin-left:20px}.PlayerAccountMenuItemBox.svelte-1oay3a3 svg.svelte-1oay3a3{fill:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox.svelte-1oay3a3.svelte-1oay3a3{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox.svelte-1oay3a3 svg.svelte-1oay3a3{fill:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #FFFFFF))}");
4521
+ }
4522
+ function go(e) {
4523
+ let t, r, n, i = (
4524
+ /*$_*/
4525
+ e[2]("logoutButton") + ""
4526
+ ), o, s, a;
4527
+ return {
4528
+ c() {
4529
+ t = C("div"), r = C("button"), n = C("span"), o = fe(i), x(n, "class", "svelte-1oay3a3"), x(r, "class", "svelte-1oay3a3"), x(t, "class", "GeneralLogout svelte-1oay3a3");
4530
+ },
4531
+ m(u, l) {
4532
+ ce(u, t, l), P(t, r), P(r, n), P(n, o), s || (a = Wt(
4533
+ r,
4534
+ "click",
4535
+ /*click_handler_1*/
4536
+ e[13]
4537
+ ), s = !0);
4538
+ },
4539
+ p(u, l) {
4540
+ l & /*$_*/
4541
+ 4 && i !== (i = /*$_*/
4542
+ u[2]("logoutButton") + "") && zt(o, i);
4543
+ },
4544
+ d(u) {
4545
+ u && j(t), s = !1, a();
4546
+ }
4547
+ };
4548
+ }
4549
+ function vo(e) {
4550
+ let t, r, n, i, o, s, a, u, l, h, c, f = !/*isMobile*/
4551
+ e[3] && _o(e);
4552
+ return {
4553
+ c() {
4554
+ t = C("p"), r = C("span"), n = ne("svg"), i = ne("defs"), o = ne("style"), s = fe(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emfe-w-color-white, #FFFFFF);}"), a = ne("path"), u = ne("path"), l = Xr(), f && f.c(), x(o, "class", "svelte-1oay3a3"), x(i, "class", "svelte-1oay3a3"), x(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd svelte-1oay3a3"), x(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), x(u, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd svelte-1oay3a3"), x(u, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), x(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), x(n, "data-name", "Layer 1"), x(n, "xmlns", "http://www.w3.org/2000/svg"), x(n, "viewBox", "0 0 150 150"), x(n, "class", "svelte-1oay3a3"), zr(r, "width", /*isMobile*/
4555
+ e[3] ? (
4556
+ /*mediaQuery*/
4557
+ e[4].matches ? "50px" : "24px"
4558
+ ) : "20px"), x(r, "class", "svelte-1oay3a3"), x(t, "class", "PlayerAccountMenuItemBox " + /*isMobile*/
4559
+ (e[3] ? "PlayerAccountMenuItemBoxMobile" : "") + " " + /*mediaQuery*/
4560
+ (e[4].matches && /*isMobile*/
4561
+ e[3] ? "PlayerAccountMenuItemBoxTablet" : "") + " svelte-1oay3a3");
4562
+ },
4563
+ m(p, d) {
4564
+ ce(p, t, d), P(t, r), P(r, n), P(n, i), P(i, o), P(o, s), P(n, a), P(n, u), P(t, l), f && f.m(t, null), h || (c = Wt(
4565
+ t,
4566
+ "click",
4567
+ /*click_handler*/
4568
+ e[12]
4569
+ ), h = !0);
4570
+ },
4571
+ p(p, d) {
4572
+ /*isMobile*/
4573
+ p[3] || f.p(p, d);
4574
+ },
4575
+ d(p) {
4576
+ p && j(t), f && f.d(), h = !1, c();
4577
+ }
4578
+ };
4579
+ }
4580
+ function _o(e) {
4581
+ let t, r = (
4582
+ /*$_*/
4583
+ e[2]("logoutButton") + ""
4584
+ ), n;
4585
+ return {
4586
+ c() {
4587
+ t = C("span"), n = fe(r), x(t, "class", "PlayerLogoutText svelte-1oay3a3");
4588
+ },
4589
+ m(i, o) {
4590
+ ce(i, t, o), P(t, n);
4591
+ },
4592
+ p(i, o) {
4593
+ o & /*$_*/
4594
+ 4 && r !== (r = /*$_*/
4595
+ i[2]("logoutButton") + "") && zt(n, r);
4596
+ },
4597
+ d(i) {
4598
+ i && j(t);
4599
+ }
4600
+ };
4601
+ }
4602
+ function Eo(e) {
4603
+ let t;
4604
+ function r(o, s) {
4605
+ return (
4606
+ /*buttonlocation*/
4607
+ o[0] === "PlayerAccountMenu" ? vo : go
4608
+ );
4609
+ }
4610
+ let n = r(e), i = n(e);
4611
+ return {
4612
+ c() {
4613
+ t = C("div"), i.c(), x(t, "class", "svelte-1oay3a3");
4614
+ },
4615
+ m(o, s) {
4616
+ ce(o, t, s), i.m(t, null), e[14](t);
4617
+ },
4618
+ p(o, [s]) {
4619
+ n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
4620
+ },
4621
+ i: A,
4622
+ o: A,
4623
+ d(o) {
4624
+ o && j(t), i.d(), e[14](null);
4625
+ }
4626
+ };
4627
+ }
4628
+ function xo(e, t, r) {
4629
+ let n;
4630
+ Gr(e, po, (g) => r(2, n = g));
4631
+ let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: h = "" } = t, c = "", f = !1, p, d = window.navigator.userAgent, m = mo(d) !== "PC";
4632
+ const E = window.matchMedia("(min-width: 768px)"), w = () => {
4633
+ fetch(h).then((L) => L.json()).then((L) => {
4634
+ Object.keys(L).forEach((G) => {
4635
+ Rt(G, L[G]);
4636
+ });
4637
+ }).catch((L) => {
4638
+ console.log(L);
4639
+ });
4640
+ };
4641
+ Object.keys(Ut).forEach((g) => {
4642
+ Rt(g, Ut[g]);
4643
+ });
4644
+ const H = () => {
4645
+ let g = new Headers();
4646
+ g.append("Content-type", "application/json"), g.append("X-SessionID", o);
4647
+ let L = { method: "DELETE", headers: g };
4648
+ fetch(`${i}/v1/player/session/player`, L).then((G) => {
4649
+ window.postMessage({ type: "LogoutSuccessfull" }, window.location.href);
4650
+ });
4651
+ }, S = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", f = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", f = !0, console.error(c)), f), I = () => {
4652
+ bo(a);
4653
+ }, B = () => {
4654
+ let g = document.createElement("style");
4655
+ g.innerHTML = u, p.appendChild(g);
4656
+ }, U = () => {
4657
+ let g = new URL(l), L = document.createElement("style");
4658
+ fetch(g.href).then((G) => G.text()).then((G) => {
4659
+ L.innerHTML = G, setTimeout(
4660
+ () => {
4661
+ p.appendChild(L);
4662
+ },
4663
+ 1
4664
+ ), setTimeout(
4665
+ () => {
4666
+ },
4667
+ 500
4668
+ );
4669
+ });
4670
+ }, de = () => H(), Or = () => H();
4671
+ function Ir(g) {
4672
+ ke[g ? "unshift" : "push"](() => {
4673
+ p = g, r(1, p);
4674
+ });
4675
+ }
4676
+ return e.$$set = (g) => {
4677
+ "endpoint" in g && r(6, i = g.endpoint), "session" in g && r(7, o = g.session), "buttonlocation" in g && r(0, s = g.buttonlocation), "lang" in g && r(8, a = g.lang), "clientstyling" in g && r(9, u = g.clientstyling), "clientstylingurl" in g && r(10, l = g.clientstylingurl), "translationurl" in g && r(11, h = g.translationurl);
4678
+ }, e.$$.update = () => {
4679
+ e.$$.dirty & /*endpoint, session, buttonlocation*/
4680
+ 193 && i && o && s && S(), e.$$.dirty & /*lang*/
4681
+ 256 && a && I(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4682
+ 514 && u && p && B(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4683
+ 1026 && l && p && U(), e.$$.dirty & /*translationurl*/
4684
+ 2048 && h && w();
4685
+ }, [
4686
+ s,
4687
+ p,
4688
+ n,
4689
+ m,
4690
+ E,
4691
+ H,
4692
+ i,
4693
+ o,
4694
+ a,
4695
+ u,
4696
+ l,
4697
+ h,
4698
+ de,
4699
+ Or,
4700
+ Ir
4701
+ ];
4702
+ }
4703
+ class Pr extends fn {
4704
+ constructor(t) {
4705
+ super(), hn(
4706
+ this,
4707
+ t,
4708
+ xo,
4709
+ Eo,
4710
+ Gt,
4711
+ {
4712
+ endpoint: 6,
4713
+ session: 7,
4714
+ buttonlocation: 0,
4715
+ lang: 8,
4716
+ clientstyling: 9,
4717
+ clientstylingurl: 10,
4718
+ translationurl: 11
4719
+ },
4720
+ yo
4721
+ );
4722
+ }
4723
+ get endpoint() {
4724
+ return this.$$.ctx[6];
4725
+ }
4726
+ set endpoint(t) {
4727
+ this.$$set({ endpoint: t }), N();
4728
+ }
4729
+ get session() {
4730
+ return this.$$.ctx[7];
4731
+ }
4732
+ set session(t) {
4733
+ this.$$set({ session: t }), N();
4734
+ }
4735
+ get buttonlocation() {
4736
+ return this.$$.ctx[0];
4737
+ }
4738
+ set buttonlocation(t) {
4739
+ this.$$set({ buttonlocation: t }), N();
4740
+ }
4741
+ get lang() {
4742
+ return this.$$.ctx[8];
4743
+ }
4744
+ set lang(t) {
4745
+ this.$$set({ lang: t }), N();
4746
+ }
4747
+ get clientstyling() {
4748
+ return this.$$.ctx[9];
4749
+ }
4750
+ set clientstyling(t) {
4751
+ this.$$set({ clientstyling: t }), N();
4752
+ }
4753
+ get clientstylingurl() {
4754
+ return this.$$.ctx[10];
4755
+ }
4756
+ set clientstylingurl(t) {
4757
+ this.$$set({ clientstylingurl: t }), N();
4758
+ }
4759
+ get translationurl() {
4760
+ return this.$$.ctx[11];
4761
+ }
4762
+ set translationurl(t) {
4763
+ this.$$set({ translationurl: t }), N();
4764
+ }
4765
+ }
4766
+ cn(Pr, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4767
+ const qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4768
+ __proto__: null,
4769
+ default: Pr
4770
+ }, Symbol.toStringTag, { value: "Module" }));
4771
+ export {
4772
+ te as $,
4773
+ ko as A,
4774
+ Co as B,
4775
+ Oo as C,
4776
+ wo as D,
4777
+ Bo as E,
4778
+ Ao as F,
4779
+ Ho as G,
4780
+ on as H,
4781
+ Wo as I,
4782
+ No as J,
4783
+ Zo as K,
4784
+ Lo as L,
4785
+ Go as M,
4786
+ Ro as N,
4787
+ Uo as O,
4788
+ we as P,
4789
+ Do as Q,
4790
+ he as R,
4791
+ fn as S,
4792
+ Qo as T,
4793
+ Po as U,
4794
+ Io as V,
4795
+ zr as W,
4796
+ To as X,
4797
+ Rr as Y,
4798
+ Xo as Z,
4799
+ zo as _,
4800
+ Tr as a,
4801
+ Vo as a0,
4802
+ $o as a1,
4803
+ qo as a2,
4804
+ kr as b,
4805
+ cn as c,
4806
+ Xr as d,
4807
+ C as e,
4808
+ N as f,
4809
+ x as g,
4810
+ Fo as h,
4811
+ hn as i,
4812
+ Mo as j,
4813
+ ce as k,
4814
+ P as l,
4815
+ Wt as m,
4816
+ zt as n,
4817
+ A as o,
4818
+ j as p,
4819
+ Gr as q,
4820
+ F as r,
4821
+ Gt as s,
4822
+ fe as t,
4823
+ mo as u,
4824
+ jo as v,
4825
+ ne as w,
4826
+ ke as x,
4827
+ po as y,
4828
+ pe as z
4829
+ };