@streamlayer/sdk-web 0.28.12 → 0.28.13

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.
package/lib/es/index.js CHANGED
@@ -1,33 +1,33 @@
1
- import { QuestionType as ze, SilenceSetting as Kr, QuestionStatus as Yt } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
1
+ import { QuestionType as st, SilenceSetting as zr, QuestionStatus as Yt } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
2
2
  import "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
3
3
  import { SdkOverlayType as ae } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
4
- import { computed as Hr, map as Mn, atom as Ct } from "nanostores";
4
+ import { computed as fr, map as jn, atom as Ct } from "nanostores";
5
5
  import "@nanostores/logger";
6
6
  import "microdiff";
7
- import { Code as Vn, createPromiseClient as qn, createCallbackClient as Gn } from "@connectrpc/connect";
8
- import { createGrpcWebTransport as Qn } from "@connectrpc/connect-web";
9
- import { nanoquery as zn } from "@nanostores/query";
10
- import { Events as Kn } from "@streamlayer/sl-eslib/sports/events/events_connect";
7
+ import { Code as Mn, createPromiseClient as Vn, createCallbackClient as qn } from "@connectrpc/connect";
8
+ import { createGrpcWebTransport as Gn } from "@connectrpc/connect-web";
9
+ import { nanoquery as Qn } from "@nanostores/query";
10
+ import { Events as zn } from "@streamlayer/sl-eslib/sports/events/events_connect";
11
11
  import { Client as Tt } from "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
12
- import { Users as Wr } from "@streamlayer/sl-eslib/users/users_connect";
13
- import { pino as Hn } from "pino";
14
- import { Feed as de } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
15
- import { Leaderboard as Jr } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect";
12
+ import { Users as Kr } from "@streamlayer/sl-eslib/users/users_connect";
13
+ import { pino as Kn } from "pino";
14
+ import { Feed as ve } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
15
+ import { Leaderboard as Hr } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect";
16
16
  import "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb";
17
- var Yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
18
- function Wn(t) {
17
+ var Wr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
18
+ function Hn(t) {
19
19
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
20
20
  }
21
- var T = {}, Xr = {}, _t = {};
22
- _t.byteLength = Xn;
23
- _t.toByteArray = ei;
24
- _t.fromByteArray = ni;
25
- var ve = [], oe = [], Jn = typeof Uint8Array < "u" ? Uint8Array : Array, Nt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
26
- for (var je = 0, Yn = Nt.length; je < Yn; ++je)
27
- ve[je] = Nt[je], oe[Nt.charCodeAt(je)] = je;
21
+ var T = {}, Jr = {}, _t = {};
22
+ _t.byteLength = Yn;
23
+ _t.toByteArray = Zn;
24
+ _t.fromByteArray = ri;
25
+ var we = [], oe = [], Wn = typeof Uint8Array < "u" ? Uint8Array : Array, Nt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
26
+ for (var Me = 0, Jn = Nt.length; Me < Jn; ++Me)
27
+ we[Me] = Nt[Me], oe[Nt.charCodeAt(Me)] = Me;
28
28
  oe["-".charCodeAt(0)] = 62;
29
29
  oe["_".charCodeAt(0)] = 63;
30
- function Zr(t) {
30
+ function Yr(t) {
31
31
  var e = t.length;
32
32
  if (e % 4 > 0)
33
33
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -36,39 +36,39 @@ function Zr(t) {
36
36
  var o = r === e ? 0 : 4 - r % 4;
37
37
  return [r, o];
38
38
  }
39
- function Xn(t) {
40
- var e = Zr(t), r = e[0], o = e[1];
39
+ function Yn(t) {
40
+ var e = Yr(t), r = e[0], o = e[1];
41
41
  return (r + o) * 3 / 4 - o;
42
42
  }
43
- function Zn(t, e, r) {
43
+ function Xn(t, e, r) {
44
44
  return (e + r) * 3 / 4 - r;
45
45
  }
46
- function ei(t) {
47
- var e, r = Zr(t), o = r[0], s = r[1], u = new Jn(Zn(t, o, s)), l = 0, f = s > 0 ? o - 4 : o, d;
46
+ function Zn(t) {
47
+ var e, r = Yr(t), o = r[0], s = r[1], u = new Wn(Xn(t, o, s)), l = 0, f = s > 0 ? o - 4 : o, d;
48
48
  for (d = 0; d < f; d += 4)
49
49
  e = oe[t.charCodeAt(d)] << 18 | oe[t.charCodeAt(d + 1)] << 12 | oe[t.charCodeAt(d + 2)] << 6 | oe[t.charCodeAt(d + 3)], u[l++] = e >> 16 & 255, u[l++] = e >> 8 & 255, u[l++] = e & 255;
50
50
  return s === 2 && (e = oe[t.charCodeAt(d)] << 2 | oe[t.charCodeAt(d + 1)] >> 4, u[l++] = e & 255), s === 1 && (e = oe[t.charCodeAt(d)] << 10 | oe[t.charCodeAt(d + 1)] << 4 | oe[t.charCodeAt(d + 2)] >> 2, u[l++] = e >> 8 & 255, u[l++] = e & 255), u;
51
51
  }
52
- function ti(t) {
53
- return ve[t >> 18 & 63] + ve[t >> 12 & 63] + ve[t >> 6 & 63] + ve[t & 63];
52
+ function ei(t) {
53
+ return we[t >> 18 & 63] + we[t >> 12 & 63] + we[t >> 6 & 63] + we[t & 63];
54
54
  }
55
- function ri(t, e, r) {
55
+ function ti(t, e, r) {
56
56
  for (var o, s = [], u = e; u < r; u += 3)
57
- o = (t[u] << 16 & 16711680) + (t[u + 1] << 8 & 65280) + (t[u + 2] & 255), s.push(ti(o));
57
+ o = (t[u] << 16 & 16711680) + (t[u + 1] << 8 & 65280) + (t[u + 2] & 255), s.push(ei(o));
58
58
  return s.join("");
59
59
  }
60
- function ni(t) {
60
+ function ri(t) {
61
61
  for (var e, r = t.length, o = r % 3, s = [], u = 16383, l = 0, f = r - o; l < f; l += u)
62
- s.push(ri(t, l, l + u > f ? f : l + u));
62
+ s.push(ti(t, l, l + u > f ? f : l + u));
63
63
  return o === 1 ? (e = t[r - 1], s.push(
64
- ve[e >> 2] + ve[e << 4 & 63] + "=="
64
+ we[e >> 2] + we[e << 4 & 63] + "=="
65
65
  )) : o === 2 && (e = (t[r - 2] << 8) + t[r - 1], s.push(
66
- ve[e >> 10] + ve[e >> 4 & 63] + ve[e << 2 & 63] + "="
66
+ we[e >> 10] + we[e >> 4 & 63] + we[e << 2 & 63] + "="
67
67
  )), s.join("");
68
68
  }
69
- var fr = {};
69
+ var lr = {};
70
70
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
71
- fr.read = function(t, e, r, o, s) {
71
+ lr.read = function(t, e, r, o, s) {
72
72
  var u, l, f = s * 8 - o - 1, d = (1 << f) - 1, A = d >> 1, g = -7, w = r ? s - 1 : 0, E = r ? -1 : 1, C = t[e + w];
73
73
  for (w += E, u = C & (1 << -g) - 1, C >>= -g, g += f; g > 0; u = u * 256 + t[e + w], w += E, g -= 8)
74
74
  ;
@@ -83,7 +83,7 @@ fr.read = function(t, e, r, o, s) {
83
83
  }
84
84
  return (C ? -1 : 1) * l * Math.pow(2, u - o);
85
85
  };
86
- fr.write = function(t, e, r, o, s, u) {
86
+ lr.write = function(t, e, r, o, s, u) {
87
87
  var l, f, d, A = u * 8 - s - 1, g = (1 << A) - 1, w = g >> 1, E = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, C = o ? 0 : u - 1, P = o ? 1 : -1, N = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
88
88
  for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (f = isNaN(e) ? 1 : 0, l = g) : (l = Math.floor(Math.log(e) / Math.LN2), e * (d = Math.pow(2, -l)) < 1 && (l--, d *= 2), l + w >= 1 ? e += E / d : e += E * Math.pow(2, 1 - w), e * d >= 2 && (l++, d /= 2), l + w >= g ? (f = 0, l = g) : l + w >= 1 ? (f = (e * d - 1) * Math.pow(2, s), l = l + w) : (f = e * Math.pow(2, w - 1) * Math.pow(2, s), l = 0)); s >= 8; t[r + C] = f & 255, C += P, f /= 256, s -= 8)
89
89
  ;
@@ -98,7 +98,7 @@ fr.write = function(t, e, r, o, s, u) {
98
98
  * @license MIT
99
99
  */
100
100
  (function(t) {
101
- const e = _t, r = fr, o = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
101
+ const e = _t, r = lr, o = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
102
102
  t.Buffer = f, t.SlowBuffer = X, t.INSPECT_MAX_BYTES = 50;
103
103
  const s = 2147483647;
104
104
  t.kMaxLength = s, f.TYPED_ARRAY_SUPPORT = u(), !f.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
@@ -153,7 +153,7 @@ fr.write = function(t, e, r, o, s, u) {
153
153
  throw new TypeError(
154
154
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof a
155
155
  );
156
- if (me(a, ArrayBuffer) || a && me(a.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (me(a, SharedArrayBuffer) || a && me(a.buffer, SharedArrayBuffer)))
156
+ if (ge(a, ArrayBuffer) || a && ge(a.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (ge(a, SharedArrayBuffer) || a && ge(a.buffer, SharedArrayBuffer)))
157
157
  return N(a, n, i);
158
158
  if (typeof a == "number")
159
159
  throw new TypeError(
@@ -197,7 +197,7 @@ fr.write = function(t, e, r, o, s, u) {
197
197
  function E(a, n) {
198
198
  if ((typeof n != "string" || n === "") && (n = "utf8"), !f.isEncoding(n))
199
199
  throw new TypeError("Unknown encoding: " + n);
200
- const i = ye(a, n) | 0;
200
+ const i = de(a, n) | 0;
201
201
  let c = l(i);
202
202
  const h = c.write(a, n);
203
203
  return h !== i && (c = c.slice(0, h)), c;
@@ -209,7 +209,7 @@ fr.write = function(t, e, r, o, s, u) {
209
209
  return i;
210
210
  }
211
211
  function P(a) {
212
- if (me(a, Uint8Array)) {
212
+ if (ge(a, Uint8Array)) {
213
213
  const n = new Uint8Array(a);
214
214
  return N(n.buffer, n.byteOffset, n.byteLength);
215
215
  }
@@ -244,7 +244,7 @@ fr.write = function(t, e, r, o, s, u) {
244
244
  f.isBuffer = function(n) {
245
245
  return n != null && n._isBuffer === !0 && n !== f.prototype;
246
246
  }, f.compare = function(n, i) {
247
- if (me(n, Uint8Array) && (n = f.from(n, n.offset, n.byteLength)), me(i, Uint8Array) && (i = f.from(i, i.offset, i.byteLength)), !f.isBuffer(n) || !f.isBuffer(i))
247
+ if (ge(n, Uint8Array) && (n = f.from(n, n.offset, n.byteLength)), ge(i, Uint8Array) && (i = f.from(i, i.offset, i.byteLength)), !f.isBuffer(n) || !f.isBuffer(i))
248
248
  throw new TypeError(
249
249
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
250
250
  );
@@ -287,7 +287,7 @@ fr.write = function(t, e, r, o, s, u) {
287
287
  let y = 0;
288
288
  for (c = 0; c < n.length; ++c) {
289
289
  let m = n[c];
290
- if (me(m, Uint8Array))
290
+ if (ge(m, Uint8Array))
291
291
  y + m.length > h.length ? (f.isBuffer(m) || (m = f.from(m)), m.copy(h, y)) : Uint8Array.prototype.set.call(
292
292
  h,
293
293
  m,
@@ -301,10 +301,10 @@ fr.write = function(t, e, r, o, s, u) {
301
301
  }
302
302
  return h;
303
303
  };
304
- function ye(a, n) {
304
+ function de(a, n) {
305
305
  if (f.isBuffer(a))
306
306
  return a.length;
307
- if (ArrayBuffer.isView(a) || me(a, ArrayBuffer))
307
+ if (ArrayBuffer.isView(a) || ge(a, ArrayBuffer))
308
308
  return a.byteLength;
309
309
  if (typeof a != "string")
310
310
  throw new TypeError(
@@ -322,7 +322,7 @@ fr.write = function(t, e, r, o, s, u) {
322
322
  return i;
323
323
  case "utf8":
324
324
  case "utf-8":
325
- return it(a).length;
325
+ return nt(a).length;
326
326
  case "ucs2":
327
327
  case "ucs-2":
328
328
  case "utf16le":
@@ -334,11 +334,11 @@ fr.write = function(t, e, r, o, s, u) {
334
334
  return ht(a).length;
335
335
  default:
336
336
  if (h)
337
- return c ? -1 : it(a).length;
337
+ return c ? -1 : nt(a).length;
338
338
  n = ("" + n).toLowerCase(), h = !0;
339
339
  }
340
340
  }
341
- f.byteLength = ye;
341
+ f.byteLength = de;
342
342
  function ee(a, n, i) {
343
343
  let c = !1;
344
344
  if ((n === void 0 || n < 0) && (n = 0), n > this.length || ((i === void 0 || i > this.length) && (i = this.length), i <= 0) || (i >>>= 0, n >>>= 0, i <= n))
@@ -346,17 +346,17 @@ fr.write = function(t, e, r, o, s, u) {
346
346
  for (a || (a = "utf8"); ; )
347
347
  switch (a) {
348
348
  case "hex":
349
- return he(this, n, i);
349
+ return le(this, n, i);
350
350
  case "utf8":
351
351
  case "utf-8":
352
- return le(this, n, i);
352
+ return fe(this, n, i);
353
353
  case "ascii":
354
- return nt(this, n, i);
354
+ return rt(this, n, i);
355
355
  case "latin1":
356
356
  case "binary":
357
- return xe(this, n, i);
357
+ return Be(this, n, i);
358
358
  case "base64":
359
- return rt(this, n, i);
359
+ return tt(this, n, i);
360
360
  case "ucs2":
361
361
  case "ucs-2":
362
362
  case "utf16le":
@@ -369,7 +369,7 @@ fr.write = function(t, e, r, o, s, u) {
369
369
  }
370
370
  }
371
371
  f.prototype._isBuffer = !0;
372
- function x(a, n, i) {
372
+ function B(a, n, i) {
373
373
  const c = a[n];
374
374
  a[n] = a[i], a[i] = c;
375
375
  }
@@ -378,25 +378,25 @@ fr.write = function(t, e, r, o, s, u) {
378
378
  if (n % 2 !== 0)
379
379
  throw new RangeError("Buffer size must be a multiple of 16-bits");
380
380
  for (let i = 0; i < n; i += 2)
381
- x(this, i, i + 1);
381
+ B(this, i, i + 1);
382
382
  return this;
383
383
  }, f.prototype.swap32 = function() {
384
384
  const n = this.length;
385
385
  if (n % 4 !== 0)
386
386
  throw new RangeError("Buffer size must be a multiple of 32-bits");
387
387
  for (let i = 0; i < n; i += 4)
388
- x(this, i, i + 3), x(this, i + 1, i + 2);
388
+ B(this, i, i + 3), B(this, i + 1, i + 2);
389
389
  return this;
390
390
  }, f.prototype.swap64 = function() {
391
391
  const n = this.length;
392
392
  if (n % 8 !== 0)
393
393
  throw new RangeError("Buffer size must be a multiple of 64-bits");
394
394
  for (let i = 0; i < n; i += 8)
395
- x(this, i, i + 7), x(this, i + 1, i + 6), x(this, i + 2, i + 5), x(this, i + 3, i + 4);
395
+ B(this, i, i + 7), B(this, i + 1, i + 6), B(this, i + 2, i + 5), B(this, i + 3, i + 4);
396
396
  return this;
397
397
  }, f.prototype.toString = function() {
398
398
  const n = this.length;
399
- return n === 0 ? "" : arguments.length === 0 ? le(this, 0, n) : ee.apply(this, arguments);
399
+ return n === 0 ? "" : arguments.length === 0 ? fe(this, 0, n) : ee.apply(this, arguments);
400
400
  }, f.prototype.toLocaleString = f.prototype.toString, f.prototype.equals = function(n) {
401
401
  if (!f.isBuffer(n))
402
402
  throw new TypeError("Argument must be a Buffer");
@@ -406,7 +406,7 @@ fr.write = function(t, e, r, o, s, u) {
406
406
  const i = t.INSPECT_MAX_BYTES;
407
407
  return n = this.toString("hex", 0, i).replace(/(.{2})/g, "$1 ").trim(), this.length > i && (n += " ... "), "<Buffer " + n + ">";
408
408
  }, o && (f.prototype[o] = f.prototype.inspect), f.prototype.compare = function(n, i, c, h, y) {
409
- if (me(n, Uint8Array) && (n = f.from(n, n.offset, n.byteLength)), !f.isBuffer(n))
409
+ if (ge(n, Uint8Array) && (n = f.from(n, n.offset, n.byteLength)), !f.isBuffer(n))
410
410
  throw new TypeError(
411
411
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof n
412
412
  );
@@ -442,12 +442,12 @@ fr.write = function(t, e, r, o, s, u) {
442
442
  else
443
443
  return -1;
444
444
  if (typeof n == "string" && (n = f.from(n, c)), f.isBuffer(n))
445
- return n.length === 0 ? -1 : B(a, n, i, c, h);
445
+ return n.length === 0 ? -1 : O(a, n, i, c, h);
446
446
  if (typeof n == "number")
447
- return n = n & 255, typeof Uint8Array.prototype.indexOf == "function" ? h ? Uint8Array.prototype.indexOf.call(a, n, i) : Uint8Array.prototype.lastIndexOf.call(a, n, i) : B(a, [n], i, c, h);
447
+ return n = n & 255, typeof Uint8Array.prototype.indexOf == "function" ? h ? Uint8Array.prototype.indexOf.call(a, n, i) : Uint8Array.prototype.lastIndexOf.call(a, n, i) : O(a, [n], i, c, h);
448
448
  throw new TypeError("val must be string, number or Buffer");
449
449
  }
450
- function B(a, n, i, c, h) {
450
+ function O(a, n, i, c, h) {
451
451
  let y = 1, m = a.length, _ = n.length;
452
452
  if (c !== void 0 && (c = String(c).toLowerCase(), c === "ucs2" || c === "ucs-2" || c === "utf16le" || c === "utf-16le")) {
453
453
  if (a.length < 2 || n.length < 2)
@@ -502,16 +502,16 @@ fr.write = function(t, e, r, o, s, u) {
502
502
  return m;
503
503
  }
504
504
  function ne(a, n, i, c) {
505
- return ot(it(n, a.length - i), a, i, c);
505
+ return it(nt(n, a.length - i), a, i, c);
506
506
  }
507
507
  function _e(a, n, i, c) {
508
- return ot(Pt(n), a, i, c);
508
+ return it(Pt(n), a, i, c);
509
509
  }
510
510
  function Se(a, n, i, c) {
511
- return ot(ht(n), a, i, c);
511
+ return it(ht(n), a, i, c);
512
512
  }
513
- function fe(a, n, i, c) {
514
- return ot(v(n, a.length - i), a, i, c);
513
+ function ce(a, n, i, c) {
514
+ return it(v(n, a.length - i), a, i, c);
515
515
  }
516
516
  f.prototype.write = function(n, i, c, h) {
517
517
  if (i === void 0)
@@ -546,7 +546,7 @@ fr.write = function(t, e, r, o, s, u) {
546
546
  case "ucs-2":
547
547
  case "utf16le":
548
548
  case "utf-16le":
549
- return fe(this, n, i, c);
549
+ return ce(this, n, i, c);
550
550
  default:
551
551
  if (m)
552
552
  throw new TypeError("Unknown encoding: " + h);
@@ -558,10 +558,10 @@ fr.write = function(t, e, r, o, s, u) {
558
558
  data: Array.prototype.slice.call(this._arr || this, 0)
559
559
  };
560
560
  };
561
- function rt(a, n, i) {
561
+ function tt(a, n, i) {
562
562
  return n === 0 && i === a.length ? e.fromByteArray(a) : e.fromByteArray(a.slice(n, i));
563
563
  }
564
- function le(a, n, i) {
564
+ function fe(a, n, i) {
565
565
  i = Math.min(a.length, i);
566
566
  const c = [];
567
567
  let h = n;
@@ -586,41 +586,41 @@ fr.write = function(t, e, r, o, s, u) {
586
586
  }
587
587
  m === null ? (m = 65533, _ = 1) : m > 65535 && (m -= 65536, c.push(m >>> 10 & 1023 | 55296), m = 56320 | m & 1023), c.push(m), h += _;
588
588
  }
589
- return Oe(c);
589
+ return xe(c);
590
590
  }
591
- const Be = 4096;
592
- function Oe(a) {
591
+ const Oe = 4096;
592
+ function xe(a) {
593
593
  const n = a.length;
594
- if (n <= Be)
594
+ if (n <= Oe)
595
595
  return String.fromCharCode.apply(String, a);
596
596
  let i = "", c = 0;
597
597
  for (; c < n; )
598
598
  i += String.fromCharCode.apply(
599
599
  String,
600
- a.slice(c, c += Be)
600
+ a.slice(c, c += Oe)
601
601
  );
602
602
  return i;
603
603
  }
604
- function nt(a, n, i) {
604
+ function rt(a, n, i) {
605
605
  let c = "";
606
606
  i = Math.min(a.length, i);
607
607
  for (let h = n; h < i; ++h)
608
608
  c += String.fromCharCode(a[h] & 127);
609
609
  return c;
610
610
  }
611
- function xe(a, n, i) {
611
+ function Be(a, n, i) {
612
612
  let c = "";
613
613
  i = Math.min(a.length, i);
614
614
  for (let h = n; h < i; ++h)
615
615
  c += String.fromCharCode(a[h]);
616
616
  return c;
617
617
  }
618
- function he(a, n, i) {
618
+ function le(a, n, i) {
619
619
  const c = a.length;
620
620
  (!n || n < 0) && (n = 0), (!i || i < 0 || i > c) && (i = c);
621
621
  let h = "";
622
622
  for (let y = n; y < i; ++y)
623
- h += Dn[a[y]];
623
+ h += $n[a[y]];
624
624
  return h;
625
625
  }
626
626
  function ke(a, n, i) {
@@ -665,13 +665,13 @@ fr.write = function(t, e, r, o, s, u) {
665
665
  }, f.prototype.readUint32BE = f.prototype.readUInt32BE = function(n, i) {
666
666
  return n = n >>> 0, i || V(n, 4, this.length), this[n] * 16777216 + (this[n + 1] << 16 | this[n + 2] << 8 | this[n + 3]);
667
667
  }, f.prototype.readBigUInt64LE = Pe(function(n) {
668
- n = n >>> 0, pe(n, "offset");
668
+ n = n >>> 0, he(n, "offset");
669
669
  const i = this[n], c = this[n + 7];
670
670
  (i === void 0 || c === void 0) && ie(n, this.length - 8);
671
671
  const h = i + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + this[++n] * 2 ** 24, y = this[++n] + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + c * 2 ** 24;
672
672
  return BigInt(h) + (BigInt(y) << BigInt(32));
673
673
  }), f.prototype.readBigUInt64BE = Pe(function(n) {
674
- n = n >>> 0, pe(n, "offset");
674
+ n = n >>> 0, he(n, "offset");
675
675
  const i = this[n], c = this[n + 7];
676
676
  (i === void 0 || c === void 0) && ie(n, this.length - 8);
677
677
  const h = i * 2 ** 24 + this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + this[++n], y = this[++n] * 2 ** 24 + this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + c;
@@ -703,13 +703,13 @@ fr.write = function(t, e, r, o, s, u) {
703
703
  }, f.prototype.readInt32BE = function(n, i) {
704
704
  return n = n >>> 0, i || V(n, 4, this.length), this[n] << 24 | this[n + 1] << 16 | this[n + 2] << 8 | this[n + 3];
705
705
  }, f.prototype.readBigInt64LE = Pe(function(n) {
706
- n = n >>> 0, pe(n, "offset");
706
+ n = n >>> 0, he(n, "offset");
707
707
  const i = this[n], c = this[n + 7];
708
708
  (i === void 0 || c === void 0) && ie(n, this.length - 8);
709
709
  const h = this[n + 4] + this[n + 5] * 2 ** 8 + this[n + 6] * 2 ** 16 + (c << 24);
710
710
  return (BigInt(h) << BigInt(32)) + BigInt(i + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + this[++n] * 2 ** 24);
711
711
  }), f.prototype.readBigInt64BE = Pe(function(n) {
712
- n = n >>> 0, pe(n, "offset");
712
+ n = n >>> 0, he(n, "offset");
713
713
  const i = this[n], c = this[n + 7];
714
714
  (i === void 0 || c === void 0) && ie(n, this.length - 8);
715
715
  const h = (i << 24) + // Overflow
@@ -762,14 +762,14 @@ fr.write = function(t, e, r, o, s, u) {
762
762
  return n = +n, i = i >>> 0, c || p(this, n, i, 4, 4294967295, 0), this[i] = n >>> 24, this[i + 1] = n >>> 16, this[i + 2] = n >>> 8, this[i + 3] = n & 255, i + 4;
763
763
  };
764
764
  function b(a, n, i, c, h) {
765
- ge(n, c, h, a, i, 7);
765
+ ye(n, c, h, a, i, 7);
766
766
  let y = Number(n & BigInt(4294967295));
767
767
  a[i++] = y, y = y >> 8, a[i++] = y, y = y >> 8, a[i++] = y, y = y >> 8, a[i++] = y;
768
768
  let m = Number(n >> BigInt(32) & BigInt(4294967295));
769
769
  return a[i++] = m, m = m >> 8, a[i++] = m, m = m >> 8, a[i++] = m, m = m >> 8, a[i++] = m, i;
770
770
  }
771
771
  function S(a, n, i, c, h) {
772
- ge(n, c, h, a, i, 7);
772
+ ye(n, c, h, a, i, 7);
773
773
  let y = Number(n & BigInt(4294967295));
774
774
  a[i + 7] = y, y = y >> 8, a[i + 6] = y, y = y >> 8, a[i + 5] = y, y = y >> 8, a[i + 4] = y;
775
775
  let m = Number(n >> BigInt(32) & BigInt(4294967295));
@@ -882,7 +882,7 @@ fr.write = function(t, e, r, o, s, u) {
882
882
  return this;
883
883
  };
884
884
  const F = {};
885
- function O(a, n, i) {
885
+ function x(a, n, i) {
886
886
  F[a] = class extends i {
887
887
  constructor() {
888
888
  super(), Object.defineProperty(this, "message", {
@@ -907,19 +907,19 @@ fr.write = function(t, e, r, o, s, u) {
907
907
  }
908
908
  };
909
909
  }
910
- O(
910
+ x(
911
911
  "ERR_BUFFER_OUT_OF_BOUNDS",
912
912
  function(a) {
913
913
  return a ? `${a} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
914
914
  },
915
915
  RangeError
916
- ), O(
916
+ ), x(
917
917
  "ERR_INVALID_ARG_TYPE",
918
918
  function(a, n) {
919
919
  return `The "${a}" argument must be of type number. Received type ${typeof n}`;
920
920
  },
921
921
  TypeError
922
- ), O(
922
+ ), x(
923
923
  "ERR_OUT_OF_RANGE",
924
924
  function(a, n, i) {
925
925
  let c = `The value of "${a}" is out of range.`, h = i;
@@ -935,9 +935,9 @@ fr.write = function(t, e, r, o, s, u) {
935
935
  return `${a.slice(0, i)}${n}`;
936
936
  }
937
937
  function Y(a, n, i) {
938
- pe(n, "offset"), (a[n] === void 0 || a[n + i] === void 0) && ie(n, a.length - (i + 1));
938
+ he(n, "offset"), (a[n] === void 0 || a[n + i] === void 0) && ie(n, a.length - (i + 1));
939
939
  }
940
- function ge(a, n, i, c, h, y) {
940
+ function ye(a, n, i, c, h, y) {
941
941
  if (a > i || a < n) {
942
942
  const m = typeof n == "bigint" ? "n" : "";
943
943
  let _;
@@ -945,26 +945,26 @@ fr.write = function(t, e, r, o, s, u) {
945
945
  }
946
946
  Y(c, h, y);
947
947
  }
948
- function pe(a, n) {
948
+ function he(a, n) {
949
949
  if (typeof a != "number")
950
950
  throw new F.ERR_INVALID_ARG_TYPE(n, "number", a);
951
951
  }
952
952
  function ie(a, n, i) {
953
- throw Math.floor(a) !== a ? (pe(a, i), new F.ERR_OUT_OF_RANGE(i || "offset", "an integer", a)) : n < 0 ? new F.ERR_BUFFER_OUT_OF_BOUNDS() : new F.ERR_OUT_OF_RANGE(
953
+ throw Math.floor(a) !== a ? (he(a, i), new F.ERR_OUT_OF_RANGE(i || "offset", "an integer", a)) : n < 0 ? new F.ERR_BUFFER_OUT_OF_BOUNDS() : new F.ERR_OUT_OF_RANGE(
954
954
  i || "offset",
955
955
  `>= ${i ? 1 : 0} and <= ${n}`,
956
956
  a
957
957
  );
958
958
  }
959
- const De = /[^+/0-9A-Za-z-_]/g;
959
+ const je = /[^+/0-9A-Za-z-_]/g;
960
960
  function lt(a) {
961
- if (a = a.split("=")[0], a = a.trim().replace(De, ""), a.length < 2)
961
+ if (a = a.split("=")[0], a = a.trim().replace(je, ""), a.length < 2)
962
962
  return "";
963
963
  for (; a.length % 4 !== 0; )
964
964
  a = a + "=";
965
965
  return a;
966
966
  }
967
- function it(a, n) {
967
+ function nt(a, n) {
968
968
  n = n || 1 / 0;
969
969
  let i;
970
970
  const c = a.length;
@@ -1039,19 +1039,19 @@ fr.write = function(t, e, r, o, s, u) {
1039
1039
  function ht(a) {
1040
1040
  return e.toByteArray(lt(a));
1041
1041
  }
1042
- function ot(a, n, i, c) {
1042
+ function it(a, n, i, c) {
1043
1043
  let h;
1044
1044
  for (h = 0; h < c && !(h + i >= n.length || h >= a.length); ++h)
1045
1045
  n[h + i] = a[h];
1046
1046
  return h;
1047
1047
  }
1048
- function me(a, n) {
1048
+ function ge(a, n) {
1049
1049
  return a instanceof n || a != null && a.constructor != null && a.constructor.name != null && a.constructor.name === n.name;
1050
1050
  }
1051
1051
  function Rt(a) {
1052
1052
  return a !== a;
1053
1053
  }
1054
- const Dn = function() {
1054
+ const $n = function() {
1055
1055
  const a = "0123456789abcdef", n = new Array(256);
1056
1056
  for (let i = 0; i < 16; ++i) {
1057
1057
  const c = i * 16;
@@ -1061,13 +1061,13 @@ fr.write = function(t, e, r, o, s, u) {
1061
1061
  return n;
1062
1062
  }();
1063
1063
  function Pe(a) {
1064
- return typeof BigInt > "u" ? jn : a;
1064
+ return typeof BigInt > "u" ? Dn : a;
1065
1065
  }
1066
- function jn() {
1066
+ function Dn() {
1067
1067
  throw new Error("BigInt not supported");
1068
1068
  }
1069
- })(Xr);
1070
- var en = { exports: {} }, K = en.exports = {}, be, we;
1069
+ })(Jr);
1070
+ var Xr = { exports: {} }, K = Xr.exports = {}, me, be;
1071
1071
  function Xt() {
1072
1072
  throw new Error("setTimeout has not been defined");
1073
1073
  }
@@ -1076,60 +1076,60 @@ function Zt() {
1076
1076
  }
1077
1077
  (function() {
1078
1078
  try {
1079
- typeof setTimeout == "function" ? be = setTimeout : be = Xt;
1079
+ typeof setTimeout == "function" ? me = setTimeout : me = Xt;
1080
1080
  } catch {
1081
- be = Xt;
1081
+ me = Xt;
1082
1082
  }
1083
1083
  try {
1084
- typeof clearTimeout == "function" ? we = clearTimeout : we = Zt;
1084
+ typeof clearTimeout == "function" ? be = clearTimeout : be = Zt;
1085
1085
  } catch {
1086
- we = Zt;
1086
+ be = Zt;
1087
1087
  }
1088
1088
  })();
1089
- function tn(t) {
1090
- if (be === setTimeout)
1089
+ function Zr(t) {
1090
+ if (me === setTimeout)
1091
1091
  return setTimeout(t, 0);
1092
- if ((be === Xt || !be) && setTimeout)
1093
- return be = setTimeout, setTimeout(t, 0);
1092
+ if ((me === Xt || !me) && setTimeout)
1093
+ return me = setTimeout, setTimeout(t, 0);
1094
1094
  try {
1095
- return be(t, 0);
1095
+ return me(t, 0);
1096
1096
  } catch {
1097
1097
  try {
1098
- return be.call(null, t, 0);
1098
+ return me.call(null, t, 0);
1099
1099
  } catch {
1100
- return be.call(this, t, 0);
1100
+ return me.call(this, t, 0);
1101
1101
  }
1102
1102
  }
1103
1103
  }
1104
- function ii(t) {
1105
- if (we === clearTimeout)
1104
+ function ni(t) {
1105
+ if (be === clearTimeout)
1106
1106
  return clearTimeout(t);
1107
- if ((we === Zt || !we) && clearTimeout)
1108
- return we = clearTimeout, clearTimeout(t);
1107
+ if ((be === Zt || !be) && clearTimeout)
1108
+ return be = clearTimeout, clearTimeout(t);
1109
1109
  try {
1110
- return we(t);
1110
+ return be(t);
1111
1111
  } catch {
1112
1112
  try {
1113
- return we.call(null, t);
1113
+ return be.call(null, t);
1114
1114
  } catch {
1115
- return we.call(this, t);
1115
+ return be.call(this, t);
1116
1116
  }
1117
1117
  }
1118
1118
  }
1119
1119
  var Ce = [], Ke = !1, Ne, pt = -1;
1120
- function oi() {
1121
- !Ke || !Ne || (Ke = !1, Ne.length ? Ce = Ne.concat(Ce) : pt = -1, Ce.length && rn());
1120
+ function ii() {
1121
+ !Ke || !Ne || (Ke = !1, Ne.length ? Ce = Ne.concat(Ce) : pt = -1, Ce.length && en());
1122
1122
  }
1123
- function rn() {
1123
+ function en() {
1124
1124
  if (!Ke) {
1125
- var t = tn(oi);
1125
+ var t = Zr(ii);
1126
1126
  Ke = !0;
1127
1127
  for (var e = Ce.length; e; ) {
1128
1128
  for (Ne = Ce, Ce = []; ++pt < e; )
1129
1129
  Ne && Ne[pt].run();
1130
1130
  pt = -1, e = Ce.length;
1131
1131
  }
1132
- Ne = null, Ke = !1, ii(t);
1132
+ Ne = null, Ke = !1, ni(t);
1133
1133
  }
1134
1134
  }
1135
1135
  K.nextTick = function(t) {
@@ -1137,12 +1137,12 @@ K.nextTick = function(t) {
1137
1137
  if (arguments.length > 1)
1138
1138
  for (var r = 1; r < arguments.length; r++)
1139
1139
  e[r - 1] = arguments[r];
1140
- Ce.push(new nn(t, e)), Ce.length === 1 && !Ke && tn(rn);
1140
+ Ce.push(new tn(t, e)), Ce.length === 1 && !Ke && Zr(en);
1141
1141
  };
1142
- function nn(t, e) {
1142
+ function tn(t, e) {
1143
1143
  this.fun = t, this.array = e;
1144
1144
  }
1145
- nn.prototype.run = function() {
1145
+ tn.prototype.run = function() {
1146
1146
  this.fun.apply(null, this.array);
1147
1147
  };
1148
1148
  K.title = "browser";
@@ -1177,16 +1177,16 @@ K.chdir = function(t) {
1177
1177
  K.umask = function() {
1178
1178
  return 0;
1179
1179
  };
1180
- var si = en.exports;
1180
+ var oi = Xr.exports;
1181
1181
  (function(t) {
1182
1182
  Object.defineProperty(t, Symbol.toStringTag, { value: "Module" });
1183
- const e = Xr, r = si, o = (l) => l && l.__esModule ? l : { default: l }, s = o(r), u = globalThis || void 0 || self;
1183
+ const e = Jr, r = oi, o = (l) => l && l.__esModule ? l : { default: l }, s = o(r), u = globalThis || void 0 || self;
1184
1184
  Object.defineProperty(t, "Buffer", { enumerable: !0, get: () => e.Buffer }), Object.defineProperty(t, "process", { enumerable: !0, get: () => s.default }), t.global = u;
1185
1185
  })(T);
1186
- class ai {
1186
+ class si {
1187
1187
  }
1188
1188
  window.slStore = /* @__PURE__ */ Object.create(null);
1189
- class Bt {
1189
+ class Ot {
1190
1190
  /**
1191
1191
  * store instance (nanostores)
1192
1192
  */
@@ -1202,33 +1202,33 @@ class Bt {
1202
1202
  return this.store;
1203
1203
  }
1204
1204
  }
1205
- const ui = (t) => {
1205
+ const ai = (t) => {
1206
1206
  const e = Object.keys(t);
1207
- return Hr(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((o, s) => [o, r[s]])));
1207
+ return fr(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((o, s) => [o, r[s]])));
1208
1208
  };
1209
- class at extends Bt {
1209
+ class at extends Ot {
1210
1210
  getValues = () => this.getStore().get();
1211
1211
  getValue = (e) => this.getStore().get()[e];
1212
1212
  setValue = (e, r) => this.getStore().setKey(e, r);
1213
1213
  subscribe = (...e) => this.getStore().subscribe(...e);
1214
1214
  unsubscribe = () => this.getStore().off();
1215
1215
  }
1216
- const He = (t) => Mn(t);
1216
+ const Le = (t) => jn(t);
1217
1217
  var Ie;
1218
1218
  (function(t) {
1219
1219
  t.ORGANIZATION = "ORGANIZATION", t.STREAM = "STREAM";
1220
1220
  })(Ie || (Ie = {}));
1221
- const ci = {
1221
+ const ui = {
1222
1222
  [ae.BETTING]: "betting",
1223
1223
  [ae.GAMES]: "games",
1224
1224
  [ae.PUBLIC_CHAT]: "publicChat",
1225
1225
  [ae.TWITTER]: "twitter"
1226
1226
  };
1227
- var Le;
1227
+ var Ue;
1228
1228
  (function(t) {
1229
1229
  t.Ready = "ready", t.Suspended = "suspended";
1230
- })(Le || (Le = {}));
1231
- class lr {
1230
+ })(Ue || (Ue = {}));
1231
+ class hr {
1232
1232
  status;
1233
1233
  source;
1234
1234
  config;
@@ -1236,7 +1236,7 @@ class lr {
1236
1236
  listeners = /* @__PURE__ */ new Set();
1237
1237
  settingsKey;
1238
1238
  constructor({ settings: e, ...r }, o) {
1239
- this.settingsKey = ci[r.type], this.status = Ct(Le.Suspended), this.config = new at(He(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new at(He(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new at(He({}), `feature:settings:${this.settingsKey}`), this.source = o;
1239
+ this.settingsKey = ui[r.type], this.status = Ct(Ue.Suspended), this.config = new at(Le(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new at(Le(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new at(Le({}), `feature:settings:${this.settingsKey}`), this.source = o;
1240
1240
  }
1241
1241
  get featureConfig() {
1242
1242
  return this.config.getStore();
@@ -1248,10 +1248,10 @@ class lr {
1248
1248
  this.listeners.add(e);
1249
1249
  }
1250
1250
  enable = () => {
1251
- this.status.set(Le.Ready);
1251
+ this.status.set(Ue.Ready);
1252
1252
  };
1253
1253
  disable = () => {
1254
- this.status.set(Le.Suspended);
1254
+ this.status.set(Ue.Suspended);
1255
1255
  };
1256
1256
  setFeatureConfig = ({ settings: e, ...r }) => {
1257
1257
  let o;
@@ -1278,7 +1278,7 @@ class lr {
1278
1278
  }
1279
1279
  }
1280
1280
  }
1281
- class ce extends Bt {
1281
+ class ue extends Ot {
1282
1282
  getValue = () => this.getStore().get();
1283
1283
  getValues() {
1284
1284
  throw new Error("not implemented");
@@ -1293,8 +1293,8 @@ class ce extends Bt {
1293
1293
  return this.getStore().get();
1294
1294
  }
1295
1295
  }
1296
- const te = (t) => Ct(t), hr = (t, e) => Hr(t, e);
1297
- class ue extends Bt {
1296
+ const te = (t) => Ct(t), ci = (t, e) => fr(t, e);
1297
+ class pe extends Ot {
1298
1298
  atomStore;
1299
1299
  constructor(e, r, o) {
1300
1300
  super(e, `api:${r}`), this.atomStore = Ct(), o && e.subscribe((s) => {
@@ -1391,7 +1391,7 @@ class hi {
1391
1391
  ts: /* @__PURE__ */ new Date(),
1392
1392
  log: []
1393
1393
  };
1394
- this.state = new at(He(u), `subscription:${s.name}:state`), this.name = s.name, this.headers = e, this.listeners = /* @__PURE__ */ new Map(), this.params = o, this.method = r, s.withStore && (this.store = new ce(te(null), `subscription:${s.name}:store`)), "subscribe" in o && typeof o.subscribe == "function" && o.subscribe(() => {
1394
+ this.state = new at(Le(u), `subscription:${s.name}:state`), this.name = s.name, this.headers = e, this.listeners = /* @__PURE__ */ new Map(), this.params = o, this.method = r, s.withStore && (this.store = new ue(te(null), `subscription:${s.name}:store`)), "subscribe" in o && typeof o.subscribe == "function" && o.subscribe(() => {
1395
1395
  this.reconnect();
1396
1396
  }), this.updateState(Ae.Ready);
1397
1397
  }
@@ -1433,7 +1433,7 @@ class hi {
1433
1433
  this.addStateLog(`data routed to ${this.listeners.size} listeners`);
1434
1434
  };
1435
1435
  onStreamError = (e) => {
1436
- e !== void 0 && (e.code !== Vn.Canceled && e.rawMessage !== "[canceled] BodyStreamBuffer was aborted" ? (this.updateState(Ae.Failed), this.state.setValue("error", e)) : this.disconnect());
1436
+ e !== void 0 && (e.code !== Mn.Canceled && e.rawMessage !== "[canceled] BodyStreamBuffer was aborted" ? (this.updateState(Ae.Failed), this.state.setValue("error", e)) : this.disconnect());
1437
1437
  };
1438
1438
  }
1439
1439
  class pi {
@@ -1451,11 +1451,11 @@ class pi {
1451
1451
  callbackClients;
1452
1452
  subscriptions;
1453
1453
  constructor(e) {
1454
- this.host = e, this.$headers = new at(He({
1454
+ this.host = e, this.$headers = new at(Le({
1455
1455
  "sl-device-id": T.process?.env?.NX_DEVICE_ID || "sdk-web-dev"
1456
1456
  }), "transport:headers"), this.initInterceptors(), this.clients = /* @__PURE__ */ new Map(), this.callbackClients = /* @__PURE__ */ new Map(), this.subscriptions = /* @__PURE__ */ new Map();
1457
- const [r, o, s] = zn();
1458
- this.nanoquery = { createFetcherStore: r, createMutatorStore: o, utils: s }, this.transport = Qn({
1457
+ const [r, o, s] = Qn();
1458
+ this.nanoquery = { createFetcherStore: r, createMutatorStore: o, utils: s }, this.transport = Gn({
1459
1459
  baseUrl: e,
1460
1460
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
1461
1461
  // @ts-ignore
@@ -1491,14 +1491,14 @@ class pi {
1491
1491
  const r = e.typeName;
1492
1492
  if (this.clients.has(r))
1493
1493
  return this.clients.get(r);
1494
- const o = qn(e, this.transport);
1494
+ const o = Vn(e, this.transport);
1495
1495
  return this.clients.set(r, o), o;
1496
1496
  };
1497
1497
  getCallbackClient = (e) => {
1498
1498
  const r = e.typeName;
1499
1499
  if (this.callbackClients.has(r))
1500
1500
  return this.callbackClients.get(r);
1501
- const o = Gn(e, this.transport);
1501
+ const o = qn(e, this.transport);
1502
1502
  return this.callbackClients.set(r, o), o;
1503
1503
  };
1504
1504
  // create unary client, used for query request
@@ -1534,7 +1534,7 @@ class pi {
1534
1534
  };
1535
1535
  }
1536
1536
  const di = (t, e) => {
1537
- const { client: r, queryKey: o } = e.createPromiseClient(Kn, {
1537
+ const { client: r, queryKey: o } = e.createPromiseClient(zn, {
1538
1538
  method: "retrieveEventId",
1539
1539
  params: [t]
1540
1540
  });
@@ -1560,12 +1560,12 @@ const di = (t, e) => {
1560
1560
  })).data?.attributes : void 0
1561
1561
  });
1562
1562
  }, gi = (t, e) => {
1563
- const { queryKey: r, client: o } = e.createPromiseClient(Wr, { method: "me", params: [t] });
1563
+ const { queryKey: r, client: o } = e.createPromiseClient(Kr, { method: "me", params: [t] });
1564
1564
  return e.nanoquery.createFetcherStore(r, {
1565
1565
  fetcher: () => o.me({})
1566
1566
  });
1567
1567
  }, mi = (t) => {
1568
- const { client: e } = t.createPromiseClient(Wr, { method: "bypassAuth" });
1568
+ const { client: e } = t.createPromiseClient(Kr, { method: "bypassAuth" });
1569
1569
  return ({ userKey: r, schema: o, init: s }) => e.bypassAuth({ userKey: r, schema: o, init: s });
1570
1570
  }, bi = (t, e) => {
1571
1571
  const { client: r, queryKey: o } = e.createPromiseClient(Tt, { method: "get", params: [t] });
@@ -1621,7 +1621,7 @@ var Ee;
1621
1621
  (function(t) {
1622
1622
  t.SCHEMA = "schema", t.EXTERNAL_TOKEN = "eToken", t.TOKEN = "token";
1623
1623
  })(Ee || (Ee = {}));
1624
- class Ge extends pr {
1624
+ class Qe extends pr {
1625
1625
  constructor() {
1626
1626
  super("user");
1627
1627
  }
@@ -1649,7 +1649,7 @@ var Fe;
1649
1649
  t.DISABLED = "disabled", t.INITIALIZATION = "initialization", t.READY = "ready", t.FAILED = "failed", t.SUSPENDED = "suspended";
1650
1650
  })(Fe || (Fe = {}));
1651
1651
  const Ai = (t) => {
1652
- const e = new Ge(), r = new ce(te(e.getExternalToken()), "userKey"), o = new ce(te(e.getToken()), "userToken"), s = new ue(gi(o.getStore(), t), "user", (l) => l?.data?.data?.id), u = new ue(bi(o.getStore(), t), "userSettings");
1652
+ const e = new Qe(), r = new ue(te(e.getExternalToken()), "userKey"), o = new ue(te(e.getToken()), "userToken"), s = new pe(gi(o.getStore(), t), "user", (l) => l?.data?.data?.id), u = new pe(bi(o.getStore(), t), "userSettings");
1653
1653
  return {
1654
1654
  userKey: r,
1655
1655
  userToken: o,
@@ -1657,7 +1657,7 @@ const Ai = (t) => {
1657
1657
  userSettings: u
1658
1658
  };
1659
1659
  }, Ei = (t) => {
1660
- const e = new ce(te(void 0), "providerStreamId"), r = new ue(di(e.getStore(), t), "slStreamId", (s) => s?.data), o = new ue(yi(r.getAtomStore(), t), "streamSettings");
1660
+ const e = new ue(te(void 0), "providerStreamId"), r = new pe(di(e.getStore(), t), "slStreamId", (s) => s?.data), o = new pe(yi(r.getAtomStore(), t), "streamSettings");
1661
1661
  return r.getAtomStore().listen((s) => {
1662
1662
  (s === "" || s === void 0) && o.getStore().mutate(void 0);
1663
1663
  }), {
@@ -1666,7 +1666,7 @@ const Ai = (t) => {
1666
1666
  streamSettings: o
1667
1667
  };
1668
1668
  }, Ii = (t) => {
1669
- const e = new ce(te(void 0), "enabled"), r = new ce(te(Fe.DISABLED), "status"), o = new ue(wi(e.getStore(), t), "organizationSettings", (f) => f?.data?.id), s = new ue(vi(o.getAtomStore(), t), "organizationAdvertising"), u = Ai(t), l = Ei(t);
1669
+ const e = new ue(te(void 0), "enabled"), r = new ue(te(Fe.DISABLED), "status"), o = new pe(wi(e.getStore(), t), "organizationSettings", (f) => f?.data?.id), s = new pe(vi(o.getAtomStore(), t), "organizationAdvertising"), u = Ai(t), l = Ei(t);
1670
1670
  return {
1671
1671
  enabled: e,
1672
1672
  status: r,
@@ -1681,10 +1681,10 @@ const Ai = (t) => {
1681
1681
  organizationAdvertising: s
1682
1682
  };
1683
1683
  };
1684
- class Fi extends Bt {
1684
+ class Fi extends Ot {
1685
1685
  stores;
1686
1686
  constructor(e) {
1687
- const r = Ii(e), o = ui(r);
1687
+ const r = Ii(e), o = ai(r);
1688
1688
  super(o, "core"), this.stores = r;
1689
1689
  }
1690
1690
  getValue() {
@@ -1705,7 +1705,7 @@ class Fi extends Bt {
1705
1705
  };
1706
1706
  unsubscribe = () => this.getStore().off();
1707
1707
  }
1708
- class Ci extends ai {
1708
+ class Ci extends si {
1709
1709
  $coreStore;
1710
1710
  transport;
1711
1711
  bypassLogin;
@@ -1731,14 +1731,14 @@ class Ci extends ai {
1731
1731
  * Logout user. Clears the all user data from the store.
1732
1732
  */
1733
1733
  logout = () => {
1734
- this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userKey.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth("", ""), new Ge().clear();
1734
+ this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userKey.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth("", ""), new Qe().clear();
1735
1735
  };
1736
1736
  /**
1737
1737
  * Soft logout, only clears the StreamLayer user data from the store.
1738
1738
  * Does not clear the external token. And automatically tries to re-login by external token.
1739
1739
  */
1740
1740
  softLogout = () => {
1741
- const e = new Ge();
1741
+ const e = new Qe();
1742
1742
  this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth("", ""), e.setToken(""), this.reLogin();
1743
1743
  };
1744
1744
  /**
@@ -1749,7 +1749,7 @@ class Ci extends ai {
1749
1749
  * - If no one of the above is true, then logout.
1750
1750
  */
1751
1751
  reLogin = () => {
1752
- const e = new Ge(), r = e.getToken(), o = e.getExternalToken();
1752
+ const e = new Qe(), r = e.getToken(), o = e.getExternalToken();
1753
1753
  if (this.$coreStore.getValues().userKey.setValue(o), this.$coreStore.getValues().userToken.setValue(r), r)
1754
1754
  return this.saveUser(r, ""), this.me().then((s) => {
1755
1755
  if (console.log("user", s), s?.id) {
@@ -1768,7 +1768,7 @@ class Ci extends ai {
1768
1768
  * Write token to the Transport and UserStore
1769
1769
  */
1770
1770
  saveUser = (e, r) => {
1771
- this.transport.setAuth(e, r), this.$coreStore.getValues().userToken.setValue(e), new Ge().setToken(e);
1771
+ this.transport.setAuth(e, r), this.$coreStore.getValues().userToken.setValue(e), new Qe().setToken(e);
1772
1772
  };
1773
1773
  /**
1774
1774
  * Add interceptor to the Transport to handle 401 and 403 errors.
@@ -1784,19 +1784,19 @@ class Ci extends ai {
1784
1784
  });
1785
1785
  };
1786
1786
  }
1787
- const st = new Ge(), Ti = (t, e, r) => {
1787
+ const ot = new Qe(), Ti = (t, e, r) => {
1788
1788
  t.auth = new Ci(t.store, t.transport), t.stores.status.listen((o) => {
1789
1789
  o === Fe.READY && t.auth.reLogin();
1790
1790
  }), t.sdk.authorizationBypass = async (o, s) => {
1791
- st.getSchema() === o && st.getExternalToken() === s && t.transport.getHeader("authorization") || (await t.auth.login(o, s), st.setSchema(o), st.setExternalToken(s));
1791
+ ot.getSchema() === o && ot.getExternalToken() === s && t.transport.getHeader("authorization") || (await t.auth.login(o, s), ot.setSchema(o), ot.setExternalToken(s));
1792
1792
  }, t.sdk.logout = () => {
1793
- t.auth.logout(), st.clear();
1793
+ t.auth.logout(), ot.clear();
1794
1794
  }, t.sdk.getUserStore = () => t.stores.user.getStore(), t.sdk.isUserAuthorized = () => t.auth.isAuthenticated(), r();
1795
1795
  }, _i = (t, e, r) => {
1796
1796
  t.store = new Fi(t.transport), t.stores = t.store.getValues(), t.sdk.enabled = t.stores.enabled.getStore(), t.sdk.status = t.stores.status.getStore(), t.sdk.sdkStore = t.store.getStore(), t.sdk.organizationStore = () => t.stores.organizationSettings.getStore(), t.storeUnsubscribe = () => {
1797
1797
  t.store.unsubscribe();
1798
1798
  }, r();
1799
- }, Bi = (t, e, r) => {
1799
+ }, Oi = (t, e, r) => {
1800
1800
  t.sdk = /* @__PURE__ */ Object.create(null), t.sdk.initializeApp = async () => {
1801
1801
  if (t.stores.enabled.get() === "on")
1802
1802
  return { enabled: !0 };
@@ -1812,10 +1812,10 @@ const st = new Ge(), Ti = (t, e, r) => {
1812
1812
  }, t.sdk.createEventSession = (o) => {
1813
1813
  t.stores.providerStreamId.setValue(o);
1814
1814
  }, r();
1815
- }, Oi = Hn({
1815
+ }, xi = Kn({
1816
1816
  level: "trace"
1817
- }), on = (t, e) => Oi.child({ name: t }, e), xi = (t, e, r) => {
1818
- const { client: o, queryKey: s } = r.createPromiseClient(Jr, {
1817
+ }), rn = (t, e) => xi.child({ name: t }, e), Bi = (t, e, r) => {
1818
+ const { client: o, queryKey: s } = r.createPromiseClient(Hr, {
1819
1819
  method: "summary",
1820
1820
  params: [t, e]
1821
1821
  });
@@ -1826,17 +1826,17 @@ const st = new Ge(), Ti = (t, e, r) => {
1826
1826
  })).data?.attributes
1827
1827
  });
1828
1828
  }, ki = (t) => {
1829
- const { client: e } = t.createPromiseClient(Jr, { method: "list" });
1829
+ const { client: e } = t.createPromiseClient(Hr, { method: "list" });
1830
1830
  return (r) => e.list(r);
1831
1831
  }, Pi = (t, e) => {
1832
- const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "get", params: [t] });
1832
+ const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "get", params: [t] });
1833
1833
  return e.nanoquery.createFetcherStore(o, {
1834
1834
  fetcher: async (s, u, l) => (await r.get({
1835
1835
  eventId: l
1836
1836
  })).data?.attributes
1837
1837
  });
1838
1838
  }, Ri = (t, e) => {
1839
- const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "syncQuestion", params: [t] });
1839
+ const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "syncQuestion", params: [t] });
1840
1840
  return e.nanoquery.createFetcherStore(o, {
1841
1841
  fetcher: async (s, u, l) => l ? (await r.syncQuestion({
1842
1842
  filter: {
@@ -1845,41 +1845,54 @@ const st = new Ge(), Ti = (t, e, r) => {
1845
1845
  })).data?.attributes : void 0
1846
1846
  });
1847
1847
  }, Ni = (t, e) => {
1848
- const { client: r } = e.createCallbackClient(de), o = Ct({ eventId: t.get() || "", feedId: "" });
1848
+ const { client: r } = e.createCallbackClient(ve), o = Ct({ eventId: t.get() || "", feedId: "" });
1849
1849
  return t.subscribe((u = "") => {
1850
1850
  o.set({ eventId: u, feedId: "" });
1851
1851
  }), e.addSubscription(r.subscription, o, { name: "feedSubscription" });
1852
1852
  }, Li = (t, e) => {
1853
- const { client: r } = e.createCallbackClient(de);
1853
+ const { client: r } = e.createCallbackClient(ve);
1854
1854
  return e.addSubscription(r.questionSubscription, { questionId: t }, { name: "questionSubscription" });
1855
- }, Ui = async (t, e) => {
1856
- const { client: r } = e.createPromiseClient(de, { method: "questionByUser", params: [t] });
1855
+ }, nn = async (t, e) => {
1856
+ const { client: r } = e.createPromiseClient(ve, { method: "questionByUser", params: [t] });
1857
1857
  return (await r.questionByUser({
1858
1858
  questionId: t
1859
1859
  })).data?.attributes?.question;
1860
- }, $i = (t, e) => {
1861
- const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "questionByUser", params: [t] });
1862
- return e.nanoquery.createFetcherStore(o, {
1863
- fetcher: async (s, u, l) => (await r.questionByUser({
1864
- questionId: l
1865
- })).data?.attributes?.question
1866
- });
1867
- }, Di = (t, e) => {
1868
- const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "pickHistory", params: [t] });
1860
+ }, Ui = (t, e) => {
1861
+ const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "list", params: [t] });
1869
1862
  return e.nanoquery.createFetcherStore(o, {
1870
- fetcher: async (s, u, l) => l ? (await r.pickHistory({
1863
+ fetcher: async (s, u, l) => l ? (await r.list({
1871
1864
  eventId: l
1872
- })).data?.map(({ attributes: d }) => d) : []
1865
+ })).data : []
1873
1866
  });
1874
- }, ji = (t, e) => {
1875
- const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "insightHistory", params: [t] });
1867
+ }, $i = (t, e) => {
1868
+ const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "insightHistory", params: [t] });
1876
1869
  return e.nanoquery.createFetcherStore(o, {
1877
1870
  fetcher: async (s, u, l) => l ? (await r.insightHistory({
1878
1871
  eventId: l
1879
1872
  })).data?.map(({ attributes: d }) => d) : void 0
1880
1873
  });
1881
- }, sn = (t) => (t.gamification || (t.gamification = new Mi(t)), t.gamification);
1882
- class Mi {
1874
+ }, Di = (t, e, r) => {
1875
+ const o = fr([e, r], (l, f) => {
1876
+ if (l && f.data)
1877
+ return f.data.find((d) => d.id === l);
1878
+ }), s = Le({
1879
+ data: void 0,
1880
+ loading: void 0,
1881
+ error: void 0
1882
+ });
1883
+ return o.subscribe(async (l) => {
1884
+ if (l && l.type === "question") {
1885
+ s.setKey("loading", !0);
1886
+ const f = await nn(l.id, t);
1887
+ s.set({ data: f, loading: !1 });
1888
+ return;
1889
+ }
1890
+ s.set({ data: void 0, loading: !1 });
1891
+ }), { $store: o, $extendedStore: s, updateExtendedQuestion: (l) => {
1892
+ s.set({ data: l });
1893
+ } };
1894
+ }, on = (t) => (t.gamification || (t.gamification = new ji(t)), t.gamification);
1895
+ class ji {
1883
1896
  /** sl event id */
1884
1897
  slStreamId;
1885
1898
  /** organization id */
@@ -1892,6 +1905,7 @@ class Mi {
1892
1905
  openedQuestion;
1893
1906
  /** last active question in feed */
1894
1907
  activeQuestionId;
1908
+ feedList;
1895
1909
  /** moderation id */
1896
1910
  moderationId;
1897
1911
  /** moderation */
@@ -1905,10 +1919,10 @@ class Mi {
1905
1919
  constructor(e) {
1906
1920
  if (e.gamification)
1907
1921
  throw new Error("GamificationBackground Singleton error");
1908
- this.log = on("gamification-background"), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new ce(te(void 0), "moderationId").getStore(), this.openedQuestionId = new ce(te(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new ue(Pi(this.slStreamId, e.transport), "gamification:moderation"), this.activeQuestionId = new ue(Ri(this.slStreamId, e.transport), "gamification:activeQuestionId"), this.openedQuestion = new ue($i(this.openedQuestionId, e.transport), "gamification:openedQuestion"), this.openedQuestionId.listen((r) => {
1922
+ this.log = rn("gamification-background"), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new ue(te(void 0), "moderationId").getStore(), this.openedQuestionId = new ue(te(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new pe(Pi(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new pe(Ui(this.slStreamId, e.transport), "gamification:feedList"), this.activeQuestionId = new pe(Ri(this.slStreamId, e.transport), "gamification:activeQuestionId"), this.openedQuestion = Di(e.transport, this.openedQuestionId, this.feedList.getStore()), this.openedQuestionId.listen((r) => {
1909
1923
  this.log.debug({ questionId: r }, "received question"), r ? (this.questionSubscription = Li(r, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (o) => {
1910
1924
  window.requestAnimationFrame(() => {
1911
- this.openedQuestion.getStore().mutate(o.data?.attributes?.question);
1925
+ this.openedQuestion.updateExtendedQuestion(o.data?.attributes?.question);
1912
1926
  });
1913
1927
  }), this.questionSubscription.connect()) : (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0));
1914
1928
  }), this.feedSubscription = Ni(this.slStreamId, e.transport), this.feedSubscription.addListener("feed-subscription-active-question", (r) => {
@@ -1946,7 +1960,7 @@ class Mi {
1946
1960
  this.openedQuestionId.set(void 0), e && this.notifications.markAsViewed(this.getCurrentSessionId({ prefix: "notification", entity: e }));
1947
1961
  };
1948
1962
  }
1949
- class Vi {
1963
+ class Mi {
1950
1964
  notificationsList;
1951
1965
  notifications;
1952
1966
  store;
@@ -1956,7 +1970,7 @@ class Vi {
1956
1970
  options;
1957
1971
  logger;
1958
1972
  constructor(e) {
1959
- this.options = e, this.logger = on("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notifications = new ce(te(/* @__PURE__ */ new Map()), "notifications-queue"), this.notificationsList = hr(this.notifications.getStore(), (r) => r ? [...r.values()] : []);
1973
+ this.options = e, this.logger = rn("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notifications = new ue(te(/* @__PURE__ */ new Map()), "notifications-queue"), this.notificationsList = ci(this.notifications.getStore(), (r) => r ? [...r.values()] : []);
1960
1974
  }
1961
1975
  addToQueue = (e) => {
1962
1976
  if (this.store.has(e.id)) {
@@ -2020,7 +2034,7 @@ var wt;
2020
2034
  (function(t) {
2021
2035
  t.OPENED = "opened";
2022
2036
  })(wt || (wt = {}));
2023
- class qi extends pr {
2037
+ class Vi extends pr {
2024
2038
  constructor() {
2025
2039
  super("notification");
2026
2040
  }
@@ -2032,15 +2046,15 @@ class qi extends pr {
2032
2046
  this.clear();
2033
2047
  };
2034
2048
  }
2035
- var We;
2049
+ var He;
2036
2050
  (function(t) {
2037
2051
  t[t.ONBOARDING = 1] = "ONBOARDING", t[t.QUESTION = 2] = "QUESTION";
2038
- })(We || (We = {}));
2039
- class Gi {
2052
+ })(He || (He = {}));
2053
+ class qi {
2040
2054
  queue;
2041
2055
  storage;
2042
2056
  constructor(e = {}) {
2043
- this.storage = new qi(), this.queue = new Vi({ concurrency: 1, animationDelay: 300, ...e });
2057
+ this.storage = new Vi(), this.queue = new Mi({ concurrency: 1, animationDelay: 300, ...e });
2044
2058
  }
2045
2059
  add = (e) => {
2046
2060
  this.storage.isOpened(e.id) || this.queue.addToQueue(e);
@@ -2053,23 +2067,23 @@ class Gi {
2053
2067
  this.storage.setOpened(e);
2054
2068
  };
2055
2069
  }
2056
- const Qi = (t, e, r) => {
2057
- t.notifications = new Gi(), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), r();
2058
- }, zi = (t, e) => {
2059
- const { client: r } = t.createPromiseClient(de, { method: "submitAnswer" });
2070
+ const Gi = (t, e, r) => {
2071
+ t.notifications = new qi(), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), r();
2072
+ }, Qi = (t, e) => {
2073
+ const { client: r } = t.createPromiseClient(ve, { method: "submitAnswer" });
2060
2074
  return r.submitAnswer({ data: e });
2061
- }, Ki = (t, e) => {
2062
- const { client: r } = t.createPromiseClient(de, { method: "submitInplay" });
2075
+ }, zi = (t, e) => {
2076
+ const { client: r } = t.createPromiseClient(ve, { method: "submitInplay" });
2063
2077
  return r.submitInplay({ data: { eventId: +e } });
2064
- }, Hi = (t, e) => {
2065
- const { client: r } = t.createPromiseClient(de, { method: "skipQuestion" });
2078
+ }, Ki = (t, e) => {
2079
+ const { client: r } = t.createPromiseClient(ve, { method: "skipQuestion" });
2066
2080
  return r.skipQuestion({ data: { id: e } });
2067
2081
  };
2068
2082
  var vt;
2069
2083
  (function(t) {
2070
2084
  t.ONBOARDING = "onboarding";
2071
2085
  })(vt || (vt = {}));
2072
- class Wi extends pr {
2086
+ class Hi extends pr {
2073
2087
  constructor() {
2074
2088
  super("gamification");
2075
2089
  }
@@ -2080,8 +2094,8 @@ class Wi extends pr {
2080
2094
  }
2081
2095
  const Ir = {
2082
2096
  pageSize: 10
2083
- }, Ji = (t, e, r) => {
2084
- const o = te({ pageSize: r?.pageSize || Ir.pageSize, page: 0 }), s = He({ data: [], loading: void 0, error: void 0 }), u = ki(t), l = async (A) => {
2097
+ }, Wi = (t, e, r) => {
2098
+ const o = te({ pageSize: r?.pageSize || Ir.pageSize, page: 0 }), s = Le({ data: [], loading: void 0, error: void 0 }), u = ki(t), l = async (A) => {
2085
2099
  if (A) {
2086
2100
  s.setKey("loading", !0);
2087
2101
  const g = {
@@ -2112,16 +2126,16 @@ const Ir = {
2112
2126
  const A = o.get();
2113
2127
  o.set({ ...A, page: A.page + 1 });
2114
2128
  }, invalidate: f };
2115
- }, Fr = /* @__PURE__ */ new Set([ze.POLL, ze.PREDICTION, ze.TRIVIA]);
2129
+ }, Ji = /* @__PURE__ */ new Set([st.POLL, st.PREDICTION, st.TRIVIA]);
2116
2130
  var Z;
2117
2131
  (function(t) {
2118
2132
  t.Unset = "unset", t.Required = "required", t.Optional = "optional", t.Completed = "completed", t.Disabled = "disabled", t.Unavailable = "unavailable";
2119
2133
  })(Z || (Z = {}));
2120
- class Yi extends lr {
2134
+ class Yi extends hr {
2121
2135
  /** user statistics (leaderboard panel) */
2122
2136
  userSummary;
2123
- /** questions list (pick history) */
2124
- questions;
2137
+ /** feed list (pick history) */
2138
+ feedList;
2125
2139
  /** pinned leaderboard id */
2126
2140
  leaderboardId;
2127
2141
  /** leaderboard list */
@@ -2139,15 +2153,15 @@ class Yi extends lr {
2139
2153
  /** Browser cache */
2140
2154
  storage;
2141
2155
  constructor(e, r, o) {
2142
- super(e, r), this.background = sn(o), this.storage = new Wi(), this.userSummary = new ue(xi(this.background.slStreamId, this.background.userId, o.transport), "gamification:userSummary"), this.questions = new ue(Di(this.background.slStreamId, o.transport), "gamification:questions"), this.leaderboardId = new ce(te(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = new ce(te(Z.Unset), "onboardingStatus").getStore(), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ae.GAMES), this.openedQuestion = hr(this.background.openedQuestion.getStore(), (s) => s.data?.type && Fr.has(s.data.type) ? { loading: !1, data: s.data } : { loading: s.loading, data: void 0 }), this.leaderboardList = Ji(this.transport, this.background.slStreamId), this.onboardingStatus.subscribe((s) => {
2156
+ super(e, r), this.background = on(o), this.storage = new Hi(), this.userSummary = new pe(Bi(this.background.slStreamId, this.background.userId, o.transport), "gamification:userSummary"), this.feedList = this.background.feedList, this.leaderboardId = new ue(te(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = new ue(te(Z.Unset), "onboardingStatus").getStore(), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ae.GAMES), this.openedQuestion = this.background.openedQuestion, this.leaderboardList = Wi(this.transport, this.background.slStreamId), this.onboardingStatus.subscribe((s) => {
2143
2157
  (s === Z.Optional || Z.Required) && this.showOnboardingInApp();
2144
2158
  }), this.status.subscribe((s) => {
2145
- s === Le.Ready ? (this.notifications.close(this.background.getCurrentSessionId({ prefix: "onboarding" })), this.connect(o.transport)) : this.disconnect();
2159
+ s === Ue.Ready ? (this.notifications.close(this.background.getCurrentSessionId({ prefix: "onboarding" })), this.connect(o.transport)) : this.disconnect();
2146
2160
  }), this.onboardingStatus.subscribe((s) => {
2147
2161
  s && this.background.activeQuestionId.invalidate();
2148
2162
  }), this.background.activeQuestionId.listen((s) => {
2149
- s && s.data && this.onboardingStatus.get() && s.data.question?.id !== void 0 && s.data.question.notification !== void 0 && s.data.moderation?.bypassNotifications?.inAppSilence !== Kr.ON && Fr.has(s.data.question.type) && s.data.question.status === Yt.ACTIVE && this.notifications.add({
2150
- type: We.QUESTION,
2163
+ s && s.data && this.onboardingStatus.get() && s.data.question?.id !== void 0 && s.data.question.notification !== void 0 && s.data.moderation?.bypassNotifications?.inAppSilence !== zr.ON && Ji.has(s.data.question.type) && s.data.question.status === Yt.ACTIVE && this.notifications.add({
2164
+ type: He.QUESTION,
2151
2165
  action: () => s.data?.question && this.openQuestion(s.data.question.id),
2152
2166
  close: () => s.data?.question && this.closeQuestion(s.data.question.id),
2153
2167
  autoHideDuration: +(s.data.moderation?.question?.appearance?.autoHideInterval || "1000"),
@@ -2191,7 +2205,7 @@ class Yi extends lr {
2191
2205
  return;
2192
2206
  const { titleCard: r, overview: o } = e;
2193
2207
  this.notifications.add({
2194
- type: We.ONBOARDING,
2208
+ type: He.ONBOARDING,
2195
2209
  id: this.background.getCurrentSessionId({ prefix: "onboarding" }),
2196
2210
  action: this.openFeature,
2197
2211
  close: this.closeFeature,
@@ -2208,18 +2222,18 @@ class Yi extends lr {
2208
2222
  });
2209
2223
  };
2210
2224
  connect = (e) => {
2211
- this.userSummary.invalidate(), this.leaderboardList.invalidate(), this.questions.invalidate(), this.background.feedSubscription.addListener("feed-subscription-prediction-close", (r) => {
2225
+ this.userSummary.invalidate(), this.leaderboardList.invalidate(), this.feedList.invalidate(), this.background.feedSubscription.addListener("feed-subscription-prediction-close", (r) => {
2212
2226
  window.requestAnimationFrame(async () => {
2213
2227
  const o = r.data?.attributes?.question;
2214
2228
  if (!o)
2215
2229
  return;
2216
2230
  const { status: s, type: u, id: l } = o;
2217
- if (s === Yt.RESOLVED && u === ze.PREDICTION) {
2231
+ if (s === Yt.RESOLVED && u === st.PREDICTION) {
2218
2232
  const f = this.background.getCurrentSessionId({
2219
2233
  prefix: `notification-id:${l}`
2220
- }), A = (await Ui(l, e))?.answers.find(({ correct: g }) => g);
2234
+ }), A = (await nn(l, e))?.answers.find(({ correct: g }) => g);
2221
2235
  this.notifications.add({
2222
- type: We.ONBOARDING,
2236
+ type: He.ONBOARDING,
2223
2237
  action: () => this.openQuestion(l),
2224
2238
  close: () => this.closeQuestion(l),
2225
2239
  autoHideDuration: 5e3,
@@ -2232,7 +2246,7 @@ class Yi extends lr {
2232
2246
  });
2233
2247
  }), this.background.feedSubscription.addListener("feed-subscription-questions-list", () => {
2234
2248
  window.requestAnimationFrame(() => {
2235
- this.questions?.invalidate();
2249
+ this.feedList?.invalidate();
2236
2250
  });
2237
2251
  });
2238
2252
  };
@@ -2242,22 +2256,22 @@ class Yi extends lr {
2242
2256
  // onboarding
2243
2257
  submitInplay = async () => {
2244
2258
  const e = this.background.slStreamId.get();
2245
- e && (await Ki(this.transport, e), this.onboardingStatus.set(Z.Completed), this.storage.saveOnboardingStatus({
2259
+ e && (await zi(this.transport, e), this.onboardingStatus.set(Z.Completed), this.storage.saveOnboardingStatus({
2246
2260
  organizationId: this.background.organizationId.get() || "",
2247
2261
  userId: this.background.userId.get() || "",
2248
2262
  eventId: e
2249
2263
  }, Z.Completed));
2250
2264
  };
2251
2265
  submitAnswer = async (e, r) => {
2252
- await zi(this.transport, { questionId: e, answerId: r }), this.questions?.invalidate();
2266
+ await Qi(this.transport, { questionId: e, answerId: r }), this.feedList?.invalidate();
2253
2267
  };
2254
2268
  skipQuestion = async (e) => {
2255
- await Hi(this.transport, e), this.questions?.invalidate();
2269
+ await Ki(this.transport, e), this.feedList?.invalidate();
2256
2270
  };
2257
2271
  openQuestion = (e) => (this.openFeature(), this.background.openQuestion(e));
2258
2272
  closeQuestion = (e) => this.background.closeQuestion(e);
2259
2273
  }
2260
- class Xi extends lr {
2274
+ class Xi extends hr {
2261
2275
  insights;
2262
2276
  closeFeature;
2263
2277
  openFeature;
@@ -2266,11 +2280,11 @@ class Xi extends lr {
2266
2280
  transport;
2267
2281
  background;
2268
2282
  constructor(e, r, o) {
2269
- super(e, r), this.background = sn(o), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ae.HIGHLIGHTS), this.status.subscribe((s) => {
2270
- s === Le.Ready ? this.connect() : this.disconnect();
2283
+ super(e, r), this.background = on(o), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ae.HIGHLIGHTS), this.status.subscribe((s) => {
2284
+ s === Ue.Ready ? this.connect() : this.disconnect();
2271
2285
  }), this.background.activeQuestionId.listen((s) => {
2272
- s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !== Kr.ON && s.data.question.type === ze.FACTOID && s.data.question.status === Yt.ACTIVE && this.notifications.add({
2273
- type: We.QUESTION,
2286
+ s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !== zr.ON && s.data.question.type === st.FACTOID && s.data.question.status === Yt.ACTIVE && this.notifications.add({
2287
+ type: He.QUESTION,
2274
2288
  action: () => s.data?.question && this.openHighlight(s.data.question.id),
2275
2289
  close: () => s.data?.question && this.closeHighlight(s.data.question.id),
2276
2290
  autoHideDuration: +(s.data.moderation?.question?.appearance?.autoHideInterval || "1000"),
@@ -2283,13 +2297,10 @@ class Xi extends lr {
2283
2297
  imagePosition: s.data.question.notification.imagePosition
2284
2298
  }
2285
2299
  });
2286
- }), this.openedInsight = hr(this.background.openedQuestion.getStore(), (s) => {
2287
- if (s.data?.type === ze.FACTOID)
2288
- return s.data;
2289
- });
2300
+ }), this.openedInsight = this.background.openedQuestion;
2290
2301
  }
2291
2302
  connect = () => {
2292
- this.insights ? this.insights.invalidate() : this.insights = new ue(ji(this.background.slStreamId, this.transport), "gamification:insights"), this.background.feedSubscription.addListener("feed-subscription-insights-list", () => {
2303
+ this.insights ? this.insights.invalidate() : this.insights = new pe($i(this.background.slStreamId, this.transport), "gamification:insights"), this.background.feedSubscription.addListener("feed-subscription-insights-list", () => {
2293
2304
  window.requestAnimationFrame(() => {
2294
2305
  this.insights?.invalidate();
2295
2306
  });
@@ -2302,13 +2313,13 @@ class Xi extends lr {
2302
2313
  closeHighlight = (e) => this.background.closeQuestion(e);
2303
2314
  }
2304
2315
  ae.GAMES + "", ae.HIGHLIGHTS + "";
2305
- class Zi extends lr {
2316
+ class Zi extends hr {
2306
2317
  constructor(e, r) {
2307
2318
  super(e, r);
2308
2319
  }
2309
2320
  }
2310
2321
  const eo = (t, e, r) => t.type === ae.GAMES ? new Yi(t, e, r) : t.type === ae.HIGHLIGHTS ? new Xi(t, e, r) : new Zi(t, e), to = (t, e, r) => {
2311
- t.features = /* @__PURE__ */ new Map(), t.activeFeature = new ce(te(ae.UNSET), "activeFeature"), t.sdk.getFeatures = () => t.features, t.sdk.getFeature = (o) => t.features.get(o), t.sdk.getActiveFeature = () => t.activeFeature.getStore(), t.sdk.openFeature = (o) => {
2322
+ t.features = /* @__PURE__ */ new Map(), t.activeFeature = new ue(te(ae.UNSET), "activeFeature"), t.sdk.getFeatures = () => t.features, t.sdk.getFeature = (o) => t.features.get(o), t.sdk.getActiveFeature = () => t.activeFeature.getStore(), t.sdk.openFeature = (o) => {
2312
2323
  t.activeFeature.setValue(o);
2313
2324
  }, t.sdk.closeFeature = () => {
2314
2325
  t.activeFeature.setValue(ae.UNSET);
@@ -2379,7 +2390,7 @@ function ro(t) {
2379
2390
  };
2380
2391
  }
2381
2392
  var no = ro, io = no;
2382
- function an(t, e, r) {
2393
+ function sn(t, e, r) {
2383
2394
  if (typeof t == "function" && (r = e, e = t, t = null), r < 1)
2384
2395
  throw new Error("fastqueue concurrency must be greater than 1");
2385
2396
  var o = io(oo), s = null, u = null, l = 0, f = null, d = {
@@ -2397,7 +2408,7 @@ function an(t, e, r) {
2397
2408
  unshift: Q,
2398
2409
  empty: se,
2399
2410
  kill: X,
2400
- killAndDrain: ye,
2411
+ killAndDrain: de,
2401
2412
  error: ee
2402
2413
  };
2403
2414
  return d;
@@ -2408,46 +2419,46 @@ function an(t, e, r) {
2408
2419
  d.paused = !0;
2409
2420
  }
2410
2421
  function w() {
2411
- for (var x = s, j = 0; x; )
2412
- x = x.next, j++;
2422
+ for (var B = s, j = 0; B; )
2423
+ B = B.next, j++;
2413
2424
  return j;
2414
2425
  }
2415
2426
  function E() {
2416
- for (var x = s, j = []; x; )
2417
- j.push(x.value), x = x.next;
2427
+ for (var B = s, j = []; B; )
2428
+ j.push(B.value), B = B.next;
2418
2429
  return j;
2419
2430
  }
2420
2431
  function C() {
2421
2432
  if (d.paused) {
2422
2433
  d.paused = !1;
2423
- for (var x = 0; x < d.concurrency; x++)
2434
+ for (var B = 0; B < d.concurrency; B++)
2424
2435
  l++, z();
2425
2436
  }
2426
2437
  }
2427
2438
  function P() {
2428
2439
  return l === 0 && d.length() === 0;
2429
2440
  }
2430
- function N(x, j) {
2431
- var B = o.get();
2432
- B.context = t, B.release = z, B.value = x, B.callback = j || se, B.errorHandler = f, l === d.concurrency || d.paused ? u ? (u.next = B, u = B) : (s = B, u = B, d.saturated()) : (l++, e.call(t, B.value, B.worked));
2441
+ function N(B, j) {
2442
+ var O = o.get();
2443
+ O.context = t, O.release = z, O.value = B, O.callback = j || se, O.errorHandler = f, l === d.concurrency || d.paused ? u ? (u.next = O, u = O) : (s = O, u = O, d.saturated()) : (l++, e.call(t, O.value, O.worked));
2433
2444
  }
2434
- function Q(x, j) {
2435
- var B = o.get();
2436
- B.context = t, B.release = z, B.value = x, B.callback = j || se, l === d.concurrency || d.paused ? s ? (B.next = s, s = B) : (s = B, u = B, d.saturated()) : (l++, e.call(t, B.value, B.worked));
2445
+ function Q(B, j) {
2446
+ var O = o.get();
2447
+ O.context = t, O.release = z, O.value = B, O.callback = j || se, l === d.concurrency || d.paused ? s ? (O.next = s, s = O) : (s = O, u = O, d.saturated()) : (l++, e.call(t, O.value, O.worked));
2437
2448
  }
2438
- function z(x) {
2439
- x && o.release(x);
2449
+ function z(B) {
2450
+ B && o.release(B);
2440
2451
  var j = s;
2441
2452
  j ? d.paused ? l-- : (u === s && (u = null), s = j.next, j.next = null, e.call(t, j.value, j.worked), u === null && d.empty()) : --l === 0 && d.drain();
2442
2453
  }
2443
2454
  function X() {
2444
2455
  s = null, u = null, d.drain = se;
2445
2456
  }
2446
- function ye() {
2457
+ function de() {
2447
2458
  s = null, u = null, d.drain(), d.drain = se;
2448
2459
  }
2449
- function ee(x) {
2450
- f = x;
2460
+ function ee(B) {
2461
+ f = B;
2451
2462
  }
2452
2463
  }
2453
2464
  function se() {
@@ -2467,7 +2478,7 @@ function so(t, e, r) {
2467
2478
  w(null, E);
2468
2479
  }, w);
2469
2480
  }
2470
- var s = an(t, o, r), u = s.push, l = s.unshift;
2481
+ var s = sn(t, o, r), u = s.push, l = s.unshift;
2471
2482
  return s.push = f, s.unshift = d, s.drained = A, s;
2472
2483
  function f(g) {
2473
2484
  var w = new Promise(function(E, C) {
@@ -2506,12 +2517,12 @@ function so(t, e, r) {
2506
2517
  return w;
2507
2518
  }
2508
2519
  }
2509
- yr.exports = an;
2520
+ yr.exports = sn;
2510
2521
  yr.exports.promise = so;
2511
- var un = yr.exports, gr = { exports: {} }, Je = typeof Reflect == "object" ? Reflect : null, Cr = Je && typeof Je.apply == "function" ? Je.apply : function(e, r, o) {
2522
+ var an = yr.exports, gr = { exports: {} }, We = typeof Reflect == "object" ? Reflect : null, Fr = We && typeof We.apply == "function" ? We.apply : function(e, r, o) {
2512
2523
  return Function.prototype.apply.call(e, r, o);
2513
2524
  }, dt;
2514
- Je && typeof Je.ownKeys == "function" ? dt = Je.ownKeys : Object.getOwnPropertySymbols ? dt = function(e) {
2525
+ We && typeof We.ownKeys == "function" ? dt = We.ownKeys : Object.getOwnPropertySymbols ? dt = function(e) {
2515
2526
  return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
2516
2527
  } : dt = function(e) {
2517
2528
  return Object.getOwnPropertyNames(e);
@@ -2519,7 +2530,7 @@ Je && typeof Je.ownKeys == "function" ? dt = Je.ownKeys : Object.getOwnPropertyS
2519
2530
  function ao(t) {
2520
2531
  console && console.warn && console.warn(t);
2521
2532
  }
2522
- var cn = Number.isNaN || function(e) {
2533
+ var un = Number.isNaN || function(e) {
2523
2534
  return e !== e;
2524
2535
  };
2525
2536
  function $() {
@@ -2531,35 +2542,35 @@ $.EventEmitter = $;
2531
2542
  $.prototype._events = void 0;
2532
2543
  $.prototype._eventsCount = 0;
2533
2544
  $.prototype._maxListeners = void 0;
2534
- var Tr = 10;
2535
- function Ot(t) {
2545
+ var Cr = 10;
2546
+ function xt(t) {
2536
2547
  if (typeof t != "function")
2537
2548
  throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t);
2538
2549
  }
2539
2550
  Object.defineProperty($, "defaultMaxListeners", {
2540
2551
  enumerable: !0,
2541
2552
  get: function() {
2542
- return Tr;
2553
+ return Cr;
2543
2554
  },
2544
2555
  set: function(t) {
2545
- if (typeof t != "number" || t < 0 || cn(t))
2556
+ if (typeof t != "number" || t < 0 || un(t))
2546
2557
  throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + ".");
2547
- Tr = t;
2558
+ Cr = t;
2548
2559
  }
2549
2560
  });
2550
2561
  $.init = function() {
2551
2562
  (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
2552
2563
  };
2553
2564
  $.prototype.setMaxListeners = function(e) {
2554
- if (typeof e != "number" || e < 0 || cn(e))
2565
+ if (typeof e != "number" || e < 0 || un(e))
2555
2566
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
2556
2567
  return this._maxListeners = e, this;
2557
2568
  };
2558
- function fn(t) {
2569
+ function cn(t) {
2559
2570
  return t._maxListeners === void 0 ? $.defaultMaxListeners : t._maxListeners;
2560
2571
  }
2561
2572
  $.prototype.getMaxListeners = function() {
2562
- return fn(this);
2573
+ return cn(this);
2563
2574
  };
2564
2575
  $.prototype.emit = function(e) {
2565
2576
  for (var r = [], o = 1; o < arguments.length; o++)
@@ -2580,21 +2591,21 @@ $.prototype.emit = function(e) {
2580
2591
  if (d === void 0)
2581
2592
  return !1;
2582
2593
  if (typeof d == "function")
2583
- Cr(d, this, r);
2594
+ Fr(d, this, r);
2584
2595
  else
2585
- for (var A = d.length, g = yn(d, A), o = 0; o < A; ++o)
2586
- Cr(g[o], this, r);
2596
+ for (var A = d.length, g = dn(d, A), o = 0; o < A; ++o)
2597
+ Fr(g[o], this, r);
2587
2598
  return !0;
2588
2599
  };
2589
- function ln(t, e, r, o) {
2600
+ function fn(t, e, r, o) {
2590
2601
  var s, u, l;
2591
- if (Ot(r), u = t._events, u === void 0 ? (u = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (u.newListener !== void 0 && (t.emit(
2602
+ if (xt(r), u = t._events, u === void 0 ? (u = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (u.newListener !== void 0 && (t.emit(
2592
2603
  "newListener",
2593
2604
  e,
2594
2605
  r.listener ? r.listener : r
2595
2606
  ), u = t._events), l = u[e]), l === void 0)
2596
2607
  l = u[e] = r, ++t._eventsCount;
2597
- else if (typeof l == "function" ? l = u[e] = o ? [r, l] : [l, r] : o ? l.unshift(r) : l.push(r), s = fn(t), s > 0 && l.length > s && !l.warned) {
2608
+ else if (typeof l == "function" ? l = u[e] = o ? [r, l] : [l, r] : o ? l.unshift(r) : l.push(r), s = cn(t), s > 0 && l.length > s && !l.warned) {
2598
2609
  l.warned = !0;
2599
2610
  var f = new Error("Possible EventEmitter memory leak detected. " + l.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
2600
2611
  f.name = "MaxListenersExceededWarning", f.emitter = t, f.type = e, f.count = l.length, ao(f);
@@ -2602,29 +2613,29 @@ function ln(t, e, r, o) {
2602
2613
  return t;
2603
2614
  }
2604
2615
  $.prototype.addListener = function(e, r) {
2605
- return ln(this, e, r, !1);
2616
+ return fn(this, e, r, !1);
2606
2617
  };
2607
2618
  $.prototype.on = $.prototype.addListener;
2608
2619
  $.prototype.prependListener = function(e, r) {
2609
- return ln(this, e, r, !0);
2620
+ return fn(this, e, r, !0);
2610
2621
  };
2611
2622
  function uo() {
2612
2623
  if (!this.fired)
2613
2624
  return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
2614
2625
  }
2615
- function hn(t, e, r) {
2626
+ function ln(t, e, r) {
2616
2627
  var o = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s = uo.bind(o);
2617
2628
  return s.listener = r, o.wrapFn = s, s;
2618
2629
  }
2619
2630
  $.prototype.once = function(e, r) {
2620
- return Ot(r), this.on(e, hn(this, e, r)), this;
2631
+ return xt(r), this.on(e, ln(this, e, r)), this;
2621
2632
  };
2622
2633
  $.prototype.prependOnceListener = function(e, r) {
2623
- return Ot(r), this.prependListener(e, hn(this, e, r)), this;
2634
+ return xt(r), this.prependListener(e, ln(this, e, r)), this;
2624
2635
  };
2625
2636
  $.prototype.removeListener = function(e, r) {
2626
2637
  var o, s, u, l, f;
2627
- if (Ot(r), s = this._events, s === void 0)
2638
+ if (xt(r), s = this._events, s === void 0)
2628
2639
  return this;
2629
2640
  if (o = s[e], o === void 0)
2630
2641
  return this;
@@ -2662,24 +2673,24 @@ $.prototype.removeAllListeners = function(e) {
2662
2673
  this.removeListener(e, r[s]);
2663
2674
  return this;
2664
2675
  };
2665
- function pn(t, e, r) {
2676
+ function hn(t, e, r) {
2666
2677
  var o = t._events;
2667
2678
  if (o === void 0)
2668
2679
  return [];
2669
2680
  var s = o[e];
2670
- return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ? fo(s) : yn(s, s.length);
2681
+ return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ? fo(s) : dn(s, s.length);
2671
2682
  }
2672
2683
  $.prototype.listeners = function(e) {
2673
- return pn(this, e, !0);
2684
+ return hn(this, e, !0);
2674
2685
  };
2675
2686
  $.prototype.rawListeners = function(e) {
2676
- return pn(this, e, !1);
2687
+ return hn(this, e, !1);
2677
2688
  };
2678
2689
  $.listenerCount = function(t, e) {
2679
- return typeof t.listenerCount == "function" ? t.listenerCount(e) : dn.call(t, e);
2690
+ return typeof t.listenerCount == "function" ? t.listenerCount(e) : pn.call(t, e);
2680
2691
  };
2681
- $.prototype.listenerCount = dn;
2682
- function dn(t) {
2692
+ $.prototype.listenerCount = pn;
2693
+ function pn(t) {
2683
2694
  var e = this._events;
2684
2695
  if (e !== void 0) {
2685
2696
  var r = e[t];
@@ -2693,7 +2704,7 @@ function dn(t) {
2693
2704
  $.prototype.eventNames = function() {
2694
2705
  return this._eventsCount > 0 ? dt(this._events) : [];
2695
2706
  };
2696
- function yn(t, e) {
2707
+ function dn(t, e) {
2697
2708
  for (var r = new Array(e), o = 0; o < e; ++o)
2698
2709
  r[o] = t[o];
2699
2710
  return r;
@@ -2716,13 +2727,13 @@ function lo(t, e) {
2716
2727
  function u() {
2717
2728
  typeof t.removeListener == "function" && t.removeListener("error", s), r([].slice.call(arguments));
2718
2729
  }
2719
- gn(t, e, u, { once: !0 }), e !== "error" && ho(t, s, { once: !0 });
2730
+ yn(t, e, u, { once: !0 }), e !== "error" && ho(t, s, { once: !0 });
2720
2731
  });
2721
2732
  }
2722
2733
  function ho(t, e, r) {
2723
- typeof t.on == "function" && gn(t, "error", e, r);
2734
+ typeof t.on == "function" && yn(t, "error", e, r);
2724
2735
  }
2725
- function gn(t, e, r, o) {
2736
+ function yn(t, e, r, o) {
2726
2737
  if (typeof t.on == "function")
2727
2738
  o.once ? t.once(e, r) : t.on(e, r);
2728
2739
  else if (typeof t.addEventListener == "function")
@@ -2732,7 +2743,7 @@ function gn(t, e, r, o) {
2732
2743
  else
2733
2744
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
2734
2745
  }
2735
- var mn = gr.exports, xt = {}, bn = {}, wn = function() {
2746
+ var gn = gr.exports, Bt = {}, mn = {}, bn = function() {
2736
2747
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
2737
2748
  return !1;
2738
2749
  if (typeof Symbol.iterator == "symbol")
@@ -2755,14 +2766,14 @@ var mn = gr.exports, xt = {}, bn = {}, wn = function() {
2755
2766
  return !1;
2756
2767
  }
2757
2768
  return !0;
2758
- }, po = wn, mr = function() {
2769
+ }, po = bn, mr = function() {
2759
2770
  return po() && !!Symbol.toStringTag;
2760
- }, _r = typeof Symbol < "u" && Symbol, yo = wn, go = function() {
2761
- return typeof _r != "function" || typeof Symbol != "function" || typeof _r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : yo();
2762
- }, Br = {
2771
+ }, Tr = typeof Symbol < "u" && Symbol, yo = bn, go = function() {
2772
+ return typeof Tr != "function" || typeof Symbol != "function" || typeof Tr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : yo();
2773
+ }, _r = {
2763
2774
  foo: {}
2764
2775
  }, mo = Object, bo = function() {
2765
- return { __proto__: Br }.foo === Br.foo && !({ __proto__: null } instanceof mo);
2776
+ return { __proto__: _r }.foo === _r.foo && !({ __proto__: null } instanceof mo);
2766
2777
  }, wo = "Function.prototype.bind called on incompatible ", vo = Object.prototype.toString, So = Math.max, Ao = "[object Function]", Or = function(e, r) {
2767
2778
  for (var o = [], s = 0; s < e.length; s += 1)
2768
2779
  o[s] = e[s];
@@ -2801,44 +2812,44 @@ var mn = gr.exports, xt = {}, bn = {}, wn = function() {
2801
2812
  A.prototype = r.prototype, s.prototype = new A(), A.prototype = null;
2802
2813
  }
2803
2814
  return s;
2804
- }, Co = Fo, vn = Function.prototype.bind || Co, xr = {}.hasOwnProperty, Lt = Function.prototype.call, To = Lt.bind ? Lt.bind(xr) : function(t, e) {
2815
+ }, Co = Fo, wn = Function.prototype.bind || Co, xr = {}.hasOwnProperty, Lt = Function.prototype.call, To = Lt.bind ? Lt.bind(xr) : function(t, e) {
2805
2816
  return Lt.call(xr, t, e);
2806
- }, k, Xe = SyntaxError, Sn = Function, Ye = TypeError, Ut = function(t) {
2817
+ }, k, Ye = SyntaxError, vn = Function, Je = TypeError, Ut = function(t) {
2807
2818
  try {
2808
- return Sn('"use strict"; return (' + t + ").constructor;")();
2819
+ return vn('"use strict"; return (' + t + ").constructor;")();
2809
2820
  } catch {
2810
2821
  }
2811
- }, Ue = Object.getOwnPropertyDescriptor;
2812
- if (Ue)
2822
+ }, $e = Object.getOwnPropertyDescriptor;
2823
+ if ($e)
2813
2824
  try {
2814
- Ue({}, "");
2825
+ $e({}, "");
2815
2826
  } catch {
2816
- Ue = null;
2827
+ $e = null;
2817
2828
  }
2818
2829
  var $t = function() {
2819
- throw new Ye();
2820
- }, _o = Ue ? function() {
2830
+ throw new Je();
2831
+ }, _o = $e ? function() {
2821
2832
  try {
2822
2833
  return arguments.callee, $t;
2823
2834
  } catch {
2824
2835
  try {
2825
- return Ue(arguments, "callee").get;
2836
+ return $e(arguments, "callee").get;
2826
2837
  } catch {
2827
2838
  return $t;
2828
2839
  }
2829
2840
  }
2830
- }() : $t, Me = go(), Bo = bo(), H = Object.getPrototypeOf || (Bo ? function(t) {
2841
+ }() : $t, Ve = go(), Oo = bo(), H = Object.getPrototypeOf || (Oo ? function(t) {
2831
2842
  return t.__proto__;
2832
- } : null), qe = {}, Oo = typeof Uint8Array > "u" || !H ? k : H(Uint8Array), $e = {
2843
+ } : null), Ge = {}, xo = typeof Uint8Array > "u" || !H ? k : H(Uint8Array), De = {
2833
2844
  "%AggregateError%": typeof AggregateError > "u" ? k : AggregateError,
2834
2845
  "%Array%": Array,
2835
2846
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? k : ArrayBuffer,
2836
- "%ArrayIteratorPrototype%": Me && H ? H([][Symbol.iterator]()) : k,
2847
+ "%ArrayIteratorPrototype%": Ve && H ? H([][Symbol.iterator]()) : k,
2837
2848
  "%AsyncFromSyncIteratorPrototype%": k,
2838
- "%AsyncFunction%": qe,
2839
- "%AsyncGenerator%": qe,
2840
- "%AsyncGeneratorFunction%": qe,
2841
- "%AsyncIteratorPrototype%": qe,
2849
+ "%AsyncFunction%": Ge,
2850
+ "%AsyncGenerator%": Ge,
2851
+ "%AsyncGeneratorFunction%": Ge,
2852
+ "%AsyncIteratorPrototype%": Ge,
2842
2853
  "%Atomics%": typeof Atomics > "u" ? k : Atomics,
2843
2854
  "%BigInt%": typeof BigInt > "u" ? k : BigInt,
2844
2855
  "%BigInt64Array%": typeof BigInt64Array > "u" ? k : BigInt64Array,
@@ -2857,17 +2868,17 @@ var $t = function() {
2857
2868
  "%Float32Array%": typeof Float32Array > "u" ? k : Float32Array,
2858
2869
  "%Float64Array%": typeof Float64Array > "u" ? k : Float64Array,
2859
2870
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? k : FinalizationRegistry,
2860
- "%Function%": Sn,
2861
- "%GeneratorFunction%": qe,
2871
+ "%Function%": vn,
2872
+ "%GeneratorFunction%": Ge,
2862
2873
  "%Int8Array%": typeof Int8Array > "u" ? k : Int8Array,
2863
2874
  "%Int16Array%": typeof Int16Array > "u" ? k : Int16Array,
2864
2875
  "%Int32Array%": typeof Int32Array > "u" ? k : Int32Array,
2865
2876
  "%isFinite%": isFinite,
2866
2877
  "%isNaN%": isNaN,
2867
- "%IteratorPrototype%": Me && H ? H(H([][Symbol.iterator]())) : k,
2878
+ "%IteratorPrototype%": Ve && H ? H(H([][Symbol.iterator]())) : k,
2868
2879
  "%JSON%": typeof JSON == "object" ? JSON : k,
2869
2880
  "%Map%": typeof Map > "u" ? k : Map,
2870
- "%MapIteratorPrototype%": typeof Map > "u" || !Me || !H ? k : H((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2881
+ "%MapIteratorPrototype%": typeof Map > "u" || !Ve || !H ? k : H((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2871
2882
  "%Math%": Math,
2872
2883
  "%Number%": Number,
2873
2884
  "%Object%": Object,
@@ -2880,15 +2891,15 @@ var $t = function() {
2880
2891
  "%Reflect%": typeof Reflect > "u" ? k : Reflect,
2881
2892
  "%RegExp%": RegExp,
2882
2893
  "%Set%": typeof Set > "u" ? k : Set,
2883
- "%SetIteratorPrototype%": typeof Set > "u" || !Me || !H ? k : H((/* @__PURE__ */ new Set())[Symbol.iterator]()),
2894
+ "%SetIteratorPrototype%": typeof Set > "u" || !Ve || !H ? k : H((/* @__PURE__ */ new Set())[Symbol.iterator]()),
2884
2895
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? k : SharedArrayBuffer,
2885
2896
  "%String%": String,
2886
- "%StringIteratorPrototype%": Me && H ? H(""[Symbol.iterator]()) : k,
2887
- "%Symbol%": Me ? Symbol : k,
2888
- "%SyntaxError%": Xe,
2897
+ "%StringIteratorPrototype%": Ve && H ? H(""[Symbol.iterator]()) : k,
2898
+ "%Symbol%": Ve ? Symbol : k,
2899
+ "%SyntaxError%": Ye,
2889
2900
  "%ThrowTypeError%": _o,
2890
- "%TypedArray%": Oo,
2891
- "%TypeError%": Ye,
2901
+ "%TypedArray%": xo,
2902
+ "%TypeError%": Je,
2892
2903
  "%Uint8Array%": typeof Uint8Array > "u" ? k : Uint8Array,
2893
2904
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? k : Uint8ClampedArray,
2894
2905
  "%Uint16Array%": typeof Uint16Array > "u" ? k : Uint16Array,
@@ -2902,8 +2913,8 @@ if (H)
2902
2913
  try {
2903
2914
  null.error;
2904
2915
  } catch (t) {
2905
- var xo = H(H(t));
2906
- $e["%Error.prototype%"] = xo;
2916
+ var Bo = H(H(t));
2917
+ De["%Error.prototype%"] = Bo;
2907
2918
  }
2908
2919
  var ko = function t(e) {
2909
2920
  var r;
@@ -2920,8 +2931,8 @@ var ko = function t(e) {
2920
2931
  var s = t("%AsyncGenerator%");
2921
2932
  s && H && (r = H(s.prototype));
2922
2933
  }
2923
- return $e[e] = r, r;
2924
- }, kr = {
2934
+ return De[e] = r, r;
2935
+ }, Br = {
2925
2936
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
2926
2937
  "%ArrayPrototype%": ["Array", "prototype"],
2927
2938
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -2973,60 +2984,60 @@ var ko = function t(e) {
2973
2984
  "%URIErrorPrototype%": ["URIError", "prototype"],
2974
2985
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2975
2986
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2976
- }, ft = vn, St = To, Po = ft.call(Function.call, Array.prototype.concat), Ro = ft.call(Function.apply, Array.prototype.splice), Pr = ft.call(Function.call, String.prototype.replace), At = ft.call(Function.call, String.prototype.slice), No = ft.call(Function.call, RegExp.prototype.exec), Lo = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Uo = /\\(\\)?/g, $o = function(e) {
2987
+ }, ft = wn, St = To, Po = ft.call(Function.call, Array.prototype.concat), Ro = ft.call(Function.apply, Array.prototype.splice), kr = ft.call(Function.call, String.prototype.replace), At = ft.call(Function.call, String.prototype.slice), No = ft.call(Function.call, RegExp.prototype.exec), Lo = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Uo = /\\(\\)?/g, $o = function(e) {
2977
2988
  var r = At(e, 0, 1), o = At(e, -1);
2978
2989
  if (r === "%" && o !== "%")
2979
- throw new Xe("invalid intrinsic syntax, expected closing `%`");
2990
+ throw new Ye("invalid intrinsic syntax, expected closing `%`");
2980
2991
  if (o === "%" && r !== "%")
2981
- throw new Xe("invalid intrinsic syntax, expected opening `%`");
2992
+ throw new Ye("invalid intrinsic syntax, expected opening `%`");
2982
2993
  var s = [];
2983
- return Pr(e, Lo, function(u, l, f, d) {
2984
- s[s.length] = f ? Pr(d, Uo, "$1") : l || u;
2994
+ return kr(e, Lo, function(u, l, f, d) {
2995
+ s[s.length] = f ? kr(d, Uo, "$1") : l || u;
2985
2996
  }), s;
2986
2997
  }, Do = function(e, r) {
2987
2998
  var o = e, s;
2988
- if (St(kr, o) && (s = kr[o], o = "%" + s[0] + "%"), St($e, o)) {
2989
- var u = $e[o];
2990
- if (u === qe && (u = ko(o)), typeof u > "u" && !r)
2991
- throw new Ye("intrinsic " + e + " exists, but is not available. Please file an issue!");
2999
+ if (St(Br, o) && (s = Br[o], o = "%" + s[0] + "%"), St(De, o)) {
3000
+ var u = De[o];
3001
+ if (u === Ge && (u = ko(o)), typeof u > "u" && !r)
3002
+ throw new Je("intrinsic " + e + " exists, but is not available. Please file an issue!");
2992
3003
  return {
2993
3004
  alias: s,
2994
3005
  name: o,
2995
3006
  value: u
2996
3007
  };
2997
3008
  }
2998
- throw new Xe("intrinsic " + e + " does not exist!");
2999
- }, et = function(e, r) {
3009
+ throw new Ye("intrinsic " + e + " does not exist!");
3010
+ }, Ze = function(e, r) {
3000
3011
  if (typeof e != "string" || e.length === 0)
3001
- throw new Ye("intrinsic name must be a non-empty string");
3012
+ throw new Je("intrinsic name must be a non-empty string");
3002
3013
  if (arguments.length > 1 && typeof r != "boolean")
3003
- throw new Ye('"allowMissing" argument must be a boolean');
3014
+ throw new Je('"allowMissing" argument must be a boolean');
3004
3015
  if (No(/^%?[^%]*%?$/, e) === null)
3005
- throw new Xe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3016
+ throw new Ye("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3006
3017
  var o = $o(e), s = o.length > 0 ? o[0] : "", u = Do("%" + s + "%", r), l = u.name, f = u.value, d = !1, A = u.alias;
3007
3018
  A && (s = A[0], Ro(o, Po([0, 1], A)));
3008
3019
  for (var g = 1, w = !0; g < o.length; g += 1) {
3009
3020
  var E = o[g], C = At(E, 0, 1), P = At(E, -1);
3010
3021
  if ((C === '"' || C === "'" || C === "`" || P === '"' || P === "'" || P === "`") && C !== P)
3011
- throw new Xe("property names with quotes must have matching quotes");
3012
- if ((E === "constructor" || !w) && (d = !0), s += "." + E, l = "%" + s + "%", St($e, l))
3013
- f = $e[l];
3022
+ throw new Ye("property names with quotes must have matching quotes");
3023
+ if ((E === "constructor" || !w) && (d = !0), s += "." + E, l = "%" + s + "%", St(De, l))
3024
+ f = De[l];
3014
3025
  else if (f != null) {
3015
3026
  if (!(E in f)) {
3016
3027
  if (!r)
3017
- throw new Ye("base intrinsic for " + e + " exists, but the property is not available.");
3028
+ throw new Je("base intrinsic for " + e + " exists, but the property is not available.");
3018
3029
  return;
3019
3030
  }
3020
- if (Ue && g + 1 >= o.length) {
3021
- var N = Ue(f, E);
3031
+ if ($e && g + 1 >= o.length) {
3032
+ var N = $e(f, E);
3022
3033
  w = !!N, w && "get" in N && !("originalValue" in N.get) ? f = N.get : f = f[E];
3023
3034
  } else
3024
3035
  w = St(f, E), f = f[E];
3025
- w && !d && ($e[l] = f);
3036
+ w && !d && (De[l] = f);
3026
3037
  }
3027
3038
  }
3028
3039
  return f;
3029
- }, An = { exports: {} }, jo = et, er = jo("%Object.defineProperty%", !0), tr = function() {
3040
+ }, Sn = { exports: {} }, jo = Ze, er = jo("%Object.defineProperty%", !0), tr = function() {
3030
3041
  if (er)
3031
3042
  try {
3032
3043
  return er({}, "a", { value: 1 }), !0;
@@ -3044,34 +3055,34 @@ tr.hasArrayLengthDefineBug = function() {
3044
3055
  return !0;
3045
3056
  }
3046
3057
  };
3047
- var En = tr, Mo = et, yt = Mo("%Object.getOwnPropertyDescriptor%", !0);
3058
+ var An = tr, Mo = Ze, yt = Mo("%Object.getOwnPropertyDescriptor%", !0);
3048
3059
  if (yt)
3049
3060
  try {
3050
3061
  yt([], "length");
3051
3062
  } catch {
3052
3063
  yt = null;
3053
3064
  }
3054
- var br = yt, Vo = En(), wr = et, ut = Vo && wr("%Object.defineProperty%", !0);
3065
+ var br = yt, Vo = An(), wr = Ze, ut = Vo && wr("%Object.defineProperty%", !0);
3055
3066
  if (ut)
3056
3067
  try {
3057
3068
  ut({}, "a", { value: 1 });
3058
3069
  } catch {
3059
3070
  ut = !1;
3060
3071
  }
3061
- var qo = wr("%SyntaxError%"), Ve = wr("%TypeError%"), Rr = br, Go = function(e, r, o) {
3072
+ var qo = wr("%SyntaxError%"), qe = wr("%TypeError%"), Pr = br, Go = function(e, r, o) {
3062
3073
  if (!e || typeof e != "object" && typeof e != "function")
3063
- throw new Ve("`obj` must be an object or a function`");
3074
+ throw new qe("`obj` must be an object or a function`");
3064
3075
  if (typeof r != "string" && typeof r != "symbol")
3065
- throw new Ve("`property` must be a string or a symbol`");
3076
+ throw new qe("`property` must be a string or a symbol`");
3066
3077
  if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
3067
- throw new Ve("`nonEnumerable`, if provided, must be a boolean or null");
3078
+ throw new qe("`nonEnumerable`, if provided, must be a boolean or null");
3068
3079
  if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
3069
- throw new Ve("`nonWritable`, if provided, must be a boolean or null");
3080
+ throw new qe("`nonWritable`, if provided, must be a boolean or null");
3070
3081
  if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
3071
- throw new Ve("`nonConfigurable`, if provided, must be a boolean or null");
3082
+ throw new qe("`nonConfigurable`, if provided, must be a boolean or null");
3072
3083
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
3073
- throw new Ve("`loose`, if provided, must be a boolean");
3074
- var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, d = !!Rr && Rr(e, r);
3084
+ throw new qe("`loose`, if provided, must be a boolean");
3085
+ var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, d = !!Pr && Pr(e, r);
3075
3086
  if (ut)
3076
3087
  ut(e, r, {
3077
3088
  configurable: l === null && d ? d.configurable : !l,
@@ -3083,20 +3094,20 @@ var qo = wr("%SyntaxError%"), Ve = wr("%TypeError%"), Rr = br, Go = function(e,
3083
3094
  e[r] = o;
3084
3095
  else
3085
3096
  throw new qo("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
3086
- }, In = et, Nr = Go, Qo = En(), Lr = br, Ur = In("%TypeError%"), zo = In("%Math.floor%"), Ko = function(e, r) {
3097
+ }, En = Ze, Rr = Go, Qo = An(), Nr = br, Lr = En("%TypeError%"), zo = En("%Math.floor%"), Ko = function(e, r) {
3087
3098
  if (typeof e != "function")
3088
- throw new Ur("`fn` is not a function");
3099
+ throw new Lr("`fn` is not a function");
3089
3100
  if (typeof r != "number" || r < 0 || r > 4294967295 || zo(r) !== r)
3090
- throw new Ur("`length` must be a positive 32-bit integer");
3101
+ throw new Lr("`length` must be a positive 32-bit integer");
3091
3102
  var o = arguments.length > 2 && !!arguments[2], s = !0, u = !0;
3092
- if ("length" in e && Lr) {
3093
- var l = Lr(e, "length");
3103
+ if ("length" in e && Nr) {
3104
+ var l = Nr(e, "length");
3094
3105
  l && !l.configurable && (s = !1), l && !l.writable && (u = !1);
3095
3106
  }
3096
- return (s || u || !o) && (Qo ? Nr(e, "length", r, !0, !0) : Nr(e, "length", r)), e;
3107
+ return (s || u || !o) && (Qo ? Rr(e, "length", r, !0, !0) : Rr(e, "length", r)), e;
3097
3108
  };
3098
3109
  (function(t) {
3099
- var e = vn, r = et, o = Ko, s = r("%TypeError%"), u = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), f = r("%Reflect.apply%", !0) || e.call(l, u), d = r("%Object.defineProperty%", !0), A = r("%Math.max%");
3110
+ var e = wn, r = Ze, o = Ko, s = r("%TypeError%"), u = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), f = r("%Reflect.apply%", !0) || e.call(l, u), d = r("%Object.defineProperty%", !0), A = r("%Math.max%");
3100
3111
  if (d)
3101
3112
  try {
3102
3113
  d({}, "a", { value: 1 });
@@ -3117,19 +3128,19 @@ var qo = wr("%SyntaxError%"), Ve = wr("%TypeError%"), Rr = br, Go = function(e,
3117
3128
  return f(e, u, arguments);
3118
3129
  };
3119
3130
  d ? d(t.exports, "apply", { value: g }) : t.exports.apply = g;
3120
- })(An);
3121
- var Fn = An.exports, Cn = et, Tn = Fn, Ho = Tn(Cn("String.prototype.indexOf")), _n = function(e, r) {
3122
- var o = Cn(e, !!r);
3123
- return typeof o == "function" && Ho(e, ".prototype.") > -1 ? Tn(o) : o;
3124
- }, Wo = mr(), Jo = _n, rr = Jo("Object.prototype.toString"), kt = function(e) {
3131
+ })(Sn);
3132
+ var In = Sn.exports, Fn = Ze, Cn = In, Ho = Cn(Fn("String.prototype.indexOf")), Tn = function(e, r) {
3133
+ var o = Fn(e, !!r);
3134
+ return typeof o == "function" && Ho(e, ".prototype.") > -1 ? Cn(o) : o;
3135
+ }, Wo = mr(), Jo = Tn, rr = Jo("Object.prototype.toString"), kt = function(e) {
3125
3136
  return Wo && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : rr(e) === "[object Arguments]";
3126
- }, Bn = function(e) {
3137
+ }, _n = function(e) {
3127
3138
  return kt(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && rr(e) !== "[object Array]" && rr(e.callee) === "[object Function]";
3128
3139
  }, Yo = function() {
3129
3140
  return kt(arguments);
3130
3141
  }();
3131
- kt.isLegacyArguments = Bn;
3132
- var Xo = Yo ? kt : Bn, Zo = Object.prototype.toString, es = Function.prototype.toString, ts = /^\s*(?:function)?\*/, On = mr(), Dt = Object.getPrototypeOf, rs = function() {
3142
+ kt.isLegacyArguments = _n;
3143
+ var Xo = Yo ? kt : _n, Zo = Object.prototype.toString, es = Function.prototype.toString, ts = /^\s*(?:function)?\*/, On = mr(), Dt = Object.getPrototypeOf, rs = function() {
3133
3144
  if (!On)
3134
3145
  return !1;
3135
3146
  try {
@@ -3152,21 +3163,21 @@ var Xo = Yo ? kt : Bn, Zo = Object.prototype.toString, es = Function.prototype.t
3152
3163
  jt = o ? Dt(o) : !1;
3153
3164
  }
3154
3165
  return Dt(e) === jt;
3155
- }, xn = Function.prototype.toString, Qe = typeof Reflect == "object" && Reflect !== null && Reflect.apply, nr, gt;
3156
- if (typeof Qe == "function" && typeof Object.defineProperty == "function")
3166
+ }, xn = Function.prototype.toString, ze = typeof Reflect == "object" && Reflect !== null && Reflect.apply, nr, gt;
3167
+ if (typeof ze == "function" && typeof Object.defineProperty == "function")
3157
3168
  try {
3158
3169
  nr = Object.defineProperty({}, "length", {
3159
3170
  get: function() {
3160
3171
  throw gt;
3161
3172
  }
3162
- }), gt = {}, Qe(function() {
3173
+ }), gt = {}, ze(function() {
3163
3174
  throw 42;
3164
3175
  }, null, nr);
3165
3176
  } catch (t) {
3166
- t !== gt && (Qe = null);
3177
+ t !== gt && (ze = null);
3167
3178
  }
3168
3179
  else
3169
- Qe = null;
3180
+ ze = null;
3170
3181
  var is = /^\s*class\b/, ir = function(e) {
3171
3182
  try {
3172
3183
  var r = xn.call(e);
@@ -3195,13 +3206,13 @@ if (typeof document == "object") {
3195
3206
  return !1;
3196
3207
  });
3197
3208
  }
3198
- var ds = Qe ? function(e) {
3209
+ var ds = ze ? function(e) {
3199
3210
  if (or(e))
3200
3211
  return !0;
3201
3212
  if (!e || typeof e != "function" && typeof e != "object")
3202
3213
  return !1;
3203
3214
  try {
3204
- Qe(e, null, nr);
3215
+ ze(e, null, nr);
3205
3216
  } catch (r) {
3206
3217
  if (r !== gt)
3207
3218
  return !1;
@@ -3218,15 +3229,15 @@ var ds = Qe ? function(e) {
3218
3229
  return !1;
3219
3230
  var r = mt.call(e);
3220
3231
  return r !== ss && r !== as && !/^\[object HTML/.test(r) ? !1 : Mt(e);
3221
- }, ys = ds, gs = Object.prototype.toString, kn = Object.prototype.hasOwnProperty, ms = function(e, r, o) {
3232
+ }, ys = ds, gs = Object.prototype.toString, Bn = Object.prototype.hasOwnProperty, ms = function(e, r, o) {
3222
3233
  for (var s = 0, u = e.length; s < u; s++)
3223
- kn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
3234
+ Bn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
3224
3235
  }, bs = function(e, r, o) {
3225
3236
  for (var s = 0, u = e.length; s < u; s++)
3226
3237
  o == null ? r(e.charAt(s), s, e) : r.call(o, e.charAt(s), s, e);
3227
3238
  }, ws = function(e, r, o) {
3228
3239
  for (var s in e)
3229
- kn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
3240
+ Bn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
3230
3241
  }, vs = function(e, r, o) {
3231
3242
  if (!ys(r))
3232
3243
  throw new TypeError("iterator must be a function");
@@ -3244,29 +3255,29 @@ var ds = Qe ? function(e) {
3244
3255
  "Uint32Array",
3245
3256
  "Uint8Array",
3246
3257
  "Uint8ClampedArray"
3247
- ], As = typeof globalThis > "u" ? Yr : globalThis, Es = function() {
3258
+ ], As = typeof globalThis > "u" ? Wr : globalThis, Es = function() {
3248
3259
  for (var e = [], r = 0; r < Vt.length; r++)
3249
3260
  typeof As[Vt[r]] == "function" && (e[e.length] = Vt[r]);
3250
3261
  return e;
3251
- }, Et = Ss, Is = Es, $r = Fn, vr = _n, bt = br, Fs = vr("Object.prototype.toString"), Pn = mr(), Dr = typeof globalThis > "u" ? Yr : globalThis, sr = Is(), Sr = vr("String.prototype.slice"), qt = Object.getPrototypeOf, Cs = vr("Array.prototype.indexOf", !0) || function(e, r) {
3262
+ }, Et = Ss, Is = Es, Ur = In, vr = Tn, bt = br, Fs = vr("Object.prototype.toString"), kn = mr(), $r = typeof globalThis > "u" ? Wr : globalThis, sr = Is(), Sr = vr("String.prototype.slice"), qt = Object.getPrototypeOf, Cs = vr("Array.prototype.indexOf", !0) || function(e, r) {
3252
3263
  for (var o = 0; o < e.length; o += 1)
3253
3264
  if (e[o] === r)
3254
3265
  return o;
3255
3266
  return -1;
3256
3267
  }, It = { __proto__: null };
3257
- Pn && bt && qt ? Et(sr, function(t) {
3258
- var e = new Dr[t]();
3268
+ kn && bt && qt ? Et(sr, function(t) {
3269
+ var e = new $r[t]();
3259
3270
  if (Symbol.toStringTag in e) {
3260
3271
  var r = qt(e), o = bt(r, Symbol.toStringTag);
3261
3272
  if (!o) {
3262
3273
  var s = qt(r);
3263
3274
  o = bt(s, Symbol.toStringTag);
3264
3275
  }
3265
- It["$" + t] = $r(o.get);
3276
+ It["$" + t] = Ur(o.get);
3266
3277
  }
3267
3278
  }) : Et(sr, function(t) {
3268
- var e = new Dr[t](), r = e.slice || e.set;
3269
- r && (It["$" + t] = $r(r));
3279
+ var e = new $r[t](), r = e.slice || e.set;
3280
+ r && (It["$" + t] = Ur(r));
3270
3281
  });
3271
3282
  var Ts = function(e) {
3272
3283
  var r = !1;
@@ -3286,19 +3297,19 @@ var Ts = function(e) {
3286
3297
  } catch {
3287
3298
  }
3288
3299
  }), r;
3289
- }, Rn = function(e) {
3300
+ }, Pn = function(e) {
3290
3301
  if (!e || typeof e != "object")
3291
3302
  return !1;
3292
- if (!Pn) {
3303
+ if (!kn) {
3293
3304
  var r = Sr(Fs(e), 8, -1);
3294
3305
  return Cs(sr, r) > -1 ? r : r !== "Object" ? !1 : _s(e);
3295
3306
  }
3296
3307
  return bt ? Ts(e) : null;
3297
- }, Bs = Rn, Os = function(e) {
3298
- return !!Bs(e);
3308
+ }, Os = Pn, xs = function(e) {
3309
+ return !!Os(e);
3299
3310
  };
3300
3311
  (function(t) {
3301
- var e = Xo, r = ns, o = Rn, s = Os;
3312
+ var e = Xo, r = ns, o = Pn, s = xs;
3302
3313
  function u(v) {
3303
3314
  return v.call.bind(v);
3304
3315
  }
@@ -3333,26 +3344,26 @@ var Ts = function(e) {
3333
3344
  return o(v) === "Uint8ClampedArray";
3334
3345
  }
3335
3346
  t.isUint8ClampedArray = X;
3336
- function ye(v) {
3347
+ function de(v) {
3337
3348
  return o(v) === "Uint16Array";
3338
3349
  }
3339
- t.isUint16Array = ye;
3350
+ t.isUint16Array = de;
3340
3351
  function ee(v) {
3341
3352
  return o(v) === "Uint32Array";
3342
3353
  }
3343
3354
  t.isUint32Array = ee;
3344
- function x(v) {
3355
+ function B(v) {
3345
3356
  return o(v) === "Int8Array";
3346
3357
  }
3347
- t.isInt8Array = x;
3358
+ t.isInt8Array = B;
3348
3359
  function j(v) {
3349
3360
  return o(v) === "Int16Array";
3350
3361
  }
3351
3362
  t.isInt16Array = j;
3352
- function B(v) {
3363
+ function O(v) {
3353
3364
  return o(v) === "Int32Array";
3354
3365
  }
3355
- t.isInt32Array = B;
3366
+ t.isInt32Array = O;
3356
3367
  function re(v) {
3357
3368
  return o(v) === "Float32Array";
3358
3369
  }
@@ -3369,38 +3380,38 @@ var Ts = function(e) {
3369
3380
  return o(v) === "BigUint64Array";
3370
3381
  }
3371
3382
  t.isBigUint64Array = Se;
3372
- function fe(v) {
3383
+ function ce(v) {
3373
3384
  return d(v) === "[object Map]";
3374
3385
  }
3375
- fe.working = typeof Map < "u" && fe(/* @__PURE__ */ new Map());
3376
- function rt(v) {
3377
- return typeof Map > "u" ? !1 : fe.working ? fe(v) : v instanceof Map;
3386
+ ce.working = typeof Map < "u" && ce(/* @__PURE__ */ new Map());
3387
+ function tt(v) {
3388
+ return typeof Map > "u" ? !1 : ce.working ? ce(v) : v instanceof Map;
3378
3389
  }
3379
- t.isMap = rt;
3380
- function le(v) {
3390
+ t.isMap = tt;
3391
+ function fe(v) {
3381
3392
  return d(v) === "[object Set]";
3382
3393
  }
3383
- le.working = typeof Set < "u" && le(/* @__PURE__ */ new Set());
3384
- function Be(v) {
3385
- return typeof Set > "u" ? !1 : le.working ? le(v) : v instanceof Set;
3386
- }
3387
- t.isSet = Be;
3394
+ fe.working = typeof Set < "u" && fe(/* @__PURE__ */ new Set());
3388
3395
  function Oe(v) {
3396
+ return typeof Set > "u" ? !1 : fe.working ? fe(v) : v instanceof Set;
3397
+ }
3398
+ t.isSet = Oe;
3399
+ function xe(v) {
3389
3400
  return d(v) === "[object WeakMap]";
3390
3401
  }
3391
- Oe.working = typeof WeakMap < "u" && Oe(/* @__PURE__ */ new WeakMap());
3392
- function nt(v) {
3393
- return typeof WeakMap > "u" ? !1 : Oe.working ? Oe(v) : v instanceof WeakMap;
3402
+ xe.working = typeof WeakMap < "u" && xe(/* @__PURE__ */ new WeakMap());
3403
+ function rt(v) {
3404
+ return typeof WeakMap > "u" ? !1 : xe.working ? xe(v) : v instanceof WeakMap;
3394
3405
  }
3395
- t.isWeakMap = nt;
3396
- function xe(v) {
3406
+ t.isWeakMap = rt;
3407
+ function Be(v) {
3397
3408
  return d(v) === "[object WeakSet]";
3398
3409
  }
3399
- xe.working = typeof WeakSet < "u" && xe(/* @__PURE__ */ new WeakSet());
3400
- function he(v) {
3401
- return xe(v);
3410
+ Be.working = typeof WeakSet < "u" && Be(/* @__PURE__ */ new WeakSet());
3411
+ function le(v) {
3412
+ return Be(v);
3402
3413
  }
3403
- t.isWeakSet = he;
3414
+ t.isWeakSet = le;
3404
3415
  function ke(v) {
3405
3416
  return d(v) === "[object ArrayBuffer]";
3406
3417
  }
@@ -3433,10 +3444,10 @@ var Ts = function(e) {
3433
3444
  return d(v) === "[object Map Iterator]";
3434
3445
  }
3435
3446
  t.isMapIterator = F;
3436
- function O(v) {
3447
+ function x(v) {
3437
3448
  return d(v) === "[object Set Iterator]";
3438
3449
  }
3439
- t.isSetIterator = O;
3450
+ t.isSetIterator = x;
3440
3451
  function U(v) {
3441
3452
  return d(v) === "[object Generator]";
3442
3453
  }
@@ -3445,30 +3456,30 @@ var Ts = function(e) {
3445
3456
  return d(v) === "[object WebAssembly.Module]";
3446
3457
  }
3447
3458
  t.isWebAssemblyCompiledModule = Y;
3448
- function ge(v) {
3459
+ function ye(v) {
3449
3460
  return P(v, A);
3450
3461
  }
3451
- t.isNumberObject = ge;
3452
- function pe(v) {
3462
+ t.isNumberObject = ye;
3463
+ function he(v) {
3453
3464
  return P(v, g);
3454
3465
  }
3455
- t.isStringObject = pe;
3466
+ t.isStringObject = he;
3456
3467
  function ie(v) {
3457
3468
  return P(v, w);
3458
3469
  }
3459
3470
  t.isBooleanObject = ie;
3460
- function De(v) {
3471
+ function je(v) {
3461
3472
  return l && P(v, E);
3462
3473
  }
3463
- t.isBigIntObject = De;
3474
+ t.isBigIntObject = je;
3464
3475
  function lt(v) {
3465
3476
  return f && P(v, C);
3466
3477
  }
3467
3478
  t.isSymbolObject = lt;
3468
- function it(v) {
3469
- return ge(v) || pe(v) || ie(v) || De(v) || lt(v);
3479
+ function nt(v) {
3480
+ return ye(v) || he(v) || ie(v) || je(v) || lt(v);
3470
3481
  }
3471
- t.isBoxedPrimitive = it;
3482
+ t.isBoxedPrimitive = nt;
3472
3483
  function Pt(v) {
3473
3484
  return typeof Uint8Array < "u" && (V(v) || R(v));
3474
3485
  }
@@ -3480,8 +3491,8 @@ var Ts = function(e) {
3480
3491
  }
3481
3492
  });
3482
3493
  });
3483
- })(bn);
3484
- var xs = function(e) {
3494
+ })(mn);
3495
+ var Bs = function(e) {
3485
3496
  return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
3486
3497
  }, ar = { exports: {} };
3487
3498
  typeof Object.create == "function" ? ar.exports = function(e, r) {
@@ -3509,17 +3520,17 @@ var ks = ar.exports;
3509
3520
  return I;
3510
3521
  }, r = /%[sdj%]/g;
3511
3522
  t.format = function(p) {
3512
- if (!x(p)) {
3523
+ if (!B(p)) {
3513
3524
  for (var b = [], S = 0; S < arguments.length; S++)
3514
3525
  b.push(l(arguments[S]));
3515
3526
  return b.join(" ");
3516
3527
  }
3517
- for (var S = 1, I = arguments, R = I.length, L = String(p).replace(r, function(O) {
3518
- if (O === "%%")
3528
+ for (var S = 1, I = arguments, R = I.length, L = String(p).replace(r, function(x) {
3529
+ if (x === "%%")
3519
3530
  return "%";
3520
3531
  if (S >= R)
3521
- return O;
3522
- switch (O) {
3532
+ return x;
3533
+ switch (x) {
3523
3534
  case "%s":
3524
3535
  return String(I[S++]);
3525
3536
  case "%d":
@@ -3531,7 +3542,7 @@ var ks = ar.exports;
3531
3542
  return "[Circular]";
3532
3543
  }
3533
3544
  default:
3534
- return O;
3545
+ return x;
3535
3546
  }
3536
3547
  }), F = I[S]; S < R; F = I[++S])
3537
3548
  X(F) || !ne(F) ? L += " " + F : L += " " + l(F);
@@ -3577,7 +3588,7 @@ var ks = ar.exports;
3577
3588
  seen: [],
3578
3589
  stylize: d
3579
3590
  };
3580
- return arguments.length >= 3 && (S.depth = arguments[2]), arguments.length >= 4 && (S.colors = arguments[3]), z(b) ? S.showHidden = b : b && t._extend(S, b), B(S.showHidden) && (S.showHidden = !1), B(S.depth) && (S.depth = 2), B(S.colors) && (S.colors = !1), B(S.customInspect) && (S.customInspect = !0), S.colors && (S.stylize = f), g(S, p, S.depth);
3591
+ return arguments.length >= 3 && (S.depth = arguments[2]), arguments.length >= 4 && (S.colors = arguments[3]), z(b) ? S.showHidden = b : b && t._extend(S, b), O(S.showHidden) && (S.showHidden = !1), O(S.depth) && (S.depth = 2), O(S.colors) && (S.colors = !1), O(S.customInspect) && (S.customInspect = !0), S.colors && (S.stylize = f), g(S, p, S.depth);
3581
3592
  }
3582
3593
  t.inspect = l, l.colors = {
3583
3594
  bold: [1, 22],
@@ -3618,11 +3629,11 @@ var ks = ar.exports;
3618
3629
  }), b;
3619
3630
  }
3620
3631
  function g(p, b, S) {
3621
- if (p.customInspect && b && fe(b.inspect) && // Filter out the util module, it's inspect function is special
3632
+ if (p.customInspect && b && ce(b.inspect) && // Filter out the util module, it's inspect function is special
3622
3633
  b.inspect !== t.inspect && // Also filter out any prototype objects using the circular check.
3623
3634
  !(b.constructor && b.constructor.prototype === b)) {
3624
3635
  var I = b.inspect(S, p);
3625
- return x(I) || (I = g(p, I, S)), I;
3636
+ return B(I) || (I = g(p, I, S)), I;
3626
3637
  }
3627
3638
  var R = w(p, b);
3628
3639
  if (R)
@@ -3631,9 +3642,9 @@ var ks = ar.exports;
3631
3642
  if (p.showHidden && (L = Object.getOwnPropertyNames(b)), Se(b) && (L.indexOf("message") >= 0 || L.indexOf("description") >= 0))
3632
3643
  return E(b);
3633
3644
  if (L.length === 0) {
3634
- if (fe(b)) {
3635
- var O = b.name ? ": " + b.name : "";
3636
- return p.stylize("[Function" + O + "]", "special");
3645
+ if (ce(b)) {
3646
+ var x = b.name ? ": " + b.name : "";
3647
+ return p.stylize("[Function" + x + "]", "special");
3637
3648
  }
3638
3649
  if (re(b))
3639
3650
  return p.stylize(RegExp.prototype.toString.call(b), "regexp");
@@ -3642,25 +3653,25 @@ var ks = ar.exports;
3642
3653
  if (Se(b))
3643
3654
  return E(b);
3644
3655
  }
3645
- var U = "", Y = !1, ge = ["{", "}"];
3646
- if (Q(b) && (Y = !0, ge = ["[", "]"]), fe(b)) {
3647
- var pe = b.name ? ": " + b.name : "";
3648
- U = " [Function" + pe + "]";
3656
+ var U = "", Y = !1, ye = ["{", "}"];
3657
+ if (Q(b) && (Y = !0, ye = ["[", "]"]), ce(b)) {
3658
+ var he = b.name ? ": " + b.name : "";
3659
+ U = " [Function" + he + "]";
3649
3660
  }
3650
3661
  if (re(b) && (U = " " + RegExp.prototype.toString.call(b)), _e(b) && (U = " " + Date.prototype.toUTCString.call(b)), Se(b) && (U = " " + E(b)), L.length === 0 && (!Y || b.length == 0))
3651
- return ge[0] + U + ge[1];
3662
+ return ye[0] + U + ye[1];
3652
3663
  if (S < 0)
3653
3664
  return re(b) ? p.stylize(RegExp.prototype.toString.call(b), "regexp") : p.stylize("[Object]", "special");
3654
3665
  p.seen.push(b);
3655
3666
  var ie;
3656
- return Y ? ie = C(p, b, S, F, L) : ie = L.map(function(De) {
3657
- return P(p, b, S, F, De, Y);
3658
- }), p.seen.pop(), N(ie, U, ge);
3667
+ return Y ? ie = C(p, b, S, F, L) : ie = L.map(function(je) {
3668
+ return P(p, b, S, F, je, Y);
3669
+ }), p.seen.pop(), N(ie, U, ye);
3659
3670
  }
3660
3671
  function w(p, b) {
3661
- if (B(b))
3672
+ if (O(b))
3662
3673
  return p.stylize("undefined", "undefined");
3663
- if (x(b)) {
3674
+ if (B(b)) {
3664
3675
  var S = "'" + JSON.stringify(b).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
3665
3676
  return p.stylize(S, "string");
3666
3677
  }
@@ -3675,8 +3686,8 @@ var ks = ar.exports;
3675
3686
  return "[" + Error.prototype.toString.call(p) + "]";
3676
3687
  }
3677
3688
  function C(p, b, S, I, R) {
3678
- for (var L = [], F = 0, O = b.length; F < O; ++F)
3679
- xe(b, String(F)) ? L.push(P(
3689
+ for (var L = [], F = 0, x = b.length; F < x; ++F)
3690
+ Be(b, String(F)) ? L.push(P(
3680
3691
  p,
3681
3692
  b,
3682
3693
  S,
@@ -3696,23 +3707,23 @@ var ks = ar.exports;
3696
3707
  }), L;
3697
3708
  }
3698
3709
  function P(p, b, S, I, R, L) {
3699
- var F, O, U;
3700
- if (U = Object.getOwnPropertyDescriptor(b, R) || { value: b[R] }, U.get ? U.set ? O = p.stylize("[Getter/Setter]", "special") : O = p.stylize("[Getter]", "special") : U.set && (O = p.stylize("[Setter]", "special")), xe(I, R) || (F = "[" + R + "]"), O || (p.seen.indexOf(U.value) < 0 ? (X(S) ? O = g(p, U.value, null) : O = g(p, U.value, S - 1), O.indexOf(`
3701
- `) > -1 && (L ? O = O.split(`
3710
+ var F, x, U;
3711
+ if (U = Object.getOwnPropertyDescriptor(b, R) || { value: b[R] }, U.get ? U.set ? x = p.stylize("[Getter/Setter]", "special") : x = p.stylize("[Getter]", "special") : U.set && (x = p.stylize("[Setter]", "special")), Be(I, R) || (F = "[" + R + "]"), x || (p.seen.indexOf(U.value) < 0 ? (X(S) ? x = g(p, U.value, null) : x = g(p, U.value, S - 1), x.indexOf(`
3712
+ `) > -1 && (L ? x = x.split(`
3702
3713
  `).map(function(Y) {
3703
3714
  return " " + Y;
3704
3715
  }).join(`
3705
- `).slice(2) : O = `
3706
- ` + O.split(`
3716
+ `).slice(2) : x = `
3717
+ ` + x.split(`
3707
3718
  `).map(function(Y) {
3708
3719
  return " " + Y;
3709
3720
  }).join(`
3710
- `))) : O = p.stylize("[Circular]", "special")), B(F)) {
3721
+ `))) : x = p.stylize("[Circular]", "special")), O(F)) {
3711
3722
  if (L && R.match(/^\d+$/))
3712
- return O;
3723
+ return x;
3713
3724
  F = JSON.stringify("" + R), F.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (F = F.slice(1, -1), F = p.stylize(F, "name")) : (F = F.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), F = p.stylize(F, "string"));
3714
3725
  }
3715
- return F + ": " + O;
3726
+ return F + ": " + x;
3716
3727
  }
3717
3728
  function N(p, b, S) {
3718
3729
  var I = p.reduce(function(R, L) {
@@ -3723,7 +3734,7 @@ var ks = ar.exports;
3723
3734
  `) + " " + p.join(`,
3724
3735
  `) + " " + S[1] : S[0] + b + " " + p.join(", ") + " " + S[1];
3725
3736
  }
3726
- t.types = bn;
3737
+ t.types = mn;
3727
3738
  function Q(p) {
3728
3739
  return Array.isArray(p);
3729
3740
  }
@@ -3736,28 +3747,28 @@ var ks = ar.exports;
3736
3747
  return p === null;
3737
3748
  }
3738
3749
  t.isNull = X;
3739
- function ye(p) {
3750
+ function de(p) {
3740
3751
  return p == null;
3741
3752
  }
3742
- t.isNullOrUndefined = ye;
3753
+ t.isNullOrUndefined = de;
3743
3754
  function ee(p) {
3744
3755
  return typeof p == "number";
3745
3756
  }
3746
3757
  t.isNumber = ee;
3747
- function x(p) {
3758
+ function B(p) {
3748
3759
  return typeof p == "string";
3749
3760
  }
3750
- t.isString = x;
3761
+ t.isString = B;
3751
3762
  function j(p) {
3752
3763
  return typeof p == "symbol";
3753
3764
  }
3754
3765
  t.isSymbol = j;
3755
- function B(p) {
3766
+ function O(p) {
3756
3767
  return p === void 0;
3757
3768
  }
3758
- t.isUndefined = B;
3769
+ t.isUndefined = O;
3759
3770
  function re(p) {
3760
- return ne(p) && le(p) === "[object RegExp]";
3771
+ return ne(p) && fe(p) === "[object RegExp]";
3761
3772
  }
3762
3773
  t.isRegExp = re, t.types.isRegExp = re;
3763
3774
  function ne(p) {
@@ -3765,29 +3776,29 @@ var ks = ar.exports;
3765
3776
  }
3766
3777
  t.isObject = ne;
3767
3778
  function _e(p) {
3768
- return ne(p) && le(p) === "[object Date]";
3779
+ return ne(p) && fe(p) === "[object Date]";
3769
3780
  }
3770
3781
  t.isDate = _e, t.types.isDate = _e;
3771
3782
  function Se(p) {
3772
- return ne(p) && (le(p) === "[object Error]" || p instanceof Error);
3783
+ return ne(p) && (fe(p) === "[object Error]" || p instanceof Error);
3773
3784
  }
3774
3785
  t.isError = Se, t.types.isNativeError = Se;
3775
- function fe(p) {
3786
+ function ce(p) {
3776
3787
  return typeof p == "function";
3777
3788
  }
3778
- t.isFunction = fe;
3779
- function rt(p) {
3789
+ t.isFunction = ce;
3790
+ function tt(p) {
3780
3791
  return p === null || typeof p == "boolean" || typeof p == "number" || typeof p == "string" || typeof p == "symbol" || // ES6 symbol
3781
3792
  typeof p > "u";
3782
3793
  }
3783
- t.isPrimitive = rt, t.isBuffer = xs;
3784
- function le(p) {
3794
+ t.isPrimitive = tt, t.isBuffer = Bs;
3795
+ function fe(p) {
3785
3796
  return Object.prototype.toString.call(p);
3786
3797
  }
3787
- function Be(p) {
3798
+ function Oe(p) {
3788
3799
  return p < 10 ? "0" + p.toString(10) : p.toString(10);
3789
3800
  }
3790
- var Oe = [
3801
+ var xe = [
3791
3802
  "Jan",
3792
3803
  "Feb",
3793
3804
  "Mar",
@@ -3801,16 +3812,16 @@ var ks = ar.exports;
3801
3812
  "Nov",
3802
3813
  "Dec"
3803
3814
  ];
3804
- function nt() {
3815
+ function rt() {
3805
3816
  var p = /* @__PURE__ */ new Date(), b = [
3806
- Be(p.getHours()),
3807
- Be(p.getMinutes()),
3808
- Be(p.getSeconds())
3817
+ Oe(p.getHours()),
3818
+ Oe(p.getMinutes()),
3819
+ Oe(p.getSeconds())
3809
3820
  ].join(":");
3810
- return [p.getDate(), Oe[p.getMonth()], b].join(" ");
3821
+ return [p.getDate(), xe[p.getMonth()], b].join(" ");
3811
3822
  }
3812
3823
  t.log = function() {
3813
- console.log("%s - %s", nt(), t.format.apply(t, arguments));
3824
+ console.log("%s - %s", rt(), t.format.apply(t, arguments));
3814
3825
  }, t.inherits = ks, t._extend = function(p, b) {
3815
3826
  if (!b || !ne(b))
3816
3827
  return p;
@@ -3818,18 +3829,18 @@ var ks = ar.exports;
3818
3829
  p[S[I]] = b[S[I]];
3819
3830
  return p;
3820
3831
  };
3821
- function xe(p, b) {
3832
+ function Be(p, b) {
3822
3833
  return Object.prototype.hasOwnProperty.call(p, b);
3823
3834
  }
3824
- var he = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
3835
+ var le = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
3825
3836
  t.promisify = function(b) {
3826
3837
  if (typeof b != "function")
3827
3838
  throw new TypeError('The "original" argument must be of type Function');
3828
- if (he && b[he]) {
3829
- var S = b[he];
3839
+ if (le && b[le]) {
3840
+ var S = b[le];
3830
3841
  if (typeof S != "function")
3831
3842
  throw new TypeError('The "util.promisify.custom" argument must be of type Function');
3832
- return Object.defineProperty(S, he, {
3843
+ return Object.defineProperty(S, le, {
3833
3844
  value: S,
3834
3845
  enumerable: !1,
3835
3846
  writable: !1,
@@ -3839,8 +3850,8 @@ var ks = ar.exports;
3839
3850
  function S() {
3840
3851
  for (var I, R, L = new Promise(function(U, Y) {
3841
3852
  I = U, R = Y;
3842
- }), F = [], O = 0; O < arguments.length; O++)
3843
- F.push(arguments[O]);
3853
+ }), F = [], x = 0; x < arguments.length; x++)
3854
+ F.push(arguments[x]);
3844
3855
  F.push(function(U, Y) {
3845
3856
  U ? R(U) : I(Y);
3846
3857
  });
@@ -3851,7 +3862,7 @@ var ks = ar.exports;
3851
3862
  }
3852
3863
  return L;
3853
3864
  }
3854
- return Object.setPrototypeOf(S, Object.getPrototypeOf(b)), he && Object.defineProperty(S, he, {
3865
+ return Object.setPrototypeOf(S, Object.getPrototypeOf(b)), le && Object.defineProperty(S, le, {
3855
3866
  value: S,
3856
3867
  enumerable: !1,
3857
3868
  writable: !1,
@@ -3860,7 +3871,7 @@ var ks = ar.exports;
3860
3871
  S,
3861
3872
  e(b)
3862
3873
  );
3863
- }, t.promisify.custom = he;
3874
+ }, t.promisify.custom = le;
3864
3875
  function ke(p, b) {
3865
3876
  if (!p) {
3866
3877
  var S = new Error("Promise was rejected with a falsy value");
@@ -3881,11 +3892,11 @@ var ks = ar.exports;
3881
3892
  return R.apply(L, arguments);
3882
3893
  };
3883
3894
  p.apply(this, S).then(
3884
- function(O) {
3885
- T.process.nextTick(F.bind(null, null, O));
3895
+ function(x) {
3896
+ T.process.nextTick(F.bind(null, null, x));
3886
3897
  },
3887
- function(O) {
3888
- T.process.nextTick(ke.bind(null, O, F));
3898
+ function(x) {
3899
+ T.process.nextTick(ke.bind(null, x, F));
3889
3900
  }
3890
3901
  );
3891
3902
  }
@@ -3895,8 +3906,8 @@ var ks = ar.exports;
3895
3906
  ), b;
3896
3907
  }
3897
3908
  t.callbackify = V;
3898
- })(xt);
3899
- const { inherits: Ps, format: Gt } = xt;
3909
+ })(Bt);
3910
+ const { inherits: Ps, format: Gt } = Bt;
3900
3911
  function Re(t, e, r = Error) {
3901
3912
  if (!t)
3902
3913
  throw new Error("Avvio error code must not be empty");
@@ -3911,7 +3922,7 @@ function Re(t, e, r = Error) {
3911
3922
  return `${this.name} [${this.code}]: ${this.message}`;
3912
3923
  }, Ps(o, r), o;
3913
3924
  }
3914
- var Nn = {
3925
+ var Rn = {
3915
3926
  createError: Re,
3916
3927
  AVV_ERR_EXPOSE_ALREADY_DEFINED: Re(
3917
3928
  "AVV_ERR_EXPOSE_ALREADY_DEFINED",
@@ -3959,7 +3970,7 @@ var Nn = {
3959
3970
  return r + s(g ? "└" : "├") + s("─") + s(w ? "┬" : "─") + " " + t(d, E, o).slice(r.length + 2);
3960
3971
  }).join("");
3961
3972
  };
3962
- const Ns = Rs, jr = Symbol("avvio.TimeTree.untrackNode"), Qt = Symbol("avvio.TimeTree.trackNode"), Mr = Symbol("avvio.TimeTree.getParent"), Vr = Symbol("avvio.TimeTree.getNode"), qr = Symbol("avvio.TimeTree.addNode");
3973
+ const Ns = Rs, Dr = Symbol("avvio.TimeTree.untrackNode"), Qt = Symbol("avvio.TimeTree.trackNode"), jr = Symbol("avvio.TimeTree.getParent"), Mr = Symbol("avvio.TimeTree.getNode"), Vr = Symbol("avvio.TimeTree.addNode");
3963
3974
  let Ls = class {
3964
3975
  constructor() {
3965
3976
  this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
@@ -3967,7 +3978,7 @@ let Ls = class {
3967
3978
  [Qt](e) {
3968
3979
  this.tableId.set(e.id, e), this.tableLabel.has(e.label) ? this.tableLabel.get(e.label).push(e) : this.tableLabel.set(e.label, [e]);
3969
3980
  }
3970
- [jr](e) {
3981
+ [Dr](e) {
3971
3982
  this.tableId.delete(e.id);
3972
3983
  const r = this.tableLabel.get(e.label);
3973
3984
  if (r.id) {
@@ -3976,16 +3987,16 @@ let Ls = class {
3976
3987
  }
3977
3988
  r.pop(), r.length === 0 && this.tableLabel.delete(e.label);
3978
3989
  }
3979
- [Mr](e) {
3990
+ [jr](e) {
3980
3991
  if (e === null)
3981
3992
  return this.root;
3982
3993
  const r = this.tableLabel.get(e);
3983
3994
  return r.id ? r : r[r.length - 1];
3984
3995
  }
3985
- [Vr](e) {
3996
+ [Mr](e) {
3986
3997
  return this.tableId.get(e);
3987
3998
  }
3988
- [qr](e, r, o) {
3999
+ [Vr](e, r, o) {
3989
4000
  if (e === null)
3990
4001
  return this.root = {
3991
4002
  id: "root",
@@ -3993,7 +4004,7 @@ let Ls = class {
3993
4004
  start: o,
3994
4005
  nodes: []
3995
4006
  }, this[Qt](this.root), this.root.id;
3996
- const u = this[Mr](e), l = `${r}-${Math.random()}`, f = {
4007
+ const u = this[jr](e), l = `${r}-${Math.random()}`, f = {
3997
4008
  id: l,
3998
4009
  parent: e,
3999
4010
  start: o,
@@ -4003,11 +4014,11 @@ let Ls = class {
4003
4014
  return u.nodes.push(f), this[Qt](f), l;
4004
4015
  }
4005
4016
  start(e, r, o = Date.now()) {
4006
- return this[qr](e, r, o);
4017
+ return this[Vr](e, r, o);
4007
4018
  }
4008
4019
  stop(e, r = Date.now()) {
4009
- const o = this[Vr](e);
4010
- o && (o.stop = r, o.diff = o.stop - o.start || 0, this[jr](o));
4020
+ const o = this[Mr](e);
4021
+ o && (o.stop = r, o.diff = o.stop - o.start || 0, this[Dr](o));
4011
4022
  }
4012
4023
  toJSON() {
4013
4024
  return Object.assign({}, this.root);
@@ -4017,11 +4028,11 @@ let Ls = class {
4017
4028
  return Ns(r);
4018
4029
  }
4019
4030
  };
4020
- var Us = Ls, Ar = { exports: {} }, ur = { exports: {} }, zt, Gr;
4031
+ var Us = Ls, Ar = { exports: {} }, ur = { exports: {} }, zt, qr;
4021
4032
  function $s() {
4022
- if (Gr)
4033
+ if (qr)
4023
4034
  return zt;
4024
- Gr = 1;
4035
+ qr = 1;
4025
4036
  var t = 1e3, e = t * 60, r = e * 60, o = r * 24, s = o * 7, u = o * 365.25;
4026
4037
  zt = function(g, w) {
4027
4038
  w = w || {};
@@ -4116,14 +4127,14 @@ function Ds(t) {
4116
4127
  function N(...Q) {
4117
4128
  if (!N.enabled)
4118
4129
  return;
4119
- const z = N, X = Number(/* @__PURE__ */ new Date()), ye = X - (w || X);
4120
- z.diff = ye, z.prev = w, z.curr = X, w = X, Q[0] = r.coerce(Q[0]), typeof Q[0] != "string" && Q.unshift("%O");
4130
+ const z = N, X = Number(/* @__PURE__ */ new Date()), de = X - (w || X);
4131
+ z.diff = de, z.prev = w, z.curr = X, w = X, Q[0] = r.coerce(Q[0]), typeof Q[0] != "string" && Q.unshift("%O");
4121
4132
  let ee = 0;
4122
- Q[0] = Q[0].replace(/%([a-zA-Z%])/g, (j, B) => {
4133
+ Q[0] = Q[0].replace(/%([a-zA-Z%])/g, (j, O) => {
4123
4134
  if (j === "%%")
4124
4135
  return "%";
4125
4136
  ee++;
4126
- const re = r.formatters[B];
4137
+ const re = r.formatters[O];
4127
4138
  if (typeof re == "function") {
4128
4139
  const ne = Q[ee];
4129
4140
  j = re.call(z, ne), Q.splice(ee, 1), ee--;
@@ -4315,8 +4326,8 @@ var js = Ds;
4315
4326
  }
4316
4327
  };
4317
4328
  })(ur, ur.exports);
4318
- var Ln = ur.exports;
4319
- const Ms = un, Vs = mn.EventEmitter, qs = xt.inherits, W = Ln("avvio"), { AVV_ERR_READY_TIMEOUT: Gs } = Nn, Kt = Symbol.for("plugin-meta");
4329
+ var Nn = ur.exports;
4330
+ const Ms = an, Vs = gn.EventEmitter, qs = Bt.inherits, W = Nn("avvio"), { AVV_ERR_READY_TIMEOUT: Gs } = Rn, Kt = Symbol.for("plugin-meta");
4320
4331
  function Qs(t, e) {
4321
4332
  return t[Kt] && t[Kt].name ? t[Kt].name : typeof e < "u" && typeof e != "function" && e.name ? e.name : t.name ? t.name : t.toString().split(`
4322
4333
  `).slice(0, 2).map((r) => r.trim()).join(" -- ");
@@ -4327,11 +4338,11 @@ function zs() {
4327
4338
  t.resolve = e, t.reject = r;
4328
4339
  }), t;
4329
4340
  }
4330
- function tt(t, e, r, o, s) {
4341
+ function et(t, e, r, o, s) {
4331
4342
  this.started = !1, this.func = e, this.opts = r, this.onFinish = null, this.parent = t, this.timeout = s === void 0 ? t._timeout : s, this.name = Qs(e, r), this.isAfter = o, this.q = Ms(t, Ks, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
4332
4343
  }
4333
- qs(tt, Vs);
4334
- tt.prototype.exec = function(t, e) {
4344
+ qs(et, Vs);
4345
+ et.prototype.exec = function(t, e) {
4335
4346
  const r = this.func;
4336
4347
  let o = !1;
4337
4348
  const s = this.name;
@@ -4367,7 +4378,7 @@ tt.prototype.exec = function(t, e) {
4367
4378
  (d) => T.process.nextTick(l, d)
4368
4379
  ));
4369
4380
  };
4370
- tt.prototype.loadedSoFar = function() {
4381
+ et.prototype.loadedSoFar = function() {
4371
4382
  if (this.loaded)
4372
4383
  return Promise.resolve();
4373
4384
  const t = () => {
@@ -4378,10 +4389,10 @@ tt.prototype.loadedSoFar = function() {
4378
4389
  let e;
4379
4390
  return this._promise ? e = Promise.resolve() : (this._promise = zs(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
4380
4391
  };
4381
- tt.prototype.enqueue = function(t, e) {
4392
+ et.prototype.enqueue = function(t, e) {
4382
4393
  W("enqueue", this.name, t.name), this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now()), this.q.push(t, e);
4383
4394
  };
4384
- tt.prototype.finish = function(t, e) {
4395
+ et.prototype.finish = function(t, e) {
4385
4396
  W("finish", this.name, t);
4386
4397
  const r = () => {
4387
4398
  this.loaded || (W("loaded", this.name), this.emit("loaded", this.server ? this.server.name : null, this.name, Date.now()), this.loaded = !0, e(t));
@@ -4426,16 +4437,16 @@ function Er(t, e) {
4426
4437
  }
4427
4438
  function Hs() {
4428
4439
  }
4429
- Ar.exports = tt;
4440
+ Ar.exports = et;
4430
4441
  Ar.exports.loadPlugin = Er;
4431
4442
  var Ws = Ar.exports;
4432
- const Qr = un, Js = mn.EventEmitter, Ys = xt.inherits, {
4443
+ const Gr = an, Js = gn.EventEmitter, Ys = Bt.inherits, {
4433
4444
  AVV_ERR_EXPOSE_ALREADY_DEFINED: Ht,
4434
4445
  AVV_ERR_CALLBACK_NOT_FN: ct,
4435
4446
  AVV_ERR_PLUGIN_NOT_VALID: Xs,
4436
4447
  AVV_ERR_ROOT_PLG_BOOTED: Zs,
4437
4448
  AVV_ERR_READY_TIMEOUT: ea
4438
- } = Nn, ta = Us, cr = Ws, Ze = Ln("avvio"), Ft = Symbol("kAvvio"), Wt = Symbol("kThenifyDoNotWrap");
4449
+ } = Rn, ta = Us, cr = Ws, Xe = Nn("avvio"), Ft = Symbol("kAvvio"), Wt = Symbol("kThenifyDoNotWrap");
4439
4450
  function ra(t, e, r) {
4440
4451
  const o = e.expose || {}, s = o.use || "use", u = o.after || "after", l = o.ready || "ready", f = o.onClose || "onClose", d = o.close || "close";
4441
4452
  if (t[s])
@@ -4446,7 +4457,7 @@ function ra(t, e, r) {
4446
4457
  throw new Ht(l);
4447
4458
  t[s] = function(A, g) {
4448
4459
  return r.use(A, g), this;
4449
- }, Object.defineProperty(t, "then", { get: Un.bind(r) }), t[Ft] = !0, t[u] = function(A) {
4460
+ }, Object.defineProperty(t, "then", { get: Ln.bind(r) }), t[Ft] = !0, t[u] = function(A) {
4450
4461
  return typeof A != "function" ? r._loadRegistered() : (r.after(Jt(A, this)), this);
4451
4462
  }, t[l] = function(A) {
4452
4463
  if (A && typeof A != "function")
@@ -4467,17 +4478,17 @@ function J(t, e, r) {
4467
4478
  const o = new J(t, e, r);
4468
4479
  return t && ra(t, e, o), o;
4469
4480
  }
4470
- e.autostart !== !1 && (e.autostart = !0), t = t || this, this._timeout = Number(e.timeout) || 0, this._server = t, this._current = [], this._error = null, this._isOnCloseHandlerKey = Symbol("isOnCloseHandler"), this._lastUsed = null, this.setMaxListeners(0), r && this.once("start", r), this.started = !1, this.booted = !1, this.pluginTree = new ta(), this._readyQ = Qr(this, $n, 1), this._readyQ.pause(), this._readyQ.drain = () => {
4471
- this.emit("start"), this._readyQ.drain = zr;
4472
- }, this._closeQ = Qr(this, sa, 1), this._closeQ.pause(), this._closeQ.drain = () => {
4473
- this.emit("close"), this._closeQ.drain = zr;
4481
+ e.autostart !== !1 && (e.autostart = !0), t = t || this, this._timeout = Number(e.timeout) || 0, this._server = t, this._current = [], this._error = null, this._isOnCloseHandlerKey = Symbol("isOnCloseHandler"), this._lastUsed = null, this.setMaxListeners(0), r && this.once("start", r), this.started = !1, this.booted = !1, this.pluginTree = new ta(), this._readyQ = Gr(this, Un, 1), this._readyQ.pause(), this._readyQ.drain = () => {
4482
+ this.emit("start"), this._readyQ.drain = Qr;
4483
+ }, this._closeQ = Gr(this, sa, 1), this._closeQ.pause(), this._closeQ.drain = () => {
4484
+ this.emit("close"), this._closeQ.drain = Qr;
4474
4485
  }, this._doStart = null, this._root = new cr(this, na.bind(this), e, !1, 0), this._root.once("start", (o, s, u) => {
4475
4486
  const l = this.pluginTree.start(null, s, u);
4476
4487
  this._root.once("loaded", (f, d, A) => {
4477
4488
  this.pluginTree.stop(l, A);
4478
4489
  });
4479
4490
  }), cr.loadPlugin.call(this, this._root, (o) => {
4480
- Ze("root plugin ready");
4491
+ Xe("root plugin ready");
4481
4492
  try {
4482
4493
  this.emit("preReady"), this._root = null;
4483
4494
  } catch (s) {
@@ -4514,7 +4525,7 @@ J.prototype._loadRegistered = function() {
4514
4525
  const t = this._current[0];
4515
4526
  return !this.started && !this.booted && T.process.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
4516
4527
  };
4517
- Object.defineProperty(J.prototype, "then", { get: Un });
4528
+ Object.defineProperty(J.prototype, "then", { get: Ln });
4518
4529
  J.prototype._addPlugin = function(t, e, r) {
4519
4530
  if (t = ia(t), e = e || {}, this.booted)
4520
4531
  throw new Zs();
@@ -4535,7 +4546,7 @@ J.prototype.after = function(t) {
4535
4546
  return this._loadRegistered();
4536
4547
  this._addPlugin(e.bind(this), {}, !0);
4537
4548
  function e(r, o, s) {
4538
- $n.call(this, t, s);
4549
+ Un.call(this, t, s);
4539
4550
  }
4540
4551
  return this;
4541
4552
  };
@@ -4586,20 +4597,20 @@ J.prototype.prettyPrint = function() {
4586
4597
  J.prototype.toJSON = function() {
4587
4598
  return this.pluginTree.toJSON();
4588
4599
  };
4589
- function zr() {
4600
+ function Qr() {
4590
4601
  }
4591
- function Un() {
4602
+ function Ln() {
4592
4603
  if (this.booted) {
4593
- Ze("thenify returning null because we are already booted");
4604
+ Xe("thenify returning null because we are already booted");
4594
4605
  return;
4595
4606
  }
4596
4607
  if (this[Wt]) {
4597
4608
  this[Wt] = !1;
4598
4609
  return;
4599
4610
  }
4600
- return Ze("thenify"), (t, e) => this._loadRegistered().then(() => (this[Wt] = !0, t(this._server)), e);
4611
+ return Xe("thenify"), (t, e) => this._loadRegistered().then(() => (this[Wt] = !0, t(this._server)), e);
4601
4612
  }
4602
- function $n(t, e) {
4613
+ function Un(t, e) {
4603
4614
  const r = this._server, o = this._error;
4604
4615
  let s;
4605
4616
  if (this._error = null, t.length === 0)
@@ -4616,9 +4627,9 @@ function $n(t, e) {
4616
4627
  }
4617
4628
  function oa(t, e, r, o) {
4618
4629
  const s = t.name;
4619
- Ze("setting up ready timeout", s, this._timeout);
4630
+ Xe("setting up ready timeout", s, this._timeout);
4620
4631
  let u = setTimeout(() => {
4621
- Ze("timed out", s), u = null;
4632
+ Xe("timed out", s), u = null;
4622
4633
  const f = new ea(s);
4623
4634
  f.fn = t, this._error = f, o(f);
4624
4635
  }, this._timeout);
@@ -4631,7 +4642,7 @@ function sa(t, e) {
4631
4642
  const r = this._server, o = t[this._isOnCloseHandlerKey];
4632
4643
  if (t.length === 0 || t.length === 1) {
4633
4644
  let s;
4634
- o ? s = t(r) : s = t(this._error), s && typeof s.then == "function" ? (Ze("resolving close/onClose promise"), s.then(
4645
+ o ? s = t(r) : s = t(this._error), s && typeof s.then == "function" ? (Xe("resolving close/onClose promise"), s.then(
4635
4646
  () => T.process.nextTick(e),
4636
4647
  (u) => T.process.nextTick(e, u)
4637
4648
  )) : T.process.nextTick(e);
@@ -4669,10 +4680,10 @@ dr.exports.express = function(t) {
4669
4680
  });
4670
4681
  };
4671
4682
  var ua = dr.exports;
4672
- const ca = /* @__PURE__ */ Wn(ua);
4683
+ const ca = /* @__PURE__ */ Hn(ua);
4673
4684
  function _a(t, e = !0, r = !0) {
4674
4685
  const o = e ? "https://grpc-web.streamlayer.io:443" : "https://grpc-web.next.streamlayer.io:443", s = ca(/* @__PURE__ */ Object.create({}), { autostart: !1 });
4675
- return s.use(Bi), s.use(Si, { sdkKey: t, host: o }), s.use(_i), s.use(Ti), s.use(to), s.use(Qi), r && s.after(async (u, l, f) => {
4686
+ return s.use(Oi), s.use(Si, { sdkKey: t, host: o }), s.use(_i), s.use(Ti), s.use(to), s.use(Gi), r && s.after(async (u, l, f) => {
4676
4687
  if (u)
4677
4688
  throw u;
4678
4689
  await l.sdk.initializeApp(), f();