@everymatrix/player-active-bonuses 1.65.0 → 1.65.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,50 +1,50 @@
1
1
  function Q() {
2
2
  }
3
- function tn(e) {
3
+ function nr(e) {
4
4
  return e();
5
5
  }
6
- function xt() {
6
+ function Ct() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
9
  function se(e) {
10
- e.forEach(tn);
10
+ e.forEach(nr);
11
11
  }
12
- function bt(e) {
12
+ function _t(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function nn(e, t) {
15
+ function or(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
18
  let He;
19
- function Ro(e, t) {
19
+ function Fi(e, t) {
20
20
  return e === t ? !0 : (He || (He = document.createElement("a")), He.href = t, e === He.href);
21
21
  }
22
- function Qn(e) {
22
+ function Qr(e) {
23
23
  return Object.keys(e).length === 0;
24
24
  }
25
- function rn(e, ...t) {
25
+ function ir(e, ...t) {
26
26
  if (e == null) {
27
- for (const r of t)
28
- r(void 0);
27
+ for (const n of t)
28
+ n(void 0);
29
29
  return Q;
30
30
  }
31
- const n = e.subscribe(...t);
32
- return n.unsubscribe ? () => n.unsubscribe() : n;
31
+ const r = e.subscribe(...t);
32
+ return r.unsubscribe ? () => r.unsubscribe() : r;
33
33
  }
34
- function Jn(e, t, n) {
35
- e.$$.on_destroy.push(rn(t, n));
34
+ function Jr(e, t, r) {
35
+ e.$$.on_destroy.push(ir(t, r));
36
36
  }
37
37
  function v(e, t) {
38
38
  e.appendChild(t);
39
39
  }
40
- function Yn(e, t, n) {
41
- const r = Kn(e);
42
- if (!r.getElementById(t)) {
43
- const i = P("style");
44
- i.id = t, i.textContent = n, er(r, i);
40
+ function Yr(e, t, r) {
41
+ const n = Kr(e);
42
+ if (!n.getElementById(t)) {
43
+ const o = T("style");
44
+ o.id = t, o.textContent = r, en(n, o);
45
45
  }
46
46
  }
47
- function Kn(e) {
47
+ function Kr(e) {
48
48
  if (!e)
49
49
  return document;
50
50
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -54,24 +54,24 @@ function Kn(e) {
54
54
  t
55
55
  ) : e.ownerDocument;
56
56
  }
57
- function er(e, t) {
57
+ function en(e, t) {
58
58
  return v(
59
59
  /** @type {Document} */
60
60
  e.head || e,
61
61
  t
62
62
  ), t.sheet;
63
63
  }
64
- function W(e, t, n) {
65
- e.insertBefore(t, n || null);
64
+ function W(e, t, r) {
65
+ e.insertBefore(t, r || null);
66
66
  }
67
67
  function G(e) {
68
68
  e.parentNode && e.parentNode.removeChild(e);
69
69
  }
70
- function on(e, t) {
71
- for (let n = 0; n < e.length; n += 1)
72
- e[n] && e[n].d(t);
70
+ function sr(e, t) {
71
+ for (let r = 0; r < e.length; r += 1)
72
+ e[r] && e[r].d(t);
73
73
  }
74
- function P(e) {
74
+ function T(e) {
75
75
  return document.createElement(e);
76
76
  }
77
77
  function ce(e) {
@@ -83,130 +83,130 @@ function F(e) {
83
83
  function j() {
84
84
  return F(" ");
85
85
  }
86
- function gt() {
86
+ function Bt() {
87
87
  return F("");
88
88
  }
89
- function q(e, t, n, r) {
90
- return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
89
+ function q(e, t, r, n) {
90
+ return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
91
91
  }
92
- function B(e, t, n) {
93
- n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
92
+ function B(e, t, r) {
93
+ r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
94
94
  }
95
- function p(e, t, n) {
96
- const r = t.toLowerCase();
97
- r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : B(e, t, n);
95
+ function p(e, t, r) {
96
+ const n = t.toLowerCase();
97
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : B(e, t, r);
98
98
  }
99
- function tr(e) {
99
+ function tn(e) {
100
100
  return Array.from(e.childNodes);
101
101
  }
102
102
  function ne(e, t) {
103
103
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
104
104
  t);
105
105
  }
106
- function wt(e, t) {
106
+ function St(e, t) {
107
107
  e.value = t ?? "";
108
108
  }
109
- function nr(e) {
109
+ function rn(e) {
110
110
  const t = {};
111
111
  return e.childNodes.forEach(
112
112
  /** @param {Element} node */
113
- (n) => {
114
- t[n.slot || "default"] = !0;
113
+ (r) => {
114
+ t[r.slot || "default"] = !0;
115
115
  }
116
116
  ), t;
117
117
  }
118
- let Ce;
119
- function we(e) {
120
- Ce = e;
118
+ let we;
119
+ function xe(e) {
120
+ we = e;
121
121
  }
122
- function rr() {
123
- if (!Ce)
122
+ function nn() {
123
+ if (!we)
124
124
  throw new Error("Function called outside component initialization");
125
- return Ce;
125
+ return we;
126
126
  }
127
- function ir(e) {
128
- rr().$$.on_mount.push(e);
127
+ function on(e) {
128
+ nn().$$.on_mount.push(e);
129
129
  }
130
- const de = [], et = [];
130
+ const de = [], rt = [];
131
131
  let pe = [];
132
- const Ct = [], or = /* @__PURE__ */ Promise.resolve();
133
- let tt = !1;
134
- function sr() {
135
- tt || (tt = !0, or.then(Z));
132
+ const At = [], sn = /* @__PURE__ */ Promise.resolve();
133
+ let nt = !1;
134
+ function an() {
135
+ nt || (nt = !0, sn.then(Z));
136
136
  }
137
- function nt(e) {
137
+ function ot(e) {
138
138
  pe.push(e);
139
139
  }
140
- const ze = /* @__PURE__ */ new Set();
140
+ const Ze = /* @__PURE__ */ new Set();
141
141
  let he = 0;
142
142
  function Z() {
143
143
  if (he !== 0)
144
144
  return;
145
- const e = Ce;
145
+ const e = we;
146
146
  do {
147
147
  try {
148
148
  for (; he < de.length; ) {
149
149
  const t = de[he];
150
- he++, we(t), ar(t.$$);
150
+ he++, xe(t), un(t.$$);
151
151
  }
152
152
  } catch (t) {
153
153
  throw de.length = 0, he = 0, t;
154
154
  }
155
- for (we(null), de.length = 0, he = 0; et.length; )
156
- et.pop()();
155
+ for (xe(null), de.length = 0, he = 0; rt.length; )
156
+ rt.pop()();
157
157
  for (let t = 0; t < pe.length; t += 1) {
158
- const n = pe[t];
159
- ze.has(n) || (ze.add(n), n());
158
+ const r = pe[t];
159
+ Ze.has(r) || (Ze.add(r), r());
160
160
  }
161
161
  pe.length = 0;
162
162
  } while (de.length);
163
- for (; Ct.length; )
164
- Ct.pop()();
165
- tt = !1, ze.clear(), we(e);
163
+ for (; At.length; )
164
+ At.pop()();
165
+ nt = !1, Ze.clear(), xe(e);
166
166
  }
167
- function ar(e) {
167
+ function un(e) {
168
168
  if (e.fragment !== null) {
169
169
  e.update(), se(e.before_update);
170
170
  const t = e.dirty;
171
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(nt);
171
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ot);
172
172
  }
173
173
  }
174
- function ur(e) {
175
- const t = [], n = [];
176
- pe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), pe = t;
174
+ function ln(e) {
175
+ const t = [], r = [];
176
+ pe.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), pe = t;
177
177
  }
178
- const lr = /* @__PURE__ */ new Set();
179
- function cr(e, t) {
180
- e && e.i && (lr.delete(e), e.i(t));
178
+ const cn = /* @__PURE__ */ new Set();
179
+ function hn(e, t) {
180
+ e && e.i && (cn.delete(e), e.i(t));
181
181
  }
182
182
  function Fe(e) {
183
183
  return e?.length !== void 0 ? e : Array.from(e);
184
184
  }
185
- function hr(e, t, n) {
186
- const { fragment: r, after_update: i } = e.$$;
187
- r && r.m(t, n), nt(() => {
188
- const o = e.$$.on_mount.map(tn).filter(bt);
189
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
190
- }), i.forEach(nt);
185
+ function fn(e, t, r) {
186
+ const { fragment: n, after_update: o } = e.$$;
187
+ n && n.m(t, r), ot(() => {
188
+ const i = e.$$.on_mount.map(nr).filter(_t);
189
+ e.$$.on_destroy ? e.$$.on_destroy.push(...i) : se(i), e.$$.on_mount = [];
190
+ }), o.forEach(ot);
191
191
  }
192
- function fr(e, t) {
193
- const n = e.$$;
194
- n.fragment !== null && (ur(n.after_update), se(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
192
+ function dn(e, t) {
193
+ const r = e.$$;
194
+ r.fragment !== null && (ln(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
195
195
  }
196
- function dr(e, t) {
197
- e.$$.dirty[0] === -1 && (de.push(e), sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
196
+ function pn(e, t) {
197
+ e.$$.dirty[0] === -1 && (de.push(e), an(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
198
198
  }
199
- function pr(e, t, n, r, i, o, s = null, a = [-1]) {
200
- const u = Ce;
201
- we(e);
199
+ function mn(e, t, r, n, o, i, s = null, a = [-1]) {
200
+ const u = we;
201
+ xe(e);
202
202
  const l = e.$$ = {
203
203
  fragment: null,
204
204
  ctx: [],
205
205
  // state
206
- props: o,
206
+ props: i,
207
207
  update: Q,
208
- not_equal: i,
209
- bound: xt(),
208
+ not_equal: o,
209
+ bound: Ct(),
210
210
  // lifecycle
211
211
  on_mount: [],
212
212
  on_destroy: [],
@@ -215,28 +215,28 @@ function pr(e, t, n, r, i, o, s = null, a = [-1]) {
215
215
  after_update: [],
216
216
  context: new Map(t.context || (u ? u.$$.context : [])),
217
217
  // everything else
218
- callbacks: xt(),
218
+ callbacks: Ct(),
219
219
  dirty: a,
220
220
  skip_bound: !1,
221
221
  root: t.target || u.$$.root
222
222
  };
223
223
  s && s(l.root);
224
224
  let c = !1;
225
- if (l.ctx = n ? n(e, t.props || {}, (h, f, ...b) => {
225
+ if (l.ctx = r ? r(e, t.props || {}, (h, f, ...b) => {
226
226
  const m = b.length ? b[0] : f;
227
- return l.ctx && i(l.ctx[h], l.ctx[h] = m) && (!l.skip_bound && l.bound[h] && l.bound[h](m), c && dr(e, h)), f;
228
- }) : [], l.update(), c = !0, se(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
227
+ return l.ctx && o(l.ctx[h], l.ctx[h] = m) && (!l.skip_bound && l.bound[h] && l.bound[h](m), c && pn(e, h)), f;
228
+ }) : [], l.update(), c = !0, se(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
229
229
  if (t.hydrate) {
230
- const h = tr(t.target);
230
+ const h = tn(t.target);
231
231
  l.fragment && l.fragment.l(h), h.forEach(G);
232
232
  } else
233
233
  l.fragment && l.fragment.c();
234
- t.intro && cr(e.$$.fragment), hr(e, t.target, t.anchor), Z();
234
+ t.intro && hn(e.$$.fragment), fn(e, t.target, t.anchor), Z();
235
235
  }
236
- we(u);
236
+ xe(u);
237
237
  }
238
- let sn;
239
- typeof HTMLElement == "function" && (sn = class extends HTMLElement {
238
+ let ar;
239
+ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
240
240
  /** The Svelte component constructor */
241
241
  $$ctor;
242
242
  /** Slots */
@@ -255,55 +255,55 @@ typeof HTMLElement == "function" && (sn = class extends HTMLElement {
255
255
  $$l = {};
256
256
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
257
257
  $$l_u = /* @__PURE__ */ new Map();
258
- constructor(e, t, n) {
259
- super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
258
+ constructor(e, t, r) {
259
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
260
260
  }
261
- addEventListener(e, t, n) {
261
+ addEventListener(e, t, r) {
262
262
  if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
263
- const r = this.$$c.$on(e, t);
264
- this.$$l_u.set(t, r);
263
+ const n = this.$$c.$on(e, t);
264
+ this.$$l_u.set(t, n);
265
265
  }
266
- super.addEventListener(e, t, n);
266
+ super.addEventListener(e, t, r);
267
267
  }
268
- removeEventListener(e, t, n) {
269
- if (super.removeEventListener(e, t, n), this.$$c) {
270
- const r = this.$$l_u.get(t);
271
- r && (r(), this.$$l_u.delete(t));
268
+ removeEventListener(e, t, r) {
269
+ if (super.removeEventListener(e, t, r), this.$$c) {
270
+ const n = this.$$l_u.get(t);
271
+ n && (n(), this.$$l_u.delete(t));
272
272
  }
273
273
  }
274
274
  async connectedCallback() {
275
275
  if (this.$$cn = !0, !this.$$c) {
276
- let e = function(i) {
276
+ let e = function(o) {
277
277
  return () => {
278
- let o;
278
+ let i;
279
279
  return {
280
280
  c: function() {
281
- o = P("slot"), i !== "default" && B(o, "name", i);
281
+ i = T("slot"), o !== "default" && B(i, "name", o);
282
282
  },
283
283
  /**
284
284
  * @param {HTMLElement} target
285
285
  * @param {HTMLElement} [anchor]
286
286
  */
287
287
  m: function(u, l) {
288
- W(u, o, l);
288
+ W(u, i, l);
289
289
  },
290
290
  d: function(u) {
291
- u && G(o);
291
+ u && G(i);
292
292
  }
293
293
  };
294
294
  };
295
295
  };
296
296
  if (await Promise.resolve(), !this.$$cn || this.$$c)
297
297
  return;
298
- const t = {}, n = nr(this);
299
- for (const i of this.$$s)
300
- i in n && (t[i] = [e(i)]);
301
- for (const i of this.attributes) {
302
- const o = this.$$g_p(i.name);
303
- o in this.$$d || (this.$$d[o] = Ne(o, i.value, this.$$p_d, "toProp"));
298
+ const t = {}, r = rn(this);
299
+ for (const o of this.$$s)
300
+ o in r && (t[o] = [e(o)]);
301
+ for (const o of this.attributes) {
302
+ const i = this.$$g_p(o.name);
303
+ i in this.$$d || (this.$$d[i] = Ne(i, o.value, this.$$p_d, "toProp"));
304
304
  }
305
- for (const i in this.$$p_d)
306
- !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
305
+ for (const o in this.$$p_d)
306
+ !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
307
307
  this.$$c = new this.$$ctor({
308
308
  target: this.shadowRoot || this,
309
309
  props: {
@@ -314,33 +314,33 @@ typeof HTMLElement == "function" && (sn = class extends HTMLElement {
314
314
  }
315
315
  }
316
316
  });
317
- const r = () => {
317
+ const n = () => {
318
318
  this.$$r = !0;
319
- for (const i in this.$$p_d)
320
- if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
321
- const o = Ne(
322
- i,
323
- this.$$d[i],
319
+ for (const o in this.$$p_d)
320
+ if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
321
+ const i = Ne(
322
+ o,
323
+ this.$$d[o],
324
324
  this.$$p_d,
325
325
  "toAttribute"
326
326
  );
327
- o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
327
+ i == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, i);
328
328
  }
329
329
  this.$$r = !1;
330
330
  };
331
- this.$$c.$$.after_update.push(r), r();
332
- for (const i in this.$$l)
333
- for (const o of this.$$l[i]) {
334
- const s = this.$$c.$on(i, o);
335
- this.$$l_u.set(o, s);
331
+ this.$$c.$$.after_update.push(n), n();
332
+ for (const o in this.$$l)
333
+ for (const i of this.$$l[o]) {
334
+ const s = this.$$c.$on(o, i);
335
+ this.$$l_u.set(i, s);
336
336
  }
337
337
  this.$$l = {};
338
338
  }
339
339
  }
340
340
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
341
341
  // and setting attributes through setAttribute etc, this is helpful
342
- attributeChangedCallback(e, t, n) {
343
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ne(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
342
+ attributeChangedCallback(e, t, r) {
343
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ne(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
344
344
  }
345
345
  disconnectedCallback() {
346
346
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -353,12 +353,12 @@ typeof HTMLElement == "function" && (sn = class extends HTMLElement {
353
353
  ) || e;
354
354
  }
355
355
  });
356
- function Ne(e, t, n, r) {
357
- const i = n[e]?.type;
358
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
356
+ function Ne(e, t, r, n) {
357
+ const o = r[e]?.type;
358
+ if (t = o === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
359
359
  return t;
360
- if (r === "toAttribute")
361
- switch (i) {
360
+ if (n === "toAttribute")
361
+ switch (o) {
362
362
  case "Object":
363
363
  case "Array":
364
364
  return t == null ? null : JSON.stringify(t);
@@ -370,7 +370,7 @@ function Ne(e, t, n, r) {
370
370
  return t;
371
371
  }
372
372
  else
373
- switch (i) {
373
+ switch (o) {
374
374
  case "Object":
375
375
  case "Array":
376
376
  return t && JSON.parse(t);
@@ -382,10 +382,10 @@ function Ne(e, t, n, r) {
382
382
  return t;
383
383
  }
384
384
  }
385
- function mr(e, t, n, r, i, o) {
386
- let s = class extends sn {
385
+ function bn(e, t, r, n, o, i) {
386
+ let s = class extends ar {
387
387
  constructor() {
388
- super(e, n, i), this.$$p_d = t;
388
+ super(e, r, o), this.$$p_d = t;
389
389
  }
390
390
  static get observedAttributes() {
391
391
  return Object.keys(t).map(
@@ -402,7 +402,7 @@ function mr(e, t, n, r, i, o) {
402
402
  u = Ne(a, u, t), this.$$d[a] = u, this.$$c?.$set({ [a]: u });
403
403
  }
404
404
  });
405
- }), r.forEach((a) => {
405
+ }), n.forEach((a) => {
406
406
  Object.defineProperty(s.prototype, a, {
407
407
  get() {
408
408
  return this.$$c?.[a];
@@ -411,7 +411,7 @@ function mr(e, t, n, r, i, o) {
411
411
  }), e.element = /** @type {any} */
412
412
  s, s;
413
413
  }
414
- class br {
414
+ class gn {
415
415
  /**
416
416
  * ### PRIVATE API
417
417
  *
@@ -430,7 +430,7 @@ class br {
430
430
  $$set = void 0;
431
431
  /** @returns {void} */
432
432
  $destroy() {
433
- fr(this, 1), this.$destroy = Q;
433
+ dn(this, 1), this.$destroy = Q;
434
434
  }
435
435
  /**
436
436
  * @template {Extract<keyof Events, string>} K
@@ -438,13 +438,13 @@ class br {
438
438
  * @param {((e: Events[K]) => void) | null | undefined} callback
439
439
  * @returns {() => void}
440
440
  */
441
- $on(t, n) {
442
- if (!bt(n))
441
+ $on(t, r) {
442
+ if (!_t(r))
443
443
  return Q;
444
- const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
445
- return r.push(n), () => {
446
- const i = r.indexOf(n);
447
- i !== -1 && r.splice(i, 1);
444
+ const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
445
+ return n.push(r), () => {
446
+ const o = n.indexOf(r);
447
+ o !== -1 && n.splice(o, 1);
448
448
  };
449
449
  }
450
450
  /**
@@ -452,11 +452,11 @@ class br {
452
452
  * @returns {void}
453
453
  */
454
454
  $set(t) {
455
- this.$$set && !Qn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
455
+ this.$$set && !Qr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
456
456
  }
457
457
  }
458
- const gr = "4";
459
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(gr);
458
+ const vn = "4";
459
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(vn);
460
460
  /*! *****************************************************************************
461
461
  Copyright (c) Microsoft Corporation.
462
462
 
@@ -471,117 +471,98 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
471
471
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
472
472
  PERFORMANCE OF THIS SOFTWARE.
473
473
  ***************************************************************************** */
474
- var rt = function(e, t) {
475
- return rt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
476
- n.__proto__ = r;
477
- } || function(n, r) {
478
- for (var i in r)
479
- Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
480
- }, rt(e, t);
474
+ var it = function(e, t) {
475
+ return it = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
476
+ r.__proto__ = n;
477
+ } || function(r, n) {
478
+ for (var o in n)
479
+ Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
480
+ }, it(e, t);
481
481
  };
482
- function ie(e, t) {
482
+ function Ae(e, t) {
483
483
  if (typeof t != "function" && t !== null)
484
484
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
485
- rt(e, t);
486
- function n() {
485
+ it(e, t);
486
+ function r() {
487
487
  this.constructor = e;
488
488
  }
489
- e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
490
- }
491
- var A = function() {
492
- return A = Object.assign || function(t) {
493
- for (var n, r = 1, i = arguments.length; r < i; r++) {
494
- n = arguments[r];
495
- for (var o in n)
496
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
497
- }
498
- return t;
499
- }, A.apply(this, arguments);
500
- };
501
- function vr(e, t) {
502
- var n = {};
503
- for (var r in e)
504
- Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
505
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
506
- for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
507
- t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
508
- return n;
489
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
509
490
  }
510
- function it(e) {
511
- var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
512
- if (n)
513
- return n.call(e);
491
+ function st(e) {
492
+ var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
493
+ if (r)
494
+ return r.call(e);
514
495
  if (e && typeof e.length == "number")
515
496
  return {
516
497
  next: function() {
517
- return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
498
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
518
499
  }
519
500
  };
520
501
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
521
502
  }
522
- function ot(e, t) {
523
- var n = typeof Symbol == "function" && e[Symbol.iterator];
524
- if (!n)
503
+ function at(e, t) {
504
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
505
+ if (!r)
525
506
  return e;
526
- var r = n.call(e), i, o = [], s;
507
+ var n = r.call(e), o, i = [], s;
527
508
  try {
528
- for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
529
- o.push(i.value);
509
+ for (; (t === void 0 || t-- > 0) && !(o = n.next()).done; )
510
+ i.push(o.value);
530
511
  } catch (a) {
531
512
  s = { error: a };
532
513
  } finally {
533
514
  try {
534
- i && !i.done && (n = r.return) && n.call(r);
515
+ o && !o.done && (r = n.return) && r.call(n);
535
516
  } finally {
536
517
  if (s)
537
518
  throw s.error;
538
519
  }
539
520
  }
540
- return o;
521
+ return i;
541
522
  }
542
- function me(e, t, n) {
543
- if (n || arguments.length === 2)
544
- for (var r = 0, i = t.length, o; r < i; r++)
545
- (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
546
- return e.concat(o || t);
523
+ function ut(e, t, r) {
524
+ if (arguments.length === 2)
525
+ for (var n = 0, o = t.length, i; n < o; n++)
526
+ (i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
527
+ return e.concat(i || t);
547
528
  }
548
- function re(e) {
529
+ function oe(e) {
549
530
  return typeof e == "function";
550
531
  }
551
- function an(e) {
552
- var t = function(r) {
553
- Error.call(r), r.stack = new Error().stack;
554
- }, n = e(t);
555
- return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
556
- }
557
- var Xe = an(function(e) {
558
- return function(n) {
559
- e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
560
- ` + n.map(function(r, i) {
561
- return i + 1 + ") " + r.toString();
532
+ function ur(e) {
533
+ var t = function(n) {
534
+ Error.call(n), n.stack = new Error().stack;
535
+ }, r = e(t);
536
+ return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
537
+ }
538
+ var qe = ur(function(e) {
539
+ return function(r) {
540
+ e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
541
+ ` + r.map(function(n, o) {
542
+ return o + 1 + ") " + n.toString();
562
543
  }).join(`
563
- `) : "", this.name = "UnsubscriptionError", this.errors = n;
544
+ `) : "", this.name = "UnsubscriptionError", this.errors = r;
564
545
  };
565
546
  });
566
- function st(e, t) {
547
+ function lt(e, t) {
567
548
  if (e) {
568
- var n = e.indexOf(t);
569
- 0 <= n && e.splice(n, 1);
549
+ var r = e.indexOf(t);
550
+ 0 <= r && e.splice(r, 1);
570
551
  }
571
552
  }
572
- var Ge = function() {
553
+ var ke = function() {
573
554
  function e(t) {
574
555
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
575
556
  }
576
557
  return e.prototype.unsubscribe = function() {
577
- var t, n, r, i, o;
558
+ var t, r, n, o, i;
578
559
  if (!this.closed) {
579
560
  this.closed = !0;
580
561
  var s = this._parentage;
581
562
  if (s)
582
563
  if (this._parentage = null, Array.isArray(s))
583
564
  try {
584
- for (var a = it(s), u = a.next(); !u.done; u = a.next()) {
565
+ for (var a = st(s), u = a.next(); !u.done; u = a.next()) {
585
566
  var l = u.value;
586
567
  l.remove(this);
587
568
  }
@@ -589,7 +570,7 @@ var Ge = function() {
589
570
  t = { error: d };
590
571
  } finally {
591
572
  try {
592
- u && !u.done && (n = a.return) && n.call(a);
573
+ u && !u.done && (r = a.return) && r.call(a);
593
574
  } finally {
594
575
  if (t)
595
576
  throw t.error;
@@ -598,122 +579,118 @@ var Ge = function() {
598
579
  else
599
580
  s.remove(this);
600
581
  var c = this.initialTeardown;
601
- if (re(c))
582
+ if (oe(c))
602
583
  try {
603
584
  c();
604
585
  } catch (d) {
605
- o = d instanceof Xe ? d.errors : [d];
586
+ i = d instanceof qe ? d.errors : [d];
606
587
  }
607
588
  var h = this._finalizers;
608
589
  if (h) {
609
590
  this._finalizers = null;
610
591
  try {
611
- for (var f = it(h), b = f.next(); !b.done; b = f.next()) {
592
+ for (var f = st(h), b = f.next(); !b.done; b = f.next()) {
612
593
  var m = b.value;
613
594
  try {
614
- St(m);
595
+ Tt(m);
615
596
  } catch (d) {
616
- o = o ?? [], d instanceof Xe ? o = me(me([], ot(o)), ot(d.errors)) : o.push(d);
597
+ i = i ?? [], d instanceof qe ? i = ut(ut([], at(i)), at(d.errors)) : i.push(d);
617
598
  }
618
599
  }
619
600
  } catch (d) {
620
- r = { error: d };
601
+ n = { error: d };
621
602
  } finally {
622
603
  try {
623
- b && !b.done && (i = f.return) && i.call(f);
604
+ b && !b.done && (o = f.return) && o.call(f);
624
605
  } finally {
625
- if (r)
626
- throw r.error;
606
+ if (n)
607
+ throw n.error;
627
608
  }
628
609
  }
629
610
  }
630
- if (o)
631
- throw new Xe(o);
611
+ if (i)
612
+ throw new qe(i);
632
613
  }
633
614
  }, e.prototype.add = function(t) {
634
- var n;
615
+ var r;
635
616
  if (t && t !== this)
636
617
  if (this.closed)
637
- St(t);
618
+ Tt(t);
638
619
  else {
639
620
  if (t instanceof e) {
640
621
  if (t.closed || t._hasParent(this))
641
622
  return;
642
623
  t._addParent(this);
643
624
  }
644
- (this._finalizers = (n = this._finalizers) !== null && n !== void 0 ? n : []).push(t);
625
+ (this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
645
626
  }
646
627
  }, e.prototype._hasParent = function(t) {
647
- var n = this._parentage;
648
- return n === t || Array.isArray(n) && n.includes(t);
628
+ var r = this._parentage;
629
+ return r === t || Array.isArray(r) && r.includes(t);
649
630
  }, e.prototype._addParent = function(t) {
650
- var n = this._parentage;
651
- this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
631
+ var r = this._parentage;
632
+ this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
652
633
  }, e.prototype._removeParent = function(t) {
653
- var n = this._parentage;
654
- n === t ? this._parentage = null : Array.isArray(n) && st(n, t);
634
+ var r = this._parentage;
635
+ r === t ? this._parentage = null : Array.isArray(r) && lt(r, t);
655
636
  }, e.prototype.remove = function(t) {
656
- var n = this._finalizers;
657
- n && st(n, t), t instanceof e && t._removeParent(this);
637
+ var r = this._finalizers;
638
+ r && lt(r, t), t instanceof e && t._removeParent(this);
658
639
  }, e.EMPTY = function() {
659
640
  var t = new e();
660
641
  return t.closed = !0, t;
661
642
  }(), e;
662
- }(), un = Ge.EMPTY;
663
- function ln(e) {
664
- return e instanceof Ge || e && "closed" in e && re(e.remove) && re(e.add) && re(e.unsubscribe);
665
- }
666
- function St(e) {
667
- re(e) ? e() : e.unsubscribe();
668
- }
669
- var cn = {
670
- onUnhandledError: null,
671
- onStoppedNotification: null,
672
- Promise: void 0,
673
- useDeprecatedSynchronousErrorHandling: !1,
674
- useDeprecatedNextContext: !1
675
- }, yr = {
643
+ }(), lr = ke.EMPTY;
644
+ function cr(e) {
645
+ return e instanceof ke || e && "closed" in e && oe(e.remove) && oe(e.add) && oe(e.unsubscribe);
646
+ }
647
+ function Tt(e) {
648
+ oe(e) ? e() : e.unsubscribe();
649
+ }
650
+ var yn = {
651
+ Promise: void 0
652
+ }, _n = {
676
653
  setTimeout: function(e, t) {
677
- for (var n = [], r = 2; r < arguments.length; r++)
678
- n[r - 2] = arguments[r];
679
- return setTimeout.apply(void 0, me([e, t], ot(n)));
654
+ for (var r = [], n = 2; n < arguments.length; n++)
655
+ r[n - 2] = arguments[n];
656
+ return setTimeout.apply(void 0, ut([e, t], at(r)));
680
657
  },
681
658
  clearTimeout: function(e) {
682
659
  return clearTimeout(e);
683
660
  },
684
661
  delegate: void 0
685
662
  };
686
- function _r(e) {
687
- yr.setTimeout(function() {
663
+ function Bn(e) {
664
+ _n.setTimeout(function() {
688
665
  throw e;
689
666
  });
690
667
  }
691
- function At() {
668
+ function Pt() {
692
669
  }
693
670
  function Le(e) {
694
671
  e();
695
672
  }
696
- var hn = function(e) {
697
- ie(t, e);
698
- function t(n) {
699
- var r = e.call(this) || this;
700
- return r.isStopped = !1, n ? (r.destination = n, ln(n) && n.add(r)) : r.destination = wr, r;
673
+ var hr = function(e) {
674
+ Ae(t, e);
675
+ function t(r) {
676
+ var n = e.call(this) || this;
677
+ return n.isStopped = !1, r ? (n.destination = r, cr(r) && r.add(n)) : n.destination = wn, n;
701
678
  }
702
- return t.create = function(n, r, i) {
703
- return new at(n, r, i);
704
- }, t.prototype.next = function(n) {
705
- this.isStopped || this._next(n);
706
- }, t.prototype.error = function(n) {
707
- this.isStopped || (this.isStopped = !0, this._error(n));
679
+ return t.create = function(r, n, o) {
680
+ return new ct(r, n, o);
681
+ }, t.prototype.next = function(r) {
682
+ this.isStopped || this._next(r);
683
+ }, t.prototype.error = function(r) {
684
+ this.isStopped || (this.isStopped = !0, this._error(r));
708
685
  }, t.prototype.complete = function() {
709
686
  this.isStopped || (this.isStopped = !0, this._complete());
710
687
  }, t.prototype.unsubscribe = function() {
711
688
  this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
712
- }, t.prototype._next = function(n) {
713
- this.destination.next(n);
714
- }, t.prototype._error = function(n) {
689
+ }, t.prototype._next = function(r) {
690
+ this.destination.next(r);
691
+ }, t.prototype._error = function(r) {
715
692
  try {
716
- this.destination.error(n);
693
+ this.destination.error(r);
717
694
  } finally {
718
695
  this.unsubscribe();
719
696
  }
@@ -724,310 +701,294 @@ var hn = function(e) {
724
701
  this.unsubscribe();
725
702
  }
726
703
  }, t;
727
- }(Ge), Br = Function.prototype.bind;
728
- function Ze(e, t) {
729
- return Br.call(e, t);
730
- }
731
- var Er = function() {
704
+ }(ke), En = function() {
732
705
  function e(t) {
733
706
  this.partialObserver = t;
734
707
  }
735
708
  return e.prototype.next = function(t) {
736
- var n = this.partialObserver;
737
- if (n.next)
709
+ var r = this.partialObserver;
710
+ if (r.next)
738
711
  try {
739
- n.next(t);
740
- } catch (r) {
741
- Ie(r);
712
+ r.next(t);
713
+ } catch (n) {
714
+ Oe(n);
742
715
  }
743
716
  }, e.prototype.error = function(t) {
744
- var n = this.partialObserver;
745
- if (n.error)
717
+ var r = this.partialObserver;
718
+ if (r.error)
746
719
  try {
747
- n.error(t);
748
- } catch (r) {
749
- Ie(r);
720
+ r.error(t);
721
+ } catch (n) {
722
+ Oe(n);
750
723
  }
751
724
  else
752
- Ie(t);
725
+ Oe(t);
753
726
  }, e.prototype.complete = function() {
754
727
  var t = this.partialObserver;
755
728
  if (t.complete)
756
729
  try {
757
730
  t.complete();
758
- } catch (n) {
759
- Ie(n);
731
+ } catch (r) {
732
+ Oe(r);
760
733
  }
761
734
  }, e;
762
- }(), at = function(e) {
763
- ie(t, e);
764
- function t(n, r, i) {
765
- var o = e.call(this) || this, s;
766
- if (re(n) || !n)
767
- s = {
768
- next: n ?? void 0,
769
- error: r ?? void 0,
770
- complete: i ?? void 0
771
- };
772
- else {
773
- var a;
774
- o && cn.useDeprecatedNextContext ? (a = Object.create(n), a.unsubscribe = function() {
775
- return o.unsubscribe();
776
- }, s = {
777
- next: n.next && Ze(n.next, a),
778
- error: n.error && Ze(n.error, a),
779
- complete: n.complete && Ze(n.complete, a)
780
- }) : s = n;
781
- }
782
- return o.destination = new Er(s), o;
735
+ }(), ct = function(e) {
736
+ Ae(t, e);
737
+ function t(r, n, o) {
738
+ var i = e.call(this) || this, s;
739
+ return oe(r) || !r ? s = {
740
+ next: r ?? void 0,
741
+ error: n ?? void 0,
742
+ complete: o ?? void 0
743
+ } : s = r, i.destination = new En(s), i;
783
744
  }
784
745
  return t;
785
- }(hn);
786
- function Ie(e) {
787
- _r(e);
746
+ }(hr);
747
+ function Oe(e) {
748
+ Bn(e);
788
749
  }
789
- function xr(e) {
750
+ function xn(e) {
790
751
  throw e;
791
752
  }
792
- var wr = {
753
+ var wn = {
793
754
  closed: !0,
794
- next: At,
795
- error: xr,
796
- complete: At
797
- }, Cr = function() {
755
+ next: Pt,
756
+ error: xn,
757
+ complete: Pt
758
+ }, Cn = function() {
798
759
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
799
760
  }();
800
- function Sr(e) {
761
+ function Sn(e) {
801
762
  return e;
802
763
  }
803
- function Ar(e) {
804
- return e.length === 0 ? Sr : e.length === 1 ? e[0] : function(n) {
805
- return e.reduce(function(r, i) {
806
- return i(r);
807
- }, n);
764
+ function An(e) {
765
+ return e.length === 0 ? Sn : e.length === 1 ? e[0] : function(r) {
766
+ return e.reduce(function(n, o) {
767
+ return o(n);
768
+ }, r);
808
769
  };
809
770
  }
810
- var Tt = function() {
771
+ var Mt = function() {
811
772
  function e(t) {
812
773
  t && (this._subscribe = t);
813
774
  }
814
775
  return e.prototype.lift = function(t) {
815
- var n = new e();
816
- return n.source = this, n.operator = t, n;
817
- }, e.prototype.subscribe = function(t, n, r) {
818
- var i = this, o = Pr(t) ? t : new at(t, n, r);
776
+ var r = new e();
777
+ return r.source = this, r.operator = t, r;
778
+ }, e.prototype.subscribe = function(t, r, n) {
779
+ var o = this, i = Pn(t) ? t : new ct(t, r, n);
819
780
  return Le(function() {
820
- var s = i, a = s.operator, u = s.source;
821
- o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
822
- }), o;
781
+ var s = o, a = s.operator, u = s.source;
782
+ i.add(a ? a.call(i, u) : u ? o._subscribe(i) : o._trySubscribe(i));
783
+ }), i;
823
784
  }, e.prototype._trySubscribe = function(t) {
824
785
  try {
825
786
  return this._subscribe(t);
826
- } catch (n) {
827
- t.error(n);
787
+ } catch (r) {
788
+ t.error(r);
828
789
  }
829
- }, e.prototype.forEach = function(t, n) {
830
- var r = this;
831
- return n = Pt(n), new n(function(i, o) {
832
- var s = new at({
790
+ }, e.prototype.forEach = function(t, r) {
791
+ var n = this;
792
+ return r = Ht(r), new r(function(o, i) {
793
+ var s = new ct({
833
794
  next: function(a) {
834
795
  try {
835
796
  t(a);
836
797
  } catch (u) {
837
- o(u), s.unsubscribe();
798
+ i(u), s.unsubscribe();
838
799
  }
839
800
  },
840
- error: o,
841
- complete: i
801
+ error: i,
802
+ complete: o
842
803
  });
843
- r.subscribe(s);
804
+ n.subscribe(s);
844
805
  });
845
806
  }, e.prototype._subscribe = function(t) {
846
- var n;
847
- return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
848
- }, e.prototype[Cr] = function() {
807
+ var r;
808
+ return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
809
+ }, e.prototype[Cn] = function() {
849
810
  return this;
850
811
  }, e.prototype.pipe = function() {
851
- for (var t = [], n = 0; n < arguments.length; n++)
852
- t[n] = arguments[n];
853
- return Ar(t)(this);
812
+ for (var t = [], r = 0; r < arguments.length; r++)
813
+ t[r] = arguments[r];
814
+ return An(t)(this);
854
815
  }, e.prototype.toPromise = function(t) {
855
- var n = this;
856
- return t = Pt(t), new t(function(r, i) {
857
- var o;
858
- n.subscribe(function(s) {
859
- return o = s;
816
+ var r = this;
817
+ return t = Ht(t), new t(function(n, o) {
818
+ var i;
819
+ r.subscribe(function(s) {
820
+ return i = s;
860
821
  }, function(s) {
861
- return i(s);
822
+ return o(s);
862
823
  }, function() {
863
- return r(o);
824
+ return n(i);
864
825
  });
865
826
  });
866
827
  }, e.create = function(t) {
867
828
  return new e(t);
868
829
  }, e;
869
830
  }();
870
- function Pt(e) {
831
+ function Ht(e) {
871
832
  var t;
872
- return (t = e ?? cn.Promise) !== null && t !== void 0 ? t : Promise;
833
+ return (t = e ?? yn.Promise) !== null && t !== void 0 ? t : Promise;
873
834
  }
874
- function Tr(e) {
875
- return e && re(e.next) && re(e.error) && re(e.complete);
835
+ function Tn(e) {
836
+ return e && oe(e.next) && oe(e.error) && oe(e.complete);
876
837
  }
877
- function Pr(e) {
878
- return e && e instanceof hn || Tr(e) && ln(e);
838
+ function Pn(e) {
839
+ return e && e instanceof hr || Tn(e) && cr(e);
879
840
  }
880
- var Mr = an(function(e) {
841
+ var Mn = ur(function(e) {
881
842
  return function() {
882
843
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
883
844
  };
884
- }), fn = function(e) {
885
- ie(t, e);
845
+ }), fr = function(e) {
846
+ Ae(t, e);
886
847
  function t() {
887
- var n = e.call(this) || this;
888
- return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
848
+ var r = e.call(this) || this;
849
+ return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
889
850
  }
890
- return t.prototype.lift = function(n) {
891
- var r = new Mt(this, this);
892
- return r.operator = n, r;
851
+ return t.prototype.lift = function(r) {
852
+ var n = new Ot(this, this);
853
+ return n.operator = r, n;
893
854
  }, t.prototype._throwIfClosed = function() {
894
855
  if (this.closed)
895
- throw new Mr();
896
- }, t.prototype.next = function(n) {
897
- var r = this;
856
+ throw new Mn();
857
+ }, t.prototype.next = function(r) {
858
+ var n = this;
898
859
  Le(function() {
899
- var i, o;
900
- if (r._throwIfClosed(), !r.isStopped) {
901
- r.currentObservers || (r.currentObservers = Array.from(r.observers));
860
+ var o, i;
861
+ if (n._throwIfClosed(), !n.isStopped) {
862
+ n.currentObservers || (n.currentObservers = Array.from(n.observers));
902
863
  try {
903
- for (var s = it(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
864
+ for (var s = st(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
904
865
  var u = a.value;
905
- u.next(n);
866
+ u.next(r);
906
867
  }
907
868
  } catch (l) {
908
- i = { error: l };
869
+ o = { error: l };
909
870
  } finally {
910
871
  try {
911
- a && !a.done && (o = s.return) && o.call(s);
872
+ a && !a.done && (i = s.return) && i.call(s);
912
873
  } finally {
913
- if (i)
914
- throw i.error;
874
+ if (o)
875
+ throw o.error;
915
876
  }
916
877
  }
917
878
  }
918
879
  });
919
- }, t.prototype.error = function(n) {
920
- var r = this;
880
+ }, t.prototype.error = function(r) {
881
+ var n = this;
921
882
  Le(function() {
922
- if (r._throwIfClosed(), !r.isStopped) {
923
- r.hasError = r.isStopped = !0, r.thrownError = n;
924
- for (var i = r.observers; i.length; )
925
- i.shift().error(n);
883
+ if (n._throwIfClosed(), !n.isStopped) {
884
+ n.hasError = n.isStopped = !0, n.thrownError = r;
885
+ for (var o = n.observers; o.length; )
886
+ o.shift().error(r);
926
887
  }
927
888
  });
928
889
  }, t.prototype.complete = function() {
929
- var n = this;
890
+ var r = this;
930
891
  Le(function() {
931
- if (n._throwIfClosed(), !n.isStopped) {
932
- n.isStopped = !0;
933
- for (var r = n.observers; r.length; )
934
- r.shift().complete();
892
+ if (r._throwIfClosed(), !r.isStopped) {
893
+ r.isStopped = !0;
894
+ for (var n = r.observers; n.length; )
895
+ n.shift().complete();
935
896
  }
936
897
  });
937
898
  }, t.prototype.unsubscribe = function() {
938
899
  this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
939
900
  }, Object.defineProperty(t.prototype, "observed", {
940
901
  get: function() {
941
- var n;
942
- return ((n = this.observers) === null || n === void 0 ? void 0 : n.length) > 0;
902
+ var r;
903
+ return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
943
904
  },
944
905
  enumerable: !1,
945
906
  configurable: !0
946
- }), t.prototype._trySubscribe = function(n) {
947
- return this._throwIfClosed(), e.prototype._trySubscribe.call(this, n);
948
- }, t.prototype._subscribe = function(n) {
949
- return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
950
- }, t.prototype._innerSubscribe = function(n) {
951
- var r = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
952
- return o || s ? un : (this.currentObservers = null, a.push(n), new Ge(function() {
953
- r.currentObservers = null, st(a, n);
907
+ }), t.prototype._trySubscribe = function(r) {
908
+ return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
909
+ }, t.prototype._subscribe = function(r) {
910
+ return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
911
+ }, t.prototype._innerSubscribe = function(r) {
912
+ var n = this, o = this, i = o.hasError, s = o.isStopped, a = o.observers;
913
+ return i || s ? lr : (this.currentObservers = null, a.push(r), new ke(function() {
914
+ n.currentObservers = null, lt(a, r);
954
915
  }));
955
- }, t.prototype._checkFinalizedStatuses = function(n) {
956
- var r = this, i = r.hasError, o = r.thrownError, s = r.isStopped;
957
- i ? n.error(o) : s && n.complete();
916
+ }, t.prototype._checkFinalizedStatuses = function(r) {
917
+ var n = this, o = n.hasError, i = n.thrownError, s = n.isStopped;
918
+ o ? r.error(i) : s && r.complete();
958
919
  }, t.prototype.asObservable = function() {
959
- var n = new Tt();
960
- return n.source = this, n;
961
- }, t.create = function(n, r) {
962
- return new Mt(n, r);
920
+ var r = new Mt();
921
+ return r.source = this, r;
922
+ }, t.create = function(r, n) {
923
+ return new Ot(r, n);
963
924
  }, t;
964
- }(Tt), Mt = function(e) {
965
- ie(t, e);
966
- function t(n, r) {
967
- var i = e.call(this) || this;
968
- return i.destination = n, i.source = r, i;
925
+ }(Mt), Ot = function(e) {
926
+ Ae(t, e);
927
+ function t(r, n) {
928
+ var o = e.call(this) || this;
929
+ return o.destination = r, o.source = n, o;
969
930
  }
970
- return t.prototype.next = function(n) {
971
- var r, i;
972
- (i = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || i === void 0 || i.call(r, n);
973
- }, t.prototype.error = function(n) {
974
- var r, i;
975
- (i = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || i === void 0 || i.call(r, n);
931
+ return t.prototype.next = function(r) {
932
+ var n, o;
933
+ (o = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || o === void 0 || o.call(n, r);
934
+ }, t.prototype.error = function(r) {
935
+ var n, o;
936
+ (o = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || o === void 0 || o.call(n, r);
976
937
  }, t.prototype.complete = function() {
977
- var n, r;
978
- (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
979
- }, t.prototype._subscribe = function(n) {
980
- var r, i;
981
- return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : un;
938
+ var r, n;
939
+ (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
940
+ }, t.prototype._subscribe = function(r) {
941
+ var n, o;
942
+ return (o = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && o !== void 0 ? o : lr;
982
943
  }, t;
983
- }(fn), dn = {
944
+ }(fr), dr = {
984
945
  now: function() {
985
- return (dn.delegate || Date).now();
946
+ return (dr.delegate || Date).now();
986
947
  },
987
948
  delegate: void 0
988
- }, Hr = function(e) {
989
- ie(t, e);
990
- function t(n, r, i) {
991
- n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = dn);
992
- var o = e.call(this) || this;
993
- return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
949
+ }, Hn = function(e) {
950
+ Ae(t, e);
951
+ function t(r, n, o) {
952
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), o === void 0 && (o = dr);
953
+ var i = e.call(this) || this;
954
+ return i._bufferSize = r, i._windowTime = n, i._timestampProvider = o, i._buffer = [], i._infiniteTimeWindow = !0, i._infiniteTimeWindow = n === 1 / 0, i._bufferSize = Math.max(1, r), i._windowTime = Math.max(1, n), i;
994
955
  }
995
- return t.prototype.next = function(n) {
996
- var r = this, i = r.isStopped, o = r._buffer, s = r._infiniteTimeWindow, a = r._timestampProvider, u = r._windowTime;
997
- i || (o.push(n), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, n);
998
- }, t.prototype._subscribe = function(n) {
956
+ return t.prototype.next = function(r) {
957
+ var n = this, o = n.isStopped, i = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, u = n._windowTime;
958
+ o || (i.push(r), !s && i.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
959
+ }, t.prototype._subscribe = function(r) {
999
960
  this._throwIfClosed(), this._trimBuffer();
1000
- for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), u = 0; u < a.length && !n.closed; u += o ? 1 : 2)
1001
- n.next(a[u]);
1002
- return this._checkFinalizedStatuses(n), r;
961
+ for (var n = this._innerSubscribe(r), o = this, i = o._infiniteTimeWindow, s = o._buffer, a = s.slice(), u = 0; u < a.length && !r.closed; u += i ? 1 : 2)
962
+ r.next(a[u]);
963
+ return this._checkFinalizedStatuses(r), n;
1003
964
  }, t.prototype._trimBuffer = function() {
1004
- var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, s = n._infiniteTimeWindow, a = (s ? 1 : 2) * r;
1005
- if (r < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
1006
- for (var u = i.now(), l = 0, c = 1; c < o.length && o[c] <= u; c += 2)
965
+ var r = this, n = r._bufferSize, o = r._timestampProvider, i = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
966
+ if (n < 1 / 0 && a < i.length && i.splice(0, i.length - a), !s) {
967
+ for (var u = o.now(), l = 0, c = 1; c < i.length && i[c] <= u; c += 2)
1007
968
  l = c;
1008
- l && o.splice(0, l + 1);
969
+ l && i.splice(0, l + 1);
1009
970
  }
1010
971
  }, t;
1011
- }(fn);
1012
- const Ht = [], It = {}, Ir = (e, t = 0) => {
1013
- if (Ht.indexOf(e) == -1) {
1014
- const n = new Hr(t);
1015
- It[e] = n, Ht.push(e);
972
+ }(fr);
973
+ const It = [], Nt = {}, On = (e, t = 0) => {
974
+ if (It.indexOf(e) == -1) {
975
+ const r = new Hn(t);
976
+ Nt[e] = r, It.push(e);
1016
977
  }
1017
- return It[e];
978
+ return Nt[e];
1018
979
  }, fe = [];
1019
- function Or(e, t) {
980
+ function In(e, t) {
1020
981
  return {
1021
- subscribe: ke(e, t).subscribe
982
+ subscribe: je(e, t).subscribe
1022
983
  };
1023
984
  }
1024
- function ke(e, t = Q) {
1025
- let n;
1026
- const r = /* @__PURE__ */ new Set();
1027
- function i(a) {
1028
- if (nn(e, a) && (e = a, n)) {
985
+ function je(e, t = Q) {
986
+ let r;
987
+ const n = /* @__PURE__ */ new Set();
988
+ function o(a) {
989
+ if (or(e, a) && (e = a, r)) {
1029
990
  const u = !fe.length;
1030
- for (const l of r)
991
+ for (const l of n)
1031
992
  l[1](), fe.push(l, e);
1032
993
  if (u) {
1033
994
  for (let l = 0; l < fe.length; l += 2)
@@ -1036,23 +997,23 @@ function ke(e, t = Q) {
1036
997
  }
1037
998
  }
1038
999
  }
1039
- function o(a) {
1040
- i(a(e));
1000
+ function i(a) {
1001
+ o(a(e));
1041
1002
  }
1042
1003
  function s(a, u = Q) {
1043
1004
  const l = [a, u];
1044
- return r.add(l), r.size === 1 && (n = t(i, o) || Q), a(e), () => {
1045
- r.delete(l), r.size === 0 && n && (n(), n = null);
1005
+ return n.add(l), n.size === 1 && (r = t(o, i) || Q), a(e), () => {
1006
+ n.delete(l), n.size === 0 && r && (r(), r = null);
1046
1007
  };
1047
1008
  }
1048
- return { set: i, update: o, subscribe: s };
1009
+ return { set: o, update: i, subscribe: s };
1049
1010
  }
1050
- function _e(e, t, n) {
1051
- const r = !Array.isArray(e), i = r ? [e] : e;
1052
- if (!i.every(Boolean))
1011
+ function ye(e, t, r) {
1012
+ const n = !Array.isArray(e), o = n ? [e] : e;
1013
+ if (!o.every(Boolean))
1053
1014
  throw new Error("derived() expects stores as input, got a falsy value");
1054
- const o = t.length < 2;
1055
- return Or(n, (s, a) => {
1015
+ const i = t.length < 2;
1016
+ return In(r, (s, a) => {
1056
1017
  let u = !1;
1057
1018
  const l = [];
1058
1019
  let c = 0, h = Q;
@@ -1060,10 +1021,10 @@ function _e(e, t, n) {
1060
1021
  if (c)
1061
1022
  return;
1062
1023
  h();
1063
- const m = t(r ? l[0] : l, s, a);
1064
- o ? s(m) : h = bt(m) ? m : Q;
1065
- }, b = i.map(
1066
- (m, d) => rn(
1024
+ const m = t(n ? l[0] : l, s, a);
1025
+ i ? s(m) : h = _t(m) ? m : Q;
1026
+ }, b = o.map(
1027
+ (m, d) => ir(
1067
1028
  m,
1068
1029
  (C) => {
1069
1030
  l[d] = C, c &= ~(1 << d), u && f();
@@ -1078,186 +1039,236 @@ function _e(e, t, n) {
1078
1039
  };
1079
1040
  });
1080
1041
  }
1081
- function Nr(e) {
1042
+ function Nn(e) {
1082
1043
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1083
1044
  }
1084
- var Lr = function(t) {
1085
- return Rr(t) && !$r(t);
1045
+ var Ln = function(t) {
1046
+ return Rn(t) && !$n(t);
1086
1047
  };
1087
- function Rr(e) {
1048
+ function Rn(e) {
1088
1049
  return !!e && typeof e == "object";
1089
1050
  }
1090
- function $r(e) {
1051
+ function $n(e) {
1091
1052
  var t = Object.prototype.toString.call(e);
1092
- return t === "[object RegExp]" || t === "[object Date]" || Dr(e);
1053
+ return t === "[object RegExp]" || t === "[object Date]" || Dn(e);
1093
1054
  }
1094
- var Fr = typeof Symbol == "function" && Symbol.for, Ur = Fr ? Symbol.for("react.element") : 60103;
1095
- function Dr(e) {
1096
- return e.$$typeof === Ur;
1055
+ var Fn = typeof Symbol == "function" && Symbol.for, Un = Fn ? Symbol.for("react.element") : 60103;
1056
+ function Dn(e) {
1057
+ return e.$$typeof === Un;
1097
1058
  }
1098
- function Gr(e) {
1059
+ function Gn(e) {
1099
1060
  return Array.isArray(e) ? [] : {};
1100
1061
  }
1101
- function Se(e, t) {
1102
- return t.clone !== !1 && t.isMergeableObject(e) ? be(Gr(e), e, t) : e;
1062
+ function Ce(e, t) {
1063
+ return t.clone !== !1 && t.isMergeableObject(e) ? me(Gn(e), e, t) : e;
1103
1064
  }
1104
- function kr(e, t, n) {
1105
- return e.concat(t).map(function(r) {
1106
- return Se(r, n);
1065
+ function kn(e, t, r) {
1066
+ return e.concat(t).map(function(n) {
1067
+ return Ce(n, r);
1107
1068
  });
1108
1069
  }
1109
- function jr(e, t) {
1070
+ function jn(e, t) {
1110
1071
  if (!t.customMerge)
1111
- return be;
1112
- var n = t.customMerge(e);
1113
- return typeof n == "function" ? n : be;
1072
+ return me;
1073
+ var r = t.customMerge(e);
1074
+ return typeof r == "function" ? r : me;
1114
1075
  }
1115
- function Wr(e) {
1076
+ function Wn(e) {
1116
1077
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1117
1078
  return Object.propertyIsEnumerable.call(e, t);
1118
1079
  }) : [];
1119
1080
  }
1120
- function Ot(e) {
1121
- return Object.keys(e).concat(Wr(e));
1081
+ function Lt(e) {
1082
+ return Object.keys(e).concat(Wn(e));
1122
1083
  }
1123
- function pn(e, t) {
1084
+ function pr(e, t) {
1124
1085
  try {
1125
1086
  return t in e;
1126
1087
  } catch {
1127
1088
  return !1;
1128
1089
  }
1129
1090
  }
1130
- function Vr(e, t) {
1131
- return pn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1091
+ function Vn(e, t) {
1092
+ return pr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1132
1093
  }
1133
- function zr(e, t, n) {
1134
- var r = {};
1135
- return n.isMergeableObject(e) && Ot(e).forEach(function(i) {
1136
- r[i] = Se(e[i], n);
1137
- }), Ot(t).forEach(function(i) {
1138
- Vr(e, i) || (pn(e, i) && n.isMergeableObject(t[i]) ? r[i] = jr(i, n)(e[i], t[i], n) : r[i] = Se(t[i], n));
1139
- }), r;
1140
- }
1141
- function be(e, t, n) {
1142
- n = n || {}, n.arrayMerge = n.arrayMerge || kr, n.isMergeableObject = n.isMergeableObject || Lr, n.cloneUnlessOtherwiseSpecified = Se;
1143
- var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
1144
- return o ? r ? n.arrayMerge(e, t, n) : zr(e, t, n) : Se(t, n);
1145
- }
1146
- be.all = function(t, n) {
1094
+ function zn(e, t, r) {
1095
+ var n = {};
1096
+ return r.isMergeableObject(e) && Lt(e).forEach(function(o) {
1097
+ n[o] = Ce(e[o], r);
1098
+ }), Lt(t).forEach(function(o) {
1099
+ Vn(e, o) || (pr(e, o) && r.isMergeableObject(t[o]) ? n[o] = jn(o, r)(e[o], t[o], r) : n[o] = Ce(t[o], r));
1100
+ }), n;
1101
+ }
1102
+ function me(e, t, r) {
1103
+ r = r || {}, r.arrayMerge = r.arrayMerge || kn, r.isMergeableObject = r.isMergeableObject || Ln, r.cloneUnlessOtherwiseSpecified = Ce;
1104
+ var n = Array.isArray(t), o = Array.isArray(e), i = n === o;
1105
+ return i ? n ? r.arrayMerge(e, t, r) : zn(e, t, r) : Ce(t, r);
1106
+ }
1107
+ me.all = function(t, r) {
1147
1108
  if (!Array.isArray(t))
1148
1109
  throw new Error("first argument should be an array");
1149
- return t.reduce(function(r, i) {
1150
- return be(r, i, n);
1110
+ return t.reduce(function(n, o) {
1111
+ return me(n, o, r);
1151
1112
  }, {});
1152
1113
  };
1153
- var Xr = be, Zr = Xr;
1154
- const qr = /* @__PURE__ */ Nr(Zr);
1155
- function qe(e, t) {
1156
- var n = t && t.cache ? t.cache : ti, r = t && t.serializer ? t.serializer : ei, i = t && t.strategy ? t.strategy : Jr;
1157
- return i(e, {
1158
- cache: n,
1159
- serializer: r
1114
+ var Xn = me, Zn = Xn;
1115
+ const qn = /* @__PURE__ */ Nn(Zn);
1116
+ var ht = function(e, t) {
1117
+ return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1118
+ r.__proto__ = n;
1119
+ } || function(r, n) {
1120
+ for (var o in n)
1121
+ Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
1122
+ }, ht(e, t);
1123
+ };
1124
+ function We(e, t) {
1125
+ if (typeof t != "function" && t !== null)
1126
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1127
+ ht(e, t);
1128
+ function r() {
1129
+ this.constructor = e;
1130
+ }
1131
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1132
+ }
1133
+ var Y = function() {
1134
+ return Y = Object.assign || function(t) {
1135
+ for (var r, n = 1, o = arguments.length; n < o; n++) {
1136
+ r = arguments[n];
1137
+ for (var i in r)
1138
+ Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
1139
+ }
1140
+ return t;
1141
+ }, Y.apply(this, arguments);
1142
+ };
1143
+ function Qn(e, t) {
1144
+ var r = {};
1145
+ for (var n in e)
1146
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1147
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
1148
+ for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
1149
+ t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
1150
+ return r;
1151
+ }
1152
+ function Qe(e, t, r) {
1153
+ if (r || arguments.length === 2)
1154
+ for (var n = 0, o = t.length, i; n < o; n++)
1155
+ (i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
1156
+ return e.concat(i || Array.prototype.slice.call(t));
1157
+ }
1158
+ function Je(e, t) {
1159
+ var r = t && t.cache ? t.cache : no, n = t && t.serializer ? t.serializer : to, o = t && t.strategy ? t.strategy : Kn;
1160
+ return o(e, {
1161
+ cache: r,
1162
+ serializer: n
1160
1163
  });
1161
1164
  }
1162
- function Qr(e) {
1165
+ function Jn(e) {
1163
1166
  return e == null || typeof e == "number" || typeof e == "boolean";
1164
1167
  }
1165
- function mn(e, t, n, r) {
1166
- var i = Qr(r) ? r : n(r), o = t.get(i);
1167
- return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
1168
- }
1169
- function bn(e, t, n) {
1170
- var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
1171
- return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
1168
+ function Yn(e, t, r, n) {
1169
+ var o = Jn(n) ? n : r(n), i = t.get(o);
1170
+ return typeof i > "u" && (i = e.call(this, n), t.set(o, i)), i;
1172
1171
  }
1173
- function vt(e, t, n, r, i) {
1174
- return n.bind(t, e, r, i);
1172
+ function mr(e, t, r) {
1173
+ var n = Array.prototype.slice.call(arguments, 3), o = r(n), i = t.get(o);
1174
+ return typeof i > "u" && (i = e.apply(this, n), t.set(o, i)), i;
1175
1175
  }
1176
- function Jr(e, t) {
1177
- var n = e.length === 1 ? mn : bn;
1178
- return vt(e, this, n, t.cache.create(), t.serializer);
1176
+ function br(e, t, r, n, o) {
1177
+ return r.bind(t, e, n, o);
1179
1178
  }
1180
- function Yr(e, t) {
1181
- return vt(e, this, bn, t.cache.create(), t.serializer);
1179
+ function Kn(e, t) {
1180
+ var r = e.length === 1 ? Yn : mr;
1181
+ return br(e, this, r, t.cache.create(), t.serializer);
1182
1182
  }
1183
- function Kr(e, t) {
1184
- return vt(e, this, mn, t.cache.create(), t.serializer);
1183
+ function eo(e, t) {
1184
+ return br(e, this, mr, t.cache.create(), t.serializer);
1185
1185
  }
1186
- var ei = function() {
1186
+ var to = function() {
1187
1187
  return JSON.stringify(arguments);
1188
- };
1189
- function yt() {
1190
- this.cache = /* @__PURE__ */ Object.create(null);
1191
- }
1192
- yt.prototype.get = function(e) {
1193
- return this.cache[e];
1194
- };
1195
- yt.prototype.set = function(e, t) {
1196
- this.cache[e] = t;
1197
- };
1198
- var ti = {
1188
+ }, ro = (
1189
+ /** @class */
1190
+ function() {
1191
+ function e() {
1192
+ this.cache = /* @__PURE__ */ Object.create(null);
1193
+ }
1194
+ return e.prototype.get = function(t) {
1195
+ return this.cache[t];
1196
+ }, e.prototype.set = function(t, r) {
1197
+ this.cache[t] = r;
1198
+ }, e;
1199
+ }()
1200
+ ), no = {
1199
1201
  create: function() {
1200
- return new yt();
1202
+ return new ro();
1201
1203
  }
1202
- }, Qe = {
1203
- variadic: Yr,
1204
- monadic: Kr
1205
- }, x;
1204
+ }, Ye = {
1205
+ variadic: eo
1206
+ }, Ue = function() {
1207
+ return Ue = Object.assign || function(t) {
1208
+ for (var r, n = 1, o = arguments.length; n < o; n++) {
1209
+ r = arguments[n];
1210
+ for (var i in r)
1211
+ Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
1212
+ }
1213
+ return t;
1214
+ }, Ue.apply(this, arguments);
1215
+ };
1216
+ var x;
1206
1217
  (function(e) {
1207
1218
  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";
1208
1219
  })(x || (x = {}));
1209
- var I;
1220
+ var H;
1210
1221
  (function(e) {
1211
1222
  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";
1212
- })(I || (I = {}));
1213
- var ge;
1223
+ })(H || (H = {}));
1224
+ var be;
1214
1225
  (function(e) {
1215
1226
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1216
- })(ge || (ge = {}));
1217
- function Nt(e) {
1218
- return e.type === I.literal;
1227
+ })(be || (be = {}));
1228
+ function Rt(e) {
1229
+ return e.type === H.literal;
1219
1230
  }
1220
- function ni(e) {
1221
- return e.type === I.argument;
1231
+ function oo(e) {
1232
+ return e.type === H.argument;
1222
1233
  }
1223
- function gn(e) {
1224
- return e.type === I.number;
1234
+ function gr(e) {
1235
+ return e.type === H.number;
1225
1236
  }
1226
- function vn(e) {
1227
- return e.type === I.date;
1237
+ function vr(e) {
1238
+ return e.type === H.date;
1228
1239
  }
1229
- function yn(e) {
1230
- return e.type === I.time;
1240
+ function yr(e) {
1241
+ return e.type === H.time;
1231
1242
  }
1232
- function _n(e) {
1233
- return e.type === I.select;
1243
+ function _r(e) {
1244
+ return e.type === H.select;
1234
1245
  }
1235
- function Bn(e) {
1236
- return e.type === I.plural;
1246
+ function Br(e) {
1247
+ return e.type === H.plural;
1237
1248
  }
1238
- function ri(e) {
1239
- return e.type === I.pound;
1249
+ function io(e) {
1250
+ return e.type === H.pound;
1240
1251
  }
1241
- function En(e) {
1242
- return e.type === I.tag;
1252
+ function Er(e) {
1253
+ return e.type === H.tag;
1243
1254
  }
1244
- function xn(e) {
1245
- return !!(e && typeof e == "object" && e.type === ge.number);
1255
+ function xr(e) {
1256
+ return !!(e && typeof e == "object" && e.type === be.number);
1246
1257
  }
1247
- function ut(e) {
1248
- return !!(e && typeof e == "object" && e.type === ge.dateTime);
1258
+ function ft(e) {
1259
+ return !!(e && typeof e == "object" && e.type === be.dateTime);
1249
1260
  }
1250
- var wn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ii = /(?:[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;
1251
- function oi(e) {
1261
+ var wr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, so = /(?:[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;
1262
+ function ao(e) {
1252
1263
  var t = {};
1253
- return e.replace(ii, function(n) {
1254
- var r = n.length;
1255
- switch (n[0]) {
1264
+ return e.replace(so, function(r) {
1265
+ var n = r.length;
1266
+ switch (r[0]) {
1256
1267
  case "G":
1257
- t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
1268
+ t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1258
1269
  break;
1259
1270
  case "y":
1260
- t.year = r === 2 ? "2-digit" : "numeric";
1271
+ t.year = n === 2 ? "2-digit" : "numeric";
1261
1272
  break;
1262
1273
  case "Y":
1263
1274
  case "u":
@@ -1269,30 +1280,30 @@ function oi(e) {
1269
1280
  throw new RangeError("`q/Q` (quarter) patterns are not supported");
1270
1281
  case "M":
1271
1282
  case "L":
1272
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
1283
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
1273
1284
  break;
1274
1285
  case "w":
1275
1286
  case "W":
1276
1287
  throw new RangeError("`w/W` (week) patterns are not supported");
1277
1288
  case "d":
1278
- t.day = ["numeric", "2-digit"][r - 1];
1289
+ t.day = ["numeric", "2-digit"][n - 1];
1279
1290
  break;
1280
1291
  case "D":
1281
1292
  case "F":
1282
1293
  case "g":
1283
1294
  throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
1284
1295
  case "E":
1285
- t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
1296
+ t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1286
1297
  break;
1287
1298
  case "e":
1288
- if (r < 4)
1299
+ if (n < 4)
1289
1300
  throw new RangeError("`e..eee` (weekday) patterns are not supported");
1290
- t.weekday = ["short", "long", "narrow", "short"][r - 4];
1301
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
1291
1302
  break;
1292
1303
  case "c":
1293
- if (r < 4)
1304
+ if (n < 4)
1294
1305
  throw new RangeError("`c..ccc` (weekday) patterns are not supported");
1295
- t.weekday = ["short", "long", "narrow", "short"][r - 4];
1306
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
1296
1307
  break;
1297
1308
  case "a":
1298
1309
  t.hour12 = !0;
@@ -1301,32 +1312,32 @@ function oi(e) {
1301
1312
  case "B":
1302
1313
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
1303
1314
  case "h":
1304
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
1315
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
1305
1316
  break;
1306
1317
  case "H":
1307
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
1318
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
1308
1319
  break;
1309
1320
  case "K":
1310
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
1321
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
1311
1322
  break;
1312
1323
  case "k":
1313
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
1324
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
1314
1325
  break;
1315
1326
  case "j":
1316
1327
  case "J":
1317
1328
  case "C":
1318
1329
  throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
1319
1330
  case "m":
1320
- t.minute = ["numeric", "2-digit"][r - 1];
1331
+ t.minute = ["numeric", "2-digit"][n - 1];
1321
1332
  break;
1322
1333
  case "s":
1323
- t.second = ["numeric", "2-digit"][r - 1];
1334
+ t.second = ["numeric", "2-digit"][n - 1];
1324
1335
  break;
1325
1336
  case "S":
1326
1337
  case "A":
1327
1338
  throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
1328
1339
  case "z":
1329
- t.timeZoneName = r < 4 ? "short" : "long";
1340
+ t.timeZoneName = n < 4 ? "short" : "long";
1330
1341
  break;
1331
1342
  case "Z":
1332
1343
  case "O":
@@ -1339,14 +1350,24 @@ function oi(e) {
1339
1350
  return "";
1340
1351
  }), t;
1341
1352
  }
1342
- var si = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1343
- function ai(e) {
1353
+ var I = function() {
1354
+ return I = Object.assign || function(t) {
1355
+ for (var r, n = 1, o = arguments.length; n < o; n++) {
1356
+ r = arguments[n];
1357
+ for (var i in r)
1358
+ Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
1359
+ }
1360
+ return t;
1361
+ }, I.apply(this, arguments);
1362
+ };
1363
+ var uo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1364
+ function lo(e) {
1344
1365
  if (e.length === 0)
1345
1366
  throw new Error("Number skeleton cannot be empty");
1346
- for (var t = e.split(si).filter(function(f) {
1367
+ for (var t = e.split(uo).filter(function(f) {
1347
1368
  return f.length > 0;
1348
- }), n = [], r = 0, i = t; r < i.length; r++) {
1349
- var o = i[r], s = o.split("/");
1369
+ }), r = [], n = 0, o = t; n < o.length; n++) {
1370
+ var i = o[n], s = i.split("/");
1350
1371
  if (s.length === 0)
1351
1372
  throw new Error("Invalid number skeleton");
1352
1373
  for (var a = s[0], u = s.slice(1), l = 0, c = u; l < c.length; l++) {
@@ -1354,21 +1375,21 @@ function ai(e) {
1354
1375
  if (h.length === 0)
1355
1376
  throw new Error("Invalid number skeleton");
1356
1377
  }
1357
- n.push({ stem: a, options: u });
1378
+ r.push({ stem: a, options: u });
1358
1379
  }
1359
- return n;
1380
+ return r;
1360
1381
  }
1361
- function ui(e) {
1382
+ function co(e) {
1362
1383
  return e.replace(/^(.*?)-/, "");
1363
1384
  }
1364
- var Lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Cn = /^(@+)?(\+|#+)?[rs]?$/g, li = /(\*)(0+)|(#+)(0+)|(0+)/g, Sn = /^(0+)$/;
1365
- function Rt(e) {
1385
+ var $t = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Cr = /^(@+)?(\+|#+)?[rs]?$/g, ho = /(\*)(0+)|(#+)(0+)|(0+)/g, Sr = /^(0+)$/;
1386
+ function Ft(e) {
1366
1387
  var t = {};
1367
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Cn, function(n, r, i) {
1368
- return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
1388
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Cr, function(r, n, o) {
1389
+ return typeof o != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : o === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof o == "string" ? o.length : 0)), "";
1369
1390
  }), t;
1370
1391
  }
1371
- function An(e) {
1392
+ function Ar(e) {
1372
1393
  switch (e) {
1373
1394
  case "sign-auto":
1374
1395
  return {
@@ -1408,28 +1429,28 @@ function An(e) {
1408
1429
  };
1409
1430
  }
1410
1431
  }
1411
- function ci(e) {
1432
+ function fo(e) {
1412
1433
  var t;
1413
1434
  if (e[0] === "E" && e[1] === "E" ? (t = {
1414
1435
  notation: "engineering"
1415
1436
  }, e = e.slice(2)) : e[0] === "E" && (t = {
1416
1437
  notation: "scientific"
1417
1438
  }, e = e.slice(1)), t) {
1418
- var n = e.slice(0, 2);
1419
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Sn.test(e))
1439
+ var r = e.slice(0, 2);
1440
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Sr.test(e))
1420
1441
  throw new Error("Malformed concise eng/scientific notation");
1421
1442
  t.minimumIntegerDigits = e.length;
1422
1443
  }
1423
1444
  return t;
1424
1445
  }
1425
- function $t(e) {
1426
- var t = {}, n = An(e);
1427
- return n || t;
1446
+ function Ut(e) {
1447
+ var t = {}, r = Ar(e);
1448
+ return r || t;
1428
1449
  }
1429
- function hi(e) {
1430
- for (var t = {}, n = 0, r = e; n < r.length; n++) {
1431
- var i = r[n];
1432
- switch (i.stem) {
1450
+ function po(e) {
1451
+ for (var t = {}, r = 0, n = e; r < n.length; r++) {
1452
+ var o = n[r];
1453
+ switch (o.stem) {
1433
1454
  case "percent":
1434
1455
  case "%":
1435
1456
  t.style = "percent";
@@ -1438,7 +1459,7 @@ function hi(e) {
1438
1459
  t.style = "percent", t.scale = 100;
1439
1460
  continue;
1440
1461
  case "currency":
1441
- t.style = "currency", t.currency = i.options[0];
1462
+ t.style = "currency", t.currency = o.options[0];
1442
1463
  continue;
1443
1464
  case "group-off":
1444
1465
  case ",_":
@@ -1450,7 +1471,7 @@ function hi(e) {
1450
1471
  continue;
1451
1472
  case "measure-unit":
1452
1473
  case "unit":
1453
- t.style = "unit", t.unit = ui(i.options[0]);
1474
+ t.style = "unit", t.unit = co(o.options[0]);
1454
1475
  continue;
1455
1476
  case "compact-short":
1456
1477
  case "K":
@@ -1461,13 +1482,13 @@ function hi(e) {
1461
1482
  t.notation = "compact", t.compactDisplay = "long";
1462
1483
  continue;
1463
1484
  case "scientific":
1464
- t = A(A(A({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
1465
- return A(A({}, u), $t(l));
1485
+ t = I(I(I({}, t), { notation: "scientific" }), o.options.reduce(function(u, l) {
1486
+ return I(I({}, u), Ut(l));
1466
1487
  }, {}));
1467
1488
  continue;
1468
1489
  case "engineering":
1469
- t = A(A(A({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
1470
- return A(A({}, u), $t(l));
1490
+ t = I(I(I({}, t), { notation: "engineering" }), o.options.reduce(function(u, l) {
1491
+ return I(I({}, u), Ut(l));
1471
1492
  }, {}));
1472
1493
  continue;
1473
1494
  case "notation-simple":
@@ -1486,7 +1507,7 @@ function hi(e) {
1486
1507
  t.currencyDisplay = "symbol";
1487
1508
  continue;
1488
1509
  case "scale":
1489
- t.scale = parseFloat(i.options[0]);
1510
+ t.scale = parseFloat(o.options[0]);
1490
1511
  continue;
1491
1512
  case "rounding-mode-floor":
1492
1513
  t.roundingMode = "floor";
@@ -1510,9 +1531,9 @@ function hi(e) {
1510
1531
  t.roundingMode = "halfExpand";
1511
1532
  continue;
1512
1533
  case "integer-width":
1513
- if (i.options.length > 1)
1534
+ if (o.options.length > 1)
1514
1535
  throw new RangeError("integer-width stems only accept a single optional option");
1515
- i.options[0].replace(li, function(u, l, c, h, f, b) {
1536
+ o.options[0].replace(ho, function(u, l, c, h, f, b) {
1516
1537
  if (l)
1517
1538
  t.minimumIntegerDigits = c.length;
1518
1539
  else {
@@ -1525,32 +1546,32 @@ function hi(e) {
1525
1546
  });
1526
1547
  continue;
1527
1548
  }
1528
- if (Sn.test(i.stem)) {
1529
- t.minimumIntegerDigits = i.stem.length;
1549
+ if (Sr.test(o.stem)) {
1550
+ t.minimumIntegerDigits = o.stem.length;
1530
1551
  continue;
1531
1552
  }
1532
- if (Lt.test(i.stem)) {
1533
- if (i.options.length > 1)
1553
+ if ($t.test(o.stem)) {
1554
+ if (o.options.length > 1)
1534
1555
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1535
- i.stem.replace(Lt, function(u, l, c, h, f, b) {
1556
+ o.stem.replace($t, function(u, l, c, h, f, b) {
1536
1557
  return c === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : f && b ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + b.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1537
1558
  });
1538
- var o = i.options[0];
1539
- o === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = A(A({}, t), Rt(o)));
1559
+ var i = o.options[0];
1560
+ i === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = I(I({}, t), Ft(i)));
1540
1561
  continue;
1541
1562
  }
1542
- if (Cn.test(i.stem)) {
1543
- t = A(A({}, t), Rt(i.stem));
1563
+ if (Cr.test(o.stem)) {
1564
+ t = I(I({}, t), Ft(o.stem));
1544
1565
  continue;
1545
1566
  }
1546
- var s = An(i.stem);
1547
- s && (t = A(A({}, t), s));
1548
- var a = ci(i.stem);
1549
- a && (t = A(A({}, t), a));
1567
+ var s = Ar(o.stem);
1568
+ s && (t = I(I({}, t), s));
1569
+ var a = fo(o.stem);
1570
+ a && (t = I(I({}, t), a));
1550
1571
  }
1551
1572
  return t;
1552
1573
  }
1553
- var Oe = {
1574
+ var Ie = {
1554
1575
  "001": [
1555
1576
  "H",
1556
1577
  "h"
@@ -2965,23 +2986,23 @@ var Oe = {
2965
2986
  "h"
2966
2987
  ]
2967
2988
  };
2968
- function fi(e, t) {
2969
- for (var n = "", r = 0; r < e.length; r++) {
2970
- var i = e.charAt(r);
2971
- if (i === "j") {
2972
- for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2973
- o++, r++;
2974
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = di(t);
2989
+ function mo(e, t) {
2990
+ for (var r = "", n = 0; n < e.length; n++) {
2991
+ var o = e.charAt(n);
2992
+ if (o === "j") {
2993
+ for (var i = 0; n + 1 < e.length && e.charAt(n + 1) === o; )
2994
+ i++, n++;
2995
+ var s = 1 + (i & 1), a = i < 2 ? 1 : 3 + (i >> 1), u = "a", l = bo(t);
2975
2996
  for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2976
- n += u;
2997
+ r += u;
2977
2998
  for (; s-- > 0; )
2978
- n = l + n;
2999
+ r = l + r;
2979
3000
  } else
2980
- i === "J" ? n += "H" : n += i;
3001
+ o === "J" ? r += "H" : r += o;
2981
3002
  }
2982
- return n;
3003
+ return r;
2983
3004
  }
2984
- function di(e) {
3005
+ function bo(e) {
2985
3006
  var t = e.hourCycle;
2986
3007
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2987
3008
  e.hourCycles && // @ts-ignore
@@ -2998,73 +3019,73 @@ function di(e) {
2998
3019
  default:
2999
3020
  throw new Error("Invalid hourCycle");
3000
3021
  }
3001
- var n = e.language, r;
3002
- n !== "root" && (r = e.maximize().region);
3003
- var i = Oe[r || ""] || Oe[n || ""] || Oe["".concat(n, "-001")] || Oe["001"];
3004
- return i[0];
3022
+ var r = e.language, n;
3023
+ r !== "root" && (n = e.maximize().region);
3024
+ var o = Ie[n || ""] || Ie[r || ""] || Ie["".concat(r, "-001")] || Ie["001"];
3025
+ return o[0];
3005
3026
  }
3006
- var Je, pi = new RegExp("^".concat(wn.source, "*")), mi = new RegExp("".concat(wn.source, "*$"));
3027
+ var Ke, go = new RegExp("^".concat(wr.source, "*")), vo = new RegExp("".concat(wr.source, "*$"));
3007
3028
  function w(e, t) {
3008
3029
  return { start: e, end: t };
3009
3030
  }
3010
- var bi = !!String.prototype.startsWith && "_a".startsWith("a", 1), gi = !!String.fromCodePoint, vi = !!Object.fromEntries, yi = !!String.prototype.codePointAt, _i = !!String.prototype.trimStart, Bi = !!String.prototype.trimEnd, Ei = !!Number.isSafeInteger, xi = Ei ? Number.isSafeInteger : function(e) {
3031
+ var yo = !!String.prototype.startsWith && "_a".startsWith("a", 1), _o = !!String.fromCodePoint, Bo = !!Object.fromEntries, Eo = !!String.prototype.codePointAt, xo = !!String.prototype.trimStart, wo = !!String.prototype.trimEnd, Co = !!Number.isSafeInteger, So = Co ? Number.isSafeInteger : function(e) {
3011
3032
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3012
- }, lt = !0;
3033
+ }, dt = !0;
3013
3034
  try {
3014
- var wi = Pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3015
- lt = ((Je = wi.exec("a")) === null || Je === void 0 ? void 0 : Je[0]) === "a";
3035
+ var Ao = Pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3036
+ dt = ((Ke = Ao.exec("a")) === null || Ke === void 0 ? void 0 : Ke[0]) === "a";
3016
3037
  } catch {
3017
- lt = !1;
3038
+ dt = !1;
3018
3039
  }
3019
- var Ft = bi ? (
3040
+ var Dt = yo ? (
3020
3041
  // Native
3021
- function(t, n, r) {
3022
- return t.startsWith(n, r);
3042
+ function(t, r, n) {
3043
+ return t.startsWith(r, n);
3023
3044
  }
3024
3045
  ) : (
3025
3046
  // For IE11
3026
- function(t, n, r) {
3027
- return t.slice(r, r + n.length) === n;
3047
+ function(t, r, n) {
3048
+ return t.slice(n, n + r.length) === r;
3028
3049
  }
3029
- ), ct = gi ? String.fromCodePoint : (
3050
+ ), pt = _o ? String.fromCodePoint : (
3030
3051
  // IE11
3031
3052
  function() {
3032
- for (var t = [], n = 0; n < arguments.length; n++)
3033
- t[n] = arguments[n];
3034
- for (var r = "", i = t.length, o = 0, s; i > o; ) {
3035
- if (s = t[o++], s > 1114111)
3053
+ for (var t = [], r = 0; r < arguments.length; r++)
3054
+ t[r] = arguments[r];
3055
+ for (var n = "", o = t.length, i = 0, s; o > i; ) {
3056
+ if (s = t[i++], s > 1114111)
3036
3057
  throw RangeError(s + " is not a valid code point");
3037
- r += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
3058
+ n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
3038
3059
  }
3039
- return r;
3060
+ return n;
3040
3061
  }
3041
- ), Ut = (
3062
+ ), Gt = (
3042
3063
  // native
3043
- vi ? Object.fromEntries : (
3064
+ Bo ? Object.fromEntries : (
3044
3065
  // Ponyfill
3045
3066
  function(t) {
3046
- for (var n = {}, r = 0, i = t; r < i.length; r++) {
3047
- var o = i[r], s = o[0], a = o[1];
3048
- n[s] = a;
3067
+ for (var r = {}, n = 0, o = t; n < o.length; n++) {
3068
+ var i = o[n], s = i[0], a = i[1];
3069
+ r[s] = a;
3049
3070
  }
3050
- return n;
3071
+ return r;
3051
3072
  }
3052
3073
  )
3053
- ), Tn = yi ? (
3074
+ ), Tr = Eo ? (
3054
3075
  // Native
3055
- function(t, n) {
3056
- return t.codePointAt(n);
3076
+ function(t, r) {
3077
+ return t.codePointAt(r);
3057
3078
  }
3058
3079
  ) : (
3059
3080
  // IE 11
3060
- function(t, n) {
3061
- var r = t.length;
3062
- if (!(n < 0 || n >= r)) {
3063
- var i = t.charCodeAt(n), o;
3064
- return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3081
+ function(t, r) {
3082
+ var n = t.length;
3083
+ if (!(r < 0 || r >= n)) {
3084
+ var o = t.charCodeAt(r), i;
3085
+ return o < 55296 || o > 56319 || r + 1 === n || (i = t.charCodeAt(r + 1)) < 56320 || i > 57343 ? o : (o - 55296 << 10) + (i - 56320) + 65536;
3065
3086
  }
3066
3087
  }
3067
- ), Ci = _i ? (
3088
+ ), To = xo ? (
3068
3089
  // Native
3069
3090
  function(t) {
3070
3091
  return t.trimStart();
@@ -3072,9 +3093,9 @@ var Ft = bi ? (
3072
3093
  ) : (
3073
3094
  // Ponyfill
3074
3095
  function(t) {
3075
- return t.replace(pi, "");
3096
+ return t.replace(go, "");
3076
3097
  }
3077
- ), Si = Bi ? (
3098
+ ), Po = wo ? (
3078
3099
  // Native
3079
3100
  function(t) {
3080
3101
  return t.trimEnd();
@@ -3082,143 +3103,143 @@ var Ft = bi ? (
3082
3103
  ) : (
3083
3104
  // Ponyfill
3084
3105
  function(t) {
3085
- return t.replace(mi, "");
3106
+ return t.replace(vo, "");
3086
3107
  }
3087
3108
  );
3088
- function Pn(e, t) {
3109
+ function Pr(e, t) {
3089
3110
  return new RegExp(e, t);
3090
3111
  }
3091
- var ht;
3092
- if (lt) {
3093
- var Dt = Pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3094
- ht = function(t, n) {
3095
- var r;
3096
- Dt.lastIndex = n;
3097
- var i = Dt.exec(t);
3098
- return (r = i[1]) !== null && r !== void 0 ? r : "";
3112
+ var mt;
3113
+ if (dt) {
3114
+ var kt = Pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3115
+ mt = function(t, r) {
3116
+ var n;
3117
+ kt.lastIndex = r;
3118
+ var o = kt.exec(t);
3119
+ return (n = o[1]) !== null && n !== void 0 ? n : "";
3099
3120
  };
3100
3121
  } else
3101
- ht = function(t, n) {
3102
- for (var r = []; ; ) {
3103
- var i = Tn(t, n);
3104
- if (i === void 0 || Mn(i) || Mi(i))
3122
+ mt = function(t, r) {
3123
+ for (var n = []; ; ) {
3124
+ var o = Tr(t, r);
3125
+ if (o === void 0 || Mr(o) || Io(o))
3105
3126
  break;
3106
- r.push(i), n += i >= 65536 ? 2 : 1;
3127
+ n.push(o), r += o >= 65536 ? 2 : 1;
3107
3128
  }
3108
- return ct.apply(void 0, r);
3129
+ return pt.apply(void 0, n);
3109
3130
  };
3110
- var Ai = (
3131
+ var Mo = (
3111
3132
  /** @class */
3112
3133
  function() {
3113
- function e(t, n) {
3114
- n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
3134
+ function e(t, r) {
3135
+ r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
3115
3136
  }
3116
3137
  return e.prototype.parse = function() {
3117
3138
  if (this.offset() !== 0)
3118
3139
  throw Error("parser can only be used once");
3119
3140
  return this.parseMessage(0, "", !1);
3120
- }, e.prototype.parseMessage = function(t, n, r) {
3121
- for (var i = []; !this.isEOF(); ) {
3122
- var o = this.char();
3123
- if (o === 123) {
3124
- var s = this.parseArgument(t, r);
3141
+ }, e.prototype.parseMessage = function(t, r, n) {
3142
+ for (var o = []; !this.isEOF(); ) {
3143
+ var i = this.char();
3144
+ if (i === 123) {
3145
+ var s = this.parseArgument(t, n);
3125
3146
  if (s.err)
3126
3147
  return s;
3127
- i.push(s.val);
3148
+ o.push(s.val);
3128
3149
  } else {
3129
- if (o === 125 && t > 0)
3150
+ if (i === 125 && t > 0)
3130
3151
  break;
3131
- if (o === 35 && (n === "plural" || n === "selectordinal")) {
3152
+ if (i === 35 && (r === "plural" || r === "selectordinal")) {
3132
3153
  var a = this.clonePosition();
3133
- this.bump(), i.push({
3134
- type: I.pound,
3154
+ this.bump(), o.push({
3155
+ type: H.pound,
3135
3156
  location: w(a, this.clonePosition())
3136
3157
  });
3137
- } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3138
- if (r)
3158
+ } else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
3159
+ if (n)
3139
3160
  break;
3140
3161
  return this.error(x.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
3141
- } else if (o === 60 && !this.ignoreTag && ft(this.peek() || 0)) {
3142
- var s = this.parseTag(t, n);
3162
+ } else if (i === 60 && !this.ignoreTag && bt(this.peek() || 0)) {
3163
+ var s = this.parseTag(t, r);
3143
3164
  if (s.err)
3144
3165
  return s;
3145
- i.push(s.val);
3166
+ o.push(s.val);
3146
3167
  } else {
3147
- var s = this.parseLiteral(t, n);
3168
+ var s = this.parseLiteral(t, r);
3148
3169
  if (s.err)
3149
3170
  return s;
3150
- i.push(s.val);
3171
+ o.push(s.val);
3151
3172
  }
3152
3173
  }
3153
3174
  }
3154
- return { val: i, err: null };
3155
- }, e.prototype.parseTag = function(t, n) {
3156
- var r = this.clonePosition();
3175
+ return { val: o, err: null };
3176
+ }, e.prototype.parseTag = function(t, r) {
3177
+ var n = this.clonePosition();
3157
3178
  this.bump();
3158
- var i = this.parseTagName();
3179
+ var o = this.parseTagName();
3159
3180
  if (this.bumpSpace(), this.bumpIf("/>"))
3160
3181
  return {
3161
3182
  val: {
3162
- type: I.literal,
3163
- value: "<".concat(i, "/>"),
3164
- location: w(r, this.clonePosition())
3183
+ type: H.literal,
3184
+ value: "<".concat(o, "/>"),
3185
+ location: w(n, this.clonePosition())
3165
3186
  },
3166
3187
  err: null
3167
3188
  };
3168
3189
  if (this.bumpIf(">")) {
3169
- var o = this.parseMessage(t + 1, n, !0);
3170
- if (o.err)
3171
- return o;
3172
- var s = o.val, a = this.clonePosition();
3190
+ var i = this.parseMessage(t + 1, r, !0);
3191
+ if (i.err)
3192
+ return i;
3193
+ var s = i.val, a = this.clonePosition();
3173
3194
  if (this.bumpIf("</")) {
3174
- if (this.isEOF() || !ft(this.char()))
3195
+ if (this.isEOF() || !bt(this.char()))
3175
3196
  return this.error(x.INVALID_TAG, w(a, this.clonePosition()));
3176
3197
  var u = this.clonePosition(), l = this.parseTagName();
3177
- return i !== l ? this.error(x.UNMATCHED_CLOSING_TAG, w(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3198
+ return o !== l ? this.error(x.UNMATCHED_CLOSING_TAG, w(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3178
3199
  val: {
3179
- type: I.tag,
3180
- value: i,
3200
+ type: H.tag,
3201
+ value: o,
3181
3202
  children: s,
3182
- location: w(r, this.clonePosition())
3203
+ location: w(n, this.clonePosition())
3183
3204
  },
3184
3205
  err: null
3185
3206
  } : this.error(x.INVALID_TAG, w(a, this.clonePosition())));
3186
3207
  } else
3187
- return this.error(x.UNCLOSED_TAG, w(r, this.clonePosition()));
3208
+ return this.error(x.UNCLOSED_TAG, w(n, this.clonePosition()));
3188
3209
  } else
3189
- return this.error(x.INVALID_TAG, w(r, this.clonePosition()));
3210
+ return this.error(x.INVALID_TAG, w(n, this.clonePosition()));
3190
3211
  }, e.prototype.parseTagName = function() {
3191
3212
  var t = this.offset();
3192
- for (this.bump(); !this.isEOF() && Pi(this.char()); )
3213
+ for (this.bump(); !this.isEOF() && Oo(this.char()); )
3193
3214
  this.bump();
3194
3215
  return this.message.slice(t, this.offset());
3195
- }, e.prototype.parseLiteral = function(t, n) {
3196
- for (var r = this.clonePosition(), i = ""; ; ) {
3197
- var o = this.tryParseQuote(n);
3198
- if (o) {
3199
- i += o;
3216
+ }, e.prototype.parseLiteral = function(t, r) {
3217
+ for (var n = this.clonePosition(), o = ""; ; ) {
3218
+ var i = this.tryParseQuote(r);
3219
+ if (i) {
3220
+ o += i;
3200
3221
  continue;
3201
3222
  }
3202
- var s = this.tryParseUnquoted(t, n);
3223
+ var s = this.tryParseUnquoted(t, r);
3203
3224
  if (s) {
3204
- i += s;
3225
+ o += s;
3205
3226
  continue;
3206
3227
  }
3207
3228
  var a = this.tryParseLeftAngleBracket();
3208
3229
  if (a) {
3209
- i += a;
3230
+ o += a;
3210
3231
  continue;
3211
3232
  }
3212
3233
  break;
3213
3234
  }
3214
- var u = w(r, this.clonePosition());
3235
+ var u = w(n, this.clonePosition());
3215
3236
  return {
3216
- val: { type: I.literal, value: i, location: u },
3237
+ val: { type: H.literal, value: o, location: u },
3217
3238
  err: null
3218
3239
  };
3219
3240
  }, e.prototype.tryParseLeftAngleBracket = function() {
3220
3241
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3221
- !Ti(this.peek() || 0)) ? (this.bump(), "<") : null;
3242
+ !Ho(this.peek() || 0)) ? (this.bump(), "<") : null;
3222
3243
  }, e.prototype.tryParseQuote = function(t) {
3223
3244
  if (this.isEOF() || this.char() !== 39)
3224
3245
  return null;
@@ -3238,60 +3259,60 @@ var Ai = (
3238
3259
  return null;
3239
3260
  }
3240
3261
  this.bump();
3241
- var n = [this.char()];
3262
+ var r = [this.char()];
3242
3263
  for (this.bump(); !this.isEOF(); ) {
3243
- var r = this.char();
3244
- if (r === 39)
3264
+ var n = this.char();
3265
+ if (n === 39)
3245
3266
  if (this.peek() === 39)
3246
- n.push(39), this.bump();
3267
+ r.push(39), this.bump();
3247
3268
  else {
3248
3269
  this.bump();
3249
3270
  break;
3250
3271
  }
3251
3272
  else
3252
- n.push(r);
3273
+ r.push(n);
3253
3274
  this.bump();
3254
3275
  }
3255
- return ct.apply(void 0, n);
3256
- }, e.prototype.tryParseUnquoted = function(t, n) {
3276
+ return pt.apply(void 0, r);
3277
+ }, e.prototype.tryParseUnquoted = function(t, r) {
3257
3278
  if (this.isEOF())
3258
3279
  return null;
3259
- var r = this.char();
3260
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), ct(r));
3261
- }, e.prototype.parseArgument = function(t, n) {
3262
- var r = this.clonePosition();
3280
+ var n = this.char();
3281
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), pt(n));
3282
+ }, e.prototype.parseArgument = function(t, r) {
3283
+ var n = this.clonePosition();
3263
3284
  if (this.bump(), this.bumpSpace(), this.isEOF())
3264
- return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(r, this.clonePosition()));
3285
+ return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
3265
3286
  if (this.char() === 125)
3266
- return this.bump(), this.error(x.EMPTY_ARGUMENT, w(r, this.clonePosition()));
3267
- var i = this.parseIdentifierIfPossible().value;
3268
- if (!i)
3269
- return this.error(x.MALFORMED_ARGUMENT, w(r, this.clonePosition()));
3287
+ return this.bump(), this.error(x.EMPTY_ARGUMENT, w(n, this.clonePosition()));
3288
+ var o = this.parseIdentifierIfPossible().value;
3289
+ if (!o)
3290
+ return this.error(x.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
3270
3291
  if (this.bumpSpace(), this.isEOF())
3271
- return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(r, this.clonePosition()));
3292
+ return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
3272
3293
  switch (this.char()) {
3273
3294
  case 125:
3274
3295
  return this.bump(), {
3275
3296
  val: {
3276
- type: I.argument,
3297
+ type: H.argument,
3277
3298
  // value does not include the opening and closing braces.
3278
- value: i,
3279
- location: w(r, this.clonePosition())
3299
+ value: o,
3300
+ location: w(n, this.clonePosition())
3280
3301
  },
3281
3302
  err: null
3282
3303
  };
3283
3304
  case 44:
3284
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
3305
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition())) : this.parseArgumentOptions(t, r, o, n);
3285
3306
  default:
3286
- return this.error(x.MALFORMED_ARGUMENT, w(r, this.clonePosition()));
3307
+ return this.error(x.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
3287
3308
  }
3288
3309
  }, e.prototype.parseIdentifierIfPossible = function() {
3289
- var t = this.clonePosition(), n = this.offset(), r = ht(this.message, n), i = n + r.length;
3290
- this.bumpTo(i);
3291
- var o = this.clonePosition(), s = w(t, o);
3292
- return { value: r, location: s };
3293
- }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
3294
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
3310
+ var t = this.clonePosition(), r = this.offset(), n = mt(this.message, r), o = r + n.length;
3311
+ this.bumpTo(o);
3312
+ var i = this.clonePosition(), s = w(t, i);
3313
+ return { value: n, location: s };
3314
+ }, e.prototype.parseArgumentOptions = function(t, r, n, o) {
3315
+ var i, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
3295
3316
  switch (a) {
3296
3317
  case "":
3297
3318
  return this.error(x.EXPECT_ARGUMENT_TYPE, w(s, u));
@@ -3305,47 +3326,47 @@ var Ai = (
3305
3326
  var c = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
3306
3327
  if (h.err)
3307
3328
  return h;
3308
- var f = Si(h.val);
3329
+ var f = Po(h.val);
3309
3330
  if (f.length === 0)
3310
3331
  return this.error(x.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
3311
3332
  var b = w(c, this.clonePosition());
3312
3333
  l = { style: f, styleLocation: b };
3313
3334
  }
3314
- var m = this.tryParseArgumentClose(i);
3335
+ var m = this.tryParseArgumentClose(o);
3315
3336
  if (m.err)
3316
3337
  return m;
3317
- var d = w(i, this.clonePosition());
3318
- if (l && Ft(l?.style, "::", 0)) {
3319
- var C = Ci(l.style.slice(2));
3338
+ var d = w(o, this.clonePosition());
3339
+ if (l && Dt(l?.style, "::", 0)) {
3340
+ var C = To(l.style.slice(2));
3320
3341
  if (a === "number") {
3321
3342
  var h = this.parseNumberSkeletonFromString(C, l.styleLocation);
3322
3343
  return h.err ? h : {
3323
- val: { type: I.number, value: r, location: d, style: h.val },
3344
+ val: { type: H.number, value: n, location: d, style: h.val },
3324
3345
  err: null
3325
3346
  };
3326
3347
  } else {
3327
3348
  if (C.length === 0)
3328
3349
  return this.error(x.EXPECT_DATE_TIME_SKELETON, d);
3329
3350
  var _ = C;
3330
- this.locale && (_ = fi(C, this.locale));
3351
+ this.locale && (_ = mo(C, this.locale));
3331
3352
  var f = {
3332
- type: ge.dateTime,
3353
+ type: be.dateTime,
3333
3354
  pattern: _,
3334
3355
  location: l.styleLocation,
3335
- parsedOptions: this.shouldParseSkeletons ? oi(_) : {}
3336
- }, y = a === "date" ? I.date : I.time;
3356
+ parsedOptions: this.shouldParseSkeletons ? ao(_) : {}
3357
+ }, y = a === "date" ? H.date : H.time;
3337
3358
  return {
3338
- val: { type: y, value: r, location: d, style: f },
3359
+ val: { type: y, value: n, location: d, style: f },
3339
3360
  err: null
3340
3361
  };
3341
3362
  }
3342
3363
  }
3343
3364
  return {
3344
3365
  val: {
3345
- type: a === "number" ? I.number : a === "date" ? I.date : I.time,
3346
- value: r,
3366
+ type: a === "number" ? H.number : a === "date" ? H.date : H.time,
3367
+ value: n,
3347
3368
  location: d,
3348
- style: (o = l?.style) !== null && o !== void 0 ? o : null
3369
+ style: (i = l?.style) !== null && i !== void 0 ? i : null
3349
3370
  },
3350
3371
  err: null
3351
3372
  };
@@ -3353,11 +3374,11 @@ var Ai = (
3353
3374
  case "plural":
3354
3375
  case "selectordinal":
3355
3376
  case "select": {
3356
- var M = this.clonePosition();
3377
+ var P = this.clonePosition();
3357
3378
  if (this.bumpSpace(), !this.bumpIf(","))
3358
- return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, w(M, A({}, M)));
3379
+ return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, w(P, Ue({}, P)));
3359
3380
  this.bumpSpace();
3360
- var O = this.parseIdentifierIfPossible(), T = 0;
3381
+ var O = this.parseIdentifierIfPossible(), A = 0;
3361
3382
  if (a !== "select" && O.value === "offset") {
3362
3383
  if (!this.bumpIf(":"))
3363
3384
  return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
@@ -3365,29 +3386,29 @@ var Ai = (
3365
3386
  var h = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3366
3387
  if (h.err)
3367
3388
  return h;
3368
- this.bumpSpace(), O = this.parseIdentifierIfPossible(), T = h.val;
3389
+ this.bumpSpace(), O = this.parseIdentifierIfPossible(), A = h.val;
3369
3390
  }
3370
- var E = this.tryParsePluralOrSelectOptions(t, a, n, O);
3391
+ var E = this.tryParsePluralOrSelectOptions(t, a, r, O);
3371
3392
  if (E.err)
3372
3393
  return E;
3373
- var m = this.tryParseArgumentClose(i);
3394
+ var m = this.tryParseArgumentClose(o);
3374
3395
  if (m.err)
3375
3396
  return m;
3376
- var N = w(i, this.clonePosition());
3397
+ var N = w(o, this.clonePosition());
3377
3398
  return a === "select" ? {
3378
3399
  val: {
3379
- type: I.select,
3380
- value: r,
3381
- options: Ut(E.val),
3400
+ type: H.select,
3401
+ value: n,
3402
+ options: Gt(E.val),
3382
3403
  location: N
3383
3404
  },
3384
3405
  err: null
3385
3406
  } : {
3386
3407
  val: {
3387
- type: I.plural,
3388
- value: r,
3389
- options: Ut(E.val),
3390
- offset: T,
3408
+ type: H.plural,
3409
+ value: n,
3410
+ options: Gt(E.val),
3411
+ offset: A,
3391
3412
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3392
3413
  location: N
3393
3414
  },
@@ -3400,14 +3421,14 @@ var Ai = (
3400
3421
  }, e.prototype.tryParseArgumentClose = function(t) {
3401
3422
  return this.isEOF() || this.char() !== 125 ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3402
3423
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3403
- for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
3404
- var r = this.char();
3405
- switch (r) {
3424
+ for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3425
+ var n = this.char();
3426
+ switch (n) {
3406
3427
  case 39: {
3407
3428
  this.bump();
3408
- var i = this.clonePosition();
3429
+ var o = this.clonePosition();
3409
3430
  if (!this.bumpUntil("'"))
3410
- return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(i, this.clonePosition()));
3431
+ return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(o, this.clonePosition()));
3411
3432
  this.bump();
3412
3433
  break;
3413
3434
  }
@@ -3420,7 +3441,7 @@ var Ai = (
3420
3441
  t -= 1;
3421
3442
  else
3422
3443
  return {
3423
- val: this.message.slice(n.offset, this.offset()),
3444
+ val: this.message.slice(r.offset, this.offset()),
3424
3445
  err: null
3425
3446
  };
3426
3447
  break;
@@ -3431,30 +3452,30 @@ var Ai = (
3431
3452
  }
3432
3453
  }
3433
3454
  return {
3434
- val: this.message.slice(n.offset, this.offset()),
3455
+ val: this.message.slice(r.offset, this.offset()),
3435
3456
  err: null
3436
3457
  };
3437
- }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
3438
- var r = [];
3458
+ }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3459
+ var n = [];
3439
3460
  try {
3440
- r = ai(t);
3461
+ n = lo(t);
3441
3462
  } catch {
3442
- return this.error(x.INVALID_NUMBER_SKELETON, n);
3463
+ return this.error(x.INVALID_NUMBER_SKELETON, r);
3443
3464
  }
3444
3465
  return {
3445
3466
  val: {
3446
- type: ge.number,
3447
- tokens: r,
3448
- location: n,
3449
- parsedOptions: this.shouldParseSkeletons ? hi(r) : {}
3467
+ type: be.number,
3468
+ tokens: n,
3469
+ location: r,
3470
+ parsedOptions: this.shouldParseSkeletons ? po(n) : {}
3450
3471
  },
3451
3472
  err: null
3452
3473
  };
3453
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
3454
- for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
3474
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, o) {
3475
+ for (var i, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = o.value, c = o.location; ; ) {
3455
3476
  if (l.length === 0) {
3456
3477
  var h = this.clonePosition();
3457
- if (n !== "select" && this.bumpIf("=")) {
3478
+ if (r !== "select" && this.bumpIf("=")) {
3458
3479
  var f = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR, x.INVALID_PLURAL_ARGUMENT_SELECTOR);
3459
3480
  if (f.err)
3460
3481
  return f;
@@ -3463,12 +3484,12 @@ var Ai = (
3463
3484
  break;
3464
3485
  }
3465
3486
  if (u.has(l))
3466
- return this.error(n === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3487
+ return this.error(r === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3467
3488
  l === "other" && (s = !0), this.bumpSpace();
3468
3489
  var b = this.clonePosition();
3469
3490
  if (!this.bumpIf("{"))
3470
- return this.error(n === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
3471
- var m = this.parseMessage(t + 1, n, r);
3491
+ return this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
3492
+ var m = this.parseMessage(t + 1, r, n);
3472
3493
  if (m.err)
3473
3494
  return m;
3474
3495
  var d = this.tryParseArgumentClose(b);
@@ -3480,21 +3501,21 @@ var Ai = (
3480
3501
  value: m.val,
3481
3502
  location: w(b, this.clonePosition())
3482
3503
  }
3483
- ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, c = o.location;
3504
+ ]), u.add(l), this.bumpSpace(), i = this.parseIdentifierIfPossible(), l = i.value, c = i.location;
3484
3505
  }
3485
- return a.length === 0 ? this.error(n === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(x.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3486
- }, e.prototype.tryParseDecimalInteger = function(t, n) {
3487
- var r = 1, i = this.clonePosition();
3488
- this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3489
- for (var o = !1, s = 0; !this.isEOF(); ) {
3506
+ return a.length === 0 ? this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(x.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3507
+ }, e.prototype.tryParseDecimalInteger = function(t, r) {
3508
+ var n = 1, o = this.clonePosition();
3509
+ this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3510
+ for (var i = !1, s = 0; !this.isEOF(); ) {
3490
3511
  var a = this.char();
3491
3512
  if (a >= 48 && a <= 57)
3492
- o = !0, s = s * 10 + (a - 48), this.bump();
3513
+ i = !0, s = s * 10 + (a - 48), this.bump();
3493
3514
  else
3494
3515
  break;
3495
3516
  }
3496
- var u = w(i, this.clonePosition());
3497
- return o ? (s *= r, xi(s) ? { val: s, err: null } : this.error(n, u)) : this.error(t, u);
3517
+ var u = w(o, this.clonePosition());
3518
+ return i ? (s *= n, So(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
3498
3519
  }, e.prototype.offset = function() {
3499
3520
  return this.position.offset;
3500
3521
  }, e.prototype.isEOF = function() {
@@ -3509,17 +3530,17 @@ var Ai = (
3509
3530
  var t = this.position.offset;
3510
3531
  if (t >= this.message.length)
3511
3532
  throw Error("out of bound");
3512
- var n = Tn(this.message, t);
3513
- if (n === void 0)
3533
+ var r = Tr(this.message, t);
3534
+ if (r === void 0)
3514
3535
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3515
- return n;
3516
- }, e.prototype.error = function(t, n) {
3536
+ return r;
3537
+ }, e.prototype.error = function(t, r) {
3517
3538
  return {
3518
3539
  val: null,
3519
3540
  err: {
3520
3541
  kind: t,
3521
3542
  message: this.message,
3522
- location: n
3543
+ location: r
3523
3544
  }
3524
3545
  };
3525
3546
  }, e.prototype.bump = function() {
@@ -3528,129 +3549,129 @@ var Ai = (
3528
3549
  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);
3529
3550
  }
3530
3551
  }, e.prototype.bumpIf = function(t) {
3531
- if (Ft(this.message, t, this.offset())) {
3532
- for (var n = 0; n < t.length; n++)
3552
+ if (Dt(this.message, t, this.offset())) {
3553
+ for (var r = 0; r < t.length; r++)
3533
3554
  this.bump();
3534
3555
  return !0;
3535
3556
  }
3536
3557
  return !1;
3537
3558
  }, e.prototype.bumpUntil = function(t) {
3538
- var n = this.offset(), r = this.message.indexOf(t, n);
3539
- return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
3559
+ var r = this.offset(), n = this.message.indexOf(t, r);
3560
+ return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3540
3561
  }, e.prototype.bumpTo = function(t) {
3541
3562
  if (this.offset() > t)
3542
3563
  throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3543
3564
  for (t = Math.min(t, this.message.length); ; ) {
3544
- var n = this.offset();
3545
- if (n === t)
3565
+ var r = this.offset();
3566
+ if (r === t)
3546
3567
  break;
3547
- if (n > t)
3568
+ if (r > t)
3548
3569
  throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3549
3570
  if (this.bump(), this.isEOF())
3550
3571
  break;
3551
3572
  }
3552
3573
  }, e.prototype.bumpSpace = function() {
3553
- for (; !this.isEOF() && Mn(this.char()); )
3574
+ for (; !this.isEOF() && Mr(this.char()); )
3554
3575
  this.bump();
3555
3576
  }, e.prototype.peek = function() {
3556
3577
  if (this.isEOF())
3557
3578
  return null;
3558
- var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
3559
- return r ?? null;
3579
+ var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3580
+ return n ?? null;
3560
3581
  }, e;
3561
3582
  }()
3562
3583
  );
3563
- function ft(e) {
3584
+ function bt(e) {
3564
3585
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3565
3586
  }
3566
- function Ti(e) {
3567
- return ft(e) || e === 47;
3587
+ function Ho(e) {
3588
+ return bt(e) || e === 47;
3568
3589
  }
3569
- function Pi(e) {
3590
+ function Oo(e) {
3570
3591
  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;
3571
3592
  }
3572
- function Mn(e) {
3593
+ function Mr(e) {
3573
3594
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3574
3595
  }
3575
- function Mi(e) {
3596
+ function Io(e) {
3576
3597
  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;
3577
3598
  }
3578
- function dt(e) {
3599
+ function gt(e) {
3579
3600
  e.forEach(function(t) {
3580
- if (delete t.location, _n(t) || Bn(t))
3581
- for (var n in t.options)
3582
- delete t.options[n].location, dt(t.options[n].value);
3601
+ if (delete t.location, _r(t) || Br(t))
3602
+ for (var r in t.options)
3603
+ delete t.options[r].location, gt(t.options[r].value);
3583
3604
  else
3584
- gn(t) && xn(t.style) || (vn(t) || yn(t)) && ut(t.style) ? delete t.style.location : En(t) && dt(t.children);
3605
+ gr(t) && xr(t.style) || (vr(t) || yr(t)) && ft(t.style) ? delete t.style.location : Er(t) && gt(t.children);
3585
3606
  });
3586
3607
  }
3587
- function Hi(e, t) {
3588
- t === void 0 && (t = {}), t = A({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3589
- var n = new Ai(e, t).parse();
3590
- if (n.err) {
3591
- var r = SyntaxError(x[n.err.kind]);
3592
- throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3608
+ function No(e, t) {
3609
+ t === void 0 && (t = {}), t = Ue({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3610
+ var r = new Mo(e, t).parse();
3611
+ if (r.err) {
3612
+ var n = SyntaxError(x[r.err.kind]);
3613
+ throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3593
3614
  }
3594
- return t?.captureLocation || dt(n.val), n.val;
3615
+ return t?.captureLocation || gt(r.val), r.val;
3595
3616
  }
3596
- var ve;
3617
+ var ge;
3597
3618
  (function(e) {
3598
3619
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3599
- })(ve || (ve = {}));
3600
- var je = (
3620
+ })(ge || (ge = {}));
3621
+ var Ve = (
3601
3622
  /** @class */
3602
3623
  function(e) {
3603
- ie(t, e);
3604
- function t(n, r, i) {
3605
- var o = e.call(this, n) || this;
3606
- return o.code = r, o.originalMessage = i, o;
3624
+ We(t, e);
3625
+ function t(r, n, o) {
3626
+ var i = e.call(this, r) || this;
3627
+ return i.code = n, i.originalMessage = o, i;
3607
3628
  }
3608
3629
  return t.prototype.toString = function() {
3609
3630
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3610
3631
  }, t;
3611
3632
  }(Error)
3612
- ), Gt = (
3633
+ ), jt = (
3613
3634
  /** @class */
3614
3635
  function(e) {
3615
- ie(t, e);
3616
- function t(n, r, i, o) {
3617
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ve.INVALID_VALUE, o) || this;
3636
+ We(t, e);
3637
+ function t(r, n, o, i) {
3638
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(o).join('", "'), '"'), ge.INVALID_VALUE, i) || this;
3618
3639
  }
3619
3640
  return t;
3620
- }(je)
3621
- ), Ii = (
3641
+ }(Ve)
3642
+ ), Lo = (
3622
3643
  /** @class */
3623
3644
  function(e) {
3624
- ie(t, e);
3625
- function t(n, r, i) {
3626
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ve.INVALID_VALUE, i) || this;
3645
+ We(t, e);
3646
+ function t(r, n, o) {
3647
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ge.INVALID_VALUE, o) || this;
3627
3648
  }
3628
3649
  return t;
3629
- }(je)
3630
- ), Oi = (
3650
+ }(Ve)
3651
+ ), Ro = (
3631
3652
  /** @class */
3632
3653
  function(e) {
3633
- ie(t, e);
3634
- function t(n, r) {
3635
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ve.MISSING_VALUE, r) || this;
3654
+ We(t, e);
3655
+ function t(r, n) {
3656
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ge.MISSING_VALUE, n) || this;
3636
3657
  }
3637
3658
  return t;
3638
- }(je)
3659
+ }(Ve)
3639
3660
  ), k;
3640
3661
  (function(e) {
3641
3662
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3642
3663
  })(k || (k = {}));
3643
- function Ni(e) {
3644
- return e.length < 2 ? e : e.reduce(function(t, n) {
3645
- var r = t[t.length - 1];
3646
- return !r || r.type !== k.literal || n.type !== k.literal ? t.push(n) : r.value += n.value, t;
3664
+ function $o(e) {
3665
+ return e.length < 2 ? e : e.reduce(function(t, r) {
3666
+ var n = t[t.length - 1];
3667
+ return !n || n.type !== k.literal || r.type !== k.literal ? t.push(r) : n.value += r.value, t;
3647
3668
  }, []);
3648
3669
  }
3649
- function Li(e) {
3670
+ function Fo(e) {
3650
3671
  return typeof e == "function";
3651
3672
  }
3652
- function Re(e, t, n, r, i, o, s) {
3653
- if (e.length === 1 && Nt(e[0]))
3673
+ function Re(e, t, r, n, o, i, s) {
3674
+ if (e.length === 1 && Rt(e[0]))
3654
3675
  return [
3655
3676
  {
3656
3677
  type: k.literal,
@@ -3659,162 +3680,162 @@ function Re(e, t, n, r, i, o, s) {
3659
3680
  ];
3660
3681
  for (var a = [], u = 0, l = e; u < l.length; u++) {
3661
3682
  var c = l[u];
3662
- if (Nt(c)) {
3683
+ if (Rt(c)) {
3663
3684
  a.push({
3664
3685
  type: k.literal,
3665
3686
  value: c.value
3666
3687
  });
3667
3688
  continue;
3668
3689
  }
3669
- if (ri(c)) {
3670
- typeof o == "number" && a.push({
3690
+ if (io(c)) {
3691
+ typeof i == "number" && a.push({
3671
3692
  type: k.literal,
3672
- value: n.getNumberFormat(t).format(o)
3693
+ value: r.getNumberFormat(t).format(i)
3673
3694
  });
3674
3695
  continue;
3675
3696
  }
3676
3697
  var h = c.value;
3677
- if (!(i && h in i))
3678
- throw new Oi(h, s);
3679
- var f = i[h];
3680
- if (ni(c)) {
3698
+ if (!(o && h in o))
3699
+ throw new Ro(h, s);
3700
+ var f = o[h];
3701
+ if (oo(c)) {
3681
3702
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3682
3703
  type: typeof f == "string" ? k.literal : k.object,
3683
3704
  value: f
3684
3705
  });
3685
3706
  continue;
3686
3707
  }
3687
- if (vn(c)) {
3688
- var b = typeof c.style == "string" ? r.date[c.style] : ut(c.style) ? c.style.parsedOptions : void 0;
3708
+ if (vr(c)) {
3709
+ var b = typeof c.style == "string" ? n.date[c.style] : ft(c.style) ? c.style.parsedOptions : void 0;
3689
3710
  a.push({
3690
3711
  type: k.literal,
3691
- value: n.getDateTimeFormat(t, b).format(f)
3712
+ value: r.getDateTimeFormat(t, b).format(f)
3692
3713
  });
3693
3714
  continue;
3694
3715
  }
3695
- if (yn(c)) {
3696
- var b = typeof c.style == "string" ? r.time[c.style] : ut(c.style) ? c.style.parsedOptions : r.time.medium;
3716
+ if (yr(c)) {
3717
+ var b = typeof c.style == "string" ? n.time[c.style] : ft(c.style) ? c.style.parsedOptions : n.time.medium;
3697
3718
  a.push({
3698
3719
  type: k.literal,
3699
- value: n.getDateTimeFormat(t, b).format(f)
3720
+ value: r.getDateTimeFormat(t, b).format(f)
3700
3721
  });
3701
3722
  continue;
3702
3723
  }
3703
- if (gn(c)) {
3704
- var b = typeof c.style == "string" ? r.number[c.style] : xn(c.style) ? c.style.parsedOptions : void 0;
3724
+ if (gr(c)) {
3725
+ var b = typeof c.style == "string" ? n.number[c.style] : xr(c.style) ? c.style.parsedOptions : void 0;
3705
3726
  b && b.scale && (f = f * (b.scale || 1)), a.push({
3706
3727
  type: k.literal,
3707
- value: n.getNumberFormat(t, b).format(f)
3728
+ value: r.getNumberFormat(t, b).format(f)
3708
3729
  });
3709
3730
  continue;
3710
3731
  }
3711
- if (En(c)) {
3712
- var m = c.children, d = c.value, C = i[d];
3713
- if (!Li(C))
3714
- throw new Ii(d, "function", s);
3715
- var _ = Re(m, t, n, r, i, o), y = C(_.map(function(T) {
3716
- return T.value;
3732
+ if (Er(c)) {
3733
+ var m = c.children, d = c.value, C = o[d];
3734
+ if (!Fo(C))
3735
+ throw new Lo(d, "function", s);
3736
+ var _ = Re(m, t, r, n, o, i), y = C(_.map(function(A) {
3737
+ return A.value;
3717
3738
  }));
3718
- Array.isArray(y) || (y = [y]), a.push.apply(a, y.map(function(T) {
3739
+ Array.isArray(y) || (y = [y]), a.push.apply(a, y.map(function(A) {
3719
3740
  return {
3720
- type: typeof T == "string" ? k.literal : k.object,
3721
- value: T
3741
+ type: typeof A == "string" ? k.literal : k.object,
3742
+ value: A
3722
3743
  };
3723
3744
  }));
3724
3745
  }
3725
- if (_n(c)) {
3726
- var M = c.options[f] || c.options.other;
3727
- if (!M)
3728
- throw new Gt(c.value, f, Object.keys(c.options), s);
3729
- a.push.apply(a, Re(M.value, t, n, r, i));
3746
+ if (_r(c)) {
3747
+ var P = c.options[f] || c.options.other;
3748
+ if (!P)
3749
+ throw new jt(c.value, f, Object.keys(c.options), s);
3750
+ a.push.apply(a, Re(P.value, t, r, n, o));
3730
3751
  continue;
3731
3752
  }
3732
- if (Bn(c)) {
3733
- var M = c.options["=".concat(f)];
3734
- if (!M) {
3753
+ if (Br(c)) {
3754
+ var P = c.options["=".concat(f)];
3755
+ if (!P) {
3735
3756
  if (!Intl.PluralRules)
3736
- throw new je(`Intl.PluralRules is not available in this environment.
3757
+ throw new Ve(`Intl.PluralRules is not available in this environment.
3737
3758
  Try polyfilling it using "@formatjs/intl-pluralrules"
3738
- `, ve.MISSING_INTL_API, s);
3739
- var O = n.getPluralRules(t, { type: c.pluralType }).select(f - (c.offset || 0));
3740
- M = c.options[O] || c.options.other;
3759
+ `, ge.MISSING_INTL_API, s);
3760
+ var O = r.getPluralRules(t, { type: c.pluralType }).select(f - (c.offset || 0));
3761
+ P = c.options[O] || c.options.other;
3741
3762
  }
3742
- if (!M)
3743
- throw new Gt(c.value, f, Object.keys(c.options), s);
3744
- a.push.apply(a, Re(M.value, t, n, r, i, f - (c.offset || 0)));
3763
+ if (!P)
3764
+ throw new jt(c.value, f, Object.keys(c.options), s);
3765
+ a.push.apply(a, Re(P.value, t, r, n, o, f - (c.offset || 0)));
3745
3766
  continue;
3746
3767
  }
3747
3768
  }
3748
- return Ni(a);
3769
+ return $o(a);
3749
3770
  }
3750
- function Ri(e, t) {
3751
- return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3752
- return n[r] = A(A({}, e[r]), t[r] || {}), n;
3771
+ function Uo(e, t) {
3772
+ return t ? Y(Y(Y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3773
+ return r[n] = Y(Y({}, e[n]), t[n] || {}), r;
3753
3774
  }, {})) : e;
3754
3775
  }
3755
- function $i(e, t) {
3756
- return t ? Object.keys(e).reduce(function(n, r) {
3757
- return n[r] = Ri(e[r], t[r]), n;
3758
- }, A({}, e)) : e;
3776
+ function Do(e, t) {
3777
+ return t ? Object.keys(e).reduce(function(r, n) {
3778
+ return r[n] = Uo(e[n], t[n]), r;
3779
+ }, Y({}, e)) : e;
3759
3780
  }
3760
- function Ye(e) {
3781
+ function et(e) {
3761
3782
  return {
3762
3783
  create: function() {
3763
3784
  return {
3764
3785
  get: function(t) {
3765
3786
  return e[t];
3766
3787
  },
3767
- set: function(t, n) {
3768
- e[t] = n;
3788
+ set: function(t, r) {
3789
+ e[t] = r;
3769
3790
  }
3770
3791
  };
3771
3792
  }
3772
3793
  };
3773
3794
  }
3774
- function Fi(e) {
3795
+ function Go(e) {
3775
3796
  return e === void 0 && (e = {
3776
3797
  number: {},
3777
3798
  dateTime: {},
3778
3799
  pluralRules: {}
3779
3800
  }), {
3780
- getNumberFormat: qe(function() {
3781
- for (var t, n = [], r = 0; r < arguments.length; r++)
3782
- n[r] = arguments[r];
3783
- return new ((t = Intl.NumberFormat).bind.apply(t, me([void 0], n, !1)))();
3801
+ getNumberFormat: Je(function() {
3802
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3803
+ r[n] = arguments[n];
3804
+ return new ((t = Intl.NumberFormat).bind.apply(t, Qe([void 0], r, !1)))();
3784
3805
  }, {
3785
- cache: Ye(e.number),
3786
- strategy: Qe.variadic
3806
+ cache: et(e.number),
3807
+ strategy: Ye.variadic
3787
3808
  }),
3788
- getDateTimeFormat: qe(function() {
3789
- for (var t, n = [], r = 0; r < arguments.length; r++)
3790
- n[r] = arguments[r];
3791
- return new ((t = Intl.DateTimeFormat).bind.apply(t, me([void 0], n, !1)))();
3809
+ getDateTimeFormat: Je(function() {
3810
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3811
+ r[n] = arguments[n];
3812
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Qe([void 0], r, !1)))();
3792
3813
  }, {
3793
- cache: Ye(e.dateTime),
3794
- strategy: Qe.variadic
3814
+ cache: et(e.dateTime),
3815
+ strategy: Ye.variadic
3795
3816
  }),
3796
- getPluralRules: qe(function() {
3797
- for (var t, n = [], r = 0; r < arguments.length; r++)
3798
- n[r] = arguments[r];
3799
- return new ((t = Intl.PluralRules).bind.apply(t, me([void 0], n, !1)))();
3817
+ getPluralRules: Je(function() {
3818
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3819
+ r[n] = arguments[n];
3820
+ return new ((t = Intl.PluralRules).bind.apply(t, Qe([void 0], r, !1)))();
3800
3821
  }, {
3801
- cache: Ye(e.pluralRules),
3802
- strategy: Qe.variadic
3822
+ cache: et(e.pluralRules),
3823
+ strategy: Ye.variadic
3803
3824
  })
3804
3825
  };
3805
3826
  }
3806
- var Ui = (
3827
+ var ko = (
3807
3828
  /** @class */
3808
3829
  function() {
3809
- function e(t, n, r, i) {
3810
- n === void 0 && (n = e.defaultLocale);
3811
- var o = this;
3830
+ function e(t, r, n, o) {
3831
+ r === void 0 && (r = e.defaultLocale);
3832
+ var i = this;
3812
3833
  if (this.formatterCache = {
3813
3834
  number: {},
3814
3835
  dateTime: {},
3815
3836
  pluralRules: {}
3816
3837
  }, this.format = function(u) {
3817
- var l = o.formatToParts(u);
3838
+ var l = i.formatToParts(u);
3818
3839
  if (l.length === 1)
3819
3840
  return l[0].value;
3820
3841
  var c = l.reduce(function(h, f) {
@@ -3822,26 +3843,26 @@ var Ui = (
3822
3843
  }, []);
3823
3844
  return c.length <= 1 ? c[0] || "" : c;
3824
3845
  }, this.formatToParts = function(u) {
3825
- return Re(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
3846
+ return Re(i.ast, i.locales, i.formatters, i.formats, u, void 0, i.message);
3826
3847
  }, this.resolvedOptions = function() {
3827
3848
  var u;
3828
3849
  return {
3829
- locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3850
+ locale: ((u = i.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(i.locales)[0]
3830
3851
  };
3831
3852
  }, this.getAst = function() {
3832
- return o.ast;
3833
- }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3853
+ return i.ast;
3854
+ }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3834
3855
  if (this.message = t, !e.__parse)
3835
3856
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3836
- var s = i || {};
3857
+ var s = o || {};
3837
3858
  s.formatters;
3838
- var a = vr(s, ["formatters"]);
3839
- this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
3859
+ var a = Qn(s, ["formatters"]);
3860
+ this.ast = e.__parse(t, Y(Y({}, a), { locale: this.resolvedLocale }));
3840
3861
  } else
3841
3862
  this.ast = t;
3842
3863
  if (!Array.isArray(this.ast))
3843
3864
  throw new TypeError("A message must be provided as a String or AST.");
3844
- this.formats = $i(e.formats, r), this.formatters = i && i.formatters || Fi(this.formatterCache);
3865
+ this.formats = Do(e.formats, n), this.formatters = o && o.formatters || Go(this.formatterCache);
3845
3866
  }
3846
3867
  return Object.defineProperty(e, "defaultLocale", {
3847
3868
  get: function() {
@@ -3851,10 +3872,10 @@ var Ui = (
3851
3872
  configurable: !0
3852
3873
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3853
3874
  if (!(typeof Intl.Locale > "u")) {
3854
- var n = Intl.NumberFormat.supportedLocalesOf(t);
3855
- return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3875
+ var r = Intl.NumberFormat.supportedLocalesOf(t);
3876
+ return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3856
3877
  }
3857
- }, e.__parse = Hi, e.formats = {
3878
+ }, e.__parse = No, e.formats = {
3858
3879
  number: {
3859
3880
  integer: {
3860
3881
  maximumFractionDigits: 0
@@ -3915,113 +3936,113 @@ var Ui = (
3915
3936
  }, e;
3916
3937
  }()
3917
3938
  );
3918
- function Di(e, t) {
3939
+ function jo(e, t) {
3919
3940
  if (t == null)
3920
3941
  return;
3921
3942
  if (t in e)
3922
3943
  return e[t];
3923
- const n = t.split(".");
3924
- let r = e;
3925
- for (let i = 0; i < n.length; i++)
3926
- if (typeof r == "object") {
3927
- if (i > 0) {
3928
- const o = n.slice(i, n.length).join(".");
3929
- if (o in r) {
3930
- r = r[o];
3944
+ const r = t.split(".");
3945
+ let n = e;
3946
+ for (let o = 0; o < r.length; o++)
3947
+ if (typeof n == "object") {
3948
+ if (o > 0) {
3949
+ const i = r.slice(o, r.length).join(".");
3950
+ if (i in n) {
3951
+ n = n[i];
3931
3952
  break;
3932
3953
  }
3933
3954
  }
3934
- r = r[n[i]];
3955
+ n = n[r[o]];
3935
3956
  } else
3936
- r = void 0;
3937
- return r;
3957
+ n = void 0;
3958
+ return n;
3938
3959
  }
3939
- const oe = {}, Gi = (e, t, n) => n && (t in oe || (oe[t] = {}), e in oe[t] || (oe[t][e] = n), n), Hn = (e, t) => {
3960
+ const ie = {}, Wo = (e, t, r) => r && (t in ie || (ie[t] = {}), e in ie[t] || (ie[t][e] = r), r), Hr = (e, t) => {
3940
3961
  if (t == null)
3941
3962
  return;
3942
- if (t in oe && e in oe[t])
3943
- return oe[t][e];
3944
- const n = We(t);
3945
- for (let r = 0; r < n.length; r++) {
3946
- const i = n[r], o = ji(i, e);
3947
- if (o)
3948
- return Gi(e, t, o);
3963
+ if (t in ie && e in ie[t])
3964
+ return ie[t][e];
3965
+ const r = ze(t);
3966
+ for (let n = 0; n < r.length; n++) {
3967
+ const o = r[n], i = zo(o, e);
3968
+ if (i)
3969
+ return Wo(e, t, i);
3949
3970
  }
3950
3971
  };
3951
- let _t;
3952
- const Te = ke({});
3953
- function ki(e) {
3954
- return _t[e] || null;
3972
+ let Et;
3973
+ const Te = je({});
3974
+ function Vo(e) {
3975
+ return Et[e] || null;
3955
3976
  }
3956
- function In(e) {
3957
- return e in _t;
3977
+ function Or(e) {
3978
+ return e in Et;
3958
3979
  }
3959
- function ji(e, t) {
3960
- if (!In(e))
3980
+ function zo(e, t) {
3981
+ if (!Or(e))
3961
3982
  return null;
3962
- const n = ki(e);
3963
- return Di(n, t);
3983
+ const r = Vo(e);
3984
+ return jo(r, t);
3964
3985
  }
3965
- function Wi(e) {
3986
+ function Xo(e) {
3966
3987
  if (e == null)
3967
3988
  return;
3968
- const t = We(e);
3969
- for (let n = 0; n < t.length; n++) {
3970
- const r = t[n];
3971
- if (In(r))
3972
- return r;
3989
+ const t = ze(e);
3990
+ for (let r = 0; r < t.length; r++) {
3991
+ const n = t[r];
3992
+ if (Or(n))
3993
+ return n;
3973
3994
  }
3974
3995
  }
3975
- function On(e, ...t) {
3976
- delete oe[e], Te.update((n) => (n[e] = qr.all([n[e] || {}, ...t]), n));
3996
+ function Ir(e, ...t) {
3997
+ delete ie[e], Te.update((r) => (r[e] = qn.all([r[e] || {}, ...t]), r));
3977
3998
  }
3978
- _e(
3999
+ ye(
3979
4000
  [Te],
3980
4001
  ([e]) => Object.keys(e)
3981
4002
  );
3982
- Te.subscribe((e) => _t = e);
4003
+ Te.subscribe((e) => Et = e);
3983
4004
  const $e = {};
3984
- function Vi(e, t) {
4005
+ function Zo(e, t) {
3985
4006
  $e[e].delete(t), $e[e].size === 0 && delete $e[e];
3986
4007
  }
3987
- function Nn(e) {
4008
+ function Nr(e) {
3988
4009
  return $e[e];
3989
4010
  }
3990
- function zi(e) {
3991
- return We(e).map((t) => {
3992
- const n = Nn(t);
3993
- return [t, n ? [...n] : []];
4011
+ function qo(e) {
4012
+ return ze(e).map((t) => {
4013
+ const r = Nr(t);
4014
+ return [t, r ? [...r] : []];
3994
4015
  }).filter(([, t]) => t.length > 0);
3995
4016
  }
3996
- function pt(e) {
3997
- return e == null ? !1 : We(e).some(
4017
+ function vt(e) {
4018
+ return e == null ? !1 : ze(e).some(
3998
4019
  (t) => {
3999
- var n;
4000
- return (n = Nn(t)) == null ? void 0 : n.size;
4020
+ var r;
4021
+ return (r = Nr(t)) == null ? void 0 : r.size;
4001
4022
  }
4002
4023
  );
4003
4024
  }
4004
- function Xi(e, t) {
4025
+ function Qo(e, t) {
4005
4026
  return Promise.all(
4006
- t.map((r) => (Vi(e, r), r().then((i) => i.default || i)))
4007
- ).then((r) => On(e, ...r));
4008
- }
4009
- const xe = {};
4010
- function Ln(e) {
4011
- if (!pt(e))
4012
- return e in xe ? xe[e] : Promise.resolve();
4013
- const t = zi(e);
4014
- return xe[e] = Promise.all(
4027
+ t.map((n) => (Zo(e, n), n().then((o) => o.default || o)))
4028
+ ).then((n) => Ir(e, ...n));
4029
+ }
4030
+ const Ee = {};
4031
+ function Lr(e) {
4032
+ if (!vt(e))
4033
+ return e in Ee ? Ee[e] : Promise.resolve();
4034
+ const t = qo(e);
4035
+ return Ee[e] = Promise.all(
4015
4036
  t.map(
4016
- ([n, r]) => Xi(n, r)
4037
+ ([r, n]) => Qo(r, n)
4017
4038
  )
4018
4039
  ).then(() => {
4019
- if (pt(e))
4020
- return Ln(e);
4021
- delete xe[e];
4022
- }), xe[e];
4040
+ if (vt(e))
4041
+ return Lr(e);
4042
+ delete Ee[e];
4043
+ }), Ee[e];
4023
4044
  }
4024
- const Zi = {
4045
+ const Jo = {
4025
4046
  number: {
4026
4047
  scientific: { notation: "scientific" },
4027
4048
  engineering: { notation: "engineering" },
@@ -4050,136 +4071,136 @@ const Zi = {
4050
4071
  timeZoneName: "short"
4051
4072
  }
4052
4073
  }
4053
- }, qi = {
4074
+ }, Yo = {
4054
4075
  fallbackLocale: null,
4055
4076
  loadingDelay: 200,
4056
- formats: Zi,
4077
+ formats: Jo,
4057
4078
  warnOnMissingMessages: !0,
4058
4079
  handleMissingMessage: void 0,
4059
4080
  ignoreTag: !0
4060
- }, Qi = qi;
4061
- function ye() {
4062
- return Qi;
4063
- }
4064
- const Ke = ke(!1);
4065
- var Ji = Object.defineProperty, Yi = Object.defineProperties, Ki = Object.getOwnPropertyDescriptors, kt = Object.getOwnPropertySymbols, eo = Object.prototype.hasOwnProperty, to = Object.prototype.propertyIsEnumerable, jt = (e, t, n) => t in e ? Ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, no = (e, t) => {
4066
- for (var n in t || (t = {}))
4067
- eo.call(t, n) && jt(e, n, t[n]);
4068
- if (kt)
4069
- for (var n of kt(t))
4070
- to.call(t, n) && jt(e, n, t[n]);
4081
+ }, Ko = Yo;
4082
+ function ve() {
4083
+ return Ko;
4084
+ }
4085
+ const tt = je(!1);
4086
+ var ei = Object.defineProperty, ti = Object.defineProperties, ri = Object.getOwnPropertyDescriptors, Wt = Object.getOwnPropertySymbols, ni = Object.prototype.hasOwnProperty, oi = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ii = (e, t) => {
4087
+ for (var r in t || (t = {}))
4088
+ ni.call(t, r) && Vt(e, r, t[r]);
4089
+ if (Wt)
4090
+ for (var r of Wt(t))
4091
+ oi.call(t, r) && Vt(e, r, t[r]);
4071
4092
  return e;
4072
- }, ro = (e, t) => Yi(e, Ki(t));
4073
- let mt;
4074
- const Ue = ke(null);
4075
- function Wt(e) {
4076
- return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
4093
+ }, si = (e, t) => ti(e, ri(t));
4094
+ let yt;
4095
+ const De = je(null);
4096
+ function zt(e) {
4097
+ return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4077
4098
  }
4078
- function We(e, t = ye().fallbackLocale) {
4079
- const n = Wt(e);
4080
- return t ? [.../* @__PURE__ */ new Set([...n, ...Wt(t)])] : n;
4099
+ function ze(e, t = ve().fallbackLocale) {
4100
+ const r = zt(e);
4101
+ return t ? [.../* @__PURE__ */ new Set([...r, ...zt(t)])] : r;
4081
4102
  }
4082
4103
  function ae() {
4083
- return mt ?? void 0;
4104
+ return yt ?? void 0;
4084
4105
  }
4085
- Ue.subscribe((e) => {
4086
- mt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4106
+ De.subscribe((e) => {
4107
+ yt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4087
4108
  });
4088
- const io = (e) => {
4089
- if (e && Wi(e) && pt(e)) {
4090
- const { loadingDelay: t } = ye();
4091
- let n;
4092
- return typeof window < "u" && ae() != null && t ? n = window.setTimeout(
4093
- () => Ke.set(!0),
4109
+ const ai = (e) => {
4110
+ if (e && Xo(e) && vt(e)) {
4111
+ const { loadingDelay: t } = ve();
4112
+ let r;
4113
+ return typeof window < "u" && ae() != null && t ? r = window.setTimeout(
4114
+ () => tt.set(!0),
4094
4115
  t
4095
- ) : Ke.set(!0), Ln(e).then(() => {
4096
- Ue.set(e);
4116
+ ) : tt.set(!0), Lr(e).then(() => {
4117
+ De.set(e);
4097
4118
  }).finally(() => {
4098
- clearTimeout(n), Ke.set(!1);
4119
+ clearTimeout(r), tt.set(!1);
4099
4120
  });
4100
4121
  }
4101
- return Ue.set(e);
4102
- }, Be = ro(no({}, Ue), {
4103
- set: io
4104
- }), Ve = (e) => {
4122
+ return De.set(e);
4123
+ }, _e = si(ii({}, De), {
4124
+ set: ai
4125
+ }), Xe = (e) => {
4105
4126
  const t = /* @__PURE__ */ Object.create(null);
4106
- return (r) => {
4107
- const i = JSON.stringify(r);
4108
- return i in t ? t[i] : t[i] = e(r);
4127
+ return (n) => {
4128
+ const o = JSON.stringify(n);
4129
+ return o in t ? t[o] : t[o] = e(n);
4109
4130
  };
4110
4131
  };
4111
- var oo = Object.defineProperty, De = Object.getOwnPropertySymbols, Rn = Object.prototype.hasOwnProperty, $n = Object.prototype.propertyIsEnumerable, Vt = (e, t, n) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Bt = (e, t) => {
4112
- for (var n in t || (t = {}))
4113
- Rn.call(t, n) && Vt(e, n, t[n]);
4114
- if (De)
4115
- for (var n of De(t))
4116
- $n.call(t, n) && Vt(e, n, t[n]);
4132
+ var ui = Object.defineProperty, Ge = Object.getOwnPropertySymbols, Rr = Object.prototype.hasOwnProperty, $r = Object.prototype.propertyIsEnumerable, Xt = (e, t, r) => t in e ? ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xt = (e, t) => {
4133
+ for (var r in t || (t = {}))
4134
+ Rr.call(t, r) && Xt(e, r, t[r]);
4135
+ if (Ge)
4136
+ for (var r of Ge(t))
4137
+ $r.call(t, r) && Xt(e, r, t[r]);
4117
4138
  return e;
4118
- }, Ee = (e, t) => {
4119
- var n = {};
4120
- for (var r in e)
4121
- Rn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
4122
- if (e != null && De)
4123
- for (var r of De(e))
4124
- t.indexOf(r) < 0 && $n.call(e, r) && (n[r] = e[r]);
4125
- return n;
4139
+ }, Be = (e, t) => {
4140
+ var r = {};
4141
+ for (var n in e)
4142
+ Rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4143
+ if (e != null && Ge)
4144
+ for (var n of Ge(e))
4145
+ t.indexOf(n) < 0 && $r.call(e, n) && (r[n] = e[n]);
4146
+ return r;
4126
4147
  };
4127
- const Ae = (e, t) => {
4128
- const { formats: n } = ye();
4129
- if (e in n && t in n[e])
4130
- return n[e][t];
4148
+ const Se = (e, t) => {
4149
+ const { formats: r } = ve();
4150
+ if (e in r && t in r[e])
4151
+ return r[e][t];
4131
4152
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4132
- }, so = Ve(
4153
+ }, li = Xe(
4133
4154
  (e) => {
4134
- var t = e, { locale: n, format: r } = t, i = Ee(t, ["locale", "format"]);
4135
- if (n == null)
4155
+ var t = e, { locale: r, format: n } = t, o = Be(t, ["locale", "format"]);
4156
+ if (r == null)
4136
4157
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4137
- return r && (i = Ae("number", r)), new Intl.NumberFormat(n, i);
4158
+ return n && (o = Se("number", n)), new Intl.NumberFormat(r, o);
4138
4159
  }
4139
- ), ao = Ve(
4160
+ ), ci = Xe(
4140
4161
  (e) => {
4141
- var t = e, { locale: n, format: r } = t, i = Ee(t, ["locale", "format"]);
4142
- if (n == null)
4162
+ var t = e, { locale: r, format: n } = t, o = Be(t, ["locale", "format"]);
4163
+ if (r == null)
4143
4164
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4144
- return r ? i = Ae("date", r) : Object.keys(i).length === 0 && (i = Ae("date", "short")), new Intl.DateTimeFormat(n, i);
4165
+ return n ? o = Se("date", n) : Object.keys(o).length === 0 && (o = Se("date", "short")), new Intl.DateTimeFormat(r, o);
4145
4166
  }
4146
- ), uo = Ve(
4167
+ ), hi = Xe(
4147
4168
  (e) => {
4148
- var t = e, { locale: n, format: r } = t, i = Ee(t, ["locale", "format"]);
4149
- if (n == null)
4169
+ var t = e, { locale: r, format: n } = t, o = Be(t, ["locale", "format"]);
4170
+ if (r == null)
4150
4171
  throw new Error(
4151
4172
  '[svelte-i18n] A "locale" must be set to format time values'
4152
4173
  );
4153
- return r ? i = Ae("time", r) : Object.keys(i).length === 0 && (i = Ae("time", "short")), new Intl.DateTimeFormat(n, i);
4174
+ return n ? o = Se("time", n) : Object.keys(o).length === 0 && (o = Se("time", "short")), new Intl.DateTimeFormat(r, o);
4154
4175
  }
4155
- ), lo = (e = {}) => {
4176
+ ), fi = (e = {}) => {
4156
4177
  var t = e, {
4157
- locale: n = ae()
4158
- } = t, r = Ee(t, [
4178
+ locale: r = ae()
4179
+ } = t, n = Be(t, [
4159
4180
  "locale"
4160
4181
  ]);
4161
- return so(Bt({ locale: n }, r));
4162
- }, co = (e = {}) => {
4182
+ return li(xt({ locale: r }, n));
4183
+ }, di = (e = {}) => {
4163
4184
  var t = e, {
4164
- locale: n = ae()
4165
- } = t, r = Ee(t, [
4185
+ locale: r = ae()
4186
+ } = t, n = Be(t, [
4166
4187
  "locale"
4167
4188
  ]);
4168
- return ao(Bt({ locale: n }, r));
4169
- }, ho = (e = {}) => {
4189
+ return ci(xt({ locale: r }, n));
4190
+ }, pi = (e = {}) => {
4170
4191
  var t = e, {
4171
- locale: n = ae()
4172
- } = t, r = Ee(t, [
4192
+ locale: r = ae()
4193
+ } = t, n = Be(t, [
4173
4194
  "locale"
4174
4195
  ]);
4175
- return uo(Bt({ locale: n }, r));
4176
- }, fo = Ve(
4196
+ return hi(xt({ locale: r }, n));
4197
+ }, mi = Xe(
4177
4198
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4178
- (e, t = ae()) => new Ui(e, t, ye().formats, {
4179
- ignoreTag: ye().ignoreTag
4199
+ (e, t = ae()) => new ko(e, t, ve().formats, {
4200
+ ignoreTag: ve().ignoreTag
4180
4201
  })
4181
- ), po = (e, t = {}) => {
4182
- var n, r, i, o;
4202
+ ), bi = (e, t = {}) => {
4203
+ var r, n, o, i;
4183
4204
  let s = t;
4184
4205
  typeof e == "object" && (s = e, e = s.id);
4185
4206
  const {
@@ -4191,9 +4212,9 @@ const Ae = (e, t) => {
4191
4212
  throw new Error(
4192
4213
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4193
4214
  );
4194
- let c = Hn(e, u);
4215
+ let c = Hr(e, u);
4195
4216
  if (!c)
4196
- c = (o = (i = (r = (n = ye()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
4217
+ c = (i = (o = (n = (r = ve()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? o : l) != null ? i : e;
4197
4218
  else if (typeof c != "string")
4198
4219
  return console.warn(
4199
4220
  `[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.`
@@ -4202,7 +4223,7 @@ const Ae = (e, t) => {
4202
4223
  return c;
4203
4224
  let h = c;
4204
4225
  try {
4205
- h = fo(c, u).format(a);
4226
+ h = mi(c, u).format(a);
4206
4227
  } catch (f) {
4207
4228
  f instanceof Error && console.warn(
4208
4229
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4210,20 +4231,20 @@ const Ae = (e, t) => {
4210
4231
  );
4211
4232
  }
4212
4233
  return h;
4213
- }, mo = (e, t) => ho(t).format(e), bo = (e, t) => co(t).format(e), go = (e, t) => lo(t).format(e), vo = (e, t = ae()) => Hn(e, t), yo = _e([Be, Te], () => po);
4214
- _e([Be], () => mo);
4215
- _e([Be], () => bo);
4216
- _e([Be], () => go);
4217
- _e([Be, Te], () => vo);
4218
- window.emWidgets = { topic: Ir };
4219
- const _o = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4220
- function zt(e, t) {
4221
- On(e, t);
4222
- }
4223
- function Bo(e) {
4224
- Be.set(e);
4225
- }
4226
- const Xt = {
4234
+ }, gi = (e, t) => pi(t).format(e), vi = (e, t) => di(t).format(e), yi = (e, t) => fi(t).format(e), _i = (e, t = ae()) => Hr(e, t), Bi = ye([_e, Te], () => bi);
4235
+ ye([_e], () => gi);
4236
+ ye([_e], () => vi);
4237
+ ye([_e], () => yi);
4238
+ ye([_e, Te], () => _i);
4239
+ window.emWidgets = { topic: On };
4240
+ const Ei = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4241
+ function Zt(e, t) {
4242
+ Ir(e, t);
4243
+ }
4244
+ function xi(e) {
4245
+ _e.set(e);
4246
+ }
4247
+ const qt = {
4227
4248
  en: {
4228
4249
  titleBonuses: "Active Bonuses",
4229
4250
  bonusCode: "Do you have a bonus code?",
@@ -4357,89 +4378,89 @@ const Xt = {
4357
4378
  errorMessage: "Invalid bonus"
4358
4379
  }
4359
4380
  };
4360
- function Eo(e, t) {
4381
+ function wi(e, t) {
4361
4382
  if (e) {
4362
- const n = document.createElement("style");
4363
- n.innerHTML = t, e.appendChild(n);
4383
+ const r = document.createElement("style");
4384
+ r.innerHTML = t, e.appendChild(r);
4364
4385
  }
4365
4386
  }
4366
- function xo(e, t) {
4367
- const n = new URL(t);
4368
- fetch(n.href).then((r) => r.text()).then((r) => {
4369
- const i = document.createElement("style");
4370
- i.innerHTML = r, e && e.appendChild(i);
4371
- }).catch((r) => {
4372
- console.error("There was an error while trying to load client styling from URL", r);
4387
+ function Ci(e, t) {
4388
+ const r = new URL(t);
4389
+ fetch(r.href).then((n) => n.text()).then((n) => {
4390
+ const o = document.createElement("style");
4391
+ o.innerHTML = n, e && e.appendChild(o);
4392
+ }).catch((n) => {
4393
+ console.error("There was an error while trying to load client styling from URL", n);
4373
4394
  });
4374
4395
  }
4375
- function wo(e, t, n) {
4396
+ function Si(e, t, r) {
4376
4397
  if (window.emMessageBus) {
4377
- const r = document.createElement("style");
4378
- window.emMessageBus.subscribe(t, (i) => {
4379
- r.innerHTML = i, e && e.appendChild(r);
4398
+ const n = document.createElement("style");
4399
+ window.emMessageBus.subscribe(t, (o) => {
4400
+ n.innerHTML = o, e && e.appendChild(n);
4380
4401
  });
4381
4402
  }
4382
4403
  }
4383
4404
  if (typeof window < "u") {
4384
4405
  let e = function(t) {
4385
- return function(...n) {
4406
+ return function(...r) {
4386
4407
  try {
4387
- return t.apply(this, n);
4388
- } catch (r) {
4389
- if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
4408
+ return t.apply(this, r);
4409
+ } catch (n) {
4410
+ if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
4390
4411
  return !1;
4391
- throw r;
4412
+ throw n;
4392
4413
  }
4393
4414
  };
4394
4415
  };
4395
- customElements.define = e(customElements.define), import("./PlayerBonusCard-DSE2nMqs.js").then(({ default: t }) => {
4416
+ customElements.define = e(customElements.define), import("./PlayerBonusCard-CSUXA2d5.js").then(({ default: t }) => {
4396
4417
  !customElements.get("player-bonus-card") && customElements.define("player-bonus-card", t.element);
4397
4418
  });
4398
4419
  }
4399
- function Co(e) {
4400
- Yn(e, "svelte-1nt8h6r", ".ActiveBonusesWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:850px}.ActiveBonusesWrapper.ActiveBonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.ActiveBonusesTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.ActiveBonusesTitleMobile{font-size:16px}.ActiveBonusesTitleNone{display:none}.BonusCodeContainer{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative;width:70%}.BonusCodeContainer label{font-size:16px;font-weight:300;padding-bottom:5px}.BonusCodeContainer.BonusCodeContainerMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{width:70%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:hover{filter:brightness(0.9)}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode.SubmitBonusCodeMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));background:var(--emw--color-primary-50, var(--emw--color-pink-50, #F1BED9));color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, var(--emw--color-red, #FD2839))}.BonusCodeWrapper{display:flex;gap:20px}.SubmitBonusCode{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.SubmitBonusCode[disabled]{opacity:0.3}.SubmitBonusCode:hover{filter:brightness(0.9)}.SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.ActiveBonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.ActiveBonusesGrid.ActiveBonusesGridMobile{grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300}.ModalWrapper .ModalContent{background-color:var(--emw--color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--color-gray-50, #F9F8F8);padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}.BonusesPaginationWrapper{margin:40px 0;display:block;line-break:anywhere;line-height:2em}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--color-gray-300, #58586B);font-size:16px;cursor:pointer;padding:5px 10px;white-space:nowrap}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:700}");
4420
+ function Ai(e) {
4421
+ Yr(e, "svelte-1nt8h6r", ".ActiveBonusesWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:850px}.ActiveBonusesWrapper.ActiveBonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.ActiveBonusesTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.ActiveBonusesTitleMobile{font-size:16px}.ActiveBonusesTitleNone{display:none}.BonusCodeContainer{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative;width:70%}.BonusCodeContainer label{font-size:16px;font-weight:300;padding-bottom:5px}.BonusCodeContainer.BonusCodeContainerMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{width:70%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:hover{filter:brightness(0.9)}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode.SubmitBonusCodeMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));background:var(--emw--color-primary-50, var(--emw--color-pink-50, #F1BED9));color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, var(--emw--color-red, #FD2839))}.BonusCodeWrapper{display:flex;gap:20px}.SubmitBonusCode{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.SubmitBonusCode[disabled]{opacity:0.3}.SubmitBonusCode:hover{filter:brightness(0.9)}.SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.ActiveBonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.ActiveBonusesGrid.ActiveBonusesGridMobile{grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300}.ModalWrapper .ModalContent{background-color:var(--emw--color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--color-gray-50, #F9F8F8);padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}.BonusesPaginationWrapper{margin:40px 0;display:block;line-break:anywhere;line-height:2em}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--color-gray-300, #58586B);font-size:16px;cursor:pointer;padding:5px 10px;white-space:nowrap}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:700}");
4401
4422
  }
4402
- function Zt(e, t, n) {
4403
- const r = e.slice();
4404
- return r[48] = t[n], r[50] = n, r;
4423
+ function Qt(e, t, r) {
4424
+ const n = e.slice();
4425
+ return n[48] = t[r], n[50] = r, n;
4405
4426
  }
4406
- function qt(e, t, n) {
4407
- const r = e.slice();
4408
- return r[51] = t[n], r;
4427
+ function Jt(e, t, r) {
4428
+ const n = e.slice();
4429
+ return n[51] = t[r], n;
4409
4430
  }
4410
- function So(e) {
4411
- let t, n, r, i = (
4431
+ function Ti(e) {
4432
+ let t, r, n, o = (
4412
4433
  /*$_*/
4413
4434
  e[17]("titleBonuses") + ""
4414
- ), o, s, a, u, l = (
4435
+ ), i, s, a, u, l = (
4415
4436
  /*$_*/
4416
4437
  e[17]("bonusCode") + ""
4417
4438
  ), c, h, f, b, m, d, C = (
4418
4439
  /*$_*/
4419
4440
  e[17]("getBonus") + ""
4420
- ), _, y, M, O, T, E, N, H, Y, J = (
4441
+ ), _, y, P, O, A, E, N, M, K, J = (
4421
4442
  /*isMobile*/
4422
- e[18] && Ao(e)
4443
+ e[18] && Pi(e)
4423
4444
  ), R = (
4424
4445
  /*invalidBonusCode*/
4425
- e[8] && Qt(e)
4446
+ e[8] && Yt(e)
4426
4447
  );
4427
4448
  function ue(S, L) {
4428
4449
  return (
4429
4450
  /*activeBonusesList*/
4430
- S[15].length === 0 ? Po : To
4451
+ S[15].length === 0 ? Hi : Mi
4431
4452
  );
4432
4453
  }
4433
4454
  let le = ue(e), V = le(e), U = (
4434
4455
  /*activeBonusesList*/
4435
- e[15].length !== 0 && Yt(e)
4456
+ e[15].length !== 0 && er(e)
4436
4457
  ), $ = (
4437
4458
  /*bonusModal*/
4438
- e[16] && en(e)
4459
+ e[16] && rr(e)
4439
4460
  );
4440
4461
  return {
4441
4462
  c() {
4442
- t = P("div"), J && J.c(), n = j(), r = P("h2"), o = F(i), s = j(), a = P("div"), u = P("label"), c = F(l), h = j(), f = P("div"), b = P("input"), m = j(), d = P("button"), _ = F(C), y = j(), R && R.c(), M = j(), O = P("div"), V.c(), T = j(), U && U.c(), E = j(), $ && $.c(), N = gt(), B(r, "class", "ActiveBonusesTitle " + /*isMobile*/
4463
+ t = T("div"), J && J.c(), r = j(), n = T("h2"), i = F(o), s = j(), a = T("div"), u = T("label"), c = F(l), h = j(), f = T("div"), b = T("input"), m = j(), d = T("button"), _ = F(C), y = j(), R && R.c(), P = j(), O = T("div"), V.c(), A = j(), U && U.c(), E = j(), $ && $.c(), N = Bt(), B(n, "class", "ActiveBonusesTitle " + /*isMobile*/
4443
4464
  (e[18] ? "ActiveBonusesTitleNone" : "")), B(u, "for", "BonusCode"), B(b, "class", "BonusCodeInput " + /*isMobile*/
4444
4465
  (e[18] ? "BonusCodeInputMobile" : "")), B(b, "type", "text"), B(b, "id", "BonusCode"), B(d, "class", "SubmitBonusCode " + /*isMobile*/
4445
4466
  (e[18] ? "SubmitBonusCodeMobile" : "")), d.disabled = /*invalidBonusField*/
@@ -4450,11 +4471,11 @@ function So(e) {
4450
4471
  (e[18] ? "ActiveBonusesWrapperMobile" : ""));
4451
4472
  },
4452
4473
  m(S, L) {
4453
- W(S, t, L), J && J.m(t, null), v(t, n), v(t, r), v(r, o), v(t, s), v(t, a), v(a, u), v(u, c), v(a, h), v(a, f), v(f, b), wt(
4474
+ W(S, t, L), J && J.m(t, null), v(t, r), v(t, n), v(n, i), v(t, s), v(t, a), v(a, u), v(u, c), v(a, h), v(a, f), v(f, b), St(
4454
4475
  b,
4455
4476
  /*bonusCode*/
4456
4477
  e[9]
4457
- ), v(f, m), v(f, d), v(d, _), v(a, y), R && R.m(a, null), v(t, M), v(t, O), V.m(O, null), v(t, T), U && U.m(t, null), W(S, E, L), $ && $.m(S, L), W(S, N, L), H || (Y = [
4478
+ ), v(f, m), v(f, d), v(d, _), v(a, y), R && R.m(a, null), v(t, P), v(t, O), V.m(O, null), v(t, A), U && U.m(t, null), W(S, E, L), $ && $.m(S, L), W(S, N, L), M || (K = [
4458
4479
  q(
4459
4480
  b,
4460
4481
  "input",
@@ -4476,17 +4497,17 @@ function So(e) {
4476
4497
  e[22]
4477
4498
  )
4478
4499
  )
4479
- ], H = !0);
4500
+ ], M = !0);
4480
4501
  },
4481
4502
  p(S, L) {
4482
4503
  /*isMobile*/
4483
4504
  S[18] && J.p(S, L), L[0] & /*$_*/
4484
- 131072 && i !== (i = /*$_*/
4485
- S[17]("titleBonuses") + "") && ne(o, i), L[0] & /*$_*/
4505
+ 131072 && o !== (o = /*$_*/
4506
+ S[17]("titleBonuses") + "") && ne(i, o), L[0] & /*$_*/
4486
4507
  131072 && l !== (l = /*$_*/
4487
4508
  S[17]("bonusCode") + "") && ne(c, l), L[0] & /*bonusCode*/
4488
4509
  512 && b.value !== /*bonusCode*/
4489
- S[9] && wt(
4510
+ S[9] && St(
4490
4511
  b,
4491
4512
  /*bonusCode*/
4492
4513
  S[9]
@@ -4495,26 +4516,26 @@ function So(e) {
4495
4516
  S[17]("getBonus") + "") && ne(_, C), L[0] & /*invalidBonusField*/
4496
4517
  128 && (d.disabled = /*invalidBonusField*/
4497
4518
  S[7]), /*invalidBonusCode*/
4498
- S[8] ? R ? R.p(S, L) : (R = Qt(S), R.c(), R.m(a, null)) : R && (R.d(1), R = null), le === (le = ue(S)) && V ? V.p(S, L) : (V.d(1), V = le(S), V && (V.c(), V.m(O, null))), /*activeBonusesList*/
4499
- S[15].length !== 0 ? U ? U.p(S, L) : (U = Yt(S), U.c(), U.m(t, null)) : U && (U.d(1), U = null), /*bonusModal*/
4500
- S[16] ? $ ? $.p(S, L) : ($ = en(S), $.c(), $.m(N.parentNode, N)) : $ && ($.d(1), $ = null);
4519
+ S[8] ? R ? R.p(S, L) : (R = Yt(S), R.c(), R.m(a, null)) : R && (R.d(1), R = null), le === (le = ue(S)) && V ? V.p(S, L) : (V.d(1), V = le(S), V && (V.c(), V.m(O, null))), /*activeBonusesList*/
4520
+ S[15].length !== 0 ? U ? U.p(S, L) : (U = er(S), U.c(), U.m(t, null)) : U && (U.d(1), U = null), /*bonusModal*/
4521
+ S[16] ? $ ? $.p(S, L) : ($ = rr(S), $.c(), $.m(N.parentNode, N)) : $ && ($.d(1), $ = null);
4501
4522
  },
4502
4523
  d(S) {
4503
- S && (G(t), G(E), G(N)), J && J.d(), R && R.d(), V.d(), U && U.d(), $ && $.d(S), H = !1, se(Y);
4524
+ S && (G(t), G(E), G(N)), J && J.d(), R && R.d(), V.d(), U && U.d(), $ && $.d(S), M = !1, se(K);
4504
4525
  }
4505
4526
  };
4506
4527
  }
4507
- function Ao(e) {
4508
- let t, n, r, i, o, s, a, u, l, c, h = (
4528
+ function Pi(e) {
4529
+ let t, r, n, o, i, s, a, u, l, c, h = (
4509
4530
  /*$_*/
4510
4531
  e[17]("titleBonuses") + ""
4511
4532
  ), f, b, m;
4512
4533
  return {
4513
4534
  c() {
4514
- t = P("div"), n = ce("svg"), r = ce("defs"), i = ce("style"), o = F(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = ce("g"), a = ce("g"), u = ce("path"), l = j(), c = P("h2"), f = F(h), B(u, "class", "aaa"), B(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), B(u, "transform", "translate(15 15) rotate(180)"), B(a, "transform", "translate(20 158)"), B(s, "transform", "translate(-20 -158)"), B(n, "xmlns", "http://www.w3.org/2000/svg"), B(n, "width", "15"), B(n, "height", "15"), B(n, "viewBox", "0 0 15 15"), B(c, "class", "ActiveBonusesTitleMobile"), B(t, "class", "MenuReturnButton");
4535
+ t = T("div"), r = ce("svg"), n = ce("defs"), o = ce("style"), i = F(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = ce("g"), a = ce("g"), u = ce("path"), l = j(), c = T("h2"), f = F(h), B(u, "class", "aaa"), B(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), B(u, "transform", "translate(15 15) rotate(180)"), B(a, "transform", "translate(20 158)"), B(s, "transform", "translate(-20 -158)"), B(r, "xmlns", "http://www.w3.org/2000/svg"), B(r, "width", "15"), B(r, "height", "15"), B(r, "viewBox", "0 0 15 15"), B(c, "class", "ActiveBonusesTitleMobile"), B(t, "class", "MenuReturnButton");
4515
4536
  },
4516
4537
  m(d, C) {
4517
- W(d, t, C), v(t, n), v(n, r), v(r, i), v(i, o), v(n, s), v(s, a), v(a, u), v(t, l), v(t, c), v(c, f), b || (m = q(
4538
+ W(d, t, C), v(t, r), v(r, n), v(n, o), v(o, i), v(r, s), v(s, a), v(a, u), v(t, l), v(t, c), v(c, f), b || (m = q(
4518
4539
  t,
4519
4540
  "click",
4520
4541
  /*click_handler*/
@@ -4531,98 +4552,98 @@ function Ao(e) {
4531
4552
  }
4532
4553
  };
4533
4554
  }
4534
- function Qt(e) {
4535
- let t, n = (
4555
+ function Yt(e) {
4556
+ let t, r = (
4536
4557
  /*$_*/
4537
4558
  e[17]("invalidBonusCode") + ""
4538
- ), r;
4559
+ ), n;
4539
4560
  return {
4540
4561
  c() {
4541
- t = P("p"), r = F(n), B(t, "class", "InvalidBonusCodeMessage");
4562
+ t = T("p"), n = F(r), B(t, "class", "InvalidBonusCodeMessage");
4542
4563
  },
4543
- m(i, o) {
4544
- W(i, t, o), v(t, r);
4564
+ m(o, i) {
4565
+ W(o, t, i), v(t, n);
4545
4566
  },
4546
- p(i, o) {
4547
- o[0] & /*$_*/
4548
- 131072 && n !== (n = /*$_*/
4549
- i[17]("invalidBonusCode") + "") && ne(r, n);
4567
+ p(o, i) {
4568
+ i[0] & /*$_*/
4569
+ 131072 && r !== (r = /*$_*/
4570
+ o[17]("invalidBonusCode") + "") && ne(n, r);
4550
4571
  },
4551
- d(i) {
4552
- i && G(t);
4572
+ d(o) {
4573
+ o && G(t);
4553
4574
  }
4554
4575
  };
4555
4576
  }
4556
- function To(e) {
4557
- let t, n = Fe(
4577
+ function Mi(e) {
4578
+ let t, r = Fe(
4558
4579
  /*activeBonusesList*/
4559
4580
  e[15]
4560
- ), r = [];
4561
- for (let i = 0; i < n.length; i += 1)
4562
- r[i] = Jt(qt(e, n, i));
4581
+ ), n = [];
4582
+ for (let o = 0; o < r.length; o += 1)
4583
+ n[o] = Kt(Jt(e, r, o));
4563
4584
  return {
4564
4585
  c() {
4565
- for (let i = 0; i < r.length; i += 1)
4566
- r[i].c();
4567
- t = gt();
4586
+ for (let o = 0; o < n.length; o += 1)
4587
+ n[o].c();
4588
+ t = Bt();
4568
4589
  },
4569
- m(i, o) {
4570
- for (let s = 0; s < r.length; s += 1)
4571
- r[s] && r[s].m(i, o);
4572
- W(i, t, o);
4590
+ m(o, i) {
4591
+ for (let s = 0; s < n.length; s += 1)
4592
+ n[s] && n[s].m(o, i);
4593
+ W(o, t, i);
4573
4594
  },
4574
- p(i, o) {
4575
- if (o[0] & /*activeBonusesList, lang, clientstyling, clientstylingurl, mbsource, translationurl, currencylocale*/
4595
+ p(o, i) {
4596
+ if (i[0] & /*activeBonusesList, lang, clientstyling, clientstylingurl, mbsource, translationurl, currencylocale*/
4576
4597
  32831) {
4577
- n = Fe(
4598
+ r = Fe(
4578
4599
  /*activeBonusesList*/
4579
- i[15]
4600
+ o[15]
4580
4601
  );
4581
4602
  let s;
4582
- for (s = 0; s < n.length; s += 1) {
4583
- const a = qt(i, n, s);
4584
- r[s] ? r[s].p(a, o) : (r[s] = Jt(a), r[s].c(), r[s].m(t.parentNode, t));
4603
+ for (s = 0; s < r.length; s += 1) {
4604
+ const a = Jt(o, r, s);
4605
+ n[s] ? n[s].p(a, i) : (n[s] = Kt(a), n[s].c(), n[s].m(t.parentNode, t));
4585
4606
  }
4586
- for (; s < r.length; s += 1)
4587
- r[s].d(1);
4588
- r.length = n.length;
4607
+ for (; s < n.length; s += 1)
4608
+ n[s].d(1);
4609
+ n.length = r.length;
4589
4610
  }
4590
4611
  },
4591
- d(i) {
4592
- i && G(t), on(r, i);
4612
+ d(o) {
4613
+ o && G(t), sr(n, o);
4593
4614
  }
4594
4615
  };
4595
4616
  }
4596
- function Po(e) {
4597
- let t, n = (
4617
+ function Hi(e) {
4618
+ let t, r = (
4598
4619
  /*$_*/
4599
4620
  e[17]("noActiveBonuses") + ""
4600
- ), r;
4621
+ ), n;
4601
4622
  return {
4602
4623
  c() {
4603
- t = P("p"), r = F(n);
4624
+ t = T("p"), n = F(r);
4604
4625
  },
4605
- m(i, o) {
4606
- W(i, t, o), v(t, r);
4626
+ m(o, i) {
4627
+ W(o, t, i), v(t, n);
4607
4628
  },
4608
- p(i, o) {
4609
- o[0] & /*$_*/
4610
- 131072 && n !== (n = /*$_*/
4611
- i[17]("noActiveBonuses") + "") && ne(r, n);
4629
+ p(o, i) {
4630
+ i[0] & /*$_*/
4631
+ 131072 && r !== (r = /*$_*/
4632
+ o[17]("noActiveBonuses") + "") && ne(n, r);
4612
4633
  },
4613
- d(i) {
4614
- i && G(t);
4634
+ d(o) {
4635
+ o && G(t);
4615
4636
  }
4616
4637
  };
4617
4638
  }
4618
- function Mo(e) {
4619
- let t, n, r, i, o, s, a, u, l, c, h, f, b, m, d, C;
4639
+ function Oi(e) {
4640
+ let t, r, n, o, i, s, a, u, l, c, h, f, b, m, d, C;
4620
4641
  return {
4621
4642
  c() {
4622
- t = P("player-bonus-card"), p(t, "termsandconditionsdescription", n = /*activeBonus*/
4623
- e[51].termsandconditionsdescription), p(t, "termsandconditionsurl", r = /*activeBonus*/
4624
- e[51].termsandconditionsurl), p(t, "termsandconditionsasset", i = /*activeBonus*/
4625
- e[51].termsandconditionsasset), p(t, "endpoint", o = /*activeBonus*/
4643
+ t = T("player-bonus-card"), p(t, "termsandconditionsdescription", r = /*activeBonus*/
4644
+ e[51].termsandconditionsdescription), p(t, "termsandconditionsurl", n = /*activeBonus*/
4645
+ e[51].termsandconditionsurl), p(t, "termsandconditionsasset", o = /*activeBonus*/
4646
+ e[51].termsandconditionsasset), p(t, "endpoint", i = /*activeBonus*/
4626
4647
  e[51].endpoint), p(t, "playerid", s = /*activeBonus*/
4627
4648
  e[51].playerid), p(t, "session", a = /*activeBonus*/
4628
4649
  e[51].session), p(t, "bonuswalletid", u = /*activeBonus*/
@@ -4672,14 +4693,14 @@ function Mo(e) {
4672
4693
  },
4673
4694
  p(_, y) {
4674
4695
  y[0] & /*activeBonusesList*/
4675
- 32768 && n !== (n = /*activeBonus*/
4676
- _[51].termsandconditionsdescription) && p(t, "termsandconditionsdescription", n), y[0] & /*activeBonusesList*/
4677
4696
  32768 && r !== (r = /*activeBonus*/
4678
- _[51].termsandconditionsurl) && p(t, "termsandconditionsurl", r), y[0] & /*activeBonusesList*/
4679
- 32768 && i !== (i = /*activeBonus*/
4680
- _[51].termsandconditionsasset) && p(t, "termsandconditionsasset", i), y[0] & /*activeBonusesList*/
4697
+ _[51].termsandconditionsdescription) && p(t, "termsandconditionsdescription", r), y[0] & /*activeBonusesList*/
4698
+ 32768 && n !== (n = /*activeBonus*/
4699
+ _[51].termsandconditionsurl) && p(t, "termsandconditionsurl", n), y[0] & /*activeBonusesList*/
4681
4700
  32768 && o !== (o = /*activeBonus*/
4682
- _[51].endpoint) && p(t, "endpoint", o), y[0] & /*activeBonusesList*/
4701
+ _[51].termsandconditionsasset) && p(t, "termsandconditionsasset", o), y[0] & /*activeBonusesList*/
4702
+ 32768 && i !== (i = /*activeBonus*/
4703
+ _[51].endpoint) && p(t, "endpoint", i), y[0] & /*activeBonusesList*/
4683
4704
  32768 && s !== (s = /*activeBonus*/
4684
4705
  _[51].playerid) && p(t, "playerid", s), y[0] & /*activeBonusesList*/
4685
4706
  32768 && a !== (a = /*activeBonus*/
@@ -4745,14 +4766,14 @@ function Mo(e) {
4745
4766
  }
4746
4767
  };
4747
4768
  }
4748
- function Ho(e) {
4749
- let t, n, r, i, o, s, a, u, l, c, h, f, b;
4769
+ function Ii(e) {
4770
+ let t, r, n, o, i, s, a, u, l, c, h, f, b;
4750
4771
  return {
4751
4772
  c() {
4752
- t = P("player-bonus-card"), p(t, "termsandconditionsdescription", n = /*activeBonus*/
4753
- e[51].termsandconditionsdescription), p(t, "termsandconditionsurl", r = /*activeBonus*/
4754
- e[51].termsandconditionsurl), p(t, "termsandconditionsasset", i = /*activeBonus*/
4755
- e[51].termsandconditionsasset), p(t, "endpoint", o = /*activeBonus*/
4773
+ t = T("player-bonus-card"), p(t, "termsandconditionsdescription", r = /*activeBonus*/
4774
+ e[51].termsandconditionsdescription), p(t, "termsandconditionsurl", n = /*activeBonus*/
4775
+ e[51].termsandconditionsurl), p(t, "termsandconditionsasset", o = /*activeBonus*/
4776
+ e[51].termsandconditionsasset), p(t, "endpoint", i = /*activeBonus*/
4756
4777
  e[51].endpoint), p(t, "playerid", s = /*activeBonus*/
4757
4778
  e[51].playerid), p(t, "session", a = /*activeBonus*/
4758
4779
  e[51].session), p(t, "bonuswalletid", u = /*activeBonus*/
@@ -4798,14 +4819,14 @@ function Ho(e) {
4798
4819
  },
4799
4820
  p(m, d) {
4800
4821
  d[0] & /*activeBonusesList*/
4801
- 32768 && n !== (n = /*activeBonus*/
4802
- m[51].termsandconditionsdescription) && p(t, "termsandconditionsdescription", n), d[0] & /*activeBonusesList*/
4803
4822
  32768 && r !== (r = /*activeBonus*/
4804
- m[51].termsandconditionsurl) && p(t, "termsandconditionsurl", r), d[0] & /*activeBonusesList*/
4805
- 32768 && i !== (i = /*activeBonus*/
4806
- m[51].termsandconditionsasset) && p(t, "termsandconditionsasset", i), d[0] & /*activeBonusesList*/
4823
+ m[51].termsandconditionsdescription) && p(t, "termsandconditionsdescription", r), d[0] & /*activeBonusesList*/
4824
+ 32768 && n !== (n = /*activeBonus*/
4825
+ m[51].termsandconditionsurl) && p(t, "termsandconditionsurl", n), d[0] & /*activeBonusesList*/
4807
4826
  32768 && o !== (o = /*activeBonus*/
4808
- m[51].endpoint) && p(t, "endpoint", o), d[0] & /*activeBonusesList*/
4827
+ m[51].termsandconditionsasset) && p(t, "termsandconditionsasset", o), d[0] & /*activeBonusesList*/
4828
+ 32768 && i !== (i = /*activeBonus*/
4829
+ m[51].endpoint) && p(t, "endpoint", i), d[0] & /*activeBonusesList*/
4809
4830
  32768 && s !== (s = /*activeBonus*/
4810
4831
  m[51].playerid) && p(t, "playerid", s), d[0] & /*activeBonusesList*/
4811
4832
  32768 && a !== (a = /*activeBonus*/
@@ -4864,43 +4885,43 @@ function Ho(e) {
4864
4885
  }
4865
4886
  };
4866
4887
  }
4867
- function Jt(e) {
4888
+ function Kt(e) {
4868
4889
  let t;
4869
- function n(o, s) {
4890
+ function r(i, s) {
4870
4891
  return (
4871
4892
  /*activeBonus*/
4872
- o[51].type === "freeRound" ? Ho : Mo
4893
+ i[51].type === "freeRound" ? Ii : Oi
4873
4894
  );
4874
4895
  }
4875
- let r = n(e), i = r(e);
4896
+ let n = r(e), o = n(e);
4876
4897
  return {
4877
4898
  c() {
4878
- i.c(), t = gt();
4899
+ o.c(), t = Bt();
4879
4900
  },
4880
- m(o, s) {
4881
- i.m(o, s), W(o, t, s);
4901
+ m(i, s) {
4902
+ o.m(i, s), W(i, t, s);
4882
4903
  },
4883
- p(o, s) {
4884
- r === (r = n(o)) && i ? i.p(o, s) : (i.d(1), i = r(o), i && (i.c(), i.m(t.parentNode, t)));
4904
+ p(i, s) {
4905
+ n === (n = r(i)) && o ? o.p(i, s) : (o.d(1), o = n(i), o && (o.c(), o.m(t.parentNode, t)));
4885
4906
  },
4886
- d(o) {
4887
- o && G(t), i.d(o);
4907
+ d(i) {
4908
+ i && G(t), o.d(i);
4888
4909
  }
4889
4910
  };
4890
4911
  }
4891
- function Yt(e) {
4892
- let t, n, r, i, o, s, a, u, l, c, h, f, b, m, d, C, _, y, M, O = Fe(Array(
4912
+ function er(e) {
4913
+ let t, r, n, o, i, s, a, u, l, c, h, f, b, m, d, C, _, y, P, O = Fe(Array(
4893
4914
  /*numberOfPages*/
4894
4915
  e[13]
4895
- )), T = [];
4916
+ )), A = [];
4896
4917
  for (let E = 0; E < O.length; E += 1)
4897
- T[E] = Kt(Zt(e, O, E));
4918
+ A[E] = tr(Qt(e, O, E));
4898
4919
  return {
4899
4920
  c() {
4900
- t = P("div"), n = P("span"), r = F("|<"), o = j(), s = P("span"), a = F("<"), l = j();
4901
- for (let E = 0; E < T.length; E += 1)
4902
- T[E].c();
4903
- c = j(), h = P("span"), f = F(">"), m = j(), d = P("span"), C = F(">|"), B(n, "class", i = "BonusesFirst " + /*currentPage*/
4921
+ t = T("div"), r = T("span"), n = F("|<"), i = j(), s = T("span"), a = F("<"), l = j();
4922
+ for (let E = 0; E < A.length; E += 1)
4923
+ A[E].c();
4924
+ c = j(), h = T("span"), f = F(">"), m = j(), d = T("span"), C = F(">|"), B(r, "class", o = "BonusesFirst " + /*currentPage*/
4904
4925
  (e[14] === 0 ? "Inactive" : "")), B(s, "class", u = "BonusesPrev " + /*currentPage*/
4905
4926
  (e[14] === 0 ? "Inactive" : "")), B(h, "class", b = "BonusesNext " + /*currentPage*/
4906
4927
  (e[14] === /*numberOfPages*/
@@ -4910,12 +4931,12 @@ function Yt(e) {
4910
4931
  (e[18] ? "BonusesPaginationWrapperMobile" : ""));
4911
4932
  },
4912
4933
  m(E, N) {
4913
- W(E, t, N), v(t, n), v(n, r), v(t, o), v(t, s), v(s, a), v(t, l);
4914
- for (let H = 0; H < T.length; H += 1)
4915
- T[H] && T[H].m(t, null);
4916
- v(t, c), v(t, h), v(h, f), v(t, m), v(t, d), v(d, C), y || (M = [
4934
+ W(E, t, N), v(t, r), v(r, n), v(t, i), v(t, s), v(s, a), v(t, l);
4935
+ for (let M = 0; M < A.length; M += 1)
4936
+ A[M] && A[M].m(t, null);
4937
+ v(t, c), v(t, h), v(h, f), v(t, m), v(t, d), v(d, C), y || (P = [
4917
4938
  q(
4918
- n,
4939
+ r,
4919
4940
  "click",
4920
4941
  /*click_handler_1*/
4921
4942
  e[32]
@@ -4942,8 +4963,8 @@ function Yt(e) {
4942
4963
  },
4943
4964
  p(E, N) {
4944
4965
  if (N[0] & /*currentPage*/
4945
- 16384 && i !== (i = "BonusesFirst " + /*currentPage*/
4946
- (E[14] === 0 ? "Inactive" : "")) && B(n, "class", i), N[0] & /*currentPage*/
4966
+ 16384 && o !== (o = "BonusesFirst " + /*currentPage*/
4967
+ (E[14] === 0 ? "Inactive" : "")) && B(r, "class", o), N[0] & /*currentPage*/
4947
4968
  16384 && u !== (u = "BonusesPrev " + /*currentPage*/
4948
4969
  (E[14] === 0 ? "Inactive" : "")) && B(s, "class", u), N[0] & /*currentPage, getActiveBonuses, numberOfPages*/
4949
4970
  2121728) {
@@ -4951,14 +4972,14 @@ function Yt(e) {
4951
4972
  /*numberOfPages*/
4952
4973
  E[13]
4953
4974
  ));
4954
- let H;
4955
- for (H = 0; H < O.length; H += 1) {
4956
- const Y = Zt(E, O, H);
4957
- T[H] ? T[H].p(Y, N) : (T[H] = Kt(Y), T[H].c(), T[H].m(t, c));
4975
+ let M;
4976
+ for (M = 0; M < O.length; M += 1) {
4977
+ const K = Qt(E, O, M);
4978
+ A[M] ? A[M].p(K, N) : (A[M] = tr(K), A[M].c(), A[M].m(t, c));
4958
4979
  }
4959
- for (; H < T.length; H += 1)
4960
- T[H].d(1);
4961
- T.length = O.length;
4980
+ for (; M < A.length; M += 1)
4981
+ A[M].d(1);
4982
+ A.length = O.length;
4962
4983
  }
4963
4984
  N[0] & /*currentPage, numberOfPages*/
4964
4985
  24576 && b !== (b = "BonusesNext " + /*currentPage*/
@@ -4969,15 +4990,15 @@ function Yt(e) {
4969
4990
  E[13] - 1 ? "Inactive" : "")) && B(d, "class", _);
4970
4991
  },
4971
4992
  d(E) {
4972
- E && G(t), on(T, E), y = !1, se(M);
4993
+ E && G(t), sr(A, E), y = !1, se(P);
4973
4994
  }
4974
4995
  };
4975
4996
  }
4976
- function Kt(e) {
4977
- let t, n = (
4997
+ function tr(e) {
4998
+ let t, r = (
4978
4999
  /*i*/
4979
5000
  e[50] + 1 + ""
4980
- ), r, i, o, s;
5001
+ ), n, o, i, s;
4981
5002
  function a() {
4982
5003
  return (
4983
5004
  /*click_handler_3*/
@@ -4989,26 +5010,26 @@ function Kt(e) {
4989
5010
  }
4990
5011
  return {
4991
5012
  c() {
4992
- t = P("span"), r = F(n), B(t, "class", i = "BonusesPage " + /*i*/
5013
+ t = T("span"), n = F(r), B(t, "class", o = "BonusesPage " + /*i*/
4993
5014
  (e[50] === /*currentPage*/
4994
5015
  e[14] ? "BonusPageActive" : ""));
4995
5016
  },
4996
5017
  m(u, l) {
4997
- W(u, t, l), v(t, r), o || (s = q(t, "click", a), o = !0);
5018
+ W(u, t, l), v(t, n), i || (s = q(t, "click", a), i = !0);
4998
5019
  },
4999
5020
  p(u, l) {
5000
5021
  e = u, l[0] & /*currentPage*/
5001
- 16384 && i !== (i = "BonusesPage " + /*i*/
5022
+ 16384 && o !== (o = "BonusesPage " + /*i*/
5002
5023
  (e[50] === /*currentPage*/
5003
- e[14] ? "BonusPageActive" : "")) && B(t, "class", i);
5024
+ e[14] ? "BonusPageActive" : "")) && B(t, "class", o);
5004
5025
  },
5005
5026
  d(u) {
5006
- u && G(t), o = !1, s();
5027
+ u && G(t), i = !1, s();
5007
5028
  }
5008
5029
  };
5009
5030
  }
5010
- function en(e) {
5011
- let t, n, r, i, o = (
5031
+ function rr(e) {
5032
+ let t, r, n, o, i = (
5012
5033
  /*$_*/
5013
5034
  e[17]("forfeitBonus") + ""
5014
5035
  ), s, a, u, l, c = (
@@ -5020,11 +5041,11 @@ function en(e) {
5020
5041
  ), d, C, _;
5021
5042
  return {
5022
5043
  c() {
5023
- t = P("div"), n = P("div"), r = P("div"), i = P("p"), s = F(o), a = j(), u = P("div"), l = P("button"), h = F(c), f = j(), b = P("button"), d = F(m), B(i, "class", "ModalText"), B(l, "class", "ModalCancel"), B(b, "class", "ModalConfirm"), B(u, "class", "ModalButtons"), B(r, "class", "ModalBody"), B(n, "class", "ModalContent"), B(t, "class", "ModalWrapper " + /*isMobile*/
5044
+ t = T("div"), r = T("div"), n = T("div"), o = T("p"), s = F(i), a = j(), u = T("div"), l = T("button"), h = F(c), f = j(), b = T("button"), d = F(m), B(o, "class", "ModalText"), B(l, "class", "ModalCancel"), B(b, "class", "ModalConfirm"), B(u, "class", "ModalButtons"), B(n, "class", "ModalBody"), B(r, "class", "ModalContent"), B(t, "class", "ModalWrapper " + /*isMobile*/
5024
5045
  (e[18] ? "ModalWrapperMobile" : ""));
5025
5046
  },
5026
- m(y, M) {
5027
- W(y, t, M), v(t, n), v(n, r), v(r, i), v(i, s), v(r, a), v(r, u), v(u, l), v(l, h), v(u, f), v(u, b), v(b, d), C || (_ = [
5047
+ m(y, P) {
5048
+ W(y, t, P), v(t, r), v(r, n), v(n, o), v(o, s), v(n, a), v(n, u), v(u, l), v(l, h), v(u, f), v(u, b), v(b, d), C || (_ = [
5028
5049
  q(
5029
5050
  l,
5030
5051
  "click",
@@ -5042,12 +5063,12 @@ function en(e) {
5042
5063
  )
5043
5064
  ], C = !0);
5044
5065
  },
5045
- p(y, M) {
5046
- M[0] & /*$_*/
5047
- 131072 && o !== (o = /*$_*/
5048
- y[17]("forfeitBonus") + "") && ne(s, o), M[0] & /*$_*/
5066
+ p(y, P) {
5067
+ P[0] & /*$_*/
5068
+ 131072 && i !== (i = /*$_*/
5069
+ y[17]("forfeitBonus") + "") && ne(s, i), P[0] & /*$_*/
5049
5070
  131072 && c !== (c = /*$_*/
5050
- y[17]("forfeitBonusCancel") + "") && ne(h, c), M[0] & /*$_*/
5071
+ y[17]("forfeitBonusCancel") + "") && ne(h, c), P[0] & /*$_*/
5051
5072
  131072 && m !== (m = /*$_*/
5052
5073
  y[17]("forfeitBonusConfirm") + "") && ne(d, m);
5053
5074
  },
@@ -5056,51 +5077,51 @@ function en(e) {
5056
5077
  }
5057
5078
  };
5058
5079
  }
5059
- function Io(e) {
5080
+ function Ni(e) {
5060
5081
  let t;
5061
- function n(o, s) {
5062
- return So;
5082
+ function r(i, s) {
5083
+ return Ti;
5063
5084
  }
5064
- let i = n()(e);
5085
+ let o = r()(e);
5065
5086
  return {
5066
5087
  c() {
5067
- t = P("div"), i.c();
5088
+ t = T("div"), o.c();
5068
5089
  },
5069
- m(o, s) {
5070
- W(o, t, s), i.m(t, null), e[37](t);
5090
+ m(i, s) {
5091
+ W(i, t, s), o.m(t, null), e[37](t);
5071
5092
  },
5072
- p(o, s) {
5073
- i.p(o, s);
5093
+ p(i, s) {
5094
+ o.p(i, s);
5074
5095
  },
5075
5096
  i: Q,
5076
5097
  o: Q,
5077
- d(o) {
5078
- o && G(t), i.d(), e[37](null);
5098
+ d(i) {
5099
+ i && G(t), o.d(), e[37](null);
5079
5100
  }
5080
5101
  };
5081
5102
  }
5082
- let Oo = "status=active", te = 6;
5083
- function No(e, t, n) {
5084
- let r;
5085
- Jn(e, yo, (g) => n(17, r = g));
5086
- let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: s = "" } = t, { lang: a = "en" } = t, { currency: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: h } = t, { translationurl: f = "" } = t, { currencylocale: b = "" } = t, m, d = window.navigator.userAgent, C = _o(d) !== "PC", _ = !0, y = !1, M = "", O = 0, T = 0, E = 0, N = 0, H = 0, Y = [], J, R = "", ue = !1;
5103
+ let Li = "status=active", re = 6;
5104
+ function Ri(e, t, r) {
5105
+ let n;
5106
+ Jr(e, Bi, (g) => r(17, n = g));
5107
+ 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: f = "" } = t, { currencylocale: b = "" } = t, m, d = window.navigator.userAgent, C = Ei(d) !== "PC", _ = !0, y = !1, P = "", O = 0, A = 0, E = 0, N = 0, M = 0, K = [], J, R = "", ue = !1;
5087
5108
  const le = () => {
5088
5109
  fetch(f).then((D) => D.json()).then((D) => {
5089
5110
  Object.keys(D).forEach((X) => {
5090
- zt(X, D[X]);
5111
+ Zt(X, D[X]);
5091
5112
  });
5092
5113
  }).catch((D) => {
5093
5114
  console.log(D);
5094
5115
  });
5095
5116
  };
5096
- Object.keys(Xt).forEach((g) => {
5097
- zt(g, Xt[g]);
5117
+ Object.keys(qt).forEach((g) => {
5118
+ Zt(g, qt[g]);
5098
5119
  });
5099
5120
  const V = (g) => {
5100
5121
  if (g.data)
5101
5122
  switch (g.data.type) {
5102
5123
  case "DeleteActiveBonus":
5103
- R = g.data.bonuswalletid, n(16, ue = !0);
5124
+ R = g.data.bonuswalletid, r(16, ue = !0);
5104
5125
  break;
5105
5126
  }
5106
5127
  };
@@ -5122,101 +5143,101 @@ function No(e, t, n) {
5122
5143
  },
5123
5144
  window.location.href
5124
5145
  );
5125
- }, S = () => !!M, L = () => {
5126
- n(7, _ = !S());
5127
- }, K = (g) => {
5146
+ }, S = () => !!P, L = () => {
5147
+ r(7, _ = !S());
5148
+ }, ee = (g) => {
5128
5149
  let D = {
5129
5150
  method: "GET",
5130
- headers: { "X-SessionId": o }
5131
- }, X = new URL(`${i}/v1/player/${s}/bonusWallet`);
5132
- X.searchParams.append("filter", Oo), X.searchParams.append("pagination", `offset=${g},limit=${te}`), fetch(X, D).then((ee) => ee.json()).then(
5133
- (ee) => {
5134
- Array.isArray(ee.items) && ee.items.forEach((z) => {
5151
+ headers: { "X-SessionId": i }
5152
+ }, X = new URL(`${o}/v1/player/${s}/bonusWallet`);
5153
+ X.searchParams.append("filter", Li), X.searchParams.append("pagination", `offset=${g},limit=${re}`), fetch(X, D).then((te) => te.json()).then(
5154
+ (te) => {
5155
+ Array.isArray(te.items) && te.items.forEach((z) => {
5135
5156
  const Me = z?.extension?.bonus?.presentation;
5136
5157
  Me && (z.termsandconditionsurl = Me.url, z.termsandconditionsdescription = Me.description, z.termsandconditionsasset = Me.assets);
5137
- }), n(13, N = Math.ceil(ee.total / te)), g - te >= 0 && n(10, O = g - te), g + te < ee.total && n(11, T = g + te), n(12, E = (N - 1) * te), n(14, H = g / te), n(15, Y = ee?.items || []), b && Y.forEach((z) => {
5158
+ }), r(13, N = Math.ceil(te.total / re)), g - re >= 0 && r(10, O = g - re), g + re < te.total && r(11, A = g + re), r(12, E = (N - 1) * re), r(14, M = g / re), r(15, K = te?.items || []), b && K.forEach((z) => {
5138
5159
  z.fulfilledWR = Pe(z.fulfilledWR), z.originalWageringRequirement = Pe(z.originalWageringRequirement), z.currentAmount = Pe(z.currentAmount), z.extension.grantedPlayerCurrencyAmount = Pe(z.extension.grantedPlayerCurrencyAmount);
5139
5160
  }), window.scrollTo({ top: 0, behavior: "smooth" });
5140
5161
  },
5141
- (ee) => {
5142
- console.error(ee);
5162
+ (te) => {
5163
+ console.error(te);
5143
5164
  }
5144
5165
  );
5145
- }, Pe = (g) => new Intl.NumberFormat(b, { style: "currency", currency: u }).format(g).replace(/\s/g, ""), Fn = () => {
5146
- let g = new URL(`${i}/v1/player/${s}/claimbonus`), D = {
5166
+ }, Pe = (g) => new Intl.NumberFormat(b, { style: "currency", currency: u }).format(g).replace(/\s/g, ""), Fr = () => {
5167
+ let g = new URL(`${o}/v1/player/${s}/claimbonus`), D = {
5147
5168
  method: "POST",
5148
5169
  headers: {
5149
- "X-SessionId": o,
5170
+ "X-SessionId": i,
5150
5171
  accept: "application/json"
5151
5172
  }
5152
5173
  };
5153
- g.searchParams.append("currency", u), g.searchParams.append("bonusCode", M), fetch(g.href, D).then((X) => {
5154
- X.status == 200 ? (n(8, y = !1), K(0), window.postMessage(
5174
+ g.searchParams.append("currency", u), g.searchParams.append("bonusCode", P), fetch(g.href, D).then((X) => {
5175
+ X.status == 200 ? (r(8, y = !1), ee(0), window.postMessage(
5155
5176
  {
5156
5177
  type: "WidgetNotification",
5157
5178
  data: {
5158
5179
  type: "success",
5159
- message: r("successMessage")
5180
+ message: n("successMessage")
5160
5181
  }
5161
5182
  },
5162
5183
  window.location.href
5163
5184
  ), typeof gtag == "function" && gtag("event", "ClaimBonus", {
5164
5185
  context: "PlayerActiveBonuses",
5165
5186
  userId: `${s || "Not logged in"}`,
5166
- bonusCode: `${M}`
5167
- })) : (n(8, y = !0), window.postMessage(
5187
+ bonusCode: `${P}`
5188
+ })) : (r(8, y = !0), window.postMessage(
5168
5189
  {
5169
5190
  type: "WidgetNotification",
5170
5191
  data: {
5171
5192
  type: "error",
5172
- message: r("errorMessage")
5193
+ message: n("errorMessage")
5173
5194
  }
5174
5195
  },
5175
5196
  window.location.href
5176
5197
  ));
5177
5198
  });
5178
- }, Et = () => {
5179
- window.postMessage({ type: "EnableScroll" }, window.location.href), n(16, ue = !1);
5180
- }, Un = () => {
5199
+ }, wt = () => {
5200
+ window.postMessage({ type: "EnableScroll" }, window.location.href), r(16, ue = !1);
5201
+ }, Ur = () => {
5181
5202
  let g = {
5182
5203
  method: "DELETE",
5183
5204
  headers: {
5184
- "X-SessionId": o,
5205
+ "X-SessionId": i,
5185
5206
  "Content-Type": "application/json",
5186
5207
  Accept: "application/json"
5187
5208
  }
5188
- }, D = new URL(`${i}/v1/player/${s}/bonusWallet`);
5209
+ }, D = new URL(`${o}/v1/player/${s}/bonusWallet`);
5189
5210
  D.searchParams.append("bonusWalletID", R), fetch(D, g).then((X) => {
5190
- X.status == 200 && (K(0), Et());
5211
+ X.status == 200 && (ee(0), wt());
5191
5212
  });
5192
- }, Dn = () => {
5193
- Bo(a);
5213
+ }, Dr = () => {
5214
+ xi(a);
5194
5215
  };
5195
- function Gn(g) {
5216
+ function Gr(g) {
5196
5217
  return U(g, 1e3);
5197
5218
  }
5198
- ir(() => (window.addEventListener("message", V, !1), () => {
5219
+ on(() => (window.addEventListener("message", V, !1), () => {
5199
5220
  window.removeEventListener("message", V);
5200
5221
  }));
5201
- const kn = () => $();
5202
- function jn() {
5203
- M = this.value, n(9, M);
5222
+ const kr = () => $();
5223
+ function jr() {
5224
+ P = this.value, r(9, P);
5204
5225
  }
5205
- const Wn = () => K(0), Vn = () => K(O), zn = (g) => K(g * te), Xn = () => K(T), Zn = () => K(E);
5206
- function qn(g) {
5207
- et[g ? "unshift" : "push"](() => {
5208
- m = g, n(6, m);
5226
+ const Wr = () => ee(0), Vr = () => ee(O), zr = (g) => ee(g * re), Xr = () => ee(A), Zr = () => ee(E);
5227
+ function qr(g) {
5228
+ rt[g ? "unshift" : "push"](() => {
5229
+ m = g, r(6, m);
5209
5230
  });
5210
5231
  }
5211
5232
  return e.$$set = (g) => {
5212
- "endpoint" in g && n(26, i = g.endpoint), "session" in g && n(27, o = g.session), "playerid" in g && n(28, s = g.playerid), "lang" in g && n(0, a = g.lang), "currency" in g && n(29, u = g.currency), "clientstyling" in g && n(1, l = g.clientstyling), "clientstylingurl" in g && n(2, c = g.clientstylingurl), "mbsource" in g && n(3, h = g.mbsource), "translationurl" in g && n(4, f = g.translationurl), "currencylocale" in g && n(5, b = g.currencylocale);
5233
+ "endpoint" in g && r(26, o = g.endpoint), "session" in g && r(27, i = g.session), "playerid" in g && r(28, s = g.playerid), "lang" in g && r(0, a = g.lang), "currency" in g && r(29, u = g.currency), "clientstyling" in g && r(1, l = g.clientstyling), "clientstylingurl" in g && r(2, c = g.clientstylingurl), "mbsource" in g && r(3, h = g.mbsource), "translationurl" in g && r(4, f = g.translationurl), "currencylocale" in g && r(5, b = g.currencylocale);
5213
5234
  }, e.$$.update = () => {
5214
5235
  e.$$.dirty[0] & /*lang*/
5215
- 1 && a && Dn(), e.$$.dirty[0] & /*session, playerid, endpoint*/
5216
- 469762048 && o && s && i && K(0), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5217
- 66 && l && m && Eo(m, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5218
- 68 && c && m && xo(m, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5219
- 72 && h && m && wo(m, `${h}.Style`), e.$$.dirty[0] & /*translationurl*/
5236
+ 1 && a && Dr(), e.$$.dirty[0] & /*session, playerid, endpoint*/
5237
+ 469762048 && i && s && o && ee(0), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5238
+ 66 && l && m && wi(m, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5239
+ 68 && c && m && Ci(m, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5240
+ 72 && h && m && Si(m, `${h}.Style`), e.$$.dirty[0] & /*translationurl*/
5220
5241
  16 && f && le();
5221
5242
  }, [
5222
5243
  a,
@@ -5228,45 +5249,45 @@ function No(e, t, n) {
5228
5249
  m,
5229
5250
  _,
5230
5251
  y,
5231
- M,
5252
+ P,
5232
5253
  O,
5233
- T,
5254
+ A,
5234
5255
  E,
5235
5256
  N,
5236
- H,
5237
- Y,
5257
+ M,
5258
+ K,
5238
5259
  ue,
5239
- r,
5260
+ n,
5240
5261
  C,
5241
5262
  $,
5242
5263
  L,
5243
- K,
5244
- Fn,
5245
- Et,
5246
- Un,
5247
- Gn,
5248
- i,
5264
+ ee,
5265
+ Fr,
5266
+ wt,
5267
+ Ur,
5268
+ Gr,
5249
5269
  o,
5270
+ i,
5250
5271
  s,
5251
5272
  u,
5252
- kn,
5253
- jn,
5254
- Wn,
5255
- Vn,
5256
- zn,
5257
- Xn,
5258
- Zn,
5259
- qn
5273
+ kr,
5274
+ jr,
5275
+ Wr,
5276
+ Vr,
5277
+ zr,
5278
+ Xr,
5279
+ Zr,
5280
+ qr
5260
5281
  ];
5261
5282
  }
5262
- class Lo extends br {
5283
+ class $i extends gn {
5263
5284
  constructor(t) {
5264
- super(), pr(
5285
+ super(), mn(
5265
5286
  this,
5266
5287
  t,
5267
- No,
5268
- Io,
5269
- nn,
5288
+ Ri,
5289
+ Ni,
5290
+ or,
5270
5291
  {
5271
5292
  endpoint: 26,
5272
5293
  session: 27,
@@ -5279,7 +5300,7 @@ class Lo extends br {
5279
5300
  translationurl: 4,
5280
5301
  currencylocale: 5
5281
5302
  },
5282
- Co,
5303
+ Ai,
5283
5304
  [-1, -1]
5284
5305
  );
5285
5306
  }
@@ -5344,34 +5365,34 @@ class Lo extends br {
5344
5365
  this.$$set({ currencylocale: t }), Z();
5345
5366
  }
5346
5367
  }
5347
- mr(Lo, { endpoint: {}, session: {}, playerid: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currencylocale: {} }, [], [], !0);
5368
+ bn($i, { endpoint: {}, session: {}, playerid: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currencylocale: {} }, [], [], !0);
5348
5369
  export {
5349
- Be as $,
5350
- Lo as P,
5351
- br as S,
5352
- On as a,
5353
- Yn as b,
5354
- mr as c,
5355
- j as d,
5356
- P as e,
5370
+ _e as $,
5371
+ $i as P,
5372
+ gn as S,
5373
+ Ir as a,
5374
+ Yr as b,
5375
+ bn as c,
5376
+ G as d,
5377
+ ne as e,
5357
5378
  Z as f,
5358
5379
  B as g,
5359
5380
  W as h,
5360
- pr as i,
5381
+ mn as i,
5361
5382
  v as j,
5362
- ne as k,
5363
- G as l,
5364
- Jn as m,
5383
+ T as k,
5384
+ j as l,
5385
+ Jr as m,
5365
5386
  Q as n,
5366
- _o as o,
5367
- ir as p,
5368
- xo as q,
5369
- wo as r,
5370
- nn as s,
5387
+ Ei as o,
5388
+ on as p,
5389
+ Fi as q,
5390
+ q as r,
5391
+ or as s,
5371
5392
  F as t,
5372
- Ro as u,
5373
- q as v,
5374
- et as w,
5375
- Eo as x,
5376
- yo as y
5393
+ rt as u,
5394
+ Bi as v,
5395
+ wi as w,
5396
+ Ci as x,
5397
+ Si as y
5377
5398
  };