@everymatrix/casino-tournaments-page-controller 1.77.7 → 1.77.8

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