@everymatrix/player-active-bonuses 1.75.0 → 1.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
- var sr = Object.defineProperty, ar = Object.defineProperties;
2
- var ur = Object.getOwnPropertyDescriptors;
3
- var At = Object.getOwnPropertySymbols;
4
- var lr = Object.prototype.hasOwnProperty, cr = Object.prototype.propertyIsEnumerable;
5
- var Xe = (e, t, n) => t in e ? sr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Tt = (e, t) => {
1
+ var ar = Object.defineProperty, ur = Object.defineProperties;
2
+ var lr = Object.getOwnPropertyDescriptors;
3
+ var Pt = Object.getOwnPropertySymbols;
4
+ var cr = Object.prototype.hasOwnProperty, hr = Object.prototype.propertyIsEnumerable;
5
+ var qe = (e, t, n) => t in e ? ar(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Mt = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- lr.call(t, n) && Xe(e, n, t[n]);
8
- if (At)
9
- for (var n of At(t))
10
- cr.call(t, n) && Xe(e, n, t[n]);
7
+ cr.call(t, n) && qe(e, n, t[n]);
8
+ if (Pt)
9
+ for (var n of Pt(t))
10
+ hr.call(t, n) && qe(e, n, t[n]);
11
11
  return e;
12
- }, Pt = (e, t) => ar(e, ur(t));
13
- var q = (e, t, n) => (Xe(e, typeof t != "symbol" ? t + "" : t, n), n);
14
- var Mt = (e, t, n) => new Promise((r, o) => {
12
+ }, Ht = (e, t) => ur(e, lr(t));
13
+ var q = (e, t, n) => (qe(e, typeof t != "symbol" ? t + "" : t, n), n);
14
+ var Ot = (e, t, n) => new Promise((r, o) => {
15
15
  var i = (u) => {
16
16
  try {
17
17
  a(n.next(u));
@@ -29,29 +29,29 @@ var Mt = (e, t, n) => new Promise((r, o) => {
29
29
  });
30
30
  function K() {
31
31
  }
32
- function cn(e) {
32
+ function fn(e) {
33
33
  return e();
34
34
  }
35
- function Ht() {
35
+ function It() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
38
  function ue(e) {
39
- e.forEach(cn);
39
+ e.forEach(fn);
40
40
  }
41
- function vt(e) {
41
+ function Et(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function hn(e, t) {
44
+ function dn(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- let Ie;
48
- function Ji(e, t) {
49
- return e === t ? !0 : (Ie || (Ie = document.createElement("a")), Ie.href = t, e === Ie.href);
47
+ let Oe;
48
+ function Ki(e, t) {
49
+ return e === t ? !0 : (Oe || (Oe = document.createElement("a")), Oe.href = t, e === Oe.href);
50
50
  }
51
- function hr(e) {
51
+ function fr(e) {
52
52
  return Object.keys(e).length === 0;
53
53
  }
54
- function fn(e, ...t) {
54
+ function pn(e, ...t) {
55
55
  if (e == null) {
56
56
  for (const r of t)
57
57
  r(void 0);
@@ -60,20 +60,20 @@ function fn(e, ...t) {
60
60
  const n = e.subscribe(...t);
61
61
  return n.unsubscribe ? () => n.unsubscribe() : n;
62
62
  }
63
- function fr(e, t, n) {
64
- e.$$.on_destroy.push(fn(t, n));
63
+ function dr(e, t, n) {
64
+ e.$$.on_destroy.push(pn(t, n));
65
65
  }
66
66
  function v(e, t) {
67
67
  e.appendChild(t);
68
68
  }
69
- function dr(e, t, n) {
70
- const r = pr(e);
69
+ function pr(e, t, n) {
70
+ const r = mr(e);
71
71
  if (!r.getElementById(t)) {
72
- const o = P("style");
73
- o.id = t, o.textContent = n, mr(r, o);
72
+ const o = T("style");
73
+ o.id = t, o.textContent = n, br(r, o);
74
74
  }
75
75
  }
76
- function pr(e) {
76
+ function mr(e) {
77
77
  if (!e)
78
78
  return document;
79
79
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -83,7 +83,7 @@ function pr(e) {
83
83
  t
84
84
  ) : e.ownerDocument;
85
85
  }
86
- function mr(e, t) {
86
+ function br(e, t) {
87
87
  return v(
88
88
  /** @type {Document} */
89
89
  e.head || e,
@@ -96,11 +96,11 @@ function V(e, t, n) {
96
96
  function G(e) {
97
97
  e.parentNode && e.parentNode.removeChild(e);
98
98
  }
99
- function dn(e, t) {
99
+ function mn(e, t) {
100
100
  for (let n = 0; n < e.length; n += 1)
101
101
  e[n] && e[n].d(t);
102
102
  }
103
- function P(e) {
103
+ function T(e) {
104
104
  return document.createElement(e);
105
105
  }
106
106
  function ce(e) {
@@ -112,7 +112,7 @@ function F(e) {
112
112
  function W() {
113
113
  return F(" ");
114
114
  }
115
- function yt() {
115
+ function xt() {
116
116
  return F("");
117
117
  }
118
118
  function Y(e, t, n, r) {
@@ -125,17 +125,17 @@ function p(e, t, n) {
125
125
  const r = t.toLowerCase();
126
126
  r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : B(e, t, n);
127
127
  }
128
- function br(e) {
128
+ function gr(e) {
129
129
  return Array.from(e.childNodes);
130
130
  }
131
- function ne(e, t) {
131
+ function re(e, t) {
132
132
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
133
133
  t);
134
134
  }
135
- function It(e, t) {
135
+ function Nt(e, t) {
136
136
  e.value = t == null ? "" : t;
137
137
  }
138
- function gr(e) {
138
+ function vr(e) {
139
139
  const t = {};
140
140
  return e.childNodes.forEach(
141
141
  /** @param {Element} node */
@@ -144,90 +144,90 @@ function gr(e) {
144
144
  }
145
145
  ), t;
146
146
  }
147
- let Se;
148
- function Ce(e) {
149
- Se = e;
147
+ let Ce;
148
+ function we(e) {
149
+ Ce = e;
150
150
  }
151
- function vr() {
152
- if (!Se)
151
+ function yr() {
152
+ if (!Ce)
153
153
  throw new Error("Function called outside component initialization");
154
- return Se;
154
+ return Ce;
155
155
  }
156
- function yr(e) {
157
- vr().$$.on_mount.push(e);
156
+ function _r(e) {
157
+ yr().$$.on_mount.push(e);
158
158
  }
159
- const de = [], nt = [];
159
+ const de = [], ot = [];
160
160
  let pe = [];
161
- const Ot = [], _r = /* @__PURE__ */ Promise.resolve();
162
- let rt = !1;
163
- function Br() {
164
- rt || (rt = !0, _r.then(z));
161
+ const Lt = [], Br = /* @__PURE__ */ Promise.resolve();
162
+ let it = !1;
163
+ function Er() {
164
+ it || (it = !0, Br.then(z));
165
165
  }
166
- function ot(e) {
166
+ function st(e) {
167
167
  pe.push(e);
168
168
  }
169
- const Ze = /* @__PURE__ */ new Set();
169
+ const Qe = /* @__PURE__ */ new Set();
170
170
  let he = 0;
171
171
  function z() {
172
172
  if (he !== 0)
173
173
  return;
174
- const e = Se;
174
+ const e = Ce;
175
175
  do {
176
176
  try {
177
177
  for (; he < de.length; ) {
178
178
  const t = de[he];
179
- he++, Ce(t), Er(t.$$);
179
+ he++, we(t), xr(t.$$);
180
180
  }
181
181
  } catch (t) {
182
182
  throw de.length = 0, he = 0, t;
183
183
  }
184
- for (Ce(null), de.length = 0, he = 0; nt.length; )
185
- nt.pop()();
184
+ for (we(null), de.length = 0, he = 0; ot.length; )
185
+ ot.pop()();
186
186
  for (let t = 0; t < pe.length; t += 1) {
187
187
  const n = pe[t];
188
- Ze.has(n) || (Ze.add(n), n());
188
+ Qe.has(n) || (Qe.add(n), n());
189
189
  }
190
190
  pe.length = 0;
191
191
  } while (de.length);
192
- for (; Ot.length; )
193
- Ot.pop()();
194
- rt = !1, Ze.clear(), Ce(e);
192
+ for (; Lt.length; )
193
+ Lt.pop()();
194
+ it = !1, Qe.clear(), we(e);
195
195
  }
196
- function Er(e) {
196
+ function xr(e) {
197
197
  if (e.fragment !== null) {
198
198
  e.update(), ue(e.before_update);
199
199
  const t = e.dirty;
200
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ot);
200
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(st);
201
201
  }
202
202
  }
203
- function xr(e) {
203
+ function wr(e) {
204
204
  const t = [], n = [];
205
205
  pe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), pe = t;
206
206
  }
207
- const wr = /* @__PURE__ */ new Set();
208
- function Cr(e, t) {
209
- e && e.i && (wr.delete(e), e.i(t));
207
+ const Cr = /* @__PURE__ */ new Set();
208
+ function Sr(e, t) {
209
+ e && e.i && (Cr.delete(e), e.i(t));
210
210
  }
211
211
  function Ue(e) {
212
212
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
213
213
  }
214
- function Sr(e, t, n) {
214
+ function Ar(e, t, n) {
215
215
  const { fragment: r, after_update: o } = e.$$;
216
- r && r.m(t, n), ot(() => {
217
- const i = e.$$.on_mount.map(cn).filter(vt);
216
+ r && r.m(t, n), st(() => {
217
+ const i = e.$$.on_mount.map(fn).filter(Et);
218
218
  e.$$.on_destroy ? e.$$.on_destroy.push(...i) : ue(i), e.$$.on_mount = [];
219
- }), o.forEach(ot);
219
+ }), o.forEach(st);
220
220
  }
221
- function Ar(e, t) {
221
+ function Tr(e, t) {
222
222
  const n = e.$$;
223
- n.fragment !== null && (xr(n.after_update), ue(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
223
+ n.fragment !== null && (wr(n.after_update), ue(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
224
224
  }
225
- function Tr(e, t) {
226
- e.$$.dirty[0] === -1 && (de.push(e), Br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
225
+ function Pr(e, t) {
226
+ e.$$.dirty[0] === -1 && (de.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
227
227
  }
228
- function Pr(e, t, n, r, o, i, s = null, a = [-1]) {
229
- const u = Se;
230
- Ce(e);
228
+ function Mr(e, t, n, r, o, i, s = null, a = [-1]) {
229
+ const u = Ce;
230
+ we(e);
231
231
  const l = e.$$ = {
232
232
  fragment: null,
233
233
  ctx: [],
@@ -235,7 +235,7 @@ function Pr(e, t, n, r, o, i, s = null, a = [-1]) {
235
235
  props: i,
236
236
  update: K,
237
237
  not_equal: o,
238
- bound: Ht(),
238
+ bound: It(),
239
239
  // lifecycle
240
240
  on_mount: [],
241
241
  on_destroy: [],
@@ -244,7 +244,7 @@ function Pr(e, t, n, r, o, i, s = null, a = [-1]) {
244
244
  after_update: [],
245
245
  context: new Map(t.context || (u ? u.$$.context : [])),
246
246
  // everything else
247
- callbacks: Ht(),
247
+ callbacks: It(),
248
248
  dirty: a,
249
249
  skip_bound: !1,
250
250
  root: t.target || u.$$.root
@@ -253,19 +253,19 @@ function Pr(e, t, n, r, o, i, s = null, a = [-1]) {
253
253
  let c = !1;
254
254
  if (l.ctx = n ? n(e, t.props || {}, (f, d, ...m) => {
255
255
  const b = m.length ? m[0] : d;
256
- return l.ctx && o(l.ctx[f], l.ctx[f] = b) && (!l.skip_bound && l.bound[f] && l.bound[f](b), c && Tr(e, f)), d;
256
+ return l.ctx && o(l.ctx[f], l.ctx[f] = b) && (!l.skip_bound && l.bound[f] && l.bound[f](b), c && Pr(e, f)), d;
257
257
  }) : [], l.update(), c = !0, ue(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
258
258
  if (t.hydrate) {
259
- const f = br(t.target);
259
+ const f = gr(t.target);
260
260
  l.fragment && l.fragment.l(f), f.forEach(G);
261
261
  } else
262
262
  l.fragment && l.fragment.c();
263
- t.intro && Cr(e.$$.fragment), Sr(e, t.target, t.anchor), z();
263
+ t.intro && Sr(e.$$.fragment), Ar(e, t.target, t.anchor), z();
264
264
  }
265
- Ce(u);
265
+ we(u);
266
266
  }
267
- let pn;
268
- typeof HTMLElement == "function" && (pn = class extends HTMLElement {
267
+ let bn;
268
+ typeof HTMLElement == "function" && (bn = class extends HTMLElement {
269
269
  constructor(t, n, r) {
270
270
  super();
271
271
  /** The Svelte component constructor */
@@ -302,14 +302,14 @@ typeof HTMLElement == "function" && (pn = class extends HTMLElement {
302
302
  }
303
303
  }
304
304
  connectedCallback() {
305
- return Mt(this, null, function* () {
305
+ return Ot(this, null, function* () {
306
306
  if (this.$$cn = !0, !this.$$c) {
307
307
  let t = function(i) {
308
308
  return () => {
309
309
  let s;
310
310
  return {
311
311
  c: function() {
312
- s = P("slot"), i !== "default" && B(s, "name", i);
312
+ s = T("slot"), i !== "default" && B(s, "name", i);
313
313
  },
314
314
  /**
315
315
  * @param {HTMLElement} target
@@ -326,7 +326,7 @@ typeof HTMLElement == "function" && (pn = class extends HTMLElement {
326
326
  };
327
327
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
328
328
  return;
329
- const n = {}, r = gr(this);
329
+ const n = {}, r = vr(this);
330
330
  for (const i of this.$$s)
331
331
  i in r && (n[i] = [t(i)]);
332
332
  for (const i of this.attributes) {
@@ -337,7 +337,7 @@ typeof HTMLElement == "function" && (pn = class extends HTMLElement {
337
337
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
338
338
  this.$$c = new this.$$ctor({
339
339
  target: this.shadowRoot || this,
340
- props: Pt(Tt({}, this.$$d), {
340
+ props: Ht(Mt({}, this.$$d), {
341
341
  $$slots: n,
342
342
  $$scope: {
343
343
  ctx: []
@@ -415,8 +415,8 @@ function Le(e, t, n, r) {
415
415
  return t;
416
416
  }
417
417
  }
418
- function Mr(e, t, n, r, o, i) {
419
- let s = class extends pn {
418
+ function Hr(e, t, n, r, o, i) {
419
+ let s = class extends bn {
420
420
  constructor() {
421
421
  super(e, n, o), this.$$p_d = t;
422
422
  }
@@ -446,7 +446,7 @@ function Mr(e, t, n, r, o, i) {
446
446
  }), e.element = /** @type {any} */
447
447
  s, s;
448
448
  }
449
- class Hr {
449
+ class Or {
450
450
  constructor() {
451
451
  /**
452
452
  * ### PRIVATE API
@@ -467,7 +467,7 @@ class Hr {
467
467
  }
468
468
  /** @returns {void} */
469
469
  $destroy() {
470
- Ar(this, 1), this.$destroy = K;
470
+ Tr(this, 1), this.$destroy = K;
471
471
  }
472
472
  /**
473
473
  * @template {Extract<keyof Events, string>} K
@@ -476,7 +476,7 @@ class Hr {
476
476
  * @returns {() => void}
477
477
  */
478
478
  $on(t, n) {
479
- if (!vt(n))
479
+ if (!Et(n))
480
480
  return K;
481
481
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
482
482
  return r.push(n), () => {
@@ -489,7 +489,7 @@ class Hr {
489
489
  * @returns {void}
490
490
  */
491
491
  $set(t) {
492
- this.$$set && !hr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
492
+ this.$$set && !fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
493
493
  }
494
494
  }
495
495
  const Ir = "4";
@@ -508,43 +508,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
508
508
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
509
509
  PERFORMANCE OF THIS SOFTWARE.
510
510
  ***************************************************************************** */
511
- var it = function(e, t) {
512
- return it = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
511
+ var at = function(e, t) {
512
+ return at = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
513
513
  n.__proto__ = r;
514
514
  } || function(n, r) {
515
515
  for (var o in r)
516
516
  Object.prototype.hasOwnProperty.call(r, o) && (n[o] = r[o]);
517
- }, it(e, t);
517
+ }, at(e, t);
518
518
  };
519
- function oe(e, t) {
519
+ function Te(e, t) {
520
520
  if (typeof t != "function" && t !== null)
521
521
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
522
- it(e, t);
522
+ at(e, t);
523
523
  function n() {
524
524
  this.constructor = e;
525
525
  }
526
526
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
527
527
  }
528
- var A = function() {
529
- return A = Object.assign || function(t) {
530
- for (var n, r = 1, o = arguments.length; r < o; r++) {
531
- n = arguments[r];
532
- for (var i in n)
533
- Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
534
- }
535
- return t;
536
- }, A.apply(this, arguments);
537
- };
538
- function Or(e, t) {
539
- var n = {};
540
- for (var r in e)
541
- Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
542
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
543
- for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
544
- t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
545
- return n;
546
- }
547
- function st(e) {
528
+ function ut(e) {
548
529
  var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
549
530
  if (n)
550
531
  return n.call(e);
@@ -556,7 +537,7 @@ function st(e) {
556
537
  };
557
538
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
558
539
  }
559
- function at(e, t) {
540
+ function lt(e, t) {
560
541
  var n = typeof Symbol == "function" && e[Symbol.iterator];
561
542
  if (!n)
562
543
  return e;
@@ -576,22 +557,22 @@ function at(e, t) {
576
557
  }
577
558
  return i;
578
559
  }
579
- function me(e, t, n) {
580
- if (n || arguments.length === 2)
560
+ function ct(e, t, n) {
561
+ if (arguments.length === 2)
581
562
  for (var r = 0, o = t.length, i; r < o; r++)
582
563
  (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
583
564
  return e.concat(i || t);
584
565
  }
585
- function re(e) {
566
+ function oe(e) {
586
567
  return typeof e == "function";
587
568
  }
588
- function mn(e) {
569
+ function gn(e) {
589
570
  var t = function(r) {
590
571
  Error.call(r), r.stack = new Error().stack;
591
572
  }, n = e(t);
592
573
  return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
593
574
  }
594
- var qe = mn(function(e) {
575
+ var Je = gn(function(e) {
595
576
  return function(n) {
596
577
  e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
597
578
  ` + n.map(function(r, o) {
@@ -600,13 +581,13 @@ var qe = mn(function(e) {
600
581
  `) : "", this.name = "UnsubscriptionError", this.errors = n;
601
582
  };
602
583
  });
603
- function ut(e, t) {
584
+ function ht(e, t) {
604
585
  if (e) {
605
586
  var n = e.indexOf(t);
606
587
  0 <= n && e.splice(n, 1);
607
588
  }
608
589
  }
609
- var ke = function() {
590
+ var je = function() {
610
591
  function e(t) {
611
592
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
612
593
  }
@@ -618,7 +599,7 @@ var ke = function() {
618
599
  if (s)
619
600
  if (this._parentage = null, Array.isArray(s))
620
601
  try {
621
- for (var a = st(s), u = a.next(); !u.done; u = a.next()) {
602
+ for (var a = ut(s), u = a.next(); !u.done; u = a.next()) {
622
603
  var l = u.value;
623
604
  l.remove(this);
624
605
  }
@@ -635,22 +616,22 @@ var ke = function() {
635
616
  else
636
617
  s.remove(this);
637
618
  var c = this.initialTeardown;
638
- if (re(c))
619
+ if (oe(c))
639
620
  try {
640
621
  c();
641
622
  } catch (h) {
642
- i = h instanceof qe ? h.errors : [h];
623
+ i = h instanceof Je ? h.errors : [h];
643
624
  }
644
625
  var f = this._finalizers;
645
626
  if (f) {
646
627
  this._finalizers = null;
647
628
  try {
648
- for (var d = st(f), m = d.next(); !m.done; m = d.next()) {
629
+ for (var d = ut(f), m = d.next(); !m.done; m = d.next()) {
649
630
  var b = m.value;
650
631
  try {
651
- Nt(b);
632
+ Rt(b);
652
633
  } catch (h) {
653
- i = i != null ? i : [], h instanceof qe ? i = me(me([], at(i)), at(h.errors)) : i.push(h);
634
+ i = i != null ? i : [], h instanceof Je ? i = ct(ct([], lt(i)), lt(h.errors)) : i.push(h);
654
635
  }
655
636
  }
656
637
  } catch (h) {
@@ -665,13 +646,13 @@ var ke = function() {
665
646
  }
666
647
  }
667
648
  if (i)
668
- throw new qe(i);
649
+ throw new Je(i);
669
650
  }
670
651
  }, e.prototype.add = function(t) {
671
652
  var n;
672
653
  if (t && t !== this)
673
654
  if (this.closed)
674
- Nt(t);
655
+ Rt(t);
675
656
  else {
676
657
  if (t instanceof e) {
677
658
  if (t.closed || t._hasParent(this))
@@ -688,56 +669,52 @@ var ke = function() {
688
669
  this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
689
670
  }, e.prototype._removeParent = function(t) {
690
671
  var n = this._parentage;
691
- n === t ? this._parentage = null : Array.isArray(n) && ut(n, t);
672
+ n === t ? this._parentage = null : Array.isArray(n) && ht(n, t);
692
673
  }, e.prototype.remove = function(t) {
693
674
  var n = this._finalizers;
694
- n && ut(n, t), t instanceof e && t._removeParent(this);
675
+ n && ht(n, t), t instanceof e && t._removeParent(this);
695
676
  }, e.EMPTY = function() {
696
677
  var t = new e();
697
678
  return t.closed = !0, t;
698
679
  }(), e;
699
- }(), bn = ke.EMPTY;
700
- function gn(e) {
701
- return e instanceof ke || e && "closed" in e && re(e.remove) && re(e.add) && re(e.unsubscribe);
702
- }
703
- function Nt(e) {
704
- re(e) ? e() : e.unsubscribe();
705
- }
706
- var vn = {
707
- onUnhandledError: null,
708
- onStoppedNotification: null,
709
- Promise: void 0,
710
- useDeprecatedSynchronousErrorHandling: !1,
711
- useDeprecatedNextContext: !1
712
- }, Nr = {
680
+ }(), vn = je.EMPTY;
681
+ function yn(e) {
682
+ return e instanceof je || e && "closed" in e && oe(e.remove) && oe(e.add) && oe(e.unsubscribe);
683
+ }
684
+ function Rt(e) {
685
+ oe(e) ? e() : e.unsubscribe();
686
+ }
687
+ var Nr = {
688
+ Promise: void 0
689
+ }, Lr = {
713
690
  setTimeout: function(e, t) {
714
691
  for (var n = [], r = 2; r < arguments.length; r++)
715
692
  n[r - 2] = arguments[r];
716
- return setTimeout.apply(void 0, me([e, t], at(n)));
693
+ return setTimeout.apply(void 0, ct([e, t], lt(n)));
717
694
  },
718
695
  clearTimeout: function(e) {
719
696
  return clearTimeout(e);
720
697
  },
721
698
  delegate: void 0
722
699
  };
723
- function Lr(e) {
724
- Nr.setTimeout(function() {
700
+ function Rr(e) {
701
+ Lr.setTimeout(function() {
725
702
  throw e;
726
703
  });
727
704
  }
728
- function Lt() {
705
+ function $t() {
729
706
  }
730
707
  function Re(e) {
731
708
  e();
732
709
  }
733
- var yn = function(e) {
734
- oe(t, e);
710
+ var _n = function(e) {
711
+ Te(t, e);
735
712
  function t(n) {
736
713
  var r = e.call(this) || this;
737
- return r.isStopped = !1, n ? (r.destination = n, gn(n) && n.add(r)) : r.destination = Ur, r;
714
+ return r.isStopped = !1, n ? (r.destination = n, yn(n) && n.add(r)) : r.destination = Ur, r;
738
715
  }
739
716
  return t.create = function(n, r, o) {
740
- return new lt(n, r, o);
717
+ return new ft(n, r, o);
741
718
  }, t.prototype.next = function(n) {
742
719
  this.isStopped || this._next(n);
743
720
  }, t.prototype.error = function(n) {
@@ -761,11 +738,7 @@ var yn = function(e) {
761
738
  this.unsubscribe();
762
739
  }
763
740
  }, t;
764
- }(ke), Rr = Function.prototype.bind;
765
- function Qe(e, t) {
766
- return Rr.call(e, t);
767
- }
768
- var $r = function() {
741
+ }(je), $r = function() {
769
742
  function e(t) {
770
743
  this.partialObserver = t;
771
744
  }
@@ -775,7 +748,7 @@ var $r = function() {
775
748
  try {
776
749
  n.next(t);
777
750
  } catch (r) {
778
- Oe(r);
751
+ Ie(r);
779
752
  }
780
753
  }, e.prototype.error = function(t) {
781
754
  var n = this.partialObserver;
@@ -783,54 +756,42 @@ var $r = function() {
783
756
  try {
784
757
  n.error(t);
785
758
  } catch (r) {
786
- Oe(r);
759
+ Ie(r);
787
760
  }
788
761
  else
789
- Oe(t);
762
+ Ie(t);
790
763
  }, e.prototype.complete = function() {
791
764
  var t = this.partialObserver;
792
765
  if (t.complete)
793
766
  try {
794
767
  t.complete();
795
768
  } catch (n) {
796
- Oe(n);
769
+ Ie(n);
797
770
  }
798
771
  }, e;
799
- }(), lt = function(e) {
800
- oe(t, e);
772
+ }(), ft = function(e) {
773
+ Te(t, e);
801
774
  function t(n, r, o) {
802
775
  var i = e.call(this) || this, s;
803
- if (re(n) || !n)
804
- s = {
805
- next: n != null ? n : void 0,
806
- error: r != null ? r : void 0,
807
- complete: o != null ? o : void 0
808
- };
809
- else {
810
- var a;
811
- i && vn.useDeprecatedNextContext ? (a = Object.create(n), a.unsubscribe = function() {
812
- return i.unsubscribe();
813
- }, s = {
814
- next: n.next && Qe(n.next, a),
815
- error: n.error && Qe(n.error, a),
816
- complete: n.complete && Qe(n.complete, a)
817
- }) : s = n;
818
- }
819
- return i.destination = new $r(s), i;
776
+ return oe(n) || !n ? s = {
777
+ next: n != null ? n : void 0,
778
+ error: r != null ? r : void 0,
779
+ complete: o != null ? o : void 0
780
+ } : s = n, i.destination = new $r(s), i;
820
781
  }
821
782
  return t;
822
- }(yn);
823
- function Oe(e) {
824
- Lr(e);
783
+ }(_n);
784
+ function Ie(e) {
785
+ Rr(e);
825
786
  }
826
787
  function Fr(e) {
827
788
  throw e;
828
789
  }
829
790
  var Ur = {
830
791
  closed: !0,
831
- next: Lt,
792
+ next: $t,
832
793
  error: Fr,
833
- complete: Lt
794
+ complete: $t
834
795
  }, Dr = function() {
835
796
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
836
797
  }();
@@ -844,7 +805,7 @@ function kr(e) {
844
805
  }, n);
845
806
  };
846
807
  }
847
- var Rt = function() {
808
+ var Ft = function() {
848
809
  function e(t) {
849
810
  t && (this._subscribe = t);
850
811
  }
@@ -852,7 +813,7 @@ var Rt = function() {
852
813
  var n = new e();
853
814
  return n.source = this, n.operator = t, n;
854
815
  }, e.prototype.subscribe = function(t, n, r) {
855
- var o = this, i = Wr(t) ? t : new lt(t, n, r);
816
+ var o = this, i = Wr(t) ? t : new ft(t, n, r);
856
817
  return Re(function() {
857
818
  var s = o, a = s.operator, u = s.source;
858
819
  i.add(a ? a.call(i, u) : u ? o._subscribe(i) : o._trySubscribe(i));
@@ -865,8 +826,8 @@ var Rt = function() {
865
826
  }
866
827
  }, e.prototype.forEach = function(t, n) {
867
828
  var r = this;
868
- return n = $t(n), new n(function(o, i) {
869
- var s = new lt({
829
+ return n = Ut(n), new n(function(o, i) {
830
+ var s = new ft({
870
831
  next: function(a) {
871
832
  try {
872
833
  t(a);
@@ -890,7 +851,7 @@ var Rt = function() {
890
851
  return kr(t)(this);
891
852
  }, e.prototype.toPromise = function(t) {
892
853
  var n = this;
893
- return t = $t(t), new t(function(r, o) {
854
+ return t = Ut(t), new t(function(r, o) {
894
855
  var i;
895
856
  n.subscribe(function(s) {
896
857
  return i = s;
@@ -904,28 +865,28 @@ var Rt = function() {
904
865
  return new e(t);
905
866
  }, e;
906
867
  }();
907
- function $t(e) {
868
+ function Ut(e) {
908
869
  var t;
909
- return (t = e != null ? e : vn.Promise) !== null && t !== void 0 ? t : Promise;
870
+ return (t = e != null ? e : Nr.Promise) !== null && t !== void 0 ? t : Promise;
910
871
  }
911
872
  function jr(e) {
912
- return e && re(e.next) && re(e.error) && re(e.complete);
873
+ return e && oe(e.next) && oe(e.error) && oe(e.complete);
913
874
  }
914
875
  function Wr(e) {
915
- return e && e instanceof yn || jr(e) && gn(e);
876
+ return e && e instanceof _n || jr(e) && yn(e);
916
877
  }
917
- var Vr = mn(function(e) {
878
+ var Vr = gn(function(e) {
918
879
  return function() {
919
880
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
920
881
  };
921
- }), _n = function(e) {
922
- oe(t, e);
882
+ }), Bn = function(e) {
883
+ Te(t, e);
923
884
  function t() {
924
885
  var n = e.call(this) || this;
925
886
  return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
926
887
  }
927
888
  return t.prototype.lift = function(n) {
928
- var r = new Ft(this, this);
889
+ var r = new Dt(this, this);
929
890
  return r.operator = n, r;
930
891
  }, t.prototype._throwIfClosed = function() {
931
892
  if (this.closed)
@@ -937,7 +898,7 @@ var Vr = mn(function(e) {
937
898
  if (r._throwIfClosed(), !r.isStopped) {
938
899
  r.currentObservers || (r.currentObservers = Array.from(r.observers));
939
900
  try {
940
- for (var s = st(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
901
+ for (var s = ut(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
941
902
  var u = a.value;
942
903
  u.next(n);
943
904
  }
@@ -986,20 +947,20 @@ var Vr = mn(function(e) {
986
947
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
987
948
  }, t.prototype._innerSubscribe = function(n) {
988
949
  var r = this, o = this, i = o.hasError, s = o.isStopped, a = o.observers;
989
- return i || s ? bn : (this.currentObservers = null, a.push(n), new ke(function() {
990
- r.currentObservers = null, ut(a, n);
950
+ return i || s ? vn : (this.currentObservers = null, a.push(n), new je(function() {
951
+ r.currentObservers = null, ht(a, n);
991
952
  }));
992
953
  }, t.prototype._checkFinalizedStatuses = function(n) {
993
954
  var r = this, o = r.hasError, i = r.thrownError, s = r.isStopped;
994
955
  o ? n.error(i) : s && n.complete();
995
956
  }, t.prototype.asObservable = function() {
996
- var n = new Rt();
957
+ var n = new Ft();
997
958
  return n.source = this, n;
998
959
  }, t.create = function(n, r) {
999
- return new Ft(n, r);
960
+ return new Dt(n, r);
1000
961
  }, t;
1001
- }(Rt), Ft = function(e) {
1002
- oe(t, e);
962
+ }(Ft), Dt = function(e) {
963
+ Te(t, e);
1003
964
  function t(n, r) {
1004
965
  var o = e.call(this) || this;
1005
966
  return o.destination = n, o.source = r, o;
@@ -1015,17 +976,17 @@ var Vr = mn(function(e) {
1015
976
  (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
1016
977
  }, t.prototype._subscribe = function(n) {
1017
978
  var r, o;
1018
- return (o = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && o !== void 0 ? o : bn;
979
+ return (o = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && o !== void 0 ? o : vn;
1019
980
  }, t;
1020
- }(_n), Bn = {
981
+ }(Bn), En = {
1021
982
  now: function() {
1022
- return (Bn.delegate || Date).now();
983
+ return (En.delegate || Date).now();
1023
984
  },
1024
985
  delegate: void 0
1025
986
  }, zr = function(e) {
1026
- oe(t, e);
987
+ Te(t, e);
1027
988
  function t(n, r, o) {
1028
- n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), o === void 0 && (o = Bn);
989
+ n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), o === void 0 && (o = En);
1029
990
  var i = e.call(this) || this;
1030
991
  return i._bufferSize = n, i._windowTime = r, i._timestampProvider = o, i._buffer = [], i._infiniteTimeWindow = !0, i._infiniteTimeWindow = r === 1 / 0, i._bufferSize = Math.max(1, n), i._windowTime = Math.max(1, r), i;
1031
992
  }
@@ -1045,24 +1006,24 @@ var Vr = mn(function(e) {
1045
1006
  l && i.splice(0, l + 1);
1046
1007
  }
1047
1008
  }, t;
1048
- }(_n);
1049
- const Ut = [], Dt = {}, Xr = (e, t = 0) => {
1050
- if (Ut.indexOf(e) == -1) {
1009
+ }(Bn);
1010
+ const Gt = [], kt = {}, Xr = (e, t = 0) => {
1011
+ if (Gt.indexOf(e) == -1) {
1051
1012
  const n = new zr(t);
1052
- Dt[e] = n, Ut.push(e);
1013
+ kt[e] = n, Gt.push(e);
1053
1014
  }
1054
- return Dt[e];
1015
+ return kt[e];
1055
1016
  }, fe = [];
1056
1017
  function Zr(e, t) {
1057
1018
  return {
1058
- subscribe: je(e, t).subscribe
1019
+ subscribe: We(e, t).subscribe
1059
1020
  };
1060
1021
  }
1061
- function je(e, t = K) {
1022
+ function We(e, t = K) {
1062
1023
  let n;
1063
1024
  const r = /* @__PURE__ */ new Set();
1064
1025
  function o(a) {
1065
- if (hn(e, a) && (e = a, n)) {
1026
+ if (dn(e, a) && (e = a, n)) {
1066
1027
  const u = !fe.length;
1067
1028
  for (const l of r)
1068
1029
  l[1](), fe.push(l, e);
@@ -1084,7 +1045,7 @@ function je(e, t = K) {
1084
1045
  }
1085
1046
  return { set: o, update: i, subscribe: s };
1086
1047
  }
1087
- function _e(e, t, n) {
1048
+ function ye(e, t, n) {
1088
1049
  const r = !Array.isArray(e), o = r ? [e] : e;
1089
1050
  if (!o.every(Boolean))
1090
1051
  throw new Error("derived() expects stores as input, got a falsy value");
@@ -1098,9 +1059,9 @@ function _e(e, t, n) {
1098
1059
  return;
1099
1060
  f();
1100
1061
  const b = t(r ? l[0] : l, s, a);
1101
- i ? s(b) : f = vt(b) ? b : K;
1062
+ i ? s(b) : f = Et(b) ? b : K;
1102
1063
  }, m = o.map(
1103
- (b, h) => fn(
1064
+ (b, h) => pn(
1104
1065
  b,
1105
1066
  (S) => {
1106
1067
  l[h] = S, c &= ~(1 << h), u && d();
@@ -1135,29 +1096,29 @@ function to(e) {
1135
1096
  function no(e) {
1136
1097
  return Array.isArray(e) ? [] : {};
1137
1098
  }
1138
- function Ae(e, t) {
1139
- return t.clone !== !1 && t.isMergeableObject(e) ? be(no(e), e, t) : e;
1099
+ function Se(e, t) {
1100
+ return t.clone !== !1 && t.isMergeableObject(e) ? me(no(e), e, t) : e;
1140
1101
  }
1141
1102
  function ro(e, t, n) {
1142
1103
  return e.concat(t).map(function(r) {
1143
- return Ae(r, n);
1104
+ return Se(r, n);
1144
1105
  });
1145
1106
  }
1146
1107
  function oo(e, t) {
1147
1108
  if (!t.customMerge)
1148
- return be;
1109
+ return me;
1149
1110
  var n = t.customMerge(e);
1150
- return typeof n == "function" ? n : be;
1111
+ return typeof n == "function" ? n : me;
1151
1112
  }
1152
1113
  function io(e) {
1153
1114
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1154
1115
  return Object.propertyIsEnumerable.call(e, t);
1155
1116
  }) : [];
1156
1117
  }
1157
- function Gt(e) {
1118
+ function jt(e) {
1158
1119
  return Object.keys(e).concat(io(e));
1159
1120
  }
1160
- function En(e, t) {
1121
+ function xn(e, t) {
1161
1122
  try {
1162
1123
  return t in e;
1163
1124
  } catch (n) {
@@ -1165,81 +1126,131 @@ function En(e, t) {
1165
1126
  }
1166
1127
  }
1167
1128
  function so(e, t) {
1168
- return En(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1129
+ return xn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1169
1130
  }
1170
1131
  function ao(e, t, n) {
1171
1132
  var r = {};
1172
- return n.isMergeableObject(e) && Gt(e).forEach(function(o) {
1173
- r[o] = Ae(e[o], n);
1174
- }), Gt(t).forEach(function(o) {
1175
- so(e, o) || (En(e, o) && n.isMergeableObject(t[o]) ? r[o] = oo(o, n)(e[o], t[o], n) : r[o] = Ae(t[o], n));
1133
+ return n.isMergeableObject(e) && jt(e).forEach(function(o) {
1134
+ r[o] = Se(e[o], n);
1135
+ }), jt(t).forEach(function(o) {
1136
+ so(e, o) || (xn(e, o) && n.isMergeableObject(t[o]) ? r[o] = oo(o, n)(e[o], t[o], n) : r[o] = Se(t[o], n));
1176
1137
  }), r;
1177
1138
  }
1178
- function be(e, t, n) {
1179
- n = n || {}, n.arrayMerge = n.arrayMerge || ro, n.isMergeableObject = n.isMergeableObject || Qr, n.cloneUnlessOtherwiseSpecified = Ae;
1139
+ function me(e, t, n) {
1140
+ n = n || {}, n.arrayMerge = n.arrayMerge || ro, n.isMergeableObject = n.isMergeableObject || Qr, n.cloneUnlessOtherwiseSpecified = Se;
1180
1141
  var r = Array.isArray(t), o = Array.isArray(e), i = r === o;
1181
- return i ? r ? n.arrayMerge(e, t, n) : ao(e, t, n) : Ae(t, n);
1142
+ return i ? r ? n.arrayMerge(e, t, n) : ao(e, t, n) : Se(t, n);
1182
1143
  }
1183
- be.all = function(t, n) {
1144
+ me.all = function(t, n) {
1184
1145
  if (!Array.isArray(t))
1185
1146
  throw new Error("first argument should be an array");
1186
1147
  return t.reduce(function(r, o) {
1187
- return be(r, o, n);
1148
+ return me(r, o, n);
1188
1149
  }, {});
1189
1150
  };
1190
- var uo = be, lo = uo;
1151
+ var uo = me, lo = uo;
1191
1152
  const co = /* @__PURE__ */ qr(lo);
1192
- function Je(e, t) {
1193
- var n = t && t.cache ? t.cache : go, r = t && t.serializer ? t.serializer : bo, o = t && t.strategy ? t.strategy : fo;
1153
+ var dt = function(e, t) {
1154
+ return dt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
1155
+ n.__proto__ = r;
1156
+ } || function(n, r) {
1157
+ for (var o in r)
1158
+ Object.prototype.hasOwnProperty.call(r, o) && (n[o] = r[o]);
1159
+ }, dt(e, t);
1160
+ };
1161
+ function Ve(e, t) {
1162
+ if (typeof t != "function" && t !== null)
1163
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1164
+ dt(e, t);
1165
+ function n() {
1166
+ this.constructor = e;
1167
+ }
1168
+ e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
1169
+ }
1170
+ var ee = function() {
1171
+ return ee = Object.assign || function(t) {
1172
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
1173
+ n = arguments[r];
1174
+ for (var i in n)
1175
+ Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
1176
+ }
1177
+ return t;
1178
+ }, ee.apply(this, arguments);
1179
+ };
1180
+ function ho(e, t) {
1181
+ var n = {};
1182
+ for (var r in e)
1183
+ Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
1184
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
1185
+ for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
1186
+ t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
1187
+ return n;
1188
+ }
1189
+ function Ye(e, t, n) {
1190
+ if (n || arguments.length === 2)
1191
+ for (var r = 0, o = t.length, i; r < o; r++)
1192
+ (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
1193
+ return e.concat(i || Array.prototype.slice.call(t));
1194
+ }
1195
+ function Ke(e, t) {
1196
+ var n = t && t.cache ? t.cache : yo, r = t && t.serializer ? t.serializer : go, o = t && t.strategy ? t.strategy : mo;
1194
1197
  return o(e, {
1195
1198
  cache: n,
1196
1199
  serializer: r
1197
1200
  });
1198
1201
  }
1199
- function ho(e) {
1202
+ function fo(e) {
1200
1203
  return e == null || typeof e == "number" || typeof e == "boolean";
1201
1204
  }
1202
- function xn(e, t, n, r) {
1203
- var o = ho(r) ? r : n(r), i = t.get(o);
1205
+ function po(e, t, n, r) {
1206
+ var o = fo(r) ? r : n(r), i = t.get(o);
1204
1207
  return typeof i == "undefined" && (i = e.call(this, r), t.set(o, i)), i;
1205
1208
  }
1206
1209
  function wn(e, t, n) {
1207
1210
  var r = Array.prototype.slice.call(arguments, 3), o = n(r), i = t.get(o);
1208
1211
  return typeof i == "undefined" && (i = e.apply(this, r), t.set(o, i)), i;
1209
1212
  }
1210
- function _t(e, t, n, r, o) {
1213
+ function Cn(e, t, n, r, o) {
1211
1214
  return n.bind(t, e, r, o);
1212
1215
  }
1213
- function fo(e, t) {
1214
- var n = e.length === 1 ? xn : wn;
1215
- return _t(e, this, n, t.cache.create(), t.serializer);
1216
- }
1217
- function po(e, t) {
1218
- return _t(e, this, wn, t.cache.create(), t.serializer);
1219
- }
1220
1216
  function mo(e, t) {
1221
- return _t(e, this, xn, t.cache.create(), t.serializer);
1217
+ var n = e.length === 1 ? po : wn;
1218
+ return Cn(e, this, n, t.cache.create(), t.serializer);
1222
1219
  }
1223
- var bo = function() {
1224
- return JSON.stringify(arguments);
1225
- };
1226
- function Bt() {
1227
- this.cache = /* @__PURE__ */ Object.create(null);
1220
+ function bo(e, t) {
1221
+ return Cn(e, this, wn, t.cache.create(), t.serializer);
1228
1222
  }
1229
- Bt.prototype.get = function(e) {
1230
- return this.cache[e];
1231
- };
1232
- Bt.prototype.set = function(e, t) {
1233
- this.cache[e] = t;
1234
- };
1235
- var go = {
1223
+ var go = function() {
1224
+ return JSON.stringify(arguments);
1225
+ }, vo = (
1226
+ /** @class */
1227
+ function() {
1228
+ function e() {
1229
+ this.cache = /* @__PURE__ */ Object.create(null);
1230
+ }
1231
+ return e.prototype.get = function(t) {
1232
+ return this.cache[t];
1233
+ }, e.prototype.set = function(t, n) {
1234
+ this.cache[t] = n;
1235
+ }, e;
1236
+ }()
1237
+ ), yo = {
1236
1238
  create: function() {
1237
- return new Bt();
1239
+ return new vo();
1238
1240
  }
1239
- }, Ye = {
1240
- variadic: po,
1241
- monadic: mo
1242
- }, x;
1241
+ }, et = {
1242
+ variadic: bo
1243
+ }, De = function() {
1244
+ return De = Object.assign || function(t) {
1245
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
1246
+ n = arguments[r];
1247
+ for (var i in n)
1248
+ Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
1249
+ }
1250
+ return t;
1251
+ }, De.apply(this, arguments);
1252
+ };
1253
+ var x;
1243
1254
  (function(e) {
1244
1255
  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";
1245
1256
  })(x || (x = {}));
@@ -1247,47 +1258,47 @@ var O;
1247
1258
  (function(e) {
1248
1259
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
1249
1260
  })(O || (O = {}));
1250
- var ge;
1261
+ var be;
1251
1262
  (function(e) {
1252
1263
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1253
- })(ge || (ge = {}));
1254
- function kt(e) {
1264
+ })(be || (be = {}));
1265
+ function Wt(e) {
1255
1266
  return e.type === O.literal;
1256
1267
  }
1257
- function vo(e) {
1268
+ function _o(e) {
1258
1269
  return e.type === O.argument;
1259
1270
  }
1260
- function Cn(e) {
1271
+ function Sn(e) {
1261
1272
  return e.type === O.number;
1262
1273
  }
1263
- function Sn(e) {
1274
+ function An(e) {
1264
1275
  return e.type === O.date;
1265
1276
  }
1266
- function An(e) {
1277
+ function Tn(e) {
1267
1278
  return e.type === O.time;
1268
1279
  }
1269
- function Tn(e) {
1280
+ function Pn(e) {
1270
1281
  return e.type === O.select;
1271
1282
  }
1272
- function Pn(e) {
1283
+ function Mn(e) {
1273
1284
  return e.type === O.plural;
1274
1285
  }
1275
- function yo(e) {
1286
+ function Bo(e) {
1276
1287
  return e.type === O.pound;
1277
1288
  }
1278
- function Mn(e) {
1289
+ function Hn(e) {
1279
1290
  return e.type === O.tag;
1280
1291
  }
1281
- function Hn(e) {
1282
- return !!(e && typeof e == "object" && e.type === ge.number);
1292
+ function On(e) {
1293
+ return !!(e && typeof e == "object" && e.type === be.number);
1283
1294
  }
1284
- function ct(e) {
1285
- return !!(e && typeof e == "object" && e.type === ge.dateTime);
1295
+ function pt(e) {
1296
+ return !!(e && typeof e == "object" && e.type === be.dateTime);
1286
1297
  }
1287
- var In = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, _o = /(?:[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;
1288
- function Bo(e) {
1298
+ var In = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Eo = /(?:[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;
1299
+ function xo(e) {
1289
1300
  var t = {};
1290
- return e.replace(_o, function(n) {
1301
+ return e.replace(Eo, function(n) {
1291
1302
  var r = n.length;
1292
1303
  switch (n[0]) {
1293
1304
  case "G":
@@ -1376,11 +1387,21 @@ function Bo(e) {
1376
1387
  return "";
1377
1388
  }), t;
1378
1389
  }
1379
- var Eo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1380
- function xo(e) {
1390
+ var I = function() {
1391
+ return I = Object.assign || function(t) {
1392
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
1393
+ n = arguments[r];
1394
+ for (var i in n)
1395
+ Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
1396
+ }
1397
+ return t;
1398
+ }, I.apply(this, arguments);
1399
+ };
1400
+ var wo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1401
+ function Co(e) {
1381
1402
  if (e.length === 0)
1382
1403
  throw new Error("Number skeleton cannot be empty");
1383
- for (var t = e.split(Eo).filter(function(d) {
1404
+ for (var t = e.split(wo).filter(function(d) {
1384
1405
  return d.length > 0;
1385
1406
  }), n = [], r = 0, o = t; r < o.length; r++) {
1386
1407
  var i = o[r], s = i.split("/");
@@ -1395,17 +1416,17 @@ function xo(e) {
1395
1416
  }
1396
1417
  return n;
1397
1418
  }
1398
- function wo(e) {
1419
+ function So(e) {
1399
1420
  return e.replace(/^(.*?)-/, "");
1400
1421
  }
1401
- var jt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, On = /^(@+)?(\+|#+)?[rs]?$/g, Co = /(\*)(0+)|(#+)(0+)|(0+)/g, Nn = /^(0+)$/;
1402
- function Wt(e) {
1422
+ var Vt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nn = /^(@+)?(\+|#+)?[rs]?$/g, Ao = /(\*)(0+)|(#+)(0+)|(0+)/g, Ln = /^(0+)$/;
1423
+ function zt(e) {
1403
1424
  var t = {};
1404
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(On, function(n, r, o) {
1425
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Nn, function(n, r, o) {
1405
1426
  return typeof o != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : o === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof o == "string" ? o.length : 0)), "";
1406
1427
  }), t;
1407
1428
  }
1408
- function Ln(e) {
1429
+ function Rn(e) {
1409
1430
  switch (e) {
1410
1431
  case "sign-auto":
1411
1432
  return {
@@ -1445,7 +1466,7 @@ function Ln(e) {
1445
1466
  };
1446
1467
  }
1447
1468
  }
1448
- function So(e) {
1469
+ function To(e) {
1449
1470
  var t;
1450
1471
  if (e[0] === "E" && e[1] === "E" ? (t = {
1451
1472
  notation: "engineering"
@@ -1453,17 +1474,17 @@ function So(e) {
1453
1474
  notation: "scientific"
1454
1475
  }, e = e.slice(1)), t) {
1455
1476
  var n = e.slice(0, 2);
1456
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Nn.test(e))
1477
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ln.test(e))
1457
1478
  throw new Error("Malformed concise eng/scientific notation");
1458
1479
  t.minimumIntegerDigits = e.length;
1459
1480
  }
1460
1481
  return t;
1461
1482
  }
1462
- function Vt(e) {
1463
- var t = {}, n = Ln(e);
1483
+ function Xt(e) {
1484
+ var t = {}, n = Rn(e);
1464
1485
  return n || t;
1465
1486
  }
1466
- function Ao(e) {
1487
+ function Po(e) {
1467
1488
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
1468
1489
  var o = r[n];
1469
1490
  switch (o.stem) {
@@ -1487,7 +1508,7 @@ function Ao(e) {
1487
1508
  continue;
1488
1509
  case "measure-unit":
1489
1510
  case "unit":
1490
- t.style = "unit", t.unit = wo(o.options[0]);
1511
+ t.style = "unit", t.unit = So(o.options[0]);
1491
1512
  continue;
1492
1513
  case "compact-short":
1493
1514
  case "K":
@@ -1498,13 +1519,13 @@ function Ao(e) {
1498
1519
  t.notation = "compact", t.compactDisplay = "long";
1499
1520
  continue;
1500
1521
  case "scientific":
1501
- t = A(A(A({}, t), { notation: "scientific" }), o.options.reduce(function(u, l) {
1502
- return A(A({}, u), Vt(l));
1522
+ t = I(I(I({}, t), { notation: "scientific" }), o.options.reduce(function(u, l) {
1523
+ return I(I({}, u), Xt(l));
1503
1524
  }, {}));
1504
1525
  continue;
1505
1526
  case "engineering":
1506
- t = A(A(A({}, t), { notation: "engineering" }), o.options.reduce(function(u, l) {
1507
- return A(A({}, u), Vt(l));
1527
+ t = I(I(I({}, t), { notation: "engineering" }), o.options.reduce(function(u, l) {
1528
+ return I(I({}, u), Xt(l));
1508
1529
  }, {}));
1509
1530
  continue;
1510
1531
  case "notation-simple":
@@ -1549,7 +1570,7 @@ function Ao(e) {
1549
1570
  case "integer-width":
1550
1571
  if (o.options.length > 1)
1551
1572
  throw new RangeError("integer-width stems only accept a single optional option");
1552
- o.options[0].replace(Co, function(u, l, c, f, d, m) {
1573
+ o.options[0].replace(Ao, function(u, l, c, f, d, m) {
1553
1574
  if (l)
1554
1575
  t.minimumIntegerDigits = c.length;
1555
1576
  else {
@@ -1562,28 +1583,28 @@ function Ao(e) {
1562
1583
  });
1563
1584
  continue;
1564
1585
  }
1565
- if (Nn.test(o.stem)) {
1586
+ if (Ln.test(o.stem)) {
1566
1587
  t.minimumIntegerDigits = o.stem.length;
1567
1588
  continue;
1568
1589
  }
1569
- if (jt.test(o.stem)) {
1590
+ if (Vt.test(o.stem)) {
1570
1591
  if (o.options.length > 1)
1571
1592
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1572
- o.stem.replace(jt, function(u, l, c, f, d, m) {
1593
+ o.stem.replace(Vt, function(u, l, c, f, d, m) {
1573
1594
  return c === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : d && m ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1574
1595
  });
1575
1596
  var i = o.options[0];
1576
- i === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = A(A({}, t), Wt(i)));
1597
+ i === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = I(I({}, t), zt(i)));
1577
1598
  continue;
1578
1599
  }
1579
- if (On.test(o.stem)) {
1580
- t = A(A({}, t), Wt(o.stem));
1600
+ if (Nn.test(o.stem)) {
1601
+ t = I(I({}, t), zt(o.stem));
1581
1602
  continue;
1582
1603
  }
1583
- var s = Ln(o.stem);
1584
- s && (t = A(A({}, t), s));
1585
- var a = So(o.stem);
1586
- a && (t = A(A({}, t), a));
1604
+ var s = Rn(o.stem);
1605
+ s && (t = I(I({}, t), s));
1606
+ var a = To(o.stem);
1607
+ a && (t = I(I({}, t), a));
1587
1608
  }
1588
1609
  return t;
1589
1610
  }
@@ -3002,13 +3023,13 @@ var Ne = {
3002
3023
  "h"
3003
3024
  ]
3004
3025
  };
3005
- function To(e, t) {
3026
+ function Mo(e, t) {
3006
3027
  for (var n = "", r = 0; r < e.length; r++) {
3007
3028
  var o = e.charAt(r);
3008
3029
  if (o === "j") {
3009
3030
  for (var i = 0; r + 1 < e.length && e.charAt(r + 1) === o; )
3010
3031
  i++, r++;
3011
- var s = 1 + (i & 1), a = i < 2 ? 1 : 3 + (i >> 1), u = "a", l = Po(t);
3032
+ var s = 1 + (i & 1), a = i < 2 ? 1 : 3 + (i >> 1), u = "a", l = Ho(t);
3012
3033
  for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
3013
3034
  n += u;
3014
3035
  for (; s-- > 0; )
@@ -3018,7 +3039,7 @@ function To(e, t) {
3018
3039
  }
3019
3040
  return n;
3020
3041
  }
3021
- function Po(e) {
3042
+ function Ho(e) {
3022
3043
  var t = e.hourCycle;
3023
3044
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3024
3045
  e.hourCycles && // @ts-ignore
@@ -3040,20 +3061,20 @@ function Po(e) {
3040
3061
  var o = Ne[r || ""] || Ne[n || ""] || Ne["".concat(n, "-001")] || Ne["001"];
3041
3062
  return o[0];
3042
3063
  }
3043
- var Ke, Mo = new RegExp("^".concat(In.source, "*")), Ho = new RegExp("".concat(In.source, "*$"));
3064
+ var tt, Oo = new RegExp("^".concat(In.source, "*")), Io = new RegExp("".concat(In.source, "*$"));
3044
3065
  function w(e, t) {
3045
3066
  return { start: e, end: t };
3046
3067
  }
3047
- var Io = !!String.prototype.startsWith && "_a".startsWith("a", 1), Oo = !!String.fromCodePoint, No = !!Object.fromEntries, Lo = !!String.prototype.codePointAt, Ro = !!String.prototype.trimStart, $o = !!String.prototype.trimEnd, Fo = !!Number.isSafeInteger, Uo = Fo ? Number.isSafeInteger : function(e) {
3068
+ var No = !!String.prototype.startsWith && "_a".startsWith("a", 1), Lo = !!String.fromCodePoint, Ro = !!Object.fromEntries, $o = !!String.prototype.codePointAt, Fo = !!String.prototype.trimStart, Uo = !!String.prototype.trimEnd, Do = !!Number.isSafeInteger, Go = Do ? Number.isSafeInteger : function(e) {
3048
3069
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3049
- }, ht = !0;
3070
+ }, mt = !0;
3050
3071
  try {
3051
- var Do = $n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3052
- ht = ((Ke = Do.exec("a")) === null || Ke === void 0 ? void 0 : Ke[0]) === "a";
3072
+ var ko = Fn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3073
+ mt = ((tt = ko.exec("a")) === null || tt === void 0 ? void 0 : tt[0]) === "a";
3053
3074
  } catch (e) {
3054
- ht = !1;
3075
+ mt = !1;
3055
3076
  }
3056
- var zt = Io ? (
3077
+ var Zt = No ? (
3057
3078
  // Native
3058
3079
  function(t, n, r) {
3059
3080
  return t.startsWith(n, r);
@@ -3063,7 +3084,7 @@ var zt = Io ? (
3063
3084
  function(t, n, r) {
3064
3085
  return t.slice(r, r + n.length) === n;
3065
3086
  }
3066
- ), ft = Oo ? String.fromCodePoint : (
3087
+ ), bt = Lo ? String.fromCodePoint : (
3067
3088
  // IE11
3068
3089
  function() {
3069
3090
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -3075,9 +3096,9 @@ var zt = Io ? (
3075
3096
  }
3076
3097
  return r;
3077
3098
  }
3078
- ), Xt = (
3099
+ ), qt = (
3079
3100
  // native
3080
- No ? Object.fromEntries : (
3101
+ Ro ? Object.fromEntries : (
3081
3102
  // Ponyfill
3082
3103
  function(t) {
3083
3104
  for (var n = {}, r = 0, o = t; r < o.length; r++) {
@@ -3087,7 +3108,7 @@ var zt = Io ? (
3087
3108
  return n;
3088
3109
  }
3089
3110
  )
3090
- ), Rn = Lo ? (
3111
+ ), $n = $o ? (
3091
3112
  // Native
3092
3113
  function(t, n) {
3093
3114
  return t.codePointAt(n);
@@ -3101,7 +3122,7 @@ var zt = Io ? (
3101
3122
  return o < 55296 || o > 56319 || n + 1 === r || (i = t.charCodeAt(n + 1)) < 56320 || i > 57343 ? o : (o - 55296 << 10) + (i - 56320) + 65536;
3102
3123
  }
3103
3124
  }
3104
- ), Go = Ro ? (
3125
+ ), jo = Fo ? (
3105
3126
  // Native
3106
3127
  function(t) {
3107
3128
  return t.trimStart();
@@ -3109,9 +3130,9 @@ var zt = Io ? (
3109
3130
  ) : (
3110
3131
  // Ponyfill
3111
3132
  function(t) {
3112
- return t.replace(Mo, "");
3133
+ return t.replace(Oo, "");
3113
3134
  }
3114
- ), ko = $o ? (
3135
+ ), Wo = Uo ? (
3115
3136
  // Native
3116
3137
  function(t) {
3117
3138
  return t.trimEnd();
@@ -3119,32 +3140,32 @@ var zt = Io ? (
3119
3140
  ) : (
3120
3141
  // Ponyfill
3121
3142
  function(t) {
3122
- return t.replace(Ho, "");
3143
+ return t.replace(Io, "");
3123
3144
  }
3124
3145
  );
3125
- function $n(e, t) {
3146
+ function Fn(e, t) {
3126
3147
  return new RegExp(e, t);
3127
3148
  }
3128
- var dt;
3129
- if (ht) {
3130
- var Zt = $n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3131
- dt = function(t, n) {
3149
+ var gt;
3150
+ if (mt) {
3151
+ var Qt = Fn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3152
+ gt = function(t, n) {
3132
3153
  var r;
3133
- Zt.lastIndex = n;
3134
- var o = Zt.exec(t);
3154
+ Qt.lastIndex = n;
3155
+ var o = Qt.exec(t);
3135
3156
  return (r = o[1]) !== null && r !== void 0 ? r : "";
3136
3157
  };
3137
3158
  } else
3138
- dt = function(t, n) {
3159
+ gt = function(t, n) {
3139
3160
  for (var r = []; ; ) {
3140
- var o = Rn(t, n);
3141
- if (o === void 0 || Fn(o) || zo(o))
3161
+ var o = $n(t, n);
3162
+ if (o === void 0 || Un(o) || Zo(o))
3142
3163
  break;
3143
3164
  r.push(o), n += o >= 65536 ? 2 : 1;
3144
3165
  }
3145
- return ft.apply(void 0, r);
3166
+ return bt.apply(void 0, r);
3146
3167
  };
3147
- var jo = (
3168
+ var Vo = (
3148
3169
  /** @class */
3149
3170
  function() {
3150
3171
  function e(t, n) {
@@ -3175,7 +3196,7 @@ var jo = (
3175
3196
  if (r)
3176
3197
  break;
3177
3198
  return this.error(x.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
3178
- } else if (i === 60 && !this.ignoreTag && pt(this.peek() || 0)) {
3199
+ } else if (i === 60 && !this.ignoreTag && vt(this.peek() || 0)) {
3179
3200
  var s = this.parseTag(t, n);
3180
3201
  if (s.err)
3181
3202
  return s;
@@ -3208,7 +3229,7 @@ var jo = (
3208
3229
  return i;
3209
3230
  var s = i.val, a = this.clonePosition();
3210
3231
  if (this.bumpIf("</")) {
3211
- if (this.isEOF() || !pt(this.char()))
3232
+ if (this.isEOF() || !vt(this.char()))
3212
3233
  return this.error(x.INVALID_TAG, w(a, this.clonePosition()));
3213
3234
  var u = this.clonePosition(), l = this.parseTagName();
3214
3235
  return o !== l ? this.error(x.UNMATCHED_CLOSING_TAG, w(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -3226,7 +3247,7 @@ var jo = (
3226
3247
  return this.error(x.INVALID_TAG, w(r, this.clonePosition()));
3227
3248
  }, e.prototype.parseTagName = function() {
3228
3249
  var t = this.offset();
3229
- for (this.bump(); !this.isEOF() && Vo(this.char()); )
3250
+ for (this.bump(); !this.isEOF() && Xo(this.char()); )
3230
3251
  this.bump();
3231
3252
  return this.message.slice(t, this.offset());
3232
3253
  }, e.prototype.parseLiteral = function(t, n) {
@@ -3255,7 +3276,7 @@ var jo = (
3255
3276
  };
3256
3277
  }, e.prototype.tryParseLeftAngleBracket = function() {
3257
3278
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3258
- !Wo(this.peek() || 0)) ? (this.bump(), "<") : null;
3279
+ !zo(this.peek() || 0)) ? (this.bump(), "<") : null;
3259
3280
  }, e.prototype.tryParseQuote = function(t) {
3260
3281
  if (this.isEOF() || this.char() !== 39)
3261
3282
  return null;
@@ -3289,12 +3310,12 @@ var jo = (
3289
3310
  n.push(r);
3290
3311
  this.bump();
3291
3312
  }
3292
- return ft.apply(void 0, n);
3313
+ return bt.apply(void 0, n);
3293
3314
  }, e.prototype.tryParseUnquoted = function(t, n) {
3294
3315
  if (this.isEOF())
3295
3316
  return null;
3296
3317
  var r = this.char();
3297
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), ft(r));
3318
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), bt(r));
3298
3319
  }, e.prototype.parseArgument = function(t, n) {
3299
3320
  var r = this.clonePosition();
3300
3321
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3323,7 +3344,7 @@ var jo = (
3323
3344
  return this.error(x.MALFORMED_ARGUMENT, w(r, this.clonePosition()));
3324
3345
  }
3325
3346
  }, e.prototype.parseIdentifierIfPossible = function() {
3326
- var t = this.clonePosition(), n = this.offset(), r = dt(this.message, n), o = n + r.length;
3347
+ var t = this.clonePosition(), n = this.offset(), r = gt(this.message, n), o = n + r.length;
3327
3348
  this.bumpTo(o);
3328
3349
  var i = this.clonePosition(), s = w(t, i);
3329
3350
  return { value: r, location: s };
@@ -3342,7 +3363,7 @@ var jo = (
3342
3363
  var c = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3343
3364
  if (f.err)
3344
3365
  return f;
3345
- var d = ko(f.val);
3366
+ var d = Wo(f.val);
3346
3367
  if (d.length === 0)
3347
3368
  return this.error(x.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
3348
3369
  var m = w(c, this.clonePosition());
@@ -3352,8 +3373,8 @@ var jo = (
3352
3373
  if (b.err)
3353
3374
  return b;
3354
3375
  var h = w(o, this.clonePosition());
3355
- if (l && zt(l == null ? void 0 : l.style, "::", 0)) {
3356
- var S = Go(l.style.slice(2));
3376
+ if (l && Zt(l == null ? void 0 : l.style, "::", 0)) {
3377
+ var S = jo(l.style.slice(2));
3357
3378
  if (a === "number") {
3358
3379
  var f = this.parseNumberSkeletonFromString(S, l.styleLocation);
3359
3380
  return f.err ? f : {
@@ -3364,12 +3385,12 @@ var jo = (
3364
3385
  if (S.length === 0)
3365
3386
  return this.error(x.EXPECT_DATE_TIME_SKELETON, h);
3366
3387
  var _ = S;
3367
- this.locale && (_ = To(S, this.locale));
3388
+ this.locale && (_ = Mo(S, this.locale));
3368
3389
  var d = {
3369
- type: ge.dateTime,
3390
+ type: be.dateTime,
3370
3391
  pattern: _,
3371
3392
  location: l.styleLocation,
3372
- parsedOptions: this.shouldParseSkeletons ? Bo(_) : {}
3393
+ parsedOptions: this.shouldParseSkeletons ? xo(_) : {}
3373
3394
  }, y = a === "date" ? O.date : O.time;
3374
3395
  return {
3375
3396
  val: { type: y, value: r, location: h, style: d },
@@ -3390,21 +3411,21 @@ var jo = (
3390
3411
  case "plural":
3391
3412
  case "selectordinal":
3392
3413
  case "select": {
3393
- var M = this.clonePosition();
3414
+ var P = this.clonePosition();
3394
3415
  if (this.bumpSpace(), !this.bumpIf(","))
3395
- return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, w(M, A({}, M)));
3416
+ return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, w(P, De({}, P)));
3396
3417
  this.bumpSpace();
3397
- var H = this.parseIdentifierIfPossible(), T = 0;
3398
- if (a !== "select" && H.value === "offset") {
3418
+ var M = this.parseIdentifierIfPossible(), A = 0;
3419
+ if (a !== "select" && M.value === "offset") {
3399
3420
  if (!this.bumpIf(":"))
3400
3421
  return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
3401
3422
  this.bumpSpace();
3402
3423
  var f = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3403
3424
  if (f.err)
3404
3425
  return f;
3405
- this.bumpSpace(), H = this.parseIdentifierIfPossible(), T = f.val;
3426
+ this.bumpSpace(), M = this.parseIdentifierIfPossible(), A = f.val;
3406
3427
  }
3407
- var E = this.tryParsePluralOrSelectOptions(t, a, n, H);
3428
+ var E = this.tryParsePluralOrSelectOptions(t, a, n, M);
3408
3429
  if (E.err)
3409
3430
  return E;
3410
3431
  var b = this.tryParseArgumentClose(o);
@@ -3415,7 +3436,7 @@ var jo = (
3415
3436
  val: {
3416
3437
  type: O.select,
3417
3438
  value: r,
3418
- options: Xt(E.val),
3439
+ options: qt(E.val),
3419
3440
  location: N
3420
3441
  },
3421
3442
  err: null
@@ -3423,8 +3444,8 @@ var jo = (
3423
3444
  val: {
3424
3445
  type: O.plural,
3425
3446
  value: r,
3426
- options: Xt(E.val),
3427
- offset: T,
3447
+ options: qt(E.val),
3448
+ offset: A,
3428
3449
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3429
3450
  location: N
3430
3451
  },
@@ -3474,16 +3495,16 @@ var jo = (
3474
3495
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
3475
3496
  var r = [];
3476
3497
  try {
3477
- r = xo(t);
3498
+ r = Co(t);
3478
3499
  } catch (o) {
3479
3500
  return this.error(x.INVALID_NUMBER_SKELETON, n);
3480
3501
  }
3481
3502
  return {
3482
3503
  val: {
3483
- type: ge.number,
3504
+ type: be.number,
3484
3505
  tokens: r,
3485
3506
  location: n,
3486
- parsedOptions: this.shouldParseSkeletons ? Ao(r) : {}
3507
+ parsedOptions: this.shouldParseSkeletons ? Po(r) : {}
3487
3508
  },
3488
3509
  err: null
3489
3510
  };
@@ -3531,7 +3552,7 @@ var jo = (
3531
3552
  break;
3532
3553
  }
3533
3554
  var u = w(o, this.clonePosition());
3534
- return i ? (s *= r, Uo(s) ? { val: s, err: null } : this.error(n, u)) : this.error(t, u);
3555
+ return i ? (s *= r, Go(s) ? { val: s, err: null } : this.error(n, u)) : this.error(t, u);
3535
3556
  }, e.prototype.offset = function() {
3536
3557
  return this.position.offset;
3537
3558
  }, e.prototype.isEOF = function() {
@@ -3546,7 +3567,7 @@ var jo = (
3546
3567
  var t = this.position.offset;
3547
3568
  if (t >= this.message.length)
3548
3569
  throw Error("out of bound");
3549
- var n = Rn(this.message, t);
3570
+ var n = $n(this.message, t);
3550
3571
  if (n === void 0)
3551
3572
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3552
3573
  return n;
@@ -3565,7 +3586,7 @@ var jo = (
3565
3586
  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);
3566
3587
  }
3567
3588
  }, e.prototype.bumpIf = function(t) {
3568
- if (zt(this.message, t, this.offset())) {
3589
+ if (Zt(this.message, t, this.offset())) {
3569
3590
  for (var n = 0; n < t.length; n++)
3570
3591
  this.bump();
3571
3592
  return !0;
@@ -3587,7 +3608,7 @@ var jo = (
3587
3608
  break;
3588
3609
  }
3589
3610
  }, e.prototype.bumpSpace = function() {
3590
- for (; !this.isEOF() && Fn(this.char()); )
3611
+ for (; !this.isEOF() && Un(this.char()); )
3591
3612
  this.bump();
3592
3613
  }, e.prototype.peek = function() {
3593
3614
  if (this.isEOF())
@@ -3597,47 +3618,47 @@ var jo = (
3597
3618
  }, e;
3598
3619
  }()
3599
3620
  );
3600
- function pt(e) {
3621
+ function vt(e) {
3601
3622
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3602
3623
  }
3603
- function Wo(e) {
3604
- return pt(e) || e === 47;
3624
+ function zo(e) {
3625
+ return vt(e) || e === 47;
3605
3626
  }
3606
- function Vo(e) {
3627
+ function Xo(e) {
3607
3628
  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;
3608
3629
  }
3609
- function Fn(e) {
3630
+ function Un(e) {
3610
3631
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3611
3632
  }
3612
- function zo(e) {
3633
+ function Zo(e) {
3613
3634
  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;
3614
3635
  }
3615
- function mt(e) {
3636
+ function yt(e) {
3616
3637
  e.forEach(function(t) {
3617
- if (delete t.location, Tn(t) || Pn(t))
3638
+ if (delete t.location, Pn(t) || Mn(t))
3618
3639
  for (var n in t.options)
3619
- delete t.options[n].location, mt(t.options[n].value);
3640
+ delete t.options[n].location, yt(t.options[n].value);
3620
3641
  else
3621
- Cn(t) && Hn(t.style) || (Sn(t) || An(t)) && ct(t.style) ? delete t.style.location : Mn(t) && mt(t.children);
3642
+ Sn(t) && On(t.style) || (An(t) || Tn(t)) && pt(t.style) ? delete t.style.location : Hn(t) && yt(t.children);
3622
3643
  });
3623
3644
  }
3624
- function Xo(e, t) {
3625
- t === void 0 && (t = {}), t = A({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3626
- var n = new jo(e, t).parse();
3645
+ function qo(e, t) {
3646
+ t === void 0 && (t = {}), t = De({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3647
+ var n = new Vo(e, t).parse();
3627
3648
  if (n.err) {
3628
3649
  var r = SyntaxError(x[n.err.kind]);
3629
3650
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3630
3651
  }
3631
- return t != null && t.captureLocation || mt(n.val), n.val;
3652
+ return t != null && t.captureLocation || yt(n.val), n.val;
3632
3653
  }
3633
- var ve;
3654
+ var ge;
3634
3655
  (function(e) {
3635
3656
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3636
- })(ve || (ve = {}));
3637
- var We = (
3657
+ })(ge || (ge = {}));
3658
+ var ze = (
3638
3659
  /** @class */
3639
3660
  function(e) {
3640
- oe(t, e);
3661
+ Ve(t, e);
3641
3662
  function t(n, r, o) {
3642
3663
  var i = e.call(this, n) || this;
3643
3664
  return i.code = r, i.originalMessage = o, i;
@@ -3646,48 +3667,48 @@ var We = (
3646
3667
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3647
3668
  }, t;
3648
3669
  }(Error)
3649
- ), qt = (
3670
+ ), Jt = (
3650
3671
  /** @class */
3651
3672
  function(e) {
3652
- oe(t, e);
3673
+ Ve(t, e);
3653
3674
  function t(n, r, o, i) {
3654
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(o).join('", "'), '"'), ve.INVALID_VALUE, i) || this;
3675
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(o).join('", "'), '"'), ge.INVALID_VALUE, i) || this;
3655
3676
  }
3656
3677
  return t;
3657
- }(We)
3658
- ), Zo = (
3678
+ }(ze)
3679
+ ), Qo = (
3659
3680
  /** @class */
3660
3681
  function(e) {
3661
- oe(t, e);
3682
+ Ve(t, e);
3662
3683
  function t(n, r, o) {
3663
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ve.INVALID_VALUE, o) || this;
3684
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ge.INVALID_VALUE, o) || this;
3664
3685
  }
3665
3686
  return t;
3666
- }(We)
3667
- ), qo = (
3687
+ }(ze)
3688
+ ), Jo = (
3668
3689
  /** @class */
3669
3690
  function(e) {
3670
- oe(t, e);
3691
+ Ve(t, e);
3671
3692
  function t(n, r) {
3672
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ve.MISSING_VALUE, r) || this;
3693
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ge.MISSING_VALUE, r) || this;
3673
3694
  }
3674
3695
  return t;
3675
- }(We)
3696
+ }(ze)
3676
3697
  ), j;
3677
3698
  (function(e) {
3678
3699
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3679
3700
  })(j || (j = {}));
3680
- function Qo(e) {
3701
+ function Yo(e) {
3681
3702
  return e.length < 2 ? e : e.reduce(function(t, n) {
3682
3703
  var r = t[t.length - 1];
3683
3704
  return !r || r.type !== j.literal || n.type !== j.literal ? t.push(n) : r.value += n.value, t;
3684
3705
  }, []);
3685
3706
  }
3686
- function Jo(e) {
3707
+ function Ko(e) {
3687
3708
  return typeof e == "function";
3688
3709
  }
3689
3710
  function $e(e, t, n, r, o, i, s) {
3690
- if (e.length === 1 && kt(e[0]))
3711
+ if (e.length === 1 && Wt(e[0]))
3691
3712
  return [
3692
3713
  {
3693
3714
  type: j.literal,
@@ -3696,14 +3717,14 @@ function $e(e, t, n, r, o, i, s) {
3696
3717
  ];
3697
3718
  for (var a = [], u = 0, l = e; u < l.length; u++) {
3698
3719
  var c = l[u];
3699
- if (kt(c)) {
3720
+ if (Wt(c)) {
3700
3721
  a.push({
3701
3722
  type: j.literal,
3702
3723
  value: c.value
3703
3724
  });
3704
3725
  continue;
3705
3726
  }
3706
- if (yo(c)) {
3727
+ if (Bo(c)) {
3707
3728
  typeof i == "number" && a.push({
3708
3729
  type: j.literal,
3709
3730
  value: n.getNumberFormat(t).format(i)
@@ -3712,89 +3733,89 @@ function $e(e, t, n, r, o, i, s) {
3712
3733
  }
3713
3734
  var f = c.value;
3714
3735
  if (!(o && f in o))
3715
- throw new qo(f, s);
3736
+ throw new Jo(f, s);
3716
3737
  var d = o[f];
3717
- if (vo(c)) {
3738
+ if (_o(c)) {
3718
3739
  (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
3719
3740
  type: typeof d == "string" ? j.literal : j.object,
3720
3741
  value: d
3721
3742
  });
3722
3743
  continue;
3723
3744
  }
3724
- if (Sn(c)) {
3725
- var m = typeof c.style == "string" ? r.date[c.style] : ct(c.style) ? c.style.parsedOptions : void 0;
3745
+ if (An(c)) {
3746
+ var m = typeof c.style == "string" ? r.date[c.style] : pt(c.style) ? c.style.parsedOptions : void 0;
3726
3747
  a.push({
3727
3748
  type: j.literal,
3728
3749
  value: n.getDateTimeFormat(t, m).format(d)
3729
3750
  });
3730
3751
  continue;
3731
3752
  }
3732
- if (An(c)) {
3733
- var m = typeof c.style == "string" ? r.time[c.style] : ct(c.style) ? c.style.parsedOptions : r.time.medium;
3753
+ if (Tn(c)) {
3754
+ var m = typeof c.style == "string" ? r.time[c.style] : pt(c.style) ? c.style.parsedOptions : r.time.medium;
3734
3755
  a.push({
3735
3756
  type: j.literal,
3736
3757
  value: n.getDateTimeFormat(t, m).format(d)
3737
3758
  });
3738
3759
  continue;
3739
3760
  }
3740
- if (Cn(c)) {
3741
- var m = typeof c.style == "string" ? r.number[c.style] : Hn(c.style) ? c.style.parsedOptions : void 0;
3761
+ if (Sn(c)) {
3762
+ var m = typeof c.style == "string" ? r.number[c.style] : On(c.style) ? c.style.parsedOptions : void 0;
3742
3763
  m && m.scale && (d = d * (m.scale || 1)), a.push({
3743
3764
  type: j.literal,
3744
3765
  value: n.getNumberFormat(t, m).format(d)
3745
3766
  });
3746
3767
  continue;
3747
3768
  }
3748
- if (Mn(c)) {
3769
+ if (Hn(c)) {
3749
3770
  var b = c.children, h = c.value, S = o[h];
3750
- if (!Jo(S))
3751
- throw new Zo(h, "function", s);
3752
- var _ = $e(b, t, n, r, o, i), y = S(_.map(function(T) {
3753
- return T.value;
3771
+ if (!Ko(S))
3772
+ throw new Qo(h, "function", s);
3773
+ var _ = $e(b, t, n, r, o, i), y = S(_.map(function(A) {
3774
+ return A.value;
3754
3775
  }));
3755
- Array.isArray(y) || (y = [y]), a.push.apply(a, y.map(function(T) {
3776
+ Array.isArray(y) || (y = [y]), a.push.apply(a, y.map(function(A) {
3756
3777
  return {
3757
- type: typeof T == "string" ? j.literal : j.object,
3758
- value: T
3778
+ type: typeof A == "string" ? j.literal : j.object,
3779
+ value: A
3759
3780
  };
3760
3781
  }));
3761
3782
  }
3762
- if (Tn(c)) {
3763
- var M = c.options[d] || c.options.other;
3764
- if (!M)
3765
- throw new qt(c.value, d, Object.keys(c.options), s);
3766
- a.push.apply(a, $e(M.value, t, n, r, o));
3783
+ if (Pn(c)) {
3784
+ var P = c.options[d] || c.options.other;
3785
+ if (!P)
3786
+ throw new Jt(c.value, d, Object.keys(c.options), s);
3787
+ a.push.apply(a, $e(P.value, t, n, r, o));
3767
3788
  continue;
3768
3789
  }
3769
- if (Pn(c)) {
3770
- var M = c.options["=".concat(d)];
3771
- if (!M) {
3790
+ if (Mn(c)) {
3791
+ var P = c.options["=".concat(d)];
3792
+ if (!P) {
3772
3793
  if (!Intl.PluralRules)
3773
- throw new We(`Intl.PluralRules is not available in this environment.
3794
+ throw new ze(`Intl.PluralRules is not available in this environment.
3774
3795
  Try polyfilling it using "@formatjs/intl-pluralrules"
3775
- `, ve.MISSING_INTL_API, s);
3776
- var H = n.getPluralRules(t, { type: c.pluralType }).select(d - (c.offset || 0));
3777
- M = c.options[H] || c.options.other;
3796
+ `, ge.MISSING_INTL_API, s);
3797
+ var M = n.getPluralRules(t, { type: c.pluralType }).select(d - (c.offset || 0));
3798
+ P = c.options[M] || c.options.other;
3778
3799
  }
3779
- if (!M)
3780
- throw new qt(c.value, d, Object.keys(c.options), s);
3781
- a.push.apply(a, $e(M.value, t, n, r, o, d - (c.offset || 0)));
3800
+ if (!P)
3801
+ throw new Jt(c.value, d, Object.keys(c.options), s);
3802
+ a.push.apply(a, $e(P.value, t, n, r, o, d - (c.offset || 0)));
3782
3803
  continue;
3783
3804
  }
3784
3805
  }
3785
- return Qo(a);
3806
+ return Yo(a);
3786
3807
  }
3787
- function Yo(e, t) {
3788
- return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3789
- return n[r] = A(A({}, e[r]), t[r] || {}), n;
3808
+ function ei(e, t) {
3809
+ return t ? ee(ee(ee({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3810
+ return n[r] = ee(ee({}, e[r]), t[r] || {}), n;
3790
3811
  }, {})) : e;
3791
3812
  }
3792
- function Ko(e, t) {
3813
+ function ti(e, t) {
3793
3814
  return t ? Object.keys(e).reduce(function(n, r) {
3794
- return n[r] = Yo(e[r], t[r]), n;
3795
- }, A({}, e)) : e;
3815
+ return n[r] = ei(e[r], t[r]), n;
3816
+ }, ee({}, e)) : e;
3796
3817
  }
3797
- function et(e) {
3818
+ function nt(e) {
3798
3819
  return {
3799
3820
  create: function() {
3800
3821
  return {
@@ -3808,39 +3829,39 @@ function et(e) {
3808
3829
  }
3809
3830
  };
3810
3831
  }
3811
- function ei(e) {
3832
+ function ni(e) {
3812
3833
  return e === void 0 && (e = {
3813
3834
  number: {},
3814
3835
  dateTime: {},
3815
3836
  pluralRules: {}
3816
3837
  }), {
3817
- getNumberFormat: Je(function() {
3838
+ getNumberFormat: Ke(function() {
3818
3839
  for (var t, n = [], r = 0; r < arguments.length; r++)
3819
3840
  n[r] = arguments[r];
3820
- return new ((t = Intl.NumberFormat).bind.apply(t, me([void 0], n, !1)))();
3841
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ye([void 0], n, !1)))();
3821
3842
  }, {
3822
- cache: et(e.number),
3823
- strategy: Ye.variadic
3843
+ cache: nt(e.number),
3844
+ strategy: et.variadic
3824
3845
  }),
3825
- getDateTimeFormat: Je(function() {
3846
+ getDateTimeFormat: Ke(function() {
3826
3847
  for (var t, n = [], r = 0; r < arguments.length; r++)
3827
3848
  n[r] = arguments[r];
3828
- return new ((t = Intl.DateTimeFormat).bind.apply(t, me([void 0], n, !1)))();
3849
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ye([void 0], n, !1)))();
3829
3850
  }, {
3830
- cache: et(e.dateTime),
3831
- strategy: Ye.variadic
3851
+ cache: nt(e.dateTime),
3852
+ strategy: et.variadic
3832
3853
  }),
3833
- getPluralRules: Je(function() {
3854
+ getPluralRules: Ke(function() {
3834
3855
  for (var t, n = [], r = 0; r < arguments.length; r++)
3835
3856
  n[r] = arguments[r];
3836
- return new ((t = Intl.PluralRules).bind.apply(t, me([void 0], n, !1)))();
3857
+ return new ((t = Intl.PluralRules).bind.apply(t, Ye([void 0], n, !1)))();
3837
3858
  }, {
3838
- cache: et(e.pluralRules),
3839
- strategy: Ye.variadic
3859
+ cache: nt(e.pluralRules),
3860
+ strategy: et.variadic
3840
3861
  })
3841
3862
  };
3842
3863
  }
3843
- var ti = (
3864
+ var ri = (
3844
3865
  /** @class */
3845
3866
  function() {
3846
3867
  function e(t, n, r, o) {
@@ -3872,13 +3893,13 @@ var ti = (
3872
3893
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3873
3894
  var s = o || {};
3874
3895
  s.formatters;
3875
- var a = Or(s, ["formatters"]);
3876
- this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
3896
+ var a = ho(s, ["formatters"]);
3897
+ this.ast = e.__parse(t, ee(ee({}, a), { locale: this.resolvedLocale }));
3877
3898
  } else
3878
3899
  this.ast = t;
3879
3900
  if (!Array.isArray(this.ast))
3880
3901
  throw new TypeError("A message must be provided as a String or AST.");
3881
- this.formats = Ko(e.formats, r), this.formatters = o && o.formatters || ei(this.formatterCache);
3902
+ this.formats = ti(e.formats, r), this.formatters = o && o.formatters || ni(this.formatterCache);
3882
3903
  }
3883
3904
  return Object.defineProperty(e, "defaultLocale", {
3884
3905
  get: function() {
@@ -3891,7 +3912,7 @@ var ti = (
3891
3912
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3892
3913
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3893
3914
  }
3894
- }, e.__parse = Xo, e.formats = {
3915
+ }, e.__parse = qo, e.formats = {
3895
3916
  number: {
3896
3917
  integer: {
3897
3918
  maximumFractionDigits: 0
@@ -3952,7 +3973,7 @@ var ti = (
3952
3973
  }, e;
3953
3974
  }()
3954
3975
  );
3955
- function ni(e, t) {
3976
+ function oi(e, t) {
3956
3977
  if (t == null)
3957
3978
  return;
3958
3979
  if (t in e)
@@ -3973,92 +3994,92 @@ function ni(e, t) {
3973
3994
  r = void 0;
3974
3995
  return r;
3975
3996
  }
3976
- const ae = {}, ri = (e, t, n) => n && (t in ae || (ae[t] = {}), e in ae[t] || (ae[t][e] = n), n), Un = (e, t) => {
3997
+ const ae = {}, ii = (e, t, n) => n && (t in ae || (ae[t] = {}), e in ae[t] || (ae[t][e] = n), n), Dn = (e, t) => {
3977
3998
  if (t == null)
3978
3999
  return;
3979
4000
  if (t in ae && e in ae[t])
3980
4001
  return ae[t][e];
3981
- const n = Ve(t);
4002
+ const n = Xe(t);
3982
4003
  for (let r = 0; r < n.length; r++) {
3983
- const o = n[r], i = ii(o, e);
4004
+ const o = n[r], i = ai(o, e);
3984
4005
  if (i)
3985
- return ri(e, t, i);
4006
+ return ii(e, t, i);
3986
4007
  }
3987
4008
  };
3988
- let Et;
3989
- const Pe = je({});
3990
- function oi(e) {
3991
- return Et[e] || null;
4009
+ let wt;
4010
+ const Pe = We({});
4011
+ function si(e) {
4012
+ return wt[e] || null;
3992
4013
  }
3993
- function Dn(e) {
3994
- return e in Et;
4014
+ function Gn(e) {
4015
+ return e in wt;
3995
4016
  }
3996
- function ii(e, t) {
3997
- if (!Dn(e))
4017
+ function ai(e, t) {
4018
+ if (!Gn(e))
3998
4019
  return null;
3999
- const n = oi(e);
4000
- return ni(n, t);
4020
+ const n = si(e);
4021
+ return oi(n, t);
4001
4022
  }
4002
- function si(e) {
4023
+ function ui(e) {
4003
4024
  if (e == null)
4004
4025
  return;
4005
- const t = Ve(e);
4026
+ const t = Xe(e);
4006
4027
  for (let n = 0; n < t.length; n++) {
4007
4028
  const r = t[n];
4008
- if (Dn(r))
4029
+ if (Gn(r))
4009
4030
  return r;
4010
4031
  }
4011
4032
  }
4012
- function Gn(e, ...t) {
4033
+ function kn(e, ...t) {
4013
4034
  delete ae[e], Pe.update((n) => (n[e] = co.all([n[e] || {}, ...t]), n));
4014
4035
  }
4015
- _e(
4036
+ ye(
4016
4037
  [Pe],
4017
4038
  ([e]) => Object.keys(e)
4018
4039
  );
4019
- Pe.subscribe((e) => Et = e);
4040
+ Pe.subscribe((e) => wt = e);
4020
4041
  const Fe = {};
4021
- function ai(e, t) {
4042
+ function li(e, t) {
4022
4043
  Fe[e].delete(t), Fe[e].size === 0 && delete Fe[e];
4023
4044
  }
4024
- function kn(e) {
4045
+ function jn(e) {
4025
4046
  return Fe[e];
4026
4047
  }
4027
- function ui(e) {
4028
- return Ve(e).map((t) => {
4029
- const n = kn(t);
4048
+ function ci(e) {
4049
+ return Xe(e).map((t) => {
4050
+ const n = jn(t);
4030
4051
  return [t, n ? [...n] : []];
4031
4052
  }).filter(([, t]) => t.length > 0);
4032
4053
  }
4033
- function bt(e) {
4034
- return e == null ? !1 : Ve(e).some(
4054
+ function _t(e) {
4055
+ return e == null ? !1 : Xe(e).some(
4035
4056
  (t) => {
4036
4057
  var n;
4037
- return (n = kn(t)) == null ? void 0 : n.size;
4058
+ return (n = jn(t)) == null ? void 0 : n.size;
4038
4059
  }
4039
4060
  );
4040
4061
  }
4041
- function li(e, t) {
4062
+ function hi(e, t) {
4042
4063
  return Promise.all(
4043
- t.map((r) => (ai(e, r), r().then((o) => o.default || o)))
4044
- ).then((r) => Gn(e, ...r));
4045
- }
4046
- const we = {};
4047
- function jn(e) {
4048
- if (!bt(e))
4049
- return e in we ? we[e] : Promise.resolve();
4050
- const t = ui(e);
4051
- return we[e] = Promise.all(
4064
+ t.map((r) => (li(e, r), r().then((o) => o.default || o)))
4065
+ ).then((r) => kn(e, ...r));
4066
+ }
4067
+ const xe = {};
4068
+ function Wn(e) {
4069
+ if (!_t(e))
4070
+ return e in xe ? xe[e] : Promise.resolve();
4071
+ const t = ci(e);
4072
+ return xe[e] = Promise.all(
4052
4073
  t.map(
4053
- ([n, r]) => li(n, r)
4074
+ ([n, r]) => hi(n, r)
4054
4075
  )
4055
4076
  ).then(() => {
4056
- if (bt(e))
4057
- return jn(e);
4058
- delete we[e];
4059
- }), we[e];
4077
+ if (_t(e))
4078
+ return Wn(e);
4079
+ delete xe[e];
4080
+ }), xe[e];
4060
4081
  }
4061
- const ci = {
4082
+ const fi = {
4062
4083
  number: {
4063
4084
  scientific: { notation: "scientific" },
4064
4085
  engineering: { notation: "engineering" },
@@ -4087,135 +4108,135 @@ const ci = {
4087
4108
  timeZoneName: "short"
4088
4109
  }
4089
4110
  }
4090
- }, hi = {
4111
+ }, di = {
4091
4112
  fallbackLocale: null,
4092
4113
  loadingDelay: 200,
4093
- formats: ci,
4114
+ formats: fi,
4094
4115
  warnOnMissingMessages: !0,
4095
4116
  handleMissingMessage: void 0,
4096
4117
  ignoreTag: !0
4097
- }, fi = hi;
4098
- function ye() {
4099
- return fi;
4118
+ }, pi = di;
4119
+ function ve() {
4120
+ return pi;
4100
4121
  }
4101
- const tt = je(!1);
4102
- var di = Object.defineProperty, pi = Object.defineProperties, mi = Object.getOwnPropertyDescriptors, Qt = Object.getOwnPropertySymbols, bi = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable, Jt = (e, t, n) => t in e ? di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, vi = (e, t) => {
4122
+ const rt = We(!1);
4123
+ var mi = Object.defineProperty, bi = Object.defineProperties, gi = Object.getOwnPropertyDescriptors, Yt = Object.getOwnPropertySymbols, vi = Object.prototype.hasOwnProperty, yi = Object.prototype.propertyIsEnumerable, Kt = (e, t, n) => t in e ? mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, _i = (e, t) => {
4103
4124
  for (var n in t || (t = {}))
4104
- bi.call(t, n) && Jt(e, n, t[n]);
4105
- if (Qt)
4106
- for (var n of Qt(t))
4107
- gi.call(t, n) && Jt(e, n, t[n]);
4125
+ vi.call(t, n) && Kt(e, n, t[n]);
4126
+ if (Yt)
4127
+ for (var n of Yt(t))
4128
+ yi.call(t, n) && Kt(e, n, t[n]);
4108
4129
  return e;
4109
- }, yi = (e, t) => pi(e, mi(t));
4110
- let gt;
4111
- const De = je(null);
4112
- function Yt(e) {
4130
+ }, Bi = (e, t) => bi(e, gi(t));
4131
+ let Bt;
4132
+ const Ge = We(null);
4133
+ function en(e) {
4113
4134
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
4114
4135
  }
4115
- function Ve(e, t = ye().fallbackLocale) {
4116
- const n = Yt(e);
4117
- return t ? [.../* @__PURE__ */ new Set([...n, ...Yt(t)])] : n;
4136
+ function Xe(e, t = ve().fallbackLocale) {
4137
+ const n = en(e);
4138
+ return t ? [.../* @__PURE__ */ new Set([...n, ...en(t)])] : n;
4118
4139
  }
4119
4140
  function le() {
4120
- return gt != null ? gt : void 0;
4141
+ return Bt != null ? Bt : void 0;
4121
4142
  }
4122
- De.subscribe((e) => {
4123
- gt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4143
+ Ge.subscribe((e) => {
4144
+ Bt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4124
4145
  });
4125
- const _i = (e) => {
4126
- if (e && si(e) && bt(e)) {
4127
- const { loadingDelay: t } = ye();
4146
+ const Ei = (e) => {
4147
+ if (e && ui(e) && _t(e)) {
4148
+ const { loadingDelay: t } = ve();
4128
4149
  let n;
4129
4150
  return typeof window != "undefined" && le() != null && t ? n = window.setTimeout(
4130
- () => tt.set(!0),
4151
+ () => rt.set(!0),
4131
4152
  t
4132
- ) : tt.set(!0), jn(e).then(() => {
4133
- De.set(e);
4153
+ ) : rt.set(!0), Wn(e).then(() => {
4154
+ Ge.set(e);
4134
4155
  }).finally(() => {
4135
- clearTimeout(n), tt.set(!1);
4156
+ clearTimeout(n), rt.set(!1);
4136
4157
  });
4137
4158
  }
4138
- return De.set(e);
4139
- }, Be = yi(vi({}, De), {
4140
- set: _i
4141
- }), ze = (e) => {
4159
+ return Ge.set(e);
4160
+ }, _e = Bi(_i({}, Ge), {
4161
+ set: Ei
4162
+ }), Ze = (e) => {
4142
4163
  const t = /* @__PURE__ */ Object.create(null);
4143
4164
  return (r) => {
4144
4165
  const o = JSON.stringify(r);
4145
4166
  return o in t ? t[o] : t[o] = e(r);
4146
4167
  };
4147
4168
  };
4148
- var Bi = Object.defineProperty, Ge = Object.getOwnPropertySymbols, Wn = Object.prototype.hasOwnProperty, Vn = Object.prototype.propertyIsEnumerable, Kt = (e, t, n) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, xt = (e, t) => {
4169
+ var xi = Object.defineProperty, ke = Object.getOwnPropertySymbols, Vn = Object.prototype.hasOwnProperty, zn = Object.prototype.propertyIsEnumerable, tn = (e, t, n) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ct = (e, t) => {
4149
4170
  for (var n in t || (t = {}))
4150
- Wn.call(t, n) && Kt(e, n, t[n]);
4151
- if (Ge)
4152
- for (var n of Ge(t))
4153
- Vn.call(t, n) && Kt(e, n, t[n]);
4171
+ Vn.call(t, n) && tn(e, n, t[n]);
4172
+ if (ke)
4173
+ for (var n of ke(t))
4174
+ zn.call(t, n) && tn(e, n, t[n]);
4154
4175
  return e;
4155
- }, Ee = (e, t) => {
4176
+ }, Be = (e, t) => {
4156
4177
  var n = {};
4157
4178
  for (var r in e)
4158
- Wn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
4159
- if (e != null && Ge)
4160
- for (var r of Ge(e))
4161
- t.indexOf(r) < 0 && Vn.call(e, r) && (n[r] = e[r]);
4179
+ Vn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
4180
+ if (e != null && ke)
4181
+ for (var r of ke(e))
4182
+ t.indexOf(r) < 0 && zn.call(e, r) && (n[r] = e[r]);
4162
4183
  return n;
4163
4184
  };
4164
- const Te = (e, t) => {
4165
- const { formats: n } = ye();
4185
+ const Ae = (e, t) => {
4186
+ const { formats: n } = ve();
4166
4187
  if (e in n && t in n[e])
4167
4188
  return n[e][t];
4168
4189
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4169
- }, Ei = ze(
4190
+ }, wi = Ze(
4170
4191
  (e) => {
4171
- var t = e, { locale: n, format: r } = t, o = Ee(t, ["locale", "format"]);
4192
+ var t = e, { locale: n, format: r } = t, o = Be(t, ["locale", "format"]);
4172
4193
  if (n == null)
4173
4194
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4174
- return r && (o = Te("number", r)), new Intl.NumberFormat(n, o);
4195
+ return r && (o = Ae("number", r)), new Intl.NumberFormat(n, o);
4175
4196
  }
4176
- ), xi = ze(
4197
+ ), Ci = Ze(
4177
4198
  (e) => {
4178
- var t = e, { locale: n, format: r } = t, o = Ee(t, ["locale", "format"]);
4199
+ var t = e, { locale: n, format: r } = t, o = Be(t, ["locale", "format"]);
4179
4200
  if (n == null)
4180
4201
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4181
- return r ? o = Te("date", r) : Object.keys(o).length === 0 && (o = Te("date", "short")), new Intl.DateTimeFormat(n, o);
4202
+ return r ? o = Ae("date", r) : Object.keys(o).length === 0 && (o = Ae("date", "short")), new Intl.DateTimeFormat(n, o);
4182
4203
  }
4183
- ), wi = ze(
4204
+ ), Si = Ze(
4184
4205
  (e) => {
4185
- var t = e, { locale: n, format: r } = t, o = Ee(t, ["locale", "format"]);
4206
+ var t = e, { locale: n, format: r } = t, o = Be(t, ["locale", "format"]);
4186
4207
  if (n == null)
4187
4208
  throw new Error(
4188
4209
  '[svelte-i18n] A "locale" must be set to format time values'
4189
4210
  );
4190
- return r ? o = Te("time", r) : Object.keys(o).length === 0 && (o = Te("time", "short")), new Intl.DateTimeFormat(n, o);
4211
+ return r ? o = Ae("time", r) : Object.keys(o).length === 0 && (o = Ae("time", "short")), new Intl.DateTimeFormat(n, o);
4191
4212
  }
4192
- ), Ci = (e = {}) => {
4213
+ ), Ai = (e = {}) => {
4193
4214
  var t = e, {
4194
4215
  locale: n = le()
4195
- } = t, r = Ee(t, [
4216
+ } = t, r = Be(t, [
4196
4217
  "locale"
4197
4218
  ]);
4198
- return Ei(xt({ locale: n }, r));
4199
- }, Si = (e = {}) => {
4219
+ return wi(Ct({ locale: n }, r));
4220
+ }, Ti = (e = {}) => {
4200
4221
  var t = e, {
4201
4222
  locale: n = le()
4202
- } = t, r = Ee(t, [
4223
+ } = t, r = Be(t, [
4203
4224
  "locale"
4204
4225
  ]);
4205
- return xi(xt({ locale: n }, r));
4206
- }, Ai = (e = {}) => {
4226
+ return Ci(Ct({ locale: n }, r));
4227
+ }, Pi = (e = {}) => {
4207
4228
  var t = e, {
4208
4229
  locale: n = le()
4209
- } = t, r = Ee(t, [
4230
+ } = t, r = Be(t, [
4210
4231
  "locale"
4211
4232
  ]);
4212
- return wi(xt({ locale: n }, r));
4213
- }, Ti = ze(
4233
+ return Si(Ct({ locale: n }, r));
4234
+ }, Mi = Ze(
4214
4235
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4215
- (e, t = le()) => new ti(e, t, ye().formats, {
4216
- ignoreTag: ye().ignoreTag
4236
+ (e, t = le()) => new ri(e, t, ve().formats, {
4237
+ ignoreTag: ve().ignoreTag
4217
4238
  })
4218
- ), Pi = (e, t = {}) => {
4239
+ ), Hi = (e, t = {}) => {
4219
4240
  var n, r, o, i;
4220
4241
  let s = t;
4221
4242
  typeof e == "object" && (s = e, e = s.id);
@@ -4228,9 +4249,9 @@ const Te = (e, t) => {
4228
4249
  throw new Error(
4229
4250
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4230
4251
  );
4231
- let c = Un(e, u);
4252
+ let c = Dn(e, u);
4232
4253
  if (!c)
4233
- c = (i = (o = (r = (n = ye()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: l })) != null ? o : l) != null ? i : e;
4254
+ c = (i = (o = (r = (n = ve()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: l })) != null ? o : l) != null ? i : e;
4234
4255
  else if (typeof c != "string")
4235
4256
  return console.warn(
4236
4257
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -4239,7 +4260,7 @@ const Te = (e, t) => {
4239
4260
  return c;
4240
4261
  let f = c;
4241
4262
  try {
4242
- f = Ti(c, u).format(a);
4263
+ f = Mi(c, u).format(a);
4243
4264
  } catch (d) {
4244
4265
  d instanceof Error && console.warn(
4245
4266
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4247,20 +4268,20 @@ const Te = (e, t) => {
4247
4268
  );
4248
4269
  }
4249
4270
  return f;
4250
- }, Mi = (e, t) => Ai(t).format(e), Hi = (e, t) => Si(t).format(e), Ii = (e, t) => Ci(t).format(e), Oi = (e, t = le()) => Un(e, t), Ni = _e([Be, Pe], () => Pi);
4251
- _e([Be], () => Mi);
4252
- _e([Be], () => Hi);
4253
- _e([Be], () => Ii);
4254
- _e([Be, Pe], () => Oi);
4271
+ }, Oi = (e, t) => Pi(t).format(e), Ii = (e, t) => Ti(t).format(e), Ni = (e, t) => Ai(t).format(e), Li = (e, t = le()) => Dn(e, t), Ri = ye([_e, Pe], () => Hi);
4272
+ ye([_e], () => Oi);
4273
+ ye([_e], () => Ii);
4274
+ ye([_e], () => Ni);
4275
+ ye([_e, Pe], () => Li);
4255
4276
  window.emWidgets = { topic: Xr };
4256
- const Li = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4257
- function en(e, t) {
4258
- Gn(e, t);
4277
+ const $i = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4278
+ function nn(e, t) {
4279
+ kn(e, t);
4259
4280
  }
4260
- function Ri(e) {
4261
- Be.set(e);
4281
+ function Fi(e) {
4282
+ _e.set(e);
4262
4283
  }
4263
- const tn = {
4284
+ const rn = {
4264
4285
  en: {
4265
4286
  titleBonuses: "Active Bonuses",
4266
4287
  bonusCode: "Do you have a bonus code?",
@@ -4394,13 +4415,13 @@ const tn = {
4394
4415
  bonusClaimErrorMessage: "Invalid bonus"
4395
4416
  }
4396
4417
  };
4397
- function $i(e, t) {
4418
+ function Ui(e, t) {
4398
4419
  if (e) {
4399
4420
  const n = document.createElement("style");
4400
4421
  n.innerHTML = t, e.appendChild(n);
4401
4422
  }
4402
4423
  }
4403
- function Fi(e, t) {
4424
+ function Di(e, t) {
4404
4425
  const n = new URL(t);
4405
4426
  fetch(n.href).then((r) => r.text()).then((r) => {
4406
4427
  const o = document.createElement("style");
@@ -4409,7 +4430,7 @@ function Fi(e, t) {
4409
4430
  console.error("There was an error while trying to load client styling from URL", r);
4410
4431
  });
4411
4432
  }
4412
- function Ui(e, t, n) {
4433
+ function Gi(e, t, n) {
4413
4434
  if (window.emMessageBus) {
4414
4435
  const r = document.createElement("style");
4415
4436
  window.emMessageBus.subscribe(t, (o) => {
@@ -4429,22 +4450,22 @@ if (typeof window != "undefined") {
4429
4450
  }
4430
4451
  };
4431
4452
  };
4432
- customElements.define = e(customElements.define), import("./PlayerBonusCard-Bm9GsvHT.js").then(({ default: t }) => {
4453
+ customElements.define = e(customElements.define), import("./PlayerBonusCard-hyK8lCB2.js").then(({ default: t }) => {
4433
4454
  !customElements.get("player-bonus-card") && customElements.define("player-bonus-card", t.element);
4434
4455
  });
4435
4456
  }
4436
- function Di(e) {
4437
- dr(e, "svelte-1nt8h6r", ".ActiveBonusesWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:850px}.ActiveBonusesWrapper.ActiveBonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.ActiveBonusesTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.ActiveBonusesTitleMobile{font-size:16px}.ActiveBonusesTitleNone{display:none}.BonusCodeContainer{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative;width:70%}.BonusCodeContainer label{font-size:16px;font-weight:300;padding-bottom:5px}.BonusCodeContainer.BonusCodeContainerMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{width:70%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:hover{filter:brightness(0.9)}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode.SubmitBonusCodeMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));background:var(--emw--color-primary-50, var(--emw--color-pink-50, #F1BED9));color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, var(--emw--color-red, #FD2839))}.BonusCodeWrapper{display:flex;gap:20px}.SubmitBonusCode{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.SubmitBonusCode[disabled]{opacity:0.3}.SubmitBonusCode:hover{filter:brightness(0.9)}.SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.ActiveBonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.ActiveBonusesGrid.ActiveBonusesGridMobile{grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300}.ModalWrapper .ModalContent{background-color:var(--emw--color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--color-gray-50, #F9F8F8);padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}.BonusesPaginationWrapper{margin:40px 0;display:block;line-break:anywhere;line-height:2em}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--color-gray-300, #58586B);font-size:16px;cursor:pointer;padding:5px 10px;white-space:nowrap}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:700}");
4457
+ function ki(e) {
4458
+ pr(e, "svelte-1nt8h6r", ".ActiveBonusesWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:850px}.ActiveBonusesWrapper.ActiveBonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.ActiveBonusesTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.ActiveBonusesTitleMobile{font-size:16px}.ActiveBonusesTitleNone{display:none}.BonusCodeContainer{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative;width:70%}.BonusCodeContainer label{font-size:16px;font-weight:300;padding-bottom:5px}.BonusCodeContainer.BonusCodeContainerMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{width:70%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:hover{filter:brightness(0.9)}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode.SubmitBonusCodeMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));background:var(--emw--color-primary-50, var(--emw--color-pink-50, #F1BED9));color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, var(--emw--color-red, #FD2839))}.BonusCodeWrapper{display:flex;gap:20px}.SubmitBonusCode{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.SubmitBonusCode[disabled]{opacity:0.3}.SubmitBonusCode:hover{filter:brightness(0.9)}.SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.ActiveBonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.ActiveBonusesGrid.ActiveBonusesGridMobile{grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300}.ModalWrapper .ModalContent{background-color:var(--emw--color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--color-gray-50, #F9F8F8);padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}.BonusesPaginationWrapper{margin:40px 0;display:block;line-break:anywhere;line-height:2em}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--color-gray-300, #58586B);font-size:16px;cursor:pointer;padding:5px 10px;white-space:nowrap}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:700}");
4438
4459
  }
4439
- function nn(e, t, n) {
4460
+ function on(e, t, n) {
4440
4461
  const r = e.slice();
4441
4462
  return r[49] = t[n], r[51] = n, r;
4442
4463
  }
4443
- function rn(e, t, n) {
4464
+ function sn(e, t, n) {
4444
4465
  const r = e.slice();
4445
4466
  return r[52] = t[n], r;
4446
4467
  }
4447
- function Gi(e) {
4468
+ function ji(e) {
4448
4469
  let t, n, r, o = (
4449
4470
  /*$_*/
4450
4471
  e[18]("titleBonuses") + ""
@@ -4454,44 +4475,44 @@ function Gi(e) {
4454
4475
  ), c, f, d, m, b, h, S = (
4455
4476
  /*$_*/
4456
4477
  e[18]("getBonus") + ""
4457
- ), _, y, M, H, T, E, N, I, ie, Q = (
4478
+ ), _, y, P, M, A, E, N, H, ie, Q = (
4458
4479
  /*isMobile*/
4459
- e[19] && ki(e)
4480
+ e[19] && Wi(e)
4460
4481
  ), R = (
4461
4482
  /*invalidBonusCode*/
4462
- e[9] && on(e)
4483
+ e[9] && an(e)
4463
4484
  );
4464
- function xe(C, L) {
4485
+ function Ee(C, L) {
4465
4486
  return (
4466
4487
  /*activeBonusesList*/
4467
- C[16].length === 0 ? Wi : ji
4488
+ C[16].length === 0 ? zi : Vi
4468
4489
  );
4469
4490
  }
4470
- let se = xe(e), X = se(e), $ = (
4491
+ let se = Ee(e), X = se(e), $ = (
4471
4492
  /*activeBonusesList*/
4472
- e[16].length !== 0 && an(e)
4493
+ e[16].length !== 0 && ln(e)
4473
4494
  ), U = (
4474
4495
  /*bonusModal*/
4475
- e[17] && ln(e)
4496
+ e[17] && hn(e)
4476
4497
  );
4477
4498
  return {
4478
4499
  c() {
4479
- t = P("div"), Q && Q.c(), n = W(), r = P("h2"), i = F(o), s = W(), a = P("div"), u = P("label"), c = F(l), f = W(), d = P("div"), m = P("input"), b = W(), h = P("button"), _ = F(S), y = W(), R && R.c(), M = W(), H = P("div"), X.c(), T = W(), $ && $.c(), E = W(), U && U.c(), N = yt(), B(r, "class", "ActiveBonusesTitle " + /*isMobile*/
4500
+ t = T("div"), Q && Q.c(), n = W(), r = T("h2"), i = F(o), s = W(), a = T("div"), u = T("label"), c = F(l), f = W(), d = T("div"), m = T("input"), b = W(), h = T("button"), _ = F(S), y = W(), R && R.c(), P = W(), M = T("div"), X.c(), A = W(), $ && $.c(), E = W(), U && U.c(), N = xt(), B(r, "class", "ActiveBonusesTitle " + /*isMobile*/
4480
4501
  (e[19] ? "ActiveBonusesTitleNone" : "")), B(u, "for", "BonusCode"), B(m, "class", "BonusCodeInput " + /*isMobile*/
4481
4502
  (e[19] ? "BonusCodeInputMobile" : "")), B(m, "type", "text"), B(m, "id", "BonusCode"), B(h, "class", "SubmitBonusCode " + /*isMobile*/
4482
4503
  (e[19] ? "SubmitBonusCodeMobile" : "")), h.disabled = /*invalidBonusField*/
4483
4504
  e[8], B(d, "class", "BonusCodeWrapper " + /*isMobile*/
4484
4505
  (e[19] ? "BonusCodeWrapperMobile" : "")), B(a, "class", "BonusCodeContainer " + /*isMobile*/
4485
- (e[19] ? "BonusCodeContainerMobile" : "")), B(H, "class", "ActiveBonusesGrid " + /*isMobile*/
4506
+ (e[19] ? "BonusCodeContainerMobile" : "")), B(M, "class", "ActiveBonusesGrid " + /*isMobile*/
4486
4507
  (e[19] ? "ActiveBonusesGridMobile" : "")), B(t, "class", "ActiveBonusesWrapper " + /*isMobile*/
4487
4508
  (e[19] ? "ActiveBonusesWrapperMobile" : ""));
4488
4509
  },
4489
4510
  m(C, L) {
4490
- V(C, t, L), Q && Q.m(t, null), v(t, n), v(t, r), v(r, i), v(t, s), v(t, a), v(a, u), v(u, c), v(a, f), v(a, d), v(d, m), It(
4511
+ V(C, t, L), Q && Q.m(t, null), v(t, n), v(t, r), v(r, i), v(t, s), v(t, a), v(a, u), v(u, c), v(a, f), v(a, d), v(d, m), Nt(
4491
4512
  m,
4492
4513
  /*bonusCode*/
4493
4514
  e[10]
4494
- ), v(d, b), v(d, h), v(h, _), v(a, y), R && R.m(a, null), v(t, M), v(t, H), X.m(H, null), v(t, T), $ && $.m(t, null), V(C, E, L), U && U.m(C, L), V(C, N, L), I || (ie = [
4515
+ ), v(d, b), v(d, h), v(h, _), v(a, y), R && R.m(a, null), v(t, P), v(t, M), X.m(M, null), v(t, A), $ && $.m(t, null), V(C, E, L), U && U.m(C, L), V(C, N, L), H || (ie = [
4495
4516
  Y(
4496
4517
  m,
4497
4518
  "input",
@@ -4513,42 +4534,42 @@ function Gi(e) {
4513
4534
  e[23]
4514
4535
  )
4515
4536
  )
4516
- ], I = !0);
4537
+ ], H = !0);
4517
4538
  },
4518
4539
  p(C, L) {
4519
4540
  /*isMobile*/
4520
4541
  C[19] && Q.p(C, L), L[0] & /*$_*/
4521
4542
  262144 && o !== (o = /*$_*/
4522
- C[18]("titleBonuses") + "") && ne(i, o), L[0] & /*$_*/
4543
+ C[18]("titleBonuses") + "") && re(i, o), L[0] & /*$_*/
4523
4544
  262144 && l !== (l = /*$_*/
4524
- C[18]("bonusCode") + "") && ne(c, l), L[0] & /*bonusCode*/
4545
+ C[18]("bonusCode") + "") && re(c, l), L[0] & /*bonusCode*/
4525
4546
  1024 && m.value !== /*bonusCode*/
4526
- C[10] && It(
4547
+ C[10] && Nt(
4527
4548
  m,
4528
4549
  /*bonusCode*/
4529
4550
  C[10]
4530
4551
  ), L[0] & /*$_*/
4531
4552
  262144 && S !== (S = /*$_*/
4532
- C[18]("getBonus") + "") && ne(_, S), L[0] & /*invalidBonusField*/
4553
+ C[18]("getBonus") + "") && re(_, S), L[0] & /*invalidBonusField*/
4533
4554
  256 && (h.disabled = /*invalidBonusField*/
4534
4555
  C[8]), /*invalidBonusCode*/
4535
- C[9] ? R ? R.p(C, L) : (R = on(C), R.c(), R.m(a, null)) : R && (R.d(1), R = null), se === (se = xe(C)) && X ? X.p(C, L) : (X.d(1), X = se(C), X && (X.c(), X.m(H, null))), /*activeBonusesList*/
4536
- C[16].length !== 0 ? $ ? $.p(C, L) : ($ = an(C), $.c(), $.m(t, null)) : $ && ($.d(1), $ = null), /*bonusModal*/
4537
- C[17] ? U ? U.p(C, L) : (U = ln(C), U.c(), U.m(N.parentNode, N)) : U && (U.d(1), U = null);
4556
+ C[9] ? R ? R.p(C, L) : (R = an(C), R.c(), R.m(a, null)) : R && (R.d(1), R = null), se === (se = Ee(C)) && X ? X.p(C, L) : (X.d(1), X = se(C), X && (X.c(), X.m(M, null))), /*activeBonusesList*/
4557
+ C[16].length !== 0 ? $ ? $.p(C, L) : ($ = ln(C), $.c(), $.m(t, null)) : $ && ($.d(1), $ = null), /*bonusModal*/
4558
+ C[17] ? U ? U.p(C, L) : (U = hn(C), U.c(), U.m(N.parentNode, N)) : U && (U.d(1), U = null);
4538
4559
  },
4539
4560
  d(C) {
4540
- C && (G(t), G(E), G(N)), Q && Q.d(), R && R.d(), X.d(), $ && $.d(), U && U.d(C), I = !1, ue(ie);
4561
+ C && (G(t), G(E), G(N)), Q && Q.d(), R && R.d(), X.d(), $ && $.d(), U && U.d(C), H = !1, ue(ie);
4541
4562
  }
4542
4563
  };
4543
4564
  }
4544
- function ki(e) {
4565
+ function Wi(e) {
4545
4566
  let t, n, r, o, i, s, a, u, l, c, f = (
4546
4567
  /*$_*/
4547
4568
  e[18]("titleBonuses") + ""
4548
4569
  ), d, m, b;
4549
4570
  return {
4550
4571
  c() {
4551
- t = P("div"), n = ce("svg"), r = ce("defs"), o = ce("style"), i = F(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = ce("g"), a = ce("g"), u = ce("path"), l = W(), c = P("h2"), d = F(f), B(u, "class", "aaa"), B(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), B(u, "transform", "translate(15 15) rotate(180)"), B(a, "transform", "translate(20 158)"), B(s, "transform", "translate(-20 -158)"), B(n, "xmlns", "http://www.w3.org/2000/svg"), B(n, "width", "15"), B(n, "height", "15"), B(n, "viewBox", "0 0 15 15"), B(c, "class", "ActiveBonusesTitleMobile"), B(t, "class", "MenuReturnButton");
4572
+ t = T("div"), n = ce("svg"), r = ce("defs"), o = ce("style"), i = F(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = ce("g"), a = ce("g"), u = ce("path"), l = W(), c = T("h2"), d = F(f), B(u, "class", "aaa"), B(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), B(u, "transform", "translate(15 15) rotate(180)"), B(a, "transform", "translate(20 158)"), B(s, "transform", "translate(-20 -158)"), B(n, "xmlns", "http://www.w3.org/2000/svg"), B(n, "width", "15"), B(n, "height", "15"), B(n, "viewBox", "0 0 15 15"), B(c, "class", "ActiveBonusesTitleMobile"), B(t, "class", "MenuReturnButton");
4552
4573
  },
4553
4574
  m(h, S) {
4554
4575
  V(h, t, S), v(t, n), v(n, r), v(r, o), v(o, i), v(n, s), v(s, a), v(a, u), v(t, l), v(t, c), v(c, d), m || (b = Y(
@@ -4561,21 +4582,21 @@ function ki(e) {
4561
4582
  p(h, S) {
4562
4583
  S[0] & /*$_*/
4563
4584
  262144 && f !== (f = /*$_*/
4564
- h[18]("titleBonuses") + "") && ne(d, f);
4585
+ h[18]("titleBonuses") + "") && re(d, f);
4565
4586
  },
4566
4587
  d(h) {
4567
4588
  h && G(t), m = !1, b();
4568
4589
  }
4569
4590
  };
4570
4591
  }
4571
- function on(e) {
4592
+ function an(e) {
4572
4593
  let t, n = (
4573
4594
  /*$_*/
4574
4595
  e[18]("invalidBonusCode") + ""
4575
4596
  ), r;
4576
4597
  return {
4577
4598
  c() {
4578
- t = P("p"), r = F(n), B(t, "class", "InvalidBonusCodeMessage");
4599
+ t = T("p"), r = F(n), B(t, "class", "InvalidBonusCodeMessage");
4579
4600
  },
4580
4601
  m(o, i) {
4581
4602
  V(o, t, i), v(t, r);
@@ -4583,25 +4604,25 @@ function on(e) {
4583
4604
  p(o, i) {
4584
4605
  i[0] & /*$_*/
4585
4606
  262144 && n !== (n = /*$_*/
4586
- o[18]("invalidBonusCode") + "") && ne(r, n);
4607
+ o[18]("invalidBonusCode") + "") && re(r, n);
4587
4608
  },
4588
4609
  d(o) {
4589
4610
  o && G(t);
4590
4611
  }
4591
4612
  };
4592
4613
  }
4593
- function ji(e) {
4614
+ function Vi(e) {
4594
4615
  let t, n = Ue(
4595
4616
  /*activeBonusesList*/
4596
4617
  e[16]
4597
4618
  ), r = [];
4598
4619
  for (let o = 0; o < n.length; o += 1)
4599
- r[o] = sn(rn(e, n, o));
4620
+ r[o] = un(sn(e, n, o));
4600
4621
  return {
4601
4622
  c() {
4602
4623
  for (let o = 0; o < r.length; o += 1)
4603
4624
  r[o].c();
4604
- t = yt();
4625
+ t = xt();
4605
4626
  },
4606
4627
  m(o, i) {
4607
4628
  for (let s = 0; s < r.length; s += 1)
@@ -4617,8 +4638,8 @@ function ji(e) {
4617
4638
  );
4618
4639
  let s;
4619
4640
  for (s = 0; s < n.length; s += 1) {
4620
- const a = rn(o, n, s);
4621
- r[s] ? r[s].p(a, i) : (r[s] = sn(a), r[s].c(), r[s].m(t.parentNode, t));
4641
+ const a = sn(o, n, s);
4642
+ r[s] ? r[s].p(a, i) : (r[s] = un(a), r[s].c(), r[s].m(t.parentNode, t));
4622
4643
  }
4623
4644
  for (; s < r.length; s += 1)
4624
4645
  r[s].d(1);
@@ -4626,18 +4647,18 @@ function ji(e) {
4626
4647
  }
4627
4648
  },
4628
4649
  d(o) {
4629
- o && G(t), dn(r, o);
4650
+ o && G(t), mn(r, o);
4630
4651
  }
4631
4652
  };
4632
4653
  }
4633
- function Wi(e) {
4654
+ function zi(e) {
4634
4655
  let t, n = (
4635
4656
  /*$_*/
4636
4657
  e[18]("noActiveBonuses") + ""
4637
4658
  ), r;
4638
4659
  return {
4639
4660
  c() {
4640
- t = P("p"), r = F(n);
4661
+ t = T("p"), r = F(n);
4641
4662
  },
4642
4663
  m(o, i) {
4643
4664
  V(o, t, i), v(t, r);
@@ -4645,18 +4666,18 @@ function Wi(e) {
4645
4666
  p(o, i) {
4646
4667
  i[0] & /*$_*/
4647
4668
  262144 && n !== (n = /*$_*/
4648
- o[18]("noActiveBonuses") + "") && ne(r, n);
4669
+ o[18]("noActiveBonuses") + "") && re(r, n);
4649
4670
  },
4650
4671
  d(o) {
4651
4672
  o && G(t);
4652
4673
  }
4653
4674
  };
4654
4675
  }
4655
- function Vi(e) {
4676
+ function Xi(e) {
4656
4677
  let t, n, r, o, i, s, a, u, l, c, f, d, m, b, h, S;
4657
4678
  return {
4658
4679
  c() {
4659
- t = P("player-bonus-card"), p(t, "termsandconditionsdescription", n = /*activeBonus*/
4680
+ t = T("player-bonus-card"), p(t, "termsandconditionsdescription", n = /*activeBonus*/
4660
4681
  e[52].termsandconditionsdescription), p(t, "termsandconditionsurl", r = /*activeBonus*/
4661
4682
  e[52].termsandconditionsurl), p(t, "termsandconditionsasset", o = /*activeBonus*/
4662
4683
  e[52].termsandconditionsasset), p(t, "endpoint", i = /*activeBonus*/
@@ -4793,11 +4814,11 @@ function Vi(e) {
4793
4814
  }
4794
4815
  };
4795
4816
  }
4796
- function zi(e) {
4817
+ function Zi(e) {
4797
4818
  let t, n, r, o, i, s, a, u, l, c, f, d, m;
4798
4819
  return {
4799
4820
  c() {
4800
- t = P("player-bonus-card"), p(t, "termsandconditionsdescription", n = /*activeBonus*/
4821
+ t = T("player-bonus-card"), p(t, "termsandconditionsdescription", n = /*activeBonus*/
4801
4822
  e[52].termsandconditionsdescription), p(t, "termsandconditionsurl", r = /*activeBonus*/
4802
4823
  e[52].termsandconditionsurl), p(t, "termsandconditionsasset", o = /*activeBonus*/
4803
4824
  e[52].termsandconditionsasset), p(t, "endpoint", i = /*activeBonus*/
@@ -4923,18 +4944,18 @@ function zi(e) {
4923
4944
  }
4924
4945
  };
4925
4946
  }
4926
- function sn(e) {
4947
+ function un(e) {
4927
4948
  let t;
4928
4949
  function n(i, s) {
4929
4950
  return (
4930
4951
  /*activeBonus*/
4931
- i[52].type === "freeRound" ? zi : Vi
4952
+ i[52].type === "freeRound" ? Zi : Xi
4932
4953
  );
4933
4954
  }
4934
4955
  let r = n(e), o = r(e);
4935
4956
  return {
4936
4957
  c() {
4937
- o.c(), t = yt();
4958
+ o.c(), t = xt();
4938
4959
  },
4939
4960
  m(i, s) {
4940
4961
  o.m(i, s), V(i, t, s);
@@ -4947,19 +4968,19 @@ function sn(e) {
4947
4968
  }
4948
4969
  };
4949
4970
  }
4950
- function an(e) {
4951
- let t, n, r, o, i, s, a, u, l, c, f, d, m, b, h, S, _, y, M, H = Ue(Array(
4971
+ function ln(e) {
4972
+ let t, n, r, o, i, s, a, u, l, c, f, d, m, b, h, S, _, y, P, M = Ue(Array(
4952
4973
  /*numberOfPages*/
4953
4974
  e[14]
4954
- )), T = [];
4955
- for (let E = 0; E < H.length; E += 1)
4956
- T[E] = un(nn(e, H, E));
4975
+ )), A = [];
4976
+ for (let E = 0; E < M.length; E += 1)
4977
+ A[E] = cn(on(e, M, E));
4957
4978
  return {
4958
4979
  c() {
4959
- t = P("div"), n = P("span"), r = F("|<"), i = W(), s = P("span"), a = F("<"), l = W();
4960
- for (let E = 0; E < T.length; E += 1)
4961
- T[E].c();
4962
- c = W(), f = P("span"), d = F(">"), b = W(), h = P("span"), S = F(">|"), B(n, "class", o = "BonusesFirst " + /*currentPage*/
4980
+ t = T("div"), n = T("span"), r = F("|<"), i = W(), s = T("span"), a = F("<"), l = W();
4981
+ for (let E = 0; E < A.length; E += 1)
4982
+ A[E].c();
4983
+ c = W(), f = T("span"), d = F(">"), b = W(), h = T("span"), S = F(">|"), B(n, "class", o = "BonusesFirst " + /*currentPage*/
4963
4984
  (e[15] === 0 ? "Inactive" : "")), B(s, "class", u = "BonusesPrev " + /*currentPage*/
4964
4985
  (e[15] === 0 ? "Inactive" : "")), B(f, "class", m = "BonusesNext " + /*currentPage*/
4965
4986
  (e[15] === /*numberOfPages*/
@@ -4970,9 +4991,9 @@ function an(e) {
4970
4991
  },
4971
4992
  m(E, N) {
4972
4993
  V(E, t, N), v(t, n), v(n, r), v(t, i), v(t, s), v(s, a), v(t, l);
4973
- for (let I = 0; I < T.length; I += 1)
4974
- T[I] && T[I].m(t, null);
4975
- v(t, c), v(t, f), v(f, d), v(t, b), v(t, h), v(h, S), y || (M = [
4994
+ for (let H = 0; H < A.length; H += 1)
4995
+ A[H] && A[H].m(t, null);
4996
+ v(t, c), v(t, f), v(f, d), v(t, b), v(t, h), v(h, S), y || (P = [
4976
4997
  Y(
4977
4998
  n,
4978
4999
  "click",
@@ -5006,18 +5027,18 @@ function an(e) {
5006
5027
  32768 && u !== (u = "BonusesPrev " + /*currentPage*/
5007
5028
  (E[15] === 0 ? "Inactive" : "")) && B(s, "class", u), N[0] & /*currentPage, getActiveBonuses, numberOfPages*/
5008
5029
  4243456) {
5009
- H = Ue(Array(
5030
+ M = Ue(Array(
5010
5031
  /*numberOfPages*/
5011
5032
  E[14]
5012
5033
  ));
5013
- let I;
5014
- for (I = 0; I < H.length; I += 1) {
5015
- const ie = nn(E, H, I);
5016
- T[I] ? T[I].p(ie, N) : (T[I] = un(ie), T[I].c(), T[I].m(t, c));
5034
+ let H;
5035
+ for (H = 0; H < M.length; H += 1) {
5036
+ const ie = on(E, M, H);
5037
+ A[H] ? A[H].p(ie, N) : (A[H] = cn(ie), A[H].c(), A[H].m(t, c));
5017
5038
  }
5018
- for (; I < T.length; I += 1)
5019
- T[I].d(1);
5020
- T.length = H.length;
5039
+ for (; H < A.length; H += 1)
5040
+ A[H].d(1);
5041
+ A.length = M.length;
5021
5042
  }
5022
5043
  N[0] & /*currentPage, numberOfPages*/
5023
5044
  49152 && m !== (m = "BonusesNext " + /*currentPage*/
@@ -5028,11 +5049,11 @@ function an(e) {
5028
5049
  E[14] - 1 ? "Inactive" : "")) && B(h, "class", _);
5029
5050
  },
5030
5051
  d(E) {
5031
- E && G(t), dn(T, E), y = !1, ue(M);
5052
+ E && G(t), mn(A, E), y = !1, ue(P);
5032
5053
  }
5033
5054
  };
5034
5055
  }
5035
- function un(e) {
5056
+ function cn(e) {
5036
5057
  let t, n = (
5037
5058
  /*i*/
5038
5059
  e[51] + 1 + ""
@@ -5048,7 +5069,7 @@ function un(e) {
5048
5069
  }
5049
5070
  return {
5050
5071
  c() {
5051
- t = P("span"), r = F(n), B(t, "class", o = "BonusesPage " + /*i*/
5072
+ t = T("span"), r = F(n), B(t, "class", o = "BonusesPage " + /*i*/
5052
5073
  (e[51] === /*currentPage*/
5053
5074
  e[15] ? "BonusPageActive" : ""));
5054
5075
  },
@@ -5066,7 +5087,7 @@ function un(e) {
5066
5087
  }
5067
5088
  };
5068
5089
  }
5069
- function ln(e) {
5090
+ function hn(e) {
5070
5091
  let t, n, r, o, i = (
5071
5092
  /*$_*/
5072
5093
  e[18]("forfeitBonus") + ""
@@ -5079,11 +5100,11 @@ function ln(e) {
5079
5100
  ), h, S, _;
5080
5101
  return {
5081
5102
  c() {
5082
- t = P("div"), n = P("div"), r = P("div"), o = P("p"), s = F(i), a = W(), u = P("div"), l = P("button"), f = F(c), d = W(), m = P("button"), h = F(b), B(o, "class", "ModalText"), B(l, "class", "ModalCancel"), B(m, "class", "ModalConfirm"), B(u, "class", "ModalButtons"), B(r, "class", "ModalBody"), B(n, "class", "ModalContent"), B(t, "class", "ModalWrapper " + /*isMobile*/
5103
+ t = T("div"), n = T("div"), r = T("div"), o = T("p"), s = F(i), a = W(), u = T("div"), l = T("button"), f = F(c), d = W(), m = T("button"), h = F(b), B(o, "class", "ModalText"), B(l, "class", "ModalCancel"), B(m, "class", "ModalConfirm"), B(u, "class", "ModalButtons"), B(r, "class", "ModalBody"), B(n, "class", "ModalContent"), B(t, "class", "ModalWrapper " + /*isMobile*/
5083
5104
  (e[19] ? "ModalWrapperMobile" : ""));
5084
5105
  },
5085
- m(y, M) {
5086
- V(y, t, M), v(t, n), v(n, r), v(r, o), v(o, s), v(r, a), v(r, u), v(u, l), v(l, f), v(u, d), v(u, m), v(m, h), S || (_ = [
5106
+ m(y, P) {
5107
+ V(y, t, P), v(t, n), v(n, r), v(r, o), v(o, s), v(r, a), v(r, u), v(u, l), v(l, f), v(u, d), v(u, m), v(m, h), S || (_ = [
5087
5108
  Y(
5088
5109
  l,
5089
5110
  "click",
@@ -5101,29 +5122,29 @@ function ln(e) {
5101
5122
  )
5102
5123
  ], S = !0);
5103
5124
  },
5104
- p(y, M) {
5105
- M[0] & /*$_*/
5125
+ p(y, P) {
5126
+ P[0] & /*$_*/
5106
5127
  262144 && i !== (i = /*$_*/
5107
- y[18]("forfeitBonus") + "") && ne(s, i), M[0] & /*$_*/
5128
+ y[18]("forfeitBonus") + "") && re(s, i), P[0] & /*$_*/
5108
5129
  262144 && c !== (c = /*$_*/
5109
- y[18]("forfeitBonusCancel") + "") && ne(f, c), M[0] & /*$_*/
5130
+ y[18]("forfeitBonusCancel") + "") && re(f, c), P[0] & /*$_*/
5110
5131
  262144 && b !== (b = /*$_*/
5111
- y[18]("forfeitBonusConfirm") + "") && ne(h, b);
5132
+ y[18]("forfeitBonusConfirm") + "") && re(h, b);
5112
5133
  },
5113
5134
  d(y) {
5114
5135
  y && G(t), S = !1, ue(_);
5115
5136
  }
5116
5137
  };
5117
5138
  }
5118
- function Xi(e) {
5139
+ function qi(e) {
5119
5140
  let t;
5120
5141
  function n(i, s) {
5121
- return Gi;
5142
+ return ji;
5122
5143
  }
5123
5144
  let o = n()(e);
5124
5145
  return {
5125
5146
  c() {
5126
- t = P("div"), o.c();
5147
+ t = T("div"), o.c();
5127
5148
  },
5128
5149
  m(i, s) {
5129
5150
  V(i, t, s), o.m(t, null), e[38](t);
@@ -5138,28 +5159,28 @@ function Xi(e) {
5138
5159
  }
5139
5160
  };
5140
5161
  }
5141
- let Zi = "status=active", te = 6;
5142
- function qi(e, t, n) {
5162
+ let Qi = "status=active", ne = 6;
5163
+ function Ji(e, t, n) {
5143
5164
  let r;
5144
- fr(e, Ni, (g) => n(18, r = g));
5145
- let { endpoint: o = "" } = t, { session: i = "" } = t, { playerid: s = "" } = t, { lang: a = "en" } = t, { currency: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: f } = t, { translationurl: d = "" } = t, { currencylocale: m = "" } = t, { dateformat: b = "" } = t, h, S = window.navigator.userAgent, _ = Li(S) !== "PC", y = !0, M = !1, H = "", T = 0, E = 0, N = 0, I = 0, ie = 0, Q = [], R, xe = "", se = !1;
5165
+ dr(e, Ri, (g) => n(18, r = g));
5166
+ let { endpoint: o = "" } = t, { session: i = "" } = t, { playerid: s = "" } = t, { lang: a = "en" } = t, { currency: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: f } = t, { translationurl: d = "" } = t, { currencylocale: m = "" } = t, { dateformat: b = "" } = t, h, S = window.navigator.userAgent, _ = $i(S) !== "PC", y = !0, P = !1, M = "", A = 0, E = 0, N = 0, H = 0, ie = 0, Q = [], R, Ee = "", se = !1;
5146
5167
  const X = () => {
5147
5168
  fetch(d).then((D) => D.json()).then((D) => {
5148
5169
  Object.keys(D).forEach((Z) => {
5149
- en(Z, D[Z]);
5170
+ nn(Z, D[Z]);
5150
5171
  });
5151
5172
  }).catch((D) => {
5152
5173
  console.log(D);
5153
5174
  });
5154
5175
  };
5155
- Object.keys(tn).forEach((g) => {
5156
- en(g, tn[g]);
5176
+ Object.keys(rn).forEach((g) => {
5177
+ nn(g, rn[g]);
5157
5178
  });
5158
5179
  const $ = (g) => {
5159
5180
  if (g.data)
5160
5181
  switch (g.data.type) {
5161
5182
  case "DeleteActiveBonus":
5162
- xe = g.data.bonuswalletid, n(17, se = !0);
5183
+ Ee = g.data.bonuswalletid, n(17, se = !0);
5163
5184
  break;
5164
5185
  }
5165
5186
  };
@@ -5181,20 +5202,20 @@ function qi(e, t, n) {
5181
5202
  },
5182
5203
  window.location.href
5183
5204
  );
5184
- }, L = () => !!H, Xn = () => {
5205
+ }, L = () => !!M, Zn = () => {
5185
5206
  n(8, y = !L());
5186
- }, ee = (g) => {
5207
+ }, te = (g) => {
5187
5208
  let D = {
5188
5209
  method: "GET",
5189
5210
  headers: { "X-SessionId": i }
5190
5211
  }, Z = new URL(`${o}/v1/player/${s}/bonusWallet`);
5191
- Z.searchParams.append("filter", Zi), Z.searchParams.append("pagination", `offset=${g},limit=${te}`), fetch(Z, D).then((J) => J.json()).then(
5212
+ Z.searchParams.append("filter", Qi), Z.searchParams.append("pagination", `offset=${g},limit=${ne}`), fetch(Z, D).then((J) => J.json()).then(
5192
5213
  (J) => {
5193
5214
  Array.isArray(J.items) && J.items.forEach((k) => {
5194
- var Ct, St;
5195
- const He = (St = (Ct = k == null ? void 0 : k.extension) == null ? void 0 : Ct.bonus) == null ? void 0 : St.presentation;
5215
+ var At, Tt;
5216
+ const He = (Tt = (At = k == null ? void 0 : k.extension) == null ? void 0 : At.bonus) == null ? void 0 : Tt.presentation;
5196
5217
  He && (k.termsandconditionsurl = He.url, k.termsandconditionsdescription = He.description, k.termsandconditionsasset = He.assets);
5197
- }), n(14, I = Math.ceil(J.total / te)), g - te >= 0 && n(11, T = g - te), g + te < J.total && n(12, E = g + te), n(13, N = (I - 1) * te), n(15, ie = g / te), n(16, Q = (J == null ? void 0 : J.items) || []), m && Q.forEach((k) => {
5218
+ }), n(14, H = Math.ceil(J.total / ne)), g - ne >= 0 && n(11, A = g - ne), g + ne < J.total && n(12, E = g + ne), n(13, N = (H - 1) * ne), n(15, ie = g / ne), n(16, Q = (J == null ? void 0 : J.items) || []), m && Q.forEach((k) => {
5198
5219
  k.fulfilledWR = Me(k.fulfilledWR), k.originalWageringRequirement = Me(k.originalWageringRequirement), k.currentAmount = Me(k.currentAmount), k.extension.grantedPlayerCurrencyAmount = Me(k.extension.grantedPlayerCurrencyAmount);
5199
5220
  }), window.scrollTo({ top: 0, behavior: "smooth" });
5200
5221
  },
@@ -5202,7 +5223,7 @@ function qi(e, t, n) {
5202
5223
  console.error(J);
5203
5224
  }
5204
5225
  );
5205
- }, Me = (g) => new Intl.NumberFormat(m, { style: "currency", currency: u }).format(g).replace(/\s/g, ""), Zn = () => {
5226
+ }, Me = (g) => new Intl.NumberFormat(m, { style: "currency", currency: u }).format(g).replace(/\s/g, ""), qn = () => {
5206
5227
  let g = new URL(`${o}/v1/player/${s}/claimbonus`), D = {
5207
5228
  method: "POST",
5208
5229
  headers: {
@@ -5210,8 +5231,8 @@ function qi(e, t, n) {
5210
5231
  accept: "application/json"
5211
5232
  }
5212
5233
  };
5213
- g.searchParams.append("currency", u), g.searchParams.append("bonusCode", H), fetch(g.href, D).then((Z) => {
5214
- Z.status == 200 ? (n(9, M = !1), ee(0), window.postMessage(
5234
+ g.searchParams.append("currency", u), g.searchParams.append("bonusCode", M), fetch(g.href, D).then((Z) => {
5235
+ Z.status == 200 ? (n(9, P = !1), te(0), window.postMessage(
5215
5236
  {
5216
5237
  type: "WidgetNotification",
5217
5238
  data: {
@@ -5223,8 +5244,8 @@ function qi(e, t, n) {
5223
5244
  ), typeof gtag == "function" && gtag("event", "ClaimBonus", {
5224
5245
  context: "PlayerActiveBonuses",
5225
5246
  userId: `${s || "Not logged in"}`,
5226
- bonusCode: `${H}`
5227
- })) : (n(9, M = !0), window.postMessage(
5247
+ bonusCode: `${M}`
5248
+ })) : (n(9, P = !0), window.postMessage(
5228
5249
  {
5229
5250
  type: "WidgetNotification",
5230
5251
  data: {
@@ -5235,9 +5256,9 @@ function qi(e, t, n) {
5235
5256
  window.location.href
5236
5257
  ));
5237
5258
  });
5238
- }, wt = () => {
5259
+ }, St = () => {
5239
5260
  window.postMessage({ type: "EnableScroll" }, window.location.href), n(17, se = !1);
5240
- }, qn = () => {
5261
+ }, Qn = () => {
5241
5262
  let g = {
5242
5263
  method: "DELETE",
5243
5264
  headers: {
@@ -5246,25 +5267,25 @@ function qi(e, t, n) {
5246
5267
  Accept: "application/json"
5247
5268
  }
5248
5269
  }, D = new URL(`${o}/v1/player/${s}/bonusWallet`);
5249
- D.searchParams.append("bonusWalletID", xe), fetch(D, g).then((Z) => {
5250
- Z.status == 200 && (ee(0), wt());
5270
+ D.searchParams.append("bonusWalletID", Ee), fetch(D, g).then((Z) => {
5271
+ Z.status == 200 && (te(0), St());
5251
5272
  });
5252
- }, Qn = () => {
5253
- Ri(a);
5273
+ }, Jn = () => {
5274
+ Fi(a);
5254
5275
  };
5255
- function Jn(g) {
5276
+ function Yn(g) {
5256
5277
  return U(g, 1e3);
5257
5278
  }
5258
- yr(() => (window.addEventListener("message", $, !1), () => {
5279
+ _r(() => (window.addEventListener("message", $, !1), () => {
5259
5280
  window.removeEventListener("message", $);
5260
5281
  }));
5261
- const Yn = () => C();
5262
- function Kn() {
5263
- H = this.value, n(10, H);
5282
+ const Kn = () => C();
5283
+ function er() {
5284
+ M = this.value, n(10, M);
5264
5285
  }
5265
- const er = () => ee(0), tr = () => ee(T), nr = (g) => ee(g * te), rr = () => ee(E), or = () => ee(N);
5266
- function ir(g) {
5267
- nt[g ? "unshift" : "push"](() => {
5286
+ const tr = () => te(0), nr = () => te(A), rr = (g) => te(g * ne), or = () => te(E), ir = () => te(N);
5287
+ function sr(g) {
5288
+ ot[g ? "unshift" : "push"](() => {
5268
5289
  h = g, n(7, h);
5269
5290
  });
5270
5291
  }
@@ -5272,11 +5293,11 @@ function qi(e, t, n) {
5272
5293
  "endpoint" in g && n(27, o = g.endpoint), "session" in g && n(28, i = g.session), "playerid" in g && n(29, s = g.playerid), "lang" in g && n(0, a = g.lang), "currency" in g && n(30, u = g.currency), "clientstyling" in g && n(1, l = g.clientstyling), "clientstylingurl" in g && n(2, c = g.clientstylingurl), "mbsource" in g && n(3, f = g.mbsource), "translationurl" in g && n(4, d = g.translationurl), "currencylocale" in g && n(5, m = g.currencylocale), "dateformat" in g && n(6, b = g.dateformat);
5273
5294
  }, e.$$.update = () => {
5274
5295
  e.$$.dirty[0] & /*lang*/
5275
- 1 && a && Qn(), e.$$.dirty[0] & /*session, playerid, endpoint*/
5276
- 939524096 && i && s && o && ee(0), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5277
- 130 && l && h && $i(h, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5278
- 132 && c && h && Fi(h, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5279
- 136 && f && h && Ui(h, `${f}.Style`), e.$$.dirty[0] & /*translationurl*/
5296
+ 1 && a && Jn(), e.$$.dirty[0] & /*session, playerid, endpoint*/
5297
+ 939524096 && i && s && o && te(0), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5298
+ 130 && l && h && Ui(h, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5299
+ 132 && c && h && Di(h, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5300
+ 136 && f && h && Gi(h, `${f}.Style`), e.$$.dirty[0] & /*translationurl*/
5280
5301
  16 && d && X();
5281
5302
  }, [
5282
5303
  a,
@@ -5288,46 +5309,46 @@ function qi(e, t, n) {
5288
5309
  b,
5289
5310
  h,
5290
5311
  y,
5312
+ P,
5291
5313
  M,
5292
- H,
5293
- T,
5314
+ A,
5294
5315
  E,
5295
5316
  N,
5296
- I,
5317
+ H,
5297
5318
  ie,
5298
5319
  Q,
5299
5320
  se,
5300
5321
  r,
5301
5322
  _,
5302
5323
  C,
5303
- Xn,
5304
- ee,
5305
5324
  Zn,
5306
- wt,
5325
+ te,
5307
5326
  qn,
5308
- Jn,
5327
+ St,
5328
+ Qn,
5329
+ Yn,
5309
5330
  o,
5310
5331
  i,
5311
5332
  s,
5312
5333
  u,
5313
- Yn,
5314
5334
  Kn,
5315
5335
  er,
5316
5336
  tr,
5317
5337
  nr,
5318
5338
  rr,
5319
5339
  or,
5320
- ir
5340
+ ir,
5341
+ sr
5321
5342
  ];
5322
5343
  }
5323
- class zn extends Hr {
5344
+ class Xn extends Or {
5324
5345
  constructor(t) {
5325
- super(), Pr(
5346
+ super(), Mr(
5326
5347
  this,
5327
5348
  t,
5349
+ Ji,
5328
5350
  qi,
5329
- Xi,
5330
- hn,
5351
+ dn,
5331
5352
  {
5332
5353
  endpoint: 27,
5333
5354
  session: 28,
@@ -5341,7 +5362,7 @@ class zn extends Hr {
5341
5362
  currencylocale: 5,
5342
5363
  dateformat: 6
5343
5364
  },
5344
- Di,
5365
+ ki,
5345
5366
  [-1, -1]
5346
5367
  );
5347
5368
  }
@@ -5412,38 +5433,38 @@ class zn extends Hr {
5412
5433
  this.$$set({ dateformat: t }), z();
5413
5434
  }
5414
5435
  }
5415
- Mr(zn, { endpoint: {}, session: {}, playerid: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currencylocale: {}, dateformat: {} }, [], [], !0);
5416
- const Yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5436
+ Hr(Xn, { endpoint: {}, session: {}, playerid: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currencylocale: {}, dateformat: {} }, [], [], !0);
5437
+ const es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5417
5438
  __proto__: null,
5418
- default: zn
5439
+ default: Xn
5419
5440
  }, Symbol.toStringTag, { value: "Module" }));
5420
5441
  export {
5421
- Be as $,
5422
- Yi as P,
5423
- Hr as S,
5424
- Gn as a,
5425
- dr as b,
5426
- Mr as c,
5427
- W as d,
5428
- P as e,
5442
+ _e as $,
5443
+ es as P,
5444
+ Or as S,
5445
+ kn as a,
5446
+ pr as b,
5447
+ re as c,
5448
+ G as d,
5449
+ B as e,
5429
5450
  z as f,
5430
- B as g,
5431
- V as h,
5432
- Pr as i,
5433
- v as j,
5434
- ne as k,
5435
- G as l,
5436
- fr as m,
5451
+ V as g,
5452
+ v as h,
5453
+ Mr as i,
5454
+ T as j,
5455
+ W as k,
5456
+ dr as l,
5457
+ $i as m,
5437
5458
  K as n,
5438
- Li as o,
5439
- yr as p,
5440
- Fi as q,
5441
- Ui as r,
5442
- hn as s,
5459
+ _r as o,
5460
+ Ki as p,
5461
+ Y as q,
5462
+ ot as r,
5463
+ dn as s,
5443
5464
  F as t,
5444
- Ji as u,
5445
- Y as v,
5446
- nt as w,
5447
- $i as x,
5448
- Ni as y
5465
+ Ui as u,
5466
+ Di as v,
5467
+ Gi as w,
5468
+ Hr as x,
5469
+ Ri as y
5449
5470
  };