@everymatrix/casino-navigation-search 1.53.0 → 1.53.10

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