@everymatrix/player-active-bonuses 1.94.45 → 1.94.47

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, Cr = Object.defineProperties;
2
- var Ar = Object.getOwnPropertyDescriptors;
3
- var zt = Object.getOwnPropertySymbols;
4
- var Tr = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable;
5
- var st = (e, t, n) => t in e ? Sr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ae = (e, t) => {
1
+ var Tr = Object.defineProperty, Pr = Object.defineProperties;
2
+ var Mr = Object.getOwnPropertyDescriptors;
3
+ var qt = Object.getOwnPropertySymbols;
4
+ var Hr = Object.prototype.hasOwnProperty, Or = Object.prototype.propertyIsEnumerable;
5
+ var ut = (e, t, n) => t in e ? Tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Oe = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- Tr.call(t, n) && st(e, n, t[n]);
8
- if (zt)
9
- for (var n of zt(t))
10
- Pr.call(t, n) && st(e, n, t[n]);
7
+ Hr.call(t, n) && ut(e, n, t[n]);
8
+ if (qt)
9
+ for (var n of qt(t))
10
+ Or.call(t, n) && ut(e, n, t[n]);
11
11
  return e;
12
- }, at = (e, t) => Cr(e, Ar(t));
13
- var Y = (e, t, n) => (st(e, typeof t != "symbol" ? t + "" : t, n), n);
14
- var re = (e, t, n) => new Promise((r, o) => {
12
+ }, lt = (e, t) => Pr(e, Mr(t));
13
+ var Y = (e, t, n) => (ut(e, typeof t != "symbol" ? t + "" : t, n), n);
14
+ var oe = (e, t, n) => new Promise((r, o) => {
15
15
  var i = (u) => {
16
16
  try {
17
17
  a(n.next(u));
@@ -27,53 +27,53 @@ var re = (e, t, n) => new Promise((r, o) => {
27
27
  }, a = (u) => u.done ? r(u.value) : Promise.resolve(u.value).then(i, s);
28
28
  a((n = n.apply(e, t)).next());
29
29
  });
30
- function J() {
30
+ function Q() {
31
31
  }
32
- function An(e) {
32
+ function Pn(e) {
33
33
  return e();
34
34
  }
35
- function Xt() {
35
+ function Zt() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function ae(e) {
39
- e.forEach(An);
38
+ function he(e) {
39
+ e.forEach(Pn);
40
40
  }
41
- function Nt(e) {
41
+ function Rt(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function Tn(e, t) {
44
+ function Mn(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- let De;
48
- function Ss(e, t) {
49
- return e === t ? !0 : (De || (De = document.createElement("a")), De.href = t, e === De.href);
47
+ let Ge;
48
+ function As(e, t) {
49
+ return e === t ? !0 : (Ge || (Ge = document.createElement("a")), Ge.href = t, e === Ge.href);
50
50
  }
51
- function Mr(e) {
51
+ function Ir(e) {
52
52
  return Object.keys(e).length === 0;
53
53
  }
54
- function Pn(e, ...t) {
54
+ function Hn(e, ...t) {
55
55
  if (e == null) {
56
56
  for (const r of t)
57
57
  r(void 0);
58
- return J;
58
+ return Q;
59
59
  }
60
60
  const n = e.subscribe(...t);
61
61
  return n.unsubscribe ? () => n.unsubscribe() : n;
62
62
  }
63
- function Hr(e, t, n) {
64
- e.$$.on_destroy.push(Pn(t, n));
63
+ function Nr(e, t, n) {
64
+ e.$$.on_destroy.push(Hn(t, n));
65
65
  }
66
- function E(e, t) {
66
+ function B(e, t) {
67
67
  e.appendChild(t);
68
68
  }
69
- function Ir(e, t, n) {
70
- const r = Or(e);
69
+ function Lr(e, t, n) {
70
+ const r = Rr(e);
71
71
  if (!r.getElementById(t)) {
72
- const o = A("style");
73
- o.id = t, o.textContent = n, Nr(r, o);
72
+ const o = T("style");
73
+ o.id = t, o.textContent = n, Ur(r, o);
74
74
  }
75
75
  }
76
- function Or(e) {
76
+ function Rr(e) {
77
77
  if (!e)
78
78
  return document;
79
79
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -83,8 +83,8 @@ function Or(e) {
83
83
  t
84
84
  ) : e.ownerDocument;
85
85
  }
86
- function Nr(e, t) {
87
- return E(
86
+ function Ur(e, t) {
87
+ return B(
88
88
  /** @type {Document} */
89
89
  e.head || e,
90
90
  t
@@ -93,49 +93,49 @@ function Nr(e, t) {
93
93
  function j(e, t, n) {
94
94
  e.insertBefore(t, n || null);
95
95
  }
96
- function G(e) {
96
+ function k(e) {
97
97
  e.parentNode && e.parentNode.removeChild(e);
98
98
  }
99
- function Mn(e, t) {
99
+ function On(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 A(e) {
103
+ function T(e) {
104
104
  return document.createElement(e);
105
105
  }
106
- function fe(e) {
106
+ function ve(e) {
107
107
  return document.createElementNS("http://www.w3.org/2000/svg", e);
108
108
  }
109
- function $(e) {
109
+ function G(e) {
110
110
  return document.createTextNode(e);
111
111
  }
112
- function V() {
113
- return $(" ");
112
+ function z() {
113
+ return G(" ");
114
114
  }
115
- function Lt() {
116
- return $("");
115
+ function Ut() {
116
+ return G("");
117
117
  }
118
- function Q(e, t, n, r) {
118
+ function K(e, t, n, r) {
119
119
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
120
120
  }
121
- function x(e, t, n) {
121
+ function S(e, t, n) {
122
122
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
123
123
  }
124
124
  function f(e, t, n) {
125
125
  const r = t.toLowerCase();
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 : x(e, t, n);
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 : S(e, t, n);
127
127
  }
128
- function Lr(e) {
128
+ function Fr(e) {
129
129
  return Array.from(e.childNodes);
130
130
  }
131
- function oe(e, t) {
131
+ function ie(e, t) {
132
132
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
133
133
  t);
134
134
  }
135
- function qt(e, t) {
135
+ function Yt(e, t) {
136
136
  e.value = t == null ? "" : t;
137
137
  }
138
- function Rr(e) {
138
+ function Dr(e) {
139
139
  const t = {};
140
140
  return e.childNodes.forEach(
141
141
  /** @param {Element} node */
@@ -144,98 +144,98 @@ function Rr(e) {
144
144
  }
145
145
  ), t;
146
146
  }
147
- let Me;
148
- function Pe(e) {
149
- Me = e;
147
+ let Le;
148
+ function Ne(e) {
149
+ Le = e;
150
150
  }
151
- function Ur() {
152
- if (!Me)
151
+ function $r() {
152
+ if (!Le)
153
153
  throw new Error("Function called outside component initialization");
154
- return Me;
154
+ return Le;
155
155
  }
156
- function Fr(e) {
157
- Ur().$$.on_mount.push(e);
156
+ function Gr(e) {
157
+ $r().$$.on_mount.push(e);
158
158
  }
159
- const pe = [], bt = [];
160
- let be = [];
161
- const Zt = [], Dr = /* @__PURE__ */ Promise.resolve();
162
- let gt = !1;
163
- function $r() {
164
- gt || (gt = !0, Dr.then(D));
159
+ const Be = [], vt = [];
160
+ let we = [];
161
+ const Qt = [], kr = /* @__PURE__ */ Promise.resolve();
162
+ let yt = !1;
163
+ function Wr() {
164
+ yt || (yt = !0, kr.then($));
165
165
  }
166
- function vt(e) {
167
- be.push(e);
166
+ function _t(e) {
167
+ we.push(e);
168
168
  }
169
- const ut = /* @__PURE__ */ new Set();
170
- let he = 0;
171
- function D() {
172
- if (he !== 0)
169
+ const ct = /* @__PURE__ */ new Set();
170
+ let ye = 0;
171
+ function $() {
172
+ if (ye !== 0)
173
173
  return;
174
- const e = Me;
174
+ const e = Le;
175
175
  do {
176
176
  try {
177
- for (; he < pe.length; ) {
178
- const t = pe[he];
179
- he++, Pe(t), Gr(t.$$);
177
+ for (; ye < Be.length; ) {
178
+ const t = Be[ye];
179
+ ye++, Ne(t), jr(t.$$);
180
180
  }
181
181
  } catch (t) {
182
- throw pe.length = 0, he = 0, t;
182
+ throw Be.length = 0, ye = 0, t;
183
183
  }
184
- for (Pe(null), pe.length = 0, he = 0; bt.length; )
185
- bt.pop()();
186
- for (let t = 0; t < be.length; t += 1) {
187
- const n = be[t];
188
- ut.has(n) || (ut.add(n), n());
184
+ for (Ne(null), Be.length = 0, ye = 0; vt.length; )
185
+ vt.pop()();
186
+ for (let t = 0; t < we.length; t += 1) {
187
+ const n = we[t];
188
+ ct.has(n) || (ct.add(n), n());
189
189
  }
190
- be.length = 0;
191
- } while (pe.length);
192
- for (; Zt.length; )
193
- Zt.pop()();
194
- gt = !1, ut.clear(), Pe(e);
190
+ we.length = 0;
191
+ } while (Be.length);
192
+ for (; Qt.length; )
193
+ Qt.pop()();
194
+ yt = !1, ct.clear(), Ne(e);
195
195
  }
196
- function Gr(e) {
196
+ function jr(e) {
197
197
  if (e.fragment !== null) {
198
- e.update(), ae(e.before_update);
198
+ e.update(), he(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(vt);
200
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(_t);
201
201
  }
202
202
  }
203
- function kr(e) {
203
+ function Vr(e) {
204
204
  const t = [], n = [];
205
- be.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), be = t;
205
+ we.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), we = t;
206
206
  }
207
- const jr = /* @__PURE__ */ new Set();
208
- function Wr(e, t) {
209
- e && e.i && (jr.delete(e), e.i(t));
207
+ const zr = /* @__PURE__ */ new Set();
208
+ function Xr(e, t) {
209
+ e && e.i && (zr.delete(e), e.i(t));
210
210
  }
211
- function ze(e) {
211
+ function qe(e) {
212
212
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
213
213
  }
214
- function Vr(e, t, n) {
214
+ function qr(e, t, n) {
215
215
  const { fragment: r, after_update: o } = e.$$;
216
- r && r.m(t, n), vt(() => {
217
- const i = e.$$.on_mount.map(An).filter(Nt);
218
- e.$$.on_destroy ? e.$$.on_destroy.push(...i) : ae(i), e.$$.on_mount = [];
219
- }), o.forEach(vt);
216
+ r && r.m(t, n), _t(() => {
217
+ const i = e.$$.on_mount.map(Pn).filter(Rt);
218
+ e.$$.on_destroy ? e.$$.on_destroy.push(...i) : he(i), e.$$.on_mount = [];
219
+ }), o.forEach(_t);
220
220
  }
221
- function zr(e, t) {
221
+ function Zr(e, t) {
222
222
  const n = e.$$;
223
- n.fragment !== null && (kr(n.after_update), ae(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
223
+ n.fragment !== null && (Vr(n.after_update), he(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
224
224
  }
225
- function Xr(e, t) {
226
- e.$$.dirty[0] === -1 && (pe.push(e), $r(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
225
+ function Yr(e, t) {
226
+ e.$$.dirty[0] === -1 && (Be.push(e), Wr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
227
227
  }
228
- function qr(e, t, n, r, o, i, s = null, a = [-1]) {
229
- const u = Me;
230
- Pe(e);
228
+ function Qr(e, t, n, r, o, i, s = null, a = [-1]) {
229
+ const u = Le;
230
+ Ne(e);
231
231
  const l = e.$$ = {
232
232
  fragment: null,
233
233
  ctx: [],
234
234
  // state
235
235
  props: i,
236
- update: J,
236
+ update: Q,
237
237
  not_equal: o,
238
- bound: Xt(),
238
+ bound: Zt(),
239
239
  // lifecycle
240
240
  on_mount: [],
241
241
  on_destroy: [],
@@ -244,28 +244,28 @@ function qr(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: Xt(),
247
+ callbacks: Zt(),
248
248
  dirty: a,
249
249
  skip_bound: !1,
250
250
  root: t.target || u.$$.root
251
251
  };
252
252
  s && s(l.root);
253
253
  let c = !1;
254
- if (l.ctx = n ? n(e, t.props || {}, (h, d, ...p) => {
255
- const g = p.length ? p[0] : d;
256
- return l.ctx && o(l.ctx[h], l.ctx[h] = g) && (!l.skip_bound && l.bound[h] && l.bound[h](g), c && Xr(e, h)), d;
257
- }) : [], l.update(), c = !0, ae(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
254
+ if (l.ctx = n ? n(e, t.props || {}, (h, d, ...m) => {
255
+ const y = m.length ? m[0] : d;
256
+ return l.ctx && o(l.ctx[h], l.ctx[h] = y) && (!l.skip_bound && l.bound[h] && l.bound[h](y), c && Yr(e, h)), d;
257
+ }) : [], l.update(), c = !0, he(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
258
258
  if (t.hydrate) {
259
- const h = Lr(t.target);
260
- l.fragment && l.fragment.l(h), h.forEach(G);
259
+ const h = Fr(t.target);
260
+ l.fragment && l.fragment.l(h), h.forEach(k);
261
261
  } else
262
262
  l.fragment && l.fragment.c();
263
- t.intro && Wr(e.$$.fragment), Vr(e, t.target, t.anchor), D();
263
+ t.intro && Xr(e.$$.fragment), qr(e, t.target, t.anchor), $();
264
264
  }
265
- Pe(u);
265
+ Ne(u);
266
266
  }
267
- let Hn;
268
- typeof HTMLElement == "function" && (Hn = class extends HTMLElement {
267
+ let In;
268
+ typeof HTMLElement == "function" && (In = 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" && (Hn = class extends HTMLElement {
302
302
  }
303
303
  }
304
304
  connectedCallback() {
305
- return re(this, null, function* () {
305
+ return oe(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 = A("slot"), i !== "default" && x(s, "name", i);
312
+ s = T("slot"), i !== "default" && S(s, "name", i);
313
313
  },
314
314
  /**
315
315
  * @param {HTMLElement} target
@@ -319,25 +319,25 @@ typeof HTMLElement == "function" && (Hn = class extends HTMLElement {
319
319
  j(l, s, c);
320
320
  },
321
321
  d: function(l) {
322
- l && G(s);
322
+ l && k(s);
323
323
  }
324
324
  };
325
325
  };
326
326
  };
327
327
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
328
328
  return;
329
- const n = {}, r = Rr(this);
329
+ const n = {}, r = Dr(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) {
333
333
  const s = this.$$g_p(i.name);
334
- s in this.$$d || (this.$$d[s] = ke(s, i.value, this.$$p_d, "toProp"));
334
+ s in this.$$d || (this.$$d[s] = je(s, i.value, this.$$p_d, "toProp"));
335
335
  }
336
336
  for (const i in this.$$p_d)
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: at(Ae({}, this.$$d), {
340
+ props: lt(Oe({}, this.$$d), {
341
341
  $$slots: n,
342
342
  $$scope: {
343
343
  ctx: []
@@ -348,7 +348,7 @@ typeof HTMLElement == "function" && (Hn = class extends HTMLElement {
348
348
  this.$$r = !0;
349
349
  for (const i in this.$$p_d)
350
350
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
351
- const s = ke(
351
+ const s = je(
352
352
  i,
353
353
  this.$$d[i],
354
354
  this.$$p_d,
@@ -372,7 +372,7 @@ typeof HTMLElement == "function" && (Hn = class extends HTMLElement {
372
372
  // and setting attributes through setAttribute etc, this is helpful
373
373
  attributeChangedCallback(t, n, r) {
374
374
  var o;
375
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ke(t, r, this.$$p_d, "toProp"), (o = this.$$c) == null || o.$set({ [t]: this.$$d[t] }));
375
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = je(t, r, this.$$p_d, "toProp"), (o = this.$$c) == null || o.$set({ [t]: this.$$d[t] }));
376
376
  }
377
377
  disconnectedCallback() {
378
378
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -385,7 +385,7 @@ typeof HTMLElement == "function" && (Hn = class extends HTMLElement {
385
385
  ) || t;
386
386
  }
387
387
  });
388
- function ke(e, t, n, r) {
388
+ function je(e, t, n, r) {
389
389
  var i;
390
390
  const o = (i = n[e]) == null ? void 0 : i.type;
391
391
  if (t = o === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
@@ -415,8 +415,8 @@ function ke(e, t, n, r) {
415
415
  return t;
416
416
  }
417
417
  }
418
- function Zr(e, t, n, r, o, i) {
419
- let s = class extends Hn {
418
+ function Jr(e, t, n, r, o, i) {
419
+ let s = class extends In {
420
420
  constructor() {
421
421
  super(e, n, o), this.$$p_d = t;
422
422
  }
@@ -433,7 +433,7 @@ function Zr(e, t, n, r, o, i) {
433
433
  },
434
434
  set(u) {
435
435
  var l;
436
- u = ke(a, u, t), this.$$d[a] = u, (l = this.$$c) == null || l.$set({ [a]: u });
436
+ u = je(a, u, t), this.$$d[a] = u, (l = this.$$c) == null || l.$set({ [a]: u });
437
437
  }
438
438
  });
439
439
  }), r.forEach((a) => {
@@ -446,7 +446,7 @@ function Zr(e, t, n, r, o, i) {
446
446
  }), e.element = /** @type {any} */
447
447
  s, s;
448
448
  }
449
- class Yr {
449
+ class Kr {
450
450
  constructor() {
451
451
  /**
452
452
  * ### PRIVATE API
@@ -467,7 +467,7 @@ class Yr {
467
467
  }
468
468
  /** @returns {void} */
469
469
  $destroy() {
470
- zr(this, 1), this.$destroy = J;
470
+ Zr(this, 1), this.$destroy = Q;
471
471
  }
472
472
  /**
473
473
  * @template {Extract<keyof Events, string>} K
@@ -476,8 +476,8 @@ class Yr {
476
476
  * @returns {() => void}
477
477
  */
478
478
  $on(t, n) {
479
- if (!Nt(n))
480
- return J;
479
+ if (!Rt(n))
480
+ return Q;
481
481
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
482
482
  return r.push(n), () => {
483
483
  const o = r.indexOf(n);
@@ -489,11 +489,11 @@ class Yr {
489
489
  * @returns {void}
490
490
  */
491
491
  $set(t) {
492
- this.$$set && !Mr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
492
+ this.$$set && !Ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
493
493
  }
494
494
  }
495
- const Jr = "4";
496
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Jr);
495
+ const eo = "4";
496
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(eo);
497
497
  /*! *****************************************************************************
498
498
  Copyright (c) Microsoft Corporation.
499
499
 
@@ -508,24 +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 yt = function(e, t) {
512
- return yt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
511
+ var Bt = function(e, t) {
512
+ return Bt = 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
- }, yt(e, t);
517
+ }, Bt(e, t);
518
518
  };
519
- function Oe(e, t) {
519
+ function Fe(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
- yt(e, t);
522
+ Bt(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
- function _t(e) {
528
+ function Et(e) {
529
529
  var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
530
530
  if (n)
531
531
  return n.call(e);
@@ -537,7 +537,7 @@ function _t(e) {
537
537
  };
538
538
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
539
539
  }
540
- function Bt(e, t) {
540
+ function wt(e, t) {
541
541
  var n = typeof Symbol == "function" && e[Symbol.iterator];
542
542
  if (!n)
543
543
  return e;
@@ -557,22 +557,22 @@ function Bt(e, t) {
557
557
  }
558
558
  return i;
559
559
  }
560
- function Et(e, t, n) {
560
+ function xt(e, t, n) {
561
561
  if (arguments.length === 2)
562
562
  for (var r = 0, o = t.length, i; r < o; r++)
563
563
  (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
564
564
  return e.concat(i || t);
565
565
  }
566
- function ie(e) {
566
+ function se(e) {
567
567
  return typeof e == "function";
568
568
  }
569
- function In(e) {
569
+ function Nn(e) {
570
570
  var t = function(r) {
571
571
  Error.call(r), r.stack = new Error().stack;
572
572
  }, n = e(t);
573
573
  return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
574
574
  }
575
- var lt = In(function(e) {
575
+ var ft = Nn(function(e) {
576
576
  return function(n) {
577
577
  e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
578
578
  ` + n.map(function(r, o) {
@@ -581,13 +581,13 @@ var lt = In(function(e) {
581
581
  `) : "", this.name = "UnsubscriptionError", this.errors = n;
582
582
  };
583
583
  });
584
- function wt(e, t) {
584
+ function St(e, t) {
585
585
  if (e) {
586
586
  var n = e.indexOf(t);
587
587
  0 <= n && e.splice(n, 1);
588
588
  }
589
589
  }
590
- var Ye = function() {
590
+ var Je = function() {
591
591
  function e(t) {
592
592
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
593
593
  }
@@ -599,12 +599,12 @@ var Ye = function() {
599
599
  if (s)
600
600
  if (this._parentage = null, Array.isArray(s))
601
601
  try {
602
- for (var a = _t(s), u = a.next(); !u.done; u = a.next()) {
602
+ for (var a = Et(s), u = a.next(); !u.done; u = a.next()) {
603
603
  var l = u.value;
604
604
  l.remove(this);
605
605
  }
606
- } catch (y) {
607
- t = { error: y };
606
+ } catch (v) {
607
+ t = { error: v };
608
608
  } finally {
609
609
  try {
610
610
  u && !u.done && (n = a.return) && n.call(a);
@@ -616,29 +616,29 @@ var Ye = function() {
616
616
  else
617
617
  s.remove(this);
618
618
  var c = this.initialTeardown;
619
- if (ie(c))
619
+ if (se(c))
620
620
  try {
621
621
  c();
622
- } catch (y) {
623
- i = y instanceof lt ? y.errors : [y];
622
+ } catch (v) {
623
+ i = v instanceof ft ? v.errors : [v];
624
624
  }
625
625
  var h = this._finalizers;
626
626
  if (h) {
627
627
  this._finalizers = null;
628
628
  try {
629
- for (var d = _t(h), p = d.next(); !p.done; p = d.next()) {
630
- var g = p.value;
629
+ for (var d = Et(h), m = d.next(); !m.done; m = d.next()) {
630
+ var y = m.value;
631
631
  try {
632
- Yt(g);
633
- } catch (y) {
634
- i = i != null ? i : [], y instanceof lt ? i = Et(Et([], Bt(i)), Bt(y.errors)) : i.push(y);
632
+ Jt(y);
633
+ } catch (v) {
634
+ i = i != null ? i : [], v instanceof ft ? i = xt(xt([], wt(i)), wt(v.errors)) : i.push(v);
635
635
  }
636
636
  }
637
- } catch (y) {
638
- r = { error: y };
637
+ } catch (v) {
638
+ r = { error: v };
639
639
  } finally {
640
640
  try {
641
- p && !p.done && (o = d.return) && o.call(d);
641
+ m && !m.done && (o = d.return) && o.call(d);
642
642
  } finally {
643
643
  if (r)
644
644
  throw r.error;
@@ -646,13 +646,13 @@ var Ye = function() {
646
646
  }
647
647
  }
648
648
  if (i)
649
- throw new lt(i);
649
+ throw new ft(i);
650
650
  }
651
651
  }, e.prototype.add = function(t) {
652
652
  var n;
653
653
  if (t && t !== this)
654
654
  if (this.closed)
655
- Yt(t);
655
+ Jt(t);
656
656
  else {
657
657
  if (t instanceof e) {
658
658
  if (t.closed || t._hasParent(this))
@@ -669,52 +669,52 @@ var Ye = function() {
669
669
  this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
670
670
  }, e.prototype._removeParent = function(t) {
671
671
  var n = this._parentage;
672
- n === t ? this._parentage = null : Array.isArray(n) && wt(n, t);
672
+ n === t ? this._parentage = null : Array.isArray(n) && St(n, t);
673
673
  }, e.prototype.remove = function(t) {
674
674
  var n = this._finalizers;
675
- n && wt(n, t), t instanceof e && t._removeParent(this);
675
+ n && St(n, t), t instanceof e && t._removeParent(this);
676
676
  }, e.EMPTY = function() {
677
677
  var t = new e();
678
678
  return t.closed = !0, t;
679
679
  }(), e;
680
- }(), On = Ye.EMPTY;
681
- function Nn(e) {
682
- return e instanceof Ye || e && "closed" in e && ie(e.remove) && ie(e.add) && ie(e.unsubscribe);
680
+ }(), Ln = Je.EMPTY;
681
+ function Rn(e) {
682
+ return e instanceof Je || e && "closed" in e && se(e.remove) && se(e.add) && se(e.unsubscribe);
683
683
  }
684
- function Yt(e) {
685
- ie(e) ? e() : e.unsubscribe();
684
+ function Jt(e) {
685
+ se(e) ? e() : e.unsubscribe();
686
686
  }
687
- var Qr = {
687
+ var to = {
688
688
  Promise: void 0
689
- }, Kr = {
689
+ }, no = {
690
690
  setTimeout: function(e, t) {
691
691
  for (var n = [], r = 2; r < arguments.length; r++)
692
692
  n[r - 2] = arguments[r];
693
- return setTimeout.apply(void 0, Et([e, t], Bt(n)));
693
+ return setTimeout.apply(void 0, xt([e, t], wt(n)));
694
694
  },
695
695
  clearTimeout: function(e) {
696
696
  return clearTimeout(e);
697
697
  },
698
698
  delegate: void 0
699
699
  };
700
- function eo(e) {
701
- Kr.setTimeout(function() {
700
+ function ro(e) {
701
+ no.setTimeout(function() {
702
702
  throw e;
703
703
  });
704
704
  }
705
- function Jt() {
705
+ function Kt() {
706
706
  }
707
- function je(e) {
707
+ function Ve(e) {
708
708
  e();
709
709
  }
710
- var Ln = function(e) {
711
- Oe(t, e);
710
+ var Un = function(e) {
711
+ Fe(t, e);
712
712
  function t(n) {
713
713
  var r = e.call(this) || this;
714
- return r.isStopped = !1, n ? (r.destination = n, Nn(n) && n.add(r)) : r.destination = ro, r;
714
+ return r.isStopped = !1, n ? (r.destination = n, Rn(n) && n.add(r)) : r.destination = so, r;
715
715
  }
716
716
  return t.create = function(n, r, o) {
717
- return new xt(n, r, o);
717
+ return new Ct(n, r, o);
718
718
  }, t.prototype.next = function(n) {
719
719
  this.isStopped || this._next(n);
720
720
  }, t.prototype.error = function(n) {
@@ -738,7 +738,7 @@ var Ln = function(e) {
738
738
  this.unsubscribe();
739
739
  }
740
740
  }, t;
741
- }(Ye), to = function() {
741
+ }(Je), oo = function() {
742
742
  function e(t) {
743
743
  this.partialObserver = t;
744
744
  }
@@ -748,7 +748,7 @@ var Ln = function(e) {
748
748
  try {
749
749
  n.next(t);
750
750
  } catch (r) {
751
- $e(r);
751
+ ke(r);
752
752
  }
753
753
  }, e.prototype.error = function(t) {
754
754
  var n = this.partialObserver;
@@ -756,56 +756,56 @@ var Ln = function(e) {
756
756
  try {
757
757
  n.error(t);
758
758
  } catch (r) {
759
- $e(r);
759
+ ke(r);
760
760
  }
761
761
  else
762
- $e(t);
762
+ ke(t);
763
763
  }, e.prototype.complete = function() {
764
764
  var t = this.partialObserver;
765
765
  if (t.complete)
766
766
  try {
767
767
  t.complete();
768
768
  } catch (n) {
769
- $e(n);
769
+ ke(n);
770
770
  }
771
771
  }, e;
772
- }(), xt = function(e) {
773
- Oe(t, e);
772
+ }(), Ct = function(e) {
773
+ Fe(t, e);
774
774
  function t(n, r, o) {
775
775
  var i = e.call(this) || this, s;
776
- return ie(n) || !n ? s = {
776
+ return se(n) || !n ? s = {
777
777
  next: n != null ? n : void 0,
778
778
  error: r != null ? r : void 0,
779
779
  complete: o != null ? o : void 0
780
- } : s = n, i.destination = new to(s), i;
780
+ } : s = n, i.destination = new oo(s), i;
781
781
  }
782
782
  return t;
783
- }(Ln);
784
- function $e(e) {
785
- eo(e);
783
+ }(Un);
784
+ function ke(e) {
785
+ ro(e);
786
786
  }
787
- function no(e) {
787
+ function io(e) {
788
788
  throw e;
789
789
  }
790
- var ro = {
790
+ var so = {
791
791
  closed: !0,
792
- next: Jt,
793
- error: no,
794
- complete: Jt
795
- }, oo = function() {
792
+ next: Kt,
793
+ error: io,
794
+ complete: Kt
795
+ }, ao = function() {
796
796
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
797
797
  }();
798
- function io(e) {
798
+ function uo(e) {
799
799
  return e;
800
800
  }
801
- function so(e) {
802
- return e.length === 0 ? io : e.length === 1 ? e[0] : function(n) {
801
+ function lo(e) {
802
+ return e.length === 0 ? uo : e.length === 1 ? e[0] : function(n) {
803
803
  return e.reduce(function(r, o) {
804
804
  return o(r);
805
805
  }, n);
806
806
  };
807
807
  }
808
- var Qt = function() {
808
+ var en = function() {
809
809
  function e(t) {
810
810
  t && (this._subscribe = t);
811
811
  }
@@ -813,8 +813,8 @@ var Qt = function() {
813
813
  var n = new e();
814
814
  return n.source = this, n.operator = t, n;
815
815
  }, e.prototype.subscribe = function(t, n, r) {
816
- var o = this, i = uo(t) ? t : new xt(t, n, r);
817
- return je(function() {
816
+ var o = this, i = fo(t) ? t : new Ct(t, n, r);
817
+ return Ve(function() {
818
818
  var s = o, a = s.operator, u = s.source;
819
819
  i.add(a ? a.call(i, u) : u ? o._subscribe(i) : o._trySubscribe(i));
820
820
  }), i;
@@ -826,8 +826,8 @@ var Qt = function() {
826
826
  }
827
827
  }, e.prototype.forEach = function(t, n) {
828
828
  var r = this;
829
- return n = Kt(n), new n(function(o, i) {
830
- var s = new xt({
829
+ return n = tn(n), new n(function(o, i) {
830
+ var s = new Ct({
831
831
  next: function(a) {
832
832
  try {
833
833
  t(a);
@@ -843,15 +843,15 @@ var Qt = function() {
843
843
  }, e.prototype._subscribe = function(t) {
844
844
  var n;
845
845
  return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
846
- }, e.prototype[oo] = function() {
846
+ }, e.prototype[ao] = function() {
847
847
  return this;
848
848
  }, e.prototype.pipe = function() {
849
849
  for (var t = [], n = 0; n < arguments.length; n++)
850
850
  t[n] = arguments[n];
851
- return so(t)(this);
851
+ return lo(t)(this);
852
852
  }, e.prototype.toPromise = function(t) {
853
853
  var n = this;
854
- return t = Kt(t), new t(function(r, o) {
854
+ return t = tn(t), new t(function(r, o) {
855
855
  var i;
856
856
  n.subscribe(function(s) {
857
857
  return i = s;
@@ -865,40 +865,40 @@ var Qt = function() {
865
865
  return new e(t);
866
866
  }, e;
867
867
  }();
868
- function Kt(e) {
868
+ function tn(e) {
869
869
  var t;
870
- return (t = e != null ? e : Qr.Promise) !== null && t !== void 0 ? t : Promise;
870
+ return (t = e != null ? e : to.Promise) !== null && t !== void 0 ? t : Promise;
871
871
  }
872
- function ao(e) {
873
- return e && ie(e.next) && ie(e.error) && ie(e.complete);
872
+ function co(e) {
873
+ return e && se(e.next) && se(e.error) && se(e.complete);
874
874
  }
875
- function uo(e) {
876
- return e && e instanceof Ln || ao(e) && Nn(e);
875
+ function fo(e) {
876
+ return e && e instanceof Un || co(e) && Rn(e);
877
877
  }
878
- var lo = In(function(e) {
878
+ var ho = Nn(function(e) {
879
879
  return function() {
880
880
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
881
881
  };
882
- }), Rn = function(e) {
883
- Oe(t, e);
882
+ }), Fn = function(e) {
883
+ Fe(t, e);
884
884
  function t() {
885
885
  var n = e.call(this) || this;
886
886
  return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
887
887
  }
888
888
  return t.prototype.lift = function(n) {
889
- var r = new en(this, this);
889
+ var r = new nn(this, this);
890
890
  return r.operator = n, r;
891
891
  }, t.prototype._throwIfClosed = function() {
892
892
  if (this.closed)
893
- throw new lo();
893
+ throw new ho();
894
894
  }, t.prototype.next = function(n) {
895
895
  var r = this;
896
- je(function() {
896
+ Ve(function() {
897
897
  var o, i;
898
898
  if (r._throwIfClosed(), !r.isStopped) {
899
899
  r.currentObservers || (r.currentObservers = Array.from(r.observers));
900
900
  try {
901
- for (var s = _t(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
901
+ for (var s = Et(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
902
902
  var u = a.value;
903
903
  u.next(n);
904
904
  }
@@ -916,7 +916,7 @@ var lo = In(function(e) {
916
916
  });
917
917
  }, t.prototype.error = function(n) {
918
918
  var r = this;
919
- je(function() {
919
+ Ve(function() {
920
920
  if (r._throwIfClosed(), !r.isStopped) {
921
921
  r.hasError = r.isStopped = !0, r.thrownError = n;
922
922
  for (var o = r.observers; o.length; )
@@ -925,7 +925,7 @@ var lo = In(function(e) {
925
925
  });
926
926
  }, t.prototype.complete = function() {
927
927
  var n = this;
928
- je(function() {
928
+ Ve(function() {
929
929
  if (n._throwIfClosed(), !n.isStopped) {
930
930
  n.isStopped = !0;
931
931
  for (var r = n.observers; r.length; )
@@ -947,20 +947,20 @@ var lo = In(function(e) {
947
947
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
948
948
  }, t.prototype._innerSubscribe = function(n) {
949
949
  var r = this, o = this, i = o.hasError, s = o.isStopped, a = o.observers;
950
- return i || s ? On : (this.currentObservers = null, a.push(n), new Ye(function() {
951
- r.currentObservers = null, wt(a, n);
950
+ return i || s ? Ln : (this.currentObservers = null, a.push(n), new Je(function() {
951
+ r.currentObservers = null, St(a, n);
952
952
  }));
953
953
  }, t.prototype._checkFinalizedStatuses = function(n) {
954
954
  var r = this, o = r.hasError, i = r.thrownError, s = r.isStopped;
955
955
  o ? n.error(i) : s && n.complete();
956
956
  }, t.prototype.asObservable = function() {
957
- var n = new Qt();
957
+ var n = new en();
958
958
  return n.source = this, n;
959
959
  }, t.create = function(n, r) {
960
- return new en(n, r);
960
+ return new nn(n, r);
961
961
  }, t;
962
- }(Qt), en = function(e) {
963
- Oe(t, e);
962
+ }(en), nn = function(e) {
963
+ Fe(t, e);
964
964
  function t(n, r) {
965
965
  var o = e.call(this) || this;
966
966
  return o.destination = n, o.source = r, o;
@@ -976,17 +976,17 @@ var lo = In(function(e) {
976
976
  (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
977
977
  }, t.prototype._subscribe = function(n) {
978
978
  var r, o;
979
- return (o = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && o !== void 0 ? o : On;
979
+ return (o = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && o !== void 0 ? o : Ln;
980
980
  }, t;
981
- }(Rn), Un = {
981
+ }(Fn), Dn = {
982
982
  now: function() {
983
- return (Un.delegate || Date).now();
983
+ return (Dn.delegate || Date).now();
984
984
  },
985
985
  delegate: void 0
986
- }, co = function(e) {
987
- Oe(t, e);
986
+ }, po = function(e) {
987
+ Fe(t, e);
988
988
  function t(n, r, o) {
989
- n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), o === void 0 && (o = Un);
989
+ n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), o === void 0 && (o = Dn);
990
990
  var i = e.call(this) || this;
991
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;
992
992
  }
@@ -1006,178 +1006,178 @@ var lo = In(function(e) {
1006
1006
  l && i.splice(0, l + 1);
1007
1007
  }
1008
1008
  }, t;
1009
- }(Rn);
1010
- const tn = [], nn = {}, fo = (e, t = 0) => {
1011
- if (tn.indexOf(e) == -1) {
1012
- const n = new co(t);
1013
- nn[e] = n, tn.push(e);
1009
+ }(Fn);
1010
+ const rn = [], on = {}, mo = (e, t = 0) => {
1011
+ if (rn.indexOf(e) == -1) {
1012
+ const n = new po(t);
1013
+ on[e] = n, rn.push(e);
1014
1014
  }
1015
- return nn[e];
1016
- }, de = [];
1017
- function ho(e, t) {
1015
+ return on[e];
1016
+ }, _e = [];
1017
+ function bo(e, t) {
1018
1018
  return {
1019
- subscribe: Je(e, t).subscribe
1019
+ subscribe: Ke(e, t).subscribe
1020
1020
  };
1021
1021
  }
1022
- function Je(e, t = J) {
1022
+ function Ke(e, t = Q) {
1023
1023
  let n;
1024
1024
  const r = /* @__PURE__ */ new Set();
1025
1025
  function o(a) {
1026
- if (Tn(e, a) && (e = a, n)) {
1027
- const u = !de.length;
1026
+ if (Mn(e, a) && (e = a, n)) {
1027
+ const u = !_e.length;
1028
1028
  for (const l of r)
1029
- l[1](), de.push(l, e);
1029
+ l[1](), _e.push(l, e);
1030
1030
  if (u) {
1031
- for (let l = 0; l < de.length; l += 2)
1032
- de[l][0](de[l + 1]);
1033
- de.length = 0;
1031
+ for (let l = 0; l < _e.length; l += 2)
1032
+ _e[l][0](_e[l + 1]);
1033
+ _e.length = 0;
1034
1034
  }
1035
1035
  }
1036
1036
  }
1037
1037
  function i(a) {
1038
1038
  o(a(e));
1039
1039
  }
1040
- function s(a, u = J) {
1040
+ function s(a, u = Q) {
1041
1041
  const l = [a, u];
1042
- return r.add(l), r.size === 1 && (n = t(o, i) || J), a(e), () => {
1042
+ return r.add(l), r.size === 1 && (n = t(o, i) || Q), a(e), () => {
1043
1043
  r.delete(l), r.size === 0 && n && (n(), n = null);
1044
1044
  };
1045
1045
  }
1046
1046
  return { set: o, update: i, subscribe: s };
1047
1047
  }
1048
- function Be(e, t, n) {
1048
+ function Te(e, t, n) {
1049
1049
  const r = !Array.isArray(e), o = r ? [e] : e;
1050
1050
  if (!o.every(Boolean))
1051
1051
  throw new Error("derived() expects stores as input, got a falsy value");
1052
1052
  const i = t.length < 2;
1053
- return ho(n, (s, a) => {
1053
+ return bo(n, (s, a) => {
1054
1054
  let u = !1;
1055
1055
  const l = [];
1056
- let c = 0, h = J;
1056
+ let c = 0, h = Q;
1057
1057
  const d = () => {
1058
1058
  if (c)
1059
1059
  return;
1060
1060
  h();
1061
- const g = t(r ? l[0] : l, s, a);
1062
- i ? s(g) : h = Nt(g) ? g : J;
1063
- }, p = o.map(
1064
- (g, y) => Pn(
1065
- g,
1066
- (m) => {
1067
- l[y] = m, c &= ~(1 << y), u && d();
1061
+ const y = t(r ? l[0] : l, s, a);
1062
+ i ? s(y) : h = Rt(y) ? y : Q;
1063
+ }, m = o.map(
1064
+ (y, v) => Hn(
1065
+ y,
1066
+ (x) => {
1067
+ l[v] = x, c &= ~(1 << v), u && d();
1068
1068
  },
1069
1069
  () => {
1070
- c |= 1 << y;
1070
+ c |= 1 << v;
1071
1071
  }
1072
1072
  )
1073
1073
  );
1074
1074
  return u = !0, d(), function() {
1075
- ae(p), h(), u = !1;
1075
+ he(m), h(), u = !1;
1076
1076
  };
1077
1077
  });
1078
1078
  }
1079
- function po(e) {
1079
+ function go(e) {
1080
1080
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1081
1081
  }
1082
- var mo = function(t) {
1083
- return bo(t) && !go(t);
1082
+ var vo = function(t) {
1083
+ return yo(t) && !_o(t);
1084
1084
  };
1085
- function bo(e) {
1085
+ function yo(e) {
1086
1086
  return !!e && typeof e == "object";
1087
1087
  }
1088
- function go(e) {
1088
+ function _o(e) {
1089
1089
  var t = Object.prototype.toString.call(e);
1090
- return t === "[object RegExp]" || t === "[object Date]" || _o(e);
1090
+ return t === "[object RegExp]" || t === "[object Date]" || wo(e);
1091
1091
  }
1092
- var vo = typeof Symbol == "function" && Symbol.for, yo = vo ? Symbol.for("react.element") : 60103;
1093
- function _o(e) {
1094
- return e.$$typeof === yo;
1092
+ var Bo = typeof Symbol == "function" && Symbol.for, Eo = Bo ? Symbol.for("react.element") : 60103;
1093
+ function wo(e) {
1094
+ return e.$$typeof === Eo;
1095
1095
  }
1096
- function Bo(e) {
1096
+ function xo(e) {
1097
1097
  return Array.isArray(e) ? [] : {};
1098
1098
  }
1099
- function He(e, t) {
1100
- return t.clone !== !1 && t.isMergeableObject(e) ? ge(Bo(e), e, t) : e;
1099
+ function Re(e, t) {
1100
+ return t.clone !== !1 && t.isMergeableObject(e) ? xe(xo(e), e, t) : e;
1101
1101
  }
1102
- function Eo(e, t, n) {
1102
+ function So(e, t, n) {
1103
1103
  return e.concat(t).map(function(r) {
1104
- return He(r, n);
1104
+ return Re(r, n);
1105
1105
  });
1106
1106
  }
1107
- function wo(e, t) {
1107
+ function Co(e, t) {
1108
1108
  if (!t.customMerge)
1109
- return ge;
1109
+ return xe;
1110
1110
  var n = t.customMerge(e);
1111
- return typeof n == "function" ? n : ge;
1111
+ return typeof n == "function" ? n : xe;
1112
1112
  }
1113
- function xo(e) {
1113
+ function Ao(e) {
1114
1114
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1115
1115
  return Object.propertyIsEnumerable.call(e, t);
1116
1116
  }) : [];
1117
1117
  }
1118
- function rn(e) {
1119
- return Object.keys(e).concat(xo(e));
1118
+ function sn(e) {
1119
+ return Object.keys(e).concat(Ao(e));
1120
1120
  }
1121
- function Fn(e, t) {
1121
+ function $n(e, t) {
1122
1122
  try {
1123
1123
  return t in e;
1124
1124
  } catch (n) {
1125
1125
  return !1;
1126
1126
  }
1127
1127
  }
1128
- function So(e, t) {
1129
- return Fn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1128
+ function To(e, t) {
1129
+ return $n(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1130
1130
  }
1131
- function Co(e, t, n) {
1131
+ function Po(e, t, n) {
1132
1132
  var r = {};
1133
- return n.isMergeableObject(e) && rn(e).forEach(function(o) {
1134
- r[o] = He(e[o], n);
1135
- }), rn(t).forEach(function(o) {
1136
- So(e, o) || (Fn(e, o) && n.isMergeableObject(t[o]) ? r[o] = wo(o, n)(e[o], t[o], n) : r[o] = He(t[o], n));
1133
+ return n.isMergeableObject(e) && sn(e).forEach(function(o) {
1134
+ r[o] = Re(e[o], n);
1135
+ }), sn(t).forEach(function(o) {
1136
+ To(e, o) || ($n(e, o) && n.isMergeableObject(t[o]) ? r[o] = Co(o, n)(e[o], t[o], n) : r[o] = Re(t[o], n));
1137
1137
  }), r;
1138
1138
  }
1139
- function ge(e, t, n) {
1140
- n = n || {}, n.arrayMerge = n.arrayMerge || Eo, n.isMergeableObject = n.isMergeableObject || mo, n.cloneUnlessOtherwiseSpecified = He;
1139
+ function xe(e, t, n) {
1140
+ n = n || {}, n.arrayMerge = n.arrayMerge || So, n.isMergeableObject = n.isMergeableObject || vo, n.cloneUnlessOtherwiseSpecified = Re;
1141
1141
  var r = Array.isArray(t), o = Array.isArray(e), i = r === o;
1142
- return i ? r ? n.arrayMerge(e, t, n) : Co(e, t, n) : He(t, n);
1142
+ return i ? r ? n.arrayMerge(e, t, n) : Po(e, t, n) : Re(t, n);
1143
1143
  }
1144
- ge.all = function(t, n) {
1144
+ xe.all = function(t, n) {
1145
1145
  if (!Array.isArray(t))
1146
1146
  throw new Error("first argument should be an array");
1147
1147
  return t.reduce(function(r, o) {
1148
- return ge(r, o, n);
1148
+ return xe(r, o, n);
1149
1149
  }, {});
1150
1150
  };
1151
- var Ao = ge, To = Ao;
1152
- const Po = /* @__PURE__ */ po(To);
1153
- var St = function(e, t) {
1154
- return St = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
1151
+ var Mo = xe, Ho = Mo;
1152
+ const Oo = /* @__PURE__ */ go(Ho);
1153
+ var At = function(e, t) {
1154
+ return At = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
1155
1155
  n.__proto__ = r;
1156
1156
  } || function(n, r) {
1157
1157
  for (var o in r)
1158
1158
  Object.prototype.hasOwnProperty.call(r, o) && (n[o] = r[o]);
1159
- }, St(e, t);
1159
+ }, At(e, t);
1160
1160
  };
1161
- function Qe(e, t) {
1161
+ function et(e, t) {
1162
1162
  if (typeof t != "function" && t !== null)
1163
1163
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1164
- St(e, t);
1164
+ At(e, t);
1165
1165
  function n() {
1166
1166
  this.constructor = e;
1167
1167
  }
1168
1168
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
1169
1169
  }
1170
- var te = function() {
1171
- return te = Object.assign || function(t) {
1170
+ var ne = function() {
1171
+ return ne = Object.assign || function(t) {
1172
1172
  for (var n, r = 1, o = arguments.length; r < o; r++) {
1173
1173
  n = arguments[r];
1174
1174
  for (var i in n)
1175
1175
  Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
1176
1176
  }
1177
1177
  return t;
1178
- }, te.apply(this, arguments);
1178
+ }, ne.apply(this, arguments);
1179
1179
  };
1180
- function Mo(e, t) {
1180
+ function Io(e, t) {
1181
1181
  var n = {};
1182
1182
  for (var r in e)
1183
1183
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -1186,43 +1186,43 @@ function Mo(e, t) {
1186
1186
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
1187
1187
  return n;
1188
1188
  }
1189
- function ct(e, t, n) {
1189
+ function ht(e, t, n) {
1190
1190
  if (n || arguments.length === 2)
1191
1191
  for (var r = 0, o = t.length, i; r < o; r++)
1192
1192
  (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
1193
1193
  return e.concat(i || Array.prototype.slice.call(t));
1194
1194
  }
1195
- function ft(e, t) {
1196
- var n = t && t.cache ? t.cache : Uo, r = t && t.serializer ? t.serializer : Lo, o = t && t.strategy ? t.strategy : Oo;
1195
+ function dt(e, t) {
1196
+ var n = t && t.cache ? t.cache : $o, r = t && t.serializer ? t.serializer : Fo, o = t && t.strategy ? t.strategy : Ro;
1197
1197
  return o(e, {
1198
1198
  cache: n,
1199
1199
  serializer: r
1200
1200
  });
1201
1201
  }
1202
- function Ho(e) {
1202
+ function No(e) {
1203
1203
  return e == null || typeof e == "number" || typeof e == "boolean";
1204
1204
  }
1205
- function Io(e, t, n, r) {
1206
- var o = Ho(r) ? r : n(r), i = t.get(o);
1205
+ function Lo(e, t, n, r) {
1206
+ var o = No(r) ? r : n(r), i = t.get(o);
1207
1207
  return typeof i == "undefined" && (i = e.call(this, r), t.set(o, i)), i;
1208
1208
  }
1209
- function Dn(e, t, n) {
1209
+ function Gn(e, t, n) {
1210
1210
  var r = Array.prototype.slice.call(arguments, 3), o = n(r), i = t.get(o);
1211
1211
  return typeof i == "undefined" && (i = e.apply(this, r), t.set(o, i)), i;
1212
1212
  }
1213
- function $n(e, t, n, r, o) {
1213
+ function kn(e, t, n, r, o) {
1214
1214
  return n.bind(t, e, r, o);
1215
1215
  }
1216
- function Oo(e, t) {
1217
- var n = e.length === 1 ? Io : Dn;
1218
- return $n(e, this, n, t.cache.create(), t.serializer);
1216
+ function Ro(e, t) {
1217
+ var n = e.length === 1 ? Lo : Gn;
1218
+ return kn(e, this, n, t.cache.create(), t.serializer);
1219
1219
  }
1220
- function No(e, t) {
1221
- return $n(e, this, Dn, t.cache.create(), t.serializer);
1220
+ function Uo(e, t) {
1221
+ return kn(e, this, Gn, t.cache.create(), t.serializer);
1222
1222
  }
1223
- var Lo = function() {
1223
+ var Fo = function() {
1224
1224
  return JSON.stringify(arguments);
1225
- }, Ro = (
1225
+ }, Do = (
1226
1226
  /** @class */
1227
1227
  function() {
1228
1228
  function e() {
@@ -1234,71 +1234,71 @@ var Lo = function() {
1234
1234
  this.cache[t] = n;
1235
1235
  }, e;
1236
1236
  }()
1237
- ), Uo = {
1237
+ ), $o = {
1238
1238
  create: function() {
1239
- return new Ro();
1239
+ return new Do();
1240
1240
  }
1241
- }, ht = {
1242
- variadic: No
1243
- }, Xe = function() {
1244
- return Xe = Object.assign || function(t) {
1241
+ }, pt = {
1242
+ variadic: Uo
1243
+ }, Ze = function() {
1244
+ return Ze = Object.assign || function(t) {
1245
1245
  for (var n, r = 1, o = arguments.length; r < o; r++) {
1246
1246
  n = arguments[r];
1247
1247
  for (var i in n)
1248
1248
  Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
1249
1249
  }
1250
1250
  return t;
1251
- }, Xe.apply(this, arguments);
1251
+ }, Ze.apply(this, arguments);
1252
1252
  };
1253
- var S;
1253
+ var C;
1254
1254
  (function(e) {
1255
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";
1256
- })(S || (S = {}));
1257
- var H;
1256
+ })(C || (C = {}));
1257
+ var O;
1258
1258
  (function(e) {
1259
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";
1260
- })(H || (H = {}));
1261
- var ve;
1260
+ })(O || (O = {}));
1261
+ var Se;
1262
1262
  (function(e) {
1263
1263
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1264
- })(ve || (ve = {}));
1265
- function on(e) {
1266
- return e.type === H.literal;
1267
- }
1268
- function Fo(e) {
1269
- return e.type === H.argument;
1264
+ })(Se || (Se = {}));
1265
+ function an(e) {
1266
+ return e.type === O.literal;
1270
1267
  }
1271
- function Gn(e) {
1272
- return e.type === H.number;
1268
+ function Go(e) {
1269
+ return e.type === O.argument;
1273
1270
  }
1274
- function kn(e) {
1275
- return e.type === H.date;
1271
+ function Wn(e) {
1272
+ return e.type === O.number;
1276
1273
  }
1277
1274
  function jn(e) {
1278
- return e.type === H.time;
1279
- }
1280
- function Wn(e) {
1281
- return e.type === H.select;
1275
+ return e.type === O.date;
1282
1276
  }
1283
1277
  function Vn(e) {
1284
- return e.type === H.plural;
1285
- }
1286
- function Do(e) {
1287
- return e.type === H.pound;
1278
+ return e.type === O.time;
1288
1279
  }
1289
1280
  function zn(e) {
1290
- return e.type === H.tag;
1281
+ return e.type === O.select;
1291
1282
  }
1292
1283
  function Xn(e) {
1293
- return !!(e && typeof e == "object" && e.type === ve.number);
1284
+ return e.type === O.plural;
1294
1285
  }
1295
- function Ct(e) {
1296
- return !!(e && typeof e == "object" && e.type === ve.dateTime);
1286
+ function ko(e) {
1287
+ return e.type === O.pound;
1297
1288
  }
1298
- var qn = /[ \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;
1299
- function Go(e) {
1289
+ function qn(e) {
1290
+ return e.type === O.tag;
1291
+ }
1292
+ function Zn(e) {
1293
+ return !!(e && typeof e == "object" && e.type === Se.number);
1294
+ }
1295
+ function Tt(e) {
1296
+ return !!(e && typeof e == "object" && e.type === Se.dateTime);
1297
+ }
1298
+ var Yn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wo = /(?:[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 jo(e) {
1300
1300
  var t = {};
1301
- return e.replace($o, function(n) {
1301
+ return e.replace(Wo, function(n) {
1302
1302
  var r = n.length;
1303
1303
  switch (n[0]) {
1304
1304
  case "G":
@@ -1387,21 +1387,21 @@ function Go(e) {
1387
1387
  return "";
1388
1388
  }), t;
1389
1389
  }
1390
- var O = function() {
1391
- return O = Object.assign || function(t) {
1390
+ var I = function() {
1391
+ return I = Object.assign || function(t) {
1392
1392
  for (var n, r = 1, o = arguments.length; r < o; r++) {
1393
1393
  n = arguments[r];
1394
1394
  for (var i in n)
1395
1395
  Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
1396
1396
  }
1397
1397
  return t;
1398
- }, O.apply(this, arguments);
1398
+ }, I.apply(this, arguments);
1399
1399
  };
1400
- var ko = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1401
- function jo(e) {
1400
+ var Vo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1401
+ function zo(e) {
1402
1402
  if (e.length === 0)
1403
1403
  throw new Error("Number skeleton cannot be empty");
1404
- for (var t = e.split(ko).filter(function(d) {
1404
+ for (var t = e.split(Vo).filter(function(d) {
1405
1405
  return d.length > 0;
1406
1406
  }), n = [], r = 0, o = t; r < o.length; r++) {
1407
1407
  var i = o[r], s = i.split("/");
@@ -1416,17 +1416,17 @@ function jo(e) {
1416
1416
  }
1417
1417
  return n;
1418
1418
  }
1419
- function Wo(e) {
1419
+ function Xo(e) {
1420
1420
  return e.replace(/^(.*?)-/, "");
1421
1421
  }
1422
- var sn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zn = /^(@+)?(\+|#+)?[rs]?$/g, Vo = /(\*)(0+)|(#+)(0+)|(0+)/g, Yn = /^(0+)$/;
1423
- function an(e) {
1422
+ var un = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qn = /^(@+)?(\+|#+)?[rs]?$/g, qo = /(\*)(0+)|(#+)(0+)|(0+)/g, Jn = /^(0+)$/;
1423
+ function ln(e) {
1424
1424
  var t = {};
1425
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zn, function(n, r, o) {
1425
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qn, function(n, r, o) {
1426
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)), "";
1427
1427
  }), t;
1428
1428
  }
1429
- function Jn(e) {
1429
+ function Kn(e) {
1430
1430
  switch (e) {
1431
1431
  case "sign-auto":
1432
1432
  return {
@@ -1466,7 +1466,7 @@ function Jn(e) {
1466
1466
  };
1467
1467
  }
1468
1468
  }
1469
- function zo(e) {
1469
+ function Zo(e) {
1470
1470
  var t;
1471
1471
  if (e[0] === "E" && e[1] === "E" ? (t = {
1472
1472
  notation: "engineering"
@@ -1474,17 +1474,17 @@ function zo(e) {
1474
1474
  notation: "scientific"
1475
1475
  }, e = e.slice(1)), t) {
1476
1476
  var n = e.slice(0, 2);
1477
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yn.test(e))
1477
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jn.test(e))
1478
1478
  throw new Error("Malformed concise eng/scientific notation");
1479
1479
  t.minimumIntegerDigits = e.length;
1480
1480
  }
1481
1481
  return t;
1482
1482
  }
1483
- function un(e) {
1484
- var t = {}, n = Jn(e);
1483
+ function cn(e) {
1484
+ var t = {}, n = Kn(e);
1485
1485
  return n || t;
1486
1486
  }
1487
- function Xo(e) {
1487
+ function Yo(e) {
1488
1488
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
1489
1489
  var o = r[n];
1490
1490
  switch (o.stem) {
@@ -1508,7 +1508,7 @@ function Xo(e) {
1508
1508
  continue;
1509
1509
  case "measure-unit":
1510
1510
  case "unit":
1511
- t.style = "unit", t.unit = Wo(o.options[0]);
1511
+ t.style = "unit", t.unit = Xo(o.options[0]);
1512
1512
  continue;
1513
1513
  case "compact-short":
1514
1514
  case "K":
@@ -1519,13 +1519,13 @@ function Xo(e) {
1519
1519
  t.notation = "compact", t.compactDisplay = "long";
1520
1520
  continue;
1521
1521
  case "scientific":
1522
- t = O(O(O({}, t), { notation: "scientific" }), o.options.reduce(function(u, l) {
1523
- return O(O({}, u), un(l));
1522
+ t = I(I(I({}, t), { notation: "scientific" }), o.options.reduce(function(u, l) {
1523
+ return I(I({}, u), cn(l));
1524
1524
  }, {}));
1525
1525
  continue;
1526
1526
  case "engineering":
1527
- t = O(O(O({}, t), { notation: "engineering" }), o.options.reduce(function(u, l) {
1528
- return O(O({}, u), un(l));
1527
+ t = I(I(I({}, t), { notation: "engineering" }), o.options.reduce(function(u, l) {
1528
+ return I(I({}, u), cn(l));
1529
1529
  }, {}));
1530
1530
  continue;
1531
1531
  case "notation-simple":
@@ -1570,45 +1570,45 @@ function Xo(e) {
1570
1570
  case "integer-width":
1571
1571
  if (o.options.length > 1)
1572
1572
  throw new RangeError("integer-width stems only accept a single optional option");
1573
- o.options[0].replace(Vo, function(u, l, c, h, d, p) {
1573
+ o.options[0].replace(qo, function(u, l, c, h, d, m) {
1574
1574
  if (l)
1575
1575
  t.minimumIntegerDigits = c.length;
1576
1576
  else {
1577
1577
  if (h && d)
1578
1578
  throw new Error("We currently do not support maximum integer digits");
1579
- if (p)
1579
+ if (m)
1580
1580
  throw new Error("We currently do not support exact integer digits");
1581
1581
  }
1582
1582
  return "";
1583
1583
  });
1584
1584
  continue;
1585
1585
  }
1586
- if (Yn.test(o.stem)) {
1586
+ if (Jn.test(o.stem)) {
1587
1587
  t.minimumIntegerDigits = o.stem.length;
1588
1588
  continue;
1589
1589
  }
1590
- if (sn.test(o.stem)) {
1590
+ if (un.test(o.stem)) {
1591
1591
  if (o.options.length > 1)
1592
1592
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1593
- o.stem.replace(sn, function(u, l, c, h, d, p) {
1594
- return c === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && p ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1593
+ o.stem.replace(un, function(u, l, c, h, d, m) {
1594
+ return c === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && m ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1595
1595
  });
1596
1596
  var i = o.options[0];
1597
- i === "w" ? t = O(O({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = O(O({}, t), an(i)));
1597
+ i === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = I(I({}, t), ln(i)));
1598
1598
  continue;
1599
1599
  }
1600
- if (Zn.test(o.stem)) {
1601
- t = O(O({}, t), an(o.stem));
1600
+ if (Qn.test(o.stem)) {
1601
+ t = I(I({}, t), ln(o.stem));
1602
1602
  continue;
1603
1603
  }
1604
- var s = Jn(o.stem);
1605
- s && (t = O(O({}, t), s));
1606
- var a = zo(o.stem);
1607
- a && (t = O(O({}, t), a));
1604
+ var s = Kn(o.stem);
1605
+ s && (t = I(I({}, t), s));
1606
+ var a = Zo(o.stem);
1607
+ a && (t = I(I({}, t), a));
1608
1608
  }
1609
1609
  return t;
1610
1610
  }
1611
- var Ge = {
1611
+ var We = {
1612
1612
  "001": [
1613
1613
  "H",
1614
1614
  "h"
@@ -3023,13 +3023,13 @@ var Ge = {
3023
3023
  "h"
3024
3024
  ]
3025
3025
  };
3026
- function qo(e, t) {
3026
+ function Qo(e, t) {
3027
3027
  for (var n = "", r = 0; r < e.length; r++) {
3028
3028
  var o = e.charAt(r);
3029
3029
  if (o === "j") {
3030
3030
  for (var i = 0; r + 1 < e.length && e.charAt(r + 1) === o; )
3031
3031
  i++, r++;
3032
- var s = 1 + (i & 1), a = i < 2 ? 1 : 3 + (i >> 1), u = "a", l = Zo(t);
3032
+ var s = 1 + (i & 1), a = i < 2 ? 1 : 3 + (i >> 1), u = "a", l = Jo(t);
3033
3033
  for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
3034
3034
  n += u;
3035
3035
  for (; s-- > 0; )
@@ -3039,7 +3039,7 @@ function qo(e, t) {
3039
3039
  }
3040
3040
  return n;
3041
3041
  }
3042
- function Zo(e) {
3042
+ function Jo(e) {
3043
3043
  var t = e.hourCycle;
3044
3044
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3045
3045
  e.hourCycles && // @ts-ignore
@@ -3058,23 +3058,23 @@ function Zo(e) {
3058
3058
  }
3059
3059
  var n = e.language, r;
3060
3060
  n !== "root" && (r = e.maximize().region);
3061
- var o = Ge[r || ""] || Ge[n || ""] || Ge["".concat(n, "-001")] || Ge["001"];
3061
+ var o = We[r || ""] || We[n || ""] || We["".concat(n, "-001")] || We["001"];
3062
3062
  return o[0];
3063
3063
  }
3064
- var dt, Yo = new RegExp("^".concat(qn.source, "*")), Jo = new RegExp("".concat(qn.source, "*$"));
3065
- function C(e, t) {
3064
+ var mt, Ko = new RegExp("^".concat(Yn.source, "*")), ei = new RegExp("".concat(Yn.source, "*$"));
3065
+ function A(e, t) {
3066
3066
  return { start: e, end: t };
3067
3067
  }
3068
- var Qo = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ko = !!String.fromCodePoint, ei = !!Object.fromEntries, ti = !!String.prototype.codePointAt, ni = !!String.prototype.trimStart, ri = !!String.prototype.trimEnd, oi = !!Number.isSafeInteger, ii = oi ? Number.isSafeInteger : function(e) {
3068
+ var ti = !!String.prototype.startsWith && "_a".startsWith("a", 1), ni = !!String.fromCodePoint, ri = !!Object.fromEntries, oi = !!String.prototype.codePointAt, ii = !!String.prototype.trimStart, si = !!String.prototype.trimEnd, ai = !!Number.isSafeInteger, ui = ai ? Number.isSafeInteger : function(e) {
3069
3069
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3070
- }, At = !0;
3070
+ }, Pt = !0;
3071
3071
  try {
3072
- var si = Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3073
- At = ((dt = si.exec("a")) === null || dt === void 0 ? void 0 : dt[0]) === "a";
3072
+ var li = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3073
+ Pt = ((mt = li.exec("a")) === null || mt === void 0 ? void 0 : mt[0]) === "a";
3074
3074
  } catch (e) {
3075
- At = !1;
3075
+ Pt = !1;
3076
3076
  }
3077
- var ln = Qo ? (
3077
+ var fn = ti ? (
3078
3078
  // Native
3079
3079
  function(t, n, r) {
3080
3080
  return t.startsWith(n, r);
@@ -3084,7 +3084,7 @@ var ln = Qo ? (
3084
3084
  function(t, n, r) {
3085
3085
  return t.slice(r, r + n.length) === n;
3086
3086
  }
3087
- ), Tt = Ko ? String.fromCodePoint : (
3087
+ ), Mt = ni ? String.fromCodePoint : (
3088
3088
  // IE11
3089
3089
  function() {
3090
3090
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -3096,9 +3096,9 @@ var ln = Qo ? (
3096
3096
  }
3097
3097
  return r;
3098
3098
  }
3099
- ), cn = (
3099
+ ), hn = (
3100
3100
  // native
3101
- ei ? Object.fromEntries : (
3101
+ ri ? Object.fromEntries : (
3102
3102
  // Ponyfill
3103
3103
  function(t) {
3104
3104
  for (var n = {}, r = 0, o = t; r < o.length; r++) {
@@ -3108,7 +3108,7 @@ var ln = Qo ? (
3108
3108
  return n;
3109
3109
  }
3110
3110
  )
3111
- ), Qn = ti ? (
3111
+ ), er = oi ? (
3112
3112
  // Native
3113
3113
  function(t, n) {
3114
3114
  return t.codePointAt(n);
@@ -3122,7 +3122,7 @@ var ln = Qo ? (
3122
3122
  return o < 55296 || o > 56319 || n + 1 === r || (i = t.charCodeAt(n + 1)) < 56320 || i > 57343 ? o : (o - 55296 << 10) + (i - 56320) + 65536;
3123
3123
  }
3124
3124
  }
3125
- ), ai = ni ? (
3125
+ ), ci = ii ? (
3126
3126
  // Native
3127
3127
  function(t) {
3128
3128
  return t.trimStart();
@@ -3130,9 +3130,9 @@ var ln = Qo ? (
3130
3130
  ) : (
3131
3131
  // Ponyfill
3132
3132
  function(t) {
3133
- return t.replace(Yo, "");
3133
+ return t.replace(Ko, "");
3134
3134
  }
3135
- ), ui = ri ? (
3135
+ ), fi = si ? (
3136
3136
  // Native
3137
3137
  function(t) {
3138
3138
  return t.trimEnd();
@@ -3140,32 +3140,32 @@ var ln = Qo ? (
3140
3140
  ) : (
3141
3141
  // Ponyfill
3142
3142
  function(t) {
3143
- return t.replace(Jo, "");
3143
+ return t.replace(ei, "");
3144
3144
  }
3145
3145
  );
3146
- function Kn(e, t) {
3146
+ function tr(e, t) {
3147
3147
  return new RegExp(e, t);
3148
3148
  }
3149
- var Pt;
3150
- if (At) {
3151
- var fn = Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3152
- Pt = function(t, n) {
3149
+ var Ht;
3150
+ if (Pt) {
3151
+ var dn = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3152
+ Ht = function(t, n) {
3153
3153
  var r;
3154
- fn.lastIndex = n;
3155
- var o = fn.exec(t);
3154
+ dn.lastIndex = n;
3155
+ var o = dn.exec(t);
3156
3156
  return (r = o[1]) !== null && r !== void 0 ? r : "";
3157
3157
  };
3158
3158
  } else
3159
- Pt = function(t, n) {
3159
+ Ht = function(t, n) {
3160
3160
  for (var r = []; ; ) {
3161
- var o = Qn(t, n);
3162
- if (o === void 0 || er(o) || hi(o))
3161
+ var o = er(t, n);
3162
+ if (o === void 0 || nr(o) || mi(o))
3163
3163
  break;
3164
3164
  r.push(o), n += o >= 65536 ? 2 : 1;
3165
3165
  }
3166
- return Tt.apply(void 0, r);
3166
+ return Mt.apply(void 0, r);
3167
3167
  };
3168
- var li = (
3168
+ var hi = (
3169
3169
  /** @class */
3170
3170
  function() {
3171
3171
  function e(t, n) {
@@ -3189,14 +3189,14 @@ var li = (
3189
3189
  if (i === 35 && (n === "plural" || n === "selectordinal")) {
3190
3190
  var a = this.clonePosition();
3191
3191
  this.bump(), o.push({
3192
- type: H.pound,
3193
- location: C(a, this.clonePosition())
3192
+ type: O.pound,
3193
+ location: A(a, this.clonePosition())
3194
3194
  });
3195
3195
  } else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
3196
3196
  if (r)
3197
3197
  break;
3198
- return this.error(S.UNMATCHED_CLOSING_TAG, C(this.clonePosition(), this.clonePosition()));
3199
- } else if (i === 60 && !this.ignoreTag && Mt(this.peek() || 0)) {
3198
+ return this.error(C.UNMATCHED_CLOSING_TAG, A(this.clonePosition(), this.clonePosition()));
3199
+ } else if (i === 60 && !this.ignoreTag && Ot(this.peek() || 0)) {
3200
3200
  var s = this.parseTag(t, n);
3201
3201
  if (s.err)
3202
3202
  return s;
@@ -3217,9 +3217,9 @@ var li = (
3217
3217
  if (this.bumpSpace(), this.bumpIf("/>"))
3218
3218
  return {
3219
3219
  val: {
3220
- type: H.literal,
3220
+ type: O.literal,
3221
3221
  value: "<".concat(o, "/>"),
3222
- location: C(r, this.clonePosition())
3222
+ location: A(r, this.clonePosition())
3223
3223
  },
3224
3224
  err: null
3225
3225
  };
@@ -3229,25 +3229,25 @@ var li = (
3229
3229
  return i;
3230
3230
  var s = i.val, a = this.clonePosition();
3231
3231
  if (this.bumpIf("</")) {
3232
- if (this.isEOF() || !Mt(this.char()))
3233
- return this.error(S.INVALID_TAG, C(a, this.clonePosition()));
3232
+ if (this.isEOF() || !Ot(this.char()))
3233
+ return this.error(C.INVALID_TAG, A(a, this.clonePosition()));
3234
3234
  var u = this.clonePosition(), l = this.parseTagName();
3235
- return o !== l ? this.error(S.UNMATCHED_CLOSING_TAG, C(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3235
+ return o !== l ? this.error(C.UNMATCHED_CLOSING_TAG, A(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3236
3236
  val: {
3237
- type: H.tag,
3237
+ type: O.tag,
3238
3238
  value: o,
3239
3239
  children: s,
3240
- location: C(r, this.clonePosition())
3240
+ location: A(r, this.clonePosition())
3241
3241
  },
3242
3242
  err: null
3243
- } : this.error(S.INVALID_TAG, C(a, this.clonePosition())));
3243
+ } : this.error(C.INVALID_TAG, A(a, this.clonePosition())));
3244
3244
  } else
3245
- return this.error(S.UNCLOSED_TAG, C(r, this.clonePosition()));
3245
+ return this.error(C.UNCLOSED_TAG, A(r, this.clonePosition()));
3246
3246
  } else
3247
- return this.error(S.INVALID_TAG, C(r, this.clonePosition()));
3247
+ return this.error(C.INVALID_TAG, A(r, this.clonePosition()));
3248
3248
  }, e.prototype.parseTagName = function() {
3249
3249
  var t = this.offset();
3250
- for (this.bump(); !this.isEOF() && fi(this.char()); )
3250
+ for (this.bump(); !this.isEOF() && pi(this.char()); )
3251
3251
  this.bump();
3252
3252
  return this.message.slice(t, this.offset());
3253
3253
  }, e.prototype.parseLiteral = function(t, n) {
@@ -3269,14 +3269,14 @@ var li = (
3269
3269
  }
3270
3270
  break;
3271
3271
  }
3272
- var u = C(r, this.clonePosition());
3272
+ var u = A(r, this.clonePosition());
3273
3273
  return {
3274
- val: { type: H.literal, value: o, location: u },
3274
+ val: { type: O.literal, value: o, location: u },
3275
3275
  err: null
3276
3276
  };
3277
3277
  }, e.prototype.tryParseLeftAngleBracket = function() {
3278
3278
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3279
- !ci(this.peek() || 0)) ? (this.bump(), "<") : null;
3279
+ !di(this.peek() || 0)) ? (this.bump(), "<") : null;
3280
3280
  }, e.prototype.tryParseQuote = function(t) {
3281
3281
  if (this.isEOF() || this.char() !== 39)
3282
3282
  return null;
@@ -3310,49 +3310,49 @@ var li = (
3310
3310
  n.push(r);
3311
3311
  this.bump();
3312
3312
  }
3313
- return Tt.apply(void 0, n);
3313
+ return Mt.apply(void 0, n);
3314
3314
  }, e.prototype.tryParseUnquoted = function(t, n) {
3315
3315
  if (this.isEOF())
3316
3316
  return null;
3317
3317
  var r = this.char();
3318
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Tt(r));
3318
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Mt(r));
3319
3319
  }, e.prototype.parseArgument = function(t, n) {
3320
3320
  var r = this.clonePosition();
3321
3321
  if (this.bump(), this.bumpSpace(), this.isEOF())
3322
- return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, C(r, this.clonePosition()));
3322
+ return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, A(r, this.clonePosition()));
3323
3323
  if (this.char() === 125)
3324
- return this.bump(), this.error(S.EMPTY_ARGUMENT, C(r, this.clonePosition()));
3324
+ return this.bump(), this.error(C.EMPTY_ARGUMENT, A(r, this.clonePosition()));
3325
3325
  var o = this.parseIdentifierIfPossible().value;
3326
3326
  if (!o)
3327
- return this.error(S.MALFORMED_ARGUMENT, C(r, this.clonePosition()));
3327
+ return this.error(C.MALFORMED_ARGUMENT, A(r, this.clonePosition()));
3328
3328
  if (this.bumpSpace(), this.isEOF())
3329
- return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, C(r, this.clonePosition()));
3329
+ return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, A(r, this.clonePosition()));
3330
3330
  switch (this.char()) {
3331
3331
  case 125:
3332
3332
  return this.bump(), {
3333
3333
  val: {
3334
- type: H.argument,
3334
+ type: O.argument,
3335
3335
  // value does not include the opening and closing braces.
3336
3336
  value: o,
3337
- location: C(r, this.clonePosition())
3337
+ location: A(r, this.clonePosition())
3338
3338
  },
3339
3339
  err: null
3340
3340
  };
3341
3341
  case 44:
3342
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, C(r, this.clonePosition())) : this.parseArgumentOptions(t, n, o, r);
3342
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, A(r, this.clonePosition())) : this.parseArgumentOptions(t, n, o, r);
3343
3343
  default:
3344
- return this.error(S.MALFORMED_ARGUMENT, C(r, this.clonePosition()));
3344
+ return this.error(C.MALFORMED_ARGUMENT, A(r, this.clonePosition()));
3345
3345
  }
3346
3346
  }, e.prototype.parseIdentifierIfPossible = function() {
3347
- var t = this.clonePosition(), n = this.offset(), r = Pt(this.message, n), o = n + r.length;
3347
+ var t = this.clonePosition(), n = this.offset(), r = Ht(this.message, n), o = n + r.length;
3348
3348
  this.bumpTo(o);
3349
- var i = this.clonePosition(), s = C(t, i);
3349
+ var i = this.clonePosition(), s = A(t, i);
3350
3350
  return { value: r, location: s };
3351
3351
  }, e.prototype.parseArgumentOptions = function(t, n, r, o) {
3352
3352
  var i, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
3353
3353
  switch (a) {
3354
3354
  case "":
3355
- return this.error(S.EXPECT_ARGUMENT_TYPE, C(s, u));
3355
+ return this.error(C.EXPECT_ARGUMENT_TYPE, A(s, u));
3356
3356
  case "number":
3357
3357
  case "date":
3358
3358
  case "time": {
@@ -3363,46 +3363,46 @@ var li = (
3363
3363
  var c = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
3364
3364
  if (h.err)
3365
3365
  return h;
3366
- var d = ui(h.val);
3366
+ var d = fi(h.val);
3367
3367
  if (d.length === 0)
3368
- return this.error(S.EXPECT_ARGUMENT_STYLE, C(this.clonePosition(), this.clonePosition()));
3369
- var p = C(c, this.clonePosition());
3370
- l = { style: d, styleLocation: p };
3368
+ return this.error(C.EXPECT_ARGUMENT_STYLE, A(this.clonePosition(), this.clonePosition()));
3369
+ var m = A(c, this.clonePosition());
3370
+ l = { style: d, styleLocation: m };
3371
3371
  }
3372
- var g = this.tryParseArgumentClose(o);
3373
- if (g.err)
3374
- return g;
3375
- var y = C(o, this.clonePosition());
3376
- if (l && ln(l == null ? void 0 : l.style, "::", 0)) {
3377
- var m = ai(l.style.slice(2));
3372
+ var y = this.tryParseArgumentClose(o);
3373
+ if (y.err)
3374
+ return y;
3375
+ var v = A(o, this.clonePosition());
3376
+ if (l && fn(l == null ? void 0 : l.style, "::", 0)) {
3377
+ var x = ci(l.style.slice(2));
3378
3378
  if (a === "number") {
3379
- var h = this.parseNumberSkeletonFromString(m, l.styleLocation);
3379
+ var h = this.parseNumberSkeletonFromString(x, l.styleLocation);
3380
3380
  return h.err ? h : {
3381
- val: { type: H.number, value: r, location: y, style: h.val },
3381
+ val: { type: O.number, value: r, location: v, style: h.val },
3382
3382
  err: null
3383
3383
  };
3384
3384
  } else {
3385
- if (m.length === 0)
3386
- return this.error(S.EXPECT_DATE_TIME_SKELETON, y);
3387
- var B = m;
3388
- this.locale && (B = qo(m, this.locale));
3385
+ if (x.length === 0)
3386
+ return this.error(C.EXPECT_DATE_TIME_SKELETON, v);
3387
+ var _ = x;
3388
+ this.locale && (_ = Qo(x, this.locale));
3389
3389
  var d = {
3390
- type: ve.dateTime,
3391
- pattern: B,
3390
+ type: Se.dateTime,
3391
+ pattern: _,
3392
3392
  location: l.styleLocation,
3393
- parsedOptions: this.shouldParseSkeletons ? Go(B) : {}
3394
- }, v = a === "date" ? H.date : H.time;
3393
+ parsedOptions: this.shouldParseSkeletons ? jo(_) : {}
3394
+ }, b = a === "date" ? O.date : O.time;
3395
3395
  return {
3396
- val: { type: v, value: r, location: y, style: d },
3396
+ val: { type: b, value: r, location: v, style: d },
3397
3397
  err: null
3398
3398
  };
3399
3399
  }
3400
3400
  }
3401
3401
  return {
3402
3402
  val: {
3403
- type: a === "number" ? H.number : a === "date" ? H.date : H.time,
3403
+ type: a === "number" ? O.number : a === "date" ? O.date : O.time,
3404
3404
  value: r,
3405
- location: y,
3405
+ location: v,
3406
3406
  style: (i = l == null ? void 0 : l.style) !== null && i !== void 0 ? i : null
3407
3407
  },
3408
3408
  err: null
@@ -3411,41 +3411,41 @@ var li = (
3411
3411
  case "plural":
3412
3412
  case "selectordinal":
3413
3413
  case "select": {
3414
- var _ = this.clonePosition();
3414
+ var g = this.clonePosition();
3415
3415
  if (this.bumpSpace(), !this.bumpIf(","))
3416
- return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS, C(_, Xe({}, _)));
3416
+ return this.error(C.EXPECT_SELECT_ARGUMENT_OPTIONS, A(g, Ze({}, g)));
3417
3417
  this.bumpSpace();
3418
- var I = this.parseIdentifierIfPossible(), R = 0;
3419
- if (a !== "select" && I.value === "offset") {
3418
+ var E = this.parseIdentifierIfPossible(), U = 0;
3419
+ if (a !== "select" && E.value === "offset") {
3420
3420
  if (!this.bumpIf(":"))
3421
- return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, C(this.clonePosition(), this.clonePosition()));
3421
+ return this.error(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A(this.clonePosition(), this.clonePosition()));
3422
3422
  this.bumpSpace();
3423
- var h = this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3423
+ var h = this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, C.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3424
3424
  if (h.err)
3425
3425
  return h;
3426
- this.bumpSpace(), I = this.parseIdentifierIfPossible(), R = h.val;
3426
+ this.bumpSpace(), E = this.parseIdentifierIfPossible(), U = h.val;
3427
3427
  }
3428
- var X = this.tryParsePluralOrSelectOptions(t, a, n, I);
3428
+ var X = this.tryParsePluralOrSelectOptions(t, a, n, E);
3429
3429
  if (X.err)
3430
3430
  return X;
3431
- var g = this.tryParseArgumentClose(o);
3432
- if (g.err)
3433
- return g;
3434
- var Z = C(o, this.clonePosition());
3431
+ var y = this.tryParseArgumentClose(o);
3432
+ if (y.err)
3433
+ return y;
3434
+ var Z = A(o, this.clonePosition());
3435
3435
  return a === "select" ? {
3436
3436
  val: {
3437
- type: H.select,
3437
+ type: O.select,
3438
3438
  value: r,
3439
- options: cn(X.val),
3439
+ options: hn(X.val),
3440
3440
  location: Z
3441
3441
  },
3442
3442
  err: null
3443
3443
  } : {
3444
3444
  val: {
3445
- type: H.plural,
3445
+ type: O.plural,
3446
3446
  value: r,
3447
- options: cn(X.val),
3448
- offset: R,
3447
+ options: hn(X.val),
3448
+ offset: U,
3449
3449
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3450
3450
  location: Z
3451
3451
  },
@@ -3453,10 +3453,10 @@ var li = (
3453
3453
  };
3454
3454
  }
3455
3455
  default:
3456
- return this.error(S.INVALID_ARGUMENT_TYPE, C(s, u));
3456
+ return this.error(C.INVALID_ARGUMENT_TYPE, A(s, u));
3457
3457
  }
3458
3458
  }, e.prototype.tryParseArgumentClose = function(t) {
3459
- return this.isEOF() || this.char() !== 125 ? this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, C(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3459
+ return this.isEOF() || this.char() !== 125 ? this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, A(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3460
3460
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3461
3461
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
3462
3462
  var r = this.char();
@@ -3465,7 +3465,7 @@ var li = (
3465
3465
  this.bump();
3466
3466
  var o = this.clonePosition();
3467
3467
  if (!this.bumpUntil("'"))
3468
- return this.error(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, C(o, this.clonePosition()));
3468
+ return this.error(C.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, A(o, this.clonePosition()));
3469
3469
  this.bump();
3470
3470
  break;
3471
3471
  }
@@ -3495,16 +3495,16 @@ var li = (
3495
3495
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
3496
3496
  var r = [];
3497
3497
  try {
3498
- r = jo(t);
3498
+ r = zo(t);
3499
3499
  } catch (o) {
3500
- return this.error(S.INVALID_NUMBER_SKELETON, n);
3500
+ return this.error(C.INVALID_NUMBER_SKELETON, n);
3501
3501
  }
3502
3502
  return {
3503
3503
  val: {
3504
- type: ve.number,
3504
+ type: Se.number,
3505
3505
  tokens: r,
3506
3506
  location: n,
3507
- parsedOptions: this.shouldParseSkeletons ? Xo(r) : {}
3507
+ parsedOptions: this.shouldParseSkeletons ? Yo(r) : {}
3508
3508
  },
3509
3509
  err: null
3510
3510
  };
@@ -3513,34 +3513,34 @@ var li = (
3513
3513
  if (l.length === 0) {
3514
3514
  var h = this.clonePosition();
3515
3515
  if (n !== "select" && this.bumpIf("=")) {
3516
- var d = this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR, S.INVALID_PLURAL_ARGUMENT_SELECTOR);
3516
+ var d = this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_SELECTOR, C.INVALID_PLURAL_ARGUMENT_SELECTOR);
3517
3517
  if (d.err)
3518
3518
  return d;
3519
- c = C(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
3519
+ c = A(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
3520
3520
  } else
3521
3521
  break;
3522
3522
  }
3523
3523
  if (u.has(l))
3524
- return this.error(n === "select" ? S.DUPLICATE_SELECT_ARGUMENT_SELECTOR : S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3524
+ return this.error(n === "select" ? C.DUPLICATE_SELECT_ARGUMENT_SELECTOR : C.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3525
3525
  l === "other" && (s = !0), this.bumpSpace();
3526
- var p = this.clonePosition();
3526
+ var m = this.clonePosition();
3527
3527
  if (!this.bumpIf("{"))
3528
- return this.error(n === "select" ? S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, C(this.clonePosition(), this.clonePosition()));
3529
- var g = this.parseMessage(t + 1, n, r);
3530
- if (g.err)
3531
- return g;
3532
- var y = this.tryParseArgumentClose(p);
3528
+ return this.error(n === "select" ? C.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : C.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, A(this.clonePosition(), this.clonePosition()));
3529
+ var y = this.parseMessage(t + 1, n, r);
3533
3530
  if (y.err)
3534
3531
  return y;
3532
+ var v = this.tryParseArgumentClose(m);
3533
+ if (v.err)
3534
+ return v;
3535
3535
  a.push([
3536
3536
  l,
3537
3537
  {
3538
- value: g.val,
3539
- location: C(p, this.clonePosition())
3538
+ value: y.val,
3539
+ location: A(m, this.clonePosition())
3540
3540
  }
3541
3541
  ]), u.add(l), this.bumpSpace(), i = this.parseIdentifierIfPossible(), l = i.value, c = i.location;
3542
3542
  }
3543
- return a.length === 0 ? this.error(n === "select" ? S.EXPECT_SELECT_ARGUMENT_SELECTOR : S.EXPECT_PLURAL_ARGUMENT_SELECTOR, C(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(S.MISSING_OTHER_CLAUSE, C(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3543
+ return a.length === 0 ? this.error(n === "select" ? C.EXPECT_SELECT_ARGUMENT_SELECTOR : C.EXPECT_PLURAL_ARGUMENT_SELECTOR, A(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(C.MISSING_OTHER_CLAUSE, A(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3544
3544
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
3545
3545
  var r = 1, o = this.clonePosition();
3546
3546
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
@@ -3551,8 +3551,8 @@ var li = (
3551
3551
  else
3552
3552
  break;
3553
3553
  }
3554
- var u = C(o, this.clonePosition());
3555
- return i ? (s *= r, ii(s) ? { val: s, err: null } : this.error(n, u)) : this.error(t, u);
3554
+ var u = A(o, this.clonePosition());
3555
+ return i ? (s *= r, ui(s) ? { val: s, err: null } : this.error(n, u)) : this.error(t, u);
3556
3556
  }, e.prototype.offset = function() {
3557
3557
  return this.position.offset;
3558
3558
  }, e.prototype.isEOF = function() {
@@ -3567,7 +3567,7 @@ var li = (
3567
3567
  var t = this.position.offset;
3568
3568
  if (t >= this.message.length)
3569
3569
  throw Error("out of bound");
3570
- var n = Qn(this.message, t);
3570
+ var n = er(this.message, t);
3571
3571
  if (n === void 0)
3572
3572
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3573
3573
  return n;
@@ -3586,7 +3586,7 @@ var li = (
3586
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);
3587
3587
  }
3588
3588
  }, e.prototype.bumpIf = function(t) {
3589
- if (ln(this.message, t, this.offset())) {
3589
+ if (fn(this.message, t, this.offset())) {
3590
3590
  for (var n = 0; n < t.length; n++)
3591
3591
  this.bump();
3592
3592
  return !0;
@@ -3608,7 +3608,7 @@ var li = (
3608
3608
  break;
3609
3609
  }
3610
3610
  }, e.prototype.bumpSpace = function() {
3611
- for (; !this.isEOF() && er(this.char()); )
3611
+ for (; !this.isEOF() && nr(this.char()); )
3612
3612
  this.bump();
3613
3613
  }, e.prototype.peek = function() {
3614
3614
  if (this.isEOF())
@@ -3618,47 +3618,47 @@ var li = (
3618
3618
  }, e;
3619
3619
  }()
3620
3620
  );
3621
- function Mt(e) {
3621
+ function Ot(e) {
3622
3622
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3623
3623
  }
3624
- function ci(e) {
3625
- return Mt(e) || e === 47;
3624
+ function di(e) {
3625
+ return Ot(e) || e === 47;
3626
3626
  }
3627
- function fi(e) {
3627
+ function pi(e) {
3628
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;
3629
3629
  }
3630
- function er(e) {
3630
+ function nr(e) {
3631
3631
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3632
3632
  }
3633
- function hi(e) {
3633
+ function mi(e) {
3634
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;
3635
3635
  }
3636
- function Ht(e) {
3636
+ function It(e) {
3637
3637
  e.forEach(function(t) {
3638
- if (delete t.location, Wn(t) || Vn(t))
3638
+ if (delete t.location, zn(t) || Xn(t))
3639
3639
  for (var n in t.options)
3640
- delete t.options[n].location, Ht(t.options[n].value);
3640
+ delete t.options[n].location, It(t.options[n].value);
3641
3641
  else
3642
- Gn(t) && Xn(t.style) || (kn(t) || jn(t)) && Ct(t.style) ? delete t.style.location : zn(t) && Ht(t.children);
3642
+ Wn(t) && Zn(t.style) || (jn(t) || Vn(t)) && Tt(t.style) ? delete t.style.location : qn(t) && It(t.children);
3643
3643
  });
3644
3644
  }
3645
- function di(e, t) {
3646
- t === void 0 && (t = {}), t = Xe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3647
- var n = new li(e, t).parse();
3645
+ function bi(e, t) {
3646
+ t === void 0 && (t = {}), t = Ze({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3647
+ var n = new hi(e, t).parse();
3648
3648
  if (n.err) {
3649
- var r = SyntaxError(S[n.err.kind]);
3649
+ var r = SyntaxError(C[n.err.kind]);
3650
3650
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3651
3651
  }
3652
- return t != null && t.captureLocation || Ht(n.val), n.val;
3652
+ return t != null && t.captureLocation || It(n.val), n.val;
3653
3653
  }
3654
- var ye;
3654
+ var Ce;
3655
3655
  (function(e) {
3656
3656
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3657
- })(ye || (ye = {}));
3658
- var Ke = (
3657
+ })(Ce || (Ce = {}));
3658
+ var tt = (
3659
3659
  /** @class */
3660
3660
  function(e) {
3661
- Qe(t, e);
3661
+ et(t, e);
3662
3662
  function t(n, r, o) {
3663
3663
  var i = e.call(this, n) || this;
3664
3664
  return i.code = r, i.originalMessage = o, i;
@@ -3667,155 +3667,155 @@ var Ke = (
3667
3667
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3668
3668
  }, t;
3669
3669
  }(Error)
3670
- ), hn = (
3670
+ ), pn = (
3671
3671
  /** @class */
3672
3672
  function(e) {
3673
- Qe(t, e);
3673
+ et(t, e);
3674
3674
  function t(n, r, o, i) {
3675
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(o).join('", "'), '"'), ye.INVALID_VALUE, i) || this;
3675
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(o).join('", "'), '"'), Ce.INVALID_VALUE, i) || this;
3676
3676
  }
3677
3677
  return t;
3678
- }(Ke)
3679
- ), pi = (
3678
+ }(tt)
3679
+ ), gi = (
3680
3680
  /** @class */
3681
3681
  function(e) {
3682
- Qe(t, e);
3682
+ et(t, e);
3683
3683
  function t(n, r, o) {
3684
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ye.INVALID_VALUE, o) || this;
3684
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ce.INVALID_VALUE, o) || this;
3685
3685
  }
3686
3686
  return t;
3687
- }(Ke)
3688
- ), mi = (
3687
+ }(tt)
3688
+ ), vi = (
3689
3689
  /** @class */
3690
3690
  function(e) {
3691
- Qe(t, e);
3691
+ et(t, e);
3692
3692
  function t(n, r) {
3693
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ye.MISSING_VALUE, r) || this;
3693
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ce.MISSING_VALUE, r) || this;
3694
3694
  }
3695
3695
  return t;
3696
- }(Ke)
3697
- ), W;
3696
+ }(tt)
3697
+ ), V;
3698
3698
  (function(e) {
3699
3699
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3700
- })(W || (W = {}));
3701
- function bi(e) {
3700
+ })(V || (V = {}));
3701
+ function yi(e) {
3702
3702
  return e.length < 2 ? e : e.reduce(function(t, n) {
3703
3703
  var r = t[t.length - 1];
3704
- return !r || r.type !== W.literal || n.type !== W.literal ? t.push(n) : r.value += n.value, t;
3704
+ return !r || r.type !== V.literal || n.type !== V.literal ? t.push(n) : r.value += n.value, t;
3705
3705
  }, []);
3706
3706
  }
3707
- function gi(e) {
3707
+ function _i(e) {
3708
3708
  return typeof e == "function";
3709
3709
  }
3710
- function We(e, t, n, r, o, i, s) {
3711
- if (e.length === 1 && on(e[0]))
3710
+ function ze(e, t, n, r, o, i, s) {
3711
+ if (e.length === 1 && an(e[0]))
3712
3712
  return [
3713
3713
  {
3714
- type: W.literal,
3714
+ type: V.literal,
3715
3715
  value: e[0].value
3716
3716
  }
3717
3717
  ];
3718
3718
  for (var a = [], u = 0, l = e; u < l.length; u++) {
3719
3719
  var c = l[u];
3720
- if (on(c)) {
3720
+ if (an(c)) {
3721
3721
  a.push({
3722
- type: W.literal,
3722
+ type: V.literal,
3723
3723
  value: c.value
3724
3724
  });
3725
3725
  continue;
3726
3726
  }
3727
- if (Do(c)) {
3727
+ if (ko(c)) {
3728
3728
  typeof i == "number" && a.push({
3729
- type: W.literal,
3729
+ type: V.literal,
3730
3730
  value: n.getNumberFormat(t).format(i)
3731
3731
  });
3732
3732
  continue;
3733
3733
  }
3734
3734
  var h = c.value;
3735
3735
  if (!(o && h in o))
3736
- throw new mi(h, s);
3736
+ throw new vi(h, s);
3737
3737
  var d = o[h];
3738
- if (Fo(c)) {
3738
+ if (Go(c)) {
3739
3739
  (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
3740
- type: typeof d == "string" ? W.literal : W.object,
3740
+ type: typeof d == "string" ? V.literal : V.object,
3741
3741
  value: d
3742
3742
  });
3743
3743
  continue;
3744
3744
  }
3745
- if (kn(c)) {
3746
- var p = typeof c.style == "string" ? r.date[c.style] : Ct(c.style) ? c.style.parsedOptions : void 0;
3745
+ if (jn(c)) {
3746
+ var m = typeof c.style == "string" ? r.date[c.style] : Tt(c.style) ? c.style.parsedOptions : void 0;
3747
3747
  a.push({
3748
- type: W.literal,
3749
- value: n.getDateTimeFormat(t, p).format(d)
3748
+ type: V.literal,
3749
+ value: n.getDateTimeFormat(t, m).format(d)
3750
3750
  });
3751
3751
  continue;
3752
3752
  }
3753
- if (jn(c)) {
3754
- var p = typeof c.style == "string" ? r.time[c.style] : Ct(c.style) ? c.style.parsedOptions : r.time.medium;
3753
+ if (Vn(c)) {
3754
+ var m = typeof c.style == "string" ? r.time[c.style] : Tt(c.style) ? c.style.parsedOptions : r.time.medium;
3755
3755
  a.push({
3756
- type: W.literal,
3757
- value: n.getDateTimeFormat(t, p).format(d)
3756
+ type: V.literal,
3757
+ value: n.getDateTimeFormat(t, m).format(d)
3758
3758
  });
3759
3759
  continue;
3760
3760
  }
3761
- if (Gn(c)) {
3762
- var p = typeof c.style == "string" ? r.number[c.style] : Xn(c.style) ? c.style.parsedOptions : void 0;
3763
- p && p.scale && (d = d * (p.scale || 1)), a.push({
3764
- type: W.literal,
3765
- value: n.getNumberFormat(t, p).format(d)
3761
+ if (Wn(c)) {
3762
+ var m = typeof c.style == "string" ? r.number[c.style] : Zn(c.style) ? c.style.parsedOptions : void 0;
3763
+ m && m.scale && (d = d * (m.scale || 1)), a.push({
3764
+ type: V.literal,
3765
+ value: n.getNumberFormat(t, m).format(d)
3766
3766
  });
3767
3767
  continue;
3768
3768
  }
3769
- if (zn(c)) {
3770
- var g = c.children, y = c.value, m = o[y];
3771
- if (!gi(m))
3772
- throw new pi(y, "function", s);
3773
- var B = We(g, t, n, r, o, i), v = m(B.map(function(R) {
3774
- return R.value;
3769
+ if (qn(c)) {
3770
+ var y = c.children, v = c.value, x = o[v];
3771
+ if (!_i(x))
3772
+ throw new gi(v, "function", s);
3773
+ var _ = ze(y, t, n, r, o, i), b = x(_.map(function(U) {
3774
+ return U.value;
3775
3775
  }));
3776
- Array.isArray(v) || (v = [v]), a.push.apply(a, v.map(function(R) {
3776
+ Array.isArray(b) || (b = [b]), a.push.apply(a, b.map(function(U) {
3777
3777
  return {
3778
- type: typeof R == "string" ? W.literal : W.object,
3779
- value: R
3778
+ type: typeof U == "string" ? V.literal : V.object,
3779
+ value: U
3780
3780
  };
3781
3781
  }));
3782
3782
  }
3783
- if (Wn(c)) {
3784
- var _ = c.options[d] || c.options.other;
3785
- if (!_)
3786
- throw new hn(c.value, d, Object.keys(c.options), s);
3787
- a.push.apply(a, We(_.value, t, n, r, o));
3783
+ if (zn(c)) {
3784
+ var g = c.options[d] || c.options.other;
3785
+ if (!g)
3786
+ throw new pn(c.value, d, Object.keys(c.options), s);
3787
+ a.push.apply(a, ze(g.value, t, n, r, o));
3788
3788
  continue;
3789
3789
  }
3790
- if (Vn(c)) {
3791
- var _ = c.options["=".concat(d)];
3792
- if (!_) {
3790
+ if (Xn(c)) {
3791
+ var g = c.options["=".concat(d)];
3792
+ if (!g) {
3793
3793
  if (!Intl.PluralRules)
3794
- throw new Ke(`Intl.PluralRules is not available in this environment.
3794
+ throw new tt(`Intl.PluralRules is not available in this environment.
3795
3795
  Try polyfilling it using "@formatjs/intl-pluralrules"
3796
- `, ye.MISSING_INTL_API, s);
3797
- var I = n.getPluralRules(t, { type: c.pluralType }).select(d - (c.offset || 0));
3798
- _ = c.options[I] || c.options.other;
3796
+ `, Ce.MISSING_INTL_API, s);
3797
+ var E = n.getPluralRules(t, { type: c.pluralType }).select(d - (c.offset || 0));
3798
+ g = c.options[E] || c.options.other;
3799
3799
  }
3800
- if (!_)
3801
- throw new hn(c.value, d, Object.keys(c.options), s);
3802
- a.push.apply(a, We(_.value, t, n, r, o, d - (c.offset || 0)));
3800
+ if (!g)
3801
+ throw new pn(c.value, d, Object.keys(c.options), s);
3802
+ a.push.apply(a, ze(g.value, t, n, r, o, d - (c.offset || 0)));
3803
3803
  continue;
3804
3804
  }
3805
3805
  }
3806
- return bi(a);
3806
+ return yi(a);
3807
3807
  }
3808
- function vi(e, t) {
3809
- return t ? te(te(te({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3810
- return n[r] = te(te({}, e[r]), t[r] || {}), n;
3808
+ function Bi(e, t) {
3809
+ return t ? ne(ne(ne({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3810
+ return n[r] = ne(ne({}, e[r]), t[r] || {}), n;
3811
3811
  }, {})) : e;
3812
3812
  }
3813
- function yi(e, t) {
3813
+ function Ei(e, t) {
3814
3814
  return t ? Object.keys(e).reduce(function(n, r) {
3815
- return n[r] = vi(e[r], t[r]), n;
3816
- }, te({}, e)) : e;
3815
+ return n[r] = Bi(e[r], t[r]), n;
3816
+ }, ne({}, e)) : e;
3817
3817
  }
3818
- function pt(e) {
3818
+ function bt(e) {
3819
3819
  return {
3820
3820
  create: function() {
3821
3821
  return {
@@ -3829,39 +3829,39 @@ function pt(e) {
3829
3829
  }
3830
3830
  };
3831
3831
  }
3832
- function _i(e) {
3832
+ function wi(e) {
3833
3833
  return e === void 0 && (e = {
3834
3834
  number: {},
3835
3835
  dateTime: {},
3836
3836
  pluralRules: {}
3837
3837
  }), {
3838
- getNumberFormat: ft(function() {
3838
+ getNumberFormat: dt(function() {
3839
3839
  for (var t, n = [], r = 0; r < arguments.length; r++)
3840
3840
  n[r] = arguments[r];
3841
- return new ((t = Intl.NumberFormat).bind.apply(t, ct([void 0], n, !1)))();
3841
+ return new ((t = Intl.NumberFormat).bind.apply(t, ht([void 0], n, !1)))();
3842
3842
  }, {
3843
- cache: pt(e.number),
3844
- strategy: ht.variadic
3843
+ cache: bt(e.number),
3844
+ strategy: pt.variadic
3845
3845
  }),
3846
- getDateTimeFormat: ft(function() {
3846
+ getDateTimeFormat: dt(function() {
3847
3847
  for (var t, n = [], r = 0; r < arguments.length; r++)
3848
3848
  n[r] = arguments[r];
3849
- return new ((t = Intl.DateTimeFormat).bind.apply(t, ct([void 0], n, !1)))();
3849
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, ht([void 0], n, !1)))();
3850
3850
  }, {
3851
- cache: pt(e.dateTime),
3852
- strategy: ht.variadic
3851
+ cache: bt(e.dateTime),
3852
+ strategy: pt.variadic
3853
3853
  }),
3854
- getPluralRules: ft(function() {
3854
+ getPluralRules: dt(function() {
3855
3855
  for (var t, n = [], r = 0; r < arguments.length; r++)
3856
3856
  n[r] = arguments[r];
3857
- return new ((t = Intl.PluralRules).bind.apply(t, ct([void 0], n, !1)))();
3857
+ return new ((t = Intl.PluralRules).bind.apply(t, ht([void 0], n, !1)))();
3858
3858
  }, {
3859
- cache: pt(e.pluralRules),
3860
- strategy: ht.variadic
3859
+ cache: bt(e.pluralRules),
3860
+ strategy: pt.variadic
3861
3861
  })
3862
3862
  };
3863
3863
  }
3864
- var Bi = (
3864
+ var xi = (
3865
3865
  /** @class */
3866
3866
  function() {
3867
3867
  function e(t, n, r, o) {
@@ -3876,11 +3876,11 @@ var Bi = (
3876
3876
  if (l.length === 1)
3877
3877
  return l[0].value;
3878
3878
  var c = l.reduce(function(h, d) {
3879
- return !h.length || d.type !== W.literal || typeof h[h.length - 1] != "string" ? h.push(d.value) : h[h.length - 1] += d.value, h;
3879
+ return !h.length || d.type !== V.literal || typeof h[h.length - 1] != "string" ? h.push(d.value) : h[h.length - 1] += d.value, h;
3880
3880
  }, []);
3881
3881
  return c.length <= 1 ? c[0] || "" : c;
3882
3882
  }, this.formatToParts = function(u) {
3883
- return We(i.ast, i.locales, i.formatters, i.formats, u, void 0, i.message);
3883
+ return ze(i.ast, i.locales, i.formatters, i.formats, u, void 0, i.message);
3884
3884
  }, this.resolvedOptions = function() {
3885
3885
  var u;
3886
3886
  return {
@@ -3893,13 +3893,13 @@ var Bi = (
3893
3893
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3894
3894
  var s = o || {};
3895
3895
  s.formatters;
3896
- var a = Mo(s, ["formatters"]);
3897
- this.ast = e.__parse(t, te(te({}, a), { locale: this.resolvedLocale }));
3896
+ var a = Io(s, ["formatters"]);
3897
+ this.ast = e.__parse(t, ne(ne({}, a), { locale: this.resolvedLocale }));
3898
3898
  } else
3899
3899
  this.ast = t;
3900
3900
  if (!Array.isArray(this.ast))
3901
3901
  throw new TypeError("A message must be provided as a String or AST.");
3902
- this.formats = yi(e.formats, r), this.formatters = o && o.formatters || _i(this.formatterCache);
3902
+ this.formats = Ei(e.formats, r), this.formatters = o && o.formatters || wi(this.formatterCache);
3903
3903
  }
3904
3904
  return Object.defineProperty(e, "defaultLocale", {
3905
3905
  get: function() {
@@ -3912,7 +3912,7 @@ var Bi = (
3912
3912
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3913
3913
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3914
3914
  }
3915
- }, e.__parse = di, e.formats = {
3915
+ }, e.__parse = bi, e.formats = {
3916
3916
  number: {
3917
3917
  integer: {
3918
3918
  maximumFractionDigits: 0
@@ -3973,7 +3973,7 @@ var Bi = (
3973
3973
  }, e;
3974
3974
  }()
3975
3975
  );
3976
- function Ei(e, t) {
3976
+ function Si(e, t) {
3977
3977
  if (t == null)
3978
3978
  return;
3979
3979
  if (t in e)
@@ -3994,92 +3994,92 @@ function Ei(e, t) {
3994
3994
  r = void 0;
3995
3995
  return r;
3996
3996
  }
3997
- const se = {}, wi = (e, t, n) => n && (t in se || (se[t] = {}), e in se[t] || (se[t][e] = n), n), tr = (e, t) => {
3997
+ const fe = {}, Ci = (e, t, n) => n && (t in fe || (fe[t] = {}), e in fe[t] || (fe[t][e] = n), n), rr = (e, t) => {
3998
3998
  if (t == null)
3999
3999
  return;
4000
- if (t in se && e in se[t])
4001
- return se[t][e];
4002
- const n = et(t);
4000
+ if (t in fe && e in fe[t])
4001
+ return fe[t][e];
4002
+ const n = nt(t);
4003
4003
  for (let r = 0; r < n.length; r++) {
4004
- const o = n[r], i = Si(o, e);
4004
+ const o = n[r], i = Ti(o, e);
4005
4005
  if (i)
4006
- return wi(e, t, i);
4006
+ return Ci(e, t, i);
4007
4007
  }
4008
4008
  };
4009
- let Rt;
4010
- const Ne = Je({});
4011
- function xi(e) {
4012
- return Rt[e] || null;
4009
+ let Ft;
4010
+ const De = Ke({});
4011
+ function Ai(e) {
4012
+ return Ft[e] || null;
4013
4013
  }
4014
- function nr(e) {
4015
- return e in Rt;
4014
+ function or(e) {
4015
+ return e in Ft;
4016
4016
  }
4017
- function Si(e, t) {
4018
- if (!nr(e))
4017
+ function Ti(e, t) {
4018
+ if (!or(e))
4019
4019
  return null;
4020
- const n = xi(e);
4021
- return Ei(n, t);
4020
+ const n = Ai(e);
4021
+ return Si(n, t);
4022
4022
  }
4023
- function Ci(e) {
4023
+ function Pi(e) {
4024
4024
  if (e == null)
4025
4025
  return;
4026
- const t = et(e);
4026
+ const t = nt(e);
4027
4027
  for (let n = 0; n < t.length; n++) {
4028
4028
  const r = t[n];
4029
- if (nr(r))
4029
+ if (or(r))
4030
4030
  return r;
4031
4031
  }
4032
4032
  }
4033
- function rr(e, ...t) {
4034
- delete se[e], Ne.update((n) => (n[e] = Po.all([n[e] || {}, ...t]), n));
4033
+ function ir(e, ...t) {
4034
+ delete fe[e], De.update((n) => (n[e] = Oo.all([n[e] || {}, ...t]), n));
4035
4035
  }
4036
- Be(
4037
- [Ne],
4036
+ Te(
4037
+ [De],
4038
4038
  ([e]) => Object.keys(e)
4039
4039
  );
4040
- Ne.subscribe((e) => Rt = e);
4041
- const Ve = {};
4042
- function Ai(e, t) {
4043
- Ve[e].delete(t), Ve[e].size === 0 && delete Ve[e];
4040
+ De.subscribe((e) => Ft = e);
4041
+ const Xe = {};
4042
+ function Mi(e, t) {
4043
+ Xe[e].delete(t), Xe[e].size === 0 && delete Xe[e];
4044
4044
  }
4045
- function or(e) {
4046
- return Ve[e];
4045
+ function sr(e) {
4046
+ return Xe[e];
4047
4047
  }
4048
- function Ti(e) {
4049
- return et(e).map((t) => {
4050
- const n = or(t);
4048
+ function Hi(e) {
4049
+ return nt(e).map((t) => {
4050
+ const n = sr(t);
4051
4051
  return [t, n ? [...n] : []];
4052
4052
  }).filter(([, t]) => t.length > 0);
4053
4053
  }
4054
- function It(e) {
4055
- return e == null ? !1 : et(e).some(
4054
+ function Nt(e) {
4055
+ return e == null ? !1 : nt(e).some(
4056
4056
  (t) => {
4057
4057
  var n;
4058
- return (n = or(t)) == null ? void 0 : n.size;
4058
+ return (n = sr(t)) == null ? void 0 : n.size;
4059
4059
  }
4060
4060
  );
4061
4061
  }
4062
- function Pi(e, t) {
4062
+ function Oi(e, t) {
4063
4063
  return Promise.all(
4064
- t.map((r) => (Ai(e, r), r().then((o) => o.default || o)))
4065
- ).then((r) => rr(e, ...r));
4066
- }
4067
- const Te = {};
4068
- function ir(e) {
4069
- if (!It(e))
4070
- return e in Te ? Te[e] : Promise.resolve();
4071
- const t = Ti(e);
4072
- return Te[e] = Promise.all(
4064
+ t.map((r) => (Mi(e, r), r().then((o) => o.default || o)))
4065
+ ).then((r) => ir(e, ...r));
4066
+ }
4067
+ const Ie = {};
4068
+ function ar(e) {
4069
+ if (!Nt(e))
4070
+ return e in Ie ? Ie[e] : Promise.resolve();
4071
+ const t = Hi(e);
4072
+ return Ie[e] = Promise.all(
4073
4073
  t.map(
4074
- ([n, r]) => Pi(n, r)
4074
+ ([n, r]) => Oi(n, r)
4075
4075
  )
4076
4076
  ).then(() => {
4077
- if (It(e))
4078
- return ir(e);
4079
- delete Te[e];
4080
- }), Te[e];
4077
+ if (Nt(e))
4078
+ return ar(e);
4079
+ delete Ie[e];
4080
+ }), Ie[e];
4081
4081
  }
4082
- const Mi = {
4082
+ const Ii = {
4083
4083
  number: {
4084
4084
  scientific: { notation: "scientific" },
4085
4085
  engineering: { notation: "engineering" },
@@ -4108,150 +4108,150 @@ const Mi = {
4108
4108
  timeZoneName: "short"
4109
4109
  }
4110
4110
  }
4111
- }, Hi = {
4111
+ }, Ni = {
4112
4112
  fallbackLocale: null,
4113
4113
  loadingDelay: 200,
4114
- formats: Mi,
4114
+ formats: Ii,
4115
4115
  warnOnMissingMessages: !0,
4116
4116
  handleMissingMessage: void 0,
4117
4117
  ignoreTag: !0
4118
- }, Ii = Hi;
4119
- function _e() {
4120
- return Ii;
4118
+ }, Li = Ni;
4119
+ function Ae() {
4120
+ return Li;
4121
4121
  }
4122
- const mt = Je(!1);
4123
- var Oi = Object.defineProperty, Ni = Object.defineProperties, Li = Object.getOwnPropertyDescriptors, dn = Object.getOwnPropertySymbols, Ri = Object.prototype.hasOwnProperty, Ui = Object.prototype.propertyIsEnumerable, pn = (e, t, n) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fi = (e, t) => {
4122
+ const gt = Ke(!1);
4123
+ var Ri = Object.defineProperty, Ui = Object.defineProperties, Fi = Object.getOwnPropertyDescriptors, mn = Object.getOwnPropertySymbols, Di = Object.prototype.hasOwnProperty, $i = Object.prototype.propertyIsEnumerable, bn = (e, t, n) => t in e ? Ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Gi = (e, t) => {
4124
4124
  for (var n in t || (t = {}))
4125
- Ri.call(t, n) && pn(e, n, t[n]);
4126
- if (dn)
4127
- for (var n of dn(t))
4128
- Ui.call(t, n) && pn(e, n, t[n]);
4125
+ Di.call(t, n) && bn(e, n, t[n]);
4126
+ if (mn)
4127
+ for (var n of mn(t))
4128
+ $i.call(t, n) && bn(e, n, t[n]);
4129
4129
  return e;
4130
- }, Di = (e, t) => Ni(e, Li(t));
4131
- let Ot;
4132
- const qe = Je(null);
4133
- function mn(e) {
4130
+ }, ki = (e, t) => Ui(e, Fi(t));
4131
+ let Lt;
4132
+ const Ye = Ke(null);
4133
+ function gn(e) {
4134
4134
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
4135
4135
  }
4136
- function et(e, t = _e().fallbackLocale) {
4137
- const n = mn(e);
4138
- return t ? [.../* @__PURE__ */ new Set([...n, ...mn(t)])] : n;
4136
+ function nt(e, t = Ae().fallbackLocale) {
4137
+ const n = gn(e);
4138
+ return t ? [.../* @__PURE__ */ new Set([...n, ...gn(t)])] : n;
4139
4139
  }
4140
- function ue() {
4141
- return Ot != null ? Ot : void 0;
4140
+ function be() {
4141
+ return Lt != null ? Lt : void 0;
4142
4142
  }
4143
- qe.subscribe((e) => {
4144
- Ot = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4143
+ Ye.subscribe((e) => {
4144
+ Lt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4145
4145
  });
4146
- const $i = (e) => {
4147
- if (e && Ci(e) && It(e)) {
4148
- const { loadingDelay: t } = _e();
4146
+ const Wi = (e) => {
4147
+ if (e && Pi(e) && Nt(e)) {
4148
+ const { loadingDelay: t } = Ae();
4149
4149
  let n;
4150
- return typeof window != "undefined" && ue() != null && t ? n = window.setTimeout(
4151
- () => mt.set(!0),
4150
+ return typeof window != "undefined" && be() != null && t ? n = window.setTimeout(
4151
+ () => gt.set(!0),
4152
4152
  t
4153
- ) : mt.set(!0), ir(e).then(() => {
4154
- qe.set(e);
4153
+ ) : gt.set(!0), ar(e).then(() => {
4154
+ Ye.set(e);
4155
4155
  }).finally(() => {
4156
- clearTimeout(n), mt.set(!1);
4156
+ clearTimeout(n), gt.set(!1);
4157
4157
  });
4158
4158
  }
4159
- return qe.set(e);
4160
- }, Ee = Di(Fi({}, qe), {
4161
- set: $i
4162
- }), tt = (e) => {
4159
+ return Ye.set(e);
4160
+ }, Pe = ki(Gi({}, Ye), {
4161
+ set: Wi
4162
+ }), rt = (e) => {
4163
4163
  const t = /* @__PURE__ */ Object.create(null);
4164
4164
  return (r) => {
4165
4165
  const o = JSON.stringify(r);
4166
4166
  return o in t ? t[o] : t[o] = e(r);
4167
4167
  };
4168
4168
  };
4169
- var Gi = Object.defineProperty, Ze = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, bn = (e, t, n) => t in e ? Gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ut = (e, t) => {
4169
+ var ji = Object.defineProperty, Qe = Object.getOwnPropertySymbols, ur = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, vn = (e, t, n) => t in e ? ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Dt = (e, t) => {
4170
4170
  for (var n in t || (t = {}))
4171
- sr.call(t, n) && bn(e, n, t[n]);
4172
- if (Ze)
4173
- for (var n of Ze(t))
4174
- ar.call(t, n) && bn(e, n, t[n]);
4171
+ ur.call(t, n) && vn(e, n, t[n]);
4172
+ if (Qe)
4173
+ for (var n of Qe(t))
4174
+ lr.call(t, n) && vn(e, n, t[n]);
4175
4175
  return e;
4176
- }, we = (e, t) => {
4176
+ }, Me = (e, t) => {
4177
4177
  var n = {};
4178
4178
  for (var r in e)
4179
- sr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
4180
- if (e != null && Ze)
4181
- for (var r of Ze(e))
4182
- t.indexOf(r) < 0 && ar.call(e, r) && (n[r] = e[r]);
4179
+ ur.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
4180
+ if (e != null && Qe)
4181
+ for (var r of Qe(e))
4182
+ t.indexOf(r) < 0 && lr.call(e, r) && (n[r] = e[r]);
4183
4183
  return n;
4184
4184
  };
4185
- const Ie = (e, t) => {
4186
- const { formats: n } = _e();
4185
+ const Ue = (e, t) => {
4186
+ const { formats: n } = Ae();
4187
4187
  if (e in n && t in n[e])
4188
4188
  return n[e][t];
4189
4189
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4190
- }, ki = tt(
4190
+ }, Vi = rt(
4191
4191
  (e) => {
4192
- var t = e, { locale: n, format: r } = t, o = we(t, ["locale", "format"]);
4192
+ var t = e, { locale: n, format: r } = t, o = Me(t, ["locale", "format"]);
4193
4193
  if (n == null)
4194
4194
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4195
- return r && (o = Ie("number", r)), new Intl.NumberFormat(n, o);
4195
+ return r && (o = Ue("number", r)), new Intl.NumberFormat(n, o);
4196
4196
  }
4197
- ), ji = tt(
4197
+ ), zi = rt(
4198
4198
  (e) => {
4199
- var t = e, { locale: n, format: r } = t, o = we(t, ["locale", "format"]);
4199
+ var t = e, { locale: n, format: r } = t, o = Me(t, ["locale", "format"]);
4200
4200
  if (n == null)
4201
4201
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4202
- return r ? o = Ie("date", r) : Object.keys(o).length === 0 && (o = Ie("date", "short")), new Intl.DateTimeFormat(n, o);
4202
+ return r ? o = Ue("date", r) : Object.keys(o).length === 0 && (o = Ue("date", "short")), new Intl.DateTimeFormat(n, o);
4203
4203
  }
4204
- ), Wi = tt(
4204
+ ), Xi = rt(
4205
4205
  (e) => {
4206
- var t = e, { locale: n, format: r } = t, o = we(t, ["locale", "format"]);
4206
+ var t = e, { locale: n, format: r } = t, o = Me(t, ["locale", "format"]);
4207
4207
  if (n == null)
4208
4208
  throw new Error(
4209
4209
  '[svelte-i18n] A "locale" must be set to format time values'
4210
4210
  );
4211
- return r ? o = Ie("time", r) : Object.keys(o).length === 0 && (o = Ie("time", "short")), new Intl.DateTimeFormat(n, o);
4211
+ return r ? o = Ue("time", r) : Object.keys(o).length === 0 && (o = Ue("time", "short")), new Intl.DateTimeFormat(n, o);
4212
4212
  }
4213
- ), Vi = (e = {}) => {
4213
+ ), qi = (e = {}) => {
4214
4214
  var t = e, {
4215
- locale: n = ue()
4216
- } = t, r = we(t, [
4215
+ locale: n = be()
4216
+ } = t, r = Me(t, [
4217
4217
  "locale"
4218
4218
  ]);
4219
- return ki(Ut({ locale: n }, r));
4220
- }, zi = (e = {}) => {
4219
+ return Vi(Dt({ locale: n }, r));
4220
+ }, Zi = (e = {}) => {
4221
4221
  var t = e, {
4222
- locale: n = ue()
4223
- } = t, r = we(t, [
4222
+ locale: n = be()
4223
+ } = t, r = Me(t, [
4224
4224
  "locale"
4225
4225
  ]);
4226
- return ji(Ut({ locale: n }, r));
4227
- }, Xi = (e = {}) => {
4226
+ return zi(Dt({ locale: n }, r));
4227
+ }, Yi = (e = {}) => {
4228
4228
  var t = e, {
4229
- locale: n = ue()
4230
- } = t, r = we(t, [
4229
+ locale: n = be()
4230
+ } = t, r = Me(t, [
4231
4231
  "locale"
4232
4232
  ]);
4233
- return Wi(Ut({ locale: n }, r));
4234
- }, qi = tt(
4233
+ return Xi(Dt({ locale: n }, r));
4234
+ }, Qi = rt(
4235
4235
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4236
- (e, t = ue()) => new Bi(e, t, _e().formats, {
4237
- ignoreTag: _e().ignoreTag
4236
+ (e, t = be()) => new xi(e, t, Ae().formats, {
4237
+ ignoreTag: Ae().ignoreTag
4238
4238
  })
4239
- ), Zi = (e, t = {}) => {
4239
+ ), Ji = (e, t = {}) => {
4240
4240
  var n, r, o, i;
4241
4241
  let s = t;
4242
4242
  typeof e == "object" && (s = e, e = s.id);
4243
4243
  const {
4244
4244
  values: a,
4245
- locale: u = ue(),
4245
+ locale: u = be(),
4246
4246
  default: l
4247
4247
  } = s;
4248
4248
  if (u == null)
4249
4249
  throw new Error(
4250
4250
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4251
4251
  );
4252
- let c = tr(e, u);
4252
+ let c = rr(e, u);
4253
4253
  if (!c)
4254
- c = (i = (o = (r = (n = _e()).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 = Ae()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: l })) != null ? o : l) != null ? i : e;
4255
4255
  else if (typeof c != "string")
4256
4256
  return console.warn(
4257
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.`
@@ -4260,7 +4260,7 @@ const Ie = (e, t) => {
4260
4260
  return c;
4261
4261
  let h = c;
4262
4262
  try {
4263
- h = qi(c, u).format(a);
4263
+ h = Qi(c, u).format(a);
4264
4264
  } catch (d) {
4265
4265
  d instanceof Error && console.warn(
4266
4266
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4268,21 +4268,21 @@ const Ie = (e, t) => {
4268
4268
  );
4269
4269
  }
4270
4270
  return h;
4271
- }, Yi = (e, t) => Xi(t).format(e), Ji = (e, t) => zi(t).format(e), Qi = (e, t) => Vi(t).format(e), Ki = (e, t = ue()) => tr(e, t), es = Be([Ee, Ne], () => Zi);
4272
- Be([Ee], () => Yi);
4273
- Be([Ee], () => Ji);
4274
- Be([Ee], () => Qi);
4275
- Be([Ee, Ne], () => Ki);
4276
- window.emWidgets = { topic: fo };
4277
- const ts = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4271
+ }, Ki = (e, t) => Yi(t).format(e), es = (e, t) => Zi(t).format(e), ts = (e, t) => qi(t).format(e), ns = (e, t = be()) => rr(e, t), rs = Te([Pe, De], () => Ji);
4272
+ Te([Pe], () => Ki);
4273
+ Te([Pe], () => es);
4274
+ Te([Pe], () => ts);
4275
+ Te([Pe, De], () => ns);
4276
+ window.emWidgets = { topic: mo };
4277
+ const os = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4278
4278
  String(Number.MAX_SAFE_INTEGER).length;
4279
- function gn(e, t) {
4280
- rr(e, t);
4279
+ function yn(e, t) {
4280
+ ir(e, t);
4281
4281
  }
4282
- function ns(e) {
4283
- Ee.set(e);
4282
+ function is(e) {
4283
+ Pe.set(e);
4284
4284
  }
4285
- const vn = {
4285
+ const _n = {
4286
4286
  en: {
4287
4287
  titleBonuses: "Active Bonuses",
4288
4288
  bonusCode: "Do you have a bonus code?",
@@ -4415,14 +4415,14 @@ const vn = {
4415
4415
  bonusClaimSuccessMessage: "Bonus claimed!",
4416
4416
  bonusClaimErrorMessage: "Invalid bonus"
4417
4417
  }
4418
- }, me = "__WIDGET_GLOBAL_STYLE_CACHE__";
4419
- function rs(e, t) {
4418
+ }, Ee = "__WIDGET_GLOBAL_STYLE_CACHE__";
4419
+ function ss(e, t) {
4420
4420
  if (e) {
4421
4421
  const n = document.createElement("style");
4422
4422
  n.innerHTML = t, e.appendChild(n);
4423
4423
  }
4424
4424
  }
4425
- function os(e, t) {
4425
+ function as(e, t) {
4426
4426
  if (!e || !t)
4427
4427
  return;
4428
4428
  const n = new URL(t);
@@ -4433,32 +4433,32 @@ function os(e, t) {
4433
4433
  console.error("There was an error while trying to load client styling from URL", r);
4434
4434
  });
4435
4435
  }
4436
- function is(e, t, n, r = !1) {
4436
+ function us(e, t, n, r = !1) {
4437
4437
  if (!window.emMessageBus)
4438
4438
  return;
4439
4439
  if (!("adoptedStyleSheets" in Document.prototype) || !r)
4440
- return n = ss(e, t), n;
4441
- window[me] || (window[me] = {}), n = as(e, t);
4440
+ return n = ls(e, t), n;
4441
+ window[Ee] || (window[Ee] = {}), n = cs(e, t);
4442
4442
  const i = n.unsubscribe.bind(n), s = () => {
4443
- if (window[me][t]) {
4444
- const a = window[me][t];
4445
- a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[me][t];
4443
+ if (window[Ee][t]) {
4444
+ const a = window[Ee][t];
4445
+ a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[Ee][t];
4446
4446
  }
4447
4447
  i();
4448
4448
  };
4449
4449
  return n.unsubscribe = s, n;
4450
4450
  }
4451
- function ss(e, t) {
4451
+ function ls(e, t) {
4452
4452
  const n = document.createElement("style");
4453
4453
  return window.emMessageBus.subscribe(t, (r) => {
4454
4454
  e && (n.innerHTML = r, e.appendChild(n));
4455
4455
  });
4456
4456
  }
4457
- function as(e, t) {
4457
+ function cs(e, t) {
4458
4458
  return window.emMessageBus.subscribe(t, (n) => {
4459
4459
  if (!e)
4460
4460
  return;
4461
- const r = e.getRootNode(), o = window[me];
4461
+ const r = e.getRootNode(), o = window[Ee];
4462
4462
  let i = o[t] && o[t].sheet;
4463
4463
  i ? o[t].refCount = o[t].refCount + 1 : (i = new CSSStyleSheet(), i.replaceSync(n), o[t] = {
4464
4464
  sheet: i,
@@ -4468,17 +4468,19 @@ function as(e, t) {
4468
4468
  s.includes(i) || (r.adoptedStyleSheets = [...s, i]);
4469
4469
  });
4470
4470
  }
4471
- const Ft = {
4471
+ const $t = {
4472
4472
  CLAIM: "/v1/bonus/claim",
4473
4473
  FORFEIT: "/v1/bonus/forfeit",
4474
4474
  GRANTED: "/v1/bonus/granted"
4475
- }, yn = {
4475
+ }, Bn = {
4476
4476
  TYPES: "standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",
4477
4477
  STATUS_ACTIVE: "active",
4478
4478
  STATUS_COMPLETED: "completed,released,forfeited,expired,closed"
4479
+ }, fs = {
4480
+ ODDS_BOOST: "oddsBoost"
4479
4481
  };
4480
- function Dt(n) {
4481
- return re(this, arguments, function* (e, t = {}) {
4482
+ function Gt(n) {
4483
+ return oe(this, arguments, function* (e, t = {}) {
4482
4484
  const r = typeof e == "string" ? e : e.toString(), o = yield fetch(r, t);
4483
4485
  let i = null;
4484
4486
  try {
@@ -4493,13 +4495,13 @@ function Dt(n) {
4493
4495
  errorMessage: typeof s.errorMessage == "string" && s.errorMessage || o.statusText || String(o.status),
4494
4496
  errorCode: typeof s.errorCode == "number" ? s.errorCode : void 0
4495
4497
  };
4496
- return Ae(Ae({}, s), a);
4498
+ return Oe(Oe({}, s), a);
4497
4499
  });
4498
4500
  }
4499
- function us(e, t, n) {
4500
- return re(this, null, function* () {
4501
- const r = `${e}${Ft.CLAIM}`;
4502
- return Dt(r, {
4501
+ function hs(e, t, n) {
4502
+ return oe(this, null, function* () {
4503
+ const r = `${e}${$t.CLAIM}`;
4504
+ return Gt(r, {
4503
4505
  method: "PUT",
4504
4506
  headers: {
4505
4507
  "x-SessionId": t,
@@ -4510,10 +4512,10 @@ function us(e, t, n) {
4510
4512
  });
4511
4513
  });
4512
4514
  }
4513
- function ls(e, t, n) {
4514
- return re(this, null, function* () {
4515
- const r = new URL(`${e}${Ft.FORFEIT}`);
4516
- return r.searchParams.append("bonusWalletID", n.bonusWalletID), Dt(r, {
4515
+ function ds(e, t, n) {
4516
+ return oe(this, null, function* () {
4517
+ const r = new URL(`${e}${$t.FORFEIT}`);
4518
+ return r.searchParams.append("bonusWalletID", n.bonusWalletID), Gt(r, {
4517
4519
  method: "DELETE",
4518
4520
  headers: {
4519
4521
  "x-SessionId": t,
@@ -4522,14 +4524,14 @@ function ls(e, t, n) {
4522
4524
  });
4523
4525
  });
4524
4526
  }
4525
- function cs(e, t, n) {
4526
- return re(this, null, function* () {
4527
- const r = new URL(`${e}${Ft.GRANTED}`);
4527
+ function ps(e, t, n) {
4528
+ return oe(this, null, function* () {
4529
+ const r = new URL(`${e}${$t.GRANTED}`);
4528
4530
  Object.entries(n).forEach(([i, s]) => {
4529
4531
  s != null && r.searchParams.append(i, String(s));
4530
4532
  });
4531
4533
  const o = {};
4532
- return t && (o["x-SessionId"] = t), Dt(r, {
4534
+ return t && (o["x-SessionId"] = t), Gt(r, {
4533
4535
  headers: o
4534
4536
  });
4535
4537
  });
@@ -4546,88 +4548,88 @@ if (typeof window != "undefined") {
4546
4548
  }
4547
4549
  };
4548
4550
  };
4549
- customElements.define = e(customElements.define), import("./PlayerBonusCard-RDNaFwIm.js").then(({ default: t }) => {
4551
+ customElements.define = e(customElements.define), import("./PlayerBonusCard-CNH5yPtj.js").then(({ default: t }) => {
4550
4552
  !customElements.get("player-bonus-card") && customElements.define("player-bonus-card", t.element);
4551
4553
  });
4552
4554
  }
4553
- function fs(e) {
4554
- Ir(e, "svelte-2jgm79", '.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,.BonusesPaginationWrapper .BonusesPage{all:unset;box-sizing:border-box;cursor:pointer}.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;cursor:default}.ModalLoader{width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
4555
+ function ms(e) {
4556
+ Lr(e, "svelte-2jgm79", '.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,.BonusesPaginationWrapper .BonusesPage{all:unset;box-sizing:border-box;cursor:pointer}.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;cursor:default}.ModalLoader{width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
4555
4557
  }
4556
- function _n(e, t, n) {
4558
+ function En(e, t, n) {
4557
4559
  const r = e.slice();
4558
- return r[56] = t[n], r[58] = n, r;
4560
+ return r[57] = t[n], r[59] = n, r;
4559
4561
  }
4560
- function Bn(e, t, n) {
4562
+ function wn(e, t, n) {
4561
4563
  const r = e.slice();
4562
- return r[59] = t[n], r;
4564
+ return r[60] = t[n], r;
4563
4565
  }
4564
- function hs(e) {
4566
+ function bs(e) {
4565
4567
  let t, n, r, o, i, s, a, u, l, c, h = (
4566
4568
  /*$_*/
4567
4569
  e[21]("titleBonuses") + ""
4568
- ), d, p, g;
4570
+ ), d, m, y;
4569
4571
  return {
4570
4572
  c() {
4571
- t = A("div"), n = fe("svg"), r = fe("defs"), o = fe("style"), i = $(`.aaa {
4573
+ t = T("div"), n = ve("svg"), r = ve("defs"), o = ve("style"), i = G(`.aaa {
4572
4574
  fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
4573
4575
  }
4574
- `), s = fe("g"), a = fe("g"), u = fe("path"), l = V(), c = A("h2"), d = $(h), x(u, "class", "aaa"), x(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), x(u, "transform", "translate(15 15) rotate(180)"), x(a, "transform", "translate(20 158)"), x(s, "transform", "translate(-20 -158)"), x(n, "xmlns", "http://www.w3.org/2000/svg"), x(n, "width", "15"), x(n, "height", "15"), x(n, "viewBox", "0 0 15 15"), x(c, "class", "ActiveBonusesTitleMobile"), x(t, "class", "MenuReturnButton");
4576
+ `), s = ve("g"), a = ve("g"), u = ve("path"), l = z(), c = T("h2"), d = G(h), S(u, "class", "aaa"), S(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), S(u, "transform", "translate(15 15) rotate(180)"), S(a, "transform", "translate(20 158)"), S(s, "transform", "translate(-20 -158)"), S(n, "xmlns", "http://www.w3.org/2000/svg"), S(n, "width", "15"), S(n, "height", "15"), S(n, "viewBox", "0 0 15 15"), S(c, "class", "ActiveBonusesTitleMobile"), S(t, "class", "MenuReturnButton");
4575
4577
  },
4576
- m(y, m) {
4577
- j(y, t, m), E(t, n), E(n, r), E(r, o), E(o, i), E(n, s), E(s, a), E(a, u), E(t, l), E(t, c), E(c, d), p || (g = Q(
4578
+ m(v, x) {
4579
+ j(v, t, x), B(t, n), B(n, r), B(r, o), B(o, i), B(n, s), B(s, a), B(a, u), B(t, l), B(t, c), B(c, d), m || (y = K(
4578
4580
  t,
4579
4581
  "click",
4580
4582
  /*click_handler*/
4581
4583
  e[36]
4582
- ), p = !0);
4584
+ ), m = !0);
4583
4585
  },
4584
- p(y, m) {
4585
- m[0] & /*$_*/
4586
+ p(v, x) {
4587
+ x[0] & /*$_*/
4586
4588
  2097152 && h !== (h = /*$_*/
4587
- y[21]("titleBonuses") + "") && oe(d, h);
4589
+ v[21]("titleBonuses") + "") && ie(d, h);
4588
4590
  },
4589
- d(y) {
4590
- y && G(t), p = !1, g();
4591
+ d(v) {
4592
+ v && k(t), m = !1, y();
4591
4593
  }
4592
4594
  };
4593
4595
  }
4594
- function En(e) {
4596
+ function xn(e) {
4595
4597
  let t, n = (
4596
4598
  /*$_*/
4597
4599
  e[21]("invalidBonusCode") + ""
4598
4600
  ), r;
4599
4601
  return {
4600
4602
  c() {
4601
- t = A("p"), r = $(n), x(t, "class", "InvalidBonusCodeMessage");
4603
+ t = T("p"), r = G(n), S(t, "class", "InvalidBonusCodeMessage");
4602
4604
  },
4603
4605
  m(o, i) {
4604
- j(o, t, i), E(t, r);
4606
+ j(o, t, i), B(t, r);
4605
4607
  },
4606
4608
  p(o, i) {
4607
4609
  i[0] & /*$_*/
4608
4610
  2097152 && n !== (n = /*$_*/
4609
- o[21]("invalidBonusCode") + "") && oe(r, n);
4611
+ o[21]("invalidBonusCode") + "") && ie(r, n);
4610
4612
  },
4611
4613
  d(o) {
4612
- o && G(t);
4614
+ o && k(t);
4613
4615
  }
4614
4616
  };
4615
4617
  }
4616
- function ds(e) {
4618
+ function gs(e) {
4617
4619
  let t, n, r;
4618
4620
  function o(u, l) {
4619
4621
  return (
4620
4622
  /*activeBonusesList*/
4621
- u[19].length === 0 ? bs : ms
4623
+ u[19].length === 0 ? _s : ys
4622
4624
  );
4623
4625
  }
4624
4626
  let i = o(e), s = i(e), a = (
4625
4627
  /*activeBonusesList*/
4626
- e[19].length !== 0 && xn(e)
4628
+ e[19].length !== 0 && Cn(e)
4627
4629
  );
4628
4630
  return {
4629
4631
  c() {
4630
- t = A("div"), s.c(), n = V(), a && a.c(), r = Lt(), x(t, "class", "ActiveBonusesGrid " + /*isMobile*/
4632
+ t = T("div"), s.c(), n = z(), a && a.c(), r = Ut(), S(t, "class", "ActiveBonusesGrid " + /*isMobile*/
4631
4633
  (e[22] ? "ActiveBonusesGridMobile" : ""));
4632
4634
  },
4633
4635
  m(u, l) {
@@ -4635,40 +4637,40 @@ function ds(e) {
4635
4637
  },
4636
4638
  p(u, l) {
4637
4639
  i === (i = o(u)) && s ? s.p(u, l) : (s.d(1), s = i(u), s && (s.c(), s.m(t, null))), /*activeBonusesList*/
4638
- u[19].length !== 0 ? a ? a.p(u, l) : (a = xn(u), a.c(), a.m(r.parentNode, r)) : a && (a.d(1), a = null);
4640
+ u[19].length !== 0 ? a ? a.p(u, l) : (a = Cn(u), a.c(), a.m(r.parentNode, r)) : a && (a.d(1), a = null);
4639
4641
  },
4640
4642
  d(u) {
4641
- u && (G(t), G(n), G(r)), s.d(), a && a.d(u);
4643
+ u && (k(t), k(n), k(r)), s.d(), a && a.d(u);
4642
4644
  }
4643
4645
  };
4644
4646
  }
4645
- function ps(e) {
4647
+ function vs(e) {
4646
4648
  let t;
4647
4649
  return {
4648
4650
  c() {
4649
- t = A("div"), x(t, "class", "ModalLoader"), x(t, "part", "ModalLoader");
4651
+ t = T("div"), S(t, "class", "ModalLoader"), S(t, "part", "ModalLoader");
4650
4652
  },
4651
4653
  m(n, r) {
4652
4654
  j(n, t, r);
4653
4655
  },
4654
- p: J,
4656
+ p: Q,
4655
4657
  d(n) {
4656
- n && G(t);
4658
+ n && k(t);
4657
4659
  }
4658
4660
  };
4659
4661
  }
4660
- function ms(e) {
4661
- let t, n = ze(
4662
+ function ys(e) {
4663
+ let t, n = qe(
4662
4664
  /*activeBonusesList*/
4663
4665
  e[19]
4664
4666
  ), r = [];
4665
4667
  for (let o = 0; o < n.length; o += 1)
4666
- r[o] = wn(Bn(e, n, o));
4668
+ r[o] = Sn(wn(e, n, o));
4667
4669
  return {
4668
4670
  c() {
4669
4671
  for (let o = 0; o < r.length; o += 1)
4670
4672
  r[o].c();
4671
- t = Lt();
4673
+ t = Ut();
4672
4674
  },
4673
4675
  m(o, i) {
4674
4676
  for (let s = 0; s < r.length; s += 1)
@@ -4678,14 +4680,14 @@ function ms(e) {
4678
4680
  p(o, i) {
4679
4681
  if (i[0] & /*activeBonusesList, lang, dateformat, clientstyling, clientstylingurl, mbsource, translationurl, currencylocale, ishiddenwageringbonus, filterbonusbalance*/
4680
4682
  524799) {
4681
- n = ze(
4683
+ n = qe(
4682
4684
  /*activeBonusesList*/
4683
4685
  o[19]
4684
4686
  );
4685
4687
  let s;
4686
4688
  for (s = 0; s < n.length; s += 1) {
4687
- const a = Bn(o, n, s);
4688
- r[s] ? r[s].p(a, i) : (r[s] = wn(a), r[s].c(), r[s].m(t.parentNode, t));
4689
+ const a = wn(o, n, s);
4690
+ r[s] ? r[s].p(a, i) : (r[s] = Sn(a), r[s].c(), r[s].m(t.parentNode, t));
4689
4691
  }
4690
4692
  for (; s < r.length; s += 1)
4691
4693
  r[s].d(1);
@@ -4693,54 +4695,55 @@ function ms(e) {
4693
4695
  }
4694
4696
  },
4695
4697
  d(o) {
4696
- o && G(t), Mn(r, o);
4698
+ o && k(t), On(r, o);
4697
4699
  }
4698
4700
  };
4699
4701
  }
4700
- function bs(e) {
4702
+ function _s(e) {
4701
4703
  let t, n = (
4702
4704
  /*$_*/
4703
4705
  e[21]("noActiveBonuses") + ""
4704
4706
  ), r;
4705
4707
  return {
4706
4708
  c() {
4707
- t = A("p"), r = $(n);
4709
+ t = T("p"), r = G(n);
4708
4710
  },
4709
4711
  m(o, i) {
4710
- j(o, t, i), E(t, r);
4712
+ j(o, t, i), B(t, r);
4711
4713
  },
4712
4714
  p(o, i) {
4713
4715
  i[0] & /*$_*/
4714
4716
  2097152 && n !== (n = /*$_*/
4715
- o[21]("noActiveBonuses") + "") && oe(r, n);
4717
+ o[21]("noActiveBonuses") + "") && ie(r, n);
4716
4718
  },
4717
4719
  d(o) {
4718
- o && G(t);
4720
+ o && k(t);
4719
4721
  }
4720
4722
  };
4721
4723
  }
4722
- function gs(e) {
4723
- let t, n, r, o, i, s, a, u, l, c, h, d, p, g, y, m, B;
4724
+ function Bs(e) {
4725
+ let t, n, r, o, i, s, a, u, l, c, h, d, m, y, v, x, _, b;
4724
4726
  return {
4725
4727
  c() {
4726
- t = A("player-bonus-card"), f(t, "termsandconditionsdescription", n = /*activeBonus*/
4727
- e[59].termsandconditionsdescription), f(t, "termsandconditionsurl", r = /*activeBonus*/
4728
- e[59].termsandconditionsurl), f(t, "termsandconditionsasset", o = /*activeBonus*/
4729
- e[59].termsandconditionsasset), f(t, "endpoint", i = /*activeBonus*/
4730
- e[59].endpoint), f(t, "playerid", s = /*activeBonus*/
4731
- e[59].playerid), f(t, "session", a = /*activeBonus*/
4732
- e[59].session), f(t, "bonuswalletid", u = /*activeBonus*/
4733
- e[59].walletId), f(t, "bonusdate", l = /*activeBonus*/
4734
- e[59].granted), f(t, "bonusexpirationdate", c = /*activeBonus*/
4735
- e[59].expiryTime), f(t, "bonusstatus", h = /*activeBonus*/
4736
- e[59].status), f(t, "bonusname", d = /*activeBonus*/
4737
- e[59].name), f(t, "bonustype", p = /*activeBonus*/
4738
- e[59].type), f(t, "bonusamount", g = /*activeBonus*/
4739
- e[59].extension.grantedPlayerCurrencyAmount), f(t, "bonuswageringamount", y = `${/*activeBonus*/
4740
- e[59].fulfilledWR} / ${/*activeBonus*/
4741
- e[59].originalWageringRequirement}`), f(t, "bonusremainingamount", m = /*activeBonus*/
4742
- e[59].currentAmount), f(t, "bonuscurrency", B = /*activeBonus*/
4743
- e[59].currency), f(
4728
+ t = T("player-bonus-card"), f(t, "termsandconditionsdescription", n = /*activeBonus*/
4729
+ e[60].termsandconditionsdescription), f(t, "termsandconditionsurl", r = /*activeBonus*/
4730
+ e[60].termsandconditionsurl), f(t, "termsandconditionsasset", o = /*activeBonus*/
4731
+ e[60].termsandconditionsasset), f(t, "endpoint", i = /*activeBonus*/
4732
+ e[60].endpoint), f(t, "playerid", s = /*activeBonus*/
4733
+ e[60].playerid), f(t, "session", a = /*activeBonus*/
4734
+ e[60].session), f(t, "bonuswalletid", u = /*activeBonus*/
4735
+ e[60].walletId), f(t, "bonusdate", l = /*activeBonus*/
4736
+ e[60].granted), f(t, "bonusexpirationdate", c = /*activeBonus*/
4737
+ e[60].expiryTime), f(t, "bonusstatus", h = /*activeBonus*/
4738
+ e[60].status), f(t, "bonusname", d = /*activeBonus*/
4739
+ e[60].name), f(t, "bonustype", m = /*activeBonus*/
4740
+ e[60].type), f(t, "bonusamount", y = /*activeBonus*/
4741
+ e[60].extension.grantedPlayerCurrencyAmount), f(t, "bonuswageringamount", v = `${/*activeBonus*/
4742
+ e[60].fulfilledWR} / ${/*activeBonus*/
4743
+ e[60].originalWageringRequirement}`), f(t, "bonusremainingamount", x = /*activeBonus*/
4744
+ e[60].currentAmount), f(t, "bonuscurrency", _ = /*activeBonus*/
4745
+ e[60].currency), f(t, "isWinBonus", b = /*activeBonus*/
4746
+ e[60].isWinBonus), f(
4744
4747
  t,
4745
4748
  "lang",
4746
4749
  /*lang*/
@@ -4787,123 +4790,126 @@ function gs(e) {
4787
4790
  e[8]
4788
4791
  );
4789
4792
  },
4790
- m(v, _) {
4791
- j(v, t, _);
4793
+ m(g, E) {
4794
+ j(g, t, E);
4792
4795
  },
4793
- p(v, _) {
4794
- _[0] & /*activeBonusesList*/
4796
+ p(g, E) {
4797
+ E[0] & /*activeBonusesList*/
4795
4798
  524288 && n !== (n = /*activeBonus*/
4796
- v[59].termsandconditionsdescription) && f(t, "termsandconditionsdescription", n), _[0] & /*activeBonusesList*/
4799
+ g[60].termsandconditionsdescription) && f(t, "termsandconditionsdescription", n), E[0] & /*activeBonusesList*/
4797
4800
  524288 && r !== (r = /*activeBonus*/
4798
- v[59].termsandconditionsurl) && f(t, "termsandconditionsurl", r), _[0] & /*activeBonusesList*/
4801
+ g[60].termsandconditionsurl) && f(t, "termsandconditionsurl", r), E[0] & /*activeBonusesList*/
4799
4802
  524288 && o !== (o = /*activeBonus*/
4800
- v[59].termsandconditionsasset) && f(t, "termsandconditionsasset", o), _[0] & /*activeBonusesList*/
4803
+ g[60].termsandconditionsasset) && f(t, "termsandconditionsasset", o), E[0] & /*activeBonusesList*/
4801
4804
  524288 && i !== (i = /*activeBonus*/
4802
- v[59].endpoint) && f(t, "endpoint", i), _[0] & /*activeBonusesList*/
4805
+ g[60].endpoint) && f(t, "endpoint", i), E[0] & /*activeBonusesList*/
4803
4806
  524288 && s !== (s = /*activeBonus*/
4804
- v[59].playerid) && f(t, "playerid", s), _[0] & /*activeBonusesList*/
4807
+ g[60].playerid) && f(t, "playerid", s), E[0] & /*activeBonusesList*/
4805
4808
  524288 && a !== (a = /*activeBonus*/
4806
- v[59].session) && f(t, "session", a), _[0] & /*activeBonusesList*/
4809
+ g[60].session) && f(t, "session", a), E[0] & /*activeBonusesList*/
4807
4810
  524288 && u !== (u = /*activeBonus*/
4808
- v[59].walletId) && f(t, "bonuswalletid", u), _[0] & /*activeBonusesList*/
4811
+ g[60].walletId) && f(t, "bonuswalletid", u), E[0] & /*activeBonusesList*/
4809
4812
  524288 && l !== (l = /*activeBonus*/
4810
- v[59].granted) && f(t, "bonusdate", l), _[0] & /*activeBonusesList*/
4813
+ g[60].granted) && f(t, "bonusdate", l), E[0] & /*activeBonusesList*/
4811
4814
  524288 && c !== (c = /*activeBonus*/
4812
- v[59].expiryTime) && f(t, "bonusexpirationdate", c), _[0] & /*activeBonusesList*/
4815
+ g[60].expiryTime) && f(t, "bonusexpirationdate", c), E[0] & /*activeBonusesList*/
4813
4816
  524288 && h !== (h = /*activeBonus*/
4814
- v[59].status) && f(t, "bonusstatus", h), _[0] & /*activeBonusesList*/
4817
+ g[60].status) && f(t, "bonusstatus", h), E[0] & /*activeBonusesList*/
4815
4818
  524288 && d !== (d = /*activeBonus*/
4816
- v[59].name) && f(t, "bonusname", d), _[0] & /*activeBonusesList*/
4817
- 524288 && p !== (p = /*activeBonus*/
4818
- v[59].type) && f(t, "bonustype", p), _[0] & /*activeBonusesList*/
4819
- 524288 && g !== (g = /*activeBonus*/
4820
- v[59].extension.grantedPlayerCurrencyAmount) && f(t, "bonusamount", g), _[0] & /*activeBonusesList*/
4821
- 524288 && y !== (y = `${/*activeBonus*/
4822
- v[59].fulfilledWR} / ${/*activeBonus*/
4823
- v[59].originalWageringRequirement}`) && f(t, "bonuswageringamount", y), _[0] & /*activeBonusesList*/
4819
+ g[60].name) && f(t, "bonusname", d), E[0] & /*activeBonusesList*/
4824
4820
  524288 && m !== (m = /*activeBonus*/
4825
- v[59].currentAmount) && f(t, "bonusremainingamount", m), _[0] & /*activeBonusesList*/
4826
- 524288 && B !== (B = /*activeBonus*/
4827
- v[59].currency) && f(t, "bonuscurrency", B), _[0] & /*lang*/
4821
+ g[60].type) && f(t, "bonustype", m), E[0] & /*activeBonusesList*/
4822
+ 524288 && y !== (y = /*activeBonus*/
4823
+ g[60].extension.grantedPlayerCurrencyAmount) && f(t, "bonusamount", y), E[0] & /*activeBonusesList*/
4824
+ 524288 && v !== (v = `${/*activeBonus*/
4825
+ g[60].fulfilledWR} / ${/*activeBonus*/
4826
+ g[60].originalWageringRequirement}`) && f(t, "bonuswageringamount", v), E[0] & /*activeBonusesList*/
4827
+ 524288 && x !== (x = /*activeBonus*/
4828
+ g[60].currentAmount) && f(t, "bonusremainingamount", x), E[0] & /*activeBonusesList*/
4829
+ 524288 && _ !== (_ = /*activeBonus*/
4830
+ g[60].currency) && f(t, "bonuscurrency", _), E[0] & /*activeBonusesList*/
4831
+ 524288 && b !== (b = /*activeBonus*/
4832
+ g[60].isWinBonus) && f(t, "isWinBonus", b), E[0] & /*lang*/
4828
4833
  1 && f(
4829
4834
  t,
4830
4835
  "lang",
4831
4836
  /*lang*/
4832
- v[0]
4833
- ), _[0] & /*dateformat*/
4837
+ g[0]
4838
+ ), E[0] & /*dateformat*/
4834
4839
  64 && f(
4835
4840
  t,
4836
4841
  "dateformat",
4837
4842
  /*dateformat*/
4838
- v[6]
4839
- ), _[0] & /*clientstyling*/
4843
+ g[6]
4844
+ ), E[0] & /*clientstyling*/
4840
4845
  2 && f(
4841
4846
  t,
4842
4847
  "clientstyling",
4843
4848
  /*clientstyling*/
4844
- v[1]
4845
- ), _[0] & /*clientstylingurl*/
4849
+ g[1]
4850
+ ), E[0] & /*clientstylingurl*/
4846
4851
  4 && f(
4847
4852
  t,
4848
4853
  "clientstylingurl",
4849
4854
  /*clientstylingurl*/
4850
- v[2]
4851
- ), _[0] & /*mbsource*/
4855
+ g[2]
4856
+ ), E[0] & /*mbsource*/
4852
4857
  8 && f(
4853
4858
  t,
4854
4859
  "mbsource",
4855
4860
  /*mbsource*/
4856
- v[3]
4857
- ), _[0] & /*translationurl*/
4861
+ g[3]
4862
+ ), E[0] & /*translationurl*/
4858
4863
  16 && f(
4859
4864
  t,
4860
4865
  "translationurl",
4861
4866
  /*translationurl*/
4862
- v[4]
4863
- ), _[0] & /*currencylocale*/
4867
+ g[4]
4868
+ ), E[0] & /*currencylocale*/
4864
4869
  32 && f(
4865
4870
  t,
4866
4871
  "currencylocale",
4867
4872
  /*currencylocale*/
4868
- v[5]
4869
- ), _[0] & /*ishiddenwageringbonus*/
4873
+ g[5]
4874
+ ), E[0] & /*ishiddenwageringbonus*/
4870
4875
  128 && f(
4871
4876
  t,
4872
4877
  "ishiddenwageringbonus",
4873
4878
  /*ishiddenwageringbonus*/
4874
- v[7]
4875
- ), _[0] & /*filterbonusbalance*/
4879
+ g[7]
4880
+ ), E[0] & /*filterbonusbalance*/
4876
4881
  256 && f(
4877
4882
  t,
4878
4883
  "filterbonusbalance",
4879
4884
  /*filterbonusbalance*/
4880
- v[8]
4885
+ g[8]
4881
4886
  );
4882
4887
  },
4883
- d(v) {
4884
- v && G(t);
4888
+ d(g) {
4889
+ g && k(t);
4885
4890
  }
4886
4891
  };
4887
4892
  }
4888
- function vs(e) {
4889
- let t, n, r, o, i, s, a, u, l, c, h, d, p, g, y;
4893
+ function Es(e) {
4894
+ let t, n, r, o, i, s, a, u, l, c, h, d, m, y, v, x;
4890
4895
  return {
4891
4896
  c() {
4892
- t = A("player-bonus-card"), f(t, "termsandconditionsdescription", n = /*activeBonus*/
4893
- e[59].termsandconditionsdescription), f(t, "termsandconditionsurl", r = /*activeBonus*/
4894
- e[59].termsandconditionsurl), f(t, "termsandconditionsasset", o = /*activeBonus*/
4895
- e[59].termsandconditionsasset), f(t, "endpoint", i = /*activeBonus*/
4896
- e[59].endpoint), f(t, "playerid", s = /*activeBonus*/
4897
- e[59].playerid), f(t, "session", a = /*activeBonus*/
4898
- e[59].session), f(t, "bonuswalletid", u = /*activeBonus*/
4899
- e[59].walletId), f(t, "bonusdate", l = /*activeBonus*/
4900
- e[59].granted), f(t, "bonusexpirationdate", c = /*activeBonus*/
4901
- e[59].expiryTime), f(t, "bonusstatus", h = /*activeBonus*/
4902
- e[59].status), f(t, "bonusname", d = /*activeBonus*/
4903
- e[59].name), f(t, "bonustype", p = /*activeBonus*/
4904
- e[59].type), f(t, "bonuscurrency", g = /*activeBonus*/
4905
- e[59].currency), f(t, "bonusfreespins", y = /*activeBonus*/
4906
- e[59].freeRoundNumber), f(
4897
+ t = T("player-bonus-card"), f(t, "termsandconditionsdescription", n = /*activeBonus*/
4898
+ e[60].termsandconditionsdescription), f(t, "termsandconditionsurl", r = /*activeBonus*/
4899
+ e[60].termsandconditionsurl), f(t, "termsandconditionsasset", o = /*activeBonus*/
4900
+ e[60].termsandconditionsasset), f(t, "endpoint", i = /*activeBonus*/
4901
+ e[60].endpoint), f(t, "playerid", s = /*activeBonus*/
4902
+ e[60].playerid), f(t, "session", a = /*activeBonus*/
4903
+ e[60].session), f(t, "bonuswalletid", u = /*activeBonus*/
4904
+ e[60].walletId), f(t, "bonusdate", l = /*activeBonus*/
4905
+ e[60].granted), f(t, "bonusexpirationdate", c = /*activeBonus*/
4906
+ e[60].expiryTime), f(t, "bonusstatus", h = /*activeBonus*/
4907
+ e[60].status), f(t, "bonusname", d = /*activeBonus*/
4908
+ e[60].name), f(t, "bonustype", m = /*activeBonus*/
4909
+ e[60].type), f(t, "bonuscurrency", y = /*activeBonus*/
4910
+ e[60].currency), f(t, "bonusfreespins", v = /*activeBonus*/
4911
+ e[60].freeRoundNumber), f(t, "isWinBonus", x = /*activeBonus*/
4912
+ e[60].isWinBonus), f(
4907
4913
  t,
4908
4914
  "lang",
4909
4915
  /*lang*/
@@ -4950,111 +4956,113 @@ function vs(e) {
4950
4956
  e[8]
4951
4957
  );
4952
4958
  },
4953
- m(m, B) {
4954
- j(m, t, B);
4959
+ m(_, b) {
4960
+ j(_, t, b);
4955
4961
  },
4956
- p(m, B) {
4957
- B[0] & /*activeBonusesList*/
4962
+ p(_, b) {
4963
+ b[0] & /*activeBonusesList*/
4958
4964
  524288 && n !== (n = /*activeBonus*/
4959
- m[59].termsandconditionsdescription) && f(t, "termsandconditionsdescription", n), B[0] & /*activeBonusesList*/
4965
+ _[60].termsandconditionsdescription) && f(t, "termsandconditionsdescription", n), b[0] & /*activeBonusesList*/
4960
4966
  524288 && r !== (r = /*activeBonus*/
4961
- m[59].termsandconditionsurl) && f(t, "termsandconditionsurl", r), B[0] & /*activeBonusesList*/
4967
+ _[60].termsandconditionsurl) && f(t, "termsandconditionsurl", r), b[0] & /*activeBonusesList*/
4962
4968
  524288 && o !== (o = /*activeBonus*/
4963
- m[59].termsandconditionsasset) && f(t, "termsandconditionsasset", o), B[0] & /*activeBonusesList*/
4969
+ _[60].termsandconditionsasset) && f(t, "termsandconditionsasset", o), b[0] & /*activeBonusesList*/
4964
4970
  524288 && i !== (i = /*activeBonus*/
4965
- m[59].endpoint) && f(t, "endpoint", i), B[0] & /*activeBonusesList*/
4971
+ _[60].endpoint) && f(t, "endpoint", i), b[0] & /*activeBonusesList*/
4966
4972
  524288 && s !== (s = /*activeBonus*/
4967
- m[59].playerid) && f(t, "playerid", s), B[0] & /*activeBonusesList*/
4973
+ _[60].playerid) && f(t, "playerid", s), b[0] & /*activeBonusesList*/
4968
4974
  524288 && a !== (a = /*activeBonus*/
4969
- m[59].session) && f(t, "session", a), B[0] & /*activeBonusesList*/
4975
+ _[60].session) && f(t, "session", a), b[0] & /*activeBonusesList*/
4970
4976
  524288 && u !== (u = /*activeBonus*/
4971
- m[59].walletId) && f(t, "bonuswalletid", u), B[0] & /*activeBonusesList*/
4977
+ _[60].walletId) && f(t, "bonuswalletid", u), b[0] & /*activeBonusesList*/
4972
4978
  524288 && l !== (l = /*activeBonus*/
4973
- m[59].granted) && f(t, "bonusdate", l), B[0] & /*activeBonusesList*/
4979
+ _[60].granted) && f(t, "bonusdate", l), b[0] & /*activeBonusesList*/
4974
4980
  524288 && c !== (c = /*activeBonus*/
4975
- m[59].expiryTime) && f(t, "bonusexpirationdate", c), B[0] & /*activeBonusesList*/
4981
+ _[60].expiryTime) && f(t, "bonusexpirationdate", c), b[0] & /*activeBonusesList*/
4976
4982
  524288 && h !== (h = /*activeBonus*/
4977
- m[59].status) && f(t, "bonusstatus", h), B[0] & /*activeBonusesList*/
4983
+ _[60].status) && f(t, "bonusstatus", h), b[0] & /*activeBonusesList*/
4978
4984
  524288 && d !== (d = /*activeBonus*/
4979
- m[59].name) && f(t, "bonusname", d), B[0] & /*activeBonusesList*/
4980
- 524288 && p !== (p = /*activeBonus*/
4981
- m[59].type) && f(t, "bonustype", p), B[0] & /*activeBonusesList*/
4982
- 524288 && g !== (g = /*activeBonus*/
4983
- m[59].currency) && f(t, "bonuscurrency", g), B[0] & /*activeBonusesList*/
4985
+ _[60].name) && f(t, "bonusname", d), b[0] & /*activeBonusesList*/
4986
+ 524288 && m !== (m = /*activeBonus*/
4987
+ _[60].type) && f(t, "bonustype", m), b[0] & /*activeBonusesList*/
4984
4988
  524288 && y !== (y = /*activeBonus*/
4985
- m[59].freeRoundNumber) && f(t, "bonusfreespins", y), B[0] & /*lang*/
4989
+ _[60].currency) && f(t, "bonuscurrency", y), b[0] & /*activeBonusesList*/
4990
+ 524288 && v !== (v = /*activeBonus*/
4991
+ _[60].freeRoundNumber) && f(t, "bonusfreespins", v), b[0] & /*activeBonusesList*/
4992
+ 524288 && x !== (x = /*activeBonus*/
4993
+ _[60].isWinBonus) && f(t, "isWinBonus", x), b[0] & /*lang*/
4986
4994
  1 && f(
4987
4995
  t,
4988
4996
  "lang",
4989
4997
  /*lang*/
4990
- m[0]
4991
- ), B[0] & /*dateformat*/
4998
+ _[0]
4999
+ ), b[0] & /*dateformat*/
4992
5000
  64 && f(
4993
5001
  t,
4994
5002
  "dateformat",
4995
5003
  /*dateformat*/
4996
- m[6]
4997
- ), B[0] & /*clientstyling*/
5004
+ _[6]
5005
+ ), b[0] & /*clientstyling*/
4998
5006
  2 && f(
4999
5007
  t,
5000
5008
  "clientstyling",
5001
5009
  /*clientstyling*/
5002
- m[1]
5003
- ), B[0] & /*clientstylingurl*/
5010
+ _[1]
5011
+ ), b[0] & /*clientstylingurl*/
5004
5012
  4 && f(
5005
5013
  t,
5006
5014
  "clientstylingurl",
5007
5015
  /*clientstylingurl*/
5008
- m[2]
5009
- ), B[0] & /*mbsource*/
5016
+ _[2]
5017
+ ), b[0] & /*mbsource*/
5010
5018
  8 && f(
5011
5019
  t,
5012
5020
  "mbsource",
5013
5021
  /*mbsource*/
5014
- m[3]
5015
- ), B[0] & /*translationurl*/
5022
+ _[3]
5023
+ ), b[0] & /*translationurl*/
5016
5024
  16 && f(
5017
5025
  t,
5018
5026
  "translationurl",
5019
5027
  /*translationurl*/
5020
- m[4]
5021
- ), B[0] & /*currencylocale*/
5028
+ _[4]
5029
+ ), b[0] & /*currencylocale*/
5022
5030
  32 && f(
5023
5031
  t,
5024
5032
  "currencylocale",
5025
5033
  /*currencylocale*/
5026
- m[5]
5027
- ), B[0] & /*ishiddenwageringbonus*/
5034
+ _[5]
5035
+ ), b[0] & /*ishiddenwageringbonus*/
5028
5036
  128 && f(
5029
5037
  t,
5030
5038
  "ishiddenwageringbonus",
5031
5039
  /*ishiddenwageringbonus*/
5032
- m[7]
5033
- ), B[0] & /*filterbonusbalance*/
5040
+ _[7]
5041
+ ), b[0] & /*filterbonusbalance*/
5034
5042
  256 && f(
5035
5043
  t,
5036
5044
  "filterbonusbalance",
5037
5045
  /*filterbonusbalance*/
5038
- m[8]
5046
+ _[8]
5039
5047
  );
5040
5048
  },
5041
- d(m) {
5042
- m && G(t);
5049
+ d(_) {
5050
+ _ && k(t);
5043
5051
  }
5044
5052
  };
5045
5053
  }
5046
- function wn(e) {
5054
+ function Sn(e) {
5047
5055
  let t;
5048
5056
  function n(i, s) {
5049
5057
  return (
5050
5058
  /*activeBonus*/
5051
- i[59].type === "freeRound" ? vs : gs
5059
+ i[60].type === "freeRound" ? Es : Bs
5052
5060
  );
5053
5061
  }
5054
5062
  let r = n(e), o = r(e);
5055
5063
  return {
5056
5064
  c() {
5057
- o.c(), t = Lt();
5065
+ o.c(), t = Ut();
5058
5066
  },
5059
5067
  m(i, s) {
5060
5068
  o.m(i, s), j(i, t, s);
@@ -5063,62 +5071,62 @@ function wn(e) {
5063
5071
  r === (r = n(i)) && o ? o.p(i, s) : (o.d(1), o = r(i), o && (o.c(), o.m(t.parentNode, t)));
5064
5072
  },
5065
5073
  d(i) {
5066
- i && G(t), o.d(i);
5074
+ i && k(t), o.d(i);
5067
5075
  }
5068
5076
  };
5069
5077
  }
5070
- function xn(e) {
5071
- let t, n, r, o, i, s, a, u, l, c, h, d, p, g, y, m, B, v, _, I, R, X, Z, q = ze(Array(
5078
+ function Cn(e) {
5079
+ let t, n, r, o, i, s, a, u, l, c, h, d, m, y, v, x, _, b, g, E, U, X, Z, q = qe(Array(
5072
5080
  /*numberOfPages*/
5073
5081
  e[17]
5074
- )), T = [];
5082
+ )), P = [];
5075
5083
  for (let w = 0; w < q.length; w += 1)
5076
- T[w] = Sn(_n(e, q, w));
5084
+ P[w] = An(En(e, q, w));
5077
5085
  return {
5078
5086
  c() {
5079
- t = A("div"), n = A("button"), r = $("|<"), s = V(), a = A("button"), u = $("<"), h = V();
5080
- for (let w = 0; w < T.length; w += 1)
5081
- T[w].c();
5082
- d = V(), p = A("button"), g = $(">"), B = V(), v = A("button"), _ = $(">|"), n.disabled = o = /*currentPage*/
5083
- e[18] === 0, x(n, "class", i = "BonusesFirst " + /*currentPage*/
5087
+ t = T("div"), n = T("button"), r = G("|<"), s = z(), a = T("button"), u = G("<"), h = z();
5088
+ for (let w = 0; w < P.length; w += 1)
5089
+ P[w].c();
5090
+ d = z(), m = T("button"), y = G(">"), _ = z(), b = T("button"), g = G(">|"), n.disabled = o = /*currentPage*/
5091
+ e[18] === 0, S(n, "class", i = "BonusesFirst " + /*currentPage*/
5084
5092
  (e[18] === 0 ? "Inactive" : "")), a.disabled = l = /*currentPage*/
5085
- e[18] === 0, x(a, "class", c = "BonusesPrev " + /*currentPage*/
5086
- (e[18] === 0 ? "Inactive" : "")), p.disabled = y = /*currentPage*/
5093
+ e[18] === 0, S(a, "class", c = "BonusesPrev " + /*currentPage*/
5094
+ (e[18] === 0 ? "Inactive" : "")), m.disabled = v = /*currentPage*/
5087
5095
  e[18] === /*numberOfPages*/
5088
- e[17] - 1, x(p, "class", m = "BonusesNext " + /*currentPage*/
5096
+ e[17] - 1, S(m, "class", x = "BonusesNext " + /*currentPage*/
5089
5097
  (e[18] === /*numberOfPages*/
5090
- e[17] - 1 ? "Inactive" : "")), v.disabled = I = /*currentPage*/
5098
+ e[17] - 1 ? "Inactive" : "")), b.disabled = E = /*currentPage*/
5091
5099
  e[18] === /*numberOfPages*/
5092
- e[17] - 1, x(v, "class", R = "BonusesLast " + /*currentPage*/
5100
+ e[17] - 1, S(b, "class", U = "BonusesLast " + /*currentPage*/
5093
5101
  (e[18] === /*numberOfPages*/
5094
- e[17] - 1 ? "Inactive" : "")), x(t, "class", "BonusesPaginationWrapper " + /*isMobile*/
5102
+ e[17] - 1 ? "Inactive" : "")), S(t, "class", "BonusesPaginationWrapper " + /*isMobile*/
5095
5103
  (e[22] ? "BonusesPaginationWrapperMobile" : ""));
5096
5104
  },
5097
5105
  m(w, N) {
5098
- j(w, t, N), E(t, n), E(n, r), E(t, s), E(t, a), E(a, u), E(t, h);
5099
- for (let M = 0; M < T.length; M += 1)
5100
- T[M] && T[M].m(t, null);
5101
- E(t, d), E(t, p), E(p, g), E(t, B), E(t, v), E(v, _), X || (Z = [
5102
- Q(
5106
+ j(w, t, N), B(t, n), B(n, r), B(t, s), B(t, a), B(a, u), B(t, h);
5107
+ for (let H = 0; H < P.length; H += 1)
5108
+ P[H] && P[H].m(t, null);
5109
+ B(t, d), B(t, m), B(m, y), B(t, _), B(t, b), B(b, g), X || (Z = [
5110
+ K(
5103
5111
  n,
5104
5112
  "click",
5105
5113
  /*click_handler_1*/
5106
5114
  e[38]
5107
5115
  ),
5108
- Q(
5116
+ K(
5109
5117
  a,
5110
5118
  "click",
5111
5119
  /*click_handler_2*/
5112
5120
  e[39]
5113
5121
  ),
5114
- Q(
5115
- p,
5122
+ K(
5123
+ m,
5116
5124
  "click",
5117
5125
  /*click_handler_4*/
5118
5126
  e[41]
5119
5127
  ),
5120
- Q(
5121
- v,
5128
+ K(
5129
+ b,
5122
5130
  "click",
5123
5131
  /*click_handler_5*/
5124
5132
  e[42]
@@ -5130,109 +5138,109 @@ function xn(e) {
5130
5138
  262144 && o !== (o = /*currentPage*/
5131
5139
  w[18] === 0) && (n.disabled = o), N[0] & /*currentPage*/
5132
5140
  262144 && i !== (i = "BonusesFirst " + /*currentPage*/
5133
- (w[18] === 0 ? "Inactive" : "")) && x(n, "class", i), N[0] & /*currentPage*/
5141
+ (w[18] === 0 ? "Inactive" : "")) && S(n, "class", i), N[0] & /*currentPage*/
5134
5142
  262144 && l !== (l = /*currentPage*/
5135
5143
  w[18] === 0) && (a.disabled = l), N[0] & /*currentPage*/
5136
5144
  262144 && c !== (c = "BonusesPrev " + /*currentPage*/
5137
- (w[18] === 0 ? "Inactive" : "")) && x(a, "class", c), N[0] & /*currentPage, getActiveBonuses, numberOfPages*/
5145
+ (w[18] === 0 ? "Inactive" : "")) && S(a, "class", c), N[0] & /*currentPage, getActiveBonuses, numberOfPages*/
5138
5146
  33947648) {
5139
- q = ze(Array(
5147
+ q = qe(Array(
5140
5148
  /*numberOfPages*/
5141
5149
  w[17]
5142
5150
  ));
5143
- let M;
5144
- for (M = 0; M < q.length; M += 1) {
5145
- const U = _n(w, q, M);
5146
- T[M] ? T[M].p(U, N) : (T[M] = Sn(U), T[M].c(), T[M].m(t, d));
5151
+ let H;
5152
+ for (H = 0; H < q.length; H += 1) {
5153
+ const F = En(w, q, H);
5154
+ P[H] ? P[H].p(F, N) : (P[H] = An(F), P[H].c(), P[H].m(t, d));
5147
5155
  }
5148
- for (; M < T.length; M += 1)
5149
- T[M].d(1);
5150
- T.length = q.length;
5156
+ for (; H < P.length; H += 1)
5157
+ P[H].d(1);
5158
+ P.length = q.length;
5151
5159
  }
5152
5160
  N[0] & /*currentPage, numberOfPages*/
5153
- 393216 && y !== (y = /*currentPage*/
5161
+ 393216 && v !== (v = /*currentPage*/
5154
5162
  w[18] === /*numberOfPages*/
5155
- w[17] - 1) && (p.disabled = y), N[0] & /*currentPage, numberOfPages*/
5156
- 393216 && m !== (m = "BonusesNext " + /*currentPage*/
5163
+ w[17] - 1) && (m.disabled = v), N[0] & /*currentPage, numberOfPages*/
5164
+ 393216 && x !== (x = "BonusesNext " + /*currentPage*/
5157
5165
  (w[18] === /*numberOfPages*/
5158
- w[17] - 1 ? "Inactive" : "")) && x(p, "class", m), N[0] & /*currentPage, numberOfPages*/
5159
- 393216 && I !== (I = /*currentPage*/
5166
+ w[17] - 1 ? "Inactive" : "")) && S(m, "class", x), N[0] & /*currentPage, numberOfPages*/
5167
+ 393216 && E !== (E = /*currentPage*/
5160
5168
  w[18] === /*numberOfPages*/
5161
- w[17] - 1) && (v.disabled = I), N[0] & /*currentPage, numberOfPages*/
5162
- 393216 && R !== (R = "BonusesLast " + /*currentPage*/
5169
+ w[17] - 1) && (b.disabled = E), N[0] & /*currentPage, numberOfPages*/
5170
+ 393216 && U !== (U = "BonusesLast " + /*currentPage*/
5163
5171
  (w[18] === /*numberOfPages*/
5164
- w[17] - 1 ? "Inactive" : "")) && x(v, "class", R);
5172
+ w[17] - 1 ? "Inactive" : "")) && S(b, "class", U);
5165
5173
  },
5166
5174
  d(w) {
5167
- w && G(t), Mn(T, w), X = !1, ae(Z);
5175
+ w && k(t), On(P, w), X = !1, he(Z);
5168
5176
  }
5169
5177
  };
5170
5178
  }
5171
- function Sn(e) {
5179
+ function An(e) {
5172
5180
  let t, n = (
5173
5181
  /*i*/
5174
- e[58] + 1 + ""
5182
+ e[59] + 1 + ""
5175
5183
  ), r, o, i, s, a;
5176
5184
  function u() {
5177
5185
  return (
5178
5186
  /*click_handler_3*/
5179
5187
  e[40](
5180
5188
  /*i*/
5181
- e[58]
5189
+ e[59]
5182
5190
  )
5183
5191
  );
5184
5192
  }
5185
5193
  return {
5186
5194
  c() {
5187
- t = A("button"), r = $(n), t.disabled = o = /*i*/
5188
- e[58] === /*currentPage*/
5189
- e[18], x(t, "class", i = "BonusesPage " + /*i*/
5190
- (e[58] === /*currentPage*/
5195
+ t = T("button"), r = G(n), t.disabled = o = /*i*/
5196
+ e[59] === /*currentPage*/
5197
+ e[18], S(t, "class", i = "BonusesPage " + /*i*/
5198
+ (e[59] === /*currentPage*/
5191
5199
  e[18] ? "BonusPageActive" : ""));
5192
5200
  },
5193
5201
  m(l, c) {
5194
- j(l, t, c), E(t, r), s || (a = Q(t, "click", u), s = !0);
5202
+ j(l, t, c), B(t, r), s || (a = K(t, "click", u), s = !0);
5195
5203
  },
5196
5204
  p(l, c) {
5197
5205
  e = l, c[0] & /*currentPage*/
5198
5206
  262144 && o !== (o = /*i*/
5199
- e[58] === /*currentPage*/
5207
+ e[59] === /*currentPage*/
5200
5208
  e[18]) && (t.disabled = o), c[0] & /*currentPage*/
5201
5209
  262144 && i !== (i = "BonusesPage " + /*i*/
5202
- (e[58] === /*currentPage*/
5203
- e[18] ? "BonusPageActive" : "")) && x(t, "class", i);
5210
+ (e[59] === /*currentPage*/
5211
+ e[18] ? "BonusPageActive" : "")) && S(t, "class", i);
5204
5212
  },
5205
5213
  d(l) {
5206
- l && G(t), s = !1, a();
5214
+ l && k(t), s = !1, a();
5207
5215
  }
5208
5216
  };
5209
5217
  }
5210
- function Cn(e) {
5218
+ function Tn(e) {
5211
5219
  let t, n, r, o, i = (
5212
5220
  /*$_*/
5213
5221
  e[21]("forfeitBonus") + ""
5214
5222
  ), s, a, u, l, c = (
5215
5223
  /*$_*/
5216
5224
  e[21]("forfeitBonusCancel") + ""
5217
- ), h, d, p, g = (
5225
+ ), h, d, m, y = (
5218
5226
  /*$_*/
5219
5227
  e[21]("forfeitBonusConfirm") + ""
5220
- ), y, m, B;
5228
+ ), v, x, _;
5221
5229
  return {
5222
5230
  c() {
5223
- t = A("div"), n = A("div"), r = A("div"), o = A("p"), s = $(i), a = V(), u = A("div"), l = A("button"), h = $(c), d = V(), p = A("button"), y = $(g), x(o, "class", "ModalText"), x(l, "class", "ModalCancel"), x(p, "class", "ModalConfirm"), x(u, "class", "ModalButtons"), x(r, "class", "ModalBody"), x(n, "class", "ModalContent"), x(t, "class", "ModalWrapper " + /*isMobile*/
5231
+ t = T("div"), n = T("div"), r = T("div"), o = T("p"), s = G(i), a = z(), u = T("div"), l = T("button"), h = G(c), d = z(), m = T("button"), v = G(y), S(o, "class", "ModalText"), S(l, "class", "ModalCancel"), S(m, "class", "ModalConfirm"), S(u, "class", "ModalButtons"), S(r, "class", "ModalBody"), S(n, "class", "ModalContent"), S(t, "class", "ModalWrapper " + /*isMobile*/
5224
5232
  (e[22] ? "ModalWrapperMobile" : ""));
5225
5233
  },
5226
- m(v, _) {
5227
- j(v, t, _), E(t, n), E(n, r), E(r, o), E(o, s), E(r, a), E(r, u), E(u, l), E(l, h), E(u, d), E(u, p), E(p, y), m || (B = [
5228
- Q(
5234
+ m(b, g) {
5235
+ j(b, t, g), B(t, n), B(n, r), B(r, o), B(o, s), B(r, a), B(r, u), B(u, l), B(l, h), B(u, d), B(u, m), B(m, v), x || (_ = [
5236
+ K(
5229
5237
  l,
5230
5238
  "click",
5231
5239
  /*closeBonusModal*/
5232
5240
  e[27]
5233
5241
  ),
5234
- Q(
5235
- p,
5242
+ K(
5243
+ m,
5236
5244
  "click",
5237
5245
  /*debouncedFunction*/
5238
5246
  e[29](
@@ -5240,170 +5248,151 @@ function Cn(e) {
5240
5248
  e[28]
5241
5249
  )
5242
5250
  )
5243
- ], m = !0);
5251
+ ], x = !0);
5244
5252
  },
5245
- p(v, _) {
5246
- _[0] & /*$_*/
5253
+ p(b, g) {
5254
+ g[0] & /*$_*/
5247
5255
  2097152 && i !== (i = /*$_*/
5248
- v[21]("forfeitBonus") + "") && oe(s, i), _[0] & /*$_*/
5256
+ b[21]("forfeitBonus") + "") && ie(s, i), g[0] & /*$_*/
5249
5257
  2097152 && c !== (c = /*$_*/
5250
- v[21]("forfeitBonusCancel") + "") && oe(h, c), _[0] & /*$_*/
5251
- 2097152 && g !== (g = /*$_*/
5252
- v[21]("forfeitBonusConfirm") + "") && oe(y, g);
5258
+ b[21]("forfeitBonusCancel") + "") && ie(h, c), g[0] & /*$_*/
5259
+ 2097152 && y !== (y = /*$_*/
5260
+ b[21]("forfeitBonusConfirm") + "") && ie(v, y);
5253
5261
  },
5254
- d(v) {
5255
- v && G(t), m = !1, ae(B);
5262
+ d(b) {
5263
+ b && k(t), x = !1, he(_);
5256
5264
  }
5257
5265
  };
5258
5266
  }
5259
- function ys(e) {
5267
+ function ws(e) {
5260
5268
  let t, n, r, o, i = (
5261
5269
  /*$_*/
5262
5270
  e[21]("titleBonuses") + ""
5263
5271
  ), s, a, u, l, c = (
5264
5272
  /*$_*/
5265
5273
  e[21]("bonusCode") + ""
5266
- ), h, d, p, g, y, m, B = (
5274
+ ), h, d, m, y, v, x, _ = (
5267
5275
  /*$_*/
5268
5276
  e[21]("getBonus") + ""
5269
- ), v, _, I, R, X, Z, q, T = (
5277
+ ), b, g, E, U, X, Z, q, P = (
5270
5278
  /*isMobile*/
5271
- e[22] && hs(e)
5279
+ e[22] && bs(e)
5272
5280
  ), w = (
5273
5281
  /*invalidBonusCode*/
5274
- e[12] && En(e)
5282
+ e[12] && xn(e)
5275
5283
  );
5276
- function N(P, k) {
5284
+ function N(M, W) {
5277
5285
  return (
5278
5286
  /*isLoading*/
5279
- P[10] ? ps : ds
5287
+ M[10] ? vs : gs
5280
5288
  );
5281
5289
  }
5282
- let M = N(e), U = M(e), L = (
5290
+ let H = N(e), F = H(e), R = (
5283
5291
  /*bonusModal*/
5284
- e[20] && Cn(e)
5292
+ e[20] && Tn(e)
5285
5293
  );
5286
5294
  return {
5287
5295
  c() {
5288
- t = A("div"), n = A("div"), T && T.c(), r = V(), o = A("h2"), s = $(i), a = V(), u = A("div"), l = A("label"), h = $(c), d = V(), p = A("div"), g = A("input"), y = V(), m = A("button"), v = $(B), I = V(), w && w.c(), R = V(), U.c(), X = V(), L && L.c(), x(o, "class", "ActiveBonusesTitle " + /*isMobile*/
5289
- (e[22] ? "ActiveBonusesTitleNone" : "")), x(l, "for", "BonusCode"), x(g, "class", "BonusCodeInput " + /*isMobile*/
5290
- (e[22] ? "BonusCodeInputMobile" : "")), x(g, "type", "text"), x(g, "id", "BonusCode"), x(m, "class", "SubmitBonusCode " + /*isMobile*/
5291
- (e[22] ? "SubmitBonusCodeMobile" : "")), m.disabled = _ = /*invalidBonusField*/
5296
+ t = T("div"), n = T("div"), P && P.c(), r = z(), o = T("h2"), s = G(i), a = z(), u = T("div"), l = T("label"), h = G(c), d = z(), m = T("div"), y = T("input"), v = z(), x = T("button"), b = G(_), E = z(), w && w.c(), U = z(), F.c(), X = z(), R && R.c(), S(o, "class", "ActiveBonusesTitle " + /*isMobile*/
5297
+ (e[22] ? "ActiveBonusesTitleNone" : "")), S(l, "for", "BonusCode"), S(y, "class", "BonusCodeInput " + /*isMobile*/
5298
+ (e[22] ? "BonusCodeInputMobile" : "")), S(y, "type", "text"), S(y, "id", "BonusCode"), S(x, "class", "SubmitBonusCode " + /*isMobile*/
5299
+ (e[22] ? "SubmitBonusCodeMobile" : "")), x.disabled = g = /*invalidBonusField*/
5292
5300
  e[11] || /*isLoading*/
5293
- e[10], x(p, "class", "BonusCodeWrapper " + /*isMobile*/
5294
- (e[22] ? "BonusCodeWrapperMobile" : "")), x(u, "class", "BonusCodeContainer " + /*isMobile*/
5295
- (e[22] ? "BonusCodeContainerMobile" : "")), x(n, "class", "ActiveBonusesWrapper " + /*isMobile*/
5301
+ e[10], S(m, "class", "BonusCodeWrapper " + /*isMobile*/
5302
+ (e[22] ? "BonusCodeWrapperMobile" : "")), S(u, "class", "BonusCodeContainer " + /*isMobile*/
5303
+ (e[22] ? "BonusCodeContainerMobile" : "")), S(n, "class", "ActiveBonusesWrapper " + /*isMobile*/
5296
5304
  (e[22] ? "ActiveBonusesWrapperMobile" : ""));
5297
5305
  },
5298
- m(P, k) {
5299
- j(P, t, k), E(t, n), T && T.m(n, null), E(n, r), E(n, o), E(o, s), E(n, a), E(n, u), E(u, l), E(l, h), E(u, d), E(u, p), E(p, g), qt(
5300
- g,
5306
+ m(M, W) {
5307
+ j(M, t, W), B(t, n), P && P.m(n, null), B(n, r), B(n, o), B(o, s), B(n, a), B(n, u), B(u, l), B(l, h), B(u, d), B(u, m), B(m, y), Yt(
5308
+ y,
5301
5309
  /*bonusCode*/
5302
5310
  e[13]
5303
- ), E(p, y), E(p, m), E(m, v), E(u, I), w && w.m(u, null), E(n, R), U.m(n, null), E(t, X), L && L.m(t, null), e[43](t), Z || (q = [
5304
- Q(
5305
- g,
5311
+ ), B(m, v), B(m, x), B(x, b), B(u, E), w && w.m(u, null), B(n, U), F.m(n, null), B(t, X), R && R.m(t, null), e[43](t), Z || (q = [
5312
+ K(
5313
+ y,
5306
5314
  "input",
5307
5315
  /*input_input_handler*/
5308
5316
  e[37]
5309
5317
  ),
5310
- Q(
5311
- g,
5318
+ K(
5319
+ y,
5312
5320
  "keyup",
5313
5321
  /*validateBonusCode*/
5314
5322
  e[24]
5315
5323
  ),
5316
- Q(
5317
- m,
5324
+ K(
5325
+ x,
5318
5326
  "click",
5319
5327
  /*claimBonus*/
5320
5328
  e[26]
5321
5329
  )
5322
5330
  ], Z = !0);
5323
5331
  },
5324
- p(P, k) {
5332
+ p(M, W) {
5325
5333
  /*isMobile*/
5326
- P[22] && T.p(P, k), k[0] & /*$_*/
5334
+ M[22] && P.p(M, W), W[0] & /*$_*/
5327
5335
  2097152 && i !== (i = /*$_*/
5328
- P[21]("titleBonuses") + "") && oe(s, i), k[0] & /*$_*/
5336
+ M[21]("titleBonuses") + "") && ie(s, i), W[0] & /*$_*/
5329
5337
  2097152 && c !== (c = /*$_*/
5330
- P[21]("bonusCode") + "") && oe(h, c), k[0] & /*bonusCode*/
5331
- 8192 && g.value !== /*bonusCode*/
5332
- P[13] && qt(
5333
- g,
5338
+ M[21]("bonusCode") + "") && ie(h, c), W[0] & /*bonusCode*/
5339
+ 8192 && y.value !== /*bonusCode*/
5340
+ M[13] && Yt(
5341
+ y,
5334
5342
  /*bonusCode*/
5335
- P[13]
5336
- ), k[0] & /*$_*/
5337
- 2097152 && B !== (B = /*$_*/
5338
- P[21]("getBonus") + "") && oe(v, B), k[0] & /*invalidBonusField, isLoading*/
5339
- 3072 && _ !== (_ = /*invalidBonusField*/
5340
- P[11] || /*isLoading*/
5341
- P[10]) && (m.disabled = _), /*invalidBonusCode*/
5342
- P[12] ? w ? w.p(P, k) : (w = En(P), w.c(), w.m(u, null)) : w && (w.d(1), w = null), M === (M = N(P)) && U ? U.p(P, k) : (U.d(1), U = M(P), U && (U.c(), U.m(n, null))), /*bonusModal*/
5343
- P[20] ? L ? L.p(P, k) : (L = Cn(P), L.c(), L.m(t, null)) : L && (L.d(1), L = null);
5343
+ M[13]
5344
+ ), W[0] & /*$_*/
5345
+ 2097152 && _ !== (_ = /*$_*/
5346
+ M[21]("getBonus") + "") && ie(b, _), W[0] & /*invalidBonusField, isLoading*/
5347
+ 3072 && g !== (g = /*invalidBonusField*/
5348
+ M[11] || /*isLoading*/
5349
+ M[10]) && (x.disabled = g), /*invalidBonusCode*/
5350
+ M[12] ? w ? w.p(M, W) : (w = xn(M), w.c(), w.m(u, null)) : w && (w.d(1), w = null), H === (H = N(M)) && F ? F.p(M, W) : (F.d(1), F = H(M), F && (F.c(), F.m(n, null))), /*bonusModal*/
5351
+ M[20] ? R ? R.p(M, W) : (R = Tn(M), R.c(), R.m(t, null)) : R && (R.d(1), R = null);
5344
5352
  },
5345
- i: J,
5346
- o: J,
5347
- d(P) {
5348
- P && G(t), T && T.d(), w && w.d(), U.d(), L && L.d(), e[43](null), Z = !1, ae(q);
5353
+ i: Q,
5354
+ o: Q,
5355
+ d(M) {
5356
+ M && k(t), P && P.d(), w && w.d(), F.d(), R && R.d(), e[43](null), Z = !1, he(q);
5349
5357
  }
5350
5358
  };
5351
5359
  }
5352
- let _s = "status=active", ee = 6;
5353
- function Bs(e) {
5354
- var r, o, i, s, a, u, l, c, h, d, p, g;
5355
- const t = (r = e.initialWagerRequirementAmount) != null ? r : 0, n = (o = e.remainingWagerRequirementAmount) != null ? o : 0;
5356
- return at(Ae({}, e), {
5357
- freeRoundNumber: (i = e.numberOfFreeSpin) != null ? i : void 0,
5358
- walletId: (s = e.bonusWalletID) != null ? s : void 0,
5359
- granted: (a = e.grantedDate) != null ? a : void 0,
5360
- expiryTime: (u = e.expiryDate) != null ? u : void 0,
5361
- currentAmount: (l = e.remainingAmount) != null ? l : void 0,
5362
- originalWageringRequirement: (c = e.initialWagerRequirementAmount) != null ? c : void 0,
5363
- fulfilledWR: t - n,
5364
- extension: {
5365
- grantedPlayerCurrencyAmount: (h = e.amount) != null ? h : void 0
5366
- },
5367
- termsandconditionsurl: (d = e.url) != null ? d : void 0,
5368
- termsandconditionsdescription: (p = e.description) != null ? p : void 0,
5369
- termsandconditionsasset: (g = e.assets) != null ? g : void 0
5370
- });
5371
- }
5372
- function Es(e, t, n) {
5360
+ let xs = "status=active", te = 6;
5361
+ function Ss(e, t, n) {
5373
5362
  let r;
5374
- Hr(e, es, (b) => n(21, r = b));
5375
- let { endpoint: o = "" } = t, { session: i = "" } = t, { playerid: s = "" } = t, { lang: a = "en" } = t, { currency: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: h } = t, { translationurl: d = "" } = t, { currencylocale: p = "" } = t, { dateformat: g = "" } = t, { bonuscoderegex: y = "" } = t, { ishiddenwageringbonus: m = "false" } = t, { gmversion: B = "" } = t, { filterbonusbalance: v = "false" } = t, _ = !1, I, R, X = window.navigator.userAgent, Z = ts(X) !== "PC", q = !0, T = !1, w = "", N = 0, M = 0, U = 0, L = 0, P = 0, k = [], $t, nt = "", rt = !1;
5376
- const lr = () => {
5377
- fetch(d).then((F) => F.json()).then((F) => {
5378
- Object.keys(F).forEach((ne) => {
5379
- gn(ne, F[ne]);
5363
+ Nr(e, rs, (p) => n(21, r = p));
5364
+ let { endpoint: o = "" } = t, { session: i = "" } = t, { playerid: s = "" } = t, { lang: a = "en" } = t, { currency: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: h } = t, { translationurl: d = "" } = t, { currencylocale: m = "" } = t, { dateformat: y = "" } = t, { bonuscoderegex: v = "" } = t, { ishiddenwageringbonus: x = "false" } = t, { gmversion: _ = "" } = t, { filterbonusbalance: b = "false" } = t, g = !1, E, U, X = window.navigator.userAgent, Z = os(X) !== "PC", q = !0, P = !1, w = "", N = 0, H = 0, F = 0, R = 0, M = 0, W = [], kt, ot = "", it = !1;
5365
+ const fr = () => {
5366
+ fetch(d).then((L) => L.json()).then((L) => {
5367
+ Object.keys(L).forEach((J) => {
5368
+ yn(J, L[J]);
5380
5369
  });
5381
- }).catch((F) => {
5382
- console.log(F);
5370
+ }).catch((L) => {
5371
+ console.log(L);
5383
5372
  });
5384
5373
  };
5385
- Object.keys(vn).forEach((b) => {
5386
- gn(b, vn[b]);
5374
+ Object.keys(_n).forEach((p) => {
5375
+ yn(p, _n[p]);
5387
5376
  });
5388
- const Gt = (b) => {
5389
- if (b.data)
5390
- switch (b.data.type) {
5377
+ const Wt = (p) => {
5378
+ if (p.data)
5379
+ switch (p.data.type) {
5391
5380
  case "DeleteActiveBonus":
5392
- nt = b.data.bonuswalletid, n(20, rt = !0);
5381
+ ot = p.data.bonuswalletid, n(20, it = !0);
5393
5382
  break;
5394
5383
  }
5395
5384
  };
5396
- function cr(b, F) {
5397
- return (...ne) => {
5398
- clearTimeout($t), $t = setTimeout(
5385
+ function hr(p, L) {
5386
+ return (...J) => {
5387
+ clearTimeout(kt), kt = setTimeout(
5399
5388
  () => {
5400
- b.apply(this, ne);
5389
+ p.apply(this, J);
5401
5390
  },
5402
- F
5391
+ L
5403
5392
  );
5404
5393
  };
5405
5394
  }
5406
- const kt = () => {
5395
+ const jt = () => {
5407
5396
  window.postMessage(
5408
5397
  {
5409
5398
  type: "PlayerAccountMenuActive",
@@ -5411,56 +5400,75 @@ function Es(e, t, n) {
5411
5400
  },
5412
5401
  window.location.href
5413
5402
  );
5414
- }, fr = () => w ? y ? new RegExp(y).test(w) : !0 : !1, hr = () => {
5415
- n(11, q = !fr()), y && n(12, T = q);
5416
- }, K = (b) => re(this, null, function* () {
5417
- var F, ne, Re, Vt;
5418
- n(10, _ = !0);
5403
+ }, dr = () => w ? v ? new RegExp(v).test(w) : !0 : !1, pr = () => {
5404
+ n(11, q = !dr()), v && n(12, P = q);
5405
+ };
5406
+ function mr(p) {
5407
+ var de, He, ae, pe, D, ue, le, ge, at, ce, re, me, Xt;
5408
+ const L = (de = p.initialWagerRequirementAmount) != null ? de : 0, J = (He = p.remainingWagerRequirementAmount) != null ? He : 0;
5409
+ return lt(Oe({}, p), {
5410
+ freeRoundNumber: (ae = p.numberOfFreeSpin) != null ? ae : void 0,
5411
+ walletId: (pe = p.bonusWalletID) != null ? pe : void 0,
5412
+ granted: (D = p.grantedDate) != null ? D : void 0,
5413
+ expiryTime: (ue = p.expiryDate) != null ? ue : void 0,
5414
+ currentAmount: (le = p.remainingAmount) != null ? le : void 0,
5415
+ originalWageringRequirement: (ge = p.initialWagerRequirementAmount) != null ? ge : void 0,
5416
+ fulfilledWR: L - J,
5417
+ extension: {
5418
+ grantedPlayerCurrencyAmount: (at = p.amount) != null ? at : void 0
5419
+ },
5420
+ termsandconditionsurl: (ce = p.url) != null ? ce : void 0,
5421
+ termsandconditionsdescription: (re = p.description) != null ? re : void 0,
5422
+ termsandconditionsasset: (me = p.assets) != null ? me : void 0,
5423
+ isWinBonus: ((Xt = p == null ? void 0 : p.tags) == null ? void 0 : Xt.includes("auto_apply")) === !0 && p.type === fs.ODDS_BOOST
5424
+ });
5425
+ }
5426
+ const ee = (p) => oe(this, null, function* () {
5427
+ var L, J, de, He;
5428
+ n(10, g = !0);
5419
5429
  try {
5420
- let xe = [], Ue = 0;
5421
- if (B === "gm2") {
5422
- console.log("getActiveBonuses - gm2", B);
5423
- const z = {
5424
- pagination: `limit=${ee},offset=${b}`,
5430
+ let ae = [], pe = 0;
5431
+ if (_ === "gm2") {
5432
+ console.log("getActiveBonuses - gm2", _);
5433
+ const D = {
5434
+ pagination: `limit=${te},offset=${p}`,
5425
5435
  language: a || "en",
5426
5436
  sortOrder: "desc",
5427
- status: yn.STATUS_ACTIVE,
5428
- type: yn.TYPES,
5437
+ status: Bn.STATUS_ACTIVE,
5438
+ type: Bn.TYPES,
5429
5439
  expand: "freeSpin"
5430
5440
  };
5431
- m === "true" && (z.includeHiddenWallet = !0);
5432
- const le = yield cs(o, i, z);
5433
- console.log("data from getActiveBonuses", le);
5434
- const Se = le.items;
5435
- Array.isArray(Se) ? xe = Se.map(Bs) : console.error("Unexpected granted bonuses payload", le), Ue = (F = le.total) != null ? F : 0;
5441
+ x === "true" && (D.includeHiddenWallet = !0);
5442
+ const ue = yield ps(o, i, D), le = ue.items;
5443
+ Array.isArray(le) ? ae = le.map(mr) : console.error("Unexpected granted bonuses payload", ue), pe = (L = ue.total) != null ? L : 0;
5436
5444
  } else {
5437
- console.log("getActiveBonuses - /bonusWallet", B);
5438
- const z = {
5445
+ console.log("getActiveBonuses - /bonusWallet", _);
5446
+ const D = {
5439
5447
  method: "GET",
5440
5448
  headers: { "X-SessionId": i }
5441
- }, le = `/v1/player/${s}/bonusWallet`, Se = new URL(`${o}${le}`), it = new URLSearchParams();
5442
- it.set("filter", _s), it.set("pagination", `offset=${b},limit=${ee}`), Se.search = it.toString();
5443
- const Ce = yield (yield fetch(Se, z)).json();
5444
- if (Array.isArray(Ce.items)) {
5445
- for (const ce of Ce.items) {
5446
- const Fe = (Re = (ne = ce == null ? void 0 : ce.extension) == null ? void 0 : ne.bonus) == null ? void 0 : Re.presentation;
5447
- Fe && (ce.termsandconditionsurl = Fe.url, ce.termsandconditionsdescription = Fe.description, ce.termsandconditionsasset = Fe.assets);
5449
+ }, ue = `/v1/player/${s}/bonusWallet`, le = new URL(`${o}${ue}`), ge = new URLSearchParams();
5450
+ ge.set("filter", xs), ge.set("pagination", `offset=${p},limit=${te}`), le.search = ge.toString();
5451
+ const ce = yield (yield fetch(le, D)).json();
5452
+ if (Array.isArray(ce.items)) {
5453
+ for (const re of ce.items) {
5454
+ const me = (de = (J = re == null ? void 0 : re.extension) == null ? void 0 : J.bonus) == null ? void 0 : de.presentation;
5455
+ me && (re.termsandconditionsurl = me.url, re.termsandconditionsdescription = me.description, re.termsandconditionsasset = me.assets);
5448
5456
  }
5449
- xe = Ce.items;
5457
+ ae = ce.items;
5450
5458
  } else
5451
- console.error("Unexpected legacy bonus list payload", Ce);
5452
- Ue = (Vt = Ce.total) != null ? Vt : 0;
5459
+ console.error("Unexpected legacy bonus list payload", ce);
5460
+ pe = (He = ce.total) != null ? He : 0;
5453
5461
  }
5454
- n(17, L = Math.ceil(Ue / ee)), b - ee >= 0 && n(14, N = b - ee), b + ee < Ue && n(15, M = b + ee), n(16, U = (L - 1) * ee), n(18, P = b / ee), n(19, k = xe), p && k.forEach((z) => {
5455
- z.fulfilledWR = Le(z.fulfilledWR), z.originalWageringRequirement = Le(z.originalWageringRequirement), z.currentAmount = Le(z.currentAmount), z.extension && (z.extension.grantedPlayerCurrencyAmount = Le(z.extension.grantedPlayerCurrencyAmount));
5462
+ n(17, R = Math.ceil(pe / te)), p - te >= 0 && n(14, N = p - te), p + te < pe && n(15, H = p + te), n(16, F = (R - 1) * te), n(18, M = p / te), n(19, W = ae), m && W.forEach((D) => {
5463
+ D.fulfilledWR = $e(D.fulfilledWR), D.originalWageringRequirement = $e(D.originalWageringRequirement), D.currentAmount = $e(D.currentAmount), D.extension && (D.extension.grantedPlayerCurrencyAmount = $e(D.extension.grantedPlayerCurrencyAmount));
5456
5464
  }), window.scrollTo({ top: 0, behavior: "smooth" });
5457
- } catch (xe) {
5458
- console.error(xe);
5465
+ } catch (ae) {
5466
+ console.error(ae);
5459
5467
  } finally {
5460
- n(10, _ = !1);
5468
+ n(10, g = !1);
5461
5469
  }
5462
- }), Le = (b) => new Intl.NumberFormat(p, { style: "currency", currency: u }).format(b).replace(/\s/g, ""), jt = () => {
5463
- console.log("post claim success, status 200"), n(12, T = !1), K(0), window.postMessage({ type: "ActiveBonusesUpdated" }, window.location.href), window.postMessage(
5470
+ }), $e = (p) => new Intl.NumberFormat(m, { style: "currency", currency: u }).format(p).replace(/\s/g, ""), Vt = () => {
5471
+ console.log("post claim success, status 200"), n(12, P = !1), ee(0), window.postMessage({ type: "ActiveBonusesUpdated" }, window.location.href), window.postMessage(
5464
5472
  {
5465
5473
  type: "WidgetNotification",
5466
5474
  data: {
@@ -5474,8 +5482,8 @@ function Es(e, t, n) {
5474
5482
  userId: `${s || "Not logged in"}`,
5475
5483
  bonusCode: `${w}`
5476
5484
  });
5477
- }, Wt = () => {
5478
- n(12, T = !0), console.log("post claim error - status not 200"), window.postMessage(
5485
+ }, zt = () => {
5486
+ n(12, P = !0), console.log("post claim error - status not 200"), window.postMessage(
5479
5487
  {
5480
5488
  type: "WidgetNotification",
5481
5489
  data: {
@@ -5485,134 +5493,134 @@ function Es(e, t, n) {
5485
5493
  },
5486
5494
  window.location.href
5487
5495
  );
5488
- }, dr = () => re(this, null, function* () {
5489
- n(10, _ = !0);
5496
+ }, br = () => oe(this, null, function* () {
5497
+ n(10, g = !0);
5490
5498
  try {
5491
- if (B === "gm2") {
5492
- if (!(yield us(o, i, { bonusCode: w, currency: u })).success) {
5493
- Wt();
5499
+ if (_ === "gm2") {
5500
+ if (!(yield hs(o, i, { bonusCode: w, currency: u })).success) {
5501
+ zt();
5494
5502
  //!
5495
5503
  return;
5496
5504
  }
5497
- jt();
5505
+ Vt();
5498
5506
  return;
5499
5507
  }
5500
- const b = new URL(`${o}/v1/player/${s}/claimbonus`);
5501
- b.searchParams.append("currency", u), b.searchParams.append("bonusCode", w);
5502
- const F = {
5508
+ const p = new URL(`${o}/v1/player/${s}/claimbonus`);
5509
+ p.searchParams.append("currency", u), p.searchParams.append("bonusCode", w);
5510
+ const L = {
5503
5511
  method: "POST",
5504
5512
  headers: {
5505
5513
  "X-SessionId": i,
5506
5514
  accept: "application/json"
5507
5515
  }
5508
5516
  };
5509
- (yield fetch(b.href, F)).status == 200 ? jt() : Wt();
5517
+ (yield fetch(p.href, L)).status == 200 ? Vt() : zt();
5510
5518
  } finally {
5511
- n(10, _ = !1);
5519
+ n(10, g = !1);
5512
5520
  }
5513
- }), ot = () => {
5514
- window.postMessage({ type: "EnableScroll" }, window.location.href), n(20, rt = !1);
5515
- }, pr = () => re(this, null, function* () {
5516
- if (B === "gm2") {
5517
- if (!(yield ls(o, i, { bonusWalletID: nt })).success)
5521
+ }), st = () => {
5522
+ window.postMessage({ type: "EnableScroll" }, window.location.href), n(20, it = !1);
5523
+ }, gr = () => oe(this, null, function* () {
5524
+ if (_ === "gm2") {
5525
+ if (!(yield ds(o, i, { bonusWalletID: ot })).success)
5518
5526
  return;
5519
- K(0), window.postMessage({ type: "ActiveBonusesUpdated" }, window.location.href), ot();
5527
+ ee(0), window.postMessage({ type: "ActiveBonusesUpdated" }, window.location.href), st();
5520
5528
  return;
5521
5529
  }
5522
- const b = {
5530
+ const p = {
5523
5531
  method: "DELETE",
5524
5532
  headers: {
5525
5533
  "X-SessionId": i,
5526
5534
  "Content-Type": "application/json",
5527
5535
  Accept: "application/json"
5528
5536
  }
5529
- }, F = new URL(`${o}/v1/player/${s}/bonusWallet`);
5530
- F.searchParams.append("bonusWalletID", nt), (yield fetch(F, b)).status == 200 && (K(0), window.postMessage({ type: "ActiveBonusesUpdated" }, window.location.href), ot());
5531
- }), mr = () => {
5532
- ns(a);
5537
+ }, L = new URL(`${o}/v1/player/${s}/bonusWallet`);
5538
+ L.searchParams.append("bonusWalletID", ot), (yield fetch(L, p)).status == 200 && (ee(0), window.postMessage({ type: "ActiveBonusesUpdated" }, window.location.href), st());
5539
+ }), vr = () => {
5540
+ is(a);
5533
5541
  };
5534
- function br(b) {
5535
- return cr(b, 1e3);
5542
+ function yr(p) {
5543
+ return hr(p, 1e3);
5536
5544
  }
5537
- Fr(() => (window.addEventListener("message", Gt, !1), () => {
5538
- window.removeEventListener("message", Gt);
5545
+ Gr(() => (window.addEventListener("message", Wt, !1), () => {
5546
+ window.removeEventListener("message", Wt);
5539
5547
  }));
5540
- const gr = () => kt();
5541
- function vr() {
5548
+ const _r = () => jt();
5549
+ function Br() {
5542
5550
  w = this.value, n(13, w);
5543
5551
  }
5544
- const yr = () => K(0), _r = () => K(N), Br = (b) => K(b * ee), Er = () => K(M), wr = () => K(U);
5545
- function xr(b) {
5546
- bt[b ? "unshift" : "push"](() => {
5547
- I = b, n(9, I);
5552
+ const Er = () => ee(0), wr = () => ee(N), xr = (p) => ee(p * te), Sr = () => ee(H), Cr = () => ee(F);
5553
+ function Ar(p) {
5554
+ vt[p ? "unshift" : "push"](() => {
5555
+ E = p, n(9, E);
5548
5556
  });
5549
5557
  }
5550
- return e.$$set = (b) => {
5551
- "endpoint" in b && n(30, o = b.endpoint), "session" in b && n(31, i = b.session), "playerid" in b && n(32, s = b.playerid), "lang" in b && n(0, a = b.lang), "currency" in b && n(33, u = b.currency), "clientstyling" in b && n(1, l = b.clientstyling), "clientstylingurl" in b && n(2, c = b.clientstylingurl), "mbsource" in b && n(3, h = b.mbsource), "translationurl" in b && n(4, d = b.translationurl), "currencylocale" in b && n(5, p = b.currencylocale), "dateformat" in b && n(6, g = b.dateformat), "bonuscoderegex" in b && n(34, y = b.bonuscoderegex), "ishiddenwageringbonus" in b && n(7, m = b.ishiddenwageringbonus), "gmversion" in b && n(35, B = b.gmversion), "filterbonusbalance" in b && n(8, v = b.filterbonusbalance);
5558
+ return e.$$set = (p) => {
5559
+ "endpoint" in p && n(30, o = p.endpoint), "session" in p && n(31, i = p.session), "playerid" in p && n(32, s = p.playerid), "lang" in p && n(0, a = p.lang), "currency" in p && n(33, u = p.currency), "clientstyling" in p && n(1, l = p.clientstyling), "clientstylingurl" in p && n(2, c = p.clientstylingurl), "mbsource" in p && n(3, h = p.mbsource), "translationurl" in p && n(4, d = p.translationurl), "currencylocale" in p && n(5, m = p.currencylocale), "dateformat" in p && n(6, y = p.dateformat), "bonuscoderegex" in p && n(34, v = p.bonuscoderegex), "ishiddenwageringbonus" in p && n(7, x = p.ishiddenwageringbonus), "gmversion" in p && n(35, _ = p.gmversion), "filterbonusbalance" in p && n(8, b = p.filterbonusbalance);
5552
5560
  }, e.$$.update = () => {
5553
5561
  e.$$.dirty[0] & /*lang*/
5554
- 1 && a && mr(), e.$$.dirty[0] & /*endpoint*/
5562
+ 1 && a && vr(), e.$$.dirty[0] & /*endpoint*/
5555
5563
  1073741824 | e.$$.dirty[1] & /*session, playerid*/
5556
- 3 && i && s && o && K(0), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5557
- 514 && l && I && rs(I, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5558
- 516 && c && I && os(I, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5559
- 520 && h && I && is(I, `${h}.Style`, R), e.$$.dirty[0] & /*translationurl*/
5560
- 16 && d && lr();
5564
+ 3 && i && s && o && ee(0), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5565
+ 514 && l && E && ss(E, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5566
+ 516 && c && E && as(E, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5567
+ 520 && h && E && us(E, `${h}.Style`, U), e.$$.dirty[0] & /*translationurl*/
5568
+ 16 && d && fr();
5561
5569
  }, [
5562
5570
  a,
5563
5571
  l,
5564
5572
  c,
5565
5573
  h,
5566
5574
  d,
5567
- p,
5568
- g,
5569
5575
  m,
5570
- v,
5571
- I,
5572
- _,
5576
+ y,
5577
+ x,
5578
+ b,
5579
+ E,
5580
+ g,
5573
5581
  q,
5574
- T,
5582
+ P,
5575
5583
  w,
5576
5584
  N,
5585
+ H,
5586
+ F,
5587
+ R,
5577
5588
  M,
5578
- U,
5579
- L,
5580
- P,
5581
- k,
5582
- rt,
5589
+ W,
5590
+ it,
5583
5591
  r,
5584
5592
  Z,
5585
- kt,
5586
- hr,
5587
- K,
5588
- dr,
5589
- ot,
5593
+ jt,
5590
5594
  pr,
5595
+ ee,
5591
5596
  br,
5597
+ st,
5598
+ gr,
5599
+ yr,
5592
5600
  o,
5593
5601
  i,
5594
5602
  s,
5595
5603
  u,
5596
- y,
5597
- B,
5598
- gr,
5599
- vr,
5600
- yr,
5604
+ v,
5605
+ _,
5601
5606
  _r,
5602
5607
  Br,
5603
5608
  Er,
5604
5609
  wr,
5605
- xr
5610
+ xr,
5611
+ Sr,
5612
+ Cr,
5613
+ Ar
5606
5614
  ];
5607
5615
  }
5608
- class ur extends Yr {
5616
+ class cr extends Kr {
5609
5617
  constructor(t) {
5610
- super(), qr(
5618
+ super(), Qr(
5611
5619
  this,
5612
5620
  t,
5613
- Es,
5614
- ys,
5615
- Tn,
5621
+ Ss,
5622
+ ws,
5623
+ Mn,
5616
5624
  {
5617
5625
  endpoint: 30,
5618
5626
  session: 31,
@@ -5630,133 +5638,133 @@ class ur extends Yr {
5630
5638
  gmversion: 35,
5631
5639
  filterbonusbalance: 8
5632
5640
  },
5633
- fs,
5634
- [-1, -1]
5641
+ ms,
5642
+ [-1, -1, -1]
5635
5643
  );
5636
5644
  }
5637
5645
  get endpoint() {
5638
5646
  return this.$$.ctx[30];
5639
5647
  }
5640
5648
  set endpoint(t) {
5641
- this.$$set({ endpoint: t }), D();
5649
+ this.$$set({ endpoint: t }), $();
5642
5650
  }
5643
5651
  get session() {
5644
5652
  return this.$$.ctx[31];
5645
5653
  }
5646
5654
  set session(t) {
5647
- this.$$set({ session: t }), D();
5655
+ this.$$set({ session: t }), $();
5648
5656
  }
5649
5657
  get playerid() {
5650
5658
  return this.$$.ctx[32];
5651
5659
  }
5652
5660
  set playerid(t) {
5653
- this.$$set({ playerid: t }), D();
5661
+ this.$$set({ playerid: t }), $();
5654
5662
  }
5655
5663
  get lang() {
5656
5664
  return this.$$.ctx[0];
5657
5665
  }
5658
5666
  set lang(t) {
5659
- this.$$set({ lang: t }), D();
5667
+ this.$$set({ lang: t }), $();
5660
5668
  }
5661
5669
  get currency() {
5662
5670
  return this.$$.ctx[33];
5663
5671
  }
5664
5672
  set currency(t) {
5665
- this.$$set({ currency: t }), D();
5673
+ this.$$set({ currency: t }), $();
5666
5674
  }
5667
5675
  get clientstyling() {
5668
5676
  return this.$$.ctx[1];
5669
5677
  }
5670
5678
  set clientstyling(t) {
5671
- this.$$set({ clientstyling: t }), D();
5679
+ this.$$set({ clientstyling: t }), $();
5672
5680
  }
5673
5681
  get clientstylingurl() {
5674
5682
  return this.$$.ctx[2];
5675
5683
  }
5676
5684
  set clientstylingurl(t) {
5677
- this.$$set({ clientstylingurl: t }), D();
5685
+ this.$$set({ clientstylingurl: t }), $();
5678
5686
  }
5679
5687
  get mbsource() {
5680
5688
  return this.$$.ctx[3];
5681
5689
  }
5682
5690
  set mbsource(t) {
5683
- this.$$set({ mbsource: t }), D();
5691
+ this.$$set({ mbsource: t }), $();
5684
5692
  }
5685
5693
  get translationurl() {
5686
5694
  return this.$$.ctx[4];
5687
5695
  }
5688
5696
  set translationurl(t) {
5689
- this.$$set({ translationurl: t }), D();
5697
+ this.$$set({ translationurl: t }), $();
5690
5698
  }
5691
5699
  get currencylocale() {
5692
5700
  return this.$$.ctx[5];
5693
5701
  }
5694
5702
  set currencylocale(t) {
5695
- this.$$set({ currencylocale: t }), D();
5703
+ this.$$set({ currencylocale: t }), $();
5696
5704
  }
5697
5705
  get dateformat() {
5698
5706
  return this.$$.ctx[6];
5699
5707
  }
5700
5708
  set dateformat(t) {
5701
- this.$$set({ dateformat: t }), D();
5709
+ this.$$set({ dateformat: t }), $();
5702
5710
  }
5703
5711
  get bonuscoderegex() {
5704
5712
  return this.$$.ctx[34];
5705
5713
  }
5706
5714
  set bonuscoderegex(t) {
5707
- this.$$set({ bonuscoderegex: t }), D();
5715
+ this.$$set({ bonuscoderegex: t }), $();
5708
5716
  }
5709
5717
  get ishiddenwageringbonus() {
5710
5718
  return this.$$.ctx[7];
5711
5719
  }
5712
5720
  set ishiddenwageringbonus(t) {
5713
- this.$$set({ ishiddenwageringbonus: t }), D();
5721
+ this.$$set({ ishiddenwageringbonus: t }), $();
5714
5722
  }
5715
5723
  get gmversion() {
5716
5724
  return this.$$.ctx[35];
5717
5725
  }
5718
5726
  set gmversion(t) {
5719
- this.$$set({ gmversion: t }), D();
5727
+ this.$$set({ gmversion: t }), $();
5720
5728
  }
5721
5729
  get filterbonusbalance() {
5722
5730
  return this.$$.ctx[8];
5723
5731
  }
5724
5732
  set filterbonusbalance(t) {
5725
- this.$$set({ filterbonusbalance: t }), D();
5733
+ this.$$set({ filterbonusbalance: t }), $();
5726
5734
  }
5727
5735
  }
5728
- Zr(ur, { endpoint: {}, session: {}, playerid: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currencylocale: {}, dateformat: {}, bonuscoderegex: {}, ishiddenwageringbonus: {}, gmversion: {}, filterbonusbalance: {} }, [], [], !0);
5729
- const Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5736
+ Jr(cr, { endpoint: {}, session: {}, playerid: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currencylocale: {}, dateformat: {}, bonuscoderegex: {}, ishiddenwageringbonus: {}, gmversion: {}, filterbonusbalance: {} }, [], [], !0);
5737
+ const Ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5730
5738
  __proto__: null,
5731
- default: ur
5739
+ default: cr
5732
5740
  }, Symbol.toStringTag, { value: "Module" }));
5733
5741
  export {
5734
- Ee as $,
5735
- Cs as P,
5736
- Yr as S,
5737
- rr as a,
5738
- Ir as b,
5739
- oe as c,
5740
- G as d,
5741
- x as e,
5742
- D as f,
5742
+ Pe as $,
5743
+ Ts as P,
5744
+ Kr as S,
5745
+ ir as a,
5746
+ Lr as b,
5747
+ ie as c,
5748
+ k as d,
5749
+ S as e,
5750
+ $ as f,
5743
5751
  j as g,
5744
- E as h,
5745
- qr as i,
5746
- A as j,
5747
- V as k,
5748
- Hr as l,
5749
- ts as m,
5750
- J as n,
5751
- Fr as o,
5752
- Ss as p,
5753
- Q as q,
5754
- bt as r,
5755
- Tn as s,
5756
- $ as t,
5757
- rs as u,
5758
- os as v,
5759
- is as w,
5760
- Zr as x,
5761
- es as y
5752
+ B as h,
5753
+ Qr as i,
5754
+ T as j,
5755
+ z as k,
5756
+ Nr as l,
5757
+ os as m,
5758
+ Q as n,
5759
+ Gr as o,
5760
+ As as p,
5761
+ K as q,
5762
+ vt as r,
5763
+ Mn as s,
5764
+ G as t,
5765
+ ss as u,
5766
+ as as v,
5767
+ us as w,
5768
+ Jr as x,
5769
+ rs as y
5762
5770
  };