@everymatrix/casino-categories-slider-nd 1.56.0 → 1.56.2

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,28 +1,28 @@
1
1
  function P() {
2
2
  }
3
- function Lt(e) {
3
+ function Mt(e) {
4
4
  return e();
5
5
  }
6
- function ut() {
6
+ function ct() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
9
  function re(e) {
10
- e.forEach(Lt);
10
+ e.forEach(Mt);
11
11
  }
12
12
  function Te(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function It(e, t) {
15
+ function Rt(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
18
  let pe;
19
- function ls(e, t) {
19
+ function ms(e, t) {
20
20
  return e === t ? !0 : (pe || (pe = document.createElement("a")), pe.href = t, e === pe.href);
21
21
  }
22
- function Ar(e) {
22
+ function Or(e) {
23
23
  return Object.keys(e).length === 0;
24
24
  }
25
- function Ct(e, ...t) {
25
+ function Gt(e, ...t) {
26
26
  if (e == null) {
27
27
  for (const n of t)
28
28
  n(void 0);
@@ -31,24 +31,25 @@ function Ct(e, ...t) {
31
31
  const r = e.subscribe(...t);
32
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
33
33
  }
34
- function Br(e, t, r) {
35
- e.$$.on_destroy.push(Ct(t, r));
34
+ function Lr(e, t, r) {
35
+ e.$$.on_destroy.push(Gt(t, r));
36
36
  }
37
- function Pr(e) {
37
+ function Ir(e) {
38
38
  return e && Te(e.destroy) ? e.destroy : P;
39
39
  }
40
- function Mt(e, t) {
40
+ function Ut(e, t) {
41
41
  e.appendChild(t);
42
42
  }
43
- function Nr(e, t, r) {
44
- const n = Or(e);
43
+ function Cr(e, t, r) {
44
+ const n = Mr(e);
45
45
  if (!n.getElementById(t)) {
46
46
  const i = k("style");
47
- i.id = t, i.textContent = r, Lr(n, i);
47
+ i.id = t, i.textContent = r, Rr(n, i);
48
48
  }
49
49
  }
50
- function Or(e) {
51
- if (!e) return document;
50
+ function Mr(e) {
51
+ if (!e)
52
+ return document;
52
53
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
53
54
  return t && /** @type {ShadowRoot} */
54
55
  t.host ? (
@@ -56,8 +57,8 @@ function Or(e) {
56
57
  t
57
58
  ) : e.ownerDocument;
58
59
  }
59
- function Lr(e, t) {
60
- return Mt(
60
+ function Rr(e, t) {
61
+ return Ut(
61
62
  /** @type {Document} */
62
63
  e.head || e,
63
64
  t
@@ -69,26 +70,26 @@ function fe(e, t, r) {
69
70
  function ne(e) {
70
71
  e.parentNode && e.parentNode.removeChild(e);
71
72
  }
72
- function cs(e, t) {
73
+ function ds(e, t) {
73
74
  for (let r = 0; r < e.length; r += 1)
74
75
  e[r] && e[r].d(t);
75
76
  }
76
77
  function k(e) {
77
78
  return document.createElement(e);
78
79
  }
79
- function fs(e) {
80
+ function bs(e) {
80
81
  return document.createElementNS("http://www.w3.org/2000/svg", e);
81
82
  }
82
- function Rt(e) {
83
+ function Dt(e) {
83
84
  return document.createTextNode(e);
84
85
  }
85
- function ms() {
86
- return Rt(" ");
86
+ function ps() {
87
+ return Dt(" ");
87
88
  }
88
- function bs() {
89
- return Rt("");
89
+ function gs() {
90
+ return Dt("");
90
91
  }
91
- function ds(e, t, r, n) {
92
+ function ys(e, t, r, n) {
92
93
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
93
94
  }
94
95
  function ie(e, t, r) {
@@ -98,14 +99,14 @@ function _(e, t, r) {
98
99
  const n = t.toLowerCase();
99
100
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : ie(e, t, r);
100
101
  }
101
- function Ir(e) {
102
+ function Gr(e) {
102
103
  return Array.from(e.childNodes);
103
104
  }
104
- function ps(e, t) {
105
+ function vs(e, t) {
105
106
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
106
107
  t);
107
108
  }
108
- function Cr(e) {
109
+ function Ur(e) {
109
110
  const t = {};
110
111
  return e.childNodes.forEach(
111
112
  /** @param {Element} node */
@@ -118,24 +119,25 @@ let he;
118
119
  function ue(e) {
119
120
  he = e;
120
121
  }
121
- function Mr() {
122
- if (!he) throw new Error("Function called outside component initialization");
122
+ function Dr() {
123
+ if (!he)
124
+ throw new Error("Function called outside component initialization");
123
125
  return he;
124
126
  }
125
- function Rr(e) {
126
- Mr().$$.on_mount.push(e);
127
+ function Fr(e) {
128
+ Dr().$$.on_mount.push(e);
127
129
  }
128
- const Q = [], Fe = [];
130
+ const Q = [], $e = [];
129
131
  let Y = [];
130
- const ht = [], Gt = /* @__PURE__ */ Promise.resolve();
131
- let $e = !1;
132
- function Ut() {
133
- $e || ($e = !0, Gt.then(S));
132
+ const ft = [], Ft = /* @__PURE__ */ Promise.resolve();
133
+ let je = !1;
134
+ function $t() {
135
+ je || (je = !0, Ft.then(S));
134
136
  }
135
- function Gr() {
136
- return Ut(), Gt;
137
+ function $r() {
138
+ return $t(), Ft;
137
139
  }
138
- function je(e) {
140
+ function ke(e) {
139
141
  Y.push(e);
140
142
  }
141
143
  const Ie = /* @__PURE__ */ new Set();
@@ -148,83 +150,86 @@ function S() {
148
150
  try {
149
151
  for (; z < Q.length; ) {
150
152
  const t = Q[z];
151
- z++, ue(t), Ur(t.$$);
153
+ z++, ue(t), jr(t.$$);
152
154
  }
153
155
  } catch (t) {
154
156
  throw Q.length = 0, z = 0, t;
155
157
  }
156
- for (ue(null), Q.length = 0, z = 0; Fe.length; ) Fe.pop()();
158
+ for (ue(null), Q.length = 0, z = 0; $e.length; )
159
+ $e.pop()();
157
160
  for (let t = 0; t < Y.length; t += 1) {
158
161
  const r = Y[t];
159
162
  Ie.has(r) || (Ie.add(r), r());
160
163
  }
161
164
  Y.length = 0;
162
165
  } while (Q.length);
163
- for (; ht.length; )
164
- ht.pop()();
165
- $e = !1, Ie.clear(), ue(e);
166
+ for (; ft.length; )
167
+ ft.pop()();
168
+ je = !1, Ie.clear(), ue(e);
166
169
  }
167
- function Ur(e) {
170
+ function jr(e) {
168
171
  if (e.fragment !== null) {
169
172
  e.update(), re(e.before_update);
170
173
  const t = e.dirty;
171
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(je);
174
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ke);
172
175
  }
173
176
  }
174
- function Dr(e) {
177
+ function kr(e) {
175
178
  const t = [], r = [];
176
179
  Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
177
180
  }
178
- const Fr = /* @__PURE__ */ new Set();
179
- function Dt(e, t) {
180
- e && e.i && (Fr.delete(e), e.i(t));
181
+ const Vr = /* @__PURE__ */ new Set();
182
+ function jt(e, t) {
183
+ e && e.i && (Vr.delete(e), e.i(t));
181
184
  }
182
- function gs(e) {
185
+ function _s(e) {
183
186
  return e?.length !== void 0 ? e : Array.from(e);
184
187
  }
185
- function ys(e, t) {
188
+ function Es(e, t) {
186
189
  e.d(1), t.delete(e.key);
187
190
  }
188
- function vs(e, t, r, n, i, s, o, a, h, u, l, f) {
189
- let c = e.length, b = s.length, p = c;
190
- const d = {};
191
- for (; p--; ) d[e[p].key] = p;
191
+ function xs(e, t, r, n, i, s, o, a, h, u, l, f) {
192
+ let c = e.length, d = s.length, p = c;
193
+ const b = {};
194
+ for (; p--; )
195
+ b[e[p].key] = p;
192
196
  const w = [], C = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), T = [];
193
- for (p = b; p--; ) {
197
+ for (p = d; p--; ) {
194
198
  const E = f(i, s, p), L = r(E);
195
199
  let I = o.get(L);
196
- I ? T.push(() => I.p(E, t)) : (I = u(L, E), I.c()), C.set(L, w[p] = I), L in d && N.set(L, Math.abs(p - d[L]));
200
+ I ? T.push(() => I.p(E, t)) : (I = u(L, E), I.c()), C.set(L, w[p] = I), L in b && N.set(L, Math.abs(p - b[L]));
197
201
  }
198
202
  const O = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Set();
199
203
  function M(E) {
200
- Dt(E, 1), E.m(a, l), o.set(E.key, E), l = E.first, b--;
204
+ jt(E, 1), E.m(a, l), o.set(E.key, E), l = E.first, d--;
201
205
  }
202
- for (; c && b; ) {
203
- const E = w[b - 1], L = e[c - 1], I = E.key, F = L.key;
204
- E === L ? (l = E.first, c--, b--) : C.has(F) ? !o.has(I) || O.has(I) ? M(E) : H.has(F) ? c-- : N.get(I) > N.get(F) ? (H.add(I), M(E)) : (O.add(F), c--) : (h(L, o), c--);
206
+ for (; c && d; ) {
207
+ const E = w[d - 1], L = e[c - 1], I = E.key, F = L.key;
208
+ E === L ? (l = E.first, c--, d--) : C.has(F) ? !o.has(I) || O.has(I) ? M(E) : H.has(F) ? c-- : N.get(I) > N.get(F) ? (H.add(I), M(E)) : (O.add(F), c--) : (h(L, o), c--);
205
209
  }
206
210
  for (; c--; ) {
207
211
  const E = e[c];
208
212
  C.has(E.key) || h(E, o);
209
213
  }
210
- for (; b; ) M(w[b - 1]);
214
+ for (; d; )
215
+ M(w[d - 1]);
211
216
  return re(T), w;
212
217
  }
213
- function $r(e, t, r) {
218
+ function Xr(e, t, r) {
214
219
  const { fragment: n, after_update: i } = e.$$;
215
- n && n.m(t, r), je(() => {
216
- const s = e.$$.on_mount.map(Lt).filter(Te);
220
+ n && n.m(t, r), ke(() => {
221
+ const s = e.$$.on_mount.map(Mt).filter(Te);
217
222
  e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
218
- }), i.forEach(je);
223
+ }), i.forEach(ke);
219
224
  }
220
- function jr(e, t) {
225
+ function Wr(e, t) {
221
226
  const r = e.$$;
222
- r.fragment !== null && (Dr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
227
+ r.fragment !== null && (kr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
223
228
  }
224
- function kr(e, t) {
225
- e.$$.dirty[0] === -1 && (Q.push(e), Ut(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
229
+ function zr(e, t) {
230
+ e.$$.dirty[0] === -1 && (Q.push(e), $t(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
226
231
  }
227
- function Vr(e, t, r, n, i, s, o = null, a = [-1]) {
232
+ function Zr(e, t, r, n, i, s, o = null, a = [-1]) {
228
233
  const h = he;
229
234
  ue(e);
230
235
  const u = e.$$ = {
@@ -234,7 +239,7 @@ function Vr(e, t, r, n, i, s, o = null, a = [-1]) {
234
239
  props: s,
235
240
  update: P,
236
241
  not_equal: i,
237
- bound: ut(),
242
+ bound: ct(),
238
243
  // lifecycle
239
244
  on_mount: [],
240
245
  on_destroy: [],
@@ -243,28 +248,28 @@ function Vr(e, t, r, n, i, s, o = null, a = [-1]) {
243
248
  after_update: [],
244
249
  context: new Map(t.context || (h ? h.$$.context : [])),
245
250
  // everything else
246
- callbacks: ut(),
251
+ callbacks: ct(),
247
252
  dirty: a,
248
253
  skip_bound: !1,
249
254
  root: t.target || h.$$.root
250
255
  };
251
256
  o && o(u.root);
252
257
  let l = !1;
253
- if (u.ctx = r ? r(e, t.props || {}, (f, c, ...b) => {
254
- const p = b.length ? b[0] : c;
255
- return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), l && kr(e, f)), c;
258
+ if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
259
+ const p = d.length ? d[0] : c;
260
+ return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), l && zr(e, f)), c;
256
261
  }) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
257
262
  if (t.hydrate) {
258
- const f = Ir(t.target);
263
+ const f = Gr(t.target);
259
264
  u.fragment && u.fragment.l(f), f.forEach(ne);
260
265
  } else
261
266
  u.fragment && u.fragment.c();
262
- t.intro && Dt(e.$$.fragment), $r(e, t.target, t.anchor), S();
267
+ t.intro && jt(e.$$.fragment), Xr(e, t.target, t.anchor), S();
263
268
  }
264
269
  ue(h);
265
270
  }
266
- let Ft;
267
- typeof HTMLElement == "function" && (Ft = class extends HTMLElement {
271
+ let kt;
272
+ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
268
273
  /** The Svelte component constructor */
269
274
  $$ctor;
270
275
  /** Slots */
@@ -323,7 +328,7 @@ typeof HTMLElement == "function" && (Ft = class extends HTMLElement {
323
328
  };
324
329
  if (await Promise.resolve(), !this.$$cn || this.$$c)
325
330
  return;
326
- const t = {}, r = Cr(this);
331
+ const t = {}, r = Ur(this);
327
332
  for (const i of this.$$s)
328
333
  i in r && (t[i] = [e(i)]);
329
334
  for (const i of this.attributes) {
@@ -410,8 +415,8 @@ function ve(e, t, r, n) {
410
415
  return t;
411
416
  }
412
417
  }
413
- function Xr(e, t, r, n, i, s) {
414
- let o = class extends Ft {
418
+ function Qr(e, t, r, n, i, s) {
419
+ let o = class extends kt {
415
420
  constructor() {
416
421
  super(e, r, i), this.$$p_d = t;
417
422
  }
@@ -439,7 +444,7 @@ function Xr(e, t, r, n, i, s) {
439
444
  }), e.element = /** @type {any} */
440
445
  o, o;
441
446
  }
442
- class Wr {
447
+ class Yr {
443
448
  /**
444
449
  * ### PRIVATE API
445
450
  *
@@ -458,7 +463,7 @@ class Wr {
458
463
  $$set = void 0;
459
464
  /** @returns {void} */
460
465
  $destroy() {
461
- jr(this, 1), this.$destroy = P;
466
+ Wr(this, 1), this.$destroy = P;
462
467
  }
463
468
  /**
464
469
  * @template {Extract<keyof Events, string>} K
@@ -480,22 +485,37 @@ class Wr {
480
485
  * @returns {void}
481
486
  */
482
487
  $set(t) {
483
- this.$$set && !Ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
488
+ this.$$set && !Or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
484
489
  }
485
490
  }
486
- const zr = "4";
487
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(zr);
488
- var ke = function(e, t) {
489
- return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
491
+ const qr = "4";
492
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(qr);
493
+ /*! *****************************************************************************
494
+ Copyright (c) Microsoft Corporation.
495
+
496
+ Permission to use, copy, modify, and/or distribute this software for any
497
+ purpose with or without fee is hereby granted.
498
+
499
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
500
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
501
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
502
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
503
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
504
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
505
+ PERFORMANCE OF THIS SOFTWARE.
506
+ ***************************************************************************** */
507
+ var Ve = function(e, t) {
508
+ return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
490
509
  r.__proto__ = n;
491
510
  } || function(r, n) {
492
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
493
- }, ke(e, t);
511
+ for (var i in n)
512
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
513
+ }, Ve(e, t);
494
514
  };
495
515
  function U(e, t) {
496
516
  if (typeof t != "function" && t !== null)
497
517
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
498
- ke(e, t);
518
+ Ve(e, t);
499
519
  function r() {
500
520
  this.constructor = e;
501
521
  }
@@ -505,61 +525,69 @@ var v = function() {
505
525
  return v = Object.assign || function(t) {
506
526
  for (var r, n = 1, i = arguments.length; n < i; n++) {
507
527
  r = arguments[n];
508
- for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
528
+ for (var s in r)
529
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
509
530
  }
510
531
  return t;
511
532
  }, v.apply(this, arguments);
512
533
  };
513
- function Zr(e, t) {
534
+ function Jr(e, t) {
514
535
  var r = {};
515
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
536
+ for (var n in e)
537
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
516
538
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
517
539
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
518
540
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
519
541
  return r;
520
542
  }
521
- function Ve(e) {
543
+ function Xe(e) {
522
544
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
523
- if (r) return r.call(e);
524
- if (e && typeof e.length == "number") return {
525
- next: function() {
526
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
527
- }
528
- };
545
+ if (r)
546
+ return r.call(e);
547
+ if (e && typeof e.length == "number")
548
+ return {
549
+ next: function() {
550
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
551
+ }
552
+ };
529
553
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
530
554
  }
531
- function Xe(e, t) {
555
+ function We(e, t) {
532
556
  var r = typeof Symbol == "function" && e[Symbol.iterator];
533
- if (!r) return e;
557
+ if (!r)
558
+ return e;
534
559
  var n = r.call(e), i, s = [], o;
535
560
  try {
536
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) s.push(i.value);
561
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
562
+ s.push(i.value);
537
563
  } catch (a) {
538
564
  o = { error: a };
539
565
  } finally {
540
566
  try {
541
567
  i && !i.done && (r = n.return) && r.call(n);
542
568
  } finally {
543
- if (o) throw o.error;
569
+ if (o)
570
+ throw o.error;
544
571
  }
545
572
  }
546
573
  return s;
547
574
  }
548
575
  function q(e, t, r) {
549
- if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
550
- (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
551
- return e.concat(s || Array.prototype.slice.call(t));
576
+ if (r || arguments.length === 2)
577
+ for (var n = 0, i = t.length, s; n < i; n++)
578
+ (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
579
+ return e.concat(s || t);
552
580
  }
553
581
  function G(e) {
554
582
  return typeof e == "function";
555
583
  }
556
- function $t(e) {
584
+ function Vt(e) {
557
585
  var t = function(n) {
558
586
  Error.call(n), n.stack = new Error().stack;
559
587
  }, r = e(t);
560
588
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
561
589
  }
562
- var Ce = $t(function(e) {
590
+ var Ce = Vt(function(e) {
563
591
  return function(r) {
564
592
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
565
593
  ` + r.map(function(n, i) {
@@ -568,7 +596,7 @@ var Ce = $t(function(e) {
568
596
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
569
597
  };
570
598
  });
571
- function We(e, t) {
599
+ function ze(e, t) {
572
600
  if (e) {
573
601
  var r = e.indexOf(t);
574
602
  0 <= r && e.splice(r, 1);
@@ -586,17 +614,18 @@ var He = function() {
586
614
  if (o)
587
615
  if (this._parentage = null, Array.isArray(o))
588
616
  try {
589
- for (var a = Ve(o), h = a.next(); !h.done; h = a.next()) {
617
+ for (var a = Xe(o), h = a.next(); !h.done; h = a.next()) {
590
618
  var u = h.value;
591
619
  u.remove(this);
592
620
  }
593
- } catch (d) {
594
- t = { error: d };
621
+ } catch (b) {
622
+ t = { error: b };
595
623
  } finally {
596
624
  try {
597
625
  h && !h.done && (r = a.return) && r.call(a);
598
626
  } finally {
599
- if (t) throw t.error;
627
+ if (t)
628
+ throw t.error;
600
629
  }
601
630
  }
602
631
  else
@@ -605,28 +634,29 @@ var He = function() {
605
634
  if (G(l))
606
635
  try {
607
636
  l();
608
- } catch (d) {
609
- s = d instanceof Ce ? d.errors : [d];
637
+ } catch (b) {
638
+ s = b instanceof Ce ? b.errors : [b];
610
639
  }
611
640
  var f = this._finalizers;
612
641
  if (f) {
613
642
  this._finalizers = null;
614
643
  try {
615
- for (var c = Ve(f), b = c.next(); !b.done; b = c.next()) {
616
- var p = b.value;
644
+ for (var c = Xe(f), d = c.next(); !d.done; d = c.next()) {
645
+ var p = d.value;
617
646
  try {
618
- lt(p);
619
- } catch (d) {
620
- s = s ?? [], d instanceof Ce ? s = q(q([], Xe(s)), Xe(d.errors)) : s.push(d);
647
+ mt(p);
648
+ } catch (b) {
649
+ s = s ?? [], b instanceof Ce ? s = q(q([], We(s)), We(b.errors)) : s.push(b);
621
650
  }
622
651
  }
623
- } catch (d) {
624
- n = { error: d };
652
+ } catch (b) {
653
+ n = { error: b };
625
654
  } finally {
626
655
  try {
627
- b && !b.done && (i = c.return) && i.call(c);
656
+ d && !d.done && (i = c.return) && i.call(c);
628
657
  } finally {
629
- if (n) throw n.error;
658
+ if (n)
659
+ throw n.error;
630
660
  }
631
661
  }
632
662
  }
@@ -637,7 +667,7 @@ var He = function() {
637
667
  var r;
638
668
  if (t && t !== this)
639
669
  if (this.closed)
640
- lt(t);
670
+ mt(t);
641
671
  else {
642
672
  if (t instanceof e) {
643
673
  if (t.closed || t._hasParent(this))
@@ -654,52 +684,56 @@ var He = function() {
654
684
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
655
685
  }, e.prototype._removeParent = function(t) {
656
686
  var r = this._parentage;
657
- r === t ? this._parentage = null : Array.isArray(r) && We(r, t);
687
+ r === t ? this._parentage = null : Array.isArray(r) && ze(r, t);
658
688
  }, e.prototype.remove = function(t) {
659
689
  var r = this._finalizers;
660
- r && We(r, t), t instanceof e && t._removeParent(this);
690
+ r && ze(r, t), t instanceof e && t._removeParent(this);
661
691
  }, e.EMPTY = function() {
662
692
  var t = new e();
663
693
  return t.closed = !0, t;
664
694
  }(), e;
665
- }(), jt = He.EMPTY;
666
- function kt(e) {
695
+ }(), Xt = He.EMPTY;
696
+ function Wt(e) {
667
697
  return e instanceof He || e && "closed" in e && G(e.remove) && G(e.add) && G(e.unsubscribe);
668
698
  }
669
- function lt(e) {
699
+ function mt(e) {
670
700
  G(e) ? e() : e.unsubscribe();
671
701
  }
672
- var Qr = {
673
- Promise: void 0
674
- }, Yr = {
702
+ var zt = {
703
+ onUnhandledError: null,
704
+ onStoppedNotification: null,
705
+ Promise: void 0,
706
+ useDeprecatedSynchronousErrorHandling: !1,
707
+ useDeprecatedNextContext: !1
708
+ }, Kr = {
675
709
  setTimeout: function(e, t) {
676
710
  for (var r = [], n = 2; n < arguments.length; n++)
677
711
  r[n - 2] = arguments[n];
678
- return setTimeout.apply(void 0, q([e, t], Xe(r)));
712
+ return setTimeout.apply(void 0, q([e, t], We(r)));
679
713
  },
680
714
  clearTimeout: function(e) {
681
715
  return clearTimeout(e);
682
716
  },
683
717
  delegate: void 0
684
718
  };
685
- function qr(e) {
686
- Yr.setTimeout(function() {
719
+ function en(e) {
720
+ Kr.setTimeout(function() {
687
721
  throw e;
688
722
  });
689
723
  }
690
- function ct() {
724
+ function dt() {
691
725
  }
692
726
  function _e(e) {
693
727
  e();
694
728
  }
695
- var Vt = function(e) {
729
+ var Zt = function(e) {
696
730
  U(t, e);
697
731
  function t(r) {
698
732
  var n = e.call(this) || this;
699
- return n.isStopped = !1, r ? (n.destination = r, kt(r) && r.add(n)) : n.destination = en, n;
733
+ return n.isStopped = !1, r ? (n.destination = r, Wt(r) && r.add(n)) : n.destination = sn, n;
700
734
  }
701
735
  return t.create = function(r, n, i) {
702
- return new ze(r, n, i);
736
+ return new Ze(r, n, i);
703
737
  }, t.prototype.next = function(r) {
704
738
  this.isStopped || this._next(r);
705
739
  }, t.prototype.error = function(r) {
@@ -723,7 +757,11 @@ var Vt = function(e) {
723
757
  this.unsubscribe();
724
758
  }
725
759
  }, t;
726
- }(He), Jr = function() {
760
+ }(He), tn = Function.prototype.bind;
761
+ function Me(e, t) {
762
+ return tn.call(e, t);
763
+ }
764
+ var rn = function() {
727
765
  function e(t) {
728
766
  this.partialObserver = t;
729
767
  }
@@ -754,43 +792,55 @@ var Vt = function(e) {
754
792
  ge(r);
755
793
  }
756
794
  }, e;
757
- }(), ze = function(e) {
795
+ }(), Ze = function(e) {
758
796
  U(t, e);
759
797
  function t(r, n, i) {
760
798
  var s = e.call(this) || this, o;
761
- return G(r) || !r ? o = {
762
- next: r ?? void 0,
763
- error: n ?? void 0,
764
- complete: i ?? void 0
765
- } : o = r, s.destination = new Jr(o), s;
799
+ if (G(r) || !r)
800
+ o = {
801
+ next: r ?? void 0,
802
+ error: n ?? void 0,
803
+ complete: i ?? void 0
804
+ };
805
+ else {
806
+ var a;
807
+ s && zt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
808
+ return s.unsubscribe();
809
+ }, o = {
810
+ next: r.next && Me(r.next, a),
811
+ error: r.error && Me(r.error, a),
812
+ complete: r.complete && Me(r.complete, a)
813
+ }) : o = r;
814
+ }
815
+ return s.destination = new rn(o), s;
766
816
  }
767
817
  return t;
768
- }(Vt);
818
+ }(Zt);
769
819
  function ge(e) {
770
- qr(e);
820
+ en(e);
771
821
  }
772
- function Kr(e) {
822
+ function nn(e) {
773
823
  throw e;
774
824
  }
775
- var en = {
825
+ var sn = {
776
826
  closed: !0,
777
- next: ct,
778
- error: Kr,
779
- complete: ct
780
- }, tn = function() {
827
+ next: dt,
828
+ error: nn,
829
+ complete: dt
830
+ }, on = function() {
781
831
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
782
832
  }();
783
- function rn(e) {
833
+ function an(e) {
784
834
  return e;
785
835
  }
786
- function nn(e) {
787
- return e.length === 0 ? rn : e.length === 1 ? e[0] : function(r) {
836
+ function un(e) {
837
+ return e.length === 0 ? an : e.length === 1 ? e[0] : function(r) {
788
838
  return e.reduce(function(n, i) {
789
839
  return i(n);
790
840
  }, r);
791
841
  };
792
842
  }
793
- var ft = function() {
843
+ var bt = function() {
794
844
  function e(t) {
795
845
  t && (this._subscribe = t);
796
846
  }
@@ -798,7 +848,7 @@ var ft = function() {
798
848
  var r = new e();
799
849
  return r.source = this, r.operator = t, r;
800
850
  }, e.prototype.subscribe = function(t, r, n) {
801
- var i = this, s = on(t) ? t : new ze(t, r, n);
851
+ var i = this, s = ln(t) ? t : new Ze(t, r, n);
802
852
  return _e(function() {
803
853
  var o = i, a = o.operator, h = o.source;
804
854
  s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
@@ -811,8 +861,8 @@ var ft = function() {
811
861
  }
812
862
  }, e.prototype.forEach = function(t, r) {
813
863
  var n = this;
814
- return r = mt(r), new r(function(i, s) {
815
- var o = new ze({
864
+ return r = pt(r), new r(function(i, s) {
865
+ var o = new Ze({
816
866
  next: function(a) {
817
867
  try {
818
868
  t(a);
@@ -828,15 +878,15 @@ var ft = function() {
828
878
  }, e.prototype._subscribe = function(t) {
829
879
  var r;
830
880
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
831
- }, e.prototype[tn] = function() {
881
+ }, e.prototype[on] = function() {
832
882
  return this;
833
883
  }, e.prototype.pipe = function() {
834
884
  for (var t = [], r = 0; r < arguments.length; r++)
835
885
  t[r] = arguments[r];
836
- return nn(t)(this);
886
+ return un(t)(this);
837
887
  }, e.prototype.toPromise = function(t) {
838
888
  var r = this;
839
- return t = mt(t), new t(function(n, i) {
889
+ return t = pt(t), new t(function(n, i) {
840
890
  var s;
841
891
  r.subscribe(function(o) {
842
892
  return s = o;
@@ -850,32 +900,32 @@ var ft = function() {
850
900
  return new e(t);
851
901
  }, e;
852
902
  }();
853
- function mt(e) {
903
+ function pt(e) {
854
904
  var t;
855
- return (t = e ?? Qr.Promise) !== null && t !== void 0 ? t : Promise;
905
+ return (t = e ?? zt.Promise) !== null && t !== void 0 ? t : Promise;
856
906
  }
857
- function sn(e) {
907
+ function hn(e) {
858
908
  return e && G(e.next) && G(e.error) && G(e.complete);
859
909
  }
860
- function on(e) {
861
- return e && e instanceof Vt || sn(e) && kt(e);
910
+ function ln(e) {
911
+ return e && e instanceof Zt || hn(e) && Wt(e);
862
912
  }
863
- var an = $t(function(e) {
913
+ var cn = Vt(function(e) {
864
914
  return function() {
865
915
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
866
916
  };
867
- }), Xt = function(e) {
917
+ }), Qt = function(e) {
868
918
  U(t, e);
869
919
  function t() {
870
920
  var r = e.call(this) || this;
871
921
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
872
922
  }
873
923
  return t.prototype.lift = function(r) {
874
- var n = new bt(this, this);
924
+ var n = new gt(this, this);
875
925
  return n.operator = r, n;
876
926
  }, t.prototype._throwIfClosed = function() {
877
927
  if (this.closed)
878
- throw new an();
928
+ throw new cn();
879
929
  }, t.prototype.next = function(r) {
880
930
  var n = this;
881
931
  _e(function() {
@@ -883,7 +933,7 @@ var an = $t(function(e) {
883
933
  if (n._throwIfClosed(), !n.isStopped) {
884
934
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
885
935
  try {
886
- for (var o = Ve(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
936
+ for (var o = Xe(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
887
937
  var h = a.value;
888
938
  h.next(r);
889
939
  }
@@ -893,7 +943,8 @@ var an = $t(function(e) {
893
943
  try {
894
944
  a && !a.done && (s = o.return) && s.call(o);
895
945
  } finally {
896
- if (i) throw i.error;
946
+ if (i)
947
+ throw i.error;
897
948
  }
898
949
  }
899
950
  }
@@ -931,19 +982,19 @@ var an = $t(function(e) {
931
982
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
932
983
  }, t.prototype._innerSubscribe = function(r) {
933
984
  var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
934
- return s || o ? jt : (this.currentObservers = null, a.push(r), new He(function() {
935
- n.currentObservers = null, We(a, r);
985
+ return s || o ? Xt : (this.currentObservers = null, a.push(r), new He(function() {
986
+ n.currentObservers = null, ze(a, r);
936
987
  }));
937
988
  }, t.prototype._checkFinalizedStatuses = function(r) {
938
989
  var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
939
990
  i ? r.error(s) : o && r.complete();
940
991
  }, t.prototype.asObservable = function() {
941
- var r = new ft();
992
+ var r = new bt();
942
993
  return r.source = this, r;
943
994
  }, t.create = function(r, n) {
944
- return new bt(r, n);
995
+ return new gt(r, n);
945
996
  }, t;
946
- }(ft), bt = function(e) {
997
+ }(bt), gt = function(e) {
947
998
  U(t, e);
948
999
  function t(r, n) {
949
1000
  var i = e.call(this) || this;
@@ -960,17 +1011,17 @@ var an = $t(function(e) {
960
1011
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
961
1012
  }, t.prototype._subscribe = function(r) {
962
1013
  var n, i;
963
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : jt;
1014
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Xt;
964
1015
  }, t;
965
- }(Xt), Wt = {
1016
+ }(Qt), Yt = {
966
1017
  now: function() {
967
- return (Wt.delegate || Date).now();
1018
+ return (Yt.delegate || Date).now();
968
1019
  },
969
1020
  delegate: void 0
970
- }, un = function(e) {
1021
+ }, fn = function(e) {
971
1022
  U(t, e);
972
1023
  function t(r, n, i) {
973
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Wt);
1024
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Yt);
974
1025
  var s = e.call(this) || this;
975
1026
  return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
976
1027
  }
@@ -990,15 +1041,15 @@ var an = $t(function(e) {
990
1041
  u && s.splice(0, u + 1);
991
1042
  }
992
1043
  }, t;
993
- }(Xt);
994
- const dt = [], pt = {}, hn = (e, t = 0) => {
995
- if (dt.indexOf(e) == -1) {
996
- const r = new un(t);
997
- pt[e] = r, dt.push(e);
1044
+ }(Qt);
1045
+ const yt = [], vt = {}, mn = (e, t = 0) => {
1046
+ if (yt.indexOf(e) == -1) {
1047
+ const r = new fn(t);
1048
+ vt[e] = r, yt.push(e);
998
1049
  }
999
- return pt[e];
1050
+ return vt[e];
1000
1051
  }, Z = [];
1001
- function ln(e, t) {
1052
+ function dn(e, t) {
1002
1053
  return {
1003
1054
  subscribe: Ae(e, t).subscribe
1004
1055
  };
@@ -1007,7 +1058,7 @@ function Ae(e, t = P) {
1007
1058
  let r;
1008
1059
  const n = /* @__PURE__ */ new Set();
1009
1060
  function i(a) {
1010
- if (It(e, a) && (e = a, r)) {
1061
+ if (Rt(e, a) && (e = a, r)) {
1011
1062
  const h = !Z.length;
1012
1063
  for (const u of n)
1013
1064
  u[1](), Z.push(u, e);
@@ -1034,7 +1085,7 @@ function se(e, t, r) {
1034
1085
  if (!i.every(Boolean))
1035
1086
  throw new Error("derived() expects stores as input, got a falsy value");
1036
1087
  const s = t.length < 2;
1037
- return ln(r, (o, a) => {
1088
+ return dn(r, (o, a) => {
1038
1089
  let h = !1;
1039
1090
  const u = [];
1040
1091
  let l = 0, f = P;
@@ -1044,86 +1095,86 @@ function se(e, t, r) {
1044
1095
  f();
1045
1096
  const p = t(n ? u[0] : u, o, a);
1046
1097
  s ? o(p) : f = Te(p) ? p : P;
1047
- }, b = i.map(
1048
- (p, d) => Ct(
1098
+ }, d = i.map(
1099
+ (p, b) => Gt(
1049
1100
  p,
1050
1101
  (w) => {
1051
- u[d] = w, l &= ~(1 << d), h && c();
1102
+ u[b] = w, l &= ~(1 << b), h && c();
1052
1103
  },
1053
1104
  () => {
1054
- l |= 1 << d;
1105
+ l |= 1 << b;
1055
1106
  }
1056
1107
  )
1057
1108
  );
1058
1109
  return h = !0, c(), function() {
1059
- re(b), f(), h = !1;
1110
+ re(d), f(), h = !1;
1060
1111
  };
1061
1112
  });
1062
1113
  }
1063
- function cn(e) {
1114
+ function bn(e) {
1064
1115
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1065
1116
  }
1066
- var fn = function(t) {
1067
- return mn(t) && !bn(t);
1117
+ var pn = function(t) {
1118
+ return gn(t) && !yn(t);
1068
1119
  };
1069
- function mn(e) {
1120
+ function gn(e) {
1070
1121
  return !!e && typeof e == "object";
1071
1122
  }
1072
- function bn(e) {
1123
+ function yn(e) {
1073
1124
  var t = Object.prototype.toString.call(e);
1074
- return t === "[object RegExp]" || t === "[object Date]" || gn(e);
1125
+ return t === "[object RegExp]" || t === "[object Date]" || En(e);
1075
1126
  }
1076
- var dn = typeof Symbol == "function" && Symbol.for, pn = dn ? Symbol.for("react.element") : 60103;
1077
- function gn(e) {
1078
- return e.$$typeof === pn;
1127
+ var vn = typeof Symbol == "function" && Symbol.for, _n = vn ? Symbol.for("react.element") : 60103;
1128
+ function En(e) {
1129
+ return e.$$typeof === _n;
1079
1130
  }
1080
- function yn(e) {
1131
+ function xn(e) {
1081
1132
  return Array.isArray(e) ? [] : {};
1082
1133
  }
1083
1134
  function le(e, t) {
1084
- return t.clone !== !1 && t.isMergeableObject(e) ? J(yn(e), e, t) : e;
1135
+ return t.clone !== !1 && t.isMergeableObject(e) ? J(xn(e), e, t) : e;
1085
1136
  }
1086
- function vn(e, t, r) {
1137
+ function Sn(e, t, r) {
1087
1138
  return e.concat(t).map(function(n) {
1088
1139
  return le(n, r);
1089
1140
  });
1090
1141
  }
1091
- function _n(e, t) {
1142
+ function wn(e, t) {
1092
1143
  if (!t.customMerge)
1093
1144
  return J;
1094
1145
  var r = t.customMerge(e);
1095
1146
  return typeof r == "function" ? r : J;
1096
1147
  }
1097
- function En(e) {
1148
+ function Tn(e) {
1098
1149
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1099
1150
  return Object.propertyIsEnumerable.call(e, t);
1100
1151
  }) : [];
1101
1152
  }
1102
- function gt(e) {
1103
- return Object.keys(e).concat(En(e));
1153
+ function _t(e) {
1154
+ return Object.keys(e).concat(Tn(e));
1104
1155
  }
1105
- function zt(e, t) {
1156
+ function qt(e, t) {
1106
1157
  try {
1107
1158
  return t in e;
1108
1159
  } catch {
1109
1160
  return !1;
1110
1161
  }
1111
1162
  }
1112
- function xn(e, t) {
1113
- return zt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1163
+ function Hn(e, t) {
1164
+ return qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1114
1165
  }
1115
- function Sn(e, t, r) {
1166
+ function An(e, t, r) {
1116
1167
  var n = {};
1117
- return r.isMergeableObject(e) && gt(e).forEach(function(i) {
1168
+ return r.isMergeableObject(e) && _t(e).forEach(function(i) {
1118
1169
  n[i] = le(e[i], r);
1119
- }), gt(t).forEach(function(i) {
1120
- xn(e, i) || (zt(e, i) && r.isMergeableObject(t[i]) ? n[i] = _n(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
1170
+ }), _t(t).forEach(function(i) {
1171
+ Hn(e, i) || (qt(e, i) && r.isMergeableObject(t[i]) ? n[i] = wn(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
1121
1172
  }), n;
1122
1173
  }
1123
1174
  function J(e, t, r) {
1124
- r = r || {}, r.arrayMerge = r.arrayMerge || vn, r.isMergeableObject = r.isMergeableObject || fn, r.cloneUnlessOtherwiseSpecified = le;
1175
+ r = r || {}, r.arrayMerge = r.arrayMerge || Sn, r.isMergeableObject = r.isMergeableObject || pn, r.cloneUnlessOtherwiseSpecified = le;
1125
1176
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
1126
- return s ? n ? r.arrayMerge(e, t, r) : Sn(e, t, r) : le(t, r);
1177
+ return s ? n ? r.arrayMerge(e, t, r) : An(e, t, r) : le(t, r);
1127
1178
  }
1128
1179
  J.all = function(t, r) {
1129
1180
  if (!Array.isArray(t))
@@ -1132,56 +1183,58 @@ J.all = function(t, r) {
1132
1183
  return J(n, i, r);
1133
1184
  }, {});
1134
1185
  };
1135
- var wn = J, Tn = wn;
1136
- const Hn = /* @__PURE__ */ cn(Tn);
1137
- function Me(e, t) {
1138
- var r = t && t.cache ? t.cache : In, n = t && t.serializer ? t.serializer : On, i = t && t.strategy ? t.strategy : Pn;
1186
+ var Bn = J, Pn = Bn;
1187
+ const Nn = /* @__PURE__ */ bn(Pn);
1188
+ function Re(e, t) {
1189
+ var r = t && t.cache ? t.cache : Rn, n = t && t.serializer ? t.serializer : Mn, i = t && t.strategy ? t.strategy : Ln;
1139
1190
  return i(e, {
1140
1191
  cache: r,
1141
1192
  serializer: n
1142
1193
  });
1143
1194
  }
1144
- function An(e) {
1195
+ function On(e) {
1145
1196
  return e == null || typeof e == "number" || typeof e == "boolean";
1146
1197
  }
1147
- function Bn(e, t, r, n) {
1148
- var i = An(n) ? n : r(n), s = t.get(i);
1198
+ function Jt(e, t, r, n) {
1199
+ var i = On(n) ? n : r(n), s = t.get(i);
1149
1200
  return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
1150
1201
  }
1151
- function Zt(e, t, r) {
1202
+ function Kt(e, t, r) {
1152
1203
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
1153
1204
  return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
1154
1205
  }
1155
- function Qt(e, t, r, n, i) {
1206
+ function nt(e, t, r, n, i) {
1156
1207
  return r.bind(t, e, n, i);
1157
1208
  }
1158
- function Pn(e, t) {
1159
- var r = e.length === 1 ? Bn : Zt;
1160
- return Qt(e, this, r, t.cache.create(), t.serializer);
1209
+ function Ln(e, t) {
1210
+ var r = e.length === 1 ? Jt : Kt;
1211
+ return nt(e, this, r, t.cache.create(), t.serializer);
1212
+ }
1213
+ function In(e, t) {
1214
+ return nt(e, this, Kt, t.cache.create(), t.serializer);
1161
1215
  }
1162
- function Nn(e, t) {
1163
- return Qt(e, this, Zt, t.cache.create(), t.serializer);
1216
+ function Cn(e, t) {
1217
+ return nt(e, this, Jt, t.cache.create(), t.serializer);
1164
1218
  }
1165
- var On = function() {
1219
+ var Mn = function() {
1166
1220
  return JSON.stringify(arguments);
1167
- }, Ln = (
1168
- /** @class */
1169
- function() {
1170
- function e() {
1171
- this.cache = /* @__PURE__ */ Object.create(null);
1172
- }
1173
- return e.prototype.get = function(t) {
1174
- return this.cache[t];
1175
- }, e.prototype.set = function(t, r) {
1176
- this.cache[t] = r;
1177
- }, e;
1178
- }()
1179
- ), In = {
1221
+ };
1222
+ function it() {
1223
+ this.cache = /* @__PURE__ */ Object.create(null);
1224
+ }
1225
+ it.prototype.get = function(e) {
1226
+ return this.cache[e];
1227
+ };
1228
+ it.prototype.set = function(e, t) {
1229
+ this.cache[e] = t;
1230
+ };
1231
+ var Rn = {
1180
1232
  create: function() {
1181
- return new Ln();
1233
+ return new it();
1182
1234
  }
1183
- }, Re = {
1184
- variadic: Nn
1235
+ }, Ge = {
1236
+ variadic: In,
1237
+ monadic: Cn
1185
1238
  }, g;
1186
1239
  (function(e) {
1187
1240
  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";
@@ -1194,43 +1247,43 @@ var K;
1194
1247
  (function(e) {
1195
1248
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1196
1249
  })(K || (K = {}));
1197
- function yt(e) {
1250
+ function Et(e) {
1198
1251
  return e.type === x.literal;
1199
1252
  }
1200
- function Cn(e) {
1253
+ function Gn(e) {
1201
1254
  return e.type === x.argument;
1202
1255
  }
1203
- function Yt(e) {
1256
+ function er(e) {
1204
1257
  return e.type === x.number;
1205
1258
  }
1206
- function qt(e) {
1259
+ function tr(e) {
1207
1260
  return e.type === x.date;
1208
1261
  }
1209
- function Jt(e) {
1262
+ function rr(e) {
1210
1263
  return e.type === x.time;
1211
1264
  }
1212
- function Kt(e) {
1265
+ function nr(e) {
1213
1266
  return e.type === x.select;
1214
1267
  }
1215
- function er(e) {
1268
+ function ir(e) {
1216
1269
  return e.type === x.plural;
1217
1270
  }
1218
- function Mn(e) {
1271
+ function Un(e) {
1219
1272
  return e.type === x.pound;
1220
1273
  }
1221
- function tr(e) {
1274
+ function sr(e) {
1222
1275
  return e.type === x.tag;
1223
1276
  }
1224
- function rr(e) {
1277
+ function or(e) {
1225
1278
  return !!(e && typeof e == "object" && e.type === K.number);
1226
1279
  }
1227
- function Ze(e) {
1280
+ function Qe(e) {
1228
1281
  return !!(e && typeof e == "object" && e.type === K.dateTime);
1229
1282
  }
1230
- var nr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Rn = /(?:[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;
1231
- function Gn(e) {
1283
+ var ar = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dn = /(?:[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;
1284
+ function Fn(e) {
1232
1285
  var t = {};
1233
- return e.replace(Rn, function(r) {
1286
+ return e.replace(Dn, function(r) {
1234
1287
  var n = r.length;
1235
1288
  switch (r[0]) {
1236
1289
  case "G":
@@ -1319,11 +1372,11 @@ function Gn(e) {
1319
1372
  return "";
1320
1373
  }), t;
1321
1374
  }
1322
- var Un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1323
- function Dn(e) {
1375
+ var $n = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1376
+ function jn(e) {
1324
1377
  if (e.length === 0)
1325
1378
  throw new Error("Number skeleton cannot be empty");
1326
- for (var t = e.split(Un).filter(function(c) {
1379
+ for (var t = e.split($n).filter(function(c) {
1327
1380
  return c.length > 0;
1328
1381
  }), r = [], n = 0, i = t; n < i.length; n++) {
1329
1382
  var s = i[n], o = s.split("/");
@@ -1338,17 +1391,17 @@ function Dn(e) {
1338
1391
  }
1339
1392
  return r;
1340
1393
  }
1341
- function Fn(e) {
1394
+ function kn(e) {
1342
1395
  return e.replace(/^(.*?)-/, "");
1343
1396
  }
1344
- var vt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ir = /^(@+)?(\+|#+)?[rs]?$/g, $n = /(\*)(0+)|(#+)(0+)|(0+)/g, sr = /^(0+)$/;
1345
- function _t(e) {
1397
+ var xt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ur = /^(@+)?(\+|#+)?[rs]?$/g, Vn = /(\*)(0+)|(#+)(0+)|(0+)/g, hr = /^(0+)$/;
1398
+ function St(e) {
1346
1399
  var t = {};
1347
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ir, function(r, n, i) {
1400
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ur, function(r, n, i) {
1348
1401
  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)), "";
1349
1402
  }), t;
1350
1403
  }
1351
- function or(e) {
1404
+ function lr(e) {
1352
1405
  switch (e) {
1353
1406
  case "sign-auto":
1354
1407
  return {
@@ -1388,7 +1441,7 @@ function or(e) {
1388
1441
  };
1389
1442
  }
1390
1443
  }
1391
- function jn(e) {
1444
+ function Xn(e) {
1392
1445
  var t;
1393
1446
  if (e[0] === "E" && e[1] === "E" ? (t = {
1394
1447
  notation: "engineering"
@@ -1396,17 +1449,17 @@ function jn(e) {
1396
1449
  notation: "scientific"
1397
1450
  }, e = e.slice(1)), t) {
1398
1451
  var r = e.slice(0, 2);
1399
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !sr.test(e))
1452
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !hr.test(e))
1400
1453
  throw new Error("Malformed concise eng/scientific notation");
1401
1454
  t.minimumIntegerDigits = e.length;
1402
1455
  }
1403
1456
  return t;
1404
1457
  }
1405
- function Et(e) {
1406
- var t = {}, r = or(e);
1458
+ function wt(e) {
1459
+ var t = {}, r = lr(e);
1407
1460
  return r || t;
1408
1461
  }
1409
- function kn(e) {
1462
+ function Wn(e) {
1410
1463
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1411
1464
  var i = n[r];
1412
1465
  switch (i.stem) {
@@ -1430,7 +1483,7 @@ function kn(e) {
1430
1483
  continue;
1431
1484
  case "measure-unit":
1432
1485
  case "unit":
1433
- t.style = "unit", t.unit = Fn(i.options[0]);
1486
+ t.style = "unit", t.unit = kn(i.options[0]);
1434
1487
  continue;
1435
1488
  case "compact-short":
1436
1489
  case "K":
@@ -1442,12 +1495,12 @@ function kn(e) {
1442
1495
  continue;
1443
1496
  case "scientific":
1444
1497
  t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1445
- return v(v({}, h), Et(u));
1498
+ return v(v({}, h), wt(u));
1446
1499
  }, {}));
1447
1500
  continue;
1448
1501
  case "engineering":
1449
1502
  t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1450
- return v(v({}, h), Et(u));
1503
+ return v(v({}, h), wt(u));
1451
1504
  }, {}));
1452
1505
  continue;
1453
1506
  case "notation-simple":
@@ -1492,40 +1545,40 @@ function kn(e) {
1492
1545
  case "integer-width":
1493
1546
  if (i.options.length > 1)
1494
1547
  throw new RangeError("integer-width stems only accept a single optional option");
1495
- i.options[0].replace($n, function(h, u, l, f, c, b) {
1548
+ i.options[0].replace(Vn, function(h, u, l, f, c, d) {
1496
1549
  if (u)
1497
1550
  t.minimumIntegerDigits = l.length;
1498
1551
  else {
1499
1552
  if (f && c)
1500
1553
  throw new Error("We currently do not support maximum integer digits");
1501
- if (b)
1554
+ if (d)
1502
1555
  throw new Error("We currently do not support exact integer digits");
1503
1556
  }
1504
1557
  return "";
1505
1558
  });
1506
1559
  continue;
1507
1560
  }
1508
- if (sr.test(i.stem)) {
1561
+ if (hr.test(i.stem)) {
1509
1562
  t.minimumIntegerDigits = i.stem.length;
1510
1563
  continue;
1511
1564
  }
1512
- if (vt.test(i.stem)) {
1565
+ if (xt.test(i.stem)) {
1513
1566
  if (i.options.length > 1)
1514
1567
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1515
- i.stem.replace(vt, function(h, u, l, f, c, b) {
1516
- return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1568
+ i.stem.replace(xt, function(h, u, l, f, c, d) {
1569
+ return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1517
1570
  });
1518
1571
  var s = i.options[0];
1519
- s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), _t(s)));
1572
+ s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), St(s)));
1520
1573
  continue;
1521
1574
  }
1522
- if (ir.test(i.stem)) {
1523
- t = v(v({}, t), _t(i.stem));
1575
+ if (ur.test(i.stem)) {
1576
+ t = v(v({}, t), St(i.stem));
1524
1577
  continue;
1525
1578
  }
1526
- var o = or(i.stem);
1579
+ var o = lr(i.stem);
1527
1580
  o && (t = v(v({}, t), o));
1528
- var a = jn(i.stem);
1581
+ var a = Xn(i.stem);
1529
1582
  a && (t = v(v({}, t), a));
1530
1583
  }
1531
1584
  return t;
@@ -2945,22 +2998,23 @@ var ye = {
2945
2998
  "h"
2946
2999
  ]
2947
3000
  };
2948
- function Vn(e, t) {
3001
+ function zn(e, t) {
2949
3002
  for (var r = "", n = 0; n < e.length; n++) {
2950
3003
  var i = e.charAt(n);
2951
3004
  if (i === "j") {
2952
3005
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2953
3006
  s++, n++;
2954
- var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Xn(t);
3007
+ var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Zn(t);
2955
3008
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2956
3009
  r += h;
2957
3010
  for (; o-- > 0; )
2958
3011
  r = u + r;
2959
- } else i === "J" ? r += "H" : r += i;
3012
+ } else
3013
+ i === "J" ? r += "H" : r += i;
2960
3014
  }
2961
3015
  return r;
2962
3016
  }
2963
- function Xn(e) {
3017
+ function Zn(e) {
2964
3018
  var t = e.hourCycle;
2965
3019
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2966
3020
  e.hourCycles && // @ts-ignore
@@ -2982,20 +3036,20 @@ function Xn(e) {
2982
3036
  var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
2983
3037
  return i[0];
2984
3038
  }
2985
- var Ge, Wn = new RegExp("^".concat(nr.source, "*")), zn = new RegExp("".concat(nr.source, "*$"));
3039
+ var Ue, Qn = new RegExp("^".concat(ar.source, "*")), Yn = new RegExp("".concat(ar.source, "*$"));
2986
3040
  function y(e, t) {
2987
3041
  return { start: e, end: t };
2988
3042
  }
2989
- var Zn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Qn = !!String.fromCodePoint, Yn = !!Object.fromEntries, qn = !!String.prototype.codePointAt, Jn = !!String.prototype.trimStart, Kn = !!String.prototype.trimEnd, ei = !!Number.isSafeInteger, ti = ei ? Number.isSafeInteger : function(e) {
3043
+ var qn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Jn = !!String.fromCodePoint, Kn = !!Object.fromEntries, ei = !!String.prototype.codePointAt, ti = !!String.prototype.trimStart, ri = !!String.prototype.trimEnd, ni = !!Number.isSafeInteger, ii = ni ? Number.isSafeInteger : function(e) {
2990
3044
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2991
- }, Qe = !0;
3045
+ }, Ye = !0;
2992
3046
  try {
2993
- var ri = ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2994
- Qe = ((Ge = ri.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
3047
+ var si = fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3048
+ Ye = ((Ue = si.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
2995
3049
  } catch {
2996
- Qe = !1;
3050
+ Ye = !1;
2997
3051
  }
2998
- var xt = Zn ? (
3052
+ var Tt = qn ? (
2999
3053
  // Native
3000
3054
  function(t, r, n) {
3001
3055
  return t.startsWith(r, n);
@@ -3005,7 +3059,7 @@ var xt = Zn ? (
3005
3059
  function(t, r, n) {
3006
3060
  return t.slice(n, n + r.length) === r;
3007
3061
  }
3008
- ), Ye = Qn ? String.fromCodePoint : (
3062
+ ), qe = Jn ? String.fromCodePoint : (
3009
3063
  // IE11
3010
3064
  function() {
3011
3065
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3017,9 +3071,9 @@ var xt = Zn ? (
3017
3071
  }
3018
3072
  return n;
3019
3073
  }
3020
- ), St = (
3074
+ ), Ht = (
3021
3075
  // native
3022
- Yn ? Object.fromEntries : (
3076
+ Kn ? Object.fromEntries : (
3023
3077
  // Ponyfill
3024
3078
  function(t) {
3025
3079
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3029,7 +3083,7 @@ var xt = Zn ? (
3029
3083
  return r;
3030
3084
  }
3031
3085
  )
3032
- ), ar = qn ? (
3086
+ ), cr = ei ? (
3033
3087
  // Native
3034
3088
  function(t, r) {
3035
3089
  return t.codePointAt(r);
@@ -3043,7 +3097,7 @@ var xt = Zn ? (
3043
3097
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
3044
3098
  }
3045
3099
  }
3046
- ), ni = Jn ? (
3100
+ ), oi = ti ? (
3047
3101
  // Native
3048
3102
  function(t) {
3049
3103
  return t.trimStart();
@@ -3051,9 +3105,9 @@ var xt = Zn ? (
3051
3105
  ) : (
3052
3106
  // Ponyfill
3053
3107
  function(t) {
3054
- return t.replace(Wn, "");
3108
+ return t.replace(Qn, "");
3055
3109
  }
3056
- ), ii = Kn ? (
3110
+ ), ai = ri ? (
3057
3111
  // Native
3058
3112
  function(t) {
3059
3113
  return t.trimEnd();
@@ -3061,32 +3115,32 @@ var xt = Zn ? (
3061
3115
  ) : (
3062
3116
  // Ponyfill
3063
3117
  function(t) {
3064
- return t.replace(zn, "");
3118
+ return t.replace(Yn, "");
3065
3119
  }
3066
3120
  );
3067
- function ur(e, t) {
3121
+ function fr(e, t) {
3068
3122
  return new RegExp(e, t);
3069
3123
  }
3070
- var qe;
3071
- if (Qe) {
3072
- var wt = ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3073
- qe = function(t, r) {
3124
+ var Je;
3125
+ if (Ye) {
3126
+ var At = fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3127
+ Je = function(t, r) {
3074
3128
  var n;
3075
- wt.lastIndex = r;
3076
- var i = wt.exec(t);
3129
+ At.lastIndex = r;
3130
+ var i = At.exec(t);
3077
3131
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3078
3132
  };
3079
3133
  } else
3080
- qe = function(t, r) {
3134
+ Je = function(t, r) {
3081
3135
  for (var n = []; ; ) {
3082
- var i = ar(t, r);
3083
- if (i === void 0 || hr(i) || ui(i))
3136
+ var i = cr(t, r);
3137
+ if (i === void 0 || mr(i) || ci(i))
3084
3138
  break;
3085
3139
  n.push(i), r += i >= 65536 ? 2 : 1;
3086
3140
  }
3087
- return Ye.apply(void 0, n);
3141
+ return qe.apply(void 0, n);
3088
3142
  };
3089
- var si = (
3143
+ var ui = (
3090
3144
  /** @class */
3091
3145
  function() {
3092
3146
  function e(t, r) {
@@ -3117,7 +3171,7 @@ var si = (
3117
3171
  if (n)
3118
3172
  break;
3119
3173
  return this.error(g.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
3120
- } else if (s === 60 && !this.ignoreTag && Je(this.peek() || 0)) {
3174
+ } else if (s === 60 && !this.ignoreTag && Ke(this.peek() || 0)) {
3121
3175
  var o = this.parseTag(t, r);
3122
3176
  if (o.err)
3123
3177
  return o;
@@ -3150,7 +3204,7 @@ var si = (
3150
3204
  return s;
3151
3205
  var o = s.val, a = this.clonePosition();
3152
3206
  if (this.bumpIf("</")) {
3153
- if (this.isEOF() || !Je(this.char()))
3207
+ if (this.isEOF() || !Ke(this.char()))
3154
3208
  return this.error(g.INVALID_TAG, y(a, this.clonePosition()));
3155
3209
  var h = this.clonePosition(), u = this.parseTagName();
3156
3210
  return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -3168,7 +3222,7 @@ var si = (
3168
3222
  return this.error(g.INVALID_TAG, y(n, this.clonePosition()));
3169
3223
  }, e.prototype.parseTagName = function() {
3170
3224
  var t = this.offset();
3171
- for (this.bump(); !this.isEOF() && ai(this.char()); )
3225
+ for (this.bump(); !this.isEOF() && li(this.char()); )
3172
3226
  this.bump();
3173
3227
  return this.message.slice(t, this.offset());
3174
3228
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3197,7 +3251,7 @@ var si = (
3197
3251
  };
3198
3252
  }, e.prototype.tryParseLeftAngleBracket = function() {
3199
3253
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3200
- !oi(this.peek() || 0)) ? (this.bump(), "<") : null;
3254
+ !hi(this.peek() || 0)) ? (this.bump(), "<") : null;
3201
3255
  }, e.prototype.tryParseQuote = function(t) {
3202
3256
  if (this.isEOF() || this.char() !== 39)
3203
3257
  return null;
@@ -3231,12 +3285,12 @@ var si = (
3231
3285
  r.push(n);
3232
3286
  this.bump();
3233
3287
  }
3234
- return Ye.apply(void 0, r);
3288
+ return qe.apply(void 0, r);
3235
3289
  }, e.prototype.tryParseUnquoted = function(t, r) {
3236
3290
  if (this.isEOF())
3237
3291
  return null;
3238
3292
  var n = this.char();
3239
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ye(n));
3293
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qe(n));
3240
3294
  }, e.prototype.parseArgument = function(t, r) {
3241
3295
  var n = this.clonePosition();
3242
3296
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3265,7 +3319,7 @@ var si = (
3265
3319
  return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
3266
3320
  }
3267
3321
  }, e.prototype.parseIdentifierIfPossible = function() {
3268
- var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
3322
+ var t = this.clonePosition(), r = this.offset(), n = Je(this.message, r), i = r + n.length;
3269
3323
  this.bumpTo(i);
3270
3324
  var s = this.clonePosition(), o = y(t, s);
3271
3325
  return { value: n, location: o };
@@ -3284,37 +3338,37 @@ var si = (
3284
3338
  var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3285
3339
  if (f.err)
3286
3340
  return f;
3287
- var c = ii(f.val);
3341
+ var c = ai(f.val);
3288
3342
  if (c.length === 0)
3289
3343
  return this.error(g.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
3290
- var b = y(l, this.clonePosition());
3291
- u = { style: c, styleLocation: b };
3344
+ var d = y(l, this.clonePosition());
3345
+ u = { style: c, styleLocation: d };
3292
3346
  }
3293
3347
  var p = this.tryParseArgumentClose(i);
3294
3348
  if (p.err)
3295
3349
  return p;
3296
- var d = y(i, this.clonePosition());
3297
- if (u && xt(u?.style, "::", 0)) {
3298
- var w = ni(u.style.slice(2));
3350
+ var b = y(i, this.clonePosition());
3351
+ if (u && Tt(u?.style, "::", 0)) {
3352
+ var w = oi(u.style.slice(2));
3299
3353
  if (a === "number") {
3300
3354
  var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
3301
3355
  return f.err ? f : {
3302
- val: { type: x.number, value: n, location: d, style: f.val },
3356
+ val: { type: x.number, value: n, location: b, style: f.val },
3303
3357
  err: null
3304
3358
  };
3305
3359
  } else {
3306
3360
  if (w.length === 0)
3307
- return this.error(g.EXPECT_DATE_TIME_SKELETON, d);
3361
+ return this.error(g.EXPECT_DATE_TIME_SKELETON, b);
3308
3362
  var C = w;
3309
- this.locale && (C = Vn(w, this.locale));
3363
+ this.locale && (C = zn(w, this.locale));
3310
3364
  var c = {
3311
3365
  type: K.dateTime,
3312
3366
  pattern: C,
3313
3367
  location: u.styleLocation,
3314
- parsedOptions: this.shouldParseSkeletons ? Gn(C) : {}
3368
+ parsedOptions: this.shouldParseSkeletons ? Fn(C) : {}
3315
3369
  }, N = a === "date" ? x.date : x.time;
3316
3370
  return {
3317
- val: { type: N, value: n, location: d, style: c },
3371
+ val: { type: N, value: n, location: b, style: c },
3318
3372
  err: null
3319
3373
  };
3320
3374
  }
@@ -3323,7 +3377,7 @@ var si = (
3323
3377
  val: {
3324
3378
  type: a === "number" ? x.number : a === "date" ? x.date : x.time,
3325
3379
  value: n,
3326
- location: d,
3380
+ location: b,
3327
3381
  style: (s = u?.style) !== null && s !== void 0 ? s : null
3328
3382
  },
3329
3383
  err: null
@@ -3357,7 +3411,7 @@ var si = (
3357
3411
  val: {
3358
3412
  type: x.select,
3359
3413
  value: n,
3360
- options: St(M.val),
3414
+ options: Ht(M.val),
3361
3415
  location: E
3362
3416
  },
3363
3417
  err: null
@@ -3365,7 +3419,7 @@ var si = (
3365
3419
  val: {
3366
3420
  type: x.plural,
3367
3421
  value: n,
3368
- options: St(M.val),
3422
+ options: Ht(M.val),
3369
3423
  offset: H,
3370
3424
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3371
3425
  location: E
@@ -3416,7 +3470,7 @@ var si = (
3416
3470
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3417
3471
  var n = [];
3418
3472
  try {
3419
- n = Dn(t);
3473
+ n = jn(t);
3420
3474
  } catch {
3421
3475
  return this.error(g.INVALID_NUMBER_SKELETON, r);
3422
3476
  }
@@ -3425,7 +3479,7 @@ var si = (
3425
3479
  type: K.number,
3426
3480
  tokens: n,
3427
3481
  location: r,
3428
- parsedOptions: this.shouldParseSkeletons ? kn(n) : {}
3482
+ parsedOptions: this.shouldParseSkeletons ? Wn(n) : {}
3429
3483
  },
3430
3484
  err: null
3431
3485
  };
@@ -3444,20 +3498,20 @@ var si = (
3444
3498
  if (h.has(u))
3445
3499
  return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3446
3500
  u === "other" && (o = !0), this.bumpSpace();
3447
- var b = this.clonePosition();
3501
+ var d = this.clonePosition();
3448
3502
  if (!this.bumpIf("{"))
3449
3503
  return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
3450
3504
  var p = this.parseMessage(t + 1, r, n);
3451
3505
  if (p.err)
3452
3506
  return p;
3453
- var d = this.tryParseArgumentClose(b);
3454
- if (d.err)
3455
- return d;
3507
+ var b = this.tryParseArgumentClose(d);
3508
+ if (b.err)
3509
+ return b;
3456
3510
  a.push([
3457
3511
  u,
3458
3512
  {
3459
3513
  value: p.val,
3460
- location: y(b, this.clonePosition())
3514
+ location: y(d, this.clonePosition())
3461
3515
  }
3462
3516
  ]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
3463
3517
  }
@@ -3473,7 +3527,7 @@ var si = (
3473
3527
  break;
3474
3528
  }
3475
3529
  var h = y(i, this.clonePosition());
3476
- return s ? (o *= n, ti(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
3530
+ return s ? (o *= n, ii(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
3477
3531
  }, e.prototype.offset = function() {
3478
3532
  return this.position.offset;
3479
3533
  }, e.prototype.isEOF = function() {
@@ -3488,7 +3542,7 @@ var si = (
3488
3542
  var t = this.position.offset;
3489
3543
  if (t >= this.message.length)
3490
3544
  throw Error("out of bound");
3491
- var r = ar(this.message, t);
3545
+ var r = cr(this.message, t);
3492
3546
  if (r === void 0)
3493
3547
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3494
3548
  return r;
@@ -3507,7 +3561,7 @@ var si = (
3507
3561
  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);
3508
3562
  }
3509
3563
  }, e.prototype.bumpIf = function(t) {
3510
- if (xt(this.message, t, this.offset())) {
3564
+ if (Tt(this.message, t, this.offset())) {
3511
3565
  for (var r = 0; r < t.length; r++)
3512
3566
  this.bump();
3513
3567
  return !0;
@@ -3529,7 +3583,7 @@ var si = (
3529
3583
  break;
3530
3584
  }
3531
3585
  }, e.prototype.bumpSpace = function() {
3532
- for (; !this.isEOF() && hr(this.char()); )
3586
+ for (; !this.isEOF() && mr(this.char()); )
3533
3587
  this.bump();
3534
3588
  }, e.prototype.peek = function() {
3535
3589
  if (this.isEOF())
@@ -3539,37 +3593,38 @@ var si = (
3539
3593
  }, e;
3540
3594
  }()
3541
3595
  );
3542
- function Je(e) {
3596
+ function Ke(e) {
3543
3597
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3544
3598
  }
3545
- function oi(e) {
3546
- return Je(e) || e === 47;
3599
+ function hi(e) {
3600
+ return Ke(e) || e === 47;
3547
3601
  }
3548
- function ai(e) {
3602
+ function li(e) {
3549
3603
  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;
3550
3604
  }
3551
- function hr(e) {
3605
+ function mr(e) {
3552
3606
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3553
3607
  }
3554
- function ui(e) {
3608
+ function ci(e) {
3555
3609
  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;
3556
3610
  }
3557
- function Ke(e) {
3611
+ function et(e) {
3558
3612
  e.forEach(function(t) {
3559
- if (delete t.location, Kt(t) || er(t))
3613
+ if (delete t.location, nr(t) || ir(t))
3560
3614
  for (var r in t.options)
3561
- delete t.options[r].location, Ke(t.options[r].value);
3562
- else Yt(t) && rr(t.style) || (qt(t) || Jt(t)) && Ze(t.style) ? delete t.style.location : tr(t) && Ke(t.children);
3615
+ delete t.options[r].location, et(t.options[r].value);
3616
+ else
3617
+ er(t) && or(t.style) || (tr(t) || rr(t)) && Qe(t.style) ? delete t.style.location : sr(t) && et(t.children);
3563
3618
  });
3564
3619
  }
3565
- function hi(e, t) {
3620
+ function fi(e, t) {
3566
3621
  t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3567
- var r = new si(e, t).parse();
3622
+ var r = new ui(e, t).parse();
3568
3623
  if (r.err) {
3569
3624
  var n = SyntaxError(g[r.err.kind]);
3570
3625
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3571
3626
  }
3572
- return t?.captureLocation || Ke(r.val), r.val;
3627
+ return t?.captureLocation || et(r.val), r.val;
3573
3628
  }
3574
3629
  var ee;
3575
3630
  (function(e) {
@@ -3587,7 +3642,7 @@ var Be = (
3587
3642
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3588
3643
  }, t;
3589
3644
  }(Error)
3590
- ), Tt = (
3645
+ ), Bt = (
3591
3646
  /** @class */
3592
3647
  function(e) {
3593
3648
  U(t, e);
@@ -3596,7 +3651,7 @@ var Be = (
3596
3651
  }
3597
3652
  return t;
3598
3653
  }(Be)
3599
- ), li = (
3654
+ ), mi = (
3600
3655
  /** @class */
3601
3656
  function(e) {
3602
3657
  U(t, e);
@@ -3605,7 +3660,7 @@ var Be = (
3605
3660
  }
3606
3661
  return t;
3607
3662
  }(Be)
3608
- ), ci = (
3663
+ ), di = (
3609
3664
  /** @class */
3610
3665
  function(e) {
3611
3666
  U(t, e);
@@ -3618,17 +3673,17 @@ var Be = (
3618
3673
  (function(e) {
3619
3674
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3620
3675
  })(A || (A = {}));
3621
- function fi(e) {
3676
+ function bi(e) {
3622
3677
  return e.length < 2 ? e : e.reduce(function(t, r) {
3623
3678
  var n = t[t.length - 1];
3624
3679
  return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
3625
3680
  }, []);
3626
3681
  }
3627
- function mi(e) {
3682
+ function pi(e) {
3628
3683
  return typeof e == "function";
3629
3684
  }
3630
3685
  function Ee(e, t, r, n, i, s, o) {
3631
- if (e.length === 1 && yt(e[0]))
3686
+ if (e.length === 1 && Et(e[0]))
3632
3687
  return [
3633
3688
  {
3634
3689
  type: A.literal,
@@ -3637,14 +3692,14 @@ function Ee(e, t, r, n, i, s, o) {
3637
3692
  ];
3638
3693
  for (var a = [], h = 0, u = e; h < u.length; h++) {
3639
3694
  var l = u[h];
3640
- if (yt(l)) {
3695
+ if (Et(l)) {
3641
3696
  a.push({
3642
3697
  type: A.literal,
3643
3698
  value: l.value
3644
3699
  });
3645
3700
  continue;
3646
3701
  }
3647
- if (Mn(l)) {
3702
+ if (Un(l)) {
3648
3703
  typeof s == "number" && a.push({
3649
3704
  type: A.literal,
3650
3705
  value: r.getNumberFormat(t).format(s)
@@ -3653,43 +3708,43 @@ function Ee(e, t, r, n, i, s, o) {
3653
3708
  }
3654
3709
  var f = l.value;
3655
3710
  if (!(i && f in i))
3656
- throw new ci(f, o);
3711
+ throw new di(f, o);
3657
3712
  var c = i[f];
3658
- if (Cn(l)) {
3713
+ if (Gn(l)) {
3659
3714
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3660
3715
  type: typeof c == "string" ? A.literal : A.object,
3661
3716
  value: c
3662
3717
  });
3663
3718
  continue;
3664
3719
  }
3665
- if (qt(l)) {
3666
- var b = typeof l.style == "string" ? n.date[l.style] : Ze(l.style) ? l.style.parsedOptions : void 0;
3720
+ if (tr(l)) {
3721
+ var d = typeof l.style == "string" ? n.date[l.style] : Qe(l.style) ? l.style.parsedOptions : void 0;
3667
3722
  a.push({
3668
3723
  type: A.literal,
3669
- value: r.getDateTimeFormat(t, b).format(c)
3724
+ value: r.getDateTimeFormat(t, d).format(c)
3670
3725
  });
3671
3726
  continue;
3672
3727
  }
3673
- if (Jt(l)) {
3674
- var b = typeof l.style == "string" ? n.time[l.style] : Ze(l.style) ? l.style.parsedOptions : n.time.medium;
3728
+ if (rr(l)) {
3729
+ var d = typeof l.style == "string" ? n.time[l.style] : Qe(l.style) ? l.style.parsedOptions : n.time.medium;
3675
3730
  a.push({
3676
3731
  type: A.literal,
3677
- value: r.getDateTimeFormat(t, b).format(c)
3732
+ value: r.getDateTimeFormat(t, d).format(c)
3678
3733
  });
3679
3734
  continue;
3680
3735
  }
3681
- if (Yt(l)) {
3682
- var b = typeof l.style == "string" ? n.number[l.style] : rr(l.style) ? l.style.parsedOptions : void 0;
3683
- b && b.scale && (c = c * (b.scale || 1)), a.push({
3736
+ if (er(l)) {
3737
+ var d = typeof l.style == "string" ? n.number[l.style] : or(l.style) ? l.style.parsedOptions : void 0;
3738
+ d && d.scale && (c = c * (d.scale || 1)), a.push({
3684
3739
  type: A.literal,
3685
- value: r.getNumberFormat(t, b).format(c)
3740
+ value: r.getNumberFormat(t, d).format(c)
3686
3741
  });
3687
3742
  continue;
3688
3743
  }
3689
- if (tr(l)) {
3690
- var p = l.children, d = l.value, w = i[d];
3691
- if (!mi(w))
3692
- throw new li(d, "function", o);
3744
+ if (sr(l)) {
3745
+ var p = l.children, b = l.value, w = i[b];
3746
+ if (!pi(w))
3747
+ throw new mi(b, "function", o);
3693
3748
  var C = Ee(p, t, r, n, i, s), N = w(C.map(function(H) {
3694
3749
  return H.value;
3695
3750
  }));
@@ -3700,14 +3755,14 @@ function Ee(e, t, r, n, i, s, o) {
3700
3755
  };
3701
3756
  }));
3702
3757
  }
3703
- if (Kt(l)) {
3758
+ if (nr(l)) {
3704
3759
  var T = l.options[c] || l.options.other;
3705
3760
  if (!T)
3706
- throw new Tt(l.value, c, Object.keys(l.options), o);
3761
+ throw new Bt(l.value, c, Object.keys(l.options), o);
3707
3762
  a.push.apply(a, Ee(T.value, t, r, n, i));
3708
3763
  continue;
3709
3764
  }
3710
- if (er(l)) {
3765
+ if (ir(l)) {
3711
3766
  var T = l.options["=".concat(c)];
3712
3767
  if (!T) {
3713
3768
  if (!Intl.PluralRules)
@@ -3718,24 +3773,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
3718
3773
  T = l.options[O] || l.options.other;
3719
3774
  }
3720
3775
  if (!T)
3721
- throw new Tt(l.value, c, Object.keys(l.options), o);
3776
+ throw new Bt(l.value, c, Object.keys(l.options), o);
3722
3777
  a.push.apply(a, Ee(T.value, t, r, n, i, c - (l.offset || 0)));
3723
3778
  continue;
3724
3779
  }
3725
3780
  }
3726
- return fi(a);
3781
+ return bi(a);
3727
3782
  }
3728
- function bi(e, t) {
3783
+ function gi(e, t) {
3729
3784
  return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3730
3785
  return r[n] = v(v({}, e[n]), t[n] || {}), r;
3731
3786
  }, {})) : e;
3732
3787
  }
3733
- function di(e, t) {
3788
+ function yi(e, t) {
3734
3789
  return t ? Object.keys(e).reduce(function(r, n) {
3735
- return r[n] = bi(e[n], t[n]), r;
3790
+ return r[n] = gi(e[n], t[n]), r;
3736
3791
  }, v({}, e)) : e;
3737
3792
  }
3738
- function Ue(e) {
3793
+ function De(e) {
3739
3794
  return {
3740
3795
  create: function() {
3741
3796
  return {
@@ -3749,39 +3804,39 @@ function Ue(e) {
3749
3804
  }
3750
3805
  };
3751
3806
  }
3752
- function pi(e) {
3807
+ function vi(e) {
3753
3808
  return e === void 0 && (e = {
3754
3809
  number: {},
3755
3810
  dateTime: {},
3756
3811
  pluralRules: {}
3757
3812
  }), {
3758
- getNumberFormat: Me(function() {
3813
+ getNumberFormat: Re(function() {
3759
3814
  for (var t, r = [], n = 0; n < arguments.length; n++)
3760
3815
  r[n] = arguments[n];
3761
3816
  return new ((t = Intl.NumberFormat).bind.apply(t, q([void 0], r, !1)))();
3762
3817
  }, {
3763
- cache: Ue(e.number),
3764
- strategy: Re.variadic
3818
+ cache: De(e.number),
3819
+ strategy: Ge.variadic
3765
3820
  }),
3766
- getDateTimeFormat: Me(function() {
3821
+ getDateTimeFormat: Re(function() {
3767
3822
  for (var t, r = [], n = 0; n < arguments.length; n++)
3768
3823
  r[n] = arguments[n];
3769
3824
  return new ((t = Intl.DateTimeFormat).bind.apply(t, q([void 0], r, !1)))();
3770
3825
  }, {
3771
- cache: Ue(e.dateTime),
3772
- strategy: Re.variadic
3826
+ cache: De(e.dateTime),
3827
+ strategy: Ge.variadic
3773
3828
  }),
3774
- getPluralRules: Me(function() {
3829
+ getPluralRules: Re(function() {
3775
3830
  for (var t, r = [], n = 0; n < arguments.length; n++)
3776
3831
  r[n] = arguments[n];
3777
3832
  return new ((t = Intl.PluralRules).bind.apply(t, q([void 0], r, !1)))();
3778
3833
  }, {
3779
- cache: Ue(e.pluralRules),
3780
- strategy: Re.variadic
3834
+ cache: De(e.pluralRules),
3835
+ strategy: Ge.variadic
3781
3836
  })
3782
3837
  };
3783
3838
  }
3784
- var gi = (
3839
+ var _i = (
3785
3840
  /** @class */
3786
3841
  function() {
3787
3842
  function e(t, r, n, i) {
@@ -3813,13 +3868,13 @@ var gi = (
3813
3868
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3814
3869
  var o = i || {};
3815
3870
  o.formatters;
3816
- var a = Zr(o, ["formatters"]);
3871
+ var a = Jr(o, ["formatters"]);
3817
3872
  this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
3818
3873
  } else
3819
3874
  this.ast = t;
3820
3875
  if (!Array.isArray(this.ast))
3821
3876
  throw new TypeError("A message must be provided as a String or AST.");
3822
- this.formats = di(e.formats, n), this.formatters = i && i.formatters || pi(this.formatterCache);
3877
+ this.formats = yi(e.formats, n), this.formatters = i && i.formatters || vi(this.formatterCache);
3823
3878
  }
3824
3879
  return Object.defineProperty(e, "defaultLocale", {
3825
3880
  get: function() {
@@ -3832,7 +3887,7 @@ var gi = (
3832
3887
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3833
3888
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3834
3889
  }
3835
- }, e.__parse = hi, e.formats = {
3890
+ }, e.__parse = fi, e.formats = {
3836
3891
  number: {
3837
3892
  integer: {
3838
3893
  maximumFractionDigits: 0
@@ -3893,7 +3948,7 @@ var gi = (
3893
3948
  }, e;
3894
3949
  }()
3895
3950
  );
3896
- function yi(e, t) {
3951
+ function Ei(e, t) {
3897
3952
  if (t == null)
3898
3953
  return;
3899
3954
  if (t in e)
@@ -3914,92 +3969,92 @@ function yi(e, t) {
3914
3969
  n = void 0;
3915
3970
  return n;
3916
3971
  }
3917
- const D = {}, vi = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), lr = (e, t) => {
3972
+ const D = {}, xi = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), dr = (e, t) => {
3918
3973
  if (t == null)
3919
3974
  return;
3920
3975
  if (t in D && e in D[t])
3921
3976
  return D[t][e];
3922
3977
  const r = Pe(t);
3923
3978
  for (let n = 0; n < r.length; n++) {
3924
- const i = r[n], s = Ei(i, e);
3979
+ const i = r[n], s = wi(i, e);
3925
3980
  if (s)
3926
- return vi(e, t, s);
3981
+ return xi(e, t, s);
3927
3982
  }
3928
3983
  };
3929
- let rt;
3984
+ let st;
3930
3985
  const me = Ae({});
3931
- function _i(e) {
3932
- return rt[e] || null;
3986
+ function Si(e) {
3987
+ return st[e] || null;
3933
3988
  }
3934
- function cr(e) {
3935
- return e in rt;
3989
+ function br(e) {
3990
+ return e in st;
3936
3991
  }
3937
- function Ei(e, t) {
3938
- if (!cr(e))
3992
+ function wi(e, t) {
3993
+ if (!br(e))
3939
3994
  return null;
3940
- const r = _i(e);
3941
- return yi(r, t);
3995
+ const r = Si(e);
3996
+ return Ei(r, t);
3942
3997
  }
3943
- function xi(e) {
3998
+ function Ti(e) {
3944
3999
  if (e == null)
3945
4000
  return;
3946
4001
  const t = Pe(e);
3947
4002
  for (let r = 0; r < t.length; r++) {
3948
4003
  const n = t[r];
3949
- if (cr(n))
4004
+ if (br(n))
3950
4005
  return n;
3951
4006
  }
3952
4007
  }
3953
- function fr(e, ...t) {
3954
- delete D[e], me.update((r) => (r[e] = Hn.all([r[e] || {}, ...t]), r));
4008
+ function pr(e, ...t) {
4009
+ delete D[e], me.update((r) => (r[e] = Nn.all([r[e] || {}, ...t]), r));
3955
4010
  }
3956
4011
  se(
3957
4012
  [me],
3958
4013
  ([e]) => Object.keys(e)
3959
4014
  );
3960
- me.subscribe((e) => rt = e);
4015
+ me.subscribe((e) => st = e);
3961
4016
  const xe = {};
3962
- function Si(e, t) {
4017
+ function Hi(e, t) {
3963
4018
  xe[e].delete(t), xe[e].size === 0 && delete xe[e];
3964
4019
  }
3965
- function mr(e) {
4020
+ function gr(e) {
3966
4021
  return xe[e];
3967
4022
  }
3968
- function wi(e) {
4023
+ function Ai(e) {
3969
4024
  return Pe(e).map((t) => {
3970
- const r = mr(t);
4025
+ const r = gr(t);
3971
4026
  return [t, r ? [...r] : []];
3972
4027
  }).filter(([, t]) => t.length > 0);
3973
4028
  }
3974
- function et(e) {
4029
+ function tt(e) {
3975
4030
  return e == null ? !1 : Pe(e).some(
3976
4031
  (t) => {
3977
4032
  var r;
3978
- return (r = mr(t)) == null ? void 0 : r.size;
4033
+ return (r = gr(t)) == null ? void 0 : r.size;
3979
4034
  }
3980
4035
  );
3981
4036
  }
3982
- function Ti(e, t) {
4037
+ function Bi(e, t) {
3983
4038
  return Promise.all(
3984
- t.map((n) => (Si(e, n), n().then((i) => i.default || i)))
3985
- ).then((n) => fr(e, ...n));
4039
+ t.map((n) => (Hi(e, n), n().then((i) => i.default || i)))
4040
+ ).then((n) => pr(e, ...n));
3986
4041
  }
3987
4042
  const ae = {};
3988
- function br(e) {
3989
- if (!et(e))
4043
+ function yr(e) {
4044
+ if (!tt(e))
3990
4045
  return e in ae ? ae[e] : Promise.resolve();
3991
- const t = wi(e);
4046
+ const t = Ai(e);
3992
4047
  return ae[e] = Promise.all(
3993
4048
  t.map(
3994
- ([r, n]) => Ti(r, n)
4049
+ ([r, n]) => Bi(r, n)
3995
4050
  )
3996
4051
  ).then(() => {
3997
- if (et(e))
3998
- return br(e);
4052
+ if (tt(e))
4053
+ return yr(e);
3999
4054
  delete ae[e];
4000
4055
  }), ae[e];
4001
4056
  }
4002
- const Hi = {
4057
+ const Pi = {
4003
4058
  number: {
4004
4059
  scientific: { notation: "scientific" },
4005
4060
  engineering: { notation: "engineering" },
@@ -4028,57 +4083,57 @@ const Hi = {
4028
4083
  timeZoneName: "short"
4029
4084
  }
4030
4085
  }
4031
- }, Ai = {
4086
+ }, Ni = {
4032
4087
  fallbackLocale: null,
4033
4088
  loadingDelay: 200,
4034
- formats: Hi,
4089
+ formats: Pi,
4035
4090
  warnOnMissingMessages: !0,
4036
4091
  handleMissingMessage: void 0,
4037
4092
  ignoreTag: !0
4038
- }, Bi = Ai;
4093
+ }, Oi = Ni;
4039
4094
  function te() {
4040
- return Bi;
4095
+ return Oi;
4041
4096
  }
4042
- const De = Ae(!1);
4043
- var Pi = Object.defineProperty, Ni = Object.defineProperties, Oi = Object.getOwnPropertyDescriptors, Ht = Object.getOwnPropertySymbols, Li = Object.prototype.hasOwnProperty, Ii = Object.prototype.propertyIsEnumerable, At = (e, t, r) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ci = (e, t) => {
4097
+ const Fe = Ae(!1);
4098
+ var Li = Object.defineProperty, Ii = Object.defineProperties, Ci = Object.getOwnPropertyDescriptors, Pt = Object.getOwnPropertySymbols, Mi = Object.prototype.hasOwnProperty, Ri = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? Li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gi = (e, t) => {
4044
4099
  for (var r in t || (t = {}))
4045
- Li.call(t, r) && At(e, r, t[r]);
4046
- if (Ht)
4047
- for (var r of Ht(t))
4048
- Ii.call(t, r) && At(e, r, t[r]);
4100
+ Mi.call(t, r) && Nt(e, r, t[r]);
4101
+ if (Pt)
4102
+ for (var r of Pt(t))
4103
+ Ri.call(t, r) && Nt(e, r, t[r]);
4049
4104
  return e;
4050
- }, Mi = (e, t) => Ni(e, Oi(t));
4051
- let tt;
4105
+ }, Ui = (e, t) => Ii(e, Ci(t));
4106
+ let rt;
4052
4107
  const Se = Ae(null);
4053
- function Bt(e) {
4108
+ function Ot(e) {
4054
4109
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4055
4110
  }
4056
4111
  function Pe(e, t = te().fallbackLocale) {
4057
- const r = Bt(e);
4058
- return t ? [.../* @__PURE__ */ new Set([...r, ...Bt(t)])] : r;
4112
+ const r = Ot(e);
4113
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Ot(t)])] : r;
4059
4114
  }
4060
4115
  function V() {
4061
- return tt ?? void 0;
4116
+ return rt ?? void 0;
4062
4117
  }
4063
4118
  Se.subscribe((e) => {
4064
- tt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4119
+ rt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4065
4120
  });
4066
- const Ri = (e) => {
4067
- if (e && xi(e) && et(e)) {
4121
+ const Di = (e) => {
4122
+ if (e && Ti(e) && tt(e)) {
4068
4123
  const { loadingDelay: t } = te();
4069
4124
  let r;
4070
4125
  return typeof window < "u" && V() != null && t ? r = window.setTimeout(
4071
- () => De.set(!0),
4126
+ () => Fe.set(!0),
4072
4127
  t
4073
- ) : De.set(!0), br(e).then(() => {
4128
+ ) : Fe.set(!0), yr(e).then(() => {
4074
4129
  Se.set(e);
4075
4130
  }).finally(() => {
4076
- clearTimeout(r), De.set(!1);
4131
+ clearTimeout(r), Fe.set(!1);
4077
4132
  });
4078
4133
  }
4079
4134
  return Se.set(e);
4080
- }, be = Mi(Ci({}, Se), {
4081
- set: Ri
4135
+ }, de = Ui(Gi({}, Se), {
4136
+ set: Di
4082
4137
  }), Ne = (e) => {
4083
4138
  const t = /* @__PURE__ */ Object.create(null);
4084
4139
  return (n) => {
@@ -4086,20 +4141,20 @@ const Ri = (e) => {
4086
4141
  return i in t ? t[i] : t[i] = e(n);
4087
4142
  };
4088
4143
  };
4089
- var Gi = Object.defineProperty, we = Object.getOwnPropertySymbols, dr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable, Pt = (e, t, r) => t in e ? Gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nt = (e, t) => {
4144
+ var Fi = Object.defineProperty, we = Object.getOwnPropertySymbols, vr = Object.prototype.hasOwnProperty, _r = Object.prototype.propertyIsEnumerable, Lt = (e, t, r) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ot = (e, t) => {
4090
4145
  for (var r in t || (t = {}))
4091
- dr.call(t, r) && Pt(e, r, t[r]);
4146
+ vr.call(t, r) && Lt(e, r, t[r]);
4092
4147
  if (we)
4093
4148
  for (var r of we(t))
4094
- pr.call(t, r) && Pt(e, r, t[r]);
4149
+ _r.call(t, r) && Lt(e, r, t[r]);
4095
4150
  return e;
4096
4151
  }, oe = (e, t) => {
4097
4152
  var r = {};
4098
4153
  for (var n in e)
4099
- dr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4154
+ vr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4100
4155
  if (e != null && we)
4101
4156
  for (var n of we(e))
4102
- t.indexOf(n) < 0 && pr.call(e, n) && (r[n] = e[n]);
4157
+ t.indexOf(n) < 0 && _r.call(e, n) && (r[n] = e[n]);
4103
4158
  return r;
4104
4159
  };
4105
4160
  const ce = (e, t) => {
@@ -4107,21 +4162,21 @@ const ce = (e, t) => {
4107
4162
  if (e in r && t in r[e])
4108
4163
  return r[e][t];
4109
4164
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4110
- }, Ui = Ne(
4165
+ }, $i = Ne(
4111
4166
  (e) => {
4112
4167
  var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4113
4168
  if (r == null)
4114
4169
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4115
4170
  return n && (i = ce("number", n)), new Intl.NumberFormat(r, i);
4116
4171
  }
4117
- ), Di = Ne(
4172
+ ), ji = Ne(
4118
4173
  (e) => {
4119
4174
  var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4120
4175
  if (r == null)
4121
4176
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4122
4177
  return n ? i = ce("date", n) : Object.keys(i).length === 0 && (i = ce("date", "short")), new Intl.DateTimeFormat(r, i);
4123
4178
  }
4124
- ), Fi = Ne(
4179
+ ), ki = Ne(
4125
4180
  (e) => {
4126
4181
  var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4127
4182
  if (r == null)
@@ -4130,33 +4185,33 @@ const ce = (e, t) => {
4130
4185
  );
4131
4186
  return n ? i = ce("time", n) : Object.keys(i).length === 0 && (i = ce("time", "short")), new Intl.DateTimeFormat(r, i);
4132
4187
  }
4133
- ), $i = (e = {}) => {
4188
+ ), Vi = (e = {}) => {
4134
4189
  var t = e, {
4135
4190
  locale: r = V()
4136
4191
  } = t, n = oe(t, [
4137
4192
  "locale"
4138
4193
  ]);
4139
- return Ui(nt({ locale: r }, n));
4140
- }, ji = (e = {}) => {
4194
+ return $i(ot({ locale: r }, n));
4195
+ }, Xi = (e = {}) => {
4141
4196
  var t = e, {
4142
4197
  locale: r = V()
4143
4198
  } = t, n = oe(t, [
4144
4199
  "locale"
4145
4200
  ]);
4146
- return Di(nt({ locale: r }, n));
4147
- }, ki = (e = {}) => {
4201
+ return ji(ot({ locale: r }, n));
4202
+ }, Wi = (e = {}) => {
4148
4203
  var t = e, {
4149
4204
  locale: r = V()
4150
4205
  } = t, n = oe(t, [
4151
4206
  "locale"
4152
4207
  ]);
4153
- return Fi(nt({ locale: r }, n));
4154
- }, Vi = Ne(
4208
+ return ki(ot({ locale: r }, n));
4209
+ }, zi = Ne(
4155
4210
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4156
- (e, t = V()) => new gi(e, t, te().formats, {
4211
+ (e, t = V()) => new _i(e, t, te().formats, {
4157
4212
  ignoreTag: te().ignoreTag
4158
4213
  })
4159
- ), Xi = (e, t = {}) => {
4214
+ ), Zi = (e, t = {}) => {
4160
4215
  var r, n, i, s;
4161
4216
  let o = t;
4162
4217
  typeof e == "object" && (o = e, e = o.id);
@@ -4169,7 +4224,7 @@ const ce = (e, t) => {
4169
4224
  throw new Error(
4170
4225
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4171
4226
  );
4172
- let l = lr(e, h);
4227
+ let l = dr(e, h);
4173
4228
  if (!l)
4174
4229
  l = (s = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4175
4230
  else if (typeof l != "string")
@@ -4180,7 +4235,7 @@ const ce = (e, t) => {
4180
4235
  return l;
4181
4236
  let f = l;
4182
4237
  try {
4183
- f = Vi(l, h).format(a);
4238
+ f = zi(l, h).format(a);
4184
4239
  } catch (c) {
4185
4240
  c instanceof Error && console.warn(
4186
4241
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4188,17 +4243,17 @@ const ce = (e, t) => {
4188
4243
  );
4189
4244
  }
4190
4245
  return f;
4191
- }, Wi = (e, t) => ki(t).format(e), zi = (e, t) => ji(t).format(e), Zi = (e, t) => $i(t).format(e), Qi = (e, t = V()) => lr(e, t), Yi = se([be, me], () => Xi);
4192
- se([be], () => Wi);
4193
- se([be], () => zi);
4194
- se([be], () => Zi);
4195
- se([be, me], () => Qi);
4196
- window.emWidgets = { topic: hn };
4197
- const qi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4198
- function Nt(e, t) {
4199
- fr(e, t);
4200
- }
4201
- const Ot = {
4246
+ }, Qi = (e, t) => Wi(t).format(e), Yi = (e, t) => Xi(t).format(e), qi = (e, t) => Vi(t).format(e), Ji = (e, t = V()) => dr(e, t), Ki = se([de, me], () => Zi);
4247
+ se([de], () => Qi);
4248
+ se([de], () => Yi);
4249
+ se([de], () => qi);
4250
+ se([de, me], () => Ji);
4251
+ window.emWidgets = { topic: mn };
4252
+ const es = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4253
+ function It(e, t) {
4254
+ pr(e, t);
4255
+ }
4256
+ const Ct = {
4202
4257
  en: {
4203
4258
  lobbyName: "Lobby",
4204
4259
  myGamesName: "My games"
@@ -4272,13 +4327,13 @@ const Ot = {
4272
4327
  myGamesName: "My games"
4273
4328
  }
4274
4329
  };
4275
- function Ji(e, t) {
4330
+ function ts(e, t) {
4276
4331
  if (e) {
4277
4332
  const r = document.createElement("style");
4278
4333
  r.innerHTML = t, e.appendChild(r);
4279
4334
  }
4280
4335
  }
4281
- function Ki(e, t) {
4336
+ function rs(e, t) {
4282
4337
  const r = new URL(t);
4283
4338
  fetch(r.href).then((n) => n.text()).then((n) => {
4284
4339
  const i = document.createElement("style");
@@ -4287,7 +4342,7 @@ function Ki(e, t) {
4287
4342
  console.error("There was an error while trying to load client styling from URL", n);
4288
4343
  });
4289
4344
  }
4290
- function es(e, t, r) {
4345
+ function ns(e, t, r) {
4291
4346
  if (window.emMessageBus) {
4292
4347
  const n = document.createElement("style");
4293
4348
  window.emMessageBus.subscribe(t, (i) => {
@@ -4307,14 +4362,14 @@ if (typeof window < "u") {
4307
4362
  }
4308
4363
  };
4309
4364
  };
4310
- customElements.define = e(customElements.define), import("./CasinoSliderNd-CVyK8rOF.js").then(({ default: t }) => {
4365
+ customElements.define = e(customElements.define), import("./CasinoSliderNd-Bogm7697.js").then(({ default: t }) => {
4311
4366
  !customElements.get("casino-slider-nd") && customElements.define("casino-slider-nd", t.element);
4312
4367
  });
4313
4368
  }
4314
- function ts(e) {
4315
- Nr(e, "svelte-4b6cjp", ".svelte-4b6cjp{font-family:inherit}.CasinoCategoriesLoading.svelte-4b6cjp{height:52px}p.svelte-4b6cjp{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-4b6cjp{background:transparent;border-radius:var(--emw--border-radius-medium, 20px)}");
4369
+ function is(e) {
4370
+ Cr(e, "svelte-4b6cjp", ".svelte-4b6cjp{font-family:inherit}.CasinoCategoriesLoading.svelte-4b6cjp{height:52px}p.svelte-4b6cjp{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-4b6cjp{background:transparent;border-radius:var(--emw--border-radius-medium, 20px)}");
4316
4371
  }
4317
- function rs(e) {
4372
+ function ss(e) {
4318
4373
  let t, r, n, i;
4319
4374
  return {
4320
4375
  c() {
@@ -4333,7 +4388,7 @@ function rs(e) {
4333
4388
  "endpoint",
4334
4389
  /*endpoint*/
4335
4390
  e[1]
4336
- ), _(r, "identity", gr), _(
4391
+ ), _(r, "identity", Er), _(
4337
4392
  r,
4338
4393
  "favoritesnumber",
4339
4394
  /*numberOfFavoredGames*/
@@ -4391,7 +4446,7 @@ function rs(e) {
4391
4446
  ), _(r, "class", "svelte-4b6cjp"), ie(t, "class", "CasinoCategoriesContainer svelte-4b6cjp");
4392
4447
  },
4393
4448
  m(s, o) {
4394
- fe(s, t, o), Mt(t, r), n || (i = Pr(
4449
+ fe(s, t, o), Ut(t, r), n || (i = Ir(
4395
4450
  /*sendSliderData*/
4396
4451
  e[17].call(null, r)
4397
4452
  ), n = !0);
@@ -4488,7 +4543,7 @@ function rs(e) {
4488
4543
  }
4489
4544
  };
4490
4545
  }
4491
- function ns(e) {
4546
+ function os(e) {
4492
4547
  let t;
4493
4548
  return {
4494
4549
  c() {
@@ -4503,7 +4558,7 @@ function ns(e) {
4503
4558
  }
4504
4559
  };
4505
4560
  }
4506
- function is(e) {
4561
+ function as(e) {
4507
4562
  let t;
4508
4563
  return {
4509
4564
  c() {
@@ -4518,14 +4573,14 @@ function is(e) {
4518
4573
  }
4519
4574
  };
4520
4575
  }
4521
- function ss(e) {
4576
+ function us(e) {
4522
4577
  let t;
4523
4578
  function r(s, o) {
4524
4579
  return (
4525
4580
  /*isLoading*/
4526
- s[13] || os || as ? is : (
4581
+ s[13] || hs || ls ? as : (
4527
4582
  /*hasErrors*/
4528
- s[15] ? ns : rs
4583
+ s[15] ? os : ss
4529
4584
  )
4530
4585
  );
4531
4586
  }
@@ -4547,44 +4602,44 @@ function ss(e) {
4547
4602
  }
4548
4603
  };
4549
4604
  }
4550
- let gr = "CasinoSliderData", os = !1, as = !1;
4551
- function us(e, t, r) {
4605
+ let Er = "CasinoSliderData", hs = !1, ls = !1;
4606
+ function cs(e, t, r) {
4552
4607
  let n;
4553
- Br(e, Yi, (m) => r(33, n = m));
4554
- let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: f = "" } = t, { mbsource: c } = t, { clientstyling: b = "" } = t, { clientstylingurl: p = "" } = t, { activecategory: d = "" } = t, { actionevent: w = "" } = t, { sessioncheck: C = "" } = t, { location: N = "secondaryMenu" } = t, { showsubgroups: T = "false" } = t, { filteredcategories: O = "" } = t, { translationurl: H = "" } = t, { categoriesicon: M = "" } = t, { lobbyiconimage: E = "" } = t, { mygamesiconimage: L = "" } = t, I, F, $ = !0, X, W = [], j = !1, yr = window.navigator.userAgent, R, it, st = !1, Oe = !1;
4555
- const vr = () => {
4608
+ Lr(e, Ki, (m) => r(33, n = m));
4609
+ let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: f = "" } = t, { mbsource: c } = t, { clientstyling: d = "" } = t, { clientstylingurl: p = "" } = t, { activecategory: b = "" } = t, { actionevent: w = "" } = t, { sessioncheck: C = "" } = t, { location: N = "secondaryMenu" } = t, { showsubgroups: T = "false" } = t, { filteredcategories: O = "" } = t, { translationurl: H = "" } = t, { categoriesicon: M = "" } = t, { lobbyiconimage: E = "" } = t, { mygamesiconimage: L = "" } = t, I, F, $ = !0, X, W = [], j = !1, xr = window.navigator.userAgent, R, at, ut = !1, Oe = !1;
4610
+ const Sr = () => {
4556
4611
  fetch(H).then((B) => B.json()).then((B) => {
4557
- Object.keys(B).forEach((de) => {
4558
- Nt(de, B[de]);
4612
+ Object.keys(B).forEach((be) => {
4613
+ It(be, B[be]);
4559
4614
  });
4560
4615
  }).catch((B) => {
4561
4616
  console.log(B);
4562
4617
  });
4563
4618
  };
4564
- Object.keys(Ot).forEach((m) => {
4565
- Nt(m, Ot[m]);
4619
+ Object.keys(Ct).forEach((m) => {
4620
+ It(m, Ct[m]);
4566
4621
  });
4567
- const _r = () => {
4568
- st == !1 && (f == "true" || u == "true" || l == "true") && W.splice(1, 0, {
4622
+ const wr = () => {
4623
+ ut == !1 && (f == "true" || u == "true" || l == "true") && W.splice(1, 0, {
4569
4624
  // @ts-ignore
4570
4625
  id: "MYGAMES",
4571
4626
  name: I,
4572
4627
  href: "",
4573
4628
  games: []
4574
- }), Gr(), st = !0, r(26, Oe = !0), ot();
4575
- }, Er = () => (i || (X = "Endpoint is missing! Please provide a valid endpointURL.", r(15, j = !0), r(13, $ = !1), console.error(X)), s || (X = "Datasource is missing! Please provide a valid datasource.", r(15, j = !0), r(13, $ = !1), console.error(X)), (!o || o.length < 2) && (X = "Language is missing! Please provide a valid language (alpha2code)", r(15, j = !0), r(13, $ = !1), console.error(X)), j), xr = () => {
4576
- if (I = n("myGamesName"), F = n("lobbyName"), !Er()) {
4629
+ }), $r(), ut = !0, r(26, Oe = !0), ht();
4630
+ }, Tr = () => (i || (X = "Endpoint is missing! Please provide a valid endpointURL.", r(15, j = !0), r(13, $ = !1), console.error(X)), s || (X = "Datasource is missing! Please provide a valid datasource.", r(15, j = !0), r(13, $ = !1), console.error(X)), (!o || o.length < 2) && (X = "Language is missing! Please provide a valid language (alpha2code)", r(15, j = !0), r(13, $ = !1), console.error(X)), j), Hr = () => {
4631
+ if (I = n("myGamesName"), F = n("lobbyName"), !Tr()) {
4577
4632
  let m = new URL(`${i}/v1/casino/groups/${s}`);
4578
- m.searchParams.append("datasource", s), m.searchParams.append("language", o), m.searchParams.append("platform", qi(yr)), fetch(m).then((B) => B.json()).then(
4633
+ m.searchParams.append("datasource", s), m.searchParams.append("language", o), m.searchParams.append("platform", es(xr)), fetch(m).then((B) => B.json()).then(
4579
4634
  (B) => {
4580
- let de = O.split(","), Tr = B.items.filter((at) => {
4635
+ let be = O.split(","), Pr = B.items.filter((lt) => {
4581
4636
  let Le = !1;
4582
- if (at.games.total > 0 && (Le = !0, O))
4583
- for (let Hr of de)
4584
- at.flags == Hr && (Le = !1);
4637
+ if (lt.games.total > 0 && (Le = !0, O))
4638
+ for (let Nr of be)
4639
+ lt.flags == Nr && (Le = !1);
4585
4640
  return Le;
4586
4641
  });
4587
- W = [], W = W.concat(Tr), W.unshift({
4642
+ W = [], W = W.concat(Pr), W.unshift({
4588
4643
  // @ts-ignore
4589
4644
  id: "LOBBY",
4590
4645
  name: F,
@@ -4599,44 +4654,44 @@ function us(e, t, r) {
4599
4654
  r(15, j = !0), console.error("There was an error while fetching the categories", B);
4600
4655
  });
4601
4656
  }
4602
- }, Sr = () => {
4603
- let m = d.split("$");
4604
- r(0, d = m.length > 2 ? d.split("$").slice(0, 2).join("$") : d);
4605
- }, ot = () => {
4657
+ }, Ar = () => {
4658
+ let m = b.split("$");
4659
+ r(0, b = m.length > 2 ? b.split("$").slice(0, 2).join("$") : b);
4660
+ }, ht = () => {
4606
4661
  window.postMessage(
4607
4662
  {
4608
4663
  type: "SliderData",
4609
- identity: gr,
4664
+ identity: Er,
4610
4665
  data: W
4611
4666
  },
4612
4667
  window.location.href
4613
4668
  );
4614
4669
  };
4615
- Rr(() => () => {
4670
+ Fr(() => () => {
4616
4671
  });
4617
- function wr(m) {
4618
- Fe[m ? "unshift" : "push"](() => {
4672
+ function Br(m) {
4673
+ $e[m ? "unshift" : "push"](() => {
4619
4674
  R = m, r(14, R);
4620
4675
  });
4621
4676
  }
4622
4677
  return e.$$set = (m) => {
4623
- "endpoint" in m && r(1, i = m.endpoint), "datasource" in m && r(2, s = m.datasource), "lang" in m && r(3, o = m.lang), "userid" in m && r(18, a = m.userid), "session" in m && r(19, h = m.session), "mostplayed" in m && r(20, u = m.mostplayed), "lastplayed" in m && r(21, l = m.lastplayed), "favorites" in m && r(22, f = m.favorites), "mbsource" in m && r(4, c = m.mbsource), "clientstyling" in m && r(5, b = m.clientstyling), "clientstylingurl" in m && r(6, p = m.clientstylingurl), "activecategory" in m && r(0, d = m.activecategory), "actionevent" in m && r(7, w = m.actionevent), "sessioncheck" in m && r(23, C = m.sessioncheck), "location" in m && r(8, N = m.location), "showsubgroups" in m && r(9, T = m.showsubgroups), "filteredcategories" in m && r(24, O = m.filteredcategories), "translationurl" in m && r(25, H = m.translationurl), "categoriesicon" in m && r(10, M = m.categoriesicon), "lobbyiconimage" in m && r(11, E = m.lobbyiconimage), "mygamesiconimage" in m && r(12, L = m.mygamesiconimage);
4678
+ "endpoint" in m && r(1, i = m.endpoint), "datasource" in m && r(2, s = m.datasource), "lang" in m && r(3, o = m.lang), "userid" in m && r(18, a = m.userid), "session" in m && r(19, h = m.session), "mostplayed" in m && r(20, u = m.mostplayed), "lastplayed" in m && r(21, l = m.lastplayed), "favorites" in m && r(22, f = m.favorites), "mbsource" in m && r(4, c = m.mbsource), "clientstyling" in m && r(5, d = m.clientstyling), "clientstylingurl" in m && r(6, p = m.clientstylingurl), "activecategory" in m && r(0, b = m.activecategory), "actionevent" in m && r(7, w = m.actionevent), "sessioncheck" in m && r(23, C = m.sessioncheck), "location" in m && r(8, N = m.location), "showsubgroups" in m && r(9, T = m.showsubgroups), "filteredcategories" in m && r(24, O = m.filteredcategories), "translationurl" in m && r(25, H = m.translationurl), "categoriesicon" in m && r(10, M = m.categoriesicon), "lobbyiconimage" in m && r(11, E = m.lobbyiconimage), "mygamesiconimage" in m && r(12, L = m.mygamesiconimage);
4624
4679
  }, e.$$.update = () => {
4625
4680
  e.$$.dirty[0] & /*endpoint, datasource, lang*/
4626
- 14 && i && s && o && xr(), e.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
4627
- 7872514 && i && h && (u || l || f) && !$ && _r(), e.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
4628
- 67641345 && !$ && d && (!h || Oe) && Sr(), e.$$.dirty[0] & /*translationurl*/
4629
- 33554432 && H && vr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4630
- 16416 && b && R && Ji(R, b), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4631
- 16448 && p && R && Ki(R, p), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
4632
- 16400 && c && R && es(R, `${c}.Style`);
4633
- }, r(16, it = 0), [
4634
- d,
4681
+ 14 && i && s && o && Hr(), e.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
4682
+ 7872514 && i && h && (u || l || f) && !$ && wr(), e.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
4683
+ 67641345 && !$ && b && (!h || Oe) && Ar(), e.$$.dirty[0] & /*translationurl*/
4684
+ 33554432 && H && Sr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4685
+ 16416 && d && R && ts(R, d), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4686
+ 16448 && p && R && rs(R, p), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
4687
+ 16400 && c && R && ns(R, `${c}.Style`);
4688
+ }, r(16, at = 0), [
4689
+ b,
4635
4690
  i,
4636
4691
  s,
4637
4692
  o,
4638
4693
  c,
4639
- b,
4694
+ d,
4640
4695
  p,
4641
4696
  w,
4642
4697
  N,
@@ -4647,8 +4702,8 @@ function us(e, t, r) {
4647
4702
  $,
4648
4703
  R,
4649
4704
  j,
4650
- it,
4651
- ot,
4705
+ at,
4706
+ ht,
4652
4707
  a,
4653
4708
  h,
4654
4709
  u,
@@ -4658,17 +4713,17 @@ function us(e, t, r) {
4658
4713
  O,
4659
4714
  H,
4660
4715
  Oe,
4661
- wr
4716
+ Br
4662
4717
  ];
4663
4718
  }
4664
- class hs extends Wr {
4719
+ class fs extends Yr {
4665
4720
  constructor(t) {
4666
- super(), Vr(
4721
+ super(), Zr(
4667
4722
  this,
4668
4723
  t,
4724
+ cs,
4669
4725
  us,
4670
- ss,
4671
- It,
4726
+ Rt,
4672
4727
  {
4673
4728
  endpoint: 1,
4674
4729
  datasource: 2,
@@ -4692,7 +4747,7 @@ class hs extends Wr {
4692
4747
  lobbyiconimage: 11,
4693
4748
  mygamesiconimage: 12
4694
4749
  },
4695
- ts,
4750
+ is,
4696
4751
  [-1, -1]
4697
4752
  );
4698
4753
  }
@@ -4823,40 +4878,40 @@ class hs extends Wr {
4823
4878
  this.$$set({ mygamesiconimage: t }), S();
4824
4879
  }
4825
4880
  }
4826
- Xr(hs, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
4881
+ Qr(fs, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
4827
4882
  export {
4828
- be as $,
4829
- fs as A,
4830
- ls as B,
4831
- Ji as C,
4832
- Ki as D,
4833
- es as E,
4834
- hs as F,
4835
- Wr as S,
4883
+ de as $,
4884
+ ds as A,
4885
+ Dt as B,
4886
+ vs as C,
4887
+ bs as D,
4888
+ ms as E,
4889
+ fs as F,
4890
+ Yr as S,
4836
4891
  me as a,
4837
- fr as b,
4838
- Xr as c,
4839
- Nr as d,
4840
- ne as e,
4892
+ pr as b,
4893
+ Qr as c,
4894
+ Cr as d,
4895
+ k as e,
4841
4896
  S as f,
4842
- ie as g,
4843
- fe as h,
4844
- Vr as i,
4845
- Mt as j,
4846
- k,
4847
- ds as l,
4848
- ms as m,
4897
+ ps as g,
4898
+ ie as h,
4899
+ Zr as i,
4900
+ fe as j,
4901
+ Ut as k,
4902
+ ys as l,
4903
+ ne as m,
4849
4904
  P as n,
4850
- qi as o,
4851
- Rr as p,
4852
- gs as q,
4905
+ es as o,
4906
+ Fr as p,
4907
+ rs as q,
4853
4908
  re as r,
4854
- It as s,
4855
- bs as t,
4856
- vs as u,
4857
- Fe as v,
4858
- ps as w,
4859
- Rt as x,
4860
- cs as y,
4861
- ys as z
4909
+ Rt as s,
4910
+ ns as t,
4911
+ _s as u,
4912
+ gs as v,
4913
+ xs as w,
4914
+ $e as x,
4915
+ ts as y,
4916
+ Es as z
4862
4917
  };