@everymatrix/casino-wagering-bonus-slider-controller 1.53.0 → 1.53.11

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,75 +1,46 @@
1
- var Ln = Object.defineProperty, Cn = Object.defineProperties;
2
- var On = Object.getOwnPropertyDescriptors;
3
- var dr = Object.getOwnPropertySymbols;
4
- var Pn = Object.prototype.hasOwnProperty, Nn = Object.prototype.propertyIsEnumerable;
5
- var Mt = (e, t, r) => t in e ? Ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pr = (e, t) => {
6
- for (var r in t || (t = {}))
7
- Pn.call(t, r) && Mt(e, r, t[r]);
8
- if (dr)
9
- for (var r of dr(t))
10
- Nn.call(t, r) && Mt(e, r, t[r]);
11
- return e;
12
- }, mr = (e, t) => Cn(e, On(t));
13
- var ne = (e, t, r) => Mt(e, typeof t != "symbol" ? t + "" : t, r);
14
- var gr = (e, t, r) => new Promise((n, i) => {
15
- var o = (h) => {
16
- try {
17
- a(r.next(h));
18
- } catch (u) {
19
- i(u);
20
- }
21
- }, s = (h) => {
22
- try {
23
- a(r.throw(h));
24
- } catch (u) {
25
- i(u);
26
- }
27
- }, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
28
- a((r = r.apply(e, t)).next());
29
- });
30
- function ae() {
1
+ function se() {
31
2
  }
32
- function kr(e) {
3
+ function Rr(e) {
33
4
  return e();
34
5
  }
35
- function vr() {
6
+ function lr() {
36
7
  return /* @__PURE__ */ Object.create(null);
37
8
  }
38
- function Be(e) {
39
- e.forEach(kr);
9
+ function Ae(e) {
10
+ e.forEach(Rr);
40
11
  }
41
- function sr(e) {
12
+ function nr(e) {
42
13
  return typeof e == "function";
43
14
  }
44
- function Xr(e, t) {
15
+ function Dr(e, t) {
45
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
17
  }
47
- function Mn(e) {
18
+ function _n(e) {
48
19
  return Object.keys(e).length === 0;
49
20
  }
50
- function Vr(e, ...t) {
21
+ function Fr(e, ...t) {
51
22
  if (e == null) {
52
23
  for (const n of t)
53
24
  n(void 0);
54
- return ae;
25
+ return se;
55
26
  }
56
27
  const r = e.subscribe(...t);
57
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
29
  }
59
- function Rn(e, t, r) {
60
- e.$$.on_destroy.push(Vr(t, r));
30
+ function En(e, t, r) {
31
+ e.$$.on_destroy.push(Fr(t, r));
61
32
  }
62
33
  function G(e, t) {
63
34
  e.appendChild(t);
64
35
  }
65
- function Dn(e, t, r) {
66
- const n = Fn(e);
36
+ function xn(e, t, r) {
37
+ const n = wn(e);
67
38
  if (!n.getElementById(t)) {
68
39
  const i = W("style");
69
- i.id = t, i.textContent = r, Un(n, i);
40
+ i.id = t, i.textContent = r, Sn(n, i);
70
41
  }
71
42
  }
72
- function Fn(e) {
43
+ function wn(e) {
73
44
  if (!e) return document;
74
45
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
75
46
  return t && /** @type {ShadowRoot} */
@@ -78,7 +49,7 @@ function Fn(e) {
78
49
  t
79
50
  ) : e.ownerDocument;
80
51
  }
81
- function Un(e, t) {
52
+ function Sn(e, t) {
82
53
  return G(
83
54
  /** @type {Document} */
84
55
  e.head || e,
@@ -88,26 +59,26 @@ function Un(e, t) {
88
59
  function be(e, t, r) {
89
60
  e.insertBefore(t, r || null);
90
61
  }
91
- function le(e) {
62
+ function ue(e) {
92
63
  e.parentNode && e.parentNode.removeChild(e);
93
64
  }
94
- function $n(e, t) {
65
+ function Tn(e, t) {
95
66
  for (let r = 0; r < e.length; r += 1)
96
67
  e[r] && e[r].d(t);
97
68
  }
98
69
  function W(e) {
99
70
  return document.createElement(e);
100
71
  }
101
- function mt(e) {
72
+ function pt(e) {
102
73
  return document.createElementNS("http://www.w3.org/2000/svg", e);
103
74
  }
104
- function St(e) {
75
+ function wt(e) {
105
76
  return document.createTextNode(e);
106
77
  }
107
- function ye() {
108
- return St(" ");
78
+ function ve() {
79
+ return wt(" ");
109
80
  }
110
- function Ae(e, t, r, n) {
81
+ function He(e, t, r, n) {
111
82
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
112
83
  }
113
84
  function E(e, t, r) {
@@ -117,14 +88,14 @@ function re(e, t, r) {
117
88
  const n = t.toLowerCase();
118
89
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : E(e, t, r);
119
90
  }
120
- function Gn(e) {
91
+ function Hn(e) {
121
92
  return Array.from(e.childNodes);
122
93
  }
123
- function ar(e, t) {
94
+ function ir(e, t) {
124
95
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
125
96
  t);
126
97
  }
127
- function jn(e) {
98
+ function An(e) {
128
99
  const t = {};
129
100
  return e.childNodes.forEach(
130
101
  /** @param {Element} node */
@@ -133,96 +104,96 @@ function jn(e) {
133
104
  }
134
105
  ), t;
135
106
  }
136
- let it;
137
- function rt(e) {
138
- it = e;
107
+ let nt;
108
+ function tt(e) {
109
+ nt = e;
139
110
  }
140
- function Wn() {
141
- if (!it) throw new Error("Function called outside component initialization");
142
- return it;
111
+ function Bn() {
112
+ if (!nt) throw new Error("Function called outside component initialization");
113
+ return nt;
143
114
  }
144
- function kn(e) {
145
- Wn().$$.on_mount.push(e);
115
+ function In(e) {
116
+ Bn().$$.on_mount.push(e);
146
117
  }
147
- const Re = [], nt = [];
148
- let De = [];
149
- const br = [], Xn = /* @__PURE__ */ Promise.resolve();
150
- let kt = !1;
151
- function Vn() {
152
- kt || (kt = !0, Xn.then(se));
118
+ const Me = [], rt = [];
119
+ let Re = [];
120
+ const hr = [], Ln = /* @__PURE__ */ Promise.resolve();
121
+ let Gt = !1;
122
+ function On() {
123
+ Gt || (Gt = !0, Ln.then(oe));
153
124
  }
154
- function Xt(e) {
155
- De.push(e);
125
+ function jt(e) {
126
+ Re.push(e);
156
127
  }
157
- const Rt = /* @__PURE__ */ new Set();
158
- let Ne = 0;
159
- function se() {
160
- if (Ne !== 0)
128
+ const Nt = /* @__PURE__ */ new Set();
129
+ let Pe = 0;
130
+ function oe() {
131
+ if (Pe !== 0)
161
132
  return;
162
- const e = it;
133
+ const e = nt;
163
134
  do {
164
135
  try {
165
- for (; Ne < Re.length; ) {
166
- const t = Re[Ne];
167
- Ne++, rt(t), zn(t.$$);
136
+ for (; Pe < Me.length; ) {
137
+ const t = Me[Pe];
138
+ Pe++, tt(t), Cn(t.$$);
168
139
  }
169
140
  } catch (t) {
170
- throw Re.length = 0, Ne = 0, t;
141
+ throw Me.length = 0, Pe = 0, t;
171
142
  }
172
- for (rt(null), Re.length = 0, Ne = 0; nt.length; ) nt.pop()();
173
- for (let t = 0; t < De.length; t += 1) {
174
- const r = De[t];
175
- Rt.has(r) || (Rt.add(r), r());
143
+ for (tt(null), Me.length = 0, Pe = 0; rt.length; ) rt.pop()();
144
+ for (let t = 0; t < Re.length; t += 1) {
145
+ const r = Re[t];
146
+ Nt.has(r) || (Nt.add(r), r());
176
147
  }
177
- De.length = 0;
178
- } while (Re.length);
179
- for (; br.length; )
180
- br.pop()();
181
- kt = !1, Rt.clear(), rt(e);
148
+ Re.length = 0;
149
+ } while (Me.length);
150
+ for (; hr.length; )
151
+ hr.pop()();
152
+ Gt = !1, Nt.clear(), tt(e);
182
153
  }
183
- function zn(e) {
154
+ function Cn(e) {
184
155
  if (e.fragment !== null) {
185
- e.update(), Be(e.before_update);
156
+ e.update(), Ae(e.before_update);
186
157
  const t = e.dirty;
187
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xt);
158
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(jt);
188
159
  }
189
160
  }
190
- function Zn(e) {
161
+ function Pn(e) {
191
162
  const t = [], r = [];
192
- De.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), De = t;
163
+ Re.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Re = t;
193
164
  }
194
- const qn = /* @__PURE__ */ new Set();
195
- function Yn(e, t) {
196
- e && e.i && (qn.delete(e), e.i(t));
165
+ const Nn = /* @__PURE__ */ new Set();
166
+ function Mn(e, t) {
167
+ e && e.i && (Nn.delete(e), e.i(t));
197
168
  }
198
- function yr(e) {
199
- return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
169
+ function fr(e) {
170
+ return e?.length !== void 0 ? e : Array.from(e);
200
171
  }
201
- function Qn(e, t, r) {
172
+ function Rn(e, t, r) {
202
173
  const { fragment: n, after_update: i } = e.$$;
203
- n && n.m(t, r), Xt(() => {
204
- const o = e.$$.on_mount.map(kr).filter(sr);
205
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Be(o), e.$$.on_mount = [];
206
- }), i.forEach(Xt);
174
+ n && n.m(t, r), jt(() => {
175
+ const o = e.$$.on_mount.map(Rr).filter(nr);
176
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ae(o), e.$$.on_mount = [];
177
+ }), i.forEach(jt);
207
178
  }
208
- function Jn(e, t) {
179
+ function Dn(e, t) {
209
180
  const r = e.$$;
210
- r.fragment !== null && (Zn(r.after_update), Be(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
181
+ r.fragment !== null && (Pn(r.after_update), Ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
211
182
  }
212
- function Kn(e, t) {
213
- e.$$.dirty[0] === -1 && (Re.push(e), Vn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
183
+ function Fn(e, t) {
184
+ e.$$.dirty[0] === -1 && (Me.push(e), On(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
214
185
  }
215
- function ei(e, t, r, n, i, o, s = null, a = [-1]) {
216
- const h = it;
217
- rt(e);
218
- const u = e.$$ = {
186
+ function Un(e, t, r, n, i, o, s = null, a = [-1]) {
187
+ const h = nt;
188
+ tt(e);
189
+ const l = e.$$ = {
219
190
  fragment: null,
220
191
  ctx: [],
221
192
  // state
222
193
  props: o,
223
- update: ae,
194
+ update: se,
224
195
  not_equal: i,
225
- bound: vr(),
196
+ bound: lr(),
226
197
  // lifecycle
227
198
  on_mount: [],
228
199
  on_destroy: [],
@@ -231,150 +202,146 @@ function ei(e, t, r, n, i, o, s = null, a = [-1]) {
231
202
  after_update: [],
232
203
  context: new Map(t.context || (h ? h.$$.context : [])),
233
204
  // everything else
234
- callbacks: vr(),
205
+ callbacks: lr(),
235
206
  dirty: a,
236
207
  skip_bound: !1,
237
208
  root: t.target || h.$$.root
238
209
  };
239
- s && s(u.root);
210
+ s && s(l.root);
240
211
  let f = !1;
241
- if (u.ctx = r ? r(e, t.props || {}, (p, g, ...y) => {
212
+ if (l.ctx = r ? r(e, t.props || {}, (p, g, ...y) => {
242
213
  const H = y.length ? y[0] : g;
243
- return u.ctx && i(u.ctx[p], u.ctx[p] = H) && (!u.skip_bound && u.bound[p] && u.bound[p](H), f && Kn(e, p)), g;
244
- }) : [], u.update(), f = !0, Be(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
214
+ return l.ctx && i(l.ctx[p], l.ctx[p] = H) && (!l.skip_bound && l.bound[p] && l.bound[p](H), f && Fn(e, p)), g;
215
+ }) : [], l.update(), f = !0, Ae(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
245
216
  if (t.hydrate) {
246
- const p = Gn(t.target);
247
- u.fragment && u.fragment.l(p), p.forEach(le);
217
+ const p = Hn(t.target);
218
+ l.fragment && l.fragment.l(p), p.forEach(ue);
248
219
  } else
249
- u.fragment && u.fragment.c();
250
- t.intro && Yn(e.$$.fragment), Qn(e, t.target, t.anchor), se();
220
+ l.fragment && l.fragment.c();
221
+ t.intro && Mn(e.$$.fragment), Rn(e, t.target, t.anchor), oe();
251
222
  }
252
- rt(h);
253
- }
254
- let zr;
255
- typeof HTMLElement == "function" && (zr = class extends HTMLElement {
256
- constructor(t, r, n) {
257
- super();
258
- /** The Svelte component constructor */
259
- ne(this, "$$ctor");
260
- /** Slots */
261
- ne(this, "$$s");
262
- /** The Svelte component instance */
263
- ne(this, "$$c");
264
- /** Whether or not the custom element is connected */
265
- ne(this, "$$cn", !1);
266
- /** Component props data */
267
- ne(this, "$$d", {});
268
- /** `true` if currently in the process of reflecting component props back to attributes */
269
- ne(this, "$$r", !1);
270
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
271
- ne(this, "$$p_d", {});
272
- /** @type {Record<string, Function[]>} Event listeners */
273
- ne(this, "$$l", {});
274
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
275
- ne(this, "$$l_u", /* @__PURE__ */ new Map());
276
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
223
+ tt(h);
224
+ }
225
+ let Ur;
226
+ typeof HTMLElement == "function" && (Ur = class extends HTMLElement {
227
+ /** The Svelte component constructor */
228
+ $$ctor;
229
+ /** Slots */
230
+ $$s;
231
+ /** The Svelte component instance */
232
+ $$c;
233
+ /** Whether or not the custom element is connected */
234
+ $$cn = !1;
235
+ /** Component props data */
236
+ $$d = {};
237
+ /** `true` if currently in the process of reflecting component props back to attributes */
238
+ $$r = !1;
239
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
240
+ $$p_d = {};
241
+ /** @type {Record<string, Function[]>} Event listeners */
242
+ $$l = {};
243
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
244
+ $$l_u = /* @__PURE__ */ new Map();
245
+ constructor(e, t, r) {
246
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
277
247
  }
278
- addEventListener(t, r, n) {
279
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
280
- const i = this.$$c.$on(t, r);
281
- this.$$l_u.set(r, i);
248
+ addEventListener(e, t, r) {
249
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
250
+ const n = this.$$c.$on(e, t);
251
+ this.$$l_u.set(t, n);
282
252
  }
283
- super.addEventListener(t, r, n);
253
+ super.addEventListener(e, t, r);
284
254
  }
285
- removeEventListener(t, r, n) {
286
- if (super.removeEventListener(t, r, n), this.$$c) {
287
- const i = this.$$l_u.get(r);
288
- i && (i(), this.$$l_u.delete(r));
255
+ removeEventListener(e, t, r) {
256
+ if (super.removeEventListener(e, t, r), this.$$c) {
257
+ const n = this.$$l_u.get(t);
258
+ n && (n(), this.$$l_u.delete(t));
289
259
  }
290
260
  }
291
- connectedCallback() {
292
- return gr(this, null, function* () {
293
- if (this.$$cn = !0, !this.$$c) {
294
- let t = function(o) {
295
- return () => {
296
- let s;
297
- return {
298
- c: function() {
299
- s = W("slot"), o !== "default" && E(s, "name", o);
300
- },
301
- /**
302
- * @param {HTMLElement} target
303
- * @param {HTMLElement} [anchor]
304
- */
305
- m: function(u, f) {
306
- be(u, s, f);
307
- },
308
- d: function(u) {
309
- u && le(s);
310
- }
311
- };
261
+ async connectedCallback() {
262
+ if (this.$$cn = !0, !this.$$c) {
263
+ let e = function(i) {
264
+ return () => {
265
+ let o;
266
+ return {
267
+ c: function() {
268
+ o = W("slot"), i !== "default" && E(o, "name", i);
269
+ },
270
+ /**
271
+ * @param {HTMLElement} target
272
+ * @param {HTMLElement} [anchor]
273
+ */
274
+ m: function(h, l) {
275
+ be(h, o, l);
276
+ },
277
+ d: function(h) {
278
+ h && ue(o);
279
+ }
312
280
  };
313
281
  };
314
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
315
- return;
316
- const r = {}, n = jn(this);
317
- for (const o of this.$$s)
318
- o in n && (r[o] = [t(o)]);
319
- for (const o of this.attributes) {
320
- const s = this.$$g_p(o.name);
321
- s in this.$$d || (this.$$d[s] = bt(s, o.value, this.$$p_d, "toProp"));
282
+ };
283
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
284
+ return;
285
+ const t = {}, r = An(this);
286
+ for (const i of this.$$s)
287
+ i in r && (t[i] = [e(i)]);
288
+ for (const i of this.attributes) {
289
+ const o = this.$$g_p(i.name);
290
+ o in this.$$d || (this.$$d[o] = bt(o, i.value, this.$$p_d, "toProp"));
291
+ }
292
+ for (const i in this.$$p_d)
293
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
294
+ this.$$c = new this.$$ctor({
295
+ target: this.shadowRoot || this,
296
+ props: {
297
+ ...this.$$d,
298
+ $$slots: t,
299
+ $$scope: {
300
+ ctx: []
301
+ }
322
302
  }
323
- for (const o in this.$$p_d)
324
- !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
325
- this.$$c = new this.$$ctor({
326
- target: this.shadowRoot || this,
327
- props: mr(pr({}, this.$$d), {
328
- $$slots: r,
329
- $$scope: {
330
- ctx: []
331
- }
332
- })
333
- });
334
- const i = () => {
335
- this.$$r = !0;
336
- for (const o in this.$$p_d)
337
- if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
338
- const s = bt(
339
- o,
340
- this.$$d[o],
341
- this.$$p_d,
342
- "toAttribute"
343
- );
344
- s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
345
- }
346
- this.$$r = !1;
347
- };
348
- this.$$c.$$.after_update.push(i), i();
349
- for (const o in this.$$l)
350
- for (const s of this.$$l[o]) {
351
- const a = this.$$c.$on(o, s);
352
- this.$$l_u.set(s, a);
303
+ });
304
+ const n = () => {
305
+ this.$$r = !0;
306
+ for (const i in this.$$p_d)
307
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
308
+ const o = bt(
309
+ i,
310
+ this.$$d[i],
311
+ this.$$p_d,
312
+ "toAttribute"
313
+ );
314
+ o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
353
315
  }
354
- this.$$l = {};
355
- }
356
- });
316
+ this.$$r = !1;
317
+ };
318
+ this.$$c.$$.after_update.push(n), n();
319
+ for (const i in this.$$l)
320
+ for (const o of this.$$l[i]) {
321
+ const s = this.$$c.$on(i, o);
322
+ this.$$l_u.set(o, s);
323
+ }
324
+ this.$$l = {};
325
+ }
357
326
  }
358
327
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
359
328
  // and setting attributes through setAttribute etc, this is helpful
360
- attributeChangedCallback(t, r, n) {
361
- var i;
362
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = bt(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
329
+ attributeChangedCallback(e, t, r) {
330
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = bt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
363
331
  }
364
332
  disconnectedCallback() {
365
333
  this.$$cn = !1, Promise.resolve().then(() => {
366
334
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
367
335
  });
368
336
  }
369
- $$g_p(t) {
337
+ $$g_p(e) {
370
338
  return Object.keys(this.$$p_d).find(
371
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
372
- ) || t;
339
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
340
+ ) || e;
373
341
  }
374
342
  });
375
343
  function bt(e, t, r, n) {
376
- var o;
377
- const i = (o = r[e]) == null ? void 0 : o.type;
344
+ const i = r[e]?.type;
378
345
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
379
346
  return t;
380
347
  if (n === "toAttribute")
@@ -385,7 +352,7 @@ function bt(e, t, r, n) {
385
352
  case "Boolean":
386
353
  return t ? "" : null;
387
354
  case "Number":
388
- return t == null ? null : t;
355
+ return t ?? null;
389
356
  default:
390
357
  return t;
391
358
  }
@@ -402,8 +369,8 @@ function bt(e, t, r, n) {
402
369
  return t;
403
370
  }
404
371
  }
405
- function ti(e, t, r, n, i, o) {
406
- let s = class extends zr {
372
+ function $n(e, t, r, n, i, o) {
373
+ let s = class extends Ur {
407
374
  constructor() {
408
375
  super(e, r, i), this.$$p_d = t;
409
376
  }
@@ -419,42 +386,38 @@ function ti(e, t, r, n, i, o) {
419
386
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
420
387
  },
421
388
  set(h) {
422
- var u;
423
- h = bt(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
389
+ h = bt(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
424
390
  }
425
391
  });
426
392
  }), n.forEach((a) => {
427
393
  Object.defineProperty(s.prototype, a, {
428
394
  get() {
429
- var h;
430
- return (h = this.$$c) == null ? void 0 : h[a];
395
+ return this.$$c?.[a];
431
396
  }
432
397
  });
433
398
  }), e.element = /** @type {any} */
434
399
  s, s;
435
400
  }
436
- class ri {
437
- constructor() {
438
- /**
439
- * ### PRIVATE API
440
- *
441
- * Do not use, may change at any time
442
- *
443
- * @type {any}
444
- */
445
- ne(this, "$$");
446
- /**
447
- * ### PRIVATE API
448
- *
449
- * Do not use, may change at any time
450
- *
451
- * @type {any}
452
- */
453
- ne(this, "$$set");
454
- }
401
+ class Gn {
402
+ /**
403
+ * ### PRIVATE API
404
+ *
405
+ * Do not use, may change at any time
406
+ *
407
+ * @type {any}
408
+ */
409
+ $$ = void 0;
410
+ /**
411
+ * ### PRIVATE API
412
+ *
413
+ * Do not use, may change at any time
414
+ *
415
+ * @type {any}
416
+ */
417
+ $$set = void 0;
455
418
  /** @returns {void} */
456
419
  $destroy() {
457
- Jn(this, 1), this.$destroy = ae;
420
+ Dn(this, 1), this.$destroy = se;
458
421
  }
459
422
  /**
460
423
  * @template {Extract<keyof Events, string>} K
@@ -463,8 +426,8 @@ class ri {
463
426
  * @returns {() => void}
464
427
  */
465
428
  $on(t, r) {
466
- if (!sr(r))
467
- return ae;
429
+ if (!nr(r))
430
+ return se;
468
431
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
469
432
  return n.push(r), () => {
470
433
  const i = n.indexOf(r);
@@ -476,22 +439,22 @@ class ri {
476
439
  * @returns {void}
477
440
  */
478
441
  $set(t) {
479
- this.$$set && !Mn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
442
+ this.$$set && !_n(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
480
443
  }
481
444
  }
482
- const ni = "4";
483
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ni);
484
- var Vt = function(e, t) {
485
- return Vt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
445
+ const jn = "4";
446
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(jn);
447
+ var Wt = function(e, t) {
448
+ return Wt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
486
449
  r.__proto__ = n;
487
450
  } || function(r, n) {
488
451
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
489
- }, Vt(e, t);
452
+ }, Wt(e, t);
490
453
  };
491
- function Ee(e, t) {
454
+ function _e(e, t) {
492
455
  if (typeof t != "function" && t !== null)
493
456
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
494
- Vt(e, t);
457
+ Wt(e, t);
495
458
  function r() {
496
459
  this.constructor = e;
497
460
  }
@@ -506,7 +469,7 @@ var U = function() {
506
469
  return t;
507
470
  }, U.apply(this, arguments);
508
471
  };
509
- function ii(e, t) {
472
+ function Wn(e, t) {
510
473
  var r = {};
511
474
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
512
475
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -514,7 +477,7 @@ function ii(e, t) {
514
477
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
515
478
  return r;
516
479
  }
517
- function zt(e) {
480
+ function kt(e) {
518
481
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
519
482
  if (r) return r.call(e);
520
483
  if (e && typeof e.length == "number") return {
@@ -524,7 +487,7 @@ function zt(e) {
524
487
  };
525
488
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
526
489
  }
527
- function Zt(e, t) {
490
+ function Xt(e, t) {
528
491
  var r = typeof Symbol == "function" && e[Symbol.iterator];
529
492
  if (!r) return e;
530
493
  var n = r.call(e), i, o = [], s;
@@ -541,21 +504,21 @@ function Zt(e, t) {
541
504
  }
542
505
  return o;
543
506
  }
544
- function Fe(e, t, r) {
507
+ function De(e, t, r) {
545
508
  if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
546
509
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
547
510
  return e.concat(o || Array.prototype.slice.call(t));
548
511
  }
549
- function _e(e) {
512
+ function ye(e) {
550
513
  return typeof e == "function";
551
514
  }
552
- function Zr(e) {
515
+ function $r(e) {
553
516
  var t = function(n) {
554
517
  Error.call(n), n.stack = new Error().stack;
555
518
  }, r = e(t);
556
519
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
557
520
  }
558
- var Dt = Zr(function(e) {
521
+ var Mt = $r(function(e) {
559
522
  return function(r) {
560
523
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
561
524
  ` + r.map(function(n, i) {
@@ -564,13 +527,13 @@ var Dt = Zr(function(e) {
564
527
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
565
528
  };
566
529
  });
567
- function qt(e, t) {
530
+ function Vt(e, t) {
568
531
  if (e) {
569
532
  var r = e.indexOf(t);
570
533
  0 <= r && e.splice(r, 1);
571
534
  }
572
535
  }
573
- var Tt = function() {
536
+ var St = function() {
574
537
  function e(t) {
575
538
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
576
539
  }
@@ -582,9 +545,9 @@ var Tt = function() {
582
545
  if (s)
583
546
  if (this._parentage = null, Array.isArray(s))
584
547
  try {
585
- for (var a = zt(s), h = a.next(); !h.done; h = a.next()) {
586
- var u = h.value;
587
- u.remove(this);
548
+ for (var a = kt(s), h = a.next(); !h.done; h = a.next()) {
549
+ var l = h.value;
550
+ l.remove(this);
588
551
  }
589
552
  } catch (w) {
590
553
  t = { error: w };
@@ -598,22 +561,22 @@ var Tt = function() {
598
561
  else
599
562
  s.remove(this);
600
563
  var f = this.initialTeardown;
601
- if (_e(f))
564
+ if (ye(f))
602
565
  try {
603
566
  f();
604
567
  } catch (w) {
605
- o = w instanceof Dt ? w.errors : [w];
568
+ o = w instanceof Mt ? w.errors : [w];
606
569
  }
607
570
  var p = this._finalizers;
608
571
  if (p) {
609
572
  this._finalizers = null;
610
573
  try {
611
- for (var g = zt(p), y = g.next(); !y.done; y = g.next()) {
574
+ for (var g = kt(p), y = g.next(); !y.done; y = g.next()) {
612
575
  var H = y.value;
613
576
  try {
614
- _r(H);
577
+ cr(H);
615
578
  } catch (w) {
616
- o = o != null ? o : [], w instanceof Dt ? o = Fe(Fe([], Zt(o)), Zt(w.errors)) : o.push(w);
579
+ o = o ?? [], w instanceof Mt ? o = De(De([], Xt(o)), Xt(w.errors)) : o.push(w);
617
580
  }
618
581
  }
619
582
  } catch (w) {
@@ -627,13 +590,13 @@ var Tt = function() {
627
590
  }
628
591
  }
629
592
  if (o)
630
- throw new Dt(o);
593
+ throw new Mt(o);
631
594
  }
632
595
  }, e.prototype.add = function(t) {
633
596
  var r;
634
597
  if (t && t !== this)
635
598
  if (this.closed)
636
- _r(t);
599
+ cr(t);
637
600
  else {
638
601
  if (t instanceof e) {
639
602
  if (t.closed || t._hasParent(this))
@@ -650,56 +613,56 @@ var Tt = function() {
650
613
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
651
614
  }, e.prototype._removeParent = function(t) {
652
615
  var r = this._parentage;
653
- r === t ? this._parentage = null : Array.isArray(r) && qt(r, t);
616
+ r === t ? this._parentage = null : Array.isArray(r) && Vt(r, t);
654
617
  }, e.prototype.remove = function(t) {
655
618
  var r = this._finalizers;
656
- r && qt(r, t), t instanceof e && t._removeParent(this);
619
+ r && Vt(r, t), t instanceof e && t._removeParent(this);
657
620
  }, e.EMPTY = function() {
658
621
  var t = new e();
659
622
  return t.closed = !0, t;
660
623
  }(), e;
661
- }(), qr = Tt.EMPTY;
662
- function Yr(e) {
663
- return e instanceof Tt || e && "closed" in e && _e(e.remove) && _e(e.add) && _e(e.unsubscribe);
624
+ }(), Gr = St.EMPTY;
625
+ function jr(e) {
626
+ return e instanceof St || e && "closed" in e && ye(e.remove) && ye(e.add) && ye(e.unsubscribe);
664
627
  }
665
- function _r(e) {
666
- _e(e) ? e() : e.unsubscribe();
628
+ function cr(e) {
629
+ ye(e) ? e() : e.unsubscribe();
667
630
  }
668
- var Qr = {
631
+ var kn = {
669
632
  onUnhandledError: null,
670
633
  onStoppedNotification: null,
671
634
  Promise: void 0,
672
635
  useDeprecatedSynchronousErrorHandling: !1,
673
636
  useDeprecatedNextContext: !1
674
- }, oi = {
637
+ }, Xn = {
675
638
  setTimeout: function(e, t) {
676
639
  for (var r = [], n = 2; n < arguments.length; n++)
677
640
  r[n - 2] = arguments[n];
678
- return setTimeout.apply(void 0, Fe([e, t], Zt(r)));
641
+ return setTimeout.apply(void 0, De([e, t], Xt(r)));
679
642
  },
680
643
  clearTimeout: function(e) {
681
644
  return clearTimeout(e);
682
645
  },
683
646
  delegate: void 0
684
647
  };
685
- function si(e) {
686
- oi.setTimeout(function() {
648
+ function Vn(e) {
649
+ Xn.setTimeout(function() {
687
650
  throw e;
688
651
  });
689
652
  }
690
- function Er() {
653
+ function dr() {
691
654
  }
692
- function yt(e) {
655
+ function vt(e) {
693
656
  e();
694
657
  }
695
- var Jr = function(e) {
696
- Ee(t, e);
658
+ var Wr = function(e) {
659
+ _e(t, e);
697
660
  function t(r) {
698
661
  var n = e.call(this) || this;
699
- return n.isStopped = !1, r ? (n.destination = r, Yr(r) && r.add(n)) : n.destination = hi, n;
662
+ return n.isStopped = !1, r ? (n.destination = r, jr(r) && r.add(n)) : n.destination = qn, n;
700
663
  }
701
664
  return t.create = function(r, n, i) {
702
- return new Yt(r, n, i);
665
+ return new zt(r, n, i);
703
666
  }, t.prototype.next = function(r) {
704
667
  this.isStopped || this._next(r);
705
668
  }, t.prototype.error = function(r) {
@@ -723,11 +686,7 @@ var Jr = function(e) {
723
686
  this.unsubscribe();
724
687
  }
725
688
  }, t;
726
- }(Tt), ai = Function.prototype.bind;
727
- function Ft(e, t) {
728
- return ai.call(e, t);
729
- }
730
- var ui = function() {
689
+ }(St), zn = function() {
731
690
  function e(t) {
732
691
  this.partialObserver = t;
733
692
  }
@@ -737,7 +696,7 @@ var ui = function() {
737
696
  try {
738
697
  r.next(t);
739
698
  } catch (n) {
740
- gt(n);
699
+ mt(n);
741
700
  }
742
701
  }, e.prototype.error = function(t) {
743
702
  var r = this.partialObserver;
@@ -745,68 +704,56 @@ var ui = function() {
745
704
  try {
746
705
  r.error(t);
747
706
  } catch (n) {
748
- gt(n);
707
+ mt(n);
749
708
  }
750
709
  else
751
- gt(t);
710
+ mt(t);
752
711
  }, e.prototype.complete = function() {
753
712
  var t = this.partialObserver;
754
713
  if (t.complete)
755
714
  try {
756
715
  t.complete();
757
716
  } catch (r) {
758
- gt(r);
717
+ mt(r);
759
718
  }
760
719
  }, e;
761
- }(), Yt = function(e) {
762
- Ee(t, e);
720
+ }(), zt = function(e) {
721
+ _e(t, e);
763
722
  function t(r, n, i) {
764
723
  var o = e.call(this) || this, s;
765
- if (_e(r) || !r)
766
- s = {
767
- next: r != null ? r : void 0,
768
- error: n != null ? n : void 0,
769
- complete: i != null ? i : void 0
770
- };
771
- else {
772
- var a;
773
- o && Qr.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
774
- return o.unsubscribe();
775
- }, s = {
776
- next: r.next && Ft(r.next, a),
777
- error: r.error && Ft(r.error, a),
778
- complete: r.complete && Ft(r.complete, a)
779
- }) : s = r;
780
- }
781
- return o.destination = new ui(s), o;
724
+ return ye(r) || !r ? s = {
725
+ next: r ?? void 0,
726
+ error: n ?? void 0,
727
+ complete: i ?? void 0
728
+ } : s = r, o.destination = new zn(s), o;
782
729
  }
783
730
  return t;
784
- }(Jr);
785
- function gt(e) {
786
- si(e);
731
+ }(Wr);
732
+ function mt(e) {
733
+ Vn(e);
787
734
  }
788
- function li(e) {
735
+ function Zn(e) {
789
736
  throw e;
790
737
  }
791
- var hi = {
738
+ var qn = {
792
739
  closed: !0,
793
- next: Er,
794
- error: li,
795
- complete: Er
796
- }, fi = function() {
740
+ next: dr,
741
+ error: Zn,
742
+ complete: dr
743
+ }, Yn = function() {
797
744
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
798
745
  }();
799
- function ci(e) {
746
+ function Qn(e) {
800
747
  return e;
801
748
  }
802
- function di(e) {
803
- return e.length === 0 ? ci : e.length === 1 ? e[0] : function(r) {
749
+ function Jn(e) {
750
+ return e.length === 0 ? Qn : e.length === 1 ? e[0] : function(r) {
804
751
  return e.reduce(function(n, i) {
805
752
  return i(n);
806
753
  }, r);
807
754
  };
808
755
  }
809
- var xr = function() {
756
+ var pr = function() {
810
757
  function e(t) {
811
758
  t && (this._subscribe = t);
812
759
  }
@@ -814,8 +761,8 @@ var xr = function() {
814
761
  var r = new e();
815
762
  return r.source = this, r.operator = t, r;
816
763
  }, e.prototype.subscribe = function(t, r, n) {
817
- var i = this, o = mi(t) ? t : new Yt(t, r, n);
818
- return yt(function() {
764
+ var i = this, o = ei(t) ? t : new zt(t, r, n);
765
+ return vt(function() {
819
766
  var s = i, a = s.operator, h = s.source;
820
767
  o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
821
768
  }), o;
@@ -827,8 +774,8 @@ var xr = function() {
827
774
  }
828
775
  }, e.prototype.forEach = function(t, r) {
829
776
  var n = this;
830
- return r = wr(r), new r(function(i, o) {
831
- var s = new Yt({
777
+ return r = mr(r), new r(function(i, o) {
778
+ var s = new zt({
832
779
  next: function(a) {
833
780
  try {
834
781
  t(a);
@@ -844,15 +791,15 @@ var xr = function() {
844
791
  }, e.prototype._subscribe = function(t) {
845
792
  var r;
846
793
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
847
- }, e.prototype[fi] = function() {
794
+ }, e.prototype[Yn] = function() {
848
795
  return this;
849
796
  }, e.prototype.pipe = function() {
850
797
  for (var t = [], r = 0; r < arguments.length; r++)
851
798
  t[r] = arguments[r];
852
- return di(t)(this);
799
+ return Jn(t)(this);
853
800
  }, e.prototype.toPromise = function(t) {
854
801
  var r = this;
855
- return t = wr(t), new t(function(n, i) {
802
+ return t = mr(t), new t(function(n, i) {
856
803
  var o;
857
804
  r.subscribe(function(s) {
858
805
  return o = s;
@@ -866,45 +813,45 @@ var xr = function() {
866
813
  return new e(t);
867
814
  }, e;
868
815
  }();
869
- function wr(e) {
816
+ function mr(e) {
870
817
  var t;
871
- return (t = e != null ? e : Qr.Promise) !== null && t !== void 0 ? t : Promise;
818
+ return (t = e ?? kn.Promise) !== null && t !== void 0 ? t : Promise;
872
819
  }
873
- function pi(e) {
874
- return e && _e(e.next) && _e(e.error) && _e(e.complete);
820
+ function Kn(e) {
821
+ return e && ye(e.next) && ye(e.error) && ye(e.complete);
875
822
  }
876
- function mi(e) {
877
- return e && e instanceof Jr || pi(e) && Yr(e);
823
+ function ei(e) {
824
+ return e && e instanceof Wr || Kn(e) && jr(e);
878
825
  }
879
- var gi = Zr(function(e) {
826
+ var ti = $r(function(e) {
880
827
  return function() {
881
828
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
882
829
  };
883
- }), Kr = function(e) {
884
- Ee(t, e);
830
+ }), kr = function(e) {
831
+ _e(t, e);
885
832
  function t() {
886
833
  var r = e.call(this) || this;
887
834
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
888
835
  }
889
836
  return t.prototype.lift = function(r) {
890
- var n = new Sr(this, this);
837
+ var n = new gr(this, this);
891
838
  return n.operator = r, n;
892
839
  }, t.prototype._throwIfClosed = function() {
893
840
  if (this.closed)
894
- throw new gi();
841
+ throw new ti();
895
842
  }, t.prototype.next = function(r) {
896
843
  var n = this;
897
- yt(function() {
844
+ vt(function() {
898
845
  var i, o;
899
846
  if (n._throwIfClosed(), !n.isStopped) {
900
847
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
901
848
  try {
902
- for (var s = zt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
849
+ for (var s = kt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
903
850
  var h = a.value;
904
851
  h.next(r);
905
852
  }
906
- } catch (u) {
907
- i = { error: u };
853
+ } catch (l) {
854
+ i = { error: l };
908
855
  } finally {
909
856
  try {
910
857
  a && !a.done && (o = s.return) && o.call(s);
@@ -916,7 +863,7 @@ var gi = Zr(function(e) {
916
863
  });
917
864
  }, t.prototype.error = function(r) {
918
865
  var n = this;
919
- yt(function() {
866
+ vt(function() {
920
867
  if (n._throwIfClosed(), !n.isStopped) {
921
868
  n.hasError = n.isStopped = !0, n.thrownError = r;
922
869
  for (var i = n.observers; i.length; )
@@ -925,7 +872,7 @@ var gi = Zr(function(e) {
925
872
  });
926
873
  }, t.prototype.complete = function() {
927
874
  var r = this;
928
- yt(function() {
875
+ vt(function() {
929
876
  if (r._throwIfClosed(), !r.isStopped) {
930
877
  r.isStopped = !0;
931
878
  for (var n = r.observers; n.length; )
@@ -947,20 +894,20 @@ var gi = Zr(function(e) {
947
894
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
948
895
  }, t.prototype._innerSubscribe = function(r) {
949
896
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
950
- return o || s ? qr : (this.currentObservers = null, a.push(r), new Tt(function() {
951
- n.currentObservers = null, qt(a, r);
897
+ return o || s ? Gr : (this.currentObservers = null, a.push(r), new St(function() {
898
+ n.currentObservers = null, Vt(a, r);
952
899
  }));
953
900
  }, t.prototype._checkFinalizedStatuses = function(r) {
954
901
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
955
902
  i ? r.error(o) : s && r.complete();
956
903
  }, t.prototype.asObservable = function() {
957
- var r = new xr();
904
+ var r = new pr();
958
905
  return r.source = this, r;
959
906
  }, t.create = function(r, n) {
960
- return new Sr(r, n);
907
+ return new gr(r, n);
961
908
  }, t;
962
- }(xr), Sr = function(e) {
963
- Ee(t, e);
909
+ }(pr), gr = function(e) {
910
+ _e(t, e);
964
911
  function t(r, n) {
965
912
  var i = e.call(this) || this;
966
913
  return i.destination = r, i.source = n, i;
@@ -976,17 +923,17 @@ var gi = Zr(function(e) {
976
923
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
977
924
  }, t.prototype._subscribe = function(r) {
978
925
  var n, i;
979
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : qr;
926
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Gr;
980
927
  }, t;
981
- }(Kr), en = {
928
+ }(kr), Xr = {
982
929
  now: function() {
983
- return (en.delegate || Date).now();
930
+ return (Xr.delegate || Date).now();
984
931
  },
985
932
  delegate: void 0
986
- }, vi = function(e) {
987
- Ee(t, e);
933
+ }, ri = function(e) {
934
+ _e(t, e);
988
935
  function t(r, n, i) {
989
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = en);
936
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Xr);
990
937
  var o = e.call(this) || this;
991
938
  return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
992
939
  }
@@ -1001,70 +948,70 @@ var gi = Zr(function(e) {
1001
948
  }, t.prototype._trimBuffer = function() {
1002
949
  var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
1003
950
  if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
1004
- for (var h = i.now(), u = 0, f = 1; f < o.length && o[f] <= h; f += 2)
1005
- u = f;
1006
- u && o.splice(0, u + 1);
951
+ for (var h = i.now(), l = 0, f = 1; f < o.length && o[f] <= h; f += 2)
952
+ l = f;
953
+ l && o.splice(0, l + 1);
1007
954
  }
1008
955
  }, t;
1009
- }(Kr);
1010
- const Tr = [], Hr = {}, bi = (e, t = 0) => {
1011
- if (Tr.indexOf(e) == -1) {
1012
- const r = new vi(t);
1013
- Hr[e] = r, Tr.push(e);
956
+ }(kr);
957
+ const br = [], vr = {}, ni = (e, t = 0) => {
958
+ if (br.indexOf(e) == -1) {
959
+ const r = new ri(t);
960
+ vr[e] = r, br.push(e);
1014
961
  }
1015
- return Hr[e];
1016
- }, Me = [];
1017
- function yi(e, t) {
962
+ return vr[e];
963
+ }, Ne = [];
964
+ function ii(e, t) {
1018
965
  return {
1019
- subscribe: Ht(e, t).subscribe
966
+ subscribe: Tt(e, t).subscribe
1020
967
  };
1021
968
  }
1022
- function Ht(e, t = ae) {
969
+ function Tt(e, t = se) {
1023
970
  let r;
1024
971
  const n = /* @__PURE__ */ new Set();
1025
972
  function i(a) {
1026
- if (Xr(e, a) && (e = a, r)) {
1027
- const h = !Me.length;
1028
- for (const u of n)
1029
- u[1](), Me.push(u, e);
973
+ if (Dr(e, a) && (e = a, r)) {
974
+ const h = !Ne.length;
975
+ for (const l of n)
976
+ l[1](), Ne.push(l, e);
1030
977
  if (h) {
1031
- for (let u = 0; u < Me.length; u += 2)
1032
- Me[u][0](Me[u + 1]);
1033
- Me.length = 0;
978
+ for (let l = 0; l < Ne.length; l += 2)
979
+ Ne[l][0](Ne[l + 1]);
980
+ Ne.length = 0;
1034
981
  }
1035
982
  }
1036
983
  }
1037
984
  function o(a) {
1038
985
  i(a(e));
1039
986
  }
1040
- function s(a, h = ae) {
1041
- const u = [a, h];
1042
- return n.add(u), n.size === 1 && (r = t(i, o) || ae), a(e), () => {
1043
- n.delete(u), n.size === 0 && r && (r(), r = null);
987
+ function s(a, h = se) {
988
+ const l = [a, h];
989
+ return n.add(l), n.size === 1 && (r = t(i, o) || se), a(e), () => {
990
+ n.delete(l), n.size === 0 && r && (r(), r = null);
1044
991
  };
1045
992
  }
1046
993
  return { set: i, update: o, subscribe: s };
1047
994
  }
1048
- function We(e, t, r) {
995
+ function je(e, t, r) {
1049
996
  const n = !Array.isArray(e), i = n ? [e] : e;
1050
997
  if (!i.every(Boolean))
1051
998
  throw new Error("derived() expects stores as input, got a falsy value");
1052
999
  const o = t.length < 2;
1053
- return yi(r, (s, a) => {
1000
+ return ii(r, (s, a) => {
1054
1001
  let h = !1;
1055
- const u = [];
1056
- let f = 0, p = ae;
1002
+ const l = [];
1003
+ let f = 0, p = se;
1057
1004
  const g = () => {
1058
1005
  if (f)
1059
1006
  return;
1060
1007
  p();
1061
- const H = t(n ? u[0] : u, s, a);
1062
- o ? s(H) : p = sr(H) ? H : ae;
1008
+ const H = t(n ? l[0] : l, s, a);
1009
+ o ? s(H) : p = nr(H) ? H : se;
1063
1010
  }, y = i.map(
1064
- (H, w) => Vr(
1011
+ (H, w) => Fr(
1065
1012
  H,
1066
- (O) => {
1067
- u[w] = O, f &= ~(1 << w), h && g();
1013
+ (C) => {
1014
+ l[w] = C, f &= ~(1 << w), h && g();
1068
1015
  },
1069
1016
  () => {
1070
1017
  f |= 1 << w;
@@ -1072,135 +1019,137 @@ function We(e, t, r) {
1072
1019
  )
1073
1020
  );
1074
1021
  return h = !0, g(), function() {
1075
- Be(y), p(), h = !1;
1022
+ Ae(y), p(), h = !1;
1076
1023
  };
1077
1024
  });
1078
1025
  }
1079
- var _i = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
1080
- function Ei(e) {
1026
+ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1027
+ function si(e) {
1081
1028
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1082
1029
  }
1083
- var xi = function(t) {
1084
- return wi(t) && !Si(t);
1030
+ var ai = function(t) {
1031
+ return ui(t) && !li(t);
1085
1032
  };
1086
- function wi(e) {
1033
+ function ui(e) {
1087
1034
  return !!e && typeof e == "object";
1088
1035
  }
1089
- function Si(e) {
1036
+ function li(e) {
1090
1037
  var t = Object.prototype.toString.call(e);
1091
- return t === "[object RegExp]" || t === "[object Date]" || Ai(e);
1038
+ return t === "[object RegExp]" || t === "[object Date]" || ci(e);
1092
1039
  }
1093
- var Ti = typeof Symbol == "function" && Symbol.for, Hi = Ti ? Symbol.for("react.element") : 60103;
1094
- function Ai(e) {
1095
- return e.$$typeof === Hi;
1040
+ var hi = typeof Symbol == "function" && Symbol.for, fi = hi ? Symbol.for("react.element") : 60103;
1041
+ function ci(e) {
1042
+ return e.$$typeof === fi;
1096
1043
  }
1097
- function Bi(e) {
1044
+ function di(e) {
1098
1045
  return Array.isArray(e) ? [] : {};
1099
1046
  }
1100
- function ot(e, t) {
1101
- return t.clone !== !1 && t.isMergeableObject(e) ? Ue(Bi(e), e, t) : e;
1047
+ function it(e, t) {
1048
+ return t.clone !== !1 && t.isMergeableObject(e) ? Fe(di(e), e, t) : e;
1102
1049
  }
1103
- function Ii(e, t, r) {
1050
+ function pi(e, t, r) {
1104
1051
  return e.concat(t).map(function(n) {
1105
- return ot(n, r);
1052
+ return it(n, r);
1106
1053
  });
1107
1054
  }
1108
- function Li(e, t) {
1055
+ function mi(e, t) {
1109
1056
  if (!t.customMerge)
1110
- return Ue;
1057
+ return Fe;
1111
1058
  var r = t.customMerge(e);
1112
- return typeof r == "function" ? r : Ue;
1059
+ return typeof r == "function" ? r : Fe;
1113
1060
  }
1114
- function Ci(e) {
1061
+ function gi(e) {
1115
1062
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1116
1063
  return Object.propertyIsEnumerable.call(e, t);
1117
1064
  }) : [];
1118
1065
  }
1119
- function Ar(e) {
1120
- return Object.keys(e).concat(Ci(e));
1066
+ function yr(e) {
1067
+ return Object.keys(e).concat(gi(e));
1121
1068
  }
1122
- function tn(e, t) {
1069
+ function Vr(e, t) {
1123
1070
  try {
1124
1071
  return t in e;
1125
- } catch (r) {
1072
+ } catch {
1126
1073
  return !1;
1127
1074
  }
1128
1075
  }
1129
- function Oi(e, t) {
1130
- return tn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1076
+ function bi(e, t) {
1077
+ return Vr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1131
1078
  }
1132
- function Pi(e, t, r) {
1079
+ function vi(e, t, r) {
1133
1080
  var n = {};
1134
- return r.isMergeableObject(e) && Ar(e).forEach(function(i) {
1135
- n[i] = ot(e[i], r);
1136
- }), Ar(t).forEach(function(i) {
1137
- Oi(e, i) || (tn(e, i) && r.isMergeableObject(t[i]) ? n[i] = Li(i, r)(e[i], t[i], r) : n[i] = ot(t[i], r));
1081
+ return r.isMergeableObject(e) && yr(e).forEach(function(i) {
1082
+ n[i] = it(e[i], r);
1083
+ }), yr(t).forEach(function(i) {
1084
+ bi(e, i) || (Vr(e, i) && r.isMergeableObject(t[i]) ? n[i] = mi(i, r)(e[i], t[i], r) : n[i] = it(t[i], r));
1138
1085
  }), n;
1139
1086
  }
1140
- function Ue(e, t, r) {
1141
- r = r || {}, r.arrayMerge = r.arrayMerge || Ii, r.isMergeableObject = r.isMergeableObject || xi, r.cloneUnlessOtherwiseSpecified = ot;
1087
+ function Fe(e, t, r) {
1088
+ r = r || {}, r.arrayMerge = r.arrayMerge || pi, r.isMergeableObject = r.isMergeableObject || ai, r.cloneUnlessOtherwiseSpecified = it;
1142
1089
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1143
- return o ? n ? r.arrayMerge(e, t, r) : Pi(e, t, r) : ot(t, r);
1090
+ return o ? n ? r.arrayMerge(e, t, r) : vi(e, t, r) : it(t, r);
1144
1091
  }
1145
- Ue.all = function(t, r) {
1092
+ Fe.all = function(t, r) {
1146
1093
  if (!Array.isArray(t))
1147
1094
  throw new Error("first argument should be an array");
1148
1095
  return t.reduce(function(n, i) {
1149
- return Ue(n, i, r);
1096
+ return Fe(n, i, r);
1150
1097
  }, {});
1151
1098
  };
1152
- var Ni = Ue, Mi = Ni;
1153
- const Ri = /* @__PURE__ */ Ei(Mi);
1154
- function Ut(e, t) {
1155
- var r = t && t.cache ? t.cache : ji, n = t && t.serializer ? t.serializer : Gi, i = t && t.strategy ? t.strategy : Fi;
1099
+ var yi = Fe, _i = yi;
1100
+ const Ei = /* @__PURE__ */ si(_i);
1101
+ function Rt(e, t) {
1102
+ var r = t && t.cache ? t.cache : Bi, n = t && t.serializer ? t.serializer : Hi, i = t && t.strategy ? t.strategy : wi;
1156
1103
  return i(e, {
1157
1104
  cache: r,
1158
1105
  serializer: n
1159
1106
  });
1160
1107
  }
1161
- function Di(e) {
1108
+ function xi(e) {
1162
1109
  return e == null || typeof e == "number" || typeof e == "boolean";
1163
1110
  }
1164
- function rn(e, t, r, n) {
1165
- var i = Di(n) ? n : r(n), o = t.get(i);
1166
- return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1111
+ function zr(e, t, r, n) {
1112
+ var i = xi(n) ? n : r(n), o = t.get(i);
1113
+ return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1167
1114
  }
1168
- function nn(e, t, r) {
1115
+ function Zr(e, t, r) {
1169
1116
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1170
- return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
1117
+ return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1171
1118
  }
1172
- function ur(e, t, r, n, i) {
1119
+ function or(e, t, r, n, i) {
1173
1120
  return r.bind(t, e, n, i);
1174
1121
  }
1175
- function Fi(e, t) {
1176
- var r = e.length === 1 ? rn : nn;
1177
- return ur(e, this, r, t.cache.create(), t.serializer);
1122
+ function wi(e, t) {
1123
+ var r = e.length === 1 ? zr : Zr;
1124
+ return or(e, this, r, t.cache.create(), t.serializer);
1178
1125
  }
1179
- function Ui(e, t) {
1180
- return ur(e, this, nn, t.cache.create(), t.serializer);
1126
+ function Si(e, t) {
1127
+ return or(e, this, Zr, t.cache.create(), t.serializer);
1181
1128
  }
1182
- function $i(e, t) {
1183
- return ur(e, this, rn, t.cache.create(), t.serializer);
1129
+ function Ti(e, t) {
1130
+ return or(e, this, zr, t.cache.create(), t.serializer);
1184
1131
  }
1185
- var Gi = function() {
1132
+ var Hi = function() {
1186
1133
  return JSON.stringify(arguments);
1187
- };
1188
- function lr() {
1189
- this.cache = /* @__PURE__ */ Object.create(null);
1190
- }
1191
- lr.prototype.get = function(e) {
1192
- return this.cache[e];
1193
- };
1194
- lr.prototype.set = function(e, t) {
1195
- this.cache[e] = t;
1196
- };
1197
- var ji = {
1134
+ }, Ai = (
1135
+ /** @class */
1136
+ function() {
1137
+ function e() {
1138
+ this.cache = /* @__PURE__ */ Object.create(null);
1139
+ }
1140
+ return e.prototype.get = function(t) {
1141
+ return this.cache[t];
1142
+ }, e.prototype.set = function(t, r) {
1143
+ this.cache[t] = r;
1144
+ }, e;
1145
+ }()
1146
+ ), Bi = {
1198
1147
  create: function() {
1199
- return new lr();
1148
+ return new Ai();
1200
1149
  }
1201
- }, $t = {
1202
- variadic: Ui,
1203
- monadic: $i
1150
+ }, Dt = {
1151
+ variadic: Si,
1152
+ monadic: Ti
1204
1153
  }, N;
1205
1154
  (function(e) {
1206
1155
  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";
@@ -1209,47 +1158,47 @@ var j;
1209
1158
  (function(e) {
1210
1159
  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";
1211
1160
  })(j || (j = {}));
1212
- var $e;
1161
+ var Ue;
1213
1162
  (function(e) {
1214
1163
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1215
- })($e || ($e = {}));
1216
- function Br(e) {
1164
+ })(Ue || (Ue = {}));
1165
+ function _r(e) {
1217
1166
  return e.type === j.literal;
1218
1167
  }
1219
- function Wi(e) {
1168
+ function Ii(e) {
1220
1169
  return e.type === j.argument;
1221
1170
  }
1222
- function on(e) {
1171
+ function qr(e) {
1223
1172
  return e.type === j.number;
1224
1173
  }
1225
- function sn(e) {
1174
+ function Yr(e) {
1226
1175
  return e.type === j.date;
1227
1176
  }
1228
- function an(e) {
1177
+ function Qr(e) {
1229
1178
  return e.type === j.time;
1230
1179
  }
1231
- function un(e) {
1180
+ function Jr(e) {
1232
1181
  return e.type === j.select;
1233
1182
  }
1234
- function ln(e) {
1183
+ function Kr(e) {
1235
1184
  return e.type === j.plural;
1236
1185
  }
1237
- function ki(e) {
1186
+ function Li(e) {
1238
1187
  return e.type === j.pound;
1239
1188
  }
1240
- function hn(e) {
1189
+ function en(e) {
1241
1190
  return e.type === j.tag;
1242
1191
  }
1243
- function fn(e) {
1244
- return !!(e && typeof e == "object" && e.type === $e.number);
1192
+ function tn(e) {
1193
+ return !!(e && typeof e == "object" && e.type === Ue.number);
1245
1194
  }
1246
- function Qt(e) {
1247
- return !!(e && typeof e == "object" && e.type === $e.dateTime);
1195
+ function Zt(e) {
1196
+ return !!(e && typeof e == "object" && e.type === Ue.dateTime);
1248
1197
  }
1249
- var cn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Xi = /(?:[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;
1250
- function Vi(e) {
1198
+ var rn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Oi = /(?:[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;
1199
+ function Ci(e) {
1251
1200
  var t = {};
1252
- return e.replace(Xi, function(r) {
1201
+ return e.replace(Oi, function(r) {
1253
1202
  var n = r.length;
1254
1203
  switch (r[0]) {
1255
1204
  case "G":
@@ -1338,18 +1287,18 @@ function Vi(e) {
1338
1287
  return "";
1339
1288
  }), t;
1340
1289
  }
1341
- var zi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1342
- function Zi(e) {
1290
+ var Pi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1291
+ function Ni(e) {
1343
1292
  if (e.length === 0)
1344
1293
  throw new Error("Number skeleton cannot be empty");
1345
- for (var t = e.split(zi).filter(function(g) {
1294
+ for (var t = e.split(Pi).filter(function(g) {
1346
1295
  return g.length > 0;
1347
1296
  }), r = [], n = 0, i = t; n < i.length; n++) {
1348
1297
  var o = i[n], s = o.split("/");
1349
1298
  if (s.length === 0)
1350
1299
  throw new Error("Invalid number skeleton");
1351
- for (var a = s[0], h = s.slice(1), u = 0, f = h; u < f.length; u++) {
1352
- var p = f[u];
1300
+ for (var a = s[0], h = s.slice(1), l = 0, f = h; l < f.length; l++) {
1301
+ var p = f[l];
1353
1302
  if (p.length === 0)
1354
1303
  throw new Error("Invalid number skeleton");
1355
1304
  }
@@ -1357,17 +1306,17 @@ function Zi(e) {
1357
1306
  }
1358
1307
  return r;
1359
1308
  }
1360
- function qi(e) {
1309
+ function Mi(e) {
1361
1310
  return e.replace(/^(.*?)-/, "");
1362
1311
  }
1363
- var Ir = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, dn = /^(@+)?(\+|#+)?[rs]?$/g, Yi = /(\*)(0+)|(#+)(0+)|(0+)/g, pn = /^(0+)$/;
1364
- function Lr(e) {
1312
+ var Er = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, nn = /^(@+)?(\+|#+)?[rs]?$/g, Ri = /(\*)(0+)|(#+)(0+)|(0+)/g, on = /^(0+)$/;
1313
+ function xr(e) {
1365
1314
  var t = {};
1366
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(dn, function(r, n, i) {
1315
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(nn, function(r, n, i) {
1367
1316
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
1368
1317
  }), t;
1369
1318
  }
1370
- function mn(e) {
1319
+ function sn(e) {
1371
1320
  switch (e) {
1372
1321
  case "sign-auto":
1373
1322
  return {
@@ -1407,7 +1356,7 @@ function mn(e) {
1407
1356
  };
1408
1357
  }
1409
1358
  }
1410
- function Qi(e) {
1359
+ function Di(e) {
1411
1360
  var t;
1412
1361
  if (e[0] === "E" && e[1] === "E" ? (t = {
1413
1362
  notation: "engineering"
@@ -1415,17 +1364,17 @@ function Qi(e) {
1415
1364
  notation: "scientific"
1416
1365
  }, e = e.slice(1)), t) {
1417
1366
  var r = e.slice(0, 2);
1418
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !pn.test(e))
1367
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !on.test(e))
1419
1368
  throw new Error("Malformed concise eng/scientific notation");
1420
1369
  t.minimumIntegerDigits = e.length;
1421
1370
  }
1422
1371
  return t;
1423
1372
  }
1424
- function Cr(e) {
1425
- var t = {}, r = mn(e);
1373
+ function wr(e) {
1374
+ var t = {}, r = sn(e);
1426
1375
  return r || t;
1427
1376
  }
1428
- function Ji(e) {
1377
+ function Fi(e) {
1429
1378
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1430
1379
  var i = n[r];
1431
1380
  switch (i.stem) {
@@ -1449,7 +1398,7 @@ function Ji(e) {
1449
1398
  continue;
1450
1399
  case "measure-unit":
1451
1400
  case "unit":
1452
- t.style = "unit", t.unit = qi(i.options[0]);
1401
+ t.style = "unit", t.unit = Mi(i.options[0]);
1453
1402
  continue;
1454
1403
  case "compact-short":
1455
1404
  case "K":
@@ -1460,13 +1409,13 @@ function Ji(e) {
1460
1409
  t.notation = "compact", t.compactDisplay = "long";
1461
1410
  continue;
1462
1411
  case "scientific":
1463
- t = U(U(U({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1464
- return U(U({}, h), Cr(u));
1412
+ t = U(U(U({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
1413
+ return U(U({}, h), wr(l));
1465
1414
  }, {}));
1466
1415
  continue;
1467
1416
  case "engineering":
1468
- t = U(U(U({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1469
- return U(U({}, h), Cr(u));
1417
+ t = U(U(U({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
1418
+ return U(U({}, h), wr(l));
1470
1419
  }, {}));
1471
1420
  continue;
1472
1421
  case "notation-simple":
@@ -1511,8 +1460,8 @@ function Ji(e) {
1511
1460
  case "integer-width":
1512
1461
  if (i.options.length > 1)
1513
1462
  throw new RangeError("integer-width stems only accept a single optional option");
1514
- i.options[0].replace(Yi, function(h, u, f, p, g, y) {
1515
- if (u)
1463
+ i.options[0].replace(Ri, function(h, l, f, p, g, y) {
1464
+ if (l)
1516
1465
  t.minimumIntegerDigits = f.length;
1517
1466
  else {
1518
1467
  if (p && g)
@@ -1524,32 +1473,32 @@ function Ji(e) {
1524
1473
  });
1525
1474
  continue;
1526
1475
  }
1527
- if (pn.test(i.stem)) {
1476
+ if (on.test(i.stem)) {
1528
1477
  t.minimumIntegerDigits = i.stem.length;
1529
1478
  continue;
1530
1479
  }
1531
- if (Ir.test(i.stem)) {
1480
+ if (Er.test(i.stem)) {
1532
1481
  if (i.options.length > 1)
1533
1482
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1534
- i.stem.replace(Ir, function(h, u, f, p, g, y) {
1535
- return f === "*" ? t.minimumFractionDigits = u.length : p && p[0] === "#" ? t.maximumFractionDigits = p.length : g && y ? (t.minimumFractionDigits = g.length, t.maximumFractionDigits = g.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1483
+ i.stem.replace(Er, function(h, l, f, p, g, y) {
1484
+ return f === "*" ? t.minimumFractionDigits = l.length : p && p[0] === "#" ? t.maximumFractionDigits = p.length : g && y ? (t.minimumFractionDigits = g.length, t.maximumFractionDigits = g.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1536
1485
  });
1537
1486
  var o = i.options[0];
1538
- o === "w" ? t = U(U({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = U(U({}, t), Lr(o)));
1487
+ o === "w" ? t = U(U({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = U(U({}, t), xr(o)));
1539
1488
  continue;
1540
1489
  }
1541
- if (dn.test(i.stem)) {
1542
- t = U(U({}, t), Lr(i.stem));
1490
+ if (nn.test(i.stem)) {
1491
+ t = U(U({}, t), xr(i.stem));
1543
1492
  continue;
1544
1493
  }
1545
- var s = mn(i.stem);
1494
+ var s = sn(i.stem);
1546
1495
  s && (t = U(U({}, t), s));
1547
- var a = Qi(i.stem);
1496
+ var a = Di(i.stem);
1548
1497
  a && (t = U(U({}, t), a));
1549
1498
  }
1550
1499
  return t;
1551
1500
  }
1552
- var vt = {
1501
+ var gt = {
1553
1502
  "001": [
1554
1503
  "H",
1555
1504
  "h"
@@ -2964,22 +2913,22 @@ var vt = {
2964
2913
  "h"
2965
2914
  ]
2966
2915
  };
2967
- function Ki(e, t) {
2916
+ function Ui(e, t) {
2968
2917
  for (var r = "", n = 0; n < e.length; n++) {
2969
2918
  var i = e.charAt(n);
2970
2919
  if (i === "j") {
2971
2920
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2972
2921
  o++, n++;
2973
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = eo(t);
2974
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2922
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = $i(t);
2923
+ for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2975
2924
  r += h;
2976
2925
  for (; s-- > 0; )
2977
- r = u + r;
2926
+ r = l + r;
2978
2927
  } else i === "J" ? r += "H" : r += i;
2979
2928
  }
2980
2929
  return r;
2981
2930
  }
2982
- function eo(e) {
2931
+ function $i(e) {
2983
2932
  var t = e.hourCycle;
2984
2933
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2985
2934
  e.hourCycles && // @ts-ignore
@@ -2998,23 +2947,23 @@ function eo(e) {
2998
2947
  }
2999
2948
  var r = e.language, n;
3000
2949
  r !== "root" && (n = e.maximize().region);
3001
- var i = vt[n || ""] || vt[r || ""] || vt["".concat(r, "-001")] || vt["001"];
2950
+ var i = gt[n || ""] || gt[r || ""] || gt["".concat(r, "-001")] || gt["001"];
3002
2951
  return i[0];
3003
2952
  }
3004
- var Gt, to = new RegExp("^".concat(cn.source, "*")), ro = new RegExp("".concat(cn.source, "*$"));
2953
+ var Ft, Gi = new RegExp("^".concat(rn.source, "*")), ji = new RegExp("".concat(rn.source, "*$"));
3005
2954
  function R(e, t) {
3006
2955
  return { start: e, end: t };
3007
2956
  }
3008
- var no = !!String.prototype.startsWith && "_a".startsWith("a", 1), io = !!String.fromCodePoint, oo = !!Object.fromEntries, so = !!String.prototype.codePointAt, ao = !!String.prototype.trimStart, uo = !!String.prototype.trimEnd, lo = !!Number.isSafeInteger, ho = lo ? Number.isSafeInteger : function(e) {
2957
+ var Wi = !!String.prototype.startsWith && "_a".startsWith("a", 1), ki = !!String.fromCodePoint, Xi = !!Object.fromEntries, Vi = !!String.prototype.codePointAt, zi = !!String.prototype.trimStart, Zi = !!String.prototype.trimEnd, qi = !!Number.isSafeInteger, Yi = qi ? Number.isSafeInteger : function(e) {
3009
2958
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3010
- }, Jt = !0;
2959
+ }, qt = !0;
3011
2960
  try {
3012
- var fo = vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3013
- Jt = ((Gt = fo.exec("a")) === null || Gt === void 0 ? void 0 : Gt[0]) === "a";
3014
- } catch (e) {
3015
- Jt = !1;
2961
+ var Qi = un("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2962
+ qt = ((Ft = Qi.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
2963
+ } catch {
2964
+ qt = !1;
3016
2965
  }
3017
- var Or = no ? (
2966
+ var Sr = Wi ? (
3018
2967
  // Native
3019
2968
  function(t, r, n) {
3020
2969
  return t.startsWith(r, n);
@@ -3024,7 +2973,7 @@ var Or = no ? (
3024
2973
  function(t, r, n) {
3025
2974
  return t.slice(n, n + r.length) === r;
3026
2975
  }
3027
- ), Kt = io ? String.fromCodePoint : (
2976
+ ), Yt = ki ? String.fromCodePoint : (
3028
2977
  // IE11
3029
2978
  function() {
3030
2979
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3036,9 +2985,9 @@ var Or = no ? (
3036
2985
  }
3037
2986
  return n;
3038
2987
  }
3039
- ), Pr = (
2988
+ ), Tr = (
3040
2989
  // native
3041
- oo ? Object.fromEntries : (
2990
+ Xi ? Object.fromEntries : (
3042
2991
  // Ponyfill
3043
2992
  function(t) {
3044
2993
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3048,7 +2997,7 @@ var Or = no ? (
3048
2997
  return r;
3049
2998
  }
3050
2999
  )
3051
- ), gn = so ? (
3000
+ ), an = Vi ? (
3052
3001
  // Native
3053
3002
  function(t, r) {
3054
3003
  return t.codePointAt(r);
@@ -3062,7 +3011,7 @@ var Or = no ? (
3062
3011
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3063
3012
  }
3064
3013
  }
3065
- ), co = ao ? (
3014
+ ), Ji = zi ? (
3066
3015
  // Native
3067
3016
  function(t) {
3068
3017
  return t.trimStart();
@@ -3070,9 +3019,9 @@ var Or = no ? (
3070
3019
  ) : (
3071
3020
  // Ponyfill
3072
3021
  function(t) {
3073
- return t.replace(to, "");
3022
+ return t.replace(Gi, "");
3074
3023
  }
3075
- ), po = uo ? (
3024
+ ), Ki = Zi ? (
3076
3025
  // Native
3077
3026
  function(t) {
3078
3027
  return t.trimEnd();
@@ -3080,32 +3029,32 @@ var Or = no ? (
3080
3029
  ) : (
3081
3030
  // Ponyfill
3082
3031
  function(t) {
3083
- return t.replace(ro, "");
3032
+ return t.replace(ji, "");
3084
3033
  }
3085
3034
  );
3086
- function vn(e, t) {
3035
+ function un(e, t) {
3087
3036
  return new RegExp(e, t);
3088
3037
  }
3089
- var er;
3090
- if (Jt) {
3091
- var Nr = vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3092
- er = function(t, r) {
3038
+ var Qt;
3039
+ if (qt) {
3040
+ var Hr = un("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3041
+ Qt = function(t, r) {
3093
3042
  var n;
3094
- Nr.lastIndex = r;
3095
- var i = Nr.exec(t);
3043
+ Hr.lastIndex = r;
3044
+ var i = Hr.exec(t);
3096
3045
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3097
3046
  };
3098
3047
  } else
3099
- er = function(t, r) {
3048
+ Qt = function(t, r) {
3100
3049
  for (var n = []; ; ) {
3101
- var i = gn(t, r);
3102
- if (i === void 0 || bn(i) || bo(i))
3050
+ var i = an(t, r);
3051
+ if (i === void 0 || ln(i) || no(i))
3103
3052
  break;
3104
3053
  n.push(i), r += i >= 65536 ? 2 : 1;
3105
3054
  }
3106
- return Kt.apply(void 0, n);
3055
+ return Yt.apply(void 0, n);
3107
3056
  };
3108
- var mo = (
3057
+ var eo = (
3109
3058
  /** @class */
3110
3059
  function() {
3111
3060
  function e(t, r) {
@@ -3136,7 +3085,7 @@ var mo = (
3136
3085
  if (n)
3137
3086
  break;
3138
3087
  return this.error(N.UNMATCHED_CLOSING_TAG, R(this.clonePosition(), this.clonePosition()));
3139
- } else if (o === 60 && !this.ignoreTag && tr(this.peek() || 0)) {
3088
+ } else if (o === 60 && !this.ignoreTag && Jt(this.peek() || 0)) {
3140
3089
  var s = this.parseTag(t, r);
3141
3090
  if (s.err)
3142
3091
  return s;
@@ -3169,10 +3118,10 @@ var mo = (
3169
3118
  return o;
3170
3119
  var s = o.val, a = this.clonePosition();
3171
3120
  if (this.bumpIf("</")) {
3172
- if (this.isEOF() || !tr(this.char()))
3121
+ if (this.isEOF() || !Jt(this.char()))
3173
3122
  return this.error(N.INVALID_TAG, R(a, this.clonePosition()));
3174
- var h = this.clonePosition(), u = this.parseTagName();
3175
- return i !== u ? this.error(N.UNMATCHED_CLOSING_TAG, R(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3123
+ var h = this.clonePosition(), l = this.parseTagName();
3124
+ return i !== l ? this.error(N.UNMATCHED_CLOSING_TAG, R(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3176
3125
  val: {
3177
3126
  type: j.tag,
3178
3127
  value: i,
@@ -3187,7 +3136,7 @@ var mo = (
3187
3136
  return this.error(N.INVALID_TAG, R(n, this.clonePosition()));
3188
3137
  }, e.prototype.parseTagName = function() {
3189
3138
  var t = this.offset();
3190
- for (this.bump(); !this.isEOF() && vo(this.char()); )
3139
+ for (this.bump(); !this.isEOF() && ro(this.char()); )
3191
3140
  this.bump();
3192
3141
  return this.message.slice(t, this.offset());
3193
3142
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3216,7 +3165,7 @@ var mo = (
3216
3165
  };
3217
3166
  }, e.prototype.tryParseLeftAngleBracket = function() {
3218
3167
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3219
- !go(this.peek() || 0)) ? (this.bump(), "<") : null;
3168
+ !to(this.peek() || 0)) ? (this.bump(), "<") : null;
3220
3169
  }, e.prototype.tryParseQuote = function(t) {
3221
3170
  if (this.isEOF() || this.char() !== 39)
3222
3171
  return null;
@@ -3250,12 +3199,12 @@ var mo = (
3250
3199
  r.push(n);
3251
3200
  this.bump();
3252
3201
  }
3253
- return Kt.apply(void 0, r);
3202
+ return Yt.apply(void 0, r);
3254
3203
  }, e.prototype.tryParseUnquoted = function(t, r) {
3255
3204
  if (this.isEOF())
3256
3205
  return null;
3257
3206
  var n = this.char();
3258
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Kt(n));
3207
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Yt(n));
3259
3208
  }, e.prototype.parseArgument = function(t, r) {
3260
3209
  var n = this.clonePosition();
3261
3210
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3284,7 +3233,7 @@ var mo = (
3284
3233
  return this.error(N.MALFORMED_ARGUMENT, R(n, this.clonePosition()));
3285
3234
  }
3286
3235
  }, e.prototype.parseIdentifierIfPossible = function() {
3287
- var t = this.clonePosition(), r = this.offset(), n = er(this.message, r), i = r + n.length;
3236
+ var t = this.clonePosition(), r = this.offset(), n = Qt(this.message, r), i = r + n.length;
3288
3237
  this.bumpTo(i);
3289
3238
  var o = this.clonePosition(), s = R(t, o);
3290
3239
  return { value: n, location: s };
@@ -3297,40 +3246,40 @@ var mo = (
3297
3246
  case "date":
3298
3247
  case "time": {
3299
3248
  this.bumpSpace();
3300
- var u = null;
3249
+ var l = null;
3301
3250
  if (this.bumpIf(",")) {
3302
3251
  this.bumpSpace();
3303
3252
  var f = this.clonePosition(), p = this.parseSimpleArgStyleIfPossible();
3304
3253
  if (p.err)
3305
3254
  return p;
3306
- var g = po(p.val);
3255
+ var g = Ki(p.val);
3307
3256
  if (g.length === 0)
3308
3257
  return this.error(N.EXPECT_ARGUMENT_STYLE, R(this.clonePosition(), this.clonePosition()));
3309
3258
  var y = R(f, this.clonePosition());
3310
- u = { style: g, styleLocation: y };
3259
+ l = { style: g, styleLocation: y };
3311
3260
  }
3312
3261
  var H = this.tryParseArgumentClose(i);
3313
3262
  if (H.err)
3314
3263
  return H;
3315
3264
  var w = R(i, this.clonePosition());
3316
- if (u && Or(u == null ? void 0 : u.style, "::", 0)) {
3317
- var O = co(u.style.slice(2));
3265
+ if (l && Sr(l?.style, "::", 0)) {
3266
+ var C = Ji(l.style.slice(2));
3318
3267
  if (a === "number") {
3319
- var p = this.parseNumberSkeletonFromString(O, u.styleLocation);
3268
+ var p = this.parseNumberSkeletonFromString(C, l.styleLocation);
3320
3269
  return p.err ? p : {
3321
3270
  val: { type: j.number, value: n, location: w, style: p.val },
3322
3271
  err: null
3323
3272
  };
3324
3273
  } else {
3325
- if (O.length === 0)
3274
+ if (C.length === 0)
3326
3275
  return this.error(N.EXPECT_DATE_TIME_SKELETON, w);
3327
- var P = O;
3328
- this.locale && (P = Ki(O, this.locale));
3276
+ var P = C;
3277
+ this.locale && (P = Ui(C, this.locale));
3329
3278
  var g = {
3330
- type: $e.dateTime,
3279
+ type: Ue.dateTime,
3331
3280
  pattern: P,
3332
- location: u.styleLocation,
3333
- parsedOptions: this.shouldParseSkeletons ? Vi(P) : {}
3281
+ location: l.styleLocation,
3282
+ parsedOptions: this.shouldParseSkeletons ? Ci(P) : {}
3334
3283
  }, I = a === "date" ? j.date : j.time;
3335
3284
  return {
3336
3285
  val: { type: I, value: n, location: w, style: g },
@@ -3343,7 +3292,7 @@ var mo = (
3343
3292
  type: a === "number" ? j.number : a === "date" ? j.date : j.time,
3344
3293
  value: n,
3345
3294
  location: w,
3346
- style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
3295
+ style: (o = l?.style) !== null && o !== void 0 ? o : null
3347
3296
  },
3348
3297
  err: null
3349
3298
  };
@@ -3376,7 +3325,7 @@ var mo = (
3376
3325
  val: {
3377
3326
  type: j.select,
3378
3327
  value: n,
3379
- options: Pr(M.val),
3328
+ options: Tr(M.val),
3380
3329
  location: $
3381
3330
  },
3382
3331
  err: null
@@ -3384,7 +3333,7 @@ var mo = (
3384
3333
  val: {
3385
3334
  type: j.plural,
3386
3335
  value: n,
3387
- options: Pr(M.val),
3336
+ options: Tr(M.val),
3388
3337
  offset: T,
3389
3338
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3390
3339
  location: $
@@ -3435,34 +3384,34 @@ var mo = (
3435
3384
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3436
3385
  var n = [];
3437
3386
  try {
3438
- n = Zi(t);
3439
- } catch (i) {
3387
+ n = Ni(t);
3388
+ } catch {
3440
3389
  return this.error(N.INVALID_NUMBER_SKELETON, r);
3441
3390
  }
3442
3391
  return {
3443
3392
  val: {
3444
- type: $e.number,
3393
+ type: Ue.number,
3445
3394
  tokens: n,
3446
3395
  location: r,
3447
- parsedOptions: this.shouldParseSkeletons ? Ji(n) : {}
3396
+ parsedOptions: this.shouldParseSkeletons ? Fi(n) : {}
3448
3397
  },
3449
3398
  err: null
3450
3399
  };
3451
3400
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3452
- for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, f = i.location; ; ) {
3453
- if (u.length === 0) {
3401
+ for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, f = i.location; ; ) {
3402
+ if (l.length === 0) {
3454
3403
  var p = this.clonePosition();
3455
3404
  if (r !== "select" && this.bumpIf("=")) {
3456
3405
  var g = this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_SELECTOR, N.INVALID_PLURAL_ARGUMENT_SELECTOR);
3457
3406
  if (g.err)
3458
3407
  return g;
3459
- f = R(p, this.clonePosition()), u = this.message.slice(p.offset, this.offset());
3408
+ f = R(p, this.clonePosition()), l = this.message.slice(p.offset, this.offset());
3460
3409
  } else
3461
3410
  break;
3462
3411
  }
3463
- if (h.has(u))
3412
+ if (h.has(l))
3464
3413
  return this.error(r === "select" ? N.DUPLICATE_SELECT_ARGUMENT_SELECTOR : N.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3465
- u === "other" && (s = !0), this.bumpSpace();
3414
+ l === "other" && (s = !0), this.bumpSpace();
3466
3415
  var y = this.clonePosition();
3467
3416
  if (!this.bumpIf("{"))
3468
3417
  return this.error(r === "select" ? N.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : N.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, R(this.clonePosition(), this.clonePosition()));
@@ -3473,12 +3422,12 @@ var mo = (
3473
3422
  if (w.err)
3474
3423
  return w;
3475
3424
  a.push([
3476
- u,
3425
+ l,
3477
3426
  {
3478
3427
  value: H.val,
3479
3428
  location: R(y, this.clonePosition())
3480
3429
  }
3481
- ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, f = o.location;
3430
+ ]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, f = o.location;
3482
3431
  }
3483
3432
  return a.length === 0 ? this.error(r === "select" ? N.EXPECT_SELECT_ARGUMENT_SELECTOR : N.EXPECT_PLURAL_ARGUMENT_SELECTOR, R(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(N.MISSING_OTHER_CLAUSE, R(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3484
3433
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
@@ -3492,7 +3441,7 @@ var mo = (
3492
3441
  break;
3493
3442
  }
3494
3443
  var h = R(i, this.clonePosition());
3495
- return o ? (s *= n, ho(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3444
+ return o ? (s *= n, Yi(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3496
3445
  }, e.prototype.offset = function() {
3497
3446
  return this.position.offset;
3498
3447
  }, e.prototype.isEOF = function() {
@@ -3507,7 +3456,7 @@ var mo = (
3507
3456
  var t = this.position.offset;
3508
3457
  if (t >= this.message.length)
3509
3458
  throw Error("out of bound");
3510
- var r = gn(this.message, t);
3459
+ var r = an(this.message, t);
3511
3460
  if (r === void 0)
3512
3461
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3513
3462
  return r;
@@ -3526,7 +3475,7 @@ var mo = (
3526
3475
  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);
3527
3476
  }
3528
3477
  }, e.prototype.bumpIf = function(t) {
3529
- if (Or(this.message, t, this.offset())) {
3478
+ if (Sr(this.message, t, this.offset())) {
3530
3479
  for (var r = 0; r < t.length; r++)
3531
3480
  this.bump();
3532
3481
  return !0;
@@ -3548,56 +3497,56 @@ var mo = (
3548
3497
  break;
3549
3498
  }
3550
3499
  }, e.prototype.bumpSpace = function() {
3551
- for (; !this.isEOF() && bn(this.char()); )
3500
+ for (; !this.isEOF() && ln(this.char()); )
3552
3501
  this.bump();
3553
3502
  }, e.prototype.peek = function() {
3554
3503
  if (this.isEOF())
3555
3504
  return null;
3556
3505
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3557
- return n != null ? n : null;
3506
+ return n ?? null;
3558
3507
  }, e;
3559
3508
  }()
3560
3509
  );
3561
- function tr(e) {
3510
+ function Jt(e) {
3562
3511
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3563
3512
  }
3564
- function go(e) {
3565
- return tr(e) || e === 47;
3513
+ function to(e) {
3514
+ return Jt(e) || e === 47;
3566
3515
  }
3567
- function vo(e) {
3516
+ function ro(e) {
3568
3517
  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;
3569
3518
  }
3570
- function bn(e) {
3519
+ function ln(e) {
3571
3520
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3572
3521
  }
3573
- function bo(e) {
3522
+ function no(e) {
3574
3523
  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;
3575
3524
  }
3576
- function rr(e) {
3525
+ function Kt(e) {
3577
3526
  e.forEach(function(t) {
3578
- if (delete t.location, un(t) || ln(t))
3527
+ if (delete t.location, Jr(t) || Kr(t))
3579
3528
  for (var r in t.options)
3580
- delete t.options[r].location, rr(t.options[r].value);
3581
- else on(t) && fn(t.style) || (sn(t) || an(t)) && Qt(t.style) ? delete t.style.location : hn(t) && rr(t.children);
3529
+ delete t.options[r].location, Kt(t.options[r].value);
3530
+ else qr(t) && tn(t.style) || (Yr(t) || Qr(t)) && Zt(t.style) ? delete t.style.location : en(t) && Kt(t.children);
3582
3531
  });
3583
3532
  }
3584
- function yo(e, t) {
3533
+ function io(e, t) {
3585
3534
  t === void 0 && (t = {}), t = U({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3586
- var r = new mo(e, t).parse();
3535
+ var r = new eo(e, t).parse();
3587
3536
  if (r.err) {
3588
3537
  var n = SyntaxError(N[r.err.kind]);
3589
3538
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3590
3539
  }
3591
- return t != null && t.captureLocation || rr(r.val), r.val;
3540
+ return t?.captureLocation || Kt(r.val), r.val;
3592
3541
  }
3593
- var Ge;
3542
+ var $e;
3594
3543
  (function(e) {
3595
3544
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3596
- })(Ge || (Ge = {}));
3597
- var At = (
3545
+ })($e || ($e = {}));
3546
+ var Ht = (
3598
3547
  /** @class */
3599
3548
  function(e) {
3600
- Ee(t, e);
3549
+ _e(t, e);
3601
3550
  function t(r, n, i) {
3602
3551
  var o = e.call(this, r) || this;
3603
3552
  return o.code = n, o.originalMessage = i, o;
@@ -3606,64 +3555,64 @@ var At = (
3606
3555
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3607
3556
  }, t;
3608
3557
  }(Error)
3609
- ), Mr = (
3558
+ ), Ar = (
3610
3559
  /** @class */
3611
3560
  function(e) {
3612
- Ee(t, e);
3561
+ _e(t, e);
3613
3562
  function t(r, n, i, o) {
3614
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE, o) || this;
3563
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), $e.INVALID_VALUE, o) || this;
3615
3564
  }
3616
3565
  return t;
3617
- }(At)
3618
- ), _o = (
3566
+ }(Ht)
3567
+ ), oo = (
3619
3568
  /** @class */
3620
3569
  function(e) {
3621
- Ee(t, e);
3570
+ _e(t, e);
3622
3571
  function t(r, n, i) {
3623
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ge.INVALID_VALUE, i) || this;
3572
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), $e.INVALID_VALUE, i) || this;
3624
3573
  }
3625
3574
  return t;
3626
- }(At)
3627
- ), Eo = (
3575
+ }(Ht)
3576
+ ), so = (
3628
3577
  /** @class */
3629
3578
  function(e) {
3630
- Ee(t, e);
3579
+ _e(t, e);
3631
3580
  function t(r, n) {
3632
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ge.MISSING_VALUE, n) || this;
3581
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), $e.MISSING_VALUE, n) || this;
3633
3582
  }
3634
3583
  return t;
3635
- }(At)
3584
+ }(Ht)
3636
3585
  ), Q;
3637
3586
  (function(e) {
3638
3587
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3639
3588
  })(Q || (Q = {}));
3640
- function xo(e) {
3589
+ function ao(e) {
3641
3590
  return e.length < 2 ? e : e.reduce(function(t, r) {
3642
3591
  var n = t[t.length - 1];
3643
3592
  return !n || n.type !== Q.literal || r.type !== Q.literal ? t.push(r) : n.value += r.value, t;
3644
3593
  }, []);
3645
3594
  }
3646
- function wo(e) {
3595
+ function uo(e) {
3647
3596
  return typeof e == "function";
3648
3597
  }
3649
- function _t(e, t, r, n, i, o, s) {
3650
- if (e.length === 1 && Br(e[0]))
3598
+ function yt(e, t, r, n, i, o, s) {
3599
+ if (e.length === 1 && _r(e[0]))
3651
3600
  return [
3652
3601
  {
3653
3602
  type: Q.literal,
3654
3603
  value: e[0].value
3655
3604
  }
3656
3605
  ];
3657
- for (var a = [], h = 0, u = e; h < u.length; h++) {
3658
- var f = u[h];
3659
- if (Br(f)) {
3606
+ for (var a = [], h = 0, l = e; h < l.length; h++) {
3607
+ var f = l[h];
3608
+ if (_r(f)) {
3660
3609
  a.push({
3661
3610
  type: Q.literal,
3662
3611
  value: f.value
3663
3612
  });
3664
3613
  continue;
3665
3614
  }
3666
- if (ki(f)) {
3615
+ if (Li(f)) {
3667
3616
  typeof o == "number" && a.push({
3668
3617
  type: Q.literal,
3669
3618
  value: r.getNumberFormat(t).format(o)
@@ -3672,44 +3621,44 @@ function _t(e, t, r, n, i, o, s) {
3672
3621
  }
3673
3622
  var p = f.value;
3674
3623
  if (!(i && p in i))
3675
- throw new Eo(p, s);
3624
+ throw new so(p, s);
3676
3625
  var g = i[p];
3677
- if (Wi(f)) {
3626
+ if (Ii(f)) {
3678
3627
  (!g || typeof g == "string" || typeof g == "number") && (g = typeof g == "string" || typeof g == "number" ? String(g) : ""), a.push({
3679
3628
  type: typeof g == "string" ? Q.literal : Q.object,
3680
3629
  value: g
3681
3630
  });
3682
3631
  continue;
3683
3632
  }
3684
- if (sn(f)) {
3685
- var y = typeof f.style == "string" ? n.date[f.style] : Qt(f.style) ? f.style.parsedOptions : void 0;
3633
+ if (Yr(f)) {
3634
+ var y = typeof f.style == "string" ? n.date[f.style] : Zt(f.style) ? f.style.parsedOptions : void 0;
3686
3635
  a.push({
3687
3636
  type: Q.literal,
3688
3637
  value: r.getDateTimeFormat(t, y).format(g)
3689
3638
  });
3690
3639
  continue;
3691
3640
  }
3692
- if (an(f)) {
3693
- var y = typeof f.style == "string" ? n.time[f.style] : Qt(f.style) ? f.style.parsedOptions : n.time.medium;
3641
+ if (Qr(f)) {
3642
+ var y = typeof f.style == "string" ? n.time[f.style] : Zt(f.style) ? f.style.parsedOptions : n.time.medium;
3694
3643
  a.push({
3695
3644
  type: Q.literal,
3696
3645
  value: r.getDateTimeFormat(t, y).format(g)
3697
3646
  });
3698
3647
  continue;
3699
3648
  }
3700
- if (on(f)) {
3701
- var y = typeof f.style == "string" ? n.number[f.style] : fn(f.style) ? f.style.parsedOptions : void 0;
3649
+ if (qr(f)) {
3650
+ var y = typeof f.style == "string" ? n.number[f.style] : tn(f.style) ? f.style.parsedOptions : void 0;
3702
3651
  y && y.scale && (g = g * (y.scale || 1)), a.push({
3703
3652
  type: Q.literal,
3704
3653
  value: r.getNumberFormat(t, y).format(g)
3705
3654
  });
3706
3655
  continue;
3707
3656
  }
3708
- if (hn(f)) {
3709
- var H = f.children, w = f.value, O = i[w];
3710
- if (!wo(O))
3711
- throw new _o(w, "function", s);
3712
- var P = _t(H, t, r, n, i, o), I = O(P.map(function(T) {
3657
+ if (en(f)) {
3658
+ var H = f.children, w = f.value, C = i[w];
3659
+ if (!uo(C))
3660
+ throw new oo(w, "function", s);
3661
+ var P = yt(H, t, r, n, i, o), I = C(P.map(function(T) {
3713
3662
  return T.value;
3714
3663
  }));
3715
3664
  Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(T) {
@@ -3719,42 +3668,42 @@ function _t(e, t, r, n, i, o, s) {
3719
3668
  };
3720
3669
  }));
3721
3670
  }
3722
- if (un(f)) {
3671
+ if (Jr(f)) {
3723
3672
  var B = f.options[g] || f.options.other;
3724
3673
  if (!B)
3725
- throw new Mr(f.value, g, Object.keys(f.options), s);
3726
- a.push.apply(a, _t(B.value, t, r, n, i));
3674
+ throw new Ar(f.value, g, Object.keys(f.options), s);
3675
+ a.push.apply(a, yt(B.value, t, r, n, i));
3727
3676
  continue;
3728
3677
  }
3729
- if (ln(f)) {
3678
+ if (Kr(f)) {
3730
3679
  var B = f.options["=".concat(g)];
3731
3680
  if (!B) {
3732
3681
  if (!Intl.PluralRules)
3733
- throw new At(`Intl.PluralRules is not available in this environment.
3682
+ throw new Ht(`Intl.PluralRules is not available in this environment.
3734
3683
  Try polyfilling it using "@formatjs/intl-pluralrules"
3735
- `, Ge.MISSING_INTL_API, s);
3684
+ `, $e.MISSING_INTL_API, s);
3736
3685
  var L = r.getPluralRules(t, { type: f.pluralType }).select(g - (f.offset || 0));
3737
3686
  B = f.options[L] || f.options.other;
3738
3687
  }
3739
3688
  if (!B)
3740
- throw new Mr(f.value, g, Object.keys(f.options), s);
3741
- a.push.apply(a, _t(B.value, t, r, n, i, g - (f.offset || 0)));
3689
+ throw new Ar(f.value, g, Object.keys(f.options), s);
3690
+ a.push.apply(a, yt(B.value, t, r, n, i, g - (f.offset || 0)));
3742
3691
  continue;
3743
3692
  }
3744
3693
  }
3745
- return xo(a);
3694
+ return ao(a);
3746
3695
  }
3747
- function So(e, t) {
3696
+ function lo(e, t) {
3748
3697
  return t ? U(U(U({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3749
3698
  return r[n] = U(U({}, e[n]), t[n] || {}), r;
3750
3699
  }, {})) : e;
3751
3700
  }
3752
- function To(e, t) {
3701
+ function ho(e, t) {
3753
3702
  return t ? Object.keys(e).reduce(function(r, n) {
3754
- return r[n] = So(e[n], t[n]), r;
3703
+ return r[n] = lo(e[n], t[n]), r;
3755
3704
  }, U({}, e)) : e;
3756
3705
  }
3757
- function jt(e) {
3706
+ function Ut(e) {
3758
3707
  return {
3759
3708
  create: function() {
3760
3709
  return {
@@ -3768,39 +3717,39 @@ function jt(e) {
3768
3717
  }
3769
3718
  };
3770
3719
  }
3771
- function Ho(e) {
3720
+ function fo(e) {
3772
3721
  return e === void 0 && (e = {
3773
3722
  number: {},
3774
3723
  dateTime: {},
3775
3724
  pluralRules: {}
3776
3725
  }), {
3777
- getNumberFormat: Ut(function() {
3726
+ getNumberFormat: Rt(function() {
3778
3727
  for (var t, r = [], n = 0; n < arguments.length; n++)
3779
3728
  r[n] = arguments[n];
3780
- return new ((t = Intl.NumberFormat).bind.apply(t, Fe([void 0], r, !1)))();
3729
+ return new ((t = Intl.NumberFormat).bind.apply(t, De([void 0], r, !1)))();
3781
3730
  }, {
3782
- cache: jt(e.number),
3783
- strategy: $t.variadic
3731
+ cache: Ut(e.number),
3732
+ strategy: Dt.variadic
3784
3733
  }),
3785
- getDateTimeFormat: Ut(function() {
3734
+ getDateTimeFormat: Rt(function() {
3786
3735
  for (var t, r = [], n = 0; n < arguments.length; n++)
3787
3736
  r[n] = arguments[n];
3788
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Fe([void 0], r, !1)))();
3737
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, De([void 0], r, !1)))();
3789
3738
  }, {
3790
- cache: jt(e.dateTime),
3791
- strategy: $t.variadic
3739
+ cache: Ut(e.dateTime),
3740
+ strategy: Dt.variadic
3792
3741
  }),
3793
- getPluralRules: Ut(function() {
3742
+ getPluralRules: Rt(function() {
3794
3743
  for (var t, r = [], n = 0; n < arguments.length; n++)
3795
3744
  r[n] = arguments[n];
3796
- return new ((t = Intl.PluralRules).bind.apply(t, Fe([void 0], r, !1)))();
3745
+ return new ((t = Intl.PluralRules).bind.apply(t, De([void 0], r, !1)))();
3797
3746
  }, {
3798
- cache: jt(e.pluralRules),
3799
- strategy: $t.variadic
3747
+ cache: Ut(e.pluralRules),
3748
+ strategy: Dt.variadic
3800
3749
  })
3801
3750
  };
3802
3751
  }
3803
- var Ao = (
3752
+ var co = (
3804
3753
  /** @class */
3805
3754
  function() {
3806
3755
  function e(t, r, n, i) {
@@ -3811,15 +3760,15 @@ var Ao = (
3811
3760
  dateTime: {},
3812
3761
  pluralRules: {}
3813
3762
  }, this.format = function(h) {
3814
- var u = o.formatToParts(h);
3815
- if (u.length === 1)
3816
- return u[0].value;
3817
- var f = u.reduce(function(p, g) {
3763
+ var l = o.formatToParts(h);
3764
+ if (l.length === 1)
3765
+ return l[0].value;
3766
+ var f = l.reduce(function(p, g) {
3818
3767
  return !p.length || g.type !== Q.literal || typeof p[p.length - 1] != "string" ? p.push(g.value) : p[p.length - 1] += g.value, p;
3819
3768
  }, []);
3820
3769
  return f.length <= 1 ? f[0] || "" : f;
3821
3770
  }, this.formatToParts = function(h) {
3822
- return _t(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3771
+ return yt(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3823
3772
  }, this.resolvedOptions = function() {
3824
3773
  var h;
3825
3774
  return {
@@ -3832,13 +3781,13 @@ var Ao = (
3832
3781
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3833
3782
  var s = i || {};
3834
3783
  s.formatters;
3835
- var a = ii(s, ["formatters"]);
3784
+ var a = Wn(s, ["formatters"]);
3836
3785
  this.ast = e.__parse(t, U(U({}, a), { locale: this.resolvedLocale }));
3837
3786
  } else
3838
3787
  this.ast = t;
3839
3788
  if (!Array.isArray(this.ast))
3840
3789
  throw new TypeError("A message must be provided as a String or AST.");
3841
- this.formats = To(e.formats, n), this.formatters = i && i.formatters || Ho(this.formatterCache);
3790
+ this.formats = ho(e.formats, n), this.formatters = i && i.formatters || fo(this.formatterCache);
3842
3791
  }
3843
3792
  return Object.defineProperty(e, "defaultLocale", {
3844
3793
  get: function() {
@@ -3847,11 +3796,11 @@ var Ao = (
3847
3796
  enumerable: !1,
3848
3797
  configurable: !0
3849
3798
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3850
- if (typeof Intl.Locale != "undefined") {
3799
+ if (!(typeof Intl.Locale > "u")) {
3851
3800
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3852
3801
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3853
3802
  }
3854
- }, e.__parse = yo, e.formats = {
3803
+ }, e.__parse = io, e.formats = {
3855
3804
  number: {
3856
3805
  integer: {
3857
3806
  maximumFractionDigits: 0
@@ -3912,7 +3861,7 @@ var Ao = (
3912
3861
  }, e;
3913
3862
  }()
3914
3863
  );
3915
- function Bo(e, t) {
3864
+ function po(e, t) {
3916
3865
  if (t == null)
3917
3866
  return;
3918
3867
  if (t in e)
@@ -3933,92 +3882,92 @@ function Bo(e, t) {
3933
3882
  n = void 0;
3934
3883
  return n;
3935
3884
  }
3936
- const Se = {}, Io = (e, t, r) => r && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = r), r), yn = (e, t) => {
3885
+ const we = {}, mo = (e, t, r) => r && (t in we || (we[t] = {}), e in we[t] || (we[t][e] = r), r), hn = (e, t) => {
3937
3886
  if (t == null)
3938
3887
  return;
3939
- if (t in Se && e in Se[t])
3940
- return Se[t][e];
3941
- const r = Bt(t);
3888
+ if (t in we && e in we[t])
3889
+ return we[t][e];
3890
+ const r = At(t);
3942
3891
  for (let n = 0; n < r.length; n++) {
3943
- const i = r[n], o = Co(i, e);
3892
+ const i = r[n], o = bo(i, e);
3944
3893
  if (o)
3945
- return Io(e, t, o);
3894
+ return mo(e, t, o);
3946
3895
  }
3947
3896
  };
3948
- let hr;
3949
- const ke = Ht({});
3950
- function Lo(e) {
3951
- return hr[e] || null;
3897
+ let sr;
3898
+ const We = Tt({});
3899
+ function go(e) {
3900
+ return sr[e] || null;
3952
3901
  }
3953
- function _n(e) {
3954
- return e in hr;
3902
+ function fn(e) {
3903
+ return e in sr;
3955
3904
  }
3956
- function Co(e, t) {
3957
- if (!_n(e))
3905
+ function bo(e, t) {
3906
+ if (!fn(e))
3958
3907
  return null;
3959
- const r = Lo(e);
3960
- return Bo(r, t);
3908
+ const r = go(e);
3909
+ return po(r, t);
3961
3910
  }
3962
- function Oo(e) {
3911
+ function vo(e) {
3963
3912
  if (e == null)
3964
3913
  return;
3965
- const t = Bt(e);
3914
+ const t = At(e);
3966
3915
  for (let r = 0; r < t.length; r++) {
3967
3916
  const n = t[r];
3968
- if (_n(n))
3917
+ if (fn(n))
3969
3918
  return n;
3970
3919
  }
3971
3920
  }
3972
- function En(e, ...t) {
3973
- delete Se[e], ke.update((r) => (r[e] = Ri.all([r[e] || {}, ...t]), r));
3921
+ function cn(e, ...t) {
3922
+ delete we[e], We.update((r) => (r[e] = Ei.all([r[e] || {}, ...t]), r));
3974
3923
  }
3975
- We(
3976
- [ke],
3924
+ je(
3925
+ [We],
3977
3926
  ([e]) => Object.keys(e)
3978
3927
  );
3979
- ke.subscribe((e) => hr = e);
3980
- const Et = {};
3981
- function Po(e, t) {
3982
- Et[e].delete(t), Et[e].size === 0 && delete Et[e];
3928
+ We.subscribe((e) => sr = e);
3929
+ const _t = {};
3930
+ function yo(e, t) {
3931
+ _t[e].delete(t), _t[e].size === 0 && delete _t[e];
3983
3932
  }
3984
- function xn(e) {
3985
- return Et[e];
3933
+ function dn(e) {
3934
+ return _t[e];
3986
3935
  }
3987
- function No(e) {
3988
- return Bt(e).map((t) => {
3989
- const r = xn(t);
3936
+ function _o(e) {
3937
+ return At(e).map((t) => {
3938
+ const r = dn(t);
3990
3939
  return [t, r ? [...r] : []];
3991
3940
  }).filter(([, t]) => t.length > 0);
3992
3941
  }
3993
- function nr(e) {
3994
- return e == null ? !1 : Bt(e).some(
3942
+ function er(e) {
3943
+ return e == null ? !1 : At(e).some(
3995
3944
  (t) => {
3996
3945
  var r;
3997
- return (r = xn(t)) == null ? void 0 : r.size;
3946
+ return (r = dn(t)) == null ? void 0 : r.size;
3998
3947
  }
3999
3948
  );
4000
3949
  }
4001
- function Mo(e, t) {
3950
+ function Eo(e, t) {
4002
3951
  return Promise.all(
4003
- t.map((n) => (Po(e, n), n().then((i) => i.default || i)))
4004
- ).then((n) => En(e, ...n));
4005
- }
4006
- const tt = {};
4007
- function wn(e) {
4008
- if (!nr(e))
4009
- return e in tt ? tt[e] : Promise.resolve();
4010
- const t = No(e);
4011
- return tt[e] = Promise.all(
3952
+ t.map((n) => (yo(e, n), n().then((i) => i.default || i)))
3953
+ ).then((n) => cn(e, ...n));
3954
+ }
3955
+ const et = {};
3956
+ function pn(e) {
3957
+ if (!er(e))
3958
+ return e in et ? et[e] : Promise.resolve();
3959
+ const t = _o(e);
3960
+ return et[e] = Promise.all(
4012
3961
  t.map(
4013
- ([r, n]) => Mo(r, n)
3962
+ ([r, n]) => Eo(r, n)
4014
3963
  )
4015
3964
  ).then(() => {
4016
- if (nr(e))
4017
- return wn(e);
4018
- delete tt[e];
4019
- }), tt[e];
3965
+ if (er(e))
3966
+ return pn(e);
3967
+ delete et[e];
3968
+ }), et[e];
4020
3969
  }
4021
- const Ro = {
3970
+ const xo = {
4022
3971
  number: {
4023
3972
  scientific: { notation: "scientific" },
4024
3973
  engineering: { notation: "engineering" },
@@ -4047,150 +3996,150 @@ const Ro = {
4047
3996
  timeZoneName: "short"
4048
3997
  }
4049
3998
  }
4050
- }, Do = {
3999
+ }, wo = {
4051
4000
  fallbackLocale: null,
4052
4001
  loadingDelay: 200,
4053
- formats: Ro,
4002
+ formats: xo,
4054
4003
  warnOnMissingMessages: !0,
4055
4004
  handleMissingMessage: void 0,
4056
4005
  ignoreTag: !0
4057
- }, Fo = Do;
4058
- function je() {
4059
- return Fo;
4060
- }
4061
- const Wt = Ht(!1);
4062
- var Uo = Object.defineProperty, $o = Object.defineProperties, Go = Object.getOwnPropertyDescriptors, Rr = Object.getOwnPropertySymbols, jo = Object.prototype.hasOwnProperty, Wo = Object.prototype.propertyIsEnumerable, Dr = (e, t, r) => t in e ? Uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ko = (e, t) => {
4063
- for (var r in t || (t = {}))
4064
- jo.call(t, r) && Dr(e, r, t[r]);
4065
- if (Rr)
4066
- for (var r of Rr(t))
4067
- Wo.call(t, r) && Dr(e, r, t[r]);
4006
+ }, So = wo;
4007
+ function Ge() {
4008
+ return So;
4009
+ }
4010
+ const $t = Tt(!1);
4011
+ var To = Object.defineProperty, Ho = Object.defineProperties, Ao = Object.getOwnPropertyDescriptors, Br = Object.getOwnPropertySymbols, Bo = Object.prototype.hasOwnProperty, Io = Object.prototype.propertyIsEnumerable, Ir = (e, t, r) => t in e ? To(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Lo = (e, t) => {
4012
+ for (var r in t)
4013
+ Bo.call(t, r) && Ir(e, r, t[r]);
4014
+ if (Br)
4015
+ for (var r of Br(t))
4016
+ Io.call(t, r) && Ir(e, r, t[r]);
4068
4017
  return e;
4069
- }, Xo = (e, t) => $o(e, Go(t));
4070
- let ir;
4071
- const xt = Ht(null);
4072
- function Fr(e) {
4018
+ }, Oo = (e, t) => Ho(e, Ao(t));
4019
+ let tr;
4020
+ const Et = Tt(null);
4021
+ function Lr(e) {
4073
4022
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4074
4023
  }
4075
- function Bt(e, t = je().fallbackLocale) {
4076
- const r = Fr(e);
4077
- return t ? [.../* @__PURE__ */ new Set([...r, ...Fr(t)])] : r;
4024
+ function At(e, t = Ge().fallbackLocale) {
4025
+ const r = Lr(e);
4026
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Lr(t)])] : r;
4078
4027
  }
4079
- function Ie() {
4080
- return ir != null ? ir : void 0;
4028
+ function Be() {
4029
+ return tr ?? void 0;
4081
4030
  }
4082
- xt.subscribe((e) => {
4083
- ir = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4031
+ Et.subscribe((e) => {
4032
+ tr = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4084
4033
  });
4085
- const Vo = (e) => {
4086
- if (e && Oo(e) && nr(e)) {
4087
- const { loadingDelay: t } = je();
4034
+ const Co = (e) => {
4035
+ if (e && vo(e) && er(e)) {
4036
+ const { loadingDelay: t } = Ge();
4088
4037
  let r;
4089
- return typeof window != "undefined" && Ie() != null && t ? r = window.setTimeout(
4090
- () => Wt.set(!0),
4038
+ return typeof window < "u" && Be() != null && t ? r = window.setTimeout(
4039
+ () => $t.set(!0),
4091
4040
  t
4092
- ) : Wt.set(!0), wn(e).then(() => {
4093
- xt.set(e);
4041
+ ) : $t.set(!0), pn(e).then(() => {
4042
+ Et.set(e);
4094
4043
  }).finally(() => {
4095
- clearTimeout(r), Wt.set(!1);
4044
+ clearTimeout(r), $t.set(!1);
4096
4045
  });
4097
4046
  }
4098
- return xt.set(e);
4099
- }, Te = Xo(ko({}, xt), {
4100
- set: Vo
4101
- }), It = (e) => {
4047
+ return Et.set(e);
4048
+ }, Se = Oo(Lo({}, Et), {
4049
+ set: Co
4050
+ }), Bt = (e) => {
4102
4051
  const t = /* @__PURE__ */ Object.create(null);
4103
4052
  return (n) => {
4104
4053
  const i = JSON.stringify(n);
4105
4054
  return i in t ? t[i] : t[i] = e(n);
4106
4055
  };
4107
4056
  };
4108
- var zo = Object.defineProperty, wt = Object.getOwnPropertySymbols, Sn = Object.prototype.hasOwnProperty, Tn = Object.prototype.propertyIsEnumerable, Ur = (e, t, r) => t in e ? zo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, fr = (e, t) => {
4057
+ var Po = Object.defineProperty, xt = Object.getOwnPropertySymbols, mn = Object.prototype.hasOwnProperty, gn = Object.prototype.propertyIsEnumerable, Or = (e, t, r) => t in e ? Po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ar = (e, t) => {
4109
4058
  for (var r in t || (t = {}))
4110
- Sn.call(t, r) && Ur(e, r, t[r]);
4111
- if (wt)
4112
- for (var r of wt(t))
4113
- Tn.call(t, r) && Ur(e, r, t[r]);
4059
+ mn.call(t, r) && Or(e, r, t[r]);
4060
+ if (xt)
4061
+ for (var r of xt(t))
4062
+ gn.call(t, r) && Or(e, r, t[r]);
4114
4063
  return e;
4115
- }, Xe = (e, t) => {
4064
+ }, ke = (e, t) => {
4116
4065
  var r = {};
4117
4066
  for (var n in e)
4118
- Sn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4119
- if (e != null && wt)
4120
- for (var n of wt(e))
4121
- t.indexOf(n) < 0 && Tn.call(e, n) && (r[n] = e[n]);
4067
+ mn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4068
+ if (e != null && xt)
4069
+ for (var n of xt(e))
4070
+ t.indexOf(n) < 0 && gn.call(e, n) && (r[n] = e[n]);
4122
4071
  return r;
4123
4072
  };
4124
- const st = (e, t) => {
4125
- const { formats: r } = je();
4073
+ const ot = (e, t) => {
4074
+ const { formats: r } = Ge();
4126
4075
  if (e in r && t in r[e])
4127
4076
  return r[e][t];
4128
4077
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4129
- }, Zo = It(
4078
+ }, No = Bt(
4130
4079
  (e) => {
4131
- var t = e, { locale: r, format: n } = t, i = Xe(t, ["locale", "format"]);
4080
+ var t = e, { locale: r, format: n } = t, i = ke(t, ["locale", "format"]);
4132
4081
  if (r == null)
4133
4082
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4134
- return n && (i = st("number", n)), new Intl.NumberFormat(r, i);
4083
+ return n && (i = ot("number", n)), new Intl.NumberFormat(r, i);
4135
4084
  }
4136
- ), qo = It(
4085
+ ), Mo = Bt(
4137
4086
  (e) => {
4138
- var t = e, { locale: r, format: n } = t, i = Xe(t, ["locale", "format"]);
4087
+ var t = e, { locale: r, format: n } = t, i = ke(t, ["locale", "format"]);
4139
4088
  if (r == null)
4140
4089
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4141
- return n ? i = st("date", n) : Object.keys(i).length === 0 && (i = st("date", "short")), new Intl.DateTimeFormat(r, i);
4090
+ return n ? i = ot("date", n) : Object.keys(i).length === 0 && (i = ot("date", "short")), new Intl.DateTimeFormat(r, i);
4142
4091
  }
4143
- ), Yo = It(
4092
+ ), Ro = Bt(
4144
4093
  (e) => {
4145
- var t = e, { locale: r, format: n } = t, i = Xe(t, ["locale", "format"]);
4094
+ var t = e, { locale: r, format: n } = t, i = ke(t, ["locale", "format"]);
4146
4095
  if (r == null)
4147
4096
  throw new Error(
4148
4097
  '[svelte-i18n] A "locale" must be set to format time values'
4149
4098
  );
4150
- return n ? i = st("time", n) : Object.keys(i).length === 0 && (i = st("time", "short")), new Intl.DateTimeFormat(r, i);
4099
+ return n ? i = ot("time", n) : Object.keys(i).length === 0 && (i = ot("time", "short")), new Intl.DateTimeFormat(r, i);
4151
4100
  }
4152
- ), Qo = (e = {}) => {
4101
+ ), Do = (e = {}) => {
4153
4102
  var t = e, {
4154
- locale: r = Ie()
4155
- } = t, n = Xe(t, [
4103
+ locale: r = Be()
4104
+ } = t, n = ke(t, [
4156
4105
  "locale"
4157
4106
  ]);
4158
- return Zo(fr({ locale: r }, n));
4159
- }, Jo = (e = {}) => {
4107
+ return No(ar({ locale: r }, n));
4108
+ }, Fo = (e = {}) => {
4160
4109
  var t = e, {
4161
- locale: r = Ie()
4162
- } = t, n = Xe(t, [
4110
+ locale: r = Be()
4111
+ } = t, n = ke(t, [
4163
4112
  "locale"
4164
4113
  ]);
4165
- return qo(fr({ locale: r }, n));
4166
- }, Ko = (e = {}) => {
4114
+ return Mo(ar({ locale: r }, n));
4115
+ }, Uo = (e = {}) => {
4167
4116
  var t = e, {
4168
- locale: r = Ie()
4169
- } = t, n = Xe(t, [
4117
+ locale: r = Be()
4118
+ } = t, n = ke(t, [
4170
4119
  "locale"
4171
4120
  ]);
4172
- return Yo(fr({ locale: r }, n));
4173
- }, es = It(
4121
+ return Ro(ar({ locale: r }, n));
4122
+ }, $o = Bt(
4174
4123
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4175
- (e, t = Ie()) => new Ao(e, t, je().formats, {
4176
- ignoreTag: je().ignoreTag
4124
+ (e, t = Be()) => new co(e, t, Ge().formats, {
4125
+ ignoreTag: Ge().ignoreTag
4177
4126
  })
4178
- ), ts = (e, t = {}) => {
4127
+ ), Go = (e, t = {}) => {
4179
4128
  var r, n, i, o;
4180
4129
  let s = t;
4181
4130
  typeof e == "object" && (s = e, e = s.id);
4182
4131
  const {
4183
4132
  values: a,
4184
- locale: h = Ie(),
4185
- default: u
4133
+ locale: h = Be(),
4134
+ default: l
4186
4135
  } = s;
4187
4136
  if (h == null)
4188
4137
  throw new Error(
4189
4138
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4190
4139
  );
4191
- let f = yn(e, h);
4140
+ let f = hn(e, h);
4192
4141
  if (!f)
4193
- f = (o = (i = (n = (r = je()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4142
+ f = (o = (i = (n = (r = Ge()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
4194
4143
  else if (typeof f != "string")
4195
4144
  return console.warn(
4196
4145
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -4199,7 +4148,7 @@ const st = (e, t) => {
4199
4148
  return f;
4200
4149
  let p = f;
4201
4150
  try {
4202
- p = es(f, h).format(a);
4151
+ p = $o(f, h).format(a);
4203
4152
  } catch (g) {
4204
4153
  g instanceof Error && console.warn(
4205
4154
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4207,14 +4156,14 @@ const st = (e, t) => {
4207
4156
  );
4208
4157
  }
4209
4158
  return p;
4210
- }, rs = (e, t) => Ko(t).format(e), ns = (e, t) => Jo(t).format(e), is = (e, t) => Qo(t).format(e), os = (e, t = Ie()) => yn(e, t), ss = We([Te, ke], () => ts);
4211
- We([Te], () => rs);
4212
- We([Te], () => ns);
4213
- We([Te], () => is);
4214
- We([Te, ke], () => os);
4215
- window.emWidgets = { topic: bi };
4216
- const as = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4217
- var or = { exports: {} };
4159
+ }, jo = (e, t) => Uo(t).format(e), Wo = (e, t) => Fo(t).format(e), ko = (e, t) => Do(t).format(e), Xo = (e, t = Be()) => hn(e, t), Vo = je([Se, We], () => Go);
4160
+ je([Se], () => jo);
4161
+ je([Se], () => Wo);
4162
+ je([Se], () => ko);
4163
+ je([Se, We], () => Xo);
4164
+ window.emWidgets = { topic: ni };
4165
+ const zo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4166
+ var rr = { exports: {} };
4218
4167
  /** @license
4219
4168
  * eventsource.js
4220
4169
  * Available under MIT License (MIT)
@@ -4222,24 +4171,24 @@ var or = { exports: {} };
4222
4171
  */
4223
4172
  (function(e, t) {
4224
4173
  (function(r) {
4225
- var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, h = r.EventSource, u = r.document, f = r.Promise, p = r.fetch, g = r.Response, y = r.TextDecoder, H = r.TextEncoder, w = r.AbortController;
4226
- if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(l) {
4227
- u.readyState = "complete";
4174
+ var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, h = r.EventSource, l = r.document, f = r.Promise, p = r.fetch, g = r.Response, y = r.TextDecoder, H = r.TextEncoder, w = r.AbortController;
4175
+ if (typeof window < "u" && typeof l < "u" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(u) {
4176
+ l.readyState = "complete";
4228
4177
  }, !1)), o == null && a != null && (o = function() {
4229
4178
  return new a("Microsoft.XMLHTTP");
4230
- }), Object.create == null && (Object.create = function(l) {
4231
- function v() {
4179
+ }), Object.create == null && (Object.create = function(u) {
4180
+ function b() {
4232
4181
  }
4233
- return v.prototype = l, new v();
4182
+ return b.prototype = u, new b();
4234
4183
  }), Date.now || (Date.now = function() {
4235
4184
  return (/* @__PURE__ */ new Date()).getTime();
4236
4185
  }), w == null) {
4237
- var O = p;
4238
- p = function(l, v) {
4239
- var b = v.signal;
4240
- return O(l, { headers: v.headers, credentials: v.credentials, cache: v.cache }).then(function(m) {
4186
+ var C = p;
4187
+ p = function(u, b) {
4188
+ var v = b.signal;
4189
+ return C(u, { headers: b.headers, credentials: b.credentials, cache: b.cache }).then(function(m) {
4241
4190
  var A = m.body.getReader();
4242
- return b._reader = A, b._aborted && b._reader.cancel(), {
4191
+ return v._reader = A, v._aborted && v._reader.cancel(), {
4243
4192
  status: m.status,
4244
4193
  statusText: m.statusText,
4245
4194
  headers: m.headers,
@@ -4262,8 +4211,8 @@ var or = { exports: {} };
4262
4211
  function P() {
4263
4212
  this.bitsNeeded = 0, this.codePoint = 0;
4264
4213
  }
4265
- P.prototype.decode = function(l) {
4266
- function v(x, D, _) {
4214
+ P.prototype.decode = function(u) {
4215
+ function b(x, D, _) {
4267
4216
  if (_ === 1)
4268
4217
  return x >= 128 >> D && x << D <= 2047;
4269
4218
  if (_ === 2)
@@ -4272,7 +4221,7 @@ var or = { exports: {} };
4272
4221
  return x >= 65536 >> D && x << D <= 1114111;
4273
4222
  throw new Error();
4274
4223
  }
4275
- function b(x, D) {
4224
+ function v(x, D) {
4276
4225
  if (x === 6 * 1)
4277
4226
  return D >> 6 > 15 ? 3 : D > 31 ? 2 : 1;
4278
4227
  if (x === 6 * 2)
@@ -4281,71 +4230,71 @@ var or = { exports: {} };
4281
4230
  return 3;
4282
4231
  throw new Error();
4283
4232
  }
4284
- for (var m = 65533, A = "", S = this.bitsNeeded, C = this.codePoint, c = 0; c < l.length; c += 1) {
4285
- var d = l[c];
4286
- S !== 0 && (d < 128 || d > 191 || !v(C << 6 | d & 63, S - 6, b(S, C))) && (S = 0, C = m, A += String.fromCharCode(C)), S === 0 ? (d >= 0 && d <= 127 ? (S = 0, C = d) : d >= 192 && d <= 223 ? (S = 6 * 1, C = d & 31) : d >= 224 && d <= 239 ? (S = 6 * 2, C = d & 15) : d >= 240 && d <= 247 ? (S = 6 * 3, C = d & 7) : (S = 0, C = m), S !== 0 && !v(C, S, b(S, C)) && (S = 0, C = m)) : (S -= 6, C = C << 6 | d & 63), S === 0 && (C <= 65535 ? A += String.fromCharCode(C) : (A += String.fromCharCode(55296 + (C - 65535 - 1 >> 10)), A += String.fromCharCode(56320 + (C - 65535 - 1 & 1023))));
4233
+ for (var m = 65533, A = "", S = this.bitsNeeded, O = this.codePoint, c = 0; c < u.length; c += 1) {
4234
+ var d = u[c];
4235
+ S !== 0 && (d < 128 || d > 191 || !b(O << 6 | d & 63, S - 6, v(S, O))) && (S = 0, O = m, A += String.fromCharCode(O)), S === 0 ? (d >= 0 && d <= 127 ? (S = 0, O = d) : d >= 192 && d <= 223 ? (S = 6 * 1, O = d & 31) : d >= 224 && d <= 239 ? (S = 6 * 2, O = d & 15) : d >= 240 && d <= 247 ? (S = 6 * 3, O = d & 7) : (S = 0, O = m), S !== 0 && !b(O, S, v(S, O)) && (S = 0, O = m)) : (S -= 6, O = O << 6 | d & 63), S === 0 && (O <= 65535 ? A += String.fromCharCode(O) : (A += String.fromCharCode(55296 + (O - 65535 - 1 >> 10)), A += String.fromCharCode(56320 + (O - 65535 - 1 & 1023))));
4287
4236
  }
4288
- return this.bitsNeeded = S, this.codePoint = C, A;
4237
+ return this.bitsNeeded = S, this.codePoint = O, A;
4289
4238
  };
4290
4239
  var I = function() {
4291
4240
  try {
4292
4241
  return new y().decode(new H().encode("test"), { stream: !0 }) === "test";
4293
- } catch (l) {
4294
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + l);
4242
+ } catch (u) {
4243
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + u);
4295
4244
  }
4296
4245
  return !1;
4297
4246
  };
4298
4247
  (y == null || H == null || !I()) && (y = P);
4299
4248
  var B = function() {
4300
4249
  };
4301
- function L(l) {
4302
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = B, this.onload = B, this.onerror = B, this.onreadystatechange = B, this._contentType = "", this._xhr = l, this._sendTimeout = 0, this._abort = B;
4250
+ function L(u) {
4251
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = B, this.onload = B, this.onerror = B, this.onreadystatechange = B, this._contentType = "", this._xhr = u, this._sendTimeout = 0, this._abort = B;
4303
4252
  }
4304
- L.prototype.open = function(l, v) {
4253
+ L.prototype.open = function(u, b) {
4305
4254
  this._abort(!0);
4306
- var b = this, m = this._xhr, A = 1, S = 0;
4255
+ var v = this, m = this._xhr, A = 1, S = 0;
4307
4256
  this._abort = function(_) {
4308
- b._sendTimeout !== 0 && (i(b._sendTimeout), b._sendTimeout = 0), (A === 1 || A === 2 || A === 3) && (A = 4, m.onload = B, m.onerror = B, m.onabort = B, m.onprogress = B, m.onreadystatechange = B, m.abort(), S !== 0 && (i(S), S = 0), _ || (b.readyState = 4, b.onabort(null), b.onreadystatechange())), A = 0;
4257
+ v._sendTimeout !== 0 && (i(v._sendTimeout), v._sendTimeout = 0), (A === 1 || A === 2 || A === 3) && (A = 4, m.onload = B, m.onerror = B, m.onabort = B, m.onprogress = B, m.onreadystatechange = B, m.abort(), S !== 0 && (i(S), S = 0), _ || (v.readyState = 4, v.onabort(null), v.onreadystatechange())), A = 0;
4309
4258
  };
4310
- var C = function() {
4259
+ var O = function() {
4311
4260
  if (A === 1) {
4312
- var _ = 0, F = "", pe = void 0;
4261
+ var _ = 0, F = "", de = void 0;
4313
4262
  if ("contentType" in m)
4314
- _ = 200, F = "OK", pe = m.contentType;
4263
+ _ = 200, F = "OK", de = m.contentType;
4315
4264
  else
4316
4265
  try {
4317
- _ = m.status, F = m.statusText, pe = m.getResponseHeader("Content-Type");
4318
- } catch (Ke) {
4319
- _ = 0, F = "", pe = void 0;
4266
+ _ = m.status, F = m.statusText, de = m.getResponseHeader("Content-Type");
4267
+ } catch {
4268
+ _ = 0, F = "", de = void 0;
4320
4269
  }
4321
- _ !== 0 && (A = 2, b.readyState = 2, b.status = _, b.statusText = F, b._contentType = pe, b.onreadystatechange());
4270
+ _ !== 0 && (A = 2, v.readyState = 2, v.status = _, v.statusText = F, v._contentType = de, v.onreadystatechange());
4322
4271
  }
4323
4272
  }, c = function() {
4324
- if (C(), A === 2 || A === 3) {
4273
+ if (O(), A === 2 || A === 3) {
4325
4274
  A = 3;
4326
4275
  var _ = "";
4327
4276
  try {
4328
4277
  _ = m.responseText;
4329
- } catch (F) {
4278
+ } catch {
4330
4279
  }
4331
- b.readyState = 3, b.responseText = _, b.onprogress();
4280
+ v.readyState = 3, v.responseText = _, v.onprogress();
4332
4281
  }
4333
4282
  }, d = function(_, F) {
4334
4283
  if ((F == null || F.preventDefault == null) && (F = {
4335
4284
  preventDefault: B
4336
4285
  }), c(), A === 1 || A === 2 || A === 3) {
4337
- if (A = 4, S !== 0 && (i(S), S = 0), b.readyState = 4, _ === "load")
4338
- b.onload(F);
4286
+ if (A = 4, S !== 0 && (i(S), S = 0), v.readyState = 4, _ === "load")
4287
+ v.onload(F);
4339
4288
  else if (_ === "error")
4340
- b.onerror(F);
4289
+ v.onerror(F);
4341
4290
  else if (_ === "abort")
4342
- b.onabort(F);
4291
+ v.onabort(F);
4343
4292
  else
4344
4293
  throw new TypeError();
4345
- b.onreadystatechange();
4294
+ v.onreadystatechange();
4346
4295
  }
4347
4296
  }, x = function(_) {
4348
- m != null && (m.readyState === 4 ? (!("onload" in m) || !("onerror" in m) || !("onabort" in m)) && d(m.responseText === "" ? "error" : "load", _) : m.readyState === 3 ? "onprogress" in m || c() : m.readyState === 2 && C());
4297
+ m != null && (m.readyState === 4 ? (!("onload" in m) || !("onerror" in m) || !("onabort" in m)) && d(m.responseText === "" ? "error" : "load", _) : m.readyState === 3 ? "onprogress" in m || c() : m.readyState === 2 && O());
4349
4298
  }, D = function() {
4350
4299
  S = n(function() {
4351
4300
  D();
@@ -4359,104 +4308,104 @@ var or = { exports: {} };
4359
4308
  d("abort", _);
4360
4309
  }), "onprogress" in m && (m.onprogress = c), "onreadystatechange" in m && (m.onreadystatechange = function(_) {
4361
4310
  x(_);
4362
- }), ("contentType" in m || !("ontimeout" in o.prototype)) && (v += (v.indexOf("?") === -1 ? "?" : "&") + "padding=true"), m.open(l, v, !0), "readyState" in m && (S = n(function() {
4311
+ }), ("contentType" in m || !("ontimeout" in o.prototype)) && (b += (b.indexOf("?") === -1 ? "?" : "&") + "padding=true"), m.open(u, b, !0), "readyState" in m && (S = n(function() {
4363
4312
  D();
4364
4313
  }, 0));
4365
4314
  }, L.prototype.abort = function() {
4366
4315
  this._abort(!1);
4367
- }, L.prototype.getResponseHeader = function(l) {
4316
+ }, L.prototype.getResponseHeader = function(u) {
4368
4317
  return this._contentType;
4369
- }, L.prototype.setRequestHeader = function(l, v) {
4370
- var b = this._xhr;
4371
- "setRequestHeader" in b && b.setRequestHeader(l, v);
4318
+ }, L.prototype.setRequestHeader = function(u, b) {
4319
+ var v = this._xhr;
4320
+ "setRequestHeader" in v && v.setRequestHeader(u, b);
4372
4321
  }, L.prototype.getAllResponseHeaders = function() {
4373
4322
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4374
4323
  }, L.prototype.send = function() {
4375
- if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4376
- var l = this;
4377
- l._sendTimeout = n(function() {
4378
- l._sendTimeout = 0, l.send();
4324
+ if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && l != null && l.readyState != null && l.readyState !== "complete") {
4325
+ var u = this;
4326
+ u._sendTimeout = n(function() {
4327
+ u._sendTimeout = 0, u.send();
4379
4328
  }, 4);
4380
4329
  return;
4381
4330
  }
4382
- var v = this._xhr;
4383
- "withCredentials" in v && (v.withCredentials = this.withCredentials);
4331
+ var b = this._xhr;
4332
+ "withCredentials" in b && (b.withCredentials = this.withCredentials);
4384
4333
  try {
4385
- v.send(void 0);
4386
- } catch (b) {
4387
- throw b;
4334
+ b.send(void 0);
4335
+ } catch (v) {
4336
+ throw v;
4388
4337
  }
4389
4338
  };
4390
- function T(l) {
4391
- return l.replace(/[A-Z]/g, function(v) {
4392
- return String.fromCharCode(v.charCodeAt(0) + 32);
4339
+ function T(u) {
4340
+ return u.replace(/[A-Z]/g, function(b) {
4341
+ return String.fromCharCode(b.charCodeAt(0) + 32);
4393
4342
  });
4394
4343
  }
4395
- function M(l) {
4396
- for (var v = /* @__PURE__ */ Object.create(null), b = l.split(`\r
4397
- `), m = 0; m < b.length; m += 1) {
4398
- var A = b[m], S = A.split(": "), C = S.shift(), c = S.join(": ");
4399
- v[T(C)] = c;
4344
+ function M(u) {
4345
+ for (var b = /* @__PURE__ */ Object.create(null), v = u.split(`\r
4346
+ `), m = 0; m < v.length; m += 1) {
4347
+ var A = v[m], S = A.split(": "), O = S.shift(), c = S.join(": ");
4348
+ b[T(O)] = c;
4400
4349
  }
4401
- this._map = v;
4350
+ this._map = b;
4402
4351
  }
4403
- M.prototype.get = function(l) {
4404
- return this._map[T(l)];
4352
+ M.prototype.get = function(u) {
4353
+ return this._map[T(u)];
4405
4354
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4406
4355
  function $() {
4407
4356
  }
4408
- $.prototype.open = function(l, v, b, m, A, S, C) {
4409
- l.open("GET", A);
4357
+ $.prototype.open = function(u, b, v, m, A, S, O) {
4358
+ u.open("GET", A);
4410
4359
  var c = 0;
4411
- l.onprogress = function() {
4412
- var x = l.responseText, D = x.slice(c);
4413
- c += D.length, b(D);
4414
- }, l.onerror = function(x) {
4360
+ u.onprogress = function() {
4361
+ var x = u.responseText, D = x.slice(c);
4362
+ c += D.length, v(D);
4363
+ }, u.onerror = function(x) {
4415
4364
  x.preventDefault(), m(new Error("NetworkError"));
4416
- }, l.onload = function() {
4365
+ }, u.onload = function() {
4417
4366
  m(null);
4418
- }, l.onabort = function() {
4367
+ }, u.onabort = function() {
4419
4368
  m(null);
4420
- }, l.onreadystatechange = function() {
4421
- if (l.readyState === o.HEADERS_RECEIVED) {
4422
- var x = l.status, D = l.statusText, _ = l.getResponseHeader("Content-Type"), F = l.getAllResponseHeaders();
4423
- v(x, D, _, new M(F));
4369
+ }, u.onreadystatechange = function() {
4370
+ if (u.readyState === o.HEADERS_RECEIVED) {
4371
+ var x = u.status, D = u.statusText, _ = u.getResponseHeader("Content-Type"), F = u.getAllResponseHeaders();
4372
+ b(x, D, _, new M(F));
4424
4373
  }
4425
- }, l.withCredentials = S;
4426
- for (var d in C)
4427
- Object.prototype.hasOwnProperty.call(C, d) && l.setRequestHeader(d, C[d]);
4428
- return l.send(), l;
4374
+ }, u.withCredentials = S;
4375
+ for (var d in O)
4376
+ Object.prototype.hasOwnProperty.call(O, d) && u.setRequestHeader(d, O[d]);
4377
+ return u.send(), u;
4429
4378
  };
4430
- function ue(l) {
4431
- this._headers = l;
4379
+ function ae(u) {
4380
+ this._headers = u;
4432
4381
  }
4433
- ue.prototype.get = function(l) {
4434
- return this._headers.get(l);
4382
+ ae.prototype.get = function(u) {
4383
+ return this._headers.get(u);
4435
4384
  };
4436
- function Le() {
4385
+ function Ie() {
4437
4386
  }
4438
- Le.prototype.open = function(l, v, b, m, A, S, C) {
4387
+ Ie.prototype.open = function(u, b, v, m, A, S, O) {
4439
4388
  var c = null, d = new w(), x = d.signal, D = new y();
4440
4389
  return p(A, {
4441
- headers: C,
4390
+ headers: O,
4442
4391
  credentials: S ? "include" : "same-origin",
4443
4392
  signal: x,
4444
4393
  cache: "no-store"
4445
4394
  }).then(function(_) {
4446
- return c = _.body.getReader(), v(_.status, _.statusText, _.headers.get("Content-Type"), new ue(_.headers)), new f(function(F, pe) {
4447
- var Ke = function() {
4395
+ return c = _.body.getReader(), b(_.status, _.statusText, _.headers.get("Content-Type"), new ae(_.headers)), new f(function(F, de) {
4396
+ var Je = function() {
4448
4397
  c.read().then(function(K) {
4449
4398
  if (K.done)
4450
4399
  F(void 0);
4451
4400
  else {
4452
4401
  var Z = D.decode(K.value, { stream: !0 });
4453
- b(Z), Ke();
4402
+ v(Z), Je();
4454
4403
  }
4455
4404
  }).catch(function(K) {
4456
- pe(K);
4405
+ de(K);
4457
4406
  });
4458
4407
  };
4459
- Ke();
4408
+ Je();
4460
4409
  });
4461
4410
  }).catch(function(_) {
4462
4411
  if (_.name !== "AbortError")
@@ -4465,213 +4414,213 @@ var or = { exports: {} };
4465
4414
  m(_);
4466
4415
  }), {
4467
4416
  abort: function() {
4468
- c != null && c.cancel(), d.abort();
4417
+ c?.cancel(), d.abort();
4469
4418
  }
4470
4419
  };
4471
4420
  };
4472
- function he() {
4421
+ function le() {
4473
4422
  this._listeners = /* @__PURE__ */ Object.create(null);
4474
4423
  }
4475
- function Ve(l) {
4424
+ function Xe(u) {
4476
4425
  n(function() {
4477
- throw l;
4426
+ throw u;
4478
4427
  }, 0);
4479
4428
  }
4480
- he.prototype.dispatchEvent = function(l) {
4481
- l.target = this;
4482
- var v = this._listeners[l.type];
4483
- if (v != null)
4484
- for (var b = v.length, m = 0; m < b; m += 1) {
4485
- var A = v[m];
4429
+ le.prototype.dispatchEvent = function(u) {
4430
+ u.target = this;
4431
+ var b = this._listeners[u.type];
4432
+ if (b != null)
4433
+ for (var v = b.length, m = 0; m < v; m += 1) {
4434
+ var A = b[m];
4486
4435
  try {
4487
- typeof A.handleEvent == "function" ? A.handleEvent(l) : A.call(this, l);
4436
+ typeof A.handleEvent == "function" ? A.handleEvent(u) : A.call(this, u);
4488
4437
  } catch (S) {
4489
- Ve(S);
4438
+ Xe(S);
4490
4439
  }
4491
4440
  }
4492
- }, he.prototype.addEventListener = function(l, v) {
4493
- l = String(l);
4494
- var b = this._listeners, m = b[l];
4495
- m == null && (m = [], b[l] = m);
4441
+ }, le.prototype.addEventListener = function(u, b) {
4442
+ u = String(u);
4443
+ var v = this._listeners, m = v[u];
4444
+ m == null && (m = [], v[u] = m);
4496
4445
  for (var A = !1, S = 0; S < m.length; S += 1)
4497
- m[S] === v && (A = !0);
4498
- A || m.push(v);
4499
- }, he.prototype.removeEventListener = function(l, v) {
4500
- l = String(l);
4501
- var b = this._listeners, m = b[l];
4446
+ m[S] === b && (A = !0);
4447
+ A || m.push(b);
4448
+ }, le.prototype.removeEventListener = function(u, b) {
4449
+ u = String(u);
4450
+ var v = this._listeners, m = v[u];
4502
4451
  if (m != null) {
4503
4452
  for (var A = [], S = 0; S < m.length; S += 1)
4504
- m[S] !== v && A.push(m[S]);
4505
- A.length === 0 ? delete b[l] : b[l] = A;
4453
+ m[S] !== b && A.push(m[S]);
4454
+ A.length === 0 ? delete v[u] : v[u] = A;
4506
4455
  }
4507
4456
  };
4508
- function xe(l) {
4509
- this.type = l, this.target = void 0;
4457
+ function Ee(u) {
4458
+ this.type = u, this.target = void 0;
4510
4459
  }
4511
- function at(l, v) {
4512
- xe.call(this, l), this.data = v.data, this.lastEventId = v.lastEventId;
4460
+ function st(u, b) {
4461
+ Ee.call(this, u), this.data = b.data, this.lastEventId = b.lastEventId;
4513
4462
  }
4514
- at.prototype = Object.create(xe.prototype);
4515
- function ze(l, v) {
4516
- xe.call(this, l), this.status = v.status, this.statusText = v.statusText, this.headers = v.headers;
4463
+ st.prototype = Object.create(Ee.prototype);
4464
+ function Ve(u, b) {
4465
+ Ee.call(this, u), this.status = b.status, this.statusText = b.statusText, this.headers = b.headers;
4517
4466
  }
4518
- ze.prototype = Object.create(xe.prototype);
4519
- function ut(l, v) {
4520
- xe.call(this, l), this.error = v.error;
4467
+ Ve.prototype = Object.create(Ee.prototype);
4468
+ function at(u, b) {
4469
+ Ee.call(this, u), this.error = b.error;
4521
4470
  }
4522
- ut.prototype = Object.create(xe.prototype);
4523
- var we = -1, z = 0, fe = 1, ce = 2, Ze = -1, ie = 0, qe = 1, Ye = 2, lt = 3, Lt = /^text\/event\-stream(;.*)?$/i, ht = 1e3, Qe = 18e6, Je = function(l, v) {
4524
- var b = l == null ? v : parseInt(l, 10);
4525
- return b !== b && (b = v), Ce(b);
4526
- }, Ce = function(l) {
4527
- return Math.min(Math.max(l, ht), Qe);
4528
- }, de = function(l, v, b) {
4471
+ at.prototype = Object.create(Ee.prototype);
4472
+ var xe = -1, z = 0, he = 1, fe = 2, ze = -1, ne = 0, Ze = 1, qe = 2, ut = 3, It = /^text\/event\-stream(;.*)?$/i, lt = 1e3, Ye = 18e6, Qe = function(u, b) {
4473
+ var v = u == null ? b : parseInt(u, 10);
4474
+ return v !== v && (v = b), Le(v);
4475
+ }, Le = function(u) {
4476
+ return Math.min(Math.max(u, lt), Ye);
4477
+ }, ce = function(u, b, v) {
4529
4478
  try {
4530
- typeof v == "function" && v.call(l, b);
4479
+ typeof b == "function" && b.call(u, v);
4531
4480
  } catch (m) {
4532
- Ve(m);
4481
+ Xe(m);
4533
4482
  }
4534
4483
  };
4535
- function J(l, v) {
4536
- he.call(this), v = v || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Ot(this, l, v);
4484
+ function J(u, b) {
4485
+ le.call(this), b = b || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Ot(this, u, b);
4537
4486
  }
4538
- function ft() {
4487
+ function ht() {
4539
4488
  return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
4540
4489
  }
4541
- var Ct = p != null && g != null && "body" in g.prototype;
4542
- function Ot(l, v, b) {
4543
- v = String(v);
4544
- var m = !!b.withCredentials, A = b.lastEventIdQueryParameterName || "lastEventId", S = Ce(1e3), C = Je(b.heartbeatTimeout, 45e3), c = "", d = S, x = !1, D = 0, _ = b.headers || {}, F = b.Transport, pe = Ct && F == null ? void 0 : new L(F != null ? new F() : ft()), Ke = F != null && typeof F != "string" ? new F() : pe == null ? new Le() : new $(), K = void 0, Z = 0, oe = we, Oe = "", dt = "", me = "", pt = "", q = ie, Pt = 0, He = 0, Bn = function(X, k, ee, te) {
4545
- if (oe === z)
4546
- if (X === 200 && ee != null && Lt.test(ee)) {
4547
- oe = fe, x = Date.now(), d = S, l.readyState = fe;
4548
- var Y = new ze("open", {
4490
+ var Lt = p != null && g != null && "body" in g.prototype;
4491
+ function Ot(u, b, v) {
4492
+ b = String(b);
4493
+ var m = !!v.withCredentials, A = v.lastEventIdQueryParameterName || "lastEventId", S = Le(1e3), O = Qe(v.heartbeatTimeout, 45e3), c = "", d = S, x = !1, D = 0, _ = v.headers || {}, F = v.Transport, de = Lt && F == null ? void 0 : new L(F != null ? new F() : ht()), Je = F != null && typeof F != "string" ? new F() : de == null ? new Ie() : new $(), K = void 0, Z = 0, ie = xe, Oe = "", ct = "", pe = "", dt = "", q = ne, Ct = 0, Te = 0, vn = function(X, k, ee, te) {
4494
+ if (ie === z)
4495
+ if (X === 200 && ee != null && It.test(ee)) {
4496
+ ie = he, x = Date.now(), d = S, u.readyState = he;
4497
+ var Y = new Ve("open", {
4549
4498
  status: X,
4550
4499
  statusText: k,
4551
4500
  headers: te
4552
4501
  });
4553
- l.dispatchEvent(Y), de(l, l.onopen, Y);
4502
+ u.dispatchEvent(Y), ce(u, u.onopen, Y);
4554
4503
  } else {
4555
4504
  var V = "";
4556
- X !== 200 ? (k && (k = k.replace(/\s+/g, " ")), V = "EventSource's response has a status " + X + " " + k + " that is not 200. Aborting the connection.") : V = "EventSource's response has a Content-Type specifying an unsupported type: " + (ee == null ? "-" : ee.replace(/\s+/g, " ")) + ". Aborting the connection.", Nt();
4557
- var Y = new ze("error", {
4505
+ X !== 200 ? (k && (k = k.replace(/\s+/g, " ")), V = "EventSource's response has a status " + X + " " + k + " that is not 200. Aborting the connection.") : V = "EventSource's response has a Content-Type specifying an unsupported type: " + (ee == null ? "-" : ee.replace(/\s+/g, " ")) + ". Aborting the connection.", Pt();
4506
+ var Y = new Ve("error", {
4558
4507
  status: X,
4559
4508
  statusText: k,
4560
4509
  headers: te
4561
4510
  });
4562
- l.dispatchEvent(Y), de(l, l.onerror, Y), console.error(V);
4511
+ u.dispatchEvent(Y), ce(u, u.onerror, Y), console.error(V);
4563
4512
  }
4564
- }, In = function(X) {
4565
- if (oe === fe) {
4513
+ }, yn = function(X) {
4514
+ if (ie === he) {
4566
4515
  for (var k = -1, ee = 0; ee < X.length; ee += 1) {
4567
4516
  var te = X.charCodeAt(ee);
4568
4517
  (te === 10 || te === 13) && (k = ee);
4569
4518
  }
4570
- var Y = (k !== -1 ? pt : "") + X.slice(0, k + 1);
4571
- pt = (k === -1 ? pt : "") + X.slice(k + 1), X !== "" && (x = Date.now(), D += X.length);
4519
+ var Y = (k !== -1 ? dt : "") + X.slice(0, k + 1);
4520
+ dt = (k === -1 ? dt : "") + X.slice(k + 1), X !== "" && (x = Date.now(), D += X.length);
4572
4521
  for (var V = 0; V < Y.length; V += 1) {
4573
4522
  var te = Y.charCodeAt(V);
4574
- if (q === Ze && te === 10)
4575
- q = ie;
4576
- else if (q === Ze && (q = ie), te === 13 || te === 10) {
4577
- if (q !== ie) {
4578
- q === qe && (He = V + 1);
4579
- var ge = Y.slice(Pt, He - 1), ve = Y.slice(He + (He < V && Y.charCodeAt(He) === 32 ? 1 : 0), V);
4580
- ge === "data" ? (Oe += `
4581
- `, Oe += ve) : ge === "id" ? dt = ve : ge === "event" ? me = ve : ge === "retry" ? (S = Je(ve, S), d = S) : ge === "heartbeatTimeout" && (C = Je(ve, C), Z !== 0 && (i(Z), Z = n(function() {
4582
- et();
4583
- }, C)));
4523
+ if (q === ze && te === 10)
4524
+ q = ne;
4525
+ else if (q === ze && (q = ne), te === 13 || te === 10) {
4526
+ if (q !== ne) {
4527
+ q === Ze && (Te = V + 1);
4528
+ var me = Y.slice(Ct, Te - 1), ge = Y.slice(Te + (Te < V && Y.charCodeAt(Te) === 32 ? 1 : 0), V);
4529
+ me === "data" ? (Oe += `
4530
+ `, Oe += ge) : me === "id" ? ct = ge : me === "event" ? pe = ge : me === "retry" ? (S = Qe(ge, S), d = S) : me === "heartbeatTimeout" && (O = Qe(ge, O), Z !== 0 && (i(Z), Z = n(function() {
4531
+ Ke();
4532
+ }, O)));
4584
4533
  }
4585
- if (q === ie) {
4534
+ if (q === ne) {
4586
4535
  if (Oe !== "") {
4587
- c = dt, me === "" && (me = "message");
4588
- var Pe = new at(me, {
4536
+ c = ct, pe === "" && (pe = "message");
4537
+ var Ce = new st(pe, {
4589
4538
  data: Oe.slice(1),
4590
- lastEventId: dt
4539
+ lastEventId: ct
4591
4540
  });
4592
- if (l.dispatchEvent(Pe), me === "open" ? de(l, l.onopen, Pe) : me === "message" ? de(l, l.onmessage, Pe) : me === "error" && de(l, l.onerror, Pe), oe === ce)
4541
+ if (u.dispatchEvent(Ce), pe === "open" ? ce(u, u.onopen, Ce) : pe === "message" ? ce(u, u.onmessage, Ce) : pe === "error" && ce(u, u.onerror, Ce), ie === fe)
4593
4542
  return;
4594
4543
  }
4595
- Oe = "", me = "";
4544
+ Oe = "", pe = "";
4596
4545
  }
4597
- q = te === 13 ? Ze : ie;
4546
+ q = te === 13 ? ze : ne;
4598
4547
  } else
4599
- q === ie && (Pt = V, q = qe), q === qe ? te === 58 && (He = V + 1, q = Ye) : q === Ye && (q = lt);
4548
+ q === ne && (Ct = V, q = Ze), q === Ze ? te === 58 && (Te = V + 1, q = qe) : q === qe && (q = ut);
4600
4549
  }
4601
4550
  }
4602
- }, cr = function(X) {
4603
- if (oe === fe || oe === z) {
4604
- oe = we, Z !== 0 && (i(Z), Z = 0), Z = n(function() {
4605
- et();
4606
- }, d), d = Ce(Math.min(S * 16, d * 2)), l.readyState = z;
4607
- var k = new ut("error", { error: X });
4608
- l.dispatchEvent(k), de(l, l.onerror, k), X != null && console.error(X);
4551
+ }, ur = function(X) {
4552
+ if (ie === he || ie === z) {
4553
+ ie = xe, Z !== 0 && (i(Z), Z = 0), Z = n(function() {
4554
+ Ke();
4555
+ }, d), d = Le(Math.min(S * 16, d * 2)), u.readyState = z;
4556
+ var k = new at("error", { error: X });
4557
+ u.dispatchEvent(k), ce(u, u.onerror, k), X != null && console.error(X);
4609
4558
  }
4610
- }, Nt = function() {
4611
- oe = ce, K != null && (K.abort(), K = void 0), Z !== 0 && (i(Z), Z = 0), l.readyState = ce;
4612
- }, et = function() {
4613
- if (Z = 0, oe !== we) {
4559
+ }, Pt = function() {
4560
+ ie = fe, K != null && (K.abort(), K = void 0), Z !== 0 && (i(Z), Z = 0), u.readyState = fe;
4561
+ }, Ke = function() {
4562
+ if (Z = 0, ie !== xe) {
4614
4563
  if (!x && K != null)
4615
- cr(new Error("No activity within " + C + " milliseconds. " + (oe === z ? "No response received." : D + " chars received.") + " Reconnecting.")), K != null && (K.abort(), K = void 0);
4564
+ ur(new Error("No activity within " + O + " milliseconds. " + (ie === z ? "No response received." : D + " chars received.") + " Reconnecting.")), K != null && (K.abort(), K = void 0);
4616
4565
  else {
4617
- var X = Math.max((x || Date.now()) + C - Date.now(), 1);
4566
+ var X = Math.max((x || Date.now()) + O - Date.now(), 1);
4618
4567
  x = !1, Z = n(function() {
4619
- et();
4568
+ Ke();
4620
4569
  }, X);
4621
4570
  }
4622
4571
  return;
4623
4572
  }
4624
4573
  x = !1, D = 0, Z = n(function() {
4625
- et();
4626
- }, C), oe = z, Oe = "", me = "", dt = c, pt = "", Pt = 0, He = 0, q = ie;
4627
- var k = v;
4628
- if (v.slice(0, 5) !== "data:" && v.slice(0, 5) !== "blob:" && c !== "") {
4629
- var ee = v.indexOf("?");
4630
- k = ee === -1 ? v : v.slice(0, ee + 1) + v.slice(ee + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ve, Pe) {
4631
- return Pe === A ? "" : ve;
4632
- }), k += (v.indexOf("?") === -1 ? "?" : "&") + A + "=" + encodeURIComponent(c);
4574
+ Ke();
4575
+ }, O), ie = z, Oe = "", pe = "", ct = c, dt = "", Ct = 0, Te = 0, q = ne;
4576
+ var k = b;
4577
+ if (b.slice(0, 5) !== "data:" && b.slice(0, 5) !== "blob:" && c !== "") {
4578
+ var ee = b.indexOf("?");
4579
+ k = ee === -1 ? b : b.slice(0, ee + 1) + b.slice(ee + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ge, Ce) {
4580
+ return Ce === A ? "" : ge;
4581
+ }), k += (b.indexOf("?") === -1 ? "?" : "&") + A + "=" + encodeURIComponent(c);
4633
4582
  }
4634
- var te = l.withCredentials, Y = {};
4583
+ var te = u.withCredentials, Y = {};
4635
4584
  Y.Accept = "text/event-stream";
4636
- var V = l.headers;
4585
+ var V = u.headers;
4637
4586
  if (V != null)
4638
- for (var ge in V)
4639
- Object.prototype.hasOwnProperty.call(V, ge) && (Y[ge] = V[ge]);
4587
+ for (var me in V)
4588
+ Object.prototype.hasOwnProperty.call(V, me) && (Y[me] = V[me]);
4640
4589
  try {
4641
- K = Ke.open(pe, Bn, In, cr, k, te, Y);
4642
- } catch (ve) {
4643
- throw Nt(), ve;
4590
+ K = Je.open(de, vn, yn, ur, k, te, Y);
4591
+ } catch (ge) {
4592
+ throw Pt(), ge;
4644
4593
  }
4645
4594
  };
4646
- l.url = v, l.readyState = z, l.withCredentials = m, l.headers = _, l._close = Nt, et();
4595
+ u.url = b, u.readyState = z, u.withCredentials = m, u.headers = _, u._close = Pt, Ke();
4647
4596
  }
4648
- J.prototype = Object.create(he.prototype), J.prototype.CONNECTING = z, J.prototype.OPEN = fe, J.prototype.CLOSED = ce, J.prototype.close = function() {
4597
+ J.prototype = Object.create(le.prototype), J.prototype.CONNECTING = z, J.prototype.OPEN = he, J.prototype.CLOSED = fe, J.prototype.close = function() {
4649
4598
  this._close();
4650
- }, J.CONNECTING = z, J.OPEN = fe, J.CLOSED = ce, J.prototype.withCredentials = void 0;
4651
- var ct = h;
4652
- o != null && (h == null || !("withCredentials" in h.prototype)) && (ct = J), function(l) {
4599
+ }, J.CONNECTING = z, J.OPEN = he, J.CLOSED = fe, J.prototype.withCredentials = void 0;
4600
+ var ft = h;
4601
+ o != null && (h == null || !("withCredentials" in h.prototype)) && (ft = J), function(u) {
4653
4602
  {
4654
- var v = l(t);
4655
- v !== void 0 && (e.exports = v);
4603
+ var b = u(t);
4604
+ b !== void 0 && (e.exports = b);
4656
4605
  }
4657
- }(function(l) {
4658
- l.EventSourcePolyfill = J, l.NativeEventSource = h, l.EventSource = ct;
4606
+ }(function(u) {
4607
+ u.EventSourcePolyfill = J, u.NativeEventSource = h, u.EventSource = ft;
4659
4608
  });
4660
- })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : _i : globalThis);
4661
- })(or, or.exports);
4662
- var us = or.exports;
4663
- function ls({ withLocale: e, translations: t }) {
4664
- Te.subscribe((r) => {
4665
- r == null && (ke.set(t), Te.set(e));
4609
+ })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : oi : globalThis);
4610
+ })(rr, rr.exports);
4611
+ var Zo = rr.exports;
4612
+ function qo({ withLocale: e, translations: t }) {
4613
+ Se.subscribe((r) => {
4614
+ r == null && (We.set(t), Se.set(e));
4666
4615
  });
4667
4616
  }
4668
- function $r(e, t) {
4669
- En(e, t);
4617
+ function Cr(e, t) {
4618
+ cn(e, t);
4670
4619
  }
4671
- function hs(e) {
4672
- Te.set(e);
4620
+ function Yo(e) {
4621
+ Se.set(e);
4673
4622
  }
4674
- const Gr = {
4623
+ const Pr = {
4675
4624
  en: {
4676
4625
  wageringSlider: {
4677
4626
  title: "- Wagering Bonus -",
@@ -4708,7 +4657,7 @@ const Gr = {
4708
4657
  noWageringMsg: "You don't have any wagering bonus."
4709
4658
  }
4710
4659
  }
4711
- }, fs = (e) => {
4660
+ }, Qo = (e) => {
4712
4661
  const t = window.BigInt;
4713
4662
  if (!e || e == null || e.length === 0)
4714
4663
  return;
@@ -4723,15 +4672,15 @@ const Gr = {
4723
4672
  ),
4724
4673
  maxId: r.toString()
4725
4674
  };
4726
- }, cs = (e, t) => JSON.stringify(
4675
+ }, Jo = (e, t) => JSON.stringify(
4727
4676
  e.map((r) => ({
4728
4677
  bonusWalletID: r.id,
4729
4678
  progressID: t[r.id] || 0
4730
4679
  }))
4731
- ), ds = (e, t) => {
4680
+ ), Ko = (e, t) => {
4732
4681
  let r = document.createElement("style");
4733
4682
  r.innerHTML = t, e.appendChild(r);
4734
- }, ps = (e, t) => {
4683
+ }, es = (e, t) => {
4735
4684
  let r = new URL(t), n = document.createElement("style");
4736
4685
  fetch(r.href).then((i) => i.text()).then((i) => {
4737
4686
  n.innerHTML = i, setTimeout(() => {
@@ -4739,7 +4688,7 @@ const Gr = {
4739
4688
  }, 1);
4740
4689
  });
4741
4690
  };
4742
- if (typeof window != "undefined") {
4691
+ if (typeof window < "u") {
4743
4692
  let e = function(t) {
4744
4693
  return function(...r) {
4745
4694
  try {
@@ -4751,26 +4700,26 @@ if (typeof window != "undefined") {
4751
4700
  }
4752
4701
  };
4753
4702
  };
4754
- customElements.define = e(customElements.define), import("./GeneralIconProgressBar-Y8vVZOZJ.js").then(({ default: t }) => {
4703
+ customElements.define = e(customElements.define), import("./GeneralIconProgressBar-B0oX6yzk.js").then(({ default: t }) => {
4755
4704
  !customElements.get("general-icon-progress-bar") && customElements.define("general-icon-progress-bar", t.element);
4756
4705
  });
4757
4706
  }
4758
- const Hn = "data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.67757%202.5647L3.72412%20-1.25356e-07L5.77067%202.5647L3.72412%205.12939L1.67757%202.5647Z'%20fill='%23FF8B03'/%3e%3crect%20x='0.468506'%20y='6.1134'%20width='6.55827'%20height='0.936896'%20fill='%23FF8B03'/%3e%3cpath%20d='M7.49512%201.42889L0.4684%205.64492H7.02667L7.49512%201.42889Z'%20fill='%23FFB82E'/%3e%3cpath%20d='M0%201.42889L7.02672%205.64492H0.468448L0%201.42889Z'%20fill='%23FFD700'/%3e%3c/svg%3e";
4759
- function ms(e) {
4760
- Dn(e, "svelte-l28bzx", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}div{vertical-align:middle}.WageringBonusWrapper,.SliderWrapper{overflow:hidden;width:100%;height:100%;min-width:150px;min-height:92px;max-width:188px;max-height:108px}.WageringBonusWrapper{position:relative}.SliderIcon{position:absolute;top:0px;right:0;cursor:pointer}.ShowWidget{transition:all 1s ease-in-out;transform:translateX(0);display:table;opacity:1}.HiddenWidget{transition:all 1s ease-in-out;transform:translateX(100%);opacity:0}.SliderWrapper{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF);box-sizing:border-box;border:1px solid #FF8364;background:linear-gradient(90deg, rgba(40, 40, 40, 0.7) 0%, #847c7c 26.06%, #847c7c 72.19%, rgba(40, 40, 40, 0.7) 100%);border-radius:4px;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);display:table}.LeftArrow,.RightArrow{padding:3px;height:100%;display:table-cell;vertical-align:middle;cursor:pointer;color:var(--emw--bonus-card-red, var(--emw--color-red, #FF8364))}.LeftArrow.Disabled,.RightArrow.Disabled{background:var(--emw--color-gray-300, #A9A8A8)}.LeftArrow{padding-right:0px}.RightArrow{padding-left:0px}.SliderCenter{height:100%;overflow:hidden}.SliderCenter .Title{font-style:normal;font-weight:700;font-size:12px;line-height:12px;text-align:center;color:var(--emw--bonus-card-yellow, var(--emw--color-yellow, #FFD700));margin:5px auto 3px}.SliderCenter .Hidden{opacity:0;transition:opacity;animation:0.2s}.SliderCenter .WagerList{height:calc(100% - 20px);display:block;position:relative}.SliderCenter .WagerList .hiddenDiv{transform:translateX(var(--transformToValue, 100%));animation:slideOut 1s;-moz-animation:slideOut 1s;-webkit-animation:slideOut 1s;-o-animation:slideOut 1s}.SliderCenter .WagerList .shownDiv{animation:slideIn 1.5s;-moz-animation:slideIn 1.5s;-webkit-animation:slideIn 1.5s;-o-animation:slideIn 1.5s}.SliderCenter .WagerList .WageringBonusInfo{overflow:hidden;display:block;height:100%;width:100%;position:absolute;top:0}.SliderCenter .WagerList .WageringBonusInfo .trophy{display:table-cell;vertical-align:middle;padding:3px}.SliderCenter .WagerList .WageringBonusInfo .trophy img.MiniIcon{width:18px;height:18px}.SliderCenter .WagerList .WageringBonusInfo .BonusName{display:table;height:calc(100% - 25px)}.SliderCenter .WagerList .WageringBonusInfo .BonusName .gameInfo{cursor:pointer;font-style:normal;font-weight:400;font-size:11px;line-height:13px;display:table-cell;align-items:center;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));vertical-align:middle;overflow:hidden}.SliderCenter .bottom{width:100%;height:20px;vertical-align:bottom;margin-bottom:5px}.svg{height:12px}.svg img.MiniIcon{width:14px;height:14px}.restoreButton{display:table}.hideButton{transform:rotate(180deg);position:absolute;top:0px;right:2px;display:table;color:var(--emw--bonus-card-red, var(--emw--color-red, #FF8364));cursor:pointer}.NoWageringMsg{text-align:center;display:flex;align-items:center;height:100%;font-size:0.8rem;padding:10px}@keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue))}to{opacity:1;transform:translateX(0)}}@keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-moz-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 100%))}to{opacity:1;transform:translateX(0)}}@-moz-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-webkit-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-o-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-o-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}");
4707
+ const bn = "data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.67757%202.5647L3.72412%20-1.25356e-07L5.77067%202.5647L3.72412%205.12939L1.67757%202.5647Z'%20fill='%23FF8B03'/%3e%3crect%20x='0.468506'%20y='6.1134'%20width='6.55827'%20height='0.936896'%20fill='%23FF8B03'/%3e%3cpath%20d='M7.49512%201.42889L0.4684%205.64492H7.02667L7.49512%201.42889Z'%20fill='%23FFB82E'/%3e%3cpath%20d='M0%201.42889L7.02672%205.64492H0.468448L0%201.42889Z'%20fill='%23FFD700'/%3e%3c/svg%3e";
4708
+ function ts(e) {
4709
+ xn(e, "svelte-l28bzx", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}div{vertical-align:middle}.WageringBonusWrapper,.SliderWrapper{overflow:hidden;width:100%;height:100%;min-width:150px;min-height:92px;max-width:188px;max-height:108px}.WageringBonusWrapper{position:relative}.SliderIcon{position:absolute;top:0px;right:0;cursor:pointer}.ShowWidget{transition:all 1s ease-in-out;transform:translateX(0);display:table;opacity:1}.HiddenWidget{transition:all 1s ease-in-out;transform:translateX(100%);opacity:0}.SliderWrapper{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF);box-sizing:border-box;border:1px solid #FF8364;background:linear-gradient(90deg, rgba(40, 40, 40, 0.7) 0%, #847c7c 26.06%, #847c7c 72.19%, rgba(40, 40, 40, 0.7) 100%);border-radius:4px;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);display:table}.LeftArrow,.RightArrow{padding:3px;height:100%;display:table-cell;vertical-align:middle;cursor:pointer;color:var(--emw--bonus-card-red, var(--emw--color-red, #FF8364))}.LeftArrow.Disabled,.RightArrow.Disabled{background:var(--emw--color-gray-300, #A9A8A8)}.LeftArrow{padding-right:0px}.RightArrow{padding-left:0px}.SliderCenter{height:100%;overflow:hidden}.SliderCenter .Title{font-style:normal;font-weight:700;font-size:12px;line-height:12px;text-align:center;color:var(--emw--bonus-card-yellow, var(--emw--color-yellow, #FFD700));margin:5px auto 3px}.SliderCenter .Hidden{opacity:0;transition:opacity;animation:0.2s}.SliderCenter .WagerList{height:calc(100% - 20px);display:block;position:relative}.SliderCenter .WagerList .hiddenDiv{transform:translateX(var(--transformToValue, 100%));animation:slideOut 1s;-moz-animation:slideOut 1s;-webkit-animation:slideOut 1s;-o-animation:slideOut 1s}.SliderCenter .WagerList .shownDiv{animation:slideIn 1.5s;-moz-animation:slideIn 1.5s;-webkit-animation:slideIn 1.5s;-o-animation:slideIn 1.5s}.SliderCenter .WagerList .WageringBonusInfo{overflow:hidden;display:block;height:100%;width:100%;position:absolute;top:0}.SliderCenter .WagerList .WageringBonusInfo .trophy{display:table-cell;vertical-align:middle;padding:3px}.SliderCenter .WagerList .WageringBonusInfo .trophy img.MiniIcon{width:18px;height:18px}.SliderCenter .WagerList .WageringBonusInfo .BonusName{display:table;height:calc(100% - 25px)}.SliderCenter .WagerList .WageringBonusInfo .BonusName .gameInfo{cursor:pointer;font-style:normal;font-weight:400;font-size:11px;line-height:13px;display:table-cell;align-items:center;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));vertical-align:middle;overflow:hidden}.SliderCenter .bottom{width:100%;height:20px;vertical-align:bottom;margin-bottom:5px}.svg{height:12px}.svg img.MiniIcon{width:14px;height:14px}.restoreButton{display:table}.hideButton{transform:rotate(180deg);position:absolute;top:0px;right:2px;display:table;color:var(--emw--bonus-card-red, var(--emw--color-red, #FF8364));cursor:pointer}.NoWageringMsg{text-align:center;display:flex;align-items:center;height:100%;font-size:0.8rem;padding:10px}@keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue))}to{opacity:1;transform:translateX(0)}}@keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-moz-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 100%))}to{opacity:1;transform:translateX(0)}}@-moz-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-webkit-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-o-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-o-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}");
4761
4710
  }
4762
- function jr(e, t, r) {
4711
+ function Nr(e, t, r) {
4763
4712
  const n = e.slice();
4764
4713
  return n[60] = t[r], n[62] = r, n;
4765
4714
  }
4766
- function gs(e) {
4715
+ function rs(e) {
4767
4716
  let t, r = (
4768
4717
  /*$_*/
4769
4718
  e[10]("wageringSlider.noWageringMsg") + ""
4770
4719
  ), n;
4771
4720
  return {
4772
4721
  c() {
4773
- t = W("div"), n = St(r), E(t, "class", "NoWageringMsg");
4722
+ t = W("div"), n = wt(r), E(t, "class", "NoWageringMsg");
4774
4723
  },
4775
4724
  m(i, o) {
4776
4725
  be(i, t, o), G(t, n);
@@ -4778,56 +4727,56 @@ function gs(e) {
4778
4727
  p(i, o) {
4779
4728
  o[0] & /*$_*/
4780
4729
  1024 && r !== (r = /*$_*/
4781
- i[10]("wageringSlider.noWageringMsg") + "") && ar(n, r);
4730
+ i[10]("wageringSlider.noWageringMsg") + "") && ir(n, r);
4782
4731
  },
4783
4732
  d(i) {
4784
- i && le(t);
4733
+ i && ue(t);
4785
4734
  }
4786
4735
  };
4787
4736
  }
4788
- function vs(e) {
4737
+ function ns(e) {
4789
4738
  let t, r, n, i, o, s, a, h = (
4790
4739
  /*$_*/
4791
4740
  e[10]("wageringSlider.title") + ""
4792
- ), u, f, p, g, y, H, w, O, P, I, B = yr(
4741
+ ), l, f, p, g, y, H, w, C, P, I, B = fr(
4793
4742
  /*wageringList*/
4794
4743
  e[2]
4795
4744
  ), L = [];
4796
4745
  for (let T = 0; T < B.length; T += 1)
4797
- L[T] = Wr(jr(e, B, T));
4746
+ L[T] = Mr(Nr(e, B, T));
4798
4747
  return {
4799
4748
  c() {
4800
- t = W("div"), r = mt("svg"), n = mt("path"), o = ye(), s = W("div"), a = W("div"), u = St(h), f = ye(), p = W("div");
4749
+ t = W("div"), r = pt("svg"), n = pt("path"), o = ve(), s = W("div"), a = W("div"), l = wt(h), f = ve(), p = W("div");
4801
4750
  for (let T = 0; T < L.length; T += 1)
4802
4751
  L[T].c();
4803
- g = ye(), y = W("div"), H = mt("svg"), w = mt("path"), E(n, "d", "M3 7L1 4L3 1"), E(n, "stroke", "currentColor"), E(n, "stroke-linecap", "round"), E(n, "stroke-linejoin", "round"), E(r, "width", "6"), E(r, "height", "14"), E(r, "viewBox", "0 0 4 8"), E(r, "fill", "none"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(t, "class", i = "LeftArrow " + /*isFirst*/
4804
- (e[5] ? "Disabled" : "")), E(t, "role", "button"), E(t, "tabindex", "0"), E(a, "class", "Title Top"), E(p, "class", "WagerList"), E(s, "class", "SliderCenter"), E(w, "d", "M1 1L3 4L1 7"), E(w, "stroke", "currentColor"), E(w, "stroke-linecap", "round"), E(w, "stroke-linejoin", "round"), E(H, "width", "6"), E(H, "height", "14"), E(H, "viewBox", "0 0 4 8"), E(H, "fill", "none"), E(H, "xmlns", "http://www.w3.org/2000/svg"), E(y, "class", O = "RightArrow " + /*isLast*/
4752
+ g = ve(), y = W("div"), H = pt("svg"), w = pt("path"), E(n, "d", "M3 7L1 4L3 1"), E(n, "stroke", "currentColor"), E(n, "stroke-linecap", "round"), E(n, "stroke-linejoin", "round"), E(r, "width", "6"), E(r, "height", "14"), E(r, "viewBox", "0 0 4 8"), E(r, "fill", "none"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(t, "class", i = "LeftArrow " + /*isFirst*/
4753
+ (e[5] ? "Disabled" : "")), E(t, "role", "button"), E(t, "tabindex", "0"), E(a, "class", "Title Top"), E(p, "class", "WagerList"), E(s, "class", "SliderCenter"), E(w, "d", "M1 1L3 4L1 7"), E(w, "stroke", "currentColor"), E(w, "stroke-linecap", "round"), E(w, "stroke-linejoin", "round"), E(H, "width", "6"), E(H, "height", "14"), E(H, "viewBox", "0 0 4 8"), E(H, "fill", "none"), E(H, "xmlns", "http://www.w3.org/2000/svg"), E(y, "class", C = "RightArrow " + /*isLast*/
4805
4754
  (e[6] ? "Disabled" : "")), E(y, "role", "button"), E(y, "tabindex", "0");
4806
4755
  },
4807
4756
  m(T, M) {
4808
- be(T, t, M), G(t, r), G(r, n), be(T, o, M), be(T, s, M), G(s, a), G(a, u), G(s, f), G(s, p);
4757
+ be(T, t, M), G(t, r), G(r, n), be(T, o, M), be(T, s, M), G(s, a), G(a, l), G(s, f), G(s, p);
4809
4758
  for (let $ = 0; $ < L.length; $ += 1)
4810
4759
  L[$] && L[$].m(p, null);
4811
4760
  be(T, g, M), be(T, y, M), G(y, H), G(H, w), P || (I = [
4812
- Ae(
4761
+ He(
4813
4762
  t,
4814
4763
  "click",
4815
4764
  /*click_handler_1*/
4816
4765
  e[25]
4817
4766
  ),
4818
- Ae(
4767
+ He(
4819
4768
  t,
4820
4769
  "mouseenter",
4821
4770
  /*mouseenter_handler*/
4822
4771
  e[26]
4823
4772
  ),
4824
- Ae(
4773
+ He(
4825
4774
  t,
4826
4775
  "mouseleave",
4827
4776
  /*mouseleave_handler*/
4828
4777
  e[27]
4829
4778
  ),
4830
- Ae(
4779
+ He(
4831
4780
  y,
4832
4781
  "click",
4833
4782
  /*click_handler_3*/
@@ -4840,35 +4789,35 @@ function vs(e) {
4840
4789
  32 && i !== (i = "LeftArrow " + /*isFirst*/
4841
4790
  (T[5] ? "Disabled" : "")) && E(t, "class", i), M[0] & /*$_*/
4842
4791
  1024 && h !== (h = /*$_*/
4843
- T[10]("wageringSlider.title") + "") && ar(u, h), M[0] & /*currentWagerIdx, hiddenDivClass, wageringList, progressfractiondigit, onWagingBonusTitleClick*/
4792
+ T[10]("wageringSlider.title") + "") && ir(l, h), M[0] & /*currentWagerIdx, hiddenDivClass, wageringList, progressfractiondigit, onWagingBonusTitleClick*/
4844
4793
  16909) {
4845
- B = yr(
4794
+ B = fr(
4846
4795
  /*wageringList*/
4847
4796
  T[2]
4848
4797
  );
4849
4798
  let $;
4850
4799
  for ($ = 0; $ < B.length; $ += 1) {
4851
- const ue = jr(T, B, $);
4852
- L[$] ? L[$].p(ue, M) : (L[$] = Wr(ue), L[$].c(), L[$].m(p, null));
4800
+ const ae = Nr(T, B, $);
4801
+ L[$] ? L[$].p(ae, M) : (L[$] = Mr(ae), L[$].c(), L[$].m(p, null));
4853
4802
  }
4854
4803
  for (; $ < L.length; $ += 1)
4855
4804
  L[$].d(1);
4856
4805
  L.length = B.length;
4857
4806
  }
4858
4807
  M[0] & /*isLast*/
4859
- 64 && O !== (O = "RightArrow " + /*isLast*/
4860
- (T[6] ? "Disabled" : "")) && E(y, "class", O);
4808
+ 64 && C !== (C = "RightArrow " + /*isLast*/
4809
+ (T[6] ? "Disabled" : "")) && E(y, "class", C);
4861
4810
  },
4862
4811
  d(T) {
4863
- T && (le(t), le(o), le(s), le(g), le(y)), $n(L, T), P = !1, Be(I);
4812
+ T && (ue(t), ue(o), ue(s), ue(g), ue(y)), Tn(L, T), P = !1, Ae(I);
4864
4813
  }
4865
4814
  };
4866
4815
  }
4867
- function Wr(e) {
4816
+ function Mr(e) {
4868
4817
  let t, r, n, i, o, s = (
4869
4818
  /*wagerInfo*/
4870
4819
  e[60].title + ""
4871
- ), a, h, u, f, p, g, y, H, w, O, P, I, B;
4820
+ ), a, h, l, f, p, g, y, H, w, C, P, I, B;
4872
4821
  function L() {
4873
4822
  return (
4874
4823
  /*click_handler_2*/
@@ -4880,7 +4829,7 @@ function Wr(e) {
4880
4829
  }
4881
4830
  return {
4882
4831
  c() {
4883
- t = W("div"), r = W("div"), n = W("div"), n.innerHTML = `<img alt="crown" class="MiniIcon" src="${Hn}"/>`, i = ye(), o = W("div"), a = St(s), h = ye(), u = W("div"), f = W("general-icon-progress-bar"), O = ye(), E(n, "class", "trophy"), E(o, "class", "gameInfo"), E(o, "role", "button"), E(o, "tabindex", "0"), E(r, "class", "BonusName"), re(f, "currentstep", p = /*wagerInfo*/
4832
+ t = W("div"), r = W("div"), n = W("div"), n.innerHTML = `<img alt="crown" class="MiniIcon" src="${bn}"/>`, i = ve(), o = W("div"), a = wt(s), h = ve(), l = W("div"), f = W("general-icon-progress-bar"), C = ve(), E(n, "class", "trophy"), E(o, "class", "gameInfo"), E(o, "role", "button"), E(o, "tabindex", "0"), E(r, "class", "BonusName"), re(f, "currentstep", p = /*wagerInfo*/
4884
4833
  e[60].currentStep), re(f, "status", g = /*wagerInfo*/
4885
4834
  e[60].status), re(f, "triggerreset", y = /*wagerInfo*/
4886
4835
  e[60].triggerreset), re(f, "total", H = /*wagerInfo*/
@@ -4890,7 +4839,7 @@ function Wr(e) {
4890
4839
  /*progressfractiondigit*/
4891
4840
  e[0]
4892
4841
  ), re(f, "showaspercent", w = /*wagerInfo*/
4893
- e[60].type == "money"), re(f, "lang", ""), E(u, "class", "ProgressBar bottom"), E(t, "class", P = "WageringBonusInfo " + /*currentWagerIdx*/
4842
+ e[60].type == "money"), re(f, "lang", ""), E(l, "class", "ProgressBar bottom"), E(t, "class", P = "WageringBonusInfo " + /*currentWagerIdx*/
4894
4843
  (e[3] != /*index*/
4895
4844
  e[62] ? (
4896
4845
  /*hiddenDivClass*/
@@ -4898,12 +4847,12 @@ function Wr(e) {
4898
4847
  ) : "shownDiv"));
4899
4848
  },
4900
4849
  m(T, M) {
4901
- be(T, t, M), G(t, r), G(r, n), G(r, i), G(r, o), G(o, a), G(t, h), G(t, u), G(u, f), G(t, O), I || (B = Ae(o, "click", L), I = !0);
4850
+ be(T, t, M), G(t, r), G(r, n), G(r, i), G(r, o), G(o, a), G(t, h), G(t, l), G(l, f), G(t, C), I || (B = He(o, "click", L), I = !0);
4902
4851
  },
4903
4852
  p(T, M) {
4904
4853
  e = T, M[0] & /*wageringList*/
4905
4854
  4 && s !== (s = /*wagerInfo*/
4906
- e[60].title + "") && ar(a, s), M[0] & /*wageringList*/
4855
+ e[60].title + "") && ir(a, s), M[0] & /*wageringList*/
4907
4856
  4 && p !== (p = /*wagerInfo*/
4908
4857
  e[60].currentStep) && re(f, "currentstep", p), M[0] & /*wageringList*/
4909
4858
  4 && g !== (g = /*wagerInfo*/
@@ -4928,40 +4877,40 @@ function Wr(e) {
4928
4877
  ) : "shownDiv")) && E(t, "class", P);
4929
4878
  },
4930
4879
  d(T) {
4931
- T && le(t), I = !1, B();
4880
+ T && ue(t), I = !1, B();
4932
4881
  }
4933
4882
  };
4934
4883
  }
4935
- function bs(e) {
4936
- let t, r, n, i, o, s, a, h, u, f, p, g, y;
4884
+ function is(e) {
4885
+ let t, r, n, i, o, s, a, h, l, f, p, g, y;
4937
4886
  function H(P, I) {
4938
4887
  if (
4939
4888
  /*wageringList*/
4940
4889
  P[2] && /*wageringList*/
4941
4890
  P[2].length > 0
4942
- ) return vs;
4891
+ ) return ns;
4943
4892
  if (
4944
4893
  /*wageringList*/
4945
4894
  P[2] && /*wageringList*/
4946
4895
  P[2].length == 0
4947
- ) return gs;
4896
+ ) return rs;
4948
4897
  }
4949
- let w = H(e), O = w && w(e);
4898
+ let w = H(e), C = w && w(e);
4950
4899
  return {
4951
4900
  c() {
4952
- t = W("div"), r = W("div"), n = W("div"), n.innerHTML = '<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>', i = ye(), O && O.c(), s = ye(), a = W("section"), h = W("div"), h.innerHTML = `<img alt="crown" part="Icon" class="MiniIcon" src="${Hn}"/>`, u = ye(), f = W("div"), f.innerHTML = '<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>', E(n, "class", "hideButton"), E(n, "role", "button"), E(n, "tabindex", "0"), E(r, "class", o = "SliderWrapper " + /*isIconMode*/
4901
+ t = W("div"), r = W("div"), n = W("div"), n.innerHTML = '<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>', i = ve(), C && C.c(), s = ve(), a = W("section"), h = W("div"), h.innerHTML = `<img alt="crown" part="Icon" class="MiniIcon" src="${bn}"/>`, l = ve(), f = W("div"), f.innerHTML = '<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>', E(n, "class", "hideButton"), E(n, "role", "button"), E(n, "tabindex", "0"), E(r, "class", o = "SliderWrapper " + /*isIconMode*/
4953
4902
  (e[8] ? "HiddenWidget" : "ShowWidget")), E(h, "class", "svg"), E(h, "part", "AnimatorIconWrapper"), E(f, "class", "restoreButton"), E(f, "part", "RestoreButton"), E(a, "id", "animator"), E(a, "class", p = "SliderIcon " + /*isIconMode*/
4954
4903
  (e[8] ? "ShowWidget" : "HiddenWidget")), E(a, "role", "button"), E(a, "tabindex", "0"), E(t, "class", "WageringBonusWrapper");
4955
4904
  },
4956
4905
  m(P, I) {
4957
- be(P, t, I), G(t, r), G(r, n), G(r, i), O && O.m(r, null), e[30](r), G(t, s), G(t, a), G(a, h), G(a, u), G(a, f), e[31](a), e[33](t), g || (y = [
4958
- Ae(
4906
+ be(P, t, I), G(t, r), G(r, n), G(r, i), C && C.m(r, null), e[30](r), G(t, s), G(t, a), G(a, h), G(a, l), G(a, f), e[31](a), e[33](t), g || (y = [
4907
+ He(
4959
4908
  n,
4960
4909
  "click",
4961
4910
  /*click_handler*/
4962
4911
  e[24]
4963
4912
  ),
4964
- Ae(
4913
+ He(
4965
4914
  a,
4966
4915
  "click",
4967
4916
  /*click_handler_4*/
@@ -4970,39 +4919,39 @@ function bs(e) {
4970
4919
  ], g = !0);
4971
4920
  },
4972
4921
  p(P, I) {
4973
- w === (w = H(P)) && O ? O.p(P, I) : (O && O.d(1), O = w && w(P), O && (O.c(), O.m(r, null))), I[0] & /*isIconMode*/
4922
+ w === (w = H(P)) && C ? C.p(P, I) : (C && C.d(1), C = w && w(P), C && (C.c(), C.m(r, null))), I[0] & /*isIconMode*/
4974
4923
  256 && o !== (o = "SliderWrapper " + /*isIconMode*/
4975
4924
  (P[8] ? "HiddenWidget" : "ShowWidget")) && E(r, "class", o), I[0] & /*isIconMode*/
4976
4925
  256 && p !== (p = "SliderIcon " + /*isIconMode*/
4977
4926
  (P[8] ? "ShowWidget" : "HiddenWidget")) && E(a, "class", p);
4978
4927
  },
4979
- i: ae,
4980
- o: ae,
4928
+ i: se,
4929
+ o: se,
4981
4930
  d(P) {
4982
- P && le(t), O && O.d(), e[30](null), e[31](null), e[33](null), g = !1, Be(y);
4931
+ P && ue(t), C && C.d(), e[30](null), e[31](null), e[33](null), g = !1, Ae(y);
4983
4932
  }
4984
4933
  };
4985
4934
  }
4986
- function ys(e, t, r) {
4935
+ function os(e, t, r) {
4987
4936
  let n;
4988
- Rn(e, ss, (c) => r(10, n = c));
4989
- let { endpoint: i } = t, { session: o } = t, { lang: s = "en" } = t, { numberofrecords: a = "5" } = t, { looptime: h = "5" } = t, { translationurl: u = "" } = t, { progressfractiondigit: f = "1" } = t, { clientstyling: p = "" } = t, { clientstylingurl: g = "" } = t, y, H = window.navigator.userAgent, w = !0, O = !1, P, I, B = 0, L, T, M, $ = null, ue = null, Le = !1, he = "Hidden", Ve = {};
4990
- ls({ withLocale: "en", translations: {} });
4991
- const xe = () => {
4992
- fetch(u).then((d) => d.json()).then((d) => {
4937
+ En(e, Vo, (c) => r(10, n = c));
4938
+ let { endpoint: i } = t, { session: o } = t, { lang: s = "en" } = t, { numberofrecords: a = "5" } = t, { looptime: h = "5" } = t, { translationurl: l = "" } = t, { progressfractiondigit: f = "1" } = t, { clientstyling: p = "" } = t, { clientstylingurl: g = "" } = t, y, H = window.navigator.userAgent, w = !0, C = !1, P, I, B = 0, L, T, M, $ = null, ae = null, Ie = !1, le = "Hidden", Xe = {};
4939
+ qo({ withLocale: "en", translations: {} });
4940
+ const Ee = () => {
4941
+ fetch(l).then((d) => d.json()).then((d) => {
4993
4942
  Object.keys(d).forEach((x) => {
4994
- $r(x, d[x]);
4943
+ Cr(x, d[x]);
4995
4944
  });
4996
4945
  }).catch((d) => {
4997
4946
  console.error(d);
4998
4947
  });
4999
4948
  };
5000
- Object.keys(Gr).forEach((c) => {
5001
- $r(c, Gr[c]);
4949
+ Object.keys(Pr).forEach((c) => {
4950
+ Cr(c, Pr[c]);
5002
4951
  });
5003
- const at = () => {
5004
- hs(s);
5005
- }, ze = (c) => {
4952
+ const st = () => {
4953
+ Yo(s);
4954
+ }, Ve = (c) => {
5006
4955
  let d = 0;
5007
4956
  for (let _ of c.levels || []) {
5008
4957
  let F = _.maxRepeats || 1;
@@ -5022,19 +4971,19 @@ function ys(e, t, r) {
5022
4971
  status: c.status,
5023
4972
  triggerreset: c.bonusWalletID
5024
4973
  };
5025
- }, ut = (c) => {
4974
+ }, at = (c) => {
5026
4975
  let d = [];
5027
4976
  for (let x of c.items)
5028
- d.push(ze(x));
4977
+ d.push(Ve(x));
5029
4978
  r(3, B = 0), r(2, I = d);
5030
- }, we = () => {
4979
+ }, xe = () => {
5031
4980
  h != "0" && (clearInterval(P), P = setInterval(
5032
4981
  () => {
5033
4982
  if (I) {
5034
- r(9, he = "hiddenDiv");
4983
+ r(9, le = "hiddenDiv");
5035
4984
  let c = B + 1;
5036
4985
  if (c >= I.length) {
5037
- ce();
4986
+ fe();
5038
4987
  return;
5039
4988
  }
5040
4989
  r(3, B = c), z(B);
@@ -5043,25 +4992,25 @@ function ys(e, t, r) {
5043
4992
  Number(h) * 1e3
5044
4993
  ));
5045
4994
  }, z = (c) => {
5046
- if (r(9, he = "hiddenDiv"), c > 0 && O || c < 0 && w)
4995
+ if (r(9, le = "hiddenDiv"), c > 0 && C || c < 0 && w)
5047
4996
  return;
5048
- we(), T.style.setProperty("--transformFromValue", c > 0 ? "100%" : "-100%"), T.style.setProperty("--transformToValue", c > 0 ? "-100%" : "100%");
4997
+ xe(), T.style.setProperty("--transformFromValue", c > 0 ? "100%" : "-100%"), T.style.setProperty("--transformToValue", c > 0 ? "-100%" : "100%");
5049
4998
  let d = B + c;
5050
4999
  d = d < 0 ? 0 : d, d = d == I.length ? I.length - 1 : d, r(3, B = d);
5000
+ }, he = () => {
5001
+ r(8, Ie = !1), r(3, B = 0), xe();
5051
5002
  }, fe = () => {
5052
- r(8, Le = !1), r(3, B = 0), we();
5053
- }, ce = () => {
5054
- r(8, Le = !0), clearInterval(P), window.postMessage({ type: "onWagingBonusSliderHide" }, window.location.href);
5055
- }, Ze = (c) => {
5003
+ r(8, Ie = !0), clearInterval(P), window.postMessage({ type: "onWagingBonusSliderHide" }, window.location.href);
5004
+ }, ze = (c) => {
5056
5005
  I.forEach((d) => {
5057
5006
  let x = c[d.bonusWalletID];
5058
5007
  if (!x) return;
5059
- const { maxIdObj: D, maxId: _ } = fs(x);
5060
- Ve[d.id] = _;
5008
+ const { maxIdObj: D, maxId: _ } = Qo(x);
5009
+ Xe[d.id] = _;
5061
5010
  let F = D;
5062
5011
  d.status = F.status, F.levelIncrement == 0 && (F.levelIncrement = 1, F.gap == 0), d.gap = F.gap, d.levelIncrement = F.levelIncrement, d.currentStep = d.levelIncrement - d.gap, d.triggerreset += 1;
5063
5012
  }), r(2, I);
5064
- }, ie = (c) => {
5013
+ }, ne = (c) => {
5065
5014
  if (!c.data)
5066
5015
  return;
5067
5016
  let d = c.data;
@@ -5069,38 +5018,38 @@ function ys(e, t, r) {
5069
5018
  let x = JSON.parse(d);
5070
5019
  if (!x || !x.items)
5071
5020
  return;
5072
- x.messageType === "WageringProgressUpdate" && Ze(x.items);
5021
+ x.messageType === "WageringProgressUpdate" && ze(x.items);
5073
5022
  } catch (x) {
5074
5023
  console.log(x);
5075
5024
  }
5076
- }, qe = (c) => {
5025
+ }, Ze = (c) => {
5077
5026
  if (!c || c == "false" || c == "undefined")
5078
5027
  return !0;
5079
- }, Ye = () => {
5080
- L && (L.removeEventListener("message", ie), L.close());
5081
- }, lt = () => {
5082
- if (qe(o))
5028
+ }, qe = () => {
5029
+ L && (L.removeEventListener("message", ne), L.close());
5030
+ }, ut = () => {
5031
+ if (Ze(o))
5083
5032
  return;
5084
- Ye();
5085
- let c = `${i}/v1/bonus/wagering/updates?walletFilter=${cs(I, Ve)}&XSessionId=${o}`;
5086
- L = new us.EventSourcePolyfill(
5033
+ qe();
5034
+ let c = `${i}/v1/bonus/wagering/updates?walletFilter=${Jo(I, Xe)}&XSessionId=${o}`;
5035
+ L = new Zo.EventSourcePolyfill(
5087
5036
  c,
5088
5037
  {
5089
5038
  headers: { accept: "text/event-stream" }
5090
5039
  }
5091
- ), typeof L != "undefined" && L.addEventListener("message", ie), L.onerror = () => lt();
5092
- }, Lt = (c) => {
5040
+ ), typeof L < "u" && L.addEventListener("message", ne), L.onerror = () => ut();
5041
+ }, It = (c) => {
5093
5042
  if (!i || !o)
5094
5043
  return;
5095
5044
  let d = new URL(`${c}/v1/bonus/granted`), x = new Headers();
5096
- d.searchParams.append("language", s), d.searchParams.append("platform", as(H)), d.searchParams.append("status", "active"), d.searchParams.append("type", "wagering"), d.searchParams.append("pagination", `limit=${a},offset=0`), o && x.append("X-SessionID", o), fetch(d, { method: "GET", headers: x }).then((_) => _.json()).then((_) => {
5097
- if (d.searchParams.toString(), r(2, I = []), _.items && ut(_), _.errorMessage && console.error(_.errorMessage), !I || I.length == 0) {
5098
- r(2, I = [...I]), Ye();
5045
+ d.searchParams.append("language", s), d.searchParams.append("platform", zo(H)), d.searchParams.append("status", "active"), d.searchParams.append("type", "wagering"), d.searchParams.append("pagination", `limit=${a},offset=0`), o && x.append("X-SessionID", o), fetch(d, { method: "GET", headers: x }).then((_) => _.json()).then((_) => {
5046
+ if (d.searchParams.toString(), r(2, I = []), _.items && at(_), _.errorMessage && console.error(_.errorMessage), !I || I.length == 0) {
5047
+ r(2, I = [...I]), qe();
5099
5048
  return;
5100
5049
  }
5101
- lt();
5050
+ ut();
5102
5051
  });
5103
- }, ht = (c) => {
5052
+ }, lt = (c) => {
5104
5053
  window.postMessage(
5105
5054
  {
5106
5055
  type: "onWageringBonusClick",
@@ -5108,58 +5057,58 @@ function ys(e, t, r) {
5108
5057
  },
5109
5058
  window.location.href
5110
5059
  );
5111
- }, Qe = (c) => {
5112
- parseInt(h) > 0 && (c ? clearInterval(P) : we());
5113
- }, Je = (c) => c.touches || c.originalEvent.touches, Ce = (c) => {
5114
- const d = Je(c)[0];
5115
- $ = d.clientX, ue = d.clientY;
5116
- }, de = (c) => {
5117
- if (!$ || !ue) return;
5118
- let d = c.touches[0].clientX, x = c.touches[0].clientY, D = $ - d, _ = ue - x;
5119
- Math.abs(D) > Math.abs(_) && (D > 0 ? z(1) : z(-1)), $ = null, ue = null;
5060
+ }, Ye = (c) => {
5061
+ parseInt(h) > 0 && (c ? clearInterval(P) : xe());
5062
+ }, Qe = (c) => c.touches || c.originalEvent.touches, Le = (c) => {
5063
+ const d = Qe(c)[0];
5064
+ $ = d.clientX, ae = d.clientY;
5065
+ }, ce = (c) => {
5066
+ if (!$ || !ae) return;
5067
+ let d = c.touches[0].clientX, x = c.touches[0].clientY, D = $ - d, _ = ae - x;
5068
+ Math.abs(D) > Math.abs(_) && (D > 0 ? z(1) : z(-1)), $ = null, ae = null;
5120
5069
  }, J = () => {
5121
- T.addEventListener("touchstart", Ce, { passive: !0 }), T.addEventListener("touchmove", de, { passive: !0 });
5122
- }, ft = (c) => {
5070
+ T.addEventListener("touchstart", Le, { passive: !0 }), T.addEventListener("touchmove", ce, { passive: !0 });
5071
+ }, ht = (c) => {
5123
5072
  c.data && c.data.type;
5124
5073
  };
5125
- kn(() => (we(), window.addEventListener("message", ft, !1), () => {
5126
- window.removeEventListener("message", ft, !1), T.removeEventListener("touchstart", Ce), T.removeEventListener("touchmove", de);
5074
+ In(() => (xe(), window.addEventListener("message", ht, !1), () => {
5075
+ window.removeEventListener("message", ht, !1), T.removeEventListener("touchstart", Le), T.removeEventListener("touchmove", ce);
5127
5076
  }));
5128
- const Ct = () => {
5129
- ce();
5130
- }, Ot = () => z(-1), ct = () => {
5131
- Qe(!0);
5132
- }, l = () => {
5133
- Qe(!1);
5134
- }, v = (c) => ht(c.bonusWalletID), b = () => z(1);
5077
+ const Lt = () => {
5078
+ fe();
5079
+ }, Ot = () => z(-1), ft = () => {
5080
+ Ye(!0);
5081
+ }, u = () => {
5082
+ Ye(!1);
5083
+ }, b = (c) => lt(c.bonusWalletID), v = () => z(1);
5135
5084
  function m(c) {
5136
- nt[c ? "unshift" : "push"](() => {
5085
+ rt[c ? "unshift" : "push"](() => {
5137
5086
  T = c, r(4, T);
5138
5087
  });
5139
5088
  }
5140
5089
  function A(c) {
5141
- nt[c ? "unshift" : "push"](() => {
5090
+ rt[c ? "unshift" : "push"](() => {
5142
5091
  M = c, r(7, M);
5143
5092
  });
5144
5093
  }
5145
- const S = () => fe();
5146
- function C(c) {
5147
- nt[c ? "unshift" : "push"](() => {
5094
+ const S = () => he();
5095
+ function O(c) {
5096
+ rt[c ? "unshift" : "push"](() => {
5148
5097
  y = c, r(1, y);
5149
5098
  });
5150
5099
  }
5151
5100
  return e.$$set = (c) => {
5152
- "endpoint" in c && r(16, i = c.endpoint), "session" in c && r(17, o = c.session), "lang" in c && r(18, s = c.lang), "numberofrecords" in c && r(19, a = c.numberofrecords), "looptime" in c && r(20, h = c.looptime), "translationurl" in c && r(21, u = c.translationurl), "progressfractiondigit" in c && r(0, f = c.progressfractiondigit), "clientstyling" in c && r(22, p = c.clientstyling), "clientstylingurl" in c && r(23, g = c.clientstylingurl);
5101
+ "endpoint" in c && r(16, i = c.endpoint), "session" in c && r(17, o = c.session), "lang" in c && r(18, s = c.lang), "numberofrecords" in c && r(19, a = c.numberofrecords), "looptime" in c && r(20, h = c.looptime), "translationurl" in c && r(21, l = c.translationurl), "progressfractiondigit" in c && r(0, f = c.progressfractiondigit), "clientstyling" in c && r(22, p = c.clientstyling), "clientstylingurl" in c && r(23, g = c.clientstylingurl);
5153
5102
  }, e.$$.update = () => {
5154
5103
  e.$$.dirty[0] & /*customStylingContainer, clientstyling*/
5155
- 4194306 && y && p && ds(y, p), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
5156
- 8388610 && y && g && ps(y, g), e.$$.dirty[0] & /*lang, endpoint, session*/
5157
- 458752 && s && i && o && Lt(i), e.$$.dirty[0] & /*lang*/
5158
- 262144 && s && at(), e.$$.dirty[0] & /*wagerSlider*/
5104
+ 4194306 && y && p && Ko(y, p), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
5105
+ 8388610 && y && g && es(y, g), e.$$.dirty[0] & /*lang, endpoint, session*/
5106
+ 458752 && s && i && o && It(i), e.$$.dirty[0] & /*lang*/
5107
+ 262144 && s && st(), e.$$.dirty[0] & /*wagerSlider*/
5159
5108
  16 && T && J(), e.$$.dirty[0] & /*translationurl*/
5160
- 2097152 && u && xe(), e.$$.dirty[0] & /*currentWagerIdx*/
5109
+ 2097152 && l && Ee(), e.$$.dirty[0] & /*currentWagerIdx*/
5161
5110
  8 && r(5, w = B == 0), e.$$.dirty[0] & /*wageringList, currentWagerIdx*/
5162
- 12 && r(6, O = I ? B == I.length - 1 : !0);
5111
+ 12 && r(6, C = I ? B == I.length - 1 : !0);
5163
5112
  }, [
5164
5113
  f,
5165
5114
  y,
@@ -5167,44 +5116,44 @@ function ys(e, t, r) {
5167
5116
  B,
5168
5117
  T,
5169
5118
  w,
5170
- O,
5119
+ C,
5171
5120
  M,
5172
- Le,
5173
- he,
5121
+ Ie,
5122
+ le,
5174
5123
  n,
5175
5124
  z,
5125
+ he,
5176
5126
  fe,
5177
- ce,
5178
- ht,
5179
- Qe,
5127
+ lt,
5128
+ Ye,
5180
5129
  i,
5181
5130
  o,
5182
5131
  s,
5183
5132
  a,
5184
5133
  h,
5185
- u,
5134
+ l,
5186
5135
  p,
5187
5136
  g,
5188
- Ct,
5137
+ Lt,
5189
5138
  Ot,
5190
- ct,
5191
- l,
5192
- v,
5139
+ ft,
5140
+ u,
5193
5141
  b,
5142
+ v,
5194
5143
  m,
5195
5144
  A,
5196
5145
  S,
5197
- C
5146
+ O
5198
5147
  ];
5199
5148
  }
5200
- class An extends ri {
5149
+ class ss extends Gn {
5201
5150
  constructor(t) {
5202
- super(), ei(
5151
+ super(), Un(
5203
5152
  this,
5204
5153
  t,
5205
- ys,
5206
- bs,
5207
- Xr,
5154
+ os,
5155
+ is,
5156
+ Dr,
5208
5157
  {
5209
5158
  endpoint: 16,
5210
5159
  session: 17,
@@ -5216,7 +5165,7 @@ class An extends ri {
5216
5165
  clientstyling: 22,
5217
5166
  clientstylingurl: 23
5218
5167
  },
5219
- ms,
5168
+ ts,
5220
5169
  [-1, -1, -1]
5221
5170
  );
5222
5171
  }
@@ -5224,82 +5173,78 @@ class An extends ri {
5224
5173
  return this.$$.ctx[16];
5225
5174
  }
5226
5175
  set endpoint(t) {
5227
- this.$$set({ endpoint: t }), se();
5176
+ this.$$set({ endpoint: t }), oe();
5228
5177
  }
5229
5178
  get session() {
5230
5179
  return this.$$.ctx[17];
5231
5180
  }
5232
5181
  set session(t) {
5233
- this.$$set({ session: t }), se();
5182
+ this.$$set({ session: t }), oe();
5234
5183
  }
5235
5184
  get lang() {
5236
5185
  return this.$$.ctx[18];
5237
5186
  }
5238
5187
  set lang(t) {
5239
- this.$$set({ lang: t }), se();
5188
+ this.$$set({ lang: t }), oe();
5240
5189
  }
5241
5190
  get numberofrecords() {
5242
5191
  return this.$$.ctx[19];
5243
5192
  }
5244
5193
  set numberofrecords(t) {
5245
- this.$$set({ numberofrecords: t }), se();
5194
+ this.$$set({ numberofrecords: t }), oe();
5246
5195
  }
5247
5196
  get looptime() {
5248
5197
  return this.$$.ctx[20];
5249
5198
  }
5250
5199
  set looptime(t) {
5251
- this.$$set({ looptime: t }), se();
5200
+ this.$$set({ looptime: t }), oe();
5252
5201
  }
5253
5202
  get translationurl() {
5254
5203
  return this.$$.ctx[21];
5255
5204
  }
5256
5205
  set translationurl(t) {
5257
- this.$$set({ translationurl: t }), se();
5206
+ this.$$set({ translationurl: t }), oe();
5258
5207
  }
5259
5208
  get progressfractiondigit() {
5260
5209
  return this.$$.ctx[0];
5261
5210
  }
5262
5211
  set progressfractiondigit(t) {
5263
- this.$$set({ progressfractiondigit: t }), se();
5212
+ this.$$set({ progressfractiondigit: t }), oe();
5264
5213
  }
5265
5214
  get clientstyling() {
5266
5215
  return this.$$.ctx[22];
5267
5216
  }
5268
5217
  set clientstyling(t) {
5269
- this.$$set({ clientstyling: t }), se();
5218
+ this.$$set({ clientstyling: t }), oe();
5270
5219
  }
5271
5220
  get clientstylingurl() {
5272
5221
  return this.$$.ctx[23];
5273
5222
  }
5274
5223
  set clientstylingurl(t) {
5275
- this.$$set({ clientstylingurl: t }), se();
5224
+ this.$$set({ clientstylingurl: t }), oe();
5276
5225
  }
5277
5226
  }
5278
- ti(An, { endpoint: {}, session: {}, lang: {}, numberofrecords: {}, looptime: {}, translationurl: {}, progressfractiondigit: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
5279
- const Es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5280
- __proto__: null,
5281
- default: An
5282
- }, Symbol.toStringTag, { value: "Module" }));
5227
+ $n(ss, { endpoint: {}, session: {}, lang: {}, numberofrecords: {}, looptime: {}, translationurl: {}, progressfractiondigit: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
5283
5228
  export {
5284
- Te as $,
5285
- Es as C,
5286
- ri as S,
5287
- ke as a,
5288
- En as b,
5289
- ti as c,
5290
- Dn as d,
5229
+ Se as $,
5230
+ ss as C,
5231
+ Gn as S,
5232
+ We as a,
5233
+ cn as b,
5234
+ $n as c,
5235
+ xn as d,
5291
5236
  W as e,
5292
- se as f,
5237
+ oe as f,
5293
5238
  E as g,
5294
5239
  be as h,
5295
- ei as i,
5240
+ Un as i,
5296
5241
  G as j,
5297
- ar as k,
5298
- le as l,
5299
- Rn as m,
5300
- ae as n,
5301
- nt as o,
5302
- ss as p,
5303
- Xr as s,
5304
- St as t
5242
+ ir as k,
5243
+ ue as l,
5244
+ En as m,
5245
+ se as n,
5246
+ rt as o,
5247
+ Vo as p,
5248
+ Dr as s,
5249
+ wt as t
5305
5250
  };