@everymatrix/casino-navigation-search 1.53.12 → 1.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,50 +1,79 @@
1
- function I() {
1
+ var nr = Object.defineProperty, ir = Object.defineProperties;
2
+ var sr = Object.getOwnPropertyDescriptors;
3
+ var qe = Object.getOwnPropertySymbols;
4
+ var or = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable;
5
+ var Ce = (e, t, r) => t in e ? nr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
6
+ for (var r in t || (t = {}))
7
+ or.call(t, r) && Ce(e, r, t[r]);
8
+ if (qe)
9
+ for (var r of qe(t))
10
+ ar.call(t, r) && Ce(e, r, t[r]);
11
+ return e;
12
+ }, Ye = (e, t) => ir(e, sr(t));
13
+ var O = (e, t, r) => Ce(e, typeof t != "symbol" ? t + "" : t, r);
14
+ var Ke = (e, t, r) => new Promise((n, i) => {
15
+ var s = (h) => {
16
+ try {
17
+ u(r.next(h));
18
+ } catch (a) {
19
+ i(a);
20
+ }
21
+ }, o = (h) => {
22
+ try {
23
+ u(r.throw(h));
24
+ } catch (a) {
25
+ i(a);
26
+ }
27
+ }, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
28
+ u((r = r.apply(e, t)).next());
29
+ });
30
+ function M() {
2
31
  }
3
- function dt(e) {
32
+ function vt(e) {
4
33
  return e();
5
34
  }
6
- function We() {
35
+ function et() {
7
36
  return /* @__PURE__ */ Object.create(null);
8
37
  }
9
- function ae(e) {
10
- e.forEach(dt);
38
+ function ue(e) {
39
+ e.forEach(vt);
11
40
  }
12
- function je(e) {
41
+ function Ve(e) {
13
42
  return typeof e == "function";
14
43
  }
15
- function pt(e, t) {
44
+ function Tt(e, t) {
16
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
46
  }
18
- let he;
19
- function de(e, t) {
20
- return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
47
+ let le;
48
+ function pe(e, t) {
49
+ return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
21
50
  }
22
- function qt(e) {
51
+ function ur(e) {
23
52
  return Object.keys(e).length === 0;
24
53
  }
25
- function bt(e, ...t) {
54
+ function Ct(e, ...t) {
26
55
  if (e == null) {
27
56
  for (const n of t)
28
57
  n(void 0);
29
- return I;
58
+ return M;
30
59
  }
31
60
  const r = e.subscribe(...t);
32
61
  return r.unsubscribe ? () => r.unsubscribe() : r;
33
62
  }
34
- function Jt(e, t, r) {
35
- e.$$.on_destroy.push(bt(t, r));
63
+ function hr(e, t, r) {
64
+ e.$$.on_destroy.push(Ct(t, r));
36
65
  }
37
66
  function v(e, t) {
38
67
  e.appendChild(t);
39
68
  }
40
- function Yt(e, t, r) {
41
- const n = Kt(e);
69
+ function lr(e, t, r) {
70
+ const n = fr(e);
42
71
  if (!n.getElementById(t)) {
43
72
  const i = B("style");
44
- i.id = t, i.textContent = r, er(n, i);
73
+ i.id = t, i.textContent = r, cr(n, i);
45
74
  }
46
75
  }
47
- function Kt(e) {
76
+ function fr(e) {
48
77
  if (!e) return document;
49
78
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
50
79
  return t && /** @type {ShadowRoot} */
@@ -53,76 +82,76 @@ function Kt(e) {
53
82
  t
54
83
  ) : e.ownerDocument;
55
84
  }
56
- function er(e, t) {
85
+ function cr(e, t) {
57
86
  return v(
58
87
  /** @type {Document} */
59
88
  e.head || e,
60
89
  t
61
90
  ), t.sheet;
62
91
  }
63
- function k(e, t, r) {
92
+ function V(e, t, r) {
64
93
  e.insertBefore(t, r || null);
65
94
  }
66
- function F(e) {
95
+ function j(e) {
67
96
  e.parentNode && e.parentNode.removeChild(e);
68
97
  }
69
- function Ze(e, t) {
98
+ function tt(e, t) {
70
99
  for (let r = 0; r < e.length; r += 1)
71
100
  e[r] && e[r].d(t);
72
101
  }
73
102
  function B(e) {
74
103
  return document.createElement(e);
75
104
  }
76
- function tr(e) {
105
+ function gr(e) {
77
106
  return document.createElementNS("http://www.w3.org/2000/svg", e);
78
107
  }
79
- function R(e) {
108
+ function U(e) {
80
109
  return document.createTextNode(e);
81
110
  }
82
- function $() {
83
- return R(" ");
111
+ function R() {
112
+ return U(" ");
84
113
  }
85
- function fi() {
86
- return R("");
114
+ function Ci() {
115
+ return U("");
87
116
  }
88
- function yt(e, t, r, n) {
117
+ function Ht(e, t, r, n) {
89
118
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
90
119
  }
91
120
  function H(e, t, r) {
92
121
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
93
122
  }
94
- function ci(e, t, r) {
123
+ function Hi(e, t, r) {
95
124
  const n = t.toLowerCase();
96
125
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
97
126
  }
98
- function rr(e) {
127
+ function mr(e) {
99
128
  return Array.from(e.childNodes);
100
129
  }
101
- function D(e, t) {
130
+ function F(e, t) {
102
131
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
103
132
  t);
104
133
  }
105
- function gi(e, t) {
106
- e.value = t ?? "";
134
+ function Ai(e, t) {
135
+ e.value = t == null ? "" : t;
107
136
  }
108
- function mi(e, t, r) {
137
+ function Si(e, t, r) {
109
138
  e.classList.toggle(t, !!r);
110
139
  }
111
- class di {
112
- /**
113
- * @private
114
- * @default false
115
- */
116
- is_svg = !1;
117
- /** parent for creating node */
118
- e = void 0;
119
- /** html tag nodes */
120
- n = void 0;
121
- /** target */
122
- t = void 0;
123
- /** anchor */
124
- a = void 0;
140
+ class Bi {
125
141
  constructor(t = !1) {
142
+ /**
143
+ * @private
144
+ * @default false
145
+ */
146
+ O(this, "is_svg", !1);
147
+ /** parent for creating node */
148
+ O(this, "e");
149
+ /** html tag nodes */
150
+ O(this, "n");
151
+ /** target */
152
+ O(this, "t");
153
+ /** anchor */
154
+ O(this, "a");
126
155
  this.is_svg = t, this.e = this.n = null;
127
156
  }
128
157
  /**
@@ -139,7 +168,7 @@ class di {
139
168
  * @returns {void}
140
169
  */
141
170
  m(t, r, n = null) {
142
- this.e || (this.is_svg ? this.e = tr(
171
+ this.e || (this.is_svg ? this.e = gr(
143
172
  /** @type {keyof SVGElementTagNameMap} */
144
173
  r.nodeName
145
174
  ) : this.e = B(
@@ -163,7 +192,7 @@ class di {
163
192
  * @returns {void} */
164
193
  i(t) {
165
194
  for (let r = 0; r < this.n.length; r += 1)
166
- k(this.t, this.n[r], t);
195
+ V(this.t, this.n[r], t);
167
196
  }
168
197
  /**
169
198
  * @param {string} html
@@ -175,10 +204,10 @@ class di {
175
204
  /**
176
205
  * @returns {void} */
177
206
  d() {
178
- this.n.forEach(F);
207
+ this.n.forEach(j);
179
208
  }
180
209
  }
181
- function nr(e) {
210
+ function dr(e) {
182
211
  const t = {};
183
212
  return e.childNodes.forEach(
184
213
  /** @param {Element} node */
@@ -187,247 +216,251 @@ function nr(e) {
187
216
  }
188
217
  ), t;
189
218
  }
190
- let ie;
191
- function ne(e) {
192
- ie = e;
219
+ let se;
220
+ function ie(e) {
221
+ se = e;
193
222
  }
194
- function ir() {
195
- if (!ie) throw new Error("Function called outside component initialization");
196
- return ie;
223
+ function pr() {
224
+ if (!se) throw new Error("Function called outside component initialization");
225
+ return se;
197
226
  }
198
- function pi(e) {
199
- ir().$$.on_mount.push(e);
227
+ function wi(e) {
228
+ pr().$$.on_mount.push(e);
200
229
  }
201
- const W = [], Oe = [];
202
- let Z = [];
203
- const Qe = [], _t = /* @__PURE__ */ Promise.resolve();
204
- let Pe = !1;
205
- function Et() {
206
- Pe || (Pe = !0, _t.then(M));
230
+ const Z = [], Ne = [];
231
+ let Q = [];
232
+ const rt = [], At = /* @__PURE__ */ Promise.resolve();
233
+ let Le = !1;
234
+ function St() {
235
+ Le || (Le = !0, At.then($));
207
236
  }
208
- function bi() {
209
- return Et(), _t;
237
+ function Oi() {
238
+ return St(), At;
210
239
  }
211
- function Ne(e) {
212
- Z.push(e);
240
+ function Ie(e) {
241
+ Q.push(e);
213
242
  }
214
- const Te = /* @__PURE__ */ new Set();
215
- let X = 0;
216
- function M() {
217
- if (X !== 0)
243
+ const He = /* @__PURE__ */ new Set();
244
+ let z = 0;
245
+ function $() {
246
+ if (z !== 0)
218
247
  return;
219
- const e = ie;
248
+ const e = se;
220
249
  do {
221
250
  try {
222
- for (; X < W.length; ) {
223
- const t = W[X];
224
- X++, ne(t), sr(t.$$);
251
+ for (; z < Z.length; ) {
252
+ const t = Z[z];
253
+ z++, ie(t), br(t.$$);
225
254
  }
226
255
  } catch (t) {
227
- throw W.length = 0, X = 0, t;
256
+ throw Z.length = 0, z = 0, t;
228
257
  }
229
- for (ne(null), W.length = 0, X = 0; Oe.length; ) Oe.pop()();
230
- for (let t = 0; t < Z.length; t += 1) {
231
- const r = Z[t];
232
- Te.has(r) || (Te.add(r), r());
258
+ for (ie(null), Z.length = 0, z = 0; Ne.length; ) Ne.pop()();
259
+ for (let t = 0; t < Q.length; t += 1) {
260
+ const r = Q[t];
261
+ He.has(r) || (He.add(r), r());
233
262
  }
234
- Z.length = 0;
235
- } while (W.length);
236
- for (; Qe.length; )
237
- Qe.pop()();
238
- Pe = !1, Te.clear(), ne(e);
263
+ Q.length = 0;
264
+ } while (Z.length);
265
+ for (; rt.length; )
266
+ rt.pop()();
267
+ Le = !1, He.clear(), ie(e);
239
268
  }
240
- function sr(e) {
269
+ function br(e) {
241
270
  if (e.fragment !== null) {
242
- e.update(), ae(e.before_update);
271
+ e.update(), ue(e.before_update);
243
272
  const t = e.dirty;
244
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
273
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
245
274
  }
246
275
  }
247
- function or(e) {
276
+ function yr(e) {
248
277
  const t = [], r = [];
249
- Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
278
+ Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
250
279
  }
251
- const ar = /* @__PURE__ */ new Set();
252
- function ur(e, t) {
253
- e && e.i && (ar.delete(e), e.i(t));
280
+ const _r = /* @__PURE__ */ new Set();
281
+ function Er(e, t) {
282
+ e && e.i && (_r.delete(e), e.i(t));
254
283
  }
255
- function le(e) {
256
- return e?.length !== void 0 ? e : Array.from(e);
284
+ function fe(e) {
285
+ return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
257
286
  }
258
- function hr(e, t, r) {
287
+ function xr(e, t, r) {
259
288
  const { fragment: n, after_update: i } = e.$$;
260
- n && n.m(t, r), Ne(() => {
261
- const s = e.$$.on_mount.map(dt).filter(je);
262
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ae(s), e.$$.on_mount = [];
263
- }), i.forEach(Ne);
289
+ n && n.m(t, r), Ie(() => {
290
+ const s = e.$$.on_mount.map(vt).filter(Ve);
291
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ue(s), e.$$.on_mount = [];
292
+ }), i.forEach(Ie);
264
293
  }
265
- function lr(e, t) {
294
+ function vr(e, t) {
266
295
  const r = e.$$;
267
- r.fragment !== null && (or(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
296
+ r.fragment !== null && (yr(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
268
297
  }
269
- function fr(e, t) {
270
- e.$$.dirty[0] === -1 && (W.push(e), Et(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
298
+ function Tr(e, t) {
299
+ e.$$.dirty[0] === -1 && (Z.push(e), St(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
271
300
  }
272
- function cr(e, t, r, n, i, s, o = null, a = [-1]) {
273
- const f = ie;
274
- ne(e);
275
- const u = e.$$ = {
301
+ function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
302
+ const h = se;
303
+ ie(e);
304
+ const a = e.$$ = {
276
305
  fragment: null,
277
306
  ctx: [],
278
307
  // state
279
308
  props: s,
280
- update: I,
309
+ update: M,
281
310
  not_equal: i,
282
- bound: We(),
311
+ bound: et(),
283
312
  // lifecycle
284
313
  on_mount: [],
285
314
  on_destroy: [],
286
315
  on_disconnect: [],
287
316
  before_update: [],
288
317
  after_update: [],
289
- context: new Map(t.context || (f ? f.$$.context : [])),
318
+ context: new Map(t.context || (h ? h.$$.context : [])),
290
319
  // everything else
291
- callbacks: We(),
292
- dirty: a,
320
+ callbacks: et(),
321
+ dirty: u,
293
322
  skip_bound: !1,
294
- root: t.target || f.$$.root
323
+ root: t.target || h.$$.root
295
324
  };
296
- o && o(u.root);
297
- let h = !1;
298
- if (u.ctx = r ? r(e, t.props || {}, (c, l, ...p) => {
299
- const d = p.length ? p[0] : l;
300
- return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && fr(e, c)), l;
301
- }) : [], u.update(), h = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
325
+ o && o(a.root);
326
+ let l = !1;
327
+ if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
328
+ const d = p.length ? p[0] : f;
329
+ return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l && Tr(e, c)), f;
330
+ }) : [], a.update(), l = !0, ue(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
302
331
  if (t.hydrate) {
303
- const c = rr(t.target);
304
- u.fragment && u.fragment.l(c), c.forEach(F);
332
+ const c = mr(t.target);
333
+ a.fragment && a.fragment.l(c), c.forEach(j);
305
334
  } else
306
- u.fragment && u.fragment.c();
307
- t.intro && ur(e.$$.fragment), hr(e, t.target, t.anchor), M();
335
+ a.fragment && a.fragment.c();
336
+ t.intro && Er(e.$$.fragment), xr(e, t.target, t.anchor), $();
308
337
  }
309
- ne(f);
310
- }
311
- let xt;
312
- typeof HTMLElement == "function" && (xt = class extends HTMLElement {
313
- /** The Svelte component constructor */
314
- $$ctor;
315
- /** Slots */
316
- $$s;
317
- /** The Svelte component instance */
318
- $$c;
319
- /** Whether or not the custom element is connected */
320
- $$cn = !1;
321
- /** Component props data */
322
- $$d = {};
323
- /** `true` if currently in the process of reflecting component props back to attributes */
324
- $$r = !1;
325
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
326
- $$p_d = {};
327
- /** @type {Record<string, Function[]>} Event listeners */
328
- $$l = {};
329
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
330
- $$l_u = /* @__PURE__ */ new Map();
331
- constructor(e, t, r) {
332
- super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
338
+ ie(h);
339
+ }
340
+ let Bt;
341
+ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
342
+ constructor(t, r, n) {
343
+ super();
344
+ /** The Svelte component constructor */
345
+ O(this, "$$ctor");
346
+ /** Slots */
347
+ O(this, "$$s");
348
+ /** The Svelte component instance */
349
+ O(this, "$$c");
350
+ /** Whether or not the custom element is connected */
351
+ O(this, "$$cn", !1);
352
+ /** Component props data */
353
+ O(this, "$$d", {});
354
+ /** `true` if currently in the process of reflecting component props back to attributes */
355
+ O(this, "$$r", !1);
356
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
357
+ O(this, "$$p_d", {});
358
+ /** @type {Record<string, Function[]>} Event listeners */
359
+ O(this, "$$l", {});
360
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
361
+ O(this, "$$l_u", /* @__PURE__ */ new Map());
362
+ this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
333
363
  }
334
- addEventListener(e, t, r) {
335
- if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
336
- const n = this.$$c.$on(e, t);
337
- this.$$l_u.set(t, n);
364
+ addEventListener(t, r, n) {
365
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
366
+ const i = this.$$c.$on(t, r);
367
+ this.$$l_u.set(r, i);
338
368
  }
339
- super.addEventListener(e, t, r);
369
+ super.addEventListener(t, r, n);
340
370
  }
341
- removeEventListener(e, t, r) {
342
- if (super.removeEventListener(e, t, r), this.$$c) {
343
- const n = this.$$l_u.get(t);
344
- n && (n(), this.$$l_u.delete(t));
371
+ removeEventListener(t, r, n) {
372
+ if (super.removeEventListener(t, r, n), this.$$c) {
373
+ const i = this.$$l_u.get(r);
374
+ i && (i(), this.$$l_u.delete(r));
345
375
  }
346
376
  }
347
- async connectedCallback() {
348
- if (this.$$cn = !0, !this.$$c) {
349
- let e = function(i) {
350
- return () => {
351
- let s;
352
- return {
353
- c: function() {
354
- s = B("slot"), i !== "default" && H(s, "name", i);
355
- },
356
- /**
357
- * @param {HTMLElement} target
358
- * @param {HTMLElement} [anchor]
359
- */
360
- m: function(f, u) {
361
- k(f, s, u);
362
- },
363
- d: function(f) {
364
- f && F(s);
365
- }
377
+ connectedCallback() {
378
+ return Ke(this, null, function* () {
379
+ if (this.$$cn = !0, !this.$$c) {
380
+ let t = function(s) {
381
+ return () => {
382
+ let o;
383
+ return {
384
+ c: function() {
385
+ o = B("slot"), s !== "default" && H(o, "name", s);
386
+ },
387
+ /**
388
+ * @param {HTMLElement} target
389
+ * @param {HTMLElement} [anchor]
390
+ */
391
+ m: function(a, l) {
392
+ V(a, o, l);
393
+ },
394
+ d: function(a) {
395
+ a && j(o);
396
+ }
397
+ };
366
398
  };
367
399
  };
368
- };
369
- if (await Promise.resolve(), !this.$$cn || this.$$c)
370
- return;
371
- const t = {}, r = nr(this);
372
- for (const i of this.$$s)
373
- i in r && (t[i] = [e(i)]);
374
- for (const i of this.attributes) {
375
- const s = this.$$g_p(i.name);
376
- s in this.$$d || (this.$$d[s] = ce(s, i.value, this.$$p_d, "toProp"));
377
- }
378
- for (const i in this.$$p_d)
379
- !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
380
- this.$$c = new this.$$ctor({
381
- target: this.shadowRoot || this,
382
- props: {
383
- ...this.$$d,
384
- $$slots: t,
385
- $$scope: {
386
- ctx: []
387
- }
400
+ if (yield Promise.resolve(), !this.$$cn || this.$$c)
401
+ return;
402
+ const r = {}, n = dr(this);
403
+ for (const s of this.$$s)
404
+ s in n && (r[s] = [t(s)]);
405
+ for (const s of this.attributes) {
406
+ const o = this.$$g_p(s.name);
407
+ o in this.$$d || (this.$$d[o] = ge(o, s.value, this.$$p_d, "toProp"));
388
408
  }
389
- });
390
- const n = () => {
391
- this.$$r = !0;
392
- for (const i in this.$$p_d)
393
- if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
394
- const s = ce(
395
- i,
396
- this.$$d[i],
397
- this.$$p_d,
398
- "toAttribute"
399
- );
400
- s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
409
+ for (const s in this.$$p_d)
410
+ !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
411
+ this.$$c = new this.$$ctor({
412
+ target: this.shadowRoot || this,
413
+ props: Ye(Je({}, this.$$d), {
414
+ $$slots: r,
415
+ $$scope: {
416
+ ctx: []
417
+ }
418
+ })
419
+ });
420
+ const i = () => {
421
+ this.$$r = !0;
422
+ for (const s in this.$$p_d)
423
+ if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
424
+ const o = ge(
425
+ s,
426
+ this.$$d[s],
427
+ this.$$p_d,
428
+ "toAttribute"
429
+ );
430
+ o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
431
+ }
432
+ this.$$r = !1;
433
+ };
434
+ this.$$c.$$.after_update.push(i), i();
435
+ for (const s in this.$$l)
436
+ for (const o of this.$$l[s]) {
437
+ const u = this.$$c.$on(s, o);
438
+ this.$$l_u.set(o, u);
401
439
  }
402
- this.$$r = !1;
403
- };
404
- this.$$c.$$.after_update.push(n), n();
405
- for (const i in this.$$l)
406
- for (const s of this.$$l[i]) {
407
- const o = this.$$c.$on(i, s);
408
- this.$$l_u.set(s, o);
409
- }
410
- this.$$l = {};
411
- }
440
+ this.$$l = {};
441
+ }
442
+ });
412
443
  }
413
444
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
414
445
  // and setting attributes through setAttribute etc, this is helpful
415
- attributeChangedCallback(e, t, r) {
416
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ce(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
446
+ attributeChangedCallback(t, r, n) {
447
+ var i;
448
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ge(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
417
449
  }
418
450
  disconnectedCallback() {
419
451
  this.$$cn = !1, Promise.resolve().then(() => {
420
452
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
421
453
  });
422
454
  }
423
- $$g_p(e) {
455
+ $$g_p(t) {
424
456
  return Object.keys(this.$$p_d).find(
425
- (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
426
- ) || e;
457
+ (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
458
+ ) || t;
427
459
  }
428
460
  });
429
- function ce(e, t, r, n) {
430
- const i = r[e]?.type;
461
+ function ge(e, t, r, n) {
462
+ var s;
463
+ const i = (s = r[e]) == null ? void 0 : s.type;
431
464
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
432
465
  return t;
433
466
  if (n === "toAttribute")
@@ -438,7 +471,7 @@ function ce(e, t, r, n) {
438
471
  case "Boolean":
439
472
  return t ? "" : null;
440
473
  case "Number":
441
- return t ?? null;
474
+ return t == null ? null : t;
442
475
  default:
443
476
  return t;
444
477
  }
@@ -455,55 +488,59 @@ function ce(e, t, r, n) {
455
488
  return t;
456
489
  }
457
490
  }
458
- function gr(e, t, r, n, i, s) {
459
- let o = class extends xt {
491
+ function Hr(e, t, r, n, i, s) {
492
+ let o = class extends Bt {
460
493
  constructor() {
461
494
  super(e, r, i), this.$$p_d = t;
462
495
  }
463
496
  static get observedAttributes() {
464
497
  return Object.keys(t).map(
465
- (a) => (t[a].attribute || a).toLowerCase()
498
+ (u) => (t[u].attribute || u).toLowerCase()
466
499
  );
467
500
  }
468
501
  };
469
- return Object.keys(t).forEach((a) => {
470
- Object.defineProperty(o.prototype, a, {
502
+ return Object.keys(t).forEach((u) => {
503
+ Object.defineProperty(o.prototype, u, {
471
504
  get() {
472
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
505
+ return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
473
506
  },
474
- set(f) {
475
- f = ce(a, f, t), this.$$d[a] = f, this.$$c?.$set({ [a]: f });
507
+ set(h) {
508
+ var a;
509
+ h = ge(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
476
510
  }
477
511
  });
478
- }), n.forEach((a) => {
479
- Object.defineProperty(o.prototype, a, {
512
+ }), n.forEach((u) => {
513
+ Object.defineProperty(o.prototype, u, {
480
514
  get() {
481
- return this.$$c?.[a];
515
+ var h;
516
+ return (h = this.$$c) == null ? void 0 : h[u];
482
517
  }
483
518
  });
484
519
  }), e.element = /** @type {any} */
485
520
  o, o;
486
521
  }
487
- class mr {
488
- /**
489
- * ### PRIVATE API
490
- *
491
- * Do not use, may change at any time
492
- *
493
- * @type {any}
494
- */
495
- $$ = void 0;
496
- /**
497
- * ### PRIVATE API
498
- *
499
- * Do not use, may change at any time
500
- *
501
- * @type {any}
502
- */
503
- $$set = void 0;
522
+ class Ar {
523
+ constructor() {
524
+ /**
525
+ * ### PRIVATE API
526
+ *
527
+ * Do not use, may change at any time
528
+ *
529
+ * @type {any}
530
+ */
531
+ O(this, "$$");
532
+ /**
533
+ * ### PRIVATE API
534
+ *
535
+ * Do not use, may change at any time
536
+ *
537
+ * @type {any}
538
+ */
539
+ O(this, "$$set");
540
+ }
504
541
  /** @returns {void} */
505
542
  $destroy() {
506
- lr(this, 1), this.$destroy = I;
543
+ vr(this, 1), this.$destroy = M;
507
544
  }
508
545
  /**
509
546
  * @template {Extract<keyof Events, string>} K
@@ -512,8 +549,8 @@ class mr {
512
549
  * @returns {() => void}
513
550
  */
514
551
  $on(t, r) {
515
- if (!je(r))
516
- return I;
552
+ if (!Ve(r))
553
+ return M;
517
554
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
518
555
  return n.push(r), () => {
519
556
  const i = n.indexOf(r);
@@ -525,159 +562,159 @@ class mr {
525
562
  * @returns {void}
526
563
  */
527
564
  $set(t) {
528
- this.$$set && !qt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
565
+ this.$$set && !ur(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
529
566
  }
530
567
  }
531
- const dr = "4";
532
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dr);
533
- const z = [];
534
- function pr(e, t) {
568
+ const Sr = "4";
569
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Sr);
570
+ const W = [];
571
+ function Br(e, t) {
535
572
  return {
536
- subscribe: ye(e, t).subscribe
573
+ subscribe: _e(e, t).subscribe
537
574
  };
538
575
  }
539
- function ye(e, t = I) {
576
+ function _e(e, t = M) {
540
577
  let r;
541
578
  const n = /* @__PURE__ */ new Set();
542
- function i(a) {
543
- if (pt(e, a) && (e = a, r)) {
544
- const f = !z.length;
545
- for (const u of n)
546
- u[1](), z.push(u, e);
547
- if (f) {
548
- for (let u = 0; u < z.length; u += 2)
549
- z[u][0](z[u + 1]);
550
- z.length = 0;
579
+ function i(u) {
580
+ if (Tt(e, u) && (e = u, r)) {
581
+ const h = !W.length;
582
+ for (const a of n)
583
+ a[1](), W.push(a, e);
584
+ if (h) {
585
+ for (let a = 0; a < W.length; a += 2)
586
+ W[a][0](W[a + 1]);
587
+ W.length = 0;
551
588
  }
552
589
  }
553
590
  }
554
- function s(a) {
555
- i(a(e));
591
+ function s(u) {
592
+ i(u(e));
556
593
  }
557
- function o(a, f = I) {
558
- const u = [a, f];
559
- return n.add(u), n.size === 1 && (r = t(i, s) || I), a(e), () => {
560
- n.delete(u), n.size === 0 && r && (r(), r = null);
594
+ function o(u, h = M) {
595
+ const a = [u, h];
596
+ return n.add(a), n.size === 1 && (r = t(i, s) || M), u(e), () => {
597
+ n.delete(a), n.size === 0 && r && (r(), r = null);
561
598
  };
562
599
  }
563
600
  return { set: i, update: s, subscribe: o };
564
601
  }
565
- function K(e, t, r) {
602
+ function ee(e, t, r) {
566
603
  const n = !Array.isArray(e), i = n ? [e] : e;
567
604
  if (!i.every(Boolean))
568
605
  throw new Error("derived() expects stores as input, got a falsy value");
569
606
  const s = t.length < 2;
570
- return pr(r, (o, a) => {
571
- let f = !1;
572
- const u = [];
573
- let h = 0, c = I;
574
- const l = () => {
575
- if (h)
607
+ return Br(r, (o, u) => {
608
+ let h = !1;
609
+ const a = [];
610
+ let l = 0, c = M;
611
+ const f = () => {
612
+ if (l)
576
613
  return;
577
614
  c();
578
- const d = t(n ? u[0] : u, o, a);
579
- s ? o(d) : c = je(d) ? d : I;
615
+ const d = t(n ? a[0] : a, o, u);
616
+ s ? o(d) : c = Ve(d) ? d : M;
580
617
  }, p = i.map(
581
- (d, g) => bt(
618
+ (d, g) => Ct(
582
619
  d,
583
620
  (x) => {
584
- u[g] = x, h &= ~(1 << g), f && l();
621
+ a[g] = x, l &= ~(1 << g), h && f();
585
622
  },
586
623
  () => {
587
- h |= 1 << g;
624
+ l |= 1 << g;
588
625
  }
589
626
  )
590
627
  );
591
- return f = !0, l(), function() {
592
- ae(p), c(), f = !1;
628
+ return h = !0, f(), function() {
629
+ ue(p), c(), h = !1;
593
630
  };
594
631
  });
595
632
  }
596
- function br(e) {
633
+ function wr(e) {
597
634
  return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
598
635
  }
599
- var yr = function(t) {
600
- return _r(t) && !Er(t);
636
+ var Or = function(t) {
637
+ return Pr(t) && !Nr(t);
601
638
  };
602
- function _r(e) {
639
+ function Pr(e) {
603
640
  return !!e && typeof e == "object";
604
641
  }
605
- function Er(e) {
642
+ function Nr(e) {
606
643
  var t = Object.prototype.toString.call(e);
607
- return t === "[object RegExp]" || t === "[object Date]" || Tr(e);
644
+ return t === "[object RegExp]" || t === "[object Date]" || Mr(e);
608
645
  }
609
- var xr = typeof Symbol == "function" && Symbol.for, vr = xr ? Symbol.for("react.element") : 60103;
610
- function Tr(e) {
611
- return e.$$typeof === vr;
646
+ var Lr = typeof Symbol == "function" && Symbol.for, Ir = Lr ? Symbol.for("react.element") : 60103;
647
+ function Mr(e) {
648
+ return e.$$typeof === Ir;
612
649
  }
613
- function Cr(e) {
650
+ function $r(e) {
614
651
  return Array.isArray(e) ? [] : {};
615
652
  }
616
- function se(e, t) {
617
- return t.clone !== !1 && t.isMergeableObject(e) ? Q(Cr(e), e, t) : e;
653
+ function oe(e, t) {
654
+ return t.clone !== !1 && t.isMergeableObject(e) ? q($r(e), e, t) : e;
618
655
  }
619
- function Hr(e, t, r) {
656
+ function Rr(e, t, r) {
620
657
  return e.concat(t).map(function(n) {
621
- return se(n, r);
658
+ return oe(n, r);
622
659
  });
623
660
  }
624
- function Ar(e, t) {
661
+ function Ur(e, t) {
625
662
  if (!t.customMerge)
626
- return Q;
663
+ return q;
627
664
  var r = t.customMerge(e);
628
- return typeof r == "function" ? r : Q;
665
+ return typeof r == "function" ? r : q;
629
666
  }
630
- function Sr(e) {
667
+ function Gr(e) {
631
668
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
632
669
  return Object.propertyIsEnumerable.call(e, t);
633
670
  }) : [];
634
671
  }
635
- function qe(e) {
636
- return Object.keys(e).concat(Sr(e));
672
+ function nt(e) {
673
+ return Object.keys(e).concat(Gr(e));
637
674
  }
638
- function vt(e, t) {
675
+ function wt(e, t) {
639
676
  try {
640
677
  return t in e;
641
- } catch {
678
+ } catch (r) {
642
679
  return !1;
643
680
  }
644
681
  }
645
- function Br(e, t) {
646
- return vt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
682
+ function Dr(e, t) {
683
+ return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
647
684
  }
648
- function wr(e, t, r) {
685
+ function Fr(e, t, r) {
649
686
  var n = {};
650
- return r.isMergeableObject(e) && qe(e).forEach(function(i) {
651
- n[i] = se(e[i], r);
652
- }), qe(t).forEach(function(i) {
653
- Br(e, i) || (vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ar(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
687
+ return r.isMergeableObject(e) && nt(e).forEach(function(i) {
688
+ n[i] = oe(e[i], r);
689
+ }), nt(t).forEach(function(i) {
690
+ Dr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ur(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
654
691
  }), n;
655
692
  }
656
- function Q(e, t, r) {
657
- r = r || {}, r.arrayMerge = r.arrayMerge || Hr, r.isMergeableObject = r.isMergeableObject || yr, r.cloneUnlessOtherwiseSpecified = se;
693
+ function q(e, t, r) {
694
+ r = r || {}, r.arrayMerge = r.arrayMerge || Rr, r.isMergeableObject = r.isMergeableObject || Or, r.cloneUnlessOtherwiseSpecified = oe;
658
695
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
659
- return s ? n ? r.arrayMerge(e, t, r) : wr(e, t, r) : se(t, r);
696
+ return s ? n ? r.arrayMerge(e, t, r) : Fr(e, t, r) : oe(t, r);
660
697
  }
661
- Q.all = function(t, r) {
698
+ q.all = function(t, r) {
662
699
  if (!Array.isArray(t))
663
700
  throw new Error("first argument should be an array");
664
701
  return t.reduce(function(n, i) {
665
- return Q(n, i, r);
702
+ return q(n, i, r);
666
703
  }, {});
667
704
  };
668
- var Or = Q, Pr = Or;
669
- const Nr = /* @__PURE__ */ br(Pr);
670
- var Le = function(e, t) {
671
- return Le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
705
+ var jr = q, kr = jr;
706
+ const Vr = /* @__PURE__ */ wr(kr);
707
+ var Me = function(e, t) {
708
+ return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
672
709
  r.__proto__ = n;
673
710
  } || function(r, n) {
674
711
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
675
- }, Le(e, t);
712
+ }, Me(e, t);
676
713
  };
677
- function _e(e, t) {
714
+ function Ee(e, t) {
678
715
  if (typeof t != "function" && t !== null)
679
716
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
680
- Le(e, t);
717
+ Me(e, t);
681
718
  function r() {
682
719
  this.constructor = e;
683
720
  }
@@ -692,7 +729,7 @@ var E = function() {
692
729
  return t;
693
730
  }, E.apply(this, arguments);
694
731
  };
695
- function Lr(e, t) {
732
+ function Xr(e, t) {
696
733
  var r = {};
697
734
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
698
735
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -700,7 +737,7 @@ function Lr(e, t) {
700
737
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
701
738
  return r;
702
739
  }
703
- function yi(e) {
740
+ function Pi(e) {
704
741
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
705
742
  if (r) return r.call(e);
706
743
  if (e && typeof e.length == "number") return {
@@ -710,14 +747,14 @@ function yi(e) {
710
747
  };
711
748
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
712
749
  }
713
- function _i(e, t) {
750
+ function Ni(e, t) {
714
751
  var r = typeof Symbol == "function" && e[Symbol.iterator];
715
752
  if (!r) return e;
716
753
  var n = r.call(e), i, s = [], o;
717
754
  try {
718
755
  for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) s.push(i.value);
719
- } catch (a) {
720
- o = { error: a };
756
+ } catch (u) {
757
+ o = { error: u };
721
758
  } finally {
722
759
  try {
723
760
  i && !i.done && (r = n.return) && r.call(n);
@@ -727,45 +764,45 @@ function _i(e, t) {
727
764
  }
728
765
  return s;
729
766
  }
730
- function Ce(e, t, r) {
767
+ function Ae(e, t, r) {
731
768
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
732
769
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
733
770
  return e.concat(s || Array.prototype.slice.call(t));
734
771
  }
735
- function He(e, t) {
736
- var r = t && t.cache ? t.cache : Dr, n = t && t.serializer ? t.serializer : Ur, i = t && t.strategy ? t.strategy : Mr;
772
+ function Se(e, t) {
773
+ var r = t && t.cache ? t.cache : Yr, n = t && t.serializer ? t.serializer : qr, i = t && t.strategy ? t.strategy : Wr;
737
774
  return i(e, {
738
775
  cache: r,
739
776
  serializer: n
740
777
  });
741
778
  }
742
- function Ir(e) {
779
+ function zr(e) {
743
780
  return e == null || typeof e == "number" || typeof e == "boolean";
744
781
  }
745
- function Tt(e, t, r, n) {
746
- var i = Ir(n) ? n : r(n), s = t.get(i);
747
- return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
782
+ function Ot(e, t, r, n) {
783
+ var i = zr(n) ? n : r(n), s = t.get(i);
784
+ return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
748
785
  }
749
- function Ct(e, t, r) {
786
+ function Pt(e, t, r) {
750
787
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
751
- return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
788
+ return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
752
789
  }
753
- function ke(e, t, r, n, i) {
790
+ function Xe(e, t, r, n, i) {
754
791
  return r.bind(t, e, n, i);
755
792
  }
756
- function Mr(e, t) {
757
- var r = e.length === 1 ? Tt : Ct;
758
- return ke(e, this, r, t.cache.create(), t.serializer);
793
+ function Wr(e, t) {
794
+ var r = e.length === 1 ? Ot : Pt;
795
+ return Xe(e, this, r, t.cache.create(), t.serializer);
759
796
  }
760
- function $r(e, t) {
761
- return ke(e, this, Ct, t.cache.create(), t.serializer);
797
+ function Zr(e, t) {
798
+ return Xe(e, this, Pt, t.cache.create(), t.serializer);
762
799
  }
763
- function Rr(e, t) {
764
- return ke(e, this, Tt, t.cache.create(), t.serializer);
800
+ function Qr(e, t) {
801
+ return Xe(e, this, Ot, t.cache.create(), t.serializer);
765
802
  }
766
- var Ur = function() {
803
+ var qr = function() {
767
804
  return JSON.stringify(arguments);
768
- }, Gr = (
805
+ }, Jr = (
769
806
  /** @class */
770
807
  function() {
771
808
  function e() {
@@ -777,13 +814,13 @@ var Ur = function() {
777
814
  this.cache[t] = r;
778
815
  }, e;
779
816
  }()
780
- ), Dr = {
817
+ ), Yr = {
781
818
  create: function() {
782
- return new Gr();
819
+ return new Jr();
783
820
  }
784
- }, Ae = {
785
- variadic: $r,
786
- monadic: Rr
821
+ }, Be = {
822
+ variadic: Zr,
823
+ monadic: Qr
787
824
  }, y;
788
825
  (function(e) {
789
826
  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";
@@ -792,47 +829,47 @@ var T;
792
829
  (function(e) {
793
830
  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";
794
831
  })(T || (T = {}));
795
- var q;
832
+ var J;
796
833
  (function(e) {
797
834
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
798
- })(q || (q = {}));
799
- function Je(e) {
835
+ })(J || (J = {}));
836
+ function it(e) {
800
837
  return e.type === T.literal;
801
838
  }
802
- function Fr(e) {
839
+ function Kr(e) {
803
840
  return e.type === T.argument;
804
841
  }
805
- function Ht(e) {
842
+ function Nt(e) {
806
843
  return e.type === T.number;
807
844
  }
808
- function At(e) {
845
+ function Lt(e) {
809
846
  return e.type === T.date;
810
847
  }
811
- function St(e) {
848
+ function It(e) {
812
849
  return e.type === T.time;
813
850
  }
814
- function Bt(e) {
851
+ function Mt(e) {
815
852
  return e.type === T.select;
816
853
  }
817
- function wt(e) {
854
+ function $t(e) {
818
855
  return e.type === T.plural;
819
856
  }
820
- function jr(e) {
857
+ function en(e) {
821
858
  return e.type === T.pound;
822
859
  }
823
- function Ot(e) {
860
+ function Rt(e) {
824
861
  return e.type === T.tag;
825
862
  }
826
- function Pt(e) {
827
- return !!(e && typeof e == "object" && e.type === q.number);
863
+ function Ut(e) {
864
+ return !!(e && typeof e == "object" && e.type === J.number);
828
865
  }
829
- function Ie(e) {
830
- return !!(e && typeof e == "object" && e.type === q.dateTime);
866
+ function $e(e) {
867
+ return !!(e && typeof e == "object" && e.type === J.dateTime);
831
868
  }
832
- var Nt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, kr = /(?:[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;
833
- function Vr(e) {
869
+ var Gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, tn = /(?:[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;
870
+ function rn(e) {
834
871
  var t = {};
835
- return e.replace(kr, function(r) {
872
+ return e.replace(tn, function(r) {
836
873
  var n = r.length;
837
874
  switch (r[0]) {
838
875
  case "G":
@@ -921,36 +958,36 @@ function Vr(e) {
921
958
  return "";
922
959
  }), t;
923
960
  }
924
- var Xr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
925
- function zr(e) {
961
+ var nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
962
+ function sn(e) {
926
963
  if (e.length === 0)
927
964
  throw new Error("Number skeleton cannot be empty");
928
- for (var t = e.split(Xr).filter(function(l) {
929
- return l.length > 0;
965
+ for (var t = e.split(nn).filter(function(f) {
966
+ return f.length > 0;
930
967
  }), r = [], n = 0, i = t; n < i.length; n++) {
931
968
  var s = i[n], o = s.split("/");
932
969
  if (o.length === 0)
933
970
  throw new Error("Invalid number skeleton");
934
- for (var a = o[0], f = o.slice(1), u = 0, h = f; u < h.length; u++) {
935
- var c = h[u];
971
+ for (var u = o[0], h = o.slice(1), a = 0, l = h; a < l.length; a++) {
972
+ var c = l[a];
936
973
  if (c.length === 0)
937
974
  throw new Error("Invalid number skeleton");
938
975
  }
939
- r.push({ stem: a, options: f });
976
+ r.push({ stem: u, options: h });
940
977
  }
941
978
  return r;
942
979
  }
943
- function Wr(e) {
980
+ function on(e) {
944
981
  return e.replace(/^(.*?)-/, "");
945
982
  }
946
- var Ye = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Lt = /^(@+)?(\+|#+)?[rs]?$/g, Zr = /(\*)(0+)|(#+)(0+)|(0+)/g, It = /^(0+)$/;
947
- function Ke(e) {
983
+ var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g, an = /(\*)(0+)|(#+)(0+)|(0+)/g, Ft = /^(0+)$/;
984
+ function ot(e) {
948
985
  var t = {};
949
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Lt, function(r, n, i) {
986
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Dt, function(r, n, i) {
950
987
  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)), "";
951
988
  }), t;
952
989
  }
953
- function Mt(e) {
990
+ function jt(e) {
954
991
  switch (e) {
955
992
  case "sign-auto":
956
993
  return {
@@ -990,7 +1027,7 @@ function Mt(e) {
990
1027
  };
991
1028
  }
992
1029
  }
993
- function Qr(e) {
1030
+ function un(e) {
994
1031
  var t;
995
1032
  if (e[0] === "E" && e[1] === "E" ? (t = {
996
1033
  notation: "engineering"
@@ -998,17 +1035,17 @@ function Qr(e) {
998
1035
  notation: "scientific"
999
1036
  }, e = e.slice(1)), t) {
1000
1037
  var r = e.slice(0, 2);
1001
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !It.test(e))
1038
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ft.test(e))
1002
1039
  throw new Error("Malformed concise eng/scientific notation");
1003
1040
  t.minimumIntegerDigits = e.length;
1004
1041
  }
1005
1042
  return t;
1006
1043
  }
1007
- function et(e) {
1008
- var t = {}, r = Mt(e);
1044
+ function at(e) {
1045
+ var t = {}, r = jt(e);
1009
1046
  return r || t;
1010
1047
  }
1011
- function qr(e) {
1048
+ function hn(e) {
1012
1049
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1013
1050
  var i = n[r];
1014
1051
  switch (i.stem) {
@@ -1032,7 +1069,7 @@ function qr(e) {
1032
1069
  continue;
1033
1070
  case "measure-unit":
1034
1071
  case "unit":
1035
- t.style = "unit", t.unit = Wr(i.options[0]);
1072
+ t.style = "unit", t.unit = on(i.options[0]);
1036
1073
  continue;
1037
1074
  case "compact-short":
1038
1075
  case "K":
@@ -1043,13 +1080,13 @@ function qr(e) {
1043
1080
  t.notation = "compact", t.compactDisplay = "long";
1044
1081
  continue;
1045
1082
  case "scientific":
1046
- t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(f, u) {
1047
- return E(E({}, f), et(u));
1083
+ t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
1084
+ return E(E({}, h), at(a));
1048
1085
  }, {}));
1049
1086
  continue;
1050
1087
  case "engineering":
1051
- t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(f, u) {
1052
- return E(E({}, f), et(u));
1088
+ t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
1089
+ return E(E({}, h), at(a));
1053
1090
  }, {}));
1054
1091
  continue;
1055
1092
  case "notation-simple":
@@ -1094,11 +1131,11 @@ function qr(e) {
1094
1131
  case "integer-width":
1095
1132
  if (i.options.length > 1)
1096
1133
  throw new RangeError("integer-width stems only accept a single optional option");
1097
- i.options[0].replace(Zr, function(f, u, h, c, l, p) {
1098
- if (u)
1099
- t.minimumIntegerDigits = h.length;
1134
+ i.options[0].replace(an, function(h, a, l, c, f, p) {
1135
+ if (a)
1136
+ t.minimumIntegerDigits = l.length;
1100
1137
  else {
1101
- if (c && l)
1138
+ if (c && f)
1102
1139
  throw new Error("We currently do not support maximum integer digits");
1103
1140
  if (p)
1104
1141
  throw new Error("We currently do not support exact integer digits");
@@ -1107,32 +1144,32 @@ function qr(e) {
1107
1144
  });
1108
1145
  continue;
1109
1146
  }
1110
- if (It.test(i.stem)) {
1147
+ if (Ft.test(i.stem)) {
1111
1148
  t.minimumIntegerDigits = i.stem.length;
1112
1149
  continue;
1113
1150
  }
1114
- if (Ye.test(i.stem)) {
1151
+ if (st.test(i.stem)) {
1115
1152
  if (i.options.length > 1)
1116
1153
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1117
- i.stem.replace(Ye, function(f, u, h, c, l, p) {
1118
- return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : l && p ? (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1154
+ i.stem.replace(st, function(h, a, l, c, f, p) {
1155
+ return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1119
1156
  });
1120
1157
  var s = i.options[0];
1121
- s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), Ke(s)));
1158
+ s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), ot(s)));
1122
1159
  continue;
1123
1160
  }
1124
- if (Lt.test(i.stem)) {
1125
- t = E(E({}, t), Ke(i.stem));
1161
+ if (Dt.test(i.stem)) {
1162
+ t = E(E({}, t), ot(i.stem));
1126
1163
  continue;
1127
1164
  }
1128
- var o = Mt(i.stem);
1165
+ var o = jt(i.stem);
1129
1166
  o && (t = E(E({}, t), o));
1130
- var a = Qr(i.stem);
1131
- a && (t = E(E({}, t), a));
1167
+ var u = un(i.stem);
1168
+ u && (t = E(E({}, t), u));
1132
1169
  }
1133
1170
  return t;
1134
1171
  }
1135
- var fe = {
1172
+ var ce = {
1136
1173
  "001": [
1137
1174
  "H",
1138
1175
  "h"
@@ -2547,22 +2584,22 @@ var fe = {
2547
2584
  "h"
2548
2585
  ]
2549
2586
  };
2550
- function Jr(e, t) {
2587
+ function ln(e, t) {
2551
2588
  for (var r = "", n = 0; n < e.length; n++) {
2552
2589
  var i = e.charAt(n);
2553
2590
  if (i === "j") {
2554
2591
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2555
2592
  s++, n++;
2556
- var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), f = "a", u = Yr(t);
2557
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2558
- r += f;
2593
+ var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = fn(t);
2594
+ for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
2595
+ r += h;
2559
2596
  for (; o-- > 0; )
2560
- r = u + r;
2597
+ r = a + r;
2561
2598
  } else i === "J" ? r += "H" : r += i;
2562
2599
  }
2563
2600
  return r;
2564
2601
  }
2565
- function Yr(e) {
2602
+ function fn(e) {
2566
2603
  var t = e.hourCycle;
2567
2604
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2568
2605
  e.hourCycles && // @ts-ignore
@@ -2581,23 +2618,23 @@ function Yr(e) {
2581
2618
  }
2582
2619
  var r = e.language, n;
2583
2620
  r !== "root" && (n = e.maximize().region);
2584
- var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
2621
+ var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
2585
2622
  return i[0];
2586
2623
  }
2587
- var Se, Kr = new RegExp("^".concat(Nt.source, "*")), en = new RegExp("".concat(Nt.source, "*$"));
2624
+ var we, cn = new RegExp("^".concat(Gt.source, "*")), gn = new RegExp("".concat(Gt.source, "*$"));
2588
2625
  function _(e, t) {
2589
2626
  return { start: e, end: t };
2590
2627
  }
2591
- var tn = !!String.prototype.startsWith && "_a".startsWith("a", 1), rn = !!String.fromCodePoint, nn = !!Object.fromEntries, sn = !!String.prototype.codePointAt, on = !!String.prototype.trimStart, an = !!String.prototype.trimEnd, un = !!Number.isSafeInteger, hn = un ? Number.isSafeInteger : function(e) {
2628
+ var mn = !!String.prototype.startsWith && "_a".startsWith("a", 1), dn = !!String.fromCodePoint, pn = !!Object.fromEntries, bn = !!String.prototype.codePointAt, yn = !!String.prototype.trimStart, _n = !!String.prototype.trimEnd, En = !!Number.isSafeInteger, xn = En ? Number.isSafeInteger : function(e) {
2592
2629
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2593
- }, Me = !0;
2630
+ }, Re = !0;
2594
2631
  try {
2595
- var ln = Rt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2596
- Me = ((Se = ln.exec("a")) === null || Se === void 0 ? void 0 : Se[0]) === "a";
2597
- } catch {
2598
- Me = !1;
2632
+ var vn = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2633
+ Re = ((we = vn.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
2634
+ } catch (e) {
2635
+ Re = !1;
2599
2636
  }
2600
- var tt = tn ? (
2637
+ var ut = mn ? (
2601
2638
  // Native
2602
2639
  function(t, r, n) {
2603
2640
  return t.startsWith(r, n);
@@ -2607,7 +2644,7 @@ var tt = tn ? (
2607
2644
  function(t, r, n) {
2608
2645
  return t.slice(n, n + r.length) === r;
2609
2646
  }
2610
- ), $e = rn ? String.fromCodePoint : (
2647
+ ), Ue = dn ? String.fromCodePoint : (
2611
2648
  // IE11
2612
2649
  function() {
2613
2650
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2619,19 +2656,19 @@ var tt = tn ? (
2619
2656
  }
2620
2657
  return n;
2621
2658
  }
2622
- ), rt = (
2659
+ ), ht = (
2623
2660
  // native
2624
- nn ? Object.fromEntries : (
2661
+ pn ? Object.fromEntries : (
2625
2662
  // Ponyfill
2626
2663
  function(t) {
2627
2664
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2628
- var s = i[n], o = s[0], a = s[1];
2629
- r[o] = a;
2665
+ var s = i[n], o = s[0], u = s[1];
2666
+ r[o] = u;
2630
2667
  }
2631
2668
  return r;
2632
2669
  }
2633
2670
  )
2634
- ), $t = sn ? (
2671
+ ), kt = bn ? (
2635
2672
  // Native
2636
2673
  function(t, r) {
2637
2674
  return t.codePointAt(r);
@@ -2645,7 +2682,7 @@ var tt = tn ? (
2645
2682
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2646
2683
  }
2647
2684
  }
2648
- ), fn = on ? (
2685
+ ), Tn = yn ? (
2649
2686
  // Native
2650
2687
  function(t) {
2651
2688
  return t.trimStart();
@@ -2653,9 +2690,9 @@ var tt = tn ? (
2653
2690
  ) : (
2654
2691
  // Ponyfill
2655
2692
  function(t) {
2656
- return t.replace(Kr, "");
2693
+ return t.replace(cn, "");
2657
2694
  }
2658
- ), cn = an ? (
2695
+ ), Cn = _n ? (
2659
2696
  // Native
2660
2697
  function(t) {
2661
2698
  return t.trimEnd();
@@ -2663,32 +2700,32 @@ var tt = tn ? (
2663
2700
  ) : (
2664
2701
  // Ponyfill
2665
2702
  function(t) {
2666
- return t.replace(en, "");
2703
+ return t.replace(gn, "");
2667
2704
  }
2668
2705
  );
2669
- function Rt(e, t) {
2706
+ function Vt(e, t) {
2670
2707
  return new RegExp(e, t);
2671
2708
  }
2672
- var Re;
2673
- if (Me) {
2674
- var nt = Rt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2675
- Re = function(t, r) {
2709
+ var Ge;
2710
+ if (Re) {
2711
+ var lt = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2712
+ Ge = function(t, r) {
2676
2713
  var n;
2677
- nt.lastIndex = r;
2678
- var i = nt.exec(t);
2714
+ lt.lastIndex = r;
2715
+ var i = lt.exec(t);
2679
2716
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2680
2717
  };
2681
2718
  } else
2682
- Re = function(t, r) {
2719
+ Ge = function(t, r) {
2683
2720
  for (var n = []; ; ) {
2684
- var i = $t(t, r);
2685
- if (i === void 0 || Ut(i) || pn(i))
2721
+ var i = kt(t, r);
2722
+ if (i === void 0 || Xt(i) || Bn(i))
2686
2723
  break;
2687
2724
  n.push(i), r += i >= 65536 ? 2 : 1;
2688
2725
  }
2689
- return $e.apply(void 0, n);
2726
+ return Ue.apply(void 0, n);
2690
2727
  };
2691
- var gn = (
2728
+ var Hn = (
2692
2729
  /** @class */
2693
2730
  function() {
2694
2731
  function e(t, r) {
@@ -2710,16 +2747,16 @@ var gn = (
2710
2747
  if (s === 125 && t > 0)
2711
2748
  break;
2712
2749
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
2713
- var a = this.clonePosition();
2750
+ var u = this.clonePosition();
2714
2751
  this.bump(), i.push({
2715
2752
  type: T.pound,
2716
- location: _(a, this.clonePosition())
2753
+ location: _(u, this.clonePosition())
2717
2754
  });
2718
2755
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2719
2756
  if (n)
2720
2757
  break;
2721
2758
  return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
2722
- } else if (s === 60 && !this.ignoreTag && Ue(this.peek() || 0)) {
2759
+ } else if (s === 60 && !this.ignoreTag && De(this.peek() || 0)) {
2723
2760
  var o = this.parseTag(t, r);
2724
2761
  if (o.err)
2725
2762
  return o;
@@ -2750,12 +2787,12 @@ var gn = (
2750
2787
  var s = this.parseMessage(t + 1, r, !0);
2751
2788
  if (s.err)
2752
2789
  return s;
2753
- var o = s.val, a = this.clonePosition();
2790
+ var o = s.val, u = this.clonePosition();
2754
2791
  if (this.bumpIf("</")) {
2755
- if (this.isEOF() || !Ue(this.char()))
2756
- return this.error(y.INVALID_TAG, _(a, this.clonePosition()));
2757
- var f = this.clonePosition(), u = this.parseTagName();
2758
- return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, _(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2792
+ if (this.isEOF() || !De(this.char()))
2793
+ return this.error(y.INVALID_TAG, _(u, this.clonePosition()));
2794
+ var h = this.clonePosition(), a = this.parseTagName();
2795
+ return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2759
2796
  val: {
2760
2797
  type: T.tag,
2761
2798
  value: i,
@@ -2763,14 +2800,14 @@ var gn = (
2763
2800
  location: _(n, this.clonePosition())
2764
2801
  },
2765
2802
  err: null
2766
- } : this.error(y.INVALID_TAG, _(a, this.clonePosition())));
2803
+ } : this.error(y.INVALID_TAG, _(u, this.clonePosition())));
2767
2804
  } else
2768
2805
  return this.error(y.UNCLOSED_TAG, _(n, this.clonePosition()));
2769
2806
  } else
2770
2807
  return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
2771
2808
  }, e.prototype.parseTagName = function() {
2772
2809
  var t = this.offset();
2773
- for (this.bump(); !this.isEOF() && dn(this.char()); )
2810
+ for (this.bump(); !this.isEOF() && Sn(this.char()); )
2774
2811
  this.bump();
2775
2812
  return this.message.slice(t, this.offset());
2776
2813
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2785,21 +2822,21 @@ var gn = (
2785
2822
  i += o;
2786
2823
  continue;
2787
2824
  }
2788
- var a = this.tryParseLeftAngleBracket();
2789
- if (a) {
2790
- i += a;
2825
+ var u = this.tryParseLeftAngleBracket();
2826
+ if (u) {
2827
+ i += u;
2791
2828
  continue;
2792
2829
  }
2793
2830
  break;
2794
2831
  }
2795
- var f = _(n, this.clonePosition());
2832
+ var h = _(n, this.clonePosition());
2796
2833
  return {
2797
- val: { type: T.literal, value: i, location: f },
2834
+ val: { type: T.literal, value: i, location: h },
2798
2835
  err: null
2799
2836
  };
2800
2837
  }, e.prototype.tryParseLeftAngleBracket = function() {
2801
2838
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2802
- !mn(this.peek() || 0)) ? (this.bump(), "<") : null;
2839
+ !An(this.peek() || 0)) ? (this.bump(), "<") : null;
2803
2840
  }, e.prototype.tryParseQuote = function(t) {
2804
2841
  if (this.isEOF() || this.char() !== 39)
2805
2842
  return null;
@@ -2833,12 +2870,12 @@ var gn = (
2833
2870
  r.push(n);
2834
2871
  this.bump();
2835
2872
  }
2836
- return $e.apply(void 0, r);
2873
+ return Ue.apply(void 0, r);
2837
2874
  }, e.prototype.tryParseUnquoted = function(t, r) {
2838
2875
  if (this.isEOF())
2839
2876
  return null;
2840
2877
  var n = this.char();
2841
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), $e(n));
2878
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
2842
2879
  }, e.prototype.parseArgument = function(t, r) {
2843
2880
  var n = this.clonePosition();
2844
2881
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2867,39 +2904,39 @@ var gn = (
2867
2904
  return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
2868
2905
  }
2869
2906
  }, e.prototype.parseIdentifierIfPossible = function() {
2870
- var t = this.clonePosition(), r = this.offset(), n = Re(this.message, r), i = r + n.length;
2907
+ var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
2871
2908
  this.bumpTo(i);
2872
2909
  var s = this.clonePosition(), o = _(t, s);
2873
2910
  return { value: n, location: o };
2874
2911
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2875
- var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, f = this.clonePosition();
2876
- switch (a) {
2912
+ var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2913
+ switch (u) {
2877
2914
  case "":
2878
- return this.error(y.EXPECT_ARGUMENT_TYPE, _(o, f));
2915
+ return this.error(y.EXPECT_ARGUMENT_TYPE, _(o, h));
2879
2916
  case "number":
2880
2917
  case "date":
2881
2918
  case "time": {
2882
2919
  this.bumpSpace();
2883
- var u = null;
2920
+ var a = null;
2884
2921
  if (this.bumpIf(",")) {
2885
2922
  this.bumpSpace();
2886
- var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2923
+ var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2887
2924
  if (c.err)
2888
2925
  return c;
2889
- var l = cn(c.val);
2890
- if (l.length === 0)
2926
+ var f = Cn(c.val);
2927
+ if (f.length === 0)
2891
2928
  return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
2892
- var p = _(h, this.clonePosition());
2893
- u = { style: l, styleLocation: p };
2929
+ var p = _(l, this.clonePosition());
2930
+ a = { style: f, styleLocation: p };
2894
2931
  }
2895
2932
  var d = this.tryParseArgumentClose(i);
2896
2933
  if (d.err)
2897
2934
  return d;
2898
2935
  var g = _(i, this.clonePosition());
2899
- if (u && tt(u?.style, "::", 0)) {
2900
- var x = fn(u.style.slice(2));
2901
- if (a === "number") {
2902
- var c = this.parseNumberSkeletonFromString(x, u.styleLocation);
2936
+ if (a && ut(a == null ? void 0 : a.style, "::", 0)) {
2937
+ var x = Tn(a.style.slice(2));
2938
+ if (u === "number") {
2939
+ var c = this.parseNumberSkeletonFromString(x, a.styleLocation);
2903
2940
  return c.err ? c : {
2904
2941
  val: { type: T.number, value: n, location: g, style: c.val },
2905
2942
  err: null
@@ -2908,25 +2945,25 @@ var gn = (
2908
2945
  if (x.length === 0)
2909
2946
  return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
2910
2947
  var m = x;
2911
- this.locale && (m = Jr(x, this.locale));
2912
- var l = {
2913
- type: q.dateTime,
2948
+ this.locale && (m = ln(x, this.locale));
2949
+ var f = {
2950
+ type: J.dateTime,
2914
2951
  pattern: m,
2915
- location: u.styleLocation,
2916
- parsedOptions: this.shouldParseSkeletons ? Vr(m) : {}
2917
- }, C = a === "date" ? T.date : T.time;
2952
+ location: a.styleLocation,
2953
+ parsedOptions: this.shouldParseSkeletons ? rn(m) : {}
2954
+ }, C = u === "date" ? T.date : T.time;
2918
2955
  return {
2919
- val: { type: C, value: n, location: g, style: l },
2956
+ val: { type: C, value: n, location: g, style: f },
2920
2957
  err: null
2921
2958
  };
2922
2959
  }
2923
2960
  }
2924
2961
  return {
2925
2962
  val: {
2926
- type: a === "number" ? T.number : a === "date" ? T.date : T.time,
2963
+ type: u === "number" ? T.number : u === "date" ? T.date : T.time,
2927
2964
  value: n,
2928
2965
  location: g,
2929
- style: (s = u?.style) !== null && s !== void 0 ? s : null
2966
+ style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
2930
2967
  },
2931
2968
  err: null
2932
2969
  };
@@ -2938,45 +2975,45 @@ var gn = (
2938
2975
  if (this.bumpSpace(), !this.bumpIf(","))
2939
2976
  return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(A, E({}, A)));
2940
2977
  this.bumpSpace();
2941
- var L = this.parseIdentifierIfPossible(), w = 0;
2942
- if (a !== "select" && L.value === "offset") {
2978
+ var I = this.parseIdentifierIfPossible(), w = 0;
2979
+ if (u !== "select" && I.value === "offset") {
2943
2980
  if (!this.bumpIf(":"))
2944
2981
  return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
2945
2982
  this.bumpSpace();
2946
2983
  var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2947
2984
  if (c.err)
2948
2985
  return c;
2949
- this.bumpSpace(), L = this.parseIdentifierIfPossible(), w = c.val;
2986
+ this.bumpSpace(), I = this.parseIdentifierIfPossible(), w = c.val;
2950
2987
  }
2951
- var S = this.tryParsePluralOrSelectOptions(t, a, r, L);
2988
+ var S = this.tryParsePluralOrSelectOptions(t, u, r, I);
2952
2989
  if (S.err)
2953
2990
  return S;
2954
2991
  var d = this.tryParseArgumentClose(i);
2955
2992
  if (d.err)
2956
2993
  return d;
2957
- var P = _(i, this.clonePosition());
2958
- return a === "select" ? {
2994
+ var N = _(i, this.clonePosition());
2995
+ return u === "select" ? {
2959
2996
  val: {
2960
2997
  type: T.select,
2961
2998
  value: n,
2962
- options: rt(S.val),
2963
- location: P
2999
+ options: ht(S.val),
3000
+ location: N
2964
3001
  },
2965
3002
  err: null
2966
3003
  } : {
2967
3004
  val: {
2968
3005
  type: T.plural,
2969
3006
  value: n,
2970
- options: rt(S.val),
3007
+ options: ht(S.val),
2971
3008
  offset: w,
2972
- pluralType: a === "plural" ? "cardinal" : "ordinal",
2973
- location: P
3009
+ pluralType: u === "plural" ? "cardinal" : "ordinal",
3010
+ location: N
2974
3011
  },
2975
3012
  err: null
2976
3013
  };
2977
3014
  }
2978
3015
  default:
2979
- return this.error(y.INVALID_ARGUMENT_TYPE, _(o, f));
3016
+ return this.error(y.INVALID_ARGUMENT_TYPE, _(o, h));
2980
3017
  }
2981
3018
  }, e.prototype.tryParseArgumentClose = function(t) {
2982
3019
  return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -3018,34 +3055,34 @@ var gn = (
3018
3055
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3019
3056
  var n = [];
3020
3057
  try {
3021
- n = zr(t);
3022
- } catch {
3058
+ n = sn(t);
3059
+ } catch (i) {
3023
3060
  return this.error(y.INVALID_NUMBER_SKELETON, r);
3024
3061
  }
3025
3062
  return {
3026
3063
  val: {
3027
- type: q.number,
3064
+ type: J.number,
3028
3065
  tokens: n,
3029
3066
  location: r,
3030
- parsedOptions: this.shouldParseSkeletons ? qr(n) : {}
3067
+ parsedOptions: this.shouldParseSkeletons ? hn(n) : {}
3031
3068
  },
3032
3069
  err: null
3033
3070
  };
3034
3071
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3035
- for (var s, o = !1, a = [], f = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3036
- if (u.length === 0) {
3072
+ for (var s, o = !1, u = [], h = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
3073
+ if (a.length === 0) {
3037
3074
  var c = this.clonePosition();
3038
3075
  if (r !== "select" && this.bumpIf("=")) {
3039
- var l = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
3040
- if (l.err)
3041
- return l;
3042
- h = _(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3076
+ var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
3077
+ if (f.err)
3078
+ return f;
3079
+ l = _(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
3043
3080
  } else
3044
3081
  break;
3045
3082
  }
3046
- if (f.has(u))
3047
- return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3048
- u === "other" && (o = !0), this.bumpSpace();
3083
+ if (h.has(a))
3084
+ return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3085
+ a === "other" && (o = !0), this.bumpSpace();
3049
3086
  var p = this.clonePosition();
3050
3087
  if (!this.bumpIf("{"))
3051
3088
  return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
@@ -3055,27 +3092,27 @@ var gn = (
3055
3092
  var g = this.tryParseArgumentClose(p);
3056
3093
  if (g.err)
3057
3094
  return g;
3058
- a.push([
3059
- u,
3095
+ u.push([
3096
+ a,
3060
3097
  {
3061
3098
  value: d.val,
3062
3099
  location: _(p, this.clonePosition())
3063
3100
  }
3064
- ]), f.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
3101
+ ]), h.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
3065
3102
  }
3066
- return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3103
+ return u.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
3067
3104
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3068
3105
  var n = 1, i = this.clonePosition();
3069
3106
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3070
3107
  for (var s = !1, o = 0; !this.isEOF(); ) {
3071
- var a = this.char();
3072
- if (a >= 48 && a <= 57)
3073
- s = !0, o = o * 10 + (a - 48), this.bump();
3108
+ var u = this.char();
3109
+ if (u >= 48 && u <= 57)
3110
+ s = !0, o = o * 10 + (u - 48), this.bump();
3074
3111
  else
3075
3112
  break;
3076
3113
  }
3077
- var f = _(i, this.clonePosition());
3078
- return s ? (o *= n, hn(o) ? { val: o, err: null } : this.error(r, f)) : this.error(t, f);
3114
+ var h = _(i, this.clonePosition());
3115
+ return s ? (o *= n, xn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
3079
3116
  }, e.prototype.offset = function() {
3080
3117
  return this.position.offset;
3081
3118
  }, e.prototype.isEOF = function() {
@@ -3090,7 +3127,7 @@ var gn = (
3090
3127
  var t = this.position.offset;
3091
3128
  if (t >= this.message.length)
3092
3129
  throw Error("out of bound");
3093
- var r = $t(this.message, t);
3130
+ var r = kt(this.message, t);
3094
3131
  if (r === void 0)
3095
3132
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3096
3133
  return r;
@@ -3109,7 +3146,7 @@ var gn = (
3109
3146
  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);
3110
3147
  }
3111
3148
  }, e.prototype.bumpIf = function(t) {
3112
- if (tt(this.message, t, this.offset())) {
3149
+ if (ut(this.message, t, this.offset())) {
3113
3150
  for (var r = 0; r < t.length; r++)
3114
3151
  this.bump();
3115
3152
  return !0;
@@ -3131,56 +3168,56 @@ var gn = (
3131
3168
  break;
3132
3169
  }
3133
3170
  }, e.prototype.bumpSpace = function() {
3134
- for (; !this.isEOF() && Ut(this.char()); )
3171
+ for (; !this.isEOF() && Xt(this.char()); )
3135
3172
  this.bump();
3136
3173
  }, e.prototype.peek = function() {
3137
3174
  if (this.isEOF())
3138
3175
  return null;
3139
3176
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3140
- return n ?? null;
3177
+ return n != null ? n : null;
3141
3178
  }, e;
3142
3179
  }()
3143
3180
  );
3144
- function Ue(e) {
3181
+ function De(e) {
3145
3182
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3146
3183
  }
3147
- function mn(e) {
3148
- return Ue(e) || e === 47;
3184
+ function An(e) {
3185
+ return De(e) || e === 47;
3149
3186
  }
3150
- function dn(e) {
3187
+ function Sn(e) {
3151
3188
  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;
3152
3189
  }
3153
- function Ut(e) {
3190
+ function Xt(e) {
3154
3191
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3155
3192
  }
3156
- function pn(e) {
3193
+ function Bn(e) {
3157
3194
  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;
3158
3195
  }
3159
- function Ge(e) {
3196
+ function Fe(e) {
3160
3197
  e.forEach(function(t) {
3161
- if (delete t.location, Bt(t) || wt(t))
3198
+ if (delete t.location, Mt(t) || $t(t))
3162
3199
  for (var r in t.options)
3163
- delete t.options[r].location, Ge(t.options[r].value);
3164
- else Ht(t) && Pt(t.style) || (At(t) || St(t)) && Ie(t.style) ? delete t.style.location : Ot(t) && Ge(t.children);
3200
+ delete t.options[r].location, Fe(t.options[r].value);
3201
+ else Nt(t) && Ut(t.style) || (Lt(t) || It(t)) && $e(t.style) ? delete t.style.location : Rt(t) && Fe(t.children);
3165
3202
  });
3166
3203
  }
3167
- function bn(e, t) {
3204
+ function wn(e, t) {
3168
3205
  t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3169
- var r = new gn(e, t).parse();
3206
+ var r = new Hn(e, t).parse();
3170
3207
  if (r.err) {
3171
3208
  var n = SyntaxError(y[r.err.kind]);
3172
3209
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3173
3210
  }
3174
- return t?.captureLocation || Ge(r.val), r.val;
3211
+ return t != null && t.captureLocation || Fe(r.val), r.val;
3175
3212
  }
3176
- var J;
3213
+ var Y;
3177
3214
  (function(e) {
3178
3215
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3179
- })(J || (J = {}));
3180
- var Ee = (
3216
+ })(Y || (Y = {}));
3217
+ var xe = (
3181
3218
  /** @class */
3182
3219
  function(e) {
3183
- _e(t, e);
3220
+ Ee(t, e);
3184
3221
  function t(r, n, i) {
3185
3222
  var s = e.call(this, r) || this;
3186
3223
  return s.code = n, s.originalMessage = i, s;
@@ -3189,155 +3226,155 @@ var Ee = (
3189
3226
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3190
3227
  }, t;
3191
3228
  }(Error)
3192
- ), it = (
3229
+ ), ft = (
3193
3230
  /** @class */
3194
3231
  function(e) {
3195
- _e(t, e);
3232
+ Ee(t, e);
3196
3233
  function t(r, n, i, s) {
3197
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, s) || this;
3234
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, s) || this;
3198
3235
  }
3199
3236
  return t;
3200
- }(Ee)
3201
- ), yn = (
3237
+ }(xe)
3238
+ ), On = (
3202
3239
  /** @class */
3203
3240
  function(e) {
3204
- _e(t, e);
3241
+ Ee(t, e);
3205
3242
  function t(r, n, i) {
3206
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
3243
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
3207
3244
  }
3208
3245
  return t;
3209
- }(Ee)
3210
- ), _n = (
3246
+ }(xe)
3247
+ ), Pn = (
3211
3248
  /** @class */
3212
3249
  function(e) {
3213
- _e(t, e);
3250
+ Ee(t, e);
3214
3251
  function t(r, n) {
3215
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
3252
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
3216
3253
  }
3217
3254
  return t;
3218
- }(Ee)
3219
- ), O;
3255
+ }(xe)
3256
+ ), P;
3220
3257
  (function(e) {
3221
3258
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3222
- })(O || (O = {}));
3223
- function En(e) {
3259
+ })(P || (P = {}));
3260
+ function Nn(e) {
3224
3261
  return e.length < 2 ? e : e.reduce(function(t, r) {
3225
3262
  var n = t[t.length - 1];
3226
- return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
3263
+ return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
3227
3264
  }, []);
3228
3265
  }
3229
- function xn(e) {
3266
+ function Ln(e) {
3230
3267
  return typeof e == "function";
3231
3268
  }
3232
- function ge(e, t, r, n, i, s, o) {
3233
- if (e.length === 1 && Je(e[0]))
3269
+ function me(e, t, r, n, i, s, o) {
3270
+ if (e.length === 1 && it(e[0]))
3234
3271
  return [
3235
3272
  {
3236
- type: O.literal,
3273
+ type: P.literal,
3237
3274
  value: e[0].value
3238
3275
  }
3239
3276
  ];
3240
- for (var a = [], f = 0, u = e; f < u.length; f++) {
3241
- var h = u[f];
3242
- if (Je(h)) {
3243
- a.push({
3244
- type: O.literal,
3245
- value: h.value
3277
+ for (var u = [], h = 0, a = e; h < a.length; h++) {
3278
+ var l = a[h];
3279
+ if (it(l)) {
3280
+ u.push({
3281
+ type: P.literal,
3282
+ value: l.value
3246
3283
  });
3247
3284
  continue;
3248
3285
  }
3249
- if (jr(h)) {
3250
- typeof s == "number" && a.push({
3251
- type: O.literal,
3286
+ if (en(l)) {
3287
+ typeof s == "number" && u.push({
3288
+ type: P.literal,
3252
3289
  value: r.getNumberFormat(t).format(s)
3253
3290
  });
3254
3291
  continue;
3255
3292
  }
3256
- var c = h.value;
3293
+ var c = l.value;
3257
3294
  if (!(i && c in i))
3258
- throw new _n(c, o);
3259
- var l = i[c];
3260
- if (Fr(h)) {
3261
- (!l || typeof l == "string" || typeof l == "number") && (l = typeof l == "string" || typeof l == "number" ? String(l) : ""), a.push({
3262
- type: typeof l == "string" ? O.literal : O.object,
3263
- value: l
3295
+ throw new Pn(c, o);
3296
+ var f = i[c];
3297
+ if (Kr(l)) {
3298
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
3299
+ type: typeof f == "string" ? P.literal : P.object,
3300
+ value: f
3264
3301
  });
3265
3302
  continue;
3266
3303
  }
3267
- if (At(h)) {
3268
- var p = typeof h.style == "string" ? n.date[h.style] : Ie(h.style) ? h.style.parsedOptions : void 0;
3269
- a.push({
3270
- type: O.literal,
3271
- value: r.getDateTimeFormat(t, p).format(l)
3304
+ if (Lt(l)) {
3305
+ var p = typeof l.style == "string" ? n.date[l.style] : $e(l.style) ? l.style.parsedOptions : void 0;
3306
+ u.push({
3307
+ type: P.literal,
3308
+ value: r.getDateTimeFormat(t, p).format(f)
3272
3309
  });
3273
3310
  continue;
3274
3311
  }
3275
- if (St(h)) {
3276
- var p = typeof h.style == "string" ? n.time[h.style] : Ie(h.style) ? h.style.parsedOptions : n.time.medium;
3277
- a.push({
3278
- type: O.literal,
3279
- value: r.getDateTimeFormat(t, p).format(l)
3312
+ if (It(l)) {
3313
+ var p = typeof l.style == "string" ? n.time[l.style] : $e(l.style) ? l.style.parsedOptions : n.time.medium;
3314
+ u.push({
3315
+ type: P.literal,
3316
+ value: r.getDateTimeFormat(t, p).format(f)
3280
3317
  });
3281
3318
  continue;
3282
3319
  }
3283
- if (Ht(h)) {
3284
- var p = typeof h.style == "string" ? n.number[h.style] : Pt(h.style) ? h.style.parsedOptions : void 0;
3285
- p && p.scale && (l = l * (p.scale || 1)), a.push({
3286
- type: O.literal,
3287
- value: r.getNumberFormat(t, p).format(l)
3320
+ if (Nt(l)) {
3321
+ var p = typeof l.style == "string" ? n.number[l.style] : Ut(l.style) ? l.style.parsedOptions : void 0;
3322
+ p && p.scale && (f = f * (p.scale || 1)), u.push({
3323
+ type: P.literal,
3324
+ value: r.getNumberFormat(t, p).format(f)
3288
3325
  });
3289
3326
  continue;
3290
3327
  }
3291
- if (Ot(h)) {
3292
- var d = h.children, g = h.value, x = i[g];
3293
- if (!xn(x))
3294
- throw new yn(g, "function", o);
3295
- var m = ge(d, t, r, n, i, s), C = x(m.map(function(w) {
3328
+ if (Rt(l)) {
3329
+ var d = l.children, g = l.value, x = i[g];
3330
+ if (!Ln(x))
3331
+ throw new On(g, "function", o);
3332
+ var m = me(d, t, r, n, i, s), C = x(m.map(function(w) {
3296
3333
  return w.value;
3297
3334
  }));
3298
- Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(w) {
3335
+ Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(w) {
3299
3336
  return {
3300
- type: typeof w == "string" ? O.literal : O.object,
3337
+ type: typeof w == "string" ? P.literal : P.object,
3301
3338
  value: w
3302
3339
  };
3303
3340
  }));
3304
3341
  }
3305
- if (Bt(h)) {
3306
- var A = h.options[l] || h.options.other;
3342
+ if (Mt(l)) {
3343
+ var A = l.options[f] || l.options.other;
3307
3344
  if (!A)
3308
- throw new it(h.value, l, Object.keys(h.options), o);
3309
- a.push.apply(a, ge(A.value, t, r, n, i));
3345
+ throw new ft(l.value, f, Object.keys(l.options), o);
3346
+ u.push.apply(u, me(A.value, t, r, n, i));
3310
3347
  continue;
3311
3348
  }
3312
- if (wt(h)) {
3313
- var A = h.options["=".concat(l)];
3349
+ if ($t(l)) {
3350
+ var A = l.options["=".concat(f)];
3314
3351
  if (!A) {
3315
3352
  if (!Intl.PluralRules)
3316
- throw new Ee(`Intl.PluralRules is not available in this environment.
3353
+ throw new xe(`Intl.PluralRules is not available in this environment.
3317
3354
  Try polyfilling it using "@formatjs/intl-pluralrules"
3318
- `, J.MISSING_INTL_API, o);
3319
- var L = r.getPluralRules(t, { type: h.pluralType }).select(l - (h.offset || 0));
3320
- A = h.options[L] || h.options.other;
3355
+ `, Y.MISSING_INTL_API, o);
3356
+ var I = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3357
+ A = l.options[I] || l.options.other;
3321
3358
  }
3322
3359
  if (!A)
3323
- throw new it(h.value, l, Object.keys(h.options), o);
3324
- a.push.apply(a, ge(A.value, t, r, n, i, l - (h.offset || 0)));
3360
+ throw new ft(l.value, f, Object.keys(l.options), o);
3361
+ u.push.apply(u, me(A.value, t, r, n, i, f - (l.offset || 0)));
3325
3362
  continue;
3326
3363
  }
3327
3364
  }
3328
- return En(a);
3365
+ return Nn(u);
3329
3366
  }
3330
- function vn(e, t) {
3367
+ function In(e, t) {
3331
3368
  return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3332
3369
  return r[n] = E(E({}, e[n]), t[n] || {}), r;
3333
3370
  }, {})) : e;
3334
3371
  }
3335
- function Tn(e, t) {
3372
+ function Mn(e, t) {
3336
3373
  return t ? Object.keys(e).reduce(function(r, n) {
3337
- return r[n] = vn(e[n], t[n]), r;
3374
+ return r[n] = In(e[n], t[n]), r;
3338
3375
  }, E({}, e)) : e;
3339
3376
  }
3340
- function Be(e) {
3377
+ function Oe(e) {
3341
3378
  return {
3342
3379
  create: function() {
3343
3380
  return {
@@ -3351,39 +3388,39 @@ function Be(e) {
3351
3388
  }
3352
3389
  };
3353
3390
  }
3354
- function Cn(e) {
3391
+ function $n(e) {
3355
3392
  return e === void 0 && (e = {
3356
3393
  number: {},
3357
3394
  dateTime: {},
3358
3395
  pluralRules: {}
3359
3396
  }), {
3360
- getNumberFormat: He(function() {
3397
+ getNumberFormat: Se(function() {
3361
3398
  for (var t, r = [], n = 0; n < arguments.length; n++)
3362
3399
  r[n] = arguments[n];
3363
- return new ((t = Intl.NumberFormat).bind.apply(t, Ce([void 0], r, !1)))();
3400
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
3364
3401
  }, {
3365
- cache: Be(e.number),
3366
- strategy: Ae.variadic
3402
+ cache: Oe(e.number),
3403
+ strategy: Be.variadic
3367
3404
  }),
3368
- getDateTimeFormat: He(function() {
3405
+ getDateTimeFormat: Se(function() {
3369
3406
  for (var t, r = [], n = 0; n < arguments.length; n++)
3370
3407
  r[n] = arguments[n];
3371
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ce([void 0], r, !1)))();
3408
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
3372
3409
  }, {
3373
- cache: Be(e.dateTime),
3374
- strategy: Ae.variadic
3410
+ cache: Oe(e.dateTime),
3411
+ strategy: Be.variadic
3375
3412
  }),
3376
- getPluralRules: He(function() {
3413
+ getPluralRules: Se(function() {
3377
3414
  for (var t, r = [], n = 0; n < arguments.length; n++)
3378
3415
  r[n] = arguments[n];
3379
- return new ((t = Intl.PluralRules).bind.apply(t, Ce([void 0], r, !1)))();
3416
+ return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
3380
3417
  }, {
3381
- cache: Be(e.pluralRules),
3382
- strategy: Ae.variadic
3418
+ cache: Oe(e.pluralRules),
3419
+ strategy: Be.variadic
3383
3420
  })
3384
3421
  };
3385
3422
  }
3386
- var Hn = (
3423
+ var Rn = (
3387
3424
  /** @class */
3388
3425
  function() {
3389
3426
  function e(t, r, n, i) {
@@ -3393,20 +3430,20 @@ var Hn = (
3393
3430
  number: {},
3394
3431
  dateTime: {},
3395
3432
  pluralRules: {}
3396
- }, this.format = function(f) {
3397
- var u = s.formatToParts(f);
3398
- if (u.length === 1)
3399
- return u[0].value;
3400
- var h = u.reduce(function(c, l) {
3401
- return !c.length || l.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(l.value) : c[c.length - 1] += l.value, c;
3433
+ }, this.format = function(h) {
3434
+ var a = s.formatToParts(h);
3435
+ if (a.length === 1)
3436
+ return a[0].value;
3437
+ var l = a.reduce(function(c, f) {
3438
+ return !c.length || f.type !== P.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3402
3439
  }, []);
3403
- return h.length <= 1 ? h[0] || "" : h;
3404
- }, this.formatToParts = function(f) {
3405
- return ge(s.ast, s.locales, s.formatters, s.formats, f, void 0, s.message);
3440
+ return l.length <= 1 ? l[0] || "" : l;
3441
+ }, this.formatToParts = function(h) {
3442
+ return me(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
3406
3443
  }, this.resolvedOptions = function() {
3407
- var f;
3444
+ var h;
3408
3445
  return {
3409
- locale: ((f = s.resolvedLocale) === null || f === void 0 ? void 0 : f.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3446
+ locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3410
3447
  };
3411
3448
  }, this.getAst = function() {
3412
3449
  return s.ast;
@@ -3415,13 +3452,13 @@ var Hn = (
3415
3452
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3416
3453
  var o = i || {};
3417
3454
  o.formatters;
3418
- var a = Lr(o, ["formatters"]);
3419
- this.ast = e.__parse(t, E(E({}, a), { locale: this.resolvedLocale }));
3455
+ var u = Xr(o, ["formatters"]);
3456
+ this.ast = e.__parse(t, E(E({}, u), { locale: this.resolvedLocale }));
3420
3457
  } else
3421
3458
  this.ast = t;
3422
3459
  if (!Array.isArray(this.ast))
3423
3460
  throw new TypeError("A message must be provided as a String or AST.");
3424
- this.formats = Tn(e.formats, n), this.formatters = i && i.formatters || Cn(this.formatterCache);
3461
+ this.formats = Mn(e.formats, n), this.formatters = i && i.formatters || $n(this.formatterCache);
3425
3462
  }
3426
3463
  return Object.defineProperty(e, "defaultLocale", {
3427
3464
  get: function() {
@@ -3430,11 +3467,11 @@ var Hn = (
3430
3467
  enumerable: !1,
3431
3468
  configurable: !0
3432
3469
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3433
- if (!(typeof Intl.Locale > "u")) {
3470
+ if (typeof Intl.Locale != "undefined") {
3434
3471
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3435
3472
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3436
3473
  }
3437
- }, e.__parse = bn, e.formats = {
3474
+ }, e.__parse = wn, e.formats = {
3438
3475
  number: {
3439
3476
  integer: {
3440
3477
  maximumFractionDigits: 0
@@ -3495,7 +3532,7 @@ var Hn = (
3495
3532
  }, e;
3496
3533
  }()
3497
3534
  );
3498
- function An(e, t) {
3535
+ function Un(e, t) {
3499
3536
  if (t == null)
3500
3537
  return;
3501
3538
  if (t in e)
@@ -3516,92 +3553,92 @@ function An(e, t) {
3516
3553
  n = void 0;
3517
3554
  return n;
3518
3555
  }
3519
- const G = {}, Sn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Gt = (e, t) => {
3556
+ const D = {}, Gn = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), zt = (e, t) => {
3520
3557
  if (t == null)
3521
3558
  return;
3522
- if (t in G && e in G[t])
3523
- return G[t][e];
3524
- const r = xe(t);
3559
+ if (t in D && e in D[t])
3560
+ return D[t][e];
3561
+ const r = ve(t);
3525
3562
  for (let n = 0; n < r.length; n++) {
3526
- const i = r[n], s = wn(i, e);
3563
+ const i = r[n], s = Fn(i, e);
3527
3564
  if (s)
3528
- return Sn(e, t, s);
3565
+ return Gn(e, t, s);
3529
3566
  }
3530
3567
  };
3531
- let Ve;
3532
- const ue = ye({});
3533
- function Bn(e) {
3534
- return Ve[e] || null;
3568
+ let ze;
3569
+ const he = _e({});
3570
+ function Dn(e) {
3571
+ return ze[e] || null;
3535
3572
  }
3536
- function Dt(e) {
3537
- return e in Ve;
3573
+ function Wt(e) {
3574
+ return e in ze;
3538
3575
  }
3539
- function wn(e, t) {
3540
- if (!Dt(e))
3576
+ function Fn(e, t) {
3577
+ if (!Wt(e))
3541
3578
  return null;
3542
- const r = Bn(e);
3543
- return An(r, t);
3579
+ const r = Dn(e);
3580
+ return Un(r, t);
3544
3581
  }
3545
- function On(e) {
3582
+ function jn(e) {
3546
3583
  if (e == null)
3547
3584
  return;
3548
- const t = xe(e);
3585
+ const t = ve(e);
3549
3586
  for (let r = 0; r < t.length; r++) {
3550
3587
  const n = t[r];
3551
- if (Dt(n))
3588
+ if (Wt(n))
3552
3589
  return n;
3553
3590
  }
3554
3591
  }
3555
- function Ft(e, ...t) {
3556
- delete G[e], ue.update((r) => (r[e] = Nr.all([r[e] || {}, ...t]), r));
3592
+ function Zt(e, ...t) {
3593
+ delete D[e], he.update((r) => (r[e] = Vr.all([r[e] || {}, ...t]), r));
3557
3594
  }
3558
- K(
3559
- [ue],
3595
+ ee(
3596
+ [he],
3560
3597
  ([e]) => Object.keys(e)
3561
3598
  );
3562
- ue.subscribe((e) => Ve = e);
3563
- const me = {};
3564
- function Pn(e, t) {
3565
- me[e].delete(t), me[e].size === 0 && delete me[e];
3599
+ he.subscribe((e) => ze = e);
3600
+ const de = {};
3601
+ function kn(e, t) {
3602
+ de[e].delete(t), de[e].size === 0 && delete de[e];
3566
3603
  }
3567
- function jt(e) {
3568
- return me[e];
3604
+ function Qt(e) {
3605
+ return de[e];
3569
3606
  }
3570
- function Nn(e) {
3571
- return xe(e).map((t) => {
3572
- const r = jt(t);
3607
+ function Vn(e) {
3608
+ return ve(e).map((t) => {
3609
+ const r = Qt(t);
3573
3610
  return [t, r ? [...r] : []];
3574
3611
  }).filter(([, t]) => t.length > 0);
3575
3612
  }
3576
- function De(e) {
3577
- return e == null ? !1 : xe(e).some(
3613
+ function je(e) {
3614
+ return e == null ? !1 : ve(e).some(
3578
3615
  (t) => {
3579
3616
  var r;
3580
- return (r = jt(t)) == null ? void 0 : r.size;
3617
+ return (r = Qt(t)) == null ? void 0 : r.size;
3581
3618
  }
3582
3619
  );
3583
3620
  }
3584
- function Ln(e, t) {
3621
+ function Xn(e, t) {
3585
3622
  return Promise.all(
3586
- t.map((n) => (Pn(e, n), n().then((i) => i.default || i)))
3587
- ).then((n) => Ft(e, ...n));
3588
- }
3589
- const re = {};
3590
- function kt(e) {
3591
- if (!De(e))
3592
- return e in re ? re[e] : Promise.resolve();
3593
- const t = Nn(e);
3594
- return re[e] = Promise.all(
3623
+ t.map((n) => (kn(e, n), n().then((i) => i.default || i)))
3624
+ ).then((n) => Zt(e, ...n));
3625
+ }
3626
+ const ne = {};
3627
+ function qt(e) {
3628
+ if (!je(e))
3629
+ return e in ne ? ne[e] : Promise.resolve();
3630
+ const t = Vn(e);
3631
+ return ne[e] = Promise.all(
3595
3632
  t.map(
3596
- ([r, n]) => Ln(r, n)
3633
+ ([r, n]) => Xn(r, n)
3597
3634
  )
3598
3635
  ).then(() => {
3599
- if (De(e))
3600
- return kt(e);
3601
- delete re[e];
3602
- }), re[e];
3636
+ if (je(e))
3637
+ return qt(e);
3638
+ delete ne[e];
3639
+ }), ne[e];
3603
3640
  }
3604
- const In = {
3641
+ const zn = {
3605
3642
  number: {
3606
3643
  scientific: { notation: "scientific" },
3607
3644
  engineering: { notation: "engineering" },
@@ -3630,178 +3667,178 @@ const In = {
3630
3667
  timeZoneName: "short"
3631
3668
  }
3632
3669
  }
3633
- }, Mn = {
3670
+ }, Wn = {
3634
3671
  fallbackLocale: null,
3635
3672
  loadingDelay: 200,
3636
- formats: In,
3673
+ formats: zn,
3637
3674
  warnOnMissingMessages: !0,
3638
3675
  handleMissingMessage: void 0,
3639
3676
  ignoreTag: !0
3640
- }, $n = Mn;
3641
- function Y() {
3642
- return $n;
3677
+ }, Zn = Wn;
3678
+ function K() {
3679
+ return Zn;
3643
3680
  }
3644
- const we = ye(!1);
3645
- var Rn = Object.defineProperty, Un = Object.defineProperties, Gn = Object.getOwnPropertyDescriptors, st = Object.getOwnPropertySymbols, Dn = Object.prototype.hasOwnProperty, Fn = Object.prototype.propertyIsEnumerable, ot = (e, t, r) => t in e ? Rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, jn = (e, t) => {
3681
+ const Pe = _e(!1);
3682
+ var Qn = Object.defineProperty, qn = Object.defineProperties, Jn = Object.getOwnPropertyDescriptors, ct = Object.getOwnPropertySymbols, Yn = Object.prototype.hasOwnProperty, Kn = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? Qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ei = (e, t) => {
3646
3683
  for (var r in t)
3647
- Dn.call(t, r) && ot(e, r, t[r]);
3648
- if (st)
3649
- for (var r of st(t))
3650
- Fn.call(t, r) && ot(e, r, t[r]);
3684
+ Yn.call(t, r) && gt(e, r, t[r]);
3685
+ if (ct)
3686
+ for (var r of ct(t))
3687
+ Kn.call(t, r) && gt(e, r, t[r]);
3651
3688
  return e;
3652
- }, kn = (e, t) => Un(e, Gn(t));
3653
- let Fe;
3654
- const pe = ye(null);
3655
- function at(e) {
3689
+ }, ti = (e, t) => qn(e, Jn(t));
3690
+ let ke;
3691
+ const be = _e(null);
3692
+ function mt(e) {
3656
3693
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3657
3694
  }
3658
- function xe(e, t = Y().fallbackLocale) {
3659
- const r = at(e);
3660
- return t ? [.../* @__PURE__ */ new Set([...r, ...at(t)])] : r;
3695
+ function ve(e, t = K().fallbackLocale) {
3696
+ const r = mt(e);
3697
+ return t ? [.../* @__PURE__ */ new Set([...r, ...mt(t)])] : r;
3661
3698
  }
3662
- function V() {
3663
- return Fe ?? void 0;
3699
+ function X() {
3700
+ return ke != null ? ke : void 0;
3664
3701
  }
3665
- pe.subscribe((e) => {
3666
- Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3702
+ be.subscribe((e) => {
3703
+ ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3667
3704
  });
3668
- const Vn = (e) => {
3669
- if (e && On(e) && De(e)) {
3670
- const { loadingDelay: t } = Y();
3705
+ const ri = (e) => {
3706
+ if (e && jn(e) && je(e)) {
3707
+ const { loadingDelay: t } = K();
3671
3708
  let r;
3672
- return typeof window < "u" && V() != null && t ? r = window.setTimeout(
3673
- () => we.set(!0),
3709
+ return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
3710
+ () => Pe.set(!0),
3674
3711
  t
3675
- ) : we.set(!0), kt(e).then(() => {
3676
- pe.set(e);
3712
+ ) : Pe.set(!0), qt(e).then(() => {
3713
+ be.set(e);
3677
3714
  }).finally(() => {
3678
- clearTimeout(r), we.set(!1);
3715
+ clearTimeout(r), Pe.set(!1);
3679
3716
  });
3680
3717
  }
3681
- return pe.set(e);
3682
- }, ee = kn(jn({}, pe), {
3683
- set: Vn
3684
- }), ve = (e) => {
3718
+ return be.set(e);
3719
+ }, te = ti(ei({}, be), {
3720
+ set: ri
3721
+ }), Te = (e) => {
3685
3722
  const t = /* @__PURE__ */ Object.create(null);
3686
3723
  return (n) => {
3687
3724
  const i = JSON.stringify(n);
3688
3725
  return i in t ? t[i] : t[i] = e(n);
3689
3726
  };
3690
3727
  };
3691
- var Xn = Object.defineProperty, be = Object.getOwnPropertySymbols, Vt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xe = (e, t) => {
3728
+ var ni = Object.defineProperty, ye = Object.getOwnPropertySymbols, Jt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
3692
3729
  for (var r in t || (t = {}))
3693
- Vt.call(t, r) && ut(e, r, t[r]);
3694
- if (be)
3695
- for (var r of be(t))
3696
- Xt.call(t, r) && ut(e, r, t[r]);
3730
+ Jt.call(t, r) && dt(e, r, t[r]);
3731
+ if (ye)
3732
+ for (var r of ye(t))
3733
+ Yt.call(t, r) && dt(e, r, t[r]);
3697
3734
  return e;
3698
- }, te = (e, t) => {
3735
+ }, re = (e, t) => {
3699
3736
  var r = {};
3700
3737
  for (var n in e)
3701
- Vt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3702
- if (e != null && be)
3703
- for (var n of be(e))
3704
- t.indexOf(n) < 0 && Xt.call(e, n) && (r[n] = e[n]);
3738
+ Jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3739
+ if (e != null && ye)
3740
+ for (var n of ye(e))
3741
+ t.indexOf(n) < 0 && Yt.call(e, n) && (r[n] = e[n]);
3705
3742
  return r;
3706
3743
  };
3707
- const oe = (e, t) => {
3708
- const { formats: r } = Y();
3744
+ const ae = (e, t) => {
3745
+ const { formats: r } = K();
3709
3746
  if (e in r && t in r[e])
3710
3747
  return r[e][t];
3711
3748
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3712
- }, zn = ve(
3749
+ }, ii = Te(
3713
3750
  (e) => {
3714
- var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
3751
+ var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
3715
3752
  if (r == null)
3716
3753
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3717
- return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
3754
+ return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
3718
3755
  }
3719
- ), Wn = ve(
3756
+ ), si = Te(
3720
3757
  (e) => {
3721
- var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
3758
+ var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
3722
3759
  if (r == null)
3723
3760
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3724
- return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
3761
+ return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
3725
3762
  }
3726
- ), Zn = ve(
3763
+ ), oi = Te(
3727
3764
  (e) => {
3728
- var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
3765
+ var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
3729
3766
  if (r == null)
3730
3767
  throw new Error(
3731
3768
  '[svelte-i18n] A "locale" must be set to format time values'
3732
3769
  );
3733
- return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
3770
+ return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
3734
3771
  }
3735
- ), Qn = (e = {}) => {
3772
+ ), ai = (e = {}) => {
3736
3773
  var t = e, {
3737
- locale: r = V()
3738
- } = t, n = te(t, [
3774
+ locale: r = X()
3775
+ } = t, n = re(t, [
3739
3776
  "locale"
3740
3777
  ]);
3741
- return zn(Xe({ locale: r }, n));
3742
- }, qn = (e = {}) => {
3778
+ return ii(We({ locale: r }, n));
3779
+ }, ui = (e = {}) => {
3743
3780
  var t = e, {
3744
- locale: r = V()
3745
- } = t, n = te(t, [
3781
+ locale: r = X()
3782
+ } = t, n = re(t, [
3746
3783
  "locale"
3747
3784
  ]);
3748
- return Wn(Xe({ locale: r }, n));
3749
- }, Jn = (e = {}) => {
3785
+ return si(We({ locale: r }, n));
3786
+ }, hi = (e = {}) => {
3750
3787
  var t = e, {
3751
- locale: r = V()
3752
- } = t, n = te(t, [
3788
+ locale: r = X()
3789
+ } = t, n = re(t, [
3753
3790
  "locale"
3754
3791
  ]);
3755
- return Zn(Xe({ locale: r }, n));
3756
- }, Yn = ve(
3792
+ return oi(We({ locale: r }, n));
3793
+ }, li = Te(
3757
3794
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3758
- (e, t = V()) => new Hn(e, t, Y().formats, {
3759
- ignoreTag: Y().ignoreTag
3795
+ (e, t = X()) => new Rn(e, t, K().formats, {
3796
+ ignoreTag: K().ignoreTag
3760
3797
  })
3761
- ), Kn = (e, t = {}) => {
3798
+ ), fi = (e, t = {}) => {
3762
3799
  var r, n, i, s;
3763
3800
  let o = t;
3764
3801
  typeof e == "object" && (o = e, e = o.id);
3765
3802
  const {
3766
- values: a,
3767
- locale: f = V(),
3768
- default: u
3803
+ values: u,
3804
+ locale: h = X(),
3805
+ default: a
3769
3806
  } = o;
3770
- if (f == null)
3807
+ if (h == null)
3771
3808
  throw new Error(
3772
3809
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3773
3810
  );
3774
- let h = Gt(e, f);
3775
- if (!h)
3776
- h = (s = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: f, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3777
- else if (typeof h != "string")
3811
+ let l = zt(e, h);
3812
+ if (!l)
3813
+ l = (s = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3814
+ else if (typeof l != "string")
3778
3815
  return console.warn(
3779
- `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3780
- ), h;
3781
- if (!a)
3782
- return h;
3783
- let c = h;
3816
+ `[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.`
3817
+ ), l;
3818
+ if (!u)
3819
+ return l;
3820
+ let c = l;
3784
3821
  try {
3785
- c = Yn(h, f).format(a);
3786
- } catch (l) {
3787
- l instanceof Error && console.warn(
3822
+ c = li(l, h).format(u);
3823
+ } catch (f) {
3824
+ f instanceof Error && console.warn(
3788
3825
  `[svelte-i18n] Message "${e}" has syntax error:`,
3789
- l.message
3826
+ f.message
3790
3827
  );
3791
3828
  }
3792
3829
  return c;
3793
- }, ei = (e, t) => Jn(t).format(e), ti = (e, t) => qn(t).format(e), ri = (e, t) => Qn(t).format(e), ni = (e, t = V()) => Gt(e, t), ii = K([ee, ue], () => Kn);
3794
- K([ee], () => ei);
3795
- K([ee], () => ti);
3796
- K([ee], () => ri);
3797
- K([ee, ue], () => ni);
3798
- function ht(e, t) {
3799
- Ft(e, t);
3800
- }
3801
- function si(e) {
3802
- ee.set(e);
3803
- }
3804
- const lt = {
3830
+ }, ci = (e, t) => hi(t).format(e), gi = (e, t) => ui(t).format(e), mi = (e, t) => ai(t).format(e), di = (e, t = X()) => zt(e, t), pi = ee([te, he], () => fi);
3831
+ ee([te], () => ci);
3832
+ ee([te], () => gi);
3833
+ ee([te], () => mi);
3834
+ ee([te, he], () => di);
3835
+ function pt(e, t) {
3836
+ Zt(e, t);
3837
+ }
3838
+ function bi(e) {
3839
+ te.set(e);
3840
+ }
3841
+ const bt = {
3805
3842
  en: {
3806
3843
  topCategories: "Top Categories",
3807
3844
  otherCategories: "Other Categories",
@@ -3911,84 +3948,84 @@ const lt = {
3911
3948
  games: "games"
3912
3949
  }
3913
3950
  };
3914
- function oi(e) {
3915
- Yt(e, "svelte-131a9uf", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
3951
+ function yi(e) {
3952
+ lr(e, "svelte-131a9uf", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
3916
3953
  }
3917
- function ft(e, t, r) {
3954
+ function yt(e, t, r) {
3918
3955
  const n = e.slice();
3919
3956
  return n[24] = t[r], n;
3920
3957
  }
3921
- function ct(e, t, r) {
3958
+ function _t(e, t, r) {
3922
3959
  const n = e.slice();
3923
3960
  return n[24] = t[r], n;
3924
3961
  }
3925
- function ai(e) {
3962
+ function _i(e) {
3926
3963
  let t, r, n = (
3927
3964
  /*$_*/
3928
3965
  e[5]("topCategories") + ""
3929
- ), i, s, o, a, f = (
3966
+ ), i, s, o, u, h = (
3930
3967
  /*$_*/
3931
3968
  e[5]("otherCategories") + ""
3932
- ), u, h, c = le(
3969
+ ), a, l, c = fe(
3933
3970
  /*topCategories*/
3934
3971
  e[3]
3935
- ), l = [];
3972
+ ), f = [];
3936
3973
  for (let g = 0; g < c.length; g += 1)
3937
- l[g] = gt(ct(e, c, g));
3938
- let p = le(
3974
+ f[g] = Et(_t(e, c, g));
3975
+ let p = fe(
3939
3976
  /*otherCategories*/
3940
3977
  e[4]
3941
3978
  ), d = [];
3942
3979
  for (let g = 0; g < p.length; g += 1)
3943
- d[g] = mt(ft(e, p, g));
3980
+ d[g] = xt(yt(e, p, g));
3944
3981
  return {
3945
3982
  c() {
3946
- t = B("div"), r = B("h4"), i = R(n), s = $();
3947
- for (let g = 0; g < l.length; g += 1)
3948
- l[g].c();
3949
- o = $(), a = B("h4"), u = R(f), h = $();
3983
+ t = B("div"), r = B("h4"), i = U(n), s = R();
3984
+ for (let g = 0; g < f.length; g += 1)
3985
+ f[g].c();
3986
+ o = R(), u = B("h4"), a = U(h), l = R();
3950
3987
  for (let g = 0; g < d.length; g += 1)
3951
3988
  d[g].c();
3952
- H(r, "class", "CategoryTitle"), H(a, "class", "CategoryTitle"), H(t, "class", "CasinoCategories");
3989
+ H(r, "class", "CategoryTitle"), H(u, "class", "CategoryTitle"), H(t, "class", "CasinoCategories");
3953
3990
  },
3954
3991
  m(g, x) {
3955
- k(g, t, x), v(t, r), v(r, i), v(t, s);
3956
- for (let m = 0; m < l.length; m += 1)
3957
- l[m] && l[m].m(t, null);
3958
- v(t, o), v(t, a), v(a, u), v(t, h);
3992
+ V(g, t, x), v(t, r), v(r, i), v(t, s);
3993
+ for (let m = 0; m < f.length; m += 1)
3994
+ f[m] && f[m].m(t, null);
3995
+ v(t, o), v(t, u), v(u, a), v(t, l);
3959
3996
  for (let m = 0; m < d.length; m += 1)
3960
3997
  d[m] && d[m].m(t, null);
3961
3998
  },
3962
3999
  p(g, x) {
3963
4000
  if (x & /*$_*/
3964
4001
  32 && n !== (n = /*$_*/
3965
- g[5]("topCategories") + "") && D(i, n), x & /*activecategory, topCategories, openGameCategory, $_*/
4002
+ g[5]("topCategories") + "") && F(i, n), x & /*activecategory, topCategories, openGameCategory, $_*/
3966
4003
  105) {
3967
- c = le(
4004
+ c = fe(
3968
4005
  /*topCategories*/
3969
4006
  g[3]
3970
4007
  );
3971
4008
  let m;
3972
4009
  for (m = 0; m < c.length; m += 1) {
3973
- const C = ct(g, c, m);
3974
- l[m] ? l[m].p(C, x) : (l[m] = gt(C), l[m].c(), l[m].m(t, o));
4010
+ const C = _t(g, c, m);
4011
+ f[m] ? f[m].p(C, x) : (f[m] = Et(C), f[m].c(), f[m].m(t, o));
3975
4012
  }
3976
- for (; m < l.length; m += 1)
3977
- l[m].d(1);
3978
- l.length = c.length;
4013
+ for (; m < f.length; m += 1)
4014
+ f[m].d(1);
4015
+ f.length = c.length;
3979
4016
  }
3980
4017
  if (x & /*$_*/
3981
- 32 && f !== (f = /*$_*/
3982
- g[5]("otherCategories") + "") && D(u, f), x & /*activecategory, otherCategories, openGameCategory, $_*/
4018
+ 32 && h !== (h = /*$_*/
4019
+ g[5]("otherCategories") + "") && F(a, h), x & /*activecategory, otherCategories, openGameCategory, $_*/
3983
4020
  113) {
3984
- p = le(
4021
+ p = fe(
3985
4022
  /*otherCategories*/
3986
4023
  g[4]
3987
4024
  );
3988
4025
  let m;
3989
4026
  for (m = 0; m < p.length; m += 1) {
3990
- const C = ft(g, p, m);
3991
- d[m] ? d[m].p(C, x) : (d[m] = mt(C), d[m].c(), d[m].m(t, null));
4027
+ const C = yt(g, p, m);
4028
+ d[m] ? d[m].p(C, x) : (d[m] = xt(C), d[m].c(), d[m].m(t, null));
3992
4029
  }
3993
4030
  for (; m < d.length; m += 1)
3994
4031
  d[m].d(1);
@@ -3996,37 +4033,37 @@ function ai(e) {
3996
4033
  }
3997
4034
  },
3998
4035
  d(g) {
3999
- g && F(t), Ze(l, g), Ze(d, g);
4036
+ g && j(t), tt(f, g), tt(d, g);
4000
4037
  }
4001
4038
  };
4002
4039
  }
4003
- function ui(e) {
4040
+ function Ei(e) {
4004
4041
  let t;
4005
4042
  return {
4006
4043
  c() {
4007
4044
  t = B("p"), t.textContent = "Loading, please wait...", H(t, "class", "Message");
4008
4045
  },
4009
4046
  m(r, n) {
4010
- k(r, t, n);
4047
+ V(r, t, n);
4011
4048
  },
4012
- p: I,
4049
+ p: M,
4013
4050
  d(r) {
4014
- r && F(t);
4051
+ r && j(t);
4015
4052
  }
4016
4053
  };
4017
4054
  }
4018
- function gt(e) {
4019
- let t, r, n, i, s, o, a, f = (
4055
+ function Et(e) {
4056
+ let t, r, n, i, s, o, u, h = (
4020
4057
  /*category*/
4021
4058
  e[24].name + ""
4022
- ), u, h, c, l = (
4059
+ ), a, l, c, f = (
4023
4060
  /*category*/
4024
4061
  e[24].games.count + ""
4025
4062
  ), p, d, g = (
4026
4063
  /*$_*/
4027
4064
  e[5]("games") + ""
4028
4065
  ), x, m, C, A;
4029
- function L() {
4066
+ function I() {
4030
4067
  return (
4031
4068
  /*click_handler*/
4032
4069
  e[14](
@@ -4037,47 +4074,47 @@ function gt(e) {
4037
4074
  }
4038
4075
  return {
4039
4076
  c() {
4040
- t = B("div"), r = B("img"), s = $(), o = B("div"), a = B("p"), u = R(f), h = $(), c = B("p"), p = R(l), d = $(), x = R(g), de(r.src, n = /*category*/
4077
+ t = B("div"), r = B("img"), s = R(), o = B("div"), u = B("p"), a = U(h), l = R(), c = B("p"), p = U(f), d = R(), x = U(g), pe(r.src, n = /*category*/
4041
4078
  e[24].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
4042
4079
  e[24].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", m = "Category " + /*activecategory*/
4043
4080
  (e[0] === /*category*/
4044
4081
  e[24].id ? "Active" : ""));
4045
4082
  },
4046
4083
  m(w, S) {
4047
- k(w, t, S), v(t, r), v(t, s), v(t, o), v(o, a), v(a, u), v(o, h), v(o, c), v(c, p), v(c, d), v(c, x), C || (A = yt(t, "click", L), C = !0);
4084
+ V(w, t, S), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, p), v(c, d), v(c, x), C || (A = Ht(t, "click", I), C = !0);
4048
4085
  },
4049
4086
  p(w, S) {
4050
4087
  e = w, S & /*topCategories*/
4051
- 8 && !de(r.src, n = /*category*/
4088
+ 8 && !pe(r.src, n = /*category*/
4052
4089
  e[24].icon) && H(r, "src", n), S & /*topCategories*/
4053
4090
  8 && i !== (i = /*category*/
4054
4091
  e[24].name) && H(r, "alt", i), S & /*topCategories*/
4092
+ 8 && h !== (h = /*category*/
4093
+ e[24].name + "") && F(a, h), S & /*topCategories*/
4055
4094
  8 && f !== (f = /*category*/
4056
- e[24].name + "") && D(u, f), S & /*topCategories*/
4057
- 8 && l !== (l = /*category*/
4058
- e[24].games.count + "") && D(p, l), S & /*$_*/
4095
+ e[24].games.count + "") && F(p, f), S & /*$_*/
4059
4096
  32 && g !== (g = /*$_*/
4060
- e[5]("games") + "") && D(x, g), S & /*activecategory, topCategories*/
4097
+ e[5]("games") + "") && F(x, g), S & /*activecategory, topCategories*/
4061
4098
  9 && m !== (m = "Category " + /*activecategory*/
4062
4099
  (e[0] === /*category*/
4063
4100
  e[24].id ? "Active" : "")) && H(t, "class", m);
4064
4101
  },
4065
4102
  d(w) {
4066
- w && F(t), C = !1, A();
4103
+ w && j(t), C = !1, A();
4067
4104
  }
4068
4105
  };
4069
4106
  }
4070
- function mt(e) {
4071
- let t, r, n, i, s, o, a, f = (
4107
+ function xt(e) {
4108
+ let t, r, n, i, s, o, u, h = (
4072
4109
  /*category*/
4073
4110
  e[24].name + ""
4074
- ), u, h, c, l = (
4111
+ ), a, l, c, f = (
4075
4112
  /*category*/
4076
4113
  e[24].games.count + ""
4077
4114
  ), p, d, g = (
4078
4115
  /*$_*/
4079
4116
  e[5]("games") + ""
4080
- ), x, m, C, A, L;
4117
+ ), x, m, C, A, I;
4081
4118
  function w() {
4082
4119
  return (
4083
4120
  /*click_handler_1*/
@@ -4089,42 +4126,42 @@ function mt(e) {
4089
4126
  }
4090
4127
  return {
4091
4128
  c() {
4092
- t = B("div"), r = B("img"), s = $(), o = B("div"), a = B("p"), u = R(f), h = $(), c = B("p"), p = R(l), d = $(), x = R(g), m = $(), de(r.src, n = /*category*/
4129
+ t = B("div"), r = B("img"), s = R(), o = B("div"), u = B("p"), a = U(h), l = R(), c = B("p"), p = U(f), d = R(), x = U(g), m = R(), pe(r.src, n = /*category*/
4093
4130
  e[24].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
4094
4131
  e[24].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", C = "Category " + /*activecategory*/
4095
4132
  (e[0] === /*category*/
4096
4133
  e[24].id ? "Active" : ""));
4097
4134
  },
4098
- m(S, P) {
4099
- k(S, t, P), v(t, r), v(t, s), v(t, o), v(o, a), v(a, u), v(o, h), v(o, c), v(c, p), v(c, d), v(c, x), v(t, m), A || (L = yt(t, "click", w), A = !0);
4135
+ m(S, N) {
4136
+ V(S, t, N), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, p), v(c, d), v(c, x), v(t, m), A || (I = Ht(t, "click", w), A = !0);
4100
4137
  },
4101
- p(S, P) {
4102
- e = S, P & /*otherCategories*/
4103
- 16 && !de(r.src, n = /*category*/
4104
- e[24].icon) && H(r, "src", n), P & /*otherCategories*/
4138
+ p(S, N) {
4139
+ e = S, N & /*otherCategories*/
4140
+ 16 && !pe(r.src, n = /*category*/
4141
+ e[24].icon) && H(r, "src", n), N & /*otherCategories*/
4105
4142
  16 && i !== (i = /*category*/
4106
- e[24].name) && H(r, "alt", i), P & /*otherCategories*/
4143
+ e[24].name) && H(r, "alt", i), N & /*otherCategories*/
4144
+ 16 && h !== (h = /*category*/
4145
+ e[24].name + "") && F(a, h), N & /*otherCategories*/
4107
4146
  16 && f !== (f = /*category*/
4108
- e[24].name + "") && D(u, f), P & /*otherCategories*/
4109
- 16 && l !== (l = /*category*/
4110
- e[24].games.count + "") && D(p, l), P & /*$_*/
4147
+ e[24].games.count + "") && F(p, f), N & /*$_*/
4111
4148
  32 && g !== (g = /*$_*/
4112
- e[5]("games") + "") && D(x, g), P & /*activecategory, otherCategories*/
4149
+ e[5]("games") + "") && F(x, g), N & /*activecategory, otherCategories*/
4113
4150
  17 && C !== (C = "Category " + /*activecategory*/
4114
4151
  (e[0] === /*category*/
4115
4152
  e[24].id ? "Active" : "")) && H(t, "class", C);
4116
4153
  },
4117
4154
  d(S) {
4118
- S && F(t), A = !1, L();
4155
+ S && j(t), A = !1, I();
4119
4156
  }
4120
4157
  };
4121
4158
  }
4122
- function hi(e) {
4159
+ function xi(e) {
4123
4160
  let t;
4124
4161
  function r(s, o) {
4125
4162
  return (
4126
4163
  /*isLoading*/
4127
- s[2] ? ui : ai
4164
+ s[2] ? Ei : _i
4128
4165
  );
4129
4166
  }
4130
4167
  let n = r(e), i = n(e);
@@ -4133,58 +4170,61 @@ function hi(e) {
4133
4170
  t = B("div"), i.c();
4134
4171
  },
4135
4172
  m(s, o) {
4136
- k(s, t, o), i.m(t, null), e[16](t);
4173
+ V(s, t, o), i.m(t, null), e[16](t);
4137
4174
  },
4138
4175
  p(s, [o]) {
4139
4176
  n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
4140
4177
  },
4141
- i: I,
4142
- o: I,
4178
+ i: M,
4179
+ o: M,
4143
4180
  d(s) {
4144
- s && F(t), i.d(), e[16](null);
4181
+ s && j(t), i.d(), e[16](null);
4145
4182
  }
4146
4183
  };
4147
4184
  }
4148
- function li(e, t, r) {
4185
+ function vi(e, t, r) {
4149
4186
  let n;
4150
- Jt(e, ii, (b) => r(5, n = b));
4151
- let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: a = "" } = t, { excludedflags: f = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, l, p = !1;
4187
+ hr(e, pi, (b) => r(5, n = b));
4188
+ let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, f, p = !1;
4152
4189
  const d = [];
4153
4190
  let g = [], x = [];
4154
- Object.keys(lt).forEach((b) => {
4155
- ht(b, lt[b]);
4191
+ Object.keys(bt).forEach((b) => {
4192
+ pt(b, bt[b]);
4156
4193
  });
4157
4194
  const m = () => {
4158
- fetch(c).then((N) => N.json()).then((N) => {
4159
- Object.keys(N).forEach((U) => {
4160
- ht(U, N[U]);
4195
+ fetch(c).then((L) => L.json()).then((L) => {
4196
+ Object.keys(L).forEach((G) => {
4197
+ pt(G, L[G]);
4161
4198
  });
4162
- }).catch((N) => {
4163
- console.log(N);
4199
+ }).catch((L) => {
4200
+ console.log(L);
4164
4201
  });
4165
4202
  }, C = () => {
4166
4203
  r(2, p = !0);
4167
4204
  const b = new URL(`${i}/v1/casino/groups/${s}`);
4168
- b.searchParams.append("language", o), fetch(b).then((N) => N.json()).then((N) => {
4205
+ b.searchParams.append("language", o), fetch(b).then((L) => L.json()).then((L) => {
4169
4206
  r(2, p = !1);
4170
- const U = f.split(",").map((j) => j.trim());
4171
- d.push(...N.items);
4172
- const ze = d.filter((j) => !U.some((Qt) => j.flags?.indexOf(Qt) >= 0));
4173
- r(3, g = ze.filter((j) => j.isTopCategory === !0)), r(4, x = ze.filter((j) => j.isTopCategory === !1));
4207
+ const G = h.split(",").map((k) => k.trim());
4208
+ d.push(...L.items);
4209
+ const Ze = d.filter((k) => !G.some((rr) => {
4210
+ var Qe;
4211
+ return ((Qe = k.flags) == null ? void 0 : Qe.indexOf(rr)) >= 0;
4212
+ }));
4213
+ r(3, g = Ze.filter((k) => k.isTopCategory === !0)), r(4, x = Ze.filter((k) => k.isTopCategory === !1));
4174
4214
  });
4175
4215
  }, A = (b) => {
4176
4216
  window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
4177
- }, L = () => {
4178
- si(o);
4217
+ }, I = () => {
4218
+ bi(o);
4179
4219
  }, w = () => {
4180
4220
  let b = document.createElement("style");
4181
- b.innerHTML = u, l.appendChild(b);
4221
+ b.innerHTML = a, f.appendChild(b);
4182
4222
  }, S = () => {
4183
- let b = new URL(h), N = document.createElement("style");
4184
- fetch(b.href).then((U) => U.text()).then((U) => {
4185
- N.innerHTML = U, setTimeout(
4223
+ let b = new URL(l), L = document.createElement("style");
4224
+ fetch(b.href).then((G) => G.text()).then((G) => {
4225
+ L.innerHTML = G, setTimeout(
4186
4226
  () => {
4187
- l.appendChild(N);
4227
+ f.appendChild(L);
4188
4228
  },
4189
4229
  1
4190
4230
  ), setTimeout(
@@ -4193,24 +4233,24 @@ function li(e, t, r) {
4193
4233
  500
4194
4234
  );
4195
4235
  });
4196
- }, P = (b) => A(b.id), Wt = (b) => A(b.id);
4197
- function Zt(b) {
4198
- Oe[b ? "unshift" : "push"](() => {
4199
- l = b, r(1, l);
4236
+ }, N = (b) => A(b.id), er = (b) => A(b.id);
4237
+ function tr(b) {
4238
+ Ne[b ? "unshift" : "push"](() => {
4239
+ f = b, r(1, f);
4200
4240
  });
4201
4241
  }
4202
4242
  return e.$$set = (b) => {
4203
- "endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, a = b.activecategory), "excludedflags" in b && r(10, f = b.excludedflags), "clientstyling" in b && r(11, u = b.clientstyling), "clientstylingurl" in b && r(12, h = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl);
4243
+ "endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, h = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, l = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl);
4204
4244
  }, e.$$.update = () => {
4205
4245
  e.$$.dirty & /*endpoint, datasource*/
4206
4246
  384 && i && s && C(), e.$$.dirty & /*translationurl*/
4207
4247
  8192 && c && m(), e.$$.dirty & /*lang*/
4208
- 512 && o && L(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4209
- 2050 && u && l && w(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4210
- 4098 && h && l && S();
4248
+ 512 && o && I(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4249
+ 2050 && a && f && w(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4250
+ 4098 && l && f && S();
4211
4251
  }, [
4212
- a,
4213
- l,
4252
+ u,
4253
+ f,
4214
4254
  p,
4215
4255
  g,
4216
4256
  x,
@@ -4219,23 +4259,23 @@ function li(e, t, r) {
4219
4259
  i,
4220
4260
  s,
4221
4261
  o,
4222
- f,
4223
- u,
4224
4262
  h,
4263
+ a,
4264
+ l,
4225
4265
  c,
4226
- P,
4227
- Wt,
4228
- Zt
4266
+ N,
4267
+ er,
4268
+ tr
4229
4269
  ];
4230
4270
  }
4231
- class zt extends mr {
4271
+ class Kt extends Ar {
4232
4272
  constructor(t) {
4233
- super(), cr(
4273
+ super(), Cr(
4234
4274
  this,
4235
4275
  t,
4236
- li,
4237
- hi,
4238
- pt,
4276
+ vi,
4277
+ xi,
4278
+ Tt,
4239
4279
  {
4240
4280
  endpoint: 7,
4241
4281
  datasource: 8,
@@ -4246,100 +4286,100 @@ class zt extends mr {
4246
4286
  clientstylingurl: 12,
4247
4287
  translationurl: 13
4248
4288
  },
4249
- oi
4289
+ yi
4250
4290
  );
4251
4291
  }
4252
4292
  get endpoint() {
4253
4293
  return this.$$.ctx[7];
4254
4294
  }
4255
4295
  set endpoint(t) {
4256
- this.$$set({ endpoint: t }), M();
4296
+ this.$$set({ endpoint: t }), $();
4257
4297
  }
4258
4298
  get datasource() {
4259
4299
  return this.$$.ctx[8];
4260
4300
  }
4261
4301
  set datasource(t) {
4262
- this.$$set({ datasource: t }), M();
4302
+ this.$$set({ datasource: t }), $();
4263
4303
  }
4264
4304
  get lang() {
4265
4305
  return this.$$.ctx[9];
4266
4306
  }
4267
4307
  set lang(t) {
4268
- this.$$set({ lang: t }), M();
4308
+ this.$$set({ lang: t }), $();
4269
4309
  }
4270
4310
  get activecategory() {
4271
4311
  return this.$$.ctx[0];
4272
4312
  }
4273
4313
  set activecategory(t) {
4274
- this.$$set({ activecategory: t }), M();
4314
+ this.$$set({ activecategory: t }), $();
4275
4315
  }
4276
4316
  get excludedflags() {
4277
4317
  return this.$$.ctx[10];
4278
4318
  }
4279
4319
  set excludedflags(t) {
4280
- this.$$set({ excludedflags: t }), M();
4320
+ this.$$set({ excludedflags: t }), $();
4281
4321
  }
4282
4322
  get clientstyling() {
4283
4323
  return this.$$.ctx[11];
4284
4324
  }
4285
4325
  set clientstyling(t) {
4286
- this.$$set({ clientstyling: t }), M();
4326
+ this.$$set({ clientstyling: t }), $();
4287
4327
  }
4288
4328
  get clientstylingurl() {
4289
4329
  return this.$$.ctx[12];
4290
4330
  }
4291
4331
  set clientstylingurl(t) {
4292
- this.$$set({ clientstylingurl: t }), M();
4332
+ this.$$set({ clientstylingurl: t }), $();
4293
4333
  }
4294
4334
  get translationurl() {
4295
4335
  return this.$$.ctx[13];
4296
4336
  }
4297
4337
  set translationurl(t) {
4298
- this.$$set({ translationurl: t }), M();
4338
+ this.$$set({ translationurl: t }), $();
4299
4339
  }
4300
4340
  }
4301
- gr(zt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4302
- const Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4341
+ Hr(Kt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4342
+ const Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4303
4343
  __proto__: null,
4304
- default: zt
4344
+ default: Kt
4305
4345
  }, Symbol.toStringTag, { value: "Module" }));
4306
4346
  export {
4307
- ee as $,
4308
- pi as A,
4309
- fi as B,
4310
- le as C,
4311
- Ze as D,
4312
- bi as E,
4313
- tr as F,
4314
- gi as G,
4315
- di as H,
4316
- Ei as I,
4317
- mr as S,
4318
- yi as _,
4319
- Ft as a,
4320
- Yt as b,
4321
- gr as c,
4322
- $ as d,
4347
+ te as $,
4348
+ wi as A,
4349
+ Ci as B,
4350
+ fe as C,
4351
+ tt as D,
4352
+ Oi as E,
4353
+ gr as F,
4354
+ Ai as G,
4355
+ Bi as H,
4356
+ Li as I,
4357
+ Ar as S,
4358
+ Pi as _,
4359
+ Zt as a,
4360
+ lr as b,
4361
+ Hr as c,
4362
+ R as d,
4323
4363
  B as e,
4324
- M as f,
4364
+ $ as f,
4325
4365
  H as g,
4326
- ci as h,
4327
- cr as i,
4328
- k as j,
4366
+ Hi as h,
4367
+ Cr as i,
4368
+ V as j,
4329
4369
  v as k,
4330
- yt as l,
4331
- D as m,
4332
- I as n,
4333
- F as o,
4334
- Jt as p,
4335
- Oe as q,
4336
- ae as r,
4337
- pt as s,
4338
- R as t,
4339
- ii as u,
4340
- Ce as v,
4341
- _i as w,
4342
- _e as x,
4343
- de as y,
4344
- mi as z
4370
+ Ht as l,
4371
+ F as m,
4372
+ M as n,
4373
+ j as o,
4374
+ hr as p,
4375
+ Ne as q,
4376
+ ue as r,
4377
+ Tt as s,
4378
+ U as t,
4379
+ pi as u,
4380
+ Ae as v,
4381
+ Ni as w,
4382
+ Ee as x,
4383
+ pe as y,
4384
+ Si as z
4345
4385
  };