@streamlayer/sdk-web 0.28.12 → 0.28.14

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,29 +334,29 @@ 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;
342
- function ee(a, n, i) {
341
+ f.byteLength = de;
342
+ function te(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))
345
345
  return "";
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) : te.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 ee = (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(ee(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(ee(e.getExternalToken()), "userKey"), o = new ue(ee(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(ee(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(ee(void 0), "enabled"), r = new ue(ee(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(ee(void 0), "moderationId").getStore(), this.openedQuestionId = new ue(ee(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(ee(/* @__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 = ee({ 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 */
@@ -2130,6 +2144,8 @@ class Yi extends lr {
2130
2144
  onboardingStatus;
2131
2145
  /** opened question */
2132
2146
  openedQuestion;
2147
+ /** pinned leaderboard id */
2148
+ openedUser;
2133
2149
  notifications;
2134
2150
  transport;
2135
2151
  closeFeature;
@@ -2139,15 +2155,15 @@ class Yi extends lr {
2139
2155
  /** Browser cache */
2140
2156
  storage;
2141
2157
  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) => {
2158
+ 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.openedUser = ee(void 0), this.leaderboardId = new ue(ee(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = new ue(ee(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
2159
  (s === Z.Optional || Z.Required) && this.showOnboardingInApp();
2144
2160
  }), this.status.subscribe((s) => {
2145
- s === Le.Ready ? (this.notifications.close(this.background.getCurrentSessionId({ prefix: "onboarding" })), this.connect(o.transport)) : this.disconnect();
2161
+ s === Ue.Ready ? (this.notifications.close(this.background.getCurrentSessionId({ prefix: "onboarding" })), this.connect(o.transport)) : this.disconnect();
2146
2162
  }), this.onboardingStatus.subscribe((s) => {
2147
2163
  s && this.background.activeQuestionId.invalidate();
2148
2164
  }), 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,
2165
+ 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({
2166
+ type: He.QUESTION,
2151
2167
  action: () => s.data?.question && this.openQuestion(s.data.question.id),
2152
2168
  close: () => s.data?.question && this.closeQuestion(s.data.question.id),
2153
2169
  autoHideDuration: +(s.data.moderation?.question?.appearance?.autoHideInterval || "1000"),
@@ -2191,7 +2207,7 @@ class Yi extends lr {
2191
2207
  return;
2192
2208
  const { titleCard: r, overview: o } = e;
2193
2209
  this.notifications.add({
2194
- type: We.ONBOARDING,
2210
+ type: He.ONBOARDING,
2195
2211
  id: this.background.getCurrentSessionId({ prefix: "onboarding" }),
2196
2212
  action: this.openFeature,
2197
2213
  close: this.closeFeature,
@@ -2208,18 +2224,18 @@ class Yi extends lr {
2208
2224
  });
2209
2225
  };
2210
2226
  connect = (e) => {
2211
- this.userSummary.invalidate(), this.leaderboardList.invalidate(), this.questions.invalidate(), this.background.feedSubscription.addListener("feed-subscription-prediction-close", (r) => {
2227
+ this.userSummary.invalidate(), this.leaderboardList.invalidate(), this.feedList.invalidate(), this.background.feedSubscription.addListener("feed-subscription-prediction-close", (r) => {
2212
2228
  window.requestAnimationFrame(async () => {
2213
2229
  const o = r.data?.attributes?.question;
2214
2230
  if (!o)
2215
2231
  return;
2216
2232
  const { status: s, type: u, id: l } = o;
2217
- if (s === Yt.RESOLVED && u === ze.PREDICTION) {
2233
+ if (s === Yt.RESOLVED && u === st.PREDICTION) {
2218
2234
  const f = this.background.getCurrentSessionId({
2219
2235
  prefix: `notification-id:${l}`
2220
- }), A = (await Ui(l, e))?.answers.find(({ correct: g }) => g);
2236
+ }), A = (await nn(l, e))?.answers.find(({ correct: g }) => g);
2221
2237
  this.notifications.add({
2222
- type: We.ONBOARDING,
2238
+ type: He.ONBOARDING,
2223
2239
  action: () => this.openQuestion(l),
2224
2240
  close: () => this.closeQuestion(l),
2225
2241
  autoHideDuration: 5e3,
@@ -2232,7 +2248,7 @@ class Yi extends lr {
2232
2248
  });
2233
2249
  }), this.background.feedSubscription.addListener("feed-subscription-questions-list", () => {
2234
2250
  window.requestAnimationFrame(() => {
2235
- this.questions?.invalidate();
2251
+ this.feedList?.invalidate();
2236
2252
  });
2237
2253
  });
2238
2254
  };
@@ -2242,22 +2258,29 @@ class Yi extends lr {
2242
2258
  // onboarding
2243
2259
  submitInplay = async () => {
2244
2260
  const e = this.background.slStreamId.get();
2245
- e && (await Ki(this.transport, e), this.onboardingStatus.set(Z.Completed), this.storage.saveOnboardingStatus({
2261
+ e && (await zi(this.transport, e), this.onboardingStatus.set(Z.Completed), this.storage.saveOnboardingStatus({
2246
2262
  organizationId: this.background.organizationId.get() || "",
2247
2263
  userId: this.background.userId.get() || "",
2248
2264
  eventId: e
2249
2265
  }, Z.Completed));
2250
2266
  };
2251
2267
  submitAnswer = async (e, r) => {
2252
- await zi(this.transport, { questionId: e, answerId: r }), this.questions?.invalidate();
2268
+ await Qi(this.transport, { questionId: e, answerId: r }), this.feedList?.invalidate();
2253
2269
  };
2254
2270
  skipQuestion = async (e) => {
2255
- await Hi(this.transport, e), this.questions?.invalidate();
2271
+ await Ki(this.transport, e), this.feedList?.invalidate();
2256
2272
  };
2257
2273
  openQuestion = (e) => (this.openFeature(), this.background.openQuestion(e));
2258
2274
  closeQuestion = (e) => this.background.closeQuestion(e);
2275
+ openUser = (e) => {
2276
+ const r = this.leaderboardList.$store.get().data?.find((o) => o.userId === e);
2277
+ this.openedUser.set(r);
2278
+ };
2279
+ closeUser = () => {
2280
+ this.openedUser.set(void 0);
2281
+ };
2259
2282
  }
2260
- class Xi extends lr {
2283
+ class Xi extends hr {
2261
2284
  insights;
2262
2285
  closeFeature;
2263
2286
  openFeature;
@@ -2266,11 +2289,11 @@ class Xi extends lr {
2266
2289
  transport;
2267
2290
  background;
2268
2291
  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();
2292
+ 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) => {
2293
+ s === Ue.Ready ? this.connect() : this.disconnect();
2271
2294
  }), 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,
2295
+ 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({
2296
+ type: He.QUESTION,
2274
2297
  action: () => s.data?.question && this.openHighlight(s.data.question.id),
2275
2298
  close: () => s.data?.question && this.closeHighlight(s.data.question.id),
2276
2299
  autoHideDuration: +(s.data.moderation?.question?.appearance?.autoHideInterval || "1000"),
@@ -2283,13 +2306,10 @@ class Xi extends lr {
2283
2306
  imagePosition: s.data.question.notification.imagePosition
2284
2307
  }
2285
2308
  });
2286
- }), this.openedInsight = hr(this.background.openedQuestion.getStore(), (s) => {
2287
- if (s.data?.type === ze.FACTOID)
2288
- return s.data;
2289
- });
2309
+ }), this.openedInsight = this.background.openedQuestion;
2290
2310
  }
2291
2311
  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", () => {
2312
+ 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
2313
  window.requestAnimationFrame(() => {
2294
2314
  this.insights?.invalidate();
2295
2315
  });
@@ -2302,13 +2322,13 @@ class Xi extends lr {
2302
2322
  closeHighlight = (e) => this.background.closeQuestion(e);
2303
2323
  }
2304
2324
  ae.GAMES + "", ae.HIGHLIGHTS + "";
2305
- class Zi extends lr {
2325
+ class Zi extends hr {
2306
2326
  constructor(e, r) {
2307
2327
  super(e, r);
2308
2328
  }
2309
2329
  }
2310
2330
  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) => {
2331
+ t.features = /* @__PURE__ */ new Map(), t.activeFeature = new ue(ee(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
2332
  t.activeFeature.setValue(o);
2313
2333
  }, t.sdk.closeFeature = () => {
2314
2334
  t.activeFeature.setValue(ae.UNSET);
@@ -2379,7 +2399,7 @@ function ro(t) {
2379
2399
  };
2380
2400
  }
2381
2401
  var no = ro, io = no;
2382
- function an(t, e, r) {
2402
+ function sn(t, e, r) {
2383
2403
  if (typeof t == "function" && (r = e, e = t, t = null), r < 1)
2384
2404
  throw new Error("fastqueue concurrency must be greater than 1");
2385
2405
  var o = io(oo), s = null, u = null, l = 0, f = null, d = {
@@ -2397,8 +2417,8 @@ function an(t, e, r) {
2397
2417
  unshift: Q,
2398
2418
  empty: se,
2399
2419
  kill: X,
2400
- killAndDrain: ye,
2401
- error: ee
2420
+ killAndDrain: de,
2421
+ error: te
2402
2422
  };
2403
2423
  return d;
2404
2424
  function A() {
@@ -2408,46 +2428,46 @@ function an(t, e, r) {
2408
2428
  d.paused = !0;
2409
2429
  }
2410
2430
  function w() {
2411
- for (var x = s, j = 0; x; )
2412
- x = x.next, j++;
2431
+ for (var B = s, j = 0; B; )
2432
+ B = B.next, j++;
2413
2433
  return j;
2414
2434
  }
2415
2435
  function E() {
2416
- for (var x = s, j = []; x; )
2417
- j.push(x.value), x = x.next;
2436
+ for (var B = s, j = []; B; )
2437
+ j.push(B.value), B = B.next;
2418
2438
  return j;
2419
2439
  }
2420
2440
  function C() {
2421
2441
  if (d.paused) {
2422
2442
  d.paused = !1;
2423
- for (var x = 0; x < d.concurrency; x++)
2443
+ for (var B = 0; B < d.concurrency; B++)
2424
2444
  l++, z();
2425
2445
  }
2426
2446
  }
2427
2447
  function P() {
2428
2448
  return l === 0 && d.length() === 0;
2429
2449
  }
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));
2450
+ function N(B, j) {
2451
+ var O = o.get();
2452
+ 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
2453
  }
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));
2454
+ function Q(B, j) {
2455
+ var O = o.get();
2456
+ 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
2457
  }
2438
- function z(x) {
2439
- x && o.release(x);
2458
+ function z(B) {
2459
+ B && o.release(B);
2440
2460
  var j = s;
2441
2461
  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
2462
  }
2443
2463
  function X() {
2444
2464
  s = null, u = null, d.drain = se;
2445
2465
  }
2446
- function ye() {
2466
+ function de() {
2447
2467
  s = null, u = null, d.drain(), d.drain = se;
2448
2468
  }
2449
- function ee(x) {
2450
- f = x;
2469
+ function te(B) {
2470
+ f = B;
2451
2471
  }
2452
2472
  }
2453
2473
  function se() {
@@ -2467,7 +2487,7 @@ function so(t, e, r) {
2467
2487
  w(null, E);
2468
2488
  }, w);
2469
2489
  }
2470
- var s = an(t, o, r), u = s.push, l = s.unshift;
2490
+ var s = sn(t, o, r), u = s.push, l = s.unshift;
2471
2491
  return s.push = f, s.unshift = d, s.drained = A, s;
2472
2492
  function f(g) {
2473
2493
  var w = new Promise(function(E, C) {
@@ -2506,12 +2526,12 @@ function so(t, e, r) {
2506
2526
  return w;
2507
2527
  }
2508
2528
  }
2509
- yr.exports = an;
2529
+ yr.exports = sn;
2510
2530
  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) {
2531
+ 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
2532
  return Function.prototype.apply.call(e, r, o);
2513
2533
  }, dt;
2514
- Je && typeof Je.ownKeys == "function" ? dt = Je.ownKeys : Object.getOwnPropertySymbols ? dt = function(e) {
2534
+ We && typeof We.ownKeys == "function" ? dt = We.ownKeys : Object.getOwnPropertySymbols ? dt = function(e) {
2515
2535
  return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
2516
2536
  } : dt = function(e) {
2517
2537
  return Object.getOwnPropertyNames(e);
@@ -2519,7 +2539,7 @@ Je && typeof Je.ownKeys == "function" ? dt = Je.ownKeys : Object.getOwnPropertyS
2519
2539
  function ao(t) {
2520
2540
  console && console.warn && console.warn(t);
2521
2541
  }
2522
- var cn = Number.isNaN || function(e) {
2542
+ var un = Number.isNaN || function(e) {
2523
2543
  return e !== e;
2524
2544
  };
2525
2545
  function $() {
@@ -2531,35 +2551,35 @@ $.EventEmitter = $;
2531
2551
  $.prototype._events = void 0;
2532
2552
  $.prototype._eventsCount = 0;
2533
2553
  $.prototype._maxListeners = void 0;
2534
- var Tr = 10;
2535
- function Ot(t) {
2554
+ var Cr = 10;
2555
+ function xt(t) {
2536
2556
  if (typeof t != "function")
2537
2557
  throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t);
2538
2558
  }
2539
2559
  Object.defineProperty($, "defaultMaxListeners", {
2540
2560
  enumerable: !0,
2541
2561
  get: function() {
2542
- return Tr;
2562
+ return Cr;
2543
2563
  },
2544
2564
  set: function(t) {
2545
- if (typeof t != "number" || t < 0 || cn(t))
2565
+ if (typeof t != "number" || t < 0 || un(t))
2546
2566
  throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + ".");
2547
- Tr = t;
2567
+ Cr = t;
2548
2568
  }
2549
2569
  });
2550
2570
  $.init = function() {
2551
2571
  (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
2572
  };
2553
2573
  $.prototype.setMaxListeners = function(e) {
2554
- if (typeof e != "number" || e < 0 || cn(e))
2574
+ if (typeof e != "number" || e < 0 || un(e))
2555
2575
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
2556
2576
  return this._maxListeners = e, this;
2557
2577
  };
2558
- function fn(t) {
2578
+ function cn(t) {
2559
2579
  return t._maxListeners === void 0 ? $.defaultMaxListeners : t._maxListeners;
2560
2580
  }
2561
2581
  $.prototype.getMaxListeners = function() {
2562
- return fn(this);
2582
+ return cn(this);
2563
2583
  };
2564
2584
  $.prototype.emit = function(e) {
2565
2585
  for (var r = [], o = 1; o < arguments.length; o++)
@@ -2580,21 +2600,21 @@ $.prototype.emit = function(e) {
2580
2600
  if (d === void 0)
2581
2601
  return !1;
2582
2602
  if (typeof d == "function")
2583
- Cr(d, this, r);
2603
+ Fr(d, this, r);
2584
2604
  else
2585
- for (var A = d.length, g = yn(d, A), o = 0; o < A; ++o)
2586
- Cr(g[o], this, r);
2605
+ for (var A = d.length, g = dn(d, A), o = 0; o < A; ++o)
2606
+ Fr(g[o], this, r);
2587
2607
  return !0;
2588
2608
  };
2589
- function ln(t, e, r, o) {
2609
+ function fn(t, e, r, o) {
2590
2610
  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(
2611
+ 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
2612
  "newListener",
2593
2613
  e,
2594
2614
  r.listener ? r.listener : r
2595
2615
  ), u = t._events), l = u[e]), l === void 0)
2596
2616
  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) {
2617
+ 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
2618
  l.warned = !0;
2599
2619
  var f = new Error("Possible EventEmitter memory leak detected. " + l.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
2600
2620
  f.name = "MaxListenersExceededWarning", f.emitter = t, f.type = e, f.count = l.length, ao(f);
@@ -2602,29 +2622,29 @@ function ln(t, e, r, o) {
2602
2622
  return t;
2603
2623
  }
2604
2624
  $.prototype.addListener = function(e, r) {
2605
- return ln(this, e, r, !1);
2625
+ return fn(this, e, r, !1);
2606
2626
  };
2607
2627
  $.prototype.on = $.prototype.addListener;
2608
2628
  $.prototype.prependListener = function(e, r) {
2609
- return ln(this, e, r, !0);
2629
+ return fn(this, e, r, !0);
2610
2630
  };
2611
2631
  function uo() {
2612
2632
  if (!this.fired)
2613
2633
  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
2634
  }
2615
- function hn(t, e, r) {
2635
+ function ln(t, e, r) {
2616
2636
  var o = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s = uo.bind(o);
2617
2637
  return s.listener = r, o.wrapFn = s, s;
2618
2638
  }
2619
2639
  $.prototype.once = function(e, r) {
2620
- return Ot(r), this.on(e, hn(this, e, r)), this;
2640
+ return xt(r), this.on(e, ln(this, e, r)), this;
2621
2641
  };
2622
2642
  $.prototype.prependOnceListener = function(e, r) {
2623
- return Ot(r), this.prependListener(e, hn(this, e, r)), this;
2643
+ return xt(r), this.prependListener(e, ln(this, e, r)), this;
2624
2644
  };
2625
2645
  $.prototype.removeListener = function(e, r) {
2626
2646
  var o, s, u, l, f;
2627
- if (Ot(r), s = this._events, s === void 0)
2647
+ if (xt(r), s = this._events, s === void 0)
2628
2648
  return this;
2629
2649
  if (o = s[e], o === void 0)
2630
2650
  return this;
@@ -2662,24 +2682,24 @@ $.prototype.removeAllListeners = function(e) {
2662
2682
  this.removeListener(e, r[s]);
2663
2683
  return this;
2664
2684
  };
2665
- function pn(t, e, r) {
2685
+ function hn(t, e, r) {
2666
2686
  var o = t._events;
2667
2687
  if (o === void 0)
2668
2688
  return [];
2669
2689
  var s = o[e];
2670
- return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ? fo(s) : yn(s, s.length);
2690
+ return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ? fo(s) : dn(s, s.length);
2671
2691
  }
2672
2692
  $.prototype.listeners = function(e) {
2673
- return pn(this, e, !0);
2693
+ return hn(this, e, !0);
2674
2694
  };
2675
2695
  $.prototype.rawListeners = function(e) {
2676
- return pn(this, e, !1);
2696
+ return hn(this, e, !1);
2677
2697
  };
2678
2698
  $.listenerCount = function(t, e) {
2679
- return typeof t.listenerCount == "function" ? t.listenerCount(e) : dn.call(t, e);
2699
+ return typeof t.listenerCount == "function" ? t.listenerCount(e) : pn.call(t, e);
2680
2700
  };
2681
- $.prototype.listenerCount = dn;
2682
- function dn(t) {
2701
+ $.prototype.listenerCount = pn;
2702
+ function pn(t) {
2683
2703
  var e = this._events;
2684
2704
  if (e !== void 0) {
2685
2705
  var r = e[t];
@@ -2693,7 +2713,7 @@ function dn(t) {
2693
2713
  $.prototype.eventNames = function() {
2694
2714
  return this._eventsCount > 0 ? dt(this._events) : [];
2695
2715
  };
2696
- function yn(t, e) {
2716
+ function dn(t, e) {
2697
2717
  for (var r = new Array(e), o = 0; o < e; ++o)
2698
2718
  r[o] = t[o];
2699
2719
  return r;
@@ -2716,13 +2736,13 @@ function lo(t, e) {
2716
2736
  function u() {
2717
2737
  typeof t.removeListener == "function" && t.removeListener("error", s), r([].slice.call(arguments));
2718
2738
  }
2719
- gn(t, e, u, { once: !0 }), e !== "error" && ho(t, s, { once: !0 });
2739
+ yn(t, e, u, { once: !0 }), e !== "error" && ho(t, s, { once: !0 });
2720
2740
  });
2721
2741
  }
2722
2742
  function ho(t, e, r) {
2723
- typeof t.on == "function" && gn(t, "error", e, r);
2743
+ typeof t.on == "function" && yn(t, "error", e, r);
2724
2744
  }
2725
- function gn(t, e, r, o) {
2745
+ function yn(t, e, r, o) {
2726
2746
  if (typeof t.on == "function")
2727
2747
  o.once ? t.once(e, r) : t.on(e, r);
2728
2748
  else if (typeof t.addEventListener == "function")
@@ -2732,7 +2752,7 @@ function gn(t, e, r, o) {
2732
2752
  else
2733
2753
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
2734
2754
  }
2735
- var mn = gr.exports, xt = {}, bn = {}, wn = function() {
2755
+ var gn = gr.exports, Bt = {}, mn = {}, bn = function() {
2736
2756
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
2737
2757
  return !1;
2738
2758
  if (typeof Symbol.iterator == "symbol")
@@ -2755,14 +2775,14 @@ var mn = gr.exports, xt = {}, bn = {}, wn = function() {
2755
2775
  return !1;
2756
2776
  }
2757
2777
  return !0;
2758
- }, po = wn, mr = function() {
2778
+ }, po = bn, mr = function() {
2759
2779
  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 = {
2780
+ }, Tr = typeof Symbol < "u" && Symbol, yo = bn, go = function() {
2781
+ return typeof Tr != "function" || typeof Symbol != "function" || typeof Tr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : yo();
2782
+ }, _r = {
2763
2783
  foo: {}
2764
2784
  }, mo = Object, bo = function() {
2765
- return { __proto__: Br }.foo === Br.foo && !({ __proto__: null } instanceof mo);
2785
+ return { __proto__: _r }.foo === _r.foo && !({ __proto__: null } instanceof mo);
2766
2786
  }, wo = "Function.prototype.bind called on incompatible ", vo = Object.prototype.toString, So = Math.max, Ao = "[object Function]", Or = function(e, r) {
2767
2787
  for (var o = [], s = 0; s < e.length; s += 1)
2768
2788
  o[s] = e[s];
@@ -2801,44 +2821,44 @@ var mn = gr.exports, xt = {}, bn = {}, wn = function() {
2801
2821
  A.prototype = r.prototype, s.prototype = new A(), A.prototype = null;
2802
2822
  }
2803
2823
  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) {
2824
+ }, Co = Fo, wn = Function.prototype.bind || Co, xr = {}.hasOwnProperty, Lt = Function.prototype.call, To = Lt.bind ? Lt.bind(xr) : function(t, e) {
2805
2825
  return Lt.call(xr, t, e);
2806
- }, k, Xe = SyntaxError, Sn = Function, Ye = TypeError, Ut = function(t) {
2826
+ }, k, Ye = SyntaxError, vn = Function, Je = TypeError, Ut = function(t) {
2807
2827
  try {
2808
- return Sn('"use strict"; return (' + t + ").constructor;")();
2828
+ return vn('"use strict"; return (' + t + ").constructor;")();
2809
2829
  } catch {
2810
2830
  }
2811
- }, Ue = Object.getOwnPropertyDescriptor;
2812
- if (Ue)
2831
+ }, $e = Object.getOwnPropertyDescriptor;
2832
+ if ($e)
2813
2833
  try {
2814
- Ue({}, "");
2834
+ $e({}, "");
2815
2835
  } catch {
2816
- Ue = null;
2836
+ $e = null;
2817
2837
  }
2818
2838
  var $t = function() {
2819
- throw new Ye();
2820
- }, _o = Ue ? function() {
2839
+ throw new Je();
2840
+ }, _o = $e ? function() {
2821
2841
  try {
2822
2842
  return arguments.callee, $t;
2823
2843
  } catch {
2824
2844
  try {
2825
- return Ue(arguments, "callee").get;
2845
+ return $e(arguments, "callee").get;
2826
2846
  } catch {
2827
2847
  return $t;
2828
2848
  }
2829
2849
  }
2830
- }() : $t, Me = go(), Bo = bo(), H = Object.getPrototypeOf || (Bo ? function(t) {
2850
+ }() : $t, Ve = go(), Oo = bo(), H = Object.getPrototypeOf || (Oo ? function(t) {
2831
2851
  return t.__proto__;
2832
- } : null), qe = {}, Oo = typeof Uint8Array > "u" || !H ? k : H(Uint8Array), $e = {
2852
+ } : null), Ge = {}, xo = typeof Uint8Array > "u" || !H ? k : H(Uint8Array), De = {
2833
2853
  "%AggregateError%": typeof AggregateError > "u" ? k : AggregateError,
2834
2854
  "%Array%": Array,
2835
2855
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? k : ArrayBuffer,
2836
- "%ArrayIteratorPrototype%": Me && H ? H([][Symbol.iterator]()) : k,
2856
+ "%ArrayIteratorPrototype%": Ve && H ? H([][Symbol.iterator]()) : k,
2837
2857
  "%AsyncFromSyncIteratorPrototype%": k,
2838
- "%AsyncFunction%": qe,
2839
- "%AsyncGenerator%": qe,
2840
- "%AsyncGeneratorFunction%": qe,
2841
- "%AsyncIteratorPrototype%": qe,
2858
+ "%AsyncFunction%": Ge,
2859
+ "%AsyncGenerator%": Ge,
2860
+ "%AsyncGeneratorFunction%": Ge,
2861
+ "%AsyncIteratorPrototype%": Ge,
2842
2862
  "%Atomics%": typeof Atomics > "u" ? k : Atomics,
2843
2863
  "%BigInt%": typeof BigInt > "u" ? k : BigInt,
2844
2864
  "%BigInt64Array%": typeof BigInt64Array > "u" ? k : BigInt64Array,
@@ -2857,17 +2877,17 @@ var $t = function() {
2857
2877
  "%Float32Array%": typeof Float32Array > "u" ? k : Float32Array,
2858
2878
  "%Float64Array%": typeof Float64Array > "u" ? k : Float64Array,
2859
2879
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? k : FinalizationRegistry,
2860
- "%Function%": Sn,
2861
- "%GeneratorFunction%": qe,
2880
+ "%Function%": vn,
2881
+ "%GeneratorFunction%": Ge,
2862
2882
  "%Int8Array%": typeof Int8Array > "u" ? k : Int8Array,
2863
2883
  "%Int16Array%": typeof Int16Array > "u" ? k : Int16Array,
2864
2884
  "%Int32Array%": typeof Int32Array > "u" ? k : Int32Array,
2865
2885
  "%isFinite%": isFinite,
2866
2886
  "%isNaN%": isNaN,
2867
- "%IteratorPrototype%": Me && H ? H(H([][Symbol.iterator]())) : k,
2887
+ "%IteratorPrototype%": Ve && H ? H(H([][Symbol.iterator]())) : k,
2868
2888
  "%JSON%": typeof JSON == "object" ? JSON : k,
2869
2889
  "%Map%": typeof Map > "u" ? k : Map,
2870
- "%MapIteratorPrototype%": typeof Map > "u" || !Me || !H ? k : H((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2890
+ "%MapIteratorPrototype%": typeof Map > "u" || !Ve || !H ? k : H((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2871
2891
  "%Math%": Math,
2872
2892
  "%Number%": Number,
2873
2893
  "%Object%": Object,
@@ -2880,15 +2900,15 @@ var $t = function() {
2880
2900
  "%Reflect%": typeof Reflect > "u" ? k : Reflect,
2881
2901
  "%RegExp%": RegExp,
2882
2902
  "%Set%": typeof Set > "u" ? k : Set,
2883
- "%SetIteratorPrototype%": typeof Set > "u" || !Me || !H ? k : H((/* @__PURE__ */ new Set())[Symbol.iterator]()),
2903
+ "%SetIteratorPrototype%": typeof Set > "u" || !Ve || !H ? k : H((/* @__PURE__ */ new Set())[Symbol.iterator]()),
2884
2904
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? k : SharedArrayBuffer,
2885
2905
  "%String%": String,
2886
- "%StringIteratorPrototype%": Me && H ? H(""[Symbol.iterator]()) : k,
2887
- "%Symbol%": Me ? Symbol : k,
2888
- "%SyntaxError%": Xe,
2906
+ "%StringIteratorPrototype%": Ve && H ? H(""[Symbol.iterator]()) : k,
2907
+ "%Symbol%": Ve ? Symbol : k,
2908
+ "%SyntaxError%": Ye,
2889
2909
  "%ThrowTypeError%": _o,
2890
- "%TypedArray%": Oo,
2891
- "%TypeError%": Ye,
2910
+ "%TypedArray%": xo,
2911
+ "%TypeError%": Je,
2892
2912
  "%Uint8Array%": typeof Uint8Array > "u" ? k : Uint8Array,
2893
2913
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? k : Uint8ClampedArray,
2894
2914
  "%Uint16Array%": typeof Uint16Array > "u" ? k : Uint16Array,
@@ -2902,8 +2922,8 @@ if (H)
2902
2922
  try {
2903
2923
  null.error;
2904
2924
  } catch (t) {
2905
- var xo = H(H(t));
2906
- $e["%Error.prototype%"] = xo;
2925
+ var Bo = H(H(t));
2926
+ De["%Error.prototype%"] = Bo;
2907
2927
  }
2908
2928
  var ko = function t(e) {
2909
2929
  var r;
@@ -2920,8 +2940,8 @@ var ko = function t(e) {
2920
2940
  var s = t("%AsyncGenerator%");
2921
2941
  s && H && (r = H(s.prototype));
2922
2942
  }
2923
- return $e[e] = r, r;
2924
- }, kr = {
2943
+ return De[e] = r, r;
2944
+ }, Br = {
2925
2945
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
2926
2946
  "%ArrayPrototype%": ["Array", "prototype"],
2927
2947
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -2973,60 +2993,60 @@ var ko = function t(e) {
2973
2993
  "%URIErrorPrototype%": ["URIError", "prototype"],
2974
2994
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2975
2995
  "%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) {
2996
+ }, 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
2997
  var r = At(e, 0, 1), o = At(e, -1);
2978
2998
  if (r === "%" && o !== "%")
2979
- throw new Xe("invalid intrinsic syntax, expected closing `%`");
2999
+ throw new Ye("invalid intrinsic syntax, expected closing `%`");
2980
3000
  if (o === "%" && r !== "%")
2981
- throw new Xe("invalid intrinsic syntax, expected opening `%`");
3001
+ throw new Ye("invalid intrinsic syntax, expected opening `%`");
2982
3002
  var s = [];
2983
- return Pr(e, Lo, function(u, l, f, d) {
2984
- s[s.length] = f ? Pr(d, Uo, "$1") : l || u;
3003
+ return kr(e, Lo, function(u, l, f, d) {
3004
+ s[s.length] = f ? kr(d, Uo, "$1") : l || u;
2985
3005
  }), s;
2986
3006
  }, Do = function(e, r) {
2987
3007
  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!");
3008
+ if (St(Br, o) && (s = Br[o], o = "%" + s[0] + "%"), St(De, o)) {
3009
+ var u = De[o];
3010
+ if (u === Ge && (u = ko(o)), typeof u > "u" && !r)
3011
+ throw new Je("intrinsic " + e + " exists, but is not available. Please file an issue!");
2992
3012
  return {
2993
3013
  alias: s,
2994
3014
  name: o,
2995
3015
  value: u
2996
3016
  };
2997
3017
  }
2998
- throw new Xe("intrinsic " + e + " does not exist!");
2999
- }, et = function(e, r) {
3018
+ throw new Ye("intrinsic " + e + " does not exist!");
3019
+ }, Ze = function(e, r) {
3000
3020
  if (typeof e != "string" || e.length === 0)
3001
- throw new Ye("intrinsic name must be a non-empty string");
3021
+ throw new Je("intrinsic name must be a non-empty string");
3002
3022
  if (arguments.length > 1 && typeof r != "boolean")
3003
- throw new Ye('"allowMissing" argument must be a boolean');
3023
+ throw new Je('"allowMissing" argument must be a boolean');
3004
3024
  if (No(/^%?[^%]*%?$/, e) === null)
3005
- throw new Xe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3025
+ throw new Ye("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3006
3026
  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
3027
  A && (s = A[0], Ro(o, Po([0, 1], A)));
3008
3028
  for (var g = 1, w = !0; g < o.length; g += 1) {
3009
3029
  var E = o[g], C = At(E, 0, 1), P = At(E, -1);
3010
3030
  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];
3031
+ throw new Ye("property names with quotes must have matching quotes");
3032
+ if ((E === "constructor" || !w) && (d = !0), s += "." + E, l = "%" + s + "%", St(De, l))
3033
+ f = De[l];
3014
3034
  else if (f != null) {
3015
3035
  if (!(E in f)) {
3016
3036
  if (!r)
3017
- throw new Ye("base intrinsic for " + e + " exists, but the property is not available.");
3037
+ throw new Je("base intrinsic for " + e + " exists, but the property is not available.");
3018
3038
  return;
3019
3039
  }
3020
- if (Ue && g + 1 >= o.length) {
3021
- var N = Ue(f, E);
3040
+ if ($e && g + 1 >= o.length) {
3041
+ var N = $e(f, E);
3022
3042
  w = !!N, w && "get" in N && !("originalValue" in N.get) ? f = N.get : f = f[E];
3023
3043
  } else
3024
3044
  w = St(f, E), f = f[E];
3025
- w && !d && ($e[l] = f);
3045
+ w && !d && (De[l] = f);
3026
3046
  }
3027
3047
  }
3028
3048
  return f;
3029
- }, An = { exports: {} }, jo = et, er = jo("%Object.defineProperty%", !0), tr = function() {
3049
+ }, Sn = { exports: {} }, jo = Ze, er = jo("%Object.defineProperty%", !0), tr = function() {
3030
3050
  if (er)
3031
3051
  try {
3032
3052
  return er({}, "a", { value: 1 }), !0;
@@ -3044,34 +3064,34 @@ tr.hasArrayLengthDefineBug = function() {
3044
3064
  return !0;
3045
3065
  }
3046
3066
  };
3047
- var En = tr, Mo = et, yt = Mo("%Object.getOwnPropertyDescriptor%", !0);
3067
+ var An = tr, Mo = Ze, yt = Mo("%Object.getOwnPropertyDescriptor%", !0);
3048
3068
  if (yt)
3049
3069
  try {
3050
3070
  yt([], "length");
3051
3071
  } catch {
3052
3072
  yt = null;
3053
3073
  }
3054
- var br = yt, Vo = En(), wr = et, ut = Vo && wr("%Object.defineProperty%", !0);
3074
+ var br = yt, Vo = An(), wr = Ze, ut = Vo && wr("%Object.defineProperty%", !0);
3055
3075
  if (ut)
3056
3076
  try {
3057
3077
  ut({}, "a", { value: 1 });
3058
3078
  } catch {
3059
3079
  ut = !1;
3060
3080
  }
3061
- var qo = wr("%SyntaxError%"), Ve = wr("%TypeError%"), Rr = br, Go = function(e, r, o) {
3081
+ var qo = wr("%SyntaxError%"), qe = wr("%TypeError%"), Pr = br, Go = function(e, r, o) {
3062
3082
  if (!e || typeof e != "object" && typeof e != "function")
3063
- throw new Ve("`obj` must be an object or a function`");
3083
+ throw new qe("`obj` must be an object or a function`");
3064
3084
  if (typeof r != "string" && typeof r != "symbol")
3065
- throw new Ve("`property` must be a string or a symbol`");
3085
+ throw new qe("`property` must be a string or a symbol`");
3066
3086
  if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
3067
- throw new Ve("`nonEnumerable`, if provided, must be a boolean or null");
3087
+ throw new qe("`nonEnumerable`, if provided, must be a boolean or null");
3068
3088
  if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
3069
- throw new Ve("`nonWritable`, if provided, must be a boolean or null");
3089
+ throw new qe("`nonWritable`, if provided, must be a boolean or null");
3070
3090
  if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
3071
- throw new Ve("`nonConfigurable`, if provided, must be a boolean or null");
3091
+ throw new qe("`nonConfigurable`, if provided, must be a boolean or null");
3072
3092
  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);
3093
+ throw new qe("`loose`, if provided, must be a boolean");
3094
+ 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
3095
  if (ut)
3076
3096
  ut(e, r, {
3077
3097
  configurable: l === null && d ? d.configurable : !l,
@@ -3083,20 +3103,20 @@ var qo = wr("%SyntaxError%"), Ve = wr("%TypeError%"), Rr = br, Go = function(e,
3083
3103
  e[r] = o;
3084
3104
  else
3085
3105
  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) {
3106
+ }, En = Ze, Rr = Go, Qo = An(), Nr = br, Lr = En("%TypeError%"), zo = En("%Math.floor%"), Ko = function(e, r) {
3087
3107
  if (typeof e != "function")
3088
- throw new Ur("`fn` is not a function");
3108
+ throw new Lr("`fn` is not a function");
3089
3109
  if (typeof r != "number" || r < 0 || r > 4294967295 || zo(r) !== r)
3090
- throw new Ur("`length` must be a positive 32-bit integer");
3110
+ throw new Lr("`length` must be a positive 32-bit integer");
3091
3111
  var o = arguments.length > 2 && !!arguments[2], s = !0, u = !0;
3092
- if ("length" in e && Lr) {
3093
- var l = Lr(e, "length");
3112
+ if ("length" in e && Nr) {
3113
+ var l = Nr(e, "length");
3094
3114
  l && !l.configurable && (s = !1), l && !l.writable && (u = !1);
3095
3115
  }
3096
- return (s || u || !o) && (Qo ? Nr(e, "length", r, !0, !0) : Nr(e, "length", r)), e;
3116
+ return (s || u || !o) && (Qo ? Rr(e, "length", r, !0, !0) : Rr(e, "length", r)), e;
3097
3117
  };
3098
3118
  (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%");
3119
+ 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
3120
  if (d)
3101
3121
  try {
3102
3122
  d({}, "a", { value: 1 });
@@ -3117,19 +3137,19 @@ var qo = wr("%SyntaxError%"), Ve = wr("%TypeError%"), Rr = br, Go = function(e,
3117
3137
  return f(e, u, arguments);
3118
3138
  };
3119
3139
  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) {
3140
+ })(Sn);
3141
+ var In = Sn.exports, Fn = Ze, Cn = In, Ho = Cn(Fn("String.prototype.indexOf")), Tn = function(e, r) {
3142
+ var o = Fn(e, !!r);
3143
+ return typeof o == "function" && Ho(e, ".prototype.") > -1 ? Cn(o) : o;
3144
+ }, Wo = mr(), Jo = Tn, rr = Jo("Object.prototype.toString"), kt = function(e) {
3125
3145
  return Wo && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : rr(e) === "[object Arguments]";
3126
- }, Bn = function(e) {
3146
+ }, _n = function(e) {
3127
3147
  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
3148
  }, Yo = function() {
3129
3149
  return kt(arguments);
3130
3150
  }();
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() {
3151
+ kt.isLegacyArguments = _n;
3152
+ var Xo = Yo ? kt : _n, Zo = Object.prototype.toString, es = Function.prototype.toString, ts = /^\s*(?:function)?\*/, On = mr(), Dt = Object.getPrototypeOf, rs = function() {
3133
3153
  if (!On)
3134
3154
  return !1;
3135
3155
  try {
@@ -3152,21 +3172,21 @@ var Xo = Yo ? kt : Bn, Zo = Object.prototype.toString, es = Function.prototype.t
3152
3172
  jt = o ? Dt(o) : !1;
3153
3173
  }
3154
3174
  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")
3175
+ }, xn = Function.prototype.toString, ze = typeof Reflect == "object" && Reflect !== null && Reflect.apply, nr, gt;
3176
+ if (typeof ze == "function" && typeof Object.defineProperty == "function")
3157
3177
  try {
3158
3178
  nr = Object.defineProperty({}, "length", {
3159
3179
  get: function() {
3160
3180
  throw gt;
3161
3181
  }
3162
- }), gt = {}, Qe(function() {
3182
+ }), gt = {}, ze(function() {
3163
3183
  throw 42;
3164
3184
  }, null, nr);
3165
3185
  } catch (t) {
3166
- t !== gt && (Qe = null);
3186
+ t !== gt && (ze = null);
3167
3187
  }
3168
3188
  else
3169
- Qe = null;
3189
+ ze = null;
3170
3190
  var is = /^\s*class\b/, ir = function(e) {
3171
3191
  try {
3172
3192
  var r = xn.call(e);
@@ -3195,13 +3215,13 @@ if (typeof document == "object") {
3195
3215
  return !1;
3196
3216
  });
3197
3217
  }
3198
- var ds = Qe ? function(e) {
3218
+ var ds = ze ? function(e) {
3199
3219
  if (or(e))
3200
3220
  return !0;
3201
3221
  if (!e || typeof e != "function" && typeof e != "object")
3202
3222
  return !1;
3203
3223
  try {
3204
- Qe(e, null, nr);
3224
+ ze(e, null, nr);
3205
3225
  } catch (r) {
3206
3226
  if (r !== gt)
3207
3227
  return !1;
@@ -3218,15 +3238,15 @@ var ds = Qe ? function(e) {
3218
3238
  return !1;
3219
3239
  var r = mt.call(e);
3220
3240
  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) {
3241
+ }, ys = ds, gs = Object.prototype.toString, Bn = Object.prototype.hasOwnProperty, ms = function(e, r, o) {
3222
3242
  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));
3243
+ Bn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
3224
3244
  }, bs = function(e, r, o) {
3225
3245
  for (var s = 0, u = e.length; s < u; s++)
3226
3246
  o == null ? r(e.charAt(s), s, e) : r.call(o, e.charAt(s), s, e);
3227
3247
  }, ws = function(e, r, o) {
3228
3248
  for (var s in e)
3229
- kn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
3249
+ Bn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
3230
3250
  }, vs = function(e, r, o) {
3231
3251
  if (!ys(r))
3232
3252
  throw new TypeError("iterator must be a function");
@@ -3244,29 +3264,29 @@ var ds = Qe ? function(e) {
3244
3264
  "Uint32Array",
3245
3265
  "Uint8Array",
3246
3266
  "Uint8ClampedArray"
3247
- ], As = typeof globalThis > "u" ? Yr : globalThis, Es = function() {
3267
+ ], As = typeof globalThis > "u" ? Wr : globalThis, Es = function() {
3248
3268
  for (var e = [], r = 0; r < Vt.length; r++)
3249
3269
  typeof As[Vt[r]] == "function" && (e[e.length] = Vt[r]);
3250
3270
  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) {
3271
+ }, 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
3272
  for (var o = 0; o < e.length; o += 1)
3253
3273
  if (e[o] === r)
3254
3274
  return o;
3255
3275
  return -1;
3256
3276
  }, It = { __proto__: null };
3257
- Pn && bt && qt ? Et(sr, function(t) {
3258
- var e = new Dr[t]();
3277
+ kn && bt && qt ? Et(sr, function(t) {
3278
+ var e = new $r[t]();
3259
3279
  if (Symbol.toStringTag in e) {
3260
3280
  var r = qt(e), o = bt(r, Symbol.toStringTag);
3261
3281
  if (!o) {
3262
3282
  var s = qt(r);
3263
3283
  o = bt(s, Symbol.toStringTag);
3264
3284
  }
3265
- It["$" + t] = $r(o.get);
3285
+ It["$" + t] = Ur(o.get);
3266
3286
  }
3267
3287
  }) : Et(sr, function(t) {
3268
- var e = new Dr[t](), r = e.slice || e.set;
3269
- r && (It["$" + t] = $r(r));
3288
+ var e = new $r[t](), r = e.slice || e.set;
3289
+ r && (It["$" + t] = Ur(r));
3270
3290
  });
3271
3291
  var Ts = function(e) {
3272
3292
  var r = !1;
@@ -3286,19 +3306,19 @@ var Ts = function(e) {
3286
3306
  } catch {
3287
3307
  }
3288
3308
  }), r;
3289
- }, Rn = function(e) {
3309
+ }, Pn = function(e) {
3290
3310
  if (!e || typeof e != "object")
3291
3311
  return !1;
3292
- if (!Pn) {
3312
+ if (!kn) {
3293
3313
  var r = Sr(Fs(e), 8, -1);
3294
3314
  return Cs(sr, r) > -1 ? r : r !== "Object" ? !1 : _s(e);
3295
3315
  }
3296
3316
  return bt ? Ts(e) : null;
3297
- }, Bs = Rn, Os = function(e) {
3298
- return !!Bs(e);
3317
+ }, Os = Pn, xs = function(e) {
3318
+ return !!Os(e);
3299
3319
  };
3300
3320
  (function(t) {
3301
- var e = Xo, r = ns, o = Rn, s = Os;
3321
+ var e = Xo, r = ns, o = Pn, s = xs;
3302
3322
  function u(v) {
3303
3323
  return v.call.bind(v);
3304
3324
  }
@@ -3333,26 +3353,26 @@ var Ts = function(e) {
3333
3353
  return o(v) === "Uint8ClampedArray";
3334
3354
  }
3335
3355
  t.isUint8ClampedArray = X;
3336
- function ye(v) {
3356
+ function de(v) {
3337
3357
  return o(v) === "Uint16Array";
3338
3358
  }
3339
- t.isUint16Array = ye;
3340
- function ee(v) {
3359
+ t.isUint16Array = de;
3360
+ function te(v) {
3341
3361
  return o(v) === "Uint32Array";
3342
3362
  }
3343
- t.isUint32Array = ee;
3344
- function x(v) {
3363
+ t.isUint32Array = te;
3364
+ function B(v) {
3345
3365
  return o(v) === "Int8Array";
3346
3366
  }
3347
- t.isInt8Array = x;
3367
+ t.isInt8Array = B;
3348
3368
  function j(v) {
3349
3369
  return o(v) === "Int16Array";
3350
3370
  }
3351
3371
  t.isInt16Array = j;
3352
- function B(v) {
3372
+ function O(v) {
3353
3373
  return o(v) === "Int32Array";
3354
3374
  }
3355
- t.isInt32Array = B;
3375
+ t.isInt32Array = O;
3356
3376
  function re(v) {
3357
3377
  return o(v) === "Float32Array";
3358
3378
  }
@@ -3369,38 +3389,38 @@ var Ts = function(e) {
3369
3389
  return o(v) === "BigUint64Array";
3370
3390
  }
3371
3391
  t.isBigUint64Array = Se;
3372
- function fe(v) {
3392
+ function ce(v) {
3373
3393
  return d(v) === "[object Map]";
3374
3394
  }
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;
3395
+ ce.working = typeof Map < "u" && ce(/* @__PURE__ */ new Map());
3396
+ function tt(v) {
3397
+ return typeof Map > "u" ? !1 : ce.working ? ce(v) : v instanceof Map;
3378
3398
  }
3379
- t.isMap = rt;
3380
- function le(v) {
3399
+ t.isMap = tt;
3400
+ function fe(v) {
3381
3401
  return d(v) === "[object Set]";
3382
3402
  }
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;
3403
+ fe.working = typeof Set < "u" && fe(/* @__PURE__ */ new Set());
3388
3404
  function Oe(v) {
3405
+ return typeof Set > "u" ? !1 : fe.working ? fe(v) : v instanceof Set;
3406
+ }
3407
+ t.isSet = Oe;
3408
+ function xe(v) {
3389
3409
  return d(v) === "[object WeakMap]";
3390
3410
  }
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;
3411
+ xe.working = typeof WeakMap < "u" && xe(/* @__PURE__ */ new WeakMap());
3412
+ function rt(v) {
3413
+ return typeof WeakMap > "u" ? !1 : xe.working ? xe(v) : v instanceof WeakMap;
3394
3414
  }
3395
- t.isWeakMap = nt;
3396
- function xe(v) {
3415
+ t.isWeakMap = rt;
3416
+ function Be(v) {
3397
3417
  return d(v) === "[object WeakSet]";
3398
3418
  }
3399
- xe.working = typeof WeakSet < "u" && xe(/* @__PURE__ */ new WeakSet());
3400
- function he(v) {
3401
- return xe(v);
3419
+ Be.working = typeof WeakSet < "u" && Be(/* @__PURE__ */ new WeakSet());
3420
+ function le(v) {
3421
+ return Be(v);
3402
3422
  }
3403
- t.isWeakSet = he;
3423
+ t.isWeakSet = le;
3404
3424
  function ke(v) {
3405
3425
  return d(v) === "[object ArrayBuffer]";
3406
3426
  }
@@ -3433,10 +3453,10 @@ var Ts = function(e) {
3433
3453
  return d(v) === "[object Map Iterator]";
3434
3454
  }
3435
3455
  t.isMapIterator = F;
3436
- function O(v) {
3456
+ function x(v) {
3437
3457
  return d(v) === "[object Set Iterator]";
3438
3458
  }
3439
- t.isSetIterator = O;
3459
+ t.isSetIterator = x;
3440
3460
  function U(v) {
3441
3461
  return d(v) === "[object Generator]";
3442
3462
  }
@@ -3445,30 +3465,30 @@ var Ts = function(e) {
3445
3465
  return d(v) === "[object WebAssembly.Module]";
3446
3466
  }
3447
3467
  t.isWebAssemblyCompiledModule = Y;
3448
- function ge(v) {
3468
+ function ye(v) {
3449
3469
  return P(v, A);
3450
3470
  }
3451
- t.isNumberObject = ge;
3452
- function pe(v) {
3471
+ t.isNumberObject = ye;
3472
+ function he(v) {
3453
3473
  return P(v, g);
3454
3474
  }
3455
- t.isStringObject = pe;
3475
+ t.isStringObject = he;
3456
3476
  function ie(v) {
3457
3477
  return P(v, w);
3458
3478
  }
3459
3479
  t.isBooleanObject = ie;
3460
- function De(v) {
3480
+ function je(v) {
3461
3481
  return l && P(v, E);
3462
3482
  }
3463
- t.isBigIntObject = De;
3483
+ t.isBigIntObject = je;
3464
3484
  function lt(v) {
3465
3485
  return f && P(v, C);
3466
3486
  }
3467
3487
  t.isSymbolObject = lt;
3468
- function it(v) {
3469
- return ge(v) || pe(v) || ie(v) || De(v) || lt(v);
3488
+ function nt(v) {
3489
+ return ye(v) || he(v) || ie(v) || je(v) || lt(v);
3470
3490
  }
3471
- t.isBoxedPrimitive = it;
3491
+ t.isBoxedPrimitive = nt;
3472
3492
  function Pt(v) {
3473
3493
  return typeof Uint8Array < "u" && (V(v) || R(v));
3474
3494
  }
@@ -3480,8 +3500,8 @@ var Ts = function(e) {
3480
3500
  }
3481
3501
  });
3482
3502
  });
3483
- })(bn);
3484
- var xs = function(e) {
3503
+ })(mn);
3504
+ var Bs = function(e) {
3485
3505
  return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
3486
3506
  }, ar = { exports: {} };
3487
3507
  typeof Object.create == "function" ? ar.exports = function(e, r) {
@@ -3509,17 +3529,17 @@ var ks = ar.exports;
3509
3529
  return I;
3510
3530
  }, r = /%[sdj%]/g;
3511
3531
  t.format = function(p) {
3512
- if (!x(p)) {
3532
+ if (!B(p)) {
3513
3533
  for (var b = [], S = 0; S < arguments.length; S++)
3514
3534
  b.push(l(arguments[S]));
3515
3535
  return b.join(" ");
3516
3536
  }
3517
- for (var S = 1, I = arguments, R = I.length, L = String(p).replace(r, function(O) {
3518
- if (O === "%%")
3537
+ for (var S = 1, I = arguments, R = I.length, L = String(p).replace(r, function(x) {
3538
+ if (x === "%%")
3519
3539
  return "%";
3520
3540
  if (S >= R)
3521
- return O;
3522
- switch (O) {
3541
+ return x;
3542
+ switch (x) {
3523
3543
  case "%s":
3524
3544
  return String(I[S++]);
3525
3545
  case "%d":
@@ -3531,7 +3551,7 @@ var ks = ar.exports;
3531
3551
  return "[Circular]";
3532
3552
  }
3533
3553
  default:
3534
- return O;
3554
+ return x;
3535
3555
  }
3536
3556
  }), F = I[S]; S < R; F = I[++S])
3537
3557
  X(F) || !ne(F) ? L += " " + F : L += " " + l(F);
@@ -3577,7 +3597,7 @@ var ks = ar.exports;
3577
3597
  seen: [],
3578
3598
  stylize: d
3579
3599
  };
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);
3600
+ 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
3601
  }
3582
3602
  t.inspect = l, l.colors = {
3583
3603
  bold: [1, 22],
@@ -3618,11 +3638,11 @@ var ks = ar.exports;
3618
3638
  }), b;
3619
3639
  }
3620
3640
  function g(p, b, S) {
3621
- if (p.customInspect && b && fe(b.inspect) && // Filter out the util module, it's inspect function is special
3641
+ if (p.customInspect && b && ce(b.inspect) && // Filter out the util module, it's inspect function is special
3622
3642
  b.inspect !== t.inspect && // Also filter out any prototype objects using the circular check.
3623
3643
  !(b.constructor && b.constructor.prototype === b)) {
3624
3644
  var I = b.inspect(S, p);
3625
- return x(I) || (I = g(p, I, S)), I;
3645
+ return B(I) || (I = g(p, I, S)), I;
3626
3646
  }
3627
3647
  var R = w(p, b);
3628
3648
  if (R)
@@ -3631,9 +3651,9 @@ var ks = ar.exports;
3631
3651
  if (p.showHidden && (L = Object.getOwnPropertyNames(b)), Se(b) && (L.indexOf("message") >= 0 || L.indexOf("description") >= 0))
3632
3652
  return E(b);
3633
3653
  if (L.length === 0) {
3634
- if (fe(b)) {
3635
- var O = b.name ? ": " + b.name : "";
3636
- return p.stylize("[Function" + O + "]", "special");
3654
+ if (ce(b)) {
3655
+ var x = b.name ? ": " + b.name : "";
3656
+ return p.stylize("[Function" + x + "]", "special");
3637
3657
  }
3638
3658
  if (re(b))
3639
3659
  return p.stylize(RegExp.prototype.toString.call(b), "regexp");
@@ -3642,29 +3662,29 @@ var ks = ar.exports;
3642
3662
  if (Se(b))
3643
3663
  return E(b);
3644
3664
  }
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 + "]";
3665
+ var U = "", Y = !1, ye = ["{", "}"];
3666
+ if (Q(b) && (Y = !0, ye = ["[", "]"]), ce(b)) {
3667
+ var he = b.name ? ": " + b.name : "";
3668
+ U = " [Function" + he + "]";
3649
3669
  }
3650
3670
  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];
3671
+ return ye[0] + U + ye[1];
3652
3672
  if (S < 0)
3653
3673
  return re(b) ? p.stylize(RegExp.prototype.toString.call(b), "regexp") : p.stylize("[Object]", "special");
3654
3674
  p.seen.push(b);
3655
3675
  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);
3676
+ return Y ? ie = C(p, b, S, F, L) : ie = L.map(function(je) {
3677
+ return P(p, b, S, F, je, Y);
3678
+ }), p.seen.pop(), N(ie, U, ye);
3659
3679
  }
3660
3680
  function w(p, b) {
3661
- if (B(b))
3681
+ if (O(b))
3662
3682
  return p.stylize("undefined", "undefined");
3663
- if (x(b)) {
3683
+ if (B(b)) {
3664
3684
  var S = "'" + JSON.stringify(b).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
3665
3685
  return p.stylize(S, "string");
3666
3686
  }
3667
- if (ee(b))
3687
+ if (te(b))
3668
3688
  return p.stylize("" + b, "number");
3669
3689
  if (z(b))
3670
3690
  return p.stylize("" + b, "boolean");
@@ -3675,8 +3695,8 @@ var ks = ar.exports;
3675
3695
  return "[" + Error.prototype.toString.call(p) + "]";
3676
3696
  }
3677
3697
  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(
3698
+ for (var L = [], F = 0, x = b.length; F < x; ++F)
3699
+ Be(b, String(F)) ? L.push(P(
3680
3700
  p,
3681
3701
  b,
3682
3702
  S,
@@ -3696,23 +3716,23 @@ var ks = ar.exports;
3696
3716
  }), L;
3697
3717
  }
3698
3718
  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(`
3719
+ var F, x, U;
3720
+ 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(`
3721
+ `) > -1 && (L ? x = x.split(`
3702
3722
  `).map(function(Y) {
3703
3723
  return " " + Y;
3704
3724
  }).join(`
3705
- `).slice(2) : O = `
3706
- ` + O.split(`
3725
+ `).slice(2) : x = `
3726
+ ` + x.split(`
3707
3727
  `).map(function(Y) {
3708
3728
  return " " + Y;
3709
3729
  }).join(`
3710
- `))) : O = p.stylize("[Circular]", "special")), B(F)) {
3730
+ `))) : x = p.stylize("[Circular]", "special")), O(F)) {
3711
3731
  if (L && R.match(/^\d+$/))
3712
- return O;
3732
+ return x;
3713
3733
  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
3734
  }
3715
- return F + ": " + O;
3735
+ return F + ": " + x;
3716
3736
  }
3717
3737
  function N(p, b, S) {
3718
3738
  var I = p.reduce(function(R, L) {
@@ -3723,7 +3743,7 @@ var ks = ar.exports;
3723
3743
  `) + " " + p.join(`,
3724
3744
  `) + " " + S[1] : S[0] + b + " " + p.join(", ") + " " + S[1];
3725
3745
  }
3726
- t.types = bn;
3746
+ t.types = mn;
3727
3747
  function Q(p) {
3728
3748
  return Array.isArray(p);
3729
3749
  }
@@ -3736,28 +3756,28 @@ var ks = ar.exports;
3736
3756
  return p === null;
3737
3757
  }
3738
3758
  t.isNull = X;
3739
- function ye(p) {
3759
+ function de(p) {
3740
3760
  return p == null;
3741
3761
  }
3742
- t.isNullOrUndefined = ye;
3743
- function ee(p) {
3762
+ t.isNullOrUndefined = de;
3763
+ function te(p) {
3744
3764
  return typeof p == "number";
3745
3765
  }
3746
- t.isNumber = ee;
3747
- function x(p) {
3766
+ t.isNumber = te;
3767
+ function B(p) {
3748
3768
  return typeof p == "string";
3749
3769
  }
3750
- t.isString = x;
3770
+ t.isString = B;
3751
3771
  function j(p) {
3752
3772
  return typeof p == "symbol";
3753
3773
  }
3754
3774
  t.isSymbol = j;
3755
- function B(p) {
3775
+ function O(p) {
3756
3776
  return p === void 0;
3757
3777
  }
3758
- t.isUndefined = B;
3778
+ t.isUndefined = O;
3759
3779
  function re(p) {
3760
- return ne(p) && le(p) === "[object RegExp]";
3780
+ return ne(p) && fe(p) === "[object RegExp]";
3761
3781
  }
3762
3782
  t.isRegExp = re, t.types.isRegExp = re;
3763
3783
  function ne(p) {
@@ -3765,29 +3785,29 @@ var ks = ar.exports;
3765
3785
  }
3766
3786
  t.isObject = ne;
3767
3787
  function _e(p) {
3768
- return ne(p) && le(p) === "[object Date]";
3788
+ return ne(p) && fe(p) === "[object Date]";
3769
3789
  }
3770
3790
  t.isDate = _e, t.types.isDate = _e;
3771
3791
  function Se(p) {
3772
- return ne(p) && (le(p) === "[object Error]" || p instanceof Error);
3792
+ return ne(p) && (fe(p) === "[object Error]" || p instanceof Error);
3773
3793
  }
3774
3794
  t.isError = Se, t.types.isNativeError = Se;
3775
- function fe(p) {
3795
+ function ce(p) {
3776
3796
  return typeof p == "function";
3777
3797
  }
3778
- t.isFunction = fe;
3779
- function rt(p) {
3798
+ t.isFunction = ce;
3799
+ function tt(p) {
3780
3800
  return p === null || typeof p == "boolean" || typeof p == "number" || typeof p == "string" || typeof p == "symbol" || // ES6 symbol
3781
3801
  typeof p > "u";
3782
3802
  }
3783
- t.isPrimitive = rt, t.isBuffer = xs;
3784
- function le(p) {
3803
+ t.isPrimitive = tt, t.isBuffer = Bs;
3804
+ function fe(p) {
3785
3805
  return Object.prototype.toString.call(p);
3786
3806
  }
3787
- function Be(p) {
3807
+ function Oe(p) {
3788
3808
  return p < 10 ? "0" + p.toString(10) : p.toString(10);
3789
3809
  }
3790
- var Oe = [
3810
+ var xe = [
3791
3811
  "Jan",
3792
3812
  "Feb",
3793
3813
  "Mar",
@@ -3801,16 +3821,16 @@ var ks = ar.exports;
3801
3821
  "Nov",
3802
3822
  "Dec"
3803
3823
  ];
3804
- function nt() {
3824
+ function rt() {
3805
3825
  var p = /* @__PURE__ */ new Date(), b = [
3806
- Be(p.getHours()),
3807
- Be(p.getMinutes()),
3808
- Be(p.getSeconds())
3826
+ Oe(p.getHours()),
3827
+ Oe(p.getMinutes()),
3828
+ Oe(p.getSeconds())
3809
3829
  ].join(":");
3810
- return [p.getDate(), Oe[p.getMonth()], b].join(" ");
3830
+ return [p.getDate(), xe[p.getMonth()], b].join(" ");
3811
3831
  }
3812
3832
  t.log = function() {
3813
- console.log("%s - %s", nt(), t.format.apply(t, arguments));
3833
+ console.log("%s - %s", rt(), t.format.apply(t, arguments));
3814
3834
  }, t.inherits = ks, t._extend = function(p, b) {
3815
3835
  if (!b || !ne(b))
3816
3836
  return p;
@@ -3818,18 +3838,18 @@ var ks = ar.exports;
3818
3838
  p[S[I]] = b[S[I]];
3819
3839
  return p;
3820
3840
  };
3821
- function xe(p, b) {
3841
+ function Be(p, b) {
3822
3842
  return Object.prototype.hasOwnProperty.call(p, b);
3823
3843
  }
3824
- var he = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
3844
+ var le = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
3825
3845
  t.promisify = function(b) {
3826
3846
  if (typeof b != "function")
3827
3847
  throw new TypeError('The "original" argument must be of type Function');
3828
- if (he && b[he]) {
3829
- var S = b[he];
3848
+ if (le && b[le]) {
3849
+ var S = b[le];
3830
3850
  if (typeof S != "function")
3831
3851
  throw new TypeError('The "util.promisify.custom" argument must be of type Function');
3832
- return Object.defineProperty(S, he, {
3852
+ return Object.defineProperty(S, le, {
3833
3853
  value: S,
3834
3854
  enumerable: !1,
3835
3855
  writable: !1,
@@ -3839,8 +3859,8 @@ var ks = ar.exports;
3839
3859
  function S() {
3840
3860
  for (var I, R, L = new Promise(function(U, Y) {
3841
3861
  I = U, R = Y;
3842
- }), F = [], O = 0; O < arguments.length; O++)
3843
- F.push(arguments[O]);
3862
+ }), F = [], x = 0; x < arguments.length; x++)
3863
+ F.push(arguments[x]);
3844
3864
  F.push(function(U, Y) {
3845
3865
  U ? R(U) : I(Y);
3846
3866
  });
@@ -3851,7 +3871,7 @@ var ks = ar.exports;
3851
3871
  }
3852
3872
  return L;
3853
3873
  }
3854
- return Object.setPrototypeOf(S, Object.getPrototypeOf(b)), he && Object.defineProperty(S, he, {
3874
+ return Object.setPrototypeOf(S, Object.getPrototypeOf(b)), le && Object.defineProperty(S, le, {
3855
3875
  value: S,
3856
3876
  enumerable: !1,
3857
3877
  writable: !1,
@@ -3860,7 +3880,7 @@ var ks = ar.exports;
3860
3880
  S,
3861
3881
  e(b)
3862
3882
  );
3863
- }, t.promisify.custom = he;
3883
+ }, t.promisify.custom = le;
3864
3884
  function ke(p, b) {
3865
3885
  if (!p) {
3866
3886
  var S = new Error("Promise was rejected with a falsy value");
@@ -3881,11 +3901,11 @@ var ks = ar.exports;
3881
3901
  return R.apply(L, arguments);
3882
3902
  };
3883
3903
  p.apply(this, S).then(
3884
- function(O) {
3885
- T.process.nextTick(F.bind(null, null, O));
3904
+ function(x) {
3905
+ T.process.nextTick(F.bind(null, null, x));
3886
3906
  },
3887
- function(O) {
3888
- T.process.nextTick(ke.bind(null, O, F));
3907
+ function(x) {
3908
+ T.process.nextTick(ke.bind(null, x, F));
3889
3909
  }
3890
3910
  );
3891
3911
  }
@@ -3895,8 +3915,8 @@ var ks = ar.exports;
3895
3915
  ), b;
3896
3916
  }
3897
3917
  t.callbackify = V;
3898
- })(xt);
3899
- const { inherits: Ps, format: Gt } = xt;
3918
+ })(Bt);
3919
+ const { inherits: Ps, format: Gt } = Bt;
3900
3920
  function Re(t, e, r = Error) {
3901
3921
  if (!t)
3902
3922
  throw new Error("Avvio error code must not be empty");
@@ -3911,7 +3931,7 @@ function Re(t, e, r = Error) {
3911
3931
  return `${this.name} [${this.code}]: ${this.message}`;
3912
3932
  }, Ps(o, r), o;
3913
3933
  }
3914
- var Nn = {
3934
+ var Rn = {
3915
3935
  createError: Re,
3916
3936
  AVV_ERR_EXPOSE_ALREADY_DEFINED: Re(
3917
3937
  "AVV_ERR_EXPOSE_ALREADY_DEFINED",
@@ -3959,7 +3979,7 @@ var Nn = {
3959
3979
  return r + s(g ? "└" : "├") + s("─") + s(w ? "┬" : "─") + " " + t(d, E, o).slice(r.length + 2);
3960
3980
  }).join("");
3961
3981
  };
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");
3982
+ 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
3983
  let Ls = class {
3964
3984
  constructor() {
3965
3985
  this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
@@ -3967,7 +3987,7 @@ let Ls = class {
3967
3987
  [Qt](e) {
3968
3988
  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
3989
  }
3970
- [jr](e) {
3990
+ [Dr](e) {
3971
3991
  this.tableId.delete(e.id);
3972
3992
  const r = this.tableLabel.get(e.label);
3973
3993
  if (r.id) {
@@ -3976,16 +3996,16 @@ let Ls = class {
3976
3996
  }
3977
3997
  r.pop(), r.length === 0 && this.tableLabel.delete(e.label);
3978
3998
  }
3979
- [Mr](e) {
3999
+ [jr](e) {
3980
4000
  if (e === null)
3981
4001
  return this.root;
3982
4002
  const r = this.tableLabel.get(e);
3983
4003
  return r.id ? r : r[r.length - 1];
3984
4004
  }
3985
- [Vr](e) {
4005
+ [Mr](e) {
3986
4006
  return this.tableId.get(e);
3987
4007
  }
3988
- [qr](e, r, o) {
4008
+ [Vr](e, r, o) {
3989
4009
  if (e === null)
3990
4010
  return this.root = {
3991
4011
  id: "root",
@@ -3993,7 +4013,7 @@ let Ls = class {
3993
4013
  start: o,
3994
4014
  nodes: []
3995
4015
  }, this[Qt](this.root), this.root.id;
3996
- const u = this[Mr](e), l = `${r}-${Math.random()}`, f = {
4016
+ const u = this[jr](e), l = `${r}-${Math.random()}`, f = {
3997
4017
  id: l,
3998
4018
  parent: e,
3999
4019
  start: o,
@@ -4003,11 +4023,11 @@ let Ls = class {
4003
4023
  return u.nodes.push(f), this[Qt](f), l;
4004
4024
  }
4005
4025
  start(e, r, o = Date.now()) {
4006
- return this[qr](e, r, o);
4026
+ return this[Vr](e, r, o);
4007
4027
  }
4008
4028
  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));
4029
+ const o = this[Mr](e);
4030
+ o && (o.stop = r, o.diff = o.stop - o.start || 0, this[Dr](o));
4011
4031
  }
4012
4032
  toJSON() {
4013
4033
  return Object.assign({}, this.root);
@@ -4017,11 +4037,11 @@ let Ls = class {
4017
4037
  return Ns(r);
4018
4038
  }
4019
4039
  };
4020
- var Us = Ls, Ar = { exports: {} }, ur = { exports: {} }, zt, Gr;
4040
+ var Us = Ls, Ar = { exports: {} }, ur = { exports: {} }, zt, qr;
4021
4041
  function $s() {
4022
- if (Gr)
4042
+ if (qr)
4023
4043
  return zt;
4024
- Gr = 1;
4044
+ qr = 1;
4025
4045
  var t = 1e3, e = t * 60, r = e * 60, o = r * 24, s = o * 7, u = o * 365.25;
4026
4046
  zt = function(g, w) {
4027
4047
  w = w || {};
@@ -4116,17 +4136,17 @@ function Ds(t) {
4116
4136
  function N(...Q) {
4117
4137
  if (!N.enabled)
4118
4138
  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");
4121
- let ee = 0;
4122
- Q[0] = Q[0].replace(/%([a-zA-Z%])/g, (j, B) => {
4139
+ const z = N, X = Number(/* @__PURE__ */ new Date()), de = X - (w || X);
4140
+ z.diff = de, z.prev = w, z.curr = X, w = X, Q[0] = r.coerce(Q[0]), typeof Q[0] != "string" && Q.unshift("%O");
4141
+ let te = 0;
4142
+ Q[0] = Q[0].replace(/%([a-zA-Z%])/g, (j, O) => {
4123
4143
  if (j === "%%")
4124
4144
  return "%";
4125
- ee++;
4126
- const re = r.formatters[B];
4145
+ te++;
4146
+ const re = r.formatters[O];
4127
4147
  if (typeof re == "function") {
4128
- const ne = Q[ee];
4129
- j = re.call(z, ne), Q.splice(ee, 1), ee--;
4148
+ const ne = Q[te];
4149
+ j = re.call(z, ne), Q.splice(te, 1), te--;
4130
4150
  }
4131
4151
  return j;
4132
4152
  }), r.formatArgs.call(z, Q), (z.log || r.log).apply(z, Q);
@@ -4315,8 +4335,8 @@ var js = Ds;
4315
4335
  }
4316
4336
  };
4317
4337
  })(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");
4338
+ var Nn = ur.exports;
4339
+ const Ms = an, Vs = gn.EventEmitter, qs = Bt.inherits, W = Nn("avvio"), { AVV_ERR_READY_TIMEOUT: Gs } = Rn, Kt = Symbol.for("plugin-meta");
4320
4340
  function Qs(t, e) {
4321
4341
  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
4342
  `).slice(0, 2).map((r) => r.trim()).join(" -- ");
@@ -4327,11 +4347,11 @@ function zs() {
4327
4347
  t.resolve = e, t.reject = r;
4328
4348
  }), t;
4329
4349
  }
4330
- function tt(t, e, r, o, s) {
4350
+ function et(t, e, r, o, s) {
4331
4351
  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
4352
  }
4333
- qs(tt, Vs);
4334
- tt.prototype.exec = function(t, e) {
4353
+ qs(et, Vs);
4354
+ et.prototype.exec = function(t, e) {
4335
4355
  const r = this.func;
4336
4356
  let o = !1;
4337
4357
  const s = this.name;
@@ -4367,7 +4387,7 @@ tt.prototype.exec = function(t, e) {
4367
4387
  (d) => T.process.nextTick(l, d)
4368
4388
  ));
4369
4389
  };
4370
- tt.prototype.loadedSoFar = function() {
4390
+ et.prototype.loadedSoFar = function() {
4371
4391
  if (this.loaded)
4372
4392
  return Promise.resolve();
4373
4393
  const t = () => {
@@ -4378,10 +4398,10 @@ tt.prototype.loadedSoFar = function() {
4378
4398
  let e;
4379
4399
  return this._promise ? e = Promise.resolve() : (this._promise = zs(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
4380
4400
  };
4381
- tt.prototype.enqueue = function(t, e) {
4401
+ et.prototype.enqueue = function(t, e) {
4382
4402
  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
4403
  };
4384
- tt.prototype.finish = function(t, e) {
4404
+ et.prototype.finish = function(t, e) {
4385
4405
  W("finish", this.name, t);
4386
4406
  const r = () => {
4387
4407
  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 +4446,16 @@ function Er(t, e) {
4426
4446
  }
4427
4447
  function Hs() {
4428
4448
  }
4429
- Ar.exports = tt;
4449
+ Ar.exports = et;
4430
4450
  Ar.exports.loadPlugin = Er;
4431
4451
  var Ws = Ar.exports;
4432
- const Qr = un, Js = mn.EventEmitter, Ys = xt.inherits, {
4452
+ const Gr = an, Js = gn.EventEmitter, Ys = Bt.inherits, {
4433
4453
  AVV_ERR_EXPOSE_ALREADY_DEFINED: Ht,
4434
4454
  AVV_ERR_CALLBACK_NOT_FN: ct,
4435
4455
  AVV_ERR_PLUGIN_NOT_VALID: Xs,
4436
4456
  AVV_ERR_ROOT_PLG_BOOTED: Zs,
4437
4457
  AVV_ERR_READY_TIMEOUT: ea
4438
- } = Nn, ta = Us, cr = Ws, Ze = Ln("avvio"), Ft = Symbol("kAvvio"), Wt = Symbol("kThenifyDoNotWrap");
4458
+ } = Rn, ta = Us, cr = Ws, Xe = Nn("avvio"), Ft = Symbol("kAvvio"), Wt = Symbol("kThenifyDoNotWrap");
4439
4459
  function ra(t, e, r) {
4440
4460
  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
4461
  if (t[s])
@@ -4446,7 +4466,7 @@ function ra(t, e, r) {
4446
4466
  throw new Ht(l);
4447
4467
  t[s] = function(A, g) {
4448
4468
  return r.use(A, g), this;
4449
- }, Object.defineProperty(t, "then", { get: Un.bind(r) }), t[Ft] = !0, t[u] = function(A) {
4469
+ }, Object.defineProperty(t, "then", { get: Ln.bind(r) }), t[Ft] = !0, t[u] = function(A) {
4450
4470
  return typeof A != "function" ? r._loadRegistered() : (r.after(Jt(A, this)), this);
4451
4471
  }, t[l] = function(A) {
4452
4472
  if (A && typeof A != "function")
@@ -4467,17 +4487,17 @@ function J(t, e, r) {
4467
4487
  const o = new J(t, e, r);
4468
4488
  return t && ra(t, e, o), o;
4469
4489
  }
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;
4490
+ 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 = () => {
4491
+ this.emit("start"), this._readyQ.drain = Qr;
4492
+ }, this._closeQ = Gr(this, sa, 1), this._closeQ.pause(), this._closeQ.drain = () => {
4493
+ this.emit("close"), this._closeQ.drain = Qr;
4474
4494
  }, this._doStart = null, this._root = new cr(this, na.bind(this), e, !1, 0), this._root.once("start", (o, s, u) => {
4475
4495
  const l = this.pluginTree.start(null, s, u);
4476
4496
  this._root.once("loaded", (f, d, A) => {
4477
4497
  this.pluginTree.stop(l, A);
4478
4498
  });
4479
4499
  }), cr.loadPlugin.call(this, this._root, (o) => {
4480
- Ze("root plugin ready");
4500
+ Xe("root plugin ready");
4481
4501
  try {
4482
4502
  this.emit("preReady"), this._root = null;
4483
4503
  } catch (s) {
@@ -4514,7 +4534,7 @@ J.prototype._loadRegistered = function() {
4514
4534
  const t = this._current[0];
4515
4535
  return !this.started && !this.booted && T.process.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
4516
4536
  };
4517
- Object.defineProperty(J.prototype, "then", { get: Un });
4537
+ Object.defineProperty(J.prototype, "then", { get: Ln });
4518
4538
  J.prototype._addPlugin = function(t, e, r) {
4519
4539
  if (t = ia(t), e = e || {}, this.booted)
4520
4540
  throw new Zs();
@@ -4535,7 +4555,7 @@ J.prototype.after = function(t) {
4535
4555
  return this._loadRegistered();
4536
4556
  this._addPlugin(e.bind(this), {}, !0);
4537
4557
  function e(r, o, s) {
4538
- $n.call(this, t, s);
4558
+ Un.call(this, t, s);
4539
4559
  }
4540
4560
  return this;
4541
4561
  };
@@ -4586,20 +4606,20 @@ J.prototype.prettyPrint = function() {
4586
4606
  J.prototype.toJSON = function() {
4587
4607
  return this.pluginTree.toJSON();
4588
4608
  };
4589
- function zr() {
4609
+ function Qr() {
4590
4610
  }
4591
- function Un() {
4611
+ function Ln() {
4592
4612
  if (this.booted) {
4593
- Ze("thenify returning null because we are already booted");
4613
+ Xe("thenify returning null because we are already booted");
4594
4614
  return;
4595
4615
  }
4596
4616
  if (this[Wt]) {
4597
4617
  this[Wt] = !1;
4598
4618
  return;
4599
4619
  }
4600
- return Ze("thenify"), (t, e) => this._loadRegistered().then(() => (this[Wt] = !0, t(this._server)), e);
4620
+ return Xe("thenify"), (t, e) => this._loadRegistered().then(() => (this[Wt] = !0, t(this._server)), e);
4601
4621
  }
4602
- function $n(t, e) {
4622
+ function Un(t, e) {
4603
4623
  const r = this._server, o = this._error;
4604
4624
  let s;
4605
4625
  if (this._error = null, t.length === 0)
@@ -4616,9 +4636,9 @@ function $n(t, e) {
4616
4636
  }
4617
4637
  function oa(t, e, r, o) {
4618
4638
  const s = t.name;
4619
- Ze("setting up ready timeout", s, this._timeout);
4639
+ Xe("setting up ready timeout", s, this._timeout);
4620
4640
  let u = setTimeout(() => {
4621
- Ze("timed out", s), u = null;
4641
+ Xe("timed out", s), u = null;
4622
4642
  const f = new ea(s);
4623
4643
  f.fn = t, this._error = f, o(f);
4624
4644
  }, this._timeout);
@@ -4631,7 +4651,7 @@ function sa(t, e) {
4631
4651
  const r = this._server, o = t[this._isOnCloseHandlerKey];
4632
4652
  if (t.length === 0 || t.length === 1) {
4633
4653
  let s;
4634
- o ? s = t(r) : s = t(this._error), s && typeof s.then == "function" ? (Ze("resolving close/onClose promise"), s.then(
4654
+ o ? s = t(r) : s = t(this._error), s && typeof s.then == "function" ? (Xe("resolving close/onClose promise"), s.then(
4635
4655
  () => T.process.nextTick(e),
4636
4656
  (u) => T.process.nextTick(e, u)
4637
4657
  )) : T.process.nextTick(e);
@@ -4669,10 +4689,10 @@ dr.exports.express = function(t) {
4669
4689
  });
4670
4690
  };
4671
4691
  var ua = dr.exports;
4672
- const ca = /* @__PURE__ */ Wn(ua);
4692
+ const ca = /* @__PURE__ */ Hn(ua);
4673
4693
  function _a(t, e = !0, r = !0) {
4674
4694
  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) => {
4695
+ 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
4696
  if (u)
4677
4697
  throw u;
4678
4698
  await l.sdk.initializeApp(), f();