@everymatrix/casino-categories 1.77.20 → 1.77.21

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,58 +1,58 @@
1
- var Kt = Object.defineProperty, er = Object.defineProperties;
2
- var tr = Object.getOwnPropertyDescriptors;
3
- var Je = Object.getOwnPropertySymbols;
4
- var rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable;
5
- var He = (e, t, r) => t in e ? Kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
1
+ var tr = Object.defineProperty, rr = Object.defineProperties;
2
+ var nr = Object.getOwnPropertyDescriptors;
3
+ var Ye = Object.getOwnPropertySymbols;
4
+ var ir = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable;
5
+ var Ae = (e, t, r) => t in e ? tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- rr.call(t, r) && He(e, r, t[r]);
8
- if (Je)
9
- for (var r of Je(t))
10
- nr.call(t, r) && He(e, r, t[r]);
7
+ ir.call(t, r) && Ae(e, r, t[r]);
8
+ if (Ye)
9
+ for (var r of Ye(t))
10
+ sr.call(t, r) && Ae(e, r, t[r]);
11
11
  return e;
12
- }, Ye = (e, t) => er(e, tr(t));
13
- var N = (e, t, r) => (He(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var Ke = (e, t, r) => new Promise((n, i) => {
15
- var o = (h) => {
12
+ }, et = (e, t) => rr(e, nr(t));
13
+ var N = (e, t, r) => (Ae(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var tt = (e, t, r) => new Promise((n, i) => {
15
+ var s = (h) => {
16
16
  try {
17
17
  u(r.next(h));
18
18
  } catch (a) {
19
19
  i(a);
20
20
  }
21
- }, s = (h) => {
21
+ }, o = (h) => {
22
22
  try {
23
23
  u(r.throw(h));
24
24
  } catch (a) {
25
25
  i(a);
26
26
  }
27
- }, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
27
+ }, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
28
28
  u((r = r.apply(e, t)).next());
29
29
  });
30
- import "../stencil/ui-image-DfVgiF6v.js";
30
+ import "../stencil/ui-image-C7s6Uvn5.js";
31
31
  function L() {
32
32
  }
33
- function vt(e) {
33
+ function Ct(e) {
34
34
  return e();
35
35
  }
36
- function et() {
36
+ function rt() {
37
37
  return /* @__PURE__ */ Object.create(null);
38
38
  }
39
- function ue(e) {
40
- e.forEach(vt);
39
+ function he(e) {
40
+ e.forEach(Ct);
41
41
  }
42
- function Xe(e) {
42
+ function We(e) {
43
43
  return typeof e == "function";
44
44
  }
45
- function Tt(e, t) {
45
+ function Ht(e, t) {
46
46
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
47
47
  }
48
- let fe;
49
- function be(e, t) {
50
- return e === t ? !0 : (fe || (fe = document.createElement("a")), fe.href = t, e === fe.href);
48
+ let ce;
49
+ function ye(e, t) {
50
+ return e === t ? !0 : (ce || (ce = document.createElement("a")), ce.href = t, e === ce.href);
51
51
  }
52
- function ir(e) {
52
+ function or(e) {
53
53
  return Object.keys(e).length === 0;
54
54
  }
55
- function Ct(e, ...t) {
55
+ function St(e, ...t) {
56
56
  if (e == null) {
57
57
  for (const n of t)
58
58
  n(void 0);
@@ -61,20 +61,20 @@ function Ct(e, ...t) {
61
61
  const r = e.subscribe(...t);
62
62
  return r.unsubscribe ? () => r.unsubscribe() : r;
63
63
  }
64
- function or(e, t, r) {
65
- e.$$.on_destroy.push(Ct(t, r));
64
+ function ar(e, t, r) {
65
+ e.$$.on_destroy.push(St(t, r));
66
66
  }
67
- function v(e, t) {
67
+ function x(e, t) {
68
68
  e.appendChild(t);
69
69
  }
70
- function sr(e, t, r) {
71
- const n = ar(e);
70
+ function ur(e, t, r) {
71
+ const n = hr(e);
72
72
  if (!n.getElementById(t)) {
73
- const i = S("style");
74
- i.id = t, i.textContent = r, ur(n, i);
73
+ const i = B("style");
74
+ i.id = t, i.textContent = r, lr(n, i);
75
75
  }
76
76
  }
77
- function ar(e) {
77
+ function hr(e) {
78
78
  if (!e)
79
79
  return document;
80
80
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -84,33 +84,33 @@ function ar(e) {
84
84
  t
85
85
  ) : e.ownerDocument;
86
86
  }
87
- function ur(e, t) {
88
- return v(
87
+ function lr(e, t) {
88
+ return x(
89
89
  /** @type {Document} */
90
90
  e.head || e,
91
91
  t
92
92
  ), t.sheet;
93
93
  }
94
- function K(e, t, r) {
94
+ function ee(e, t, r) {
95
95
  e.insertBefore(t, r || null);
96
96
  }
97
- function k(e) {
97
+ function V(e) {
98
98
  e.parentNode && e.parentNode.removeChild(e);
99
99
  }
100
- function tt(e, t) {
100
+ function nt(e, t) {
101
101
  for (let r = 0; r < e.length; r += 1)
102
102
  e[r] && e[r].d(t);
103
103
  }
104
- function S(e) {
104
+ function B(e) {
105
105
  return document.createElement(e);
106
106
  }
107
- function G(e) {
107
+ function D(e) {
108
108
  return document.createTextNode(e);
109
109
  }
110
- function U() {
111
- return G(" ");
110
+ function G() {
111
+ return D(" ");
112
112
  }
113
- function Ht(e, t, r, n) {
113
+ function At(e, t, r, n) {
114
114
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
115
115
  }
116
116
  function I(e, t, r) {
@@ -120,14 +120,14 @@ function R(e, t, r) {
120
120
  const n = t.toLowerCase();
121
121
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : I(e, t, r);
122
122
  }
123
- function hr(e) {
123
+ function fr(e) {
124
124
  return Array.from(e.childNodes);
125
125
  }
126
- function F(e, t) {
126
+ function j(e, t) {
127
127
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
128
128
  t);
129
129
  }
130
- function lr(e) {
130
+ function cr(e) {
131
131
  const t = {};
132
132
  return e.childNodes.forEach(
133
133
  /** @param {Element} node */
@@ -137,97 +137,97 @@ function lr(e) {
137
137
  ), t;
138
138
  }
139
139
  let oe;
140
- function ie(e) {
140
+ function se(e) {
141
141
  oe = e;
142
142
  }
143
- function fr() {
143
+ function gr() {
144
144
  if (!oe)
145
145
  throw new Error("Function called outside component initialization");
146
146
  return oe;
147
147
  }
148
- function cr(e) {
149
- fr().$$.on_mount.push(e);
148
+ function mr(e) {
149
+ gr().$$.on_mount.push(e);
150
150
  }
151
- const W = [], Le = [];
152
- let Z = [];
153
- const rt = [], gr = /* @__PURE__ */ Promise.resolve();
154
- let Ie = !1;
155
- function mr() {
156
- Ie || (Ie = !0, gr.then(M));
151
+ const Z = [], Me = [];
152
+ let Q = [];
153
+ const it = [], pr = /* @__PURE__ */ Promise.resolve();
154
+ let $e = !1;
155
+ function dr() {
156
+ $e || ($e = !0, pr.then(M));
157
157
  }
158
- function Me(e) {
159
- Z.push(e);
158
+ function Re(e) {
159
+ Q.push(e);
160
160
  }
161
- const Ae = /* @__PURE__ */ new Set();
162
- let X = 0;
161
+ const Be = /* @__PURE__ */ new Set();
162
+ let z = 0;
163
163
  function M() {
164
- if (X !== 0)
164
+ if (z !== 0)
165
165
  return;
166
166
  const e = oe;
167
167
  do {
168
168
  try {
169
- for (; X < W.length; ) {
170
- const t = W[X];
171
- X++, ie(t), pr(t.$$);
169
+ for (; z < Z.length; ) {
170
+ const t = Z[z];
171
+ z++, se(t), br(t.$$);
172
172
  }
173
173
  } catch (t) {
174
- throw W.length = 0, X = 0, t;
174
+ throw Z.length = 0, z = 0, t;
175
175
  }
176
- for (ie(null), W.length = 0, X = 0; Le.length; )
177
- Le.pop()();
178
- for (let t = 0; t < Z.length; t += 1) {
179
- const r = Z[t];
180
- Ae.has(r) || (Ae.add(r), r());
176
+ for (se(null), Z.length = 0, z = 0; Me.length; )
177
+ Me.pop()();
178
+ for (let t = 0; t < Q.length; t += 1) {
179
+ const r = Q[t];
180
+ Be.has(r) || (Be.add(r), r());
181
181
  }
182
- Z.length = 0;
183
- } while (W.length);
184
- for (; rt.length; )
185
- rt.pop()();
186
- Ie = !1, Ae.clear(), ie(e);
182
+ Q.length = 0;
183
+ } while (Z.length);
184
+ for (; it.length; )
185
+ it.pop()();
186
+ $e = !1, Be.clear(), se(e);
187
187
  }
188
- function pr(e) {
188
+ function br(e) {
189
189
  if (e.fragment !== null) {
190
- e.update(), ue(e.before_update);
190
+ e.update(), he(e.before_update);
191
191
  const t = e.dirty;
192
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
192
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
193
193
  }
194
194
  }
195
- function dr(e) {
195
+ function yr(e) {
196
196
  const t = [], r = [];
197
- Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
197
+ Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
198
198
  }
199
- const br = /* @__PURE__ */ new Set();
200
- function yr(e, t) {
201
- e && e.i && (br.delete(e), e.i(t));
199
+ const _r = /* @__PURE__ */ new Set();
200
+ function Er(e, t) {
201
+ e && e.i && (_r.delete(e), e.i(t));
202
202
  }
203
- function ce(e) {
203
+ function ge(e) {
204
204
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
205
205
  }
206
- function _r(e, t, r) {
206
+ function xr(e, t, r) {
207
207
  const { fragment: n, after_update: i } = e.$$;
208
- n && n.m(t, r), Me(() => {
209
- const o = e.$$.on_mount.map(vt).filter(Xe);
210
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ue(o), e.$$.on_mount = [];
211
- }), i.forEach(Me);
208
+ n && n.m(t, r), Re(() => {
209
+ const s = e.$$.on_mount.map(Ct).filter(We);
210
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : he(s), e.$$.on_mount = [];
211
+ }), i.forEach(Re);
212
212
  }
213
- function xr(e, t) {
213
+ function vr(e, t) {
214
214
  const r = e.$$;
215
- r.fragment !== null && (dr(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
215
+ r.fragment !== null && (yr(r.after_update), he(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
216
216
  }
217
- function Er(e, t) {
218
- e.$$.dirty[0] === -1 && (W.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
217
+ function Tr(e, t) {
218
+ e.$$.dirty[0] === -1 && (Z.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
219
219
  }
220
- function vr(e, t, r, n, i, o, s = null, u = [-1]) {
220
+ function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
221
221
  const h = oe;
222
- ie(e);
222
+ se(e);
223
223
  const a = e.$$ = {
224
224
  fragment: null,
225
225
  ctx: [],
226
226
  // state
227
- props: o,
227
+ props: s,
228
228
  update: L,
229
229
  not_equal: i,
230
- bound: et(),
230
+ bound: rt(),
231
231
  // lifecycle
232
232
  on_mount: [],
233
233
  on_destroy: [],
@@ -236,28 +236,28 @@ function vr(e, t, r, n, i, o, s = null, u = [-1]) {
236
236
  after_update: [],
237
237
  context: new Map(t.context || (h ? h.$$.context : [])),
238
238
  // everything else
239
- callbacks: et(),
239
+ callbacks: rt(),
240
240
  dirty: u,
241
241
  skip_bound: !1,
242
242
  root: t.target || h.$$.root
243
243
  };
244
- s && s(a.root);
244
+ o && o(a.root);
245
245
  let l = !1;
246
246
  if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
247
247
  const d = p.length ? p[0] : f;
248
- return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l && Er(e, c)), f;
249
- }) : [], a.update(), l = !0, ue(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
248
+ return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l && Tr(e, c)), f;
249
+ }) : [], a.update(), l = !0, he(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
250
250
  if (t.hydrate) {
251
- const c = hr(t.target);
252
- a.fragment && a.fragment.l(c), c.forEach(k);
251
+ const c = fr(t.target);
252
+ a.fragment && a.fragment.l(c), c.forEach(V);
253
253
  } else
254
254
  a.fragment && a.fragment.c();
255
- t.intro && yr(e.$$.fragment), _r(e, t.target, t.anchor), M();
255
+ t.intro && Er(e.$$.fragment), xr(e, t.target, t.anchor), M();
256
256
  }
257
- ie(h);
257
+ se(h);
258
258
  }
259
- let At;
260
- typeof HTMLElement == "function" && (At = class extends HTMLElement {
259
+ let Bt;
260
+ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
261
261
  constructor(t, r, n) {
262
262
  super();
263
263
  /** The Svelte component constructor */
@@ -294,42 +294,42 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
294
294
  }
295
295
  }
296
296
  connectedCallback() {
297
- return Ke(this, null, function* () {
297
+ return tt(this, null, function* () {
298
298
  if (this.$$cn = !0, !this.$$c) {
299
- let t = function(o) {
299
+ let t = function(s) {
300
300
  return () => {
301
- let s;
301
+ let o;
302
302
  return {
303
303
  c: function() {
304
- s = S("slot"), o !== "default" && I(s, "name", o);
304
+ o = B("slot"), s !== "default" && I(o, "name", s);
305
305
  },
306
306
  /**
307
307
  * @param {HTMLElement} target
308
308
  * @param {HTMLElement} [anchor]
309
309
  */
310
310
  m: function(a, l) {
311
- K(a, s, l);
311
+ ee(a, o, l);
312
312
  },
313
313
  d: function(a) {
314
- a && k(s);
314
+ a && V(o);
315
315
  }
316
316
  };
317
317
  };
318
318
  };
319
319
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
320
320
  return;
321
- const r = {}, n = lr(this);
322
- for (const o of this.$$s)
323
- o in n && (r[o] = [t(o)]);
324
- for (const o of this.attributes) {
325
- const s = this.$$g_p(o.name);
326
- s in this.$$d || (this.$$d[s] = me(s, o.value, this.$$p_d, "toProp"));
321
+ const r = {}, n = cr(this);
322
+ for (const s of this.$$s)
323
+ s in n && (r[s] = [t(s)]);
324
+ for (const s of this.attributes) {
325
+ const o = this.$$g_p(s.name);
326
+ o in this.$$d || (this.$$d[o] = pe(o, s.value, this.$$p_d, "toProp"));
327
327
  }
328
- for (const o in this.$$p_d)
329
- !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
328
+ for (const s in this.$$p_d)
329
+ !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
330
330
  this.$$c = new this.$$ctor({
331
331
  target: this.shadowRoot || this,
332
- props: Ye(qe({}, this.$$d), {
332
+ props: et(Ke({}, this.$$d), {
333
333
  $$slots: r,
334
334
  $$scope: {
335
335
  ctx: []
@@ -338,23 +338,23 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
338
338
  });
339
339
  const i = () => {
340
340
  this.$$r = !0;
341
- for (const o in this.$$p_d)
342
- if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
343
- const s = me(
344
- o,
345
- this.$$d[o],
341
+ for (const s in this.$$p_d)
342
+ if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
343
+ const o = pe(
344
+ s,
345
+ this.$$d[s],
346
346
  this.$$p_d,
347
347
  "toAttribute"
348
348
  );
349
- s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
349
+ o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
350
350
  }
351
351
  this.$$r = !1;
352
352
  };
353
353
  this.$$c.$$.after_update.push(i), i();
354
- for (const o in this.$$l)
355
- for (const s of this.$$l[o]) {
356
- const u = this.$$c.$on(o, s);
357
- this.$$l_u.set(s, u);
354
+ for (const s in this.$$l)
355
+ for (const o of this.$$l[s]) {
356
+ const u = this.$$c.$on(s, o);
357
+ this.$$l_u.set(o, u);
358
358
  }
359
359
  this.$$l = {};
360
360
  }
@@ -364,7 +364,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
364
364
  // and setting attributes through setAttribute etc, this is helpful
365
365
  attributeChangedCallback(t, r, n) {
366
366
  var i;
367
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = me(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
367
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = pe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
368
368
  }
369
369
  disconnectedCallback() {
370
370
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -377,9 +377,9 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
377
377
  ) || t;
378
378
  }
379
379
  });
380
- function me(e, t, r, n) {
381
- var o;
382
- const i = (o = r[e]) == null ? void 0 : o.type;
380
+ function pe(e, t, r, n) {
381
+ var s;
382
+ const i = (s = r[e]) == null ? void 0 : s.type;
383
383
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
384
384
  return t;
385
385
  if (n === "toAttribute")
@@ -407,8 +407,8 @@ function me(e, t, r, n) {
407
407
  return t;
408
408
  }
409
409
  }
410
- function Tr(e, t, r, n, i, o) {
411
- let s = class extends At {
410
+ function Hr(e, t, r, n, i, s) {
411
+ let o = class extends Bt {
412
412
  constructor() {
413
413
  super(e, r, i), this.$$p_d = t;
414
414
  }
@@ -419,26 +419,26 @@ function Tr(e, t, r, n, i, o) {
419
419
  }
420
420
  };
421
421
  return Object.keys(t).forEach((u) => {
422
- Object.defineProperty(s.prototype, u, {
422
+ Object.defineProperty(o.prototype, u, {
423
423
  get() {
424
424
  return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
425
425
  },
426
426
  set(h) {
427
427
  var a;
428
- h = me(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
428
+ h = pe(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
429
429
  }
430
430
  });
431
431
  }), n.forEach((u) => {
432
- Object.defineProperty(s.prototype, u, {
432
+ Object.defineProperty(o.prototype, u, {
433
433
  get() {
434
434
  var h;
435
435
  return (h = this.$$c) == null ? void 0 : h[u];
436
436
  }
437
437
  });
438
438
  }), e.element = /** @type {any} */
439
- s, s;
439
+ o, o;
440
440
  }
441
- class Cr {
441
+ class Sr {
442
442
  constructor() {
443
443
  /**
444
444
  * ### PRIVATE API
@@ -459,7 +459,7 @@ class Cr {
459
459
  }
460
460
  /** @returns {void} */
461
461
  $destroy() {
462
- xr(this, 1), this.$destroy = L;
462
+ vr(this, 1), this.$destroy = L;
463
463
  }
464
464
  /**
465
465
  * @template {Extract<keyof Events, string>} K
@@ -468,7 +468,7 @@ class Cr {
468
468
  * @returns {() => void}
469
469
  */
470
470
  $on(t, r) {
471
- if (!Xe(r))
471
+ if (!We(r))
472
472
  return L;
473
473
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
474
474
  return n.push(r), () => {
@@ -481,49 +481,49 @@ class Cr {
481
481
  * @returns {void}
482
482
  */
483
483
  $set(t) {
484
- this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
484
+ this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
485
485
  }
486
486
  }
487
- const Hr = "4";
488
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
489
- const z = [];
490
- function Ar(e, t) {
487
+ const Ar = "4";
488
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
489
+ const W = [];
490
+ function Br(e, t) {
491
491
  return {
492
- subscribe: xe(e, t).subscribe
492
+ subscribe: ve(e, t).subscribe
493
493
  };
494
494
  }
495
- function xe(e, t = L) {
495
+ function ve(e, t = L) {
496
496
  let r;
497
497
  const n = /* @__PURE__ */ new Set();
498
498
  function i(u) {
499
- if (Tt(e, u) && (e = u, r)) {
500
- const h = !z.length;
499
+ if (Ht(e, u) && (e = u, r)) {
500
+ const h = !W.length;
501
501
  for (const a of n)
502
- a[1](), z.push(a, e);
502
+ a[1](), W.push(a, e);
503
503
  if (h) {
504
- for (let a = 0; a < z.length; a += 2)
505
- z[a][0](z[a + 1]);
506
- z.length = 0;
504
+ for (let a = 0; a < W.length; a += 2)
505
+ W[a][0](W[a + 1]);
506
+ W.length = 0;
507
507
  }
508
508
  }
509
509
  }
510
- function o(u) {
510
+ function s(u) {
511
511
  i(u(e));
512
512
  }
513
- function s(u, h = L) {
513
+ function o(u, h = L) {
514
514
  const a = [u, h];
515
- return n.add(a), n.size === 1 && (r = t(i, o) || L), u(e), () => {
515
+ return n.add(a), n.size === 1 && (r = t(i, s) || L), u(e), () => {
516
516
  n.delete(a), n.size === 0 && r && (r(), r = null);
517
517
  };
518
518
  }
519
- return { set: i, update: o, subscribe: s };
519
+ return { set: i, update: s, subscribe: o };
520
520
  }
521
- function ee(e, t, r) {
521
+ function te(e, t, r) {
522
522
  const n = !Array.isArray(e), i = n ? [e] : e;
523
523
  if (!i.every(Boolean))
524
524
  throw new Error("derived() expects stores as input, got a falsy value");
525
- const o = t.length < 2;
526
- return Ar(r, (s, u) => {
525
+ const s = t.length < 2;
526
+ return Br(r, (o, u) => {
527
527
  let h = !1;
528
528
  const a = [];
529
529
  let l = 0, c = L;
@@ -531,10 +531,10 @@ function ee(e, t, r) {
531
531
  if (l)
532
532
  return;
533
533
  c();
534
- const d = t(n ? a[0] : a, s, u);
535
- o ? s(d) : c = Xe(d) ? d : L;
534
+ const d = t(n ? a[0] : a, o, u);
535
+ s ? o(d) : c = We(d) ? d : L;
536
536
  }, p = i.map(
537
- (d, g) => Ct(
537
+ (d, g) => St(
538
538
  d,
539
539
  (E) => {
540
540
  a[g] = E, l &= ~(1 << g), h && f();
@@ -545,126 +545,112 @@ function ee(e, t, r) {
545
545
  )
546
546
  );
547
547
  return h = !0, f(), function() {
548
- ue(p), c(), h = !1;
548
+ he(p), c(), h = !1;
549
549
  };
550
550
  });
551
551
  }
552
- function Br(e) {
552
+ function Or(e) {
553
553
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
554
554
  }
555
- var Sr = function(t) {
556
- return wr(t) && !Or(t);
555
+ var wr = function(t) {
556
+ return Pr(t) && !Nr(t);
557
557
  };
558
- function wr(e) {
558
+ function Pr(e) {
559
559
  return !!e && typeof e == "object";
560
560
  }
561
- function Or(e) {
561
+ function Nr(e) {
562
562
  var t = Object.prototype.toString.call(e);
563
- return t === "[object RegExp]" || t === "[object Date]" || Lr(e);
563
+ return t === "[object RegExp]" || t === "[object Date]" || Mr(e);
564
564
  }
565
- var Pr = typeof Symbol == "function" && Symbol.for, Nr = Pr ? Symbol.for("react.element") : 60103;
566
- function Lr(e) {
567
- return e.$$typeof === Nr;
565
+ var Lr = typeof Symbol == "function" && Symbol.for, Ir = Lr ? Symbol.for("react.element") : 60103;
566
+ function Mr(e) {
567
+ return e.$$typeof === Ir;
568
568
  }
569
- function Ir(e) {
569
+ function $r(e) {
570
570
  return Array.isArray(e) ? [] : {};
571
571
  }
572
- function se(e, t) {
573
- return t.clone !== !1 && t.isMergeableObject(e) ? Q(Ir(e), e, t) : e;
572
+ function ae(e, t) {
573
+ return t.clone !== !1 && t.isMergeableObject(e) ? J($r(e), e, t) : e;
574
574
  }
575
- function Mr(e, t, r) {
575
+ function Rr(e, t, r) {
576
576
  return e.concat(t).map(function(n) {
577
- return se(n, r);
577
+ return ae(n, r);
578
578
  });
579
579
  }
580
- function $r(e, t) {
580
+ function Ur(e, t) {
581
581
  if (!t.customMerge)
582
- return Q;
582
+ return J;
583
583
  var r = t.customMerge(e);
584
- return typeof r == "function" ? r : Q;
584
+ return typeof r == "function" ? r : J;
585
585
  }
586
- function Rr(e) {
586
+ function Gr(e) {
587
587
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
588
588
  return Object.propertyIsEnumerable.call(e, t);
589
589
  }) : [];
590
590
  }
591
- function nt(e) {
592
- return Object.keys(e).concat(Rr(e));
591
+ function st(e) {
592
+ return Object.keys(e).concat(Gr(e));
593
593
  }
594
- function Bt(e, t) {
594
+ function Ot(e, t) {
595
595
  try {
596
596
  return t in e;
597
597
  } catch (r) {
598
598
  return !1;
599
599
  }
600
600
  }
601
- function Ur(e, t) {
602
- return Bt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
601
+ function Dr(e, t) {
602
+ return Ot(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
603
603
  }
604
- function Gr(e, t, r) {
604
+ function Fr(e, t, r) {
605
605
  var n = {};
606
- return r.isMergeableObject(e) && nt(e).forEach(function(i) {
607
- n[i] = se(e[i], r);
608
- }), nt(t).forEach(function(i) {
609
- Ur(e, i) || (Bt(e, i) && r.isMergeableObject(t[i]) ? n[i] = $r(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
606
+ return r.isMergeableObject(e) && st(e).forEach(function(i) {
607
+ n[i] = ae(e[i], r);
608
+ }), st(t).forEach(function(i) {
609
+ Dr(e, i) || (Ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ur(i, r)(e[i], t[i], r) : n[i] = ae(t[i], r));
610
610
  }), n;
611
611
  }
612
- function Q(e, t, r) {
613
- r = r || {}, r.arrayMerge = r.arrayMerge || Mr, r.isMergeableObject = r.isMergeableObject || Sr, r.cloneUnlessOtherwiseSpecified = se;
614
- var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
615
- return o ? n ? r.arrayMerge(e, t, r) : Gr(e, t, r) : se(t, r);
612
+ function J(e, t, r) {
613
+ r = r || {}, r.arrayMerge = r.arrayMerge || Rr, r.isMergeableObject = r.isMergeableObject || wr, r.cloneUnlessOtherwiseSpecified = ae;
614
+ var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
615
+ return s ? n ? r.arrayMerge(e, t, r) : Fr(e, t, r) : ae(t, r);
616
616
  }
617
- Q.all = function(t, r) {
617
+ J.all = function(t, r) {
618
618
  if (!Array.isArray(t))
619
619
  throw new Error("first argument should be an array");
620
620
  return t.reduce(function(n, i) {
621
- return Q(n, i, r);
621
+ return J(n, i, r);
622
622
  }, {});
623
623
  };
624
- var Dr = Q, Fr = Dr;
625
- const jr = /* @__PURE__ */ Br(Fr);
626
- /*! *****************************************************************************
627
- Copyright (c) Microsoft Corporation.
628
-
629
- Permission to use, copy, modify, and/or distribute this software for any
630
- purpose with or without fee is hereby granted.
631
-
632
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
633
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
634
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
635
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
636
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
637
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
638
- PERFORMANCE OF THIS SOFTWARE.
639
- ***************************************************************************** */
640
- var $e = function(e, t) {
641
- return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
624
+ var jr = J, kr = jr;
625
+ const Vr = /* @__PURE__ */ Or(kr);
626
+ var Ue = function(e, t) {
627
+ return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
642
628
  r.__proto__ = n;
643
629
  } || function(r, n) {
644
630
  for (var i in n)
645
631
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
646
- }, $e(e, t);
632
+ }, Ue(e, t);
647
633
  };
648
- function Ee(e, t) {
634
+ function Te(e, t) {
649
635
  if (typeof t != "function" && t !== null)
650
636
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
651
- $e(e, t);
637
+ Ue(e, t);
652
638
  function r() {
653
639
  this.constructor = e;
654
640
  }
655
641
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
656
642
  }
657
- var x = function() {
658
- return x = Object.assign || function(t) {
643
+ var U = function() {
644
+ return U = Object.assign || function(t) {
659
645
  for (var r, n = 1, i = arguments.length; n < i; n++) {
660
646
  r = arguments[n];
661
- for (var o in r)
662
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
647
+ for (var s in r)
648
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
663
649
  }
664
650
  return t;
665
- }, x.apply(this, arguments);
651
+ }, U.apply(this, arguments);
666
652
  };
667
- function kr(e, t) {
653
+ function Xr(e, t) {
668
654
  var r = {};
669
655
  for (var n in e)
670
656
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -673,43 +659,43 @@ function kr(e, t) {
673
659
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
674
660
  return r;
675
661
  }
676
- function Be(e, t, r) {
677
- if (arguments.length === 2)
678
- for (var n = 0, i = t.length, o; n < i; n++)
679
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
680
- return e.concat(o || t);
662
+ function Oe(e, t, r) {
663
+ if (r || arguments.length === 2)
664
+ for (var n = 0, i = t.length, s; n < i; n++)
665
+ (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
666
+ return e.concat(s || Array.prototype.slice.call(t));
681
667
  }
682
- function Se(e, t) {
683
- var r = t && t.cache ? t.cache : Jr, n = t && t.serializer ? t.serializer : Zr, i = t && t.strategy ? t.strategy : zr;
668
+ function we(e, t) {
669
+ var r = t && t.cache ? t.cache : Yr, n = t && t.serializer ? t.serializer : Jr, i = t && t.strategy ? t.strategy : Zr;
684
670
  return i(e, {
685
671
  cache: r,
686
672
  serializer: n
687
673
  });
688
674
  }
689
- function Vr(e) {
675
+ function zr(e) {
690
676
  return e == null || typeof e == "number" || typeof e == "boolean";
691
677
  }
692
- function Xr(e, t, r, n) {
693
- var i = Vr(n) ? n : r(n), o = t.get(i);
694
- return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
678
+ function Wr(e, t, r, n) {
679
+ var i = zr(n) ? n : r(n), s = t.get(i);
680
+ return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
695
681
  }
696
- function St(e, t, r) {
697
- var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
698
- return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
682
+ function wt(e, t, r) {
683
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
684
+ return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
699
685
  }
700
- function wt(e, t, r, n, i) {
686
+ function Pt(e, t, r, n, i) {
701
687
  return r.bind(t, e, n, i);
702
688
  }
703
- function zr(e, t) {
704
- var r = e.length === 1 ? Xr : St;
705
- return wt(e, this, r, t.cache.create(), t.serializer);
689
+ function Zr(e, t) {
690
+ var r = e.length === 1 ? Wr : wt;
691
+ return Pt(e, this, r, t.cache.create(), t.serializer);
706
692
  }
707
- function Wr(e, t) {
708
- return wt(e, this, St, t.cache.create(), t.serializer);
693
+ function Qr(e, t) {
694
+ return Pt(e, this, wt, t.cache.create(), t.serializer);
709
695
  }
710
- var Zr = function() {
696
+ var Jr = function() {
711
697
  return JSON.stringify(arguments);
712
- }, Qr = (
698
+ }, qr = (
713
699
  /** @class */
714
700
  function() {
715
701
  function e() {
@@ -721,61 +707,71 @@ var Zr = function() {
721
707
  this.cache[t] = r;
722
708
  }, e;
723
709
  }()
724
- ), Jr = {
710
+ ), Yr = {
725
711
  create: function() {
726
- return new Qr();
712
+ return new qr();
727
713
  }
728
- }, we = {
729
- variadic: Wr
730
- }, y;
714
+ }, Pe = {
715
+ variadic: Qr
716
+ }, _e = function() {
717
+ return _e = Object.assign || function(t) {
718
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
719
+ r = arguments[n];
720
+ for (var s in r)
721
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
722
+ }
723
+ return t;
724
+ }, _e.apply(this, arguments);
725
+ };
726
+ var y;
731
727
  (function(e) {
732
728
  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";
733
729
  })(y || (y = {}));
734
- var T;
730
+ var v;
735
731
  (function(e) {
736
732
  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";
737
- })(T || (T = {}));
738
- var J;
733
+ })(v || (v = {}));
734
+ var q;
739
735
  (function(e) {
740
736
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
741
- })(J || (J = {}));
742
- function it(e) {
743
- return e.type === T.literal;
744
- }
745
- function qr(e) {
746
- return e.type === T.argument;
747
- }
748
- function Ot(e) {
749
- return e.type === T.number;
737
+ })(q || (q = {}));
738
+ function ot(e) {
739
+ return e.type === v.literal;
750
740
  }
751
- function Pt(e) {
752
- return e.type === T.date;
741
+ function Kr(e) {
742
+ return e.type === v.argument;
753
743
  }
754
744
  function Nt(e) {
755
- return e.type === T.time;
745
+ return e.type === v.number;
756
746
  }
757
747
  function Lt(e) {
758
- return e.type === T.select;
748
+ return e.type === v.date;
759
749
  }
760
750
  function It(e) {
761
- return e.type === T.plural;
762
- }
763
- function Yr(e) {
764
- return e.type === T.pound;
751
+ return e.type === v.time;
765
752
  }
766
753
  function Mt(e) {
767
- return e.type === T.tag;
754
+ return e.type === v.select;
768
755
  }
769
756
  function $t(e) {
770
- return !!(e && typeof e == "object" && e.type === J.number);
771
- }
772
- function Re(e) {
773
- return !!(e && typeof e == "object" && e.type === J.dateTime);
757
+ return e.type === v.plural;
774
758
  }
775
- var Rt = /[ \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;
776
759
  function en(e) {
760
+ return e.type === v.pound;
761
+ }
762
+ function Rt(e) {
763
+ return e.type === v.tag;
764
+ }
765
+ function Ut(e) {
766
+ return !!(e && typeof e == "object" && e.type === q.number);
767
+ }
768
+ function Ge(e) {
769
+ return !!(e && typeof e == "object" && e.type === q.dateTime);
770
+ }
771
+ var Gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, tn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
772
+ function rn(e) {
777
773
  var t = {};
778
- return e.replace(Kr, function(r) {
774
+ return e.replace(tn, function(r) {
779
775
  var n = r.length;
780
776
  switch (r[0]) {
781
777
  case "G":
@@ -864,17 +860,27 @@ function en(e) {
864
860
  return "";
865
861
  }), t;
866
862
  }
867
- var tn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
868
- function rn(e) {
863
+ var C = function() {
864
+ return C = Object.assign || function(t) {
865
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
866
+ r = arguments[n];
867
+ for (var s in r)
868
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
869
+ }
870
+ return t;
871
+ }, C.apply(this, arguments);
872
+ };
873
+ var nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
874
+ function sn(e) {
869
875
  if (e.length === 0)
870
876
  throw new Error("Number skeleton cannot be empty");
871
- for (var t = e.split(tn).filter(function(f) {
877
+ for (var t = e.split(nn).filter(function(f) {
872
878
  return f.length > 0;
873
879
  }), r = [], n = 0, i = t; n < i.length; n++) {
874
- var o = i[n], s = o.split("/");
875
- if (s.length === 0)
880
+ var s = i[n], o = s.split("/");
881
+ if (o.length === 0)
876
882
  throw new Error("Invalid number skeleton");
877
- for (var u = s[0], h = s.slice(1), a = 0, l = h; a < l.length; a++) {
883
+ for (var u = o[0], h = o.slice(1), a = 0, l = h; a < l.length; a++) {
878
884
  var c = l[a];
879
885
  if (c.length === 0)
880
886
  throw new Error("Invalid number skeleton");
@@ -883,17 +889,17 @@ function rn(e) {
883
889
  }
884
890
  return r;
885
891
  }
886
- function nn(e) {
892
+ function on(e) {
887
893
  return e.replace(/^(.*?)-/, "");
888
894
  }
889
- var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ut = /^(@+)?(\+|#+)?[rs]?$/g, on = /(\*)(0+)|(#+)(0+)|(0+)/g, Gt = /^(0+)$/;
890
- function st(e) {
895
+ var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g, an = /(\*)(0+)|(#+)(0+)|(0+)/g, Ft = /^(0+)$/;
896
+ function ut(e) {
891
897
  var t = {};
892
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ut, function(r, n, i) {
898
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Dt, function(r, n, i) {
893
899
  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)), "";
894
900
  }), t;
895
901
  }
896
- function Dt(e) {
902
+ function jt(e) {
897
903
  switch (e) {
898
904
  case "sign-auto":
899
905
  return {
@@ -933,7 +939,7 @@ function Dt(e) {
933
939
  };
934
940
  }
935
941
  }
936
- function sn(e) {
942
+ function un(e) {
937
943
  var t;
938
944
  if (e[0] === "E" && e[1] === "E" ? (t = {
939
945
  notation: "engineering"
@@ -941,17 +947,17 @@ function sn(e) {
941
947
  notation: "scientific"
942
948
  }, e = e.slice(1)), t) {
943
949
  var r = e.slice(0, 2);
944
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Gt.test(e))
950
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ft.test(e))
945
951
  throw new Error("Malformed concise eng/scientific notation");
946
952
  t.minimumIntegerDigits = e.length;
947
953
  }
948
954
  return t;
949
955
  }
950
- function at(e) {
951
- var t = {}, r = Dt(e);
956
+ function ht(e) {
957
+ var t = {}, r = jt(e);
952
958
  return r || t;
953
959
  }
954
- function an(e) {
960
+ function hn(e) {
955
961
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
956
962
  var i = n[r];
957
963
  switch (i.stem) {
@@ -975,7 +981,7 @@ function an(e) {
975
981
  continue;
976
982
  case "measure-unit":
977
983
  case "unit":
978
- t.style = "unit", t.unit = nn(i.options[0]);
984
+ t.style = "unit", t.unit = on(i.options[0]);
979
985
  continue;
980
986
  case "compact-short":
981
987
  case "K":
@@ -986,13 +992,13 @@ function an(e) {
986
992
  t.notation = "compact", t.compactDisplay = "long";
987
993
  continue;
988
994
  case "scientific":
989
- t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
990
- return x(x({}, h), at(a));
995
+ t = C(C(C({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
996
+ return C(C({}, h), ht(a));
991
997
  }, {}));
992
998
  continue;
993
999
  case "engineering":
994
- t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
995
- return x(x({}, h), at(a));
1000
+ t = C(C(C({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
1001
+ return C(C({}, h), ht(a));
996
1002
  }, {}));
997
1003
  continue;
998
1004
  case "notation-simple":
@@ -1037,7 +1043,7 @@ function an(e) {
1037
1043
  case "integer-width":
1038
1044
  if (i.options.length > 1)
1039
1045
  throw new RangeError("integer-width stems only accept a single optional option");
1040
- i.options[0].replace(on, function(h, a, l, c, f, p) {
1046
+ i.options[0].replace(an, function(h, a, l, c, f, p) {
1041
1047
  if (a)
1042
1048
  t.minimumIntegerDigits = l.length;
1043
1049
  else {
@@ -1050,32 +1056,32 @@ function an(e) {
1050
1056
  });
1051
1057
  continue;
1052
1058
  }
1053
- if (Gt.test(i.stem)) {
1059
+ if (Ft.test(i.stem)) {
1054
1060
  t.minimumIntegerDigits = i.stem.length;
1055
1061
  continue;
1056
1062
  }
1057
- if (ot.test(i.stem)) {
1063
+ if (at.test(i.stem)) {
1058
1064
  if (i.options.length > 1)
1059
1065
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1060
- i.stem.replace(ot, function(h, a, l, c, f, p) {
1066
+ i.stem.replace(at, function(h, a, l, c, f, p) {
1061
1067
  return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1062
1068
  });
1063
- var o = i.options[0];
1064
- o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), st(o)));
1069
+ var s = i.options[0];
1070
+ s === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = C(C({}, t), ut(s)));
1065
1071
  continue;
1066
1072
  }
1067
- if (Ut.test(i.stem)) {
1068
- t = x(x({}, t), st(i.stem));
1073
+ if (Dt.test(i.stem)) {
1074
+ t = C(C({}, t), ut(i.stem));
1069
1075
  continue;
1070
1076
  }
1071
- var s = Dt(i.stem);
1072
- s && (t = x(x({}, t), s));
1073
- var u = sn(i.stem);
1074
- u && (t = x(x({}, t), u));
1077
+ var o = jt(i.stem);
1078
+ o && (t = C(C({}, t), o));
1079
+ var u = un(i.stem);
1080
+ u && (t = C(C({}, t), u));
1075
1081
  }
1076
1082
  return t;
1077
1083
  }
1078
- var ge = {
1084
+ var me = {
1079
1085
  "001": [
1080
1086
  "H",
1081
1087
  "h"
@@ -2490,23 +2496,23 @@ var ge = {
2490
2496
  "h"
2491
2497
  ]
2492
2498
  };
2493
- function un(e, t) {
2499
+ function ln(e, t) {
2494
2500
  for (var r = "", n = 0; n < e.length; n++) {
2495
2501
  var i = e.charAt(n);
2496
2502
  if (i === "j") {
2497
- for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2498
- o++, n++;
2499
- var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), h = "a", a = hn(t);
2503
+ for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2504
+ s++, n++;
2505
+ var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = fn(t);
2500
2506
  for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
2501
2507
  r += h;
2502
- for (; s-- > 0; )
2508
+ for (; o-- > 0; )
2503
2509
  r = a + r;
2504
2510
  } else
2505
2511
  i === "J" ? r += "H" : r += i;
2506
2512
  }
2507
2513
  return r;
2508
2514
  }
2509
- function hn(e) {
2515
+ function fn(e) {
2510
2516
  var t = e.hourCycle;
2511
2517
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2512
2518
  e.hourCycles && // @ts-ignore
@@ -2525,23 +2531,23 @@ function hn(e) {
2525
2531
  }
2526
2532
  var r = e.language, n;
2527
2533
  r !== "root" && (n = e.maximize().region);
2528
- var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
2534
+ var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
2529
2535
  return i[0];
2530
2536
  }
2531
- var Oe, ln = new RegExp("^".concat(Rt.source, "*")), fn = new RegExp("".concat(Rt.source, "*$"));
2537
+ var Ne, cn = new RegExp("^".concat(Gt.source, "*")), gn = new RegExp("".concat(Gt.source, "*$"));
2532
2538
  function _(e, t) {
2533
2539
  return { start: e, end: t };
2534
2540
  }
2535
- var cn = !!String.prototype.startsWith && "_a".startsWith("a", 1), gn = !!String.fromCodePoint, mn = !!Object.fromEntries, pn = !!String.prototype.codePointAt, dn = !!String.prototype.trimStart, bn = !!String.prototype.trimEnd, yn = !!Number.isSafeInteger, _n = yn ? Number.isSafeInteger : function(e) {
2541
+ 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) {
2536
2542
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2537
- }, Ue = !0;
2543
+ }, De = !0;
2538
2544
  try {
2539
- var xn = jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2540
- Ue = ((Oe = xn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
2545
+ var vn = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2546
+ De = ((Ne = vn.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
2541
2547
  } catch (e) {
2542
- Ue = !1;
2548
+ De = !1;
2543
2549
  }
2544
- var ut = cn ? (
2550
+ var lt = mn ? (
2545
2551
  // Native
2546
2552
  function(t, r, n) {
2547
2553
  return t.startsWith(r, n);
@@ -2551,31 +2557,31 @@ var ut = cn ? (
2551
2557
  function(t, r, n) {
2552
2558
  return t.slice(n, n + r.length) === r;
2553
2559
  }
2554
- ), Ge = gn ? String.fromCodePoint : (
2560
+ ), Fe = pn ? String.fromCodePoint : (
2555
2561
  // IE11
2556
2562
  function() {
2557
2563
  for (var t = [], r = 0; r < arguments.length; r++)
2558
2564
  t[r] = arguments[r];
2559
- for (var n = "", i = t.length, o = 0, s; i > o; ) {
2560
- if (s = t[o++], s > 1114111)
2561
- throw RangeError(s + " is not a valid code point");
2562
- n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
2565
+ for (var n = "", i = t.length, s = 0, o; i > s; ) {
2566
+ if (o = t[s++], o > 1114111)
2567
+ throw RangeError(o + " is not a valid code point");
2568
+ n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2563
2569
  }
2564
2570
  return n;
2565
2571
  }
2566
- ), ht = (
2572
+ ), ft = (
2567
2573
  // native
2568
- mn ? Object.fromEntries : (
2574
+ dn ? Object.fromEntries : (
2569
2575
  // Ponyfill
2570
2576
  function(t) {
2571
2577
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2572
- var o = i[n], s = o[0], u = o[1];
2573
- r[s] = u;
2578
+ var s = i[n], o = s[0], u = s[1];
2579
+ r[o] = u;
2574
2580
  }
2575
2581
  return r;
2576
2582
  }
2577
2583
  )
2578
- ), Ft = pn ? (
2584
+ ), kt = bn ? (
2579
2585
  // Native
2580
2586
  function(t, r) {
2581
2587
  return t.codePointAt(r);
@@ -2585,11 +2591,11 @@ var ut = cn ? (
2585
2591
  function(t, r) {
2586
2592
  var n = t.length;
2587
2593
  if (!(r < 0 || r >= n)) {
2588
- var i = t.charCodeAt(r), o;
2589
- return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2594
+ var i = t.charCodeAt(r), s;
2595
+ return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2590
2596
  }
2591
2597
  }
2592
- ), En = dn ? (
2598
+ ), Tn = yn ? (
2593
2599
  // Native
2594
2600
  function(t) {
2595
2601
  return t.trimStart();
@@ -2597,9 +2603,9 @@ var ut = cn ? (
2597
2603
  ) : (
2598
2604
  // Ponyfill
2599
2605
  function(t) {
2600
- return t.replace(ln, "");
2606
+ return t.replace(cn, "");
2601
2607
  }
2602
- ), vn = bn ? (
2608
+ ), Cn = _n ? (
2603
2609
  // Native
2604
2610
  function(t) {
2605
2611
  return t.trimEnd();
@@ -2607,32 +2613,32 @@ var ut = cn ? (
2607
2613
  ) : (
2608
2614
  // Ponyfill
2609
2615
  function(t) {
2610
- return t.replace(fn, "");
2616
+ return t.replace(gn, "");
2611
2617
  }
2612
2618
  );
2613
- function jt(e, t) {
2619
+ function Vt(e, t) {
2614
2620
  return new RegExp(e, t);
2615
2621
  }
2616
- var De;
2617
- if (Ue) {
2618
- var lt = jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2619
- De = function(t, r) {
2622
+ var je;
2623
+ if (De) {
2624
+ var ct = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2625
+ je = function(t, r) {
2620
2626
  var n;
2621
- lt.lastIndex = r;
2622
- var i = lt.exec(t);
2627
+ ct.lastIndex = r;
2628
+ var i = ct.exec(t);
2623
2629
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2624
2630
  };
2625
2631
  } else
2626
- De = function(t, r) {
2632
+ je = function(t, r) {
2627
2633
  for (var n = []; ; ) {
2628
- var i = Ft(t, r);
2629
- if (i === void 0 || kt(i) || An(i))
2634
+ var i = kt(t, r);
2635
+ if (i === void 0 || Xt(i) || Bn(i))
2630
2636
  break;
2631
2637
  n.push(i), r += i >= 65536 ? 2 : 1;
2632
2638
  }
2633
- return Ge.apply(void 0, n);
2639
+ return Fe.apply(void 0, n);
2634
2640
  };
2635
- var Tn = (
2641
+ var Hn = (
2636
2642
  /** @class */
2637
2643
  function() {
2638
2644
  function e(t, r) {
@@ -2644,35 +2650,35 @@ var Tn = (
2644
2650
  return this.parseMessage(0, "", !1);
2645
2651
  }, e.prototype.parseMessage = function(t, r, n) {
2646
2652
  for (var i = []; !this.isEOF(); ) {
2647
- var o = this.char();
2648
- if (o === 123) {
2649
- var s = this.parseArgument(t, n);
2650
- if (s.err)
2651
- return s;
2652
- i.push(s.val);
2653
+ var s = this.char();
2654
+ if (s === 123) {
2655
+ var o = this.parseArgument(t, n);
2656
+ if (o.err)
2657
+ return o;
2658
+ i.push(o.val);
2653
2659
  } else {
2654
- if (o === 125 && t > 0)
2660
+ if (s === 125 && t > 0)
2655
2661
  break;
2656
- if (o === 35 && (r === "plural" || r === "selectordinal")) {
2662
+ if (s === 35 && (r === "plural" || r === "selectordinal")) {
2657
2663
  var u = this.clonePosition();
2658
2664
  this.bump(), i.push({
2659
- type: T.pound,
2665
+ type: v.pound,
2660
2666
  location: _(u, this.clonePosition())
2661
2667
  });
2662
- } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2668
+ } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2663
2669
  if (n)
2664
2670
  break;
2665
2671
  return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
2666
- } else if (o === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
2667
- var s = this.parseTag(t, r);
2668
- if (s.err)
2669
- return s;
2670
- i.push(s.val);
2672
+ } else if (s === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
2673
+ var o = this.parseTag(t, r);
2674
+ if (o.err)
2675
+ return o;
2676
+ i.push(o.val);
2671
2677
  } else {
2672
- var s = this.parseLiteral(t, r);
2673
- if (s.err)
2674
- return s;
2675
- i.push(s.val);
2678
+ var o = this.parseLiteral(t, r);
2679
+ if (o.err)
2680
+ return o;
2681
+ i.push(o.val);
2676
2682
  }
2677
2683
  }
2678
2684
  }
@@ -2684,26 +2690,26 @@ var Tn = (
2684
2690
  if (this.bumpSpace(), this.bumpIf("/>"))
2685
2691
  return {
2686
2692
  val: {
2687
- type: T.literal,
2693
+ type: v.literal,
2688
2694
  value: "<".concat(i, "/>"),
2689
2695
  location: _(n, this.clonePosition())
2690
2696
  },
2691
2697
  err: null
2692
2698
  };
2693
2699
  if (this.bumpIf(">")) {
2694
- var o = this.parseMessage(t + 1, r, !0);
2695
- if (o.err)
2696
- return o;
2697
- var s = o.val, u = this.clonePosition();
2700
+ var s = this.parseMessage(t + 1, r, !0);
2701
+ if (s.err)
2702
+ return s;
2703
+ var o = s.val, u = this.clonePosition();
2698
2704
  if (this.bumpIf("</")) {
2699
- if (this.isEOF() || !Fe(this.char()))
2705
+ if (this.isEOF() || !ke(this.char()))
2700
2706
  return this.error(y.INVALID_TAG, _(u, this.clonePosition()));
2701
2707
  var h = this.clonePosition(), a = this.parseTagName();
2702
2708
  return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2703
2709
  val: {
2704
- type: T.tag,
2710
+ type: v.tag,
2705
2711
  value: i,
2706
- children: s,
2712
+ children: o,
2707
2713
  location: _(n, this.clonePosition())
2708
2714
  },
2709
2715
  err: null
@@ -2714,21 +2720,21 @@ var Tn = (
2714
2720
  return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
2715
2721
  }, e.prototype.parseTagName = function() {
2716
2722
  var t = this.offset();
2717
- for (this.bump(); !this.isEOF() && Hn(this.char()); )
2723
+ for (this.bump(); !this.isEOF() && An(this.char()); )
2718
2724
  this.bump();
2719
2725
  return this.message.slice(t, this.offset());
2720
2726
  }, e.prototype.parseLiteral = function(t, r) {
2721
2727
  for (var n = this.clonePosition(), i = ""; ; ) {
2722
- var o = this.tryParseQuote(r);
2723
- if (o) {
2724
- i += o;
2725
- continue;
2726
- }
2727
- var s = this.tryParseUnquoted(t, r);
2728
+ var s = this.tryParseQuote(r);
2728
2729
  if (s) {
2729
2730
  i += s;
2730
2731
  continue;
2731
2732
  }
2733
+ var o = this.tryParseUnquoted(t, r);
2734
+ if (o) {
2735
+ i += o;
2736
+ continue;
2737
+ }
2732
2738
  var u = this.tryParseLeftAngleBracket();
2733
2739
  if (u) {
2734
2740
  i += u;
@@ -2738,12 +2744,12 @@ var Tn = (
2738
2744
  }
2739
2745
  var h = _(n, this.clonePosition());
2740
2746
  return {
2741
- val: { type: T.literal, value: i, location: h },
2747
+ val: { type: v.literal, value: i, location: h },
2742
2748
  err: null
2743
2749
  };
2744
2750
  }, e.prototype.tryParseLeftAngleBracket = function() {
2745
2751
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2746
- !Cn(this.peek() || 0)) ? (this.bump(), "<") : null;
2752
+ !Sn(this.peek() || 0)) ? (this.bump(), "<") : null;
2747
2753
  }, e.prototype.tryParseQuote = function(t) {
2748
2754
  if (this.isEOF() || this.char() !== 39)
2749
2755
  return null;
@@ -2777,12 +2783,12 @@ var Tn = (
2777
2783
  r.push(n);
2778
2784
  this.bump();
2779
2785
  }
2780
- return Ge.apply(void 0, r);
2786
+ return Fe.apply(void 0, r);
2781
2787
  }, e.prototype.tryParseUnquoted = function(t, r) {
2782
2788
  if (this.isEOF())
2783
2789
  return null;
2784
2790
  var n = this.char();
2785
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
2791
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
2786
2792
  }, e.prototype.parseArgument = function(t, r) {
2787
2793
  var n = this.clonePosition();
2788
2794
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2798,7 +2804,7 @@ var Tn = (
2798
2804
  case 125:
2799
2805
  return this.bump(), {
2800
2806
  val: {
2801
- type: T.argument,
2807
+ type: v.argument,
2802
2808
  // value does not include the opening and closing braces.
2803
2809
  value: i,
2804
2810
  location: _(n, this.clonePosition())
@@ -2811,15 +2817,15 @@ var Tn = (
2811
2817
  return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
2812
2818
  }
2813
2819
  }, e.prototype.parseIdentifierIfPossible = function() {
2814
- var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
2820
+ var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
2815
2821
  this.bumpTo(i);
2816
- var o = this.clonePosition(), s = _(t, o);
2817
- return { value: n, location: s };
2822
+ var s = this.clonePosition(), o = _(t, s);
2823
+ return { value: n, location: o };
2818
2824
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2819
- var o, s = this.clonePosition(), u = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2825
+ var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2820
2826
  switch (u) {
2821
2827
  case "":
2822
- return this.error(y.EXPECT_ARGUMENT_TYPE, _(s, h));
2828
+ return this.error(y.EXPECT_ARGUMENT_TYPE, _(o, h));
2823
2829
  case "number":
2824
2830
  case "date":
2825
2831
  case "time": {
@@ -2830,7 +2836,7 @@ var Tn = (
2830
2836
  var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2831
2837
  if (c.err)
2832
2838
  return c;
2833
- var f = vn(c.val);
2839
+ var f = Cn(c.val);
2834
2840
  if (f.length === 0)
2835
2841
  return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
2836
2842
  var p = _(l, this.clonePosition());
@@ -2840,37 +2846,37 @@ var Tn = (
2840
2846
  if (d.err)
2841
2847
  return d;
2842
2848
  var g = _(i, this.clonePosition());
2843
- if (a && ut(a == null ? void 0 : a.style, "::", 0)) {
2844
- var E = En(a.style.slice(2));
2849
+ if (a && lt(a == null ? void 0 : a.style, "::", 0)) {
2850
+ var E = Tn(a.style.slice(2));
2845
2851
  if (u === "number") {
2846
2852
  var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
2847
2853
  return c.err ? c : {
2848
- val: { type: T.number, value: n, location: g, style: c.val },
2854
+ val: { type: v.number, value: n, location: g, style: c.val },
2849
2855
  err: null
2850
2856
  };
2851
2857
  } else {
2852
2858
  if (E.length === 0)
2853
2859
  return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
2854
2860
  var m = E;
2855
- this.locale && (m = un(E, this.locale));
2861
+ this.locale && (m = ln(E, this.locale));
2856
2862
  var f = {
2857
- type: J.dateTime,
2863
+ type: q.dateTime,
2858
2864
  pattern: m,
2859
2865
  location: a.styleLocation,
2860
- parsedOptions: this.shouldParseSkeletons ? en(m) : {}
2861
- }, C = u === "date" ? T.date : T.time;
2866
+ parsedOptions: this.shouldParseSkeletons ? rn(m) : {}
2867
+ }, T = u === "date" ? v.date : v.time;
2862
2868
  return {
2863
- val: { type: C, value: n, location: g, style: f },
2869
+ val: { type: T, value: n, location: g, style: f },
2864
2870
  err: null
2865
2871
  };
2866
2872
  }
2867
2873
  }
2868
2874
  return {
2869
2875
  val: {
2870
- type: u === "number" ? T.number : u === "date" ? T.date : T.time,
2876
+ type: u === "number" ? v.number : u === "date" ? v.date : v.time,
2871
2877
  value: n,
2872
2878
  location: g,
2873
- style: (o = a == null ? void 0 : a.style) !== null && o !== void 0 ? o : null
2879
+ style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
2874
2880
  },
2875
2881
  err: null
2876
2882
  };
@@ -2878,21 +2884,21 @@ var Tn = (
2878
2884
  case "plural":
2879
2885
  case "selectordinal":
2880
2886
  case "select": {
2881
- var A = this.clonePosition();
2887
+ var S = this.clonePosition();
2882
2888
  if (this.bumpSpace(), !this.bumpIf(","))
2883
- return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(A, x({}, A)));
2889
+ return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(S, _e({}, S)));
2884
2890
  this.bumpSpace();
2885
- var O = this.parseIdentifierIfPossible(), B = 0;
2886
- if (u !== "select" && O.value === "offset") {
2891
+ var w = this.parseIdentifierIfPossible(), A = 0;
2892
+ if (u !== "select" && w.value === "offset") {
2887
2893
  if (!this.bumpIf(":"))
2888
2894
  return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
2889
2895
  this.bumpSpace();
2890
2896
  var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2891
2897
  if (c.err)
2892
2898
  return c;
2893
- this.bumpSpace(), O = this.parseIdentifierIfPossible(), B = c.val;
2899
+ this.bumpSpace(), w = this.parseIdentifierIfPossible(), A = c.val;
2894
2900
  }
2895
- var H = this.tryParsePluralOrSelectOptions(t, u, r, O);
2901
+ var H = this.tryParsePluralOrSelectOptions(t, u, r, w);
2896
2902
  if (H.err)
2897
2903
  return H;
2898
2904
  var d = this.tryParseArgumentClose(i);
@@ -2901,18 +2907,18 @@ var Tn = (
2901
2907
  var P = _(i, this.clonePosition());
2902
2908
  return u === "select" ? {
2903
2909
  val: {
2904
- type: T.select,
2910
+ type: v.select,
2905
2911
  value: n,
2906
- options: ht(H.val),
2912
+ options: ft(H.val),
2907
2913
  location: P
2908
2914
  },
2909
2915
  err: null
2910
2916
  } : {
2911
2917
  val: {
2912
- type: T.plural,
2918
+ type: v.plural,
2913
2919
  value: n,
2914
- options: ht(H.val),
2915
- offset: B,
2920
+ options: ft(H.val),
2921
+ offset: A,
2916
2922
  pluralType: u === "plural" ? "cardinal" : "ordinal",
2917
2923
  location: P
2918
2924
  },
@@ -2920,7 +2926,7 @@ var Tn = (
2920
2926
  };
2921
2927
  }
2922
2928
  default:
2923
- return this.error(y.INVALID_ARGUMENT_TYPE, _(s, h));
2929
+ return this.error(y.INVALID_ARGUMENT_TYPE, _(o, h));
2924
2930
  }
2925
2931
  }, e.prototype.tryParseArgumentClose = function(t) {
2926
2932
  return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -2962,21 +2968,21 @@ var Tn = (
2962
2968
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2963
2969
  var n = [];
2964
2970
  try {
2965
- n = rn(t);
2971
+ n = sn(t);
2966
2972
  } catch (i) {
2967
2973
  return this.error(y.INVALID_NUMBER_SKELETON, r);
2968
2974
  }
2969
2975
  return {
2970
2976
  val: {
2971
- type: J.number,
2977
+ type: q.number,
2972
2978
  tokens: n,
2973
2979
  location: r,
2974
- parsedOptions: this.shouldParseSkeletons ? an(n) : {}
2980
+ parsedOptions: this.shouldParseSkeletons ? hn(n) : {}
2975
2981
  },
2976
2982
  err: null
2977
2983
  };
2978
2984
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2979
- for (var o, s = !1, u = [], h = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
2985
+ for (var s, o = !1, u = [], h = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
2980
2986
  if (a.length === 0) {
2981
2987
  var c = this.clonePosition();
2982
2988
  if (r !== "select" && this.bumpIf("=")) {
@@ -2989,7 +2995,7 @@ var Tn = (
2989
2995
  }
2990
2996
  if (h.has(a))
2991
2997
  return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2992
- a === "other" && (s = !0), this.bumpSpace();
2998
+ a === "other" && (o = !0), this.bumpSpace();
2993
2999
  var p = this.clonePosition();
2994
3000
  if (!this.bumpIf("{"))
2995
3001
  return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
@@ -3005,21 +3011,21 @@ var Tn = (
3005
3011
  value: d.val,
3006
3012
  location: _(p, this.clonePosition())
3007
3013
  }
3008
- ]), h.add(a), this.bumpSpace(), o = this.parseIdentifierIfPossible(), a = o.value, l = o.location;
3014
+ ]), h.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
3009
3015
  }
3010
- return u.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
3016
+ 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 };
3011
3017
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3012
3018
  var n = 1, i = this.clonePosition();
3013
3019
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3014
- for (var o = !1, s = 0; !this.isEOF(); ) {
3020
+ for (var s = !1, o = 0; !this.isEOF(); ) {
3015
3021
  var u = this.char();
3016
3022
  if (u >= 48 && u <= 57)
3017
- o = !0, s = s * 10 + (u - 48), this.bump();
3023
+ s = !0, o = o * 10 + (u - 48), this.bump();
3018
3024
  else
3019
3025
  break;
3020
3026
  }
3021
3027
  var h = _(i, this.clonePosition());
3022
- return o ? (s *= n, _n(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3028
+ return s ? (o *= n, xn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
3023
3029
  }, e.prototype.offset = function() {
3024
3030
  return this.position.offset;
3025
3031
  }, e.prototype.isEOF = function() {
@@ -3034,7 +3040,7 @@ var Tn = (
3034
3040
  var t = this.position.offset;
3035
3041
  if (t >= this.message.length)
3036
3042
  throw Error("out of bound");
3037
- var r = Ft(this.message, t);
3043
+ var r = kt(this.message, t);
3038
3044
  if (r === void 0)
3039
3045
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3040
3046
  return r;
@@ -3053,7 +3059,7 @@ var Tn = (
3053
3059
  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);
3054
3060
  }
3055
3061
  }, e.prototype.bumpIf = function(t) {
3056
- if (ut(this.message, t, this.offset())) {
3062
+ if (lt(this.message, t, this.offset())) {
3057
3063
  for (var r = 0; r < t.length; r++)
3058
3064
  this.bump();
3059
3065
  return !0;
@@ -3075,7 +3081,7 @@ var Tn = (
3075
3081
  break;
3076
3082
  }
3077
3083
  }, e.prototype.bumpSpace = function() {
3078
- for (; !this.isEOF() && kt(this.char()); )
3084
+ for (; !this.isEOF() && Xt(this.char()); )
3079
3085
  this.bump();
3080
3086
  }, e.prototype.peek = function() {
3081
3087
  if (this.isEOF())
@@ -3085,204 +3091,204 @@ var Tn = (
3085
3091
  }, e;
3086
3092
  }()
3087
3093
  );
3088
- function Fe(e) {
3094
+ function ke(e) {
3089
3095
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3090
3096
  }
3091
- function Cn(e) {
3092
- return Fe(e) || e === 47;
3097
+ function Sn(e) {
3098
+ return ke(e) || e === 47;
3093
3099
  }
3094
- function Hn(e) {
3100
+ function An(e) {
3095
3101
  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;
3096
3102
  }
3097
- function kt(e) {
3103
+ function Xt(e) {
3098
3104
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3099
3105
  }
3100
- function An(e) {
3106
+ function Bn(e) {
3101
3107
  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;
3102
3108
  }
3103
- function je(e) {
3109
+ function Ve(e) {
3104
3110
  e.forEach(function(t) {
3105
- if (delete t.location, Lt(t) || It(t))
3111
+ if (delete t.location, Mt(t) || $t(t))
3106
3112
  for (var r in t.options)
3107
- delete t.options[r].location, je(t.options[r].value);
3113
+ delete t.options[r].location, Ve(t.options[r].value);
3108
3114
  else
3109
- Ot(t) && $t(t.style) || (Pt(t) || Nt(t)) && Re(t.style) ? delete t.style.location : Mt(t) && je(t.children);
3115
+ Nt(t) && Ut(t.style) || (Lt(t) || It(t)) && Ge(t.style) ? delete t.style.location : Rt(t) && Ve(t.children);
3110
3116
  });
3111
3117
  }
3112
- function Bn(e, t) {
3113
- t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3114
- var r = new Tn(e, t).parse();
3118
+ function On(e, t) {
3119
+ t === void 0 && (t = {}), t = _e({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3120
+ var r = new Hn(e, t).parse();
3115
3121
  if (r.err) {
3116
3122
  var n = SyntaxError(y[r.err.kind]);
3117
3123
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3118
3124
  }
3119
- return t != null && t.captureLocation || je(r.val), r.val;
3125
+ return t != null && t.captureLocation || Ve(r.val), r.val;
3120
3126
  }
3121
- var q;
3127
+ var Y;
3122
3128
  (function(e) {
3123
3129
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3124
- })(q || (q = {}));
3125
- var ve = (
3130
+ })(Y || (Y = {}));
3131
+ var Ce = (
3126
3132
  /** @class */
3127
3133
  function(e) {
3128
- Ee(t, e);
3134
+ Te(t, e);
3129
3135
  function t(r, n, i) {
3130
- var o = e.call(this, r) || this;
3131
- return o.code = n, o.originalMessage = i, o;
3136
+ var s = e.call(this, r) || this;
3137
+ return s.code = n, s.originalMessage = i, s;
3132
3138
  }
3133
3139
  return t.prototype.toString = function() {
3134
3140
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3135
3141
  }, t;
3136
3142
  }(Error)
3137
- ), ft = (
3143
+ ), gt = (
3138
3144
  /** @class */
3139
3145
  function(e) {
3140
- Ee(t, e);
3141
- function t(r, n, i, o) {
3142
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, o) || this;
3146
+ Te(t, e);
3147
+ function t(r, n, i, s) {
3148
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, s) || this;
3143
3149
  }
3144
3150
  return t;
3145
- }(ve)
3146
- ), Sn = (
3151
+ }(Ce)
3152
+ ), wn = (
3147
3153
  /** @class */
3148
3154
  function(e) {
3149
- Ee(t, e);
3155
+ Te(t, e);
3150
3156
  function t(r, n, i) {
3151
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
3157
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
3152
3158
  }
3153
3159
  return t;
3154
- }(ve)
3155
- ), wn = (
3160
+ }(Ce)
3161
+ ), Pn = (
3156
3162
  /** @class */
3157
3163
  function(e) {
3158
- Ee(t, e);
3164
+ Te(t, e);
3159
3165
  function t(r, n) {
3160
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
3166
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
3161
3167
  }
3162
3168
  return t;
3163
- }(ve)
3164
- ), w;
3169
+ }(Ce)
3170
+ ), O;
3165
3171
  (function(e) {
3166
3172
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3167
- })(w || (w = {}));
3168
- function On(e) {
3173
+ })(O || (O = {}));
3174
+ function Nn(e) {
3169
3175
  return e.length < 2 ? e : e.reduce(function(t, r) {
3170
3176
  var n = t[t.length - 1];
3171
- return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
3177
+ return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
3172
3178
  }, []);
3173
3179
  }
3174
- function Pn(e) {
3180
+ function Ln(e) {
3175
3181
  return typeof e == "function";
3176
3182
  }
3177
- function pe(e, t, r, n, i, o, s) {
3178
- if (e.length === 1 && it(e[0]))
3183
+ function de(e, t, r, n, i, s, o) {
3184
+ if (e.length === 1 && ot(e[0]))
3179
3185
  return [
3180
3186
  {
3181
- type: w.literal,
3187
+ type: O.literal,
3182
3188
  value: e[0].value
3183
3189
  }
3184
3190
  ];
3185
3191
  for (var u = [], h = 0, a = e; h < a.length; h++) {
3186
3192
  var l = a[h];
3187
- if (it(l)) {
3193
+ if (ot(l)) {
3188
3194
  u.push({
3189
- type: w.literal,
3195
+ type: O.literal,
3190
3196
  value: l.value
3191
3197
  });
3192
3198
  continue;
3193
3199
  }
3194
- if (Yr(l)) {
3195
- typeof o == "number" && u.push({
3196
- type: w.literal,
3197
- value: r.getNumberFormat(t).format(o)
3200
+ if (en(l)) {
3201
+ typeof s == "number" && u.push({
3202
+ type: O.literal,
3203
+ value: r.getNumberFormat(t).format(s)
3198
3204
  });
3199
3205
  continue;
3200
3206
  }
3201
3207
  var c = l.value;
3202
3208
  if (!(i && c in i))
3203
- throw new wn(c, s);
3209
+ throw new Pn(c, o);
3204
3210
  var f = i[c];
3205
- if (qr(l)) {
3211
+ if (Kr(l)) {
3206
3212
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
3207
- type: typeof f == "string" ? w.literal : w.object,
3213
+ type: typeof f == "string" ? O.literal : O.object,
3208
3214
  value: f
3209
3215
  });
3210
3216
  continue;
3211
3217
  }
3212
- if (Pt(l)) {
3213
- var p = typeof l.style == "string" ? n.date[l.style] : Re(l.style) ? l.style.parsedOptions : void 0;
3218
+ if (Lt(l)) {
3219
+ var p = typeof l.style == "string" ? n.date[l.style] : Ge(l.style) ? l.style.parsedOptions : void 0;
3214
3220
  u.push({
3215
- type: w.literal,
3221
+ type: O.literal,
3216
3222
  value: r.getDateTimeFormat(t, p).format(f)
3217
3223
  });
3218
3224
  continue;
3219
3225
  }
3220
- if (Nt(l)) {
3221
- var p = typeof l.style == "string" ? n.time[l.style] : Re(l.style) ? l.style.parsedOptions : n.time.medium;
3226
+ if (It(l)) {
3227
+ var p = typeof l.style == "string" ? n.time[l.style] : Ge(l.style) ? l.style.parsedOptions : n.time.medium;
3222
3228
  u.push({
3223
- type: w.literal,
3229
+ type: O.literal,
3224
3230
  value: r.getDateTimeFormat(t, p).format(f)
3225
3231
  });
3226
3232
  continue;
3227
3233
  }
3228
- if (Ot(l)) {
3229
- var p = typeof l.style == "string" ? n.number[l.style] : $t(l.style) ? l.style.parsedOptions : void 0;
3234
+ if (Nt(l)) {
3235
+ var p = typeof l.style == "string" ? n.number[l.style] : Ut(l.style) ? l.style.parsedOptions : void 0;
3230
3236
  p && p.scale && (f = f * (p.scale || 1)), u.push({
3231
- type: w.literal,
3237
+ type: O.literal,
3232
3238
  value: r.getNumberFormat(t, p).format(f)
3233
3239
  });
3234
3240
  continue;
3235
3241
  }
3236
- if (Mt(l)) {
3242
+ if (Rt(l)) {
3237
3243
  var d = l.children, g = l.value, E = i[g];
3238
- if (!Pn(E))
3239
- throw new Sn(g, "function", s);
3240
- var m = pe(d, t, r, n, i, o), C = E(m.map(function(B) {
3241
- return B.value;
3244
+ if (!Ln(E))
3245
+ throw new wn(g, "function", o);
3246
+ var m = de(d, t, r, n, i, s), T = E(m.map(function(A) {
3247
+ return A.value;
3242
3248
  }));
3243
- Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(B) {
3249
+ Array.isArray(T) || (T = [T]), u.push.apply(u, T.map(function(A) {
3244
3250
  return {
3245
- type: typeof B == "string" ? w.literal : w.object,
3246
- value: B
3251
+ type: typeof A == "string" ? O.literal : O.object,
3252
+ value: A
3247
3253
  };
3248
3254
  }));
3249
3255
  }
3250
- if (Lt(l)) {
3251
- var A = l.options[f] || l.options.other;
3252
- if (!A)
3253
- throw new ft(l.value, f, Object.keys(l.options), s);
3254
- u.push.apply(u, pe(A.value, t, r, n, i));
3256
+ if (Mt(l)) {
3257
+ var S = l.options[f] || l.options.other;
3258
+ if (!S)
3259
+ throw new gt(l.value, f, Object.keys(l.options), o);
3260
+ u.push.apply(u, de(S.value, t, r, n, i));
3255
3261
  continue;
3256
3262
  }
3257
- if (It(l)) {
3258
- var A = l.options["=".concat(f)];
3259
- if (!A) {
3263
+ if ($t(l)) {
3264
+ var S = l.options["=".concat(f)];
3265
+ if (!S) {
3260
3266
  if (!Intl.PluralRules)
3261
- throw new ve(`Intl.PluralRules is not available in this environment.
3267
+ throw new Ce(`Intl.PluralRules is not available in this environment.
3262
3268
  Try polyfilling it using "@formatjs/intl-pluralrules"
3263
- `, q.MISSING_INTL_API, s);
3264
- var O = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3265
- A = l.options[O] || l.options.other;
3269
+ `, Y.MISSING_INTL_API, o);
3270
+ var w = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3271
+ S = l.options[w] || l.options.other;
3266
3272
  }
3267
- if (!A)
3268
- throw new ft(l.value, f, Object.keys(l.options), s);
3269
- u.push.apply(u, pe(A.value, t, r, n, i, f - (l.offset || 0)));
3273
+ if (!S)
3274
+ throw new gt(l.value, f, Object.keys(l.options), o);
3275
+ u.push.apply(u, de(S.value, t, r, n, i, f - (l.offset || 0)));
3270
3276
  continue;
3271
3277
  }
3272
3278
  }
3273
- return On(u);
3279
+ return Nn(u);
3274
3280
  }
3275
- function Nn(e, t) {
3276
- return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3277
- return r[n] = x(x({}, e[n]), t[n] || {}), r;
3281
+ function In(e, t) {
3282
+ return t ? U(U(U({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3283
+ return r[n] = U(U({}, e[n]), t[n] || {}), r;
3278
3284
  }, {})) : e;
3279
3285
  }
3280
- function Ln(e, t) {
3286
+ function Mn(e, t) {
3281
3287
  return t ? Object.keys(e).reduce(function(r, n) {
3282
- return r[n] = Nn(e[n], t[n]), r;
3283
- }, x({}, e)) : e;
3288
+ return r[n] = In(e[n], t[n]), r;
3289
+ }, U({}, e)) : e;
3284
3290
  }
3285
- function Pe(e) {
3291
+ function Le(e) {
3286
3292
  return {
3287
3293
  create: function() {
3288
3294
  return {
@@ -3296,77 +3302,77 @@ function Pe(e) {
3296
3302
  }
3297
3303
  };
3298
3304
  }
3299
- function In(e) {
3305
+ function $n(e) {
3300
3306
  return e === void 0 && (e = {
3301
3307
  number: {},
3302
3308
  dateTime: {},
3303
3309
  pluralRules: {}
3304
3310
  }), {
3305
- getNumberFormat: Se(function() {
3311
+ getNumberFormat: we(function() {
3306
3312
  for (var t, r = [], n = 0; n < arguments.length; n++)
3307
3313
  r[n] = arguments[n];
3308
- return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
3314
+ return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
3309
3315
  }, {
3310
- cache: Pe(e.number),
3311
- strategy: we.variadic
3316
+ cache: Le(e.number),
3317
+ strategy: Pe.variadic
3312
3318
  }),
3313
- getDateTimeFormat: Se(function() {
3319
+ getDateTimeFormat: we(function() {
3314
3320
  for (var t, r = [], n = 0; n < arguments.length; n++)
3315
3321
  r[n] = arguments[n];
3316
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
3322
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
3317
3323
  }, {
3318
- cache: Pe(e.dateTime),
3319
- strategy: we.variadic
3324
+ cache: Le(e.dateTime),
3325
+ strategy: Pe.variadic
3320
3326
  }),
3321
- getPluralRules: Se(function() {
3327
+ getPluralRules: we(function() {
3322
3328
  for (var t, r = [], n = 0; n < arguments.length; n++)
3323
3329
  r[n] = arguments[n];
3324
- return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
3330
+ return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
3325
3331
  }, {
3326
- cache: Pe(e.pluralRules),
3327
- strategy: we.variadic
3332
+ cache: Le(e.pluralRules),
3333
+ strategy: Pe.variadic
3328
3334
  })
3329
3335
  };
3330
3336
  }
3331
- var Mn = (
3337
+ var Rn = (
3332
3338
  /** @class */
3333
3339
  function() {
3334
3340
  function e(t, r, n, i) {
3335
3341
  r === void 0 && (r = e.defaultLocale);
3336
- var o = this;
3342
+ var s = this;
3337
3343
  if (this.formatterCache = {
3338
3344
  number: {},
3339
3345
  dateTime: {},
3340
3346
  pluralRules: {}
3341
3347
  }, this.format = function(h) {
3342
- var a = o.formatToParts(h);
3348
+ var a = s.formatToParts(h);
3343
3349
  if (a.length === 1)
3344
3350
  return a[0].value;
3345
3351
  var l = a.reduce(function(c, f) {
3346
- return !c.length || f.type !== w.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3352
+ return !c.length || f.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3347
3353
  }, []);
3348
3354
  return l.length <= 1 ? l[0] || "" : l;
3349
3355
  }, this.formatToParts = function(h) {
3350
- return pe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3356
+ return de(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
3351
3357
  }, this.resolvedOptions = function() {
3352
3358
  var h;
3353
3359
  return {
3354
- locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3360
+ locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3355
3361
  };
3356
3362
  }, this.getAst = function() {
3357
- return o.ast;
3363
+ return s.ast;
3358
3364
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3359
3365
  if (this.message = t, !e.__parse)
3360
3366
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3361
- var s = i || {};
3362
- s.formatters;
3363
- var u = kr(s, ["formatters"]);
3364
- this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
3367
+ var o = i || {};
3368
+ o.formatters;
3369
+ var u = Xr(o, ["formatters"]);
3370
+ this.ast = e.__parse(t, U(U({}, u), { locale: this.resolvedLocale }));
3365
3371
  } else
3366
3372
  this.ast = t;
3367
3373
  if (!Array.isArray(this.ast))
3368
3374
  throw new TypeError("A message must be provided as a String or AST.");
3369
- this.formats = Ln(e.formats, n), this.formatters = i && i.formatters || In(this.formatterCache);
3375
+ this.formats = Mn(e.formats, n), this.formatters = i && i.formatters || $n(this.formatterCache);
3370
3376
  }
3371
3377
  return Object.defineProperty(e, "defaultLocale", {
3372
3378
  get: function() {
@@ -3379,7 +3385,7 @@ var Mn = (
3379
3385
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3380
3386
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3381
3387
  }
3382
- }, e.__parse = Bn, e.formats = {
3388
+ }, e.__parse = On, e.formats = {
3383
3389
  number: {
3384
3390
  integer: {
3385
3391
  maximumFractionDigits: 0
@@ -3440,7 +3446,7 @@ var Mn = (
3440
3446
  }, e;
3441
3447
  }()
3442
3448
  );
3443
- function $n(e, t) {
3449
+ function Un(e, t) {
3444
3450
  if (t == null)
3445
3451
  return;
3446
3452
  if (t in e)
@@ -3450,9 +3456,9 @@ function $n(e, t) {
3450
3456
  for (let i = 0; i < r.length; i++)
3451
3457
  if (typeof n == "object") {
3452
3458
  if (i > 0) {
3453
- const o = r.slice(i, r.length).join(".");
3454
- if (o in n) {
3455
- n = n[o];
3459
+ const s = r.slice(i, r.length).join(".");
3460
+ if (s in n) {
3461
+ n = n[s];
3456
3462
  break;
3457
3463
  }
3458
3464
  }
@@ -3461,92 +3467,92 @@ function $n(e, t) {
3461
3467
  n = void 0;
3462
3468
  return n;
3463
3469
  }
3464
- const D = {}, Rn = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), Vt = (e, t) => {
3470
+ const F = {}, Gn = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), zt = (e, t) => {
3465
3471
  if (t == null)
3466
3472
  return;
3467
- if (t in D && e in D[t])
3468
- return D[t][e];
3469
- const r = Te(t);
3473
+ if (t in F && e in F[t])
3474
+ return F[t][e];
3475
+ const r = He(t);
3470
3476
  for (let n = 0; n < r.length; n++) {
3471
- const i = r[n], o = Gn(i, e);
3472
- if (o)
3473
- return Rn(e, t, o);
3477
+ const i = r[n], s = Fn(i, e);
3478
+ if (s)
3479
+ return Gn(e, t, s);
3474
3480
  }
3475
3481
  };
3476
- let ze;
3477
- const he = xe({});
3478
- function Un(e) {
3479
- return ze[e] || null;
3482
+ let Ze;
3483
+ const le = ve({});
3484
+ function Dn(e) {
3485
+ return Ze[e] || null;
3480
3486
  }
3481
- function Xt(e) {
3482
- return e in ze;
3487
+ function Wt(e) {
3488
+ return e in Ze;
3483
3489
  }
3484
- function Gn(e, t) {
3485
- if (!Xt(e))
3490
+ function Fn(e, t) {
3491
+ if (!Wt(e))
3486
3492
  return null;
3487
- const r = Un(e);
3488
- return $n(r, t);
3493
+ const r = Dn(e);
3494
+ return Un(r, t);
3489
3495
  }
3490
- function Dn(e) {
3496
+ function jn(e) {
3491
3497
  if (e == null)
3492
3498
  return;
3493
- const t = Te(e);
3499
+ const t = He(e);
3494
3500
  for (let r = 0; r < t.length; r++) {
3495
3501
  const n = t[r];
3496
- if (Xt(n))
3502
+ if (Wt(n))
3497
3503
  return n;
3498
3504
  }
3499
3505
  }
3500
- function zt(e, ...t) {
3501
- delete D[e], he.update((r) => (r[e] = jr.all([r[e] || {}, ...t]), r));
3506
+ function Zt(e, ...t) {
3507
+ delete F[e], le.update((r) => (r[e] = Vr.all([r[e] || {}, ...t]), r));
3502
3508
  }
3503
- ee(
3504
- [he],
3509
+ te(
3510
+ [le],
3505
3511
  ([e]) => Object.keys(e)
3506
3512
  );
3507
- he.subscribe((e) => ze = e);
3508
- const de = {};
3509
- function Fn(e, t) {
3510
- de[e].delete(t), de[e].size === 0 && delete de[e];
3513
+ le.subscribe((e) => Ze = e);
3514
+ const be = {};
3515
+ function kn(e, t) {
3516
+ be[e].delete(t), be[e].size === 0 && delete be[e];
3511
3517
  }
3512
- function Wt(e) {
3513
- return de[e];
3518
+ function Qt(e) {
3519
+ return be[e];
3514
3520
  }
3515
- function jn(e) {
3516
- return Te(e).map((t) => {
3517
- const r = Wt(t);
3521
+ function Vn(e) {
3522
+ return He(e).map((t) => {
3523
+ const r = Qt(t);
3518
3524
  return [t, r ? [...r] : []];
3519
3525
  }).filter(([, t]) => t.length > 0);
3520
3526
  }
3521
- function ke(e) {
3522
- return e == null ? !1 : Te(e).some(
3527
+ function Xe(e) {
3528
+ return e == null ? !1 : He(e).some(
3523
3529
  (t) => {
3524
3530
  var r;
3525
- return (r = Wt(t)) == null ? void 0 : r.size;
3531
+ return (r = Qt(t)) == null ? void 0 : r.size;
3526
3532
  }
3527
3533
  );
3528
3534
  }
3529
- function kn(e, t) {
3535
+ function Xn(e, t) {
3530
3536
  return Promise.all(
3531
- t.map((n) => (Fn(e, n), n().then((i) => i.default || i)))
3532
- ).then((n) => zt(e, ...n));
3533
- }
3534
- const ne = {};
3535
- function Zt(e) {
3536
- if (!ke(e))
3537
- return e in ne ? ne[e] : Promise.resolve();
3538
- const t = jn(e);
3539
- return ne[e] = Promise.all(
3537
+ t.map((n) => (kn(e, n), n().then((i) => i.default || i)))
3538
+ ).then((n) => Zt(e, ...n));
3539
+ }
3540
+ const ie = {};
3541
+ function Jt(e) {
3542
+ if (!Xe(e))
3543
+ return e in ie ? ie[e] : Promise.resolve();
3544
+ const t = Vn(e);
3545
+ return ie[e] = Promise.all(
3540
3546
  t.map(
3541
- ([r, n]) => kn(r, n)
3547
+ ([r, n]) => Xn(r, n)
3542
3548
  )
3543
3549
  ).then(() => {
3544
- if (ke(e))
3545
- return Zt(e);
3546
- delete ne[e];
3547
- }), ne[e];
3550
+ if (Xe(e))
3551
+ return Jt(e);
3552
+ delete ie[e];
3553
+ }), ie[e];
3548
3554
  }
3549
- const Vn = {
3555
+ const zn = {
3550
3556
  number: {
3551
3557
  scientific: { notation: "scientific" },
3552
3558
  engineering: { notation: "engineering" },
@@ -3575,150 +3581,150 @@ const Vn = {
3575
3581
  timeZoneName: "short"
3576
3582
  }
3577
3583
  }
3578
- }, Xn = {
3584
+ }, Wn = {
3579
3585
  fallbackLocale: null,
3580
3586
  loadingDelay: 200,
3581
- formats: Vn,
3587
+ formats: zn,
3582
3588
  warnOnMissingMessages: !0,
3583
3589
  handleMissingMessage: void 0,
3584
3590
  ignoreTag: !0
3585
- }, zn = Xn;
3586
- function Y() {
3587
- return zn;
3591
+ }, Zn = Wn;
3592
+ function K() {
3593
+ return Zn;
3588
3594
  }
3589
- const Ne = xe(!1);
3590
- var Wn = Object.defineProperty, Zn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, ct = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, qn = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yn = (e, t) => {
3595
+ const Ie = ve(!1);
3596
+ var Qn = Object.defineProperty, Jn = Object.defineProperties, qn = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, Yn = Object.prototype.hasOwnProperty, Kn = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? Qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ei = (e, t) => {
3591
3597
  for (var r in t || (t = {}))
3592
- Jn.call(t, r) && gt(e, r, t[r]);
3593
- if (ct)
3594
- for (var r of ct(t))
3595
- qn.call(t, r) && gt(e, r, t[r]);
3598
+ Yn.call(t, r) && pt(e, r, t[r]);
3599
+ if (mt)
3600
+ for (var r of mt(t))
3601
+ Kn.call(t, r) && pt(e, r, t[r]);
3596
3602
  return e;
3597
- }, Kn = (e, t) => Zn(e, Qn(t));
3598
- let Ve;
3599
- const ye = xe(null);
3600
- function mt(e) {
3603
+ }, ti = (e, t) => Jn(e, qn(t));
3604
+ let ze;
3605
+ const Ee = ve(null);
3606
+ function dt(e) {
3601
3607
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3602
3608
  }
3603
- function Te(e, t = Y().fallbackLocale) {
3604
- const r = mt(e);
3605
- return t ? [.../* @__PURE__ */ new Set([...r, ...mt(t)])] : r;
3609
+ function He(e, t = K().fallbackLocale) {
3610
+ const r = dt(e);
3611
+ return t ? [.../* @__PURE__ */ new Set([...r, ...dt(t)])] : r;
3606
3612
  }
3607
- function V() {
3608
- return Ve != null ? Ve : void 0;
3613
+ function X() {
3614
+ return ze != null ? ze : void 0;
3609
3615
  }
3610
- ye.subscribe((e) => {
3611
- Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3616
+ Ee.subscribe((e) => {
3617
+ ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3612
3618
  });
3613
- const ei = (e) => {
3614
- if (e && Dn(e) && ke(e)) {
3615
- const { loadingDelay: t } = Y();
3619
+ const ri = (e) => {
3620
+ if (e && jn(e) && Xe(e)) {
3621
+ const { loadingDelay: t } = K();
3616
3622
  let r;
3617
- return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
3618
- () => Ne.set(!0),
3623
+ return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
3624
+ () => Ie.set(!0),
3619
3625
  t
3620
- ) : Ne.set(!0), Zt(e).then(() => {
3621
- ye.set(e);
3626
+ ) : Ie.set(!0), Jt(e).then(() => {
3627
+ Ee.set(e);
3622
3628
  }).finally(() => {
3623
- clearTimeout(r), Ne.set(!1);
3629
+ clearTimeout(r), Ie.set(!1);
3624
3630
  });
3625
3631
  }
3626
- return ye.set(e);
3627
- }, te = Kn(Yn({}, ye), {
3628
- set: ei
3629
- }), Ce = (e) => {
3632
+ return Ee.set(e);
3633
+ }, re = ti(ei({}, Ee), {
3634
+ set: ri
3635
+ }), Se = (e) => {
3630
3636
  const t = /* @__PURE__ */ Object.create(null);
3631
3637
  return (n) => {
3632
3638
  const i = JSON.stringify(n);
3633
3639
  return i in t ? t[i] : t[i] = e(n);
3634
3640
  };
3635
3641
  };
3636
- var ti = Object.defineProperty, _e = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
3642
+ var ni = Object.defineProperty, xe = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
3637
3643
  for (var r in t || (t = {}))
3638
- Qt.call(t, r) && pt(e, r, t[r]);
3639
- if (_e)
3640
- for (var r of _e(t))
3641
- Jt.call(t, r) && pt(e, r, t[r]);
3644
+ qt.call(t, r) && bt(e, r, t[r]);
3645
+ if (xe)
3646
+ for (var r of xe(t))
3647
+ Yt.call(t, r) && bt(e, r, t[r]);
3642
3648
  return e;
3643
- }, re = (e, t) => {
3649
+ }, ne = (e, t) => {
3644
3650
  var r = {};
3645
3651
  for (var n in e)
3646
- Qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3647
- if (e != null && _e)
3648
- for (var n of _e(e))
3649
- t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
3652
+ qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3653
+ if (e != null && xe)
3654
+ for (var n of xe(e))
3655
+ t.indexOf(n) < 0 && Yt.call(e, n) && (r[n] = e[n]);
3650
3656
  return r;
3651
3657
  };
3652
- const ae = (e, t) => {
3653
- const { formats: r } = Y();
3658
+ const ue = (e, t) => {
3659
+ const { formats: r } = K();
3654
3660
  if (e in r && t in r[e])
3655
3661
  return r[e][t];
3656
3662
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3657
- }, ri = Ce(
3663
+ }, ii = Se(
3658
3664
  (e) => {
3659
- var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
3665
+ var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
3660
3666
  if (r == null)
3661
3667
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3662
- return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
3668
+ return n && (i = ue("number", n)), new Intl.NumberFormat(r, i);
3663
3669
  }
3664
- ), ni = Ce(
3670
+ ), si = Se(
3665
3671
  (e) => {
3666
- var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
3672
+ var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
3667
3673
  if (r == null)
3668
3674
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3669
- return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
3675
+ return n ? i = ue("date", n) : Object.keys(i).length === 0 && (i = ue("date", "short")), new Intl.DateTimeFormat(r, i);
3670
3676
  }
3671
- ), ii = Ce(
3677
+ ), oi = Se(
3672
3678
  (e) => {
3673
- var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
3679
+ var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
3674
3680
  if (r == null)
3675
3681
  throw new Error(
3676
3682
  '[svelte-i18n] A "locale" must be set to format time values'
3677
3683
  );
3678
- return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
3684
+ return n ? i = ue("time", n) : Object.keys(i).length === 0 && (i = ue("time", "short")), new Intl.DateTimeFormat(r, i);
3679
3685
  }
3680
- ), oi = (e = {}) => {
3686
+ ), ai = (e = {}) => {
3681
3687
  var t = e, {
3682
- locale: r = V()
3683
- } = t, n = re(t, [
3688
+ locale: r = X()
3689
+ } = t, n = ne(t, [
3684
3690
  "locale"
3685
3691
  ]);
3686
- return ri(We({ locale: r }, n));
3687
- }, si = (e = {}) => {
3692
+ return ii(Qe({ locale: r }, n));
3693
+ }, ui = (e = {}) => {
3688
3694
  var t = e, {
3689
- locale: r = V()
3690
- } = t, n = re(t, [
3695
+ locale: r = X()
3696
+ } = t, n = ne(t, [
3691
3697
  "locale"
3692
3698
  ]);
3693
- return ni(We({ locale: r }, n));
3694
- }, ai = (e = {}) => {
3699
+ return si(Qe({ locale: r }, n));
3700
+ }, hi = (e = {}) => {
3695
3701
  var t = e, {
3696
- locale: r = V()
3697
- } = t, n = re(t, [
3702
+ locale: r = X()
3703
+ } = t, n = ne(t, [
3698
3704
  "locale"
3699
3705
  ]);
3700
- return ii(We({ locale: r }, n));
3701
- }, ui = Ce(
3706
+ return oi(Qe({ locale: r }, n));
3707
+ }, li = Se(
3702
3708
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3703
- (e, t = V()) => new Mn(e, t, Y().formats, {
3704
- ignoreTag: Y().ignoreTag
3709
+ (e, t = X()) => new Rn(e, t, K().formats, {
3710
+ ignoreTag: K().ignoreTag
3705
3711
  })
3706
- ), hi = (e, t = {}) => {
3707
- var r, n, i, o;
3708
- let s = t;
3709
- typeof e == "object" && (s = e, e = s.id);
3712
+ ), fi = (e, t = {}) => {
3713
+ var r, n, i, s;
3714
+ let o = t;
3715
+ typeof e == "object" && (o = e, e = o.id);
3710
3716
  const {
3711
3717
  values: u,
3712
- locale: h = V(),
3718
+ locale: h = X(),
3713
3719
  default: a
3714
- } = s;
3720
+ } = o;
3715
3721
  if (h == null)
3716
3722
  throw new Error(
3717
3723
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3718
3724
  );
3719
- let l = Vt(e, h);
3725
+ let l = zt(e, h);
3720
3726
  if (!l)
3721
- l = (o = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? o : e;
3727
+ 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;
3722
3728
  else if (typeof l != "string")
3723
3729
  return console.warn(
3724
3730
  `[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.`
@@ -3727,7 +3733,7 @@ const ae = (e, t) => {
3727
3733
  return l;
3728
3734
  let c = l;
3729
3735
  try {
3730
- c = ui(l, h).format(u);
3736
+ c = li(l, h).format(u);
3731
3737
  } catch (f) {
3732
3738
  f instanceof Error && console.warn(
3733
3739
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3735,18 +3741,18 @@ const ae = (e, t) => {
3735
3741
  );
3736
3742
  }
3737
3743
  return c;
3738
- }, li = (e, t) => ai(t).format(e), fi = (e, t) => si(t).format(e), ci = (e, t) => oi(t).format(e), gi = (e, t = V()) => Vt(e, t), mi = ee([te, he], () => hi);
3739
- ee([te], () => li);
3740
- ee([te], () => fi);
3741
- ee([te], () => ci);
3742
- ee([te, he], () => gi);
3743
- function dt(e, t) {
3744
- zt(e, t);
3745
- }
3746
- function pi(e) {
3747
- te.set(e);
3748
- }
3749
- const bt = {
3744
+ }, 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()) => zt(e, t), di = te([re, le], () => fi);
3745
+ te([re], () => ci);
3746
+ te([re], () => gi);
3747
+ te([re], () => mi);
3748
+ te([re, le], () => pi);
3749
+ function yt(e, t) {
3750
+ Zt(e, t);
3751
+ }
3752
+ function bi(e) {
3753
+ re.set(e);
3754
+ }
3755
+ const _t = {
3750
3756
  en: {
3751
3757
  topCategories: "Top Categories",
3752
3758
  otherCategories: "Other Categories",
@@ -3856,13 +3862,13 @@ const bt = {
3856
3862
  games: "games"
3857
3863
  }
3858
3864
  };
3859
- function di(e, t) {
3865
+ function yi(e, t) {
3860
3866
  if (e) {
3861
3867
  const r = document.createElement("style");
3862
3868
  r.innerHTML = t, e.appendChild(r);
3863
3869
  }
3864
3870
  }
3865
- function bi(e, t) {
3871
+ function _i(e, t) {
3866
3872
  const r = new URL(t);
3867
3873
  fetch(r.href).then((n) => n.text()).then((n) => {
3868
3874
  const i = document.createElement("style");
@@ -3871,7 +3877,7 @@ function bi(e, t) {
3871
3877
  console.error("There was an error while trying to load client styling from URL", n);
3872
3878
  });
3873
3879
  }
3874
- function yi(e, t, r) {
3880
+ function Ei(e, t, r) {
3875
3881
  if (window.emMessageBus) {
3876
3882
  const n = document.createElement("style");
3877
3883
  window.emMessageBus.subscribe(t, (i) => {
@@ -3879,67 +3885,67 @@ function yi(e, t, r) {
3879
3885
  });
3880
3886
  }
3881
3887
  }
3882
- function _i(e) {
3883
- sr(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.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}");
3888
+ function xi(e) {
3889
+ ur(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.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}");
3884
3890
  }
3885
- function yt(e, t, r) {
3891
+ function Et(e, t, r) {
3886
3892
  const n = e.slice();
3887
3893
  return n[23] = t[r], n;
3888
3894
  }
3889
- function _t(e, t, r) {
3895
+ function xt(e, t, r) {
3890
3896
  const n = e.slice();
3891
3897
  return n[23] = t[r], n;
3892
3898
  }
3893
- function xi(e) {
3899
+ function vi(e) {
3894
3900
  let t, r, n = (
3895
3901
  /*$_*/
3896
3902
  e[5]("topCategories") + ""
3897
- ), i, o, s, u, h = (
3903
+ ), i, s, o, u, h = (
3898
3904
  /*$_*/
3899
3905
  e[5]("otherCategories") + ""
3900
- ), a, l, c = ce(
3906
+ ), a, l, c = ge(
3901
3907
  /*topCategories*/
3902
3908
  e[3]
3903
3909
  ), f = [];
3904
3910
  for (let g = 0; g < c.length; g += 1)
3905
- f[g] = xt(_t(e, c, g));
3906
- let p = ce(
3911
+ f[g] = vt(xt(e, c, g));
3912
+ let p = ge(
3907
3913
  /*otherCategories*/
3908
3914
  e[4]
3909
3915
  ), d = [];
3910
3916
  for (let g = 0; g < p.length; g += 1)
3911
- d[g] = Et(yt(e, p, g));
3917
+ d[g] = Tt(Et(e, p, g));
3912
3918
  return {
3913
3919
  c() {
3914
- t = S("div"), r = S("h4"), i = G(n), o = U();
3920
+ t = B("div"), r = B("h4"), i = D(n), s = G();
3915
3921
  for (let g = 0; g < f.length; g += 1)
3916
3922
  f[g].c();
3917
- s = U(), u = S("h4"), a = G(h), l = U();
3923
+ o = G(), u = B("h4"), a = D(h), l = G();
3918
3924
  for (let g = 0; g < d.length; g += 1)
3919
3925
  d[g].c();
3920
3926
  I(r, "class", "CategoryTitle"), I(u, "class", "CategoryTitle"), I(t, "class", "CasinoCategories");
3921
3927
  },
3922
3928
  m(g, E) {
3923
- K(g, t, E), v(t, r), v(r, i), v(t, o);
3929
+ ee(g, t, E), x(t, r), x(r, i), x(t, s);
3924
3930
  for (let m = 0; m < f.length; m += 1)
3925
3931
  f[m] && f[m].m(t, null);
3926
- v(t, s), v(t, u), v(u, a), v(t, l);
3932
+ x(t, o), x(t, u), x(u, a), x(t, l);
3927
3933
  for (let m = 0; m < d.length; m += 1)
3928
3934
  d[m] && d[m].m(t, null);
3929
3935
  },
3930
3936
  p(g, E) {
3931
3937
  if (E & /*$_*/
3932
3938
  32 && n !== (n = /*$_*/
3933
- g[5]("topCategories") + "") && F(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
3939
+ g[5]("topCategories") + "") && j(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
3934
3940
  105) {
3935
- c = ce(
3941
+ c = ge(
3936
3942
  /*topCategories*/
3937
3943
  g[3]
3938
3944
  );
3939
3945
  let m;
3940
3946
  for (m = 0; m < c.length; m += 1) {
3941
- const C = _t(g, c, m);
3942
- f[m] ? f[m].p(C, E) : (f[m] = xt(C), f[m].c(), f[m].m(t, s));
3947
+ const T = xt(g, c, m);
3948
+ f[m] ? f[m].p(T, E) : (f[m] = vt(T), f[m].c(), f[m].m(t, o));
3943
3949
  }
3944
3950
  for (; m < f.length; m += 1)
3945
3951
  f[m].d(1);
@@ -3947,16 +3953,16 @@ function xi(e) {
3947
3953
  }
3948
3954
  if (E & /*$_*/
3949
3955
  32 && h !== (h = /*$_*/
3950
- g[5]("otherCategories") + "") && F(a, h), E & /*activecategory, otherCategories, openGameCategory, $_*/
3956
+ g[5]("otherCategories") + "") && j(a, h), E & /*activecategory, otherCategories, openGameCategory, $_*/
3951
3957
  113) {
3952
- p = ce(
3958
+ p = ge(
3953
3959
  /*otherCategories*/
3954
3960
  g[4]
3955
3961
  );
3956
3962
  let m;
3957
3963
  for (m = 0; m < p.length; m += 1) {
3958
- const C = yt(g, p, m);
3959
- d[m] ? d[m].p(C, E) : (d[m] = Et(C), d[m].c(), d[m].m(t, null));
3964
+ const T = Et(g, p, m);
3965
+ d[m] ? d[m].p(T, E) : (d[m] = Tt(T), d[m].c(), d[m].m(t, null));
3960
3966
  }
3961
3967
  for (; m < d.length; m += 1)
3962
3968
  d[m].d(1);
@@ -3964,27 +3970,27 @@ function xi(e) {
3964
3970
  }
3965
3971
  },
3966
3972
  d(g) {
3967
- g && k(t), tt(f, g), tt(d, g);
3973
+ g && V(t), nt(f, g), nt(d, g);
3968
3974
  }
3969
3975
  };
3970
3976
  }
3971
- function Ei(e) {
3977
+ function Ti(e) {
3972
3978
  let t;
3973
3979
  return {
3974
3980
  c() {
3975
- t = S("p"), t.textContent = "Loading, please wait...", I(t, "class", "Message");
3981
+ t = B("p"), t.textContent = "Loading, please wait...", I(t, "class", "Message");
3976
3982
  },
3977
3983
  m(r, n) {
3978
- K(r, t, n);
3984
+ ee(r, t, n);
3979
3985
  },
3980
3986
  p: L,
3981
3987
  d(r) {
3982
- r && k(t);
3988
+ r && V(t);
3983
3989
  }
3984
3990
  };
3985
3991
  }
3986
- function xt(e) {
3987
- let t, r, n, i, o, s, u, h = (
3992
+ function vt(e) {
3993
+ let t, r, n, i, s, o, u, h = (
3988
3994
  /*category*/
3989
3995
  e[23].name + ""
3990
3996
  ), a, l, c, f = (
@@ -3993,8 +3999,8 @@ function xt(e) {
3993
3999
  ), p, d, g = (
3994
4000
  /*$_*/
3995
4001
  e[5]("games") + ""
3996
- ), E, m, C, A;
3997
- function O() {
4002
+ ), E, m, T, S;
4003
+ function w() {
3998
4004
  return (
3999
4005
  /*click_handler*/
4000
4006
  e[15](
@@ -4005,38 +4011,38 @@ function xt(e) {
4005
4011
  }
4006
4012
  return {
4007
4013
  c() {
4008
- t = S("div"), r = S("ui-image"), o = U(), s = S("div"), u = S("p"), a = G(h), l = U(), c = S("p"), p = G(f), d = U(), E = G(g), be(r.src, n = /*category*/
4014
+ t = B("div"), r = B("ui-image"), s = G(), o = B("div"), u = B("p"), a = D(h), l = G(), c = B("p"), p = D(f), d = G(), E = D(g), ye(r.src, n = /*category*/
4009
4015
  e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
4010
- e[23].name), R(r, "class", "CategoryImage"), I(s, "class", "CategoryTextContainer"), I(t, "class", m = "Category " + /*activecategory*/
4016
+ e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class", m = "Category " + /*activecategory*/
4011
4017
  (e[0] === /*category*/
4012
4018
  e[23].id ? "Active" : ""));
4013
4019
  },
4014
- m(B, H) {
4015
- K(B, t, H), v(t, r), v(t, o), v(t, s), v(s, u), v(u, a), v(s, l), v(s, c), v(c, p), v(c, d), v(c, E), C || (A = Ht(t, "click", O), C = !0);
4020
+ m(A, H) {
4021
+ ee(A, t, H), x(t, r), x(t, s), x(t, o), x(o, u), x(u, a), x(o, l), x(o, c), x(c, p), x(c, d), x(c, E), T || (S = At(t, "click", w), T = !0);
4016
4022
  },
4017
- p(B, H) {
4018
- e = B, H & /*topCategories*/
4019
- 8 && !be(r.src, n = /*category*/
4023
+ p(A, H) {
4024
+ e = A, H & /*topCategories*/
4025
+ 8 && !ye(r.src, n = /*category*/
4020
4026
  e[23].icon) && R(r, "src", n), H & /*topCategories*/
4021
4027
  8 && i !== (i = /*category*/
4022
4028
  e[23].name) && R(r, "alt", i), H & /*topCategories*/
4023
4029
  8 && h !== (h = /*category*/
4024
- e[23].name + "") && F(a, h), H & /*topCategories*/
4030
+ e[23].name + "") && j(a, h), H & /*topCategories*/
4025
4031
  8 && f !== (f = /*category*/
4026
- e[23].games.count + "") && F(p, f), H & /*$_*/
4032
+ e[23].games.count + "") && j(p, f), H & /*$_*/
4027
4033
  32 && g !== (g = /*$_*/
4028
- e[5]("games") + "") && F(E, g), H & /*activecategory, topCategories*/
4034
+ e[5]("games") + "") && j(E, g), H & /*activecategory, topCategories*/
4029
4035
  9 && m !== (m = "Category " + /*activecategory*/
4030
4036
  (e[0] === /*category*/
4031
4037
  e[23].id ? "Active" : "")) && I(t, "class", m);
4032
4038
  },
4033
- d(B) {
4034
- B && k(t), C = !1, A();
4039
+ d(A) {
4040
+ A && V(t), T = !1, S();
4035
4041
  }
4036
4042
  };
4037
4043
  }
4038
- function Et(e) {
4039
- let t, r, n, i, o, s, u, h = (
4044
+ function Tt(e) {
4045
+ let t, r, n, i, s, o, u, h = (
4040
4046
  /*category*/
4041
4047
  e[23].name + ""
4042
4048
  ), a, l, c, f = (
@@ -4045,8 +4051,8 @@ function Et(e) {
4045
4051
  ), p, d, g = (
4046
4052
  /*$_*/
4047
4053
  e[5]("games") + ""
4048
- ), E, m, C, A, O;
4049
- function B() {
4054
+ ), E, m, T, S, w;
4055
+ function A() {
4050
4056
  return (
4051
4057
  /*click_handler_1*/
4052
4058
  e[16](
@@ -4057,115 +4063,115 @@ function Et(e) {
4057
4063
  }
4058
4064
  return {
4059
4065
  c() {
4060
- t = S("div"), r = S("ui-image"), o = U(), s = S("div"), u = S("p"), a = G(h), l = U(), c = S("p"), p = G(f), d = U(), E = G(g), m = U(), be(r.src, n = /*category*/
4066
+ t = B("div"), r = B("ui-image"), s = G(), o = B("div"), u = B("p"), a = D(h), l = G(), c = B("p"), p = D(f), d = G(), E = D(g), m = G(), ye(r.src, n = /*category*/
4061
4067
  e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
4062
- e[23].name), R(r, "class", "CategoryImage"), I(s, "class", "CategoryTextContainer"), I(t, "class", C = "Category " + /*activecategory*/
4068
+ e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class", T = "Category " + /*activecategory*/
4063
4069
  (e[0] === /*category*/
4064
4070
  e[23].id ? "Active" : ""));
4065
4071
  },
4066
4072
  m(H, P) {
4067
- K(H, t, P), v(t, r), v(t, o), v(t, s), v(s, u), v(u, a), v(s, l), v(s, c), v(c, p), v(c, d), v(c, E), v(t, m), A || (O = Ht(t, "click", B), A = !0);
4073
+ ee(H, t, P), x(t, r), x(t, s), x(t, o), x(o, u), x(u, a), x(o, l), x(o, c), x(c, p), x(c, d), x(c, E), x(t, m), S || (w = At(t, "click", A), S = !0);
4068
4074
  },
4069
4075
  p(H, P) {
4070
4076
  e = H, P & /*otherCategories*/
4071
- 16 && !be(r.src, n = /*category*/
4077
+ 16 && !ye(r.src, n = /*category*/
4072
4078
  e[23].icon) && R(r, "src", n), P & /*otherCategories*/
4073
4079
  16 && i !== (i = /*category*/
4074
4080
  e[23].name) && R(r, "alt", i), P & /*otherCategories*/
4075
4081
  16 && h !== (h = /*category*/
4076
- e[23].name + "") && F(a, h), P & /*otherCategories*/
4082
+ e[23].name + "") && j(a, h), P & /*otherCategories*/
4077
4083
  16 && f !== (f = /*category*/
4078
- e[23].games.count + "") && F(p, f), P & /*$_*/
4084
+ e[23].games.count + "") && j(p, f), P & /*$_*/
4079
4085
  32 && g !== (g = /*$_*/
4080
- e[5]("games") + "") && F(E, g), P & /*activecategory, otherCategories*/
4081
- 17 && C !== (C = "Category " + /*activecategory*/
4086
+ e[5]("games") + "") && j(E, g), P & /*activecategory, otherCategories*/
4087
+ 17 && T !== (T = "Category " + /*activecategory*/
4082
4088
  (e[0] === /*category*/
4083
- e[23].id ? "Active" : "")) && I(t, "class", C);
4089
+ e[23].id ? "Active" : "")) && I(t, "class", T);
4084
4090
  },
4085
4091
  d(H) {
4086
- H && k(t), A = !1, O();
4092
+ H && V(t), S = !1, w();
4087
4093
  }
4088
4094
  };
4089
4095
  }
4090
- function vi(e) {
4096
+ function Ci(e) {
4091
4097
  let t;
4092
- function r(o, s) {
4098
+ function r(s, o) {
4093
4099
  return (
4094
4100
  /*isLoading*/
4095
- o[2] ? Ei : xi
4101
+ s[2] ? Ti : vi
4096
4102
  );
4097
4103
  }
4098
4104
  let n = r(e), i = n(e);
4099
4105
  return {
4100
4106
  c() {
4101
- t = S("div"), i.c();
4107
+ t = B("div"), i.c();
4102
4108
  },
4103
- m(o, s) {
4104
- K(o, t, s), i.m(t, null), e[17](t);
4109
+ m(s, o) {
4110
+ ee(s, t, o), i.m(t, null), e[17](t);
4105
4111
  },
4106
- p(o, [s]) {
4107
- n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
4112
+ p(s, [o]) {
4113
+ n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
4108
4114
  },
4109
4115
  i: L,
4110
4116
  o: L,
4111
- d(o) {
4112
- o && k(t), i.d(), e[17](null);
4117
+ d(s) {
4118
+ s && V(t), i.d(), e[17](null);
4113
4119
  }
4114
4120
  };
4115
4121
  }
4116
- function Ti(e, t, r) {
4122
+ function Hi(e, t, r) {
4117
4123
  let n;
4118
- or(e, mi, (b) => r(5, n = b));
4119
- let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, p, d = !1;
4124
+ ar(e, di, (b) => r(5, n = b));
4125
+ 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, { mbsource: f } = t, p, d = !1;
4120
4126
  const g = [];
4121
4127
  let E = [], m = [];
4122
- Object.keys(bt).forEach((b) => {
4123
- dt(b, bt[b]);
4128
+ Object.keys(_t).forEach((b) => {
4129
+ yt(b, _t[b]);
4124
4130
  });
4125
- const C = () => {
4131
+ const T = () => {
4126
4132
  fetch(c).then(($) => $.json()).then(($) => {
4127
- Object.keys($).forEach((le) => {
4128
- dt(le, $[le]);
4133
+ Object.keys($).forEach((fe) => {
4134
+ yt(fe, $[fe]);
4129
4135
  });
4130
4136
  }).catch(($) => {
4131
4137
  console.log($);
4132
4138
  });
4133
- }, A = () => {
4139
+ }, S = () => {
4134
4140
  r(2, d = !0);
4135
- const b = new URL(`${i}/v1/casino/groups/${o}`);
4136
- b.searchParams.append("language", s), fetch(b).then(($) => $.json()).then(($) => {
4141
+ const b = new URL(`${i}/v1/casino/groups/${s}`);
4142
+ b.searchParams.append("language", o), fetch(b).then(($) => $.json()).then(($) => {
4137
4143
  r(2, d = !1);
4138
- const le = h.split(",").map((j) => j.trim());
4144
+ const fe = h.split(",").map((k) => k.trim());
4139
4145
  g.push(...$.items);
4140
- const Ze = g.filter((j) => !le.some((Yt) => {
4141
- var Qe;
4142
- return ((Qe = j.flags) == null ? void 0 : Qe.indexOf(Yt)) >= 0;
4146
+ const Je = g.filter((k) => !fe.some((er) => {
4147
+ var qe;
4148
+ return ((qe = k.flags) == null ? void 0 : qe.indexOf(er)) >= 0;
4143
4149
  }));
4144
- r(3, E = Ze.filter((j) => j.isTopCategory === !0)), r(4, m = Ze.filter((j) => j.isTopCategory === !1));
4150
+ r(3, E = Je.filter((k) => k.isTopCategory === !0)), r(4, m = Je.filter((k) => k.isTopCategory === !1));
4145
4151
  });
4146
- }, O = (b) => {
4152
+ }, w = (b) => {
4147
4153
  window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
4148
- }, B = () => {
4149
- pi(s);
4154
+ }, A = () => {
4155
+ bi(o);
4150
4156
  };
4151
- cr(() => () => {
4157
+ mr(() => () => {
4152
4158
  });
4153
- const H = (b) => O(b.id), P = (b) => O(b.id);
4154
- function qt(b) {
4155
- Le[b ? "unshift" : "push"](() => {
4159
+ const H = (b) => w(b.id), P = (b) => w(b.id);
4160
+ function Kt(b) {
4161
+ Me[b ? "unshift" : "push"](() => {
4156
4162
  p = b, r(1, p);
4157
4163
  });
4158
4164
  }
4159
4165
  return e.$$set = (b) => {
4160
- "endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, o = b.datasource), "lang" in b && r(9, s = 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), "mbsource" in b && r(14, f = b.mbsource);
4166
+ "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), "mbsource" in b && r(14, f = b.mbsource);
4161
4167
  }, e.$$.update = () => {
4162
4168
  e.$$.dirty & /*endpoint, datasource*/
4163
- 384 && i && o && A(), e.$$.dirty & /*translationurl*/
4164
- 8192 && c && C(), e.$$.dirty & /*lang*/
4165
- 512 && s && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4166
- 2050 && a && p && di(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4167
- 4098 && l && p && bi(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4168
- 16386 && f && p && yi(p, `${f}.Style`);
4169
+ 384 && i && s && S(), e.$$.dirty & /*translationurl*/
4170
+ 8192 && c && T(), e.$$.dirty & /*lang*/
4171
+ 512 && o && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4172
+ 2050 && a && p && yi(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4173
+ 4098 && l && p && _i(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4174
+ 16386 && f && p && Ei(p, `${f}.Style`);
4169
4175
  }, [
4170
4176
  u,
4171
4177
  p,
@@ -4173,10 +4179,10 @@ function Ti(e, t, r) {
4173
4179
  E,
4174
4180
  m,
4175
4181
  n,
4176
- O,
4182
+ w,
4177
4183
  i,
4178
- o,
4179
4184
  s,
4185
+ o,
4180
4186
  h,
4181
4187
  a,
4182
4188
  l,
@@ -4184,17 +4190,17 @@ function Ti(e, t, r) {
4184
4190
  f,
4185
4191
  H,
4186
4192
  P,
4187
- qt
4193
+ Kt
4188
4194
  ];
4189
4195
  }
4190
- class Ci extends Cr {
4196
+ class Si extends Sr {
4191
4197
  constructor(t) {
4192
- super(), vr(
4198
+ super(), Cr(
4193
4199
  this,
4194
4200
  t,
4195
- Ti,
4196
- vi,
4197
- Tt,
4201
+ Hi,
4202
+ Ci,
4203
+ Ht,
4198
4204
  {
4199
4205
  endpoint: 7,
4200
4206
  datasource: 8,
@@ -4206,7 +4212,7 @@ class Ci extends Cr {
4206
4212
  translationurl: 13,
4207
4213
  mbsource: 14
4208
4214
  },
4209
- _i
4215
+ xi
4210
4216
  );
4211
4217
  }
4212
4218
  get endpoint() {
@@ -4264,7 +4270,7 @@ class Ci extends Cr {
4264
4270
  this.$$set({ mbsource: t }), M();
4265
4271
  }
4266
4272
  }
4267
- Tr(Ci, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
4273
+ Hr(Si, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
4268
4274
  export {
4269
- Ci as default
4275
+ Si as default
4270
4276
  };